Documentation ¶
Index ¶
- type Container
- type Entity
- type Locker
- func (l Locker) All() []Entity
- func (l *Locker) Delete(id uuid.UUID) error
- func (l *Locker) DeleteAll()
- func (l *Locker) DeleteFromPos(id uuid.UUID, pos components.Position) error
- func (l *Locker) FromJSONFile(path string) error
- func (l Locker) GetByID(id uuid.UUID) (Entity, error)
- func (l Locker) GetByPosition(pos components.Position) ([]Entity, error)
- func (l *Locker) Set(entity Entity) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity struct { ID uuid.UUID Position components.Position Spatial components.Spatial }
type Locker ¶
type Locker struct {
// contains filtered or unexported fields
}
func MakeLocker ¶
func MakeLocker() Locker
func (*Locker) DeleteFromPos ¶
func (*Locker) FromJSONFile ¶
func (Locker) GetByPosition ¶
func (l Locker) GetByPosition(pos components.Position) ([]Entity, error)
Click to show internal directories.
Click to hide internal directories.