Ejemplo n.º 1
0
        /// <summary>
        /// Processes the message
        /// </summary>
        /// <param name="connectionBase">The connection baes</param>
        /// <param name="message">The playerio message</param>
        /// <param name="handled">Whether the message was already handled</param>
        public void Process(ConnectionBase connectionBase, Message message, bool handled)
        {
            int userId = message.GetInt(0);

            WorldConnection worldCon = (WorldConnection)connectionBase;
            WorldPlayer     player   = worldCon.Players.GetPlayer(userId);

            WootUpEvent wootUpEvent = new WootUpEvent()
            {
                Raw    = message,
                Player = player
            };

            connectionBase.RaiseServerEvent <WootUpEvent>(wootUpEvent);
        }
Ejemplo n.º 2
0
        private void OnWootUp(WootUpEvent e)
        {
            Player p = e.Player;

            p.HasWooted = true;
        }