public void WorldChange(WorldMaps newWorld, Tilemap newMap) { transform.SleepChildren(); ActiveMap = newWorld; CurrentWorld.gameObject.SetActive(true); MapChange(newMap); }
public void WriteToROM() { if (NewGame != null && NewGame.Visible) { NewGame.WriteToROM(); } if (Animations != null && Animations.Visible) { Animations.WriteToROM(); } if (Attacks != null && Attacks.Visible) { Attacks.WriteToROM(); } if (Battlefields != null && Battlefields.Visible) { Battlefields.WriteToROM(); } if (Dialogues != null && Dialogues.Visible) { Dialogues.WriteToROM(); } if (EventScripts != null && EventScripts.Visible) { EventScripts.WriteToROM(); } if (Fonts != null && Fonts.Visible) { Fonts.WriteToROM(); } if (Formations != null && Formations.Visible) { Formations.WriteToROM(); } if (Items != null && Items.Visible) { Items.WriteToROM(); } if (Areas != null && Areas.Visible) { Areas.WriteToROM(); } if (Monsters != null && Monsters.Visible) { Monsters.WriteToROM(); } if (Sprites != null && Sprites.Visible) { Sprites.WriteToROM(); } if (Intro != null && Intro.Visible) { Intro.WriteToROM(); } if (WorldMaps != null && WorldMaps.Visible) { WorldMaps.WriteToROM(); } }
public void CreateWorldMapsWindow() { if (WorldMaps == null || !WorldMaps.Visible) { Cursor.Current = Cursors.WaitCursor; WorldMaps = new WorldMaps.OwnerForm(); if (DockEditors) { Do.AddControl(MainForm.PanelForms, WorldMaps); } else { WorldMaps.Show(); } loadedForms.Add(WorldMaps); Cursor.Current = Cursors.Arrow; } WorldMaps.KeyDown += new KeyEventHandler(editor_KeyDown); WorldMaps.BringToFront(); }
public void Teleport(WorldMaps toWorld, Tilemap toMap, Tilemap teleportPlatform) { Player.transform.position = teleportPlatform == null ? toMap.cellBounds.center : teleportPlatform.cellBounds.center; WorldChange(toWorld, toMap); }
public void Teleport(WorldMaps toWorld, Tilemap toMap, Vector3 landPos) { Player.transform.position = landPos; WorldChange(toWorld, toMap); }
public void Teleport(WorldMaps toWorld, Tilemap toMap) { Player.transform.position = toMap.cellBounds.center; WorldChange(toWorld, toMap); }
public PosSave(Vector3 vec3, WorldMaps currWorld, string currMap) { pos = vec3; world = currWorld; map = currMap; }
public TeleportSave(string mapName, WorldMaps world, bool know) { this.mapName = mapName; this.world = world; this.know = know; }