コード例 #1
0
    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;
    }
コード例 #2
0
 void foo(E_WEAPON_TYPE_TEST type)
 {
     if (OS.BitConvert.Enum32ToInt <E_WEAPON_TYPE_TEST>(type) == enumTestInt)
     {
     }
 }
コード例 #3
0
    void SetType(int value)
    {
        eType = (E_WEAPON_TYPE_TEST)value;

        eType = OS.BitConvert.IntToEnum32 <E_WEAPON_TYPE_TEST>(value);
    }