LocationComponent.cs 686 B

1234567891011121314151617181920212223242526272829
  1. using System.Collections.Generic;
  2. namespace ET.Server
  3. {
  4. [ChildOf(typeof(LocationOneType))]
  5. public class LockInfo: Entity, IAwake<ActorId, CoroutineLock>, IDestroy
  6. {
  7. public ActorId LockActorId;
  8. public CoroutineLock CoroutineLock
  9. {
  10. get;
  11. set;
  12. }
  13. }
  14. [ChildOf(typeof(LocationManagerComoponent))]
  15. public class LocationOneType: Entity, IAwake
  16. {
  17. public readonly Dictionary<long, ActorId> locations = new();
  18. public readonly Dictionary<long, EntityRef<LockInfo>> lockInfos = new();
  19. }
  20. [ComponentOf(typeof(Scene))]
  21. public class LocationManagerComoponent: Entity, IAwake
  22. {
  23. }
  24. }