entity layer
This commit is contained in:
65
konstructor/entity/entity.playground.go
Normal file
65
konstructor/entity/entity.playground.go
Normal file
@@ -0,0 +1,65 @@
|
||||
package entity
|
||||
|
||||
type Position struct {
|
||||
X int
|
||||
Y int
|
||||
Z int
|
||||
}
|
||||
|
||||
type RenderOptions struct {
|
||||
Image string
|
||||
Width int
|
||||
Height int
|
||||
}
|
||||
|
||||
type ObjectType struct {
|
||||
ID string
|
||||
RenderOptions RenderOptions
|
||||
}
|
||||
|
||||
type Object struct {
|
||||
ID string
|
||||
Type ObjectType
|
||||
Position Position
|
||||
}
|
||||
|
||||
type NPCType struct {
|
||||
ID string
|
||||
RenderOptions RenderOptions
|
||||
}
|
||||
|
||||
type NPC struct {
|
||||
ID string
|
||||
Type NPCType
|
||||
Position Position
|
||||
}
|
||||
|
||||
type Player struct {
|
||||
ID string
|
||||
RenderOptions RenderOptions
|
||||
Position Position
|
||||
}
|
||||
|
||||
type ItemType struct {
|
||||
ID string
|
||||
RenderOptions RenderOptions
|
||||
}
|
||||
|
||||
type Item struct {
|
||||
ID string
|
||||
Type ItemType
|
||||
Position Position
|
||||
}
|
||||
|
||||
type Playground struct {
|
||||
Background string
|
||||
Objects []Object
|
||||
NPCs []NPC
|
||||
Items []Item
|
||||
}
|
||||
|
||||
type Level struct {
|
||||
ID string
|
||||
Name string
|
||||
Playgrounds []Playground
|
||||
}
|
||||
Reference in New Issue
Block a user