ACR_ServerCommunicator.ACR_ServerCommunicator.ResolvePlayerName C# (CSharp) 메소드

ResolvePlayerName() 개인적인 메소드

Look up a player by name and return the character id. The local cache (only) is queried. If the player was not in the local cache (which implies that the player was not online), then no query to the database is made and 0 is returned.
private ResolvePlayerName ( string PlayerName ) : int
PlayerName string Supplies the object name to look up. ///
리턴 int
        private int ResolvePlayerName(string PlayerName)
        {
            lock (WorldManager)
            {
                GamePlayer Player = WorldManager.ReferencePlayerByName(PlayerName, null);

                if (Player == null)
                    return 0;

                return Player.PlayerId;
            }
        }
ACR_ServerCommunicator