Beispiel #1
0
        /// <summary>
        /// Overridden function to create the shape instance
        /// </summary>
        /// <returns></returns>
        public override ShapeBase CreateShapeInstance()
        {
            CameraPositionShape shape = new CameraPositionShape("CameraPosition");

            shape.Position = EditorManager.Scene.CurrentShapeSpawnPosition;
            return(shape);
        }
Beispiel #2
0
        /// <summary>
        /// Overridden clone function
        /// </summary>
        /// <returns></returns>
        public override ShapeBase Clone()
        {
            CameraPositionShape copy = (CameraPositionShape)base.Clone();

            copy._shortCut = null;
            copy._key      = Keys.None;
            return(copy);
        }
 /// <summary>
 /// Overridden function to create the shape instance
 /// </summary>
 /// <returns></returns>
 public override ShapeBase CreateShapeInstance()
 {
     CameraPositionShape shape = new CameraPositionShape("CameraPosition");
       shape.Position = EditorManager.Scene.CurrentShapeSpawnPosition;
       return shape;
 }
 public CameraPositionShortCut(CameraPositionShape shape)
     : base(Keys.None)
 {
     iUniqueAdvance++;
     _shape = shape;
 }
Beispiel #5
0
 public CameraPositionShortCut(CameraPositionShape shape)
     : base(Keys.None)
 {
     iUniqueAdvance++;
     _shape = shape;
 }