Documentation
¶
Index ¶
- Variables
- type AddEntityGroupMessage
- func (*AddEntityGroupMessage) Descriptor() ([]byte, []int)deprecated
- func (x *AddEntityGroupMessage) GetEntitiesToAdd() []uint32
- func (x *AddEntityGroupMessage) GetType() EntityGroupType
- func (*AddEntityGroupMessage) ProtoMessage()
- func (x *AddEntityGroupMessage) ProtoReflect() protoreflect.Message
- func (x *AddEntityGroupMessage) Reset()
- func (x *AddEntityGroupMessage) String() string
- type AuthMessage
- func (*AuthMessage) Descriptor() ([]byte, []int)deprecated
- func (x *AuthMessage) GetLoginToken() string
- func (x *AuthMessage) GetPlayerIdentifierToken() string
- func (*AuthMessage) ProtoMessage()
- func (x *AuthMessage) ProtoReflect() protoreflect.Message
- func (x *AuthMessage) Reset()
- func (x *AuthMessage) String() string
- type AuthResultMessage
- func (*AuthResultMessage) Descriptor() ([]byte, []int)deprecated
- func (x *AuthResultMessage) GetCompressionType() CompressionType
- func (x *AuthResultMessage) GetConnId() uint32
- func (x *AuthResultMessage) GetResult() AuthResultMessage_AuthResult
- func (*AuthResultMessage) ProtoMessage()
- func (x *AuthResultMessage) ProtoReflect() protoreflect.Message
- func (x *AuthResultMessage) Reset()
- func (x *AuthResultMessage) String() string
- type AuthResultMessage_AuthResult
- func (AuthResultMessage_AuthResult) Descriptor() protoreflect.EnumDescriptor
- func (x AuthResultMessage_AuthResult) Enum() *AuthResultMessage_AuthResult
- func (AuthResultMessage_AuthResult) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuthResultMessage_AuthResult) Number() protoreflect.EnumNumber
- func (x AuthResultMessage_AuthResult) String() string
- func (AuthResultMessage_AuthResult) Type() protoreflect.EnumType
- type BroadcastType
- func (broadcast BroadcastType) Check(value uint32) bool
- func (BroadcastType) Descriptor() protoreflect.EnumDescriptor
- func (x BroadcastType) Enum() *BroadcastType
- func (BroadcastType) EnumDescriptor() ([]byte, []int)deprecated
- func (x BroadcastType) Number() protoreflect.EnumNumber
- func (x BroadcastType) String() string
- func (BroadcastType) Type() protoreflect.EnumType
- type ChannelDataAccess
- func (ChannelDataAccess) Descriptor() protoreflect.EnumDescriptor
- func (x ChannelDataAccess) Enum() *ChannelDataAccess
- func (ChannelDataAccess) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChannelDataAccess) Number() protoreflect.EnumNumber
- func (x ChannelDataAccess) String() string
- func (ChannelDataAccess) Type() protoreflect.EnumType
- type ChannelDataHandoverMessage
- func (*ChannelDataHandoverMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelDataHandoverMessage) GetContextConnId() uint32
- func (x *ChannelDataHandoverMessage) GetData() *anypb.Any
- func (x *ChannelDataHandoverMessage) GetDstChannelId() uint32
- func (x *ChannelDataHandoverMessage) GetSrcChannelId() uint32
- func (*ChannelDataHandoverMessage) ProtoMessage()
- func (x *ChannelDataHandoverMessage) ProtoReflect() protoreflect.Message
- func (x *ChannelDataHandoverMessage) Reset()
- func (x *ChannelDataHandoverMessage) String() string
- type ChannelDataMergeOptions
- func (*ChannelDataMergeOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelDataMergeOptions) GetListSizeLimit() uint32
- func (x *ChannelDataMergeOptions) GetShouldCheckRemovableMapField() bool
- func (x *ChannelDataMergeOptions) GetShouldReplaceList() bool
- func (x *ChannelDataMergeOptions) GetTruncateTop() bool
- func (*ChannelDataMergeOptions) ProtoMessage()
- func (x *ChannelDataMergeOptions) ProtoReflect() protoreflect.Message
- func (x *ChannelDataMergeOptions) Reset()
- func (x *ChannelDataMergeOptions) String() string
- type ChannelDataUpdateMessage
- func (*ChannelDataUpdateMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelDataUpdateMessage) GetContextConnId() uint32
- func (x *ChannelDataUpdateMessage) GetData() *anypb.Any
- func (*ChannelDataUpdateMessage) ProtoMessage()
- func (x *ChannelDataUpdateMessage) ProtoReflect() protoreflect.Message
- func (x *ChannelDataUpdateMessage) Reset()
- func (x *ChannelDataUpdateMessage) String() string
- type ChannelSubscriptionOptions
- func (*ChannelSubscriptionOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelSubscriptionOptions) GetDataAccess() ChannelDataAccess
- func (x *ChannelSubscriptionOptions) GetDataFieldMasks() []string
- func (x *ChannelSubscriptionOptions) GetFanOutDelayMs() int32
- func (x *ChannelSubscriptionOptions) GetFanOutIntervalMs() uint32
- func (x *ChannelSubscriptionOptions) GetSkipFirstFanOut() bool
- func (x *ChannelSubscriptionOptions) GetSkipSelfUpdateFanOut() bool
- func (*ChannelSubscriptionOptions) ProtoMessage()
- func (x *ChannelSubscriptionOptions) ProtoReflect() protoreflect.Message
- func (x *ChannelSubscriptionOptions) Reset()
- func (x *ChannelSubscriptionOptions) String() string
- type ChannelType
- func (ChannelType) Descriptor() protoreflect.EnumDescriptor
- func (x ChannelType) Enum() *ChannelType
- func (ChannelType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChannelType) Number() protoreflect.EnumNumber
- func (x ChannelType) String() string
- func (ChannelType) Type() protoreflect.EnumType
- type CompressionType
- func (CompressionType) Descriptor() protoreflect.EnumDescriptor
- func (x CompressionType) Enum() *CompressionType
- func (CompressionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CompressionType) Number() protoreflect.EnumNumber
- func (x CompressionType) String() string
- func (CompressionType) Type() protoreflect.EnumType
- type ConnectionType
- func (ConnectionType) Descriptor() protoreflect.EnumDescriptor
- func (x ConnectionType) Enum() *ConnectionType
- func (ConnectionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConnectionType) Number() protoreflect.EnumNumber
- func (x ConnectionType) String() string
- func (ConnectionType) Type() protoreflect.EnumType
- type CreateChannelMessage
- func (*CreateChannelMessage) Descriptor() ([]byte, []int)deprecated
- func (x *CreateChannelMessage) GetChannelType() ChannelType
- func (x *CreateChannelMessage) GetData() *anypb.Any
- func (x *CreateChannelMessage) GetMergeOptions() *ChannelDataMergeOptions
- func (x *CreateChannelMessage) GetMetadata() string
- func (x *CreateChannelMessage) GetSubOptions() *ChannelSubscriptionOptions
- func (*CreateChannelMessage) ProtoMessage()
- func (x *CreateChannelMessage) ProtoReflect() protoreflect.Message
- func (x *CreateChannelMessage) Reset()
- func (x *CreateChannelMessage) String() string
- type CreateChannelResultMessage
- func (*CreateChannelResultMessage) Descriptor() ([]byte, []int)deprecated
- func (x *CreateChannelResultMessage) GetChannelId() uint32
- func (x *CreateChannelResultMessage) GetChannelType() ChannelType
- func (x *CreateChannelResultMessage) GetMetadata() string
- func (x *CreateChannelResultMessage) GetOwnerConnId() uint32
- func (*CreateChannelResultMessage) ProtoMessage()
- func (x *CreateChannelResultMessage) ProtoReflect() protoreflect.Message
- func (x *CreateChannelResultMessage) Reset()
- func (x *CreateChannelResultMessage) String() string
- type CreateEntityChannelMessage
- func (*CreateEntityChannelMessage) Descriptor() ([]byte, []int)deprecated
- func (x *CreateEntityChannelMessage) GetData() *anypb.Any
- func (x *CreateEntityChannelMessage) GetEntityId() uint32
- func (x *CreateEntityChannelMessage) GetIsWellKnown() bool
- func (x *CreateEntityChannelMessage) GetMergeOptions() *ChannelDataMergeOptions
- func (x *CreateEntityChannelMessage) GetMetadata() string
- func (x *CreateEntityChannelMessage) GetSubOptions() *ChannelSubscriptionOptions
- func (*CreateEntityChannelMessage) ProtoMessage()
- func (x *CreateEntityChannelMessage) ProtoReflect() protoreflect.Message
- func (x *CreateEntityChannelMessage) Reset()
- func (x *CreateEntityChannelMessage) String() string
- type CreateSpatialChannelsResultMessage
- func (*CreateSpatialChannelsResultMessage) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSpatialChannelsResultMessage) GetMetadata() string
- func (x *CreateSpatialChannelsResultMessage) GetOwnerConnId() uint32
- func (x *CreateSpatialChannelsResultMessage) GetSpatialChannelId() []uint32
- func (*CreateSpatialChannelsResultMessage) ProtoMessage()
- func (x *CreateSpatialChannelsResultMessage) ProtoReflect() protoreflect.Message
- func (x *CreateSpatialChannelsResultMessage) Reset()
- func (x *CreateSpatialChannelsResultMessage) String() string
- type DebugGetSpatialRegionsMessage
- func (*DebugGetSpatialRegionsMessage) Descriptor() ([]byte, []int)deprecated
- func (*DebugGetSpatialRegionsMessage) ProtoMessage()
- func (x *DebugGetSpatialRegionsMessage) ProtoReflect() protoreflect.Message
- func (x *DebugGetSpatialRegionsMessage) Reset()
- func (x *DebugGetSpatialRegionsMessage) String() string
- type DisconnectMessage
- type EntityGroupType
- func (EntityGroupType) Descriptor() protoreflect.EnumDescriptor
- func (x EntityGroupType) Enum() *EntityGroupType
- func (EntityGroupType) EnumDescriptor() ([]byte, []int)deprecated
- func (x EntityGroupType) Number() protoreflect.EnumNumber
- func (x EntityGroupType) String() string
- func (EntityGroupType) Type() protoreflect.EnumType
- type ListChannelMessage
- func (*ListChannelMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ListChannelMessage) GetMetadataFilters() []string
- func (x *ListChannelMessage) GetTypeFilter() ChannelType
- func (*ListChannelMessage) ProtoMessage()
- func (x *ListChannelMessage) ProtoReflect() protoreflect.Message
- func (x *ListChannelMessage) Reset()
- func (x *ListChannelMessage) String() string
- type ListChannelResultMessage
- func (*ListChannelResultMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ListChannelResultMessage) GetChannels() []*ListChannelResultMessage_ChannelInfo
- func (*ListChannelResultMessage) ProtoMessage()
- func (x *ListChannelResultMessage) ProtoReflect() protoreflect.Message
- func (x *ListChannelResultMessage) Reset()
- func (x *ListChannelResultMessage) String() string
- type ListChannelResultMessage_ChannelInfo
- func (*ListChannelResultMessage_ChannelInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ListChannelResultMessage_ChannelInfo) GetChannelId() uint32
- func (x *ListChannelResultMessage_ChannelInfo) GetChannelType() ChannelType
- func (x *ListChannelResultMessage_ChannelInfo) GetMetadata() string
- func (*ListChannelResultMessage_ChannelInfo) ProtoMessage()
- func (x *ListChannelResultMessage_ChannelInfo) ProtoReflect() protoreflect.Message
- func (x *ListChannelResultMessage_ChannelInfo) Reset()
- func (x *ListChannelResultMessage_ChannelInfo) String() string
- type MessagePack
- func (*MessagePack) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePack) GetBroadcast() uint32
- func (x *MessagePack) GetChannelId() uint32
- func (x *MessagePack) GetMsgBody() []byte
- func (x *MessagePack) GetMsgType() uint32
- func (x *MessagePack) GetStubId() uint32
- func (*MessagePack) ProtoMessage()
- func (x *MessagePack) ProtoReflect() protoreflect.Message
- func (x *MessagePack) Reset()
- func (x *MessagePack) String() string
- type MessageType
- func (MessageType) Descriptor() protoreflect.EnumDescriptor
- func (x MessageType) Enum() *MessageType
- func (MessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MessageType) Number() protoreflect.EnumNumber
- func (x MessageType) String() string
- func (MessageType) Type() protoreflect.EnumType
- type Packet
- type QuerySpatialChannelMessage
- func (*QuerySpatialChannelMessage) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySpatialChannelMessage) GetSpatialInfo() []*SpatialInfo
- func (*QuerySpatialChannelMessage) ProtoMessage()
- func (x *QuerySpatialChannelMessage) ProtoReflect() protoreflect.Message
- func (x *QuerySpatialChannelMessage) Reset()
- func (x *QuerySpatialChannelMessage) String() string
- type QuerySpatialChannelResultMessage
- func (*QuerySpatialChannelResultMessage) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySpatialChannelResultMessage) GetChannelId() []uint32
- func (*QuerySpatialChannelResultMessage) ProtoMessage()
- func (x *QuerySpatialChannelResultMessage) ProtoReflect() protoreflect.Message
- func (x *QuerySpatialChannelResultMessage) Reset()
- func (x *QuerySpatialChannelResultMessage) String() string
- type RemoveChannelMessage
- func (*RemoveChannelMessage) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveChannelMessage) GetChannelId() uint32
- func (*RemoveChannelMessage) ProtoMessage()
- func (x *RemoveChannelMessage) ProtoReflect() protoreflect.Message
- func (x *RemoveChannelMessage) Reset()
- func (x *RemoveChannelMessage) String() string
- type RemoveEntityGroupMessage
- func (*RemoveEntityGroupMessage) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveEntityGroupMessage) GetEntitiesToRemove() []uint32
- func (x *RemoveEntityGroupMessage) GetType() EntityGroupType
- func (*RemoveEntityGroupMessage) ProtoMessage()
- func (x *RemoveEntityGroupMessage) ProtoReflect() protoreflect.Message
- func (x *RemoveEntityGroupMessage) Reset()
- func (x *RemoveEntityGroupMessage) String() string
- type ServerForwardMessage
- func (*ServerForwardMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ServerForwardMessage) GetClientConnId() uint32
- func (x *ServerForwardMessage) GetPayload() []byte
- func (*ServerForwardMessage) ProtoMessage()
- func (x *ServerForwardMessage) ProtoReflect() protoreflect.Message
- func (x *ServerForwardMessage) Reset()
- func (x *ServerForwardMessage) String() string
- type SpatialChannelsReadyMessage
- func (*SpatialChannelsReadyMessage) Descriptor() ([]byte, []int)deprecated
- func (x *SpatialChannelsReadyMessage) GetServerCount() uint32
- func (x *SpatialChannelsReadyMessage) GetServerIndex() uint32
- func (*SpatialChannelsReadyMessage) ProtoMessage()
- func (x *SpatialChannelsReadyMessage) ProtoReflect() protoreflect.Message
- func (x *SpatialChannelsReadyMessage) Reset()
- func (x *SpatialChannelsReadyMessage) String() string
- type SpatialInfo
- func (*SpatialInfo) Descriptor() ([]byte, []int)deprecated
- func (info1 *SpatialInfo) Dist2D(info2 *SpatialInfo) float64
- func (x *SpatialInfo) GetX() float64
- func (x *SpatialInfo) GetY() float64
- func (x *SpatialInfo) GetZ() float64
- func (*SpatialInfo) ProtoMessage()
- func (x *SpatialInfo) ProtoReflect() protoreflect.Message
- func (x *SpatialInfo) Reset()
- func (x *SpatialInfo) String() string
- type SpatialInterestQuery
- func (*SpatialInterestQuery) Descriptor() ([]byte, []int)deprecated
- func (x *SpatialInterestQuery) GetBoxAOI() *SpatialInterestQuery_BoxAOI
- func (x *SpatialInterestQuery) GetConeAOI() *SpatialInterestQuery_ConeAOI
- func (x *SpatialInterestQuery) GetSphereAOI() *SpatialInterestQuery_SphereAOI
- func (x *SpatialInterestQuery) GetSpotsAOI() *SpatialInterestQuery_SpotsAOI
- func (*SpatialInterestQuery) ProtoMessage()
- func (x *SpatialInterestQuery) ProtoReflect() protoreflect.Message
- func (x *SpatialInterestQuery) Reset()
- func (x *SpatialInterestQuery) String() string
- type SpatialInterestQuery_BoxAOI
- func (*SpatialInterestQuery_BoxAOI) Descriptor() ([]byte, []int)deprecated
- func (x *SpatialInterestQuery_BoxAOI) GetCenter() *SpatialInfo
- func (x *SpatialInterestQuery_BoxAOI) GetExtent() *SpatialInfo
- func (*SpatialInterestQuery_BoxAOI) ProtoMessage()
- func (x *SpatialInterestQuery_BoxAOI) ProtoReflect() protoreflect.Message
- func (x *SpatialInterestQuery_BoxAOI) Reset()
- func (x *SpatialInterestQuery_BoxAOI) String() string
- type SpatialInterestQuery_ConeAOI
- func (*SpatialInterestQuery_ConeAOI) Descriptor() ([]byte, []int)deprecated
- func (x *SpatialInterestQuery_ConeAOI) GetAngle() float64
- func (x *SpatialInterestQuery_ConeAOI) GetCenter() *SpatialInfo
- func (x *SpatialInterestQuery_ConeAOI) GetDirection() *SpatialInfo
- func (x *SpatialInterestQuery_ConeAOI) GetRadius() float64
- func (*SpatialInterestQuery_ConeAOI) ProtoMessage()
- func (x *SpatialInterestQuery_ConeAOI) ProtoReflect() protoreflect.Message
- func (x *SpatialInterestQuery_ConeAOI) Reset()
- func (x *SpatialInterestQuery_ConeAOI) String() string
- type SpatialInterestQuery_SphereAOI
- func (*SpatialInterestQuery_SphereAOI) Descriptor() ([]byte, []int)deprecated
- func (x *SpatialInterestQuery_SphereAOI) GetCenter() *SpatialInfo
- func (x *SpatialInterestQuery_SphereAOI) GetRadius() float64
- func (*SpatialInterestQuery_SphereAOI) ProtoMessage()
- func (x *SpatialInterestQuery_SphereAOI) ProtoReflect() protoreflect.Message
- func (x *SpatialInterestQuery_SphereAOI) Reset()
- func (x *SpatialInterestQuery_SphereAOI) String() string
- type SpatialInterestQuery_SpotsAOI
- func (*SpatialInterestQuery_SpotsAOI) Descriptor() ([]byte, []int)deprecated
- func (x *SpatialInterestQuery_SpotsAOI) GetDists() []uint32
- func (x *SpatialInterestQuery_SpotsAOI) GetSpots() []*SpatialInfo
- func (*SpatialInterestQuery_SpotsAOI) ProtoMessage()
- func (x *SpatialInterestQuery_SpotsAOI) ProtoReflect() protoreflect.Message
- func (x *SpatialInterestQuery_SpotsAOI) Reset()
- func (x *SpatialInterestQuery_SpotsAOI) String() string
- type SpatialRegion
- func (*SpatialRegion) Descriptor() ([]byte, []int)deprecated
- func (x *SpatialRegion) GetChannelId() uint32
- func (x *SpatialRegion) GetMax() *SpatialInfo
- func (x *SpatialRegion) GetMin() *SpatialInfo
- func (x *SpatialRegion) GetServerIndex() uint32
- func (*SpatialRegion) ProtoMessage()
- func (x *SpatialRegion) ProtoReflect() protoreflect.Message
- func (x *SpatialRegion) Reset()
- func (x *SpatialRegion) String() string
- type SpatialRegionsUpdateMessage
- func (*SpatialRegionsUpdateMessage) Descriptor() ([]byte, []int)deprecated
- func (x *SpatialRegionsUpdateMessage) GetRegions() []*SpatialRegion
- func (*SpatialRegionsUpdateMessage) ProtoMessage()
- func (x *SpatialRegionsUpdateMessage) ProtoReflect() protoreflect.Message
- func (x *SpatialRegionsUpdateMessage) Reset()
- func (x *SpatialRegionsUpdateMessage) String() string
- type SubscribedToChannelMessage
- func (*SubscribedToChannelMessage) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribedToChannelMessage) GetConnId() uint32
- func (x *SubscribedToChannelMessage) GetSubOptions() *ChannelSubscriptionOptions
- func (*SubscribedToChannelMessage) ProtoMessage()
- func (x *SubscribedToChannelMessage) ProtoReflect() protoreflect.Message
- func (x *SubscribedToChannelMessage) Reset()
- func (x *SubscribedToChannelMessage) String() string
- type SubscribedToChannelResultMessage
- func (*SubscribedToChannelResultMessage) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribedToChannelResultMessage) GetChannelType() ChannelType
- func (x *SubscribedToChannelResultMessage) GetConnId() uint32
- func (x *SubscribedToChannelResultMessage) GetConnType() ConnectionType
- func (x *SubscribedToChannelResultMessage) GetSubOptions() *ChannelSubscriptionOptions
- func (*SubscribedToChannelResultMessage) ProtoMessage()
- func (x *SubscribedToChannelResultMessage) ProtoReflect() protoreflect.Message
- func (x *SubscribedToChannelResultMessage) Reset()
- func (x *SubscribedToChannelResultMessage) String() string
- type TransformState
- func (*TransformState) Descriptor() ([]byte, []int)deprecated
- func (x *TransformState) GetPosition() *Vector3F
- func (x *TransformState) GetRemoved() bool
- func (x *TransformState) GetRotation() *Vector4F
- func (x *TransformState) GetScale() *Vector3F
- func (*TransformState) ProtoMessage()
- func (x *TransformState) ProtoReflect() protoreflect.Message
- func (x *TransformState) Reset()
- func (x *TransformState) String() string
- type UnsubscribedFromChannelMessage
- func (*UnsubscribedFromChannelMessage) Descriptor() ([]byte, []int)deprecated
- func (x *UnsubscribedFromChannelMessage) GetConnId() uint32
- func (*UnsubscribedFromChannelMessage) ProtoMessage()
- func (x *UnsubscribedFromChannelMessage) ProtoReflect() protoreflect.Message
- func (x *UnsubscribedFromChannelMessage) Reset()
- func (x *UnsubscribedFromChannelMessage) String() string
- type UnsubscribedFromChannelResultMessage
- func (*UnsubscribedFromChannelResultMessage) Descriptor() ([]byte, []int)deprecated
- func (x *UnsubscribedFromChannelResultMessage) GetChannelType() ChannelType
- func (x *UnsubscribedFromChannelResultMessage) GetConnId() uint32
- func (x *UnsubscribedFromChannelResultMessage) GetConnType() ConnectionType
- func (*UnsubscribedFromChannelResultMessage) ProtoMessage()
- func (x *UnsubscribedFromChannelResultMessage) ProtoReflect() protoreflect.Message
- func (x *UnsubscribedFromChannelResultMessage) Reset()
- func (x *UnsubscribedFromChannelResultMessage) String() string
- type UpdateSpatialInterestMessage
- func (*UpdateSpatialInterestMessage) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSpatialInterestMessage) GetConnId() uint32
- func (x *UpdateSpatialInterestMessage) GetQuery() *SpatialInterestQuery
- func (*UpdateSpatialInterestMessage) ProtoMessage()
- func (x *UpdateSpatialInterestMessage) ProtoReflect() protoreflect.Message
- func (x *UpdateSpatialInterestMessage) Reset()
- func (x *UpdateSpatialInterestMessage) String() string
- type Vector3F
- func (*Vector3F) Descriptor() ([]byte, []int)deprecated
- func (x *Vector3F) GetX() float32
- func (x *Vector3F) GetY() float32
- func (x *Vector3F) GetZ() float32
- func (*Vector3F) ProtoMessage()
- func (x *Vector3F) ProtoReflect() protoreflect.Message
- func (x *Vector3F) Reset()
- func (x *Vector3F) String() string
- type Vector4F
- func (*Vector4F) Descriptor() ([]byte, []int)deprecated
- func (x *Vector4F) GetW() float32
- func (x *Vector4F) GetX() float32
- func (x *Vector4F) GetY() float32
- func (x *Vector4F) GetZ() float32
- func (*Vector4F) ProtoMessage()
- func (x *Vector4F) ProtoReflect() protoreflect.Message
- func (x *Vector4F) Reset()
- func (x *Vector4F) String() string
Constants ¶
This section is empty.
Variables ¶
var ( BroadcastType_name = map[int32]string{ 0: "NO_BROADCAST", 1: "SINGLE_CONNECTION", 2: "ALL", 4: "ALL_BUT_SENDER", 8: "ALL_BUT_OWNER", 16: "ALL_BUT_CLIENT", 32: "ALL_BUT_SERVER", 64: "ADJACENT_CHANNELS", } BroadcastType_value = map[string]int32{ "NO_BROADCAST": 0, "SINGLE_CONNECTION": 1, "ALL": 2, "ALL_BUT_SENDER": 4, "ALL_BUT_OWNER": 8, "ALL_BUT_CLIENT": 16, "ALL_BUT_SERVER": 32, "ADJACENT_CHANNELS": 64, } )
Enum value maps for BroadcastType.
var ( ConnectionType_name = map[int32]string{ 0: "NO_CONNECTION", 1: "SERVER", 2: "CLIENT", } ConnectionType_value = map[string]int32{ "NO_CONNECTION": 0, "SERVER": 1, "CLIENT": 2, } )
Enum value maps for ConnectionType.
var ( ChannelType_name = map[int32]string{ 0: "UNKNOWN", 1: "GLOBAL", 2: "PRIVATE", 3: "SUBWORLD", 4: "SPATIAL", 5: "ENTITY", 100: "TEST", 101: "TEST1", 102: "TEST2", 103: "TEST3", 104: "TEST4", } ChannelType_value = map[string]int32{ "UNKNOWN": 0, "GLOBAL": 1, "PRIVATE": 2, "SUBWORLD": 3, "SPATIAL": 4, "ENTITY": 5, "TEST": 100, "TEST1": 101, "TEST2": 102, "TEST3": 103, "TEST4": 104, } )
Enum value maps for ChannelType.
var ( MessageType_name = map[int32]string{ 0: "INVALID", 1: "AUTH", 3: "CREATE_CHANNEL", 4: "REMOVE_CHANNEL", 5: "LIST_CHANNEL", 6: "SUB_TO_CHANNEL", 7: "UNSUB_FROM_CHANNEL", 8: "CHANNEL_DATA_UPDATE", 9: "DISCONNECT", 10: "CREATE_SPATIAL_CHANNEL", 11: "QUERY_SPATIAL_CHANNEL", 12: "CHANNEL_DATA_HANDOVER", 13: "SPATIAL_REGIONS_UPDATE", 14: "UPDATE_SPATIAL_INTEREST", 15: "CREATE_ENTITY_CHANNEL", 16: "ENTITY_GROUP_ADD", 17: "ENTITY_GROUP_REMOVE", 18: "SPATIAL_CHANNELS_READY", 99: "DEBUG_GET_SPATIAL_REGIONS", 100: "USER_SPACE_START", } MessageType_value = map[string]int32{ "INVALID": 0, "AUTH": 1, "CREATE_CHANNEL": 3, "REMOVE_CHANNEL": 4, "LIST_CHANNEL": 5, "SUB_TO_CHANNEL": 6, "UNSUB_FROM_CHANNEL": 7, "CHANNEL_DATA_UPDATE": 8, "DISCONNECT": 9, "CREATE_SPATIAL_CHANNEL": 10, "QUERY_SPATIAL_CHANNEL": 11, "CHANNEL_DATA_HANDOVER": 12, "SPATIAL_REGIONS_UPDATE": 13, "UPDATE_SPATIAL_INTEREST": 14, "CREATE_ENTITY_CHANNEL": 15, "ENTITY_GROUP_ADD": 16, "ENTITY_GROUP_REMOVE": 17, "SPATIAL_CHANNELS_READY": 18, "DEBUG_GET_SPATIAL_REGIONS": 99, "USER_SPACE_START": 100, } )
Enum value maps for MessageType.
var ( CompressionType_name = map[int32]string{ 0: "NO_COMPRESSION", 1: "SNAPPY", } CompressionType_value = map[string]int32{ "NO_COMPRESSION": 0, "SNAPPY": 1, } )
Enum value maps for CompressionType.
var ( ChannelDataAccess_name = map[int32]string{ 0: "NO_ACCESS", 1: "READ_ACCESS", 2: "WRITE_ACCESS", } ChannelDataAccess_value = map[string]int32{ "NO_ACCESS": 0, "READ_ACCESS": 1, "WRITE_ACCESS": 2, } )
Enum value maps for ChannelDataAccess.
var ( EntityGroupType_name = map[int32]string{ 0: "HANDOVER", 1: "LOCK", } EntityGroupType_value = map[string]int32{ "HANDOVER": 0, "LOCK": 1, } )
Enum value maps for EntityGroupType.
var ( AuthResultMessage_AuthResult_name = map[int32]string{ 0: "SUCCESSFUL", 1: "INVALID_PIT", 2: "INVALID_LT", } AuthResultMessage_AuthResult_value = map[string]int32{ "SUCCESSFUL": 0, "INVALID_PIT": 1, "INVALID_LT": 2, } )
Enum value maps for AuthResultMessage_AuthResult.
var File_channeld_proto protoreflect.FileDescriptor
var File_unity_common_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AddEntityGroupMessage ¶ added in v0.6.0
type AddEntityGroupMessage struct { Type EntityGroupType `protobuf:"varint,1,opt,name=type,proto3,enum=channeldpb.EntityGroupType" json:"type,omitempty"` EntitiesToAdd []uint32 `protobuf:"varint,2,rep,packed,name=EntitiesToAdd,proto3" json:"EntitiesToAdd,omitempty"` // contains filtered or unexported fields }
Add specified entities to the handover/lock group of the entity channel. Should sent by the entity channel owner.
func (*AddEntityGroupMessage) Descriptor
deprecated
added in
v0.6.0
func (*AddEntityGroupMessage) Descriptor() ([]byte, []int)
Deprecated: Use AddEntityGroupMessage.ProtoReflect.Descriptor instead.
func (*AddEntityGroupMessage) GetEntitiesToAdd ¶ added in v0.6.0
func (x *AddEntityGroupMessage) GetEntitiesToAdd() []uint32
func (*AddEntityGroupMessage) GetType ¶ added in v0.6.0
func (x *AddEntityGroupMessage) GetType() EntityGroupType
func (*AddEntityGroupMessage) ProtoMessage ¶ added in v0.6.0
func (*AddEntityGroupMessage) ProtoMessage()
func (*AddEntityGroupMessage) ProtoReflect ¶ added in v0.6.0
func (x *AddEntityGroupMessage) ProtoReflect() protoreflect.Message
func (*AddEntityGroupMessage) Reset ¶ added in v0.6.0
func (x *AddEntityGroupMessage) Reset()
func (*AddEntityGroupMessage) String ¶ added in v0.6.0
func (x *AddEntityGroupMessage) String() string
type AuthMessage ¶
type AuthMessage struct { PlayerIdentifierToken string `protobuf:"bytes,1,opt,name=playerIdentifierToken,proto3" json:"playerIdentifierToken,omitempty"` LoginToken string `protobuf:"bytes,2,opt,name=loginToken,proto3" json:"loginToken,omitempty"` // contains filtered or unexported fields }
The message should have channelId = 0 in order to be handled. Response: @AuthResultMessage. The GLOBAL channel owner will also receive this message (to handle the client's subscription if it doesn't have the authority to).
func (*AuthMessage) Descriptor
deprecated
func (*AuthMessage) Descriptor() ([]byte, []int)
Deprecated: Use AuthMessage.ProtoReflect.Descriptor instead.
func (*AuthMessage) GetLoginToken ¶
func (x *AuthMessage) GetLoginToken() string
func (*AuthMessage) GetPlayerIdentifierToken ¶
func (x *AuthMessage) GetPlayerIdentifierToken() string
func (*AuthMessage) ProtoMessage ¶
func (*AuthMessage) ProtoMessage()
func (*AuthMessage) ProtoReflect ¶
func (x *AuthMessage) ProtoReflect() protoreflect.Message
func (*AuthMessage) Reset ¶
func (x *AuthMessage) Reset()
func (*AuthMessage) String ¶
func (x *AuthMessage) String() string
type AuthResultMessage ¶
type AuthResultMessage struct { Result AuthResultMessage_AuthResult `protobuf:"varint,1,opt,name=result,proto3,enum=channeldpb.AuthResultMessage_AuthResult" json:"result,omitempty"` ConnId uint32 `protobuf:"varint,2,opt,name=connId,proto3" json:"connId,omitempty"` // The compression type should be used for future communication. // However, because the compression type is specified per packet, the client has its freedom to control which compression type to use. // It's useful when the client has too much CPU load for the compression, or the network debug is needed. CompressionType CompressionType `protobuf:"varint,3,opt,name=compressionType,proto3,enum=channeldpb.CompressionType" json:"compressionType,omitempty"` // contains filtered or unexported fields }
func (*AuthResultMessage) Descriptor
deprecated
func (*AuthResultMessage) Descriptor() ([]byte, []int)
Deprecated: Use AuthResultMessage.ProtoReflect.Descriptor instead.
func (*AuthResultMessage) GetCompressionType ¶
func (x *AuthResultMessage) GetCompressionType() CompressionType
func (*AuthResultMessage) GetConnId ¶
func (x *AuthResultMessage) GetConnId() uint32
func (*AuthResultMessage) GetResult ¶
func (x *AuthResultMessage) GetResult() AuthResultMessage_AuthResult
func (*AuthResultMessage) ProtoMessage ¶
func (*AuthResultMessage) ProtoMessage()
func (*AuthResultMessage) ProtoReflect ¶
func (x *AuthResultMessage) ProtoReflect() protoreflect.Message
func (*AuthResultMessage) Reset ¶
func (x *AuthResultMessage) Reset()
func (*AuthResultMessage) String ¶
func (x *AuthResultMessage) String() string
type AuthResultMessage_AuthResult ¶
type AuthResultMessage_AuthResult int32
const ( AuthResultMessage_SUCCESSFUL AuthResultMessage_AuthResult = 0 AuthResultMessage_INVALID_PIT AuthResultMessage_AuthResult = 1 AuthResultMessage_INVALID_LT AuthResultMessage_AuthResult = 2 )
func (AuthResultMessage_AuthResult) Descriptor ¶
func (AuthResultMessage_AuthResult) Descriptor() protoreflect.EnumDescriptor
func (AuthResultMessage_AuthResult) Enum ¶
func (x AuthResultMessage_AuthResult) Enum() *AuthResultMessage_AuthResult
func (AuthResultMessage_AuthResult) EnumDescriptor
deprecated
func (AuthResultMessage_AuthResult) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuthResultMessage_AuthResult.Descriptor instead.
func (AuthResultMessage_AuthResult) Number ¶
func (x AuthResultMessage_AuthResult) Number() protoreflect.EnumNumber
func (AuthResultMessage_AuthResult) String ¶
func (x AuthResultMessage_AuthResult) String() string
func (AuthResultMessage_AuthResult) Type ¶
func (AuthResultMessage_AuthResult) Type() protoreflect.EnumType
type BroadcastType ¶
type BroadcastType int32
Can be used as the Flags-style enum in C#. See https://groups.google.com/g/protobuf/c/L105Q4NIk0U?pli=1.
const ( // No broadcast. All internal messages should use this type, and other types are ignored. BroadcastType_NO_BROADCAST BroadcastType = 0 // Forward the message to the connection. Can only be used by the backend server. // This has the same behavior as sending the message to the PRIVATE channel owned by the target connection with BroadcastType = NO. BroadcastType_SINGLE_CONNECTION BroadcastType = 1 // Broadcast the message to all the connections in the channel, the sender included. BroadcastType_ALL BroadcastType = 2 // Broadcast the message to all the connections in the channel, the sender excluded. BroadcastType_ALL_BUT_SENDER BroadcastType = 4 // Broadcast the message to all the connections in the channel, the owner excluded. BroadcastType_ALL_BUT_OWNER BroadcastType = 8 // Broadcast the message to all client connections in the channel. BroadcastType_ALL_BUT_CLIENT BroadcastType = 16 // Broadcast the message to all server connections in the channel, the owner excluded. BroadcastType_ALL_BUT_SERVER BroadcastType = 32 // Broadcast the message to all the connections in all the adjacent(3x3) spatial channels. Ignored if the target channel is not a spatial channel. // To ignore the center spatial channel, use ADJACENT_CHANNELS | ALL_BUT_OWNER; to ignore the sender(spatial server), use ADJACENT_CHANNELS | ALL_BUT_SENDER. BroadcastType_ADJACENT_CHANNELS BroadcastType = 64 )
func (BroadcastType) Check ¶
func (broadcast BroadcastType) Check(value uint32) bool
func (BroadcastType) Descriptor ¶
func (BroadcastType) Descriptor() protoreflect.EnumDescriptor
func (BroadcastType) Enum ¶
func (x BroadcastType) Enum() *BroadcastType
func (BroadcastType) EnumDescriptor
deprecated
func (BroadcastType) EnumDescriptor() ([]byte, []int)
Deprecated: Use BroadcastType.Descriptor instead.
func (BroadcastType) Number ¶
func (x BroadcastType) Number() protoreflect.EnumNumber
func (BroadcastType) String ¶
func (x BroadcastType) String() string
func (BroadcastType) Type ¶
func (BroadcastType) Type() protoreflect.EnumType
type ChannelDataAccess ¶
type ChannelDataAccess int32
const ( ChannelDataAccess_NO_ACCESS ChannelDataAccess = 0 ChannelDataAccess_READ_ACCESS ChannelDataAccess = 1 ChannelDataAccess_WRITE_ACCESS ChannelDataAccess = 2 )
func (ChannelDataAccess) Descriptor ¶
func (ChannelDataAccess) Descriptor() protoreflect.EnumDescriptor
func (ChannelDataAccess) Enum ¶
func (x ChannelDataAccess) Enum() *ChannelDataAccess
func (ChannelDataAccess) EnumDescriptor
deprecated
func (ChannelDataAccess) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChannelDataAccess.Descriptor instead.
func (ChannelDataAccess) Number ¶
func (x ChannelDataAccess) Number() protoreflect.EnumNumber
func (ChannelDataAccess) String ¶
func (x ChannelDataAccess) String() string
func (ChannelDataAccess) Type ¶
func (ChannelDataAccess) Type() protoreflect.EnumType
type ChannelDataHandoverMessage ¶
type ChannelDataHandoverMessage struct { SrcChannelId uint32 `protobuf:"varint,1,opt,name=srcChannelId,proto3" json:"srcChannelId,omitempty"` DstChannelId uint32 `protobuf:"varint,2,opt,name=dstChannelId,proto3" json:"dstChannelId,omitempty"` // The ID of the client connection that triggered the handover. If the handover is triggered by server (e.g. NPC movement), the value will be 0. ContextConnId uint32 `protobuf:"varint,3,opt,name=contextConnId,proto3" json:"contextConnId,omitempty"` // The data that migrate from the source channel to the destination channel. It can be the spatial channel data or anything, as long as the spatial servers can use it to process the handover. Data *anypb.Any `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
ALL connections in the source AND destination channels receive this messge when a handover happpned. Handover means an object moves from a spatial channel to another. It doesn't necessarily mean the objece moves from a spatial server to another.
func (*ChannelDataHandoverMessage) Descriptor
deprecated
func (*ChannelDataHandoverMessage) Descriptor() ([]byte, []int)
Deprecated: Use ChannelDataHandoverMessage.ProtoReflect.Descriptor instead.
func (*ChannelDataHandoverMessage) GetContextConnId ¶
func (x *ChannelDataHandoverMessage) GetContextConnId() uint32
func (*ChannelDataHandoverMessage) GetData ¶
func (x *ChannelDataHandoverMessage) GetData() *anypb.Any
func (*ChannelDataHandoverMessage) GetDstChannelId ¶
func (x *ChannelDataHandoverMessage) GetDstChannelId() uint32
func (*ChannelDataHandoverMessage) GetSrcChannelId ¶
func (x *ChannelDataHandoverMessage) GetSrcChannelId() uint32
func (*ChannelDataHandoverMessage) ProtoMessage ¶
func (*ChannelDataHandoverMessage) ProtoMessage()
func (*ChannelDataHandoverMessage) ProtoReflect ¶
func (x *ChannelDataHandoverMessage) ProtoReflect() protoreflect.Message
func (*ChannelDataHandoverMessage) Reset ¶
func (x *ChannelDataHandoverMessage) Reset()
func (*ChannelDataHandoverMessage) String ¶
func (x *ChannelDataHandoverMessage) String() string
type ChannelDataMergeOptions ¶
type ChannelDataMergeOptions struct { // By default, Protobuf appends the src list to the dst list. Setting this option to true will replace the dst list with the src list. ShouldReplaceList bool `protobuf:"varint,1,opt,name=shouldReplaceList,proto3" json:"shouldReplaceList,omitempty"` // If the value is greater than 0, truncate the the list when oversized. ListSizeLimit uint32 `protobuf:"varint,2,opt,name=listSizeLimit,proto3" json:"listSizeLimit,omitempty"` // If true, the top elements of the list will be truncated instead of the end. It's useful for scenarios like chat message list. TruncateTop bool `protobuf:"varint,3,opt,name=truncateTop,proto3" json:"truncateTop,omitempty"` // If true, the merge method will remove any map entry that has removed=true in its value. ShouldCheckRemovableMapField bool `protobuf:"varint,4,opt,name=shouldCheckRemovableMapField,proto3" json:"shouldCheckRemovableMapField,omitempty"` // contains filtered or unexported fields }
Defines how two @ChannelDataUpdateMessage.data are merged. The custom merge function should always be implemented for the sake of performance. Otherwise, the default merge that based on Protobuf's reflection will be used, and it's >10 times slower.
func (*ChannelDataMergeOptions) Descriptor
deprecated
func (*ChannelDataMergeOptions) Descriptor() ([]byte, []int)
Deprecated: Use ChannelDataMergeOptions.ProtoReflect.Descriptor instead.
func (*ChannelDataMergeOptions) GetListSizeLimit ¶
func (x *ChannelDataMergeOptions) GetListSizeLimit() uint32
func (*ChannelDataMergeOptions) GetShouldCheckRemovableMapField ¶
func (x *ChannelDataMergeOptions) GetShouldCheckRemovableMapField() bool
func (*ChannelDataMergeOptions) GetShouldReplaceList ¶
func (x *ChannelDataMergeOptions) GetShouldReplaceList() bool
func (*ChannelDataMergeOptions) GetTruncateTop ¶
func (x *ChannelDataMergeOptions) GetTruncateTop() bool
func (*ChannelDataMergeOptions) ProtoMessage ¶
func (*ChannelDataMergeOptions) ProtoMessage()
func (*ChannelDataMergeOptions) ProtoReflect ¶
func (x *ChannelDataMergeOptions) ProtoReflect() protoreflect.Message
func (*ChannelDataMergeOptions) Reset ¶
func (x *ChannelDataMergeOptions) Reset()
func (*ChannelDataMergeOptions) String ¶
func (x *ChannelDataMergeOptions) String() string
type ChannelDataUpdateMessage ¶
type ChannelDataUpdateMessage struct { Data *anypb.Any `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // The ID of the connection that causes the update of the channel data. // In a server-authoratative system (which means the @ChannelDataUpdateMessage will only be sent by server), the servers need to send this field to channeld. // If the sender is a client, this field will be ignored. ContextConnId uint32 `protobuf:"varint,2,opt,name=contextConnId,proto3" json:"contextConnId,omitempty"` // contains filtered or unexported fields }
Response: no. Each connection in the channel receives the @ChannelDataUpdateMessage in every @ChannelSubscriptionOptions.FanOutIntervalMs
func (*ChannelDataUpdateMessage) Descriptor
deprecated
func (*ChannelDataUpdateMessage) Descriptor() ([]byte, []int)
Deprecated: Use ChannelDataUpdateMessage.ProtoReflect.Descriptor instead.
func (*ChannelDataUpdateMessage) GetContextConnId ¶
func (x *ChannelDataUpdateMessage) GetContextConnId() uint32
func (*ChannelDataUpdateMessage) GetData ¶
func (x *ChannelDataUpdateMessage) GetData() *anypb.Any
func (*ChannelDataUpdateMessage) ProtoMessage ¶
func (*ChannelDataUpdateMessage) ProtoMessage()
func (*ChannelDataUpdateMessage) ProtoReflect ¶
func (x *ChannelDataUpdateMessage) ProtoReflect() protoreflect.Message
func (*ChannelDataUpdateMessage) Reset ¶
func (x *ChannelDataUpdateMessage) Reset()
func (*ChannelDataUpdateMessage) String ¶
func (x *ChannelDataUpdateMessage) String() string
type ChannelSubscriptionOptions ¶
type ChannelSubscriptionOptions struct { // Should the subscriber be able to update the channel data? // Use enum over bool as in Protobuf, after setting a bool field to true, merging it with false won't work! DataAccess *ChannelDataAccess `protobuf:"varint,1,opt,name=dataAccess,proto3,enum=channeldpb.ChannelDataAccess,oneof" json:"dataAccess,omitempty"` // How the fields are filtered before sending to the subscriber. // For detailed usage, see https://developers.google.com/protocol-buffers/docs/reference/csharp/class/google/protobuf/well-known-types/field-mask. DataFieldMasks []string `protobuf:"bytes,2,rep,name=dataFieldMasks,proto3" json:"dataFieldMasks,omitempty"` // How frequent the updated channel data will be fanned-out to the subscriber, in millisecond. // For an MMORPG-style server/client, the value should be between 50-100, while an FPS-style game, the value should be between 10-30. FanOutIntervalMs *uint32 `protobuf:"varint,3,opt,name=fanOutIntervalMs,proto3,oneof" json:"fanOutIntervalMs,omitempty"` // How long between the subscription and the first (and full-state) ChannelDataUpdateMessage being send to the subscriber, in millisecond. // To be accurate, the first fan-out time will be (sub time + fan-out delay). It's possible to set the delay to a negative value to makee the first fan-out happen earlier. // Fan-out delay is useful when the clients need spawn message (sent from the backend server) to be handled, before handling the ChannelDataUpdateMessage properly. // In Mirror, it can take up to 100ms to wait. FanOutDelayMs *int32 `protobuf:"varint,4,opt,name=fanOutDelayMs,proto3,oneof" json:"fanOutDelayMs,omitempty"` // Whether the subscriber should skip the fan-out of its own ChannelDataUpdate. Default is true. SkipSelfUpdateFanOut *bool `protobuf:"varint,5,opt,name=skipSelfUpdateFanOut,proto3,oneof" json:"skipSelfUpdateFanOut,omitempty"` // Whether the subscriber should skip the first fan-out that contains the full states. Default is false. SkipFirstFanOut *bool `protobuf:"varint,6,opt,name=skipFirstFanOut,proto3,oneof" json:"skipFirstFanOut,omitempty"` // contains filtered or unexported fields }
func (*ChannelSubscriptionOptions) Descriptor
deprecated
func (*ChannelSubscriptionOptions) Descriptor() ([]byte, []int)
Deprecated: Use ChannelSubscriptionOptions.ProtoReflect.Descriptor instead.
func (*ChannelSubscriptionOptions) GetDataAccess ¶
func (x *ChannelSubscriptionOptions) GetDataAccess() ChannelDataAccess
func (*ChannelSubscriptionOptions) GetDataFieldMasks ¶
func (x *ChannelSubscriptionOptions) GetDataFieldMasks() []string
func (*ChannelSubscriptionOptions) GetFanOutDelayMs ¶
func (x *ChannelSubscriptionOptions) GetFanOutDelayMs() int32
func (*ChannelSubscriptionOptions) GetFanOutIntervalMs ¶
func (x *ChannelSubscriptionOptions) GetFanOutIntervalMs() uint32
func (*ChannelSubscriptionOptions) GetSkipFirstFanOut ¶ added in v0.6.0
func (x *ChannelSubscriptionOptions) GetSkipFirstFanOut() bool
func (*ChannelSubscriptionOptions) GetSkipSelfUpdateFanOut ¶
func (x *ChannelSubscriptionOptions) GetSkipSelfUpdateFanOut() bool
func (*ChannelSubscriptionOptions) ProtoMessage ¶
func (*ChannelSubscriptionOptions) ProtoMessage()
func (*ChannelSubscriptionOptions) ProtoReflect ¶
func (x *ChannelSubscriptionOptions) ProtoReflect() protoreflect.Message
func (*ChannelSubscriptionOptions) Reset ¶
func (x *ChannelSubscriptionOptions) Reset()
func (*ChannelSubscriptionOptions) String ¶
func (x *ChannelSubscriptionOptions) String() string
type ChannelType ¶
type ChannelType int32
const ( ChannelType_UNKNOWN ChannelType = 0 // Default channel. Any message without ChannelId specified (equals 0) will be sent to this channel. ChannelType_GLOBAL ChannelType = 1 // Per-connection channel. Useful to store the user data and subscribe the client to the data update. ChannelType_PRIVATE ChannelType = 2 // A game "room" in a session-based game, or a "dungeon" in an MMORPG. Subworlds are spatially divided thus the interests are isolated. ChannelType_SUBWORLD ChannelType = 3 // Spatial channels are spatailly connected. Using this type of channel to implement a seamless open world which consists of servers, and each server simulates a part of the world. // Only server connections can create the spatial channel. ChannelType_SPATIAL ChannelType = 4 ChannelType_ENTITY ChannelType = 5 // The following are for tests. ChannelType_TEST ChannelType = 100 ChannelType_TEST1 ChannelType = 101 ChannelType_TEST2 ChannelType = 102 ChannelType_TEST3 ChannelType = 103 ChannelType_TEST4 ChannelType = 104 )
func (ChannelType) Descriptor ¶
func (ChannelType) Descriptor() protoreflect.EnumDescriptor
func (ChannelType) Enum ¶
func (x ChannelType) Enum() *ChannelType
func (ChannelType) EnumDescriptor
deprecated
func (ChannelType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChannelType.Descriptor instead.
func (ChannelType) Number ¶
func (x ChannelType) Number() protoreflect.EnumNumber
func (ChannelType) String ¶
func (x ChannelType) String() string
func (ChannelType) Type ¶
func (ChannelType) Type() protoreflect.EnumType
type CompressionType ¶
type CompressionType int32
const ( CompressionType_NO_COMPRESSION CompressionType = 0 // https://github.com/google/snappy CompressionType_SNAPPY CompressionType = 1 )
func (CompressionType) Descriptor ¶
func (CompressionType) Descriptor() protoreflect.EnumDescriptor
func (CompressionType) Enum ¶
func (x CompressionType) Enum() *CompressionType
func (CompressionType) EnumDescriptor
deprecated
func (CompressionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CompressionType.Descriptor instead.
func (CompressionType) Number ¶
func (x CompressionType) Number() protoreflect.EnumNumber
func (CompressionType) String ¶
func (x CompressionType) String() string
func (CompressionType) Type ¶
func (CompressionType) Type() protoreflect.EnumType
type ConnectionType ¶
type ConnectionType int32
const ( ConnectionType_NO_CONNECTION ConnectionType = 0 ConnectionType_SERVER ConnectionType = 1 ConnectionType_CLIENT ConnectionType = 2 )
func (ConnectionType) Descriptor ¶
func (ConnectionType) Descriptor() protoreflect.EnumDescriptor
func (ConnectionType) Enum ¶
func (x ConnectionType) Enum() *ConnectionType
func (ConnectionType) EnumDescriptor
deprecated
func (ConnectionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConnectionType.Descriptor instead.
func (ConnectionType) Number ¶
func (x ConnectionType) Number() protoreflect.EnumNumber
func (ConnectionType) String ¶
func (x ConnectionType) String() string
func (ConnectionType) Type ¶
func (ConnectionType) Type() protoreflect.EnumType
type CreateChannelMessage ¶
type CreateChannelMessage struct { ChannelType ChannelType `protobuf:"varint,1,opt,name=channelType,proto3,enum=channeldpb.ChannelType" json:"channelType,omitempty"` Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` SubOptions *ChannelSubscriptionOptions `protobuf:"bytes,3,opt,name=subOptions,proto3" json:"subOptions,omitempty"` Data *anypb.Any `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` MergeOptions *ChannelDataMergeOptions `protobuf:"bytes,5,opt,name=mergeOptions,proto3" json:"mergeOptions,omitempty"` // contains filtered or unexported fields }
The message should have channelId = 0 in order to be handled. Response: @CreateChannelResultMessage, if the MessageType is CREATE_CHANNEL and the channelType is not SPATIAL. The GLOBAL channel owner will also receive this message. Response: @CreateSpatialChannelsResultMessage, if the MessageType is CREATE_SPATIAL_CHANNEL and the channelType is SPATIAL. The GLOBAL channel owner will also receive this message. Response: @SubscribedToChannelResultMessage. The channel creator will also be subscribed to the channel immediately after the creation.
func (*CreateChannelMessage) Descriptor
deprecated
func (*CreateChannelMessage) Descriptor() ([]byte, []int)
Deprecated: Use CreateChannelMessage.ProtoReflect.Descriptor instead.
func (*CreateChannelMessage) GetChannelType ¶
func (x *CreateChannelMessage) GetChannelType() ChannelType
func (*CreateChannelMessage) GetData ¶
func (x *CreateChannelMessage) GetData() *anypb.Any
func (*CreateChannelMessage) GetMergeOptions ¶
func (x *CreateChannelMessage) GetMergeOptions() *ChannelDataMergeOptions
func (*CreateChannelMessage) GetMetadata ¶
func (x *CreateChannelMessage) GetMetadata() string
func (*CreateChannelMessage) GetSubOptions ¶
func (x *CreateChannelMessage) GetSubOptions() *ChannelSubscriptionOptions
func (*CreateChannelMessage) ProtoMessage ¶
func (*CreateChannelMessage) ProtoMessage()
func (*CreateChannelMessage) ProtoReflect ¶
func (x *CreateChannelMessage) ProtoReflect() protoreflect.Message
func (*CreateChannelMessage) Reset ¶
func (x *CreateChannelMessage) Reset()
func (*CreateChannelMessage) String ¶
func (x *CreateChannelMessage) String() string
type CreateChannelResultMessage ¶
type CreateChannelResultMessage struct { ChannelType ChannelType `protobuf:"varint,1,opt,name=channelType,proto3,enum=channeldpb.ChannelType" json:"channelType,omitempty"` Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` OwnerConnId uint32 `protobuf:"varint,3,opt,name=ownerConnId,proto3" json:"ownerConnId,omitempty"` // The ID of the newly-created channel. Add this field to differentiate it from MessagePack.channelId. ChannelId uint32 `protobuf:"varint,4,opt,name=channelId,proto3" json:"channelId,omitempty"` // contains filtered or unexported fields }
func (*CreateChannelResultMessage) Descriptor
deprecated
func (*CreateChannelResultMessage) Descriptor() ([]byte, []int)
Deprecated: Use CreateChannelResultMessage.ProtoReflect.Descriptor instead.
func (*CreateChannelResultMessage) GetChannelId ¶
func (x *CreateChannelResultMessage) GetChannelId() uint32
func (*CreateChannelResultMessage) GetChannelType ¶
func (x *CreateChannelResultMessage) GetChannelType() ChannelType
func (*CreateChannelResultMessage) GetMetadata ¶
func (x *CreateChannelResultMessage) GetMetadata() string
func (*CreateChannelResultMessage) GetOwnerConnId ¶
func (x *CreateChannelResultMessage) GetOwnerConnId() uint32
func (*CreateChannelResultMessage) ProtoMessage ¶
func (*CreateChannelResultMessage) ProtoMessage()
func (*CreateChannelResultMessage) ProtoReflect ¶
func (x *CreateChannelResultMessage) ProtoReflect() protoreflect.Message
func (*CreateChannelResultMessage) Reset ¶
func (x *CreateChannelResultMessage) Reset()
func (*CreateChannelResultMessage) String ¶
func (x *CreateChannelResultMessage) String() string
type CreateEntityChannelMessage ¶ added in v0.6.0
type CreateEntityChannelMessage struct { EntityId uint32 `protobuf:"varint,1,opt,name=entityId,proto3" json:"entityId,omitempty"` Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` SubOptions *ChannelSubscriptionOptions `protobuf:"bytes,3,opt,name=subOptions,proto3" json:"subOptions,omitempty"` Data *anypb.Any `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` MergeOptions *ChannelDataMergeOptions `protobuf:"bytes,5,opt,name=mergeOptions,proto3" json:"mergeOptions,omitempty"` IsWellKnown bool `protobuf:"varint,6,opt,name=isWellKnown,proto3" json:"isWellKnown,omitempty"` // contains filtered or unexported fields }
func (*CreateEntityChannelMessage) Descriptor
deprecated
added in
v0.6.0
func (*CreateEntityChannelMessage) Descriptor() ([]byte, []int)
Deprecated: Use CreateEntityChannelMessage.ProtoReflect.Descriptor instead.
func (*CreateEntityChannelMessage) GetData ¶ added in v0.6.0
func (x *CreateEntityChannelMessage) GetData() *anypb.Any
func (*CreateEntityChannelMessage) GetEntityId ¶ added in v0.6.0
func (x *CreateEntityChannelMessage) GetEntityId() uint32
func (*CreateEntityChannelMessage) GetIsWellKnown ¶ added in v0.6.0
func (x *CreateEntityChannelMessage) GetIsWellKnown() bool
func (*CreateEntityChannelMessage) GetMergeOptions ¶ added in v0.6.0
func (x *CreateEntityChannelMessage) GetMergeOptions() *ChannelDataMergeOptions
func (*CreateEntityChannelMessage) GetMetadata ¶ added in v0.6.0
func (x *CreateEntityChannelMessage) GetMetadata() string
func (*CreateEntityChannelMessage) GetSubOptions ¶ added in v0.6.0
func (x *CreateEntityChannelMessage) GetSubOptions() *ChannelSubscriptionOptions
func (*CreateEntityChannelMessage) ProtoMessage ¶ added in v0.6.0
func (*CreateEntityChannelMessage) ProtoMessage()
func (*CreateEntityChannelMessage) ProtoReflect ¶ added in v0.6.0
func (x *CreateEntityChannelMessage) ProtoReflect() protoreflect.Message
func (*CreateEntityChannelMessage) Reset ¶ added in v0.6.0
func (x *CreateEntityChannelMessage) Reset()
func (*CreateEntityChannelMessage) String ¶ added in v0.6.0
func (x *CreateEntityChannelMessage) String() string
type CreateSpatialChannelsResultMessage ¶
type CreateSpatialChannelsResultMessage struct { SpatialChannelId []uint32 `protobuf:"varint,1,rep,packed,name=spatialChannelId,proto3" json:"spatialChannelId,omitempty"` Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` OwnerConnId uint32 `protobuf:"varint,3,opt,name=ownerConnId,proto3" json:"ownerConnId,omitempty"` // contains filtered or unexported fields }
func (*CreateSpatialChannelsResultMessage) Descriptor
deprecated
func (*CreateSpatialChannelsResultMessage) Descriptor() ([]byte, []int)
Deprecated: Use CreateSpatialChannelsResultMessage.ProtoReflect.Descriptor instead.
func (*CreateSpatialChannelsResultMessage) GetMetadata ¶
func (x *CreateSpatialChannelsResultMessage) GetMetadata() string
func (*CreateSpatialChannelsResultMessage) GetOwnerConnId ¶
func (x *CreateSpatialChannelsResultMessage) GetOwnerConnId() uint32
func (*CreateSpatialChannelsResultMessage) GetSpatialChannelId ¶
func (x *CreateSpatialChannelsResultMessage) GetSpatialChannelId() []uint32
func (*CreateSpatialChannelsResultMessage) ProtoMessage ¶
func (*CreateSpatialChannelsResultMessage) ProtoMessage()
func (*CreateSpatialChannelsResultMessage) ProtoReflect ¶
func (x *CreateSpatialChannelsResultMessage) ProtoReflect() protoreflect.Message
func (*CreateSpatialChannelsResultMessage) Reset ¶
func (x *CreateSpatialChannelsResultMessage) Reset()
func (*CreateSpatialChannelsResultMessage) String ¶
func (x *CreateSpatialChannelsResultMessage) String() string
type DebugGetSpatialRegionsMessage ¶
type DebugGetSpatialRegionsMessage struct {
// contains filtered or unexported fields
}
Client requests the spatail regions information. Only valid in Development mode (with "-dev" launch argument). Response: @SpatialRegionsUpdateMessage
func (*DebugGetSpatialRegionsMessage) Descriptor
deprecated
func (*DebugGetSpatialRegionsMessage) Descriptor() ([]byte, []int)
Deprecated: Use DebugGetSpatialRegionsMessage.ProtoReflect.Descriptor instead.
func (*DebugGetSpatialRegionsMessage) ProtoMessage ¶
func (*DebugGetSpatialRegionsMessage) ProtoMessage()
func (*DebugGetSpatialRegionsMessage) ProtoReflect ¶
func (x *DebugGetSpatialRegionsMessage) ProtoReflect() protoreflect.Message
func (*DebugGetSpatialRegionsMessage) Reset ¶
func (x *DebugGetSpatialRegionsMessage) Reset()
func (*DebugGetSpatialRegionsMessage) String ¶
func (x *DebugGetSpatialRegionsMessage) String() string
type DisconnectMessage ¶
type DisconnectMessage struct { ConnId uint32 `protobuf:"varint,1,opt,name=connId,proto3" json:"connId,omitempty"` // contains filtered or unexported fields }
Disconnect another connection from channeld. This message should only be sent by the server connection in a server-authoratative environment. The message should have channelId = 0 in order to be handled. Response: no.
func (*DisconnectMessage) Descriptor
deprecated
func (*DisconnectMessage) Descriptor() ([]byte, []int)
Deprecated: Use DisconnectMessage.ProtoReflect.Descriptor instead.
func (*DisconnectMessage) GetConnId ¶
func (x *DisconnectMessage) GetConnId() uint32
func (*DisconnectMessage) ProtoMessage ¶
func (*DisconnectMessage) ProtoMessage()
func (*DisconnectMessage) ProtoReflect ¶
func (x *DisconnectMessage) ProtoReflect() protoreflect.Message
func (*DisconnectMessage) Reset ¶
func (x *DisconnectMessage) Reset()
func (*DisconnectMessage) String ¶
func (x *DisconnectMessage) String() string
type EntityGroupType ¶ added in v0.6.0
type EntityGroupType int32
const ( EntityGroupType_HANDOVER EntityGroupType = 0 EntityGroupType_LOCK EntityGroupType = 1 )
func (EntityGroupType) Descriptor ¶ added in v0.6.0
func (EntityGroupType) Descriptor() protoreflect.EnumDescriptor
func (EntityGroupType) Enum ¶ added in v0.6.0
func (x EntityGroupType) Enum() *EntityGroupType
func (EntityGroupType) EnumDescriptor
deprecated
added in
v0.6.0
func (EntityGroupType) EnumDescriptor() ([]byte, []int)
Deprecated: Use EntityGroupType.Descriptor instead.
func (EntityGroupType) Number ¶ added in v0.6.0
func (x EntityGroupType) Number() protoreflect.EnumNumber
func (EntityGroupType) String ¶ added in v0.6.0
func (x EntityGroupType) String() string
func (EntityGroupType) Type ¶ added in v0.6.0
func (EntityGroupType) Type() protoreflect.EnumType
type ListChannelMessage ¶
type ListChannelMessage struct { TypeFilter ChannelType `protobuf:"varint,1,opt,name=typeFilter,proto3,enum=channeldpb.ChannelType" json:"typeFilter,omitempty"` MetadataFilters []string `protobuf:"bytes,2,rep,name=metadataFilters,proto3" json:"metadataFilters,omitempty"` // contains filtered or unexported fields }
The message should have channelId = 0 in order to be handled. Response: @ListChannelResultMessage
func (*ListChannelMessage) Descriptor
deprecated
func (*ListChannelMessage) Descriptor() ([]byte, []int)
Deprecated: Use ListChannelMessage.ProtoReflect.Descriptor instead.
func (*ListChannelMessage) GetMetadataFilters ¶
func (x *ListChannelMessage) GetMetadataFilters() []string
func (*ListChannelMessage) GetTypeFilter ¶
func (x *ListChannelMessage) GetTypeFilter() ChannelType
func (*ListChannelMessage) ProtoMessage ¶
func (*ListChannelMessage) ProtoMessage()
func (*ListChannelMessage) ProtoReflect ¶
func (x *ListChannelMessage) ProtoReflect() protoreflect.Message
func (*ListChannelMessage) Reset ¶
func (x *ListChannelMessage) Reset()
func (*ListChannelMessage) String ¶
func (x *ListChannelMessage) String() string
type ListChannelResultMessage ¶
type ListChannelResultMessage struct { Channels []*ListChannelResultMessage_ChannelInfo `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"` // contains filtered or unexported fields }
func (*ListChannelResultMessage) Descriptor
deprecated
func (*ListChannelResultMessage) Descriptor() ([]byte, []int)
Deprecated: Use ListChannelResultMessage.ProtoReflect.Descriptor instead.
func (*ListChannelResultMessage) GetChannels ¶
func (x *ListChannelResultMessage) GetChannels() []*ListChannelResultMessage_ChannelInfo
func (*ListChannelResultMessage) ProtoMessage ¶
func (*ListChannelResultMessage) ProtoMessage()
func (*ListChannelResultMessage) ProtoReflect ¶
func (x *ListChannelResultMessage) ProtoReflect() protoreflect.Message
func (*ListChannelResultMessage) Reset ¶
func (x *ListChannelResultMessage) Reset()
func (*ListChannelResultMessage) String ¶
func (x *ListChannelResultMessage) String() string
type ListChannelResultMessage_ChannelInfo ¶
type ListChannelResultMessage_ChannelInfo struct { ChannelId uint32 `protobuf:"varint,1,opt,name=channelId,proto3" json:"channelId,omitempty"` ChannelType ChannelType `protobuf:"varint,2,opt,name=channelType,proto3,enum=channeldpb.ChannelType" json:"channelType,omitempty"` Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*ListChannelResultMessage_ChannelInfo) Descriptor
deprecated
func (*ListChannelResultMessage_ChannelInfo) Descriptor() ([]byte, []int)
Deprecated: Use ListChannelResultMessage_ChannelInfo.ProtoReflect.Descriptor instead.
func (*ListChannelResultMessage_ChannelInfo) GetChannelId ¶
func (x *ListChannelResultMessage_ChannelInfo) GetChannelId() uint32
func (*ListChannelResultMessage_ChannelInfo) GetChannelType ¶
func (x *ListChannelResultMessage_ChannelInfo) GetChannelType() ChannelType
func (*ListChannelResultMessage_ChannelInfo) GetMetadata ¶
func (x *ListChannelResultMessage_ChannelInfo) GetMetadata() string
func (*ListChannelResultMessage_ChannelInfo) ProtoMessage ¶
func (*ListChannelResultMessage_ChannelInfo) ProtoMessage()
func (*ListChannelResultMessage_ChannelInfo) ProtoReflect ¶
func (x *ListChannelResultMessage_ChannelInfo) ProtoReflect() protoreflect.Message
func (*ListChannelResultMessage_ChannelInfo) Reset ¶
func (x *ListChannelResultMessage_ChannelInfo) Reset()
func (*ListChannelResultMessage_ChannelInfo) String ¶
func (x *ListChannelResultMessage_ChannelInfo) String() string
type MessagePack ¶
type MessagePack struct { // The ID of the channel that the message is sent to, or received from channeld. // 0 is the GLOBAL channel; 1-65535 are for non-spatial channels; // beyond (0xffff-0xffffffff) are reserved for spatial channels. ChannelId uint32 `protobuf:"varint,1,opt,name=channelId,proto3" json:"channelId,omitempty"` // How the message will be broadcasted to all connections in the channel? // See @BroadcastType. ONLY works for the user-space messages. Broadcast uint32 `protobuf:"varint,2,opt,name=broadcast,proto3" json:"broadcast,omitempty"` // The stub for RPC callbacks. // 0 means the message is not a RPC message. StubId uint32 `protobuf:"varint,3,opt,name=stubId,proto3" json:"stubId,omitempty"` // The MessageType either defined in @MessageType enum, or defined in user space. MsgType uint32 `protobuf:"varint,4,opt,name=msgType,proto3" json:"msgType,omitempty"` // The serialized message. It's Protobuf-marshalled byte array if the message is defined in @MessageType. MsgBody []byte `protobuf:"bytes,5,opt,name=msgBody,proto3" json:"msgBody,omitempty"` // contains filtered or unexported fields }
The serialized message and the context of it.
func (*MessagePack) Descriptor
deprecated
func (*MessagePack) Descriptor() ([]byte, []int)
Deprecated: Use MessagePack.ProtoReflect.Descriptor instead.
func (*MessagePack) GetBroadcast ¶
func (x *MessagePack) GetBroadcast() uint32
func (*MessagePack) GetChannelId ¶
func (x *MessagePack) GetChannelId() uint32
func (*MessagePack) GetMsgBody ¶
func (x *MessagePack) GetMsgBody() []byte
func (*MessagePack) GetMsgType ¶
func (x *MessagePack) GetMsgType() uint32
func (*MessagePack) GetStubId ¶
func (x *MessagePack) GetStubId() uint32
func (*MessagePack) ProtoMessage ¶
func (*MessagePack) ProtoMessage()
func (*MessagePack) ProtoReflect ¶
func (x *MessagePack) ProtoReflect() protoreflect.Message
func (*MessagePack) Reset ¶
func (x *MessagePack) Reset()
func (*MessagePack) String ¶
func (x *MessagePack) String() string
type MessageType ¶
type MessageType int32
const ( MessageType_INVALID MessageType = 0 // Used by both @AuthMessage and @AuthResultMessage MessageType_AUTH MessageType = 1 // Used by both @CreateChannelMessage and @CreateChannelResultMessage MessageType_CREATE_CHANNEL MessageType = 3 // Used by @RemoveChannelMessage MessageType_REMOVE_CHANNEL MessageType = 4 // Used by both @ListChannelMessage and @ListChannelResultMessage MessageType_LIST_CHANNEL MessageType = 5 // Used by both @SubscribedToChannelMessage and @SubscribedToChannelResultMessage MessageType_SUB_TO_CHANNEL MessageType = 6 // Used by both @UnsubscribedFromChannelMessage and @UnsubscribedFromChannelResultMessage MessageType_UNSUB_FROM_CHANNEL MessageType = 7 // Used by @ChannelDataUpdateMessage MessageType_CHANNEL_DATA_UPDATE MessageType = 8 // Used by @DisconnectMessage MessageType_DISCONNECT MessageType = 9 // Used by both @CreateChannelMessage and @CreateSpatialChannelsResultMessage MessageType_CREATE_SPATIAL_CHANNEL MessageType = 10 // Used by both @QuerySpatialChannelMessage and @QuerySpatialChannelResultMessage MessageType_QUERY_SPATIAL_CHANNEL MessageType = 11 // Used by @ChannelDataHandoverMessage MessageType_CHANNEL_DATA_HANDOVER MessageType = 12 // Used by @SpatialRegionsUpdateMessage MessageType_SPATIAL_REGIONS_UPDATE MessageType = 13 // Used by @UpdateSpatialInterestMessage MessageType_UPDATE_SPATIAL_INTEREST MessageType = 14 // Used by @CreateEntityChannelMessage MessageType_CREATE_ENTITY_CHANNEL MessageType = 15 // Used by @AddEntityGroupMessage MessageType_ENTITY_GROUP_ADD MessageType = 16 // Used by @RemoveEntityGroupMessage MessageType_ENTITY_GROUP_REMOVE MessageType = 17 // Used by @SpatialChannelsReadyMessage MessageType_SPATIAL_CHANNELS_READY MessageType = 18 // Used by @DebugGetSpatialRegionsMessage MessageType_DEBUG_GET_SPATIAL_REGIONS MessageType = 99 // Start of any user-space defined message MessageType_USER_SPACE_START MessageType = 100 )
func (MessageType) Descriptor ¶
func (MessageType) Descriptor() protoreflect.EnumDescriptor
func (MessageType) Enum ¶
func (x MessageType) Enum() *MessageType
func (MessageType) EnumDescriptor
deprecated
func (MessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MessageType.Descriptor instead.
func (MessageType) Number ¶
func (x MessageType) Number() protoreflect.EnumNumber
func (MessageType) String ¶
func (x MessageType) String() string
func (MessageType) Type ¶
func (MessageType) Type() protoreflect.EnumType
type Packet ¶
type Packet struct { Messages []*MessagePack `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
The data packet that is sent between the endpoints. A packet can have multiple messages in the payload in one trip to improve the efficiency.
func (*Packet) Descriptor
deprecated
func (*Packet) GetMessages ¶
func (x *Packet) GetMessages() []*MessagePack
func (*Packet) ProtoMessage ¶
func (*Packet) ProtoMessage()
func (*Packet) ProtoReflect ¶
func (x *Packet) ProtoReflect() protoreflect.Message
type QuerySpatialChannelMessage ¶
type QuerySpatialChannelMessage struct { SpatialInfo []*SpatialInfo `protobuf:"bytes,1,rep,name=spatialInfo,proto3" json:"spatialInfo,omitempty"` // contains filtered or unexported fields }
The message should have channelId = 0 in order to be handled. Response: @QuerySpatialChannelResultMessage
func (*QuerySpatialChannelMessage) Descriptor
deprecated
func (*QuerySpatialChannelMessage) Descriptor() ([]byte, []int)
Deprecated: Use QuerySpatialChannelMessage.ProtoReflect.Descriptor instead.
func (*QuerySpatialChannelMessage) GetSpatialInfo ¶
func (x *QuerySpatialChannelMessage) GetSpatialInfo() []*SpatialInfo
func (*QuerySpatialChannelMessage) ProtoMessage ¶
func (*QuerySpatialChannelMessage) ProtoMessage()
func (*QuerySpatialChannelMessage) ProtoReflect ¶
func (x *QuerySpatialChannelMessage) ProtoReflect() protoreflect.Message
func (*QuerySpatialChannelMessage) Reset ¶
func (x *QuerySpatialChannelMessage) Reset()
func (*QuerySpatialChannelMessage) String ¶
func (x *QuerySpatialChannelMessage) String() string
type QuerySpatialChannelResultMessage ¶
type QuerySpatialChannelResultMessage struct { ChannelId []uint32 `protobuf:"varint,1,rep,packed,name=channelId,proto3" json:"channelId,omitempty"` // contains filtered or unexported fields }
func (*QuerySpatialChannelResultMessage) Descriptor
deprecated
func (*QuerySpatialChannelResultMessage) Descriptor() ([]byte, []int)
Deprecated: Use QuerySpatialChannelResultMessage.ProtoReflect.Descriptor instead.
func (*QuerySpatialChannelResultMessage) GetChannelId ¶
func (x *QuerySpatialChannelResultMessage) GetChannelId() []uint32
func (*QuerySpatialChannelResultMessage) ProtoMessage ¶
func (*QuerySpatialChannelResultMessage) ProtoMessage()
func (*QuerySpatialChannelResultMessage) ProtoReflect ¶
func (x *QuerySpatialChannelResultMessage) ProtoReflect() protoreflect.Message
func (*QuerySpatialChannelResultMessage) Reset ¶
func (x *QuerySpatialChannelResultMessage) Reset()
func (*QuerySpatialChannelResultMessage) String ¶
func (x *QuerySpatialChannelResultMessage) String() string
type RemoveChannelMessage ¶
type RemoveChannelMessage struct { ChannelId uint32 `protobuf:"varint,1,opt,name=channelId,proto3" json:"channelId,omitempty"` // contains filtered or unexported fields }
The message should have channelId = 0 in order to be handled. Response: all connections in the channel will receive @RemoveChannelMessage. The GLOBAL channel owner will also receive this message.
func (*RemoveChannelMessage) Descriptor
deprecated
func (*RemoveChannelMessage) Descriptor() ([]byte, []int)
Deprecated: Use RemoveChannelMessage.ProtoReflect.Descriptor instead.
func (*RemoveChannelMessage) GetChannelId ¶
func (x *RemoveChannelMessage) GetChannelId() uint32
func (*RemoveChannelMessage) ProtoMessage ¶
func (*RemoveChannelMessage) ProtoMessage()
func (*RemoveChannelMessage) ProtoReflect ¶
func (x *RemoveChannelMessage) ProtoReflect() protoreflect.Message
func (*RemoveChannelMessage) Reset ¶
func (x *RemoveChannelMessage) Reset()
func (*RemoveChannelMessage) String ¶
func (x *RemoveChannelMessage) String() string
type RemoveEntityGroupMessage ¶ added in v0.6.0
type RemoveEntityGroupMessage struct { Type EntityGroupType `protobuf:"varint,1,opt,name=type,proto3,enum=channeldpb.EntityGroupType" json:"type,omitempty"` EntitiesToRemove []uint32 `protobuf:"varint,2,rep,packed,name=EntitiesToRemove,proto3" json:"EntitiesToRemove,omitempty"` // contains filtered or unexported fields }
Remove specified entities from the handover/lock group of the entity channel. Should sent by the entity channel owner.
func (*RemoveEntityGroupMessage) Descriptor
deprecated
added in
v0.6.0
func (*RemoveEntityGroupMessage) Descriptor() ([]byte, []int)
Deprecated: Use RemoveEntityGroupMessage.ProtoReflect.Descriptor instead.
func (*RemoveEntityGroupMessage) GetEntitiesToRemove ¶ added in v0.6.0
func (x *RemoveEntityGroupMessage) GetEntitiesToRemove() []uint32
func (*RemoveEntityGroupMessage) GetType ¶ added in v0.6.0
func (x *RemoveEntityGroupMessage) GetType() EntityGroupType
func (*RemoveEntityGroupMessage) ProtoMessage ¶ added in v0.6.0
func (*RemoveEntityGroupMessage) ProtoMessage()
func (*RemoveEntityGroupMessage) ProtoReflect ¶ added in v0.6.0
func (x *RemoveEntityGroupMessage) ProtoReflect() protoreflect.Message
func (*RemoveEntityGroupMessage) Reset ¶ added in v0.6.0
func (x *RemoveEntityGroupMessage) Reset()
func (*RemoveEntityGroupMessage) String ¶ added in v0.6.0
func (x *RemoveEntityGroupMessage) String() string
type ServerForwardMessage ¶
type ServerForwardMessage struct { // The client that sends the user-space message to server or server sends the user-space message to. // If a server sends to channeld with clientConnId = 0, the message will be forwarded to the channel owner. ClientConnId uint32 `protobuf:"varint,1,opt,name=clientConnId,proto3" json:"clientConnId,omitempty"` // The user-space message. channeld leaves it as the original binary format. Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
The message that is used to carries user-space message and communicate between channeld and backend servers. Users don't need to use this message directly if they are using a client library.
func (*ServerForwardMessage) Descriptor
deprecated
func (*ServerForwardMessage) Descriptor() ([]byte, []int)
Deprecated: Use ServerForwardMessage.ProtoReflect.Descriptor instead.
func (*ServerForwardMessage) GetClientConnId ¶
func (x *ServerForwardMessage) GetClientConnId() uint32
func (*ServerForwardMessage) GetPayload ¶
func (x *ServerForwardMessage) GetPayload() []byte
func (*ServerForwardMessage) ProtoMessage ¶
func (*ServerForwardMessage) ProtoMessage()
func (*ServerForwardMessage) ProtoReflect ¶
func (x *ServerForwardMessage) ProtoReflect() protoreflect.Message
func (*ServerForwardMessage) Reset ¶
func (x *ServerForwardMessage) Reset()
func (*ServerForwardMessage) String ¶
func (x *ServerForwardMessage) String() string
type SpatialChannelsReadyMessage ¶ added in v0.7.2
type SpatialChannelsReadyMessage struct { ServerIndex uint32 `protobuf:"varint,1,opt,name=serverIndex,proto3" json:"serverIndex,omitempty"` ServerCount uint32 `protobuf:"varint,2,opt,name=serverCount,proto3" json:"serverCount,omitempty"` // contains filtered or unexported fields }
Indicates that all the spatial channels are created by the spatial servers, so the servers can continue further initialization.
func (*SpatialChannelsReadyMessage) Descriptor
deprecated
added in
v0.7.2
func (*SpatialChannelsReadyMessage) Descriptor() ([]byte, []int)
Deprecated: Use SpatialChannelsReadyMessage.ProtoReflect.Descriptor instead.
func (*SpatialChannelsReadyMessage) GetServerCount ¶ added in v0.7.2
func (x *SpatialChannelsReadyMessage) GetServerCount() uint32
func (*SpatialChannelsReadyMessage) GetServerIndex ¶ added in v0.7.2
func (x *SpatialChannelsReadyMessage) GetServerIndex() uint32
func (*SpatialChannelsReadyMessage) ProtoMessage ¶ added in v0.7.2
func (*SpatialChannelsReadyMessage) ProtoMessage()
func (*SpatialChannelsReadyMessage) ProtoReflect ¶ added in v0.7.2
func (x *SpatialChannelsReadyMessage) ProtoReflect() protoreflect.Message
func (*SpatialChannelsReadyMessage) Reset ¶ added in v0.7.2
func (x *SpatialChannelsReadyMessage) Reset()
func (*SpatialChannelsReadyMessage) String ¶ added in v0.7.2
func (x *SpatialChannelsReadyMessage) String() string
type SpatialInfo ¶
type SpatialInfo struct { X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"` Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"` Z float64 `protobuf:"fixed64,3,opt,name=z,proto3" json:"z,omitempty"` // contains filtered or unexported fields }
Left-handed coordinate system with Y-up rule.
func (*SpatialInfo) Descriptor
deprecated
func (*SpatialInfo) Descriptor() ([]byte, []int)
Deprecated: Use SpatialInfo.ProtoReflect.Descriptor instead.
func (*SpatialInfo) Dist2D ¶
func (info1 *SpatialInfo) Dist2D(info2 *SpatialInfo) float64
func (*SpatialInfo) GetX ¶
func (x *SpatialInfo) GetX() float64
func (*SpatialInfo) GetY ¶
func (x *SpatialInfo) GetY() float64
func (*SpatialInfo) GetZ ¶
func (x *SpatialInfo) GetZ() float64
func (*SpatialInfo) ProtoMessage ¶
func (*SpatialInfo) ProtoMessage()
func (*SpatialInfo) ProtoReflect ¶
func (x *SpatialInfo) ProtoReflect() protoreflect.Message
func (*SpatialInfo) Reset ¶
func (x *SpatialInfo) Reset()
func (*SpatialInfo) String ¶
func (x *SpatialInfo) String() string
type SpatialInterestQuery ¶
type SpatialInterestQuery struct { SpotsAOI *SpatialInterestQuery_SpotsAOI `protobuf:"bytes,1,opt,name=spotsAOI,proto3,oneof" json:"spotsAOI,omitempty"` BoxAOI *SpatialInterestQuery_BoxAOI `protobuf:"bytes,2,opt,name=boxAOI,proto3,oneof" json:"boxAOI,omitempty"` SphereAOI *SpatialInterestQuery_SphereAOI `protobuf:"bytes,3,opt,name=sphereAOI,proto3,oneof" json:"sphereAOI,omitempty"` ConeAOI *SpatialInterestQuery_ConeAOI `protobuf:"bytes,4,opt,name=coneAOI,proto3,oneof" json:"coneAOI,omitempty"` // contains filtered or unexported fields }
func (*SpatialInterestQuery) Descriptor
deprecated
func (*SpatialInterestQuery) Descriptor() ([]byte, []int)
Deprecated: Use SpatialInterestQuery.ProtoReflect.Descriptor instead.
func (*SpatialInterestQuery) GetBoxAOI ¶
func (x *SpatialInterestQuery) GetBoxAOI() *SpatialInterestQuery_BoxAOI
func (*SpatialInterestQuery) GetConeAOI ¶
func (x *SpatialInterestQuery) GetConeAOI() *SpatialInterestQuery_ConeAOI
func (*SpatialInterestQuery) GetSphereAOI ¶
func (x *SpatialInterestQuery) GetSphereAOI() *SpatialInterestQuery_SphereAOI
func (*SpatialInterestQuery) GetSpotsAOI ¶
func (x *SpatialInterestQuery) GetSpotsAOI() *SpatialInterestQuery_SpotsAOI
func (*SpatialInterestQuery) ProtoMessage ¶
func (*SpatialInterestQuery) ProtoMessage()
func (*SpatialInterestQuery) ProtoReflect ¶
func (x *SpatialInterestQuery) ProtoReflect() protoreflect.Message
func (*SpatialInterestQuery) Reset ¶
func (x *SpatialInterestQuery) Reset()
func (*SpatialInterestQuery) String ¶
func (x *SpatialInterestQuery) String() string
type SpatialInterestQuery_BoxAOI ¶
type SpatialInterestQuery_BoxAOI struct { Center *SpatialInfo `protobuf:"bytes,1,opt,name=center,proto3" json:"center,omitempty"` Extent *SpatialInfo `protobuf:"bytes,2,opt,name=extent,proto3" json:"extent,omitempty"` // contains filtered or unexported fields }
func (*SpatialInterestQuery_BoxAOI) Descriptor
deprecated
func (*SpatialInterestQuery_BoxAOI) Descriptor() ([]byte, []int)
Deprecated: Use SpatialInterestQuery_BoxAOI.ProtoReflect.Descriptor instead.
func (*SpatialInterestQuery_BoxAOI) GetCenter ¶
func (x *SpatialInterestQuery_BoxAOI) GetCenter() *SpatialInfo
func (*SpatialInterestQuery_BoxAOI) GetExtent ¶
func (x *SpatialInterestQuery_BoxAOI) GetExtent() *SpatialInfo
func (*SpatialInterestQuery_BoxAOI) ProtoMessage ¶
func (*SpatialInterestQuery_BoxAOI) ProtoMessage()
func (*SpatialInterestQuery_BoxAOI) ProtoReflect ¶
func (x *SpatialInterestQuery_BoxAOI) ProtoReflect() protoreflect.Message
func (*SpatialInterestQuery_BoxAOI) Reset ¶
func (x *SpatialInterestQuery_BoxAOI) Reset()
func (*SpatialInterestQuery_BoxAOI) String ¶
func (x *SpatialInterestQuery_BoxAOI) String() string
type SpatialInterestQuery_ConeAOI ¶
type SpatialInterestQuery_ConeAOI struct { Center *SpatialInfo `protobuf:"bytes,1,opt,name=center,proto3" json:"center,omitempty"` Direction *SpatialInfo `protobuf:"bytes,2,opt,name=direction,proto3" json:"direction,omitempty"` // In radians. Angle float64 `protobuf:"fixed64,3,opt,name=angle,proto3" json:"angle,omitempty"` Radius float64 `protobuf:"fixed64,4,opt,name=radius,proto3" json:"radius,omitempty"` // contains filtered or unexported fields }
func (*SpatialInterestQuery_ConeAOI) Descriptor
deprecated
func (*SpatialInterestQuery_ConeAOI) Descriptor() ([]byte, []int)
Deprecated: Use SpatialInterestQuery_ConeAOI.ProtoReflect.Descriptor instead.
func (*SpatialInterestQuery_ConeAOI) GetAngle ¶
func (x *SpatialInterestQuery_ConeAOI) GetAngle() float64
func (*SpatialInterestQuery_ConeAOI) GetCenter ¶
func (x *SpatialInterestQuery_ConeAOI) GetCenter() *SpatialInfo
func (*SpatialInterestQuery_ConeAOI) GetDirection ¶
func (x *SpatialInterestQuery_ConeAOI) GetDirection() *SpatialInfo
func (*SpatialInterestQuery_ConeAOI) GetRadius ¶
func (x *SpatialInterestQuery_ConeAOI) GetRadius() float64
func (*SpatialInterestQuery_ConeAOI) ProtoMessage ¶
func (*SpatialInterestQuery_ConeAOI) ProtoMessage()
func (*SpatialInterestQuery_ConeAOI) ProtoReflect ¶
func (x *SpatialInterestQuery_ConeAOI) ProtoReflect() protoreflect.Message
func (*SpatialInterestQuery_ConeAOI) Reset ¶
func (x *SpatialInterestQuery_ConeAOI) Reset()
func (*SpatialInterestQuery_ConeAOI) String ¶
func (x *SpatialInterestQuery_ConeAOI) String() string
type SpatialInterestQuery_SphereAOI ¶
type SpatialInterestQuery_SphereAOI struct { Center *SpatialInfo `protobuf:"bytes,1,opt,name=center,proto3" json:"center,omitempty"` Radius float64 `protobuf:"fixed64,2,opt,name=radius,proto3" json:"radius,omitempty"` // contains filtered or unexported fields }
func (*SpatialInterestQuery_SphereAOI) Descriptor
deprecated
func (*SpatialInterestQuery_SphereAOI) Descriptor() ([]byte, []int)
Deprecated: Use SpatialInterestQuery_SphereAOI.ProtoReflect.Descriptor instead.
func (*SpatialInterestQuery_SphereAOI) GetCenter ¶
func (x *SpatialInterestQuery_SphereAOI) GetCenter() *SpatialInfo
func (*SpatialInterestQuery_SphereAOI) GetRadius ¶
func (x *SpatialInterestQuery_SphereAOI) GetRadius() float64
func (*SpatialInterestQuery_SphereAOI) ProtoMessage ¶
func (*SpatialInterestQuery_SphereAOI) ProtoMessage()
func (*SpatialInterestQuery_SphereAOI) ProtoReflect ¶
func (x *SpatialInterestQuery_SphereAOI) ProtoReflect() protoreflect.Message
func (*SpatialInterestQuery_SphereAOI) Reset ¶
func (x *SpatialInterestQuery_SphereAOI) Reset()
func (*SpatialInterestQuery_SphereAOI) String ¶
func (x *SpatialInterestQuery_SphereAOI) String() string
type SpatialInterestQuery_SpotsAOI ¶
type SpatialInterestQuery_SpotsAOI struct { Spots []*SpatialInfo `protobuf:"bytes,1,rep,name=spots,proto3" json:"spots,omitempty"` // The fixed distance between each spot and the player. If not specified, 0 = nearest will be used. Dists []uint32 `protobuf:"varint,2,rep,packed,name=dists,proto3" json:"dists,omitempty"` // contains filtered or unexported fields }
func (*SpatialInterestQuery_SpotsAOI) Descriptor
deprecated
func (*SpatialInterestQuery_SpotsAOI) Descriptor() ([]byte, []int)
Deprecated: Use SpatialInterestQuery_SpotsAOI.ProtoReflect.Descriptor instead.
func (*SpatialInterestQuery_SpotsAOI) GetDists ¶
func (x *SpatialInterestQuery_SpotsAOI) GetDists() []uint32
func (*SpatialInterestQuery_SpotsAOI) GetSpots ¶
func (x *SpatialInterestQuery_SpotsAOI) GetSpots() []*SpatialInfo
func (*SpatialInterestQuery_SpotsAOI) ProtoMessage ¶
func (*SpatialInterestQuery_SpotsAOI) ProtoMessage()
func (*SpatialInterestQuery_SpotsAOI) ProtoReflect ¶
func (x *SpatialInterestQuery_SpotsAOI) ProtoReflect() protoreflect.Message
func (*SpatialInterestQuery_SpotsAOI) Reset ¶
func (x *SpatialInterestQuery_SpotsAOI) Reset()
func (*SpatialInterestQuery_SpotsAOI) String ¶
func (x *SpatialInterestQuery_SpotsAOI) String() string
type SpatialRegion ¶
type SpatialRegion struct { Min *SpatialInfo `protobuf:"bytes,1,opt,name=min,proto3" json:"min,omitempty"` Max *SpatialInfo `protobuf:"bytes,2,opt,name=max,proto3" json:"max,omitempty"` ChannelId uint32 `protobuf:"varint,3,opt,name=channelId,proto3" json:"channelId,omitempty"` ServerIndex uint32 `protobuf:"varint,4,opt,name=serverIndex,proto3" json:"serverIndex,omitempty"` // contains filtered or unexported fields }
func (*SpatialRegion) Descriptor
deprecated
func (*SpatialRegion) Descriptor() ([]byte, []int)
Deprecated: Use SpatialRegion.ProtoReflect.Descriptor instead.
func (*SpatialRegion) GetChannelId ¶
func (x *SpatialRegion) GetChannelId() uint32
func (*SpatialRegion) GetMax ¶
func (x *SpatialRegion) GetMax() *SpatialInfo
func (*SpatialRegion) GetMin ¶
func (x *SpatialRegion) GetMin() *SpatialInfo
func (*SpatialRegion) GetServerIndex ¶
func (x *SpatialRegion) GetServerIndex() uint32
func (*SpatialRegion) ProtoMessage ¶
func (*SpatialRegion) ProtoMessage()
func (*SpatialRegion) ProtoReflect ¶
func (x *SpatialRegion) ProtoReflect() protoreflect.Message
func (*SpatialRegion) Reset ¶
func (x *SpatialRegion) Reset()
func (*SpatialRegion) String ¶
func (x *SpatialRegion) String() string
type SpatialRegionsUpdateMessage ¶
type SpatialRegionsUpdateMessage struct { Regions []*SpatialRegion `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` // contains filtered or unexported fields }
channeld updates the information of spatial channels and regions to the spatial servers. Spatial servers use this information mainly for mapping the position of a spawned object to a correct channelId at realtime (rather than querying it before sending the spawn message to the client). Sent upon the creation of spatial channels (after @CreateSpatialChannelsResultMessage being sent), or any regional change (basiclally caused by the loadbalancer).
func (*SpatialRegionsUpdateMessage) Descriptor
deprecated
func (*SpatialRegionsUpdateMessage) Descriptor() ([]byte, []int)
Deprecated: Use SpatialRegionsUpdateMessage.ProtoReflect.Descriptor instead.
func (*SpatialRegionsUpdateMessage) GetRegions ¶
func (x *SpatialRegionsUpdateMessage) GetRegions() []*SpatialRegion
func (*SpatialRegionsUpdateMessage) ProtoMessage ¶
func (*SpatialRegionsUpdateMessage) ProtoMessage()
func (*SpatialRegionsUpdateMessage) ProtoReflect ¶
func (x *SpatialRegionsUpdateMessage) ProtoReflect() protoreflect.Message
func (*SpatialRegionsUpdateMessage) Reset ¶
func (x *SpatialRegionsUpdateMessage) Reset()
func (*SpatialRegionsUpdateMessage) String ¶
func (x *SpatialRegionsUpdateMessage) String() string
type SubscribedToChannelMessage ¶
type SubscribedToChannelMessage struct { // The connection to be added to the channel is not necessarily the one sends the message. // Remarks: only the channel owner or the GLOBAL channel owner can sub another connection to the channel. ConnId uint32 `protobuf:"varint,1,opt,name=connId,proto3" json:"connId,omitempty"` SubOptions *ChannelSubscriptionOptions `protobuf:"bytes,2,opt,name=subOptions,proto3" json:"subOptions,omitempty"` // contains filtered or unexported fields }
Response: @SubscribedToChannelResultMessage. The message sender, the subscribed connection (if not the sender), and the channel owner will receive the message respectively. If the connection has already been subscripbed to the channel, the subOptions will be merged, but no response message will be sent.
func (*SubscribedToChannelMessage) Descriptor
deprecated
func (*SubscribedToChannelMessage) Descriptor() ([]byte, []int)
Deprecated: Use SubscribedToChannelMessage.ProtoReflect.Descriptor instead.
func (*SubscribedToChannelMessage) GetConnId ¶
func (x *SubscribedToChannelMessage) GetConnId() uint32
func (*SubscribedToChannelMessage) GetSubOptions ¶
func (x *SubscribedToChannelMessage) GetSubOptions() *ChannelSubscriptionOptions
func (*SubscribedToChannelMessage) ProtoMessage ¶
func (*SubscribedToChannelMessage) ProtoMessage()
func (*SubscribedToChannelMessage) ProtoReflect ¶
func (x *SubscribedToChannelMessage) ProtoReflect() protoreflect.Message
func (*SubscribedToChannelMessage) Reset ¶
func (x *SubscribedToChannelMessage) Reset()
func (*SubscribedToChannelMessage) String ¶
func (x *SubscribedToChannelMessage) String() string
type SubscribedToChannelResultMessage ¶
type SubscribedToChannelResultMessage struct { // The connection that subscribed. ConnId uint32 `protobuf:"varint,1,opt,name=connId,proto3" json:"connId,omitempty"` SubOptions *ChannelSubscriptionOptions `protobuf:"bytes,2,opt,name=subOptions,proto3" json:"subOptions,omitempty"` ConnType ConnectionType `protobuf:"varint,3,opt,name=connType,proto3,enum=channeldpb.ConnectionType" json:"connType,omitempty"` ChannelType ChannelType `protobuf:"varint,4,opt,name=channelType,proto3,enum=channeldpb.ChannelType" json:"channelType,omitempty"` // contains filtered or unexported fields }
func (*SubscribedToChannelResultMessage) Descriptor
deprecated
func (*SubscribedToChannelResultMessage) Descriptor() ([]byte, []int)
Deprecated: Use SubscribedToChannelResultMessage.ProtoReflect.Descriptor instead.
func (*SubscribedToChannelResultMessage) GetChannelType ¶
func (x *SubscribedToChannelResultMessage) GetChannelType() ChannelType
func (*SubscribedToChannelResultMessage) GetConnId ¶
func (x *SubscribedToChannelResultMessage) GetConnId() uint32
func (*SubscribedToChannelResultMessage) GetConnType ¶
func (x *SubscribedToChannelResultMessage) GetConnType() ConnectionType
func (*SubscribedToChannelResultMessage) GetSubOptions ¶
func (x *SubscribedToChannelResultMessage) GetSubOptions() *ChannelSubscriptionOptions
func (*SubscribedToChannelResultMessage) ProtoMessage ¶
func (*SubscribedToChannelResultMessage) ProtoMessage()
func (*SubscribedToChannelResultMessage) ProtoReflect ¶
func (x *SubscribedToChannelResultMessage) ProtoReflect() protoreflect.Message
func (*SubscribedToChannelResultMessage) Reset ¶
func (x *SubscribedToChannelResultMessage) Reset()
func (*SubscribedToChannelResultMessage) String ¶
func (x *SubscribedToChannelResultMessage) String() string
type TransformState ¶
type TransformState struct { // Marks that the state should be removed from the containing map Removed bool `protobuf:"varint,1,opt,name=removed,proto3" json:"removed,omitempty"` Position *Vector3F `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"` Rotation *Vector4F `protobuf:"bytes,3,opt,name=rotation,proto3" json:"rotation,omitempty"` Scale *Vector3F `protobuf:"bytes,4,opt,name=scale,proto3" json:"scale,omitempty"` // contains filtered or unexported fields }
func (*TransformState) Descriptor
deprecated
func (*TransformState) Descriptor() ([]byte, []int)
Deprecated: Use TransformState.ProtoReflect.Descriptor instead.
func (*TransformState) GetPosition ¶
func (x *TransformState) GetPosition() *Vector3F
func (*TransformState) GetRemoved ¶
func (x *TransformState) GetRemoved() bool
func (*TransformState) GetRotation ¶
func (x *TransformState) GetRotation() *Vector4F
func (*TransformState) GetScale ¶
func (x *TransformState) GetScale() *Vector3F
func (*TransformState) ProtoMessage ¶
func (*TransformState) ProtoMessage()
func (*TransformState) ProtoReflect ¶
func (x *TransformState) ProtoReflect() protoreflect.Message
func (*TransformState) Reset ¶
func (x *TransformState) Reset()
func (*TransformState) String ¶
func (x *TransformState) String() string
type UnsubscribedFromChannelMessage ¶
type UnsubscribedFromChannelMessage struct { // The connection to be removed from the channel is not necessarily the one sends the message. // Remarks: only the channel owner or the GLOBAL channel can unsub another connection from the channel. ConnId uint32 `protobuf:"varint,1,opt,name=connId,proto3" json:"connId,omitempty"` // contains filtered or unexported fields }
Response: @UnsubscribedFromChannelResultMessage. The message sender, the connection that unsubscribed, and the channel owner will receive the message respectively.
func (*UnsubscribedFromChannelMessage) Descriptor
deprecated
func (*UnsubscribedFromChannelMessage) Descriptor() ([]byte, []int)
Deprecated: Use UnsubscribedFromChannelMessage.ProtoReflect.Descriptor instead.
func (*UnsubscribedFromChannelMessage) GetConnId ¶
func (x *UnsubscribedFromChannelMessage) GetConnId() uint32
func (*UnsubscribedFromChannelMessage) ProtoMessage ¶
func (*UnsubscribedFromChannelMessage) ProtoMessage()
func (*UnsubscribedFromChannelMessage) ProtoReflect ¶
func (x *UnsubscribedFromChannelMessage) ProtoReflect() protoreflect.Message
func (*UnsubscribedFromChannelMessage) Reset ¶
func (x *UnsubscribedFromChannelMessage) Reset()
func (*UnsubscribedFromChannelMessage) String ¶
func (x *UnsubscribedFromChannelMessage) String() string
type UnsubscribedFromChannelResultMessage ¶
type UnsubscribedFromChannelResultMessage struct { // The connection that unsubsribed. ConnId uint32 `protobuf:"varint,1,opt,name=connId,proto3" json:"connId,omitempty"` ConnType ConnectionType `protobuf:"varint,2,opt,name=connType,proto3,enum=channeldpb.ConnectionType" json:"connType,omitempty"` ChannelType ChannelType `protobuf:"varint,3,opt,name=channelType,proto3,enum=channeldpb.ChannelType" json:"channelType,omitempty"` // contains filtered or unexported fields }
func (*UnsubscribedFromChannelResultMessage) Descriptor
deprecated
func (*UnsubscribedFromChannelResultMessage) Descriptor() ([]byte, []int)
Deprecated: Use UnsubscribedFromChannelResultMessage.ProtoReflect.Descriptor instead.
func (*UnsubscribedFromChannelResultMessage) GetChannelType ¶
func (x *UnsubscribedFromChannelResultMessage) GetChannelType() ChannelType
func (*UnsubscribedFromChannelResultMessage) GetConnId ¶
func (x *UnsubscribedFromChannelResultMessage) GetConnId() uint32
func (*UnsubscribedFromChannelResultMessage) GetConnType ¶
func (x *UnsubscribedFromChannelResultMessage) GetConnType() ConnectionType
func (*UnsubscribedFromChannelResultMessage) ProtoMessage ¶
func (*UnsubscribedFromChannelResultMessage) ProtoMessage()
func (*UnsubscribedFromChannelResultMessage) ProtoReflect ¶
func (x *UnsubscribedFromChannelResultMessage) ProtoReflect() protoreflect.Message
func (*UnsubscribedFromChannelResultMessage) Reset ¶
func (x *UnsubscribedFromChannelResultMessage) Reset()
func (*UnsubscribedFromChannelResultMessage) String ¶
func (x *UnsubscribedFromChannelResultMessage) String() string
type UpdateSpatialInterestMessage ¶
type UpdateSpatialInterestMessage struct { ConnId uint32 `protobuf:"varint,1,opt,name=connId,proto3" json:"connId,omitempty"` Query *SpatialInterestQuery `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*UpdateSpatialInterestMessage) Descriptor
deprecated
func (*UpdateSpatialInterestMessage) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSpatialInterestMessage.ProtoReflect.Descriptor instead.
func (*UpdateSpatialInterestMessage) GetConnId ¶
func (x *UpdateSpatialInterestMessage) GetConnId() uint32
func (*UpdateSpatialInterestMessage) GetQuery ¶
func (x *UpdateSpatialInterestMessage) GetQuery() *SpatialInterestQuery
func (*UpdateSpatialInterestMessage) ProtoMessage ¶
func (*UpdateSpatialInterestMessage) ProtoMessage()
func (*UpdateSpatialInterestMessage) ProtoReflect ¶
func (x *UpdateSpatialInterestMessage) ProtoReflect() protoreflect.Message
func (*UpdateSpatialInterestMessage) Reset ¶
func (x *UpdateSpatialInterestMessage) Reset()
func (*UpdateSpatialInterestMessage) String ¶
func (x *UpdateSpatialInterestMessage) String() string
type Vector3F ¶
type Vector3F struct { X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"` Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"` Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"` // contains filtered or unexported fields }
func (*Vector3F) Descriptor
deprecated
func (*Vector3F) ProtoMessage ¶
func (*Vector3F) ProtoMessage()
func (*Vector3F) ProtoReflect ¶
func (x *Vector3F) ProtoReflect() protoreflect.Message
type Vector4F ¶
type Vector4F struct { X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"` Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"` Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"` W float32 `protobuf:"fixed32,4,opt,name=w,proto3" json:"w,omitempty"` // contains filtered or unexported fields }
func (*Vector4F) Descriptor
deprecated
func (*Vector4F) ProtoMessage ¶
func (*Vector4F) ProtoMessage()
func (*Vector4F) ProtoReflect ¶
func (x *Vector4F) ProtoReflect() protoreflect.Message