AngryTanks.Server.Player.Player C# (CSharp) Méthode

Player() public méthode

public Player ( AngryTanks.Server.GameKeeper gameKeeper, Byte slot, NetConnection connection, PlayerInformation playerInfo ) : System
gameKeeper AngryTanks.Server.GameKeeper
slot Byte
connection Lidgren.Network.NetConnection
playerInfo PlayerInformation
Résultat System
        public Player(GameKeeper gameKeeper, Byte slot, NetConnection connection, PlayerInformation playerInfo)
        {
            this.Slot       = slot;
            this.Connection = connection;
            this.Team       = playerInfo.Team;
            this.Callsign   = playerInfo.Callsign;
            this.Tag        = playerInfo.Tag;

            this.gameKeeper = gameKeeper;

            this.state = PlayerState.Joining;
            this.score = new Score();

            Log.InfoFormat("Player #{0} \"{1}\" <{2}> created and joined to {3}", Slot, Callsign, Tag, Team);
        }