public override void Create() { if (Effects.Length > 0) { m_effects = new ProtoEffect[Effects.Length]; for (int i = 0; i < m_effects.Length; ++i) { ProtoEffect proto = ProtoMgr.Instance.GetByID <ProtoEffect>(Effects[i]); m_effects[i] = proto; } } }
public void Create(InfoSkill info, Creature crt) { m_info = info; m_owner_crt = crt; m_effects = new EffectBase[Proto.ProtoEffects.Length]; for (int i = 0; i < m_effects.Length; ++i) { ProtoEffect proto = Proto.ProtoEffects[i]; EffectBase eb = proto.NewInstance(); eb.Create(proto, this, i); eb.OnActiveOver += OnEffectActiveOver; m_effects[i] = eb; } }
public override void Create(ProtoEffect proto, Skill skill = null) { base.Create(proto, skill); m_proto_damage = proto as ProtoEffectDamage; }
public virtual void Create(ProtoEffect proto, Skill skill, int idx) { m_proto = proto; m_owner_skill = skill; m_idx_in_owner = idx; }
public override void Create(ProtoEffect proto, Skill skill = null, int idx = 0) { base.Create(proto, skill, idx); m_proto_damage = proto as ProtoEffectDamage; }
public virtual void Create(ProtoEffect proto, Skill skill = null) { m_proto = proto; m_owner_skill = skill; }