feat(battle-engine): EffectType full enum + collection/card/vfx extension copies
Replaces partial EffectMgr.EffectType with all 226 decomp values; copies the IsNotNullOrEmpty/EquelsID/FindFromCardId/GetAllFuncVfxResults extension files + UI extensions; adds Renderer/MeshFilter shared-material/mesh/sortingOrder. Compile loop then closed the revealed deps (3242 files). 9.1k -> 18 errors.
This commit is contained in:
47
SVSim.BattleEngine/Engine/Wizard/ChatPostTask.cs
Normal file
47
SVSim.BattleEngine/Engine/Wizard/ChatPostTask.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
namespace Wizard;
|
||||
|
||||
public class ChatPostTask : BaseTask
|
||||
{
|
||||
public class ChatPostTaskParam : BaseParam
|
||||
{
|
||||
public int type { get; set; }
|
||||
|
||||
public string message { get; set; }
|
||||
}
|
||||
|
||||
public AchievedInfo AchievedInfo { get; private set; }
|
||||
|
||||
public ChatPostTask(ApiType.Type apiType)
|
||||
{
|
||||
base.type = apiType;
|
||||
}
|
||||
|
||||
public void SetParameter(int type, string message)
|
||||
{
|
||||
ChatPostTaskParam chatPostTaskParam = new ChatPostTaskParam();
|
||||
chatPostTaskParam.type = type;
|
||||
chatPostTaskParam.message = message;
|
||||
base.Params = chatPostTaskParam;
|
||||
}
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int num = base.Parse();
|
||||
if (num != 1)
|
||||
{
|
||||
return num;
|
||||
}
|
||||
if (base.ResponseData["data"].Count > 0)
|
||||
{
|
||||
if (base.ResponseData["data"].Keys.Contains("achieved_info"))
|
||||
{
|
||||
AchievedInfo = new AchievedInfo(base.ResponseData["data"]["achieved_info"]);
|
||||
}
|
||||
if (base.ResponseData["data"].Keys.Contains("reward_list"))
|
||||
{
|
||||
PlayerStaticData.UpdateHaveUserGoodsNumByJsonData(base.ResponseData["data"]["reward_list"]);
|
||||
}
|
||||
}
|
||||
return num;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user