Beispiel #1
0
 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());
 }
Beispiel #2
0
 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());
 }
Beispiel #3
0
 public override void SetName(string name)
 {
     name = name.ToLowerFast();
     Info = TheServer.ItemInfos.GetInfoFor(name);
     base.SetName(name);
 }
Beispiel #4
0
 public void Register(BaseItemInfo info)
 {
     Infos.Add(info.Name.ToLowerFast(), info);
 }
Beispiel #5
0
 public void Register(BaseItemInfo info)
 {
     Infos.Add(info.Name.ToLowerFast(), info);
 }
Beispiel #6
0
 public override void SetName(string name)
 {
     name = name.ToLowerFast();
     Info = TheServer.ItemInfos.GetInfoFor(name);
     base.SetName(name);
 }