feat(battle-engine): full Unity/VFX/god-object shims + expanded copy closure (2570 files)
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.
This commit is contained in:
210
SVSim.BattleEngine/Engine/LitJson/JsonMockWrapper.cs
Normal file
210
SVSim.BattleEngine/Engine/LitJson/JsonMockWrapper.cs
Normal file
@@ -0,0 +1,210 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
namespace LitJson;
|
||||
|
||||
public class JsonMockWrapper : IJsonWrapper, IList, ICollection, IEnumerable, IOrderedDictionary, IDictionary
|
||||
{
|
||||
public bool IsArray => false;
|
||||
|
||||
public bool IsBoolean => false;
|
||||
|
||||
public bool IsDouble => false;
|
||||
|
||||
public bool IsInt => false;
|
||||
|
||||
public bool IsLong => false;
|
||||
|
||||
public bool IsObject => false;
|
||||
|
||||
public bool IsString => false;
|
||||
|
||||
bool IList.IsFixedSize => true;
|
||||
|
||||
bool IList.IsReadOnly => true;
|
||||
|
||||
object IList.this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
int ICollection.Count => 0;
|
||||
|
||||
bool ICollection.IsSynchronized => false;
|
||||
|
||||
object ICollection.SyncRoot => null;
|
||||
|
||||
bool IDictionary.IsFixedSize => true;
|
||||
|
||||
bool IDictionary.IsReadOnly => true;
|
||||
|
||||
ICollection IDictionary.Keys => null;
|
||||
|
||||
ICollection IDictionary.Values => null;
|
||||
|
||||
object IDictionary.this[object key]
|
||||
{
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
object IOrderedDictionary.this[int idx]
|
||||
{
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public bool GetBoolean()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public double GetDouble()
|
||||
{
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
public int GetInt()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public JsonType GetJsonType()
|
||||
{
|
||||
return JsonType.None;
|
||||
}
|
||||
|
||||
public long GetLong()
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
|
||||
public string GetString()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
public void SetBoolean(bool val)
|
||||
{
|
||||
}
|
||||
|
||||
public void SetDouble(double val)
|
||||
{
|
||||
}
|
||||
|
||||
public void SetInt(int val)
|
||||
{
|
||||
}
|
||||
|
||||
public void SetJsonType(JsonType type)
|
||||
{
|
||||
}
|
||||
|
||||
public void SetLong(long val)
|
||||
{
|
||||
}
|
||||
|
||||
public void SetString(string val)
|
||||
{
|
||||
}
|
||||
|
||||
public string ToJson()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
public void ToJson(JsonWriter writer)
|
||||
{
|
||||
}
|
||||
|
||||
int IList.Add(object value)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void IList.Clear()
|
||||
{
|
||||
}
|
||||
|
||||
bool IList.Contains(object value)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
int IList.IndexOf(object value)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
void IList.Insert(int i, object v)
|
||||
{
|
||||
}
|
||||
|
||||
void IList.Remove(object value)
|
||||
{
|
||||
}
|
||||
|
||||
void IList.RemoveAt(int index)
|
||||
{
|
||||
}
|
||||
|
||||
void ICollection.CopyTo(Array array, int index)
|
||||
{
|
||||
}
|
||||
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
void IDictionary.Add(object k, object v)
|
||||
{
|
||||
}
|
||||
|
||||
void IDictionary.Clear()
|
||||
{
|
||||
}
|
||||
|
||||
bool IDictionary.Contains(object key)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void IDictionary.Remove(object key)
|
||||
{
|
||||
}
|
||||
|
||||
IDictionaryEnumerator IDictionary.GetEnumerator()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
IDictionaryEnumerator IOrderedDictionary.GetEnumerator()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
void IOrderedDictionary.Insert(int i, object k, object v)
|
||||
{
|
||||
}
|
||||
|
||||
void IOrderedDictionary.RemoveAt(int i)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user