Authored Unity primitive/object-model shim, VFX layer (control-flow-preserving, InstantVfx never invokes its action -- headless suppression), god-object stubs (GameMgr/EffectMgr/UIManager with faithfully-extracted nested enums), View/UI/Touch tree, LitJson+BetterList+Tuple copied, third-party stubs. Discovered Roslyn header-error masking: fixing class-header type errors unmasks body references, so the true copy closure is ~2570 files (was 782 under masking). Errors: masked-25720 -> 268; our shim files compile clean. Remaining: ~50 residual shim/external types, 24 NGUI UI-base overrides, static-type fixes, plus likely 1-2 more unmask waves.
48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
using Wizard.Battle.UI;
|
|
using Wizard.Battle.View.Vfx;
|
|
|
|
public class Skill_change_cemetery : SkillBase
|
|
{
|
|
public override bool IsTargetIndicate => false;
|
|
|
|
protected int AddCemeteryCount { get; private set; }
|
|
|
|
protected int GainCemeteryCount { get; private set; }
|
|
|
|
public Skill_change_cemetery(SkillParameter skillPrm, string option)
|
|
: base(skillPrm, option)
|
|
{
|
|
}
|
|
|
|
public override VfxWithLoading Start(CallParameter parameter)
|
|
{
|
|
AddCemeteryCount = base.OptionValue.GetInt(SkillFilterCreator.ContentKeyword.add_count, 0);
|
|
GainCemeteryCount = base.OptionValue.GetInt(SkillFilterCreator.ContentKeyword.gain_count, 0);
|
|
ParallelVfxPlayer parallelVfxPlayer = ParallelVfxPlayer.Create();
|
|
for (int i = 0; i < AddCemeteryCount; i++)
|
|
{
|
|
VfxBase vfx = base.SkillPrm.selfBattlePlayer.DummyCardToCemetery(CardCreatorBase.GetDummyInstance(), this);
|
|
parallelVfxPlayer.Register(vfx);
|
|
}
|
|
if (GainCemeteryCount > 0)
|
|
{
|
|
parallelVfxPlayer.Register(base.SkillPrm.selfBattlePlayer.GainCemetery(GainCemeteryCount));
|
|
}
|
|
parallelVfxPlayer.Register(InstantVfx.Create(delegate
|
|
{
|
|
}));
|
|
if (IsBattleLog)
|
|
{
|
|
if (AddCemeteryCount != 0)
|
|
{
|
|
BattleLogManager.GetInstance().AddLogSkillChangeCemetery(AddCemeteryCount, this);
|
|
}
|
|
else if (GainCemeteryCount != 0)
|
|
{
|
|
BattleLogManager.GetInstance().AddLogSkillChangeCemetery(-GainCemeteryCount, this);
|
|
}
|
|
}
|
|
return VfxWithLoading.Create(parallelVfxPlayer);
|
|
}
|
|
}
|