Example #1
0
    public void Init(SkillDataLoader loader)
    {
        this.loader = loader;


        Dictionary <string, object> _dic = JSonHelper.DeserializeDictionary(loader.loadPropertys());

        propertyTemp   = (Dictionary <string, object>)_dic["propertys"];
        eventTemp      = (Dictionary <string, object>)_dic["event"];
        objectTemp     = (Dictionary <string, object>)_dic["object"];
        roleStatetTemp = (Dictionary <string, object>)_dic["role_state"];
        var l = new List <string>();

        l.AddRange(propertyTemp.Keys);
        propertyKeys = l.ToArray();
        l.Clear();
        l.AddRange(eventTemp.Keys);
        eventKeys = l.ToArray();
        l.Clear();
        l.AddRange(objectTemp.Keys);
        objectKeys = l.ToArray();

        l.Clear();
        l.AddRange(roleStatetTemp.Keys);
        roleStateKeys = l.ToArray();
    }