AOTGenericReferences.cs 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. using System.Collections.Generic;
  2. public class AOTGenericReferences : UnityEngine.MonoBehaviour
  3. {
  4. // {{ AOT assemblies
  5. public static readonly IReadOnlyList<string> PatchedAOTAssemblyList = new List<string>
  6. {
  7. "DOTween.dll",
  8. "System.Core.dll",
  9. "UnityEngine.CoreModule.dll",
  10. "mscorlib.dll",
  11. };
  12. // }}
  13. // {{ constraint implement type
  14. // }}
  15. // {{ AOT generic types
  16. // DG.Tweening.Core.DOGetter<float>
  17. // DG.Tweening.Core.DOSetter<float>
  18. // System.Action<DevilLink2.Core.GridPosition>
  19. // System.Action<System.Guid>
  20. // System.Action<UnityEngine.Vector2>
  21. // System.Action<byte>
  22. // System.Action<double>
  23. // System.Action<int,int>
  24. // System.Action<int>
  25. // System.Action<object,object>
  26. // System.Action<object>
  27. // System.ByReference<ushort>
  28. // System.Collections.Generic.ArraySortHelper<DevilLink2.Core.GridPosition>
  29. // System.Collections.Generic.ArraySortHelper<System.Guid>
  30. // System.Collections.Generic.ArraySortHelper<UnityEngine.Vector2>
  31. // System.Collections.Generic.ArraySortHelper<int>
  32. // System.Collections.Generic.ArraySortHelper<object>
  33. // System.Collections.Generic.Comparer<DevilLink2.Core.GridPosition>
  34. // System.Collections.Generic.Comparer<System.DateTimeOffset>
  35. // System.Collections.Generic.Comparer<System.Guid>
  36. // System.Collections.Generic.Comparer<UnityEngine.Vector2>
  37. // System.Collections.Generic.Comparer<int>
  38. // System.Collections.Generic.Comparer<object>
  39. // System.Collections.Generic.Dictionary.Enumerator<int,int>
  40. // System.Collections.Generic.Dictionary.Enumerator<int,object>
  41. // System.Collections.Generic.Dictionary.Enumerator<object,object>
  42. // System.Collections.Generic.Dictionary.KeyCollection.Enumerator<int,int>
  43. // System.Collections.Generic.Dictionary.KeyCollection.Enumerator<int,object>
  44. // System.Collections.Generic.Dictionary.KeyCollection.Enumerator<object,object>
  45. // System.Collections.Generic.Dictionary.KeyCollection<int,int>
  46. // System.Collections.Generic.Dictionary.KeyCollection<int,object>
  47. // System.Collections.Generic.Dictionary.KeyCollection<object,object>
  48. // System.Collections.Generic.Dictionary.ValueCollection.Enumerator<int,int>
  49. // System.Collections.Generic.Dictionary.ValueCollection.Enumerator<int,object>
  50. // System.Collections.Generic.Dictionary.ValueCollection.Enumerator<object,object>
  51. // System.Collections.Generic.Dictionary.ValueCollection<int,int>
  52. // System.Collections.Generic.Dictionary.ValueCollection<int,object>
  53. // System.Collections.Generic.Dictionary.ValueCollection<object,object>
  54. // System.Collections.Generic.Dictionary<int,int>
  55. // System.Collections.Generic.Dictionary<int,object>
  56. // System.Collections.Generic.Dictionary<object,object>
  57. // System.Collections.Generic.EqualityComparer<System.Guid>
  58. // System.Collections.Generic.EqualityComparer<int>
  59. // System.Collections.Generic.EqualityComparer<object>
  60. // System.Collections.Generic.HashSet.Enumerator<System.Guid>
  61. // System.Collections.Generic.HashSet.Enumerator<int>
  62. // System.Collections.Generic.HashSet.Enumerator<object>
  63. // System.Collections.Generic.HashSet<System.Guid>
  64. // System.Collections.Generic.HashSet<int>
  65. // System.Collections.Generic.HashSet<object>
  66. // System.Collections.Generic.HashSetEqualityComparer<System.Guid>
  67. // System.Collections.Generic.HashSetEqualityComparer<int>
  68. // System.Collections.Generic.HashSetEqualityComparer<object>
  69. // System.Collections.Generic.ICollection<DevilLink2.Core.GridPosition>
  70. // System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<int,int>>
  71. // System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<int,object>>
  72. // System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<object,object>>
  73. // System.Collections.Generic.ICollection<System.Guid>
  74. // System.Collections.Generic.ICollection<UnityEngine.Vector2>
  75. // System.Collections.Generic.ICollection<int>
  76. // System.Collections.Generic.ICollection<object>
  77. // System.Collections.Generic.IComparer<DevilLink2.Core.GridPosition>
  78. // System.Collections.Generic.IComparer<System.DateTimeOffset>
  79. // System.Collections.Generic.IComparer<System.Guid>
  80. // System.Collections.Generic.IComparer<UnityEngine.Vector2>
  81. // System.Collections.Generic.IComparer<int>
  82. // System.Collections.Generic.IComparer<object>
  83. // System.Collections.Generic.IEnumerable<DevilLink2.Core.GridPosition>
  84. // System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<int,int>>
  85. // System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<int,object>>
  86. // System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<object,object>>
  87. // System.Collections.Generic.IEnumerable<System.Decimal>
  88. // System.Collections.Generic.IEnumerable<System.Guid>
  89. // System.Collections.Generic.IEnumerable<UnityEngine.Vector2>
  90. // System.Collections.Generic.IEnumerable<int>
  91. // System.Collections.Generic.IEnumerable<object>
  92. // System.Collections.Generic.IEnumerator<DevilLink2.Core.GridPosition>
  93. // System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<int,int>>
  94. // System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<int,object>>
  95. // System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<object,object>>
  96. // System.Collections.Generic.IEnumerator<System.Decimal>
  97. // System.Collections.Generic.IEnumerator<System.Guid>
  98. // System.Collections.Generic.IEnumerator<UnityEngine.Vector2>
  99. // System.Collections.Generic.IEnumerator<int>
  100. // System.Collections.Generic.IEnumerator<object>
  101. // System.Collections.Generic.IEqualityComparer<System.Guid>
  102. // System.Collections.Generic.IEqualityComparer<int>
  103. // System.Collections.Generic.IEqualityComparer<object>
  104. // System.Collections.Generic.IList<DevilLink2.Core.GridPosition>
  105. // System.Collections.Generic.IList<System.Guid>
  106. // System.Collections.Generic.IList<UnityEngine.Vector2>
  107. // System.Collections.Generic.IList<int>
  108. // System.Collections.Generic.IList<object>
  109. // System.Collections.Generic.IReadOnlyCollection<DevilLink2.Core.GridPosition>
  110. // System.Collections.Generic.IReadOnlyCollection<object>
  111. // System.Collections.Generic.IReadOnlyList<DevilLink2.Core.GridPosition>
  112. // System.Collections.Generic.IReadOnlyList<object>
  113. // System.Collections.Generic.KeyValuePair<int,int>
  114. // System.Collections.Generic.KeyValuePair<int,object>
  115. // System.Collections.Generic.KeyValuePair<object,object>
  116. // System.Collections.Generic.List.Enumerator<DevilLink2.Core.GridPosition>
  117. // System.Collections.Generic.List.Enumerator<System.Guid>
  118. // System.Collections.Generic.List.Enumerator<UnityEngine.Vector2>
  119. // System.Collections.Generic.List.Enumerator<int>
  120. // System.Collections.Generic.List.Enumerator<object>
  121. // System.Collections.Generic.List<DevilLink2.Core.GridPosition>
  122. // System.Collections.Generic.List<System.Guid>
  123. // System.Collections.Generic.List<UnityEngine.Vector2>
  124. // System.Collections.Generic.List<int>
  125. // System.Collections.Generic.List<object>
  126. // System.Collections.Generic.ObjectComparer<DevilLink2.Core.GridPosition>
  127. // System.Collections.Generic.ObjectComparer<System.DateTimeOffset>
  128. // System.Collections.Generic.ObjectComparer<System.Guid>
  129. // System.Collections.Generic.ObjectComparer<UnityEngine.Vector2>
  130. // System.Collections.Generic.ObjectComparer<int>
  131. // System.Collections.Generic.ObjectComparer<object>
  132. // System.Collections.Generic.ObjectEqualityComparer<System.Guid>
  133. // System.Collections.Generic.ObjectEqualityComparer<int>
  134. // System.Collections.Generic.ObjectEqualityComparer<object>
  135. // System.Collections.Generic.Queue.Enumerator<object>
  136. // System.Collections.Generic.Queue<object>
  137. // System.Collections.ObjectModel.ReadOnlyCollection<DevilLink2.Core.GridPosition>
  138. // System.Collections.ObjectModel.ReadOnlyCollection<System.Guid>
  139. // System.Collections.ObjectModel.ReadOnlyCollection<UnityEngine.Vector2>
  140. // System.Collections.ObjectModel.ReadOnlyCollection<int>
  141. // System.Collections.ObjectModel.ReadOnlyCollection<object>
  142. // System.Comparison<DevilLink2.Core.GridPosition>
  143. // System.Comparison<System.Guid>
  144. // System.Comparison<UnityEngine.Vector2>
  145. // System.Comparison<int>
  146. // System.Comparison<object>
  147. // System.Converter<object,object>
  148. // System.Func<System.Decimal,byte>
  149. // System.Func<System.Guid,System.Guid>
  150. // System.Func<System.Guid,byte>
  151. // System.Func<byte>
  152. // System.Func<double>
  153. // System.Func<int,byte>
  154. // System.Func<object,System.DateTimeOffset>
  155. // System.Func<object,System.Decimal>
  156. // System.Func<object,System.Guid>
  157. // System.Func<object,byte>
  158. // System.Func<object,object,object>
  159. // System.Func<object,object>
  160. // System.Func<object>
  161. // System.IEquatable<DevilLink2.Core.GridPosition>
  162. // System.Linq.Buffer<System.Guid>
  163. // System.Linq.Buffer<object>
  164. // System.Linq.Enumerable.<CastIterator>d__99<object>
  165. // System.Linq.Enumerable.<ConcatIterator>d__59<System.Guid>
  166. // System.Linq.Enumerable.<ConcatIterator>d__59<object>
  167. // System.Linq.Enumerable.<DistinctIterator>d__68<System.Guid>
  168. // System.Linq.Enumerable.<ReverseIterator>d__79<object>
  169. // System.Linq.Enumerable.<TakeIterator>d__25<object>
  170. // System.Linq.Enumerable.Iterator<System.Decimal>
  171. // System.Linq.Enumerable.Iterator<System.Guid>
  172. // System.Linq.Enumerable.Iterator<object>
  173. // System.Linq.Enumerable.WhereArrayIterator<System.Guid>
  174. // System.Linq.Enumerable.WhereArrayIterator<object>
  175. // System.Linq.Enumerable.WhereEnumerableIterator<System.Decimal>
  176. // System.Linq.Enumerable.WhereEnumerableIterator<System.Guid>
  177. // System.Linq.Enumerable.WhereEnumerableIterator<object>
  178. // System.Linq.Enumerable.WhereListIterator<System.Guid>
  179. // System.Linq.Enumerable.WhereListIterator<object>
  180. // System.Linq.Enumerable.WhereSelectArrayIterator<object,System.Decimal>
  181. // System.Linq.Enumerable.WhereSelectArrayIterator<object,System.Guid>
  182. // System.Linq.Enumerable.WhereSelectArrayIterator<object,object>
  183. // System.Linq.Enumerable.WhereSelectEnumerableIterator<object,System.Decimal>
  184. // System.Linq.Enumerable.WhereSelectEnumerableIterator<object,System.Guid>
  185. // System.Linq.Enumerable.WhereSelectEnumerableIterator<object,object>
  186. // System.Linq.Enumerable.WhereSelectListIterator<object,System.Decimal>
  187. // System.Linq.Enumerable.WhereSelectListIterator<object,System.Guid>
  188. // System.Linq.Enumerable.WhereSelectListIterator<object,object>
  189. // System.Linq.EnumerableSorter<System.Guid,System.Guid>
  190. // System.Linq.EnumerableSorter<System.Guid>
  191. // System.Linq.EnumerableSorter<object,System.DateTimeOffset>
  192. // System.Linq.EnumerableSorter<object>
  193. // System.Linq.OrderedEnumerable.<GetEnumerator>d__1<System.Guid>
  194. // System.Linq.OrderedEnumerable.<GetEnumerator>d__1<object>
  195. // System.Linq.OrderedEnumerable<System.Guid,System.Guid>
  196. // System.Linq.OrderedEnumerable<System.Guid>
  197. // System.Linq.OrderedEnumerable<object,System.DateTimeOffset>
  198. // System.Linq.OrderedEnumerable<object>
  199. // System.Linq.Set<System.Guid>
  200. // System.Nullable<System.DateTime>
  201. // System.Nullable<System.Guid>
  202. // System.Nullable<byte>
  203. // System.Nullable<int>
  204. // System.Predicate<DevilLink2.Core.GridPosition>
  205. // System.Predicate<System.Guid>
  206. // System.Predicate<UnityEngine.Vector2>
  207. // System.Predicate<int>
  208. // System.Predicate<object>
  209. // System.ReadOnlySpan<ushort>
  210. // System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter<object>
  211. // System.Runtime.CompilerServices.ConfiguredTaskAwaitable<object>
  212. // System.Runtime.CompilerServices.TaskAwaiter<object>
  213. // System.Threading.Tasks.ContinuationTaskFromResultTask<object>
  214. // System.Threading.Tasks.Task<object>
  215. // System.Threading.Tasks.TaskFactory.<>c__DisplayClass35_0<object>
  216. // System.Threading.Tasks.TaskFactory<object>
  217. // UnityEngine.Events.InvokableCall<float>
  218. // UnityEngine.Events.InvokableCall<object>
  219. // UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene,int>
  220. // UnityEngine.Events.UnityAction<UnityEngine.SceneManagement.Scene>
  221. // UnityEngine.Events.UnityAction<float>
  222. // UnityEngine.Events.UnityAction<object>
  223. // UnityEngine.Events.UnityEvent<float>
  224. // UnityEngine.Events.UnityEvent<object>
  225. // }}
  226. public void RefMethods()
  227. {
  228. // object DG.Tweening.TweenSettingsExtensions.OnComplete<object>(object,DG.Tweening.TweenCallback)
  229. // object DG.Tweening.TweenSettingsExtensions.SetEase<object>(object,DG.Tweening.Ease)
  230. // object DG.Tweening.TweenSettingsExtensions.SetRecyclable<object>(object,bool)
  231. // object DG.Tweening.TweenSettingsExtensions.SetUpdate<object>(object,bool)
  232. // System.Collections.ObjectModel.ReadOnlyCollection<System.Guid> System.Array.AsReadOnly<System.Guid>(System.Guid[])
  233. // System.Collections.ObjectModel.ReadOnlyCollection<object> System.Array.AsReadOnly<object>(object[])
  234. // DevilLink2.Core.GridPosition[] System.Array.Empty<DevilLink2.Core.GridPosition>()
  235. // System.Void System.Array.Sort<object>(object[],System.Comparison<object>)
  236. // System.Collections.Generic.List<object> System.Collections.Generic.List<object>.ConvertAll<object>(System.Converter<object,object>)
  237. // bool System.Enum.TryParse<int>(string,bool,int&)
  238. // bool System.Enum.TryParse<int>(string,int&)
  239. // bool System.Linq.Enumerable.Any<int>(System.Collections.Generic.IEnumerable<int>,System.Func<int,bool>)
  240. // bool System.Linq.Enumerable.Any<object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,bool>)
  241. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.Cast<object>(System.Collections.IEnumerable)
  242. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.CastIterator<object>(System.Collections.IEnumerable)
  243. // System.Collections.Generic.IEnumerable<System.Guid> System.Linq.Enumerable.Concat<System.Guid>(System.Collections.Generic.IEnumerable<System.Guid>,System.Collections.Generic.IEnumerable<System.Guid>)
  244. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.Concat<object>(System.Collections.Generic.IEnumerable<object>,System.Collections.Generic.IEnumerable<object>)
  245. // System.Collections.Generic.IEnumerable<System.Guid> System.Linq.Enumerable.ConcatIterator<System.Guid>(System.Collections.Generic.IEnumerable<System.Guid>,System.Collections.Generic.IEnumerable<System.Guid>)
  246. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.ConcatIterator<object>(System.Collections.Generic.IEnumerable<object>,System.Collections.Generic.IEnumerable<object>)
  247. // int System.Linq.Enumerable.Count<System.Guid>(System.Collections.Generic.IEnumerable<System.Guid>)
  248. // System.Collections.Generic.IEnumerable<System.Guid> System.Linq.Enumerable.Distinct<System.Guid>(System.Collections.Generic.IEnumerable<System.Guid>)
  249. // System.Collections.Generic.IEnumerable<System.Guid> System.Linq.Enumerable.DistinctIterator<System.Guid>(System.Collections.Generic.IEnumerable<System.Guid>,System.Collections.Generic.IEqualityComparer<System.Guid>)
  250. // object System.Linq.Enumerable.First<object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,bool>)
  251. // object System.Linq.Enumerable.FirstOrDefault<object>(System.Collections.Generic.IEnumerable<object>)
  252. // object System.Linq.Enumerable.FirstOrDefault<object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,bool>)
  253. // object System.Linq.Enumerable.Last<object>(System.Collections.Generic.IEnumerable<object>)
  254. // System.Linq.IOrderedEnumerable<System.Guid> System.Linq.Enumerable.OrderBy<System.Guid,System.Guid>(System.Collections.Generic.IEnumerable<System.Guid>,System.Func<System.Guid,System.Guid>)
  255. // System.Linq.IOrderedEnumerable<object> System.Linq.Enumerable.OrderByDescending<object,System.DateTimeOffset>(System.Collections.Generic.IEnumerable<object>,System.Func<object,System.DateTimeOffset>)
  256. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.Reverse<object>(System.Collections.Generic.IEnumerable<object>)
  257. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.ReverseIterator<object>(System.Collections.Generic.IEnumerable<object>)
  258. // System.Collections.Generic.IEnumerable<System.Decimal> System.Linq.Enumerable.Select<object,System.Decimal>(System.Collections.Generic.IEnumerable<object>,System.Func<object,System.Decimal>)
  259. // System.Collections.Generic.IEnumerable<System.Guid> System.Linq.Enumerable.Select<object,System.Guid>(System.Collections.Generic.IEnumerable<object>,System.Func<object,System.Guid>)
  260. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.Select<object,object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,object>)
  261. // System.Decimal System.Linq.Enumerable.Sum<object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,System.Decimal>)
  262. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.Take<object>(System.Collections.Generic.IEnumerable<object>,int)
  263. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.TakeIterator<object>(System.Collections.Generic.IEnumerable<object>,int)
  264. // System.Guid[] System.Linq.Enumerable.ToArray<System.Guid>(System.Collections.Generic.IEnumerable<System.Guid>)
  265. // object[] System.Linq.Enumerable.ToArray<object>(System.Collections.Generic.IEnumerable<object>)
  266. // System.Collections.Generic.List<System.Guid> System.Linq.Enumerable.ToList<System.Guid>(System.Collections.Generic.IEnumerable<System.Guid>)
  267. // System.Collections.Generic.List<object> System.Linq.Enumerable.ToList<object>(System.Collections.Generic.IEnumerable<object>)
  268. // System.Collections.Generic.IEnumerable<System.Guid> System.Linq.Enumerable.Where<System.Guid>(System.Collections.Generic.IEnumerable<System.Guid>,System.Func<System.Guid,bool>)
  269. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.Where<object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,bool>)
  270. // System.Collections.Generic.IEnumerable<System.Decimal> System.Linq.Enumerable.Iterator<object>.Select<System.Decimal>(System.Func<object,System.Decimal>)
  271. // System.Collections.Generic.IEnumerable<System.Guid> System.Linq.Enumerable.Iterator<object>.Select<System.Guid>(System.Func<object,System.Guid>)
  272. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.Iterator<object>.Select<object>(System.Func<object,object>)
  273. // object& System.Runtime.CompilerServices.Unsafe.As<object,object>(object&)
  274. // System.Void* System.Runtime.CompilerServices.Unsafe.AsPointer<object>(object&)
  275. // System.Threading.Tasks.Task<object> System.Threading.Tasks.Task.Run<object>(System.Func<object>)
  276. // object UnityEngine.Component.GetComponent<object>()
  277. // object UnityEngine.Component.GetComponentInChildren<object>()
  278. // object UnityEngine.Component.GetComponentInChildren<object>(bool)
  279. // object UnityEngine.Component.GetComponentInParent<object>()
  280. // object UnityEngine.Component.GetComponentInParent<object>(bool)
  281. // object[] UnityEngine.Component.GetComponents<object>()
  282. // object[] UnityEngine.Component.GetComponentsInChildren<object>()
  283. // object[] UnityEngine.Component.GetComponentsInChildren<object>(bool)
  284. // object[] UnityEngine.Component.GetComponentsInParent<object>()
  285. // object[] UnityEngine.Component.GetComponentsInParent<object>(bool)
  286. // object UnityEngine.GameObject.AddComponent<object>()
  287. // object UnityEngine.GameObject.GetComponent<object>()
  288. // object[] UnityEngine.GameObject.GetComponents<object>()
  289. // object[] UnityEngine.GameObject.GetComponentsInChildren<object>(bool)
  290. // object[] UnityEngine.GameObject.GetComponentsInParent<object>(bool)
  291. // object UnityEngine.Object.Instantiate<object>(object,UnityEngine.Transform,bool)
  292. // object[] UnityEngine.Resources.ConvertObjects<object>(UnityEngine.Object[])
  293. // object UnityEngine.Resources.GetBuiltinResource<object>(string)
  294. // object UnityEngine.Resources.Load<object>(string)
  295. // object[] UnityEngine.Resources.LoadAll<object>(string)
  296. }
  297. }