Ejemplo n.º 1
0
    public static ICELoader CreateLoaderFromHash(uint hash)
    {
        ICELoader loader = null;

        switch (hash)
        {
        case 1647651811:
        {
            loader = new CEArea();
        }
        break;

        case 420587931:
        {
            loader = new CEAutoLoad();
        }
        break;

        case 1283261664:
        {
            loader = new CEConfig();
        }
        break;
        }

        return(loader);
    }
Ejemplo n.º 2
0
    public CEAutoLoad Clone()
    {
        var clone = new CEAutoLoad();

        clone.SheetName = SheetName;
        clone.KeyType   = KeyType;
        return(clone);
    }
Ejemplo n.º 3
0
        private bool AutoLoad()
        {
            bool success = Parse(CEAutoLoad.CEName, CEKeyType.String);

            var sheetDict = CEAutoLoad.GetElementDict();

            foreach (KeyValuePair <string, ICELoader> kvp in sheetDict.CheckNull())
            {
                success &= Parse(kvp.Value as CEAutoLoad);
            }

            return(success);
        }
Ejemplo n.º 4
0
 private bool Parse(CEAutoLoad sheetAutoLoad)
 {
     return(Parse(sheetAutoLoad.SheetName, (CEKeyType)sheetAutoLoad.KeyType));
 }