DataCollectionWorld.cs 797 B

1234567891011121314151617181920212223242526272829303132
  1. using DBHelper;
  2. using Newtonsoft.Json;
  3. using System.ComponentModel;
  4. using WCS.Core;
  5. using WCS.Entity;
  6. using WCS.Service.Systems;
  7. namespace WCS.Service.Worlds
  8. {
  9. /// <summary>
  10. /// 数据采集世界,
  11. /// 该世界不进行任何的交互处理,仅进行硬件数据采集
  12. /// </summary>
  13. [Description("数据采集世界")]
  14. public class DataCollectionWorld : World
  15. { /// <summary>
  16. /// 构造函数
  17. /// </summary>
  18. public DataCollectionWorld()
  19. {
  20. Interval = 50;
  21. }
  22. protected override void AfterUpdate()
  23. {
  24. //var a = Ltc.GetSystem<DataCollectionSysyem>();
  25. //var v = a.Invoke(true);
  26. // Ltc.GetSystem<DataCollectionSysyem>().Invoke(true);
  27. }
  28. }
  29. }