Documentation ¶
Index ¶
- func GetGameID() uint16
- func Run(delegate IGameDelegate)
- type GameDelegate
- type GameService
- func (gs *GameService) HandleCallEntityMethod(entityID common.EntityID, method string, args [][]byte, ...)
- func (gs *GameService) HandleCreateEntityAnywhere(typeName string, data map[string]interface{})
- func (gs *GameService) HandleDeclareService(entityID common.EntityID, serviceName string)
- func (gs *GameService) HandleGateDisconnected(gateid uint16)
- func (gs *GameService) HandleLoadEntityAnywhere(typeName string, entityID common.EntityID)
- func (gs *GameService) HandleMigrateRequestAck(pkt *netutil.Packet)
- func (gs *GameService) HandleNotifyAllGamesConnected()
- func (gs *GameService) HandleNotifyClientConnected(clientid common.ClientID, gid uint16)
- func (gs *GameService) HandleNotifyClientDisconnected(clientid common.ClientID)
- func (gs *GameService) HandleRealMigrate(pkt *netutil.Packet)
- func (gs *GameService) HandleStartFreezeGameAck()
- func (gs *GameService) HandleUndeclareService(entityID common.EntityID, serviceName string)
- func (gs *GameService) HandleUpdatePositionYawFromClient(pkt *netutil.Packet)
- func (gs *GameService) String() string
- type IGameDelegate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(delegate IGameDelegate)
Types ¶
type GameDelegate ¶
type GameDelegate struct { }
func (*GameDelegate) OnGameReady ¶
func (gd *GameDelegate) OnGameReady()
type GameService ¶
type GameService struct {
// contains filtered or unexported fields
}
func (*GameService) HandleCallEntityMethod ¶
func (*GameService) HandleCreateEntityAnywhere ¶
func (gs *GameService) HandleCreateEntityAnywhere(typeName string, data map[string]interface{})
func (*GameService) HandleDeclareService ¶
func (gs *GameService) HandleDeclareService(entityID common.EntityID, serviceName string)
func (*GameService) HandleGateDisconnected ¶
func (gs *GameService) HandleGateDisconnected(gateid uint16)
func (*GameService) HandleLoadEntityAnywhere ¶
func (gs *GameService) HandleLoadEntityAnywhere(typeName string, entityID common.EntityID)
func (*GameService) HandleMigrateRequestAck ¶
func (gs *GameService) HandleMigrateRequestAck(pkt *netutil.Packet)
func (*GameService) HandleNotifyAllGamesConnected ¶
func (gs *GameService) HandleNotifyAllGamesConnected()
func (*GameService) HandleNotifyClientConnected ¶
func (gs *GameService) HandleNotifyClientConnected(clientid common.ClientID, gid uint16)
func (*GameService) HandleNotifyClientDisconnected ¶
func (gs *GameService) HandleNotifyClientDisconnected(clientid common.ClientID)
func (*GameService) HandleRealMigrate ¶
func (gs *GameService) HandleRealMigrate(pkt *netutil.Packet)
func (*GameService) HandleStartFreezeGameAck ¶
func (gs *GameService) HandleStartFreezeGameAck()
func (*GameService) HandleUndeclareService ¶
func (gs *GameService) HandleUndeclareService(entityID common.EntityID, serviceName string)
func (*GameService) HandleUpdatePositionYawFromClient ¶
func (gs *GameService) HandleUpdatePositionYawFromClient(pkt *netutil.Packet)
func (*GameService) String ¶
func (gs *GameService) String() string
type IGameDelegate ¶
type IGameDelegate interface {
OnGameReady()
}
Click to show internal directories.
Click to hide internal directories.