feat(battle-engine): close the AI-simulation subsystem (verbatim)
Copied the 89 uncopied AI*SimulationUtility/extension files defining the AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
This commit is contained in:
19
SVSim.BattleEngine/Engine/Wizard/ConvertValue.cs
Normal file
19
SVSim.BattleEngine/Engine/Wizard/ConvertValue.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace Wizard;
|
||||
|
||||
public static class ConvertValue
|
||||
{
|
||||
public static int ToInt(object obj)
|
||||
{
|
||||
return int.Parse(obj.ToString());
|
||||
}
|
||||
|
||||
public static long ToLong(object obj)
|
||||
{
|
||||
return long.Parse(obj.ToString());
|
||||
}
|
||||
|
||||
public static bool ToBool(object obj)
|
||||
{
|
||||
return bool.Parse(obj.ToString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user