public ItemInfoRegistry() { Infos = new Dictionary <string, BaseItemInfo>(); // TODO: Organize - alphabetical? Maybe folders too. Register(new ExplodobowItem()); Register(new BowItem()); Register(new FlashLightItem()); Register(new FlashantilightItem()); Register(new HookItem()); Register(new OpenHandItem()); Register(new PistolGunItem()); Register(new RifleGunItem()); Register(new ShotgunGunItem()); Register(new BulletItem()); Register(new FistItem()); Register(new BlockItem()); Register(new SunAnglerItem()); Register(new BreadcrumbItem()); Register(new GlowstickItem()); Register(new StructureCreateItem()); Register(new StructurePasteItem()); Register(new SmokemachineItem()); Register(new SmokegrenadeItem()); Register(new ExplosivegrenadeItem()); Register(new PaintbrushItem()); Register(new PaintbombItem()); Register(new PickaxeItem()); Register(new JetpackItem()); Register(new FuelItem()); Register(new ParachuteItem()); Register(new SledgehammerItem()); Register(new ManipulatorItem()); Register(new StructureSelectorItem()); Register(new CustomBlockItem()); Register(new HatCannonItem()); Register(new SuctionRayItem()); Register(new PushRayItem()); Register(new WingsItem()); Register(Generic = new GenericItem()); }
public ItemInfoRegistry() { Infos = new Dictionary<string, BaseItemInfo>(); // TODO: Organize - alphabetical? Maybe folders too. Register(new ExplodobowItem()); Register(new BowItem()); Register(new FlashLightItem()); Register(new FlashantilightItem()); Register(new HookItem()); Register(new OpenHandItem()); Register(new PistolGunItem()); Register(new RifleGunItem()); Register(new ShotgunGunItem()); Register(new BulletItem()); Register(new FistItem()); Register(new BlockItem()); Register(new SunAnglerItem()); Register(new BreadcrumbItem()); Register(new GlowstickItem()); Register(new StructureCreateItem()); Register(new StructurePasteItem()); Register(new SmokemachineItem()); Register(new SmokegrenadeItem()); Register(new ExplosivegrenadeItem()); Register(new PaintbrushItem()); Register(new PaintbombItem()); Register(new PickaxeItem()); Register(new JetpackItem()); Register(new FuelItem()); Register(new ParachuteItem()); Register(new SledgehammerItem()); Register(new ManipulatorItem()); Register(new StructureSelectorItem()); Register(new CustomBlockItem()); Register(new HatCannonItem()); Register(new SuctionRayItem()); Register(new PushRayItem()); Register(new WingsItem()); Register(Generic = new GenericItem()); }
public override void SetName(string name) { name = name.ToLowerFast(); Info = TheServer.ItemInfos.GetInfoFor(name); base.SetName(name); }
public void Register(BaseItemInfo info) { Infos.Add(info.Name.ToLowerFast(), info); }
public void Register(BaseItemInfo info) { Infos.Add(info.Name.ToLowerFast(), info); }
public override void SetName(string name) { name = name.ToLowerFast(); Info = TheServer.ItemInfos.GetInfoFor(name); base.SetName(name); }