コード例 #1
0
        public void Load(SaveGameData p_data)
        {
            m_worldMapPoints.Clear();
            Int32 num = p_data.Get <Int32>("WorldMapCount", 0);

            for (Int32 i = 0; i < num; i++)
            {
                SaveGameData saveGameData = p_data.Get <SaveGameData>("WorldMapPoint" + i, null);
                if (saveGameData != null)
                {
                    Int32 num2 = saveGameData.Get <Int32>("StaticID", 0);
                    WorldMapPointStaticData staticData = StaticDataHandler.GetStaticData <WorldMapPointStaticData>(EDataType.WORLD_MAP, num2);
                    if (staticData != null)
                    {
                        WorldMapPoint worldMapPoint = new WorldMapPoint(staticData);
                        worldMapPoint.Load(saveGameData);
                        m_worldMapPoints.Add(num2, worldMapPoint);
                    }
                }
            }
            if (MapPointsLoaded != null)
            {
                MapPointsLoaded(this, EventArgs.Empty);
            }
        }
コード例 #2
0
 public WorldMapPoint(WorldMapPointStaticData staticData)
 {
     m_staticData   = staticData;
     m_currentState = staticData.InitialState;
 }