Beispiel #1
0
        public void SetupFakeServer()
        {
            var sqliteDB = Create.TemporarySQLiteDB();

            sqliteDB.RegisterDataObject(typeof(DBKeepComponent));
            sqliteDB.RegisterDataObject(typeof(DBKeepPosition));
            sqliteDB.RegisterDataObject(typeof(DBKeep));
            sqliteDB.RegisterDataObject(typeof(NPCEquipment));
            sqliteDB.RegisterDataObject(typeof(Battleground));

            var fakeServer = new FakeServer();

            fakeServer.SetDatabase(sqliteDB);
            GameServer.LoadTestDouble(fakeServer);
            GameNpcInventoryTemplate.Init();

            AddKeepPositions();
        }