コード例 #1
0
        private void ProcessMap(MapId mapid, List <SCMap> tmpscmaps)
        {
            var e1 = maps[(int)mapid];
            var ts = tileSets[mapTileSets[mapid]];

            SCMapCheckFlags cflags = SCMapCheckFlags.None;

            if (mapid <= MapId.CastleOfOrdeals1F)
            {
                cflags |= SCMapCheckFlags.NoWarp;
            }
            if (mapid == MapId.SkyPalace2F)
            {
                cflags |= SCMapCheckFlags.NoUseTiles;
            }

            SCMap scmap = new SCMap(mapid, e1, cflags, rom, npcdata, ts, enter, exit, tele);

            tmpscmaps.Add(scmap);
        }
コード例 #2
0
        public SCMap(MapId _mapid, Map _map, SCMapCheckFlags cflags, FF1Rom _rom, NPCdata _npcData, SCTileSet _tileSet, EnterTeleData _enter, ExitTeleData _exit, NormTeleData _tele)
        {
            MapId  = _mapid;
            CFlags = cflags;

            map     = _map;
            rom     = _rom;
            tileSet = _tileSet;

            enter = _enter;
            exit  = _exit;
            tele  = _tele;

            npcdata = _npcData;

            ProcessTiles();
            ProcessNPCs();
            ProcessTeleporters();
            ProcessPointsOfInterest();
            ComposeAreas();
        }
コード例 #3
0
        public SCOwMap(OverworldMap _map, SCMapCheckFlags cflags, FF1Rom _rom, SCTileSet _tileSet, EnterTeleData _enter, ExitTeleData _exit, SCCoords bridge, SCCoords canal)
        {
            CFlags = cflags;

            map     = _map;
            rom     = _rom;
            tileSet = _tileSet;

            enter = _enter;
            exit  = _exit;

            Bridge = bridge;
            Canal  = canal;

            ProcessTiles();
            ProcessTeleporters();
            ProcessSpecialPointOfInterests();

            DoPathing();

            ProcessPointsOfInterest();

            FilterAreas();
        }