Versions in this module Expand all Collapse all v0 v0.1.0 Oct 25, 2017 Changes in this version + const MT_CALL_ENTITY_METHOD + const MT_CALL_ENTITY_METHOD_FROM_CLIENT + const MT_CALL_ENTITY_METHOD_ON_CLIENT + const MT_CALL_FILTERED_CLIENTS + const MT_CLEAR_CLIENTPROXY_FILTER_PROPS + const MT_CREATE_ENTITY_ANYWHERE + const MT_CREATE_ENTITY_ON_CLIENT + const MT_DECLARE_SERVICE + const MT_DESTROY_ENTITY_ON_CLIENT + const MT_GATE_SERVICE_MSG_TYPE_START + const MT_GATE_SERVICE_MSG_TYPE_STOP + const MT_HEARTBEAT_FROM_CLIENT + const MT_INVALID + const MT_LOAD_ENTITY_ANYWHERE + const MT_MIGRATE_REQUEST + const MT_NOTIFY_ALL_GAMES_CONNECTED + const MT_NOTIFY_CLIENT_CONNECTED + const MT_NOTIFY_CLIENT_DISCONNECTED + const MT_NOTIFY_CREATE_ENTITY + const MT_NOTIFY_DESTROY_ENTITY + const MT_NOTIFY_GATE_DISCONNECTED + const MT_NOTIFY_LIST_ATTR_APPEND_ON_CLIENT + const MT_NOTIFY_LIST_ATTR_CHANGE_ON_CLIENT + const MT_NOTIFY_LIST_ATTR_POP_ON_CLIENT + const MT_NOTIFY_MAP_ATTR_CHANGE_ON_CLIENT + const MT_NOTIFY_MAP_ATTR_DEL_ON_CLIENT + const MT_REAL_MIGRATE + const MT_REDIRECT_TO_GATEPROXY_MSG_TYPE_START + const MT_REDIRECT_TO_GATEPROXY_MSG_TYPE_STOP + const MT_SET_CLIENTPROXY_FILTER_PROP + const MT_SET_CLIENT_CLIENTID + const MT_SET_GAME_ID + const MT_SET_GATE_ID + const MT_START_FREEZE_GAME + const MT_START_FREEZE_GAME_ACK + const MT_SYNC_POSITION_YAW_FROM_CLIENT + const MT_SYNC_POSITION_YAW_ON_CLIENTS + const MT_UDP_SYNC_CONN_NOTIFY_CLIENTID + const MT_UDP_SYNC_CONN_NOTIFY_CLIENTID_ACK + const MT_UNDECLARE_SERVICE + const MT_UPDATE_POSITION_ON_CLIENT + const MT_UPDATE_YAW_ON_CLIENT + const SYNC_INFO_SIZE_PER_ENTITY + const UDP_SYNC_PACKET_SIZE + type EntitySyncInfo struct + X float32 + Y float32 + Yaw float32 + Z float32 + type GoWorldConnection struct + func NewGoWorldConnection(conn netutil.Connection, compressConnection bool, compressFormat string) *GoWorldConnection + func (gwc *GoWorldConnection) Close() error + func (gwc *GoWorldConnection) Flush(reason string) error + func (gwc *GoWorldConnection) IsClosed() bool + func (gwc *GoWorldConnection) LocalAddr() net.Addr + func (gwc *GoWorldConnection) Recv(msgtype *MsgType) (*netutil.Packet, error) + func (gwc *GoWorldConnection) RemoteAddr() net.Addr + func (gwc *GoWorldConnection) SendCallEntityMethod(id common.EntityID, method string, args []interface{}) error + func (gwc *GoWorldConnection) SendCallEntityMethodFromClient(id common.EntityID, method string, args []interface{}) error + func (gwc *GoWorldConnection) SendCallEntityMethodOnClient(gid uint16, clientid common.ClientID, entityID common.EntityID, method string, ...) (err error) + func (gwc *GoWorldConnection) SendCallFilterClientProxies(key string, val string, method string, args []interface{}) (err error) + func (gwc *GoWorldConnection) SendClearClientFilterProp(gid uint16, clientid common.ClientID) (err error) + func (gwc *GoWorldConnection) SendCreateEntityAnywhere(typeName string, data map[string]interface{}) error + func (gwc *GoWorldConnection) SendCreateEntityOnClient(gid uint16, clientid common.ClientID, typeName string, ...) error + func (gwc *GoWorldConnection) SendDeclareService(id common.EntityID, serviceName string) error + func (gwc *GoWorldConnection) SendDestroyEntityOnClient(gid uint16, clientid common.ClientID, typeName string, ...) error + func (gwc *GoWorldConnection) SendLoadEntityAnywhere(typeName string, entityID common.EntityID) error + func (gwc *GoWorldConnection) SendMigrateRequest(spaceID common.EntityID, entityID common.EntityID) error + func (gwc *GoWorldConnection) SendNotifyClientConnected(id common.ClientID) error + func (gwc *GoWorldConnection) SendNotifyClientDisconnected(id common.ClientID) error + func (gwc *GoWorldConnection) SendNotifyCreateEntity(id common.EntityID) error + func (gwc *GoWorldConnection) SendNotifyDestroyEntity(id common.EntityID) error + func (gwc *GoWorldConnection) SendNotifyListAttrAppendOnClient(gid uint16, clientid common.ClientID, entityid common.EntityID, ...) error + func (gwc *GoWorldConnection) SendNotifyListAttrChangeOnClient(gid uint16, clientid common.ClientID, entityid common.EntityID, ...) error + func (gwc *GoWorldConnection) SendNotifyListAttrPopOnClient(gid uint16, clientid common.ClientID, entityid common.EntityID, ...) error + func (gwc *GoWorldConnection) SendNotifyMapAttrChangeOnClient(gid uint16, clientid common.ClientID, entityid common.EntityID, ...) error + func (gwc *GoWorldConnection) SendNotifyMapAttrDelOnClient(gid uint16, clientid common.ClientID, entityid common.EntityID, ...) error + func (gwc *GoWorldConnection) SendPacket(packet *netutil.Packet) error + func (gwc *GoWorldConnection) SendPacketRelease(packet *netutil.Packet) error + func (gwc *GoWorldConnection) SendRealMigrate(eid common.EntityID, targetGame uint16, targetSpace common.EntityID, ...) error + func (gwc *GoWorldConnection) SendSetClientClientID(clientid common.ClientID) error + func (gwc *GoWorldConnection) SendSetClientFilterProp(gid uint16, clientid common.ClientID, key, val string) (err error) + func (gwc *GoWorldConnection) SendSetGameID(id uint16, isReconnect bool, isRestore bool) error + func (gwc *GoWorldConnection) SendSetGateID(id uint16) error + func (gwc *GoWorldConnection) SendStartFreezeGame(gameid uint16) error + func (gwc *GoWorldConnection) SendSyncPositionOnClient(gid uint16, clientid common.ClientID, entityID common.EntityID, ...) error + func (gwc *GoWorldConnection) SendSyncPositionYawFromClient(entityID common.EntityID, x, y, z float32, yaw float32) error + func (gwc *GoWorldConnection) SetAutoFlush(interval time.Duration) + func (gwc *GoWorldConnection) SetHeartbeatFromClient() error + func (gwc *GoWorldConnection) SetRecvDeadline(deadline time.Time) error + func (gwc *GoWorldConnection) String() string + type MsgType uint16