Ejemplo n.º 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);
        }
Ejemplo n.º 2
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;
     }
 }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 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;
 }