private void SetProperties(StageModelPack stageModelPack)
 {
     this.World = stageModelPack.World;
     this.Stage = stageModelPack.Stage;
     this.StageName = stageModelPack.StageName;
     this.StageDescription = stageModelPack.StageDescription;
 }
示例#2
0
        public StageModelPack ToMsgPack()
        {
            var sm = new StageModelPack()
                {
                    World = World,
                    Stage = Stage,
                    StageName = StageName,
                    StageDescription = StageDescription,
                    MapModel = MapModels.OrderBy(x => x.ID).Select(x => x.ToMsgPack()).ToArray()
                };

            return sm;
        }