Example #1
0
        public Map(string path)
        {
            GlobalFlags = new MapFlags(64);
            SegmentDefinitions = new SegmentDefinition[512];
            Segments = new MapSegment[3, 64];
            Grid = new int[XSize, YSize];
            Path = path;

            Ledges = new Ledge[16];

            for (var i = 0; i < 16; i++)
                Ledges[i] = new Ledge();

            ReadSegmentDefinitions();

            Read();
        }
Example #2
0
        public Map(string path)
        {
            GlobalFlags        = new MapFlags(64);
            SegmentDefinitions = new SegmentDefinition[512];
            Segments           = new MapSegment[3, 64];
            Grid = new int[XSize, YSize];
            Path = path;

            Ledges = new Ledge[16];

            for (var i = 0; i < 16; i++)
            {
                Ledges[i] = new Ledge();
            }

            ReadSegmentDefinitions();

            Read();
        }
Example #3
0
 public MapScript(Map map)
 {
     _map = map;
     Flags = new MapFlags(32);
     Lines = new MapScriptLine[128];
 }
Example #4
0
 public MapScript(Map map)
 {
     _map  = map;
     Flags = new MapFlags(32);
     Lines = new MapScriptLine[128];
 }