Save() public method

public Save ( string filePath ) : void
filePath string
return void
コード例 #1
0
        public bool RegisterPlayer(Player player)
        {
            if (!this.AuthenticateRegistration(player.Name, player.Password)) return false;

            this.AppendPlayerName(player.Name);

            player.AccessLevel = Player.AccessLevels.Player;

            player.Save(Constants.FILEPATH_PLAYERS);

            return true;
        }