public override void SimulateController()
        {
            ILobbyCommandInput input = LobbyCommand.Create();

            input.Name  = playerName;
            input.Color = playerColor;
            input.Ready = ready;

            entity.QueueInput(input);
        }
Esempio n. 2
0
        public override void SimulateController()
        {
            if (BoltNetwork.Frame % 5 != 0)
            {
                return;
            }

            var input = LobbyCommand.Create();

            input.Username = _username;
            input.Team     = _team.ToString();
            input.Entity   = entity;

            entity.QueueInput(input);
        }
Esempio n. 3
0
        public override void SimulateController()
        {
            ILobbyCommandInput input = LobbyCommand.Create();

            if (PlayerPrefs.HasKey("PlayerName"))
            {
                playerName = PlayerPrefs.GetString("PlayerName");
            }

            input.Name  = playerName;
            input.Color = playerColor;
            input.Ready = ready;

            entity.QueueInput(input);
        }
        public override void ExecuteCommand(Command command, bool resetState)
        {
            if (!entity.isOwner)
            {
                return;
            }

            if (!resetState && command.IsFirstExecution)
            {
                LobbyCommand lobbyCommand = command as LobbyCommand;

                state.Name  = lobbyCommand.Input.Name;
                state.Color = lobbyCommand.Input.Color;
                state.Ready = lobbyCommand.Input.Ready;
            }
        }
Esempio n. 5
0
        public override void SimulateController()
        {
            // Update every 5 frames
            if (BoltNetwork.Frame % 5 != 0)
            {
                return;
            }

            var input = LobbyCommand.Create();

            input.Name  = playerName;
            input.Color = playerColor;
            input.Ready = ready;

            entity.QueueInput(input);
        }
Esempio n. 6
0
 public void OnLobbyCommand(LobbyCommandPacket command)
 {
     LobbyCommand?.Invoke(this, new LobbyCommandEventArgs(command));
 }
Esempio n. 7
0
 static void PushLobbyCommand(LobbyCommand command, string endpoint)
 {
 }