2
0

Scene.cs 807 B

123456789101112131415161718192021222324252627282930313233
  1. using System.Runtime.CompilerServices;
  2. namespace BansheeEngine
  3. {
  4. public static class Scene
  5. {
  6. internal static string ActiveSceneUUID { get; set; }
  7. public static bool IsModified()
  8. {
  9. // TODO - Needs implementing
  10. return true;
  11. }
  12. public static void Clear()
  13. {
  14. Internal_ClearScene();
  15. ActiveSceneUUID = null;
  16. }
  17. public static void Load(string path)
  18. {
  19. Clear();
  20. ActiveSceneUUID = Internal_LoadScene(path);
  21. }
  22. [MethodImpl(MethodImplOptions.InternalCall)]
  23. private static extern string Internal_LoadScene(string path);
  24. [MethodImpl(MethodImplOptions.InternalCall)]
  25. private static extern void Internal_ClearScene();
  26. }
  27. }