mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 14:04:05 +09:00
Former-commit-id: 375604da8a20a6ba7cd0a8d05a44add02b2d04f4 Former-commit-id: 287287c5920b07618174d7a7573f049d350ded66
24 lines
514 B
Kotlin
24 lines
514 B
Kotlin
package net.torvald.terrarum.gameactors
|
|
|
|
import org.newdawn.slick.SlickException
|
|
import java.io.IOException
|
|
|
|
/**
|
|
* Created by minjaesong on 16-03-15.
|
|
*/
|
|
object PlayerBuilder {
|
|
private val JSONPATH = "./res/raw/"
|
|
private val jsonString = String()
|
|
|
|
@Throws(IOException::class, SlickException::class)
|
|
fun create(): Player {
|
|
val p: Player = Player()
|
|
CreatureRawInjector.inject(p.actorValue, "CreatureHuman.json")
|
|
|
|
// attach sprite
|
|
|
|
// do etc.
|
|
|
|
return p
|
|
}
|
|
} |