Example #1
0
        public override void OnReceiveRemote(bool server, EnumWorldObjectMessage <Campfire.State> message)
        {
            if (!QSBSceneManager.IsInUniverse)
            {
                return;
            }

            var campfireObj = QSBWorldSync.GetWorldFromId <QSBCampfire>(message.ObjectId);

            campfireObj.SetState(message.EnumValue);
        }
Example #2
0
        public override void OnReceiveRemote(bool server, EnumWorldObjectMessage <EnterLeaveType> message)
        {
            var player = QSBPlayerManager.GetPlayer(message.FromId);

            switch (message.EnumValue)
            {
            case EnterLeaveType.EnterMoon:
                player.IsInMoon = true;
                break;

            case EnterLeaveType.ExitMoon:
                player.IsInMoon = false;
                break;

            case EnterLeaveType.EnterShrine:
                player.IsInShrine = true;
                break;

            case EnterLeaveType.ExitShrine:
                player.IsInShrine = false;
                break;

            case EnterLeaveType.EnterPlatform:
                CustomNomaiRemoteCameraPlatform.CustomPlatformList[message.ObjectId]
                .OnRemotePlayerEnter(message.AboutId);
                break;

            case EnterLeaveType.ExitPlatform:
                CustomNomaiRemoteCameraPlatform.CustomPlatformList[message.ObjectId]
                .OnRemotePlayerExit(message.AboutId);
                break;

            default:
                DebugLog.ToConsole($"Warning - Unknown EnterLeaveType : {message.EnumValue}", OWML.Common.MessageType.Warning);
                break;
            }
        }
Example #3
0
 public override void OnReceiveLocal(bool server, EnumWorldObjectMessage <EnterLeaveType> message)
 => OnReceiveRemote(server, message);