NavArea.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. // WARNING - AUTOGENERATED - DO NOT EDIT
  2. //
  3. // Generated using `sharpie urho`
  4. //
  5. // NavArea.cs
  6. //
  7. // Copyright 2015 Xamarin Inc. All rights reserved.
  8. using System;
  9. using System.Runtime.InteropServices;
  10. using System.Collections.Generic;
  11. using Urho.Urho2D;
  12. using Urho.Gui;
  13. using Urho.Resources;
  14. using Urho.IO;
  15. using Urho.Navigation;
  16. using Urho.Network;
  17. namespace Urho.Navigation
  18. {
  19. /// <summary>
  20. /// Construct.
  21. /// </summary>
  22. public unsafe partial class NavArea : Component
  23. {
  24. unsafe partial void OnNavAreaCreated ();
  25. [Preserve]
  26. public NavArea (IntPtr handle) : base (handle)
  27. {
  28. OnNavAreaCreated ();
  29. }
  30. [Preserve]
  31. protected NavArea (UrhoObjectFlag emptyFlag) : base (emptyFlag)
  32. {
  33. OnNavAreaCreated ();
  34. }
  35. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  36. internal static extern int NavArea_GetType (IntPtr handle);
  37. private StringHash UrhoGetType ()
  38. {
  39. Runtime.ValidateRefCounted (this);
  40. return new StringHash (NavArea_GetType (handle));
  41. }
  42. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  43. internal static extern IntPtr NavArea_GetTypeName (IntPtr handle);
  44. private string GetTypeName ()
  45. {
  46. Runtime.ValidateRefCounted (this);
  47. return Marshal.PtrToStringAnsi (NavArea_GetTypeName (handle));
  48. }
  49. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  50. internal static extern int NavArea_GetTypeStatic ();
  51. private static StringHash GetTypeStatic ()
  52. {
  53. Runtime.Validate (typeof(NavArea));
  54. return new StringHash (NavArea_GetTypeStatic ());
  55. }
  56. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  57. internal static extern IntPtr NavArea_GetTypeNameStatic ();
  58. private static string GetTypeNameStatic ()
  59. {
  60. Runtime.Validate (typeof(NavArea));
  61. return Marshal.PtrToStringAnsi (NavArea_GetTypeNameStatic ());
  62. }
  63. [Preserve]
  64. public NavArea () : this (Application.CurrentContext)
  65. {
  66. }
  67. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  68. internal static extern IntPtr NavArea_NavArea (IntPtr param1);
  69. [Preserve]
  70. public NavArea (Context param1) : base (UrhoObjectFlag.Empty)
  71. {
  72. Runtime.Validate (typeof(NavArea));
  73. handle = NavArea_NavArea ((object)param1 == null ? IntPtr.Zero : param1.Handle);
  74. Runtime.RegisterObject (this);
  75. OnNavAreaCreated ();
  76. }
  77. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  78. internal static extern void NavArea_RegisterObject (IntPtr param1);
  79. /// <summary>
  80. /// Register object factory and attributes.
  81. /// </summary>
  82. public new static void RegisterObject (Context param1)
  83. {
  84. Runtime.Validate (typeof(NavArea));
  85. NavArea_RegisterObject ((object)param1 == null ? IntPtr.Zero : param1.Handle);
  86. }
  87. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  88. internal static extern void NavArea_DrawDebugGeometry (IntPtr handle, IntPtr debug, bool depthTest);
  89. /// <summary>
  90. /// Render debug geometry for the bounds.
  91. /// </summary>
  92. public override void DrawDebugGeometry (DebugRenderer debug, bool depthTest)
  93. {
  94. Runtime.ValidateRefCounted (this);
  95. NavArea_DrawDebugGeometry (handle, (object)debug == null ? IntPtr.Zero : debug.Handle, depthTest);
  96. }
  97. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  98. internal static extern uint NavArea_GetAreaID (IntPtr handle);
  99. /// <summary>
  100. /// Get the area id for this volume.
  101. /// </summary>
  102. private uint GetAreaID ()
  103. {
  104. Runtime.ValidateRefCounted (this);
  105. return NavArea_GetAreaID (handle);
  106. }
  107. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  108. internal static extern void NavArea_SetAreaID (IntPtr handle, uint newID);
  109. /// <summary>
  110. /// Set the area id for this volume.
  111. /// </summary>
  112. private void SetAreaID (uint newID)
  113. {
  114. Runtime.ValidateRefCounted (this);
  115. NavArea_SetAreaID (handle, newID);
  116. }
  117. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  118. internal static extern BoundingBox NavArea_GetBoundingBox (IntPtr handle);
  119. /// <summary>
  120. /// Get the bounding box of this navigation area, in local space.
  121. /// </summary>
  122. private BoundingBox GetBoundingBox ()
  123. {
  124. Runtime.ValidateRefCounted (this);
  125. return NavArea_GetBoundingBox (handle);
  126. }
  127. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  128. internal static extern void NavArea_SetBoundingBox (IntPtr handle, ref Urho.BoundingBox bnds);
  129. /// <summary>
  130. /// Set the bounding box of this area, in local space.
  131. /// </summary>
  132. public void SetBoundingBox (Urho.BoundingBox bnds)
  133. {
  134. Runtime.ValidateRefCounted (this);
  135. NavArea_SetBoundingBox (handle, ref bnds);
  136. }
  137. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  138. internal static extern BoundingBox NavArea_GetWorldBoundingBox (IntPtr handle);
  139. /// <summary>
  140. /// Get the bounds of this navigation area in world space.
  141. /// </summary>
  142. private BoundingBox GetWorldBoundingBox ()
  143. {
  144. Runtime.ValidateRefCounted (this);
  145. return NavArea_GetWorldBoundingBox (handle);
  146. }
  147. public override StringHash Type {
  148. get {
  149. return UrhoGetType ();
  150. }
  151. }
  152. public override string TypeName {
  153. get {
  154. return GetTypeName ();
  155. }
  156. }
  157. [Preserve]
  158. public new static StringHash TypeStatic {
  159. get {
  160. return GetTypeStatic ();
  161. }
  162. }
  163. public new static string TypeNameStatic {
  164. get {
  165. return GetTypeNameStatic ();
  166. }
  167. }
  168. /// <summary>
  169. /// Get the area id for this volume.
  170. /// Or
  171. /// Set the area id for this volume.
  172. /// </summary>
  173. public uint AreaID {
  174. get {
  175. return GetAreaID ();
  176. }
  177. set {
  178. SetAreaID (value);
  179. }
  180. }
  181. /// <summary>
  182. /// Get the bounding box of this navigation area, in local space.
  183. /// </summary>
  184. public BoundingBox BoundingBox {
  185. get {
  186. return GetBoundingBox ();
  187. }
  188. }
  189. /// <summary>
  190. /// Get the bounds of this navigation area in world space.
  191. /// </summary>
  192. public BoundingBox WorldBoundingBox {
  193. get {
  194. return GetWorldBoundingBox ();
  195. }
  196. }
  197. }
  198. }