Пример #1
0
 public void FinishApp()
 {
     if (!LSystem.isDestroy)
     {
         lock (this.m_sync)
         {
             LSystem.isRunning = false;
             LSystem.isDestroy = true;
             if (LSystem.screenProcess != null)
             {
                 LSystem.screenProcess.OnDestroy();
                 ActionControl.GetInstance().StopAll();
             }
             XNAConfig.Dispose();
             if (fpsFont != null)
             {
                 fpsFont.Dispose();
                 fpsFont = null;
             }
         }
         Printf("finishApp");
     }
 }
Пример #2
0
 /// <summary>
 /// 获得当前独立事件总数
 /// </summary>
 ///
 /// <returns></returns>
 public int GetActionEventCount()
 {
     return(ActionControl.GetInstance().GetCount());
 }
Пример #3
0
 /// <summary>
 /// 删除所有和指定对象有关的独立事件
 /// </summary>
 ///
 /// <param name="actObject"></param>
 public void RemoveActionEvents(Loon.Action.ActionBind actObject)
 {
     ActionControl.GetInstance().RemoveAllActions(actObject);
 }
Пример #4
0
 /// <summary>
 /// 添加一个独立事件
 /// </summary>
 ///
 /// <param name="action"></param>
 /// <param name="obj"></param>
 public void AddActionEvent(ActionEvent action, Loon.Action.ActionBind obj)
 {
     ActionControl.GetInstance().AddAction(action, obj);
 }
Пример #5
0
 /// <summary>
 /// 添加一个独立事件,并选择是否暂不启动
 /// </summary>
 ///
 /// <param name="action"></param>
 /// <param name="obj"></param>
 /// <param name="paused"></param>
 public void AddActionEvent(ActionEvent action, Loon.Action.ActionBind obj, bool paused)
 {
     ActionControl.GetInstance().AddAction(action, obj, paused);
 }
Пример #6
0
 /// <summary>
 /// 停止独立事件运行用线程
 /// </summary>
 ///
 public void StopActionEvent()
 {
     ActionControl.GetInstance().Stop();
 }
Пример #7
0
 /// <summary>
 /// 启动指定对象对应的对立事件
 /// </summary>
 ///
 /// <param name="actObject"></param>
 public void StartActionEvent(Loon.Action.ActionBind actObject)
 {
     ActionControl.GetInstance().Start(actObject);
 }
Пример #8
0
 /// <summary>
 /// 获得是否暂停了独立事件运行
 /// </summary>
 ///
 /// <returns></returns>
 public bool IsPauseActionEvent()
 {
     return(ActionControl.GetInstance().IsPause());
 }
Пример #9
0
 /// <summary>
 /// 设置是否暂停自动事件运行
 /// </summary>
 ///
 /// <param name="pause"></param>
 public void PauseActionEvent(bool pause)
 {
     ActionControl.GetInstance().SetPause(pause);
 }
Пример #10
0
 /// <summary>
 /// 设定指定角色暂停状态
 /// </summary>
 ///
 /// <param name="pause"></param>
 /// <param name="actObject"></param>
 public void PauseActionEvent(bool pause, Loon.Action.ActionBind actObject)
 {
     ActionControl.GetInstance().Paused(pause, actObject);
 }
Пример #11
0
 /// <summary>
 /// 获得制定的独立事件
 /// </summary>
 ///
 /// <param name="tag"></param>
 /// <param name="actObject"></param>
 /// <returns></returns>
 public ActionEvent GetActionEvent(object tag, Loon.Action.ActionBind actObject)
 {
     return(ActionControl.GetInstance().GetAction(tag, actObject));
 }
Пример #12
0
 /// <summary>
 /// 删除指定的独立事件
 /// </summary>
 ///
 /// <param name="action"></param>
 public void RemoveActionEvent(ActionEvent action)
 {
     ActionControl.GetInstance().RemoveAction(action);
 }
Пример #13
0
 /// <summary>
 /// 删除指定的独立事件
 /// </summary>
 ///
 /// <param name="tag"></param>
 /// <param name="actObject"></param>
 public void RemoveActionEvent(object tag, Loon.Action.ActionBind actObject)
 {
     ActionControl.GetInstance().RemoveAction(tag, actObject);
 }
Пример #14
0
 /// <summary>
 /// 停止对象对应的自动事件
 /// </summary>
 ///
 /// <param name="actObject"></param>
 public void StopActionEvent(Loon.Action.Event actObject)
 {
     ActionControl.GetInstance().Stop(actObject);
 }