AOTGenericReferences.cs 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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<DiamondArrow.Cell>
  17. // System.Action<UnityEngine.Vector2>
  18. // System.Action<byte>
  19. // System.Action<int>
  20. // System.Action<object>
  21. // System.ByReference<ushort>
  22. // System.Collections.Generic.ArraySortHelper<DiamondArrow.Cell>
  23. // System.Collections.Generic.ArraySortHelper<UnityEngine.Vector2>
  24. // System.Collections.Generic.ArraySortHelper<int>
  25. // System.Collections.Generic.ArraySortHelper<object>
  26. // System.Collections.Generic.Comparer<DiamondArrow.Cell>
  27. // System.Collections.Generic.Comparer<UnityEngine.Vector2>
  28. // System.Collections.Generic.Comparer<int>
  29. // System.Collections.Generic.Comparer<object>
  30. // System.Collections.Generic.Dictionary.Enumerator<int,DiamondArrow.ArrowBoard.Exit>
  31. // System.Collections.Generic.Dictionary.KeyCollection.Enumerator<int,DiamondArrow.ArrowBoard.Exit>
  32. // System.Collections.Generic.Dictionary.KeyCollection<int,DiamondArrow.ArrowBoard.Exit>
  33. // System.Collections.Generic.Dictionary.ValueCollection.Enumerator<int,DiamondArrow.ArrowBoard.Exit>
  34. // System.Collections.Generic.Dictionary.ValueCollection<int,DiamondArrow.ArrowBoard.Exit>
  35. // System.Collections.Generic.Dictionary<int,DiamondArrow.ArrowBoard.Exit>
  36. // System.Collections.Generic.EqualityComparer<DiamondArrow.ArrowBoard.Exit>
  37. // System.Collections.Generic.EqualityComparer<int>
  38. // System.Collections.Generic.HashSet.Enumerator<int>
  39. // System.Collections.Generic.HashSet<int>
  40. // System.Collections.Generic.HashSetEqualityComparer<int>
  41. // System.Collections.Generic.ICollection<DiamondArrow.Cell>
  42. // System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<int,DiamondArrow.ArrowBoard.Exit>>
  43. // System.Collections.Generic.ICollection<UnityEngine.Vector2>
  44. // System.Collections.Generic.ICollection<byte>
  45. // System.Collections.Generic.ICollection<int>
  46. // System.Collections.Generic.ICollection<object>
  47. // System.Collections.Generic.IComparer<DiamondArrow.Cell>
  48. // System.Collections.Generic.IComparer<UnityEngine.Vector2>
  49. // System.Collections.Generic.IComparer<int>
  50. // System.Collections.Generic.IComparer<object>
  51. // System.Collections.Generic.IEnumerable<DiamondArrow.Cell>
  52. // System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<int,DiamondArrow.ArrowBoard.Exit>>
  53. // System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<object,object>>
  54. // System.Collections.Generic.IEnumerable<UnityEngine.Vector2>
  55. // System.Collections.Generic.IEnumerable<byte>
  56. // System.Collections.Generic.IEnumerable<int>
  57. // System.Collections.Generic.IEnumerable<object>
  58. // System.Collections.Generic.IEnumerator<DiamondArrow.Cell>
  59. // System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<int,DiamondArrow.ArrowBoard.Exit>>
  60. // System.Collections.Generic.IEnumerator<UnityEngine.Vector2>
  61. // System.Collections.Generic.IEnumerator<byte>
  62. // System.Collections.Generic.IEnumerator<int>
  63. // System.Collections.Generic.IEnumerator<object>
  64. // System.Collections.Generic.IEqualityComparer<int>
  65. // System.Collections.Generic.IList<DiamondArrow.Cell>
  66. // System.Collections.Generic.IList<UnityEngine.Vector2>
  67. // System.Collections.Generic.IList<int>
  68. // System.Collections.Generic.IList<object>
  69. // System.Collections.Generic.KeyValuePair<int,DiamondArrow.ArrowBoard.Exit>
  70. // System.Collections.Generic.KeyValuePair<object,object>
  71. // System.Collections.Generic.List.Enumerator<DiamondArrow.Cell>
  72. // System.Collections.Generic.List.Enumerator<UnityEngine.Vector2>
  73. // System.Collections.Generic.List.Enumerator<int>
  74. // System.Collections.Generic.List.Enumerator<object>
  75. // System.Collections.Generic.List<DiamondArrow.Cell>
  76. // System.Collections.Generic.List<UnityEngine.Vector2>
  77. // System.Collections.Generic.List<int>
  78. // System.Collections.Generic.List<object>
  79. // System.Collections.Generic.ObjectComparer<DiamondArrow.Cell>
  80. // System.Collections.Generic.ObjectComparer<UnityEngine.Vector2>
  81. // System.Collections.Generic.ObjectComparer<int>
  82. // System.Collections.Generic.ObjectComparer<object>
  83. // System.Collections.Generic.ObjectEqualityComparer<DiamondArrow.ArrowBoard.Exit>
  84. // System.Collections.Generic.ObjectEqualityComparer<int>
  85. // System.Collections.ObjectModel.ReadOnlyCollection<DiamondArrow.Cell>
  86. // System.Collections.ObjectModel.ReadOnlyCollection<UnityEngine.Vector2>
  87. // System.Collections.ObjectModel.ReadOnlyCollection<int>
  88. // System.Collections.ObjectModel.ReadOnlyCollection<object>
  89. // System.Comparison<DiamondArrow.Cell>
  90. // System.Comparison<UnityEngine.Vector2>
  91. // System.Comparison<int>
  92. // System.Comparison<object>
  93. // System.Func<int,byte>
  94. // System.Linq.Buffer<byte>
  95. // System.Linq.Enumerable.<RepeatIterator>d__117<byte>
  96. // System.Nullable<UnityEngine.Color>
  97. // System.Predicate<DiamondArrow.Cell>
  98. // System.Predicate<UnityEngine.Vector2>
  99. // System.Predicate<int>
  100. // System.Predicate<object>
  101. // System.ReadOnlySpan<ushort>
  102. // System.Span<ushort>
  103. // }}
  104. public void RefMethods()
  105. {
  106. // int System.Array.IndexOf<int>(int[],int)
  107. // int System.Array.IndexOfImpl<int>(int[],int,int,int)
  108. // System.Void System.Array.Resize<float>(float[]&,int)
  109. // System.Void System.Array.Resize<int>(int[]&,int)
  110. // int System.Linq.Enumerable.Count<int>(System.Collections.Generic.IEnumerable<int>,System.Func<int,bool>)
  111. // System.Collections.Generic.IEnumerable<byte> System.Linq.Enumerable.Repeat<byte>(byte,int)
  112. // System.Collections.Generic.IEnumerable<byte> System.Linq.Enumerable.RepeatIterator<byte>(byte,int)
  113. // byte[] System.Linq.Enumerable.ToArray<byte>(System.Collections.Generic.IEnumerable<byte>)
  114. // object& System.Runtime.CompilerServices.Unsafe.As<object,object>(object&)
  115. // System.Void* System.Runtime.CompilerServices.Unsafe.AsPointer<object>(object&)
  116. // object UnityEngine.Component.GetComponent<object>()
  117. // object UnityEngine.Component.GetComponentInChildren<object>()
  118. // bool UnityEngine.Component.TryGetComponent<object>(object&)
  119. // object UnityEngine.GameObject.AddComponent<object>()
  120. // object UnityEngine.GameObject.GetComponent<object>()
  121. // bool UnityEngine.GameObject.TryGetComponent<object>(object&)
  122. // object UnityEngine.JsonUtility.FromJson<object>(string)
  123. // object UnityEngine.Object.Instantiate<object>(object,UnityEngine.Transform,bool)
  124. // object UnityEngine.Resources.GetBuiltinResource<object>(string)
  125. }
  126. }