Updating resources according to instructions
This commit is contained in:
@ -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")
|
||||
})
|
||||
|
Reference in New Issue
Block a user