UnitGateComponent.cs 422 B

1234567891011121314151617181920
  1. namespace ET.Server
  2. {
  3. public class UnitGateComponentAwakeSystem : AwakeSystem<UnitGateComponent, long>
  4. {
  5. public override void Awake(UnitGateComponent self, long a)
  6. {
  7. self.Awake(a);
  8. }
  9. }
  10. public class UnitGateComponent : Entity, IAwake<long>, ITransfer
  11. {
  12. public long GateSessionActorId { get; private set; }
  13. public void Awake(long gateSessionId)
  14. {
  15. this.GateSessionActorId = gateSessionId;
  16. }
  17. }
  18. }