AOTGenericReferences.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. "System.Core.dll",
  8. "UnityEngine.CoreModule.dll",
  9. "UnityEngine.JSONSerializeModule.dll",
  10. "mscorlib.dll",
  11. };
  12. // }}
  13. // {{ constraint implement type
  14. // }}
  15. // {{ AOT generic types
  16. // System.Action<UnityEngine.Vector2>
  17. // System.Action<UnityEngine.Vector2Int>
  18. // System.Action<byte>
  19. // System.Action<int,int,int,int>
  20. // System.Action<int>
  21. // System.Action<object>
  22. // System.Collections.Generic.ArraySortHelper<UnityEngine.Vector2Int>
  23. // System.Collections.Generic.ArraySortHelper<int>
  24. // System.Collections.Generic.ArraySortHelper<object>
  25. // System.Collections.Generic.Comparer<UnityEngine.Vector2Int>
  26. // System.Collections.Generic.Comparer<double>
  27. // System.Collections.Generic.Comparer<float>
  28. // System.Collections.Generic.Comparer<int>
  29. // System.Collections.Generic.Comparer<object>
  30. // System.Collections.Generic.Dictionary.Enumerator<object,object>
  31. // System.Collections.Generic.Dictionary.KeyCollection.Enumerator<object,object>
  32. // System.Collections.Generic.Dictionary.KeyCollection<object,object>
  33. // System.Collections.Generic.Dictionary.ValueCollection.Enumerator<object,object>
  34. // System.Collections.Generic.Dictionary.ValueCollection<object,object>
  35. // System.Collections.Generic.Dictionary<object,object>
  36. // System.Collections.Generic.EqualityComparer<int>
  37. // System.Collections.Generic.EqualityComparer<object>
  38. // System.Collections.Generic.HashSet.Enumerator<int>
  39. // System.Collections.Generic.HashSet.Enumerator<object>
  40. // System.Collections.Generic.HashSet<int>
  41. // System.Collections.Generic.HashSet<object>
  42. // System.Collections.Generic.HashSetEqualityComparer<int>
  43. // System.Collections.Generic.HashSetEqualityComparer<object>
  44. // System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<object,object>>
  45. // System.Collections.Generic.ICollection<UnityEngine.Vector2>
  46. // System.Collections.Generic.ICollection<UnityEngine.Vector2Int>
  47. // System.Collections.Generic.ICollection<float>
  48. // System.Collections.Generic.ICollection<int>
  49. // System.Collections.Generic.ICollection<object>
  50. // System.Collections.Generic.IComparer<UnityEngine.Vector2Int>
  51. // System.Collections.Generic.IComparer<double>
  52. // System.Collections.Generic.IComparer<float>
  53. // System.Collections.Generic.IComparer<int>
  54. // System.Collections.Generic.IComparer<object>
  55. // System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<object,object>>
  56. // System.Collections.Generic.IEnumerable<UnityEngine.Vector2>
  57. // System.Collections.Generic.IEnumerable<UnityEngine.Vector2Int>
  58. // System.Collections.Generic.IEnumerable<byte>
  59. // System.Collections.Generic.IEnumerable<float>
  60. // System.Collections.Generic.IEnumerable<int>
  61. // System.Collections.Generic.IEnumerable<object>
  62. // System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<object,object>>
  63. // System.Collections.Generic.IEnumerator<UnityEngine.Vector2>
  64. // System.Collections.Generic.IEnumerator<UnityEngine.Vector2Int>
  65. // System.Collections.Generic.IEnumerator<byte>
  66. // System.Collections.Generic.IEnumerator<float>
  67. // System.Collections.Generic.IEnumerator<int>
  68. // System.Collections.Generic.IEnumerator<object>
  69. // System.Collections.Generic.IEqualityComparer<int>
  70. // System.Collections.Generic.IEqualityComparer<object>
  71. // System.Collections.Generic.IList<UnityEngine.Vector2Int>
  72. // System.Collections.Generic.IList<int>
  73. // System.Collections.Generic.IList<object>
  74. // System.Collections.Generic.IReadOnlyCollection<int>
  75. // System.Collections.Generic.IReadOnlyList<int>
  76. // System.Collections.Generic.KeyValuePair<object,object>
  77. // System.Collections.Generic.List.Enumerator<UnityEngine.Vector2Int>
  78. // System.Collections.Generic.List.Enumerator<int>
  79. // System.Collections.Generic.List.Enumerator<object>
  80. // System.Collections.Generic.List<UnityEngine.Vector2Int>
  81. // System.Collections.Generic.List<int>
  82. // System.Collections.Generic.List<object>
  83. // System.Collections.Generic.ObjectComparer<UnityEngine.Vector2Int>
  84. // System.Collections.Generic.ObjectComparer<double>
  85. // System.Collections.Generic.ObjectComparer<float>
  86. // System.Collections.Generic.ObjectComparer<int>
  87. // System.Collections.Generic.ObjectComparer<object>
  88. // System.Collections.Generic.ObjectEqualityComparer<int>
  89. // System.Collections.Generic.ObjectEqualityComparer<object>
  90. // System.Collections.Generic.Queue.Enumerator<object>
  91. // System.Collections.Generic.Queue<object>
  92. // System.Collections.Generic.Stack.Enumerator<object>
  93. // System.Collections.Generic.Stack<object>
  94. // System.Collections.ObjectModel.ReadOnlyCollection<UnityEngine.Vector2Int>
  95. // System.Collections.ObjectModel.ReadOnlyCollection<int>
  96. // System.Collections.ObjectModel.ReadOnlyCollection<object>
  97. // System.Comparison<UnityEngine.Vector2Int>
  98. // System.Comparison<int>
  99. // System.Comparison<object>
  100. // System.Func<System.DateTime>
  101. // System.Func<UnityEngine.Vector2,byte>
  102. // System.Func<byte,byte>
  103. // System.Func<float,byte>
  104. // System.Func<int,byte>
  105. // System.Func<int,float>
  106. // System.Func<int,int>
  107. // System.Func<int,object>
  108. // System.Func<object,UnityEngine.Vector2>
  109. // System.Func<object,byte>
  110. // System.Func<object,double>
  111. // System.Func<object,float>
  112. // System.Func<object,int>
  113. // System.Func<object,object>
  114. // System.Linq.Buffer<UnityEngine.Vector2>
  115. // System.Linq.Buffer<float>
  116. // System.Linq.Buffer<int>
  117. // System.Linq.Buffer<object>
  118. // System.Linq.Enumerable.<DefaultIfEmptyIterator>d__95<int>
  119. // System.Linq.Enumerable.<DistinctIterator>d__68<int>
  120. // System.Linq.Enumerable.<RepeatIterator>d__117<int>
  121. // System.Linq.Enumerable.<TakeIterator>d__25<object>
  122. // System.Linq.Enumerable.Iterator<UnityEngine.Vector2>
  123. // System.Linq.Enumerable.Iterator<float>
  124. // System.Linq.Enumerable.Iterator<int>
  125. // System.Linq.Enumerable.Iterator<object>
  126. // System.Linq.Enumerable.WhereArrayIterator<int>
  127. // System.Linq.Enumerable.WhereArrayIterator<object>
  128. // System.Linq.Enumerable.WhereEnumerableIterator<UnityEngine.Vector2>
  129. // System.Linq.Enumerable.WhereEnumerableIterator<float>
  130. // System.Linq.Enumerable.WhereEnumerableIterator<int>
  131. // System.Linq.Enumerable.WhereEnumerableIterator<object>
  132. // System.Linq.Enumerable.WhereListIterator<int>
  133. // System.Linq.Enumerable.WhereListIterator<object>
  134. // System.Linq.Enumerable.WhereSelectArrayIterator<int,object>
  135. // System.Linq.Enumerable.WhereSelectArrayIterator<object,UnityEngine.Vector2>
  136. // System.Linq.Enumerable.WhereSelectArrayIterator<object,float>
  137. // System.Linq.Enumerable.WhereSelectArrayIterator<object,int>
  138. // System.Linq.Enumerable.WhereSelectArrayIterator<object,object>
  139. // System.Linq.Enumerable.WhereSelectEnumerableIterator<int,object>
  140. // System.Linq.Enumerable.WhereSelectEnumerableIterator<object,UnityEngine.Vector2>
  141. // System.Linq.Enumerable.WhereSelectEnumerableIterator<object,float>
  142. // System.Linq.Enumerable.WhereSelectEnumerableIterator<object,int>
  143. // System.Linq.Enumerable.WhereSelectEnumerableIterator<object,object>
  144. // System.Linq.Enumerable.WhereSelectListIterator<int,object>
  145. // System.Linq.Enumerable.WhereSelectListIterator<object,UnityEngine.Vector2>
  146. // System.Linq.Enumerable.WhereSelectListIterator<object,float>
  147. // System.Linq.Enumerable.WhereSelectListIterator<object,int>
  148. // System.Linq.Enumerable.WhereSelectListIterator<object,object>
  149. // System.Linq.EnumerableSorter<int,float>
  150. // System.Linq.EnumerableSorter<int,int>
  151. // System.Linq.EnumerableSorter<int>
  152. // System.Linq.EnumerableSorter<object,double>
  153. // System.Linq.EnumerableSorter<object,int>
  154. // System.Linq.EnumerableSorter<object>
  155. // System.Linq.IOrderedEnumerable<int>
  156. // System.Linq.OrderedEnumerable.<GetEnumerator>d__1<int>
  157. // System.Linq.OrderedEnumerable.<GetEnumerator>d__1<object>
  158. // System.Linq.OrderedEnumerable<int,float>
  159. // System.Linq.OrderedEnumerable<int,int>
  160. // System.Linq.OrderedEnumerable<int>
  161. // System.Linq.OrderedEnumerable<object,double>
  162. // System.Linq.OrderedEnumerable<object,int>
  163. // System.Linq.OrderedEnumerable<object>
  164. // System.Linq.Set<int>
  165. // System.Nullable<UnityEngine.Color>
  166. // System.Nullable<int>
  167. // System.Predicate<UnityEngine.Vector2Int>
  168. // System.Predicate<int>
  169. // System.Predicate<object>
  170. // }}
  171. public void RefMethods()
  172. {
  173. // int System.Array.FindIndex<object>(object[],System.Predicate<object>)
  174. // int System.Array.FindIndex<object>(object[],int,int,System.Predicate<object>)
  175. // bool System.Linq.Enumerable.All<object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,bool>)
  176. // bool System.Linq.Enumerable.Any<int>(System.Collections.Generic.IEnumerable<int>,System.Func<int,bool>)
  177. // bool System.Linq.Enumerable.Any<object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,bool>)
  178. // int System.Linq.Enumerable.Count<byte>(System.Collections.Generic.IEnumerable<byte>,System.Func<byte,bool>)
  179. // int System.Linq.Enumerable.Count<int>(System.Collections.Generic.IEnumerable<int>)
  180. // int System.Linq.Enumerable.Count<int>(System.Collections.Generic.IEnumerable<int>,System.Func<int,bool>)
  181. // System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.DefaultIfEmpty<int>(System.Collections.Generic.IEnumerable<int>,int)
  182. // System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.DefaultIfEmptyIterator<int>(System.Collections.Generic.IEnumerable<int>,int)
  183. // System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Distinct<int>(System.Collections.Generic.IEnumerable<int>)
  184. // System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.DistinctIterator<int>(System.Collections.Generic.IEnumerable<int>,System.Collections.Generic.IEqualityComparer<int>)
  185. // int System.Linq.Enumerable.First<int>(System.Collections.Generic.IEnumerable<int>)
  186. // object System.Linq.Enumerable.First<object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,bool>)
  187. // float System.Linq.Enumerable.Max<object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,float>)
  188. // int System.Linq.Enumerable.Max<object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,int>)
  189. // float System.Linq.Enumerable.Min<object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,float>)
  190. // int System.Linq.Enumerable.Min<object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,int>)
  191. // System.Linq.IOrderedEnumerable<int> System.Linq.Enumerable.OrderBy<int,float>(System.Collections.Generic.IEnumerable<int>,System.Func<int,float>)
  192. // System.Linq.IOrderedEnumerable<int> System.Linq.Enumerable.OrderBy<int,int>(System.Collections.Generic.IEnumerable<int>,System.Func<int,int>)
  193. // System.Linq.IOrderedEnumerable<object> System.Linq.Enumerable.OrderBy<object,double>(System.Collections.Generic.IEnumerable<object>,System.Func<object,double>)
  194. // System.Linq.IOrderedEnumerable<object> System.Linq.Enumerable.OrderBy<object,int>(System.Collections.Generic.IEnumerable<object>,System.Func<object,int>)
  195. // System.Linq.IOrderedEnumerable<int> System.Linq.Enumerable.OrderByDescending<int,int>(System.Collections.Generic.IEnumerable<int>,System.Func<int,int>)
  196. // System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Repeat<int>(int,int)
  197. // System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.RepeatIterator<int>(int,int)
  198. // System.Collections.Generic.IEnumerable<UnityEngine.Vector2> System.Linq.Enumerable.Select<object,UnityEngine.Vector2>(System.Collections.Generic.IEnumerable<object>,System.Func<object,UnityEngine.Vector2>)
  199. // System.Collections.Generic.IEnumerable<float> System.Linq.Enumerable.Select<object,float>(System.Collections.Generic.IEnumerable<object>,System.Func<object,float>)
  200. // System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Select<object,int>(System.Collections.Generic.IEnumerable<object>,System.Func<object,int>)
  201. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.Select<int,object>(System.Collections.Generic.IEnumerable<int>,System.Func<int,object>)
  202. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.Select<object,object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,object>)
  203. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.Take<object>(System.Collections.Generic.IEnumerable<object>,int)
  204. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.TakeIterator<object>(System.Collections.Generic.IEnumerable<object>,int)
  205. // System.Linq.IOrderedEnumerable<int> System.Linq.Enumerable.ThenBy<int,int>(System.Linq.IOrderedEnumerable<int>,System.Func<int,int>)
  206. // System.Linq.IOrderedEnumerable<int> System.Linq.Enumerable.ThenByDescending<int,int>(System.Linq.IOrderedEnumerable<int>,System.Func<int,int>)
  207. // UnityEngine.Vector2[] System.Linq.Enumerable.ToArray<UnityEngine.Vector2>(System.Collections.Generic.IEnumerable<UnityEngine.Vector2>)
  208. // float[] System.Linq.Enumerable.ToArray<float>(System.Collections.Generic.IEnumerable<float>)
  209. // object[] System.Linq.Enumerable.ToArray<object>(System.Collections.Generic.IEnumerable<object>)
  210. // System.Collections.Generic.List<int> System.Linq.Enumerable.ToList<int>(System.Collections.Generic.IEnumerable<int>)
  211. // System.Collections.Generic.List<object> System.Linq.Enumerable.ToList<object>(System.Collections.Generic.IEnumerable<object>)
  212. // System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Where<int>(System.Collections.Generic.IEnumerable<int>,System.Func<int,bool>)
  213. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.Where<object>(System.Collections.Generic.IEnumerable<object>,System.Func<object,bool>)
  214. // System.Collections.Generic.IEnumerable<UnityEngine.Vector2> System.Linq.Enumerable.Iterator<object>.Select<UnityEngine.Vector2>(System.Func<object,UnityEngine.Vector2>)
  215. // System.Collections.Generic.IEnumerable<float> System.Linq.Enumerable.Iterator<object>.Select<float>(System.Func<object,float>)
  216. // System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Iterator<object>.Select<int>(System.Func<object,int>)
  217. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.Iterator<int>.Select<object>(System.Func<int,object>)
  218. // System.Collections.Generic.IEnumerable<object> System.Linq.Enumerable.Iterator<object>.Select<object>(System.Func<object,object>)
  219. // System.Linq.IOrderedEnumerable<int> System.Linq.IOrderedEnumerable<int>.CreateOrderedEnumerable<int>(System.Func<int,int>,System.Collections.Generic.IComparer<int>,bool)
  220. // object UnityEngine.Component.GetComponent<object>()
  221. // object UnityEngine.Component.GetComponentInChildren<object>()
  222. // object[] UnityEngine.Component.GetComponentsInChildren<object>()
  223. // object[] UnityEngine.Component.GetComponentsInChildren<object>(bool)
  224. // object UnityEngine.GameObject.AddComponent<object>()
  225. // object UnityEngine.GameObject.GetComponent<object>()
  226. // object[] UnityEngine.GameObject.GetComponentsInChildren<object>(bool)
  227. // object UnityEngine.JsonUtility.FromJson<object>(string)
  228. // object UnityEngine.Object.FindAnyObjectByType<object>()
  229. // object[] UnityEngine.Resources.ConvertObjects<object>(UnityEngine.Object[])
  230. // object UnityEngine.Resources.Load<object>(string)
  231. // object[] UnityEngine.Resources.LoadAll<object>(string)
  232. // object UnityEngine.ScriptableObject.CreateInstance<object>()
  233. }
  234. }