GamePacketRegistration.cs 648 B

123456789101112131415
  1. using UnityEngine;
  2. public static class PacketRegistration
  3. {
  4. [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
  5. public static void RegisterAll()
  6. {
  7. GamePacketFactory.Register((btyes) => new AttackPermanentAction(btyes));
  8. GamePacketFactory.Register((btyes) => new ActivateCardAction(btyes));
  9. GamePacketFactory.Register((btyes) => new ActivatePermanentAction(btyes));
  10. GamePacketFactory.Register((btyes) => new CheatAction(btyes));
  11. GamePacketFactory.Register((btyes) => new PlayCardAction(btyes));
  12. GamePacketFactory.Register((btyes) => new PassAction(btyes));
  13. }
  14. }