示例#1
0
        public static void DropSkill()
        {
            UIEvent e = Get();

            e.type = UIEventType.DROP_SKILL;
            e.Invoke();
        }
示例#2
0
        public static void PickSkill(Skill skill)
        {
            UIEvent e = Get();

            e.type  = UIEventType.PICK_SKILL;
            e.skill = skill;
            e.Invoke();
        }
示例#3
0
        public static void EntityCreated(VEntity target)
        {
            UIEvent e = Get();

            e.type   = UIEventType.ENTITY_CREATED;
            e.entity = target;
            e.Invoke();
        }
示例#4
0
        public static void EntityDestroied(VEntity target)
        {
            UIEvent e = Get();

            e.type   = UIEventType.ENTITY_DESTROIED;
            e.entity = target;
            e.Invoke();
        }
示例#5
0
        public static void BattleEnd(int team)
        {
            UIEvent e = Get();

            e.type = UIEventType.BATTLE_END;
            e.i0   = team;
            e.Invoke();
        }
示例#6
0
        public static void EntityDie(VEntity target, VEntity killer)
        {
            UIEvent e = Get();

            e.type   = UIEventType.ENTITY_DIE;
            e.entity = target;
            e.killer = killer;
            e.Invoke();
        }
示例#7
0
        public static void ItemUsed(CChampion target, bool result)
        {
            UIEvent e = Get();

            e.type   = UIEventType.ITEM_USED;
            e.target = target;
            e.b0     = result;
            e.Invoke();
        }
示例#8
0
        public static void PickItem(CChampion target, string itemId)
        {
            UIEvent e = Get();

            e.type   = UIEventType.PICK_ITEM;
            e.target = target;
            e.itemId = itemId;
            e.Invoke();
        }
示例#9
0
        public static void SkillUseFailed(VEntity caster, Skill skill, VEntity target)
        {
            UIEvent e = Get();

            e.type   = UIEventType.SKILL_USE_FAILED;
            e.entity = caster;
            e.skill  = skill;
            e.target = target;
            e.Invoke();
        }
示例#10
0
        public static void EntityAttrChanged(CEntity target, Attr attr, object value)
        {
            UIEvent e = Get();

            e.type   = UIEventType.ENTITY_ATTR_CHANGED;
            e.target = target;
            e.attr   = attr;
            e.o0     = value;
            e.Invoke();
        }
示例#11
0
        public static void AttrChanged(VEntity target, Attr attr, object oldValue, object newValue)
        {
            UIEvent e = Get();

            e.type   = UIEventType.ATTR_CHANGED;
            e.entity = target;
            e.attr   = attr;
            e.o0     = oldValue;
            e.o1     = newValue;
            e.Invoke();
        }
示例#12
0
        public static void Hurt(VBuff buff, VBio caster, VBio target, float damage)
        {
            UIEvent e = Get();

            e.type   = UIEventType.HURT;
            e.buff   = buff;
            e.entity = caster;
            e.target = target;
            e.f0     = damage;
            e.Invoke();
        }