Update library
This commit is contained in:
		| @@ -40,7 +40,7 @@ namespace PorygonSharp.UserData | ||||
|             { | ||||
|                 if (UserDataLookup.ContainsKey(type)) | ||||
|                     return; | ||||
|                 RegisterUserDataType(hash); | ||||
|                 RegisterUserDataType(name); | ||||
|                 var ud = new UserData(hash, type); | ||||
|                 UserDataLookup.TryAdd(type, ud); | ||||
|                 ReverseLookup.TryAdd(hash, ud); | ||||
| @@ -55,7 +55,7 @@ namespace PorygonSharp.UserData | ||||
|             { | ||||
|                 if (UserDataLookup.ContainsKey(type)) | ||||
|                     return; | ||||
|                 RegisterUserDataType(hash); | ||||
|                 RegisterUserDataType(name); | ||||
|                 var ud = new UserData(hash, type); | ||||
|                 UserDataLookup.TryAdd(type, ud); | ||||
|                 ReverseLookup.TryAdd(hash, ud); | ||||
| @@ -136,7 +136,7 @@ namespace PorygonSharp.UserData | ||||
|         } | ||||
|  | ||||
|         [DllImport("PorygonLang", EntryPoint = "RegisterUserDataType", CallingConvention = CallingConvention.Cdecl)] | ||||
|         private static extern void RegisterUserDataType(uint hashId); | ||||
|         private static extern void RegisterUserDataType([MarshalAs(UnmanagedType.LPWStr)]string name); | ||||
|  | ||||
|         [DllImport("PorygonLang", EntryPoint = "GetUserDataFieldCount", CallingConvention = CallingConvention.Cdecl)] | ||||
|         private static extern int GetUserDataFieldCount(uint hashId); | ||||
|   | ||||
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user