PlayerDataComponentSystem.cs 670 B

12345678910111213141516171819202122
  1. namespace ET.Server
  2. {
  3. [FriendOf(typeof (PlayerDataComponent))]
  4. public static class PlayerDataComponentSystem
  5. {
  6. public class PlayerDataComponentaAwakeSystem: AwakeSystem<PlayerDataComponent, PlayerInfo>
  7. {
  8. protected override void Awake(PlayerDataComponent self, PlayerInfo info)
  9. {
  10. Log.Info($"创建玩家基础数据组件...");
  11. self.Data = info;
  12. }
  13. }
  14. public class PlayerDataComponentDestroySystem: DestroySystem<PlayerDataComponent>
  15. {
  16. protected override void Destroy(PlayerDataComponent self)
  17. {
  18. }
  19. }
  20. }
  21. }