You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
705 B
27 lines
705 B
using System; |
|
|
|
namespace ET |
|
{ |
|
[ObjectSystem] |
|
public class ActorLocationSenderAwakeSystem: AwakeSystem<ActorLocationSender> |
|
{ |
|
public override void Awake(ActorLocationSender self) |
|
{ |
|
self.LastSendOrRecvTime = TimeHelper.ServerNow(); |
|
self.ActorId = 0; |
|
self.Error = 0; |
|
} |
|
} |
|
|
|
[ObjectSystem] |
|
public class ActorLocationSenderDestroySystem: DestroySystem<ActorLocationSender> |
|
{ |
|
public override void Destroy(ActorLocationSender self) |
|
{ |
|
Log.Debug($"actor location remove: {self.Id}"); |
|
self.LastSendOrRecvTime = 0; |
|
self.ActorId = 0; |
|
self.Error = 0; |
|
} |
|
} |
|
} |