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(); }
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(); }