public static void Init(IAtlIEKSceneEditorDocLogical logicaldata) { m_LogicalData = logicaldata; m_LogicalData.GetObjCount("NPC", -1, ref m_NpcCount); m_LogicalData.GetObjCount("Doodad", -1, ref m_DoodadCount); m_LogicalData.GetObjCount("AIGroup", -1, ref m_AIGroupCount); m_LogicalData.GetObjCount("WayPointSet", -1, ref m_WayPointSetCount); m_LogicalData.GetObjCount("LogicalPoly", -1, ref m_LogicalPolyCount); m_LogicalData.GetObjCount("TrafficLittlePointSet", -1, ref m_TrafficLittlePointSetCount); m_LogicalData.GetObjCount("TrafficPoint", -1, ref m_TrafficPointCount); m_LogicalData.GetObjCount("NpcReviveGroup", -1, ref m_NpcReviveGroupCount); m_LogicalData.GetObjCount("DoodadReviveGroup", -1, ref m_DoodadReviveGroupCount); m_LogicalData.GetObjCount("NpcRandomGroup", -1, ref m_NpcRandomGroupCount); m_LogicalData.GetObjCount("AISet", -1, ref m_AISetCount); }
public bool Init(string filename, IAtlIEKSceneEditorDocLogical DocLogical, SceneEditor sceneeditor) { m_strFileName = filename; m_DocLogical = DocLogical; m_SceneEditor = sceneeditor; if (m_DocLogical == null) { return(false); } int nTreeChildNodesCount = ReloadTree(); string strFilePath = m_strFileName; strFilePath = strFilePath + ".Logical"; StringBuilder sb = new StringBuilder(1024); Helper.ReadIniFile("MAIN", "CheckReliveEnable", "true", sb, 1024, strFilePath); if (sb.ToString() == "true") { m_bCheck = true; } else { m_bCheck = false; } //if (strcmp(szFileName, "²âÊÔ") == 0) //{ // strcat(szFileName, "1"); //} //else if (strcmp(szFileName, "¹â") == 0) //{ // strcpy(szFileName, "²âÊÔ1"); //} //else if (strcmp(szFileName, "µÇ½½çÃ泡¾°") == 0) //{ // strcpy(szFileName, "µÇ½½çÃæ"); //} CK_Run.Checked = m_bCheck; if (m_bCheck && (nTreeChildNodesCount > 0)) { this.Show(); } return(true); }
public bool Init(string filename, IAtlIEKSceneEditorDocLogical DocLogical, SceneEditor sceneeditor) { m_strFileName = filename; m_DocLogical = DocLogical; m_SceneEditor = sceneeditor; if (m_DocLogical == null) return false; int nTreeChildNodesCount = ReloadTree(); string strFilePath = m_strFileName; strFilePath = strFilePath + ".Logical"; StringBuilder sb = new StringBuilder(1024); Helper.ReadIniFile("MAIN", "CheckReliveEnable", "true", sb, 1024, strFilePath); if (sb.ToString() == "true") { m_bCheck = true; } else { m_bCheck = false; } //if (strcmp(szFileName, "²âÊÔ") == 0) //{ // strcat(szFileName, "1"); //} //else if (strcmp(szFileName, "¹â") == 0) //{ // strcpy(szFileName, "²âÊÔ1"); //} //else if (strcmp(szFileName, "µÇ½½çÃ泡¾°") == 0) //{ // strcpy(szFileName, "µÇ½½çÃæ"); //} CK_Run.Checked = m_bCheck; if (m_bCheck && (nTreeChildNodesCount > 0)) { this.Show(); } return true; }
public static void Init(IAtlIEKSceneEditorDocLogical logicaldata) { m_LogicalData = logicaldata; m_LogicalData.GetObjCount("NPC", -1, ref m_NpcCount); m_LogicalData.GetObjCount("Doodad", -1, ref m_DoodadCount); m_LogicalData.GetObjCount("AIGroup", -1, ref m_AIGroupCount); m_LogicalData.GetObjCount("WayPointSet", -1, ref m_WayPointSetCount); m_LogicalData.GetObjCount("LogicalPoly", -1, ref m_LogicalPolyCount); m_LogicalData.GetObjCount("TrafficLittlePointSet", -1, ref m_TrafficLittlePointSetCount); m_LogicalData.GetObjCount("TrafficPoint", -1, ref m_TrafficPointCount); m_LogicalData.GetObjCount("NpcReviveGroup", -1, ref m_NpcReviveGroupCount); m_LogicalData.GetObjCount("DoodadReviveGroup", -1, ref m_DoodadReviveGroupCount); m_LogicalData.GetObjCount("NpcRandomGroup", -1, ref m_NpcRandomGroupCount); m_LogicalData.GetObjCount("AISet", -1, ref m_AISetCount); }