mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 05:54:05 +09:00
Former-commit-id: 8a2a91a5252347b5184f62ec0f7009292fbb01bb Former-commit-id: b31eaddf7596c8393c9a032e8897ef3f1a8234fd
27 lines
653 B
Kotlin
27 lines
653 B
Kotlin
package net.torvald.terrarum.gameactors
|
|
|
|
import net.torvald.JsonFetcher
|
|
import net.torvald.random.Fudge3
|
|
import net.torvald.random.HQRNG
|
|
import net.torvald.terrarum.langpack.Lang
|
|
import com.google.gson.JsonObject
|
|
import org.newdawn.slick.SlickException
|
|
import java.io.IOException
|
|
|
|
/**
|
|
* Created by minjaesong on 16-02-05.
|
|
*/
|
|
|
|
object CreatureBuilder {
|
|
|
|
/**
|
|
* @Param jsonFileName with extension
|
|
*/
|
|
@Throws(IOException::class, SlickException::class)
|
|
fun create(jsonFileName: String): ActorWithBody {
|
|
val actor = ActorWithBody()
|
|
CreatureRawInjector.inject(actor.actorValue, jsonFileName)
|
|
|
|
return actor
|
|
}
|
|
} |