protected GrabableItemFactoryBase(string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, ITextureRenderer renderer) { Name = name; Weight = weight; combos = new HashSet <IActionFactory>(attackCombo); locations = new HashSet <IStorageType>(carryLocation); Renderer = renderer; }
public ChildTeachingTool() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; menu = new TopMenu(Services); IsMouseVisible = true; textRenderer = new TextRenderer(); textureRenderer = new TextureRenderer(); // Services.AddService(typeof(GraphicsDevice), GraphicsDevice); Services.AddService(typeof(ITextRenderer), textRenderer); Services.AddService(typeof(ITextureRenderer), textureRenderer); }
public WeaponItemFactory(string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, int?deltaEnergy, WeaponClass weaponClass, int kineticEnergy, int shootDamage, int strength, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, renderer) { DeltaEnergy = deltaEnergy; Class = weaponClass; KineticEnergy = kineticEnergy; ShootDamage = shootDamage; Strength = strength; }
public virtual void Initialize() { if (!initialized) { this.textureRenderer = (ITextureRenderer)services.GetService(typeof(ITextureRenderer)); LoadContent(); initialized = !initialized; } }
public ScrollItemFactory(string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, renderer) { }
public ClothItemFactory(string name, int weight, IReadOnlyList <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, int armorStrength, int sharpResistance, bool isShield, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, renderer) { ArmorStrength = armorStrength; SharpResistance = sharpResistance; IsShield = isShield; }
public TorchWeaponItemFactory(string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, int?deltaEnergy, WeaponClass weaponClass, int kineticEnergy, int shootDamage, int strength, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, deltaEnergy, weaponClass, kineticEnergy, shootDamage, strength, renderer) { }
public WaterMiscFactory(int waterValuePerCharge, string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, renderer) { WaterValuePerCharge = waterValuePerCharge; }
public FoodMiscFactory(int foodValue, string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, renderer) { FoodValue = foodValue; }