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); }
public CEAutoLoad Clone() { var clone = new CEAutoLoad(); clone.SheetName = SheetName; clone.KeyType = KeyType; return(clone); }
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); }
private bool Parse(CEAutoLoad sheetAutoLoad) { return(Parse(sheetAutoLoad.SheetName, (CEKeyType)sheetAutoLoad.KeyType)); }