YIUIInvokeEvent.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. using System;
  2. using ET;
  3. using UnityEngine;
  4. using UnityObject = UnityEngine.Object;
  5. namespace YIUIFramework
  6. {
  7. public struct YIUIInvokeEntity_GetAssetInfo
  8. {
  9. public string Location;
  10. public Type AssetType;
  11. }
  12. public struct YIUIInvokeEntity_GetAssetInfoByGUID
  13. {
  14. public string AssetGUID;
  15. public Type AssetType;
  16. }
  17. // 加载任意实例化 to Vo
  18. public struct YIUIInvokeEntity_LoadInstantiateByVo
  19. {
  20. public YIUIBindVo BindVo;
  21. public EntityRef<Entity> ParentEntity;
  22. public Transform ParentTransform;
  23. }
  24. //实例化一个GameObject
  25. public struct YIUIInvokeEntity_InstantiateGameObject
  26. {
  27. public string PkgName;
  28. public string ResName;
  29. }
  30. //回收YIUI实例化资源
  31. public struct YIUIInvokeEntity_ReleaseInstantiate
  32. {
  33. public GameObject obj;
  34. }
  35. // 回收YIUI资源
  36. public struct YIUIInvokeEntity_Release
  37. {
  38. public UnityObject obj;
  39. }
  40. // 加载任意
  41. public struct YIUIInvokeEntity_Load
  42. {
  43. public Type LoadType;
  44. public string PkgName;
  45. public string ResName;
  46. }
  47. // 加载图片
  48. public struct YIUIInvokeEntity_LoadSprite
  49. {
  50. public string ResName;
  51. }
  52. // 回收YIUI 精灵/图片 资源
  53. public struct YIUIInvokeEntity_ReleaseSprite
  54. {
  55. public Sprite obj;
  56. }
  57. public struct YIUIInvokeEntity_LoadTexture2D
  58. {
  59. public string ResName;
  60. }
  61. //屏蔽所有YIUI操作
  62. public struct YIUIInvokeEntity_BanLayerOptionForever
  63. {
  64. }
  65. //恢复指定屏蔽的操作
  66. public struct YIUIInvokeEntity_RecoverLayerOptionForever
  67. {
  68. public long ForeverCode;
  69. }
  70. //添加倒计时
  71. public struct YIUIInvokeEntity_CountDownAdd
  72. {
  73. public CountDownTimerCallback TimerCallback;
  74. public double TotalTime;
  75. public double Interval;
  76. public bool StartCallback;
  77. public bool Forever;
  78. }
  79. //移除倒计时
  80. public struct YIUIInvokeEntity_CountDownRemove
  81. {
  82. public CountDownTimerCallback TimerCallback;
  83. }
  84. //等一帧 (1毫秒)
  85. public struct YIUIInvokeEntity_WaitFrameAsync
  86. {
  87. }
  88. //等指定毫秒
  89. public struct YIUIInvokeEntity_WaitAsync
  90. {
  91. public long Time;
  92. public ETCancellationToken CancellationToken;
  93. }
  94. //等指定秒
  95. public struct YIUIInvokeEntity_WaitSecondAsync
  96. {
  97. public float Time;
  98. public ETCancellationToken CancellationToken;
  99. }
  100. //协程锁
  101. public struct YIUIInvokeEntity_CoroutineLock
  102. {
  103. public long LockType;
  104. public long Lock;
  105. }
  106. }