Scene.cs 500 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. namespace Model
  2. {
  3. public enum SceneType
  4. {
  5. Share,
  6. Game,
  7. Login,
  8. Lobby,
  9. Map,
  10. Launcher,
  11. Robot,
  12. BehaviorTreeScene,
  13. RobotClient,
  14. Realm
  15. }
  16. public sealed class Scene: Entity
  17. {
  18. public Scene Parent { get; set; }
  19. public string Name { get; set; }
  20. public SceneType SceneType { get; private set; }
  21. public Scene()
  22. {
  23. }
  24. public Scene(long id): base(id)
  25. {
  26. }
  27. public override void Dispose()
  28. {
  29. if (this.Id == 0)
  30. {
  31. return;
  32. }
  33. base.Dispose();
  34. }
  35. }
  36. }