Пример #1
0
    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;
            }
        }
    }
Пример #2
0
    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;
        }
    }
Пример #3
0
    public override void Create(ProtoEffect proto, Skill skill = null)
    {
        base.Create(proto, skill);

        m_proto_damage = proto as ProtoEffectDamage;
    }
Пример #4
0
 public virtual void Create(ProtoEffect proto, Skill skill, int idx)
 {
     m_proto        = proto;
     m_owner_skill  = skill;
     m_idx_in_owner = idx;
 }
Пример #5
0
    public override void Create(ProtoEffect proto, Skill skill = null, int idx = 0)
    {
        base.Create(proto, skill, idx);

        m_proto_damage = proto as ProtoEffectDamage;
    }
Пример #6
0
 public virtual void Create(ProtoEffect proto, Skill skill = null)
 {
     m_proto = proto;
     m_owner_skill = skill;
 }