コード例 #1
0
 static SphereCameraController( )
 {
     Commands = new CommandGroup( "sphereCameraCommands", "Spherical Camera Commands", CommandRegistry.Instance );
     Rotate = Commands.NewCommand( "rotate", "Rotate", "Rotates the camera" );
     Pan = Commands.NewCommand( "pan", "Pan", "Pans the camera" );
     Zoom = Commands.NewCommand( "zoom", "Zoom", "Zooms the camera in and out" );
 }
コード例 #2
0
 static TrackingCameraCommands( )
 {
     Commands	= new CommandGroup( "trackingCamera", "Tracking Camera Commands", CommandRegistry.Instance );
     Zoom		= Commands.NewCommand( "zoom", "Zoom", "Zooms the camera in and out" );
     ZoomIn		= Commands.NewCommand( "zoomIn", "Zoom In", "Zooms the camera in" );
     ZoomOut		= Commands.NewCommand( "zoomOut", "Zoom Out", "Zooms the camera out" );
     Pan			= Commands.NewCommand( "pan", "Pan", "Pans the camera" );
     Rotate		= Commands.NewCommand( "rotate", "Rotate", "Rotates the camera" );
 }
        /// <summary>
        /// Initializes test data
        /// </summary>
        public TestCommandTriggerDataSerialization( )
        {
            m_Formatter = new BinaryFormatter( null, CommandSerializationContext.ToStreamingContext( m_UserRegistry, m_CommandRegistry ) );

            m_Commands = new CommandGroup( "testCommands", "", m_CommandRegistry );
            m_Command0 = m_Commands.NewCommand( "cmd0", "", "" );

            m_UserRegistry.Register( m_User );
        }
コード例 #4
0
        /// <summary>
        /// Setup constructor
        /// </summary>
        public ControlViewInfo( string name, CreateViewDelegate createView, CommandGroup showCommandGroup )
        {
            Arguments.CheckNotNull( createView, "createView" );
            m_Name = name;
            m_CreateView = createView;

            if ( showCommandGroup != null )
            {
                m_ShowCommand = showCommandGroup.NewCommand( name, name, name );
            }
        }
コード例 #5
0
 static FirstPersonCameraCommands( )
 {
     Commands			= new CommandGroup( "fpCamCommands", "First Person Camera Commands", CommandRegistry.Instance );
     Forwards			= Commands.NewCommand( "forwards", "Forwards", "Moves forwards" );
     Backwards			= Commands.NewCommand( "backwards", "Backwards", "Moves backwards" );
     PitchUp				= Commands.NewCommand( "pitchUp", "Pitch up", "Pitches the camera up" );
     PitchDown			= Commands.NewCommand( "pitchDown", "Pitch down", "Pitches the camera down" );
     RollClockwise		= Commands.NewCommand( "rollClockwise", "Roll clockwise", "Rolls the camera clockwise" );
     RollAnticlockwise	= Commands.NewCommand( "rollAnticlockwise", "Roll anticlockwise", "Rolls the camera anti-clockwise" ); ;
     YawLeft				= Commands.NewCommand( "yawLeft", "Yaw left", "Yaws the camera left" );
     YawRight			= Commands.NewCommand( "yawRight", "Yaw right", "Yaws the camera right" );
     SlipLeft			= Commands.NewCommand( "slipLeft", "Slip left", "Slips the camera left" );
     SlipRight			= Commands.NewCommand( "slipRight", "Slip right", "Slips the camera right" );
     Turn				= Commands.NewCommand( "turn", "Turn", "Turns the camera" );
 }