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.

18 lines
369 B

4 years ago
  1. {
  2. "record": "Weapon",
  3. "values": {
  4. "baseId": "4F00000062",
  5. "weaponType": "sword",
  6. "name": "Exquisite Steel Sword",
  7. "attack": "40",
  8. "weight": "20"
  9. }
  10. }
  11. val entity = ed.createEntity()
  12. entity.setComponents(
  13. Record("Weapon"),
  14. WeaponType("Sword"),
  15. Name("Exquisite Steel Sword"),
  16. Attack(40),
  17. Weight(20)
  18. )