void Start() { TableManager.Instance.Read("info_test"); var dicInfoTest = TableManager.Instance.GetTable("info_test"); List <Info> listInfo = new List <Info>(); for (int i = 0; i < dicInfoTest.Count; ++i) { var info = dicInfoTest[i]; int idx = info["idx"].GetHashCode(); E_WEAPON_TYPE_TEST type = OS.BitConvert.IntToEnum32 <E_WEAPON_TYPE_TEST>(info["type"].GetHashCode()); int atk = info["atk"].GetHashCode(); string name = info["name"].ToString(); Info a; a.idx = idx; a.type = type; a.atk = atk; a.name = name; listInfo.Add(a); } int b = 10; }
void foo(E_WEAPON_TYPE_TEST type) { if (OS.BitConvert.Enum32ToInt <E_WEAPON_TYPE_TEST>(type) == enumTestInt) { } }
void SetType(int value) { eType = (E_WEAPON_TYPE_TEST)value; eType = OS.BitConvert.IntToEnum32 <E_WEAPON_TYPE_TEST>(value); }