예제 #1
0
        /// <summary>
        /// Organizes the gadget by adding it to its list
        /// </summary>
        /// <param name="gadget">The gadget to organize</param>
        /// <param name="type">The type of gadget</param>
        public virtual void Organize(GadgetDefinition gadget, GadgetType type)
        {
            if (!GadgetRegistry.AddToType(gadget, type))
            {
                return;
            }

            if (type == GadgetType.FASHION_POD)
            {
                Gadget.RegisterFashion(gadget.id);
                IdentifiableRegistry.RegisterPodForFashion(gadget);
            }
        }
예제 #2
0
 ///<summary>Checks if the ID is a fashion pod</summary>
 public static bool IsFashionPod(Gadget.Id id) => GadgetRegistry.IsTypeValid(id, GadgetType.FASHION_POD);
예제 #3
0
 ///<summary>Checks if the ID is a lamp</summary>
 public static bool IsLamp(Gadget.Id id) => GadgetRegistry.IsTypeValid(id, GadgetType.LAMP);
예제 #4
0
 ///<summary>Checks if the ID is a drone</summary>
 public static bool IsDrone(Gadget.Id id) => GadgetRegistry.IsTypeValid(id, GadgetType.DRONE);
예제 #5
0
 ///<summary>Checks if the ID is an echo net</summary>
 public static bool IsEchoNet(Gadget.Id id) => GadgetRegistry.IsTypeValid(id, GadgetType.ECHO_NET);
예제 #6
0
 ///<summary>Checks if the ID is misc</summary>
 public static bool IsMisc(Gadget.Id id) => GadgetRegistry.IsTypeValid(id, GadgetType.MISC);
예제 #7
0
 ///<summary>Checks if the ID is a warp depot</summary>
 public static bool IsWarpDepot(Gadget.Id id) => GadgetRegistry.IsTypeValid(id, GadgetType.WARP_DEPOT);
예제 #8
0
 ///<summary>Checks if the ID is a teleporter</summary>
 public static bool IsTeleporter(Gadget.Id id) => GadgetRegistry.IsTypeValid(id, GadgetType.TELEPORTER);
예제 #9
0
 //+ VERIFICATION
 ///<summary>Checks if the ID is an extractor</summary>
 public static bool IsExtractor(Gadget.Id id) => GadgetRegistry.IsTypeValid(id, GadgetType.EXTRACTOR);
예제 #10
0
 ///<summary>Checks if the ID is a ranch tech</summary>
 public static bool IsRanchTech(Gadget.Id id) => GadgetRegistry.IsTypeValid(id, GadgetType.RANCH_TECH);
예제 #11
0
 ///<summary>Checks if the ID is a portable device</summary>
 public static bool IsPortable(Gadget.Id id) => GadgetRegistry.IsTypeValid(id, GadgetType.PORTABLE);
예제 #12
0
 ///<summary>Checks if the ID is a decoration</summary>
 public static bool IsDeco(Gadget.Id id) => GadgetRegistry.IsTypeValid(id, GadgetType.DECO);
예제 #13
0
 ///<summary>Checks if the ID is a snare</summary>
 public static bool IsSnare(Gadget.Id id) => GadgetRegistry.IsTypeValid(id, GadgetType.SNARE);