SceneResolver.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. // WARNING - AUTOGENERATED - DO NOT EDIT
  2. //
  3. // Generated using `sharpie urho`
  4. //
  5. // SceneResolver.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
  18. {
  19. /// <summary>
  20. /// Utility class that resolves node
  21. /// </summary>
  22. public unsafe partial class SceneResolver
  23. {
  24. private IntPtr handle;
  25. public IntPtr Handle {
  26. get {
  27. return handle;
  28. }
  29. }
  30. unsafe partial void OnSceneResolverCreated ();
  31. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  32. internal static extern IntPtr SceneResolver_SceneResolver ();
  33. [Preserve]
  34. public SceneResolver ()
  35. {
  36. Runtime.Validate (typeof(SceneResolver));
  37. handle = SceneResolver_SceneResolver ();
  38. OnSceneResolverCreated ();
  39. }
  40. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  41. internal static extern void SceneResolver_Reset (IntPtr handle);
  42. /// <summary>
  43. /// Reset. Clear all remembered nodes and components.
  44. /// </summary>
  45. public void Reset ()
  46. {
  47. Runtime.ValidateObject (this);
  48. SceneResolver_Reset (handle);
  49. }
  50. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  51. internal static extern void SceneResolver_AddNode (IntPtr handle, uint oldID, IntPtr node);
  52. /// <summary>
  53. /// Remember a created node.
  54. /// </summary>
  55. public void AddNode (uint oldID, Node node)
  56. {
  57. Runtime.ValidateObject (this);
  58. SceneResolver_AddNode (handle, oldID, (object)node == null ? IntPtr.Zero : node.Handle);
  59. }
  60. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  61. internal static extern void SceneResolver_AddComponent (IntPtr handle, uint oldID, IntPtr component);
  62. /// <summary>
  63. /// Remember a created component.
  64. /// </summary>
  65. public void AddComponent (uint oldID, Component component)
  66. {
  67. Runtime.ValidateObject (this);
  68. SceneResolver_AddComponent (handle, oldID, (object)component == null ? IntPtr.Zero : component.Handle);
  69. }
  70. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  71. internal static extern void SceneResolver_Resolve (IntPtr handle);
  72. /// <summary>
  73. /// Resolve component and node ID attributes and reset.
  74. /// </summary>
  75. public void Resolve ()
  76. {
  77. Runtime.ValidateObject (this);
  78. SceneResolver_Resolve (handle);
  79. }
  80. }
  81. }