GameObject.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using System;
  4. using System.Runtime.CompilerServices;
  5. namespace BansheeEngine
  6. {
  7. /// <summary>
  8. /// A base class for objects that can be part of the scene and referenced by other game objects.
  9. /// </summary>
  10. public class GameObject : ScriptObject
  11. {
  12. /// <summary>
  13. /// Returns a unique ID for the game object.
  14. /// </summary>
  15. public UInt64 InstanceId
  16. {
  17. get { return Internal_GetInstanceId(mCachedPtr); }
  18. }
  19. [MethodImpl(MethodImplOptions.InternalCall)]
  20. private static extern UInt64 Internal_GetInstanceId(IntPtr thisPtr);
  21. }
  22. /// <summary>
  23. /// Flags used for notifying child scene object and components when a transform has been changed.
  24. /// </summary>
  25. public enum TransformChangedFlags
  26. {
  27. None = 0x00,
  28. Transform = 0x01,
  29. Parent = 0x02
  30. }
  31. }