FindOrCreateInfoForPlayer() private method

private FindOrCreateInfoForPlayer ( [ name, [ lastIP ) : PlayerInfo
name [
lastIP [
return PlayerInfo
Example #1
0
 // Normal constructor
 internal Player(World world, string name, Session session, Position position)
 {
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     if (session == null)
     {
         throw new ArgumentNullException("session");
     }
     World        = world;
     Session      = session;
     Position     = position;
     Info         = PlayerDB.FindOrCreateInfoForPlayer(name, session.IP);
     spamBlockLog = new Queue <DateTime>(Info.Rank.AntiGriefBlocks);
     ResetAllBinds();
 }