示例#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);
        }
示例#2
0
        private void OnWootUp(WootUpEvent e)
        {
            Player p = e.Player;

            p.HasWooted = true;
        }