예제 #1
0
 /// <summary>Releases a controller. </summary>
 /// <param name="controller">The controller to release.</param>
 public virtual void releaseController(NxController controller)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     NxControllerManager_releaseController_INVOKE(ClassPointer, doSetFunctionPointers, (controller != null ? controller.ClassPointer : NullRef));
 }
예제 #2
0
 /// <summary>Creates a new character controller. </summary>
 /// <param name="scene">The scene that the controller will belong to. </param>
 /// <param name="desc">The controllers descriptor </param>
 public virtual NxController createController(NxScene scene, NxControllerDesc desc)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxController.GetClass(NxControllerManager_createController_INVOKE(ClassPointer, doSetFunctionPointers, (scene != null ? scene.ClassPointer : NullRef), (desc != null ? desc.ClassPointer : NullRef))));
 }
예제 #3
0
 /// <summary>Retrieve one of the controllers in the manager. </summary>
 /// <param name="index">the index of the controller to return </param>
 public virtual NxController getController(uint index)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxController.GetClass(NxControllerManager_getController_INVOKE(ClassPointer, doSetFunctionPointers, index)));
 }
예제 #4
0
 /// <summary></summary>
 public void releaseController(NxController controller)
 {
     ControllerManager_releaseController_INVOKE(ClassPointer, doSetFunctionPointers, (controller != null ? controller.ClassPointer : NullRef));
 }
예제 #5
0
 /// <summary></summary>
 public NxController createController(NxScene scene, NxControllerDesc desc)
 {
     return(NxController.GetClass(ControllerManager_createController_INVOKE(ClassPointer, doSetFunctionPointers, (scene != null ? scene.ClassPointer : NullRef), (desc != null ? desc.ClassPointer : NullRef))));
 }
예제 #6
0
 /// <summary></summary>
 public NxController getController(uint index)
 {
     return(NxController.GetClass(ControllerManager_getController_INVOKE(ClassPointer, doSetFunctionPointers, index)));
 }
예제 #7
0
 private void releaseController_virtual(IntPtr controller)
 {
     releaseController(NxController.GetClass(controller));
 }