Exemple #1
0
        public static void AddOrDelEnemy(Iplayer entity, bool add)
        {
            FEvent eve = new FEvent((Int32)(Int32)GameEventEnum.GameEvent_AddOrDelEnemy);

            eve.AddParam("Add", add);
            eve.AddParam("Target", entity);
            EventCenter.SendEvent(eve);
        }
        public void SendTaskMarkObjList(Int32 gameEve, List <GameObject> objList)
        {
            FEvent even = new FEvent(gameEve);

            even.AddParam("TaskState", IGuideTask.TaskState.TaskMark);
            even.AddParam("Mark", objList);
            EventCenter.SendEvent(even);
        }
        public void SendTaskEffectShow(Int32 gameEve)
        {
            FEvent eve = new FEvent(gameEve);

            eve.AddParam("TaskState", IGuideTask.TaskState.TaskShow);
            EventCenter.SendEvent(eve);
        }
Exemple #4
0
        private void SendHpLessWarning(bool tag)
        {
            FEvent eve = new FEvent((Int32)(Int32)GameEventEnum.GameEvent_NotifyHpLessWarning);

            eve.AddParam("Tag", tag);
            EventCenter.SendEvent(eve);
        }