示例#1
0
    public void DeSerialize(Dictionary <string, object> dic)
    {
        foreach (string key in dic.Keys)
        {
            switch (key)
            {
            case "guid":
                guid = MyJsonTool.getIntValue(dic, key);
                break;

            case "id":
                id = MyJsonTool.getIntValue(dic, key);
                break;

            case "hide":
                hide = MyJsonTool.getBoolValue(dic, key);
                break;

            case "pos":
                pos = MyJsonTool.getVector2(dic, key);
                break;

            default:
                break;
            }
        }
    }