コード例 #1
0
        public BasicWeapon Clone()
        {
            BasicWeapon weapon = new BasicWeapon();

            weapon.copyFrom(this);
            return(weapon);
        }
コード例 #2
0
 private void copyFrom(BasicWeapon other)
 {
     this.NumAugmentSlots  = other.NumAugmentSlots;
     this.BaseStats        = other.BaseStats;
     this.ProjectileBitmap = other.ProjectileBitmap;
     this.ExplosionBitmap  = other.ExplosionBitmap;
 }
コード例 #3
0
 public WeaponConfiguration(BasicWeapon basicWeapon, List <WeaponAugment> augments)
 {
     this.basicWeapon = basicWeapon;
     this.augments    = augments;
 }