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:
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using Cute;
|
||||
using Wizard.Battle.View.Vfx;
|
||||
|
||||
namespace Wizard.Battle.Resource;
|
||||
|
||||
public class RecoveryBattleResourceMgr : BattleResourceMgr
|
||||
{
|
||||
private bool _enable;
|
||||
|
||||
public override VfxBase LoadAsset(string path, ResourcesManager.AssetLoadPathType pathType, Action action)
|
||||
{
|
||||
if (_enable)
|
||||
{
|
||||
return base.LoadAsset(path, pathType, action);
|
||||
}
|
||||
return NullVfx.GetInstance();
|
||||
}
|
||||
|
||||
public override VfxBase LoadAsset(string fullPath, Action action)
|
||||
{
|
||||
if (_enable)
|
||||
{
|
||||
return base.LoadAsset(fullPath, action);
|
||||
}
|
||||
return NullVfx.GetInstance();
|
||||
}
|
||||
|
||||
public override VfxBase LoadEffectBattle(string objectFullPath, string objectPath, string sePath)
|
||||
{
|
||||
if (_enable)
|
||||
{
|
||||
return base.LoadEffectBattle(objectFullPath, objectPath, sePath);
|
||||
}
|
||||
return NullVfx.GetInstance();
|
||||
}
|
||||
|
||||
public override VfxBase LoadAndCreateEffectBattleInstance(string objectPath, EffectMgr.EngineType engineType, string sePath, Action<EffectBattle> loadEndCallback)
|
||||
{
|
||||
if (_enable)
|
||||
{
|
||||
return base.LoadAndCreateEffectBattleInstance(objectPath, engineType, sePath, loadEndCallback);
|
||||
}
|
||||
return NullVfx.GetInstance();
|
||||
}
|
||||
|
||||
public void EnableLoadResouce()
|
||||
{
|
||||
_enable = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user