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); }
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; } }
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; } }
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; }