123456789101112131415161718192021222324252627 |
- using System;
- namespace ET.Server
- {
- [ObjectSystem]
- public class ActorLocationSenderAwakeSystem: AwakeSystem<ActorLocationSender>
- {
- protected override void Awake(ActorLocationSender self)
- {
- self.LastSendOrRecvTime = TimeHelper.ServerNow();
- self.ActorId = 0;
- self.Error = 0;
- }
- }
- [ObjectSystem]
- public class ActorLocationSenderDestroySystem: DestroySystem<ActorLocationSender>
- {
- protected override void Destroy(ActorLocationSender self)
- {
- Log.Debug($"actor location remove: {self.Id}");
- self.LastSendOrRecvTime = 0;
- self.ActorId = 0;
- self.Error = 0;
- }
- }
- }
|