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

            sqliteDB.RegisterDataObject(typeof(DBCraftedItem));
            sqliteDB.RegisterDataObject(typeof(DBCraftedXItem));
            sqliteDB.RegisterDataObject(typeof(ItemTemplate));

            var fakeServer = new FakeServer();

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

            AddOneCompleteRecipeToDatabase();
        }
Exemple #2
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();
        }