Testing out JmonkeyEngine to make a game in Scala with Akka Actors within a pure FP layer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
369 B

{
"record": "Weapon",
"values": {
"baseId": "4F00000062",
"weaponType": "sword",
"name": "Exquisite Steel Sword",
"attack": "40",
"weight": "20"
}
}
val entity = ed.createEntity()
entity.setComponents(
Record("Weapon"),
WeaponType("Sword"),
Name("Exquisite Steel Sword"),
Attack(40),
Weight(20)
)