// Token: 0x0600084D RID: 2125 RVA: 0x000A85F4 File Offset: 0x000A67F4 public void InitCSSimulator(ushort RndSeed, ushort RndGap) { if (!BSInvokeUtil.DllCSInit(this.m_pCSObject, RndSeed, RndGap)) { Debug.LogError("Init CS Failed"); } }
// Token: 0x06000860 RID: 2144 RVA: 0x000A8880 File Offset: 0x000A6A80 public void updateWonderBonus(uint[] EffVal) { List <WonderData> wonders = DataManager.Instance.m_Wonders; Array.Clear(EffVal, 0, EffVal.Length); if (this.WonderCheck == null) { this.WonderCheck = new byte[DataManager.MapDataController.MapWondersInfoTable.TableCount]; } else { Array.Clear(this.WonderCheck, 0, this.WonderCheck.Length); } for (int i = 0; i < wonders.Count; i++) { if ((int)wonders[i].WonderID < this.WonderCheck.Length && this.WonderCheck[(int)wonders[i].WonderID] <= 0) { this.WonderCheck[(int)wonders[i].WonderID] = 1; BSInvokeUtil.DllCSCalculateWonderBonus(this.m_pCSObject, wonders[i].WonderID + 1, EffVal); } } BSInvokeUtil.DllCSCalculateWonderTitleBonus(this.m_pCSObject, (byte)DataManager.Instance.RoleAttr.KingdomTitle, EffVal); BSInvokeUtil.DllCSCalculateWorldTitleBonus(this.m_pCSObject, (byte)DataManager.Instance.RoleAttr.WorldTitle_Personal, (byte)DataManager.Instance.RoleAttr.WorldTitle_Country, EffVal); BSInvokeUtil.DllCSCalculateFederalTitleBonus(this.m_pCSObject, (byte)DataManager.Instance.RoleAttr.NobilityTitle, EffVal); }
// Token: 0x0600078B RID: 1931 RVA: 0x000A3334 File Offset: 0x000A1534 protected void OnDestroy() { this.ClearObservers(); for (int i = 0; i < this.observers.Length; i++) { Array.Clear(this.observers[i], 0, this.observers[i].Length); Array.Clear(this.observerCounts[i], 0, this.observerCounts[i].Length); } this.observers = null; this.observerCounts = null; if (this.updateDelegates != null) { Array.Clear(this.updateDelegates, 0, this.updateDelegates.Length); this.updateDelegates = null; } GameManager.ActiveGameplay = null; BSInvokeUtil.free(); AssetManager.FreeAss(); NetworkManager.Destroy(); AudioManager.Instance.Destroy(); GUIManager.Instance.Free(); if (GameManager.gameManager != null) { GameManager.gameManager = null; } }
// Token: 0x06000844 RID: 2116 RVA: 0x000A8444 File Offset: 0x000A6644 public void Dispose() { BSInvokeUtil.DllDisposeBSInstance(this.m_pBSObject); BSInvokeUtil.DllDisposeCSInstance(this.m_pCSObject); BSInvokeUtil.DllDisposeTableInstance(); this.m_pBSObject = IntPtr.Zero; this.m_pCSObject = IntPtr.Zero; }
// Token: 0x06000861 RID: 2145 RVA: 0x000A89D0 File Offset: 0x000A6BD0 public void updateCastleSkinBonus(uint[] EffVal) { BuildsData buildingData = GUIManager.Instance.BuildingData; if (buildingData.castleSkin.SkinUnlock != null && buildingData.castleSkin.SkinLevel != null && buildingData.GetBuildData(8, 0).Level >= 9) { BSInvokeUtil.DllCSCalculateCastleSKinBonus(this.m_pCSObject, buildingData.castleSkin.SkinUnlock, buildingData.castleSkin.SkinLevel, EffVal); } }
// Token: 0x0600085B RID: 2139 RVA: 0x000A87B8 File Offset: 0x000A69B8 public void updateHeroEffectval(byte HeroNum, CalcHeroDataType[] calcHeroData, uint[] EffVal) { if (HeroNum == 0) { Array.Clear(EffVal, 0, EffVal.Length); return; } BSInvokeUtil.DllCSCalculateHeroSkillBonus(this.m_pCSObject, HeroNum, calcHeroData, (byte)DataManager.Instance.beCaptured.nowCaptureStat, DataManager.Instance.GetLeaderID(), EffVal); }
// Token: 0x06000859 RID: 2137 RVA: 0x000A86EC File Offset: 0x000A68EC public unsafe void updateBuildEffectval(uint[] EffVal) { byte bAlterOpen = 0; if (GUIManager.Instance.BuildingData.GetBuildNumByID(19) > 0 && DataManager.Instance.m_AltarEffect.BeginTime > 0L) { bAlterOpen = 1; } if (GUIManager.Instance.BuildingData.AllBuildsData.Length > 0) { fixed(RoleBuildingData *ptr = ref (GUIManager.Instance.BuildingData.AllBuildsData != null && GUIManager.Instance.BuildingData.AllBuildsData.Length != 0)?ref GUIManager.Instance.BuildingData.AllBuildsData[0] : ref *null) { BSInvokeUtil.DllCSCalculateBuildingBonus(this.m_pCSObject, ptr + 1, bAlterOpen, EffVal); } } }
// Token: 0x06000862 RID: 2146 RVA: 0x000A8A44 File Offset: 0x000A6C44 public void updatePetAttribBonum(uint[] EffVal) { ushort petDataCount = PetManager.Instance.PetDataCount; PetManager instance = PetManager.Instance; _CalcPetDataType[] calcPetDataType = PetManager.Instance.CalcPetDataType; byte b = 0; while ((ushort)b < petDataCount) { PetData petData = instance.GetPetData((int)b); calcPetDataType[(int)b].PetID = petData.ID; calcPetDataType[(int)b].Star = petData.Enhance; calcPetDataType[(int)b].SkillLV = petData.SkillLv; b += 1; } BSInvokeUtil.DllCSCalculatePetSkillBonus(this.m_pCSObject, petDataCount, calcPetDataType, EffVal); }
// Token: 0x06000845 RID: 2117 RVA: 0x000A8478 File Offset: 0x000A6678 public void InitSimulator(ref BattleInfo battleInfo) { if (!BSInvokeUtil.DllBSInit(this.m_pBSObject, battleInfo.RandomSeed, battleInfo.RandomGap, battleInfo.BattleType, battleInfo.StageKind, battleInfo.StageID, battleInfo.PrimarySide)) { Debug.LogError(string.Concat(new string[] { "Init BS Failed IsNull:", false.ToString(), " RandomSeed: ", battleInfo.RandomSeed.ToString(), " RandomGap: ", battleInfo.RandomGap.ToString(), " BattleType: ", battleInfo.BattleType.ToString(), " StageKind: ", battleInfo.StageKind.ToString(), " StageID: ", battleInfo.StageID.ToString(), " PrimarySide: ", battleInfo.PrimarySide.ToString() })); } }
// Token: 0x06000867 RID: 2151 RVA: 0x000A8B3C File Offset: 0x000A6D3C public uint GetVersion() { return(BSInvokeUtil.DllGetVersionNum()); }
// Token: 0x06000868 RID: 2152 RVA: 0x000A8B44 File Offset: 0x000A6D44 public void SetArenaTopic(byte TopicID1, byte TopicID2, ArenaTopicEffectDataType Effect1, ArenaTopicEffectDataType Effect2) { BSInvokeUtil.DLLBSSetArenaTopic(this.m_pBSObject, TopicID1, TopicID2, Effect1, Effect2); }
// Token: 0x06000865 RID: 2149 RVA: 0x000A8B18 File Offset: 0x000A6D18 public byte SetMonsterHP(uint MaxHP, uint NowHP) { return(BSInvokeUtil.DLLBSSetPVEMonsterHP(this.m_pBSObject, MaxHP, NowHP)); }
// Token: 0x06000866 RID: 2150 RVA: 0x000A8B28 File Offset: 0x000A6D28 public bool SetMonsterAttrData(ref MonsterAttrDataType AttrData) { return(BSInvokeUtil.DLLBSSetPVEMonsterAttr(this.m_pBSObject, AttrData)); }
// Token: 0x06000863 RID: 2147 RVA: 0x000A8AD4 File Offset: 0x000A6CD4 public void getCombatStageAttr(byte CombatStageID, ushort Head, byte HeroNum, TroopLeaderType[] pHeroData, uint[] pCalcCombatAttr, uint[] pCalcCombatLoadAttr, uint[] pResultLeftAtk, uint[] pResultLeftDef, uint[] pResultLeftHp, uint[] pResultRightAtk, uint[] pResultRightDef, uint[] pResultRightHp, ref CombatCastleDefAttrDataType pResultTrapAttr, bool bInDeShieldBuff) { BSInvokeUtil.DllCSGetCombatStageAttr(this.m_pCSObject, CombatStageID, Head, HeroNum, pHeroData, pCalcCombatAttr, pCalcCombatLoadAttr, pResultLeftAtk, pResultLeftDef, pResultLeftHp, pResultRightAtk, pResultRightDef, pResultRightHp, ref pResultTrapAttr, bInDeShieldBuff); }
// Token: 0x06000864 RID: 2148 RVA: 0x000A8B08 File Offset: 0x000A6D08 public uint getEventDataLen() { return(BSInvokeUtil.DLLBSGetEventDataLen(this.m_pBSObject)); }
// Token: 0x060007E9 RID: 2025 RVA: 0x000A7D74 File Offset: 0x000A5F74 private BSInvokeUtil() { BSInvokeUtil.DllCreateTableInstance(); CExternalTableWithWordKey <Hero> heroTable = DataManager.Instance.HeroTable; BSInvokeUtil.DllSetHerosExtTable(heroTable.MapPtr, heroTable.MapCount, heroTable.TablePtr, heroTable.TableCount); CExternalTableWithWordKey <Skill> skillTable = DataManager.Instance.SkillTable; BSInvokeUtil.DllSetSkillsExtTable(skillTable.MapPtr, skillTable.MapCount, skillTable.TablePtr, skillTable.TableCount); CExternalTableWithWordKey <AI> aitable = DataManager.Instance.AITable; BSInvokeUtil.DllSetAIExtTable(aitable.MapPtr, aitable.MapCount, aitable.TablePtr, aitable.TableCount); CExternalTableWithWordKey <Buff> buffTable = DataManager.Instance.BuffTable; BSInvokeUtil.DllSetBuffExtTable(buffTable.MapPtr, buffTable.MapCount, buffTable.TablePtr, buffTable.TableCount); CExternalTableWithWordKey <Enhance> enhanceTable = DataManager.Instance.EnhanceTable; BSInvokeUtil.DllSetEnhanceExtTable(enhanceTable.MapPtr, enhanceTable.MapCount, enhanceTable.TablePtr, enhanceTable.TableCount); CExternalTableWithWordKey <Equip> equipTable = DataManager.Instance.EquipTable; BSInvokeUtil.DllSetEquipExtTable(equipTable.MapPtr, equipTable.MapCount, equipTable.TablePtr, equipTable.TableCount); CExternalTableWithWordKey <Level> cexternalTableWithWordKey = DataManager.StageDataController.LevelTable[1]; BSInvokeUtil.DllSetNormalStageExtTable(cexternalTableWithWordKey.MapPtr, cexternalTableWithWordKey.MapCount, cexternalTableWithWordKey.TablePtr, cexternalTableWithWordKey.TableCount); CExternalTableWithWordKey <HeroTeam> teamTable = DataManager.Instance.TeamTable; BSInvokeUtil.DllSetEnemyExtTable(teamTable.MapPtr, teamTable.MapCount, teamTable.TablePtr, teamTable.TableCount); CExternalTableWithWordKey <HeroArray> arrayTable = DataManager.Instance.ArrayTable; BSInvokeUtil.DllSetArrayExtTable(arrayTable.MapPtr, arrayTable.MapCount, arrayTable.TablePtr, arrayTable.TableCount); CExternalTableWithWordKey <Level> cexternalTableWithWordKey2 = DataManager.StageDataController.LevelTable[0]; BSInvokeUtil.DllSetNormalMiniStageExtTable(cexternalTableWithWordKey2.MapPtr, cexternalTableWithWordKey2.MapCount, cexternalTableWithWordKey2.TablePtr, cexternalTableWithWordKey2.TableCount); CExternalTableWithWordKey <Level> cexternalTableWithWordKey3 = DataManager.StageDataController.LevelTable[2]; BSInvokeUtil.DllSetAdvanceStageExtTable(cexternalTableWithWordKey3.MapPtr, cexternalTableWithWordKey3.MapCount, cexternalTableWithWordKey3.TablePtr, cexternalTableWithWordKey3.TableCount); CExternalTableWithWordKey <SoldierData> soldierDataTable = DataManager.Instance.SoldierDataTable; BSInvokeUtil.DllSetSoldierExtTable(soldierDataTable.MapPtr, soldierDataTable.MapCount, soldierDataTable.TablePtr, soldierDataTable.TableCount); CExternalTableWithWordKey <Combo> comboTable = DataManager.Instance.ComboTable; BSInvokeUtil.DllSetComboExtTable(comboTable.MapPtr, comboTable.MapCount, comboTable.TablePtr, comboTable.TableCount); CExternalTableWithWordKey <BuildLevelRequest> buildsRequest = DataManager.Instance.BuildsRequest; BSInvokeUtil.DllSetBuildUpExtTable(buildsRequest.MapPtr, buildsRequest.MapCount, buildsRequest.TablePtr, buildsRequest.TableCount); CExternalTableWithWordKey <TechLevelTbl> techLevel = DataManager.Instance.TechLevel; BSInvokeUtil.DllSetTechLvExtTable(techLevel.MapPtr, techLevel.MapCount, techLevel.TablePtr, techLevel.TableCount); CExternalTableWithWordKey <CorpsStage> corpsStageTable = DataManager.StageDataController.CorpsStageTable; BSInvokeUtil.DllSetCombatStageInterfaceExtTable(corpsStageTable.MapPtr, corpsStageTable.MapCount, corpsStageTable.TablePtr, corpsStageTable.TableCount); CExternalTableWithWordKey <CorpsStageBattle> corpsStageBattleTable = DataManager.StageDataController.CorpsStageBattleTable; BSInvokeUtil.DllSetCombatStageFightExtTable(corpsStageBattleTable.MapPtr, corpsStageBattleTable.MapCount, corpsStageBattleTable.TablePtr, corpsStageBattleTable.TableCount); CExternalTableWithWordKey <TalentLevelTbl> talentLevel = DataManager.Instance.TalentLevel; BSInvokeUtil.DllSetTalentLevelExtTable(talentLevel.MapPtr, talentLevel.MapCount, talentLevel.TablePtr, talentLevel.TableCount); CExternalTableWithWordKey <VIP_DataTbl> viplevelTable = DataManager.Instance.VIPLevelTable; BSInvokeUtil.DllSetVIPExtTable(viplevelTable.MapPtr, viplevelTable.MapCount, viplevelTable.TablePtr, viplevelTable.TableCount); CExternalTableWithWordKey <LordEquipEffectData> lordEquipEffectTable = DataManager.Instance.LordEquipEffectTable; BSInvokeUtil.DllSetLordEquipEffectExtTable(lordEquipEffectTable.MapPtr, lordEquipEffectTable.MapCount, lordEquipEffectTable.TablePtr, lordEquipEffectTable.TableCount); CExternalTableWithWordKey <ArenaHeroTopic> arenaHeroTopicData = DataManager.Instance.ArenaHeroTopicData; BSInvokeUtil.DllSetArenaHeroTopicExtTable(arenaHeroTopicData.MapPtr, arenaHeroTopicData.MapCount, arenaHeroTopicData.TablePtr, (ushort)arenaHeroTopicData.TableCount); CExternalTableWithWordKey <WondersInfoTbl> mapWondersInfoTable = DataManager.MapDataController.MapWondersInfoTable; BSInvokeUtil.DllSetWondersInformationExtTable(mapWondersInfoTable.MapPtr, mapWondersInfoTable.MapCount, mapWondersInfoTable.TablePtr, (int)((ushort)mapWondersInfoTable.TableCount)); CExternalTableWithWordKey <TitleData> cexternalTableWithWordKey4 = DataManager.Instance.TitleData; BSInvokeUtil.DllSetWondersTitleExtTable(cexternalTableWithWordKey4.MapPtr, cexternalTableWithWordKey4.MapCount, cexternalTableWithWordKey4.TablePtr, (int)((ushort)cexternalTableWithWordKey4.TableCount)); cexternalTableWithWordKey4 = DataManager.Instance.TitleDataW; BSInvokeUtil.DllSetEmperorTitleExtTable(cexternalTableWithWordKey4.MapPtr, cexternalTableWithWordKey4.MapCount, cexternalTableWithWordKey4.TablePtr, (int)((ushort)cexternalTableWithWordKey4.TableCount)); cexternalTableWithWordKey4 = DataManager.Instance.TitleDataN; BSInvokeUtil.DllSetEmperorKingdomTitleExtTable(cexternalTableWithWordKey4.MapPtr, cexternalTableWithWordKey4.MapCount, cexternalTableWithWordKey4.TablePtr, (int)((ushort)cexternalTableWithWordKey4.TableCount)); cexternalTableWithWordKey4 = DataManager.Instance.TitleDataF; BSInvokeUtil.DllSetFederalTitleExtTable(cexternalTableWithWordKey4.MapPtr, cexternalTableWithWordKey4.MapCount, cexternalTableWithWordKey4.TablePtr, (int)((ushort)cexternalTableWithWordKey4.TableCount)); CExternalTableWithWordKey <CoordData> coordTable = DataManager.Instance.CoordTable; BSInvokeUtil.DllSetCoordinateTable(coordTable.MapPtr, coordTable.MapCount, coordTable.TablePtr, (int)((ushort)coordTable.TableCount)); CExternalTableWithWordKey <StageConditionData> stageConditionDataTable = DataManager.StageDataController.StageConditionDataTable; BSInvokeUtil.DllSetHeroChallengeQuestTable(stageConditionDataTable.MapPtr, stageConditionDataTable.MapCount, stageConditionDataTable.TablePtr, (ushort)stageConditionDataTable.TableCount); CExternalTableWithWordKey <CastleSkinTbl> castleSkinTable = GUIManager.Instance.BuildingData.castleSkin.CastleSkinTable; BSInvokeUtil.DllSetCastleSkinTable(castleSkinTable.MapPtr, (uint)castleSkinTable.MapCount, castleSkinTable.TablePtr, (ushort)castleSkinTable.TableCount); CExternalTableWithWordKey <CastleEnhanceTbl> castleEnhanceTable = GUIManager.Instance.BuildingData.castleSkin.CastleEnhanceTable; BSInvokeUtil.DllSetCastleSkinEnhanceTable(castleEnhanceTable.MapPtr, castleEnhanceTable.MapCount, castleEnhanceTable.TablePtr, (ushort)castleEnhanceTable.TableCount); CExternalTableWithWordKey <PetTbl> petTable = PetManager.Instance.PetTable; BSInvokeUtil.DllSetPetTable(petTable.MapPtr, petTable.MapCount, petTable.TablePtr, (ushort)petTable.TableCount); CExternalTableWithWordKey <PetSkillTbl> petSkillTable = PetManager.Instance.PetSkillTable; BSInvokeUtil.DllSetPetSkillTable(petSkillTable.MapPtr, petSkillTable.MapCount, petSkillTable.TablePtr, (ushort)petSkillTable.TableCount); CExternalTableWithWordKey <PetSkillValTbl> petSkillValTable = PetManager.Instance.PetSkillValTable; BSInvokeUtil.DllSetCPetSkillValueTable(petSkillValTable.MapPtr, petSkillValTable.MapCount, petSkillValTable.TablePtr, (ushort)petSkillValTable.TableCount); CExternalTableWithWordKey <LordEquipExtendData> lordEquipExtendTable = DataManager.Instance.LordEquipExtendTable; BSInvokeUtil.DllSetLordEquipExtendTable(lordEquipExtendTable.MapPtr, lordEquipExtendTable.MapCount, lordEquipExtendTable.TablePtr, (ushort)lordEquipExtendTable.TableCount); this.m_pBSObject = BSInvokeUtil.DllCreateBSInstance(); this.m_pCSObject = BSInvokeUtil.DllCreateCSInstance(); }
// Token: 0x06000858 RID: 2136 RVA: 0x000A86DC File Offset: 0x000A68DC public void checkUltraHitTarget(byte Param1, byte Param2, ref uint HitNum) { BSInvokeUtil.DllBSCheckUltraHitTarget(this.m_pBSObject, Param1, Param2, ref HitNum); }
// Token: 0x0600085F RID: 2143 RVA: 0x000A886C File Offset: 0x000A6A6C public void updateLordBonus(uint[] EffVal) { BSInvokeUtil.DllCSCalculateOnLordEquipBonus(this.m_pCSObject, LordEquipData.RoleEquip, EffVal); }
// Token: 0x0600086C RID: 2156 RVA: 0x000A8B78 File Offset: 0x000A6D78 public void SetHeroChallengeDifficulty(ushort QuestA, ushort QuestB = 0) { BSInvokeUtil.DLLBSetHeroChallengeDifficulty(this.m_pBSObject, QuestA, QuestB); }
// Token: 0x0600085E RID: 2142 RVA: 0x000A884C File Offset: 0x000A6A4C public void updateVIPBonus(uint[] EffVal) { BSInvokeUtil.DllCSCalculateVIPBonus(this.m_pCSObject, DataManager.Instance.RoleAttr.VIPLevel, EffVal); }
// Token: 0x0600085D RID: 2141 RVA: 0x000A8818 File Offset: 0x000A6A18 public void updateBuffBonus(byte buffNum, ushort[] ItemID, uint[] EffVal) { byte petBuffNum = PetManager.Instance.UpdateCalculateBuffInfo(); BSInvokeUtil.DllCSCalculateBuffBonus(this.m_pCSObject, buffNum, ItemID, petBuffNum, PetManager.Instance.CalcPetBuffDataType, EffVal); }
// Token: 0x0600085C RID: 2140 RVA: 0x000A8800 File Offset: 0x000A6A00 public void updateTalentval(uint[] EffVal) { BSInvokeUtil.DllCSCalculateTalentBonus(this.m_pCSObject, DataManager.Instance.AllTalentData, EffVal); }
// Token: 0x06000869 RID: 2153 RVA: 0x000A8B58 File Offset: 0x000A6D58 public void SetCoordData(ushort LeftCoord, ushort RightCoord) { BSInvokeUtil.DLLSetCoordData(LeftCoord, RightCoord); }
// Token: 0x06000857 RID: 2135 RVA: 0x000A86CC File Offset: 0x000A68CC public uint checkRightUltraCondition() { return(BSInvokeUtil.DllBSCheckRightUltraCondition(this.m_pBSObject)); }
// Token: 0x0600086B RID: 2155 RVA: 0x000A8B68 File Offset: 0x000A6D68 public void CasinoModeInput(byte Param) { BSInvokeUtil.DLLBSCasinoModeInput(this.m_pBSObject, Param); }
// Token: 0x0600085A RID: 2138 RVA: 0x000A87A0 File Offset: 0x000A69A0 public void updateTechnlolgyEffectval(uint[] EffVal) { BSInvokeUtil.DllCSCalculateResearchBonus(this.m_pCSObject, DataManager.Instance.AllTechData, EffVal); }
// Token: 0x0600086D RID: 2157 RVA: 0x000A8B88 File Offset: 0x000A6D88 public byte GetHeroChallengeFailedQuest() { return(BSInvokeUtil.DLLBGetHeroChallengeFailedQuest(this.m_pBSObject)); }
// Token: 0x06000854 RID: 2132 RVA: 0x000A8698 File Offset: 0x000A6898 public bool initUltra(byte heroIdx, ref byte closetHeroIdx, ref float posX, ref float posY) { return(BSInvokeUtil.DllBSInitUltra(this.m_pBSObject, heroIdx, ref closetHeroIdx, ref posX, ref posY)); }
// Token: 0x06000853 RID: 2131 RVA: 0x000A8688 File Offset: 0x000A6888 public bool setWallTrapInfo(uint WallDefence, uint WallDefenceMax, uint[,] pTrapForce) { return(BSInvokeUtil.DllCSSetWallTrapInfo(this.m_pCSObject, WallDefence, WallDefenceMax, pTrapForce)); }
// Token: 0x06000855 RID: 2133 RVA: 0x000A86AC File Offset: 0x000A68AC public void ultraInput(byte param1, byte param2) { BSInvokeUtil.DllBSUltraInput(this.m_pBSObject, param1, param2); }