Ejemplo n.º 1
0
        public static void StartDatabase()
        {
            if (Utilities.ConfigurationManager.GetStringValue("SQLUsername") == "root")
            {
                Utilities.ConsoleStyle.Warning(@"'root' Username is not safe, please modify this for your security");
            }
            var config = new DatabaseConfiguration(DatabaseType.MySQL, Utilities.ConfigurationManager.GetStringValue("SQLHost"),
                                                   Utilities.ConfigurationManager.GetStringValue("SQLDB"),
                                                   Utilities.ConfigurationManager.GetStringValue("SQLUsername"), Utilities.ConfigurationManager.GetStringValue("SQLPassword"));

            var source = new InPlaceConfigurationSource();

            source.Add(typeof(ActiveRecordBase), config.GetProperties());

            ActiveRecordStarter.Initialize(source,
                                           typeof(CharacterRecord), typeof(MapRecords),
                                           typeof(TriggerRecord), typeof(ItemRecord), typeof(WorldItemRecord),
                                           typeof(NpcRecord), typeof(NpcPositionRecord), typeof(NpcDialogRecord),
                                           typeof(ZaapRecord), typeof(AccountDataRecord), typeof(OriginalBreedStartMapRecord),
                                           typeof(IncarnamTeleportRecord), typeof(ExpFloorRecord), typeof(BaseSpellRecord),
                                           typeof(MonstersTemplateRecord), typeof(MonsterLevelRecord), typeof(MountTemplateRecord),
                                           typeof(GuildCreatorLocationRecord), typeof(SpellRecord), typeof(ShopItemRecord),
                                           typeof(BreedRecord), typeof(GuildRecord), typeof(DungeonRoomRecord),
                                           typeof(WorldMountRecord), typeof(PaddockRecord), typeof(DropRecord),
                                           typeof(BannedAccountRecord), typeof(ElitesRecord), typeof(LiveActionRecord),
                                           typeof(HotelRecord), typeof(ServerInfoRecord), typeof(ItemSetRecord),
                                           typeof(IODataRecord), typeof(JobDataRecord), typeof(CraftRecord), typeof(ItemBagRecord),
                                           typeof(AuctionHouseRecord), typeof(AuctionHouseItemRecord));
        }
Ejemplo n.º 2
0
        public static void StartDatabase()
        {
            if (Utilities.ConfigurationManager.GetStringValue("SQLUsername") == "root")
            {
                Utilities.ConsoleStyle.Warning(@"'root' Username is not safe, please modify this for your security");
            }
            var config = new DatabaseConfiguration(DatabaseType.MySQL, Utilities.ConfigurationManager.GetStringValue("SQLHost"),
                                                    Utilities.ConfigurationManager.GetStringValue("SQLDB"),
                                                    Utilities.ConfigurationManager.GetStringValue("SQLUsername"), Utilities.ConfigurationManager.GetStringValue("SQLPassword"));

            var source = new InPlaceConfigurationSource();
            source.Add(typeof(ActiveRecordBase), config.GetProperties());

            ActiveRecordStarter.Initialize(source,
                            typeof(CharacterRecord), typeof(MapRecords),
                            typeof(TriggerRecord), typeof(ItemRecord), typeof(WorldItemRecord),
                            typeof(NpcRecord), typeof(NpcPositionRecord), typeof(NpcDialogRecord),
                            typeof(ZaapRecord), typeof(AccountDataRecord), typeof(OriginalBreedStartMapRecord),
                            typeof(IncarnamTeleportRecord), typeof(ExpFloorRecord), typeof(BaseSpellRecord),
                            typeof(MonstersTemplateRecord), typeof(MonsterLevelRecord), typeof(MountTemplateRecord),
                            typeof(GuildCreatorLocationRecord), typeof(SpellRecord), typeof(ShopItemRecord),
                            typeof(BreedRecord), typeof(GuildRecord), typeof(DungeonRoomRecord),
                            typeof(WorldMountRecord), typeof(PaddockRecord), typeof(DropRecord),
                            typeof(BannedAccountRecord), typeof(ElitesRecord), typeof(LiveActionRecord),
                            typeof(HotelRecord), typeof(ServerInfoRecord), typeof(ItemSetRecord),
                            typeof(IODataRecord), typeof(JobDataRecord), typeof(CraftRecord), typeof(ItemBagRecord),
                            typeof(AuctionHouseRecord), typeof(AuctionHouseItemRecord));
        }
Ejemplo n.º 3
0
 public static void StartDatabase()
 {
     var config = new DatabaseConfiguration(DatabaseType.MySQL, Utilities.ConfigurationManager.GetStringValue("SQLHost"),
                                             Utilities.ConfigurationManager.GetStringValue("SQLDB"),
                                             Utilities.ConfigurationManager.GetStringValue("SQLUsername"), Utilities.ConfigurationManager.GetStringValue("SQLPassword"));
     var source = new InPlaceConfigurationSource();
     source.Add(typeof(ActiveRecordBase), config.GetProperties());
     ActiveRecordStarter.Initialize(source, typeof(AccountRecord), typeof(GameServerRecord),
         typeof(AccountCharactersInformationsRecord));
 }
Ejemplo n.º 4
0
        public static void StartDatabase()
        {
            var config = new DatabaseConfiguration(DatabaseType.MySQL, Utilities.ConfigurationManager.GetStringValue("SQLHost"),
                                                   Utilities.ConfigurationManager.GetStringValue("SQLDB"),
                                                   Utilities.ConfigurationManager.GetStringValue("SQLUsername"), Utilities.ConfigurationManager.GetStringValue("SQLPassword"));
            var source = new InPlaceConfigurationSource();

            source.Add(typeof(ActiveRecordBase), config.GetProperties());
            ActiveRecordStarter.Initialize(source, typeof(AccountRecord), typeof(GameServerRecord),
                                           typeof(AccountCharactersInformationsRecord));
        }