cull(engine-cleanup): pass-8 phase-2 cascade round 1
[trim] fully-unreachable files deleted: 6 [trim] files edited: 55, files deleted: 0, nodes removed: 244 [type-trim] files edited: 1, types removed: 1 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -106,7 +106,6 @@ public class DataMgr
|
||||
SecretBossQuest = 46,
|
||||
CompetitionTwoPick = 47,
|
||||
Avatar = 48,
|
||||
ColosseumAvatar = 49,
|
||||
None = 100
|
||||
}
|
||||
|
||||
@@ -174,8 +173,6 @@ public class DataMgr
|
||||
|
||||
public BattleType m_BattleType = BattleType.None;
|
||||
|
||||
public TwoPickFormat TwoPickFormat;
|
||||
|
||||
public string BattleId = "";
|
||||
|
||||
private static string[] ClanNameTextIdList = new string[9] { "Common_0104", "Common_0105", "Common_0106", "Common_0107", "Common_0108", "Common_0109", "Common_0110", "Common_0111", "Common_0112" };
|
||||
@@ -184,12 +181,8 @@ public class DataMgr
|
||||
|
||||
public int PracticeDifficultyDegreeId { get; set; }
|
||||
|
||||
public int Practice3DfieldId { get; set; }
|
||||
|
||||
public List<int> FavoriteCardList { get; private set; }
|
||||
|
||||
public DeckGroupListData CurrentDeckListParamData { get; set; }
|
||||
|
||||
public SpecialBattleSetting SpecialBattleSettingInfo { get; set; }
|
||||
|
||||
public BattleManagerBase.MissionNecessaryInformation MissionNecessaryInformation { get; set; } = new BattleManagerBase.MissionNecessaryInformation(new Dictionary<string, string>());
|
||||
@@ -212,8 +205,6 @@ public class DataMgr
|
||||
|
||||
public int PuzzleEnemyClass { get; set; }
|
||||
|
||||
public QuestSelectionPage.FirstSelectType QuestFirstSelectType { get; set; }
|
||||
|
||||
public int StoryEnemyClassId { get; set; }
|
||||
|
||||
public JsonData RecoveryData { get; private set; }
|
||||
@@ -257,34 +248,6 @@ public class DataMgr
|
||||
RecoveryData = recoveryData;
|
||||
}
|
||||
|
||||
public bool IsDipslayHighRankFormat()
|
||||
{
|
||||
switch (m_BattleType)
|
||||
{
|
||||
case BattleType.TwoPick:
|
||||
case BattleType.Story:
|
||||
case BattleType.Practice:
|
||||
case BattleType.RoomTwoPick:
|
||||
case BattleType.TwoPickBackdraft:
|
||||
case BattleType.ColosseumTwoPick:
|
||||
case BattleType.ColosseumHof:
|
||||
case BattleType.Sealed:
|
||||
case BattleType.ColosseumWindFall:
|
||||
case BattleType.Quest:
|
||||
case BattleType.BossRushQuest:
|
||||
case BattleType.SecretBossQuest:
|
||||
case BattleType.CompetitionTwoPick:
|
||||
case BattleType.Avatar:
|
||||
return true;
|
||||
default:
|
||||
if (Data.CurrentFormat != Format.Max && Data.CurrentFormat != Format.Windfall && Data.CurrentFormat != Format.MyRotation)
|
||||
{
|
||||
return Data.CurrentFormat == Format.Avatar;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsQuestBattleType()
|
||||
{
|
||||
return IsQuestBattleType(m_BattleType);
|
||||
@@ -299,16 +262,6 @@ public class DataMgr
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool IsRoomBattleType()
|
||||
{
|
||||
BattleType battleType = m_BattleType;
|
||||
if (battleType == BattleType.RoomBattle || (uint)(battleType - 6) <= 1u)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public DataMgr()
|
||||
{
|
||||
_possessionCardDict = new Dictionary<int, int>();
|
||||
@@ -338,11 +291,6 @@ public class DataMgr
|
||||
SetPlayerSleeveId(_playerSleeveId);
|
||||
}
|
||||
|
||||
public void ResetEnemyData()
|
||||
{
|
||||
_currentEnemyDeckData = null;
|
||||
}
|
||||
|
||||
public void LoadEnemyClassData()
|
||||
{
|
||||
if (_enemyCharaId == 0)
|
||||
@@ -402,15 +350,6 @@ public class DataMgr
|
||||
}
|
||||
}
|
||||
|
||||
public void RegisterAllAIData()
|
||||
{
|
||||
m_AIDataLibrary.Clear();
|
||||
RegisterAICommonData();
|
||||
RegisterAIDeckData();
|
||||
RegisterAIStyleData();
|
||||
RegisterAIEmoteData();
|
||||
}
|
||||
|
||||
public void SetPlayerCharaId(int charaId)
|
||||
{
|
||||
_playerCharaId = charaId;
|
||||
@@ -433,11 +372,6 @@ public class DataMgr
|
||||
_playerAvatarBattleInfo = Data.AvatarBattleAllInfo.Get(id);
|
||||
}
|
||||
|
||||
public void SetPlayerCharaIdByClassId(int classId, bool isCurrentChara = true)
|
||||
{
|
||||
SetPlayerCharaId(GetCharaPrmByClassId(classId, isCurrentChara).chara_id);
|
||||
}
|
||||
|
||||
public void SetPlayerCharaIdBySkinId(int skinId)
|
||||
{
|
||||
SetPlayerCharaId(GetCharaPrmBySkinId(skinId).chara_id);
|
||||
@@ -509,27 +443,6 @@ public class DataMgr
|
||||
_currentEnemyDeckData = deckdata;
|
||||
}
|
||||
|
||||
public void SetDeckMaxCount(int count, bool isSelf)
|
||||
{
|
||||
if (count != -1 && count != 0)
|
||||
{
|
||||
if (isSelf)
|
||||
{
|
||||
_deckMaxCardCount = count;
|
||||
}
|
||||
else
|
||||
{
|
||||
_enemyDeckMaxCardCount = count;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetQuestAILogicAndDeckData(int classId, int enemyAiId)
|
||||
{
|
||||
StoryAISettingData settingData = Data.Master.QuestAISettingList.GetSettingData(enemyAiId);
|
||||
SetCurrentEnemyDeckDataFromAIDeck(classId, -1, settingData.LogicLevel, 20, settingData.DeckId, settingData.StyleId, settingData.EmoteId, settingData.UseInnerEmote, enemyAiId);
|
||||
}
|
||||
|
||||
public void SetCurrentEnemyDeckDataFromAIDeck(int classID, int difficulty, int logicLevel, int maxLife, int deckId, int styleId, int emoteId, bool useInnerEmote, int enemyAiID = -1, List<int> specialAbilityIdList = null)
|
||||
{
|
||||
if (classID == 0)
|
||||
@@ -747,29 +660,11 @@ public class DataMgr
|
||||
return GetAbleSleeveId(_playerSleeveId);
|
||||
}
|
||||
|
||||
public string GetPlayerEmotionId()
|
||||
{
|
||||
if (!(_playerEmotionId == ""))
|
||||
{
|
||||
return _playerEmotionId;
|
||||
}
|
||||
return GetPlayerSkinId().ToString();
|
||||
}
|
||||
|
||||
public void SetPlayerEmotionId(string id)
|
||||
{
|
||||
_playerEmotionId = id;
|
||||
}
|
||||
|
||||
public string GetEnemyEmotionId()
|
||||
{
|
||||
if (!(_enemyEmotionId == ""))
|
||||
{
|
||||
return _enemyEmotionId;
|
||||
}
|
||||
return GetEnemySkinId().ToString();
|
||||
}
|
||||
|
||||
public void SetEnemyEmotionId(string id)
|
||||
{
|
||||
_enemyEmotionId = id;
|
||||
@@ -885,11 +780,6 @@ public class DataMgr
|
||||
return _possessionCardDict;
|
||||
}
|
||||
|
||||
public Dictionary<int, int> ClonePossessionCardDictionary(bool isIncludingSpotCard)
|
||||
{
|
||||
return new Dictionary<int, int>(GetUserOwnCardData(isIncludingSpotCard));
|
||||
}
|
||||
|
||||
public bool HasPossesionCardInfo(int cardId, bool isIncludingSpotCard)
|
||||
{
|
||||
return GetUserOwnCardData(isIncludingSpotCard).ContainsKey(cardId);
|
||||
@@ -923,38 +813,6 @@ public class DataMgr
|
||||
return num;
|
||||
}
|
||||
|
||||
public int GetPossessionBaseCardNum(int baseCardId, bool isIncludingSpotCard, CardMaster.CardMasterId cardMasterId)
|
||||
{
|
||||
return GetPossessionBaseCardNum(baseCardId, GetUserOwnCardData(isIncludingSpotCard), cardMasterId);
|
||||
}
|
||||
|
||||
public Dictionary<int, int> GetPossessionBaseCardDictionary(bool isIncludingSpotCard, CardMaster.CardMasterId cardMasterId)
|
||||
{
|
||||
CardMaster instance = CardMaster.GetInstance(cardMasterId);
|
||||
Dictionary<int, int> dictionary = new Dictionary<int, int>();
|
||||
foreach (KeyValuePair<int, int> userOwnCardDatum in GetUserOwnCardData(isIncludingSpotCard))
|
||||
{
|
||||
int baseCardId = instance.GetCardParameterFromId(userOwnCardDatum.Key).BaseCardId;
|
||||
int value = 0;
|
||||
if (dictionary.TryGetValue(baseCardId, out value))
|
||||
{
|
||||
try
|
||||
{
|
||||
dictionary[baseCardId] = checked(value + userOwnCardDatum.Value);
|
||||
}
|
||||
catch (OverflowException)
|
||||
{
|
||||
dictionary[baseCardId] = int.MaxValue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
dictionary.Add(baseCardId, userOwnCardDatum.Value);
|
||||
}
|
||||
}
|
||||
return dictionary;
|
||||
}
|
||||
|
||||
private void UpdatePossessionCardDictIncludingSpotCard()
|
||||
{
|
||||
_possessionCardDictIncludingSpotCard = SpotCardData.CreateDictionaryIncludingSpotCard(_possessionCardDict);
|
||||
@@ -965,47 +823,11 @@ public class DataMgr
|
||||
_isDirtyPossessionCardDict = true;
|
||||
}
|
||||
|
||||
public void UpdateUserOwnCardData(int cardid, int num)
|
||||
{
|
||||
bool isNew = !HasPossesionCardInfo(cardid, isIncludingSpotCard: false);
|
||||
SetIsNewCard(cardid, isNew);
|
||||
if (_possessionCardDict.ContainsKey(cardid))
|
||||
{
|
||||
_possessionCardDict[cardid] = num;
|
||||
}
|
||||
else
|
||||
{
|
||||
_possessionCardDict.Add(cardid, num);
|
||||
}
|
||||
SetDirtyPossessionCardDict();
|
||||
}
|
||||
|
||||
public bool IsNewCard(int cardId)
|
||||
{
|
||||
if (!_isNewCardDict.TryGetValue(cardId, out var value))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void SetIsNewCard(int cardId, bool isNew)
|
||||
{
|
||||
_isNewCardDict[cardId] = isNew;
|
||||
}
|
||||
|
||||
public void RegisterUserOwnCardData(int cardId, int num)
|
||||
{
|
||||
_possessionCardDict.Add(cardId, num);
|
||||
SetDirtyPossessionCardDict();
|
||||
}
|
||||
|
||||
public void UnregisterUserOwnCardData(int cardId)
|
||||
{
|
||||
_possessionCardDict.Remove(cardId);
|
||||
SetDirtyPossessionCardDict();
|
||||
}
|
||||
|
||||
public int GetSoroPlay3DFieldID()
|
||||
{
|
||||
return _soroPlay3DFieldId;
|
||||
@@ -1016,25 +838,6 @@ public class DataMgr
|
||||
return _storyBgmId;
|
||||
}
|
||||
|
||||
public void SetMaintenanceCardIds(JsonData responseData)
|
||||
{
|
||||
if (responseData == null)
|
||||
{
|
||||
_maintenanceCardIds = null;
|
||||
return;
|
||||
}
|
||||
_maintenanceCardIds = new int[responseData.Count];
|
||||
for (int i = 0; i < responseData.Count; i++)
|
||||
{
|
||||
_maintenanceCardIds[i] = responseData[i]["card_id"].ToInt();
|
||||
}
|
||||
}
|
||||
|
||||
public void SetMaintenanceCardIds(int[] ids)
|
||||
{
|
||||
_maintenanceCardIds = ids;
|
||||
}
|
||||
|
||||
public bool IsMaintenanceCard(int id)
|
||||
{
|
||||
if (_maintenanceCardIds != null)
|
||||
@@ -1044,15 +847,6 @@ public class DataMgr
|
||||
return false;
|
||||
}
|
||||
|
||||
public Dictionary<ClassCharaPrm.EmotionType, Emotion> GetEmotionDataBySkinId(string skinId)
|
||||
{
|
||||
if (!Data.Master._emotionDic.ContainsKey(skinId))
|
||||
{
|
||||
LocalLog.AccumulateTraceLog("Not contain key given. skinId : " + skinId + " emotionMasterKeyCount : " + Data.Master._emotionDic.Keys.Count);
|
||||
}
|
||||
return Data.Master._emotionDic[skinId];
|
||||
}
|
||||
|
||||
public static long GetAbleSleeveId(long sleeveId)
|
||||
{
|
||||
return Data.Master.SleeveMgr.Get(sleeveId).sleeve_id;
|
||||
|
||||
Reference in New Issue
Block a user