@@ -146,17 +146,17 @@ private static void Init_Mono()
146146 }
147147
148148#if CPP
149+ public static Il2CppSystem . Collections . Generic . Dictionary < string , string > IL2CPP_Dict ;
150+ public static Il2CppSystem . Collections . Generic . HashSet < string > IL2CPP_HashSet ;
149151 public static Il2CppSystem . Collections . Generic . List < string > IL2CPP_ListString ;
152+ public static Il2CppSystem . Collections . Hashtable IL2CPP_HashTable ;
150153 public static List < Il2CppSystem . Object > IL2CPP_listOfBoxedObjects ;
151154 public static Il2CppStructArray < int > IL2CPP_structArray ;
152155 public static Il2CppReferenceArray < Il2CppSystem . Object > IL2CPP_ReferenceArray ;
153156 public static Il2CppSystem . Collections . IDictionary IL2CPP_IDict ;
154157 public static Il2CppSystem . Collections . IList IL2CPP_IList ;
155158 public static Dictionary < Il2CppSystem . Object , Il2CppSystem . Object > IL2CPP_BoxedDict ;
156-
157- public static Il2CppSystem . Collections . Generic . HashSet < string > IL2CPP_HashSet ;
158- public static Il2CppSystem . Collections . Generic . Dictionary < string , string > IL2CPP_Dict ;
159- public static Il2CppSystem . Collections . Hashtable IL2CPP_HashTable ;
159+
160160 public static Il2CppSystem . Object IL2CPP_BoxedInt ;
161161 public static Il2CppSystem . Int32 IL2CPP_Int ;
162162 public static Il2CppSystem . Decimal IL2CPP_Decimal ;
@@ -175,40 +175,41 @@ private static void Init_IL2CPP()
175175 IL2CPP_Dict . Add ( "key2" , "value2" ) ;
176176 IL2CPP_Dict . Add ( "key3" , "value3" ) ;
177177
178+ ExplorerCore . Log ( $ "IL2CPP 6: Il2Cpp HashSet of strings") ;
179+ IL2CPP_HashSet = new Il2CppSystem . Collections . Generic . HashSet < string > ( ) ;
180+ IL2CPP_HashSet . Add ( "one" ) ;
181+ IL2CPP_HashSet . Add ( "two" ) ;
182+
178183 ExplorerCore . Log ( $ "IL2CPP 2: Il2Cpp Hashtable") ;
179184 IL2CPP_HashTable = new Il2CppSystem . Collections . Hashtable ( ) ;
180185 IL2CPP_HashTable . Add ( "key1" , "value1" ) ;
181186 IL2CPP_HashTable . Add ( "key2" , "value2" ) ;
182187 IL2CPP_HashTable . Add ( "key3" , "value3" ) ;
183-
188+
184189 ExplorerCore . Log ( $ "IL2CPP 3: Il2Cpp IDictionary") ;
185190 var dict2 = new Il2CppSystem . Collections . Generic . Dictionary < string , string > ( ) ;
186191 dict2 . Add ( "key1" , "value1" ) ;
187192 IL2CPP_IDict = dict2 . TryCast < Il2CppSystem . Collections . IDictionary > ( ) ;
188-
193+
189194 ExplorerCore . Log ( $ "IL2CPP 4: Il2Cpp List of Il2Cpp Object") ;
190195 var list = new Il2CppSystem . Collections . Generic . List < Il2CppSystem . Object > ( 5 ) ;
191196 list . Add ( "one" ) ;
192197 list . Add ( "two" ) ;
193198 IL2CPP_IList = list . TryCast < Il2CppSystem . Collections . IList > ( ) ;
194-
199+
195200 ExplorerCore . Log ( $ "IL2CPP 5: Il2Cpp List of strings") ;
196201 IL2CPP_ListString = new Il2CppSystem . Collections . Generic . List < string > ( ) ;
197202 IL2CPP_ListString . Add ( "hello," ) ;
198203 IL2CPP_ListString . Add ( "world!" ) ;
199-
200- ExplorerCore . Log ( $ "IL2CPP 6: Il2Cpp HashSet of strings") ;
201- IL2CPP_HashSet = new Il2CppSystem . Collections . Generic . HashSet < string > ( ) ;
202- IL2CPP_HashSet . Add ( "one" ) ;
203- IL2CPP_HashSet . Add ( "two" ) ;
204-
204+
205+
205206 ExplorerCore . Log ( $ "IL2CPP 7: Dictionary of Il2Cpp String and Il2Cpp Object") ;
206207 IL2CPP_BoxedDict = new ( ) ;
207208 IL2CPP_BoxedDict [ ( Il2CppSystem . String ) "one" ] = new Il2CppSystem . Int32 { m_value = 1 } . BoxIl2CppObject ( ) ;
208209 IL2CPP_BoxedDict [ ( Il2CppSystem . String ) "two" ] = new Il2CppSystem . Int32 { m_value = 2 } . BoxIl2CppObject ( ) ;
209210 IL2CPP_BoxedDict [ ( Il2CppSystem . String ) "three" ] = new Il2CppSystem . Int32 { m_value = 3 } . BoxIl2CppObject ( ) ;
210211 IL2CPP_BoxedDict [ ( Il2CppSystem . String ) "four" ] = new Il2CppSystem . Int32 { m_value = 4 } . BoxIl2CppObject ( ) ;
211-
212+
212213 ExplorerCore . Log ( $ "IL2CPP 8: List of boxed Il2Cpp Objects") ;
213214 IL2CPP_listOfBoxedObjects = new List < Il2CppSystem . Object > ( ) ;
214215 IL2CPP_listOfBoxedObjects . Add ( ( Il2CppSystem . String ) "boxedString" ) ;
@@ -223,30 +224,30 @@ private static void Init_IL2CPP()
223224 var boxedEnum = Il2CppSystem . Enum . Parse ( cppType , "Color" ) ;
224225 IL2CPP_listOfBoxedObjects . Add ( boxedEnum ) ;
225226 }
226-
227+
227228 var structBox = Vector3 . one . BoxIl2CppObject ( ) ;
228229 IL2CPP_listOfBoxedObjects . Add ( structBox ) ;
229-
230+
230231 }
231232 catch ( Exception ex )
232233 {
233234 ExplorerCore . LogWarning ( $ "Boxed enum test fail: { ex } ") ;
234235 }
235-
236+
236237 ExplorerCore . Log ( $ "IL2CPP 9: Il2Cpp struct array of ints") ;
237238 IL2CPP_structArray = new UnhollowerBaseLib . Il2CppStructArray < int > ( 5 ) ;
238239 IL2CPP_structArray [ 0 ] = 0 ;
239240 IL2CPP_structArray [ 1 ] = 1 ;
240241 IL2CPP_structArray [ 2 ] = 2 ;
241242 IL2CPP_structArray [ 3 ] = 3 ;
242243 IL2CPP_structArray [ 4 ] = 4 ;
243-
244+
244245 ExplorerCore . Log ( $ "IL2CPP 10: Il2Cpp reference array of boxed objects") ;
245246 IL2CPP_ReferenceArray = new UnhollowerBaseLib . Il2CppReferenceArray < Il2CppSystem . Object > ( 3 ) ;
246247 IL2CPP_ReferenceArray [ 0 ] = new Il2CppSystem . Int32 { m_value = 5 } . BoxIl2CppObject ( ) ;
247248 IL2CPP_ReferenceArray [ 1 ] = null ;
248249 IL2CPP_ReferenceArray [ 2 ] = ( Il2CppSystem . String ) "whats up" ;
249-
250+
250251 ExplorerCore . Log ( $ "IL2CPP 11: Misc il2cpp members") ;
251252 IL2CPP_BoxedInt = new Il2CppSystem . Int32 ( ) { m_value = 5 } . BoxIl2CppObject ( ) ;
252253 IL2CPP_Int = new Il2CppSystem . Int32 { m_value = 420 } ;
0 commit comments