Updating resources according to instructions

This commit is contained in:
Brandon Watson
2023-08-14 21:03:23 -05:00
parent bdb7a39a91
commit a290cd1420
9 changed files with 89 additions and 108 deletions

View File

@ -5,23 +5,24 @@ import (
)
var Item = Type("item", func() {
Field(1, "id", Int)
Field(2, "name", String)
Field(3, "description", String)
Field(4, "multiplier", String)
Field(5, "type", String)
Required("name", "description", "multiplier", "type")
Field(1, "name", String)
Field(2, "description", String)
Field(3, "damage", Int)
Field(4, "healing", Int)
Field(5, "protection", Int)
Required("name", "description", "damage", "healing", "protection")
})
var Character = Type("character", func() {
Field(1, "id", Int)
Field(2, "name", String)
Field(3, "description", String)
Field(4, "class", String)
Required("name", "description", "class")
Field(1, "name", String)
Field(2, "description", String)
Field(3, "health", Int)
Field(4, "experience", Int)
Required("name", "description", "health", "experience")
})
var InventoryRecord = Type("inventoryRecord", func() {
Field(1, "characterId", Int)
Field(2, "itemId", Int)
Field(1, "characterName", String)
Field(2, "itemName", String)
Required("characterName", "itemName")
})