Room.cs 755 B

12345678910111213141516171819202122232425262728293031323334
  1. using System.Collections.Generic;
  2. using TrueSync;
  3. namespace ET
  4. {
  5. [ChildOf]
  6. [ComponentOf]
  7. public class Room: Entity, IScene, IAwake, IUpdate
  8. {
  9. public SceneType SceneType { get; set; } = SceneType.Room;
  10. public string Name { get; set; }
  11. private EntityRef<LSWorld> lsWorld;
  12. public LSWorld LSWorld
  13. {
  14. get
  15. {
  16. return this.lsWorld;
  17. }
  18. set
  19. {
  20. this.AddChild(value);
  21. this.lsWorld = value;
  22. }
  23. }
  24. public long StartTime { get; set; }
  25. public FrameBuffer FrameBuffer { get; } = new();
  26. public FixedTimeCounter FixedTimeCounter { get; set; }
  27. }
  28. }