public ReversedFloors(FF1Rom _rom, List <Map> _maps, MT19337 _rng) { rom = _rom; maps = _maps; rng = _rng; tele = new NormTeleData(rom); enter = new EnterTeleData(rom); }
public void LoadData() { var enter = new EnterTeleData(rom); var tele = new NormTeleData(rom); enter.LoadData(); tele.LoadData(); NormalTele = tele; foreach (var e in EnterMapping) { var x = Get(e.Value); x.SetEntrance(new Coordinate(enter[(int)e.Key].X, enter[(int)e.Key].Y, CoordinateLocale.Standard)); Set(e.Value, x); } foreach (var t in TeleMapping) { var x = Get(t.Value); x.SetEntrance(new Coordinate((byte)(tele[(int)t.Key].X | (x.CoordinateX & 0x80)), tele[(int)t.Key].Y, CoordinateLocale.Standard)); Set(t.Value, x); } }