/// <summary> /// Initializes a new instance of the <see cref="Map"/> class. /// Creates an empty array for segmentDefinition, 3 layers each with /// room for 64 segments, an array of 16 ledges and a collision grid which is 20x20 /// then it reads segment definitions - to load a map from a file the Read() method /// has to be invoked manually (we do this in the initialize method from the main class) /// </summary> public Map() { segDef = new SegmentDefinitions[512]; mapSegment = new MapSegment[3, 64]; colisionGrid = new int[20, 20]; ledges = new Ledge[16]; for (int i = 0; i < 16; i++) { ledges[i] = new Ledge(); } GlobalFlags = new MapFlags(64); ReadSegmentDefinitions(); }
public MapScript(Map _map) { this.map = _map; Flags = new MapFlags(32); Lines = new MapScriptLine[128]; }