Esempio n. 1
0
        public void Trigger(NetworkPlayer player)
        {
            ServerEventMessage message = new ServerEventMessage ();

            message.EventCommands.Add (new JumpCommand (player.Character.Direction, 2));

            player.Connection.Send (message);
        }
Esempio n. 2
0
        public void Trigger(NetworkPlayer player)
        {
            ServerEventMessage message = new ServerEventMessage ();

            message.EventCommands.Add (new LockCommand ());
            message.EventCommands.Add (new JumpCommand (player.Character.Direction, 0)); // Jump in place
            message.EventCommands.Add (new PauseEventCommand ()); // Wait for jumping to finish
            message.EventCommands.Add (new ApplyMovementCommand (Directions.East, Directions.East, Directions.East, Directions.North));
            message.EventCommands.Add (new PauseEventCommand ()); // Wait for movement to finish
            message.EventCommands.Add (new ReleaseCommand ());

            player.Connection.Send (message);
        }
Esempio n. 3
0
 public void Message_ServerEventReceived(ServerEventMessage message)
 {
     this.scriptmanager.HandleScript (message.EventCommands);
 }