Beispiel #1
0
 public GameManager(IMpqService mpqService,
                    IGameView gameView,
                    IMessageBoxService messageBoxService,
                    IDatabaseClientFileOpener databaseClientFileOpener)
 {
     this.mpqService               = mpqService;
     this.gameView                 = gameView;
     this.messageBoxService        = messageBoxService;
     this.databaseClientFileOpener = databaseClientFileOpener;
     UpdateLoop = new UpdateManager(this);
 }
 public DbcManager(IGameContext gameContext, IDatabaseClientFileOpener opener)
 {
     this.gameContext         = gameContext;
     this.opener              = opener;
     AreaTriggerStore         = new(OpenDbc("AreaTrigger"));
     CreatureDisplayInfoStore = new(OpenDbc("CreatureDisplayInfo"));
     // CreatureDisplayInfoExtraStore = new(OpenDbc("CreatureDisplayInfoExtra")); // for humanoids
     CreatureModelDataStore = new(OpenDbc("CreatureModelData"));
     MapStore             = new (OpenDbc("Map"));
     LightIntParamStore   = new (OpenDbc("LightIntBand"));
     LightFloatParamStore = new (OpenDbc("LightFloatBand"));
     LightParamStore      = new (OpenDbc("LightParams"), LightIntParamStore, LightFloatParamStore);
     LightStore           = new (OpenDbc("Light"), LightParamStore);
 }
 public DbcManager(IGameFiles gameFiles, IDatabaseClientFileOpener opener)
 {
     this.gameFiles                = gameFiles;
     this.opener                   = opener;
     AreaTableStore                = new(OpenDbc("AreaTable"));
     AreaTriggerStore              = new(OpenDbc("AreaTrigger"));
     CreatureDisplayInfoStore      = new(OpenDbc("CreatureDisplayInfo"));
     CreatureDisplayInfoExtraStore = new(OpenDbc("CreatureDisplayInfoExtra")); // for humanoids
     CreatureModelDataStore        = new(OpenDbc("CreatureModelData"));
     GameObjectDisplayInfoStore    = new(OpenDbc("GameObjectDisplayInfo"));
     ItemDisplayInfoStore          = new(OpenDbc("ItemDisplayInfo"));
     CharSectionsStore             = new(OpenDbc("CharSections"));
     // ChrRacesStore = new(OpenDbc("ChrRaces"));
     CharacterFacialHairStylesStore = new(OpenDbc("CharacterFacialHairStyles"));
     CharHairGeosetsStore           = new(OpenDbc("CharHairGeosets"));
     MapStore             = new (OpenDbc("Map"));
     LightIntParamStore   = new (OpenDbc("LightIntBand"));
     LightFloatParamStore = new (OpenDbc("LightFloatBand"));
     LightParamStore      = new (OpenDbc("LightParams"), LightIntParamStore, LightFloatParamStore);
     LightStore           = new (OpenDbc("Light"), LightParamStore);
 }