示例#1
0
        private static UserDatabase Initialize()
        {
            var database = new UserDatabase();

            database.AddUser(AdminId, Username.ADMIN, 1000, Ranks.Private, 0);
            database.AddUser(UserId, "User", 1700, Ranks.WarrantOfficer, 7);
            database.AddUser(TheColonelId, "TheColonel", 3456, Ranks.Colonel, 37);
            database.AddUser(MattyId, Username.MATTY, 2345, Ranks.Lieutenant, 42);
            database.AddUser(MathyId, "Mathy", 800, Ranks.LanceCorporal, 12);
            database.AddUser(JackDeHaasId, "JackDeHaas", 9001, Ranks.FieldMarshal, 1337);
            database.AddUser(PendingPlayerId, "PendingPlayer", 1000, Ranks.Private, 0);
            database.AddUser(TestPlayerBlack, "TestPlayerBlack", 1000, Ranks.Private, 0);
            database.AddUser(TestPlayerWhite, "TestPlayerWhite", 1000, Ranks.Private, 0);

            return(database);
        }