예제 #1
0
        public object Clone()
        {
            NextScene ns = (NextScene)this.MemberwiseClone();

            ns.conditions  = (conditions != null ? (Conditions)conditions.Clone() : null);
            ns.destinyX    = destinyX;
            ns.destinyY    = destinyY;
            ns.effects     = (effects != null ? (Effects)effects.Clone() : null);
            ns.look        = (look != null ? (ExitLook)look.Clone() : null);
            ns.nextSceneId = (nextSceneId != null ? nextSceneId : null);
            ns.postEffects = (postEffects != null ? (Effects)postEffects.Clone() : null);
            return(ns);
        }
예제 #2
0
        public object Clone()
        {
            Exit e = (Exit)this.MemberwiseClone();

            e.defaultExitLook = (defaultExitLook != null ? (ExitLook)defaultExitLook.Clone() : null);
            e.documentation   = (documentation != null ? documentation : null);
            e.height          = height;
            if (nextScenes != null)
            {
                e.nextScenes = new List <NextScene>();
                foreach (NextScene ns in nextScenes)
                {
                    e.nextScenes.Add((NextScene)ns.Clone());
                }
            }
            e.influenceArea = (influenceArea != null ? (InfluenceArea)influenceArea.Clone() : null);
            e.width         = width;
            e.x             = x;
            e.y             = y;
            e.rectangular   = rectangular;
            if (points != null)
            {
                e.points = new List <Vector2>();
                foreach (Vector2 p in points)
                {
                    e.points.Add(new Vector2(p.x, p.y));
                }
            }
            e.conditions     = (conditions != null ? (Conditions)conditions.Clone() : null);
            e.effects        = (effects != null ? (Effects)effects.Clone() : null);
            e.postEffects    = (postEffects != null ? (Effects)postEffects.Clone() : null);
            e.notEffects     = (notEffects != null ? (Effects)notEffects.Clone() : null);
            e.destinyX       = destinyX;
            e.destinyY       = destinyY;
            e.hasNotEffects  = hasNotEffects;
            e.nextSceneId    = (nextSceneId != null ? nextSceneId : null);
            e.transitionTime = transitionTime;
            e.transitionType = transitionType;
            return(e);
        }