IEntity.cs 669 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Aitex.Core.RT.Fsm
  6. {
  7. public interface IEntity
  8. {
  9. bool Initialize();
  10. void Terminate();
  11. void PostMsg<T>(T msg, params object[] args) where T : struct;
  12. bool Check(int msg, out string reason, params object[] args);
  13. }
  14. public interface IModuleEntity : IEntity
  15. {
  16. bool IsInit { get; }
  17. bool IsBusy { get; }
  18. bool IsIdle { get; }
  19. bool IsError { get; }
  20. bool IsOnline { get; set; }
  21. int Invoke(string function, params object[] args);
  22. bool CheckAcked(int msg);
  23. }
  24. }