Exemple #1
0
        /// <summary>
        /// Process when a player closes a container.
        /// </summary>
        /// <param name="player">The player who closes the container.</param>
        /// <param name="world">A reference to the gameworld.</param>
        private void ProcessCloseContainer(Player player, GameWorld world)
        {
            byte localID = netmsg.GetByte();

            if (localID > Constants.MAX_CONTAINERS)
            {
                return;
            }
            world.HandleCloseContainer(player, localID);
        }
 /// <summary>
 /// Process when a player closes a container.
 /// </summary>
 /// <param name="player">The player who closes the container.</param>
 /// <param name="world">A reference to the gameworld.</param>
 private void ProcessCloseContainer(Player player, GameWorld world)
 {
     byte localID = netmsg.GetByte();
     if (localID > Constants.MAX_CONTAINERS) {
         return;
     }
     world.HandleCloseContainer(player, localID);
 }