示例#1
0
 public void WorldChange(WorldMaps newWorld, Tilemap newMap)
 {
     transform.SleepChildren();
     ActiveMap = newWorld;
     CurrentWorld.gameObject.SetActive(true);
     MapChange(newMap);
 }
示例#2
0
 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();
     }
 }
示例#3
0
 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();
 }
示例#4
0
 public void Teleport(WorldMaps toWorld, Tilemap toMap, Tilemap teleportPlatform)
 {
     Player.transform.position = teleportPlatform == null ? toMap.cellBounds.center : teleportPlatform.cellBounds.center;
     WorldChange(toWorld, toMap);
 }
示例#5
0
 public void Teleport(WorldMaps toWorld, Tilemap toMap, Vector3 landPos)
 {
     Player.transform.position = landPos;
     WorldChange(toWorld, toMap);
 }
示例#6
0
 public void Teleport(WorldMaps toWorld, Tilemap toMap)
 {
     Player.transform.position = toMap.cellBounds.center;
     WorldChange(toWorld, toMap);
 }
示例#7
0
 public PosSave(Vector3 vec3, WorldMaps currWorld, string currMap)
 {
     pos   = vec3;
     world = currWorld;
     map   = currMap;
 }
示例#8
0
 public TeleportSave(string mapName, WorldMaps world, bool know)
 {
     this.mapName = mapName;
     this.world   = world;
     this.know    = know;
 }