public static void ClearLowData() { charLowData = null; itemLowData = null; stringLowData = null; resourceLowData = null; partnerLowData = null; monsterLowData = null; npcLowData = null; nonInteractiveNpcLowData = null; NewbieData = null; skillLowData = null; dungeonData = null; etcData = null; levelLowData = null; mailLowData = null; questLowData = null; enchantLowData = null; missionLowData = null; mapLowData = null; partnerLvLowData = null; shopLowData = null; priceLowData = null; vipLowData = null; iconLowData = null; FormulaLowData = null; guildLowData = null; gatchaRewardLowData = null; loadingLowData = null; titleLowData = null; welfareLowData = null; achievementLowData = null; activeLowData = null; pvpAutoRewardLowData = null; }
public override bool IsCleared(int level) { MissionTable table = DataManager.GetInstance().GetMissionTable(type, level); if (table != null) { return(MissionManager.GetInstance().useSkillCount >= table.value); } return(false); }
public int GetMissionReward(int level) { MissionTable table = DataManager.GetInstance().GetMissionTable(type, level); if (table != null) { return(table.reward); } return(Define.nullValue); }
public override string GetMissionText(int level) { MissionTable table = DataManager.GetInstance().GetMissionTable(type, level); if (table != null) { return(string.Format(DataManager.GetText(table.textIdx), table.value)); } Debug.Log("something is wrong"); return(null); }
public override float GetMissionState(int level) { MissionTable table = DataManager.GetInstance().GetMissionTable(type, level); if (table != null) { float rate = (float)MissionManager.GetInstance().useSkillCount / (float)table.value; return(Mathf.Min(1f, rate)); } return(0f); }
public override float GetMissionState(int level) { MissionTable table = DataManager.GetInstance().GetMissionTable(type, level); if (table != null) { float rate = (float)((double)MissionManager.GetInstance().nowAddedScore / (double)table.value); return(Mathf.Min(1f, rate)); } return(0f); }
public static void LoadLowDataALLForTool() { charLowData = new Character(); itemLowData = new Item(); stringLowData = new Local(); resourceLowData = new Resource(); partnerLowData = new Partner(); monsterLowData = new Mob(); npcLowData = new NpcData(); nonInteractiveNpcLowData = new NonInteractiveNpcData(); skillLowData = new SkillTables(); NewbieData = new Newbie(); dungeonData = new DungeonTable(); etcData = new Etc(); levelLowData = new Level(); mailLowData = new Mail(); questLowData = new Quest(); enchantLowData = new Enchant(); missionLowData = new MissionTable(); mapLowData = new Map(); partnerLvLowData = new PartnerLevel(); shopLowData = new Shop(); priceLowData = new Price(); vipLowData = new Vip(); iconLowData = new Icon(); FormulaLowData = new Formula(); guildLowData = new Guild(); gatchaRewardLowData = new GatchaReward(); loadingLowData = new Loading(); titleLowData = new Title(); welfareLowData = new Welfare(); achievementLowData = new Achievement(); activeLowData = new ActiveReward(); pvpAutoRewardLowData = new PVP(); charLowData.LoadLowData(); itemLowData.LoadLowData(); stringLowData.LoadLowData(); resourceLowData.LoadLowData(); partnerLowData.LoadLowData(); monsterLowData.LoadLowData(); npcLowData.LoadLowData(); nonInteractiveNpcLowData.LoadLowData(); NewbieData.LoadLowData(); skillLowData.LoadLowData(); dungeonData.LoadLowData(); etcData.LoadLowData(); levelLowData.LoadLowData(); mailLowData.LoadLowData(); questLowData.LoadLowData(); enchantLowData.LoadLowData(); missionLowData.LoadLowData(); mapLowData.LoadLowData(); partnerLvLowData.LoadLowData(); shopLowData.LoadLowData(); priceLowData.LoadLowData(); vipLowData.LoadLowData(); iconLowData.LoadLowData(); FormulaLowData.LoadLowData(); guildLowData.LoadLowData(); gatchaRewardLowData.LoadLowData(); loadingLowData.LoadLowData(); titleLowData.LoadLowData(); welfareLowData.LoadLowData(); achievementLowData.LoadLowData(); activeLowData.LoadLowData(); pvpAutoRewardLowData.LoadLowData(); }
static public void LoadTable() { if (null == QTESequenceTableAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("QTESequenceTable"); QTESequenceTableAsset = new QTESequenceTable(); QTESequenceTableAsset.Load(asset.bytes); } if (null == FlyingItemTableAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("FlyingObjBehaviorTable"); FlyingItemTableAsset = new FlyingItemTable(); FlyingItemTableAsset.Load(asset.bytes); } if (null == StageTableAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("StageTable"); StageTableAsset = new StageTable(); StageTableAsset.Load(asset.bytes); } if (null == RoomAttrTableAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("RoomAttrTable"); RoomAttrTableAsset = new RoomAttrTable(); RoomAttrTableAsset.Load(asset.bytes); } if (null == SkillTableAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("SkillTable"); SkillTableAsset = new SkillTable(); SkillTableAsset.Load(asset.bytes); } if (null == VocationTableAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("VocationTable"); VocationTableAsset = new VocationTable(); VocationTableAsset.Load(asset.bytes); } if (null == NPCInfoTableAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("NPCInfoTable"); NPCInfoTableAsset = new NPCInfoTable(); NPCInfoTableAsset.Load(asset.bytes); } if (null == TrapInfoTableAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("TrapInfoTable"); TrapInfoTableAsset = new TrapInfoTable(); TrapInfoTableAsset.Load(asset.bytes); } if (null == HeroInfoTableAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("HeroInfoTable"); HeroInfoTableAsset = new HeroInfoTable(); HeroInfoTableAsset.Load(asset.bytes); } //if (null == AnimWeightTableAsset) //{ // TextAsset asset = GameData.LoadConfig<TextAsset>("AnimWeight"); // AnimWeightTableAsset = new AnimWeightTable(); // AnimWeightTableAsset.Load(asset.bytes); //} if (null == SceneInfoTableAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("SceneInfoTable"); SceneInfoTableAsset = new SceneInfoTable(); SceneInfoTableAsset.Load(asset.bytes); } //if (null == DungeonInfoTableAsset) //{ // TextAsset asset = GameData.LoadConfig<TextAsset>("DungeonInfoTable"); // DungeonInfoTableAsset = new DungeonInfoTable(); // DungeonInfoTableAsset.Load(asset.bytes); //} if (null == SkillResultTableAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("SkillResultTable"); SkillResultTableAsset = new SkillResultTable(); SkillResultTableAsset.Load(asset.bytes); } if (null == AnimationTownAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("AnimationTown"); AnimationTownAsset = new AnimationTable(); AnimationTownAsset.Load(asset.bytes); } if (null == AnimationFightAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("AnimationFight"); AnimationFightAsset = new AnimationTable(); AnimationFightAsset.Load(asset.bytes); } AnimationTableAsset = AnimationFightAsset; if (null == ActionRelationTableAsset) { TextAsset asset = GameData.LoadConfig <TextAsset>("ActionRelation"); ActionRelationTableAsset = new ActionRelationTable(); ActionRelationTableAsset.Load(asset.bytes); } if (null == EquipTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("EquipBaseData"); EquipTableAsset = new EquipTable(); EquipTableAsset.Load(obj.bytes); } if (null == ModelInfoTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("ModelInfoTable"); ModelInfoTableAsset = new ModelInfoTable(); ModelInfoTableAsset.Load(obj.bytes); } if (null == WeaponInfoTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("WeaponInfoTable"); WeaponInfoTableAsset = new WeaponInfoTable(); WeaponInfoTableAsset.Load(obj.bytes); } if (null == UILoadInfoTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("UILoadInfoTable"); UILoadInfoTableAsset = new UILoadInfoTable(); UILoadInfoTableAsset.Load(obj.bytes); } if (null == IconTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("IconTable"); IconTableAsset = new IconTable(); IconTableAsset.Load(obj.bytes); } if (null == BuffTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("Buff"); BuffTableAsset = new BuffTable(); BuffTableAsset.Load(obj.bytes); } if (null == BuffRelationTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("BuffReplaceRelation"); BuffRelationTableAsset = new BuffRelationTable(); BuffRelationTableAsset.Load(obj.bytes); } if (null == BuffEffectTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("BuffEffect"); BuffEffectTableAsset = new BuffEffectTable(); BuffEffectTableAsset.Load(obj.bytes); } //if (null == CheckInfoTableAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("Checkinfo"); // CheckInfoTableAsset = new CheckInfoTable(); // CheckInfoTableAsset.Load(obj.bytes); //} //if (null == NpcSayTableAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("NpcSay"); // NpcSayTableAsset = new NpcSayTable(); // NpcSayTableAsset.Load(obj.bytes); //} //if (null == ShopTableAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("NpcShop"); // ShopTableAsset = new ShopTable(); // ShopTableAsset.Load(obj.bytes); //} if (null == MissionTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("Task"); MissionTableAsset = new MissionTable(); MissionTableAsset.Load(obj.bytes); } if (null == AptitudeTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("Aptitude"); AptitudeTableAsset = new AptitudeTable(); AptitudeTableAsset.Load(obj.bytes); } if (null == StringTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("StringTable"); StringTableAsset = new StringTable(); StringTableAsset.Load(obj.bytes); } if (null == WorldParamTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("WorldParamTable"); WorldParamTableAsset = new WorldParamTable(); WorldParamTableAsset.Load(obj.bytes); } if (null == CDTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("CDTable"); CDTableAsset = new CDTable(); CDTableAsset.Load(obj.bytes); } //if (null == ServerTableAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("Servers"); // ServerTableAsset = new ServerTable(); // ServerTableAsset.Load(obj.bytes); //} //if (null == SceneMapNumericTableAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("Coordinate"); // SceneMapNumericTableAsset = new SceneMapNumericTable(); // SceneMapNumericTableAsset.Load(obj.bytes); //} //if (null == EquipExpMoneyTableAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("EquipExpMoney"); // EquipExpMoneyTableAsset = new EquipExpMoneyTable(); // EquipExpMoneyTableAsset.Load(obj.bytes); //} //if (null == ShakeTableAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("Shake"); // ShakeTableAsset = new ShakeTable(); // ShakeTableAsset.Load(obj.bytes); //} //if (null == PlayerGuideTableAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("PlayerGuide"); // PlayerGuideTableAsset = new PlayerGuideTable(); // PlayerGuideTableAsset.Load(obj.bytes); //} //if (null == IllumeTableAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("Illume"); // IllumeTableAsset = new IllumeTable(); // IllumeTableAsset.Load(obj.bytes); //} //if (null == BossTableAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("BOSS"); // BossTableAsset = new BossTable(); // BossTableAsset.Load(obj.bytes); //} //if (null == SandTableInfoTableAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("SandTableInfoTable"); // SandTableInfoTableAsset = new SandTableInfoTable(); // SandTableInfoTableAsset.Load(obj.bytes); //} if (null == LevelUpTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("LvUpExp"); LevelUpTableAsset = new LevelUpTable(); LevelUpTableAsset.Load(obj.bytes); } //if (null == DungeonEventTableAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("DungeonEvent"); // DungeonEventTableAsset = new DungeonEventTable(); // DungeonEventTableAsset.Load(obj.bytes); //} //if (null == DungeonEventResultTableAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("DungeonEventResult"); // DungeonEventResultTableAsset = new DungeonEventResultTable(); // DungeonEventResultTableAsset.Load(obj.bytes); //} //if (null == DungeonFilesAsset) //{ // TextAsset obj = GameData.LoadConfig<TextAsset>("DungeonFiles"); // DungeonFilesAsset = new DungeonFiles(); // DungeonFilesAsset.Load(obj.bytes); //} if (null == RarityRelativeAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("RarityRelative"); RarityRelativeAsset = new RarityRelativeTable(); RarityRelativeAsset.Load(obj.bytes); } if (null == OccupationInfoAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("OccupationInfoTable"); OccupationInfoAsset = new OccupationInfoTable(); OccupationInfoAsset.Load(obj.bytes); } if (null == PlayerRandomNameAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("PlayerRandomName"); PlayerRandomNameAsset = new PlayerRandomNameTable(); PlayerRandomNameAsset.Load(obj.bytes); } if (null == ZoneInfoTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("ZoneInfo"); ZoneInfoTableAsset = new ZoneInfoTable(); ZoneInfoTableAsset.Load(obj.bytes); } if (null == StageInfoTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("StageInfo"); StageInfoTableAsset = new StageInfoTable(); StageInfoTableAsset.Load(obj.bytes); } if (null == FloorInfoTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("FloorInfo"); FloorInfoTableAsset = new FloorInfoTable(); FloorInfoTableAsset.Load(obj.bytes); } if (null == ItemTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("Item"); ItemTableAsset = new ItemTable(); ItemTableAsset.Load(obj.bytes); } if (null == floorRankTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("FloorRankTable"); floorRankTableAsset = new FloorRankTable(); floorRankTableAsset.Load(obj.bytes); } if (null == ScoreParamTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("ScoreParamTable"); ScoreParamTableAsset = new ScoreParamTable(); ScoreParamTableAsset.Load(obj.bytes); } if (null == BagTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("BagTable"); BagTableAsset = new BagTable(); BagTableAsset.Load(obj.bytes); } if (null == RaceInfoTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("RaceInfoTable"); RaceInfoTableAsset = new RaceInfoTable(); RaceInfoTableAsset.Load(obj.bytes); } if (null == EquipmentTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("Equipment"); EquipmentTableAsset = new EquipmentTable(); EquipmentTableAsset.Load(obj.bytes); } if (null == playerAttrTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("PlayerAttrTable"); playerAttrTableAsset = new PlayerAttrTable(); playerAttrTableAsset.Load(obj.bytes); } if (null == loadingTipsAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("LoadingTips"); loadingTipsAsset = new LoadingTipsTable(); loadingTipsAsset.Load(obj.bytes); } if (null == MagicStoneTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("MagicStonePrice"); MagicStoneTableAsset = new MagicStoneTable(); MagicStoneTableAsset.Load(obj.bytes); } if (null == RingExchangeTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("RingExchangeTable"); RingExchangeTableAsset = new RingExchangeTable(); RingExchangeTableAsset.Load(obj.bytes); } // if (null == SceneRoomTableAsset) // { // TextAsset obj = GameData.LoadConfig<TextAsset>("SceneRoomTable"); // SceneRoomTableAsset = new SceneRoomTable(); // SceneRoomTableAsset.Load(obj.bytes); // } // if (null == SceneBridgeTableAsset) // { // TextAsset obj = GameData.LoadConfig<TextAsset>("SceneBridgeTable"); // SceneBridgeTableAsset = new SceneBridgeTable(); // SceneBridgeTableAsset.Load(obj.bytes); // } // if (null == SceneGateTableAsset) // { // TextAsset obj = GameData.LoadConfig<TextAsset>("SceneGateTable"); // SceneGateTableAsset = new SceneGateTable(); // SceneGateTableAsset.Load(obj.bytes); // } // if (null == SceneTeleportTableAsset) // { // TextAsset obj = GameData.LoadConfig<TextAsset>("SceneTeleportTable"); // SceneTeleportTableAsset = new SceneTeleportTable(); // SceneTeleportTableAsset.Load(obj.bytes); // } if (null == MessageRespondTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("MessageRespondTable"); MessageRespondTableAsset = new MessageRespondTable(); MessageRespondTableAsset.Load(obj.bytes); } if (null == IconInfoTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("Icon"); IconInfoTableAsset = new IconInfoTable(); IconInfoTableAsset.Load(obj.bytes); } if (null == attrRatioTableAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("AttrRatioTable"); attrRatioTableAsset = new AttrRatioTable(); attrRatioTableAsset.Load(obj.bytes); } if (null == ComboSwordSoulAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("ComboSwordSoulTable"); ComboSwordSoulAsset = new ComboSwordSoulTable(); ComboSwordSoulAsset.Load(obj.bytes); } if (null == eventItemAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("EventItem"); eventItemAsset = new EventItemTable(); eventItemAsset.Load(obj.bytes); } if (null == gradeUpRequireAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("GradeUpRequireTable"); gradeUpRequireAsset = new GradeUpRequireTable(); gradeUpRequireAsset.Load(obj.bytes); } if (null == qualityRelativeAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("QualityRelativeTable"); qualityRelativeAsset = new QualityRelativeTable(); qualityRelativeAsset.Load(obj.bytes); } if (null == cardTypeVariationAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("CardTypeVariationTable"); cardTypeVariationAsset = new CardTypeVariationTable(); cardTypeVariationAsset.Load(obj.bytes); } if (null == cardLevelVariationAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("CardLevelupVariationTable"); cardLevelVariationAsset = new CardLevelVariationTable(); cardLevelVariationAsset.Load(obj.bytes); } if (null == yellowPointParamAsset) { TextAsset obj = GameData.LoadConfig <TextAsset>("YellowPointParam"); yellowPointParamAsset = new YellowPointParamTable(); yellowPointParamAsset.Load(obj.bytes); } //加载随机地图相关表数据 LoadRandMapTableData(); int id = 70; int level = 12; int yellow = 3; int hp = BattleFormula.GetHp(id, level, yellow); int phyAttack = BattleFormula.GetPhyAttack(id, level, yellow); int magAttack = BattleFormula.GetMagAttack(id, level, yellow); int magDefend = BattleFormula.GetMagDefend(id, level, yellow); int phyDEFEND = BattleFormula.GetPhyDefend(id, level, yellow); Debug.Log("magDefend:" + magDefend); Debug.Log("magAttack:" + magAttack); Debug.Log("phyDEFEND:" + phyDEFEND); Debug.Log("phyAttack:" + phyAttack); Debug.Log("hp:" + hp); }