public static bool Prefix(ref GameObject __result, Enums.ItemType itemType) { IPlaceableItemCreator placeableItemCreator = ActivePlaceableItemCreators.GetCreatorFromEnum(itemType); if (placeableItemCreator != null) { __result = placeableItemCreator.Prefab; return(false); } return(true); }
internal static void Add <T>(IPlaceableItemCreator o, Enums.ItemType itemType) where T : IPlaceableItemCreator { PlaceableItemCreators.Add(typeof(T), o); ActiveEnums.Add(itemType, o); }