public bool Restore(CRestore restore) { //TODO: implement /* * ClearStates(); * if (!restore.ReadFields("GLOBAL", this, m_SaveData, ARRAYSIZE(m_SaveData))) * return false; * * var listCount = m_listCount; // Get new list count * m_listCount = 0; // Clear loaded data * * globalentity_t tmpEntity; * * for (var i = 0; i < listCount; ++i) * { * if (!restore.ReadFields("GENT", &tmpEntity, gGlobalEntitySaveData, ARRAYSIZE(gGlobalEntitySaveData))) * return false; * EntityAdd(MAKE_STRING(tmpEntity.name), MAKE_STRING(tmpEntity.levelName), tmpEntity.state); * } */ return(true); }
/// <summary> /// Выполняет инициализацию массивов. /// До выполенения данного метода не позволяет считывать кубы. /// </summary> /// <param name="i"></param> /// <param name="j"></param> /// <param name="k"></param> public void SetSize(int i, int j, int k) { NI = i; NJ = j; NK = k; KRange = new int[2] { 0, k - 1 }; SelectedI = NI / 2; SelectedJ = NJ / 2; coord = new CCoord(NI, NJ, NK); ViewCenter = new tXYZ(); ViewOffset = new tXYZ(); zcorn = new CZcorn(NI, NJ, NK); actnum = new CActnum(NI, NJ, NK, this); MapColor = new Single[NI, NJ]; InterColor = new Single[NI, NJ, NK]; zmin = double.MaxValue; zmax = double.MinValue; PaintI = true; //IsInitialized = true; Cell = new CCell(this); Bulleye = new CBulleye(this); Reduce = new CReduce(this); Restore = new CRestore(this); Picker = new CPicker(this); }