Scene.cs 773 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. namespace ETModel
  2. {
  3. public static class SceneType
  4. {
  5. public const string Share = "Share";
  6. public const string Game = "Game";
  7. public const string Login = "Login";
  8. public const string Lobby = "Lobby";
  9. public const string Map = "Map";
  10. public const string Launcher = "Launcher";
  11. public const string Robot = "Robot";
  12. public const string RobotClient = "RobotClient";
  13. public const string Realm = "Realm";
  14. }
  15. public sealed class Scene: Entity
  16. {
  17. public string Name { get; set; }
  18. public Scene()
  19. {
  20. this.InstanceId = IdGenerater.GenerateId();
  21. }
  22. public Scene(long id): base(id)
  23. {
  24. this.InstanceId = IdGenerater.GenerateId();
  25. }
  26. public override void Dispose()
  27. {
  28. if (this.IsDisposed)
  29. {
  30. return;
  31. }
  32. base.Dispose();
  33. }
  34. }
  35. }