Update character datatype

This commit is contained in:
Layla 2020-12-27 02:26:20 -05:00
parent 22199a5c0a
commit 649a4ef882
No known key found for this signature in database
GPG Key ID: A494D9357BA1BE31
2 changed files with 7 additions and 3 deletions

View File

@ -2,6 +2,9 @@ package datatypes
// Character represents something that can be skinned
type Character struct {
Name string `json:"name"`
UID string `json:"uid"`
Skin Skin `json:"skin"`
}
// Characters are an array of Character
type Characters []Character

View File

@ -4,4 +4,5 @@ package datatypes
type User struct {
UID string `json:"uid"`
OwnedSkins Skins `json:"skins"`
Characters Characters `json:"characters"`
}