Ejemplo n.º 1
0
        public static void LoadDefaultState(GameState state)
        {
            state.Save.NextDest = DataManager.Instance.StartMap;

            ZoneData zone = DataManager.Instance.GetZone(DataManager.Instance.StartMap.ID);

            state.Zone             = new ZoneManager();
            state.Zone.CurrentZone = zone.CreateActiveZone(0, DataManager.Instance.StartMap.ID);
            state.Zone.CurrentZone.SetCurrentMap(DataManager.Instance.StartMap.StructID);
        }
Ejemplo n.º 2
0
        //include a current groundmap, with moveto methods included

        public void MoveToZone(int zoneIndex, SegLoc mapId, ulong seed)
        {
            if (CurrentZone != null)
            {
                CurrentZone.DoCleanup();
            }
            CurrentZoneID = zoneIndex;
            ZoneData zone = DataManager.Instance.GetZone(zoneIndex);

            if (zone != null)
            {
                CurrentZone = zone.CreateActiveZone(seed, zoneIndex);
                CurrentZone.SetCurrentMap(mapId);
            }
        }