// Token: 0x060016C5 RID: 5829 RVA: 0x00027D71 File Offset: 0x00026D71 public static void Register(uint typeHash, Activator.ConstructHandler construct) { if (!Activator.ConstructInventory.ContainsKey(typeHash)) { Activator.ConstructInventory.Add(typeHash, construct); } }
// Token: 0x060016C6 RID: 5830 RVA: 0x00027D8C File Offset: 0x00026D8C public static T CreateInstance <T>(uint typeHash, BinaryReader source) where T : class { if (Activator.ConstructInventory.ContainsKey(typeHash)) { Activator.ConstructHandler constructHandler = Activator.ConstructInventory[typeHash]; return(constructHandler(source) as T); } return(default(T)); }
// Token: 0x060016C3 RID: 5827 RVA: 0x00027D55 File Offset: 0x00026D55 public static void Register(Type type, Activator.ConstructHandler construct) { Activator.Register(type.FullName, construct); }
// Token: 0x060016C4 RID: 5828 RVA: 0x00027D63 File Offset: 0x00026D63 public static void Register(string type, Activator.ConstructHandler construct) { Activator.Register(Hash.Hash32(type), construct); }
// Token: 0x060016C2 RID: 5826 RVA: 0x00027D43 File Offset: 0x00026D43 public static void Register <T>(Activator.ConstructHandler construct) { Activator.Register(typeof(T), construct); }