Example #1
0
 public void UpdateWeapon(Weapon weapon)
 {
     if (weapon == null || Weapon == null || weapon.GetType() != Weapon.GetType())
         Weapon = weapon;
     else
         Weapon.Update(weapon);
 }
Example #2
0
 public virtual void Update(Weapon upd)
 {
     Firing = upd.Firing;
 }
Example #3
0
 public WeaponUpdate(Entity entity)
 {
     entityId = entity.Id;
     this.weapon = entity.Get<WeaponComponent>().Weapon;
 }
Example #4
0
 public WeaponComponent(Weapon weapon)
 {
     Weapon = weapon;
 }