コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: ChildTeachingTool.cs プロジェクト: Joishi/OldCode
        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);
        }
コード例 #3
0
 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;
 }
コード例 #4
0
ファイル: GameTexture.cs プロジェクト: Joishi/OldCode
 public virtual void Initialize()
 {
     if (!initialized)
     {
         this.textureRenderer = (ITextureRenderer)services.GetService(typeof(ITextureRenderer));
         LoadContent();
         initialized = !initialized;
     }
 }
コード例 #5
0
 public ScrollItemFactory(string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, renderer)
 {
 }
コード例 #6
0
 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;
 }
コード例 #7
0
 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)
 {
 }
コード例 #8
0
 public WaterMiscFactory(int waterValuePerCharge, string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, renderer)
 {
     WaterValuePerCharge = waterValuePerCharge;
 }
コード例 #9
0
 public FoodMiscFactory(int foodValue, string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, renderer)
 {
     FoodValue = foodValue;
 }