Пример #1
0
 public EventListenerTask(Sims3.Gameplay.EventSystem.EventTypeId id, Func func)
 {
     if (func == null)
     {
         mFunc = OnPerform;
     }
     else
     {
         mFunc = func;
     }
     try{
         mListener = Sims3.Gameplay.EventSystem.EventTracker.AddListener(id, OnProcess);                                    //  Must be immediate
     }catch (Exception exception) {
         Alive.WriteLog(exception.Message + "\n\n" +
                        exception.StackTrace + "\n\n" +
                        exception.Source + "\n\n" +
                        "mListener=Sims3.Gameplay.EventSystem.EventTracker.AddListener(id,OnProcess);");
     }finally{
     }
 }
Пример #2
0
 public DelayedEventListener(Sims3.Gameplay.EventSystem.EventTypeId id, Func func) : base(id, func)
 {
 }