Documentation ¶
Index ¶
- func CollectEntitySyncInfos()
- func CreateEntityAnywhere(typeName string)
- func CreateEntityLocally(typeName string, data map[string]interface{}, client *GameClient) common.EntityID
- func CreateSpaceAnywhere(kind int)
- func CreateSpaceLocally(kind int) common.EntityID
- func LoadEntityAnywhere(typeName string, entityID common.EntityID)
- func LoadEntityLocally(typeName string, entityID common.EntityID)
- func OnCall(id common.EntityID, method string, args [][]byte, clientID common.ClientID)
- func OnClientDisconnected(clientid common.ClientID)
- func OnDeclareService(serviceName string, entityid common.EntityID)
- func OnGameTerminating()
- func OnGateDisconnected(gateid uint16)
- func OnMigrateRequestAck(entityID common.EntityID, spaceID common.EntityID, spaceLoc uint16)
- func OnRealMigrate(entityID common.EntityID, spaceID common.EntityID, x, y, z float32, ...)
- func OnSyncPositionYawFromClient(eid common.EntityID, x, y, z Coord, yaw Yaw)
- func OnUndeclareService(serviceName string, entityid common.EntityID)
- func RegisterSpace(spacePtr interface{})
- func RestoreFreezedEntities(freeze *FreezeData) (err error)
- func SaveAllEntities()
- func SetSaveInterval(duration time.Duration)
- type AOICalculator
- type Component
- type Coord
- type Entity
- func (e *Entity) AddCallback(d time.Duration, method string, args ...interface{}) EntityTimerID
- func (e *Entity) AddTimer(d time.Duration, method string, args ...interface{}) EntityTimerID
- func (e *Entity) Call(id common.EntityID, method string, args ...interface{})
- func (e *Entity) CallAllClients(method string, args ...interface{})
- func (e *Entity) CallClient(method string, args ...interface{})
- func (e *Entity) CallFitleredClients(key string, val string, method string, args ...interface{})
- func (e *Entity) CallService(serviceName string, method string, args ...interface{})
- func (e *Entity) CancelTimer(tid EntityTimerID)
- func (e *Entity) DeclareService(serviceName string)
- func (e *Entity) Destroy()
- func (e *Entity) DistanceTo(other *Entity) Coord
- func (e *Entity) EnterSpace(spaceID common.EntityID, pos Vector3)
- func (e *Entity) FaceTo(other *Entity)
- func (e *Entity) FaceToPos(pos Vector3)
- func (e *Entity) ForAllClients(f func(client *GameClient))
- func (e *Entity) GetClient() *GameClient
- func (e *Entity) GetFloat(key string) float64
- func (e *Entity) GetFreezeData() *entityFreezeData
- func (e *Entity) GetInt(key string) int64
- func (e *Entity) GetListAttr(key string) *ListAttr
- func (e *Entity) GetMapAttr(key string) *MapAttr
- func (e *Entity) GetMigrateData() map[string]interface{}
- func (e *Entity) GetPosition() Vector3
- func (e *Entity) GetStr(key string) string
- func (e *Entity) GetYaw() Yaw
- func (e *Entity) GiveClientTo(other *Entity)
- func (e *Entity) IsDestroyed() bool
- func (e *Entity) IsNeighbor(other *Entity) bool
- func (e *Entity) IsPersistent() bool
- func (e *Entity) IsSpaceEntity() bool
- func (e *Entity) IsUseAOI() bool
- func (e *Entity) LoadMigrateData(data map[string]interface{})
- func (e *Entity) Neighbors() EntitySet
- func (e *Entity) OnClientConnected()
- func (e *Entity) OnClientDisconnected()
- func (e *Entity) OnCreated()
- func (e *Entity) OnDestroy()
- func (e *Entity) OnEnterSpace()
- func (e *Entity) OnFreeze()
- func (e *Entity) OnInit()
- func (e *Entity) OnLeaveSpace(space *Space)
- func (e *Entity) OnMigrateIn()
- func (e *Entity) OnMigrateOut()
- func (e *Entity) OnRestored()
- func (e *Entity) PanicOnError(err error)
- func (e *Entity) Post(cb func())
- func (e *Entity) Save()
- func (e *Entity) SetClient(client *GameClient)
- func (e *Entity) SetClientSyncing(syncing bool)
- func (e *Entity) SetFilterProp(key string, val string)
- func (e *Entity) SetPosition(pos Vector3)
- func (e *Entity) SetYaw(yaw Yaw)
- func (e *Entity) String() string
- func (e *Entity) ToSpace() *Space
- type EntityIDSet
- type EntityMap
- type EntitySet
- type EntityTimerID
- type EntityTypeDesc
- type FreezeData
- type GameClient
- type ListAttr
- func (a *ListAttr) AppendBool(v bool)
- func (a *ListAttr) AppendFloat(v float64)
- func (a *ListAttr) AppendInt(v int64)
- func (a *ListAttr) AppendListAttr(attr *ListAttr)
- func (a *ListAttr) AppendMapAttr(attr *MapAttr)
- func (a *ListAttr) AppendStr(v string)
- func (a *ListAttr) AssignList(l []interface{})
- func (a *ListAttr) GetBool(index int) bool
- func (a *ListAttr) GetFloat(index int) float64
- func (a *ListAttr) GetInt(index int) int64
- func (a *ListAttr) GetListAttr(index int) *ListAttr
- func (a *ListAttr) GetMapAttr(index int) *MapAttr
- func (a *ListAttr) GetStr(index int) string
- func (a *ListAttr) PopBool() bool
- func (a *ListAttr) PopFloat() float64
- func (a *ListAttr) PopInt() int64
- func (a *ListAttr) PopListAttr() *ListAttr
- func (a *ListAttr) PopMapAttr() *MapAttr
- func (a *ListAttr) PopStr() string
- func (a *ListAttr) SetBool(index int, v bool)
- func (a *ListAttr) SetFloat(index int, v float64)
- func (a *ListAttr) SetInt(index int, v int64)
- func (a *ListAttr) SetListAttr(index int, attr *ListAttr)
- func (a *ListAttr) SetMapAttr(index int, attr *MapAttr)
- func (a *ListAttr) SetStr(index int, v string)
- func (a *ListAttr) Size() int
- func (a *ListAttr) ToList() []interface{}
- type MapAttr
- func (a *MapAttr) AssignMap(doc map[string]interface{})
- func (a *MapAttr) AssignMapWithFilter(doc map[string]interface{}, filter func(string) bool)
- func (a *MapAttr) Del(key string)
- func (a *MapAttr) ForEach(f func(key string, val interface{}))
- func (a *MapAttr) ForEachKey(f func(key string))
- func (a *MapAttr) Get(key string) interface{}
- func (a *MapAttr) GetBool(key string) bool
- func (a *MapAttr) GetFloat(key string) float64
- func (a *MapAttr) GetInt(key string) int64
- func (a *MapAttr) GetListAttr(key string) *ListAttr
- func (a *MapAttr) GetMapAttr(key string) *MapAttr
- func (a *MapAttr) GetStr(key string) string
- func (a *MapAttr) HasKey(key string) bool
- func (a *MapAttr) Keys() []string
- func (a *MapAttr) Pop(key string) interface{}
- func (a *MapAttr) PopMapAttr(key string) *MapAttr
- func (a *MapAttr) SetBool(key string, v bool)
- func (a *MapAttr) SetDefaultBool(key string, v bool)
- func (a *MapAttr) SetDefaultFloat(key string, v float64)
- func (a *MapAttr) SetDefaultInt(key string, v int64)
- func (a *MapAttr) SetDefaultListAttr(key string, attr *ListAttr)
- func (a *MapAttr) SetDefaultMapAttr(key string, attr *MapAttr)
- func (a *MapAttr) SetDefaultStr(key string, v string)
- func (a *MapAttr) SetFloat(key string, v float64)
- func (a *MapAttr) SetInt(key string, v int64)
- func (a *MapAttr) SetListAttr(key string, attr *ListAttr)
- func (a *MapAttr) SetMapAttr(key string, attr *MapAttr)
- func (a *MapAttr) SetStr(key string, v string)
- func (a *MapAttr) Size() int
- func (a *MapAttr) ToMap() map[string]interface{}
- func (a *MapAttr) ToMapWithFilter(filter func(string) bool) map[string]interface{}
- type Space
- func (space *Space) CountEntities(typeName string) int
- func (space *Space) CreateEntity(typeName string, pos Vector3)
- func (space *Space) ForEachEntity(f func(e *Entity))
- func (space *Space) GetEntity(entityID common.EntityID) *Entity
- func (space *Space) GetEntityCount() int
- func (space *Space) IsNil() bool
- func (space *Space) LoadEntity(typeName string, entityID common.EntityID, pos Vector3)
- func (space *Space) OnCreated()
- func (space *Space) OnDestroy()
- func (space *Space) OnEntityEnterSpace(entity *Entity)
- func (space *Space) OnEntityLeaveSpace(entity *Entity)
- func (space *Space) OnInit()
- func (space *Space) OnRestored()
- func (space *Space) OnSpaceCreated()
- func (space *Space) OnSpaceDestroy()
- func (space *Space) String() string
- type Vector3
- type XZListAOICalculator
- type Yaw
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectEntitySyncInfos ¶
func CollectEntitySyncInfos()
CollectEntitySyncInfos is called by game service to collect and broadcast entity sync infos to all clients
func CreateEntityAnywhere ¶
func CreateEntityAnywhere(typeName string)
CreateEntityAnywhere creates new entity in any game
func CreateEntityLocally ¶
func CreateEntityLocally(typeName string, data map[string]interface{}, client *GameClient) common.EntityID
CreateEntityLocally creates new entity in the local game
func CreateSpaceAnywhere ¶
func CreateSpaceAnywhere(kind int)
CreateSpaceAnywhere creates a space in any game server
func CreateSpaceLocally ¶
CreateSpaceLocally creates a space in the local game server
func LoadEntityAnywhere ¶
LoadEntityAnywhere loads entity in the any game
LoadEntityAnywhere has no effect if entity already exists on any game
func LoadEntityLocally ¶
LoadEntityLocally loads entity in the local game.
LoadEntityLocally has no effect if entity already exists on any game
func OnClientDisconnected ¶
OnClientDisconnected is called by engine when client is disconnected
func OnDeclareService ¶
OnDeclareService is called by engine when service is declared
func OnGameTerminating ¶
func OnGameTerminating()
OnGameTerminating is called when game is terminating
func OnGateDisconnected ¶
func OnGateDisconnected(gateid uint16)
OnGateDisconnected is called when gate is down
func OnMigrateRequestAck ¶
OnMigrateRequestAck is called by engine when mgirate request Ack is received
func OnRealMigrate ¶
func OnRealMigrate(entityID common.EntityID, spaceID common.EntityID, x, y, z float32, typeName string, migrateData map[string]interface{}, timerData []byte, clientid common.ClientID, clientsrv uint16)
OnRealMigrate is used by entity migration
func OnSyncPositionYawFromClient ¶
OnSyncPositionYawFromClient is called by engine to sync entity infos from client
func OnUndeclareService ¶
OnUndeclareService is called by engine when service is undeclared
func RegisterSpace ¶
func RegisterSpace(spacePtr interface{})
RegisterSpace registers the user custom space type
func RestoreFreezedEntities ¶
func RestoreFreezedEntities(freeze *FreezeData) (err error)
RestoreFreezedEntities restore entity system from freeze data
func SetSaveInterval ¶
SetSaveInterval sets the save interval for entity system
Types ¶
type AOICalculator ¶
type AOICalculator interface { // Let Entity aoi enter at specified position Enter(aoi *aoi, pos Vector3) // Let Entity aoi leave Leave(aoi *aoi) // Let Entity aoi move Move(aoi *aoi, newPos Vector3) // Calculate EntityAOI Adjustment of neighbors Adjust(aoi *aoi) (enter []*aoi, leave []*aoi) }
AOICalculator defines interface for aoi Calculators
type Entity ¶
type Entity struct { ID common.EntityID TypeName string I interface{} V reflect.Value Space *Space Attrs *MapAttr // contains filtered or unexported fields }
Entity is the basic execution unit in GoWorld server. Entities can be used to represent players, NPCs, monsters. Entities can migrate among spaces.
func (*Entity) AddCallback ¶
func (e *Entity) AddCallback(d time.Duration, method string, args ...interface{}) EntityTimerID
AddCallback adds a one-time callback for the entity
The callback will be cancelled if entity is destroyed
func (*Entity) AddTimer ¶
func (e *Entity) AddTimer(d time.Duration, method string, args ...interface{}) EntityTimerID
AddTimer adds a repeat timer for the entity
The callback will be cancelled if entity is destroyed
func (*Entity) CallAllClients ¶
CallAllClients calls the entity method on all clients
func (*Entity) CallClient ¶
CallClient calls the client entity
func (*Entity) CallFitleredClients ¶
CallFitleredClients calls the filtered clients with prop key == value
The message is broadcast to filtered clientproxies directly without going through entities
func (*Entity) CallService ¶
CallService calls a service provider
func (*Entity) CancelTimer ¶
func (e *Entity) CancelTimer(tid EntityTimerID)
CancelTimer cancels the Callback / Timer
func (*Entity) DeclareService ¶
DeclareService declares global service for service entity
func (*Entity) DistanceTo ¶
DistanceTo calculates the distance between two entities
func (*Entity) EnterSpace ¶
EnterSpace let the entity enters space
func (*Entity) ForAllClients ¶
func (e *Entity) ForAllClients(f func(client *GameClient))
ForAllClients visits all clients (own client and clients of neighbors)
func (*Entity) GetClient ¶
func (e *Entity) GetClient() *GameClient
GetClient returns the client of entity
func (*Entity) GetFreezeData ¶
func (e *Entity) GetFreezeData() *entityFreezeData
GetFreezeData gets freezed data
func (*Entity) GetListAttr ¶
GetListAttr gets an outtermost attribute as ListAttr
func (*Entity) GetMapAttr ¶
GetMapAttr gets an outtermost attribute as MapAttr
func (*Entity) GetMigrateData ¶
GetMigrateData gets the migration data
func (*Entity) GetPosition ¶
GetPosition returns the entity position
func (*Entity) GiveClientTo ¶
GiveClientTo gives client to other entity
func (*Entity) IsDestroyed ¶
IsDestroyed returns if the entity is destroyed
func (*Entity) IsNeighbor ¶
func (*Entity) IsPersistent ¶
IsPersistent returns if the entity is persistent
Default implementation check entity for persistent attributes
func (*Entity) IsSpaceEntity ¶
IsSpaceEntity returns if the entity is actually a space
func (*Entity) IsUseAOI ¶
IsUseAOI returns if entity type is using aoi
Entities like Account, Service entities should not be using aoi
func (*Entity) LoadMigrateData ¶
LoadMigrateData loads migrate data
func (*Entity) Neighbors ¶
Neighbors get all neighbors in an EntitySet
Never modify the return value !
func (*Entity) OnClientConnected ¶
func (e *Entity) OnClientConnected()
OnClientConnected is called when client is connected
Can override this function in custom entity type
func (*Entity) OnClientDisconnected ¶
func (e *Entity) OnClientDisconnected()
OnClientDisconnected is called when client is disconnected
Can override this function in custom entity type
func (*Entity) OnCreated ¶
func (e *Entity) OnCreated()
OnCreated is called when entity is created
Can override this function in custom entity type
func (*Entity) OnDestroy ¶
func (e *Entity) OnDestroy()
OnDestroy is called when entity is destroying
Can override this function in custom entity type
func (*Entity) OnEnterSpace ¶
func (e *Entity) OnEnterSpace()
OnEnterSpace is called when entity enters space
Can override this function in custom entity type
func (*Entity) OnFreeze ¶
func (e *Entity) OnFreeze()
OnFreeze is called when entity is freezed
Can override this function in custom entity type
func (*Entity) OnInit ¶
func (e *Entity) OnInit()
OnInit is called when entity is initializing
Can override this function in custom entity type
func (*Entity) OnLeaveSpace ¶
OnLeaveSpace is called when entity leaves space
Can override this function in custom entity type
func (*Entity) OnMigrateIn ¶
func (e *Entity) OnMigrateIn()
OnMigrateIn is called when entity is migrating in
Can override this function in custom entity type
func (*Entity) OnMigrateOut ¶
func (e *Entity) OnMigrateOut()
OnMigrateOut is called when entity is migrating out
Can override this function in custom entity type
func (*Entity) OnRestored ¶
func (e *Entity) OnRestored()
OnRestored is called when entity is restored
Can override this function in custom entity type
func (*Entity) PanicOnError ¶
PanicOnError panics if err != nil
func (*Entity) Post ¶
func (e *Entity) Post(cb func())
Post a function which will be executed immediately but not in the current stack frames
func (*Entity) SetClient ¶
func (e *Entity) SetClient(client *GameClient)
SetClient sets the client of entity
func (*Entity) SetClientSyncing ¶
SetClientSyncing set if entity infos (position, yaw) is syncing with client
func (*Entity) SetFilterProp ¶
SetFilterProp sets a filter property key-value
func (*Entity) SetPosition ¶
SetPosition sets the entity position
type EntityIDSet ¶
EntityIDSet is the data structure for a set of entity IDs
func GetServiceProviders ¶
func GetServiceProviders(serviceName string) EntityIDSet
GetServiceProviders returns all service providers
func (EntityIDSet) Add ¶
func (es EntityIDSet) Add(id common.EntityID)
Add adds an entity ID to EntityIDSet
func (EntityIDSet) Contains ¶
func (es EntityIDSet) Contains(id common.EntityID) bool
Contains checks if entity ID is in EntityIDSet
func (EntityIDSet) Del ¶
func (es EntityIDSet) Del(id common.EntityID)
Del removes an entity ID from EntityIDSet
func (EntityIDSet) ToList ¶
func (es EntityIDSet) ToList() []common.EntityID
ToList convert EntityIDSet to a slice of entity IDs
type EntityMap ¶
EntityMap is the data structure for maintaining entity IDs to entities
func Entities ¶
func Entities() EntityMap
Entities gets all entities
Never modify the return value !
type EntitySet ¶
type EntitySet map[*Entity]struct{}
EntitySet is the data structure for a set of entities
type EntityTimerID ¶
type EntityTimerID int
EntityTimerID is the type of entity timer ID
func (EntityTimerID) IsValid ¶
func (tid EntityTimerID) IsValid() bool
IsValid returns if the EntityTimerID is still valid (not fired and not cancelled)
type EntityTypeDesc ¶
type EntityTypeDesc struct {
// contains filtered or unexported fields
}
EntityTypeDesc is the entity type description for registering entity types
func RegisterEntity ¶
func RegisterEntity(typeName string, entity interface{}, isPersistent bool, useAOI bool) *EntityTypeDesc
RegisterEntity registers custom entity type and define entity behaviors
func (*EntityTypeDesc) DefineAttrs ¶
func (desc *EntityTypeDesc) DefineAttrs(attrDefs map[string][]string)
DefineAttrs defines properties of entity attributes
Valid attribute properties includes Client, AllClient, Persistent
type FreezeData ¶
type FreezeData struct { Entities map[common.EntityID]*entityFreezeData Services map[string][]common.EntityID }
FreezeData is the data structure for storing entity freeze data
func Freeze ¶
func Freeze(gameid uint16) (*FreezeData, error)
Freeze freezes the entity system and returns all freeze data
type GameClient ¶
type GameClient struct {
// contains filtered or unexported fields
}
GameClient represents the game client of entity
Each entity can have at most one GameClient, and GameClient can be given to other entities
func MakeGameClient ¶
func MakeGameClient(clientid common.ClientID, gid uint16) *GameClient
MakeGameClient creates a GameClient object using Client ID and Game ID
func (*GameClient) String ¶
func (client *GameClient) String() string
type ListAttr ¶
type ListAttr struct {
// contains filtered or unexported fields
}
ListAttr is a attribute for a list of attributes
func (*ListAttr) AppendBool ¶
AppendBool puts bool value to the end of list
func (*ListAttr) AppendFloat ¶
AppendFloat puts float value to the end of list
func (*ListAttr) AppendListAttr ¶
AppendListAttr puts ListAttr value to the end of list
func (*ListAttr) AppendMapAttr ¶
AppendMapAttr puts MapAttr value to the end of list
func (*ListAttr) AssignList ¶
func (a *ListAttr) AssignList(l []interface{})
AssignList assigns slice to ListAttr, recursively
func (*ListAttr) GetListAttr ¶
GetListAttr gets item value as ListAttr
func (*ListAttr) GetMapAttr ¶
GetMapAttr gets item value as MapAttr
func (*ListAttr) PopListAttr ¶
PopListAttr removes the last item and returns as ListAttr
func (*ListAttr) PopMapAttr ¶
PopMapAttr removes the last item and returns as MapAttr
func (*ListAttr) SetListAttr ¶
SetListAttr sets ListAttr value at the index
func (*ListAttr) SetMapAttr ¶
SetMapAttr sets MapAttr value at the index
type MapAttr ¶
type MapAttr struct {
// contains filtered or unexported fields
}
MapAttr is a map attribute containing muiltiple attributes indexed by string keys
func (*MapAttr) AssignMapWithFilter ¶
AssignMapWithFilter assigns filtered fields of native map to MapAttr recursively
func (*MapAttr) ForEachKey ¶
ForEachKey calls f on all keys
func (*MapAttr) GetListAttr ¶
GetListAttr returns the attribute of specified key in MapAttr as ListAttr
func (*MapAttr) GetMapAttr ¶
GetMapAttr returns the attribute of specified key in MapAttr as MapAttr
func (*MapAttr) PopMapAttr ¶
PopMapAttr deletes a key in MapAttr and returns the attribute as MapAttr
func (*MapAttr) SetDefaultBool ¶
SetDefaultBool sets default bool value at the key
func (*MapAttr) SetDefaultFloat ¶
SetDefaultFloat sets default float value at the key
func (*MapAttr) SetDefaultInt ¶
SetDefaultInt sets default int value at the key
func (*MapAttr) SetDefaultListAttr ¶
SetDefaultListAttr sets default ListAttr value at the key
func (*MapAttr) SetDefaultMapAttr ¶
SetDefaultMapAttr sets default MapAttr value at the key
func (*MapAttr) SetDefaultStr ¶
SetDefaultStr sets default string value at the key
func (*MapAttr) SetListAttr ¶
SetListAttr sets ListAttr value at the key
func (*MapAttr) SetMapAttr ¶
SetMapAttr sets MapAttr value at the key
type Space ¶
Space is the entity type of spaces
Spaces are also entities but with space management logics
func (*Space) CountEntities ¶
CountEntities returns the number of entities of specified type in space
func (*Space) CreateEntity ¶
CreateEntity creates a new local entity in this space
func (*Space) ForEachEntity ¶
ForEachEntity visits all entities in space and call function f with each entity
func (*Space) GetEntityCount ¶
GetEntityCount returns the total count of entities in space
func (*Space) LoadEntity ¶
LoadEntity loads a entity of specified entityID to the space
If the entity already exists on server, this call has no effect
func (*Space) OnCreated ¶
func (space *Space) OnCreated()
OnCreated is called when Space entity is created
func (*Space) OnDestroy ¶
func (space *Space) OnDestroy()
OnDestroy is called when Space entity is destroyed
func (*Space) OnEntityEnterSpace ¶
OnEntityEnterSpace is called when entity enters space
Custom space type can override this function
func (*Space) OnEntityLeaveSpace ¶
OnEntityLeaveSpace is called when entity leaves space
Custom space type can override this function
func (*Space) OnRestored ¶
func (space *Space) OnRestored()
OnRestored is called when space entity is restored
func (*Space) OnSpaceCreated ¶
func (space *Space) OnSpaceCreated()
OnSpaceCreated is called when space is created
Custom space type can override to provide custom logic
func (*Space) OnSpaceDestroy ¶
func (space *Space) OnSpaceDestroy()
OnSpaceDestroy is called when space is destroying
Custom space type can override to provide custom logic
type Vector3 ¶
Vector3 is type of entity position
func (Vector3) DistanceTo ¶
DistanceTo calculates distance between two positions
func (Vector3) Normalized ¶
type XZListAOICalculator ¶
type XZListAOICalculator struct {
// contains filtered or unexported fields
}
XZListAOICalculator is an implementation of AOICalculator using XZ lists
func (*XZListAOICalculator) Adjust ¶
func (cal *XZListAOICalculator) Adjust(aoi *aoi) (enter []*aoi, leave []*aoi)
Adjust is called by Entity to adjust neighbors
func (*XZListAOICalculator) Enter ¶
func (cal *XZListAOICalculator) Enter(aoi *aoi, pos Vector3)
Enter is called when Entity enters Space
func (*XZListAOICalculator) Leave ¶
func (cal *XZListAOICalculator) Leave(aoi *aoi)
Leave is called when Entity leaves Space
func (*XZListAOICalculator) Move ¶
func (cal *XZListAOICalculator) Move(aoi *aoi, pos Vector3)
Move is called when Entity moves in Space