Example #1
0
        /// <summary>
        /// Process when a player looks at something.
        /// </summary>
        /// <param name="player">The player who is looking.</param>
        /// <param name="world">A reference to the gameworld.</param>
        private void ProcessLookAt(Player player, GameWorld world)
        {
            //Position player is looking at
            Position pos = netmsg.GetPosition();

#if DEBUG
            Log.WriteDebug("In ProcessLookAt()");
            Log.WriteDebug("pos: " + pos);
#endif
            world.HandleLookAt(player, pos);
        }
Example #2
0
 /// <summary>
 /// Process when a player looks at something.
 /// </summary>
 /// <param name="player">The player who is looking.</param>
 /// <param name="world">A reference to the gameworld.</param>
 private void ProcessLookAt(Player player, GameWorld world)
 {
     //Position player is looking at
     Position pos = netmsg.GetPosition();
     #if DEBUG
     Log.WriteDebug("In ProcessLookAt()");
     Log.WriteDebug("pos: " + pos);
     #endif
     world.HandleLookAt(player, pos);
 }