CMsgLoginEvent.cs 353 B

1234567891011121314151617181920
  1. using System.Threading.Tasks;
  2. using Model;
  3. namespace Controller
  4. {
  5. public class CMsgLogin
  6. {
  7. public byte[] Account { get; set; }
  8. public byte[] PassMd5 { get; set; }
  9. }
  10. [Message(ServerType.Gate)]
  11. internal class CMsgLoginEvent : MEvent<CMsgLogin, Task<bool>>
  12. {
  13. public override async Task<bool> Run(CMsgLogin msg)
  14. {
  15. return true;
  16. }
  17. }
  18. }