コード例 #1
0
        /// <summary>
        /// Process when a player attacks a target.
        /// </summary>
        /// <param name="player">The attacker.</param>
        /// <param name="world">A reference to the gameworld.</param>
        private void ProcessSetTarget(Player player, GameWorld world)
        {
            uint targetID = netmsg.GetU32();

            world.HandleCreatureTarget(player, targetID);
        }
コード例 #2
0
 /// <summary>
 /// Process when a player attacks a target.
 /// </summary>
 /// <param name="player">The attacker.</param>
 /// <param name="world">A reference to the gameworld.</param>
 private void ProcessSetTarget(Player player, GameWorld world)
 {
     uint targetID = netmsg.GetU32();
     world.HandleCreatureTarget(player, targetID);
 }