Esempio n. 1
0
 public SceneVO(SceneVO vo)
 {
     sceneName           = vo.sceneName;
     composite           = new CompositeVO(vo.composite);
     ambientColor        = vo.ambientColor;
     physicsPropertiesVO = new PhysicsPropertiesVO(vo.physicsPropertiesVO);
     lightSystemEnabled  = vo.lightSystemEnabled;
 }
Esempio n. 2
0
        public CompositeVO(CompositeVO vo)
        {
            if (vo == null)
            {
                return;
            }

            update(vo);
        }
Esempio n. 3
0
        private List <MainItemVO> getAllItemsRecursive(List <MainItemVO> itemsList, CompositeVO compositeVo)
        {
            foreach (MainItemVO vo in compositeVo.sImage9patchs)
            {
                itemsList.Add(vo);
            }
            foreach (MainItemVO vo in compositeVo.sImages)
            {
                itemsList.Add(vo);
            }
            foreach (MainItemVO vo in compositeVo.sLabels)
            {
                itemsList.Add(vo);
            }
            foreach (MainItemVO vo in compositeVo.sLights)
            {
                itemsList.Add(vo);
            }
            foreach (MainItemVO vo in compositeVo.sParticleEffects)
            {
                itemsList.Add(vo);
            }
            foreach (MainItemVO vo in compositeVo.sSelectBoxes)
            {
                itemsList.Add(vo);
            }
            foreach (MainItemVO vo in compositeVo.sSpineAnimations)
            {
                itemsList.Add(vo);
            }
            foreach (MainItemVO vo in compositeVo.sSpriteAnimations)
            {
                itemsList.Add(vo);
            }
            foreach (MainItemVO vo in compositeVo.sSpriterAnimations)
            {
                itemsList.Add(vo);
            }
            foreach (MainItemVO vo in compositeVo.sTextBox)
            {
                itemsList.Add(vo);
            }
            foreach (MainItemVO vo in compositeVo.sColorPrimitives)
            {
                itemsList.Add(vo);
            }
            foreach (CompositeItemVO vo in compositeVo.sComposites)
            {
                itemsList = getAllItemsRecursive(itemsList, vo.composite);
                itemsList.Add(vo);
            }

            return(itemsList);
        }
Esempio n. 4
0
        public void update(CompositeVO vo)
        {
            clear();
            for (int i = 0; i < vo.sImages.Count; i++)
            {
                sImages.Add(new SimpleImageVO(vo.sImages[i]));
            }
            for (int i = 0; i < vo.sImage9patchs.Count; i++)
            {
                sImage9patchs.Add(new Image9patchVO(vo.sImage9patchs[i]));
            }
            for (int i = 0; i < vo.sTextBox.Count; i++)
            {
                sTextBox.Add(new TextBoxVO(vo.sTextBox[i]));
            }
            for (int i = 0; i < vo.sLabels.Count; i++)
            {
                sLabels.Add(new LabelVO(vo.sLabels[i]));
            }
            for (int i = 0; i < vo.sComposites.Count; i++)
            {
                sComposites.Add(new CompositeItemVO(vo.sComposites[i]));
            }
            for (int i = 0; i < vo.sSelectBoxes.Count; i++)
            {
                sSelectBoxes.Add(new SelectBoxVO(vo.sSelectBoxes[i]));
            }

            for (int i = 0; i < vo.sParticleEffects.Count; i++)
            {
                sParticleEffects.Add(new ParticleEffectVO(vo.sParticleEffects[i]));
            }

            for (int i = 0; i < vo.sLights.Count; i++)
            {
                sLights.Add(new LightVO(vo.sLights[i]));
            }

            for (int i = 0; i < vo.sSpineAnimations.Count; i++)
            {
                sSpineAnimations.Add(new SpineVO(vo.sSpineAnimations[i]));
            }

            for (int i = 0; i < vo.sSpriteAnimations.Count; i++)
            {
                sSpriteAnimations.Add(new SpriteAnimationVO(vo.sSpriteAnimations[i]));
            }

            for (int i = 0; i < vo.sSpriterAnimations.Count; i++)
            {
                sSpriterAnimations.Add(new SpriterVO(vo.sSpriterAnimations[i]));
            }

            for (int i = 0; i < vo.sColorPrimitives.Count; i++)
            {
                sColorPrimitives.Add(new ColorPrimitiveVO(vo.sColorPrimitives[i]));
            }

            layers.Clear();
            for (int i = 0; i < vo.layers.Count; i++)
            {
                layers.Add(new LayerItemVO(vo.layers[i]));
            }
        }
Esempio n. 5
0
 public void update(CompositeItemVO vo)
 {
     composite = new CompositeVO(vo.composite);
 }
Esempio n. 6
0
 public CompositeItemVO(CompositeItemVO vo) : base(vo)
 {
     composite = new CompositeVO(vo.composite);
 }
Esempio n. 7
0
 public CompositeItemVO() : base()
 {
     composite = new CompositeVO();
 }