Versions in this module Expand all Collapse all v0 v0.5.6 Oct 30, 2023 v0.5.5 Aug 11, 2023 v0.5.4 Aug 4, 2023 v0.5.3 Jul 24, 2023 Changes in this version type LockObjectResponse + Result uint32 v0.5.2 Jul 13, 2023 v0.5.1 Jul 13, 2023 v0.5.0 Jul 12, 2023 v0.4.0 Jun 23, 2023 Changes in this version + const MsgArrTypeSize + const MsgLockStateSize + const MsgTypeSize + const MsgUUIDTypeSize + const TriggerEnteredObject + const TriggerHighFive + const TriggerLeftObject + const TriggerNone + const TriggerStake + const TriggerWow + const UserTransformMessageSize + func BinMessage(m Message) []byte + func DecodeTo(buf []byte, m Message) (err error) + func ExtraTypes() []reflect.Type + func MessageDataTypeById(id MsgType) reflect.Type + func MessageNameById(id MsgType) string + func MessageTypeNameById(id MsgType) string + func MsgTypeName(m Message) string + func WSMessage(m Message) *websocket.PreparedMessage + type ActivityUpdate struct + ActivityId umid.UMID + ChangeType string + Data *entry.ActivityData + ObjectId umid.UMID + Type *entry.ActivityType + UserId umid.UMID + func (r *ActivityUpdate) GetType() MsgType + func (v *ActivityUpdate) UnmarshalMUS(buf []byte) (int, error) + func (v ActivityUpdate) MarshalMUS(buf []byte) int + func (v ActivityUpdate) SizeMUS() int + type ActivityUpdateType string + const ActivityUpdateChangeType + const ChangedActivityUpdateType + const NewActivityUpdateType + const RemovedActivityUpdateType + type AddObjects struct + Objects []ObjectDefinition + func (g *AddObjects) GetType() MsgType + func (v *AddObjects) UnmarshalMUS(buf []byte) (int, error) + func (v AddObjects) MarshalMUS(buf []byte) int + func (v AddObjects) SizeMUS() int + type AddPendingStake struct + Amount PBUint256 + Comment string + Kind int + OdysseyId umid.UMID + TransactionID umid.UMID + Wallet PBEthAddress + func (g *AddPendingStake) GetType() MsgType + func (v *AddPendingStake) UnmarshalMUS(buf []byte) (int, error) + func (v AddPendingStake) MarshalMUS(buf []byte) int + func (v AddPendingStake) SizeMUS() int + type AddUsers struct + Users []UserData + func (a *AddUsers) GetType() MsgType + func (v *AddUsers) UnmarshalMUS(buf []byte) (int, error) + func (v AddUsers) MarshalMUS(buf []byte) int + func (v AddUsers) SizeMUS() int + type AttributeChangeType string + const ChangedAttributeChangeType + const InvalidAttributeChangeType + const RemovedAttributeChangeType + type AttributeValueChanged struct + AttributeName string + ChangeType string + PluginID umid.UMID + TargetID umid.UMID + Value *StringAnyMap + func (r *AttributeValueChanged) GetType() MsgType + func (v *AttributeValueChanged) UnmarshalMUS(buf []byte) (int, error) + func (v AttributeValueChanged) MarshalMUS(buf []byte) int + func (v AttributeValueChanged) SizeMUS() int + type EventStart map[string]string + func (r *EventStart) GetType() MsgType + func (v *EventStart) UnmarshalMUS(buf []byte) (int, error) + func (v EventStart) MarshalMUS(buf []byte) int + func (v EventStart) SizeMUS() int + type FlyToMe struct + ObjectID umid.UMID + Pilot umid.UMID + PilotName string + func (g *FlyToMe) GetType() MsgType + func (v *FlyToMe) UnmarshalMUS(buf []byte) (int, error) + func (v FlyToMe) MarshalMUS(buf []byte) int + func (v FlyToMe) SizeMUS() int + type GenericMessage struct + Data []byte + Topic string + func NewGenericMessage(topic string, data interface{}) *GenericMessage + func (g *GenericMessage) GetType() MsgType + func (v *GenericMessage) UnmarshalMUS(buf []byte) (int, error) + func (v GenericMessage) MarshalMUS(buf []byte) int + func (v GenericMessage) SizeMUS() int + type HandShake struct + HandshakeVersion int + ProtocolVersion int + SessionId umid.UMID + Token string + UserId umid.UMID + func (g *HandShake) GetType() MsgType + func (v *HandShake) UnmarshalMUS(buf []byte) (int, error) + func (v HandShake) MarshalMUS(buf []byte) int + func (v HandShake) SizeMUS() int + type HighFive struct + Message string + ReceiverID umid.UMID + SenderID umid.UMID + func (g *HighFive) GetType() MsgType + func (v *HighFive) UnmarshalMUS(buf []byte) (int, error) + func (v HighFive) MarshalMUS(buf []byte) int + func (v HighFive) SizeMUS() int + type LockObject struct + ID umid.UMID + func (l *LockObject) GetType() MsgType + func (v *LockObject) UnmarshalMUS(buf []byte) (int, error) + func (v LockObject) MarshalMUS(buf []byte) int + func (v LockObject) SizeMUS() int + type LockObjectResponse struct + ID umid.UMID + LockOwner umid.UMID + State uint32 + func (l *LockObjectResponse) GetType() MsgType + func (v *LockObjectResponse) UnmarshalMUS(buf []byte) (int, error) + func (v LockObjectResponse) MarshalMUS(buf []byte) int + func (v LockObjectResponse) SizeMUS() int + type Message interface + GetType func() MsgType + MarshalMUS func(buf []byte) int + SizeMUS func() int + UnmarshalMUS func(buf []byte) (int, error) + func Decode(buf []byte) (Message, error) + func NewMessageOfType(msgType MsgType) (Message, error) + type MsgType uint32 + const TypeActivityUpdate + const TypeAddObjects + const TypeAddPendingStake + const TypeAddUsers + const TypeAttributeValueChanged + const TypeEventStart + const TypeFlyToMe + const TypeGenericMessage + const TypeHandShake + const TypeHighFive + const TypeLockObject + const TypeLockObjectResponse + const TypeMyTransform + const TypeNotification + const TypeObjectData + const TypeObjectDefinition + const TypeObjectTransform + const TypeRemoveObjects + const TypeRemoveUsers + const TypeSetWorld + const TypeSignal + const TypeTeleportRequest + const TypeTriggerVisualEffects + const TypeUnlockObject + const TypeUserAction + const TypeUserData + const TypeUserStakedToOdyssey + const TypeUserTransform + const TypeUsersTransformList + func GetMessageIds() []MsgType + func MessageIdByName(name string) MsgType + func MessageType(buf []byte) MsgType + func MsgTypeId(m Message) MsgType + type MyTransform cmath.TransformNoScale + func (a *MyTransform) GetType() MsgType + func (v *MyTransform) UnmarshalMUS(buf []byte) (int, error) + func (v MyTransform) MarshalMUS(buf []byte) int + func (v MyTransform) SizeMUS() int + type Notification struct + NotifyType NotificationType + Value string + func (g *Notification) GetType() MsgType + func (v *Notification) UnmarshalMUS(buf []byte) (int, error) + func (v Notification) MarshalMUS(buf []byte) int + func (v Notification) SizeMUS() int + type NotificationType uint32 + const NotificationGatheringStart + const NotificationGeneric + const NotificationHighFive + const NotificationLegacy + const NotificationNone + const NotificationRelay + const NotificationStageModeAccept + const NotificationStageModeInvitation + const NotificationStageModeSet + const NotificationStageModeStageDeclined + const NotificationStageModeStageJoin + const NotificationStageModeStageRequest + const NotificationTextMessage + const NotificationWow + func (v *NotificationType) UnmarshalMUS(buf []byte) (int, error) + func (v NotificationType) MarshalMUS(buf []byte) int + func (v NotificationType) SizeMUS() int + type ObjectData struct + Entries map[entry.SlotType]*StringAnyMap + ID umid.UMID + func (l *ObjectData) GetType() MsgType + func (v *ObjectData) UnmarshalMUS(buf []byte) (int, error) + func (v ObjectData) MarshalMUS(buf []byte) int + func (v ObjectData) SizeMUS() int + type ObjectDefinition struct + AssetFormat dto.Asset3dType + AssetType umid.UMID + ID umid.UMID + IsEditable bool + Name string + ParentID umid.UMID + ShowOnMiniMap bool + TetheredToParent bool + Transform cmath.Transform + func (g *ObjectDefinition) GetType() MsgType + func (v *ObjectDefinition) UnmarshalMUS(buf []byte) (int, error) + func (v ObjectDefinition) MarshalMUS(buf []byte) int + func (v ObjectDefinition) SizeMUS() int + type ObjectTransform struct + ID umid.UMID + Transform cmath.Transform + func (g *ObjectTransform) GetType() MsgType + func (v *ObjectTransform) UnmarshalMUS(buf []byte) (int, error) + func (v ObjectTransform) MarshalMUS(buf []byte) int + func (v ObjectTransform) SizeMUS() int + type PBEthAddress common.Address + func (v *PBEthAddress) UnmarshalMUS(buf []byte) (int, error) + func (v PBEthAddress) MarshalMUS(buf []byte) int + func (v PBEthAddress) SizeMUS() int + type PBUint256 uint256.Int + func (v *PBUint256) UnmarshalMUS(buf []byte) (int, error) + func (v PBUint256) MarshalMUS(buf []byte) int + func (v PBUint256) SizeMUS() int + type RemoveObjects struct + Objects []umid.UMID + func (g *RemoveObjects) GetType() MsgType + func (v *RemoveObjects) UnmarshalMUS(buf []byte) (int, error) + func (v RemoveObjects) MarshalMUS(buf []byte) int + func (v RemoveObjects) SizeMUS() int + type RemoveUsers struct + Users []umid.UMID + func (a *RemoveUsers) GetType() MsgType + func (v *RemoveUsers) UnmarshalMUS(buf []byte) (int, error) + func (v RemoveUsers) MarshalMUS(buf []byte) int + func (v RemoveUsers) SizeMUS() int + type SetWorld struct + Avatar umid.UMID + Avatar3DAssetID umid.UMID + ID umid.UMID + Name string + Owner umid.UMID + func (g *SetWorld) GetType() MsgType + func (v *SetWorld) UnmarshalMUS(buf []byte) (int, error) + func (v SetWorld) MarshalMUS(buf []byte) int + func (v SetWorld) SizeMUS() int + type Signal struct + Value SignalType + func (g *Signal) GetType() MsgType + func (v *Signal) UnmarshalMUS(buf []byte) (int, error) + func (v Signal) MarshalMUS(buf []byte) int + func (v Signal) SizeMUS() int + type SignalType uint32 + const SignalConnected + const SignalConnectionClosed + const SignalConnectionFailed + const SignalDualConnection + const SignalInvalidToken + const SignalLeaveWorld + const SignalNone + const SignalReady + const SignalSpawn + const SignalWorldDoesNotExist + func (v *SignalType) UnmarshalMUS(buf []byte) (int, error) + func (v SignalType) MarshalMUS(buf []byte) int + func (v SignalType) SizeMUS() int + type StringAnyMap map[string]any + func (v *StringAnyMap) UnmarshalMUS(buf []byte) (int, error) + func (v StringAnyMap) MarshalMUS(buf []byte) int + func (v StringAnyMap) SizeMUS() int + type TeleportRequest struct + Target umid.UMID + func (g *TeleportRequest) GetType() MsgType + func (v *TeleportRequest) UnmarshalMUS(buf []byte) (int, error) + func (v TeleportRequest) MarshalMUS(buf []byte) int + func (v TeleportRequest) SizeMUS() int + type Trigger uint32 + func (v *Trigger) UnmarshalMUS(buf []byte) (int, error) + func (v Trigger) MarshalMUS(buf []byte) int + func (v Trigger) SizeMUS() int + type TriggerVisualEffects struct + Effects []VisualEffect + func (g *TriggerVisualEffects) GetType() MsgType + func (v *TriggerVisualEffects) UnmarshalMUS(buf []byte) (int, error) + func (v TriggerVisualEffects) MarshalMUS(buf []byte) int + func (v TriggerVisualEffects) SizeMUS() int + type UnlockObject struct + ID umid.UMID + func (l *UnlockObject) GetType() MsgType + func (v *UnlockObject) UnmarshalMUS(buf []byte) (int, error) + func (v UnlockObject) MarshalMUS(buf []byte) int + func (v UnlockObject) SizeMUS() int + type UserAction struct + Value Trigger + func (g *UserAction) GetType() MsgType + func (v *UserAction) UnmarshalMUS(buf []byte) (int, error) + func (v UserAction) MarshalMUS(buf []byte) int + func (v UserAction) SizeMUS() int + type UserData struct + Avatar string + ID umid.UMID + IsGuest bool + Name string + Transform cmath.TransformNoScale + func (a *UserData) GetType() MsgType + func (v *UserData) UnmarshalMUS(buf []byte) (int, error) + func (v UserData) MarshalMUS(buf []byte) int + func (v UserData) SizeMUS() int + type UserStakedToOdyssey struct + Amount string + Comment string + Kind int + ObjectID umid.UMID + TransactionHash string + Wallet string + func (r *UserStakedToOdyssey) GetType() MsgType + func (v *UserStakedToOdyssey) UnmarshalMUS(buf []byte) (int, error) + func (v UserStakedToOdyssey) MarshalMUS(buf []byte) int + func (v UserStakedToOdyssey) SizeMUS() int + type UserTransform struct + ID umid.UMID + Transform cmath.TransformNoScale + func (s *UserTransform) GetType() MsgType + func (v *UserTransform) UnmarshalMUS(buf []byte) (int, error) + func (v UserTransform) MarshalMUS(buf []byte) int + func (v UserTransform) SizeMUS() int + type UsersTransformList struct + Value []UserTransform + func (s *UsersTransformList) GetType() MsgType + func (v *UsersTransformList) UnmarshalMUS(buf []byte) (int, error) + func (v UsersTransformList) MarshalMUS(buf []byte) int + func (v UsersTransformList) SizeMUS() int + type VisualEffect struct + Name string + func (v *VisualEffect) UnmarshalMUS(buf []byte) (int, error) + func (v VisualEffect) MarshalMUS(buf []byte) int + func (v VisualEffect) SizeMUS() int