12345678910111213141516171819202122232425262728 |
- namespace ET.Server
- {
- public class PlayerMoneyComponentAwakeSystem: AwakeSystem<PlayerMoneyComponent, WNPlayer>
- {
- protected override void Awake(PlayerMoneyComponent self, WNPlayer player)
- {
- self.Player = player;
- }
- }
- public class PlayerMoneyComponentDestroySystem: DestroySystem<PlayerMoneyComponent>
- {
- protected override void Destroy(PlayerMoneyComponent self)
- {
- Log.Debug($"玩家货币数据保存");
- self?.Save();
- }
- }
- [FriendOf(typeof (PlayerMoneyComponent))]
- public static class PlayerMoneyComponentSystem
- {
- public static async ETTask Save(this PlayerMoneyComponent self)
- {
- await ETTask.CompletedTask;
- }
- }
- }
|