//********************************** Banshee Engine (www.banshee3d.com) **************************************************// //**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************// using System; using System.Runtime.CompilerServices; namespace BansheeEngine { /// /// A base class for objects that can be part of the scene and referenced by other game objects. /// public class GameObject : ScriptObject { /// /// Returns a unique ID for the game object. /// public UInt64 InstanceId { get { return Internal_GetInstanceId(mCachedPtr); } } [MethodImpl(MethodImplOptions.InternalCall)] private static extern UInt64 Internal_GetInstanceId(IntPtr thisPtr); } /// /// Flags used for notifying child scene object and components when a transform has been changed. /// public enum TransformChangedFlags { None = 0x00, Transform = 0x01, Parent = 0x02 } }