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:
71
SVSim.BattleEngine/Engine/Wizard/Mastershop.cs
Normal file
71
SVSim.BattleEngine/Engine/Wizard/Mastershop.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class Mastershop
|
||||
{
|
||||
public class Shop
|
||||
{
|
||||
private int _id;
|
||||
|
||||
private string _store_product_id;
|
||||
|
||||
private string _name;
|
||||
|
||||
private string _text;
|
||||
|
||||
private int _price;
|
||||
|
||||
private int _charge_jewel;
|
||||
|
||||
private int _free_jewel;
|
||||
|
||||
public int id => _id;
|
||||
|
||||
public string store_product_id => _store_product_id;
|
||||
|
||||
public string name => _name;
|
||||
|
||||
public string text => _text;
|
||||
|
||||
public int price => _price;
|
||||
|
||||
public int charge_jewel => _charge_jewel;
|
||||
|
||||
public int free_jewel => _free_jewel;
|
||||
|
||||
public Shop(string[] record)
|
||||
{
|
||||
_id = int.Parse(record[0]);
|
||||
_store_product_id = record[1];
|
||||
_name = record[2];
|
||||
_text = record[3];
|
||||
_price = int.Parse(record[4]);
|
||||
_charge_jewel = int.Parse(record[5]);
|
||||
_free_jewel = int.Parse(record[6]);
|
||||
}
|
||||
}
|
||||
|
||||
private Dictionary<int, Shop> _dictionary = new Dictionary<int, Shop>();
|
||||
|
||||
public Dictionary<int, Shop> dictionary => _dictionary;
|
||||
|
||||
public string[] ProductIdList { get; private set; }
|
||||
|
||||
public Mastershop(ArrayList list)
|
||||
{
|
||||
ProductIdList = new string[list.Count];
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
{
|
||||
string[] array = (string[])((ArrayList)list[i]).ToArray(typeof(string));
|
||||
int key = int.Parse(array[0]);
|
||||
_dictionary.Add(key, new Shop(array));
|
||||
ProductIdList[i] = array[1];
|
||||
}
|
||||
}
|
||||
|
||||
public Mastershop()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user