GamePacketRegistration.cs 578 B

1234567891011121314
  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. }
  13. }