IMRegister.cs 344 B

12345678910111213141516
  1. using System;
  2. namespace Base
  3. {
  4. public interface IMessageDispather
  5. {
  6. ushort GetOpcode(Type type);
  7. void RegisterHandler<T>(ushort opcode, Action<Entity, T> action);
  8. void RegisterRpcHandler<T>(ushort opcode, Action<Entity, T, uint> action);
  9. }
  10. public interface IMRegister
  11. {
  12. void Register(IMessageDispather messageDispather);
  13. }
  14. }