//+ CLASSIFICATION internal static void AddToType(Identifiable.Id id, IdentifiableType type) { if (!CLASS_LISTING.ContainsKey(type)) { GuuCore.LOGGER.LogError($"Trying to add identifiable {id} to type {type}. but type listing isn't registered"); return; } CLASS_LISTING[type].Add(id); }
//+ CLASSIFICATION internal static bool AddToType(GadgetDefinition gadget, GadgetType type) { if (!CLASS_LISTING.ContainsKey(type)) { GuuCore.LOGGER.LogError($"Trying to add gadget {gadget.id} to type {type}, but type listing isn't registered"); return(false); } CLASS_LISTING[type].Add(gadget.id); return(true); }