예제 #1
0
        public static GlobeRegionStorageData Create(GlobeRegion globeRegion, TerrainCell terrainCell)
        {
            var storageData = new GlobeRegionStorageData();

            storageData.Id    = terrainCell.Coords.ToString();
            storageData.Nodes = globeRegion.RegionNodes.Select(x => GlobeRegionNodeStorageData.Create(x)).ToArray();

            return(storageData);
        }
예제 #2
0
        public static GlobeRegionNodeStorageData Create(GlobeRegionNode globeRegionNode)
        {
            var storageData = new GlobeRegionNodeStorageData();

            storageData.Coords    = new OffsetCoords(globeRegionNode.OffsetX, globeRegionNode.OffsetY);
            storageData.SchemeSid = globeRegionNode.Scheme.Sid;
            storageData.IsHome    = globeRegionNode.IsHome;
            storageData.IsTown    = globeRegionNode.IsTown;
            storageData.IsBorder  = globeRegionNode.IsBorder;
            storageData.IsStart   = globeRegionNode.IsStart;

            storageData.MonsterState = new GlobeRegionNodeMonsterStateStorageData {
            };
            storageData.Observed     = globeRegionNode.ObservedState;

            return(storageData);
        }