コード例 #1
0
 public NPCWeapon(WeaponItemObject weaponItem, WeaponBehaviour weaponBehaviour)
 {
     this.Behaviour        = weaponBehaviour;
     this.Behaviour.Weapon = this;
     HitEffect             = weaponItem.HitEffect;
     Damage           = weaponItem.Damage;
     ProjectileSprite = weaponItem.ProjectileSprite;
     SpellPreset      = weaponItem.SpellPreset;
 }
コード例 #2
0
 public static void RLApplySpell(this EcsWorld world, EcsEntity target, EcsEntity caster, SpellPreset preset)
 {
     world.NewEntityWith(out ApplySpellComponent spell);
     spell.Target = target;
     spell.Caster = caster;
     spell.Spell  = preset;
 }
コード例 #3
0
 public void Reset()
 {
     Target = EcsEntity.Null;
     Caster = EcsEntity.Null;
     Spell  = null;
 }
コード例 #4
0
 void IEcsAutoReset.Reset()
 {
     Spell = null;
 }