コード例 #1
0
        public static AgentCharacter LoadAgent(String CharacterFile)
        {
            if (m_AgentSrv == null)
            {
                m_AgentSrv = new AgentServerType();
            }
            m_AgentSrv.Initialize();
            AgentCharacter Agent = new AgentCharacter();

            Agent.Load(CharacterFile);
            return(Agent);
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: ubs121/merlin-trojan
 protected void LoadAgent(string CharacterFile)
 {
     try {
         if (m_Agent != null) {
             m_Agent.Unload();
         }
         m_Agent = AgentCharacter.LoadAgent(CharacterFile);
     } catch (Exception e) {
         if (CharacterFile != null) {  // For the first default load we should not complain
             MessageBox.Show(this, e.ToString(), "AgentExplorer ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand);
         }
         m_Agent = null;
     }
 }
コード例 #3
0
 protected void LoadAgent(string CharacterFile)
 {
     try {
         if (m_Agent != null)
         {
             m_Agent.Unload();
         }
         m_Agent = AgentCharacter.LoadAgent(CharacterFile);
     } catch (Exception e) {
         if (CharacterFile != null)    // For the first default load we should not complain
         {
             MessageBox.Show(this, e.ToString(), "AgentExplorer ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand);
         }
         m_Agent = null;
     }
 }
コード例 #4
0
 public static AgentCharacter LoadAgent(String CharacterFile)
 {
     if (m_AgentSrv == null) {
         m_AgentSrv = new AgentServerType();
     }
     m_AgentSrv.Initialize();
     AgentCharacter Agent = new AgentCharacter();
     Agent.Load(CharacterFile);
     return Agent;
 }