This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
+54
View File
@@ -0,0 +1,54 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x02000122 RID: 290
internal struct APIResult
{
// Token: 0x170002C0 RID: 704
// (get) Token: 0x060005FB RID: 1531 RVA: 0x00010C00 File Offset: 0x0000FC00
public string message
{
get
{
return Marshal.PtrToStringAnsi(this._message);
}
}
// Token: 0x170002C1 RID: 705
// (get) Token: 0x060005FC RID: 1532 RVA: 0x00010C20 File Offset: 0x0000FC20
public string filename
{
get
{
return Marshal.PtrToStringAnsi(this._filename);
}
}
// Token: 0x170002C2 RID: 706
// (get) Token: 0x060005FD RID: 1533 RVA: 0x00010C40 File Offset: 0x0000FC40
public bool RaiseException
{
get
{
return this.apiResult != APIResultTypes.Success;
}
}
// Token: 0x040004AC RID: 1196
public APIResultTypes apiResult;
// Token: 0x040004AD RID: 1197
private IntPtr _message;
// Token: 0x040004AE RID: 1198
private IntPtr _filename;
// Token: 0x040004AF RID: 1199
public int lineNumber;
// Token: 0x040004B0 RID: 1200
public int sceErrorCode;
}
}
+15
View File
@@ -0,0 +1,15 @@
using System;
namespace Sony.NP
{
// Token: 0x02000121 RID: 289
public enum APIResultTypes
{
// Token: 0x040004A9 RID: 1193
Success,
// Token: 0x040004AA RID: 1194
Warning,
// Token: 0x040004AB RID: 1195
Error
}
}
+19
View File
@@ -0,0 +1,19 @@
using System;
namespace Sony.NP
{
// Token: 0x02000128 RID: 296
public enum Affinity
{
// Token: 0x040004CC RID: 1228
Core2 = 4,
// Token: 0x040004CD RID: 1229
Core3 = 8,
// Token: 0x040004CE RID: 1230
Core4 = 16,
// Token: 0x040004CF RID: 1231
Core5 = 32,
// Token: 0x040004D0 RID: 1232
AllCores = 60
}
}
+61
View File
@@ -0,0 +1,61 @@
using System;
namespace Sony.NP
{
// Token: 0x02000124 RID: 292
public struct AgeRestriction
{
// Token: 0x170002C8 RID: 712
// (get) Token: 0x06000607 RID: 1543 RVA: 0x00010E0C File Offset: 0x0000FE0C
// (set) Token: 0x06000608 RID: 1544 RVA: 0x00010E31 File Offset: 0x0000FE31
public Core.CountryCode CountryCode
{
get
{
return new Core.CountryCode
{
code = this.countryCode
};
}
set
{
this.countryCode = value.code;
}
}
// Token: 0x170002C9 RID: 713
// (get) Token: 0x06000609 RID: 1545 RVA: 0x00010E40 File Offset: 0x0000FE40
// (set) Token: 0x0600060A RID: 1546 RVA: 0x00010E58 File Offset: 0x0000FE58
public int Age
{
get
{
return this.age;
}
set
{
this.age = value;
}
}
// Token: 0x0600060B RID: 1547 RVA: 0x00010E62 File Offset: 0x0000FE62
public AgeRestriction(int age, Core.CountryCode countryCode)
{
this.age = age;
this.countryCode = countryCode.code;
}
// Token: 0x0600060C RID: 1548 RVA: 0x00010E78 File Offset: 0x0000FE78
public void Init()
{
this.countryCode = "";
this.age = 0;
}
// Token: 0x040004B5 RID: 1205
internal string countryCode;
// Token: 0x040004B6 RID: 1206
internal int age;
}
}
+332
View File
@@ -0,0 +1,332 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x02000002 RID: 2
public class Auth
{
// Token: 0x06000001 RID: 1
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetAuthCode(Auth.GetAuthCodeRequest request, out APIResult result);
// Token: 0x06000002 RID: 2
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetIdToken(Auth.GetIdTokenRequest request, out APIResult result);
// Token: 0x06000003 RID: 3 RVA: 0x00002050 File Offset: 0x00001050
public static int GetAuthCode(Auth.GetAuthCodeRequest request, Auth.AuthCodeResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Auth.PrxGetAuthCode(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000004 RID: 4 RVA: 0x000020A4 File Offset: 0x000010A4
public static int GetIdToken(Auth.GetIdTokenRequest request, Auth.IdTokenResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Auth.PrxGetIdToken(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x02000003 RID: 3
public struct NpClientId
{
// Token: 0x17000001 RID: 1
// (get) Token: 0x06000006 RID: 6 RVA: 0x00002100 File Offset: 0x00001100
// (set) Token: 0x06000007 RID: 7 RVA: 0x00002118 File Offset: 0x00001118
public string Id
{
get
{
return this.id;
}
set
{
if (value.Length > 128)
{
throw new NpToolkitException("The size of the string is more than " + 128 + " characters.");
}
this.id = value;
}
}
// Token: 0x04000001 RID: 1
public const int NP_CLIENT_ID_MAX_LEN = 128;
// Token: 0x04000002 RID: 2
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 129)]
internal string id;
}
// Token: 0x02000004 RID: 4
public struct NpClientSecret
{
// Token: 0x17000002 RID: 2
// (get) Token: 0x06000008 RID: 8 RVA: 0x00002164 File Offset: 0x00001164
// (set) Token: 0x06000009 RID: 9 RVA: 0x0000217C File Offset: 0x0000117C
public string Secret
{
get
{
return this.secret;
}
set
{
if (value.Length > 256)
{
throw new NpToolkitException("The size of the string is more than " + 256 + " characters.");
}
this.secret = value;
}
}
// Token: 0x04000003 RID: 3
public const int NP_CLIENT_SECRET_MAX_LEN = 256;
// Token: 0x04000004 RID: 4
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 257)]
internal string secret;
}
// Token: 0x02000006 RID: 6
[StructLayout(LayoutKind.Sequential)]
public class GetAuthCodeRequest : RequestBase
{
// Token: 0x17000008 RID: 8
// (get) Token: 0x06000014 RID: 20 RVA: 0x000022E8 File Offset: 0x000012E8
// (set) Token: 0x06000015 RID: 21 RVA: 0x00002300 File Offset: 0x00001300
public Auth.NpClientId ClientId
{
get
{
return this.clientId;
}
set
{
this.clientId = value;
}
}
// Token: 0x17000009 RID: 9
// (get) Token: 0x06000016 RID: 22 RVA: 0x0000230C File Offset: 0x0000130C
// (set) Token: 0x06000017 RID: 23 RVA: 0x00002324 File Offset: 0x00001324
public string Scope
{
get
{
return this.scope;
}
set
{
if (value.Length > 511)
{
throw new NpToolkitException("The size of the string is more than " + 511 + " characters.");
}
this.scope = value;
}
}
// Token: 0x06000018 RID: 24 RVA: 0x0000236D File Offset: 0x0000136D
public GetAuthCodeRequest()
: base(ServiceTypes.Auth, FunctionTypes.AuthGetAuthCode)
{
}
// Token: 0x0400000B RID: 11
public const int MAX_SIZE_SCOPE = 511;
// Token: 0x0400000C RID: 12
internal Auth.NpClientId clientId;
// Token: 0x0400000D RID: 13
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 512)]
internal string scope;
}
// Token: 0x02000007 RID: 7
[StructLayout(LayoutKind.Sequential)]
public class GetIdTokenRequest : RequestBase
{
// Token: 0x1700000A RID: 10
// (get) Token: 0x06000019 RID: 25 RVA: 0x0000237C File Offset: 0x0000137C
// (set) Token: 0x0600001A RID: 26 RVA: 0x00002394 File Offset: 0x00001394
public Auth.NpClientId ClientId
{
get
{
return this.clientId;
}
set
{
this.clientId = value;
}
}
// Token: 0x1700000B RID: 11
// (get) Token: 0x0600001B RID: 27 RVA: 0x000023A0 File Offset: 0x000013A0
// (set) Token: 0x0600001C RID: 28 RVA: 0x000023B8 File Offset: 0x000013B8
public Auth.NpClientSecret ClientSecret
{
get
{
return this.clientSecret;
}
set
{
this.clientSecret = value;
}
}
// Token: 0x1700000C RID: 12
// (get) Token: 0x0600001D RID: 29 RVA: 0x000023C4 File Offset: 0x000013C4
// (set) Token: 0x0600001E RID: 30 RVA: 0x000023DC File Offset: 0x000013DC
public string Scope
{
get
{
return this.scope;
}
set
{
if (value.Length > 511)
{
throw new NpToolkitException("The size of the string is more than " + 511 + " characters.");
}
this.scope = value;
}
}
// Token: 0x0600001F RID: 31 RVA: 0x00002425 File Offset: 0x00001425
public GetIdTokenRequest()
: base(ServiceTypes.Auth, FunctionTypes.AuthGetIdToken)
{
}
// Token: 0x0400000E RID: 14
public const int MAX_SIZE_SCOPE = 511;
// Token: 0x0400000F RID: 15
internal Auth.NpClientId clientId;
// Token: 0x04000010 RID: 16
internal Auth.NpClientSecret clientSecret;
// Token: 0x04000011 RID: 17
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 512)]
internal string scope;
}
// Token: 0x02000008 RID: 8
public enum IssuerIdType
{
// Token: 0x04000013 RID: 19
Invalid = -1,
// Token: 0x04000014 RID: 20
Development = 1,
// Token: 0x04000015 RID: 21
Certification = 8,
// Token: 0x04000016 RID: 22
Live = 256
}
// Token: 0x0200000A RID: 10
public class AuthCodeResponse : ResponseBase
{
// Token: 0x17000013 RID: 19
// (get) Token: 0x06000032 RID: 50 RVA: 0x000027D8 File Offset: 0x000017D8
public string AuthCode
{
get
{
return this.authCode;
}
}
// Token: 0x17000014 RID: 20
// (get) Token: 0x06000033 RID: 51 RVA: 0x000027F0 File Offset: 0x000017F0
public Auth.IssuerIdType IssuerId
{
get
{
return this.issuerId;
}
}
// Token: 0x06000034 RID: 52 RVA: 0x00002808 File Offset: 0x00001808
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.AuthCodeBegin);
memoryBuffer.ReadString(ref this.authCode);
this.issuerId = (Auth.IssuerIdType)memoryBuffer.ReadUInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.AuthCodeEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x0400001A RID: 26
internal string authCode;
// Token: 0x0400001B RID: 27
internal Auth.IssuerIdType issuerId;
}
// Token: 0x0200000B RID: 11
public class IdTokenResponse : ResponseBase
{
// Token: 0x17000015 RID: 21
// (get) Token: 0x06000036 RID: 54 RVA: 0x0000287C File Offset: 0x0000187C
public string IdToken
{
get
{
return this.idToken;
}
}
// Token: 0x06000037 RID: 55 RVA: 0x00002894 File Offset: 0x00001894
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.IdTokenBegin);
memoryBuffer.ReadString(ref this.idToken);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.IdTokenEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x0400001C RID: 28
internal string idToken;
}
}
}
+2066
View File
@@ -0,0 +1,2066 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x0200000C RID: 12
public class Commerce
{
// Token: 0x06000039 RID: 57
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetCategories(Commerce.GetCategoriesRequest request, out APIResult result);
// Token: 0x0600003A RID: 58
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetProducts(Commerce.GetProductsRequest request, out APIResult result);
// Token: 0x0600003B RID: 59
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetServiceEntitlements(Commerce.GetServiceEntitlementsRequest request, out APIResult result);
// Token: 0x0600003C RID: 60
[DllImport("UnityNpToolkit2")]
private static extern int PrxConsumeServiceEntitlement(Commerce.ConsumeServiceEntitlementRequest request, out APIResult result);
// Token: 0x0600003D RID: 61
[DllImport("UnityNpToolkit2")]
private static extern int PrxDisplayCategoryBrowseDialog(Commerce.DisplayCategoryBrowseDialogRequest request, out APIResult result);
// Token: 0x0600003E RID: 62
[DllImport("UnityNpToolkit2")]
private static extern int PrxDisplayProductBrowseDialog(Commerce.DisplayProductBrowseDialogRequest request, out APIResult result);
// Token: 0x0600003F RID: 63
[DllImport("UnityNpToolkit2")]
private static extern int PrxDisplayVoucherCodeInputDialog(Commerce.DisplayVoucherCodeInputDialogRequest request, out APIResult result);
// Token: 0x06000040 RID: 64
[DllImport("UnityNpToolkit2")]
private static extern int PrxDisplayCheckoutDialog(Commerce.DisplayCheckoutDialogRequest request, out APIResult result);
// Token: 0x06000041 RID: 65
[DllImport("UnityNpToolkit2")]
private static extern int PrxDisplayDownloadListDialog(Commerce.DisplayDownloadListDialogRequest request, out APIResult result);
// Token: 0x06000042 RID: 66
[DllImport("UnityNpToolkit2")]
private static extern int PrxDisplayJoinPlusDialog(Commerce.DisplayJoinPlusDialogRequest request, out APIResult result);
// Token: 0x06000043 RID: 67
[DllImport("UnityNpToolkit2")]
private static extern int PrxSetPsStoreIconDisplayState(Commerce.SetPsStoreIconDisplayStateRequest request, out APIResult result);
// Token: 0x06000044 RID: 68 RVA: 0x000028FC File Offset: 0x000018FC
public static int GetCategories(Commerce.GetCategoriesRequest request, Commerce.CategoriesResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Commerce.PrxGetCategories(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000045 RID: 69 RVA: 0x00002950 File Offset: 0x00001950
public static int GetProducts(Commerce.GetProductsRequest request, Commerce.ProductsResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Commerce.PrxGetProducts(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000046 RID: 70 RVA: 0x000029A4 File Offset: 0x000019A4
public static int GetServiceEntitlements(Commerce.GetServiceEntitlementsRequest request, Commerce.ServiceEntitlementsResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Commerce.PrxGetServiceEntitlements(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000047 RID: 71 RVA: 0x000029F8 File Offset: 0x000019F8
public static int ConsumeServiceEntitlement(Commerce.ConsumeServiceEntitlementRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Commerce.PrxConsumeServiceEntitlement(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000048 RID: 72 RVA: 0x00002A4C File Offset: 0x00001A4C
public static int DisplayCategoryBrowseDialog(Commerce.DisplayCategoryBrowseDialogRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Commerce.PrxDisplayCategoryBrowseDialog(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000049 RID: 73 RVA: 0x00002AA0 File Offset: 0x00001AA0
public static int DisplayProductBrowseDialog(Commerce.DisplayProductBrowseDialogRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Commerce.PrxDisplayProductBrowseDialog(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600004A RID: 74 RVA: 0x00002AF4 File Offset: 0x00001AF4
public static int DisplayVoucherCodeInputDialog(Commerce.DisplayVoucherCodeInputDialogRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Commerce.PrxDisplayVoucherCodeInputDialog(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600004B RID: 75 RVA: 0x00002B48 File Offset: 0x00001B48
public static int DisplayCheckoutDialog(Commerce.DisplayCheckoutDialogRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Commerce.PrxDisplayCheckoutDialog(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600004C RID: 76 RVA: 0x00002B9C File Offset: 0x00001B9C
public static int DisplayDownloadListDialog(Commerce.DisplayDownloadListDialogRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Commerce.PrxDisplayDownloadListDialog(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600004D RID: 77 RVA: 0x00002BF0 File Offset: 0x00001BF0
public static int DisplayJoinPlusDialog(Commerce.DisplayJoinPlusDialogRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Commerce.PrxDisplayJoinPlusDialog(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600004E RID: 78 RVA: 0x00002C44 File Offset: 0x00001C44
public static int SetPsStoreIconDisplayState(Commerce.SetPsStoreIconDisplayStateRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Commerce.PrxSetPsStoreIconDisplayState(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0200000D RID: 13
public struct CategoryLabel
{
// Token: 0x17000016 RID: 22
// (get) Token: 0x06000050 RID: 80 RVA: 0x00002CA0 File Offset: 0x00001CA0
// (set) Token: 0x06000051 RID: 81 RVA: 0x00002CB8 File Offset: 0x00001CB8
public string Value
{
get
{
return this.internalValue;
}
set
{
int num = 16;
if (Main.initResult.sceSDKVersion < 72351744U)
{
num = 55;
}
if (value.Length > num)
{
throw new NpToolkitException("The size of the label is more than " + num + " characters.");
}
this.internalValue = value;
}
}
// Token: 0x06000052 RID: 82 RVA: 0x00002D19 File Offset: 0x00001D19
internal void Read(MemoryBuffer buffer)
{
buffer.ReadString(ref this.internalValue);
}
// Token: 0x0400001D RID: 29
public const int CATEGORY_LABEL_MAX_LEN = 16;
// Token: 0x0400001E RID: 30
public const int SDK4_0_CATEGORY_LABEL_MAX_LEN = 55;
// Token: 0x0400001F RID: 31
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 56)]
internal string internalValue;
}
// Token: 0x0200000E RID: 14
public struct ServiceEntitlementLabel
{
// Token: 0x17000017 RID: 23
// (get) Token: 0x06000053 RID: 83 RVA: 0x00002D2C File Offset: 0x00001D2C
// (set) Token: 0x06000054 RID: 84 RVA: 0x00002D44 File Offset: 0x00001D44
public string Value
{
get
{
return this.internalValue;
}
set
{
int num = 6;
if (Main.initResult.sceSDKVersion < 72351744U)
{
num = 31;
}
if (value.Length > num)
{
throw new NpToolkitException("The size of the label is more than " + num + " characters.");
}
this.internalValue = value;
}
}
// Token: 0x06000055 RID: 85 RVA: 0x00002DA4 File Offset: 0x00001DA4
internal void Read(MemoryBuffer buffer)
{
buffer.ReadString(ref this.internalValue);
}
// Token: 0x04000020 RID: 32
public const int SERVICE_ENTITLEMENT_LABEL_MAX_LEN = 6;
// Token: 0x04000021 RID: 33
public const int SDK4_0_SERVICE_ENTITLEMENT_LABEL_MAX_LEN = 31;
// Token: 0x04000022 RID: 34
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
internal string internalValue;
}
// Token: 0x0200000F RID: 15
public struct ProductLabel
{
// Token: 0x17000018 RID: 24
// (get) Token: 0x06000056 RID: 86 RVA: 0x00002DB4 File Offset: 0x00001DB4
// (set) Token: 0x06000057 RID: 87 RVA: 0x00002DCC File Offset: 0x00001DCC
public string Value
{
get
{
return this.internalValue;
}
set
{
int num = 16;
if (Main.initResult.sceSDKVersion < 72351744U)
{
num = 47;
}
if (value.Length > num)
{
throw new NpToolkitException("The size of the label is more than " + num + " characters.");
}
this.internalValue = value;
}
}
// Token: 0x06000058 RID: 88 RVA: 0x00002E2D File Offset: 0x00001E2D
internal void Read(MemoryBuffer buffer)
{
buffer.ReadString(ref this.internalValue);
}
// Token: 0x04000023 RID: 35
public const int PRODUCT_LABEL_MAX_LEN = 16;
// Token: 0x04000024 RID: 36
public const int SDK4_0_PRODUCT_LABEL_MAX_LEN = 47;
// Token: 0x04000025 RID: 37
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 48)]
internal string internalValue;
}
// Token: 0x02000010 RID: 16
public struct SkuLabel
{
// Token: 0x17000019 RID: 25
// (get) Token: 0x06000059 RID: 89 RVA: 0x00002E40 File Offset: 0x00001E40
// (set) Token: 0x0600005A RID: 90 RVA: 0x00002E58 File Offset: 0x00001E58
public string Value
{
get
{
return this.internalValue;
}
set
{
int num = 4;
if (Main.initResult.sceSDKVersion < 72351744U)
{
num = 55;
}
if (value.Length > num)
{
throw new NpToolkitException("The size of the label is more than " + num + " characters.");
}
this.internalValue = value;
}
}
// Token: 0x0600005B RID: 91 RVA: 0x00002EB8 File Offset: 0x00001EB8
internal void Read(MemoryBuffer buffer)
{
buffer.ReadString(ref this.internalValue);
}
// Token: 0x04000026 RID: 38
public const int SKU_LABEL_MAX_LEN = 4;
// Token: 0x04000027 RID: 39
public const int SDK4_0_SKU_LABEL_MAX_LEN = 55;
// Token: 0x04000028 RID: 40
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 56)]
internal string internalValue;
}
// Token: 0x02000011 RID: 17
public struct DownloadListTarget
{
// Token: 0x1700001A RID: 26
// (get) Token: 0x0600005C RID: 92 RVA: 0x00002EC8 File Offset: 0x00001EC8
// (set) Token: 0x0600005D RID: 93 RVA: 0x00002EE0 File Offset: 0x00001EE0
public Commerce.ProductLabel ProductLabel
{
get
{
return this.productLabel;
}
set
{
this.productLabel = value;
}
}
// Token: 0x1700001B RID: 27
// (get) Token: 0x0600005E RID: 94 RVA: 0x00002EEC File Offset: 0x00001EEC
// (set) Token: 0x0600005F RID: 95 RVA: 0x00002F04 File Offset: 0x00001F04
public Commerce.SkuLabel SkuLabel
{
get
{
return this.skuLabel;
}
set
{
this.skuLabel = value;
}
}
// Token: 0x04000029 RID: 41
internal Commerce.ProductLabel productLabel;
// Token: 0x0400002A RID: 42
internal Commerce.SkuLabel skuLabel;
}
// Token: 0x02000012 RID: 18
public struct CheckoutTarget
{
// Token: 0x1700001C RID: 28
// (get) Token: 0x06000060 RID: 96 RVA: 0x00002F10 File Offset: 0x00001F10
// (set) Token: 0x06000061 RID: 97 RVA: 0x00002F28 File Offset: 0x00001F28
public Commerce.ProductLabel ProductLabel
{
get
{
return this.productLabel;
}
set
{
this.productLabel = value;
}
}
// Token: 0x1700001D RID: 29
// (get) Token: 0x06000062 RID: 98 RVA: 0x00002F34 File Offset: 0x00001F34
// (set) Token: 0x06000063 RID: 99 RVA: 0x00002F4C File Offset: 0x00001F4C
public Commerce.SkuLabel SkuLabel
{
get
{
return this.skuLabel;
}
set
{
this.skuLabel = value;
}
}
// Token: 0x1700001E RID: 30
// (get) Token: 0x06000064 RID: 100 RVA: 0x00002F58 File Offset: 0x00001F58
// (set) Token: 0x06000065 RID: 101 RVA: 0x00002F70 File Offset: 0x00001F70
public uint ServiceLabel
{
get
{
return this.serviceLabel;
}
set
{
this.serviceLabel = value;
}
}
// Token: 0x0400002B RID: 43
public const uint NP_INVALID_SERVICE_LABEL = 4294967295U;
// Token: 0x0400002C RID: 44
internal Commerce.ProductLabel productLabel;
// Token: 0x0400002D RID: 45
internal Commerce.SkuLabel skuLabel;
// Token: 0x0400002E RID: 46
internal uint serviceLabel;
}
// Token: 0x02000013 RID: 19
public class SubCategory
{
// Token: 0x1700001F RID: 31
// (get) Token: 0x06000066 RID: 102 RVA: 0x00002F7C File Offset: 0x00001F7C
public string CategoryName
{
get
{
return this.categoryName;
}
}
// Token: 0x17000020 RID: 32
// (get) Token: 0x06000067 RID: 103 RVA: 0x00002F94 File Offset: 0x00001F94
public string CategoryDescription
{
get
{
return this.categoryDescription;
}
}
// Token: 0x17000021 RID: 33
// (get) Token: 0x06000068 RID: 104 RVA: 0x00002FAC File Offset: 0x00001FAC
public string ImageUrl
{
get
{
return this.imageUrl;
}
}
// Token: 0x17000022 RID: 34
// (get) Token: 0x06000069 RID: 105 RVA: 0x00002FC4 File Offset: 0x00001FC4
public Commerce.CategoryLabel CategoryLabel
{
get
{
return this.categoryLabel;
}
}
// Token: 0x0600006A RID: 106 RVA: 0x00002FDC File Offset: 0x00001FDC
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SubCategoryBegin);
buffer.ReadString(ref this.categoryName);
buffer.ReadString(ref this.categoryDescription);
buffer.ReadString(ref this.imageUrl);
this.categoryLabel.Read(buffer);
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SubCategoryEnd);
}
// Token: 0x0400002F RID: 47
internal string categoryName;
// Token: 0x04000030 RID: 48
internal string categoryDescription;
// Token: 0x04000031 RID: 49
internal string imageUrl;
// Token: 0x04000032 RID: 50
internal Commerce.CategoryLabel categoryLabel;
}
// Token: 0x02000014 RID: 20
public class Category
{
// Token: 0x17000023 RID: 35
// (get) Token: 0x0600006C RID: 108 RVA: 0x00003038 File Offset: 0x00002038
public Commerce.SubCategory[] SubCategories
{
get
{
return this.subCategories;
}
}
// Token: 0x17000024 RID: 36
// (get) Token: 0x0600006D RID: 109 RVA: 0x00003050 File Offset: 0x00002050
public ulong CountOfProducts
{
get
{
return this.countOfProducts;
}
}
// Token: 0x17000025 RID: 37
// (get) Token: 0x0600006E RID: 110 RVA: 0x00003068 File Offset: 0x00002068
public string CategoryName
{
get
{
return this.categoryName;
}
}
// Token: 0x17000026 RID: 38
// (get) Token: 0x0600006F RID: 111 RVA: 0x00003080 File Offset: 0x00002080
public string CategoryDescription
{
get
{
return this.categoryDescription;
}
}
// Token: 0x17000027 RID: 39
// (get) Token: 0x06000070 RID: 112 RVA: 0x00003098 File Offset: 0x00002098
public string ImageUrl
{
get
{
return this.imageUrl;
}
}
// Token: 0x17000028 RID: 40
// (get) Token: 0x06000071 RID: 113 RVA: 0x000030B0 File Offset: 0x000020B0
public Commerce.CategoryLabel CategoryLabel
{
get
{
return this.categoryLabel;
}
}
// Token: 0x06000072 RID: 114 RVA: 0x000030C8 File Offset: 0x000020C8
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.CategoryBegin);
ulong num = buffer.ReadUInt64();
if (num > 0UL)
{
this.subCategories = new Commerce.SubCategory[num];
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
{
checked
{
this.subCategories[(int)((IntPtr)num2)] = new Commerce.SubCategory();
this.subCategories[(int)((IntPtr)num2)].Read(buffer);
}
}
}
this.countOfProducts = buffer.ReadUInt64();
buffer.ReadString(ref this.categoryName);
buffer.ReadString(ref this.categoryDescription);
buffer.ReadString(ref this.imageUrl);
this.categoryLabel.Read(buffer);
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.CategoryEnd);
}
// Token: 0x04000033 RID: 51
internal Commerce.SubCategory[] subCategories;
// Token: 0x04000034 RID: 52
internal ulong countOfProducts;
// Token: 0x04000035 RID: 53
internal string categoryName;
// Token: 0x04000036 RID: 54
internal string categoryDescription;
// Token: 0x04000037 RID: 55
internal string imageUrl;
// Token: 0x04000038 RID: 56
internal Commerce.CategoryLabel categoryLabel;
}
// Token: 0x02000015 RID: 21
public class Product
{
// Token: 0x17000029 RID: 41
// (get) Token: 0x06000074 RID: 116 RVA: 0x00003184 File Offset: 0x00002184
public Commerce.ProductLabel ProductLabel
{
get
{
return this.productLabel;
}
}
// Token: 0x1700002A RID: 42
// (get) Token: 0x06000075 RID: 117 RVA: 0x0000319C File Offset: 0x0000219C
public string ProductName
{
get
{
return this.productName;
}
}
// Token: 0x1700002B RID: 43
// (get) Token: 0x06000076 RID: 118 RVA: 0x000031B4 File Offset: 0x000021B4
public string ImageUrl
{
get
{
return this.imageUrl;
}
}
// Token: 0x1700002C RID: 44
// (get) Token: 0x06000077 RID: 119 RVA: 0x000031CC File Offset: 0x000021CC
public bool HasDetails
{
get
{
return this.hasDetails;
}
}
// Token: 0x1700002D RID: 45
// (get) Token: 0x06000078 RID: 120 RVA: 0x000031E4 File Offset: 0x000021E4
public Commerce.ProductDetails Details
{
get
{
return this.details;
}
}
// Token: 0x06000079 RID: 121 RVA: 0x000031FC File Offset: 0x000021FC
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProductBegin);
this.productLabel.Read(buffer);
buffer.ReadString(ref this.productName);
buffer.ReadString(ref this.imageUrl);
this.hasDetails = buffer.ReadBool();
if (this.hasDetails)
{
this.details = new Commerce.ProductDetails();
this.details.Read(buffer);
}
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProductEnd);
}
// Token: 0x04000039 RID: 57
internal Commerce.ProductLabel productLabel;
// Token: 0x0400003A RID: 58
internal string productName;
// Token: 0x0400003B RID: 59
internal string imageUrl;
// Token: 0x0400003C RID: 60
internal bool hasDetails;
// Token: 0x0400003D RID: 61
internal Commerce.ProductDetails details;
}
// Token: 0x02000016 RID: 22
public enum PurchasabilityStatus
{
// Token: 0x0400003F RID: 63
NotPurchased,
// Token: 0x04000040 RID: 64
PurchasedCanPurchaseAgain,
// Token: 0x04000041 RID: 65
PurchasedCannotPurchaseAgain
}
// Token: 0x02000017 RID: 23
public class RatingDescriptor
{
// Token: 0x1700002E RID: 46
// (get) Token: 0x0600007B RID: 123 RVA: 0x00003280 File Offset: 0x00002280
public string Name
{
get
{
return this.name;
}
}
// Token: 0x1700002F RID: 47
// (get) Token: 0x0600007C RID: 124 RVA: 0x00003298 File Offset: 0x00002298
public string ImageUrl
{
get
{
return this.imageUrl;
}
}
// Token: 0x0600007D RID: 125 RVA: 0x000032B0 File Offset: 0x000022B0
internal void Read(MemoryBuffer buffer)
{
buffer.ReadString(ref this.name);
buffer.ReadString(ref this.imageUrl);
}
// Token: 0x04000042 RID: 66
internal string name;
// Token: 0x04000043 RID: 67
internal string imageUrl;
}
// Token: 0x02000018 RID: 24
public class ProductDetails
{
// Token: 0x17000030 RID: 48
// (get) Token: 0x0600007F RID: 127 RVA: 0x000032D8 File Offset: 0x000022D8
public DateTime ReleaseDate
{
get
{
return this.releaseDate;
}
}
// Token: 0x17000031 RID: 49
// (get) Token: 0x06000080 RID: 128 RVA: 0x000032F0 File Offset: 0x000022F0
public string LongDescription
{
get
{
return this.longDescription;
}
}
// Token: 0x17000032 RID: 50
// (get) Token: 0x06000081 RID: 129 RVA: 0x00003308 File Offset: 0x00002308
public string SpName
{
get
{
return this.spName;
}
}
// Token: 0x17000033 RID: 51
// (get) Token: 0x06000082 RID: 130 RVA: 0x00003320 File Offset: 0x00002320
public string RatingSystemId
{
get
{
return this.ratingSystemId;
}
}
// Token: 0x17000034 RID: 52
// (get) Token: 0x06000083 RID: 131 RVA: 0x00003338 File Offset: 0x00002338
public string RatingImageUrl
{
get
{
return this.ratingImageUrl;
}
}
// Token: 0x17000035 RID: 53
// (get) Token: 0x06000084 RID: 132 RVA: 0x00003350 File Offset: 0x00002350
public Commerce.RatingDescriptor[] RatingDescriptors
{
get
{
return this.ratingDescriptors;
}
}
// Token: 0x17000036 RID: 54
// (get) Token: 0x06000085 RID: 133 RVA: 0x00003368 File Offset: 0x00002368
public Commerce.SkuInfo[] Skuinfo
{
get
{
return this.skuinfo;
}
}
// Token: 0x17000037 RID: 55
// (get) Token: 0x06000086 RID: 134 RVA: 0x00003380 File Offset: 0x00002380
public Commerce.PurchasabilityStatus PurchasabilityStatus
{
get
{
return this.purchasabilityStatus;
}
}
// Token: 0x17000038 RID: 56
// (get) Token: 0x06000087 RID: 135 RVA: 0x00003398 File Offset: 0x00002398
public uint StarRatingsTotal
{
get
{
return this.starRatingsTotal;
}
}
// Token: 0x17000039 RID: 57
// (get) Token: 0x06000088 RID: 136 RVA: 0x000033B0 File Offset: 0x000023B0
public double StarRatingScore
{
get
{
return this.starRatingScore;
}
}
// Token: 0x06000089 RID: 137 RVA: 0x000033C8 File Offset: 0x000023C8
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProductDetailsBegin);
this.releaseDate = Core.ReadRtcTick(buffer);
buffer.ReadString(ref this.longDescription);
buffer.ReadString(ref this.spName);
buffer.ReadString(ref this.ratingSystemId);
buffer.ReadString(ref this.ratingImageUrl);
ulong num = buffer.ReadUInt64();
if (num > 0UL)
{
this.ratingDescriptors = new Commerce.RatingDescriptor[num];
for (int i = 0; i < (int)num; i++)
{
this.ratingDescriptors[i] = new Commerce.RatingDescriptor();
this.ratingDescriptors[i].Read(buffer);
}
}
else
{
this.ratingDescriptors = null;
}
ulong num2 = buffer.ReadUInt64();
if (num2 > 0UL)
{
this.skuinfo = new Commerce.SkuInfo[num2];
for (int i = 0; i < (int)num2; i++)
{
this.skuinfo[i] = new Commerce.SkuInfo();
this.skuinfo[i].Read(buffer);
}
}
else
{
this.skuinfo = null;
}
this.purchasabilityStatus = (Commerce.PurchasabilityStatus)buffer.ReadUInt32();
this.starRatingsTotal = buffer.ReadUInt32();
this.starRatingScore = buffer.ReadDouble();
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProductDetailsEnd);
}
// Token: 0x04000044 RID: 68
internal DateTime releaseDate;
// Token: 0x04000045 RID: 69
internal string longDescription;
// Token: 0x04000046 RID: 70
internal string spName;
// Token: 0x04000047 RID: 71
internal string ratingSystemId;
// Token: 0x04000048 RID: 72
internal string ratingImageUrl;
// Token: 0x04000049 RID: 73
internal Commerce.RatingDescriptor[] ratingDescriptors;
// Token: 0x0400004A RID: 74
internal Commerce.SkuInfo[] skuinfo;
// Token: 0x0400004B RID: 75
internal Commerce.PurchasabilityStatus purchasabilityStatus;
// Token: 0x0400004C RID: 76
internal uint starRatingsTotal;
// Token: 0x0400004D RID: 77
internal double starRatingScore;
}
// Token: 0x02000019 RID: 25
public enum SkuType
{
// Token: 0x0400004F RID: 79
Invalid,
// Token: 0x04000050 RID: 80
Standard,
// Token: 0x04000051 RID: 81
Preorder
}
// Token: 0x0200001A RID: 26
public class SkuInfo
{
// Token: 0x1700003A RID: 58
// (get) Token: 0x0600008B RID: 139 RVA: 0x0000350C File Offset: 0x0000250C
public Commerce.SkuType Type
{
get
{
return this.type;
}
}
// Token: 0x1700003B RID: 59
// (get) Token: 0x0600008C RID: 140 RVA: 0x00003524 File Offset: 0x00002524
public Commerce.PurchasabilityStatus PurchasabilityStatus
{
get
{
return this.purchasabilityStatus;
}
}
// Token: 0x1700003C RID: 60
// (get) Token: 0x0600008D RID: 141 RVA: 0x0000353C File Offset: 0x0000253C
public Commerce.SkuLabel Label
{
get
{
return this.label;
}
}
// Token: 0x1700003D RID: 61
// (get) Token: 0x0600008E RID: 142 RVA: 0x00003554 File Offset: 0x00002554
public string Name
{
get
{
return this.name;
}
}
// Token: 0x1700003E RID: 62
// (get) Token: 0x0600008F RID: 143 RVA: 0x0000356C File Offset: 0x0000256C
public string Price
{
get
{
return this.price;
}
}
// Token: 0x1700003F RID: 63
// (get) Token: 0x06000090 RID: 144 RVA: 0x00003584 File Offset: 0x00002584
public ulong IntPrice
{
get
{
return this.intPrice;
}
}
// Token: 0x17000040 RID: 64
// (get) Token: 0x06000091 RID: 145 RVA: 0x0000359C File Offset: 0x0000259C
public uint ConsumableUseCount
{
get
{
return this.consumableUseCount;
}
}
// Token: 0x06000092 RID: 146 RVA: 0x000035B4 File Offset: 0x000025B4
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SkuInfoBegin);
this.type = (Commerce.SkuType)buffer.ReadUInt32();
this.purchasabilityStatus = (Commerce.PurchasabilityStatus)buffer.ReadUInt32();
this.label.Read(buffer);
buffer.ReadString(ref this.name);
buffer.ReadString(ref this.price);
this.intPrice = buffer.ReadUInt64();
this.consumableUseCount = buffer.ReadUInt32();
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SkuInfoEnd);
}
// Token: 0x04000052 RID: 82
internal Commerce.SkuType type;
// Token: 0x04000053 RID: 83
internal Commerce.PurchasabilityStatus purchasabilityStatus;
// Token: 0x04000054 RID: 84
internal Commerce.SkuLabel label;
// Token: 0x04000055 RID: 85
internal string name;
// Token: 0x04000056 RID: 86
internal string price;
// Token: 0x04000057 RID: 87
internal ulong intPrice;
// Token: 0x04000058 RID: 88
internal uint consumableUseCount;
}
// Token: 0x0200001B RID: 27
public enum EntitlementType
{
// Token: 0x0400005A RID: 90
Invalid,
// Token: 0x0400005B RID: 91
Service,
// Token: 0x0400005C RID: 92
ServiceConsumable,
// Token: 0x0400005D RID: 93
Unified
}
// Token: 0x0200001C RID: 28
public class ServiceEntitlement
{
// Token: 0x17000041 RID: 65
// (get) Token: 0x06000094 RID: 148 RVA: 0x00003634 File Offset: 0x00002634
public Commerce.ServiceEntitlementLabel EntitlementLabel
{
get
{
return this.entitlementLabel;
}
}
// Token: 0x17000042 RID: 66
// (get) Token: 0x06000095 RID: 149 RVA: 0x0000364C File Offset: 0x0000264C
public DateTime CreatedDate
{
get
{
return this.createdDate;
}
}
// Token: 0x17000043 RID: 67
// (get) Token: 0x06000096 RID: 150 RVA: 0x00003664 File Offset: 0x00002664
public DateTime ExpireDate
{
get
{
return this.expireDate;
}
}
// Token: 0x17000044 RID: 68
// (get) Token: 0x06000097 RID: 151 RVA: 0x0000367C File Offset: 0x0000267C
public long RemainingCount
{
get
{
return this.remainingCount;
}
}
// Token: 0x17000045 RID: 69
// (get) Token: 0x06000098 RID: 152 RVA: 0x00003694 File Offset: 0x00002694
public uint ConsumedCount
{
get
{
return this.consumedCount;
}
}
// Token: 0x17000046 RID: 70
// (get) Token: 0x06000099 RID: 153 RVA: 0x000036AC File Offset: 0x000026AC
public Commerce.EntitlementType Type
{
get
{
return this.type;
}
}
// Token: 0x0600009A RID: 154 RVA: 0x000036C4 File Offset: 0x000026C4
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ServiceEntitlementBegin);
this.entitlementLabel.Read(buffer);
this.createdDate = Core.ReadRtcTick(buffer);
this.expireDate = Core.ReadRtcTick(buffer);
this.remainingCount = buffer.ReadInt64();
this.consumedCount = buffer.ReadUInt32();
this.type = (Commerce.EntitlementType)buffer.ReadUInt32();
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ServiceEntitlementEnd);
}
// Token: 0x0400005E RID: 94
internal Commerce.ServiceEntitlementLabel entitlementLabel;
// Token: 0x0400005F RID: 95
internal DateTime createdDate;
// Token: 0x04000060 RID: 96
internal DateTime expireDate;
// Token: 0x04000061 RID: 97
internal long remainingCount;
// Token: 0x04000062 RID: 98
internal uint consumedCount;
// Token: 0x04000063 RID: 99
internal Commerce.EntitlementType type;
}
// Token: 0x0200001D RID: 29
[StructLayout(LayoutKind.Sequential)]
public class GetCategoriesRequest : RequestBase
{
// Token: 0x17000047 RID: 71
// (get) Token: 0x0600009C RID: 156 RVA: 0x00003738 File Offset: 0x00002738
// (set) Token: 0x0600009D RID: 157 RVA: 0x00003784 File Offset: 0x00002784
public Commerce.CategoryLabel[] CategoryLabels
{
get
{
Commerce.CategoryLabel[] array;
if (this.numCategories == 0UL)
{
array = null;
}
else
{
Commerce.CategoryLabel[] array2 = new Commerce.CategoryLabel[this.numCategories];
Array.Copy(this.categoryLabels, array2, (int)this.numCategories);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 8)
{
throw new NpToolkitException("The size of the array is more than " + 8);
}
value.CopyTo(this.categoryLabels, 0);
this.numCategories = (ulong)value.Length;
}
else
{
this.numCategories = 0UL;
}
}
}
// Token: 0x0600009E RID: 158 RVA: 0x000037E4 File Offset: 0x000027E4
public GetCategoriesRequest()
: base(ServiceTypes.Commerce, FunctionTypes.CommerceGetCategories)
{
}
// Token: 0x04000064 RID: 100
public const int MAX_CATEGORIES = 8;
// Token: 0x04000065 RID: 101
internal ulong numCategories;
// Token: 0x04000066 RID: 102
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
internal Commerce.CategoryLabel[] categoryLabels = new Commerce.CategoryLabel[8];
}
// Token: 0x0200001E RID: 30
public enum ProductSortOrders
{
// Token: 0x04000068 RID: 104
DefaultOrder,
// Token: 0x04000069 RID: 105
Name,
// Token: 0x0400006A RID: 106
Price,
// Token: 0x0400006B RID: 107
ReleaseDate
}
// Token: 0x0200001F RID: 31
public enum ProductSortDirections
{
// Token: 0x0400006D RID: 109
Ascending,
// Token: 0x0400006E RID: 110
Descending
}
// Token: 0x02000020 RID: 32
[StructLayout(LayoutKind.Sequential)]
public class GetProductsRequest : RequestBase
{
// Token: 0x17000048 RID: 72
// (get) Token: 0x0600009F RID: 159 RVA: 0x00003800 File Offset: 0x00002800
// (set) Token: 0x060000A0 RID: 160 RVA: 0x0000384C File Offset: 0x0000284C
public Commerce.ProductLabel[] ProductLabels
{
get
{
Commerce.ProductLabel[] array;
if (this.numProducts == 0UL)
{
array = null;
}
else
{
Commerce.ProductLabel[] array2 = new Commerce.ProductLabel[this.numProducts];
Array.Copy(this.productLabels, array2, (int)this.numProducts);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 8)
{
throw new NpToolkitException("The size of the array is more than " + 32);
}
value.CopyTo(this.productLabels, 0);
this.numProducts = (ulong)value.Length;
}
else
{
this.numProducts = 0UL;
}
}
}
// Token: 0x17000049 RID: 73
// (get) Token: 0x060000A1 RID: 161 RVA: 0x000038B0 File Offset: 0x000028B0
// (set) Token: 0x060000A2 RID: 162 RVA: 0x000038FC File Offset: 0x000028FC
public Commerce.CategoryLabel[] CategoryLabels
{
get
{
Commerce.CategoryLabel[] array;
if (this.numCategories == 0UL)
{
array = null;
}
else
{
Commerce.CategoryLabel[] array2 = new Commerce.CategoryLabel[this.numCategories];
Array.Copy(this.categoryLabels, array2, (int)this.numCategories);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 8)
{
throw new NpToolkitException("The size of the array is more than " + 8);
}
value.CopyTo(this.categoryLabels, 0);
this.numCategories = (ulong)value.Length;
}
else
{
this.numCategories = 0UL;
}
}
}
// Token: 0x1700004A RID: 74
// (get) Token: 0x060000A3 RID: 163 RVA: 0x0000395C File Offset: 0x0000295C
// (set) Token: 0x060000A4 RID: 164 RVA: 0x00003974 File Offset: 0x00002974
public uint Offset
{
get
{
return this.offset;
}
set
{
this.offset = value;
}
}
// Token: 0x1700004B RID: 75
// (get) Token: 0x060000A5 RID: 165 RVA: 0x00003980 File Offset: 0x00002980
// (set) Token: 0x060000A6 RID: 166 RVA: 0x00003998 File Offset: 0x00002998
public uint PageSize
{
get
{
return this.pageSize;
}
set
{
this.pageSize = value;
}
}
// Token: 0x1700004C RID: 76
// (get) Token: 0x060000A7 RID: 167 RVA: 0x000039A4 File Offset: 0x000029A4
// (set) Token: 0x060000A8 RID: 168 RVA: 0x000039BC File Offset: 0x000029BC
public Commerce.ProductSortOrders SortOrder
{
get
{
return this.sortOrder;
}
set
{
this.sortOrder = value;
}
}
// Token: 0x1700004D RID: 77
// (get) Token: 0x060000A9 RID: 169 RVA: 0x000039C8 File Offset: 0x000029C8
// (set) Token: 0x060000AA RID: 170 RVA: 0x000039E0 File Offset: 0x000029E0
public Commerce.ProductSortDirections SortDirection
{
get
{
return this.sortDirection;
}
set
{
this.sortDirection = value;
}
}
// Token: 0x1700004E RID: 78
// (get) Token: 0x060000AB RID: 171 RVA: 0x000039EC File Offset: 0x000029EC
// (set) Token: 0x060000AC RID: 172 RVA: 0x00003A04 File Offset: 0x00002A04
public bool KeepHtmlTags
{
get
{
return this.keepHtmlTags;
}
set
{
this.keepHtmlTags = value;
}
}
// Token: 0x1700004F RID: 79
// (get) Token: 0x060000AD RID: 173 RVA: 0x00003A10 File Offset: 0x00002A10
// (set) Token: 0x060000AE RID: 174 RVA: 0x00003A28 File Offset: 0x00002A28
public bool UseCurrencySymbol
{
get
{
return this.useCurrencySymbol;
}
set
{
this.useCurrencySymbol = value;
}
}
// Token: 0x060000AF RID: 175 RVA: 0x00003A32 File Offset: 0x00002A32
public GetProductsRequest()
: base(ServiceTypes.Commerce, FunctionTypes.CommerceGetProducts)
{
this.pageSize = 32U;
}
// Token: 0x0400006F RID: 111
public const int MAX_PRODUCTS = 32;
// Token: 0x04000070 RID: 112
public const int MAX_CATEGORIES = 8;
// Token: 0x04000071 RID: 113
public const int DEFAULT_PAGE_SIZE = 32;
// Token: 0x04000072 RID: 114
internal ulong numProducts;
// Token: 0x04000073 RID: 115
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
internal Commerce.ProductLabel[] productLabels = new Commerce.ProductLabel[32];
// Token: 0x04000074 RID: 116
internal ulong numCategories;
// Token: 0x04000075 RID: 117
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
internal Commerce.CategoryLabel[] categoryLabels = new Commerce.CategoryLabel[8];
// Token: 0x04000076 RID: 118
internal uint offset;
// Token: 0x04000077 RID: 119
internal uint pageSize;
// Token: 0x04000078 RID: 120
internal Commerce.ProductSortOrders sortOrder;
// Token: 0x04000079 RID: 121
internal Commerce.ProductSortDirections sortDirection;
// Token: 0x0400007A RID: 122
[MarshalAs(UnmanagedType.I1)]
internal bool keepHtmlTags;
// Token: 0x0400007B RID: 123
[MarshalAs(UnmanagedType.I1)]
internal bool useCurrencySymbol;
}
// Token: 0x02000021 RID: 33
[StructLayout(LayoutKind.Sequential)]
public class GetServiceEntitlementsRequest : RequestBase
{
// Token: 0x17000050 RID: 80
// (get) Token: 0x060000B0 RID: 176 RVA: 0x00003A64 File Offset: 0x00002A64
// (set) Token: 0x060000B1 RID: 177 RVA: 0x00003A7C File Offset: 0x00002A7C
public uint Offset
{
get
{
return this.offset;
}
set
{
this.offset = value;
}
}
// Token: 0x17000051 RID: 81
// (get) Token: 0x060000B2 RID: 178 RVA: 0x00003A88 File Offset: 0x00002A88
// (set) Token: 0x060000B3 RID: 179 RVA: 0x00003AA0 File Offset: 0x00002AA0
public uint PageSize
{
get
{
return this.pageSize;
}
set
{
this.pageSize = value;
}
}
// Token: 0x060000B4 RID: 180 RVA: 0x00003AAA File Offset: 0x00002AAA
public GetServiceEntitlementsRequest()
: base(ServiceTypes.Commerce, FunctionTypes.CommerceGetServiceEntitlements)
{
this.pageSize = 64U;
}
// Token: 0x0400007C RID: 124
public const int DEFAULT_PAGE_SIZE = 64;
// Token: 0x0400007D RID: 125
internal uint offset;
// Token: 0x0400007E RID: 126
internal uint pageSize;
}
// Token: 0x02000022 RID: 34
[StructLayout(LayoutKind.Sequential)]
public class ConsumeServiceEntitlementRequest : RequestBase
{
// Token: 0x17000052 RID: 82
// (get) Token: 0x060000B5 RID: 181 RVA: 0x00003AC4 File Offset: 0x00002AC4
// (set) Token: 0x060000B6 RID: 182 RVA: 0x00003ADC File Offset: 0x00002ADC
public Commerce.ServiceEntitlementLabel EntitlementLabel
{
get
{
return this.entitlementLabel;
}
set
{
this.entitlementLabel = value;
}
}
// Token: 0x17000053 RID: 83
// (get) Token: 0x060000B7 RID: 183 RVA: 0x00003AE8 File Offset: 0x00002AE8
// (set) Token: 0x060000B8 RID: 184 RVA: 0x00003B00 File Offset: 0x00002B00
public uint ConsumedCount
{
get
{
return this.consumedCount;
}
set
{
this.consumedCount = value;
}
}
// Token: 0x060000B9 RID: 185 RVA: 0x00003B0A File Offset: 0x00002B0A
public ConsumeServiceEntitlementRequest()
: base(ServiceTypes.Commerce, FunctionTypes.CommerceConsumeServiceEntitlement)
{
}
// Token: 0x0400007F RID: 127
internal Commerce.ServiceEntitlementLabel entitlementLabel;
// Token: 0x04000080 RID: 128
internal uint consumedCount;
}
// Token: 0x02000023 RID: 35
[StructLayout(LayoutKind.Sequential)]
public class DisplayCategoryBrowseDialogRequest : RequestBase
{
// Token: 0x17000054 RID: 84
// (get) Token: 0x060000BA RID: 186 RVA: 0x00003B1C File Offset: 0x00002B1C
// (set) Token: 0x060000BB RID: 187 RVA: 0x00003B34 File Offset: 0x00002B34
public Commerce.CategoryLabel CategoryLabel
{
get
{
return this.categoryLabel;
}
set
{
this.categoryLabel = value;
}
}
// Token: 0x060000BC RID: 188 RVA: 0x00003B3E File Offset: 0x00002B3E
public DisplayCategoryBrowseDialogRequest()
: base(ServiceTypes.Commerce, FunctionTypes.CommerceDisplayCategoryBrowseDialog)
{
}
// Token: 0x04000081 RID: 129
internal Commerce.CategoryLabel categoryLabel;
}
// Token: 0x02000024 RID: 36
[StructLayout(LayoutKind.Sequential)]
public class DisplayProductBrowseDialogRequest : RequestBase
{
// Token: 0x17000055 RID: 85
// (get) Token: 0x060000BD RID: 189 RVA: 0x00003B50 File Offset: 0x00002B50
// (set) Token: 0x060000BE RID: 190 RVA: 0x00003B68 File Offset: 0x00002B68
public Commerce.ProductLabel ProductLabel
{
get
{
return this.productLabel;
}
set
{
this.productLabel = value;
}
}
// Token: 0x060000BF RID: 191 RVA: 0x00003B72 File Offset: 0x00002B72
public DisplayProductBrowseDialogRequest()
: base(ServiceTypes.Commerce, FunctionTypes.CommerceDisplayProductBrowseDialog)
{
}
// Token: 0x04000082 RID: 130
internal Commerce.ProductLabel productLabel;
}
// Token: 0x02000025 RID: 37
[StructLayout(LayoutKind.Sequential)]
public class DisplayVoucherCodeInputDialogRequest : RequestBase
{
// Token: 0x17000056 RID: 86
// (get) Token: 0x060000C0 RID: 192 RVA: 0x00003B84 File Offset: 0x00002B84
// (set) Token: 0x060000C1 RID: 193 RVA: 0x00003B9C File Offset: 0x00002B9C
public string VoucherCode
{
get
{
return this.voucherCode;
}
set
{
if (value.Length > 63)
{
throw new NpToolkitException("The size of the voucher code is more than " + 63 + " characters.");
}
this.voucherCode = value;
}
}
// Token: 0x060000C2 RID: 194 RVA: 0x00003BDF File Offset: 0x00002BDF
public DisplayVoucherCodeInputDialogRequest()
: base(ServiceTypes.Commerce, FunctionTypes.CommerceDisplayVoucherCodeInputDialog)
{
}
// Token: 0x04000083 RID: 131
public const int VOUCHER_CODE_LEN = 63;
// Token: 0x04000084 RID: 132
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
internal string voucherCode;
}
// Token: 0x02000026 RID: 38
[StructLayout(LayoutKind.Sequential)]
public class DisplayCheckoutDialogRequest : RequestBase
{
// Token: 0x17000057 RID: 87
// (get) Token: 0x060000C3 RID: 195 RVA: 0x00003BF0 File Offset: 0x00002BF0
// (set) Token: 0x060000C4 RID: 196 RVA: 0x00003C3C File Offset: 0x00002C3C
public Commerce.CheckoutTarget[] Targets
{
get
{
Commerce.CheckoutTarget[] array;
if (this.numTargets == 0UL)
{
array = null;
}
else
{
Commerce.CheckoutTarget[] array2 = new Commerce.CheckoutTarget[this.numTargets];
Array.Copy(this.targets, array2, (int)this.numTargets);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 10)
{
throw new NpToolkitException("The size of the array is more than " + 10);
}
value.CopyTo(this.targets, 0);
this.numTargets = (ulong)((long)value.Length);
}
else
{
this.numTargets = 0UL;
}
}
}
// Token: 0x060000C5 RID: 197 RVA: 0x00003C9E File Offset: 0x00002C9E
public DisplayCheckoutDialogRequest()
: base(ServiceTypes.Commerce, FunctionTypes.CommerceDisplayCheckoutDialog)
{
}
// Token: 0x04000085 RID: 133
public const int MAX_TARGETS = 10;
// Token: 0x04000086 RID: 134
internal ulong numTargets;
// Token: 0x04000087 RID: 135
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
internal Commerce.CheckoutTarget[] targets = new Commerce.CheckoutTarget[10];
}
// Token: 0x02000027 RID: 39
[StructLayout(LayoutKind.Sequential)]
public class DisplayDownloadListDialogRequest : RequestBase
{
// Token: 0x17000058 RID: 88
// (get) Token: 0x060000C6 RID: 198 RVA: 0x00003CBC File Offset: 0x00002CBC
// (set) Token: 0x060000C7 RID: 199 RVA: 0x00003D08 File Offset: 0x00002D08
public Commerce.DownloadListTarget[] Targets
{
get
{
Commerce.DownloadListTarget[] array;
if (this.numTargets == 0UL)
{
array = null;
}
else
{
Commerce.DownloadListTarget[] array2 = new Commerce.DownloadListTarget[this.numTargets];
Array.Copy(this.targets, array2, (int)this.numTargets);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 10)
{
throw new NpToolkitException("The size of the array is more than " + 10);
}
value.CopyTo(this.targets, 0);
this.numTargets = (ulong)((long)value.Length);
}
else
{
this.numTargets = 0UL;
}
}
}
// Token: 0x060000C8 RID: 200 RVA: 0x00003D6A File Offset: 0x00002D6A
public DisplayDownloadListDialogRequest()
: base(ServiceTypes.Commerce, FunctionTypes.CommerceDisplayDownloadListDialog)
{
}
// Token: 0x04000088 RID: 136
public const int MAX_TARGETS = 10;
// Token: 0x04000089 RID: 137
internal ulong numTargets;
// Token: 0x0400008A RID: 138
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
internal Commerce.DownloadListTarget[] targets = new Commerce.DownloadListTarget[10];
}
// Token: 0x02000028 RID: 40
[StructLayout(LayoutKind.Sequential)]
public class DisplayJoinPlusDialogRequest : RequestBase
{
// Token: 0x060000C9 RID: 201 RVA: 0x00003D86 File Offset: 0x00002D86
public DisplayJoinPlusDialogRequest()
: base(ServiceTypes.Commerce, FunctionTypes.CommerceDisplayJoinPlusDialog)
{
this.features = 1UL;
}
// Token: 0x0400008B RID: 139
internal ulong features;
}
// Token: 0x02000029 RID: 41
public enum PsStoreIconPos
{
// Token: 0x0400008D RID: 141
Center,
// Token: 0x0400008E RID: 142
Left,
// Token: 0x0400008F RID: 143
Right
}
// Token: 0x0200002A RID: 42
[StructLayout(LayoutKind.Sequential)]
public class SetPsStoreIconDisplayStateRequest : RequestBase
{
// Token: 0x17000059 RID: 89
// (get) Token: 0x060000CA RID: 202 RVA: 0x00003DA0 File Offset: 0x00002DA0
// (set) Token: 0x060000CB RID: 203 RVA: 0x00003DB8 File Offset: 0x00002DB8
public Commerce.PsStoreIconPos IconPosition
{
get
{
return this.iconPosition;
}
set
{
this.iconPosition = value;
}
}
// Token: 0x1700005A RID: 90
// (get) Token: 0x060000CC RID: 204 RVA: 0x00003DC4 File Offset: 0x00002DC4
// (set) Token: 0x060000CD RID: 205 RVA: 0x00003DDC File Offset: 0x00002DDC
public bool ShowIcon
{
get
{
return this.showIcon;
}
set
{
this.showIcon = value;
}
}
// Token: 0x060000CE RID: 206 RVA: 0x00003DE6 File Offset: 0x00002DE6
public SetPsStoreIconDisplayStateRequest()
: base(ServiceTypes.Commerce, FunctionTypes.CommerceSetPsStoreIconDisplayState)
{
}
// Token: 0x04000090 RID: 144
internal Commerce.PsStoreIconPos iconPosition;
// Token: 0x04000091 RID: 145
[MarshalAs(UnmanagedType.I1)]
internal bool showIcon;
}
// Token: 0x0200002B RID: 43
public class CategoriesResponse : ResponseBase
{
// Token: 0x1700005B RID: 91
// (get) Token: 0x060000CF RID: 207 RVA: 0x00003DF8 File Offset: 0x00002DF8
public Commerce.Category[] Categories
{
get
{
return this.categories;
}
}
// Token: 0x060000D0 RID: 208 RVA: 0x00003E10 File Offset: 0x00002E10
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.CategoriesBegin);
ulong num = memoryBuffer.ReadUInt64();
if (num > 0UL)
{
this.categories = new Commerce.Category[num];
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
{
checked
{
this.categories[(int)((IntPtr)num2)] = new Commerce.Category();
this.categories[(int)((IntPtr)num2)].Read(memoryBuffer);
}
}
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.CategoriesEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000092 RID: 146
internal Commerce.Category[] categories;
}
// Token: 0x0200002C RID: 44
public class ProductsResponse : ResponseBase
{
// Token: 0x1700005C RID: 92
// (get) Token: 0x060000D2 RID: 210 RVA: 0x00003EC4 File Offset: 0x00002EC4
public Commerce.Product[] Products
{
get
{
return this.products;
}
}
// Token: 0x060000D3 RID: 211 RVA: 0x00003EDC File Offset: 0x00002EDC
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProductsBegin);
ulong num = memoryBuffer.ReadUInt64();
if (num > 0UL)
{
this.products = new Commerce.Product[num];
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
{
checked
{
this.products[(int)((IntPtr)num2)] = new Commerce.Product();
this.products[(int)((IntPtr)num2)].Read(memoryBuffer);
}
}
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProductsEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000093 RID: 147
internal Commerce.Product[] products;
}
// Token: 0x0200002D RID: 45
public class ServiceEntitlementsResponse : ResponseBase
{
// Token: 0x1700005D RID: 93
// (get) Token: 0x060000D5 RID: 213 RVA: 0x00003F90 File Offset: 0x00002F90
public Commerce.ServiceEntitlement[] Entitlements
{
get
{
return this.entitlements;
}
}
// Token: 0x1700005E RID: 94
// (get) Token: 0x060000D6 RID: 214 RVA: 0x00003FA8 File Offset: 0x00002FA8
public ulong TotalEntitlementsAvailable
{
get
{
return this.totalEntitlementsAvailable;
}
}
// Token: 0x060000D7 RID: 215 RVA: 0x00003FC0 File Offset: 0x00002FC0
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ServiceEntitlementsBegin);
this.totalEntitlementsAvailable = memoryBuffer.ReadUInt64();
ulong num = memoryBuffer.ReadUInt64();
if (num > 0UL)
{
this.entitlements = new Commerce.ServiceEntitlement[num];
for (int i = 0; i < (int)num; i++)
{
this.entitlements[i] = new Commerce.ServiceEntitlement();
this.entitlements[i].Read(memoryBuffer);
}
}
else
{
this.entitlements = null;
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ServiceEntitlementsEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000094 RID: 148
internal Commerce.ServiceEntitlement[] entitlements;
// Token: 0x04000095 RID: 149
internal ulong totalEntitlementsAvailable;
}
}
}
+110
View File
@@ -0,0 +1,110 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x02000125 RID: 293
public struct ContentRestriction
{
// Token: 0x170002CA RID: 714
// (get) Token: 0x0600060D RID: 1549 RVA: 0x00010E90 File Offset: 0x0000FE90
// (set) Token: 0x0600060E RID: 1550 RVA: 0x00010EA8 File Offset: 0x0000FEA8
public int DefaultAgeRestriction
{
get
{
return this.defaultAgeRestriction;
}
set
{
this.defaultAgeRestriction = value;
}
}
// Token: 0x170002CB RID: 715
// (get) Token: 0x0600060F RID: 1551 RVA: 0x00010EB4 File Offset: 0x0000FEB4
// (set) Token: 0x06000610 RID: 1552 RVA: 0x00010EFC File Offset: 0x0000FEFC
public AgeRestriction[] AgeRestrictions
{
get
{
AgeRestriction[] array;
if (this.numAgeRestictions == 0)
{
array = null;
}
else
{
AgeRestriction[] array2 = new AgeRestriction[this.numAgeRestictions];
Array.Copy(this.ageRestrictions, array2, this.numAgeRestictions);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 32)
{
throw new NpToolkitException("The size of the array is larger than " + 32);
}
value.CopyTo(this.ageRestrictions, 0);
this.numAgeRestictions = value.Length;
}
else
{
this.numAgeRestictions = 0;
}
}
}
// Token: 0x170002CC RID: 716
// (get) Token: 0x06000611 RID: 1553 RVA: 0x00010F5C File Offset: 0x0000FF5C
// (set) Token: 0x06000612 RID: 1554 RVA: 0x00010F74 File Offset: 0x0000FF74
public bool ApplyContentRestriction
{
get
{
return this.applyContentRestriction;
}
set
{
this.applyContentRestriction = value;
}
}
// Token: 0x06000613 RID: 1555 RVA: 0x00010F80 File Offset: 0x0000FF80
public void Init()
{
this.defaultAgeRestriction = 0;
this.ageRestrictions = new AgeRestriction[32];
this.numAgeRestictions = 0;
this.applyContentRestriction = true;
for (int i = 0; i < 32; i++)
{
this.ageRestrictions[i].Init();
}
}
// Token: 0x040004B7 RID: 1207
public const int MAX_AGE_RESTICTIONS = 32;
// Token: 0x040004B8 RID: 1208
public const int NP_NO_AGE_RESTRICTION = 0;
// Token: 0x040004B9 RID: 1209
internal int defaultAgeRestriction;
// Token: 0x040004BA RID: 1210
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
internal AgeRestriction[] ageRestrictions;
// Token: 0x040004BB RID: 1211
internal int numAgeRestictions;
// Token: 0x040004BC RID: 1212
[MarshalAs(UnmanagedType.I1)]
internal bool applyContentRestriction;
}
}
+738
View File
@@ -0,0 +1,738 @@
using System;
using System.Text;
namespace Sony.NP
{
// Token: 0x02000112 RID: 274
public class Core
{
// Token: 0x060005BF RID: 1471 RVA: 0x00010360 File Offset: 0x0000F360
public static string ConvertSceErrorToString(int errorCode)
{
string text = "(0x" + errorCode.ToString("X8") + ")";
Core.ReturnCodes returnCodes = (Core.ReturnCodes)errorCode;
if (Enum.IsDefined(typeof(Core.ReturnCodes), returnCodes))
{
text = text + " (" + returnCodes.ToString() + ") ";
}
else
{
text += " (UNKNOWN) ";
}
return text;
}
// Token: 0x060005C0 RID: 1472 RVA: 0x000103DC File Offset: 0x0000F3DC
internal static DateTime ReadRtcTick(MemoryBuffer buffer)
{
ulong num = buffer.ReadUInt64();
return Core.RtcTicksToDateTime(num);
}
// Token: 0x060005C1 RID: 1473 RVA: 0x000103FC File Offset: 0x0000F3FC
internal static ulong DateTimeToRtcTicks(DateTime dateTime)
{
ulong num = 10UL;
ulong ticks = (ulong)dateTime.Ticks;
return ticks / num;
}
// Token: 0x060005C2 RID: 1474 RVA: 0x00010420 File Offset: 0x0000F420
internal static DateTime RtcTicksToDateTime(ulong rtcTick)
{
ulong num = 10UL;
rtcTick *= num;
return new DateTime((long)rtcTick);
}
// Token: 0x02000113 RID: 275
public enum OptionalBoolean
{
// Token: 0x0400042F RID: 1071
notSet,
// Token: 0x04000430 RID: 1072
setTrue,
// Token: 0x04000431 RID: 1073
setFalse
}
// Token: 0x02000114 RID: 276
public enum PlatformType
{
// Token: 0x04000433 RID: 1075
none,
// Token: 0x04000434 RID: 1076
ps3,
// Token: 0x04000435 RID: 1077
psVita,
// Token: 0x04000436 RID: 1078
ps4
}
// Token: 0x02000115 RID: 277
public enum OnlineStatus
{
// Token: 0x04000438 RID: 1080
notRequested,
// Token: 0x04000439 RID: 1081
online,
// Token: 0x0400043A RID: 1082
standBy,
// Token: 0x0400043B RID: 1083
offline
}
// Token: 0x02000116 RID: 278
public enum ReturnCodes : uint
{
// Token: 0x0400043D RID: 1085
SUCCESS,
// Token: 0x0400043E RID: 1086
DIALOG_RESULT_OK = 0U,
// Token: 0x0400043F RID: 1087
DIALOG_RESULT_USER_CANCELED,
// Token: 0x04000440 RID: 1088
DIALOG_RESULT_USER_PURCHASED,
// Token: 0x04000441 RID: 1089
DIALOG_RESULT_ALREADY_SIGNED_IN,
// Token: 0x04000442 RID: 1090
DIALOG_RESULT_NOT_SIGNED_IN,
// Token: 0x04000443 RID: 1091
DIALOG_RESULT_ABORTED = 10U,
// Token: 0x04000444 RID: 1092
TROPHY_PLATINUM_UNLOCKED = 1U,
// Token: 0x04000445 RID: 1093
MATCHING_CREATE_SYSTEM_SESSION_FAILED = 160U,
// Token: 0x04000446 RID: 1094
MATCHING_JOIN_SYSTEM_SESSION_FAILED = 176U,
// Token: 0x04000447 RID: 1095
MATCHING_UPDATE_SYSTEM_SESSION_FAILED = 192U,
// Token: 0x04000448 RID: 1096
MATCHING_UPDATE_EXTERNAL_NOTIFICATION_FAILED = 208U,
// Token: 0x04000449 RID: 1097
ERROR_FAILED_TO_ALLOCATE = 2153065984U,
// Token: 0x0400044A RID: 1098
ERROR_TOO_MANY_REQUESTS,
// Token: 0x0400044B RID: 1099
ERROR_LOCKED_RESPONSE,
// Token: 0x0400044C RID: 1100
ERROR_ALREADY_INITIALIZED,
// Token: 0x0400044D RID: 1101
ERROR_NOT_INITIALIZED,
// Token: 0x0400044E RID: 1102
ERROR_INCORRECT_ARGUMENTS,
// Token: 0x0400044F RID: 1103
ERROR_MODIFICATION_NOT_ALLOWED,
// Token: 0x04000450 RID: 1104
ERROR_MAX_USERS_REACHED,
// Token: 0x04000451 RID: 1105
ERROR_INVALID_IMAGE,
// Token: 0x04000452 RID: 1106
ERROR_MEM_POOLS_INCORRECT,
// Token: 0x04000453 RID: 1107
ERROR_EXT_ALLOCATOR_INCORRECT,
// Token: 0x04000454 RID: 1108
ERROR_MAX_NUM_CALLBACKS_REACHED,
// Token: 0x04000455 RID: 1109
ERROR_CALLBACK_NOT_REGISTERED,
// Token: 0x04000456 RID: 1110
ERROR_TROPHY_HOME_DIRECTORY_NOT_CONFIGURED = 2153066096U,
// Token: 0x04000457 RID: 1111
ERROR_MATCHING_ROOM_DESTROYED = 2153066240U,
// Token: 0x04000458 RID: 1112
ERROR_MATCHING_INVALID_ATTRIBUTE_SCOPE,
// Token: 0x04000459 RID: 1113
ERROR_MATCHING_INVALID_ATTRIBUTE_TYP,
// Token: 0x0400045A RID: 1114
ERROR_MATCHING_INVALID_ROOM_ATTRIBUTE_VISIBILITY,
// Token: 0x0400045B RID: 1115
ERROR_MATCHING_SUM_OF_MEMBER_ATTRIBUTES_SIZES_IS_MORE_THAN_64,
// Token: 0x0400045C RID: 1116
ERROR_MATCHING_MORE_THAN_1_BINARY_SEARCH_ATTRIBUTE_PROVIDED,
// Token: 0x0400045D RID: 1117
ERROR_MATCHING_SEARCH_BINARY_ATTRIBUTE_SIZE_IS_MORE_THAN_64,
// Token: 0x0400045E RID: 1118
ERROR_MATCHING_MORE_THAN_8_INTEGER_SEARCH_ATTRIBUTES_PROVIDED,
// Token: 0x0400045F RID: 1119
ERROR_MATCHING_SUM_OF_EXTERNAL_ROOM_ATTRIBUTES_SIZES_IS_MORE_THAN_512,
// Token: 0x04000460 RID: 1120
ERROR_MATCHING_SUM_OF_INTERNAL_ROOM_ATTRIBUTES_SIZES_IS_MORE_THAN_512,
// Token: 0x04000461 RID: 1121
ERROR_MATCHING_NAMES_OF_ATTRIBUTES_MUST_BE_UNIQUE,
// Token: 0x04000462 RID: 1122
ERROR_MATCHING_INTERNAL_ATTRIBUTES_DONT_FIT_IN_256_ARRAYS,
// Token: 0x04000463 RID: 1123
ERROR_MATCHING_EXTERNAL_ATTRIBUTES_DONT_FIT_IN_256_ARRAYS,
// Token: 0x04000464 RID: 1124
ERROR_MATCHING_BIN_ATTRIBUTE_CANNOT_BE_SIZE_0,
// Token: 0x04000465 RID: 1125
ERROR_MATCHING_INIT_CONFIGURATION_ALREADY_SET,
// Token: 0x04000466 RID: 1126
ERROR_MATCHING_INIT_CONFIGURATION_NOT_SET,
// Token: 0x04000467 RID: 1127
ERROR_MATCHING_USER_IS_ALREADY_IN_A_ROOM,
// Token: 0x04000468 RID: 1128
ERROR_MATCHING_USER_IS_NOT_IN_A_ROOM,
// Token: 0x04000469 RID: 1129
ERROR_MATCHING_NO_SESSION_BOUND_TO_ROOM,
// Token: 0x0400046A RID: 1130
ERROR_MATCHING_INVALID_WORLD_NUMBER,
// Token: 0x0400046B RID: 1131
ERROR_MATCHING_ATTRIBUTE_IS_NOT_SEARCHABLE_TYPE,
// Token: 0x0400046C RID: 1132
ERROR_MATCHING_INVALID_ATTRIBUTE,
// Token: 0x0400046D RID: 1133
ERROR_MATCHING_INVALID_MEMBER_ID,
// Token: 0x0400046E RID: 1134
NP_ERROR_INVALID_ARGUMENT = 2153054211U,
// Token: 0x0400046F RID: 1135
NP_ERROR_UNKNOWN_PLATFORM_TYPE,
// Token: 0x04000470 RID: 1136
NP_ERROR_OUT_OF_MEMORY,
// Token: 0x04000471 RID: 1137
NP_ERROR_SIGNED_OUT,
// Token: 0x04000472 RID: 1138
NP_ERROR_USER_NOT_FOUND,
// Token: 0x04000473 RID: 1139
NP_ERROR_CALLBACK_ALREADY_REGISTERED,
// Token: 0x04000474 RID: 1140
NP_ERROR_CALLBACK_NOT_REGISTERED,
// Token: 0x04000475 RID: 1141
NP_ERROR_NOT_SIGNED_UP,
// Token: 0x04000476 RID: 1142
NP_ERROR_AGE_RESTRICTION,
// Token: 0x04000477 RID: 1143
NP_ERROR_LOGOUT,
// Token: 0x04000478 RID: 1144
NP_ERROR_LATEST_SYSTEM_SOFTWARE_EXIST,
// Token: 0x04000479 RID: 1145
NP_ERROR_LATEST_SYSTEM_SOFTWARE_EXIST_FOR_TITLE,
// Token: 0x0400047A RID: 1146
NP_ERROR_LATEST_PATCH_PKG_EXIST,
// Token: 0x0400047B RID: 1147
NP_ERROR_LATEST_PATCH_PKG_DOWNLOADED,
// Token: 0x0400047C RID: 1148
NP_ERROR_INVALID_SIZE,
// Token: 0x0400047D RID: 1149
NP_ERROR_ABORTED,
// Token: 0x0400047E RID: 1150
NP_ERROR_REQUEST_MAX,
// Token: 0x0400047F RID: 1151
NP_ERROR_REQUEST_NOT_FOUND,
// Token: 0x04000480 RID: 1152
NP_ERROR_INVALID_ID,
// Token: 0x04000481 RID: 1153
NP_ERROR_PATCH_NOT_CHECKED = 2153054232U,
// Token: 0x04000482 RID: 1154
NP_ERROR_TIMEOUT = 2153054234U,
// Token: 0x04000483 RID: 1155
NP_UTIL_ERROR_INVALID_NP_ID = 2153055749U,
// Token: 0x04000484 RID: 1156
NP_UTIL_ERROR_NOT_MATCH = 2153055753U,
// Token: 0x04000485 RID: 1157
NP_WEBAPI_ERROR_LIB_CONTEXT_NOT_FOUND = 2153064708U,
// Token: 0x04000486 RID: 1158
NP_TROPHY_ERROR_INVALID_ARGUMENT = 2153059844U,
// Token: 0x04000487 RID: 1159
NP_TROPHY_ERROR_ALREADY_REGISTERED = 2153059856U,
// Token: 0x04000488 RID: 1160
NP_TROPHY_ERROR_INVALID_GROUP_ID = 2153059851U,
// Token: 0x04000489 RID: 1161
NP_TROPHY_ERROR_TROPHY_ALREADY_UNLOCKED,
// Token: 0x0400048A RID: 1162
NP_TROPHY_ERROR_NOT_REGISTERED = 2153059855U,
// Token: 0x0400048B RID: 1163
NP_TROPHY_ERROR_TROPHY_NOT_UNLOCKED = 2153059866U,
// Token: 0x0400048C RID: 1164
TOOLKIT_NP_V2_ERROR_INCORRECT_ARGUMENTS = 2153065989U,
// Token: 0x0400048D RID: 1165
NET_ERROR_RESOLVER_ENODNS = 2151743969U,
// Token: 0x0400048E RID: 1166
NET_CTL_ERROR_NOT_CONNECTED = 2151751944U,
// Token: 0x0400048F RID: 1167
NET_CTL_ERROR_NOT_AVAIL,
// Token: 0x04000490 RID: 1168
NP_COMMUNITY_SERVER_ERROR_NOT_BEST_SCORE = 2153056277U,
// Token: 0x04000491 RID: 1169
NP_COMMUNITY_SERVER_ERROR_INVALID_SCORE = 2153056291U,
// Token: 0x04000492 RID: 1170
NP_COMMUNITY_SERVER_ERROR_GAME_DATA_ALREADY_EXISTS = 2153056300U,
// Token: 0x04000493 RID: 1171
NP_COMMUNITY_SERVER_ERROR_RANKING_GAME_DATA_MASTER_NOT_FOUND = 2153056280U,
// Token: 0x04000494 RID: 1172
NP_MATCHING2_ERROR_CONTEXT_NOT_STARTED = 2153057288U
}
// Token: 0x02000117 RID: 279
public struct UserServiceUserId
{
// Token: 0x170002B3 RID: 691
// (get) Token: 0x060005C4 RID: 1476 RVA: 0x0001044C File Offset: 0x0000F44C
// (set) Token: 0x060005C5 RID: 1477 RVA: 0x00010464 File Offset: 0x0000F464
public int Id
{
get
{
return this.id;
}
set
{
this.id = value;
}
}
// Token: 0x060005C6 RID: 1478 RVA: 0x00010470 File Offset: 0x0000F470
public override string ToString()
{
return "0x" + this.id.ToString("X8");
}
// Token: 0x060005C7 RID: 1479 RVA: 0x0001049C File Offset: 0x0000F49C
internal void Read(MemoryBuffer buffer)
{
this.id = buffer.ReadInt32();
}
// Token: 0x060005C8 RID: 1480 RVA: 0x000104AC File Offset: 0x0000F4AC
public static implicit operator Core.UserServiceUserId(int value)
{
return new Core.UserServiceUserId
{
id = value
};
}
// Token: 0x04000495 RID: 1173
public const int UserIdInvalid = -1;
// Token: 0x04000496 RID: 1174
internal int id;
}
// Token: 0x02000118 RID: 280
public struct NpAccountId
{
// Token: 0x170002B4 RID: 692
// (get) Token: 0x060005C9 RID: 1481 RVA: 0x000104D0 File Offset: 0x0000F4D0
// (set) Token: 0x060005CA RID: 1482 RVA: 0x000104E8 File Offset: 0x0000F4E8
public ulong Id
{
get
{
return this.id;
}
set
{
this.id = value;
}
}
// Token: 0x060005CB RID: 1483 RVA: 0x000104F4 File Offset: 0x0000F4F4
public override string ToString()
{
return "0x" + this.id.ToString("X16");
}
// Token: 0x060005CC RID: 1484 RVA: 0x00010520 File Offset: 0x0000F520
internal void Read(MemoryBuffer buffer)
{
this.id = buffer.ReadUInt64();
}
// Token: 0x060005CD RID: 1485 RVA: 0x00010530 File Offset: 0x0000F530
public static implicit operator Core.NpAccountId(ulong value)
{
return new Core.NpAccountId
{
id = value
};
}
// Token: 0x060005CE RID: 1486 RVA: 0x00010554 File Offset: 0x0000F554
public static bool operator ==(Core.NpAccountId a, Core.NpAccountId b)
{
return object.ReferenceEquals(a, b) || a.id == b.id;
}
// Token: 0x060005CF RID: 1487 RVA: 0x00010594 File Offset: 0x0000F594
public static bool operator !=(Core.NpAccountId a, Core.NpAccountId b)
{
return !(a == b);
}
// Token: 0x060005D0 RID: 1488 RVA: 0x000105B0 File Offset: 0x0000F5B0
public override bool Equals(object obj)
{
return obj is Core.NpAccountId && this == (Core.NpAccountId)obj;
}
// Token: 0x060005D1 RID: 1489 RVA: 0x000105E0 File Offset: 0x0000F5E0
public override int GetHashCode()
{
return this.id.GetHashCode();
}
// Token: 0x04000497 RID: 1175
internal ulong id;
}
// Token: 0x02000119 RID: 281
public struct NpId
{
// Token: 0x170002B5 RID: 693
// (get) Token: 0x060005D2 RID: 1490 RVA: 0x00010600 File Offset: 0x0000F600
public Core.OnlineID Handle
{
get
{
return this.handle;
}
}
// Token: 0x170002B6 RID: 694
// (get) Token: 0x060005D3 RID: 1491 RVA: 0x00010618 File Offset: 0x0000F618
public byte[] Opt
{
get
{
return this.opt;
}
}
// Token: 0x060005D4 RID: 1492 RVA: 0x00010630 File Offset: 0x0000F630
public override string ToString()
{
return this.handle.ToString();
}
// Token: 0x060005D5 RID: 1493 RVA: 0x0001064D File Offset: 0x0000F64D
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SceNpIdBegin);
this.handle.Read(buffer);
buffer.ReadData(ref this.opt);
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SceNpIdEnd);
}
// Token: 0x04000498 RID: 1176
internal Core.OnlineID handle;
// Token: 0x04000499 RID: 1177
internal byte[] opt;
}
// Token: 0x0200011A RID: 282
public class OnlineID
{
// Token: 0x170002B7 RID: 695
// (get) Token: 0x060005D6 RID: 1494 RVA: 0x0001067C File Offset: 0x0000F67C
public string Name
{
get
{
return this.name;
}
}
// Token: 0x060005D7 RID: 1495 RVA: 0x00010694 File Offset: 0x0000F694
public OnlineID()
{
this.data = new byte[16];
}
// Token: 0x060005D8 RID: 1496 RVA: 0x000106B8 File Offset: 0x0000F6B8
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NpOnlineIdBegin);
buffer.ReadData(ref this.data);
int num = 16;
for (int i = 0; i < this.data.Length; i++)
{
if (this.data[i] == 0)
{
num = i;
break;
}
}
if (num > 0)
{
this.name = Encoding.ASCII.GetString(this.data, 0, num);
}
else
{
this.name = "";
}
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NpOnlineIdEnd);
}
// Token: 0x060005D9 RID: 1497 RVA: 0x0001074C File Offset: 0x0000F74C
public override string ToString()
{
return this.name;
}
// Token: 0x060005DA RID: 1498 RVA: 0x00010764 File Offset: 0x0000F764
public static bool operator ==(Core.OnlineID a, Core.OnlineID b)
{
return object.ReferenceEquals(a, b) || (a != null && b != null && a.name == b.name);
}
// Token: 0x060005DB RID: 1499 RVA: 0x000107B0 File Offset: 0x0000F7B0
public static bool operator !=(Core.OnlineID a, Core.OnlineID b)
{
return !(a == b);
}
// Token: 0x060005DC RID: 1500 RVA: 0x000107CC File Offset: 0x0000F7CC
public override bool Equals(object obj)
{
return obj is Core.OnlineID && this == (Core.OnlineID)obj;
}
// Token: 0x060005DD RID: 1501 RVA: 0x000107F8 File Offset: 0x0000F7F8
public override int GetHashCode()
{
return this.name.GetHashCode();
}
// Token: 0x0400049A RID: 1178
public const int SCE_NP_ONLINEID_MAX_LENGTH = 16;
// Token: 0x0400049B RID: 1179
internal byte[] data;
// Token: 0x0400049C RID: 1180
internal string name = "";
}
// Token: 0x0200011B RID: 283
public class OnlineUser
{
// Token: 0x170002B8 RID: 696
// (get) Token: 0x060005DE RID: 1502 RVA: 0x00010818 File Offset: 0x0000F818
public Core.NpAccountId AccountId
{
get
{
return this.accountId;
}
}
// Token: 0x170002B9 RID: 697
// (get) Token: 0x060005DF RID: 1503 RVA: 0x00010830 File Offset: 0x0000F830
public Core.OnlineID OnlineID
{
get
{
return this.onlineId;
}
}
// Token: 0x060005E0 RID: 1504 RVA: 0x00010848 File Offset: 0x0000F848
public OnlineUser()
{
this.onlineId = new Core.OnlineID();
}
// Token: 0x060005E1 RID: 1505 RVA: 0x0001085E File Offset: 0x0000F85E
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.OnlineUserBegin);
this.accountId.Read(buffer);
this.onlineId.Read(buffer);
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.OnlineUserEnd);
}
// Token: 0x060005E2 RID: 1506 RVA: 0x0001088C File Offset: 0x0000F88C
public override string ToString()
{
return string.Format("0x{0:X} : {1}\n", this.accountId, this.onlineId.ToString());
}
// Token: 0x0400049D RID: 1181
internal Core.NpAccountId accountId;
// Token: 0x0400049E RID: 1182
internal Core.OnlineID onlineId;
}
// Token: 0x0200011C RID: 284
public class CountryCode
{
// Token: 0x060005E3 RID: 1507 RVA: 0x000108BE File Offset: 0x0000F8BE
public CountryCode()
{
this.code = "";
}
// Token: 0x060005E4 RID: 1508 RVA: 0x000108DF File Offset: 0x0000F8DF
public CountryCode(string countryCode)
{
this.Code = countryCode;
}
// Token: 0x170002BA RID: 698
// (get) Token: 0x060005E5 RID: 1509 RVA: 0x00010900 File Offset: 0x0000F900
// (set) Token: 0x060005E6 RID: 1510 RVA: 0x00010918 File Offset: 0x0000F918
public string Code
{
get
{
return this.code;
}
set
{
if (value.Length > 2)
{
throw new NpToolkitException("Country code can only be a maximum of 2 characters .");
}
this.code = value;
}
}
// Token: 0x060005E7 RID: 1511 RVA: 0x00010949 File Offset: 0x0000F949
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NpCountryCodeBegin);
buffer.ReadString(ref this.code);
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NpCountryCodeEnd);
}
// Token: 0x060005E8 RID: 1512 RVA: 0x0001096C File Offset: 0x0000F96C
public override string ToString()
{
return this.code;
}
// Token: 0x060005E9 RID: 1513 RVA: 0x00010984 File Offset: 0x0000F984
public static implicit operator Core.CountryCode(string countryCode)
{
return new Core.CountryCode
{
Code = countryCode
};
}
// Token: 0x0400049F RID: 1183
public const int SCE_NP_COUNTRY_CODE_LENGTH = 2;
// Token: 0x040004A0 RID: 1184
internal string code = "";
}
// Token: 0x0200011D RID: 285
public class LanguageCode
{
// Token: 0x060005EA RID: 1514 RVA: 0x000109A5 File Offset: 0x0000F9A5
public LanguageCode()
{
this.code = "";
}
// Token: 0x170002BB RID: 699
// (get) Token: 0x060005EB RID: 1515 RVA: 0x000109BC File Offset: 0x0000F9BC
// (set) Token: 0x060005EC RID: 1516 RVA: 0x000109D4 File Offset: 0x0000F9D4
public string Code
{
get
{
return this.code;
}
set
{
if (value.Length > 5)
{
throw new NpToolkitException("Language code can only be a maximum of 5 characters .");
}
this.code = value;
}
}
// Token: 0x060005ED RID: 1517 RVA: 0x00010A05 File Offset: 0x0000FA05
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NpLanguageCodeBegin);
buffer.ReadString(ref this.code);
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NpLanguageCodeEnd);
}
// Token: 0x060005EE RID: 1518 RVA: 0x00010A28 File Offset: 0x0000FA28
public override string ToString()
{
return this.code;
}
// Token: 0x060005EF RID: 1519 RVA: 0x00010A40 File Offset: 0x0000FA40
public static implicit operator Core.LanguageCode(string languageCode)
{
return new Core.LanguageCode
{
Code = languageCode
};
}
// Token: 0x040004A1 RID: 1185
public const int SCE_NP_LANGUAGE_CODE_MAX_LEN = 5;
// Token: 0x040004A2 RID: 1186
internal string code;
}
// Token: 0x0200011E RID: 286
public class TitleId
{
// Token: 0x170002BC RID: 700
// (get) Token: 0x060005F0 RID: 1520 RVA: 0x00010A64 File Offset: 0x0000FA64
public string Id
{
get
{
return Encoding.ASCII.GetString(this.data, 0, this.data.Length);
}
}
// Token: 0x060005F1 RID: 1521 RVA: 0x00010A8F File Offset: 0x0000FA8F
public TitleId()
{
this.data = new byte[12];
}
// Token: 0x060005F2 RID: 1522 RVA: 0x00010AA7 File Offset: 0x0000FAA7
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NpTitleIdBegin);
buffer.ReadData(ref this.data);
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NpTitleIdEnd);
}
// Token: 0x060005F3 RID: 1523 RVA: 0x00010ACC File Offset: 0x0000FACC
public override string ToString()
{
return Encoding.ASCII.GetString(this.data, 0, this.data.Length);
}
// Token: 0x040004A3 RID: 1187
public const int SCE_NP_TITLE_ID_LEN = 12;
// Token: 0x040004A4 RID: 1188
internal byte[] data;
}
// Token: 0x0200011F RID: 287
public class EmptyResponse : ResponseBase
{
// Token: 0x060005F4 RID: 1524 RVA: 0x00010AF8 File Offset: 0x0000FAF8
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
base.EndReadResponseBuffer(memoryBuffer);
}
}
}
}
+742
View File
@@ -0,0 +1,742 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x0200002E RID: 46
public class Friends
{
// Token: 0x060000D9 RID: 217
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetFriends(Friends.GetFriendsRequest request, out APIResult result);
// Token: 0x060000DA RID: 218
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetFriendsOfFriends(Friends.GetFriendsOfFriendsRequest request, out APIResult result);
// Token: 0x060000DB RID: 219
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetBlockedUsers(Friends.GetBlockedUsersRquest request, out APIResult result);
// Token: 0x060000DC RID: 220
[DllImport("UnityNpToolkit2")]
private static extern int PrxDisplayFriendRequestDialog(Friends.DisplayFriendRequestDialogRequest request, out APIResult result);
// Token: 0x060000DD RID: 221
[DllImport("UnityNpToolkit2")]
private static extern int PrxDisplayBlockUserDialog(Friends.DisplayBlockUserDialogRequest request, out APIResult result);
// Token: 0x060000DE RID: 222 RVA: 0x00004088 File Offset: 0x00003088
public static int GetFriends(Friends.GetFriendsRequest request, Friends.FriendsResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Friends.PrxGetFriends(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060000DF RID: 223 RVA: 0x000040DC File Offset: 0x000030DC
public static int GetFriendsOfFriends(Friends.GetFriendsOfFriendsRequest request, Friends.FriendsOfFriendsResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Friends.PrxGetFriendsOfFriends(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060000E0 RID: 224 RVA: 0x00004130 File Offset: 0x00003130
public static int GetBlockedUsers(Friends.GetBlockedUsersRquest request, Friends.BlockedUsersResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Friends.PrxGetBlockedUsers(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060000E1 RID: 225 RVA: 0x00004184 File Offset: 0x00003184
public static int DisplayFriendRequestDialog(Friends.DisplayFriendRequestDialogRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Friends.PrxDisplayFriendRequestDialog(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060000E2 RID: 226 RVA: 0x000041D8 File Offset: 0x000031D8
public static int DisplayBlockUserDialog(Friends.DisplayBlockUserDialogRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Friends.PrxDisplayBlockUserDialog(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0200002F RID: 47
public class Friend
{
// Token: 0x1700005F RID: 95
// (get) Token: 0x060000E4 RID: 228 RVA: 0x00004234 File Offset: 0x00003234
public Profiles.Profile Profile
{
get
{
return this.profile;
}
}
// Token: 0x17000060 RID: 96
// (get) Token: 0x060000E5 RID: 229 RVA: 0x0000424C File Offset: 0x0000324C
public Presence.UserPresence Presence
{
get
{
return this.presence;
}
}
// Token: 0x060000E7 RID: 231 RVA: 0x00004288 File Offset: 0x00003288
public override string ToString()
{
string text = "Profile:\n" + this.profile.ToString();
return text + "\nPresence:\n" + this.presence.ToString();
}
// Token: 0x060000E8 RID: 232 RVA: 0x000042C8 File Offset: 0x000032C8
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.FriendBegin);
this.profile.Read(buffer);
this.presence.Read(buffer);
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.FriendEnd);
}
// Token: 0x04000096 RID: 150
internal Profiles.Profile profile = new Profiles.Profile();
// Token: 0x04000097 RID: 151
internal Presence.UserPresence presence = new Presence.UserPresence();
}
// Token: 0x02000030 RID: 48
public enum FriendsRetrievalModes
{
// Token: 0x04000099 RID: 153
invalid,
// Token: 0x0400009A RID: 154
all,
// Token: 0x0400009B RID: 155
online,
// Token: 0x0400009C RID: 156
inContext,
// Token: 0x0400009D RID: 157
tryCached
}
// Token: 0x02000031 RID: 49
[StructLayout(LayoutKind.Sequential)]
public class GetFriendsRequest : RequestBase
{
// Token: 0x17000061 RID: 97
// (get) Token: 0x060000E9 RID: 233 RVA: 0x000042F8 File Offset: 0x000032F8
// (set) Token: 0x060000EA RID: 234 RVA: 0x00004310 File Offset: 0x00003310
public Friends.FriendsRetrievalModes Mode
{
get
{
return this.mode;
}
set
{
this.mode = value;
}
}
// Token: 0x17000062 RID: 98
// (get) Token: 0x060000EB RID: 235 RVA: 0x0000431C File Offset: 0x0000331C
// (set) Token: 0x060000EC RID: 236 RVA: 0x00004334 File Offset: 0x00003334
public uint Limit
{
get
{
return this.limit;
}
set
{
this.limit = value;
}
}
// Token: 0x17000063 RID: 99
// (get) Token: 0x060000ED RID: 237 RVA: 0x00004340 File Offset: 0x00003340
// (set) Token: 0x060000EE RID: 238 RVA: 0x00004358 File Offset: 0x00003358
public uint Offset
{
get
{
return this.offset;
}
set
{
this.offset = value;
}
}
// Token: 0x060000EF RID: 239 RVA: 0x00004362 File Offset: 0x00003362
public GetFriendsRequest()
: base(ServiceTypes.Friends, FunctionTypes.FriendsGetFriends)
{
this.mode = Friends.FriendsRetrievalModes.invalid;
this.limit = 0U;
this.offset = 0U;
}
// Token: 0x0400009E RID: 158
internal Friends.FriendsRetrievalModes mode;
// Token: 0x0400009F RID: 159
internal uint limit;
// Token: 0x040000A0 RID: 160
internal uint offset;
}
// Token: 0x02000032 RID: 50
public class FriendsResponse : ResponseBase
{
// Token: 0x17000064 RID: 100
// (get) Token: 0x060000F0 RID: 240 RVA: 0x00004388 File Offset: 0x00003388
public Friends.Friend[] Friends
{
get
{
return this.friends;
}
}
// Token: 0x060000F1 RID: 241 RVA: 0x000043A0 File Offset: 0x000033A0
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.FriendsBegin);
uint num = memoryBuffer.ReadUInt32();
this.friends = new Friends.Friend[num];
int num2 = 0;
while ((long)num2 < (long)((ulong)num))
{
this.friends[num2] = new Friends.Friend();
this.friends[num2].Read(memoryBuffer);
num2++;
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.FriendsEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040000A1 RID: 161
internal Friends.Friend[] friends;
}
// Token: 0x02000033 RID: 51
public class FriendsOfFriend
{
// Token: 0x17000065 RID: 101
// (get) Token: 0x060000F3 RID: 243 RVA: 0x0000442C File Offset: 0x0000342C
public Core.OnlineUser OriginalFriend
{
get
{
return this.originalFriend;
}
}
// Token: 0x17000066 RID: 102
// (get) Token: 0x060000F4 RID: 244 RVA: 0x00004444 File Offset: 0x00003444
public Core.OnlineUser[] Users
{
get
{
return this.users;
}
}
// Token: 0x060000F5 RID: 245 RVA: 0x0000445C File Offset: 0x0000345C
public FriendsOfFriend()
{
this.originalFriend = new Core.OnlineUser();
}
// Token: 0x040000A2 RID: 162
internal Core.OnlineUser originalFriend;
// Token: 0x040000A3 RID: 163
internal Core.OnlineUser[] users;
}
// Token: 0x02000034 RID: 52
[StructLayout(LayoutKind.Sequential)]
public class GetFriendsOfFriendsRequest : RequestBase
{
// Token: 0x17000067 RID: 103
// (get) Token: 0x060000F6 RID: 246 RVA: 0x00004474 File Offset: 0x00003474
// (set) Token: 0x060000F7 RID: 247 RVA: 0x000044BC File Offset: 0x000034BC
public Core.NpAccountId[] AccountIds
{
get
{
Core.NpAccountId[] array;
if (this.numAccountIds == 0U)
{
array = null;
}
else
{
Core.NpAccountId[] array2 = new Core.NpAccountId[this.numAccountIds];
Array.Copy(this.accountIds, array2, (long)((ulong)this.numAccountIds));
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 10)
{
throw new NpToolkitException("The size of the array is more than " + 10);
}
value.CopyTo(this.accountIds, 0);
this.numAccountIds = (uint)value.Length;
}
else
{
this.numAccountIds = 0U;
}
}
}
// Token: 0x060000F8 RID: 248 RVA: 0x0000451C File Offset: 0x0000351C
public GetFriendsOfFriendsRequest()
: base(ServiceTypes.Friends, FunctionTypes.FriendsGetFriendsOfFriends)
{
this.accountIds = new Core.NpAccountId[10];
this.numAccountIds = 0U;
}
// Token: 0x040000A4 RID: 164
public const int MAX_ACCOUNT_IDS = 10;
// Token: 0x040000A5 RID: 165
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
internal Core.NpAccountId[] accountIds;
// Token: 0x040000A6 RID: 166
internal uint numAccountIds;
}
// Token: 0x02000035 RID: 53
public class FriendsOfFriendsResponse : ResponseBase
{
// Token: 0x17000068 RID: 104
// (get) Token: 0x060000F9 RID: 249 RVA: 0x00004540 File Offset: 0x00003540
public Friends.FriendsOfFriend[] FriendsOfFriends
{
get
{
return this.friendsOfFriends;
}
}
// Token: 0x060000FA RID: 250 RVA: 0x00004558 File Offset: 0x00003558
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.FriendsOfFriendsBegin);
uint num = memoryBuffer.ReadUInt32();
this.friendsOfFriends = new Friends.FriendsOfFriend[num];
int num2 = 0;
while ((long)num2 < (long)((ulong)num))
{
this.friendsOfFriends[num2] = new Friends.FriendsOfFriend();
this.friendsOfFriends[num2].originalFriend.Read(memoryBuffer);
uint num3 = memoryBuffer.ReadUInt32();
this.friendsOfFriends[num2].users = new Core.OnlineUser[num3];
int num4 = 0;
while ((long)num4 < (long)((ulong)num3))
{
this.friendsOfFriends[num2].users[num4] = new Core.OnlineUser();
this.friendsOfFriends[num2].users[num4].Read(memoryBuffer);
num4++;
}
num2++;
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.FriendsOfFriendsEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040000A7 RID: 167
internal Friends.FriendsOfFriend[] friendsOfFriends;
}
// Token: 0x02000036 RID: 54
public enum BlockedUsersRetrievalMode
{
// Token: 0x040000A9 RID: 169
invalid,
// Token: 0x040000AA RID: 170
all,
// Token: 0x040000AB RID: 171
tryCached
}
// Token: 0x02000037 RID: 55
[StructLayout(LayoutKind.Sequential)]
public class GetBlockedUsersRquest : RequestBase
{
// Token: 0x17000069 RID: 105
// (get) Token: 0x060000FC RID: 252 RVA: 0x0000466C File Offset: 0x0000366C
// (set) Token: 0x060000FD RID: 253 RVA: 0x00004684 File Offset: 0x00003684
public Friends.BlockedUsersRetrievalMode Mode
{
get
{
return this.mode;
}
set
{
this.mode = value;
}
}
// Token: 0x1700006A RID: 106
// (get) Token: 0x060000FE RID: 254 RVA: 0x00004690 File Offset: 0x00003690
// (set) Token: 0x060000FF RID: 255 RVA: 0x000046A8 File Offset: 0x000036A8
public uint Limit
{
get
{
return this.limit;
}
set
{
this.limit = value;
}
}
// Token: 0x1700006B RID: 107
// (get) Token: 0x06000100 RID: 256 RVA: 0x000046B4 File Offset: 0x000036B4
// (set) Token: 0x06000101 RID: 257 RVA: 0x000046CC File Offset: 0x000036CC
public uint Offset
{
get
{
return this.offset;
}
set
{
this.offset = value;
}
}
// Token: 0x06000102 RID: 258 RVA: 0x000046D6 File Offset: 0x000036D6
public GetBlockedUsersRquest()
: base(ServiceTypes.Friends, FunctionTypes.FriendsGetBlockedUsers)
{
this.mode = Friends.BlockedUsersRetrievalMode.invalid;
this.limit = 0U;
this.offset = 0U;
}
// Token: 0x040000AC RID: 172
internal Friends.BlockedUsersRetrievalMode mode;
// Token: 0x040000AD RID: 173
internal uint limit;
// Token: 0x040000AE RID: 174
internal uint offset;
}
// Token: 0x02000038 RID: 56
public class BlockedUsersResponse : ResponseBase
{
// Token: 0x1700006C RID: 108
// (get) Token: 0x06000103 RID: 259 RVA: 0x000046FC File Offset: 0x000036FC
public Core.OnlineUser[] Users
{
get
{
return this.users;
}
}
// Token: 0x06000104 RID: 260 RVA: 0x00004714 File Offset: 0x00003714
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.BlockedUsersBegin);
uint num = memoryBuffer.ReadUInt32();
this.users = new Core.OnlineUser[num];
int num2 = 0;
while ((long)num2 < (long)((ulong)num))
{
this.users[num2] = new Core.OnlineUser();
this.users[num2].Read(memoryBuffer);
num2++;
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.BlockedUsersEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040000AF RID: 175
internal Core.OnlineUser[] users;
}
// Token: 0x02000039 RID: 57
[StructLayout(LayoutKind.Sequential)]
public class DisplayFriendRequestDialogRequest : RequestBase
{
// Token: 0x1700006D RID: 109
// (get) Token: 0x06000106 RID: 262 RVA: 0x000047B8 File Offset: 0x000037B8
// (set) Token: 0x06000107 RID: 263 RVA: 0x000047D0 File Offset: 0x000037D0
public Core.NpAccountId TargetUser
{
get
{
return this.targetUser;
}
set
{
this.targetUser = value;
}
}
// Token: 0x06000108 RID: 264 RVA: 0x000047DA File Offset: 0x000037DA
public DisplayFriendRequestDialogRequest()
: base(ServiceTypes.Friends, FunctionTypes.FriendsDisplayFriendRequestDialog)
{
this.targetUser.id = 0UL;
}
// Token: 0x040000B0 RID: 176
internal Core.NpAccountId targetUser;
}
// Token: 0x0200003A RID: 58
[StructLayout(LayoutKind.Sequential)]
public class DisplayBlockUserDialogRequest : RequestBase
{
// Token: 0x1700006E RID: 110
// (get) Token: 0x06000109 RID: 265 RVA: 0x000047F8 File Offset: 0x000037F8
// (set) Token: 0x0600010A RID: 266 RVA: 0x00004810 File Offset: 0x00003810
public Core.NpAccountId TargetUser
{
get
{
return this.targetUser;
}
set
{
this.targetUser = value;
}
}
// Token: 0x0600010B RID: 267 RVA: 0x0000481A File Offset: 0x0000381A
public DisplayBlockUserDialogRequest()
: base(ServiceTypes.Friends, FunctionTypes.FriendsDisplayBlockUserDialog)
{
this.targetUser.id = 0UL;
}
// Token: 0x040000B1 RID: 177
internal Core.NpAccountId targetUser;
}
// Token: 0x0200003B RID: 59
public enum FriendListUpdateEvents
{
// Token: 0x040000B3 RID: 179
none,
// Token: 0x040000B4 RID: 180
friendAdded,
// Token: 0x040000B5 RID: 181
friendRemoved,
// Token: 0x040000B6 RID: 182
friendOnlineStatusChanged
}
// Token: 0x0200003C RID: 60
public class FriendListUpdateResponse : ResponseBase
{
// Token: 0x1700006F RID: 111
// (get) Token: 0x0600010C RID: 268 RVA: 0x00004838 File Offset: 0x00003838
public Core.OnlineUser LocalUpdatedUser
{
get
{
return this.localUpdatedUser;
}
}
// Token: 0x17000070 RID: 112
// (get) Token: 0x0600010D RID: 269 RVA: 0x00004850 File Offset: 0x00003850
public Core.OnlineUser RemoteUser
{
get
{
return this.remoteUser;
}
}
// Token: 0x17000071 RID: 113
// (get) Token: 0x0600010E RID: 270 RVA: 0x00004868 File Offset: 0x00003868
public Core.UserServiceUserId UserId
{
get
{
return this.userId;
}
}
// Token: 0x17000072 RID: 114
// (get) Token: 0x0600010F RID: 271 RVA: 0x00004880 File Offset: 0x00003880
public Friends.FriendListUpdateEvents EventType
{
get
{
return this.eventType;
}
}
// Token: 0x06000110 RID: 272 RVA: 0x00004898 File Offset: 0x00003898
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.FriendListUpdateBegin);
this.localUpdatedUser.Read(memoryBuffer);
this.remoteUser.Read(memoryBuffer);
this.userId = memoryBuffer.ReadInt32();
this.eventType = (Friends.FriendListUpdateEvents)memoryBuffer.ReadInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.FriendListUpdateEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040000B7 RID: 183
internal Core.OnlineUser localUpdatedUser = new Core.OnlineUser();
// Token: 0x040000B8 RID: 184
internal Core.OnlineUser remoteUser = new Core.OnlineUser();
// Token: 0x040000B9 RID: 185
internal Core.UserServiceUserId userId;
// Token: 0x040000BA RID: 186
internal Friends.FriendListUpdateEvents eventType;
}
// Token: 0x0200003D RID: 61
public class BlocklistUpdateResponse : ResponseBase
{
// Token: 0x17000073 RID: 115
// (get) Token: 0x06000112 RID: 274 RVA: 0x00004940 File Offset: 0x00003940
public Core.OnlineUser LocalUpdatedUser
{
get
{
return this.localUpdatedUser;
}
}
// Token: 0x17000074 RID: 116
// (get) Token: 0x06000113 RID: 275 RVA: 0x00004958 File Offset: 0x00003958
public Core.UserServiceUserId UserId
{
get
{
return this.userId;
}
}
// Token: 0x06000114 RID: 276 RVA: 0x00004970 File Offset: 0x00003970
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.BlocklistUpdateBegin);
this.localUpdatedUser.Read(memoryBuffer);
this.userId = memoryBuffer.ReadInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.BlocklistUpdateEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040000BB RID: 187
internal Core.OnlineUser localUpdatedUser = new Core.OnlineUser();
// Token: 0x040000BC RID: 188
internal Core.UserServiceUserId userId;
}
}
}
+257
View File
@@ -0,0 +1,257 @@
using System;
namespace Sony.NP
{
// Token: 0x02000134 RID: 308
public enum FunctionTypes
{
// Token: 0x040005A7 RID: 1447
Invalid,
// Token: 0x040005A8 RID: 1448
ActivityFeedGetSharedVideos,
// Token: 0x040005A9 RID: 1449
ActivityFeedGetPlayedWith,
// Token: 0x040005AA RID: 1450
ActivityFeedPostPlayedWith,
// Token: 0x040005AB RID: 1451
ActivityFeedGetWhoLiked,
// Token: 0x040005AC RID: 1452
ActivityFeedSetLiked,
// Token: 0x040005AD RID: 1453
ActivityFeedGetFeed,
// Token: 0x040005AE RID: 1454
ActivityFeedPostInGameStory,
// Token: 0x040005AF RID: 1455
AuthGetAuthCode,
// Token: 0x040005B0 RID: 1456
AuthGetIdToken,
// Token: 0x040005B1 RID: 1457
ChallengeConsumeChallenge,
// Token: 0x040005B2 RID: 1458
ChallengeSendChallenge,
// Token: 0x040005B3 RID: 1459
ChallengeGetReceivedChallenges,
// Token: 0x040005B4 RID: 1460
ChallengeGetChallengeData,
// Token: 0x040005B5 RID: 1461
ChallengeGetChallengeThumbnail,
// Token: 0x040005B6 RID: 1462
CommerceGetCategories,
// Token: 0x040005B7 RID: 1463
CommerceGetProducts,
// Token: 0x040005B8 RID: 1464
CommerceGetServiceEntitlements,
// Token: 0x040005B9 RID: 1465
CommerceConsumeServiceEntitlement,
// Token: 0x040005BA RID: 1466
CommerceDisplayCategoryBrowseDialog,
// Token: 0x040005BB RID: 1467
CommerceDisplayProductBrowseDialog,
// Token: 0x040005BC RID: 1468
CommerceDisplayVoucherCodeInputDialog,
// Token: 0x040005BD RID: 1469
CommerceDisplayCheckoutDialog,
// Token: 0x040005BE RID: 1470
CommerceDisplayJoinPlusDialog,
// Token: 0x040005BF RID: 1471
CommerceDisplayDownloadListDialog,
// Token: 0x040005C0 RID: 1472
CommerceSetPsStoreIconDisplayState,
// Token: 0x040005C1 RID: 1473
EventsClientGetEvent,
// Token: 0x040005C2 RID: 1474
FriendsGetFriends,
// Token: 0x040005C3 RID: 1475
FriendsGetFriendsOfFriends,
// Token: 0x040005C4 RID: 1476
FriendsGetBlockedUsers,
// Token: 0x040005C5 RID: 1477
FriendsDisplayFriendRequestDialog,
// Token: 0x040005C6 RID: 1478
FriendsDisplayBlockUserDialog,
// Token: 0x040005C7 RID: 1479
MatchingSetInitConfiguration,
// Token: 0x040005C8 RID: 1480
MatchingGetWorlds,
// Token: 0x040005C9 RID: 1481
MatchingCreateRoom,
// Token: 0x040005CA RID: 1482
MatchingLeaveRoom,
// Token: 0x040005CB RID: 1483
MatchingSearchRooms,
// Token: 0x040005CC RID: 1484
MatchingJoinRoom,
// Token: 0x040005CD RID: 1485
MatchingGetRoomPingTime,
// Token: 0x040005CE RID: 1486
MatchingKickOutRoomMember,
// Token: 0x040005CF RID: 1487
MatchingSendRoomMessage,
// Token: 0x040005D0 RID: 1488
MatchingGetAttributes,
// Token: 0x040005D1 RID: 1489
MatchingSetRoomInfo,
// Token: 0x040005D2 RID: 1490
MatchingSendInvitation,
// Token: 0x040005D3 RID: 1491
MatchingGetData,
// Token: 0x040005D4 RID: 1492
MatchingSetMembersAsRecentlyMet,
// Token: 0x040005D5 RID: 1493
MessagingSendInGameMessage,
// Token: 0x040005D6 RID: 1494
MessagingSendGameDataMessage,
// Token: 0x040005D7 RID: 1495
MessagingDisplayReceivedGameDataMessagesDialog,
// Token: 0x040005D8 RID: 1496
MessagingGetReceivedGameDataMessages,
// Token: 0x040005D9 RID: 1497
MessagingConsumeGameDataMessage,
// Token: 0x040005DA RID: 1498
MessagingGetGameDataMessageThumbnail,
// Token: 0x040005DB RID: 1499
MessagingGetGameDataMessageAttachment,
// Token: 0x040005DC RID: 1500
NetworkUtilsGetBandwidthInfo,
// Token: 0x040005DD RID: 1501
NetworkUtilsGetBasicNetworkInfo,
// Token: 0x040005DE RID: 1502
NetworkUtilsGetDetailedNetworkInfo,
// Token: 0x040005DF RID: 1503
NpUtilsDisplaySigninDialog,
// Token: 0x040005E0 RID: 1504
NpUtilsSetTitleIdForDevelopment,
// Token: 0x040005E1 RID: 1505
NpUtilsCheckAvailability,
// Token: 0x040005E2 RID: 1506
PresenceSetPresence,
// Token: 0x040005E3 RID: 1507
PresenceGetPresence,
// Token: 0x040005E4 RID: 1508
PresenceDeletePresence,
// Token: 0x040005E5 RID: 1509
RankingSetScore,
// Token: 0x040005E6 RID: 1510
RankingGetRangeOfRanks,
// Token: 0x040005E7 RID: 1511
RankingGetFriendsRanks,
// Token: 0x040005E8 RID: 1512
RankingGetUsersRanks,
// Token: 0x040005E9 RID: 1513
RankingSetGameData,
// Token: 0x040005EA RID: 1514
RankingGetGameData,
// Token: 0x040005EB RID: 1515
SessionSendInvitation,
// Token: 0x040005EC RID: 1516
SessionDisplayReceivedInvitationsDialog,
// Token: 0x040005ED RID: 1517
SessionGetReceivedInvitations,
// Token: 0x040005EE RID: 1518
SessionGetInvitationData,
// Token: 0x040005EF RID: 1519
SessionConsumeInvitation,
// Token: 0x040005F0 RID: 1520
SessionGetData,
// Token: 0x040005F1 RID: 1521
SessionLeave,
// Token: 0x040005F2 RID: 1522
SessionUpdate,
// Token: 0x040005F3 RID: 1523
SessionGetInfo,
// Token: 0x040005F4 RID: 1524
SessionJoin,
// Token: 0x040005F5 RID: 1525
SessionSearch,
// Token: 0x040005F6 RID: 1526
SessionCreate,
// Token: 0x040005F7 RID: 1527
SocialMediaPostMessageToFacebook,
// Token: 0x040005F8 RID: 1528
SharedMediaGetScreenshots,
// Token: 0x040005F9 RID: 1529
SharedMediaGetBroadcasts,
// Token: 0x040005FA RID: 1530
SharedMediaGetVideos,
// Token: 0x040005FB RID: 1531
TrophyRegisterTrophyPack,
// Token: 0x040005FC RID: 1532
TrophyUnlock,
// Token: 0x040005FD RID: 1533
TrophySetScreenshot,
// Token: 0x040005FE RID: 1534
TrophyGetUnlockedTrophies,
// Token: 0x040005FF RID: 1535
TrophyDisplayTrophyListDialog,
// Token: 0x04000600 RID: 1536
TrophyGetTrophyPackSummary,
// Token: 0x04000601 RID: 1537
TrophyGetTrophyPackGroup,
// Token: 0x04000602 RID: 1538
TrophyGetTrophyPackTrophy,
// Token: 0x04000603 RID: 1539
TssGetData,
// Token: 0x04000604 RID: 1540
TusSetVariables,
// Token: 0x04000605 RID: 1541
TusGetVariables,
// Token: 0x04000606 RID: 1542
TusAddToAndGetVariable,
// Token: 0x04000607 RID: 1543
TusSetData,
// Token: 0x04000608 RID: 1544
TusGetData,
// Token: 0x04000609 RID: 1545
TusDeleteData,
// Token: 0x0400060A RID: 1546
UserProfileGetNpProfiles,
// Token: 0x0400060B RID: 1547
UserProfileGetVerifiedAccountsForTitle,
// Token: 0x0400060C RID: 1548
UserProfileDisplayUserProfileDialog,
// Token: 0x0400060D RID: 1549
UserProfileDisplayGriefReportingDialog,
// Token: 0x0400060E RID: 1550
WordfilterFilterComment,
// Token: 0x0400060F RID: 1551
CoreTerminateService,
// Token: 0x04000610 RID: 1552
NotificationRefreshRoom,
// Token: 0x04000611 RID: 1553
NotificationNewRoomMessage,
// Token: 0x04000612 RID: 1554
NotificationDialogOpened,
// Token: 0x04000613 RID: 1555
NotificationDialogClosed,
// Token: 0x04000614 RID: 1556
NotificationUserStateChange,
// Token: 0x04000615 RID: 1557
NotificationNetStateChange,
// Token: 0x04000616 RID: 1558
NotificationNewInGameMessage,
// Token: 0x04000617 RID: 1559
NotificationUpdateFriendsList,
// Token: 0x04000618 RID: 1560
NotificationNewInvitation,
// Token: 0x04000619 RID: 1561
NotificationNewGameDataMessage,
// Token: 0x0400061A RID: 1562
NotificationUpdateFriendPresence,
// Token: 0x0400061B RID: 1563
NotificationUpdateBlockedUsersList,
// Token: 0x0400061C RID: 1564
NotificationAborted,
// Token: 0x0400061D RID: 1565
NumFunctionTypes,
// Token: 0x0400061E RID: 1566
NotificationSessionInvitationEvent,
// Token: 0x0400061F RID: 1567
NotificationPlayTogetherHostEvent,
// Token: 0x04000620 RID: 1568
NotificationGameCustomDataEvent,
// Token: 0x04000621 RID: 1569
NpUtilsCheckPlus,
// Token: 0x04000622 RID: 1570
NpUtilsGetParentalControlInfo
}
}
+64
View File
@@ -0,0 +1,64 @@
using System;
namespace Sony.NP
{
// Token: 0x02000120 RID: 288
public class Icon
{
// Token: 0x170002BD RID: 701
// (get) Token: 0x060005F6 RID: 1526 RVA: 0x00010B40 File Offset: 0x0000FB40
public byte[] RawBytes
{
get
{
return this.rawBytes;
}
}
// Token: 0x170002BE RID: 702
// (get) Token: 0x060005F7 RID: 1527 RVA: 0x00010B58 File Offset: 0x0000FB58
public int Width
{
get
{
return this.width;
}
}
// Token: 0x170002BF RID: 703
// (get) Token: 0x060005F8 RID: 1528 RVA: 0x00010B70 File Offset: 0x0000FB70
public int Height
{
get
{
return this.height;
}
}
// Token: 0x060005F9 RID: 1529 RVA: 0x00010B88 File Offset: 0x0000FB88
internal static Icon ReadAndCreate(MemoryBuffer buffer)
{
Icon icon = null;
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.PNGBegin);
if (buffer.ReadBool())
{
icon = new Icon();
int num = buffer.ReadInt32();
icon.width = buffer.ReadInt32();
icon.height = buffer.ReadInt32();
buffer.ReadData(ref icon.rawBytes);
}
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.PNGEnd);
return icon;
}
// Token: 0x040004A5 RID: 1189
internal byte[] rawBytes;
// Token: 0x040004A6 RID: 1190
internal int width;
// Token: 0x040004A7 RID: 1191
internal int height;
}
}
+70
View File
@@ -0,0 +1,70 @@
using System;
using System.Reflection;
namespace Sony.NP
{
// Token: 0x0200012E RID: 302
public struct InitResult
{
// Token: 0x170002DC RID: 732
// (get) Token: 0x06000637 RID: 1591 RVA: 0x00011458 File Offset: 0x00010458
public bool Initialized
{
get
{
return this.initialized;
}
}
// Token: 0x170002DD RID: 733
// (get) Token: 0x06000638 RID: 1592 RVA: 0x00011470 File Offset: 0x00010470
public uint SceSDKVersionValue
{
get
{
return this.sceSDKVersion;
}
}
// Token: 0x170002DE RID: 734
// (get) Token: 0x06000639 RID: 1593 RVA: 0x00011488 File Offset: 0x00010488
public Version DllVersion
{
get
{
return this.dllVersion;
}
}
// Token: 0x170002DF RID: 735
// (get) Token: 0x0600063A RID: 1594 RVA: 0x000114A0 File Offset: 0x000104A0
public SceSDKVersion SceSDKVersion
{
get
{
SceSDKVersion sceSDKVersion;
sceSDKVersion.Patch = this.sceSDKVersion & 4095U;
sceSDKVersion.Minor = (this.sceSDKVersion >> 12) & 4095U;
sceSDKVersion.Major = this.sceSDKVersion >> 24;
return sceSDKVersion;
}
}
// Token: 0x0600063B RID: 1595 RVA: 0x000114EC File Offset: 0x000104EC
internal void Initialise(NativeInitResult nativeResult)
{
this.initialized = nativeResult.initialized;
this.sceSDKVersion = nativeResult.sceSDKVersion;
this.dllVersion = Assembly.GetExecutingAssembly().GetName().Version;
}
// Token: 0x040004EF RID: 1263
internal bool initialized;
// Token: 0x040004F0 RID: 1264
internal uint sceSDKVersion;
// Token: 0x040004F1 RID: 1265
internal Version dllVersion;
}
}
+57
View File
@@ -0,0 +1,57 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x0200012F RID: 303
[StructLayout(LayoutKind.Sequential)]
public class InitToolkit
{
// Token: 0x0600063C RID: 1596 RVA: 0x00011520 File Offset: 0x00010520
public InitToolkit()
{
this.contentRestrictions.Init();
this.serverPushNotifications.Init();
this.threadSettings.Init();
this.memoryPools.Init();
this.serverPushNotificationsFlags = PushNotificationsFlags.None;
this.notificationsFlagsSet = false;
}
// Token: 0x0600063D RID: 1597 RVA: 0x00011574 File Offset: 0x00010574
public void SetPushNotificationsFlags(PushNotificationsFlags pushNotifications)
{
this.serverPushNotificationsFlags = pushNotifications;
this.notificationsFlagsSet = true;
}
// Token: 0x0600063E RID: 1598 RVA: 0x00011588 File Offset: 0x00010588
public void CheckValid()
{
if ((this.threadSettings.affinity & (Affinity)3) != (Affinity)0)
{
throw new NpToolkitException("Can't set thread affinity to Core 0 or Core 1 as this will interfer with the main loop and gfx threads.");
}
}
// Token: 0x040004F2 RID: 1266
public ContentRestriction contentRestrictions;
// Token: 0x040004F3 RID: 1267
[Obsolete("serverPushNotifications is deprecated, please use SetPushNotificationsFlags instead.")]
public ServerPushNotifications serverPushNotifications;
// Token: 0x040004F4 RID: 1268
private PushNotificationsFlags serverPushNotificationsFlags;
// Token: 0x040004F5 RID: 1269
[MarshalAs(UnmanagedType.I1)]
private bool notificationsFlagsSet;
// Token: 0x040004F6 RID: 1270
public ThreadSettings threadSettings;
// Token: 0x040004F7 RID: 1271
public MemoryPools memoryPools;
}
}
+171
View File
@@ -0,0 +1,171 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x0200003E RID: 62
public class Main
{
// Token: 0x06000116 RID: 278
[DllImport("UnityNpToolkit2")]
private static extern void PrxInitialize(InitToolkit initParams, out NativeInitResult initResult, Main.OnPrxCallbackEvent toolkitEventCallback, Main.OnPrxCallbackEvent npRequestEventCallback, out APIResult result);
// Token: 0x06000117 RID: 279
[DllImport("UnityNpToolkit2")]
private static extern void PrxValidateToolkit(Main.ValidationChecks checks, out APIResult result);
// Token: 0x06000118 RID: 280
[DllImport("UnityNpToolkit2")]
private static extern void PrxShutDown();
// Token: 0x06000119 RID: 281
[DllImport("UnityNpToolkit2")]
private static extern int PrxUpdate();
// Token: 0x0600011A RID: 282
[DllImport("UnityNpToolkit2")]
private static extern bool PrxAbortRequest(uint npRequestId, out APIResult result);
// Token: 0x0600011B RID: 283 RVA: 0x000049F4 File Offset: 0x000039F4
public static InitResult Initialize(InitToolkit initParams)
{
Main.ValidationChecks validationChecks = new Main.ValidationChecks();
validationChecks.Init();
APIResult apiresult;
Main.PrxValidateToolkit(validationChecks, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
initParams.CheckValid();
Main.OnPrxCallbackEvent onPrxCallbackEvent = new Main.OnPrxCallbackEvent(PopulateThread.OnPrxNpToolkitEvent);
Main.OnPrxCallbackEvent onPrxCallbackEvent2 = new Main.OnPrxCallbackEvent(NpRequestsThread.OnPrxNpRequestEvent);
NativeInitResult nativeInitResult = default(NativeInitResult);
Main.PrxInitialize(initParams, out nativeInitResult, onPrxCallbackEvent, onPrxCallbackEvent2, out apiresult);
Main.initResult.Initialise(nativeInitResult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
PopulateThread.Start();
NpRequestsThread.Start();
return Main.initResult;
}
// Token: 0x14000001 RID: 1
// (add) Token: 0x0600011C RID: 284 RVA: 0x00004AA0 File Offset: 0x00003AA0
// (remove) Token: 0x0600011D RID: 285 RVA: 0x00004AB7 File Offset: 0x00003AB7
public static event Main.EventHandler OnAsyncEvent;
// Token: 0x0600011E RID: 286 RVA: 0x00004AD0 File Offset: 0x00003AD0
internal static void InternalEventHandler(NpCallbackEvent npEvent)
{
if (npEvent.service == ServiceTypes.Notification)
{
if (npEvent.apiCalled == FunctionTypes.NotificationAborted)
{
PendingAsyncRequestList.RequestHasBeenAborted(npEvent.npRequestId);
}
}
}
// Token: 0x0600011F RID: 287 RVA: 0x00004B10 File Offset: 0x00003B10
internal static void CallOnAsyncEvent(NpCallbackEvent npEvent)
{
Main.InternalEventHandler(npEvent);
try
{
Main.OnAsyncEvent(npEvent);
}
catch (Exception ex)
{
Console.WriteLine("Exception Occured in OnAsyncEvent handler : " + ex.Message);
Console.WriteLine(ex.StackTrace);
throw;
}
}
// Token: 0x06000120 RID: 288 RVA: 0x00004B6C File Offset: 0x00003B6C
public static void Update()
{
Main.PrxUpdate();
}
// Token: 0x06000121 RID: 289 RVA: 0x00004B78 File Offset: 0x00003B78
private static void PumpAsyncEvents()
{
if (Main.OnAsyncEvent != null)
{
for (NpCallbackEvent npCallbackEvent = PendingCallbackQueue.PopEvent(); npCallbackEvent != null; npCallbackEvent = PendingCallbackQueue.PopEvent())
{
Main.InternalEventHandler(npCallbackEvent);
Main.OnAsyncEvent(npCallbackEvent);
}
}
}
// Token: 0x06000122 RID: 290 RVA: 0x00004BC2 File Offset: 0x00003BC2
public static void ShutDown()
{
PopulateThread.Stop();
NpRequestsThread.Stop();
PendingAsyncRequestList.Shutdown();
Main.PrxShutDown();
}
// Token: 0x06000123 RID: 291 RVA: 0x00004BE0 File Offset: 0x00003BE0
public static List<PendingRequest> GetPendingRequests()
{
return PendingAsyncRequestList.PendingRequests;
}
// Token: 0x06000124 RID: 292 RVA: 0x00004BF8 File Offset: 0x00003BF8
public static bool AbortRequest(uint npRequestId)
{
bool flag;
if (!PendingAsyncRequestList.IsPending(npRequestId))
{
flag = false;
}
else
{
APIResult apiresult;
Main.PrxAbortRequest(npRequestId, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
PendingAsyncRequestList.MarkRequestAsAborting(npRequestId);
flag = true;
}
return flag;
}
// Token: 0x040000BD RID: 189
internal static InitResult initResult;
// Token: 0x0200003F RID: 63
// (Invoke) Token: 0x06000127 RID: 295
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate void OnPrxCallbackEvent();
// Token: 0x02000040 RID: 64
[StructLayout(LayoutKind.Sequential)]
internal class ValidationChecks
{
// Token: 0x0600012A RID: 298 RVA: 0x00004C47 File Offset: 0x00003C47
public void Init()
{
this.expectedNumFunctionTypes = 118U;
}
// Token: 0x040000BF RID: 191
internal uint expectedNumFunctionTypes;
}
// Token: 0x02000041 RID: 65
// (Invoke) Token: 0x0600012D RID: 301
public delegate void EventHandler(NpCallbackEvent npEvent);
}
}
+5456
View File
@@ -0,0 +1,5456 @@
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace Sony.NP
{
// Token: 0x02000042 RID: 66
public class Matching
{
// Token: 0x06000130 RID: 304
[DllImport("UnityNpToolkit2")]
private static extern int PrxSetInitConfiguration(Matching.SetInitConfigurationRequest request, out APIResult result);
// Token: 0x06000131 RID: 305
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetWorlds(Matching.GetWorldsRequest request, out APIResult result);
// Token: 0x06000132 RID: 306
[DllImport("UnityNpToolkit2")]
private static extern int PrxCreateRoom(Matching.CreateRoomRequest request, out APIResult result);
// Token: 0x06000133 RID: 307
[DllImport("UnityNpToolkit2")]
private static extern int PrxLeaveRoom(Matching.LeaveRoomRequest request, out APIResult result);
// Token: 0x06000134 RID: 308
[DllImport("UnityNpToolkit2")]
private static extern int PrxSearchRooms(Matching.SearchRoomsRequest request, out APIResult result);
// Token: 0x06000135 RID: 309
[DllImport("UnityNpToolkit2")]
private static extern int PrxJoinRoom(Matching.JoinRoomRequest request, out APIResult result);
// Token: 0x06000136 RID: 310
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetRoomPingTime(Matching.GetRoomPingTimeRequest request, out APIResult result);
// Token: 0x06000137 RID: 311
[DllImport("UnityNpToolkit2")]
private static extern int PrxKickOutRoomMember(Matching.KickOutRoomMemberRequest request, out APIResult result);
// Token: 0x06000138 RID: 312
[DllImport("UnityNpToolkit2")]
private static extern int PrxSendRoomMessage(Matching.SendRoomMessageRequest request, out APIResult result);
// Token: 0x06000139 RID: 313
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetAttributes(Matching.GetAttributesRequest request, out APIResult result);
// Token: 0x0600013A RID: 314
[DllImport("UnityNpToolkit2")]
private static extern int PrxSetRoomInfo(Matching.SetRoomInfoRequest request, out APIResult result);
// Token: 0x0600013B RID: 315
[DllImport("UnityNpToolkit2")]
private static extern int PrxSendInvitation(Matching.SendInvitationRequest request, out APIResult result);
// Token: 0x0600013C RID: 316
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetData(Matching.GetDataRequest request, out APIResult result);
// Token: 0x0600013D RID: 317 RVA: 0x00004C5C File Offset: 0x00003C5C
public static int SetInitConfiguration(Matching.SetInitConfigurationRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Matching.PrxSetInitConfiguration(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600013E RID: 318 RVA: 0x00004CB0 File Offset: 0x00003CB0
public static int GetWorlds(Matching.GetWorldsRequest request, Matching.WorldsResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Matching.PrxGetWorlds(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600013F RID: 319 RVA: 0x00004D04 File Offset: 0x00003D04
public static int CreateRoom(Matching.CreateRoomRequest request, Matching.RoomResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
if (!request.image.IsValid())
{
throw new NpToolkitException("Request Image hasn't be defined. A session can't be created without an image.");
}
if (!request.image.Exists())
{
throw new NpToolkitException("Request Image doesn't exists. A session can't be created without an image. " + request.image.sessionImgPath);
}
if (request.status == null || request.status.Length == 0)
{
throw new NpToolkitException("Request Status text doesn't exists. A session can't be created without Status text being set.");
}
APIResult apiresult;
int num = Matching.PrxCreateRoom(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000140 RID: 320 RVA: 0x00004DCC File Offset: 0x00003DCC
public static int LeaveRoom(Matching.LeaveRoomRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Matching.PrxLeaveRoom(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000141 RID: 321 RVA: 0x00004E20 File Offset: 0x00003E20
public static int SearchRooms(Matching.SearchRoomsRequest request, Matching.RoomsResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Matching.PrxSearchRooms(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000142 RID: 322 RVA: 0x00004E74 File Offset: 0x00003E74
public static int JoinRoom(Matching.JoinRoomRequest request, Matching.RoomResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Matching.PrxJoinRoom(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000143 RID: 323 RVA: 0x00004EC8 File Offset: 0x00003EC8
public static int GetRoomPingTime(Matching.GetRoomPingTimeRequest request, Matching.GetRoomPingTimeResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Matching.PrxGetRoomPingTime(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000144 RID: 324 RVA: 0x00004F1C File Offset: 0x00003F1C
public static int KickOutRoomMember(Matching.KickOutRoomMemberRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Matching.PrxKickOutRoomMember(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000145 RID: 325 RVA: 0x00004F70 File Offset: 0x00003F70
public static int SendRoomMessage(Matching.SendRoomMessageRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Matching.PrxSendRoomMessage(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000146 RID: 326 RVA: 0x00004FC4 File Offset: 0x00003FC4
public static int GetAttributes(Matching.GetAttributesRequest request, Matching.RefreshRoomResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Matching.PrxGetAttributes(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000147 RID: 327 RVA: 0x00005018 File Offset: 0x00004018
public static int GetData(Matching.GetDataRequest request, Matching.GetDataResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Matching.PrxGetData(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000148 RID: 328 RVA: 0x0000506C File Offset: 0x0000406C
public static int SendInvitation(Matching.SendInvitationRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Matching.PrxSendInvitation(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000149 RID: 329 RVA: 0x000050C0 File Offset: 0x000040C0
public static int SetRoomInfo(Matching.SetRoomInfoRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Matching.PrxSetRoomInfo(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x040000C0 RID: 192
public const int INVALID_ROOM_MEMBER_ID = 0;
// Token: 0x02000043 RID: 67
public enum AttributeType
{
// Token: 0x040000C2 RID: 194
Invalid,
// Token: 0x040000C3 RID: 195
Integer,
// Token: 0x040000C4 RID: 196
Binary
}
// Token: 0x02000044 RID: 68
public enum AttributeScope
{
// Token: 0x040000C6 RID: 198
Invalid,
// Token: 0x040000C7 RID: 199
Room,
// Token: 0x040000C8 RID: 200
Member
}
// Token: 0x02000045 RID: 69
public enum RoomAttributeVisibility
{
// Token: 0x040000CA RID: 202
Invalid,
// Token: 0x040000CB RID: 203
Internal,
// Token: 0x040000CC RID: 204
External,
// Token: 0x040000CD RID: 205
Search
}
// Token: 0x02000046 RID: 70
public enum RoomVisibility
{
// Token: 0x040000CF RID: 207
Invalid,
// Token: 0x040000D0 RID: 208
PublicRoom,
// Token: 0x040000D1 RID: 209
PrivateRoom,
// Token: 0x040000D2 RID: 210
ReserveSlots
}
// Token: 0x02000047 RID: 71
public enum RoomMigrationType
{
// Token: 0x040000D4 RID: 212
OwnerBind,
// Token: 0x040000D5 RID: 213
OwnerMigration
}
// Token: 0x02000048 RID: 72
public enum TopologyType
{
// Token: 0x040000D7 RID: 215
Invalid,
// Token: 0x040000D8 RID: 216
None,
// Token: 0x040000D9 RID: 217
Mesh,
// Token: 0x040000DA RID: 218
Star
}
// Token: 0x02000049 RID: 73
public struct AttributeMetadata
{
// Token: 0x17000075 RID: 117
// (get) Token: 0x0600014B RID: 331 RVA: 0x0000511C File Offset: 0x0000411C
public string Name
{
get
{
return this.name;
}
}
// Token: 0x17000076 RID: 118
// (get) Token: 0x0600014C RID: 332 RVA: 0x00005134 File Offset: 0x00004134
public Matching.AttributeType Type
{
get
{
return this.type;
}
}
// Token: 0x17000077 RID: 119
// (get) Token: 0x0600014D RID: 333 RVA: 0x0000514C File Offset: 0x0000414C
public Matching.AttributeScope Scope
{
get
{
return this.scope;
}
}
// Token: 0x17000078 RID: 120
// (get) Token: 0x0600014E RID: 334 RVA: 0x00005164 File Offset: 0x00004164
public Matching.RoomAttributeVisibility RoomVisibility
{
get
{
return this.roomAttributeVisibility;
}
}
// Token: 0x17000079 RID: 121
// (get) Token: 0x0600014F RID: 335 RVA: 0x0000517C File Offset: 0x0000417C
public uint Size
{
get
{
return this.size;
}
}
// Token: 0x06000150 RID: 336 RVA: 0x00005194 File Offset: 0x00004194
private void InternalSetAttribute(string name, Matching.AttributeType type, Matching.AttributeScope scope, Matching.RoomAttributeVisibility roomAttributeVisibility, uint size)
{
if (name.Length > 31)
{
throw new NpToolkitException(string.Concat(new object[] { "Attribute ", name, " : The size of the name string is more than ", 31, " characters." }));
}
if (type == Matching.AttributeType.Invalid)
{
throw new NpToolkitException("Attribute " + name + " : Can't set an Invalid type.");
}
if (scope == Matching.AttributeScope.Invalid)
{
throw new NpToolkitException("Attribute " + name + " : Can't set an Invalid scope.");
}
if (scope == Matching.AttributeScope.Room && roomAttributeVisibility == Matching.RoomAttributeVisibility.Invalid)
{
throw new NpToolkitException("Attribute " + name + " : Can't set an Invalid roomAttributeVisibility when Scope is Room.");
}
if (type == Matching.AttributeType.Integer && size != 8U)
{
throw new NpToolkitException("Attribute " + name + " : Integer attribute must be size 8.");
}
if (type == Matching.AttributeType.Binary && size > 256U)
{
throw new NpToolkitException(string.Concat(new object[] { "Attribute ", name, " : Binary attribute size must not be more than ", 256 }));
}
if (scope == Matching.AttributeScope.Member && roomAttributeVisibility != Matching.RoomAttributeVisibility.Invalid)
{
throw new NpToolkitException(string.Concat(new string[]
{
"Attribute ",
name,
" : A Member attribute can't set a RoomAttributeVisibility of ",
roomAttributeVisibility.ToString(),
". It must always be set to RoomAttributeVisibility.Invalid."
}));
}
if (roomAttributeVisibility == Matching.RoomAttributeVisibility.Search && type == Matching.AttributeType.Binary && size > 64U)
{
throw new NpToolkitException("Attribute " + name + " : A Binary Search attribute can't be more than 64 bytes.");
}
this.name = name;
this.type = type;
this.scope = scope;
this.roomAttributeVisibility = roomAttributeVisibility;
this.size = size;
}
// Token: 0x06000151 RID: 337 RVA: 0x00005372 File Offset: 0x00004372
internal void Read(MemoryBuffer buffer)
{
buffer.ReadString(ref this.name);
this.type = (Matching.AttributeType)buffer.ReadUInt32();
this.scope = (Matching.AttributeScope)buffer.ReadUInt32();
this.roomAttributeVisibility = (Matching.RoomAttributeVisibility)buffer.ReadUInt32();
this.size = buffer.ReadUInt32();
}
// Token: 0x06000152 RID: 338 RVA: 0x000053B4 File Offset: 0x000043B4
public static Matching.AttributeMetadata CreateIntegerAttribute(string name, Matching.AttributeScope scope, Matching.RoomAttributeVisibility roomAttributeVisibility)
{
Matching.AttributeMetadata attributeMetadata = default(Matching.AttributeMetadata);
attributeMetadata.InternalSetAttribute(name, Matching.AttributeType.Integer, scope, roomAttributeVisibility, 8U);
return attributeMetadata;
}
// Token: 0x06000153 RID: 339 RVA: 0x000053DC File Offset: 0x000043DC
public static Matching.AttributeMetadata CreateBinaryAttribute(string name, Matching.AttributeScope scope, Matching.RoomAttributeVisibility roomAttributeVisibility, uint size)
{
Matching.AttributeMetadata attributeMetadata = default(Matching.AttributeMetadata);
attributeMetadata.InternalSetAttribute(name, Matching.AttributeType.Binary, scope, roomAttributeVisibility, size);
return attributeMetadata;
}
// Token: 0x040000DB RID: 219
public const int MAX_SIZE_NAME = 31;
// Token: 0x040000DC RID: 220
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
internal string name;
// Token: 0x040000DD RID: 221
internal Matching.AttributeType type;
// Token: 0x040000DE RID: 222
internal Matching.AttributeScope scope;
// Token: 0x040000DF RID: 223
internal Matching.RoomAttributeVisibility roomAttributeVisibility;
// Token: 0x040000E0 RID: 224
internal uint size;
}
// Token: 0x0200004A RID: 74
public struct Attribute
{
// Token: 0x1700007A RID: 122
// (get) Token: 0x06000154 RID: 340 RVA: 0x00005404 File Offset: 0x00004404
public Matching.AttributeMetadata Metadata
{
get
{
return this.metadata;
}
}
// Token: 0x1700007B RID: 123
// (get) Token: 0x06000155 RID: 341 RVA: 0x0000541C File Offset: 0x0000441C
// (set) Token: 0x06000156 RID: 342 RVA: 0x00005468 File Offset: 0x00004468
public int IntValue
{
get
{
if (this.metadata.type != Matching.AttributeType.Integer)
{
throw new NpToolkitException("Attribute " + this.metadata.name + " : This is not an interger attribute type.");
}
return this.intValue;
}
set
{
if (this.metadata.type != Matching.AttributeType.Integer)
{
throw new NpToolkitException("Attribute " + this.metadata.name + " : Expecting an interger attribute type.");
}
this.intValue = value;
}
}
// Token: 0x1700007C RID: 124
// (get) Token: 0x06000157 RID: 343 RVA: 0x000054B0 File Offset: 0x000044B0
// (set) Token: 0x06000158 RID: 344 RVA: 0x00005540 File Offset: 0x00004540
public byte[] BinValue
{
get
{
if (this.metadata.type != Matching.AttributeType.Binary)
{
throw new NpToolkitException("Attribute " + this.metadata.name + " : This is not a binary attribute type.");
}
byte[] array;
if (this.metadata.size == 0U)
{
array = null;
}
else
{
byte[] array2 = new byte[this.metadata.size];
Array.Copy(this.binValue, array2, (long)((ulong)this.metadata.size));
array = this.binValue;
}
return array;
}
set
{
if (this.metadata.type != Matching.AttributeType.Binary)
{
throw new NpToolkitException("Attribute " + this.metadata.name + " : Expected a binary attribute type.");
}
if (value == null)
{
throw new NpToolkitException("Attribute " + this.metadata.name + " : Expected a non-null byte array.");
}
if (value.Length > 256)
{
throw new NpToolkitException(string.Concat(new object[]
{
"Attribute ",
this.metadata.name,
" : Binary array is more than ",
256
}));
}
if ((long)value.Length > (long)((ulong)this.metadata.size))
{
throw new NpToolkitException(string.Concat(new object[]
{
"Attribute ",
this.metadata.name,
" : Array size of ",
value.Length,
" can't exceed ",
this.metadata.size,
" bytes defined in metadata."
}));
}
if (this.binValue == null)
{
this.binValue = new byte[256];
}
value.CopyTo(this.binValue, 0);
}
}
// Token: 0x06000159 RID: 345 RVA: 0x000056A8 File Offset: 0x000046A8
internal void Read(MemoryBuffer buffer)
{
this.metadata.Read(buffer);
if (this.metadata.type == Matching.AttributeType.Integer)
{
this.intValue = buffer.ReadInt32();
}
else if (this.metadata.type == Matching.AttributeType.Binary)
{
buffer.ReadData(ref this.binValue);
}
}
// Token: 0x0600015A RID: 346 RVA: 0x0000570C File Offset: 0x0000470C
public static Matching.Attribute CreateIntegerAttribute(Matching.AttributeMetadata metadata, int intValue)
{
return new Matching.Attribute
{
metadata = metadata,
IntValue = intValue
};
}
// Token: 0x0600015B RID: 347 RVA: 0x00005738 File Offset: 0x00004738
public static Matching.Attribute CreateBinaryAttribute(Matching.AttributeMetadata metadata, byte[] binValue)
{
return new Matching.Attribute
{
metadata = metadata,
BinValue = binValue
};
}
// Token: 0x040000E1 RID: 225
public const int MAX_SIZE_BIN_VALUE = 256;
// Token: 0x040000E2 RID: 226
internal Matching.AttributeMetadata metadata;
// Token: 0x040000E3 RID: 227
internal int intValue;
// Token: 0x040000E4 RID: 228
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)]
internal byte[] binValue;
}
// Token: 0x0200004B RID: 75
public struct SessionImage
{
// Token: 0x1700007D RID: 125
// (get) Token: 0x0600015C RID: 348 RVA: 0x00005764 File Offset: 0x00004764
// (set) Token: 0x0600015D RID: 349 RVA: 0x0000577C File Offset: 0x0000477C
public string SessionImgPath
{
get
{
return this.sessionImgPath;
}
set
{
if (value.Length > 255)
{
throw new NpToolkitException("The size of the image path string is more than " + 255 + " characters.");
}
this.sessionImgPath = value;
}
}
// Token: 0x0600015E RID: 350 RVA: 0x000057C8 File Offset: 0x000047C8
internal bool IsValid()
{
return this.sessionImgPath != null && this.sessionImgPath.Length != 0;
}
// Token: 0x0600015F RID: 351 RVA: 0x00005800 File Offset: 0x00004800
internal bool Exists()
{
return this.sessionImgPath != null && this.sessionImgPath.Length != 0;
}
// Token: 0x040000E5 RID: 229
public const int IMAGE_PATH_MAX_LEN = 255;
// Token: 0x040000E6 RID: 230
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
internal string sessionImgPath;
}
// Token: 0x0200004C RID: 76
public struct LocalizedSessionInfo
{
// Token: 0x1700007E RID: 126
// (get) Token: 0x06000160 RID: 352 RVA: 0x00005838 File Offset: 0x00004838
// (set) Token: 0x06000161 RID: 353 RVA: 0x00005850 File Offset: 0x00004850
public string SessionName
{
get
{
return this.sessionName;
}
set
{
if (value.Length > 63)
{
throw new NpToolkitException("The size of the session name is more than " + 63 + " characters.");
}
this.sessionName = value;
}
}
// Token: 0x1700007F RID: 127
// (get) Token: 0x06000162 RID: 354 RVA: 0x00005894 File Offset: 0x00004894
// (set) Token: 0x06000163 RID: 355 RVA: 0x000058AC File Offset: 0x000048AC
public string Status
{
get
{
return this.status;
}
set
{
if (value.Length > 255)
{
throw new NpToolkitException("The size of the status string is more than " + 255 + " characters.");
}
this.status = value;
}
}
// Token: 0x17000080 RID: 128
// (get) Token: 0x06000164 RID: 356 RVA: 0x000058F8 File Offset: 0x000048F8
// (set) Token: 0x06000165 RID: 357 RVA: 0x0000591D File Offset: 0x0000491D
public Core.LanguageCode LanguageCode
{
get
{
return new Core.LanguageCode
{
code = this.languageCode
};
}
set
{
this.languageCode = value.code;
}
}
// Token: 0x06000166 RID: 358 RVA: 0x0000592C File Offset: 0x0000492C
public LocalizedSessionInfo(string sessionName, string status, Core.LanguageCode languageCode)
{
this.sessionName = "";
this.status = "";
this.languageCode = "";
this.SessionName = sessionName;
this.Status = status;
this.LanguageCode = languageCode;
}
// Token: 0x040000E7 RID: 231
public const int SESSION_NAME_LEN = 63;
// Token: 0x040000E8 RID: 232
public const int STATUS_LEN = 255;
// Token: 0x040000E9 RID: 233
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
private string sessionName;
// Token: 0x040000EA RID: 234
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
private string status;
// Token: 0x040000EB RID: 235
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 6)]
internal string languageCode;
}
// Token: 0x0200004D RID: 77
public struct PresenceOptionData
{
// Token: 0x06000167 RID: 359 RVA: 0x00005968 File Offset: 0x00004968
internal void Init()
{
this.data = new byte[16];
}
// Token: 0x17000081 RID: 129
// (get) Token: 0x06000168 RID: 360 RVA: 0x00005978 File Offset: 0x00004978
// (set) Token: 0x06000169 RID: 361 RVA: 0x000059C0 File Offset: 0x000049C0
public byte[] Data
{
get
{
byte[] array;
if (this.length == 0)
{
array = null;
}
else
{
byte[] array2 = new byte[(int)this.length];
Array.Copy(this.data, array2, (int)this.length);
array = array2;
}
return array;
}
set
{
if (this.data == null)
{
this.data = new byte[16];
}
if (value != null)
{
if (value.Length > 16)
{
throw new NpToolkitException("The size of the data array is more than " + 16);
}
value.CopyTo(this.data, 0);
this.length = (byte)value.Length;
}
else
{
this.length = 0;
}
}
}
// Token: 0x17000082 RID: 130
// (get) Token: 0x0600016A RID: 362 RVA: 0x00005A40 File Offset: 0x00004A40
// (set) Token: 0x0600016B RID: 363 RVA: 0x00005A84 File Offset: 0x00004A84
public string DataAsString
{
get
{
string text;
if (this.length == 0)
{
text = "";
}
else
{
text = Encoding.ASCII.GetString(this.data, 0, (int)this.length);
}
return text;
}
set
{
if (this.data == null)
{
this.data = new byte[16];
}
if (value != null)
{
byte[] bytes = Encoding.ASCII.GetBytes(value);
if (bytes.Length > 16)
{
throw new NpToolkitException("The size of the ASCII string is more than " + 16 + " characters.");
}
bytes.CopyTo(this.data, 0);
this.length = (byte)bytes.Length;
}
else
{
if (this.data == null)
{
this.data = new byte[16];
}
this.length = 0;
}
}
}
// Token: 0x0600016C RID: 364 RVA: 0x00005B34 File Offset: 0x00004B34
internal void Read(MemoryBuffer buffer)
{
buffer.ReadData(ref this.data);
}
// Token: 0x040000EC RID: 236
public const int NP_MATCHING2_PRESENCE_OPTION_DATA_SIZE = 16;
// Token: 0x040000ED RID: 237
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
internal byte[] data;
// Token: 0x040000EE RID: 238
[MarshalAs(UnmanagedType.U1)]
internal byte length;
}
// Token: 0x0200004E RID: 78
public enum SearchOperatorTypes
{
// Token: 0x040000F0 RID: 240
Invalid,
// Token: 0x040000F1 RID: 241
Equals,
// Token: 0x040000F2 RID: 242
NotEquals,
// Token: 0x040000F3 RID: 243
LessThan,
// Token: 0x040000F4 RID: 244
LessEqualsThan,
// Token: 0x040000F5 RID: 245
GreaterThan,
// Token: 0x040000F6 RID: 246
GreaterEqualsThan
}
// Token: 0x0200004F RID: 79
public struct SearchClause
{
// Token: 0x17000083 RID: 131
// (get) Token: 0x0600016D RID: 365 RVA: 0x00005B44 File Offset: 0x00004B44
// (set) Token: 0x0600016E RID: 366 RVA: 0x00005B5C File Offset: 0x00004B5C
public Matching.Attribute AttributeToCompare
{
get
{
return this.attributeToCompare;
}
set
{
this.attributeToCompare = value;
}
}
// Token: 0x17000084 RID: 132
// (get) Token: 0x0600016F RID: 367 RVA: 0x00005B68 File Offset: 0x00004B68
// (set) Token: 0x06000170 RID: 368 RVA: 0x00005B80 File Offset: 0x00004B80
public Matching.SearchOperatorTypes OperatorType
{
get
{
return this.operatorType;
}
set
{
this.operatorType = value;
}
}
// Token: 0x040000F7 RID: 247
internal Matching.Attribute attributeToCompare;
// Token: 0x040000F8 RID: 248
internal Matching.SearchOperatorTypes operatorType;
}
// Token: 0x02000050 RID: 80
[StructLayout(LayoutKind.Sequential)]
public class SetInitConfigurationRequest : RequestBase
{
// Token: 0x17000085 RID: 133
// (get) Token: 0x06000171 RID: 369 RVA: 0x00005B8C File Offset: 0x00004B8C
// (set) Token: 0x06000172 RID: 370 RVA: 0x00005BD8 File Offset: 0x00004BD8
public Matching.AttributeMetadata[] Attributes
{
get
{
Matching.AttributeMetadata[] array;
if (this.numAttributes == 0UL)
{
array = null;
}
else
{
Matching.AttributeMetadata[] array2 = new Matching.AttributeMetadata[this.numAttributes];
Array.Copy(this.attributes, array2, (int)this.numAttributes);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 64)
{
throw new NpToolkitException("The size of the array is more than " + 64);
}
value.CopyTo(this.attributes, 0);
this.numAttributes = (ulong)value.Length;
}
else
{
this.numAttributes = 0UL;
}
this.ValidateAttributes();
}
}
// Token: 0x06000173 RID: 371 RVA: 0x00005C44 File Offset: 0x00004C44
private void ValidateAttributes()
{
uint num = 0U;
uint num2 = 0U;
uint num3 = 0U;
uint num4 = 0U;
uint num5 = 0U;
for (ulong num6 = 0UL; num6 < this.numAttributes; num6 += 1UL)
{
if (this.attributes[(int)(checked((IntPtr)num6))].scope == Matching.AttributeScope.Member)
{
num += this.attributes[(int)(checked((IntPtr)num6))].size;
}
else
{
checked
{
if (this.attributes[(int)((IntPtr)num6)].scope != Matching.AttributeScope.Room)
{
throw new NpToolkitException(string.Concat(new object[]
{
"Attribute ",
this.attributes[(int)((IntPtr)num6)].name,
" : ",
num6,
" : Scope is not set to either Member or Room."
}));
}
if (this.attributes[(int)((IntPtr)num6)].roomAttributeVisibility == Matching.RoomAttributeVisibility.Internal)
{
unchecked
{
num2 += this.attributes[(int)(checked((IntPtr)num6))].size;
}
}
else if (this.attributes[(int)((IntPtr)num6)].roomAttributeVisibility == Matching.RoomAttributeVisibility.External)
{
unchecked
{
num3 += this.attributes[(int)(checked((IntPtr)num6))].size;
}
}
else
{
if (this.attributes[(int)((IntPtr)num6)].roomAttributeVisibility != Matching.RoomAttributeVisibility.Search)
{
throw new NpToolkitException("Attribute " + this.attributes[(int)((IntPtr)num6)].name + " : RoomAttributeVisibility is not set to either Internal or External.");
}
if (this.attributes[(int)((IntPtr)num6)].type == Matching.AttributeType.Binary)
{
unchecked
{
num4 += 1U;
}
}
else
{
if (this.attributes[(int)((IntPtr)num6)].type != Matching.AttributeType.Integer)
{
throw new NpToolkitException("Attribute " + this.attributes[(int)((IntPtr)num6)].name + " : Type is not set to either Binary or Integer.");
}
unchecked
{
num5 += 1U;
}
}
}
}
}
}
if (num > 64U)
{
throw new NpToolkitException("The sum of all member attributes has to be a max of 64.");
}
if (num2 > 448U)
{
throw new NpToolkitException("The sum of all internal room attributes has to be a max of 448 bytes. ");
}
if (num3 > 448U)
{
throw new NpToolkitException("The sum of all external room attributes has to be a max of 448 bytes");
}
if (num4 > 1U)
{
throw new NpToolkitException("Only 1 binary search variable is permitted.");
}
if (num5 > 8U)
{
throw new NpToolkitException("Only 8 interger search variables are permitted.");
}
}
// Token: 0x06000174 RID: 372 RVA: 0x00005EFB File Offset: 0x00004EFB
public SetInitConfigurationRequest()
: base(ServiceTypes.Matching, FunctionTypes.MatchingSetInitConfiguration)
{
}
// Token: 0x040000F9 RID: 249
public const int MAX_ATTRIBUTES = 64;
// Token: 0x040000FA RID: 250
private ulong numAttributes;
// Token: 0x040000FB RID: 251
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
private Matching.AttributeMetadata[] attributes = new Matching.AttributeMetadata[64];
}
// Token: 0x02000051 RID: 81
[StructLayout(LayoutKind.Sequential)]
public class GetWorldsRequest : RequestBase
{
// Token: 0x06000175 RID: 373 RVA: 0x00005F17 File Offset: 0x00004F17
public GetWorldsRequest()
: base(ServiceTypes.Matching, FunctionTypes.MatchingGetWorlds)
{
}
}
// Token: 0x02000052 RID: 82
[StructLayout(LayoutKind.Sequential)]
public class CreateRoomRequest : RequestBase
{
// Token: 0x17000086 RID: 134
// (get) Token: 0x06000176 RID: 374 RVA: 0x00005F28 File Offset: 0x00004F28
// (set) Token: 0x06000177 RID: 375 RVA: 0x00005F74 File Offset: 0x00004F74
public Matching.Attribute[] Attributes
{
get
{
Matching.Attribute[] array;
if (this.numAttributes == 0UL)
{
array = null;
}
else
{
Matching.Attribute[] array2 = new Matching.Attribute[this.numAttributes];
Array.Copy(this.attributes, array2, (int)this.numAttributes);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 64)
{
throw new NpToolkitException("The size of the array is more than " + 64);
}
value.CopyTo(this.attributes, 0);
this.numAttributes = (ulong)value.Length;
}
else
{
this.numAttributes = 0UL;
}
}
}
// Token: 0x17000087 RID: 135
// (get) Token: 0x06000178 RID: 376 RVA: 0x00005FD8 File Offset: 0x00004FD8
// (set) Token: 0x06000179 RID: 377 RVA: 0x00005FF0 File Offset: 0x00004FF0
public string Name
{
get
{
return this.name;
}
set
{
if (value.Length > 63)
{
throw new NpToolkitException("The size of the name string is more than " + 63 + " characters.");
}
this.name = value;
}
}
// Token: 0x17000088 RID: 136
// (get) Token: 0x0600017A RID: 378 RVA: 0x00006034 File Offset: 0x00005034
// (set) Token: 0x0600017B RID: 379 RVA: 0x0000604C File Offset: 0x0000504C
public Matching.NpMatching2SessionPassword Password
{
get
{
return this.password;
}
set
{
this.password = value;
}
}
// Token: 0x17000089 RID: 137
// (get) Token: 0x0600017C RID: 380 RVA: 0x00006058 File Offset: 0x00005058
// (set) Token: 0x0600017D RID: 381 RVA: 0x00006070 File Offset: 0x00005070
public Matching.RoomVisibility Visibility
{
get
{
return this.visibility;
}
set
{
this.visibility = value;
}
}
// Token: 0x1700008A RID: 138
// (get) Token: 0x0600017E RID: 382 RVA: 0x0000607C File Offset: 0x0000507C
// (set) Token: 0x0600017F RID: 383 RVA: 0x00006094 File Offset: 0x00005094
public uint NumReservedSlots
{
get
{
return this.numReservedSlots;
}
set
{
this.numReservedSlots = value;
}
}
// Token: 0x1700008B RID: 139
// (get) Token: 0x06000180 RID: 384 RVA: 0x000060A0 File Offset: 0x000050A0
// (set) Token: 0x06000181 RID: 385 RVA: 0x000060B8 File Offset: 0x000050B8
public byte[] FixedData
{
get
{
return this.fixedData;
}
set
{
if (value.Length > 1047552)
{
throw new NpToolkitException("The size of the fixed data array is more than " + 1047552 + " bytes.");
}
this.fixedData = value;
this.fixedDataSize = (ulong)((value != null) ? ((long)value.Length) : 0L);
}
}
// Token: 0x1700008C RID: 140
// (get) Token: 0x06000182 RID: 386 RVA: 0x00006110 File Offset: 0x00005110
// (set) Token: 0x06000183 RID: 387 RVA: 0x00006128 File Offset: 0x00005128
public byte[] ChangeableData
{
get
{
return this.changeableData;
}
set
{
if (value.Length > 1024)
{
throw new NpToolkitException("The size of the changeable data array is more than " + 1024 + " bytes.");
}
this.changeableData = value;
this.changeableDataSize = (ulong)((value != null) ? ((long)value.Length) : 0L);
}
}
// Token: 0x1700008D RID: 141
// (get) Token: 0x06000184 RID: 388 RVA: 0x00006180 File Offset: 0x00005180
// (set) Token: 0x06000185 RID: 389 RVA: 0x00006198 File Offset: 0x00005198
public string Status
{
get
{
return this.status;
}
set
{
if (value.Length > 255)
{
throw new NpToolkitException("The size of the status string is more than " + 255 + " characters.");
}
this.status = value;
}
}
// Token: 0x1700008E RID: 142
// (get) Token: 0x06000186 RID: 390 RVA: 0x000061E4 File Offset: 0x000051E4
// (set) Token: 0x06000187 RID: 391 RVA: 0x00006210 File Offset: 0x00005210
public Matching.LocalizedSessionInfo[] Localizations
{
get
{
Matching.LocalizedSessionInfo[] array = new Matching.LocalizedSessionInfo[10];
Array.Copy(this.localizations, array, 10);
return array;
}
set
{
if (value != null)
{
if (value.Length > 10)
{
throw new NpToolkitException("The size of the array is more than " + 10);
}
value.CopyTo(this.localizations, 0);
}
}
}
// Token: 0x1700008F RID: 143
// (get) Token: 0x06000188 RID: 392 RVA: 0x0000625C File Offset: 0x0000525C
// (set) Token: 0x06000189 RID: 393 RVA: 0x00006274 File Offset: 0x00005274
public Matching.SessionImage Image
{
get
{
return this.image;
}
set
{
this.image = value;
}
}
// Token: 0x17000090 RID: 144
// (get) Token: 0x0600018A RID: 394 RVA: 0x00006280 File Offset: 0x00005280
// (set) Token: 0x0600018B RID: 395 RVA: 0x00006298 File Offset: 0x00005298
public bool DisplayOnSystem
{
get
{
return this.displayOnSystem;
}
set
{
this.displayOnSystem = value;
}
}
// Token: 0x17000091 RID: 145
// (get) Token: 0x0600018C RID: 396 RVA: 0x000062A4 File Offset: 0x000052A4
// (set) Token: 0x0600018D RID: 397 RVA: 0x000062BC File Offset: 0x000052BC
public bool IsSystemJoinable
{
get
{
return this.isSystemJoinable;
}
set
{
this.isSystemJoinable = value;
}
}
// Token: 0x17000092 RID: 146
// (get) Token: 0x0600018E RID: 398 RVA: 0x000062C8 File Offset: 0x000052C8
// (set) Token: 0x0600018F RID: 399 RVA: 0x000062E0 File Offset: 0x000052E0
public bool JoinAllLocalUsers
{
get
{
return this.joinAllLocalUsers;
}
set
{
this.joinAllLocalUsers = value;
}
}
// Token: 0x17000093 RID: 147
// (get) Token: 0x06000190 RID: 400 RVA: 0x000062EC File Offset: 0x000052EC
// (set) Token: 0x06000191 RID: 401 RVA: 0x00006304 File Offset: 0x00005304
public bool IsNatRestricted
{
get
{
return this.isNatRestricted;
}
set
{
this.isNatRestricted = value;
}
}
// Token: 0x17000094 RID: 148
// (get) Token: 0x06000192 RID: 402 RVA: 0x00006310 File Offset: 0x00005310
// (set) Token: 0x06000193 RID: 403 RVA: 0x00006328 File Offset: 0x00005328
public Matching.RoomMigrationType OwnershipMigration
{
get
{
return this.ownershipMigration;
}
set
{
this.ownershipMigration = value;
}
}
// Token: 0x17000095 RID: 149
// (get) Token: 0x06000194 RID: 404 RVA: 0x00006334 File Offset: 0x00005334
// (set) Token: 0x06000195 RID: 405 RVA: 0x0000634C File Offset: 0x0000534C
public Matching.TopologyType Topology
{
get
{
return this.topology;
}
set
{
this.topology = value;
}
}
// Token: 0x17000096 RID: 150
// (get) Token: 0x06000196 RID: 406 RVA: 0x00006358 File Offset: 0x00005358
// (set) Token: 0x06000197 RID: 407 RVA: 0x00006370 File Offset: 0x00005370
public uint MaxNumMembers
{
get
{
return this.maxNumMembers;
}
set
{
this.maxNumMembers = value;
}
}
// Token: 0x17000097 RID: 151
// (get) Token: 0x06000198 RID: 408 RVA: 0x0000637C File Offset: 0x0000537C
// (set) Token: 0x06000199 RID: 409 RVA: 0x00006394 File Offset: 0x00005394
public Matching.NpMatching2WorldNumber WorldNumber
{
get
{
return this.worldNumber;
}
set
{
this.worldNumber = value;
}
}
// Token: 0x17000098 RID: 152
// (get) Token: 0x0600019A RID: 410 RVA: 0x000063A0 File Offset: 0x000053A0
// (set) Token: 0x0600019B RID: 411 RVA: 0x000063B8 File Offset: 0x000053B8
public bool IsCrossplatform
{
get
{
return this.isCrossplatform;
}
set
{
this.isCrossplatform = value;
}
}
// Token: 0x17000099 RID: 153
// (get) Token: 0x0600019C RID: 412 RVA: 0x000063C4 File Offset: 0x000053C4
// (set) Token: 0x0600019D RID: 413 RVA: 0x000063DC File Offset: 0x000053DC
public bool AllowBlockedUsersOfOwner
{
get
{
return this.allowBlockedUsersOfOwner;
}
set
{
this.allowBlockedUsersOfOwner = value;
}
}
// Token: 0x1700009A RID: 154
// (get) Token: 0x0600019E RID: 414 RVA: 0x000063E8 File Offset: 0x000053E8
// (set) Token: 0x0600019F RID: 415 RVA: 0x00006400 File Offset: 0x00005400
public bool AllowBlockedUsersOfMembers
{
get
{
return this.allowBlockedUsersOfMembers;
}
set
{
this.allowBlockedUsersOfMembers = value;
}
}
// Token: 0x060001A0 RID: 416 RVA: 0x0000640C File Offset: 0x0000540C
public CreateRoomRequest()
: base(ServiceTypes.Matching, FunctionTypes.MatchingCreateRoom)
{
this.numReservedSlots = 0U;
this.displayOnSystem = true;
this.isSystemJoinable = true;
this.joinAllLocalUsers = false;
this.isNatRestricted = false;
this.ownershipMigration = Matching.RoomMigrationType.OwnerBind;
this.topology = Matching.TopologyType.None;
this.worldNumber.num = 1;
this.isCrossplatform = false;
this.allowBlockedUsersOfOwner = false;
this.allowBlockedUsersOfMembers = true;
}
// Token: 0x040000FC RID: 252
public const int MAX_ATTRIBUTES = 64;
// Token: 0x040000FD RID: 253
public const int MAX_SIZE_ROOM_NAME = 63;
// Token: 0x040000FE RID: 254
public const int MAX_SIZE_ROOM_STATUS = 255;
// Token: 0x040000FF RID: 255
public const int MAX_SIZE_FIXED_DATA = 1047552;
// Token: 0x04000100 RID: 256
public const int MAX_SIZE_CHANGEABLE_DATA = 1024;
// Token: 0x04000101 RID: 257
public const int MAX_SIZE_LOCALIZATIONS = 10;
// Token: 0x04000102 RID: 258
internal ulong numAttributes;
// Token: 0x04000103 RID: 259
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
internal Matching.Attribute[] attributes = new Matching.Attribute[64];
// Token: 0x04000104 RID: 260
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
internal string name;
// Token: 0x04000105 RID: 261
internal Matching.NpMatching2SessionPassword password;
// Token: 0x04000106 RID: 262
internal Matching.RoomVisibility visibility;
// Token: 0x04000107 RID: 263
internal uint numReservedSlots;
// Token: 0x04000108 RID: 264
internal ulong fixedDataSize;
// Token: 0x04000109 RID: 265
[MarshalAs(UnmanagedType.LPArray)]
internal byte[] fixedData;
// Token: 0x0400010A RID: 266
internal ulong changeableDataSize;
// Token: 0x0400010B RID: 267
[MarshalAs(UnmanagedType.LPArray)]
internal byte[] changeableData;
// Token: 0x0400010C RID: 268
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
internal string status;
// Token: 0x0400010D RID: 269
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
internal Matching.LocalizedSessionInfo[] localizations = new Matching.LocalizedSessionInfo[10];
// Token: 0x0400010E RID: 270
internal Matching.SessionImage image;
// Token: 0x0400010F RID: 271
internal Matching.RoomMigrationType ownershipMigration;
// Token: 0x04000110 RID: 272
internal Matching.TopologyType topology;
// Token: 0x04000111 RID: 273
internal uint maxNumMembers;
// Token: 0x04000112 RID: 274
internal Matching.NpMatching2WorldNumber worldNumber;
// Token: 0x04000113 RID: 275
[MarshalAs(UnmanagedType.I1)]
internal bool displayOnSystem;
// Token: 0x04000114 RID: 276
[MarshalAs(UnmanagedType.I1)]
internal bool isSystemJoinable;
// Token: 0x04000115 RID: 277
[MarshalAs(UnmanagedType.I1)]
internal bool joinAllLocalUsers;
// Token: 0x04000116 RID: 278
[MarshalAs(UnmanagedType.I1)]
internal bool isNatRestricted;
// Token: 0x04000117 RID: 279
[MarshalAs(UnmanagedType.I1)]
internal bool isCrossplatform;
// Token: 0x04000118 RID: 280
[MarshalAs(UnmanagedType.I1)]
internal bool allowBlockedUsersOfOwner;
// Token: 0x04000119 RID: 281
[MarshalAs(UnmanagedType.I1)]
internal bool allowBlockedUsersOfMembers;
}
// Token: 0x02000053 RID: 83
[StructLayout(LayoutKind.Sequential)]
public class LeaveRoomRequest : RequestBase
{
// Token: 0x1700009B RID: 155
// (get) Token: 0x060001A1 RID: 417 RVA: 0x00006494 File Offset: 0x00005494
// (set) Token: 0x060001A2 RID: 418 RVA: 0x000064AC File Offset: 0x000054AC
public ulong RoomId
{
get
{
return this.roomId;
}
set
{
this.roomId = value;
}
}
// Token: 0x1700009C RID: 156
// (get) Token: 0x060001A3 RID: 419 RVA: 0x000064B8 File Offset: 0x000054B8
// (set) Token: 0x060001A4 RID: 420 RVA: 0x000064D0 File Offset: 0x000054D0
public Matching.PresenceOptionData NotificationDataToMembers
{
get
{
return this.notificationDataToMembers;
}
set
{
this.notificationDataToMembers = value;
}
}
// Token: 0x060001A5 RID: 421 RVA: 0x000064DA File Offset: 0x000054DA
public LeaveRoomRequest()
: base(ServiceTypes.Matching, FunctionTypes.MatchingLeaveRoom)
{
this.notificationDataToMembers.Init();
}
// Token: 0x0400011A RID: 282
internal ulong roomId;
// Token: 0x0400011B RID: 283
internal Matching.PresenceOptionData notificationDataToMembers;
}
// Token: 0x02000054 RID: 84
public enum RoomsSearchScope
{
// Token: 0x0400011D RID: 285
All,
// Token: 0x0400011E RID: 286
FriendsRooms,
// Token: 0x0400011F RID: 287
RecentlyMetRooms,
// Token: 0x04000120 RID: 288
CustomUsersList
}
// Token: 0x02000055 RID: 85
[StructLayout(LayoutKind.Sequential)]
public class SearchRoomsRequest : RequestBase
{
// Token: 0x1700009D RID: 157
// (get) Token: 0x060001A6 RID: 422 RVA: 0x000064F8 File Offset: 0x000054F8
// (set) Token: 0x060001A7 RID: 423 RVA: 0x00006544 File Offset: 0x00005544
public Matching.SearchClause[] SearchClauses
{
get
{
Matching.SearchClause[] array;
if (this.numSearchClauses == 0UL)
{
array = null;
}
else
{
Matching.SearchClause[] array2 = new Matching.SearchClause[this.numSearchClauses];
Array.Copy(this.searchClauses, array2, (int)this.numSearchClauses);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 64)
{
throw new NpToolkitException("The size of the array is more than " + 64);
}
value.CopyTo(this.searchClauses, 0);
this.numSearchClauses = (ulong)value.Length;
}
else
{
this.numSearchClauses = 0UL;
}
}
}
// Token: 0x1700009E RID: 158
// (get) Token: 0x060001A8 RID: 424 RVA: 0x000065A8 File Offset: 0x000055A8
// (set) Token: 0x060001A9 RID: 425 RVA: 0x000065F4 File Offset: 0x000055F4
public Core.NpAccountId[] UsersToSearchInRooms
{
get
{
Core.NpAccountId[] array;
if (this.numUsersToSearchInRooms == 0UL)
{
array = null;
}
else
{
Core.NpAccountId[] array2 = new Core.NpAccountId[this.numUsersToSearchInRooms];
Array.Copy(this.usersToSearchInRooms, array2, (int)this.numUsersToSearchInRooms);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 20)
{
throw new NpToolkitException("The size of the array is larger than " + 20);
}
value.CopyTo(this.usersToSearchInRooms, 0);
this.numUsersToSearchInRooms = (ulong)((long)value.Length);
}
else
{
this.numUsersToSearchInRooms = 0UL;
}
}
}
// Token: 0x1700009F RID: 159
// (get) Token: 0x060001AA RID: 426 RVA: 0x00006658 File Offset: 0x00005658
// (set) Token: 0x060001AB RID: 427 RVA: 0x00006670 File Offset: 0x00005670
public int Offset
{
get
{
return this.offset;
}
set
{
this.offset = value;
}
}
// Token: 0x170000A0 RID: 160
// (get) Token: 0x060001AC RID: 428 RVA: 0x0000667C File Offset: 0x0000567C
// (set) Token: 0x060001AD RID: 429 RVA: 0x00006694 File Offset: 0x00005694
public int PageSize
{
get
{
return this.pageSize;
}
set
{
this.pageSize = value;
}
}
// Token: 0x170000A1 RID: 161
// (get) Token: 0x060001AE RID: 430 RVA: 0x000066A0 File Offset: 0x000056A0
// (set) Token: 0x060001AF RID: 431 RVA: 0x000066B8 File Offset: 0x000056B8
public Matching.RoomsSearchScope SearchScope
{
get
{
return this.searchScope;
}
set
{
this.searchScope = value;
}
}
// Token: 0x170000A2 RID: 162
// (get) Token: 0x060001B0 RID: 432 RVA: 0x000066C4 File Offset: 0x000056C4
// (set) Token: 0x060001B1 RID: 433 RVA: 0x000066DC File Offset: 0x000056DC
public Matching.NpMatching2WorldNumber WorldNumber
{
get
{
return this.worldNumber;
}
set
{
this.worldNumber = value;
}
}
// Token: 0x170000A3 RID: 163
// (get) Token: 0x060001B2 RID: 434 RVA: 0x000066E8 File Offset: 0x000056E8
// (set) Token: 0x060001B3 RID: 435 RVA: 0x00006700 File Offset: 0x00005700
public bool ProvideRandomRooms
{
get
{
return this.provideRandomRooms;
}
set
{
this.provideRandomRooms = value;
}
}
// Token: 0x170000A4 RID: 164
// (get) Token: 0x060001B4 RID: 436 RVA: 0x0000670C File Offset: 0x0000570C
// (set) Token: 0x060001B5 RID: 437 RVA: 0x00006724 File Offset: 0x00005724
public bool QuickJoin
{
get
{
return this.quickJoin;
}
set
{
this.quickJoin = value;
}
}
// Token: 0x170000A5 RID: 165
// (get) Token: 0x060001B6 RID: 438 RVA: 0x00006730 File Offset: 0x00005730
// (set) Token: 0x060001B7 RID: 439 RVA: 0x00006748 File Offset: 0x00005748
public bool ApplyNatTypeFilter
{
get
{
return this.applyNatTypeFilter;
}
set
{
this.applyNatTypeFilter = value;
}
}
// Token: 0x060001B8 RID: 440 RVA: 0x00006754 File Offset: 0x00005754
public SearchRoomsRequest()
: base(ServiceTypes.Matching, FunctionTypes.MatchingSearchRooms)
{
this.offset = 1;
this.pageSize = 20;
this.worldNumber.num = 1;
this.provideRandomRooms = false;
this.quickJoin = false;
this.applyNatTypeFilter = true;
}
// Token: 0x04000121 RID: 289
public const int MAX_SEARCH_CLAUSES = 64;
// Token: 0x04000122 RID: 290
public const int MAX_PAGE_SIZE = 20;
// Token: 0x04000123 RID: 291
public const int MIN_OFFSET = 1;
// Token: 0x04000124 RID: 292
public const int MAX_NUM_USERS_TO_SEARCH_IN_ROOMS = 20;
// Token: 0x04000125 RID: 293
internal ulong numSearchClauses;
// Token: 0x04000126 RID: 294
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
internal Matching.SearchClause[] searchClauses = new Matching.SearchClause[64];
// Token: 0x04000127 RID: 295
internal ulong numUsersToSearchInRooms;
// Token: 0x04000128 RID: 296
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
internal Core.NpAccountId[] usersToSearchInRooms = new Core.NpAccountId[20];
// Token: 0x04000129 RID: 297
internal int offset;
// Token: 0x0400012A RID: 298
internal int pageSize;
// Token: 0x0400012B RID: 299
internal Matching.RoomsSearchScope searchScope;
// Token: 0x0400012C RID: 300
internal Matching.NpMatching2WorldNumber worldNumber;
// Token: 0x0400012D RID: 301
[MarshalAs(UnmanagedType.I1)]
internal bool provideRandomRooms;
// Token: 0x0400012E RID: 302
[MarshalAs(UnmanagedType.I1)]
internal bool quickJoin;
// Token: 0x0400012F RID: 303
[MarshalAs(UnmanagedType.I1)]
internal bool applyNatTypeFilter;
}
// Token: 0x02000056 RID: 86
public enum RoomJoiningType
{
// Token: 0x04000131 RID: 305
Room,
// Token: 0x04000132 RID: 306
BoundSessionId
}
// Token: 0x02000057 RID: 87
[StructLayout(LayoutKind.Sequential)]
public class JoinRoomRequest : RequestBase
{
// Token: 0x170000A6 RID: 166
// (get) Token: 0x060001B9 RID: 441 RVA: 0x000067B8 File Offset: 0x000057B8
// (set) Token: 0x060001BA RID: 442 RVA: 0x000067D0 File Offset: 0x000057D0
public Matching.NpMatching2SessionPassword Password
{
get
{
return this.password;
}
set
{
this.password = value;
}
}
// Token: 0x170000A7 RID: 167
// (get) Token: 0x060001BB RID: 443 RVA: 0x000067DC File Offset: 0x000057DC
// (set) Token: 0x060001BC RID: 444 RVA: 0x00006828 File Offset: 0x00005828
public Matching.Attribute[] MemberAttributes
{
get
{
Matching.Attribute[] array;
if (this.numMemberAttributes == 0UL)
{
array = null;
}
else
{
Matching.Attribute[] array2 = new Matching.Attribute[this.numMemberAttributes];
Array.Copy(this.memberAttributes, array2, (int)this.numMemberAttributes);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 64)
{
throw new NpToolkitException("The size of the array is larger than " + 64);
}
value.CopyTo(this.memberAttributes, 0);
this.numMemberAttributes = (ulong)((long)value.Length);
}
else
{
this.numMemberAttributes = 0UL;
}
}
}
// Token: 0x170000A8 RID: 168
// (get) Token: 0x060001BD RID: 445 RVA: 0x0000688C File Offset: 0x0000588C
// (set) Token: 0x060001BE RID: 446 RVA: 0x000068A4 File Offset: 0x000058A4
public Matching.PresenceOptionData NotificationDataToMembers
{
get
{
return this.notificationDataToMembers;
}
set
{
this.notificationDataToMembers = value;
}
}
// Token: 0x170000A9 RID: 169
// (get) Token: 0x060001BF RID: 447 RVA: 0x000068B0 File Offset: 0x000058B0
// (set) Token: 0x060001C0 RID: 448 RVA: 0x000068C8 File Offset: 0x000058C8
public ulong RoomId
{
get
{
return this.roomId;
}
set
{
if (this.identifyRoomBy != Matching.RoomJoiningType.Room)
{
throw new NpToolkitException("Can't set RoomId if IdentifyRoomBy isn't RoomJoiningType.Room.");
}
this.roomId = value;
}
}
// Token: 0x170000AA RID: 170
// (get) Token: 0x060001C1 RID: 449 RVA: 0x000068F8 File Offset: 0x000058F8
// (set) Token: 0x060001C2 RID: 450 RVA: 0x00006910 File Offset: 0x00005910
public Matching.NpSessionId BoundSessionId
{
get
{
return this.boundSessionId;
}
set
{
if (this.identifyRoomBy != Matching.RoomJoiningType.BoundSessionId)
{
throw new NpToolkitException("Can't set BoundSessionId if IdentifyRoomBy isn't RoomJoiningType.BoundSessionId.");
}
this.boundSessionId = value;
}
}
// Token: 0x170000AB RID: 171
// (get) Token: 0x060001C3 RID: 451 RVA: 0x00006940 File Offset: 0x00005940
// (set) Token: 0x060001C4 RID: 452 RVA: 0x00006958 File Offset: 0x00005958
public Matching.RoomJoiningType IdentifyRoomBy
{
get
{
return this.identifyRoomBy;
}
set
{
this.identifyRoomBy = value;
}
}
// Token: 0x170000AC RID: 172
// (get) Token: 0x060001C5 RID: 453 RVA: 0x00006964 File Offset: 0x00005964
// (set) Token: 0x060001C6 RID: 454 RVA: 0x0000697C File Offset: 0x0000597C
public bool JoinAllLocalUsers
{
get
{
return this.joinAllLocalUsers;
}
set
{
this.joinAllLocalUsers = value;
}
}
// Token: 0x170000AD RID: 173
// (get) Token: 0x060001C7 RID: 455 RVA: 0x00006988 File Offset: 0x00005988
// (set) Token: 0x060001C8 RID: 456 RVA: 0x000069A0 File Offset: 0x000059A0
public bool AllowBlockedUsers
{
get
{
return this.allowBlockedUsers;
}
set
{
this.allowBlockedUsers = value;
}
}
// Token: 0x060001C9 RID: 457 RVA: 0x000069AA File Offset: 0x000059AA
public JoinRoomRequest()
: base(ServiceTypes.Matching, FunctionTypes.MatchingJoinRoom)
{
this.joinAllLocalUsers = false;
this.allowBlockedUsers = true;
this.notificationDataToMembers.Init();
}
// Token: 0x04000133 RID: 307
public const int MAX_ATTRIBUTES = 64;
// Token: 0x04000134 RID: 308
internal Matching.NpMatching2SessionPassword password;
// Token: 0x04000135 RID: 309
internal ulong numMemberAttributes;
// Token: 0x04000136 RID: 310
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
internal Matching.Attribute[] memberAttributes = new Matching.Attribute[64];
// Token: 0x04000137 RID: 311
internal Matching.PresenceOptionData notificationDataToMembers;
// Token: 0x04000138 RID: 312
internal ulong roomId;
// Token: 0x04000139 RID: 313
internal Matching.NpSessionId boundSessionId;
// Token: 0x0400013A RID: 314
internal Matching.RoomJoiningType identifyRoomBy;
// Token: 0x0400013B RID: 315
[MarshalAs(UnmanagedType.I1)]
internal bool joinAllLocalUsers;
// Token: 0x0400013C RID: 316
[MarshalAs(UnmanagedType.I1)]
internal bool allowBlockedUsers;
}
// Token: 0x02000058 RID: 88
[StructLayout(LayoutKind.Sequential)]
public class GetRoomPingTimeRequest : RequestBase
{
// Token: 0x170000AE RID: 174
// (get) Token: 0x060001CA RID: 458 RVA: 0x000069E0 File Offset: 0x000059E0
// (set) Token: 0x060001CB RID: 459 RVA: 0x000069F8 File Offset: 0x000059F8
public ulong RoomId
{
get
{
return this.roomId;
}
set
{
this.roomId = value;
}
}
// Token: 0x060001CC RID: 460 RVA: 0x00006A02 File Offset: 0x00005A02
public GetRoomPingTimeRequest()
: base(ServiceTypes.Matching, FunctionTypes.MatchingGetRoomPingTime)
{
}
// Token: 0x0400013D RID: 317
internal ulong roomId;
}
// Token: 0x02000059 RID: 89
[StructLayout(LayoutKind.Sequential)]
public class KickOutRoomMemberRequest : RequestBase
{
// Token: 0x170000AF RID: 175
// (get) Token: 0x060001CD RID: 461 RVA: 0x00006A14 File Offset: 0x00005A14
// (set) Token: 0x060001CE RID: 462 RVA: 0x00006A2C File Offset: 0x00005A2C
public ulong RoomId
{
get
{
return this.roomId;
}
set
{
this.roomId = value;
}
}
// Token: 0x170000B0 RID: 176
// (get) Token: 0x060001CF RID: 463 RVA: 0x00006A38 File Offset: 0x00005A38
// (set) Token: 0x060001D0 RID: 464 RVA: 0x00006A50 File Offset: 0x00005A50
public Matching.PresenceOptionData NotificationDataToMembers
{
get
{
return this.notificationDataToMembers;
}
set
{
if (value.data == null || value.length != 16)
{
this.notificationDataToMembers.Init();
}
this.notificationDataToMembers = value;
}
}
// Token: 0x170000B1 RID: 177
// (get) Token: 0x060001D1 RID: 465 RVA: 0x00006A90 File Offset: 0x00005A90
// (set) Token: 0x060001D2 RID: 466 RVA: 0x00006AA8 File Offset: 0x00005AA8
public ushort MemberId
{
get
{
return this.memberId;
}
set
{
this.memberId = value;
}
}
// Token: 0x170000B2 RID: 178
// (get) Token: 0x060001D3 RID: 467 RVA: 0x00006AB4 File Offset: 0x00005AB4
// (set) Token: 0x060001D4 RID: 468 RVA: 0x00006ACC File Offset: 0x00005ACC
public bool AllowRejoin
{
get
{
return this.allowRejoin;
}
set
{
this.allowRejoin = value;
}
}
// Token: 0x060001D5 RID: 469 RVA: 0x00006AD6 File Offset: 0x00005AD6
public KickOutRoomMemberRequest()
: base(ServiceTypes.Matching, FunctionTypes.MatchingKickOutRoomMember)
{
this.notificationDataToMembers.Init();
}
// Token: 0x0400013E RID: 318
internal ulong roomId;
// Token: 0x0400013F RID: 319
internal Matching.PresenceOptionData notificationDataToMembers;
// Token: 0x04000140 RID: 320
internal ushort memberId;
// Token: 0x04000141 RID: 321
[MarshalAs(UnmanagedType.I1)]
internal bool allowRejoin;
}
// Token: 0x0200005A RID: 90
[StructLayout(LayoutKind.Sequential)]
public class SendRoomMessageRequest : RequestBase
{
// Token: 0x170000B3 RID: 179
// (get) Token: 0x060001D6 RID: 470 RVA: 0x00006AF4 File Offset: 0x00005AF4
// (set) Token: 0x060001D7 RID: 471 RVA: 0x00006B0C File Offset: 0x00005B0C
public ulong RoomId
{
get
{
return this.roomId;
}
set
{
this.roomId = value;
}
}
// Token: 0x170000B4 RID: 180
// (get) Token: 0x060001D8 RID: 472 RVA: 0x00006B18 File Offset: 0x00005B18
// (set) Token: 0x060001D9 RID: 473 RVA: 0x00006B64 File Offset: 0x00005B64
public ushort[] Members
{
get
{
ushort[] array;
if (this.numMembers == 0UL)
{
array = null;
}
else
{
ushort[] array2 = new ushort[this.numMembers];
Array.Copy(this.members, array2, (int)this.numMembers);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 32)
{
throw new NpToolkitException("The size of the array is larger than " + 32);
}
value.CopyTo(this.members, 0);
this.numMembers = (ulong)((long)value.Length);
}
else
{
this.numMembers = 0UL;
}
}
}
// Token: 0x170000B5 RID: 181
// (get) Token: 0x060001DA RID: 474 RVA: 0x00006BC8 File Offset: 0x00005BC8
// (set) Token: 0x060001DB RID: 475 RVA: 0x00006C14 File Offset: 0x00005C14
public byte[] Data
{
get
{
byte[] array;
if (this.dataSize == 0UL)
{
array = null;
}
else
{
byte[] array2 = new byte[this.dataSize];
Array.Copy(this.data, array2, (int)this.dataSize);
array = array2;
}
return array;
}
set
{
if (this.data == null)
{
this.data = new byte[1023];
}
if (value != null)
{
if (value.Length > 1023)
{
throw new NpToolkitException("The size of the data array is more than " + 1023);
}
value.CopyTo(this.data, 0);
this.dataSize = (ulong)((byte)value.Length);
}
else
{
this.dataSize = 0UL;
}
}
}
// Token: 0x170000B6 RID: 182
// (get) Token: 0x060001DC RID: 476 RVA: 0x00006CA0 File Offset: 0x00005CA0
// (set) Token: 0x060001DD RID: 477 RVA: 0x00006CE4 File Offset: 0x00005CE4
public string DataAsString
{
get
{
string text;
if (this.dataSize == 0UL)
{
text = "";
}
else
{
text = Encoding.UTF8.GetString(this.data, 0, (int)this.dataSize);
}
return text;
}
set
{
if (this.data == null)
{
this.data = new byte[1023];
}
if (value != null)
{
byte[] bytes = Encoding.UTF8.GetBytes(value);
if (bytes.Length > 1023)
{
throw new NpToolkitException("The size of the string is more than " + 1023 + " bytes.");
}
bytes.CopyTo(this.data, 0);
this.dataSize = (ulong)((byte)bytes.Length);
}
else
{
if (this.data == null)
{
this.data = new byte[1023];
}
this.dataSize = 0UL;
}
}
}
// Token: 0x170000B7 RID: 183
// (get) Token: 0x060001DE RID: 478 RVA: 0x00006DA4 File Offset: 0x00005DA4
// (set) Token: 0x060001DF RID: 479 RVA: 0x00006DBC File Offset: 0x00005DBC
public bool IsChatMsg
{
get
{
return this.isChatMsg;
}
set
{
this.isChatMsg = value;
}
}
// Token: 0x060001E0 RID: 480 RVA: 0x00006DC6 File Offset: 0x00005DC6
public SendRoomMessageRequest()
: base(ServiceTypes.Matching, FunctionTypes.MatchingSendRoomMessage)
{
}
// Token: 0x04000142 RID: 322
public const int MESSAGE_MAX_SIZE = 1023;
// Token: 0x04000143 RID: 323
public const int MAX_MEMBERS = 32;
// Token: 0x04000144 RID: 324
internal ulong roomId;
// Token: 0x04000145 RID: 325
internal ulong numMembers;
// Token: 0x04000146 RID: 326
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
internal ushort[] members = new ushort[32];
// Token: 0x04000147 RID: 327
internal ulong dataSize;
// Token: 0x04000148 RID: 328
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)]
internal byte[] data = new byte[1024];
// Token: 0x04000149 RID: 329
[MarshalAs(UnmanagedType.I1)]
internal bool isChatMsg;
}
// Token: 0x0200005B RID: 91
[StructLayout(LayoutKind.Sequential)]
public class GetAttributesRequest : RequestBase
{
// Token: 0x170000B8 RID: 184
// (get) Token: 0x060001E1 RID: 481 RVA: 0x00006DF4 File Offset: 0x00005DF4
// (set) Token: 0x060001E2 RID: 482 RVA: 0x00006E0C File Offset: 0x00005E0C
public ulong RoomId
{
get
{
return this.roomId;
}
set
{
this.roomId = value;
}
}
// Token: 0x170000B9 RID: 185
// (get) Token: 0x060001E3 RID: 483 RVA: 0x00006E18 File Offset: 0x00005E18
public Matching.AttributeScope Scope
{
get
{
return this.scope;
}
}
// Token: 0x170000BA RID: 186
// (get) Token: 0x060001E4 RID: 484 RVA: 0x00006E30 File Offset: 0x00005E30
// (set) Token: 0x060001E5 RID: 485 RVA: 0x00006E48 File Offset: 0x00005E48
public Matching.RoomAttributeVisibility RoomAttributeVisibility
{
get
{
return this.roomAttributeVisibility;
}
set
{
this.roomAttributeVisibility = value;
this.scope = Matching.AttributeScope.Room;
}
}
// Token: 0x170000BB RID: 187
// (get) Token: 0x060001E6 RID: 486 RVA: 0x00006E5C File Offset: 0x00005E5C
// (set) Token: 0x060001E7 RID: 487 RVA: 0x00006E74 File Offset: 0x00005E74
public ushort MemberId
{
get
{
return this.memberId;
}
set
{
this.memberId = value;
this.scope = Matching.AttributeScope.Member;
}
}
// Token: 0x060001E8 RID: 488 RVA: 0x00006E85 File Offset: 0x00005E85
public GetAttributesRequest()
: base(ServiceTypes.Matching, FunctionTypes.MatchingGetAttributes)
{
}
// Token: 0x0400014A RID: 330
internal ulong roomId;
// Token: 0x0400014B RID: 331
internal Matching.AttributeScope scope;
// Token: 0x0400014C RID: 332
internal Matching.RoomAttributeVisibility roomAttributeVisibility;
// Token: 0x0400014D RID: 333
internal ushort memberId;
}
// Token: 0x0200005C RID: 92
public enum DataType
{
// Token: 0x0400014F RID: 335
Fixed,
// Token: 0x04000150 RID: 336
Changeable
}
// Token: 0x0200005D RID: 93
[StructLayout(LayoutKind.Sequential)]
public class GetDataRequest : RequestBase
{
// Token: 0x170000BC RID: 188
// (get) Token: 0x060001E9 RID: 489 RVA: 0x00006E94 File Offset: 0x00005E94
// (set) Token: 0x060001EA RID: 490 RVA: 0x00006EAC File Offset: 0x00005EAC
public ulong RoomId
{
get
{
return this.roomId;
}
set
{
this.roomId = value;
}
}
// Token: 0x170000BD RID: 189
// (get) Token: 0x060001EB RID: 491 RVA: 0x00006EB8 File Offset: 0x00005EB8
// (set) Token: 0x060001EC RID: 492 RVA: 0x00006ED0 File Offset: 0x00005ED0
public Matching.DataType Type
{
get
{
return this.type;
}
set
{
this.type = value;
}
}
// Token: 0x060001ED RID: 493 RVA: 0x00006EDA File Offset: 0x00005EDA
public GetDataRequest()
: base(ServiceTypes.Matching, FunctionTypes.MatchingGetData)
{
}
// Token: 0x04000151 RID: 337
internal ulong roomId;
// Token: 0x04000152 RID: 338
internal Matching.DataType type;
}
// Token: 0x0200005E RID: 94
[StructLayout(LayoutKind.Sequential)]
public class SendInvitationRequest : RequestBase
{
// Token: 0x170000BE RID: 190
// (get) Token: 0x060001EE RID: 494 RVA: 0x00006EEC File Offset: 0x00005EEC
// (set) Token: 0x060001EF RID: 495 RVA: 0x00006F04 File Offset: 0x00005F04
public ulong RoomId
{
get
{
return this.roomId;
}
set
{
this.roomId = value;
}
}
// Token: 0x170000BF RID: 191
// (get) Token: 0x060001F0 RID: 496 RVA: 0x00006F10 File Offset: 0x00005F10
// (set) Token: 0x060001F1 RID: 497 RVA: 0x00006F5C File Offset: 0x00005F5C
public Core.NpAccountId[] Recipients
{
get
{
Core.NpAccountId[] array;
if (this.numRecipients == 0UL)
{
array = null;
}
else
{
Core.NpAccountId[] array2 = new Core.NpAccountId[this.numRecipients];
Array.Copy(this.recipients, array2, (int)this.numRecipients);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 16)
{
throw new NpToolkitException("The size of the array is larger than " + 16);
}
value.CopyTo(this.recipients, 0);
this.numRecipients = (ulong)((long)value.Length);
}
else
{
this.numRecipients = 0UL;
}
}
}
// Token: 0x170000C0 RID: 192
// (get) Token: 0x060001F2 RID: 498 RVA: 0x00006FC0 File Offset: 0x00005FC0
// (set) Token: 0x060001F3 RID: 499 RVA: 0x00006FD8 File Offset: 0x00005FD8
public string UserMessage
{
get
{
return this.userMessage;
}
set
{
if (value.Length > 511)
{
throw new NpToolkitException("The size of the user message string is more than " + 511 + " characters.");
}
this.userMessage = value;
}
}
// Token: 0x170000C1 RID: 193
// (get) Token: 0x060001F4 RID: 500 RVA: 0x00007024 File Offset: 0x00006024
// (set) Token: 0x060001F5 RID: 501 RVA: 0x0000703C File Offset: 0x0000603C
public byte[] Attachment
{
get
{
return this.attachment;
}
set
{
if (value.Length > 1048576)
{
throw new NpToolkitException("The size of the attachment array is more than " + 1048576);
}
this.attachment = value;
this.attachmentSize = (ulong)((byte)value.Length);
}
}
// Token: 0x170000C2 RID: 194
// (get) Token: 0x060001F6 RID: 502 RVA: 0x00007088 File Offset: 0x00006088
// (set) Token: 0x060001F7 RID: 503 RVA: 0x000070A0 File Offset: 0x000060A0
public int MaxNumberRecipientsToAdd
{
get
{
return this.maxNumberRecipientsToAdd;
}
set
{
this.maxNumberRecipientsToAdd = value;
}
}
// Token: 0x170000C3 RID: 195
// (get) Token: 0x060001F8 RID: 504 RVA: 0x000070AC File Offset: 0x000060AC
// (set) Token: 0x060001F9 RID: 505 RVA: 0x000070C4 File Offset: 0x000060C4
public bool RecipientsEditableByUser
{
get
{
return this.recipientsEditableByUser;
}
set
{
this.recipientsEditableByUser = value;
}
}
// Token: 0x170000C4 RID: 196
// (get) Token: 0x060001FA RID: 506 RVA: 0x000070D0 File Offset: 0x000060D0
// (set) Token: 0x060001FB RID: 507 RVA: 0x000070E8 File Offset: 0x000060E8
public bool EnableDialog
{
get
{
return this.enableDialog;
}
set
{
this.enableDialog = value;
}
}
// Token: 0x060001FC RID: 508 RVA: 0x000070F2 File Offset: 0x000060F2
public SendInvitationRequest()
: base(ServiceTypes.Matching, FunctionTypes.MatchingSendInvitation)
{
}
// Token: 0x04000153 RID: 339
public const int MAX_SIZE_ATTACHMENT = 1048576;
// Token: 0x04000154 RID: 340
public const int MAX_NUM_RECIPIENTS = 16;
// Token: 0x04000155 RID: 341
public const int MAX_SIZE_USER_MESSAGE = 511;
// Token: 0x04000156 RID: 342
internal ulong roomId;
// Token: 0x04000157 RID: 343
internal ulong numRecipients;
// Token: 0x04000158 RID: 344
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
internal Core.NpAccountId[] recipients = new Core.NpAccountId[16];
// Token: 0x04000159 RID: 345
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 512)]
internal string userMessage;
// Token: 0x0400015A RID: 346
internal ulong attachmentSize;
// Token: 0x0400015B RID: 347
[MarshalAs(UnmanagedType.LPArray)]
internal byte[] attachment;
// Token: 0x0400015C RID: 348
internal int maxNumberRecipientsToAdd;
// Token: 0x0400015D RID: 349
[MarshalAs(UnmanagedType.I1)]
internal bool recipientsEditableByUser;
// Token: 0x0400015E RID: 350
[MarshalAs(UnmanagedType.I1)]
internal bool enableDialog;
}
// Token: 0x0200005F RID: 95
public enum SetRoomInfoType
{
// Token: 0x04000160 RID: 352
Invalid,
// Token: 0x04000161 RID: 353
MemberInfo,
// Token: 0x04000162 RID: 354
RoomExternalInfo,
// Token: 0x04000163 RID: 355
RoomInternalInfo,
// Token: 0x04000164 RID: 356
RoomSessionInfo,
// Token: 0x04000165 RID: 357
RoomTopology
}
// Token: 0x02000060 RID: 96
[StructLayout(LayoutKind.Sequential)]
public class SetRoomInfoRequest : RequestBase
{
// Token: 0x170000C5 RID: 197
// (get) Token: 0x060001FD RID: 509 RVA: 0x00007110 File Offset: 0x00006110
// (set) Token: 0x060001FE RID: 510 RVA: 0x00007128 File Offset: 0x00006128
public ulong RoomId
{
get
{
return this.roomId;
}
set
{
this.roomId = value;
}
}
// Token: 0x170000C6 RID: 198
// (get) Token: 0x060001FF RID: 511 RVA: 0x00007134 File Offset: 0x00006134
// (set) Token: 0x06000200 RID: 512 RVA: 0x0000714C File Offset: 0x0000614C
public Matching.SetRoomInfoType RoomInfoType
{
get
{
return this.roomInfoType;
}
set
{
this.roomInfoType = value;
}
}
// Token: 0x170000C7 RID: 199
// (get) Token: 0x06000201 RID: 513 RVA: 0x00007158 File Offset: 0x00006158
// (set) Token: 0x06000202 RID: 514 RVA: 0x00007170 File Offset: 0x00006170
public Matching.SetRoomInfoRequest.MemberInformation MemberInfo
{
get
{
return this.memberInfo;
}
set
{
this.memberInfo = value;
}
}
// Token: 0x170000C8 RID: 200
// (get) Token: 0x06000203 RID: 515 RVA: 0x0000717C File Offset: 0x0000617C
// (set) Token: 0x06000204 RID: 516 RVA: 0x00007194 File Offset: 0x00006194
public Matching.SetRoomInfoRequest.ExternalRoomInformation ExternalRoomInfo
{
get
{
return this.externalRoomInfo;
}
set
{
this.externalRoomInfo = value;
}
}
// Token: 0x170000C9 RID: 201
// (get) Token: 0x06000205 RID: 517 RVA: 0x000071A0 File Offset: 0x000061A0
// (set) Token: 0x06000206 RID: 518 RVA: 0x000071B8 File Offset: 0x000061B8
public Matching.SetRoomInfoRequest.InternalRoomInformation InternalRoomInfo
{
get
{
return this.internalRoomInfo;
}
set
{
this.internalRoomInfo = value;
}
}
// Token: 0x170000CA RID: 202
// (get) Token: 0x06000207 RID: 519 RVA: 0x000071C4 File Offset: 0x000061C4
// (set) Token: 0x06000208 RID: 520 RVA: 0x000071DC File Offset: 0x000061DC
public Matching.SetRoomInfoRequest.RoomSessionInformation RoomSessionInfo
{
get
{
return this.roomSessionInfo;
}
set
{
this.roomSessionInfo = value;
}
}
// Token: 0x170000CB RID: 203
// (get) Token: 0x06000209 RID: 521 RVA: 0x000071E8 File Offset: 0x000061E8
// (set) Token: 0x0600020A RID: 522 RVA: 0x00007200 File Offset: 0x00006200
public Matching.TopologyType RoomTopology
{
get
{
return this.roomTopology;
}
set
{
this.roomTopology = value;
}
}
// Token: 0x0600020B RID: 523 RVA: 0x0000720A File Offset: 0x0000620A
public SetRoomInfoRequest()
: base(ServiceTypes.Matching, FunctionTypes.MatchingSetRoomInfo)
{
this.memberInfo.Init();
this.externalRoomInfo.Init();
this.internalRoomInfo.Init();
this.roomSessionInfo.Init();
}
// Token: 0x04000166 RID: 358
public const int MAX_MEMBER_ATTRIBUTES = 8;
// Token: 0x04000167 RID: 359
public const int MAX_ATTRIBUTES = 64;
// Token: 0x04000168 RID: 360
internal ulong roomId;
// Token: 0x04000169 RID: 361
internal Matching.SetRoomInfoType roomInfoType;
// Token: 0x0400016A RID: 362
internal Matching.SetRoomInfoRequest.MemberInformation memberInfo;
// Token: 0x0400016B RID: 363
internal Matching.SetRoomInfoRequest.ExternalRoomInformation externalRoomInfo;
// Token: 0x0400016C RID: 364
internal Matching.SetRoomInfoRequest.InternalRoomInformation internalRoomInfo;
// Token: 0x0400016D RID: 365
internal Matching.SetRoomInfoRequest.RoomSessionInformation roomSessionInfo;
// Token: 0x0400016E RID: 366
internal Matching.TopologyType roomTopology;
// Token: 0x02000061 RID: 97
public struct MemberInformation
{
// Token: 0x0600020C RID: 524 RVA: 0x00007249 File Offset: 0x00006249
internal void Init()
{
this.memberAttributes = new Matching.Attribute[8];
}
// Token: 0x170000CC RID: 204
// (get) Token: 0x0600020D RID: 525 RVA: 0x00007258 File Offset: 0x00006258
// (set) Token: 0x0600020E RID: 526 RVA: 0x000072A4 File Offset: 0x000062A4
public Matching.Attribute[] MemberAttributes
{
get
{
Matching.Attribute[] array;
if (this.numMemberAttributes == 0UL)
{
array = null;
}
else
{
Matching.Attribute[] array2 = new Matching.Attribute[this.numMemberAttributes];
Array.Copy(this.memberAttributes, array2, (int)this.numMemberAttributes);
array = array2;
}
return array;
}
set
{
if (this.memberAttributes == null)
{
this.memberAttributes = new Matching.Attribute[8];
}
if (value != null)
{
if (value.Length > 8)
{
throw new NpToolkitException("The size of the attributes array is more than " + 8);
}
value.CopyTo(this.memberAttributes, 0);
this.numMemberAttributes = (ulong)((long)value.Length);
}
else
{
this.numMemberAttributes = 0UL;
}
}
}
// Token: 0x170000CD RID: 205
// (get) Token: 0x0600020F RID: 527 RVA: 0x00007324 File Offset: 0x00006324
// (set) Token: 0x06000210 RID: 528 RVA: 0x0000733C File Offset: 0x0000633C
public ushort MemberId
{
get
{
return this.memberId;
}
set
{
this.memberId = value;
}
}
// Token: 0x0400016F RID: 367
internal ulong numMemberAttributes;
// Token: 0x04000170 RID: 368
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
internal Matching.Attribute[] memberAttributes;
// Token: 0x04000171 RID: 369
internal ushort memberId;
}
// Token: 0x02000062 RID: 98
public struct ExternalRoomInformation
{
// Token: 0x06000211 RID: 529 RVA: 0x00007346 File Offset: 0x00006346
internal void Init()
{
this.externalAttributes = new Matching.Attribute[64];
this.searchAttributes = new Matching.Attribute[64];
}
// Token: 0x170000CE RID: 206
// (get) Token: 0x06000212 RID: 530 RVA: 0x00007364 File Offset: 0x00006364
// (set) Token: 0x06000213 RID: 531 RVA: 0x000073B0 File Offset: 0x000063B0
public Matching.Attribute[] ExternalAttributes
{
get
{
Matching.Attribute[] array;
if (this.numExternalAttributes == 0UL)
{
array = null;
}
else
{
Matching.Attribute[] array2 = new Matching.Attribute[this.numExternalAttributes];
Array.Copy(this.externalAttributes, array2, (int)this.numExternalAttributes);
array = array2;
}
return array;
}
set
{
if (this.externalAttributes == null)
{
this.externalAttributes = new Matching.Attribute[64];
}
if (value != null)
{
if (value.Length > 64)
{
throw new NpToolkitException("The size of the attributes array is more than " + 64);
}
value.CopyTo(this.externalAttributes, 0);
this.numExternalAttributes = (ulong)((long)value.Length);
}
else
{
this.numExternalAttributes = 0UL;
}
}
}
// Token: 0x170000CF RID: 207
// (get) Token: 0x06000214 RID: 532 RVA: 0x00007434 File Offset: 0x00006434
// (set) Token: 0x06000215 RID: 533 RVA: 0x00007480 File Offset: 0x00006480
public Matching.Attribute[] SearchAttributes
{
get
{
Matching.Attribute[] array;
if (this.numSearchAttributes == 0UL)
{
array = null;
}
else
{
Matching.Attribute[] array2 = new Matching.Attribute[this.numSearchAttributes];
Array.Copy(this.searchAttributes, array2, (int)this.numSearchAttributes);
array = array2;
}
return array;
}
set
{
if (this.searchAttributes == null)
{
this.searchAttributes = new Matching.Attribute[64];
}
if (value != null)
{
if (value.Length > 64)
{
throw new NpToolkitException("The size of the attributes array is more than " + 64);
}
value.CopyTo(this.searchAttributes, 0);
this.numSearchAttributes = (ulong)((long)value.Length);
}
else
{
this.numSearchAttributes = 0UL;
}
}
}
// Token: 0x04000172 RID: 370
internal ulong numExternalAttributes;
// Token: 0x04000173 RID: 371
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
internal Matching.Attribute[] externalAttributes;
// Token: 0x04000174 RID: 372
internal ulong numSearchAttributes;
// Token: 0x04000175 RID: 373
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
internal Matching.Attribute[] searchAttributes;
}
// Token: 0x02000063 RID: 99
public struct InternalRoomInformation
{
// Token: 0x06000216 RID: 534 RVA: 0x00007501 File Offset: 0x00006501
internal void Init()
{
this.internalAttributes = new Matching.Attribute[64];
}
// Token: 0x170000D0 RID: 208
// (get) Token: 0x06000217 RID: 535 RVA: 0x00007514 File Offset: 0x00006514
// (set) Token: 0x06000218 RID: 536 RVA: 0x00007560 File Offset: 0x00006560
public Matching.Attribute[] InternalAttributes
{
get
{
Matching.Attribute[] array;
if (this.numInternalAttributes == 0UL)
{
array = null;
}
else
{
Matching.Attribute[] array2 = new Matching.Attribute[this.numInternalAttributes];
Array.Copy(this.internalAttributes, array2, (int)this.numInternalAttributes);
array = array2;
}
return array;
}
set
{
if (this.internalAttributes == null)
{
this.internalAttributes = new Matching.Attribute[64];
}
if (value != null)
{
if (value.Length > 64)
{
throw new NpToolkitException("The size of the attributes array is more than " + 64);
}
value.CopyTo(this.internalAttributes, 0);
this.numInternalAttributes = (ulong)((long)value.Length);
}
else
{
this.numInternalAttributes = 0UL;
}
}
}
// Token: 0x170000D1 RID: 209
// (get) Token: 0x06000219 RID: 537 RVA: 0x000075E4 File Offset: 0x000065E4
// (set) Token: 0x0600021A RID: 538 RVA: 0x000075FC File Offset: 0x000065FC
public Core.OptionalBoolean AllowBlockedUsersOfMembers
{
get
{
return this.allowBlockedUsersOfMembers;
}
set
{
this.allowBlockedUsersOfMembers = value;
}
}
// Token: 0x170000D2 RID: 210
// (get) Token: 0x0600021B RID: 539 RVA: 0x00007608 File Offset: 0x00006608
// (set) Token: 0x0600021C RID: 540 RVA: 0x00007620 File Offset: 0x00006620
public Core.OptionalBoolean JoinAllLocalUsers
{
get
{
return this.joinAllLocalUsers;
}
set
{
this.joinAllLocalUsers = value;
}
}
// Token: 0x170000D3 RID: 211
// (get) Token: 0x0600021D RID: 541 RVA: 0x0000762C File Offset: 0x0000662C
// (set) Token: 0x0600021E RID: 542 RVA: 0x00007644 File Offset: 0x00006644
public Core.OptionalBoolean IsNatRestricted
{
get
{
return this.isNatRestricted;
}
set
{
this.isNatRestricted = value;
}
}
// Token: 0x170000D4 RID: 212
// (get) Token: 0x0600021F RID: 543 RVA: 0x00007650 File Offset: 0x00006650
// (set) Token: 0x06000220 RID: 544 RVA: 0x00007668 File Offset: 0x00006668
public uint NumReservedSlots
{
get
{
return this.numReservedSlots;
}
set
{
this.numReservedSlots = value;
}
}
// Token: 0x170000D5 RID: 213
// (get) Token: 0x06000221 RID: 545 RVA: 0x00007674 File Offset: 0x00006674
// (set) Token: 0x06000222 RID: 546 RVA: 0x0000768C File Offset: 0x0000668C
public Matching.RoomVisibility Visibility
{
get
{
return this.visibility;
}
set
{
this.visibility = value;
}
}
// Token: 0x170000D6 RID: 214
// (get) Token: 0x06000223 RID: 547 RVA: 0x00007698 File Offset: 0x00006698
// (set) Token: 0x06000224 RID: 548 RVA: 0x000076B0 File Offset: 0x000066B0
public Core.OptionalBoolean CloseRoom
{
get
{
return this.closeRoom;
}
set
{
this.closeRoom = value;
}
}
// Token: 0x04000176 RID: 374
internal ulong numInternalAttributes;
// Token: 0x04000177 RID: 375
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
internal Matching.Attribute[] internalAttributes;
// Token: 0x04000178 RID: 376
internal Core.OptionalBoolean allowBlockedUsersOfMembers;
// Token: 0x04000179 RID: 377
internal Core.OptionalBoolean joinAllLocalUsers;
// Token: 0x0400017A RID: 378
internal Core.OptionalBoolean isNatRestricted;
// Token: 0x0400017B RID: 379
internal uint numReservedSlots;
// Token: 0x0400017C RID: 380
internal Matching.RoomVisibility visibility;
// Token: 0x0400017D RID: 381
internal Core.OptionalBoolean closeRoom;
}
// Token: 0x02000064 RID: 100
public struct RoomSessionInformation
{
// Token: 0x06000225 RID: 549 RVA: 0x000076BA File Offset: 0x000066BA
internal void Init()
{
this.localizations = new Matching.LocalizedSessionInfo[10];
}
// Token: 0x170000D7 RID: 215
// (get) Token: 0x06000226 RID: 550 RVA: 0x000076CC File Offset: 0x000066CC
// (set) Token: 0x06000227 RID: 551 RVA: 0x000076E4 File Offset: 0x000066E4
public Core.OptionalBoolean DisplayOnSystem
{
get
{
return this.displayOnSystem;
}
set
{
this.displayOnSystem = value;
}
}
// Token: 0x170000D8 RID: 216
// (get) Token: 0x06000228 RID: 552 RVA: 0x000076F0 File Offset: 0x000066F0
// (set) Token: 0x06000229 RID: 553 RVA: 0x00007708 File Offset: 0x00006708
public Core.OptionalBoolean IsSystemJoinable
{
get
{
return this.isSystemJoinable;
}
set
{
this.isSystemJoinable = value;
}
}
// Token: 0x170000D9 RID: 217
// (get) Token: 0x0600022A RID: 554 RVA: 0x00007714 File Offset: 0x00006714
// (set) Token: 0x0600022B RID: 555 RVA: 0x0000772C File Offset: 0x0000672C
public byte[] ChangeableData
{
get
{
return this.changeableData;
}
set
{
if (value.Length > 1024)
{
throw new NpToolkitException("The size of the changeable data array is more than " + 1024 + " bytes.");
}
this.changeableData = value;
this.changeableDataSize = (ulong)((long)value.Length);
}
}
// Token: 0x170000DA RID: 218
// (get) Token: 0x0600022C RID: 556 RVA: 0x0000777C File Offset: 0x0000677C
// (set) Token: 0x0600022D RID: 557 RVA: 0x00007794 File Offset: 0x00006794
public string Status
{
get
{
return this.status;
}
set
{
if (value.Length > 255)
{
throw new NpToolkitException("The size of the status string is more than " + 255 + " characters.");
}
this.status = value;
}
}
// Token: 0x170000DB RID: 219
// (get) Token: 0x0600022E RID: 558 RVA: 0x000077E0 File Offset: 0x000067E0
// (set) Token: 0x0600022F RID: 559 RVA: 0x0000782C File Offset: 0x0000682C
public Matching.LocalizedSessionInfo[] Localizations
{
get
{
Matching.LocalizedSessionInfo[] array;
if (this.numLocalizations == 0UL)
{
array = null;
}
else
{
Matching.LocalizedSessionInfo[] array2 = new Matching.LocalizedSessionInfo[this.numLocalizations];
Array.Copy(this.localizations, array2, (int)this.numLocalizations);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 10)
{
throw new NpToolkitException("The size of the localization array is more than " + 10);
}
value.CopyTo(this.localizations, 0);
this.numLocalizations = (ulong)((long)value.Length);
}
else
{
this.numLocalizations = 0UL;
}
}
}
// Token: 0x170000DC RID: 220
// (get) Token: 0x06000230 RID: 560 RVA: 0x00007890 File Offset: 0x00006890
// (set) Token: 0x06000231 RID: 561 RVA: 0x000078A8 File Offset: 0x000068A8
public Matching.SessionImage Image
{
get
{
return this.image;
}
set
{
this.image = value;
}
}
// Token: 0x0400017E RID: 382
internal Core.OptionalBoolean displayOnSystem;
// Token: 0x0400017F RID: 383
internal Core.OptionalBoolean isSystemJoinable;
// Token: 0x04000180 RID: 384
internal ulong changeableDataSize;
// Token: 0x04000181 RID: 385
[MarshalAs(UnmanagedType.LPArray)]
internal byte[] changeableData;
// Token: 0x04000182 RID: 386
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
internal string status;
// Token: 0x04000183 RID: 387
internal ulong numLocalizations;
// Token: 0x04000184 RID: 388
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
internal Matching.LocalizedSessionInfo[] localizations;
// Token: 0x04000185 RID: 389
internal Matching.SessionImage image;
}
}
// Token: 0x02000065 RID: 101
public struct NpMatching2SessionPassword
{
// Token: 0x170000DD RID: 221
// (get) Token: 0x06000232 RID: 562 RVA: 0x000078B4 File Offset: 0x000068B4
// (set) Token: 0x06000233 RID: 563 RVA: 0x000078CC File Offset: 0x000068CC
public string Password
{
get
{
return this.password;
}
set
{
if (value.Length > 8)
{
throw new NpToolkitException("The size of the password string is more than " + 8 + " characters.");
}
this.password = value;
}
}
// Token: 0x06000234 RID: 564 RVA: 0x0000790D File Offset: 0x0000690D
internal void Read(MemoryBuffer buffer)
{
buffer.ReadString(ref this.password);
}
// Token: 0x06000235 RID: 565 RVA: 0x00007920 File Offset: 0x00006920
public override string ToString()
{
return this.password;
}
// Token: 0x06000236 RID: 566 RVA: 0x00007938 File Offset: 0x00006938
public static implicit operator Matching.NpMatching2SessionPassword(string value)
{
return new Matching.NpMatching2SessionPassword
{
Password = value
};
}
// Token: 0x04000186 RID: 390
public const int NP_MATCHING2_SESSION_PASSWORD_SIZE = 8;
// Token: 0x04000187 RID: 391
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8)]
internal string password;
}
// Token: 0x02000066 RID: 102
public struct NpSessionId
{
// Token: 0x170000DE RID: 222
// (get) Token: 0x06000237 RID: 567 RVA: 0x0000795C File Offset: 0x0000695C
public string Data
{
get
{
return this.data;
}
}
// Token: 0x06000238 RID: 568 RVA: 0x00007974 File Offset: 0x00006974
internal void Read(MemoryBuffer buffer)
{
buffer.ReadString(ref this.data);
}
// Token: 0x06000239 RID: 569 RVA: 0x00007984 File Offset: 0x00006984
public override string ToString()
{
return this.data;
}
// Token: 0x04000188 RID: 392
public const int NP_SESSION_ID_MAX_SIZE = 45;
// Token: 0x04000189 RID: 393
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 46)]
internal string data;
}
// Token: 0x02000067 RID: 103
public struct NpMatching2WorldId
{
// Token: 0x170000DF RID: 223
// (get) Token: 0x0600023A RID: 570 RVA: 0x0000799C File Offset: 0x0000699C
// (set) Token: 0x0600023B RID: 571 RVA: 0x000079B4 File Offset: 0x000069B4
public uint Id
{
get
{
return this.id;
}
set
{
this.id = value;
}
}
// Token: 0x0600023C RID: 572 RVA: 0x000079BE File Offset: 0x000069BE
internal void Read(MemoryBuffer buffer)
{
this.id = buffer.ReadUInt32();
}
// Token: 0x0400018A RID: 394
internal uint id;
}
// Token: 0x02000068 RID: 104
public struct NpMatching2WorldNumber
{
// Token: 0x170000E0 RID: 224
// (get) Token: 0x0600023D RID: 573 RVA: 0x000079D0 File Offset: 0x000069D0
// (set) Token: 0x0600023E RID: 574 RVA: 0x000079E8 File Offset: 0x000069E8
public ushort Num
{
get
{
return this.num;
}
set
{
this.num = value;
}
}
// Token: 0x0600023F RID: 575 RVA: 0x000079F2 File Offset: 0x000069F2
internal void Read(MemoryBuffer buffer)
{
this.num = buffer.ReadUInt16();
}
// Token: 0x06000240 RID: 576 RVA: 0x00007A04 File Offset: 0x00006A04
public static implicit operator Matching.NpMatching2WorldNumber(ushort value)
{
return new Matching.NpMatching2WorldNumber
{
num = value
};
}
// Token: 0x0400018B RID: 395
internal ushort num;
}
// Token: 0x02000069 RID: 105
public struct World
{
// Token: 0x170000E1 RID: 225
// (get) Token: 0x06000241 RID: 577 RVA: 0x00007A28 File Offset: 0x00006A28
public Matching.NpMatching2WorldId WorldId
{
get
{
return this.worldId;
}
}
// Token: 0x170000E2 RID: 226
// (get) Token: 0x06000242 RID: 578 RVA: 0x00007A40 File Offset: 0x00006A40
public uint CurrentNumberOfRooms
{
get
{
return this.currentNumberOfRooms;
}
}
// Token: 0x170000E3 RID: 227
// (get) Token: 0x06000243 RID: 579 RVA: 0x00007A58 File Offset: 0x00006A58
public uint CurrentNumberOfMembers
{
get
{
return this.currentNumberOfMembers;
}
}
// Token: 0x170000E4 RID: 228
// (get) Token: 0x06000244 RID: 580 RVA: 0x00007A70 File Offset: 0x00006A70
public Matching.NpMatching2WorldNumber WorldNumber
{
get
{
return this.worldNumber;
}
}
// Token: 0x06000245 RID: 581 RVA: 0x00007A88 File Offset: 0x00006A88
internal void Read(MemoryBuffer buffer)
{
this.worldId.Read(buffer);
this.currentNumberOfRooms = buffer.ReadUInt32();
this.currentNumberOfMembers = buffer.ReadUInt32();
this.worldNumber.Read(buffer);
}
// Token: 0x0400018C RID: 396
internal Matching.NpMatching2WorldId worldId;
// Token: 0x0400018D RID: 397
internal uint currentNumberOfRooms;
// Token: 0x0400018E RID: 398
internal uint currentNumberOfMembers;
// Token: 0x0400018F RID: 399
internal Matching.NpMatching2WorldNumber worldNumber;
}
// Token: 0x0200006A RID: 106
public enum SignalingStatus
{
// Token: 0x04000191 RID: 401
NotApplicable,
// Token: 0x04000192 RID: 402
Established,
// Token: 0x04000193 RID: 403
EstablishedFailToGetInformation,
// Token: 0x04000194 RID: 404
Dead
}
// Token: 0x0200006B RID: 107
public enum NatType
{
// Token: 0x04000196 RID: 406
Invalid,
// Token: 0x04000197 RID: 407
NatType1,
// Token: 0x04000198 RID: 408
NatType2,
// Token: 0x04000199 RID: 409
NatType3
}
// Token: 0x0200006C RID: 108
public class MemberSignalingInformation
{
// Token: 0x170000E5 RID: 229
// (get) Token: 0x06000246 RID: 582 RVA: 0x00007AC0 File Offset: 0x00006AC0
public Matching.NatType NatType
{
get
{
return this.natType;
}
}
// Token: 0x170000E6 RID: 230
// (get) Token: 0x06000247 RID: 583 RVA: 0x00007AD8 File Offset: 0x00006AD8
public Matching.SignalingStatus Status
{
get
{
return this.status;
}
}
// Token: 0x170000E7 RID: 231
// (get) Token: 0x06000248 RID: 584 RVA: 0x00007AF0 File Offset: 0x00006AF0
public uint RoundTripTime
{
get
{
return this.roundTripTime;
}
}
// Token: 0x170000E8 RID: 232
// (get) Token: 0x06000249 RID: 585 RVA: 0x00007B08 File Offset: 0x00006B08
public NetworkUtils.NetInAddr IpAddress
{
get
{
return this.ipAddress;
}
}
// Token: 0x170000E9 RID: 233
// (get) Token: 0x0600024A RID: 586 RVA: 0x00007B20 File Offset: 0x00006B20
public ushort Port
{
get
{
return this.port;
}
}
// Token: 0x170000EA RID: 234
// (get) Token: 0x0600024B RID: 587 RVA: 0x00007B38 File Offset: 0x00006B38
public ushort PortNetworkOrder
{
get
{
return this.portNetworkOrder;
}
}
// Token: 0x0600024C RID: 588 RVA: 0x00007B50 File Offset: 0x00006B50
internal void Read(MemoryBuffer buffer)
{
this.natType = (Matching.NatType)buffer.ReadUInt32();
this.status = (Matching.SignalingStatus)buffer.ReadUInt32();
this.roundTripTime = buffer.ReadUInt32();
this.ipAddress.Read(buffer);
this.port = buffer.ReadUInt16();
this.portNetworkOrder = buffer.ReadUInt16();
}
// Token: 0x0400019A RID: 410
internal Matching.NatType natType;
// Token: 0x0400019B RID: 411
internal Matching.SignalingStatus status;
// Token: 0x0400019C RID: 412
internal uint roundTripTime;
// Token: 0x0400019D RID: 413
internal NetworkUtils.NetInAddr ipAddress;
// Token: 0x0400019E RID: 414
internal ushort port;
// Token: 0x0400019F RID: 415
internal ushort portNetworkOrder;
}
// Token: 0x0200006D RID: 109
public class Member
{
// Token: 0x170000EB RID: 235
// (get) Token: 0x0600024E RID: 590 RVA: 0x00007BB0 File Offset: 0x00006BB0
public Core.OnlineUser OnlineUser
{
get
{
return this.onlineUser;
}
}
// Token: 0x170000EC RID: 236
// (get) Token: 0x0600024F RID: 591 RVA: 0x00007BC8 File Offset: 0x00006BC8
public Matching.Attribute[] MemberAttributes
{
get
{
return this.memberAttributes;
}
}
// Token: 0x170000ED RID: 237
// (get) Token: 0x06000250 RID: 592 RVA: 0x00007BE0 File Offset: 0x00006BE0
public DateTime JoinedDate
{
get
{
return this.joinedDate;
}
}
// Token: 0x170000EE RID: 238
// (get) Token: 0x06000251 RID: 593 RVA: 0x00007BF8 File Offset: 0x00006BF8
public Matching.MemberSignalingInformation SignalingInformation
{
get
{
return this.signalingInformation;
}
}
// Token: 0x170000EF RID: 239
// (get) Token: 0x06000252 RID: 594 RVA: 0x00007C10 File Offset: 0x00006C10
public Core.PlatformType Platform
{
get
{
return this.platform;
}
}
// Token: 0x170000F0 RID: 240
// (get) Token: 0x06000253 RID: 595 RVA: 0x00007C28 File Offset: 0x00006C28
public ushort RoomMemberId
{
get
{
return this.roomMemberId;
}
}
// Token: 0x170000F1 RID: 241
// (get) Token: 0x06000254 RID: 596 RVA: 0x00007C40 File Offset: 0x00006C40
public bool IsOwner
{
get
{
return this.isOwner;
}
}
// Token: 0x170000F2 RID: 242
// (get) Token: 0x06000255 RID: 597 RVA: 0x00007C58 File Offset: 0x00006C58
public bool IsMe
{
get
{
return this.isMe;
}
}
// Token: 0x06000256 RID: 598 RVA: 0x00007C70 File Offset: 0x00006C70
internal void Read(MemoryBuffer buffer)
{
this.onlineUser.Read(buffer);
ulong num = buffer.ReadUInt64();
this.memberAttributes = new Matching.Attribute[num];
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
{
this.memberAttributes[(int)(checked((IntPtr)num2))].Read(buffer);
}
this.joinedDate = Core.ReadRtcTick(buffer);
this.signalingInformation.Read(buffer);
this.platform = (Core.PlatformType)buffer.ReadUInt32();
this.roomMemberId = buffer.ReadUInt16();
this.isOwner = buffer.ReadBool();
this.isMe = buffer.ReadBool();
}
// Token: 0x040001A0 RID: 416
internal Core.OnlineUser onlineUser = new Core.OnlineUser();
// Token: 0x040001A1 RID: 417
internal Matching.Attribute[] memberAttributes;
// Token: 0x040001A2 RID: 418
internal DateTime joinedDate;
// Token: 0x040001A3 RID: 419
internal Matching.MemberSignalingInformation signalingInformation = new Matching.MemberSignalingInformation();
// Token: 0x040001A4 RID: 420
internal Core.PlatformType platform;
// Token: 0x040001A5 RID: 421
internal ushort roomMemberId;
// Token: 0x040001A6 RID: 422
internal bool isOwner;
// Token: 0x040001A7 RID: 423
internal bool isMe;
}
// Token: 0x0200006E RID: 110
public class Room
{
// Token: 0x170000F3 RID: 243
// (get) Token: 0x06000258 RID: 600 RVA: 0x00007D30 File Offset: 0x00006D30
public ushort MatchingContext
{
get
{
return this.matchingContext;
}
}
// Token: 0x170000F4 RID: 244
// (get) Token: 0x06000259 RID: 601 RVA: 0x00007D48 File Offset: 0x00006D48
public ushort ServerId
{
get
{
return this.serverId;
}
}
// Token: 0x170000F5 RID: 245
// (get) Token: 0x0600025A RID: 602 RVA: 0x00007D60 File Offset: 0x00006D60
public uint WorldId
{
get
{
return this.worldId;
}
}
// Token: 0x170000F6 RID: 246
// (get) Token: 0x0600025B RID: 603 RVA: 0x00007D78 File Offset: 0x00006D78
public ulong RoomId
{
get
{
return this.roomId;
}
}
// Token: 0x170000F7 RID: 247
// (get) Token: 0x0600025C RID: 604 RVA: 0x00007D90 File Offset: 0x00006D90
public Matching.Attribute[] Attributes
{
get
{
return this.attributes;
}
}
// Token: 0x170000F8 RID: 248
// (get) Token: 0x0600025D RID: 605 RVA: 0x00007DA8 File Offset: 0x00006DA8
public string Name
{
get
{
return this.name;
}
}
// Token: 0x170000F9 RID: 249
// (get) Token: 0x0600025E RID: 606 RVA: 0x00007DC0 File Offset: 0x00006DC0
public Matching.Member[] CurrentMembers
{
get
{
return this.currentMembers;
}
}
// Token: 0x170000FA RID: 250
// (get) Token: 0x0600025F RID: 607 RVA: 0x00007DD8 File Offset: 0x00006DD8
public ulong NumMaxMembers
{
get
{
return this.numMaxMembers;
}
}
// Token: 0x170000FB RID: 251
// (get) Token: 0x06000260 RID: 608 RVA: 0x00007DF0 File Offset: 0x00006DF0
public Matching.TopologyType Topology
{
get
{
return this.topology;
}
}
// Token: 0x170000FC RID: 252
// (get) Token: 0x06000261 RID: 609 RVA: 0x00007E08 File Offset: 0x00006E08
public uint NumReservedSlots
{
get
{
return this.numReservedSlots;
}
}
// Token: 0x170000FD RID: 253
// (get) Token: 0x06000262 RID: 610 RVA: 0x00007E20 File Offset: 0x00006E20
public bool IsNatRestricted
{
get
{
return this.isNatRestricted;
}
}
// Token: 0x170000FE RID: 254
// (get) Token: 0x06000263 RID: 611 RVA: 0x00007E38 File Offset: 0x00006E38
public bool AllowBlockedUsersOfOwner
{
get
{
return this.allowBlockedUsersOfOwner;
}
}
// Token: 0x170000FF RID: 255
// (get) Token: 0x06000264 RID: 612 RVA: 0x00007E50 File Offset: 0x00006E50
public bool AllowBlockedUsersOfMembers
{
get
{
return this.allowBlockedUsersOfMembers;
}
}
// Token: 0x17000100 RID: 256
// (get) Token: 0x06000265 RID: 613 RVA: 0x00007E68 File Offset: 0x00006E68
public bool JoinAllLocalUsers
{
get
{
return this.joinAllLocalUsers;
}
}
// Token: 0x17000101 RID: 257
// (get) Token: 0x06000266 RID: 614 RVA: 0x00007E80 File Offset: 0x00006E80
public Matching.RoomMigrationType OwnershipMigration
{
get
{
return this.ownershipMigration;
}
}
// Token: 0x17000102 RID: 258
// (get) Token: 0x06000267 RID: 615 RVA: 0x00007E98 File Offset: 0x00006E98
public Matching.RoomVisibility Visibility
{
get
{
return this.visibility;
}
}
// Token: 0x17000103 RID: 259
// (get) Token: 0x06000268 RID: 616 RVA: 0x00007EB0 File Offset: 0x00006EB0
public Matching.NpMatching2SessionPassword Password
{
get
{
return this.password;
}
}
// Token: 0x17000104 RID: 260
// (get) Token: 0x06000269 RID: 617 RVA: 0x00007EC8 File Offset: 0x00006EC8
public Matching.NpSessionId BoundSessionId
{
get
{
return this.boundSessionId;
}
}
// Token: 0x17000105 RID: 261
// (get) Token: 0x0600026A RID: 618 RVA: 0x00007EE0 File Offset: 0x00006EE0
public bool IsSystemJoinable
{
get
{
return this.isSystemJoinable;
}
}
// Token: 0x17000106 RID: 262
// (get) Token: 0x0600026B RID: 619 RVA: 0x00007EF8 File Offset: 0x00006EF8
public bool DisplayOnSystem
{
get
{
return this.displayOnSystem;
}
}
// Token: 0x17000107 RID: 263
// (get) Token: 0x0600026C RID: 620 RVA: 0x00007F10 File Offset: 0x00006F10
public bool HasChangeableData
{
get
{
return this.hasChangeableData;
}
}
// Token: 0x17000108 RID: 264
// (get) Token: 0x0600026D RID: 621 RVA: 0x00007F28 File Offset: 0x00006F28
public bool HasFixedData
{
get
{
return this.hasFixedData;
}
}
// Token: 0x17000109 RID: 265
// (get) Token: 0x0600026E RID: 622 RVA: 0x00007F40 File Offset: 0x00006F40
public bool IsCrossplatform
{
get
{
return this.isCrossplatform;
}
}
// Token: 0x1700010A RID: 266
// (get) Token: 0x0600026F RID: 623 RVA: 0x00007F58 File Offset: 0x00006F58
public bool IsClosed
{
get
{
return this.isClosed;
}
}
// Token: 0x06000270 RID: 624 RVA: 0x00007F70 File Offset: 0x00006F70
public ushort FindRoomMemberId(Core.NpAccountId accountId)
{
ushort num;
if (this.currentMembers == null)
{
num = 0;
}
else
{
for (int i = 0; i < this.currentMembers.Length; i++)
{
if (this.currentMembers[i].OnlineUser.accountId == accountId)
{
return this.currentMembers[i].roomMemberId;
}
}
num = 0;
}
return num;
}
// Token: 0x06000271 RID: 625 RVA: 0x00007FE0 File Offset: 0x00006FE0
public ushort FindRoomMemberId(Core.OnlineID onlineId)
{
ushort num;
if (this.currentMembers == null)
{
num = 0;
}
else
{
for (int i = 0; i < this.currentMembers.Length; i++)
{
if (this.currentMembers[i].OnlineUser.onlineId == onlineId)
{
return this.currentMembers[i].roomMemberId;
}
}
num = 0;
}
return num;
}
// Token: 0x06000272 RID: 626 RVA: 0x00008050 File Offset: 0x00007050
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.RoomBegin);
this.matchingContext = buffer.ReadUInt16();
this.serverId = buffer.ReadUInt16();
this.worldId = buffer.ReadUInt32();
this.roomId = buffer.ReadUInt64();
ulong num = buffer.ReadUInt64();
this.attributes = new Matching.Attribute[num];
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
{
this.attributes[(int)(checked((IntPtr)num2))].Read(buffer);
}
buffer.ReadString(ref this.name);
ulong num3 = buffer.ReadUInt64();
this.currentMembers = new Matching.Member[num3];
for (ulong num2 = 0UL; num2 < num3; num2 += 1UL)
{
checked
{
this.currentMembers[(int)((IntPtr)num2)] = new Matching.Member();
this.currentMembers[(int)((IntPtr)num2)].Read(buffer);
}
}
this.numMaxMembers = buffer.ReadUInt64();
this.topology = (Matching.TopologyType)buffer.ReadUInt32();
this.numReservedSlots = buffer.ReadUInt32();
this.isNatRestricted = buffer.ReadBool();
this.allowBlockedUsersOfOwner = buffer.ReadBool();
this.allowBlockedUsersOfMembers = buffer.ReadBool();
this.joinAllLocalUsers = buffer.ReadBool();
this.ownershipMigration = (Matching.RoomMigrationType)buffer.ReadUInt32();
this.visibility = (Matching.RoomVisibility)buffer.ReadUInt32();
this.password.Read(buffer);
this.boundSessionId.Read(buffer);
this.isSystemJoinable = buffer.ReadBool();
this.displayOnSystem = buffer.ReadBool();
this.hasChangeableData = buffer.ReadBool();
this.hasFixedData = buffer.ReadBool();
this.isCrossplatform = buffer.ReadBool();
this.isClosed = buffer.ReadBool();
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.RoomEnd);
}
// Token: 0x040001A8 RID: 424
internal ushort matchingContext;
// Token: 0x040001A9 RID: 425
internal ushort serverId;
// Token: 0x040001AA RID: 426
internal uint worldId;
// Token: 0x040001AB RID: 427
internal ulong roomId;
// Token: 0x040001AC RID: 428
internal Matching.Attribute[] attributes;
// Token: 0x040001AD RID: 429
internal string name;
// Token: 0x040001AE RID: 430
internal Matching.Member[] currentMembers;
// Token: 0x040001AF RID: 431
internal ulong numMaxMembers;
// Token: 0x040001B0 RID: 432
internal Matching.TopologyType topology;
// Token: 0x040001B1 RID: 433
internal uint numReservedSlots;
// Token: 0x040001B2 RID: 434
internal bool isNatRestricted;
// Token: 0x040001B3 RID: 435
internal bool allowBlockedUsersOfOwner;
// Token: 0x040001B4 RID: 436
internal bool allowBlockedUsersOfMembers;
// Token: 0x040001B5 RID: 437
internal bool joinAllLocalUsers;
// Token: 0x040001B6 RID: 438
internal Matching.RoomMigrationType ownershipMigration;
// Token: 0x040001B7 RID: 439
internal Matching.RoomVisibility visibility;
// Token: 0x040001B8 RID: 440
internal Matching.NpMatching2SessionPassword password;
// Token: 0x040001B9 RID: 441
internal Matching.NpSessionId boundSessionId;
// Token: 0x040001BA RID: 442
internal bool isSystemJoinable;
// Token: 0x040001BB RID: 443
internal bool displayOnSystem;
// Token: 0x040001BC RID: 444
internal bool hasChangeableData;
// Token: 0x040001BD RID: 445
internal bool hasFixedData;
// Token: 0x040001BE RID: 446
internal bool isCrossplatform;
// Token: 0x040001BF RID: 447
internal bool isClosed;
}
// Token: 0x0200006F RID: 111
public class WorldsResponse : ResponseBase
{
// Token: 0x1700010B RID: 267
// (get) Token: 0x06000274 RID: 628 RVA: 0x00008208 File Offset: 0x00007208
public Matching.World[] Worlds
{
get
{
return this.worlds;
}
}
// Token: 0x06000275 RID: 629 RVA: 0x00008220 File Offset: 0x00007220
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.WorldsBegin);
ulong num = memoryBuffer.ReadUInt64();
this.worlds = new Matching.World[num];
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
{
this.worlds[(int)(checked((IntPtr)num2))].Read(memoryBuffer);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.WorldsEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040001C0 RID: 448
internal Matching.World[] worlds;
}
// Token: 0x02000070 RID: 112
public class RoomResponse : ResponseBase
{
// Token: 0x1700010C RID: 268
// (get) Token: 0x06000277 RID: 631 RVA: 0x000082BC File Offset: 0x000072BC
public Matching.Room Room
{
get
{
return this.room;
}
}
// Token: 0x06000278 RID: 632 RVA: 0x000082D4 File Offset: 0x000072D4
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.CreateRoomBegin);
this.room = new Matching.Room();
this.room.Read(memoryBuffer);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.CreateRoomEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040001C1 RID: 449
internal Matching.Room room;
}
// Token: 0x02000071 RID: 113
public class RoomsResponse : ResponseBase
{
// Token: 0x1700010D RID: 269
// (get) Token: 0x0600027A RID: 634 RVA: 0x00008348 File Offset: 0x00007348
public Matching.Room[] Rooms
{
get
{
return this.rooms;
}
}
// Token: 0x0600027B RID: 635 RVA: 0x00008360 File Offset: 0x00007360
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.RoomsBegin);
ulong num = memoryBuffer.ReadUInt64();
this.rooms = new Matching.Room[num];
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
{
checked
{
this.rooms[(int)((IntPtr)num2)] = new Matching.Room();
this.rooms[(int)((IntPtr)num2)].Read(memoryBuffer);
}
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.RoomsEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040001C2 RID: 450
internal Matching.Room[] rooms;
}
// Token: 0x02000072 RID: 114
public class GetRoomPingTimeResponse : ResponseBase
{
// Token: 0x1700010E RID: 270
// (get) Token: 0x0600027D RID: 637 RVA: 0x00008404 File Offset: 0x00007404
public uint RoundTripTime
{
get
{
return this.roundTripTime;
}
}
// Token: 0x0600027E RID: 638 RVA: 0x0000841C File Offset: 0x0000741C
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.RoomPingTimeBegin);
this.roundTripTime = memoryBuffer.ReadUInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.RoomPingTimeEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040001C3 RID: 451
private uint roundTripTime;
}
// Token: 0x02000073 RID: 115
public class GetDataResponse : ResponseBase
{
// Token: 0x1700010F RID: 271
// (get) Token: 0x06000280 RID: 640 RVA: 0x00008484 File Offset: 0x00007484
public byte[] Data
{
get
{
return this.data;
}
}
// Token: 0x17000110 RID: 272
// (get) Token: 0x06000281 RID: 641 RVA: 0x0000849C File Offset: 0x0000749C
public Matching.DataType Type
{
get
{
return this.type;
}
}
// Token: 0x06000282 RID: 642 RVA: 0x000084B4 File Offset: 0x000074B4
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GetDataBegin);
this.type = (Matching.DataType)memoryBuffer.ReadUInt32();
memoryBuffer.ReadData(ref this.data);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GetDataEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040001C4 RID: 452
internal byte[] data;
// Token: 0x040001C5 RID: 453
internal Matching.DataType type;
}
// Token: 0x02000074 RID: 116
public enum Reasons
{
// Token: 0x040001C7 RID: 455
MemberJoined,
// Token: 0x040001C8 RID: 456
MemberLeft,
// Token: 0x040001C9 RID: 457
MemberSignalingUpdate,
// Token: 0x040001CA RID: 458
MemberInfoUpdated,
// Token: 0x040001CB RID: 459
OwnerChanged,
// Token: 0x040001CC RID: 460
RoomDestroyed,
// Token: 0x040001CD RID: 461
RoomKickedOut,
// Token: 0x040001CE RID: 462
RoomExternalInfoUpdated,
// Token: 0x040001CF RID: 463
RoomInternalInfoUpdated,
// Token: 0x040001D0 RID: 464
RoomTopologyUpdated,
// Token: 0x040001D1 RID: 465
RoomSessionInfoUpdated
}
// Token: 0x02000075 RID: 117
public enum Causes
{
// Token: 0x040001D3 RID: 467
Unknown = 1,
// Token: 0x040001D4 RID: 468
LeaveAction = 1,
// Token: 0x040001D5 RID: 469
KickoutAction,
// Token: 0x040001D6 RID: 470
GrantOwnerAction,
// Token: 0x040001D7 RID: 471
ServerOperation,
// Token: 0x040001D8 RID: 472
MemberDisappeared,
// Token: 0x040001D9 RID: 473
ServerInternal,
// Token: 0x040001DA RID: 474
ConnectionError,
// Token: 0x040001DB RID: 475
SignedOut,
// Token: 0x040001DC RID: 476
SystemError,
// Token: 0x040001DD RID: 477
ContextError,
// Token: 0x040001DE RID: 478
ContextAction
}
// Token: 0x02000076 RID: 118
public class RefreshRoomResponse : ResponseBase
{
// Token: 0x17000111 RID: 273
// (get) Token: 0x06000284 RID: 644 RVA: 0x00008528 File Offset: 0x00007528
public ulong RoomId
{
get
{
return this.roomId;
}
}
// Token: 0x17000112 RID: 274
// (get) Token: 0x06000285 RID: 645 RVA: 0x00008540 File Offset: 0x00007540
public Matching.PresenceOptionData NotificationFromMember
{
get
{
return this.notificationFromMember;
}
}
// Token: 0x17000113 RID: 275
// (get) Token: 0x06000286 RID: 646 RVA: 0x00008558 File Offset: 0x00007558
public Matching.Reasons Reason
{
get
{
return this.reason;
}
}
// Token: 0x17000114 RID: 276
// (get) Token: 0x06000287 RID: 647 RVA: 0x00008570 File Offset: 0x00007570
public Matching.Causes Cause
{
get
{
return this.cause;
}
}
// Token: 0x17000115 RID: 277
// (get) Token: 0x06000288 RID: 648 RVA: 0x00008588 File Offset: 0x00007588
public Matching.RefreshRoomResponse.OwnerInformation OwnerInfo
{
get
{
return this.ownerInfo;
}
}
// Token: 0x17000116 RID: 278
// (get) Token: 0x06000289 RID: 649 RVA: 0x000085A0 File Offset: 0x000075A0
public Matching.Member MemberInfo
{
get
{
return this.memberInfo;
}
}
// Token: 0x17000117 RID: 279
// (get) Token: 0x0600028A RID: 650 RVA: 0x000085B8 File Offset: 0x000075B8
public long RoomLeftError
{
get
{
return this.roomLeftError;
}
}
// Token: 0x17000118 RID: 280
// (get) Token: 0x0600028B RID: 651 RVA: 0x000085D0 File Offset: 0x000075D0
public Matching.RefreshRoomResponse.RoomExternalInformation RoomExternalInfo
{
get
{
return this.roomExternalInfo;
}
}
// Token: 0x17000119 RID: 281
// (get) Token: 0x0600028C RID: 652 RVA: 0x000085E8 File Offset: 0x000075E8
public Matching.RefreshRoomResponse.RoomInternalInformation RoomInternalInfo
{
get
{
return this.roomInternalInfo;
}
}
// Token: 0x1700011A RID: 282
// (get) Token: 0x0600028D RID: 653 RVA: 0x00008600 File Offset: 0x00007600
public Matching.RefreshRoomResponse.RoomSessionInformation RoomSessionInfo
{
get
{
return this.roomSessionInfo;
}
}
// Token: 0x1700011B RID: 283
// (get) Token: 0x0600028E RID: 654 RVA: 0x00008618 File Offset: 0x00007618
public Matching.TopologyType RoomTopology
{
get
{
return this.roomTopology;
}
}
// Token: 0x0600028F RID: 655 RVA: 0x00008630 File Offset: 0x00007630
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.RefreshRoomBegin);
this.roomId = memoryBuffer.ReadUInt64();
this.notificationFromMember.Read(memoryBuffer);
this.reason = (Matching.Reasons)memoryBuffer.ReadUInt32();
this.cause = (Matching.Causes)memoryBuffer.ReadUInt32();
if (this.reason == Matching.Reasons.MemberJoined || this.reason == Matching.Reasons.MemberLeft || this.reason == Matching.Reasons.MemberSignalingUpdate || this.reason == Matching.Reasons.MemberInfoUpdated)
{
this.memberInfo = new Matching.Member();
this.memberInfo.Read(memoryBuffer);
}
else if (this.reason == Matching.Reasons.OwnerChanged)
{
this.ownerInfo = new Matching.RefreshRoomResponse.OwnerInformation();
this.ownerInfo.Read(memoryBuffer);
}
else if (this.reason == Matching.Reasons.RoomDestroyed || this.reason == Matching.Reasons.RoomKickedOut)
{
this.roomLeftError = memoryBuffer.ReadInt64();
}
else if (this.reason == Matching.Reasons.RoomExternalInfoUpdated)
{
this.roomExternalInfo = new Matching.RefreshRoomResponse.RoomExternalInformation();
this.roomExternalInfo.Read(memoryBuffer);
}
else if (this.reason == Matching.Reasons.RoomInternalInfoUpdated)
{
this.roomInternalInfo = new Matching.RefreshRoomResponse.RoomInternalInformation();
this.roomInternalInfo.Read(memoryBuffer);
}
else if (this.reason == Matching.Reasons.RoomSessionInfoUpdated)
{
this.roomSessionInfo = new Matching.RefreshRoomResponse.RoomSessionInformation();
this.roomSessionInfo.Read(memoryBuffer);
}
else if (this.reason == Matching.Reasons.RoomTopologyUpdated)
{
this.roomTopology = (Matching.TopologyType)memoryBuffer.ReadUInt32();
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.RefreshRoomEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040001DF RID: 479
internal ulong roomId;
// Token: 0x040001E0 RID: 480
internal Matching.PresenceOptionData notificationFromMember;
// Token: 0x040001E1 RID: 481
internal Matching.Reasons reason;
// Token: 0x040001E2 RID: 482
internal Matching.Causes cause;
// Token: 0x040001E3 RID: 483
internal Matching.RefreshRoomResponse.OwnerInformation ownerInfo;
// Token: 0x040001E4 RID: 484
internal Matching.Member memberInfo;
// Token: 0x040001E5 RID: 485
internal long roomLeftError;
// Token: 0x040001E6 RID: 486
internal Matching.RefreshRoomResponse.RoomExternalInformation roomExternalInfo;
// Token: 0x040001E7 RID: 487
internal Matching.RefreshRoomResponse.RoomInternalInformation roomInternalInfo;
// Token: 0x040001E8 RID: 488
internal Matching.RefreshRoomResponse.RoomSessionInformation roomSessionInfo;
// Token: 0x040001E9 RID: 489
internal Matching.TopologyType roomTopology;
// Token: 0x02000077 RID: 119
public class OwnerInformation
{
// Token: 0x1700011C RID: 284
// (get) Token: 0x06000291 RID: 657 RVA: 0x0000880C File Offset: 0x0000780C
public Matching.NpMatching2SessionPassword Password
{
get
{
return this.password;
}
}
// Token: 0x1700011D RID: 285
// (get) Token: 0x06000292 RID: 658 RVA: 0x00008824 File Offset: 0x00007824
public ushort[] OldAndNewOwners
{
get
{
return this.oldAndNewOwners;
}
}
// Token: 0x06000293 RID: 659 RVA: 0x0000883C File Offset: 0x0000783C
internal void Read(MemoryBuffer buffer)
{
this.password.Read(buffer);
for (int i = 0; i < 2; i++)
{
this.oldAndNewOwners[i] = buffer.ReadUInt16();
}
}
// Token: 0x06000294 RID: 660 RVA: 0x00008877 File Offset: 0x00007877
internal OwnerInformation()
{
this.oldAndNewOwners = new ushort[2];
}
// Token: 0x040001EA RID: 490
public const int OWNER_EXCHANGE_SIZE = 2;
// Token: 0x040001EB RID: 491
internal Matching.NpMatching2SessionPassword password;
// Token: 0x040001EC RID: 492
internal ushort[] oldAndNewOwners;
}
// Token: 0x02000078 RID: 120
public class RoomExternalInformation
{
// Token: 0x1700011E RID: 286
// (get) Token: 0x06000295 RID: 661 RVA: 0x00008890 File Offset: 0x00007890
public Matching.Attribute[] Attributes
{
get
{
return this.attributes;
}
}
// Token: 0x06000296 RID: 662 RVA: 0x000088A8 File Offset: 0x000078A8
internal void Read(MemoryBuffer buffer)
{
ulong num = buffer.ReadUInt64();
this.attributes = new Matching.Attribute[num];
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
{
checked
{
this.attributes[(int)((IntPtr)num2)] = default(Matching.Attribute);
this.attributes[(int)((IntPtr)num2)].Read(buffer);
}
}
}
// Token: 0x040001ED RID: 493
internal Matching.Attribute[] attributes;
}
// Token: 0x02000079 RID: 121
public class RoomInternalInformation
{
// Token: 0x1700011F RID: 287
// (get) Token: 0x06000298 RID: 664 RVA: 0x00008910 File Offset: 0x00007910
public Matching.Attribute[] Attributes
{
get
{
return this.attributes;
}
}
// Token: 0x17000120 RID: 288
// (get) Token: 0x06000299 RID: 665 RVA: 0x00008928 File Offset: 0x00007928
public Core.OptionalBoolean AllowBlockedUsersOfMembers
{
get
{
return this.allowBlockedUsersOfMembers;
}
}
// Token: 0x17000121 RID: 289
// (get) Token: 0x0600029A RID: 666 RVA: 0x00008940 File Offset: 0x00007940
public Core.OptionalBoolean JoinAllLocalUsers
{
get
{
return this.joinAllLocalUsers;
}
}
// Token: 0x17000122 RID: 290
// (get) Token: 0x0600029B RID: 667 RVA: 0x00008958 File Offset: 0x00007958
public Core.OptionalBoolean IsNatRestricted
{
get
{
return this.isNatRestricted;
}
}
// Token: 0x17000123 RID: 291
// (get) Token: 0x0600029C RID: 668 RVA: 0x00008970 File Offset: 0x00007970
public uint NumReservedSlots
{
get
{
return this.numReservedSlots;
}
}
// Token: 0x17000124 RID: 292
// (get) Token: 0x0600029D RID: 669 RVA: 0x00008988 File Offset: 0x00007988
public Matching.RoomVisibility Visibility
{
get
{
return this.visibility;
}
}
// Token: 0x17000125 RID: 293
// (get) Token: 0x0600029E RID: 670 RVA: 0x000089A0 File Offset: 0x000079A0
public Core.OptionalBoolean CloseRoom
{
get
{
return this.closeRoom;
}
}
// Token: 0x0600029F RID: 671 RVA: 0x000089B8 File Offset: 0x000079B8
internal void Read(MemoryBuffer buffer)
{
ulong num = buffer.ReadUInt64();
this.attributes = new Matching.Attribute[num];
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
{
checked
{
this.attributes[(int)((IntPtr)num2)] = default(Matching.Attribute);
this.attributes[(int)((IntPtr)num2)].Read(buffer);
}
}
this.allowBlockedUsersOfMembers = (Core.OptionalBoolean)buffer.ReadUInt32();
this.joinAllLocalUsers = (Core.OptionalBoolean)buffer.ReadUInt32();
this.isNatRestricted = (Core.OptionalBoolean)buffer.ReadUInt32();
this.numReservedSlots = buffer.ReadUInt32();
this.visibility = (Matching.RoomVisibility)buffer.ReadUInt32();
this.closeRoom = (Core.OptionalBoolean)buffer.ReadUInt32();
}
// Token: 0x040001EE RID: 494
internal Matching.Attribute[] attributes;
// Token: 0x040001EF RID: 495
internal Core.OptionalBoolean allowBlockedUsersOfMembers;
// Token: 0x040001F0 RID: 496
internal Core.OptionalBoolean joinAllLocalUsers;
// Token: 0x040001F1 RID: 497
internal Core.OptionalBoolean isNatRestricted;
// Token: 0x040001F2 RID: 498
internal uint numReservedSlots;
// Token: 0x040001F3 RID: 499
internal Matching.RoomVisibility visibility;
// Token: 0x040001F4 RID: 500
internal Core.OptionalBoolean closeRoom;
}
// Token: 0x0200007A RID: 122
public class RoomSessionInformation
{
// Token: 0x17000126 RID: 294
// (get) Token: 0x060002A1 RID: 673 RVA: 0x00008A68 File Offset: 0x00007A68
public Core.OptionalBoolean DisplayOnSystem
{
get
{
return this.displayOnSystem;
}
}
// Token: 0x17000127 RID: 295
// (get) Token: 0x060002A2 RID: 674 RVA: 0x00008A80 File Offset: 0x00007A80
public Core.OptionalBoolean IsSystemJoinable
{
get
{
return this.isSystemJoinable;
}
}
// Token: 0x17000128 RID: 296
// (get) Token: 0x060002A3 RID: 675 RVA: 0x00008A98 File Offset: 0x00007A98
public Core.OptionalBoolean HasChangeableData
{
get
{
return this.hasChangeableData;
}
}
// Token: 0x17000129 RID: 297
// (get) Token: 0x060002A4 RID: 676 RVA: 0x00008AB0 File Offset: 0x00007AB0
public Matching.NpSessionId BoundSessionId
{
get
{
return this.boundSessionId;
}
}
// Token: 0x060002A5 RID: 677 RVA: 0x00008AC8 File Offset: 0x00007AC8
internal void Read(MemoryBuffer buffer)
{
this.displayOnSystem = (Core.OptionalBoolean)buffer.ReadUInt32();
this.isSystemJoinable = (Core.OptionalBoolean)buffer.ReadUInt32();
this.hasChangeableData = (Core.OptionalBoolean)buffer.ReadUInt32();
this.boundSessionId.Read(buffer);
}
// Token: 0x040001F5 RID: 501
internal Core.OptionalBoolean displayOnSystem;
// Token: 0x040001F6 RID: 502
internal Core.OptionalBoolean isSystemJoinable;
// Token: 0x040001F7 RID: 503
internal Core.OptionalBoolean hasChangeableData;
// Token: 0x040001F8 RID: 504
internal Matching.NpSessionId boundSessionId;
}
}
// Token: 0x0200007B RID: 123
public class NewRoomMessageResponse : ResponseBase
{
// Token: 0x1700012A RID: 298
// (get) Token: 0x060002A7 RID: 679 RVA: 0x00008B04 File Offset: 0x00007B04
public ulong RoomId
{
get
{
return this.roomId;
}
}
// Token: 0x1700012B RID: 299
// (get) Token: 0x060002A8 RID: 680 RVA: 0x00008B1C File Offset: 0x00007B1C
public byte[] Data
{
get
{
return this.data;
}
}
// Token: 0x1700012C RID: 300
// (get) Token: 0x060002A9 RID: 681 RVA: 0x00008B34 File Offset: 0x00007B34
public string DataAsString
{
get
{
if (!this.isChatMsg)
{
throw new NpToolkitException("Room message data is not a UTF-8 string.");
}
string text;
if (this.data == null)
{
text = "";
}
else
{
text = Encoding.UTF8.GetString(this.data, 0, this.data.Length);
}
return text;
}
}
// Token: 0x1700012D RID: 301
// (get) Token: 0x060002AA RID: 682 RVA: 0x00008B90 File Offset: 0x00007B90
public ushort Sender
{
get
{
return this.sender;
}
}
// Token: 0x1700012E RID: 302
// (get) Token: 0x060002AB RID: 683 RVA: 0x00008BA8 File Offset: 0x00007BA8
public bool IsChatMsg
{
get
{
return this.isChatMsg;
}
}
// Token: 0x1700012F RID: 303
// (get) Token: 0x060002AC RID: 684 RVA: 0x00008BC0 File Offset: 0x00007BC0
public bool IsFiltered
{
get
{
return this.isFiltered;
}
}
// Token: 0x060002AD RID: 685 RVA: 0x00008BD8 File Offset: 0x00007BD8
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NewRoomMessageBegin);
this.roomId = memoryBuffer.ReadUInt64();
memoryBuffer.ReadData(ref this.data);
this.sender = memoryBuffer.ReadUInt16();
this.isChatMsg = memoryBuffer.ReadBool();
this.isFiltered = memoryBuffer.ReadBool();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NewRoomMessageEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040001F9 RID: 505
internal ulong roomId;
// Token: 0x040001FA RID: 506
internal byte[] data;
// Token: 0x040001FB RID: 507
internal ushort sender;
// Token: 0x040001FC RID: 508
internal bool isChatMsg;
// Token: 0x040001FD RID: 509
internal bool isFiltered;
}
// Token: 0x0200007C RID: 124
public enum CurrentPlatform
{
// Token: 0x040001FF RID: 511
NotSet,
// Token: 0x04000200 RID: 512
PSVita,
// Token: 0x04000201 RID: 513
PS4
}
// Token: 0x0200007D RID: 125
public class InvitationReceivedResponse : ResponseBase
{
// Token: 0x17000130 RID: 304
// (get) Token: 0x060002AF RID: 687 RVA: 0x00008C78 File Offset: 0x00007C78
public Core.OnlineUser LocalUpdatedUser
{
get
{
return this.localUpdatedUser;
}
}
// Token: 0x17000131 RID: 305
// (get) Token: 0x060002B0 RID: 688 RVA: 0x00008C90 File Offset: 0x00007C90
public Core.OnlineUser RemoteUser
{
get
{
return this.remoteUser;
}
}
// Token: 0x17000132 RID: 306
// (get) Token: 0x060002B1 RID: 689 RVA: 0x00008CA8 File Offset: 0x00007CA8
public Matching.CurrentPlatform Platform
{
get
{
return this.platform;
}
}
// Token: 0x060002B2 RID: 690 RVA: 0x00008CC0 File Offset: 0x00007CC0
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.InvitationReceivedBegin);
this.localUpdatedUser.Read(memoryBuffer);
this.remoteUser.Read(memoryBuffer);
this.platform = (Matching.CurrentPlatform)memoryBuffer.ReadUInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.InvitationReceivedEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000202 RID: 514
internal Core.OnlineUser localUpdatedUser = new Core.OnlineUser();
// Token: 0x04000203 RID: 515
internal Core.OnlineUser remoteUser = new Core.OnlineUser();
// Token: 0x04000204 RID: 516
internal Matching.CurrentPlatform platform;
}
// Token: 0x0200007E RID: 126
public struct NpInvitationId
{
// Token: 0x17000133 RID: 307
// (get) Token: 0x060002B4 RID: 692 RVA: 0x00008D58 File Offset: 0x00007D58
public string Id
{
get
{
return this.id;
}
}
// Token: 0x060002B5 RID: 693 RVA: 0x00008D70 File Offset: 0x00007D70
internal void Read(MemoryBuffer buffer)
{
buffer.ReadString(ref this.id);
}
// Token: 0x060002B6 RID: 694 RVA: 0x00008D80 File Offset: 0x00007D80
public override string ToString()
{
return this.id;
}
// Token: 0x04000205 RID: 517
public const int NP_INVITATION_ID_MAX_SIZE = 60;
// Token: 0x04000206 RID: 518
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 60)]
internal string id;
}
// Token: 0x0200007F RID: 127
public class SessionInvitationEventResponse : ResponseBase
{
// Token: 0x17000134 RID: 308
// (get) Token: 0x060002B7 RID: 695 RVA: 0x00008D98 File Offset: 0x00007D98
public Matching.NpSessionId SessionId
{
get
{
return this.sessionId;
}
}
// Token: 0x17000135 RID: 309
// (get) Token: 0x060002B8 RID: 696 RVA: 0x00008DB0 File Offset: 0x00007DB0
public Matching.NpInvitationId InvitationId
{
get
{
return this.invitationId;
}
}
// Token: 0x17000136 RID: 310
// (get) Token: 0x060002B9 RID: 697 RVA: 0x00008DC8 File Offset: 0x00007DC8
public bool AcceptedInvite
{
get
{
return this.acceptedInvite;
}
}
// Token: 0x17000137 RID: 311
// (get) Token: 0x060002BA RID: 698 RVA: 0x00008DE0 File Offset: 0x00007DE0
public Core.OnlineID OnlineId
{
get
{
return this.onlineId;
}
}
// Token: 0x17000138 RID: 312
// (get) Token: 0x060002BB RID: 699 RVA: 0x00008DF8 File Offset: 0x00007DF8
public Core.UserServiceUserId UserId
{
get
{
return this.userId;
}
}
// Token: 0x17000139 RID: 313
// (get) Token: 0x060002BC RID: 700 RVA: 0x00008E10 File Offset: 0x00007E10
public Core.OnlineID ReferralOnlineId
{
get
{
return this.referralOnlineId;
}
}
// Token: 0x1700013A RID: 314
// (get) Token: 0x060002BD RID: 701 RVA: 0x00008E28 File Offset: 0x00007E28
public Core.NpAccountId ReferralAccountId
{
get
{
return this.referralAccountId;
}
}
// Token: 0x060002BE RID: 702 RVA: 0x00008E40 File Offset: 0x00007E40
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SessionInvitationEventBegin);
this.sessionId.Read(memoryBuffer);
this.invitationId.Read(memoryBuffer);
int num = memoryBuffer.ReadInt32();
if ((num & 1) != 0)
{
this.acceptedInvite = true;
}
this.onlineId.Read(memoryBuffer);
this.userId.Read(memoryBuffer);
this.referralOnlineId.Read(memoryBuffer);
this.referralAccountId.Read(memoryBuffer);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SessionInvitationEventEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000207 RID: 519
internal Matching.NpSessionId sessionId;
// Token: 0x04000208 RID: 520
internal Matching.NpInvitationId invitationId;
// Token: 0x04000209 RID: 521
internal bool acceptedInvite;
// Token: 0x0400020A RID: 522
internal Core.OnlineID onlineId = new Core.OnlineID();
// Token: 0x0400020B RID: 523
internal Core.UserServiceUserId userId;
// Token: 0x0400020C RID: 524
internal Core.OnlineID referralOnlineId = new Core.OnlineID();
// Token: 0x0400020D RID: 525
internal Core.NpAccountId referralAccountId;
}
// Token: 0x02000080 RID: 128
public struct NpPlayTogetherInvitee
{
// Token: 0x1700013B RID: 315
// (get) Token: 0x060002C0 RID: 704 RVA: 0x00008F20 File Offset: 0x00007F20
public Core.NpAccountId AccountId
{
get
{
return this.accountId;
}
}
// Token: 0x1700013C RID: 316
// (get) Token: 0x060002C1 RID: 705 RVA: 0x00008F38 File Offset: 0x00007F38
public Core.OnlineID OnlineId
{
get
{
return this.onlineId;
}
}
// Token: 0x060002C2 RID: 706 RVA: 0x00008F50 File Offset: 0x00007F50
internal void Read(MemoryBuffer buffer)
{
this.onlineId = new Core.OnlineID();
this.accountId.Read(buffer);
this.onlineId.Read(buffer);
}
// Token: 0x0400020E RID: 526
internal Core.NpAccountId accountId;
// Token: 0x0400020F RID: 527
internal Core.OnlineID onlineId;
}
// Token: 0x02000081 RID: 129
public class PlayTogetherHostEventResponse : ResponseBase
{
// Token: 0x1700013D RID: 317
// (get) Token: 0x060002C3 RID: 707 RVA: 0x00008F78 File Offset: 0x00007F78
public Core.UserServiceUserId UserId
{
get
{
return this.userId;
}
}
// Token: 0x1700013E RID: 318
// (get) Token: 0x060002C4 RID: 708 RVA: 0x00008F90 File Offset: 0x00007F90
public Matching.NpPlayTogetherInvitee[] Invitees
{
get
{
return this.invitees;
}
}
// Token: 0x060002C5 RID: 709 RVA: 0x00008FA8 File Offset: 0x00007FA8
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.PlayTogetherHostEventBegin);
this.userId.Read(memoryBuffer);
uint num = memoryBuffer.ReadUInt32();
this.invitees = new Matching.NpPlayTogetherInvitee[num];
int num2 = 0;
while ((long)num2 < (long)((ulong)num))
{
this.invitees[num2].Read(memoryBuffer);
num2++;
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.PlayTogetherHostEventEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000210 RID: 528
internal Core.UserServiceUserId userId;
// Token: 0x04000211 RID: 529
internal Matching.NpPlayTogetherInvitee[] invitees;
}
}
}
+550
View File
@@ -0,0 +1,550 @@
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace Sony.NP
{
// Token: 0x02000131 RID: 305
internal class MemoryBuffer
{
// Token: 0x0600063F RID: 1599 RVA: 0x000115B6 File Offset: 0x000105B6
public MemoryBuffer(NpMemoryBuffer pointer)
{
this.rawBuffer.data = pointer.data;
this.rawBuffer.size = pointer.size;
this.pos = this.rawBuffer.data;
}
// Token: 0x06000640 RID: 1600 RVA: 0x000115F6 File Offset: 0x000105F6
public void CheckStartMarker()
{
this.CheckMarker(MemoryBuffer.BufferIntegrityChecks.BufferBegin);
}
// Token: 0x06000641 RID: 1601 RVA: 0x00011601 File Offset: 0x00010601
public void CheckEndMarker()
{
this.CheckMarker(MemoryBuffer.BufferIntegrityChecks.BufferEnd);
}
// Token: 0x06000642 RID: 1602 RVA: 0x0001160C File Offset: 0x0001060C
public void CheckMarker(MemoryBuffer.BufferIntegrityChecks value)
{
byte b = Marshal.ReadByte(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 1L);
byte b2 = Marshal.ReadByte(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 1L);
byte b3 = Marshal.ReadByte(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 1L);
byte b4 = Marshal.ReadByte(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 1L);
if (b == 255 && b2 == 254 && b3 == 253 && (MemoryBuffer.BufferIntegrityChecks)b4 == value)
{
return;
}
throw new NpToolkitException("MemoryBuffer - CheckMarker error - Expecting " + value.ToString());
}
// Token: 0x06000643 RID: 1603 RVA: 0x000116F4 File Offset: 0x000106F4
public void CheckBufferOverflow(string method)
{
long num = this.pos.ToInt64() - this.rawBuffer.data.ToInt64();
if ((uint)num > this.rawBuffer.size)
{
throw new NpToolkitException(string.Concat(new object[]
{
"MemoryBuffer - Overflow error detected. (",
method,
") (",
num,
",",
this.rawBuffer.size,
")"
}));
}
}
// Token: 0x06000644 RID: 1604 RVA: 0x0001178C File Offset: 0x0001078C
public bool ReadBool()
{
this.CheckBufferOverflow("ReadBool");
byte b = Marshal.ReadByte(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 1L);
return b != 0;
}
// Token: 0x06000645 RID: 1605 RVA: 0x000117E0 File Offset: 0x000107E0
public sbyte ReadInt8()
{
this.CheckBufferOverflow("ReadInt8");
sbyte b = (sbyte)Marshal.ReadByte(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 1L);
return b;
}
// Token: 0x06000646 RID: 1606 RVA: 0x00011828 File Offset: 0x00010828
public byte ReadUInt8()
{
this.CheckBufferOverflow("ReadUInt8");
byte b = Marshal.ReadByte(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 1L);
return b;
}
// Token: 0x06000647 RID: 1607 RVA: 0x0001186C File Offset: 0x0001086C
public short ReadInt16()
{
this.CheckBufferOverflow("ReadInt16");
short num = Marshal.ReadInt16(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 2L);
return num;
}
// Token: 0x06000648 RID: 1608 RVA: 0x000118B0 File Offset: 0x000108B0
public ushort ReadUInt16()
{
this.CheckBufferOverflow("ReadUInt16");
ushort num = (ushort)Marshal.ReadInt16(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 2L);
return num;
}
// Token: 0x06000649 RID: 1609 RVA: 0x000118F8 File Offset: 0x000108F8
public int ReadInt32()
{
this.CheckBufferOverflow("ReadInt32");
int num = Marshal.ReadInt32(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 4L);
return num;
}
// Token: 0x0600064A RID: 1610 RVA: 0x0001193C File Offset: 0x0001093C
public uint ReadUInt32()
{
this.CheckBufferOverflow("ReadUInt32");
uint num = (uint)Marshal.ReadInt32(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 4L);
return num;
}
// Token: 0x0600064B RID: 1611 RVA: 0x00011980 File Offset: 0x00010980
public long ReadInt64()
{
this.CheckBufferOverflow("ReadInt64");
long num = Marshal.ReadInt64(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 8L);
return num;
}
// Token: 0x0600064C RID: 1612 RVA: 0x000119C4 File Offset: 0x000109C4
public ulong ReadUInt64()
{
this.CheckBufferOverflow("ReadUInt64");
ulong num = (ulong)Marshal.ReadInt64(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 8L);
return num;
}
// Token: 0x0600064D RID: 1613 RVA: 0x00011A08 File Offset: 0x00010A08
public IntPtr ReadPtr()
{
this.CheckBufferOverflow("ReadPtr");
long num = Marshal.ReadInt64(this.pos);
this.pos = new IntPtr(this.pos.ToInt64() + 8L);
IntPtr intPtr = new IntPtr(num);
return intPtr;
}
// Token: 0x0600064E RID: 1614 RVA: 0x00011A58 File Offset: 0x00010A58
public double ReadDouble()
{
this.CheckBufferOverflow("ReadDouble");
double[] array = new double[1];
Marshal.Copy(this.pos, array, 0, 1);
this.pos = new IntPtr(this.pos.ToInt64() + 8L);
return array[0];
}
// Token: 0x0600064F RID: 1615 RVA: 0x00011AA8 File Offset: 0x00010AA8
public uint ReadData(ref byte[] data)
{
this.CheckBufferOverflow("ReadData");
uint num = this.ReadUInt32();
uint num2;
if (num == 0U)
{
num2 = 0U;
}
else
{
if (data == null || (long)data.Length != (long)((ulong)num))
{
data = new byte[num];
}
Marshal.Copy(this.pos, data, 0, (int)num);
this.pos = new IntPtr(this.pos.ToInt64() + (long)((ulong)num));
num2 = num;
}
return num2;
}
// Token: 0x06000650 RID: 1616 RVA: 0x00011B28 File Offset: 0x00010B28
public uint ReadData(ref byte[] data, uint startIndex)
{
this.CheckBufferOverflow("ReadData");
uint num = this.ReadUInt32();
uint num2;
if (num == 0U)
{
num2 = 0U;
}
else
{
if (data == null || (ulong)(startIndex + num) > (ulong)((long)data.Length))
{
byte[] array = new byte[num];
if (data != null)
{
Array.Copy(data, array, (long)((ulong)startIndex));
}
data = array;
}
Marshal.Copy(this.pos, data, (int)startIndex, (int)num);
this.pos = new IntPtr(this.pos.ToInt64() + (long)((ulong)num));
num2 = num;
}
return num2;
}
// Token: 0x06000651 RID: 1617 RVA: 0x00011BC4 File Offset: 0x00010BC4
public void ReadString(ref string str)
{
this.CheckBufferOverflow("ReadString");
byte[] array = null;
uint num = this.ReadData(ref array);
if (num == 0U)
{
str = "";
}
else
{
str = Encoding.UTF8.GetString(array, 0, array.Length);
}
}
// Token: 0x06000652 RID: 1618 RVA: 0x00011C10 File Offset: 0x00010C10
public override string ToString()
{
long num = this.pos.ToInt64() - this.rawBuffer.data.ToInt64();
return string.Concat(new object[]
{
"Memorry buffer : Data = (",
this.rawBuffer.data.ToInt64().ToString("X"),
") Size = (",
this.rawBuffer.size,
") Read = (",
num,
")"
});
}
// Token: 0x040004FA RID: 1274
private NpMemoryBuffer rawBuffer;
// Token: 0x040004FB RID: 1275
private IntPtr pos;
// Token: 0x02000132 RID: 306
public enum BufferIntegrityChecks
{
// Token: 0x040004FD RID: 1277
BufferBegin,
// Token: 0x040004FE RID: 1278
BufferEnd,
// Token: 0x040004FF RID: 1279
OnlineUserBegin,
// Token: 0x04000500 RID: 1280
OnlineUserEnd,
// Token: 0x04000501 RID: 1281
NpOnlineIdBegin,
// Token: 0x04000502 RID: 1282
NpOnlineIdEnd,
// Token: 0x04000503 RID: 1283
SceNpIdBegin,
// Token: 0x04000504 RID: 1284
SceNpIdEnd,
// Token: 0x04000505 RID: 1285
NpCountryCodeBegin,
// Token: 0x04000506 RID: 1286
NpCountryCodeEnd,
// Token: 0x04000507 RID: 1287
NpTitleIdBegin,
// Token: 0x04000508 RID: 1288
NpTitleIdEnd,
// Token: 0x04000509 RID: 1289
NpLanguageCodeBegin,
// Token: 0x0400050A RID: 1290
NpLanguageCodeEnd,
// Token: 0x0400050B RID: 1291
PNGBegin,
// Token: 0x0400050C RID: 1292
PNGEnd,
// Token: 0x0400050D RID: 1293
FriendsBegin,
// Token: 0x0400050E RID: 1294
FriendsEnd,
// Token: 0x0400050F RID: 1295
FriendBegin,
// Token: 0x04000510 RID: 1296
FriendEnd,
// Token: 0x04000511 RID: 1297
FriendsOfFriendsBegin,
// Token: 0x04000512 RID: 1298
FriendsOfFriendsEnd,
// Token: 0x04000513 RID: 1299
BlockedUsersBegin,
// Token: 0x04000514 RID: 1300
BlockedUsersEnd,
// Token: 0x04000515 RID: 1301
ProfileBegin,
// Token: 0x04000516 RID: 1302
ProfileEnd,
// Token: 0x04000517 RID: 1303
RealNameBegin,
// Token: 0x04000518 RID: 1304
RealNameEnd,
// Token: 0x04000519 RID: 1305
PresenceBegin,
// Token: 0x0400051A RID: 1306
PresenceEnd,
// Token: 0x0400051B RID: 1307
PlatformPresenceBegin,
// Token: 0x0400051C RID: 1308
PlatformPresenceEnd,
// Token: 0x0400051D RID: 1309
NpProfilesBegin,
// Token: 0x0400051E RID: 1310
NpProfilesEnd,
// Token: 0x0400051F RID: 1311
BandwidthInfoBegin,
// Token: 0x04000520 RID: 1312
BandwidthInfoEnd,
// Token: 0x04000521 RID: 1313
NetStateBasicBegin,
// Token: 0x04000522 RID: 1314
NetStateBasicEnd,
// Token: 0x04000523 RID: 1315
NetStateDetailedBegin,
// Token: 0x04000524 RID: 1316
NetStateDetailedEnd,
// Token: 0x04000525 RID: 1317
UnlockedTrophiesBegin,
// Token: 0x04000526 RID: 1318
UnlockedTrophiesEnd,
// Token: 0x04000527 RID: 1319
TrophyPackSummaryBegin,
// Token: 0x04000528 RID: 1320
TrophyPackSummaryEnd,
// Token: 0x04000529 RID: 1321
TrophyPackGroupBegin,
// Token: 0x0400052A RID: 1322
TrophyPackGroupEnd,
// Token: 0x0400052B RID: 1323
TrophyPackTrophyBegin,
// Token: 0x0400052C RID: 1324
TrophyPackTrophyEnd,
// Token: 0x0400052D RID: 1325
TempRankBegin,
// Token: 0x0400052E RID: 1326
TempRankEnd,
// Token: 0x0400052F RID: 1327
RangeOfRanksBegin,
// Token: 0x04000530 RID: 1328
RangeOfRanksEnd,
// Token: 0x04000531 RID: 1329
FriendsRanksBegin,
// Token: 0x04000532 RID: 1330
FriendsRanksEnd,
// Token: 0x04000533 RID: 1331
UsersRanksBegin,
// Token: 0x04000534 RID: 1332
UsersRanksEnd,
// Token: 0x04000535 RID: 1333
SetGameDataBegin,
// Token: 0x04000536 RID: 1334
SetGameDataEnd,
// Token: 0x04000537 RID: 1335
GetGameDataBegin,
// Token: 0x04000538 RID: 1336
GetGameDataEnd,
// Token: 0x04000539 RID: 1337
WorldsBegin,
// Token: 0x0400053A RID: 1338
WorldsEnd,
// Token: 0x0400053B RID: 1339
CreateRoomBegin,
// Token: 0x0400053C RID: 1340
CreateRoomEnd,
// Token: 0x0400053D RID: 1341
RoomBegin,
// Token: 0x0400053E RID: 1342
RoomEnd,
// Token: 0x0400053F RID: 1343
RoomsBegin,
// Token: 0x04000540 RID: 1344
RoomsEnd,
// Token: 0x04000541 RID: 1345
RoomPingTimeBegin,
// Token: 0x04000542 RID: 1346
RoomPingTimeEnd,
// Token: 0x04000543 RID: 1347
GetDataBegin,
// Token: 0x04000544 RID: 1348
GetDataEnd,
// Token: 0x04000545 RID: 1349
TssDataBegin,
// Token: 0x04000546 RID: 1350
TssDataEnd,
// Token: 0x04000547 RID: 1351
TusVariablesBegin,
// Token: 0x04000548 RID: 1352
TusVariablesEnd,
// Token: 0x04000549 RID: 1353
TusAtomicAddToAndGetVariableBegin,
// Token: 0x0400054A RID: 1354
TusAtomicAddToAndGetVariableEnd,
// Token: 0x0400054B RID: 1355
TusDataBegin,
// Token: 0x0400054C RID: 1356
TusDataEnd,
// Token: 0x0400054D RID: 1357
GameDataMessagesBegin,
// Token: 0x0400054E RID: 1358
GameDataMessagesEnd,
// Token: 0x0400054F RID: 1359
GameDataMessageThumbnailBegin,
// Token: 0x04000550 RID: 1360
GameDataMessageThumbnailEnd,
// Token: 0x04000551 RID: 1361
GameDataMessageAttachmentBegin,
// Token: 0x04000552 RID: 1362
GameDataMessageAttachmentEnd,
// Token: 0x04000553 RID: 1363
GameDataMessageBegin,
// Token: 0x04000554 RID: 1364
GameDataMessageEnd,
// Token: 0x04000555 RID: 1365
GameDataMessageDetailsBegin,
// Token: 0x04000556 RID: 1366
GameDataMessageDetailsEnd,
// Token: 0x04000557 RID: 1367
CategoriesBegin,
// Token: 0x04000558 RID: 1368
CategoriesEnd,
// Token: 0x04000559 RID: 1369
CategoryBegin,
// Token: 0x0400055A RID: 1370
CategoryEnd,
// Token: 0x0400055B RID: 1371
SubCategoryBegin,
// Token: 0x0400055C RID: 1372
SubCategoryEnd,
// Token: 0x0400055D RID: 1373
ProductsBegin,
// Token: 0x0400055E RID: 1374
ProductsEnd,
// Token: 0x0400055F RID: 1375
ProductBegin,
// Token: 0x04000560 RID: 1376
ProductEnd,
// Token: 0x04000561 RID: 1377
ProductDetailsBegin,
// Token: 0x04000562 RID: 1378
ProductDetailsEnd,
// Token: 0x04000563 RID: 1379
SkuInfoBegin,
// Token: 0x04000564 RID: 1380
SkuInfoEnd,
// Token: 0x04000565 RID: 1381
ServiceEntitlementsBegin,
// Token: 0x04000566 RID: 1382
ServiceEntitlementsEnd,
// Token: 0x04000567 RID: 1383
ServiceEntitlementBegin,
// Token: 0x04000568 RID: 1384
ServiceEntitlementEnd,
// Token: 0x04000569 RID: 1385
AuthCodeBegin,
// Token: 0x0400056A RID: 1386
AuthCodeEnd,
// Token: 0x0400056B RID: 1387
IdTokenBegin,
// Token: 0x0400056C RID: 1388
IdTokenEnd,
// Token: 0x0400056D RID: 1389
WordFilterBegin,
// Token: 0x0400056E RID: 1390
WordFilterEnd,
// Token: 0x0400056F RID: 1391
FriendListUpdateBegin,
// Token: 0x04000570 RID: 1392
FriendListUpdateEnd,
// Token: 0x04000571 RID: 1393
BlocklistUpdateBegin,
// Token: 0x04000572 RID: 1394
BlocklistUpdateEnd,
// Token: 0x04000573 RID: 1395
PresenceUpdateBegin,
// Token: 0x04000574 RID: 1396
PresenceUpdateEnd,
// Token: 0x04000575 RID: 1397
UserStateChangeBegin,
// Token: 0x04000576 RID: 1398
UserStateChangeEnd,
// Token: 0x04000577 RID: 1399
NetStateChangeBegin,
// Token: 0x04000578 RID: 1400
NetStateChangeEnd,
// Token: 0x04000579 RID: 1401
RefreshRoomBegin,
// Token: 0x0400057A RID: 1402
RefreshRoomEnd,
// Token: 0x0400057B RID: 1403
InvitationReceivedBegin,
// Token: 0x0400057C RID: 1404
InvitationReceivedEnd,
// Token: 0x0400057D RID: 1405
NewRoomMessageBegin,
// Token: 0x0400057E RID: 1406
NewRoomMessageEnd,
// Token: 0x0400057F RID: 1407
NewInGameMessageBegin,
// Token: 0x04000580 RID: 1408
NewInGameMessageEnd,
// Token: 0x04000581 RID: 1409
NewGameDataMessageBegin,
// Token: 0x04000582 RID: 1410
NewGameDataMessageEnd,
// Token: 0x04000583 RID: 1411
SessionInvitationEventBegin,
// Token: 0x04000584 RID: 1412
SessionInvitationEventEnd,
// Token: 0x04000585 RID: 1413
PlayTogetherHostEventBegin,
// Token: 0x04000586 RID: 1414
PlayTogetherHostEventEnd,
// Token: 0x04000587 RID: 1415
GameCustomDataEventBegin,
// Token: 0x04000588 RID: 1416
GameCustomDataEventEnd,
// Token: 0x04000589 RID: 1417
CheckPlusBegin,
// Token: 0x0400058A RID: 1418
CheckPlusEnd,
// Token: 0x0400058B RID: 1419
GetParentalControlInfoBegin,
// Token: 0x0400058C RID: 1420
GetParentalControlInfoEnd
}
}
}
+245
View File
@@ -0,0 +1,245 @@
using System;
namespace Sony.NP
{
// Token: 0x0200012A RID: 298
public struct MemoryPools
{
// Token: 0x170002D3 RID: 723
// (get) Token: 0x06000622 RID: 1570 RVA: 0x000110E8 File Offset: 0x000100E8
// (set) Token: 0x06000623 RID: 1571 RVA: 0x00011100 File Offset: 0x00010100
public ulong ToolkitPoolSize
{
get
{
return this.toolkitPoolSize;
}
set
{
this.Validate("ToolkitPoolSize", value, 0UL, "", true);
this.toolkitPoolSize = value;
}
}
// Token: 0x170002D4 RID: 724
// (get) Token: 0x06000624 RID: 1572 RVA: 0x00011120 File Offset: 0x00010120
// (set) Token: 0x06000625 RID: 1573 RVA: 0x00011138 File Offset: 0x00010138
public ulong JsonPoolSize
{
get
{
return this.jsonPoolSize;
}
set
{
this.Validate("JsonPoolSize", value, 16384UL, "JSON_MEM_MINIMUM_SIZE", true);
this.jsonPoolSize = value;
}
}
// Token: 0x170002D5 RID: 725
// (get) Token: 0x06000626 RID: 1574 RVA: 0x0001115C File Offset: 0x0001015C
// (set) Token: 0x06000627 RID: 1575 RVA: 0x00011174 File Offset: 0x00010174
public ulong WebApiPoolSize
{
get
{
return this.webApiPoolSize;
}
set
{
this.Validate("WebApiPoolSize", value, 0UL, "", true);
this.webApiPoolSize = value;
}
}
// Token: 0x170002D6 RID: 726
// (get) Token: 0x06000628 RID: 1576 RVA: 0x00011194 File Offset: 0x00010194
// (set) Token: 0x06000629 RID: 1577 RVA: 0x000111AC File Offset: 0x000101AC
public ulong HttpPoolSize
{
get
{
return this.httpPoolSize;
}
set
{
this.Validate("HttpPoolSize", value, 16384UL, "HTTP_MEM_MINIMUM_SIZE", true);
this.httpPoolSize = value;
}
}
// Token: 0x170002D7 RID: 727
// (get) Token: 0x0600062A RID: 1578 RVA: 0x000111D0 File Offset: 0x000101D0
// (set) Token: 0x0600062B RID: 1579 RVA: 0x000111E8 File Offset: 0x000101E8
public ulong SslPoolSize
{
get
{
return this.sslPoolSize;
}
set
{
this.Validate("SslPoolSize", value, 32768UL, "SSL_MEM_MINIMUM_SIZE", true);
this.sslPoolSize = value;
}
}
// Token: 0x170002D8 RID: 728
// (get) Token: 0x0600062C RID: 1580 RVA: 0x0001120C File Offset: 0x0001020C
// (set) Token: 0x0600062D RID: 1581 RVA: 0x00011224 File Offset: 0x00010224
public ulong NetPoolSize
{
get
{
return this.netPoolSize;
}
set
{
this.Validate("NetPoolSize", value, 4096UL, "NET_MEM_MINIMUM_SIZE", true);
this.netPoolSize = value;
}
}
// Token: 0x170002D9 RID: 729
// (get) Token: 0x0600062E RID: 1582 RVA: 0x00011248 File Offset: 0x00010248
// (set) Token: 0x0600062F RID: 1583 RVA: 0x00011260 File Offset: 0x00010260
public ulong MatchingPoolSize
{
get
{
return this.matchingPoolSize;
}
set
{
this.Validate("MatchingPoolSize", value, 0UL, "", true);
this.matchingPoolSize = value;
}
}
// Token: 0x170002DA RID: 730
// (get) Token: 0x06000630 RID: 1584 RVA: 0x00011280 File Offset: 0x00010280
// (set) Token: 0x06000631 RID: 1585 RVA: 0x00011298 File Offset: 0x00010298
public ulong MatchingSslPoolSize
{
get
{
return this.matchingSslPoolSize;
}
set
{
this.Validate("MatchingSslPoolSize", value, 0UL, "", true);
this.matchingSslPoolSize = value;
}
}
// Token: 0x170002DB RID: 731
// (get) Token: 0x06000632 RID: 1586 RVA: 0x000112B8 File Offset: 0x000102B8
// (set) Token: 0x06000633 RID: 1587 RVA: 0x000112D0 File Offset: 0x000102D0
public ulong InGameMessagePoolSize
{
get
{
return this.inGameMessagePoolSize;
}
set
{
this.Validate("InGameMessagePoolSize", value, 0UL, "", true);
this.inGameMessagePoolSize = value;
}
}
// Token: 0x06000634 RID: 1588 RVA: 0x000112F0 File Offset: 0x000102F0
private void Validate(string propertyName, ulong size, ulong minSize, string minSizeName, bool mustBe16kbAlligned)
{
if (mustBe16kbAlligned && size % 16384UL != 0UL)
{
throw new NpToolkitException("The size of the " + propertyName + " must be a multiple of 16 kbs (16384 bytes).");
}
if (minSize > 0UL && size < minSize)
{
throw new NpToolkitException(string.Concat(new string[] { "The size of the ", propertyName, " must be greater than ", minSizeName, "." }));
}
}
// Token: 0x06000635 RID: 1589 RVA: 0x00011374 File Offset: 0x00010374
public void Init()
{
this.toolkitPoolSize = 16777216UL;
this.jsonPoolSize = 4194304UL;
this.webApiPoolSize = 1048576UL;
this.httpPoolSize = 65536UL;
this.sslPoolSize = 262144UL;
this.netPoolSize = 32768UL;
this.matchingPoolSize = 524288UL;
this.matchingSslPoolSize = 196608UL;
this.inGameMessagePoolSize = 16384UL;
}
// Token: 0x040004D2 RID: 1234
public const int TOOLKIT_MEM_DEFAULT_SIZE = 16777216;
// Token: 0x040004D3 RID: 1235
public const int JSON_MEM_MINIMUM_SIZE = 16384;
// Token: 0x040004D4 RID: 1236
public const int JSON_MEM_DEFAULT_SIZE = 4194304;
// Token: 0x040004D5 RID: 1237
public const int WEB_API_MEM_DEFAULT_SIZE = 1048576;
// Token: 0x040004D6 RID: 1238
public const int HTTP_MEM_DEFAULT_SIZE = 65536;
// Token: 0x040004D7 RID: 1239
public const int HTTP_MEM_MINIMUM_SIZE = 16384;
// Token: 0x040004D8 RID: 1240
public const int SSL_MEM_DEFAULT_SIZE = 262144;
// Token: 0x040004D9 RID: 1241
public const int SSL_MEM_MINIMUM_SIZE = 32768;
// Token: 0x040004DA RID: 1242
public const int NET_MEM_DEFAULT_SIZE = 32768;
// Token: 0x040004DB RID: 1243
public const int NET_MEM_MINIMUM_SIZE = 4096;
// Token: 0x040004DC RID: 1244
public const int MATCHING_MEM_DEFAULT_SIZE = 524288;
// Token: 0x040004DD RID: 1245
public const int MATCHING_SSL_MEM_DEFAULT_SIZE = 196608;
// Token: 0x040004DE RID: 1246
public const int IN_GAME_MESSAGE_MEM_DEFAULT_SIZE = 16384;
// Token: 0x040004DF RID: 1247
private ulong toolkitPoolSize;
// Token: 0x040004E0 RID: 1248
private ulong jsonPoolSize;
// Token: 0x040004E1 RID: 1249
private ulong webApiPoolSize;
// Token: 0x040004E2 RID: 1250
private ulong httpPoolSize;
// Token: 0x040004E3 RID: 1251
private ulong sslPoolSize;
// Token: 0x040004E4 RID: 1252
private ulong netPoolSize;
// Token: 0x040004E5 RID: 1253
private ulong matchingPoolSize;
// Token: 0x040004E6 RID: 1254
private ulong matchingSslPoolSize;
// Token: 0x040004E7 RID: 1255
private ulong inGameMessagePoolSize;
}
}
+1571
View File
@@ -0,0 +1,1571 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x02000082 RID: 130
public class Messaging
{
// Token: 0x060002C7 RID: 711
[DllImport("UnityNpToolkit2")]
private static extern int PrxSendInGameMessage(Messaging.SendInGameMessageRequest request, out APIResult result);
// Token: 0x060002C8 RID: 712
[DllImport("UnityNpToolkit2")]
private static extern int PrxDisplayReceivedGameDataMessagesDialog(Messaging.DisplayReceivedGameDataMessagesDialogRequest request, out APIResult result);
// Token: 0x060002C9 RID: 713
[DllImport("UnityNpToolkit2")]
private static extern int PrxSendGameDataMessage(Messaging.SendGameDataMessageRequest request, out APIResult result);
// Token: 0x060002CA RID: 714
[DllImport("UnityNpToolkit2")]
private static extern int PrxConsumeGameDataMessage(Messaging.ConsumeGameDataMessageRequest request, out APIResult result);
// Token: 0x060002CB RID: 715
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetReceivedGameDataMessages(Messaging.GetReceivedGameDataMessagesRequest request, out APIResult result);
// Token: 0x060002CC RID: 716
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetGameDataMessageThumbnail(Messaging.GetGameDataMessageThumbnailRequest request, out APIResult result);
// Token: 0x060002CD RID: 717
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetGameDataMessageAttachment(Messaging.GetGameDataMessageAttachmentRequest request, out APIResult result);
// Token: 0x060002CE RID: 718 RVA: 0x00009054 File Offset: 0x00008054
public static int SendInGameMessage(Messaging.SendInGameMessageRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Messaging.PrxSendInGameMessage(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060002CF RID: 719 RVA: 0x000090A8 File Offset: 0x000080A8
public static int DisplayReceivedGameDataMessagesDialog(Messaging.DisplayReceivedGameDataMessagesDialogRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Messaging.PrxDisplayReceivedGameDataMessagesDialog(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060002D0 RID: 720 RVA: 0x000090FC File Offset: 0x000080FC
public static int SendGameDataMessage(Messaging.SendGameDataMessageRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
if (!request.thumbnail.IsValid())
{
throw new NpToolkitException("Request thumbnail image hasn't be defined. A message can't be created without an image.");
}
APIResult apiresult;
int num = Messaging.PrxSendGameDataMessage(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060002D1 RID: 721 RVA: 0x0000916C File Offset: 0x0000816C
public static int ConsumeGameDataMessage(Messaging.ConsumeGameDataMessageRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Messaging.PrxConsumeGameDataMessage(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060002D2 RID: 722 RVA: 0x000091C0 File Offset: 0x000081C0
public static int GetReceivedGameDataMessages(Messaging.GetReceivedGameDataMessagesRequest request, Messaging.GameDataMessagesResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Messaging.PrxGetReceivedGameDataMessages(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060002D3 RID: 723 RVA: 0x00009214 File Offset: 0x00008214
public static int GetGameDataMessageThumbnail(Messaging.GetGameDataMessageThumbnailRequest request, Messaging.GameDataMessageThumbnailResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Messaging.PrxGetGameDataMessageThumbnail(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060002D4 RID: 724 RVA: 0x00009268 File Offset: 0x00008268
public static int GetGameDataMessageAttachment(Messaging.GetGameDataMessageAttachmentRequest request, Messaging.GameDataMessageAttachmentResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Messaging.PrxGetGameDataMessageAttachment(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x02000083 RID: 131
[StructLayout(LayoutKind.Sequential)]
public class SendInGameMessageRequest : RequestBase
{
// Token: 0x1700013F RID: 319
// (get) Token: 0x060002D6 RID: 726 RVA: 0x000092C4 File Offset: 0x000082C4
// (set) Token: 0x060002D7 RID: 727 RVA: 0x00009310 File Offset: 0x00008310
public byte[] Message
{
get
{
byte[] array;
if (this.messageSize == 0UL)
{
array = null;
}
else
{
byte[] array2 = new byte[this.messageSize];
Array.Copy(this.message, array2, (int)this.messageSize);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 512)
{
throw new NpToolkitException("The size of the array is larger than " + 512);
}
value.CopyTo(this.message, 0);
this.messageSize = (ulong)((long)value.Length);
}
else
{
this.messageSize = 0UL;
}
}
}
// Token: 0x17000140 RID: 320
// (get) Token: 0x060002D8 RID: 728 RVA: 0x00009378 File Offset: 0x00008378
// (set) Token: 0x060002D9 RID: 729 RVA: 0x00009390 File Offset: 0x00008390
public Core.NpAccountId RecipientId
{
get
{
return this.recipientId;
}
set
{
this.recipientId = value;
}
}
// Token: 0x17000141 RID: 321
// (get) Token: 0x060002DA RID: 730 RVA: 0x0000939C File Offset: 0x0000839C
// (set) Token: 0x060002DB RID: 731 RVA: 0x000093B4 File Offset: 0x000083B4
public Core.PlatformType RecipientPlatformType
{
get
{
return this.recipientPlatformType;
}
set
{
this.recipientPlatformType = value;
}
}
// Token: 0x060002DC RID: 732 RVA: 0x000093BE File Offset: 0x000083BE
public SendInGameMessageRequest()
: base(ServiceTypes.Messaging, FunctionTypes.MessagingSendInGameMessage)
{
}
// Token: 0x04000212 RID: 530
public const int NP_IN_GAME_MESSAGE_DATA_SIZE_MAX = 512;
// Token: 0x04000213 RID: 531
internal ulong messageSize;
// Token: 0x04000214 RID: 532
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 512)]
internal byte[] message = new byte[512];
// Token: 0x04000215 RID: 533
internal Core.NpAccountId recipientId;
// Token: 0x04000216 RID: 534
internal Core.PlatformType recipientPlatformType;
}
// Token: 0x02000084 RID: 132
[StructLayout(LayoutKind.Sequential)]
public class DisplayReceivedGameDataMessagesDialogRequest : RequestBase
{
// Token: 0x060002DD RID: 733 RVA: 0x000093DD File Offset: 0x000083DD
public DisplayReceivedGameDataMessagesDialogRequest()
: base(ServiceTypes.Messaging, FunctionTypes.MessagingDisplayReceivedGameDataMessagesDialog)
{
}
}
// Token: 0x02000085 RID: 133
public enum GameCustomDataTypes
{
// Token: 0x04000218 RID: 536
Invalid,
// Token: 0x04000219 RID: 537
Url,
// Token: 0x0400021A RID: 538
Attachment
}
// Token: 0x02000086 RID: 134
public struct GameDataMessageImage
{
// Token: 0x17000142 RID: 322
// (get) Token: 0x060002DE RID: 734 RVA: 0x000093EC File Offset: 0x000083EC
// (set) Token: 0x060002DF RID: 735 RVA: 0x00009404 File Offset: 0x00008404
public string ImgPath
{
get
{
return this.imgPath;
}
set
{
if (value.Length > 255)
{
throw new NpToolkitException("The size of the image path string is more than " + 255 + " characters.");
}
this.imgPath = value;
}
}
// Token: 0x060002E0 RID: 736 RVA: 0x00009450 File Offset: 0x00008450
internal bool IsValid()
{
return this.imgPath != null && this.imgPath.Length != 0;
}
// Token: 0x0400021B RID: 539
public const int IMAGE_PATH_MAX_LEN = 255;
// Token: 0x0400021C RID: 540
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
internal string imgPath;
}
// Token: 0x02000087 RID: 135
public struct LocalizedMetadata
{
// Token: 0x17000143 RID: 323
// (get) Token: 0x060002E1 RID: 737 RVA: 0x00009488 File Offset: 0x00008488
// (set) Token: 0x060002E2 RID: 738 RVA: 0x000094AD File Offset: 0x000084AD
public Core.LanguageCode LanguageCode
{
get
{
return new Core.LanguageCode
{
code = this.languageCode
};
}
set
{
this.languageCode = value.code;
}
}
// Token: 0x17000144 RID: 324
// (get) Token: 0x060002E3 RID: 739 RVA: 0x000094BC File Offset: 0x000084BC
// (set) Token: 0x060002E4 RID: 740 RVA: 0x000094D4 File Offset: 0x000084D4
public string Name
{
get
{
return this.name;
}
set
{
if (value.Length > 127)
{
throw new NpToolkitException("The size of the string is more than " + 127 + " characters.");
}
this.name = value;
}
}
// Token: 0x17000145 RID: 325
// (get) Token: 0x060002E5 RID: 741 RVA: 0x00009518 File Offset: 0x00008518
// (set) Token: 0x060002E6 RID: 742 RVA: 0x00009530 File Offset: 0x00008530
public string Description
{
get
{
return this.description;
}
set
{
if (value.Length > 511)
{
throw new NpToolkitException("The size of the string is more than " + 511 + " characters.");
}
this.description = value;
}
}
// Token: 0x0400021D RID: 541
public const int MAX_SIZE_DATA_NAME = 127;
// Token: 0x0400021E RID: 542
public const int MAX_SIZE_DATA_DESCRIPTION = 511;
// Token: 0x0400021F RID: 543
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 6)]
internal string languageCode;
// Token: 0x04000220 RID: 544
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
internal string name;
// Token: 0x04000221 RID: 545
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 512)]
internal string description;
}
// Token: 0x02000088 RID: 136
[StructLayout(LayoutKind.Sequential)]
public class SendGameDataMessageRequest : RequestBase
{
// Token: 0x17000146 RID: 326
// (get) Token: 0x060002E7 RID: 743 RVA: 0x0000957C File Offset: 0x0000857C
// (set) Token: 0x060002E8 RID: 744 RVA: 0x00009594 File Offset: 0x00008594
public string TextMessage
{
get
{
return this.textMessage;
}
set
{
if (value.Length > 511)
{
throw new NpToolkitException("The size of the string is more than " + 511 + " characters.");
}
this.textMessage = value;
}
}
// Token: 0x17000147 RID: 327
// (get) Token: 0x060002E9 RID: 745 RVA: 0x000095E0 File Offset: 0x000085E0
// (set) Token: 0x060002EA RID: 746 RVA: 0x000095F8 File Offset: 0x000085F8
public string DataName
{
get
{
return this.dataName;
}
set
{
if (value.Length > 127)
{
throw new NpToolkitException("The size of the string is more than " + 127 + " characters.");
}
this.dataName = value;
}
}
// Token: 0x17000148 RID: 328
// (get) Token: 0x060002EB RID: 747 RVA: 0x0000963C File Offset: 0x0000863C
// (set) Token: 0x060002EC RID: 748 RVA: 0x00009654 File Offset: 0x00008654
public string DataDescription
{
get
{
return this.dataDescription;
}
set
{
if (value.Length > 511)
{
throw new NpToolkitException("The size of the string is more than " + 511 + " characters.");
}
this.dataDescription = value;
}
}
// Token: 0x17000149 RID: 329
// (get) Token: 0x060002ED RID: 749 RVA: 0x000096A0 File Offset: 0x000086A0
// (set) Token: 0x060002EE RID: 750 RVA: 0x000096E8 File Offset: 0x000086E8
public Core.NpAccountId[] Recipients
{
get
{
Core.NpAccountId[] array;
if (this.numRecipients == 0U)
{
array = null;
}
else
{
Core.NpAccountId[] array2 = new Core.NpAccountId[this.numRecipients];
Array.Copy(this.recipients, array2, (int)this.numRecipients);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 16)
{
throw new NpToolkitException("The size of the array is larger than " + 16);
}
value.CopyTo(this.recipients, 0);
this.numRecipients = (uint)value.Length;
}
else
{
this.numRecipients = 0U;
}
}
}
// Token: 0x1700014A RID: 330
// (get) Token: 0x060002EF RID: 751 RVA: 0x00009748 File Offset: 0x00008748
public Messaging.GameCustomDataTypes DataType
{
get
{
return this.dataType;
}
}
// Token: 0x1700014B RID: 331
// (get) Token: 0x060002F0 RID: 752 RVA: 0x00009760 File Offset: 0x00008760
// (set) Token: 0x060002F1 RID: 753 RVA: 0x00009778 File Offset: 0x00008778
public byte[] Attachment
{
get
{
return this.attachment;
}
set
{
if (value.Length > 1048576)
{
throw new NpToolkitException("The size of the array is larger than " + 1048576);
}
this.attachment = value;
this.attachmentSize = (ulong)((value != null) ? ((long)value.Length) : 0L);
this.dataType = Messaging.GameCustomDataTypes.Attachment;
}
}
// Token: 0x1700014C RID: 332
// (get) Token: 0x060002F2 RID: 754 RVA: 0x000097D4 File Offset: 0x000087D4
// (set) Token: 0x060002F3 RID: 755 RVA: 0x000097EC File Offset: 0x000087EC
public uint ExpireMinutes
{
get
{
return this.expireMinutes;
}
set
{
this.expireMinutes = value;
}
}
// Token: 0x1700014D RID: 333
// (get) Token: 0x060002F4 RID: 756 RVA: 0x000097F8 File Offset: 0x000087F8
// (set) Token: 0x060002F5 RID: 757 RVA: 0x00009810 File Offset: 0x00008810
public string Url
{
get
{
return this.url;
}
set
{
if (value.Length > 1023)
{
throw new NpToolkitException("The size of the string is more than " + 1023 + " characters.");
}
this.url = value;
this.dataType = Messaging.GameCustomDataTypes.Url;
}
}
// Token: 0x1700014E RID: 334
// (get) Token: 0x060002F6 RID: 758 RVA: 0x00009860 File Offset: 0x00008860
// (set) Token: 0x060002F7 RID: 759 RVA: 0x000098AC File Offset: 0x000088AC
public Messaging.LocalizedMetadata[] LocalizedMetaData
{
get
{
Messaging.LocalizedMetadata[] array;
if (this.numDataLocalized == 0UL)
{
array = null;
}
else
{
Messaging.LocalizedMetadata[] array2 = new Messaging.LocalizedMetadata[this.numDataLocalized];
Array.Copy(this.localizedMetaData, array2, (int)this.numDataLocalized);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 50)
{
throw new NpToolkitException("The size of the localized game metadata array is more than " + 50);
}
this.localizedMetaData = value;
this.numDataLocalized = (ulong)((long)value.Length);
}
else
{
this.numDataLocalized = 0UL;
}
}
}
// Token: 0x1700014F RID: 335
// (get) Token: 0x060002F8 RID: 760 RVA: 0x00009908 File Offset: 0x00008908
// (set) Token: 0x060002F9 RID: 761 RVA: 0x00009920 File Offset: 0x00008920
public Messaging.GameDataMessageImage Thumbnail
{
get
{
return this.thumbnail;
}
set
{
this.thumbnail = value;
}
}
// Token: 0x17000150 RID: 336
// (get) Token: 0x060002FA RID: 762 RVA: 0x0000992C File Offset: 0x0000892C
// (set) Token: 0x060002FB RID: 763 RVA: 0x00009944 File Offset: 0x00008944
public uint MaxNumberRecipientsToAdd
{
get
{
return this.maxNumberRecipientsToAdd;
}
set
{
this.maxNumberRecipientsToAdd = value;
}
}
// Token: 0x17000151 RID: 337
// (get) Token: 0x060002FC RID: 764 RVA: 0x00009950 File Offset: 0x00008950
// (set) Token: 0x060002FD RID: 765 RVA: 0x00009968 File Offset: 0x00008968
public bool EnableDialog
{
get
{
return this.enableDialog;
}
set
{
this.enableDialog = value;
}
}
// Token: 0x17000152 RID: 338
// (get) Token: 0x060002FE RID: 766 RVA: 0x00009974 File Offset: 0x00008974
// (set) Token: 0x060002FF RID: 767 RVA: 0x0000998C File Offset: 0x0000898C
public bool SenderCanEditRecipients
{
get
{
return this.senderCanEditRecipients;
}
set
{
this.senderCanEditRecipients = value;
}
}
// Token: 0x17000153 RID: 339
// (get) Token: 0x06000300 RID: 768 RVA: 0x00009998 File Offset: 0x00008998
// (set) Token: 0x06000301 RID: 769 RVA: 0x000099B0 File Offset: 0x000089B0
public bool IsPS4Available
{
get
{
return this.isPS4Available;
}
set
{
this.isPS4Available = value;
}
}
// Token: 0x17000154 RID: 340
// (get) Token: 0x06000302 RID: 770 RVA: 0x000099BC File Offset: 0x000089BC
// (set) Token: 0x06000303 RID: 771 RVA: 0x000099D4 File Offset: 0x000089D4
public bool IsPSVitaAvailable
{
get
{
return this.isPSVitaAvailable;
}
set
{
this.isPSVitaAvailable = value;
}
}
// Token: 0x17000155 RID: 341
// (get) Token: 0x06000304 RID: 772 RVA: 0x000099E0 File Offset: 0x000089E0
// (set) Token: 0x06000305 RID: 773 RVA: 0x000099F8 File Offset: 0x000089F8
public bool AddGameDataMsgIdToUrl
{
get
{
return this.addGameDataMsgIdToUrl;
}
set
{
this.addGameDataMsgIdToUrl = value;
}
}
// Token: 0x06000306 RID: 774 RVA: 0x00009A02 File Offset: 0x00008A02
public SendGameDataMessageRequest()
: base(ServiceTypes.Messaging, FunctionTypes.MessagingSendGameDataMessage)
{
}
// Token: 0x04000222 RID: 546
public const int MAX_SIZE_TEXT_MESSAGE = 511;
// Token: 0x04000223 RID: 547
public const int MAX_SIZE_DATA_NAME = 127;
// Token: 0x04000224 RID: 548
public const int MAX_SIZE_DATA_DESCRIPTION = 511;
// Token: 0x04000225 RID: 549
public const int MAX_NUM_RECIPIENTS = 16;
// Token: 0x04000226 RID: 550
public const int MAX_SIZE_ATTACHMENT = 1048576;
// Token: 0x04000227 RID: 551
public const int MAX_URL_SIZE = 1023;
// Token: 0x04000228 RID: 552
public const int MAX_LOCALIZED_METADATA = 50;
// Token: 0x04000229 RID: 553
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 512)]
internal string textMessage;
// Token: 0x0400022A RID: 554
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
internal string dataName;
// Token: 0x0400022B RID: 555
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 512)]
internal string dataDescription;
// Token: 0x0400022C RID: 556
internal uint numRecipients;
// Token: 0x0400022D RID: 557
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
internal Core.NpAccountId[] recipients = new Core.NpAccountId[16];
// Token: 0x0400022E RID: 558
internal Messaging.GameCustomDataTypes dataType;
// Token: 0x0400022F RID: 559
internal uint expireMinutes;
// Token: 0x04000230 RID: 560
[MarshalAs(UnmanagedType.LPArray)]
internal byte[] attachment;
// Token: 0x04000231 RID: 561
internal ulong attachmentSize;
// Token: 0x04000232 RID: 562
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
internal string url;
// Token: 0x04000233 RID: 563
internal ulong numDataLocalized;
// Token: 0x04000234 RID: 564
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
internal Messaging.LocalizedMetadata[] localizedMetaData = new Messaging.LocalizedMetadata[50];
// Token: 0x04000235 RID: 565
internal Messaging.GameDataMessageImage thumbnail;
// Token: 0x04000236 RID: 566
internal uint maxNumberRecipientsToAdd;
// Token: 0x04000237 RID: 567
[MarshalAs(UnmanagedType.I1)]
private bool enableDialog;
// Token: 0x04000238 RID: 568
[MarshalAs(UnmanagedType.I1)]
private bool senderCanEditRecipients;
// Token: 0x04000239 RID: 569
[MarshalAs(UnmanagedType.I1)]
private bool isPS4Available;
// Token: 0x0400023A RID: 570
[MarshalAs(UnmanagedType.I1)]
private bool isPSVitaAvailable;
// Token: 0x0400023B RID: 571
[MarshalAs(UnmanagedType.I1)]
private bool addGameDataMsgIdToUrl;
}
// Token: 0x02000089 RID: 137
[StructLayout(LayoutKind.Sequential)]
public class ConsumeGameDataMessageRequest : RequestBase
{
// Token: 0x17000156 RID: 342
// (get) Token: 0x06000307 RID: 775 RVA: 0x00009A2C File Offset: 0x00008A2C
// (set) Token: 0x06000308 RID: 776 RVA: 0x00009A44 File Offset: 0x00008A44
public ulong GameDataMsgId
{
get
{
return this.gameDataMsgId;
}
set
{
this.gameDataMsgId = value;
}
}
// Token: 0x06000309 RID: 777 RVA: 0x00009A4E File Offset: 0x00008A4E
public ConsumeGameDataMessageRequest()
: base(ServiceTypes.Messaging, FunctionTypes.MessagingConsumeGameDataMessage)
{
}
// Token: 0x0400023C RID: 572
private ulong gameDataMsgId;
}
// Token: 0x0200008A RID: 138
public enum GameDataMessagesToRetrieve
{
// Token: 0x0400023E RID: 574
FromGameDataMsgIds,
// Token: 0x0400023F RID: 575
All
}
// Token: 0x0200008B RID: 139
[StructLayout(LayoutKind.Sequential)]
public class GetReceivedGameDataMessagesRequest : RequestBase
{
// Token: 0x17000157 RID: 343
// (get) Token: 0x0600030A RID: 778 RVA: 0x00009A60 File Offset: 0x00008A60
// (set) Token: 0x0600030B RID: 779 RVA: 0x00009AAC File Offset: 0x00008AAC
public ulong[] GameDataMsgIds
{
get
{
ulong[] array;
if (this.numGameDataMsgIds == 0UL)
{
array = null;
}
else
{
ulong[] array2 = new ulong[this.numGameDataMsgIds];
Array.Copy(this.gameDataMsgIds, array2, (int)this.numGameDataMsgIds);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 20)
{
throw new NpToolkitException("The size of the array is more than " + 20);
}
this.gameDataMsgIds = value;
this.numGameDataMsgIds = (ulong)((long)value.Length);
}
else
{
this.numGameDataMsgIds = 0UL;
}
if (this.numGameDataMsgIds > 0UL)
{
this.retrieveType = Messaging.GameDataMessagesToRetrieve.FromGameDataMsgIds;
}
else
{
this.retrieveType = Messaging.GameDataMessagesToRetrieve.All;
}
}
}
// Token: 0x17000158 RID: 344
// (get) Token: 0x0600030C RID: 780 RVA: 0x00009B28 File Offset: 0x00008B28
// (set) Token: 0x0600030D RID: 781 RVA: 0x00009B40 File Offset: 0x00008B40
public uint PageSize
{
get
{
return this.pageSize;
}
set
{
this.pageSize = value;
this.retrieveType = Messaging.GameDataMessagesToRetrieve.All;
}
}
// Token: 0x17000159 RID: 345
// (get) Token: 0x0600030E RID: 782 RVA: 0x00009B54 File Offset: 0x00008B54
// (set) Token: 0x0600030F RID: 783 RVA: 0x00009B6C File Offset: 0x00008B6C
public uint Offset
{
get
{
return this.offset;
}
set
{
this.offset = value;
this.retrieveType = Messaging.GameDataMessagesToRetrieve.All;
}
}
// Token: 0x1700015A RID: 346
// (get) Token: 0x06000310 RID: 784 RVA: 0x00009B80 File Offset: 0x00008B80
public Messaging.GameDataMessagesToRetrieve RetrieveType
{
get
{
return this.retrieveType;
}
}
// Token: 0x06000311 RID: 785 RVA: 0x00009B98 File Offset: 0x00008B98
public GetReceivedGameDataMessagesRequest()
: base(ServiceTypes.Messaging, FunctionTypes.MessagingGetReceivedGameDataMessages)
{
this.pageSize = 100U;
this.offset = 0U;
this.retrieveType = Messaging.GameDataMessagesToRetrieve.All;
}
// Token: 0x04000240 RID: 576
public const int MAX_NUM_GAME_DATA_MSG_IDS = 20;
// Token: 0x04000241 RID: 577
public const int MAX_PAGE_SIZE = 100;
// Token: 0x04000242 RID: 578
internal ulong numGameDataMsgIds;
// Token: 0x04000243 RID: 579
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
internal ulong[] gameDataMsgIds = new ulong[20];
// Token: 0x04000244 RID: 580
internal uint pageSize;
// Token: 0x04000245 RID: 581
internal uint offset;
// Token: 0x04000246 RID: 582
internal Messaging.GameDataMessagesToRetrieve retrieveType;
}
// Token: 0x0200008C RID: 140
[StructLayout(LayoutKind.Sequential)]
public class GetGameDataMessageThumbnailRequest : RequestBase
{
// Token: 0x1700015B RID: 347
// (get) Token: 0x06000312 RID: 786 RVA: 0x00009BCC File Offset: 0x00008BCC
// (set) Token: 0x06000313 RID: 787 RVA: 0x00009BE4 File Offset: 0x00008BE4
public ulong GameDataMsgId
{
get
{
return this.gameDataMsgId;
}
set
{
this.gameDataMsgId = value;
}
}
// Token: 0x06000314 RID: 788 RVA: 0x00009BEE File Offset: 0x00008BEE
public GetGameDataMessageThumbnailRequest()
: base(ServiceTypes.Messaging, FunctionTypes.MessagingGetGameDataMessageThumbnail)
{
}
// Token: 0x04000247 RID: 583
private ulong gameDataMsgId;
}
// Token: 0x0200008D RID: 141
[StructLayout(LayoutKind.Sequential)]
public class GetGameDataMessageAttachmentRequest : RequestBase
{
// Token: 0x1700015C RID: 348
// (get) Token: 0x06000315 RID: 789 RVA: 0x00009C00 File Offset: 0x00008C00
// (set) Token: 0x06000316 RID: 790 RVA: 0x00009C18 File Offset: 0x00008C18
public ulong GameDataMsgId
{
get
{
return this.gameDataMsgId;
}
set
{
this.gameDataMsgId = value;
}
}
// Token: 0x06000317 RID: 791 RVA: 0x00009C22 File Offset: 0x00008C22
public GetGameDataMessageAttachmentRequest()
: base(ServiceTypes.Messaging, FunctionTypes.MessagingGetGameDataMessageAttachment)
{
}
// Token: 0x04000248 RID: 584
private ulong gameDataMsgId;
}
// Token: 0x0200008E RID: 142
public class GameDataMessageDetails
{
// Token: 0x1700015D RID: 349
// (get) Token: 0x06000318 RID: 792 RVA: 0x00009C34 File Offset: 0x00008C34
public string DataName
{
get
{
return this.dataName;
}
}
// Token: 0x1700015E RID: 350
// (get) Token: 0x06000319 RID: 793 RVA: 0x00009C4C File Offset: 0x00008C4C
public string DataDescription
{
get
{
return this.dataDescription;
}
}
// Token: 0x1700015F RID: 351
// (get) Token: 0x0600031A RID: 794 RVA: 0x00009C64 File Offset: 0x00008C64
public string TextMessage
{
get
{
return this.textMessage;
}
}
// Token: 0x0600031B RID: 795 RVA: 0x00009C7C File Offset: 0x00008C7C
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GameDataMessageDetailsBegin);
buffer.ReadString(ref this.dataName);
buffer.ReadString(ref this.dataDescription);
buffer.ReadString(ref this.textMessage);
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GameDataMessageDetailsEnd);
}
// Token: 0x04000249 RID: 585
internal string dataName;
// Token: 0x0400024A RID: 586
internal string dataDescription;
// Token: 0x0400024B RID: 587
internal string textMessage;
}
// Token: 0x0200008F RID: 143
public class GameDataMessage
{
// Token: 0x17000160 RID: 352
// (get) Token: 0x0600031D RID: 797 RVA: 0x00009CC0 File Offset: 0x00008CC0
public ulong GameDataMsgId
{
get
{
return this.gameDataMsgId;
}
}
// Token: 0x17000161 RID: 353
// (get) Token: 0x0600031E RID: 798 RVA: 0x00009CD8 File Offset: 0x00008CD8
public Core.OnlineUser FromUser
{
get
{
return this.fromUser;
}
}
// Token: 0x17000162 RID: 354
// (get) Token: 0x0600031F RID: 799 RVA: 0x00009CF0 File Offset: 0x00008CF0
public string ReceivedDate
{
get
{
return this.receivedDate;
}
}
// Token: 0x17000163 RID: 355
// (get) Token: 0x06000320 RID: 800 RVA: 0x00009D08 File Offset: 0x00008D08
public string ExpiredDate
{
get
{
return this.expiredDate;
}
}
// Token: 0x17000164 RID: 356
// (get) Token: 0x06000321 RID: 801 RVA: 0x00009D20 File Offset: 0x00008D20
public bool IsPS4Available
{
get
{
return this.isPS4Available;
}
}
// Token: 0x17000165 RID: 357
// (get) Token: 0x06000322 RID: 802 RVA: 0x00009D38 File Offset: 0x00008D38
public bool IsPSVitaAvailable
{
get
{
return this.isPSVitaAvailable;
}
}
// Token: 0x17000166 RID: 358
// (get) Token: 0x06000323 RID: 803 RVA: 0x00009D50 File Offset: 0x00008D50
public Messaging.GameCustomDataTypes DataType
{
get
{
return this.dataType;
}
}
// Token: 0x17000167 RID: 359
// (get) Token: 0x06000324 RID: 804 RVA: 0x00009D68 File Offset: 0x00008D68
public string Url
{
get
{
return this.url;
}
}
// Token: 0x17000168 RID: 360
// (get) Token: 0x06000325 RID: 805 RVA: 0x00009D80 File Offset: 0x00008D80
public Messaging.GameDataMessageDetails Details
{
get
{
return this.details;
}
}
// Token: 0x17000169 RID: 361
// (get) Token: 0x06000326 RID: 806 RVA: 0x00009D98 File Offset: 0x00008D98
public bool HasDetails
{
get
{
return this.hasDetails;
}
}
// Token: 0x1700016A RID: 362
// (get) Token: 0x06000327 RID: 807 RVA: 0x00009DB0 File Offset: 0x00008DB0
public bool IsUsed
{
get
{
return this.isUsed;
}
}
// Token: 0x06000328 RID: 808 RVA: 0x00009DC8 File Offset: 0x00008DC8
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GameDataMessageBegin);
this.gameDataMsgId = buffer.ReadUInt64();
this.fromUser.Read(buffer);
buffer.ReadString(ref this.receivedDate);
buffer.ReadString(ref this.expiredDate);
this.isPS4Available = buffer.ReadBool();
this.isPSVitaAvailable = buffer.ReadBool();
this.dataType = (Messaging.GameCustomDataTypes)buffer.ReadUInt32();
buffer.ReadString(ref this.url);
this.hasDetails = buffer.ReadBool();
if (this.hasDetails)
{
this.details = new Messaging.GameDataMessageDetails();
this.details.Read(buffer);
}
this.isUsed = buffer.ReadBool();
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GameDataMessageEnd);
}
// Token: 0x0400024C RID: 588
internal ulong gameDataMsgId;
// Token: 0x0400024D RID: 589
internal Core.OnlineUser fromUser = new Core.OnlineUser();
// Token: 0x0400024E RID: 590
internal string receivedDate;
// Token: 0x0400024F RID: 591
internal string expiredDate;
// Token: 0x04000250 RID: 592
internal bool isPS4Available;
// Token: 0x04000251 RID: 593
internal bool isPSVitaAvailable;
// Token: 0x04000252 RID: 594
internal Messaging.GameCustomDataTypes dataType;
// Token: 0x04000253 RID: 595
internal string url;
// Token: 0x04000254 RID: 596
internal Messaging.GameDataMessageDetails details;
// Token: 0x04000255 RID: 597
internal bool hasDetails;
// Token: 0x04000256 RID: 598
internal bool isUsed;
}
// Token: 0x02000090 RID: 144
public class GameDataMessagesResponse : ResponseBase
{
// Token: 0x1700016B RID: 363
// (get) Token: 0x0600032A RID: 810 RVA: 0x00009EA0 File Offset: 0x00008EA0
public Messaging.GameDataMessage[] GameDataMessages
{
get
{
return this.gameDataMessages;
}
}
// Token: 0x0600032B RID: 811 RVA: 0x00009EB8 File Offset: 0x00008EB8
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GameDataMessagesBegin);
ulong num = memoryBuffer.ReadUInt64();
this.gameDataMessages = new Messaging.GameDataMessage[num];
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
{
checked
{
this.gameDataMessages[(int)((IntPtr)num2)] = new Messaging.GameDataMessage();
this.gameDataMessages[(int)((IntPtr)num2)].Read(memoryBuffer);
}
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GameDataMessagesEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000257 RID: 599
internal Messaging.GameDataMessage[] gameDataMessages;
}
// Token: 0x02000091 RID: 145
public class GameDataMessageThumbnailResponse : ResponseBase
{
// Token: 0x1700016C RID: 364
// (get) Token: 0x0600032D RID: 813 RVA: 0x00009F5C File Offset: 0x00008F5C
public ulong GameDataMsgId
{
get
{
return this.gameDataMsgId;
}
}
// Token: 0x1700016D RID: 365
// (get) Token: 0x0600032E RID: 814 RVA: 0x00009F74 File Offset: 0x00008F74
public byte[] Thumbnail
{
get
{
return this.thumbnail;
}
}
// Token: 0x0600032F RID: 815 RVA: 0x00009F8C File Offset: 0x00008F8C
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GameDataMessageThumbnailBegin);
this.gameDataMsgId = memoryBuffer.ReadUInt64();
memoryBuffer.ReadData(ref this.thumbnail);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GameDataMessageThumbnailEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000258 RID: 600
internal ulong gameDataMsgId;
// Token: 0x04000259 RID: 601
internal byte[] thumbnail = null;
}
// Token: 0x02000092 RID: 146
public class GameDataMessageAttachmentResponse : ResponseBase
{
// Token: 0x1700016E RID: 366
// (get) Token: 0x06000331 RID: 817 RVA: 0x0000A008 File Offset: 0x00009008
public ulong GameDataMsgId
{
get
{
return this.gameDataMsgId;
}
}
// Token: 0x1700016F RID: 367
// (get) Token: 0x06000332 RID: 818 RVA: 0x0000A020 File Offset: 0x00009020
public byte[] Attachment
{
get
{
return this.attachment;
}
}
// Token: 0x06000333 RID: 819 RVA: 0x0000A038 File Offset: 0x00009038
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GameDataMessageAttachmentBegin);
this.gameDataMsgId = memoryBuffer.ReadUInt64();
memoryBuffer.ReadData(ref this.attachment);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GameDataMessageAttachmentEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x0400025A RID: 602
internal ulong gameDataMsgId;
// Token: 0x0400025B RID: 603
internal byte[] attachment;
}
// Token: 0x02000093 RID: 147
public class NewInGameMessageResponse : ResponseBase
{
// Token: 0x17000170 RID: 368
// (get) Token: 0x06000335 RID: 821 RVA: 0x0000A0AC File Offset: 0x000090AC
public byte[] Message
{
get
{
return this.message;
}
}
// Token: 0x17000171 RID: 369
// (get) Token: 0x06000336 RID: 822 RVA: 0x0000A0C4 File Offset: 0x000090C4
public Core.OnlineUser Sender
{
get
{
return this.sender;
}
}
// Token: 0x17000172 RID: 370
// (get) Token: 0x06000337 RID: 823 RVA: 0x0000A0DC File Offset: 0x000090DC
public Core.OnlineUser Recipient
{
get
{
return this.recipient;
}
}
// Token: 0x17000173 RID: 371
// (get) Token: 0x06000338 RID: 824 RVA: 0x0000A0F4 File Offset: 0x000090F4
public Core.PlatformType SenderPlatformType
{
get
{
return this.senderPlatformType;
}
}
// Token: 0x17000174 RID: 372
// (get) Token: 0x06000339 RID: 825 RVA: 0x0000A10C File Offset: 0x0000910C
public Core.PlatformType RecipientPlatformType
{
get
{
return this.recipientPlatformType;
}
}
// Token: 0x0600033A RID: 826 RVA: 0x0000A124 File Offset: 0x00009124
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NewInGameMessageBegin);
memoryBuffer.ReadData(ref this.message);
this.sender.Read(memoryBuffer);
this.recipient.Read(memoryBuffer);
this.senderPlatformType = (Core.PlatformType)memoryBuffer.ReadUInt32();
this.recipientPlatformType = (Core.PlatformType)memoryBuffer.ReadUInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NewInGameMessageEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x0400025C RID: 604
internal byte[] message;
// Token: 0x0400025D RID: 605
internal Core.OnlineUser sender = new Core.OnlineUser();
// Token: 0x0400025E RID: 606
internal Core.OnlineUser recipient = new Core.OnlineUser();
// Token: 0x0400025F RID: 607
internal Core.PlatformType senderPlatformType;
// Token: 0x04000260 RID: 608
internal Core.PlatformType recipientPlatformType;
}
// Token: 0x02000094 RID: 148
public class NewGameDataMessageResponse : ResponseBase
{
// Token: 0x17000175 RID: 373
// (get) Token: 0x0600033C RID: 828 RVA: 0x0000A1DC File Offset: 0x000091DC
public Core.OnlineUser To
{
get
{
return this.to;
}
}
// Token: 0x17000176 RID: 374
// (get) Token: 0x0600033D RID: 829 RVA: 0x0000A1F4 File Offset: 0x000091F4
public Core.OnlineUser From
{
get
{
return this.from;
}
}
// Token: 0x0600033E RID: 830 RVA: 0x0000A20C File Offset: 0x0000920C
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NewGameDataMessageBegin);
this.to.Read(memoryBuffer);
this.from.Read(memoryBuffer);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NewGameDataMessageEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000261 RID: 609
internal Core.OnlineUser to = new Core.OnlineUser();
// Token: 0x04000262 RID: 610
internal Core.OnlineUser from = new Core.OnlineUser();
}
// Token: 0x02000095 RID: 149
public class GameCustomDataEventResponse : ResponseBase
{
// Token: 0x17000177 RID: 375
// (get) Token: 0x06000340 RID: 832 RVA: 0x0000A2A0 File Offset: 0x000092A0
public ulong ItemId
{
get
{
return this.itemId;
}
}
// Token: 0x17000178 RID: 376
// (get) Token: 0x06000341 RID: 833 RVA: 0x0000A2B8 File Offset: 0x000092B8
public Core.OnlineID OnlineId
{
get
{
return this.onlineId;
}
}
// Token: 0x17000179 RID: 377
// (get) Token: 0x06000342 RID: 834 RVA: 0x0000A2D0 File Offset: 0x000092D0
public Core.UserServiceUserId UserId
{
get
{
return this.userId;
}
}
// Token: 0x06000343 RID: 835 RVA: 0x0000A2E8 File Offset: 0x000092E8
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GameCustomDataEventBegin);
this.itemId = memoryBuffer.ReadUInt64();
this.onlineId.Read(memoryBuffer);
this.userId.Read(memoryBuffer);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GameCustomDataEventEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000263 RID: 611
internal ulong itemId;
// Token: 0x04000264 RID: 612
internal Core.OnlineID onlineId = new Core.OnlineID();
// Token: 0x04000265 RID: 613
internal Core.UserServiceUserId userId;
}
}
}
+16
View File
@@ -0,0 +1,16 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x0200012D RID: 301
internal struct NativeInitResult
{
// Token: 0x040004ED RID: 1261
[MarshalAs(UnmanagedType.I1)]
internal bool initialized;
// Token: 0x040004EE RID: 1262
internal uint sceSDKVersion;
}
}
+863
View File
@@ -0,0 +1,863 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x02000096 RID: 150
public class NetworkUtils
{
// Token: 0x06000345 RID: 837
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetBandwidthInfo(NetworkUtils.GetBandwidthInfoRequest request, out APIResult result);
// Token: 0x06000346 RID: 838
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetBasicNetworkInfo(NetworkUtils.GetBasicNetworkInfoRequest request, out APIResult result);
// Token: 0x06000347 RID: 839
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetDetailedNetworkInfo(NetworkUtils.GetDetailedNetworkInfoRequest request, out APIResult result);
// Token: 0x06000348 RID: 840 RVA: 0x0000A37C File Offset: 0x0000937C
public static int GetBandwidthInfo(NetworkUtils.GetBandwidthInfoRequest request, NetworkUtils.BandwidthInfoResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = NetworkUtils.PrxGetBandwidthInfo(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000349 RID: 841 RVA: 0x0000A3D0 File Offset: 0x000093D0
public static int GetBasicNetworkInfoInfo(NetworkUtils.GetBasicNetworkInfoRequest request, NetworkUtils.BasicNetworkInfoResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = NetworkUtils.PrxGetBasicNetworkInfo(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600034A RID: 842 RVA: 0x0000A424 File Offset: 0x00009424
public static int GetDetailedNetworkInfo(NetworkUtils.GetDetailedNetworkInfoRequest request, NetworkUtils.DetailedNetworkInfoResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = NetworkUtils.PrxGetDetailedNetworkInfo(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x02000097 RID: 151
[StructLayout(LayoutKind.Sequential)]
public class GetBandwidthInfoRequest : RequestBase
{
// Token: 0x0600034C RID: 844 RVA: 0x0000A47F File Offset: 0x0000947F
public GetBandwidthInfoRequest()
: base(ServiceTypes.NetworkUtils, FunctionTypes.NetworkUtilsGetBandwidthInfo)
{
}
}
// Token: 0x02000098 RID: 152
[StructLayout(LayoutKind.Sequential)]
public class GetBasicNetworkInfoRequest : RequestBase
{
// Token: 0x0600034D RID: 845 RVA: 0x0000A48D File Offset: 0x0000948D
public GetBasicNetworkInfoRequest()
: base(ServiceTypes.NetworkUtils, FunctionTypes.NetworkUtilsGetBasicNetworkInfo)
{
}
}
// Token: 0x02000099 RID: 153
[StructLayout(LayoutKind.Sequential)]
public class GetDetailedNetworkInfoRequest : RequestBase
{
// Token: 0x0600034E RID: 846 RVA: 0x0000A49B File Offset: 0x0000949B
public GetDetailedNetworkInfoRequest()
: base(ServiceTypes.NetworkUtils, FunctionTypes.NetworkUtilsGetDetailedNetworkInfo)
{
}
}
// Token: 0x0200009A RID: 154
public enum NetworkConnectionState
{
// Token: 0x04000267 RID: 615
Disconnected,
// Token: 0x04000268 RID: 616
Connecting,
// Token: 0x04000269 RID: 617
ObtainingIP,
// Token: 0x0400026A RID: 618
ObtainedIP
}
// Token: 0x0200009B RID: 155
public struct NpBandwidthTestResult
{
// Token: 0x1700017A RID: 378
// (get) Token: 0x0600034F RID: 847 RVA: 0x0000A4AC File Offset: 0x000094AC
public double UploadBps
{
get
{
return this.uploadBps;
}
}
// Token: 0x1700017B RID: 379
// (get) Token: 0x06000350 RID: 848 RVA: 0x0000A4C4 File Offset: 0x000094C4
public double DownloadBps
{
get
{
return this.downloadBps;
}
}
// Token: 0x06000351 RID: 849 RVA: 0x0000A4DC File Offset: 0x000094DC
internal void Read(MemoryBuffer buffer)
{
this.uploadBps = buffer.ReadDouble();
this.downloadBps = buffer.ReadDouble();
this.result = buffer.ReadInt32();
}
// Token: 0x06000352 RID: 850 RVA: 0x0000A504 File Offset: 0x00009504
public override string ToString()
{
return string.Concat(new object[] { "Up Bps = ", this.uploadBps, " Down Bps = ", this.downloadBps });
}
// Token: 0x0400026B RID: 619
internal double uploadBps;
// Token: 0x0400026C RID: 620
internal double downloadBps;
// Token: 0x0400026D RID: 621
internal int result;
}
// Token: 0x0200009C RID: 156
public struct NetInAddr
{
// Token: 0x1700017C RID: 380
// (get) Token: 0x06000353 RID: 851 RVA: 0x0000A550 File Offset: 0x00009550
// (set) Token: 0x06000354 RID: 852 RVA: 0x0000A568 File Offset: 0x00009568
public uint Addr
{
get
{
return this.addr;
}
set
{
this.addr = value;
}
}
// Token: 0x06000355 RID: 853 RVA: 0x0000A572 File Offset: 0x00009572
internal void Read(MemoryBuffer buffer)
{
this.addr = buffer.ReadUInt32();
}
// Token: 0x06000356 RID: 854 RVA: 0x0000A584 File Offset: 0x00009584
public override string ToString()
{
byte[] bytes = BitConverter.GetBytes(this.addr);
string text = bytes[0].ToString();
for (int i = 1; i < bytes.Length; i++)
{
text = text + "." + bytes[i].ToString();
}
return text;
}
// Token: 0x0400026E RID: 622
internal uint addr;
}
// Token: 0x0200009D RID: 157
public enum RouterNatType
{
// Token: 0x04000270 RID: 624
Type1 = 1,
// Token: 0x04000271 RID: 625
Type2,
// Token: 0x04000272 RID: 626
Type3
}
// Token: 0x0200009E RID: 158
public enum RouterStun
{
// Token: 0x04000274 RID: 628
Unchecked,
// Token: 0x04000275 RID: 629
Failed,
// Token: 0x04000276 RID: 630
OK
}
// Token: 0x0200009F RID: 159
public struct NatRouterInfo
{
// Token: 0x1700017D RID: 381
// (get) Token: 0x06000357 RID: 855 RVA: 0x0000A5E0 File Offset: 0x000095E0
public NetworkUtils.RouterStun StunStatus
{
get
{
return this.stunStatus;
}
}
// Token: 0x1700017E RID: 382
// (get) Token: 0x06000358 RID: 856 RVA: 0x0000A5F8 File Offset: 0x000095F8
public NetworkUtils.RouterNatType NatType
{
get
{
return this.natType;
}
}
// Token: 0x1700017F RID: 383
// (get) Token: 0x06000359 RID: 857 RVA: 0x0000A610 File Offset: 0x00009610
public NetworkUtils.NetInAddr MappedAddr
{
get
{
return this.mappedAddr;
}
}
// Token: 0x0600035A RID: 858 RVA: 0x0000A628 File Offset: 0x00009628
internal void Read(MemoryBuffer buffer)
{
this.stunStatus = (NetworkUtils.RouterStun)buffer.ReadInt32();
this.natType = (NetworkUtils.RouterNatType)buffer.ReadInt32();
this.mappedAddr.Read(buffer);
}
// Token: 0x0600035B RID: 859 RVA: 0x0000A650 File Offset: 0x00009650
public override string ToString()
{
return string.Concat(new object[]
{
"Stun Status = ",
this.stunStatus,
" : Nat Type = ",
this.natType,
" : Mapped Addr = ",
this.mappedAddr.ToString()
});
}
// Token: 0x04000277 RID: 631
internal NetworkUtils.RouterStun stunStatus;
// Token: 0x04000278 RID: 632
internal NetworkUtils.RouterNatType natType;
// Token: 0x04000279 RID: 633
internal NetworkUtils.NetInAddr mappedAddr;
}
// Token: 0x020000A0 RID: 160
public struct NetEtherAddr
{
// Token: 0x17000180 RID: 384
// (get) Token: 0x0600035C RID: 860 RVA: 0x0000A6B8 File Offset: 0x000096B8
public byte[] Data
{
get
{
return this.data;
}
}
// Token: 0x0600035D RID: 861 RVA: 0x0000A6D0 File Offset: 0x000096D0
internal void Read(MemoryBuffer buffer)
{
this.data = new byte[6];
buffer.ReadData(ref this.data);
}
// Token: 0x0600035E RID: 862 RVA: 0x0000A6EC File Offset: 0x000096EC
public override string ToString()
{
string text;
if (this.data == null)
{
text = "0.0.0.0.0.0";
}
else
{
string text2 = this.data[0].ToString();
for (int i = 1; i < this.data.Length; i++)
{
text2 = text2 + "." + this.data[i].ToString();
}
text = text2;
}
return text;
}
// Token: 0x0400027A RID: 634
public const int SCE_NET_ETHER_ADDR_LEN = 6;
// Token: 0x0400027B RID: 635
internal byte[] data;
}
// Token: 0x020000A1 RID: 161
public class BandwidthInfoResponse : ResponseBase
{
// Token: 0x17000181 RID: 385
// (get) Token: 0x0600035F RID: 863 RVA: 0x0000A760 File Offset: 0x00009760
public NetworkUtils.NpBandwidthTestResult Bandwidth
{
get
{
return this.bandwidth;
}
}
// Token: 0x06000360 RID: 864 RVA: 0x0000A778 File Offset: 0x00009778
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.BandwidthInfoBegin);
this.bandwidth.Read(memoryBuffer);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.BandwidthInfoEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x0400027C RID: 636
internal NetworkUtils.NpBandwidthTestResult bandwidth;
}
// Token: 0x020000A2 RID: 162
public class BasicNetworkInfoResponse : ResponseBase
{
// Token: 0x17000182 RID: 386
// (get) Token: 0x06000362 RID: 866 RVA: 0x0000A7E0 File Offset: 0x000097E0
public string IpAddress
{
get
{
return this.ipAddress;
}
}
// Token: 0x17000183 RID: 387
// (get) Token: 0x06000363 RID: 867 RVA: 0x0000A7F8 File Offset: 0x000097F8
public NetworkUtils.NatRouterInfo NatInfo
{
get
{
return this.natInfo;
}
}
// Token: 0x17000184 RID: 388
// (get) Token: 0x06000364 RID: 868 RVA: 0x0000A810 File Offset: 0x00009810
public NetworkUtils.NetworkConnectionState ConnectionStatus
{
get
{
return this.connectionStatus;
}
}
// Token: 0x06000365 RID: 869 RVA: 0x0000A828 File Offset: 0x00009828
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NetStateBasicBegin);
memoryBuffer.ReadString(ref this.ipAddress);
this.natInfo.Read(memoryBuffer);
this.connectionStatus = (NetworkUtils.NetworkConnectionState)memoryBuffer.ReadUInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NetStateBasicEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x0400027D RID: 637
internal string ipAddress;
// Token: 0x0400027E RID: 638
internal NetworkUtils.NatRouterInfo natInfo;
// Token: 0x0400027F RID: 639
internal NetworkUtils.NetworkConnectionState connectionStatus;
}
// Token: 0x020000A3 RID: 163
public enum NetworkDevice
{
// Token: 0x04000281 RID: 641
Wired,
// Token: 0x04000282 RID: 642
Wireless
}
// Token: 0x020000A4 RID: 164
public enum NetworkLink
{
// Token: 0x04000284 RID: 644
Disconnected,
// Token: 0x04000285 RID: 645
Connected
}
// Token: 0x020000A5 RID: 165
public enum WfiSecurity
{
// Token: 0x04000287 RID: 647
NoSecurity,
// Token: 0x04000288 RID: 648
WEP,
// Token: 0x04000289 RID: 649
WPAPSK_WPA2PSK,
// Token: 0x0400028A RID: 650
WPAPSK_TKIP,
// Token: 0x0400028B RID: 651
WPAPSK_AES,
// Token: 0x0400028C RID: 652
WPA2PSK_TKIP,
// Token: 0x0400028D RID: 653
WPA2PSK_AES,
// Token: 0x0400028E RID: 654
Unsupported
}
// Token: 0x020000A6 RID: 166
public enum NetworkIPConfig
{
// Token: 0x04000290 RID: 656
DHCP,
// Token: 0x04000291 RID: 657
Static,
// Token: 0x04000292 RID: 658
PPPoE
}
// Token: 0x020000A7 RID: 167
public enum NetworkHTTPProxyConfig
{
// Token: 0x04000294 RID: 660
Off,
// Token: 0x04000295 RID: 661
On
}
// Token: 0x020000A8 RID: 168
public class DetailedNetworkInfoResponse : ResponseBase
{
// Token: 0x17000185 RID: 389
// (get) Token: 0x06000367 RID: 871 RVA: 0x0000A8A8 File Offset: 0x000098A8
public NetworkUtils.NatRouterInfo NatInfo
{
get
{
return this.natInfo;
}
}
// Token: 0x17000186 RID: 390
// (get) Token: 0x06000368 RID: 872 RVA: 0x0000A8C0 File Offset: 0x000098C0
public NetworkUtils.NetworkConnectionState ConnectionStatus
{
get
{
return this.connectionStatus;
}
}
// Token: 0x17000187 RID: 391
// (get) Token: 0x06000369 RID: 873 RVA: 0x0000A8D8 File Offset: 0x000098D8
public NetworkUtils.NetworkDevice Device
{
get
{
return this.device;
}
}
// Token: 0x17000188 RID: 392
// (get) Token: 0x0600036A RID: 874 RVA: 0x0000A8F0 File Offset: 0x000098F0
public NetworkUtils.NetEtherAddr EthernetAddress
{
get
{
return this.ethernetAddress;
}
}
// Token: 0x17000189 RID: 393
// (get) Token: 0x0600036B RID: 875 RVA: 0x0000A908 File Offset: 0x00009908
public byte RssiPercentage
{
get
{
return this.rssiPercentage;
}
}
// Token: 0x1700018A RID: 394
// (get) Token: 0x0600036C RID: 876 RVA: 0x0000A920 File Offset: 0x00009920
public byte Channel
{
get
{
return this.channel;
}
}
// Token: 0x1700018B RID: 395
// (get) Token: 0x0600036D RID: 877 RVA: 0x0000A938 File Offset: 0x00009938
public uint MTU
{
get
{
return this.mtu;
}
}
// Token: 0x1700018C RID: 396
// (get) Token: 0x0600036E RID: 878 RVA: 0x0000A950 File Offset: 0x00009950
public NetworkUtils.NetworkLink Link
{
get
{
return this.link;
}
}
// Token: 0x1700018D RID: 397
// (get) Token: 0x0600036F RID: 879 RVA: 0x0000A968 File Offset: 0x00009968
public NetworkUtils.WfiSecurity WifiSecurity
{
get
{
return this.wifiSecurity;
}
}
// Token: 0x1700018E RID: 398
// (get) Token: 0x06000370 RID: 880 RVA: 0x0000A980 File Offset: 0x00009980
public NetworkUtils.NetworkIPConfig IpConfig
{
get
{
return this.ipConfig;
}
}
// Token: 0x1700018F RID: 399
// (get) Token: 0x06000371 RID: 881 RVA: 0x0000A998 File Offset: 0x00009998
public NetworkUtils.NetworkHTTPProxyConfig HttpProxyConfig
{
get
{
return this.httpProxyConfig;
}
}
// Token: 0x17000190 RID: 400
// (get) Token: 0x06000372 RID: 882 RVA: 0x0000A9B0 File Offset: 0x000099B0
public ushort HttpProxyPort
{
get
{
return this.httpProxyPort;
}
}
// Token: 0x17000191 RID: 401
// (get) Token: 0x06000373 RID: 883 RVA: 0x0000A9C8 File Offset: 0x000099C8
public NetworkUtils.NetEtherAddr BSSID
{
get
{
return this.bssid;
}
}
// Token: 0x17000192 RID: 402
// (get) Token: 0x06000374 RID: 884 RVA: 0x0000A9E0 File Offset: 0x000099E0
public string SSID
{
get
{
return this.ssid;
}
}
// Token: 0x17000193 RID: 403
// (get) Token: 0x06000375 RID: 885 RVA: 0x0000A9F8 File Offset: 0x000099F8
public string DhcpHostname
{
get
{
return this.dhcpHostname;
}
}
// Token: 0x17000194 RID: 404
// (get) Token: 0x06000376 RID: 886 RVA: 0x0000AA10 File Offset: 0x00009A10
public string PPPoeAuthName
{
get
{
return this.pppoeAuthName;
}
}
// Token: 0x17000195 RID: 405
// (get) Token: 0x06000377 RID: 887 RVA: 0x0000AA28 File Offset: 0x00009A28
public string IpAddress
{
get
{
return this.ipAddress;
}
}
// Token: 0x17000196 RID: 406
// (get) Token: 0x06000378 RID: 888 RVA: 0x0000AA40 File Offset: 0x00009A40
public string Netmask
{
get
{
return this.netmask;
}
}
// Token: 0x17000197 RID: 407
// (get) Token: 0x06000379 RID: 889 RVA: 0x0000AA58 File Offset: 0x00009A58
public string DefaultRoute
{
get
{
return this.defaultRoute;
}
}
// Token: 0x17000198 RID: 408
// (get) Token: 0x0600037A RID: 890 RVA: 0x0000AA70 File Offset: 0x00009A70
public string PrimaryDNS
{
get
{
return this.primaryDNS;
}
}
// Token: 0x17000199 RID: 409
// (get) Token: 0x0600037B RID: 891 RVA: 0x0000AA88 File Offset: 0x00009A88
public string SecondaryDNS
{
get
{
return this.secondaryDNS;
}
}
// Token: 0x1700019A RID: 410
// (get) Token: 0x0600037C RID: 892 RVA: 0x0000AAA0 File Offset: 0x00009AA0
public string HttpProxyServer
{
get
{
return this.httpProxyServer;
}
}
// Token: 0x0600037D RID: 893 RVA: 0x0000AAB8 File Offset: 0x00009AB8
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NetStateDetailedBegin);
this.natInfo.Read(memoryBuffer);
this.connectionStatus = (NetworkUtils.NetworkConnectionState)memoryBuffer.ReadUInt32();
this.device = (NetworkUtils.NetworkDevice)memoryBuffer.ReadUInt32();
this.ethernetAddress.Read(memoryBuffer);
this.rssiPercentage = memoryBuffer.ReadUInt8();
this.channel = memoryBuffer.ReadUInt8();
this.mtu = memoryBuffer.ReadUInt32();
this.link = (NetworkUtils.NetworkLink)memoryBuffer.ReadUInt32();
this.wifiSecurity = (NetworkUtils.WfiSecurity)memoryBuffer.ReadUInt32();
this.ipConfig = (NetworkUtils.NetworkIPConfig)memoryBuffer.ReadUInt32();
this.httpProxyConfig = (NetworkUtils.NetworkHTTPProxyConfig)memoryBuffer.ReadUInt32();
this.httpProxyPort = memoryBuffer.ReadUInt16();
this.bssid.Read(memoryBuffer);
memoryBuffer.ReadString(ref this.ssid);
memoryBuffer.ReadString(ref this.dhcpHostname);
memoryBuffer.ReadString(ref this.pppoeAuthName);
memoryBuffer.ReadString(ref this.ipAddress);
memoryBuffer.ReadString(ref this.netmask);
memoryBuffer.ReadString(ref this.defaultRoute);
memoryBuffer.ReadString(ref this.primaryDNS);
memoryBuffer.ReadString(ref this.secondaryDNS);
memoryBuffer.ReadString(ref this.httpProxyServer);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NetStateDetailedEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000296 RID: 662
internal NetworkUtils.NatRouterInfo natInfo;
// Token: 0x04000297 RID: 663
internal NetworkUtils.NetworkConnectionState connectionStatus;
// Token: 0x04000298 RID: 664
internal NetworkUtils.NetworkDevice device;
// Token: 0x04000299 RID: 665
internal NetworkUtils.NetEtherAddr ethernetAddress;
// Token: 0x0400029A RID: 666
internal byte rssiPercentage;
// Token: 0x0400029B RID: 667
internal byte channel;
// Token: 0x0400029C RID: 668
internal uint mtu;
// Token: 0x0400029D RID: 669
internal NetworkUtils.NetworkLink link;
// Token: 0x0400029E RID: 670
internal NetworkUtils.WfiSecurity wifiSecurity;
// Token: 0x0400029F RID: 671
internal NetworkUtils.NetworkIPConfig ipConfig;
// Token: 0x040002A0 RID: 672
internal NetworkUtils.NetworkHTTPProxyConfig httpProxyConfig;
// Token: 0x040002A1 RID: 673
internal ushort httpProxyPort;
// Token: 0x040002A2 RID: 674
internal NetworkUtils.NetEtherAddr bssid;
// Token: 0x040002A3 RID: 675
internal string ssid = "";
// Token: 0x040002A4 RID: 676
internal string dhcpHostname = "";
// Token: 0x040002A5 RID: 677
internal string pppoeAuthName = "";
// Token: 0x040002A6 RID: 678
internal string ipAddress = "";
// Token: 0x040002A7 RID: 679
internal string netmask = "";
// Token: 0x040002A8 RID: 680
internal string defaultRoute = "";
// Token: 0x040002A9 RID: 681
internal string primaryDNS = "";
// Token: 0x040002AA RID: 682
internal string secondaryDNS = "";
// Token: 0x040002AB RID: 683
internal string httpProxyServer = "";
}
// Token: 0x020000A9 RID: 169
public enum NetworkEvent
{
// Token: 0x040002AD RID: 685
none,
// Token: 0x040002AE RID: 686
networkConnected,
// Token: 0x040002AF RID: 687
networkDisconnected
}
// Token: 0x020000AA RID: 170
public class NetStateChangeResponse : ResponseBase
{
// Token: 0x1700019B RID: 411
// (get) Token: 0x0600037F RID: 895 RVA: 0x0000AC98 File Offset: 0x00009C98
public NetworkUtils.NetworkEvent NetEvent
{
get
{
return this.netEvent;
}
}
// Token: 0x06000380 RID: 896 RVA: 0x0000ACB0 File Offset: 0x00009CB0
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NetStateChangeBegin);
this.netEvent = (NetworkUtils.NetworkEvent)memoryBuffer.ReadInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NetStateChangeEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040002B0 RID: 688
internal NetworkUtils.NetworkEvent netEvent;
}
}
}
+62
View File
@@ -0,0 +1,62 @@
using System;
namespace Sony.NP
{
// Token: 0x020000AB RID: 171
internal class Notifications
{
// Token: 0x06000382 RID: 898 RVA: 0x0000AD18 File Offset: 0x00009D18
internal static ResponseBase CreateNotificationResponse(FunctionTypes notificationType)
{
ResponseBase responseBase = null;
switch (notificationType)
{
case FunctionTypes.NotificationRefreshRoom:
responseBase = new Matching.RefreshRoomResponse();
break;
case FunctionTypes.NotificationNewRoomMessage:
responseBase = new Matching.NewRoomMessageResponse();
break;
case FunctionTypes.NotificationDialogOpened:
case FunctionTypes.NotificationDialogClosed:
case FunctionTypes.NotificationAborted:
responseBase = new Core.EmptyResponse();
break;
case FunctionTypes.NotificationUserStateChange:
responseBase = new NpUtils.UserStateChangeResponse();
break;
case FunctionTypes.NotificationNetStateChange:
responseBase = new NetworkUtils.NetStateChangeResponse();
break;
case FunctionTypes.NotificationNewInGameMessage:
responseBase = new Messaging.NewInGameMessageResponse();
break;
case FunctionTypes.NotificationUpdateFriendsList:
responseBase = new Friends.FriendListUpdateResponse();
break;
case FunctionTypes.NotificationNewInvitation:
responseBase = new Matching.InvitationReceivedResponse();
break;
case FunctionTypes.NotificationNewGameDataMessage:
responseBase = new Messaging.NewGameDataMessageResponse();
break;
case FunctionTypes.NotificationUpdateFriendPresence:
responseBase = new Presence.PresenceUpdateResponse();
break;
case FunctionTypes.NotificationUpdateBlockedUsersList:
responseBase = new Friends.BlocklistUpdateResponse();
break;
case FunctionTypes.NotificationSessionInvitationEvent:
responseBase = new Matching.SessionInvitationEventResponse();
break;
case FunctionTypes.NotificationPlayTogetherHostEvent:
responseBase = new Matching.PlayTogetherHostEventResponse();
break;
case FunctionTypes.NotificationGameCustomDataEvent:
responseBase = new Messaging.GameCustomDataEventResponse();
break;
}
return responseBase;
}
}
}
+86
View File
@@ -0,0 +1,86 @@
using System;
namespace Sony.NP
{
// Token: 0x02000110 RID: 272
public class NpCallbackEvent
{
// Token: 0x170002AD RID: 685
// (get) Token: 0x060005B5 RID: 1461 RVA: 0x00010228 File Offset: 0x0000F228
public ServiceTypes Service
{
get
{
return this.service;
}
}
// Token: 0x170002AE RID: 686
// (get) Token: 0x060005B6 RID: 1462 RVA: 0x00010240 File Offset: 0x0000F240
public FunctionTypes ApiCalled
{
get
{
return this.apiCalled;
}
}
// Token: 0x170002AF RID: 687
// (get) Token: 0x060005B7 RID: 1463 RVA: 0x00010258 File Offset: 0x0000F258
public uint NpRequestId
{
get
{
return this.npRequestId;
}
}
// Token: 0x170002B0 RID: 688
// (get) Token: 0x060005B8 RID: 1464 RVA: 0x00010270 File Offset: 0x0000F270
public ResponseBase Response
{
get
{
return this.response;
}
}
// Token: 0x170002B1 RID: 689
// (get) Token: 0x060005B9 RID: 1465 RVA: 0x00010288 File Offset: 0x0000F288
public RequestBase Request
{
get
{
return this.request;
}
}
// Token: 0x170002B2 RID: 690
// (get) Token: 0x060005BA RID: 1466 RVA: 0x000102A0 File Offset: 0x0000F2A0
public Core.UserServiceUserId UserId
{
get
{
return this.userId;
}
}
// Token: 0x04000426 RID: 1062
internal ServiceTypes service;
// Token: 0x04000427 RID: 1063
internal FunctionTypes apiCalled;
// Token: 0x04000428 RID: 1064
internal uint npRequestId;
// Token: 0x04000429 RID: 1065
internal ResponseBase response;
// Token: 0x0400042A RID: 1066
internal Core.UserServiceUserId userId;
// Token: 0x0400042B RID: 1067
internal RequestBase request;
}
}
+14
View File
@@ -0,0 +1,14 @@
using System;
namespace Sony.NP
{
// Token: 0x02000130 RID: 304
internal struct NpMemoryBuffer
{
// Token: 0x040004F8 RID: 1272
public uint size;
// Token: 0x040004F9 RID: 1273
public IntPtr data;
}
}
+70
View File
@@ -0,0 +1,70 @@
using System;
using System.Runtime.InteropServices;
using System.Threading;
using AOT;
namespace Sony.NP
{
// Token: 0x0200013A RID: 314
internal static class NpRequestsThread
{
// Token: 0x0600066F RID: 1647
[DllImport("UnityNpToolkit2")]
private static extern bool PrxPollFirstRequest();
// Token: 0x06000670 RID: 1648 RVA: 0x000124C7 File Offset: 0x000114C7
public static void Start()
{
NpRequestsThread.stopThread = false;
NpRequestsThread.requestsThread = new Thread(new ThreadStart(NpRequestsThread.RunProc));
NpRequestsThread.requestsThread.Name = "Requests Thread";
NpRequestsThread.requestsThread.Start();
}
// Token: 0x06000671 RID: 1649 RVA: 0x00012504 File Offset: 0x00011504
private static void RunProc()
{
NpRequestsThread.workLoad.WaitOne();
while (!NpRequestsThread.stopThread)
{
if (NpRequestsThread.PrxPollFirstRequest())
{
NpRequestsThread.workLoad.WaitOne();
}
else
{
Thread.Sleep(1000);
}
}
}
// Token: 0x06000672 RID: 1650 RVA: 0x00012555 File Offset: 0x00011555
public static void Execute()
{
NpRequestsThread.workLoad.Release();
}
// Token: 0x06000673 RID: 1651 RVA: 0x00012563 File Offset: 0x00011563
public static void Stop()
{
NpRequestsThread.stopThread = true;
NpRequestsThread.workLoad.Release();
}
// Token: 0x06000674 RID: 1652 RVA: 0x00012577 File Offset: 0x00011577
[MonoPInvokeCallback(typeof(Main.OnPrxCallbackEvent))]
public static void OnPrxNpRequestEvent()
{
NpRequestsThread.Execute();
}
// Token: 0x04000632 RID: 1586
private static Thread requestsThread;
// Token: 0x04000633 RID: 1587
private static bool stopThread = false;
// Token: 0x04000634 RID: 1588
private static Semaphore workLoad = new Semaphore(0, 1000);
}
}
+107
View File
@@ -0,0 +1,107 @@
using System;
namespace Sony.NP
{
// Token: 0x02000123 RID: 291
public class NpToolkitException : Exception
{
// Token: 0x170002C3 RID: 707
// (get) Token: 0x060005FE RID: 1534 RVA: 0x00010C60 File Offset: 0x0000FC60
public APIResultTypes ResultType
{
get
{
return this.resultType;
}
}
// Token: 0x170002C4 RID: 708
// (get) Token: 0x060005FF RID: 1535 RVA: 0x00010C78 File Offset: 0x0000FC78
public string Filename
{
get
{
return this.filename;
}
}
// Token: 0x170002C5 RID: 709
// (get) Token: 0x06000600 RID: 1536 RVA: 0x00010C90 File Offset: 0x0000FC90
public int LineNumber
{
get
{
return this.lineNumber;
}
}
// Token: 0x170002C6 RID: 710
// (get) Token: 0x06000601 RID: 1537 RVA: 0x00010CA8 File Offset: 0x0000FCA8
public int SceErrorCode
{
get
{
return this.sceErrorCode;
}
}
// Token: 0x06000602 RID: 1538 RVA: 0x00010CC0 File Offset: 0x0000FCC0
public NpToolkitException()
{
}
// Token: 0x06000603 RID: 1539 RVA: 0x00010CD2 File Offset: 0x0000FCD2
public NpToolkitException(string message)
: base(message)
{
}
// Token: 0x06000604 RID: 1540 RVA: 0x00010CE5 File Offset: 0x0000FCE5
public NpToolkitException(string message, Exception inner)
: base(message, inner)
{
}
// Token: 0x06000605 RID: 1541 RVA: 0x00010CFC File Offset: 0x0000FCFC
internal NpToolkitException(APIResult apiResult)
: base(apiResult.message)
{
this.resultType = apiResult.apiResult;
this.filename = apiResult.filename;
this.lineNumber = apiResult.lineNumber;
this.sceErrorCode = apiResult.sceErrorCode;
}
// Token: 0x170002C7 RID: 711
// (get) Token: 0x06000606 RID: 1542 RVA: 0x00010D54 File Offset: 0x0000FD54
public string ExtendedMessage
{
get
{
string text = this.Message;
if (this.sceErrorCode != 0)
{
text = text + " (Sce : 0x" + this.sceErrorCode.ToString("X") + " ) ";
}
if (this.filename != null && this.filename.Length > 0)
{
object obj = text;
text = string.Concat(new object[] { obj, " ( ", this.filename, " : Line = ", this.lineNumber, " ) " });
}
return text;
}
}
// Token: 0x040004B1 RID: 1201
internal APIResultTypes resultType = APIResultTypes.Error;
// Token: 0x040004B2 RID: 1202
internal string filename;
// Token: 0x040004B3 RID: 1203
internal int lineNumber;
// Token: 0x040004B4 RID: 1204
internal int sceErrorCode;
}
}
+409
View File
@@ -0,0 +1,409 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x020000AC RID: 172
public class NpUtils
{
// Token: 0x06000384 RID: 900
[DllImport("UnityNpToolkit2")]
private static extern int PrxSetTitleIdForDevelopment(NpUtils.SetTitleIdForDevelopmentRequest request, out APIResult result);
// Token: 0x06000385 RID: 901
[DllImport("UnityNpToolkit2")]
private static extern int PrxDisplaySigninDialog(NpUtils.DisplaySigninDialogRequest request, out APIResult result);
// Token: 0x06000386 RID: 902
[DllImport("UnityNpToolkit2")]
private static extern int PrxCheckAvailablity(NpUtils.CheckAvailablityRequest request, out APIResult result);
// Token: 0x06000387 RID: 903
[DllImport("UnityNpToolkit2")]
private static extern int PrxCheckPlus(NpUtils.CheckPlusRequest request, out APIResult result);
// Token: 0x06000388 RID: 904
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetParentalControlInfo(NpUtils.GetParentalControlInfoRequest request, out APIResult result);
// Token: 0x06000389 RID: 905
[DllImport("UnityNpToolkit2")]
private static extern void PrxNotifyPlusFeature(int userId, ulong features, out APIResult result);
// Token: 0x0600038A RID: 906 RVA: 0x0000ADF8 File Offset: 0x00009DF8
public static int SetTitleIdForDevelopment(NpUtils.SetTitleIdForDevelopmentRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = NpUtils.PrxSetTitleIdForDevelopment(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600038B RID: 907 RVA: 0x0000AE4C File Offset: 0x00009E4C
public static int DisplaySigninDialog(NpUtils.DisplaySigninDialogRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = NpUtils.PrxDisplaySigninDialog(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600038C RID: 908 RVA: 0x0000AEA0 File Offset: 0x00009EA0
public static int CheckAvailablity(NpUtils.CheckAvailablityRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = NpUtils.PrxCheckAvailablity(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600038D RID: 909 RVA: 0x0000AEF4 File Offset: 0x00009EF4
public static int CheckPlus(NpUtils.CheckPlusRequest request, NpUtils.CheckPlusResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = NpUtils.PrxCheckPlus(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600038E RID: 910 RVA: 0x0000AF48 File Offset: 0x00009F48
public static int GetParentalControlInfo(NpUtils.GetParentalControlInfoRequest request, NpUtils.GetParentalControlInfoResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = NpUtils.PrxGetParentalControlInfo(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600038F RID: 911 RVA: 0x0000AF9C File Offset: 0x00009F9C
public static void NotifyPlusFeature(Core.UserServiceUserId userId)
{
APIResult apiresult;
NpUtils.PrxNotifyPlusFeature(userId.id, 1UL, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
}
// Token: 0x020000AD RID: 173
[StructLayout(LayoutKind.Sequential)]
public class SetTitleIdForDevelopmentRequest : RequestBase
{
// Token: 0x06000391 RID: 913 RVA: 0x0000AFD8 File Offset: 0x00009FD8
public SetTitleIdForDevelopmentRequest()
: base(ServiceTypes.NpUtils, FunctionTypes.NpUtilsSetTitleIdForDevelopment)
{
this.titleId = "";
this.titleSecretString = "";
this.titleSecretStringSize = 0U;
}
// Token: 0x040002B1 RID: 689
private const int SCE_NP_TITLE_ID_LEN = 12;
// Token: 0x040002B2 RID: 690
public string titleId;
// Token: 0x040002B3 RID: 691
public string titleSecretString;
// Token: 0x040002B4 RID: 692
public uint titleSecretStringSize;
}
// Token: 0x020000AE RID: 174
[StructLayout(LayoutKind.Sequential)]
public class DisplaySigninDialogRequest : RequestBase
{
// Token: 0x06000392 RID: 914 RVA: 0x0000B003 File Offset: 0x0000A003
public DisplaySigninDialogRequest()
: base(ServiceTypes.NpUtils, FunctionTypes.NpUtilsDisplaySigninDialog)
{
}
}
// Token: 0x020000AF RID: 175
[StructLayout(LayoutKind.Sequential)]
public class CheckAvailablityRequest : RequestBase
{
// Token: 0x06000393 RID: 915 RVA: 0x0000B011 File Offset: 0x0000A011
public CheckAvailablityRequest()
: base(ServiceTypes.NpUtils, FunctionTypes.NpUtilsCheckAvailability)
{
}
}
// Token: 0x020000B0 RID: 176
[StructLayout(LayoutKind.Sequential)]
public class CheckPlusRequest : RequestBase
{
// Token: 0x06000394 RID: 916 RVA: 0x0000B01F File Offset: 0x0000A01F
public CheckPlusRequest()
: base(ServiceTypes.NpUtils, FunctionTypes.NpUtilsCheckPlus)
{
this.features = 1UL;
}
// Token: 0x040002B5 RID: 693
internal ulong features;
}
// Token: 0x020000B1 RID: 177
[StructLayout(LayoutKind.Sequential)]
public class GetParentalControlInfoRequest : RequestBase
{
// Token: 0x06000395 RID: 917 RVA: 0x0000B035 File Offset: 0x0000A035
public GetParentalControlInfoRequest()
: base(ServiceTypes.NpUtils, FunctionTypes.NpUtilsGetParentalControlInfo)
{
}
}
// Token: 0x020000B2 RID: 178
public class CheckPlusResponse : ResponseBase
{
// Token: 0x1700019C RID: 412
// (get) Token: 0x06000396 RID: 918 RVA: 0x0000B044 File Offset: 0x0000A044
public bool Authorized
{
get
{
return this.authorized;
}
}
// Token: 0x06000397 RID: 919 RVA: 0x0000B05C File Offset: 0x0000A05C
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.CheckPlusBegin);
this.authorized = memoryBuffer.ReadBool();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.CheckPlusEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040002B6 RID: 694
internal bool authorized;
}
// Token: 0x020000B3 RID: 179
public class GetParentalControlInfoResponse : ResponseBase
{
// Token: 0x1700019D RID: 413
// (get) Token: 0x06000399 RID: 921 RVA: 0x0000B0C8 File Offset: 0x0000A0C8
public int Age
{
get
{
return this.age;
}
}
// Token: 0x1700019E RID: 414
// (get) Token: 0x0600039A RID: 922 RVA: 0x0000B0E0 File Offset: 0x0000A0E0
public bool ChatRestriction
{
get
{
return this.chatRestriction;
}
}
// Token: 0x1700019F RID: 415
// (get) Token: 0x0600039B RID: 923 RVA: 0x0000B0F8 File Offset: 0x0000A0F8
public bool UGCRestriction
{
get
{
return this.ugcRestriction;
}
}
// Token: 0x0600039C RID: 924 RVA: 0x0000B110 File Offset: 0x0000A110
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GetParentalControlInfoBegin);
this.age = memoryBuffer.ReadInt32();
this.contentRestriction = memoryBuffer.ReadBool();
this.chatRestriction = memoryBuffer.ReadBool();
this.ugcRestriction = memoryBuffer.ReadBool();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GetParentalControlInfoEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040002B7 RID: 695
private int age;
// Token: 0x040002B8 RID: 696
internal bool contentRestriction;
// Token: 0x040002B9 RID: 697
internal bool chatRestriction;
// Token: 0x040002BA RID: 698
internal bool ugcRestriction;
}
// Token: 0x020000B4 RID: 180
public enum SignInState
{
// Token: 0x040002BC RID: 700
unknown,
// Token: 0x040002BD RID: 701
signedOut,
// Token: 0x040002BE RID: 702
signedIn
}
// Token: 0x020000B5 RID: 181
public enum LogInState
{
// Token: 0x040002C0 RID: 704
loggedIn,
// Token: 0x040002C1 RID: 705
loggedOut,
// Token: 0x040002C2 RID: 706
unknown
}
// Token: 0x020000B6 RID: 182
public enum StateChanged
{
// Token: 0x040002C4 RID: 708
none,
// Token: 0x040002C5 RID: 709
signedInState,
// Token: 0x040002C6 RID: 710
loggedInState
}
// Token: 0x020000B7 RID: 183
public class UserStateChangeResponse : ResponseBase
{
// Token: 0x170001A0 RID: 416
// (get) Token: 0x0600039E RID: 926 RVA: 0x0000B1A0 File Offset: 0x0000A1A0
public Core.UserServiceUserId UserId
{
get
{
return this.userId;
}
}
// Token: 0x170001A1 RID: 417
// (get) Token: 0x0600039F RID: 927 RVA: 0x0000B1B8 File Offset: 0x0000A1B8
public NpUtils.SignInState CurrentSignInState
{
get
{
return this.currentSignInState;
}
}
// Token: 0x170001A2 RID: 418
// (get) Token: 0x060003A0 RID: 928 RVA: 0x0000B1D0 File Offset: 0x0000A1D0
public NpUtils.LogInState CurrentLogInState
{
get
{
return this.currentLogInState;
}
}
// Token: 0x170001A3 RID: 419
// (get) Token: 0x060003A1 RID: 929 RVA: 0x0000B1E8 File Offset: 0x0000A1E8
public NpUtils.StateChanged StateChanged
{
get
{
return this.stateChanged;
}
}
// Token: 0x060003A2 RID: 930 RVA: 0x0000B200 File Offset: 0x0000A200
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.UserStateChangeBegin);
this.userId = memoryBuffer.ReadInt32();
this.currentSignInState = (NpUtils.SignInState)memoryBuffer.ReadInt32();
this.currentLogInState = (NpUtils.LogInState)memoryBuffer.ReadInt32();
this.stateChanged = (NpUtils.StateChanged)memoryBuffer.ReadInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.UserStateChangeEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040002C7 RID: 711
internal Core.UserServiceUserId userId;
// Token: 0x040002C8 RID: 712
internal NpUtils.SignInState currentSignInState;
// Token: 0x040002C9 RID: 713
internal NpUtils.LogInState currentLogInState;
// Token: 0x040002CA RID: 714
internal NpUtils.StateChanged stateChanged;
}
}
}
+118
View File
@@ -0,0 +1,118 @@
using System;
using System.Collections.Generic;
namespace Sony.NP
{
// Token: 0x02000136 RID: 310
internal static class PendingAsyncRequestList
{
// Token: 0x170002E3 RID: 739
// (get) Token: 0x06000657 RID: 1623 RVA: 0x00011CF8 File Offset: 0x00010CF8
public static List<PendingRequest> PendingRequests
{
get
{
List<PendingRequest> list2;
lock (PendingAsyncRequestList.syncObject)
{
List<PendingRequest> list = new List<PendingRequest>(PendingAsyncRequestList.pendingRequests);
list2 = list;
}
return list2;
}
}
// Token: 0x06000658 RID: 1624 RVA: 0x00011D40 File Offset: 0x00010D40
internal static void Shutdown()
{
lock (PendingAsyncRequestList.syncObject)
{
PendingAsyncRequestList.pendingRequests.Clear();
}
}
// Token: 0x06000659 RID: 1625 RVA: 0x00011D84 File Offset: 0x00010D84
public static bool IsPending(uint npRequestId)
{
bool flag;
lock (PendingAsyncRequestList.syncObject)
{
flag = PendingAsyncRequestList.requestsLookup.ContainsKey(npRequestId);
}
return flag;
}
// Token: 0x0600065A RID: 1626 RVA: 0x00011DC8 File Offset: 0x00010DC8
internal static void AddRequest(uint npRequestId, RequestBase request)
{
lock (PendingAsyncRequestList.syncObject)
{
PendingRequest pendingRequest = new PendingRequest();
pendingRequest.npRequestId = npRequestId;
pendingRequest.request = request;
pendingRequest.abortPending = false;
PendingAsyncRequestList.requestsLookup.Add(npRequestId, pendingRequest);
PendingAsyncRequestList.pendingRequests.Add(pendingRequest);
}
}
// Token: 0x0600065B RID: 1627 RVA: 0x00011E34 File Offset: 0x00010E34
internal static RequestBase RemoveRequest(uint npRequestId)
{
RequestBase requestBase;
lock (PendingAsyncRequestList.syncObject)
{
PendingRequest pendingRequest = null;
if (!PendingAsyncRequestList.requestsLookup.TryGetValue(npRequestId, out pendingRequest))
{
requestBase = null;
}
else
{
PendingAsyncRequestList.requestsLookup.Remove(npRequestId);
PendingAsyncRequestList.pendingRequests.Remove(pendingRequest);
requestBase = pendingRequest.request;
}
}
return requestBase;
}
// Token: 0x0600065C RID: 1628 RVA: 0x00011EA4 File Offset: 0x00010EA4
internal static bool MarkRequestAsAborting(uint npRequestId)
{
bool flag;
lock (PendingAsyncRequestList.syncObject)
{
PendingRequest pendingRequest = null;
if (!PendingAsyncRequestList.requestsLookup.TryGetValue(npRequestId, out pendingRequest))
{
flag = false;
}
else
{
pendingRequest.abortPending = true;
flag = true;
}
}
return flag;
}
// Token: 0x0600065D RID: 1629 RVA: 0x00011F00 File Offset: 0x00010F00
internal static void RequestHasBeenAborted(uint npRequestId)
{
lock (PendingAsyncRequestList.syncObject)
{
PendingAsyncRequestList.RemoveRequest(npRequestId);
}
}
// Token: 0x04000626 RID: 1574
private static Dictionary<uint, PendingRequest> requestsLookup = new Dictionary<uint, PendingRequest>();
// Token: 0x04000627 RID: 1575
private static List<PendingRequest> pendingRequests = new List<PendingRequest>();
// Token: 0x04000628 RID: 1576
private static object syncObject = new object();
}
}
+44
View File
@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
namespace Sony.NP
{
// Token: 0x02000138 RID: 312
internal static class PendingAsyncResponseList
{
// Token: 0x06000665 RID: 1637 RVA: 0x00012024 File Offset: 0x00011024
public static void AddResponse(uint npRequestId, ResponseBase response)
{
lock (PendingAsyncResponseList.syncObject)
{
PendingAsyncResponseList.responseLookup.Add(npRequestId, response);
}
}
// Token: 0x06000666 RID: 1638 RVA: 0x0001206C File Offset: 0x0001106C
public static ResponseBase FindAndRemoveResponse(uint npRequestId)
{
ResponseBase responseBase2;
lock (PendingAsyncResponseList.syncObject)
{
ResponseBase responseBase;
if (PendingAsyncResponseList.responseLookup.TryGetValue(npRequestId, out responseBase))
{
PendingAsyncResponseList.responseLookup.Remove(npRequestId);
responseBase2 = responseBase;
}
else
{
responseBase2 = null;
}
}
return responseBase2;
}
// Token: 0x0400062D RID: 1581
private static Dictionary<uint, ResponseBase> responseLookup = new Dictionary<uint, ResponseBase>();
// Token: 0x0400062E RID: 1582
private static object syncObject = new object();
}
}
+41
View File
@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Threading;
namespace Sony.NP
{
// Token: 0x02000111 RID: 273
internal static class PendingCallbackQueue
{
// Token: 0x060005BC RID: 1468 RVA: 0x000102C0 File Offset: 0x0000F2C0
public static void AddEvent(NpCallbackEvent callbackEvent)
{
Monitor.Enter(PendingCallbackQueue.syncObject);
PendingCallbackQueue.pendingEvents.Enqueue(callbackEvent);
Monitor.Exit(PendingCallbackQueue.syncObject);
}
// Token: 0x060005BD RID: 1469 RVA: 0x000102E8 File Offset: 0x0000F2E8
public static NpCallbackEvent PopEvent()
{
NpCallbackEvent npCallbackEvent = null;
if (Monitor.TryEnter(PendingCallbackQueue.syncObject))
{
if (PendingCallbackQueue.pendingEvents.Count == 0)
{
Monitor.Exit(PendingCallbackQueue.syncObject);
return null;
}
npCallbackEvent = PendingCallbackQueue.pendingEvents.Dequeue();
Monitor.Exit(PendingCallbackQueue.syncObject);
}
return npCallbackEvent;
}
// Token: 0x0400042C RID: 1068
private static Queue<NpCallbackEvent> pendingEvents = new Queue<NpCallbackEvent>();
// Token: 0x0400042D RID: 1069
private static object syncObject = new object();
}
}
+47
View File
@@ -0,0 +1,47 @@
using System;
namespace Sony.NP
{
// Token: 0x02000135 RID: 309
public class PendingRequest
{
// Token: 0x170002E0 RID: 736
// (get) Token: 0x06000653 RID: 1619 RVA: 0x00011CA8 File Offset: 0x00010CA8
public uint NpRequestId
{
get
{
return this.npRequestId;
}
}
// Token: 0x170002E1 RID: 737
// (get) Token: 0x06000654 RID: 1620 RVA: 0x00011CC0 File Offset: 0x00010CC0
public RequestBase Request
{
get
{
return this.request;
}
}
// Token: 0x170002E2 RID: 738
// (get) Token: 0x06000655 RID: 1621 RVA: 0x00011CD8 File Offset: 0x00010CD8
public bool AbortPending
{
get
{
return this.abortPending;
}
}
// Token: 0x04000623 RID: 1571
internal uint npRequestId;
// Token: 0x04000624 RID: 1572
internal RequestBase request;
// Token: 0x04000625 RID: 1573
internal bool abortPending;
}
}
+156
View File
@@ -0,0 +1,156 @@
using System;
using System.Runtime.InteropServices;
using System.Threading;
using AOT;
namespace Sony.NP
{
// Token: 0x02000139 RID: 313
internal static class PopulateThread
{
// Token: 0x06000668 RID: 1640
[DllImport("UnityNpToolkit2")]
private static extern bool PrxPopFirstResponse(out ServiceTypes service, out FunctionTypes apiCalled, out uint npRequestId, out int userId, out int customReturnCode);
// Token: 0x06000669 RID: 1641 RVA: 0x000120E2 File Offset: 0x000110E2
public static void Start()
{
PopulateThread.stopThread = false;
PopulateThread.populateThread = new Thread(new ThreadStart(PopulateThread.RunProc));
PopulateThread.populateThread.Name = "Sony Np";
PopulateThread.populateThread.Start();
}
// Token: 0x0600066A RID: 1642 RVA: 0x0001211C File Offset: 0x0001111C
private static void RunProc()
{
PopulateThread.workLoad.WaitOne();
while (!PopulateThread.stopThread)
{
ServiceTypes serviceTypes;
FunctionTypes functionTypes;
uint num;
Core.UserServiceUserId userServiceUserId;
int num2;
if (PopulateThread.PrxPopFirstResponse(out serviceTypes, out functionTypes, out num, out userServiceUserId.id, out num2))
{
RequestBase requestBase = null;
NpCallbackEvent npCallbackEvent = null;
try
{
npCallbackEvent = new NpCallbackEvent();
if (serviceTypes == ServiceTypes.Notification)
{
npCallbackEvent.response = Notifications.CreateNotificationResponse(functionTypes);
}
else
{
requestBase = PendingAsyncRequestList.RemoveRequest(num);
npCallbackEvent.response = PendingAsyncResponseList.FindAndRemoveResponse(num);
if (npCallbackEvent.response == null)
{
Console.WriteLine("Error : PopulateThread.RunProc : Can't find response object for Request " + num);
}
}
if (npCallbackEvent.response != null)
{
npCallbackEvent.response.PopulateFromNative(num, functionTypes, requestBase);
if (num2 != 0)
{
npCallbackEvent.response.returnCode = num2;
}
}
npCallbackEvent.service = serviceTypes;
npCallbackEvent.apiCalled = functionTypes;
npCallbackEvent.npRequestId = num;
npCallbackEvent.userId = userServiceUserId;
npCallbackEvent.request = requestBase;
Main.CallOnAsyncEvent(npCallbackEvent);
}
catch (NpToolkitException ex)
{
Console.WriteLine("Toolkit Exception - PopulateThread.RunProc : " + ex.ExtendedMessage);
Console.WriteLine(ex.StackTrace);
Console.WriteLine(string.Concat(new object[]
{
"Toolkit Exception : service = ",
serviceTypes,
" : apiCalled = ",
functionTypes,
"(",
(int)functionTypes,
") : npRequestId = ",
num,
" : userId = ",
userServiceUserId.id
}));
if (requestBase != null)
{
Console.WriteLine("Toolkit Exception - Caused by Request : " + requestBase.functionType);
}
if (npCallbackEvent != null && npCallbackEvent.response != null)
{
Console.WriteLine("Toolkit Exception - Response Type = " + npCallbackEvent.response.GetType().ToString());
}
}
catch (Exception ex2)
{
Console.WriteLine("Exception - PopulateThread.RunProc : " + ex2.Message);
Console.WriteLine(ex2.StackTrace);
Console.WriteLine(string.Concat(new object[]
{
"Toolkit Exception : service = ",
serviceTypes,
" : apiCalled = ",
functionTypes,
"(",
(int)functionTypes,
") : npRequestId = ",
num,
" : userId = ",
userServiceUserId.id
}));
if (requestBase != null)
{
Console.WriteLine("Toolkit Exception - Caused by Request : " + requestBase.functionType);
}
else
{
Console.WriteLine("Toolkit Exception - No request data available");
}
}
}
PopulateThread.workLoad.WaitOne();
}
}
// Token: 0x0600066B RID: 1643 RVA: 0x00012484 File Offset: 0x00011484
public static void Execute()
{
PopulateThread.workLoad.Release();
}
// Token: 0x0600066C RID: 1644 RVA: 0x00012492 File Offset: 0x00011492
public static void Stop()
{
PopulateThread.stopThread = true;
PopulateThread.workLoad.Release();
}
// Token: 0x0600066D RID: 1645 RVA: 0x000124A6 File Offset: 0x000114A6
[MonoPInvokeCallback(typeof(Main.OnPrxCallbackEvent))]
public static void OnPrxNpToolkitEvent()
{
PopulateThread.Execute();
}
// Token: 0x0400062F RID: 1583
private static Thread populateThread;
// Token: 0x04000630 RID: 1584
private static bool stopThread = false;
// Token: 0x04000631 RID: 1585
private static Semaphore workLoad = new Semaphore(0, 1000);
}
}
+758
View File
@@ -0,0 +1,758 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x020000B8 RID: 184
public class Presence
{
// Token: 0x060003A4 RID: 932
[DllImport("UnityNpToolkit2")]
private static extern int PrxDeletePresence(Presence.DeletePresenceRequest request, out APIResult result);
// Token: 0x060003A5 RID: 933
[DllImport("UnityNpToolkit2")]
private static extern int PrxSetPresence(Presence.SetPresenceRequest request, out APIResult result);
// Token: 0x060003A6 RID: 934
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetPresence(Presence.GetPresenceRequest request, out APIResult result);
// Token: 0x060003A7 RID: 935 RVA: 0x0000B290 File Offset: 0x0000A290
public static int DeletePresence(Presence.DeletePresenceRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Presence.PrxDeletePresence(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060003A8 RID: 936 RVA: 0x0000B2E4 File Offset: 0x0000A2E4
public static int SetPresence(Presence.SetPresenceRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Presence.PrxSetPresence(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060003A9 RID: 937 RVA: 0x0000B338 File Offset: 0x0000A338
public static int GetPresence(Presence.GetPresenceRequest request, Presence.PresenceResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Presence.PrxGetPresence(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x020000B9 RID: 185
[StructLayout(LayoutKind.Sequential)]
public class DeletePresenceRequest : RequestBase
{
// Token: 0x170001A4 RID: 420
// (get) Token: 0x060003AB RID: 939 RVA: 0x0000B394 File Offset: 0x0000A394
public bool DeleteGameData
{
get
{
return this.deleteGameData;
}
}
// Token: 0x170001A5 RID: 421
// (get) Token: 0x060003AC RID: 940 RVA: 0x0000B3AC File Offset: 0x0000A3AC
public bool DeleteGameStatus
{
get
{
return this.deleteGameStatus;
}
}
// Token: 0x060003AD RID: 941 RVA: 0x0000B3C4 File Offset: 0x0000A3C4
public DeletePresenceRequest()
: base(ServiceTypes.Presence, FunctionTypes.PresenceDeletePresence)
{
this.deleteGameData = true;
this.deleteGameStatus = true;
}
// Token: 0x040002CB RID: 715
[MarshalAs(UnmanagedType.I1)]
internal bool deleteGameData;
// Token: 0x040002CC RID: 716
[MarshalAs(UnmanagedType.I1)]
internal bool deleteGameStatus;
}
// Token: 0x020000BA RID: 186
public struct LocalizedGameStatus
{
// Token: 0x170001A6 RID: 422
// (get) Token: 0x060003AE RID: 942 RVA: 0x0000B3E0 File Offset: 0x0000A3E0
// (set) Token: 0x060003AF RID: 943 RVA: 0x0000B405 File Offset: 0x0000A405
public Core.LanguageCode LanguageCode
{
get
{
return new Core.LanguageCode
{
code = this.languageCode
};
}
set
{
this.languageCode = value.code;
}
}
// Token: 0x170001A7 RID: 423
// (get) Token: 0x060003B0 RID: 944 RVA: 0x0000B414 File Offset: 0x0000A414
// (set) Token: 0x060003B1 RID: 945 RVA: 0x0000B42C File Offset: 0x0000A42C
public string GameStatus
{
get
{
return this.gameStatus;
}
set
{
if (value.Length > 96)
{
throw new NpToolkitException("The size of the game stutus string is more than " + 96 + " characters.");
}
this.gameStatus = value;
}
}
// Token: 0x040002CD RID: 717
public const int MAX_SIZE_LOCALIZED_GAME_STATUS = 96;
// Token: 0x040002CE RID: 718
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 6)]
internal string languageCode;
// Token: 0x040002CF RID: 719
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 97)]
internal string gameStatus;
}
// Token: 0x020000BB RID: 187
[StructLayout(LayoutKind.Sequential)]
public class SetPresenceRequest : RequestBase
{
// Token: 0x170001A8 RID: 424
// (get) Token: 0x060003B2 RID: 946 RVA: 0x0000B470 File Offset: 0x0000A470
// (set) Token: 0x060003B3 RID: 947 RVA: 0x0000B488 File Offset: 0x0000A488
public string DefaultGameStatus
{
get
{
return this.defaultGameStatus;
}
set
{
if (value.Length > 191)
{
throw new NpToolkitException("The size of the default game stutus string is more than " + 191 + " characters.");
}
this.defaultGameStatus = value;
}
}
// Token: 0x170001A9 RID: 425
// (get) Token: 0x060003B4 RID: 948 RVA: 0x0000B4D4 File Offset: 0x0000A4D4
// (set) Token: 0x060003B5 RID: 949 RVA: 0x0000B51C File Offset: 0x0000A51C
public Presence.LocalizedGameStatus[] LocalizedGameStatuses
{
get
{
Presence.LocalizedGameStatus[] array;
if (this.numLocalizedGameStatuses == 0U)
{
array = null;
}
else
{
Presence.LocalizedGameStatus[] array2 = new Presence.LocalizedGameStatus[this.numLocalizedGameStatuses];
Array.Copy(this.localizedGameStatuses, array2, (long)((ulong)this.numLocalizedGameStatuses));
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 50)
{
throw new NpToolkitException("The size of the localized game statuses array is more than " + 50);
}
value.CopyTo(this.localizedGameStatuses, 0);
this.numLocalizedGameStatuses = (uint)value.Length;
}
else
{
this.numLocalizedGameStatuses = 0U;
}
}
}
// Token: 0x170001AA RID: 426
// (get) Token: 0x060003B6 RID: 950 RVA: 0x0000B57C File Offset: 0x0000A57C
// (set) Token: 0x060003B7 RID: 951 RVA: 0x0000B5C4 File Offset: 0x0000A5C4
public byte[] BinaryGameData
{
get
{
byte[] array;
if (this.binaryGameData == null)
{
array = null;
}
else
{
byte[] array2 = new byte[this.binaryGameDataSize];
Array.Copy(this.binaryGameData, array2, (long)((ulong)this.binaryGameDataSize));
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 128)
{
throw new NpToolkitException("The size of the binary game data is more than " + 128 + " bytes.");
}
value.CopyTo(this.binaryGameData, 0);
this.binaryGameDataSize = (uint)value.Length;
}
else
{
this.binaryGameDataSize = 0U;
}
}
}
// Token: 0x060003B8 RID: 952 RVA: 0x0000B630 File Offset: 0x0000A630
public SetPresenceRequest()
: base(ServiceTypes.Presence, FunctionTypes.PresenceSetPresence)
{
this.defaultGameStatus = "";
this.localizedGameStatuses = new Presence.LocalizedGameStatus[50];
this.numLocalizedGameStatuses = 0U;
this.binaryGameData = new byte[128];
this.binaryGameDataSize = 0U;
}
// Token: 0x040002D0 RID: 720
public const int MAX_LOCALIZED_STATUSES = 50;
// Token: 0x040002D1 RID: 721
public const int MAX_SIZE_GAME_DATA = 128;
// Token: 0x040002D2 RID: 722
public const int MAX_SIZE_DEFAULT_GAME_STATUS = 191;
// Token: 0x040002D3 RID: 723
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 191)]
internal string defaultGameStatus;
// Token: 0x040002D4 RID: 724
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
internal Presence.LocalizedGameStatus[] localizedGameStatuses;
// Token: 0x040002D5 RID: 725
internal uint numLocalizedGameStatuses;
// Token: 0x040002D6 RID: 726
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)]
internal byte[] binaryGameData;
// Token: 0x040002D7 RID: 727
internal uint binaryGameDataSize;
}
// Token: 0x020000BC RID: 188
[StructLayout(LayoutKind.Sequential)]
public class GetPresenceRequest : RequestBase
{
// Token: 0x170001AB RID: 427
// (get) Token: 0x060003B9 RID: 953 RVA: 0x0000B680 File Offset: 0x0000A680
// (set) Token: 0x060003BA RID: 954 RVA: 0x0000B698 File Offset: 0x0000A698
public Core.NpAccountId FromUser
{
get
{
return this.fromUser;
}
set
{
this.fromUser = value;
}
}
// Token: 0x170001AC RID: 428
// (get) Token: 0x060003BB RID: 955 RVA: 0x0000B6A4 File Offset: 0x0000A6A4
// (set) Token: 0x060003BC RID: 956 RVA: 0x0000B6BC File Offset: 0x0000A6BC
public bool InContext
{
get
{
return this.inContext;
}
set
{
this.inContext = value;
}
}
// Token: 0x060003BD RID: 957 RVA: 0x0000B6C6 File Offset: 0x0000A6C6
public GetPresenceRequest()
: base(ServiceTypes.Presence, FunctionTypes.PresenceGetPresence)
{
this.fromUser.id = 0UL;
this.inContext = true;
}
// Token: 0x040002D8 RID: 728
internal Core.NpAccountId fromUser;
// Token: 0x040002D9 RID: 729
internal bool inContext;
}
// Token: 0x020000BD RID: 189
public class PlatformPresence
{
// Token: 0x170001AD RID: 429
// (get) Token: 0x060003BE RID: 958 RVA: 0x0000B6E8 File Offset: 0x0000A6E8
public Core.OnlineStatus OnlineStatusOnPlatform
{
get
{
return this.onlineStatusOnPlatform;
}
}
// Token: 0x170001AE RID: 430
// (get) Token: 0x060003BF RID: 959 RVA: 0x0000B700 File Offset: 0x0000A700
public Core.PlatformType Platform
{
get
{
return this.platform;
}
}
// Token: 0x170001AF RID: 431
// (get) Token: 0x060003C0 RID: 960 RVA: 0x0000B718 File Offset: 0x0000A718
public Core.TitleId TitleId
{
get
{
return this.titleId;
}
}
// Token: 0x170001B0 RID: 432
// (get) Token: 0x060003C1 RID: 961 RVA: 0x0000B730 File Offset: 0x0000A730
public string TitleName
{
get
{
return this.titleName;
}
}
// Token: 0x170001B1 RID: 433
// (get) Token: 0x060003C2 RID: 962 RVA: 0x0000B748 File Offset: 0x0000A748
public string GameStatus
{
get
{
return this.gameStatus;
}
}
// Token: 0x170001B2 RID: 434
// (get) Token: 0x060003C3 RID: 963 RVA: 0x0000B760 File Offset: 0x0000A760
public byte[] BinaryGameData
{
get
{
return this.binaryGameData;
}
}
// Token: 0x060003C4 RID: 964 RVA: 0x0000B778 File Offset: 0x0000A778
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.PlatformPresenceBegin);
this.onlineStatusOnPlatform = (Core.OnlineStatus)buffer.ReadUInt32();
this.platform = (Core.PlatformType)buffer.ReadUInt32();
this.titleId.Read(buffer);
buffer.ReadString(ref this.titleName);
buffer.ReadString(ref this.gameStatus);
buffer.ReadData(ref this.binaryGameData);
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.PlatformPresenceEnd);
}
// Token: 0x060003C5 RID: 965 RVA: 0x0000B7E4 File Offset: 0x0000A7E4
public override string ToString()
{
string text = "";
return text + string.Format("\n: Platform Presence : OS ({0}) Platform ({1}) TitleId ({2}) ", new object[]
{
this.onlineStatusOnPlatform,
this.platform,
this.titleId.ToString(),
this.titleName
});
}
// Token: 0x040002DA RID: 730
public const int MAX_SIZE_TITLE_NAME = 127;
// Token: 0x040002DB RID: 731
public const int MAX_SIZE_GAME_STATUS = 191;
// Token: 0x040002DC RID: 732
public const int MAX_SIZE_GAME_DATA = 128;
// Token: 0x040002DD RID: 733
internal Core.OnlineStatus onlineStatusOnPlatform;
// Token: 0x040002DE RID: 734
internal Core.PlatformType platform;
// Token: 0x040002DF RID: 735
internal Core.TitleId titleId = new Core.TitleId();
// Token: 0x040002E0 RID: 736
internal string titleName = "";
// Token: 0x040002E1 RID: 737
internal string gameStatus = "";
// Token: 0x040002E2 RID: 738
internal byte[] binaryGameData;
}
// Token: 0x020000BE RID: 190
public class UserPresence
{
// Token: 0x170001B3 RID: 435
// (get) Token: 0x060003C7 RID: 967 RVA: 0x0000B874 File Offset: 0x0000A874
public Core.OnlineUser User
{
get
{
return this.user;
}
}
// Token: 0x170001B4 RID: 436
// (get) Token: 0x060003C8 RID: 968 RVA: 0x0000B88C File Offset: 0x0000A88C
public Core.OnlineStatus PsnOnlineStatus
{
get
{
return this.psnOnlineStatus;
}
}
// Token: 0x170001B5 RID: 437
// (get) Token: 0x060003C9 RID: 969 RVA: 0x0000B8A4 File Offset: 0x0000A8A4
public Core.PlatformType MostRelevantPlatform
{
get
{
return this.mostRelevantPlatform;
}
}
// Token: 0x170001B6 RID: 438
// (get) Token: 0x060003CA RID: 970 RVA: 0x0000B8BC File Offset: 0x0000A8BC
public Presence.PlatformPresence[] Platforms
{
get
{
return this.platforms;
}
}
// Token: 0x060003CB RID: 971 RVA: 0x0000B8D4 File Offset: 0x0000A8D4
internal UserPresence()
{
}
// Token: 0x060003CC RID: 972 RVA: 0x0000B8EC File Offset: 0x0000A8EC
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.PresenceBegin);
this.user.Read(buffer);
this.psnOnlineStatus = (Core.OnlineStatus)buffer.ReadUInt32();
this.mostRelevantPlatform = (Core.PlatformType)buffer.ReadUInt32();
uint num = buffer.ReadUInt32();
if (num == 0U)
{
this.platforms = null;
}
else
{
this.platforms = new Presence.PlatformPresence[num];
int num2 = 0;
while ((long)num2 < (long)((ulong)num))
{
this.platforms[num2] = new Presence.PlatformPresence();
this.platforms[num2].Read(buffer);
num2++;
}
}
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.PresenceEnd);
}
// Token: 0x060003CD RID: 973 RVA: 0x0000B990 File Offset: 0x0000A990
public override string ToString()
{
string text = "";
int num = 0;
if (this.platforms != null)
{
num = this.platforms.Length;
}
text += string.Format("0x{0:X} : {1} : PSN OS ({2}) MRP ({3}) #P ({4})'\n", new object[]
{
this.User.accountId,
this.User.onlineId.name,
this.PsnOnlineStatus,
this.MostRelevantPlatform,
num
});
for (int i = 0; i < num; i++)
{
text = text + this.Platforms[i].ToString() + "\n";
}
return text;
}
// Token: 0x040002E3 RID: 739
public const int MAX_NUM_PLATFORM_PRESENCE = 3;
// Token: 0x040002E4 RID: 740
internal Core.OnlineUser user = new Core.OnlineUser();
// Token: 0x040002E5 RID: 741
internal Core.OnlineStatus psnOnlineStatus;
// Token: 0x040002E6 RID: 742
internal Core.PlatformType mostRelevantPlatform;
// Token: 0x040002E7 RID: 743
internal Presence.PlatformPresence[] platforms;
}
// Token: 0x020000BF RID: 191
public class PresenceResponse : ResponseBase
{
// Token: 0x170001B7 RID: 439
// (get) Token: 0x060003CE RID: 974 RVA: 0x0000BA5C File Offset: 0x0000AA5C
public Presence.UserPresence UserPresence
{
get
{
return this.userPresence;
}
}
// Token: 0x060003CF RID: 975 RVA: 0x0000BA74 File Offset: 0x0000AA74
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
this.userPresence.Read(memoryBuffer);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040002E8 RID: 744
internal Presence.UserPresence userPresence = new Presence.UserPresence();
}
// Token: 0x020000C0 RID: 192
public enum PresenceUpdateType
{
// Token: 0x040002EA RID: 746
invalid,
// Token: 0x040002EB RID: 747
gameTitle,
// Token: 0x040002EC RID: 748
gameStatus,
// Token: 0x040002ED RID: 749
gameData
}
// Token: 0x020000C1 RID: 193
public class PresenceUpdateResponse : ResponseBase
{
// Token: 0x170001B8 RID: 440
// (get) Token: 0x060003D1 RID: 977 RVA: 0x0000BAD8 File Offset: 0x0000AAD8
public Core.OnlineUser LocalUpdatedUser
{
get
{
return this.localUpdatedUser;
}
}
// Token: 0x170001B9 RID: 441
// (get) Token: 0x060003D2 RID: 978 RVA: 0x0000BAF0 File Offset: 0x0000AAF0
public Core.OnlineUser RemoteUser
{
get
{
return this.remoteUser;
}
}
// Token: 0x170001BA RID: 442
// (get) Token: 0x060003D3 RID: 979 RVA: 0x0000BB08 File Offset: 0x0000AB08
public Core.UserServiceUserId UserId
{
get
{
return this.userId;
}
}
// Token: 0x170001BB RID: 443
// (get) Token: 0x060003D4 RID: 980 RVA: 0x0000BB20 File Offset: 0x0000AB20
public Presence.PresenceUpdateType UpdateType
{
get
{
return this.updateType;
}
}
// Token: 0x170001BC RID: 444
// (get) Token: 0x060003D5 RID: 981 RVA: 0x0000BB38 File Offset: 0x0000AB38
public string GameStatus
{
get
{
if (this.updateType != Presence.PresenceUpdateType.gameStatus)
{
throw new NpToolkitException("GameStatus isn't valid unless 'UpdateType' is set to " + Presence.PresenceUpdateType.gameStatus);
}
return this.gameStatus;
}
}
// Token: 0x170001BD RID: 445
// (get) Token: 0x060003D6 RID: 982 RVA: 0x0000BB74 File Offset: 0x0000AB74
public byte[] BinaryGameData
{
get
{
if (this.updateType != Presence.PresenceUpdateType.gameData)
{
throw new NpToolkitException("BinaryGameData isn't valid unless 'UpdateType' is set to " + Presence.PresenceUpdateType.gameData);
}
return this.binaryGameData;
}
}
// Token: 0x170001BE RID: 446
// (get) Token: 0x060003D7 RID: 983 RVA: 0x0000BBB0 File Offset: 0x0000ABB0
public Core.PlatformType Platform
{
get
{
return this.platform;
}
}
// Token: 0x060003D8 RID: 984 RVA: 0x0000BBC8 File Offset: 0x0000ABC8
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.PresenceUpdateBegin);
this.localUpdatedUser.Read(memoryBuffer);
this.remoteUser.Read(memoryBuffer);
this.userId = memoryBuffer.ReadInt32();
this.updateType = (Presence.PresenceUpdateType)memoryBuffer.ReadInt32();
memoryBuffer.ReadString(ref this.gameStatus);
memoryBuffer.ReadData(ref this.binaryGameData);
this.platform = (Core.PlatformType)memoryBuffer.ReadInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.PresenceUpdateEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040002EE RID: 750
public const int MAX_SIZE_GAME_STATUS = 191;
// Token: 0x040002EF RID: 751
public const int MAX_SIZE_GAME_DATA = 128;
// Token: 0x040002F0 RID: 752
internal Core.OnlineUser localUpdatedUser = new Core.OnlineUser();
// Token: 0x040002F1 RID: 753
internal Core.OnlineUser remoteUser = new Core.OnlineUser();
// Token: 0x040002F2 RID: 754
internal Core.UserServiceUserId userId;
// Token: 0x040002F3 RID: 755
internal Presence.PresenceUpdateType updateType;
// Token: 0x040002F4 RID: 756
internal string gameStatus = "";
// Token: 0x040002F5 RID: 757
internal byte[] binaryGameData;
// Token: 0x040002F6 RID: 758
internal Core.PlatformType platform;
}
}
}
+338
View File
@@ -0,0 +1,338 @@
using System;
namespace Sony.NP
{
// Token: 0x020000C2 RID: 194
public class Profiles
{
// Token: 0x020000C3 RID: 195
public class RealName
{
// Token: 0x170001BF RID: 447
// (get) Token: 0x060003DB RID: 987 RVA: 0x0000BCAC File Offset: 0x0000ACAC
public string FirstName
{
get
{
return this.firstName;
}
}
// Token: 0x170001C0 RID: 448
// (get) Token: 0x060003DC RID: 988 RVA: 0x0000BCC4 File Offset: 0x0000ACC4
public string MiddleName
{
get
{
return this.middleName;
}
}
// Token: 0x170001C1 RID: 449
// (get) Token: 0x060003DD RID: 989 RVA: 0x0000BCDC File Offset: 0x0000ACDC
public string LastName
{
get
{
return this.lastName;
}
}
// Token: 0x060003DE RID: 990 RVA: 0x0000BCF4 File Offset: 0x0000ACF4
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.RealNameBegin);
buffer.ReadString(ref this.firstName);
buffer.ReadString(ref this.middleName);
buffer.ReadString(ref this.lastName);
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.RealNameEnd);
}
// Token: 0x040002F7 RID: 759
public const int MAX_SIZE_FIRST_NAME = 16;
// Token: 0x040002F8 RID: 760
public const int MAX_SIZE_MIDDLE_NAME = 16;
// Token: 0x040002F9 RID: 761
public const int MAX_SIZE_LAST_NAME = 16;
// Token: 0x040002FA RID: 762
internal string firstName = "";
// Token: 0x040002FB RID: 763
internal string middleName = "";
// Token: 0x040002FC RID: 764
internal string lastName = "";
}
// Token: 0x020000C4 RID: 196
public class Profile
{
// Token: 0x170001C2 RID: 450
// (get) Token: 0x060003E0 RID: 992 RVA: 0x0000BD5C File Offset: 0x0000AD5C
public Core.OnlineUser OnlineUser
{
get
{
return this.onlineUser;
}
}
// Token: 0x170001C3 RID: 451
// (get) Token: 0x060003E1 RID: 993 RVA: 0x0000BD74 File Offset: 0x0000AD74
public Profiles.Profile.RelationTypes RelationType
{
get
{
return this.relationType;
}
}
// Token: 0x170001C4 RID: 452
// (get) Token: 0x060003E2 RID: 994 RVA: 0x0000BD8C File Offset: 0x0000AD8C
public Core.CountryCode Country
{
get
{
return this.country;
}
}
// Token: 0x170001C5 RID: 453
// (get) Token: 0x060003E3 RID: 995 RVA: 0x0000BDA4 File Offset: 0x0000ADA4
public Core.LanguageCode[] LanguagesUsed
{
get
{
return this.languagesUsed;
}
}
// Token: 0x170001C6 RID: 454
// (get) Token: 0x060003E4 RID: 996 RVA: 0x0000BDBC File Offset: 0x0000ADBC
public Profiles.Profile.PersonalDetailsTypes PersonalDetailsType
{
get
{
return this.personalDetailsType;
}
}
// Token: 0x170001C7 RID: 455
// (get) Token: 0x060003E5 RID: 997 RVA: 0x0000BDD4 File Offset: 0x0000ADD4
public Profiles.RealName RealName
{
get
{
if (this.personalDetailsType != Profiles.Profile.PersonalDetailsTypes.realName)
{
throw new NpToolkitException("Can't access RealName unless PersonalDetailsType is PersonalDetailsType.realName");
}
return this.realName;
}
}
// Token: 0x170001C8 RID: 456
// (get) Token: 0x060003E6 RID: 998 RVA: 0x0000BE08 File Offset: 0x0000AE08
public string VerifiedAccountDisplayName
{
get
{
if (this.personalDetailsType != Profiles.Profile.PersonalDetailsTypes.verifiedAccountDisplayName)
{
throw new NpToolkitException("Can't access VerifiedAccountDisplayName unless PersonalDetailsType is PersonalDetailsType.verifiedAccountDisplayName");
}
return this.verifiedAccountDisplayName;
}
}
// Token: 0x170001C9 RID: 457
// (get) Token: 0x060003E7 RID: 999 RVA: 0x0000BE3C File Offset: 0x0000AE3C
public bool IsVerifiedAccount
{
get
{
return this.isVerifiedAccount;
}
}
// Token: 0x170001CA RID: 458
// (get) Token: 0x060003E8 RID: 1000 RVA: 0x0000BE54 File Offset: 0x0000AE54
public string AboutMe
{
get
{
return this.aboutMe;
}
}
// Token: 0x170001CB RID: 459
// (get) Token: 0x060003E9 RID: 1001 RVA: 0x0000BE6C File Offset: 0x0000AE6C
public string AvatarUrl
{
get
{
return this.avatarUrl;
}
}
// Token: 0x170001CC RID: 460
// (get) Token: 0x060003EA RID: 1002 RVA: 0x0000BE84 File Offset: 0x0000AE84
public string ProfilePictureUrl
{
get
{
return this.profilePictureUrl;
}
}
// Token: 0x060003EB RID: 1003 RVA: 0x0000BE9C File Offset: 0x0000AE9C
public Profile()
{
for (int i = 0; i < 3; i++)
{
this.languagesUsed[i] = new Core.LanguageCode();
}
}
// Token: 0x060003EC RID: 1004 RVA: 0x0000BF14 File Offset: 0x0000AF14
internal void Read(MemoryBuffer buffer)
{
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProfileBegin);
this.onlineUser.Read(buffer);
this.relationType = (Profiles.Profile.RelationTypes)buffer.ReadUInt32();
uint num = buffer.ReadUInt32();
if (num != 3U)
{
throw new NpToolkitException("Unexpected language array size in Profile. Should be " + 3);
}
for (int i = 0; i < 3; i++)
{
this.languagesUsed[i].Read(buffer);
}
this.country.Read(buffer);
this.personalDetailsType = (Profiles.Profile.PersonalDetailsTypes)buffer.ReadUInt32();
if (this.personalDetailsType == Profiles.Profile.PersonalDetailsTypes.realName)
{
this.realName = new Profiles.RealName();
this.realName.Read(buffer);
}
else if (this.personalDetailsType == Profiles.Profile.PersonalDetailsTypes.verifiedAccountDisplayName)
{
this.verifiedAccountDisplayName = "";
buffer.ReadString(ref this.verifiedAccountDisplayName);
}
buffer.ReadString(ref this.aboutMe);
buffer.ReadString(ref this.avatarUrl);
buffer.ReadString(ref this.profilePictureUrl);
this.isVerifiedAccount = buffer.ReadBool();
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProfileEnd);
}
// Token: 0x060003ED RID: 1005 RVA: 0x0000C038 File Offset: 0x0000B038
public override string ToString()
{
string text = "";
text += string.Format("{0} : Relation ({1}) CC ({2}) PT ({3}) Lang1 ({4})\n", new object[]
{
this.OnlineUser.ToString(),
this.RelationType,
this.Country.ToString(),
this.PersonalDetailsType,
this.languagesUsed[0].ToString()
});
if (this.PersonalDetailsType == Profiles.Profile.PersonalDetailsTypes.realName)
{
text += string.Format(" RN ({0} {1} {2})\n", this.RealName.FirstName, this.RealName.MiddleName, this.RealName.LastName);
}
else if (this.PersonalDetailsType == Profiles.Profile.PersonalDetailsTypes.verifiedAccountDisplayName)
{
text += string.Format(" VDN ({0})\n", this.VerifiedAccountDisplayName);
}
return text + string.Format(" Verified Account ({0})", this.IsVerifiedAccount);
}
// Token: 0x040002FD RID: 765
public const int MAX_SIZE_ABOUT_ME = 140;
// Token: 0x040002FE RID: 766
public const int MAX_SIZE_AVATAR_URL = 128;
// Token: 0x040002FF RID: 767
public const int MAX_NUM_LANGUAGES_USED = 3;
// Token: 0x04000300 RID: 768
public const int MAX_SIZE_VERIFIED_ACCOUNT_DISPLAY_NAME = 32;
// Token: 0x04000301 RID: 769
public const int MAX_SIZE_PROFILE_PICTURE_URL = 256;
// Token: 0x04000302 RID: 770
internal Core.OnlineUser onlineUser = new Core.OnlineUser();
// Token: 0x04000303 RID: 771
internal Profiles.Profile.RelationTypes relationType;
// Token: 0x04000304 RID: 772
internal Core.LanguageCode[] languagesUsed = new Core.LanguageCode[3];
// Token: 0x04000305 RID: 773
internal Core.CountryCode country = new Core.CountryCode();
// Token: 0x04000306 RID: 774
internal Profiles.Profile.PersonalDetailsTypes personalDetailsType;
// Token: 0x04000307 RID: 775
internal Profiles.RealName realName;
// Token: 0x04000308 RID: 776
internal string verifiedAccountDisplayName;
// Token: 0x04000309 RID: 777
internal string aboutMe = "";
// Token: 0x0400030A RID: 778
internal string avatarUrl = "";
// Token: 0x0400030B RID: 779
internal string profilePictureUrl = "";
// Token: 0x0400030C RID: 780
internal bool isVerifiedAccount;
// Token: 0x020000C5 RID: 197
public enum RelationTypes
{
// Token: 0x0400030E RID: 782
notSet,
// Token: 0x0400030F RID: 783
me,
// Token: 0x04000310 RID: 784
friends,
// Token: 0x04000311 RID: 785
requestingFriend,
// Token: 0x04000312 RID: 786
requestedFriend,
// Token: 0x04000313 RID: 787
blocked,
// Token: 0x04000314 RID: 788
friendOfFriends,
// Token: 0x04000315 RID: 789
noRelationship
}
// Token: 0x020000C6 RID: 198
public enum PersonalDetailsTypes
{
// Token: 0x04000317 RID: 791
none,
// Token: 0x04000318 RID: 792
realName,
// Token: 0x04000319 RID: 793
verifiedAccountDisplayName
}
}
}
}
+12
View File
@@ -0,0 +1,12 @@
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyVersion("4.508.6382.26719")]
[assembly: AssemblyCopyright("Copyright © Unity Technologies 2015")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyTitle("SonyNP")]
+23
View File
@@ -0,0 +1,23 @@
using System;
namespace Sony.NP
{
// Token: 0x02000127 RID: 295
public enum PushNotificationsFlags
{
// Token: 0x040004C4 RID: 1220
None,
// Token: 0x040004C5 RID: 1221
NewGameDataMessage,
// Token: 0x040004C6 RID: 1222
NewInvitation,
// Token: 0x040004C7 RID: 1223
UpdateBlockedUsersList = 4,
// Token: 0x040004C8 RID: 1224
UpdateFriendPresence = 8,
// Token: 0x040004C9 RID: 1225
UpdateFriendsList = 16,
// Token: 0x040004CA RID: 1226
NewInGameMessage = 32
}
}
+1862
View File
@@ -0,0 +1,1862 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x020000C7 RID: 199
public class Ranking
{
// Token: 0x060003EE RID: 1006
[DllImport("UnityNpToolkit2")]
private static extern int PrxSetScore(Ranking.SetScoreRequest request, out APIResult result);
// Token: 0x060003EF RID: 1007
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetRangeOfRanks(Ranking.GetRangeOfRanksRequest request, out APIResult result);
// Token: 0x060003F0 RID: 1008
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetFriendsRanks(Ranking.GetFriendsRanksRequest request, out APIResult result);
// Token: 0x060003F1 RID: 1009
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetUsersRanks(Ranking.GetUsersRanksRequest request, out APIResult result);
// Token: 0x060003F2 RID: 1010
[DllImport("UnityNpToolkit2")]
private static extern int PrxSetGameData(Ranking.SetGameDataRequest request, out APIResult result);
// Token: 0x060003F3 RID: 1011
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetGameData(Ranking.GetGameDataRequest request, out APIResult result);
// Token: 0x060003F4 RID: 1012 RVA: 0x0000C140 File Offset: 0x0000B140
public static int SetScore(Ranking.SetScoreRequest request, Ranking.TempRankResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Ranking.PrxSetScore(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060003F5 RID: 1013 RVA: 0x0000C194 File Offset: 0x0000B194
public static int GetRangeOfRanks(Ranking.GetRangeOfRanksRequest request, Ranking.RangeOfRanksResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Ranking.PrxGetRangeOfRanks(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060003F6 RID: 1014 RVA: 0x0000C1E8 File Offset: 0x0000B1E8
public static int GetFriendsRanks(Ranking.GetFriendsRanksRequest request, Ranking.FriendsRanksResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Ranking.PrxGetFriendsRanks(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060003F7 RID: 1015 RVA: 0x0000C23C File Offset: 0x0000B23C
public static int GetUsersRanks(Ranking.GetUsersRanksRequest request, Ranking.UsersRanksResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Ranking.PrxGetUsersRanks(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060003F8 RID: 1016 RVA: 0x0000C290 File Offset: 0x0000B290
public static int SetGameData(Ranking.SetGameDataRequest request, Ranking.SetGameDataResultResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Ranking.PrxSetGameData(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x060003F9 RID: 1017 RVA: 0x0000C2E4 File Offset: 0x0000B2E4
public static int GetGameData(Ranking.GetGameDataRequest request, Ranking.GetGameDataResultResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Ranking.PrxGetGameData(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0400031A RID: 794
public const int MAX_NUM_BOARDS = 1000;
// Token: 0x0400031B RID: 795
public const int MIN_PCID = 0;
// Token: 0x0400031C RID: 796
public const int MAX_PCID = 9;
// Token: 0x0400031D RID: 797
public const int MAX_RANGE = 100;
// Token: 0x0400031E RID: 798
public const int MIN_RANGE = 1;
// Token: 0x0400031F RID: 799
public const int FIRST_RANK = 1;
// Token: 0x020000C8 RID: 200
[StructLayout(LayoutKind.Sequential)]
public class SetScoreRequest : RequestBase
{
// Token: 0x170001CD RID: 461
// (get) Token: 0x060003FB RID: 1019 RVA: 0x0000C340 File Offset: 0x0000B340
// (set) Token: 0x060003FC RID: 1020 RVA: 0x0000C358 File Offset: 0x0000B358
public long Score
{
get
{
return this.score;
}
set
{
this.score = value;
}
}
// Token: 0x170001CE RID: 462
// (get) Token: 0x060003FD RID: 1021 RVA: 0x0000C364 File Offset: 0x0000B364
// (set) Token: 0x060003FE RID: 1022 RVA: 0x0000C37C File Offset: 0x0000B37C
public string Comment
{
get
{
return this.utf8Comment;
}
set
{
if (value.Length > 63)
{
throw new NpToolkitException("The size of the comment string is more than " + 63 + " characters.");
}
this.utf8Comment = value;
}
}
// Token: 0x170001CF RID: 463
// (get) Token: 0x060003FF RID: 1023 RVA: 0x0000C3C0 File Offset: 0x0000B3C0
// (set) Token: 0x06000400 RID: 1024 RVA: 0x0000C40C File Offset: 0x0000B40C
public byte[] GameInfoData
{
get
{
byte[] array;
if (this.dataLength == 0UL)
{
array = null;
}
else
{
byte[] array2 = new byte[this.dataLength];
Array.Copy(this.gameInfoData, array2, (int)this.dataLength);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 189)
{
throw new NpToolkitException("The size of the game data is more than " + 189 + " bytes.");
}
value.CopyTo(this.gameInfoData, 0);
this.dataLength = (ulong)value.Length;
}
else
{
this.dataLength = 0UL;
}
}
}
// Token: 0x170001D0 RID: 464
// (get) Token: 0x06000401 RID: 1025 RVA: 0x0000C47C File Offset: 0x0000B47C
// (set) Token: 0x06000402 RID: 1026 RVA: 0x0000C494 File Offset: 0x0000B494
public uint BoardId
{
get
{
return this.boardId;
}
set
{
if (value > 1000U)
{
throw new NpToolkitException("The BoardId can't be more than " + 1000);
}
this.boardId = value;
}
}
// Token: 0x170001D1 RID: 465
// (get) Token: 0x06000403 RID: 1027 RVA: 0x0000C4D4 File Offset: 0x0000B4D4
// (set) Token: 0x06000404 RID: 1028 RVA: 0x0000C4EC File Offset: 0x0000B4EC
public int PcId
{
get
{
return this.pcId;
}
set
{
this.pcId = value;
}
}
// Token: 0x06000405 RID: 1029 RVA: 0x0000C4F6 File Offset: 0x0000B4F6
public SetScoreRequest()
: base(ServiceTypes.Ranking, FunctionTypes.RankingSetScore)
{
this.gameInfoData = new byte[189];
}
// Token: 0x04000320 RID: 800
public const int NP_SCORE_COMMENT_MAXLEN = 63;
// Token: 0x04000321 RID: 801
public const int NP_SCORE_GAMEINFO_MAXSIZE = 189;
// Token: 0x04000322 RID: 802
[MarshalAs(UnmanagedType.I8)]
internal long score;
// Token: 0x04000323 RID: 803
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
internal string utf8Comment;
// Token: 0x04000324 RID: 804
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 189)]
internal byte[] gameInfoData;
// Token: 0x04000325 RID: 805
[MarshalAs(UnmanagedType.U8)]
internal ulong dataLength;
// Token: 0x04000326 RID: 806
[MarshalAs(UnmanagedType.U4)]
internal uint boardId;
// Token: 0x04000327 RID: 807
[MarshalAs(UnmanagedType.I4)]
internal int pcId;
}
// Token: 0x020000C9 RID: 201
[StructLayout(LayoutKind.Sequential)]
public class GetRangeOfRanksRequest : RequestBase
{
// Token: 0x170001D2 RID: 466
// (get) Token: 0x06000406 RID: 1030 RVA: 0x0000C514 File Offset: 0x0000B514
// (set) Token: 0x06000407 RID: 1031 RVA: 0x0000C52C File Offset: 0x0000B52C
public uint BoardId
{
get
{
return this.boardId;
}
set
{
if (value > 1000U)
{
throw new NpToolkitException("The BoardId can't be more than " + 1000);
}
this.boardId = value;
}
}
// Token: 0x170001D3 RID: 467
// (get) Token: 0x06000408 RID: 1032 RVA: 0x0000C56C File Offset: 0x0000B56C
// (set) Token: 0x06000409 RID: 1033 RVA: 0x0000C584 File Offset: 0x0000B584
public uint StartRank
{
get
{
return this.startRank;
}
set
{
if (value < 1U)
{
throw new NpToolkitException("The StartRank can't be less than " + 1);
}
this.startRank = value;
}
}
// Token: 0x170001D4 RID: 468
// (get) Token: 0x0600040A RID: 1034 RVA: 0x0000C5BC File Offset: 0x0000B5BC
// (set) Token: 0x0600040B RID: 1035 RVA: 0x0000C5D4 File Offset: 0x0000B5D4
public uint Range
{
get
{
return this.range;
}
set
{
if (value < 1U || value > 100U)
{
throw new NpToolkitException(string.Concat(new object[] { "The Range must be between ", 1, " and ", 100 }));
}
this.range = value;
}
}
// Token: 0x170001D5 RID: 469
// (get) Token: 0x0600040C RID: 1036 RVA: 0x0000C634 File Offset: 0x0000B634
// (set) Token: 0x0600040D RID: 1037 RVA: 0x0000C64C File Offset: 0x0000B64C
public bool IsCrossSaveInformation
{
get
{
return this.isCrossSaveInformation;
}
set
{
this.isCrossSaveInformation = value;
}
}
// Token: 0x0600040E RID: 1038 RVA: 0x0000C656 File Offset: 0x0000B656
public GetRangeOfRanksRequest()
: base(ServiceTypes.Ranking, FunctionTypes.RankingGetRangeOfRanks)
{
this.IsCrossSaveInformation = false;
}
// Token: 0x04000328 RID: 808
[MarshalAs(UnmanagedType.U4)]
internal uint boardId;
// Token: 0x04000329 RID: 809
[MarshalAs(UnmanagedType.U4)]
internal uint startRank;
// Token: 0x0400032A RID: 810
[MarshalAs(UnmanagedType.U4)]
internal uint range;
// Token: 0x0400032B RID: 811
[MarshalAs(UnmanagedType.I1)]
internal bool isCrossSaveInformation;
}
// Token: 0x020000CA RID: 202
[StructLayout(LayoutKind.Sequential)]
public class GetFriendsRanksRequest : RequestBase
{
// Token: 0x170001D6 RID: 470
// (get) Token: 0x0600040F RID: 1039 RVA: 0x0000C66C File Offset: 0x0000B66C
// (set) Token: 0x06000410 RID: 1040 RVA: 0x0000C684 File Offset: 0x0000B684
public uint BoardId
{
get
{
return this.boardId;
}
set
{
this.boardId = value;
}
}
// Token: 0x170001D7 RID: 471
// (get) Token: 0x06000411 RID: 1041 RVA: 0x0000C690 File Offset: 0x0000B690
// (set) Token: 0x06000412 RID: 1042 RVA: 0x0000C6A8 File Offset: 0x0000B6A8
public uint StartRank
{
get
{
return this.startRank;
}
set
{
this.startRank = value;
}
}
// Token: 0x170001D8 RID: 472
// (get) Token: 0x06000413 RID: 1043 RVA: 0x0000C6B4 File Offset: 0x0000B6B4
// (set) Token: 0x06000414 RID: 1044 RVA: 0x0000C6CC File Offset: 0x0000B6CC
public uint FriendsWithPcId
{
get
{
return this.friendsWithPcId;
}
set
{
this.friendsWithPcId = value;
}
}
// Token: 0x170001D9 RID: 473
// (get) Token: 0x06000415 RID: 1045 RVA: 0x0000C6D8 File Offset: 0x0000B6D8
// (set) Token: 0x06000416 RID: 1046 RVA: 0x0000C6F0 File Offset: 0x0000B6F0
public bool IsCrossSaveInformation
{
get
{
return this.isCrossSaveInformation;
}
set
{
this.isCrossSaveInformation = value;
}
}
// Token: 0x170001DA RID: 474
// (get) Token: 0x06000417 RID: 1047 RVA: 0x0000C6FC File Offset: 0x0000B6FC
// (set) Token: 0x06000418 RID: 1048 RVA: 0x0000C714 File Offset: 0x0000B714
public bool AddCallingUserRank
{
get
{
return this.addCallingUserRank;
}
set
{
this.addCallingUserRank = value;
}
}
// Token: 0x06000419 RID: 1049 RVA: 0x0000C71E File Offset: 0x0000B71E
public GetFriendsRanksRequest()
: base(ServiceTypes.Ranking, FunctionTypes.RankingGetFriendsRanks)
{
this.IsCrossSaveInformation = false;
this.addCallingUserRank = true;
}
// Token: 0x0400032C RID: 812
[MarshalAs(UnmanagedType.U4)]
internal uint boardId;
// Token: 0x0400032D RID: 813
[MarshalAs(UnmanagedType.U4)]
internal uint startRank;
// Token: 0x0400032E RID: 814
[MarshalAs(UnmanagedType.U4)]
internal uint friendsWithPcId;
// Token: 0x0400032F RID: 815
[MarshalAs(UnmanagedType.I1)]
internal bool isCrossSaveInformation;
// Token: 0x04000330 RID: 816
[MarshalAs(UnmanagedType.I1)]
internal bool addCallingUserRank;
}
// Token: 0x020000CB RID: 203
public struct ScoreAccountIdPcId
{
// Token: 0x04000331 RID: 817
public Core.NpAccountId accountId;
// Token: 0x04000332 RID: 818
public int pcId;
}
// Token: 0x020000CC RID: 204
[StructLayout(LayoutKind.Sequential)]
public class GetUsersRanksRequest : RequestBase
{
// Token: 0x170001DB RID: 475
// (get) Token: 0x0600041A RID: 1050 RVA: 0x0000C73C File Offset: 0x0000B73C
// (set) Token: 0x0600041B RID: 1051 RVA: 0x0000C784 File Offset: 0x0000B784
public Ranking.ScoreAccountIdPcId[] Users
{
get
{
Ranking.ScoreAccountIdPcId[] array;
if (this.numUsers == 0U)
{
array = null;
}
else
{
Ranking.ScoreAccountIdPcId[] array2 = new Ranking.ScoreAccountIdPcId[this.numUsers];
Array.Copy(this.users, array2, (long)((ulong)this.numUsers));
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 101)
{
throw new NpToolkitException("The size of the Users array is more than " + 101);
}
if (!this.IgnorePcIds)
{
for (int i = 0; i < value.Length; i++)
{
if (value[i].pcId < 0 || value[i].pcId > 9)
{
throw new NpToolkitException("The pcId in Users[" + i + "] is outside the range of MIN_PCID/MAX_PCID");
}
}
}
value.CopyTo(this.users, 0);
this.numUsers = (uint)value.Length;
}
else
{
this.numUsers = 0U;
}
}
}
// Token: 0x170001DC RID: 476
// (get) Token: 0x0600041C RID: 1052 RVA: 0x0000C84C File Offset: 0x0000B84C
// (set) Token: 0x0600041D RID: 1053 RVA: 0x0000C864 File Offset: 0x0000B864
public uint BoardId
{
get
{
return this.boardId;
}
set
{
this.boardId = value;
}
}
// Token: 0x170001DD RID: 477
// (get) Token: 0x0600041E RID: 1054 RVA: 0x0000C870 File Offset: 0x0000B870
// (set) Token: 0x0600041F RID: 1055 RVA: 0x0000C888 File Offset: 0x0000B888
public bool IsCrossSaveInformation
{
get
{
return this.isCrossSaveInformation;
}
set
{
this.isCrossSaveInformation = value;
}
}
// Token: 0x170001DE RID: 478
// (get) Token: 0x06000420 RID: 1056 RVA: 0x0000C894 File Offset: 0x0000B894
// (set) Token: 0x06000421 RID: 1057 RVA: 0x0000C8AC File Offset: 0x0000B8AC
public bool IgnorePcIds
{
get
{
return this.ignorePcIds;
}
set
{
this.ignorePcIds = value;
}
}
// Token: 0x06000422 RID: 1058 RVA: 0x0000C8B6 File Offset: 0x0000B8B6
public GetUsersRanksRequest()
: base(ServiceTypes.Ranking, FunctionTypes.RankingGetUsersRanks)
{
this.users = new Ranking.ScoreAccountIdPcId[101];
this.IsCrossSaveInformation = false;
this.ignorePcIds = true;
}
// Token: 0x04000333 RID: 819
public const int MAX_NUM_USERS = 101;
// Token: 0x04000334 RID: 820
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 101)]
internal Ranking.ScoreAccountIdPcId[] users;
// Token: 0x04000335 RID: 821
[MarshalAs(UnmanagedType.U4)]
internal uint numUsers;
// Token: 0x04000336 RID: 822
[MarshalAs(UnmanagedType.U4)]
internal uint boardId;
// Token: 0x04000337 RID: 823
[MarshalAs(UnmanagedType.I1)]
internal bool isCrossSaveInformation;
// Token: 0x04000338 RID: 824
[MarshalAs(UnmanagedType.I1)]
internal bool ignorePcIds;
}
// Token: 0x020000CD RID: 205
[StructLayout(LayoutKind.Sequential)]
public class SetGameDataRequest : RequestBase
{
// Token: 0x170001DF RID: 479
// (get) Token: 0x06000423 RID: 1059 RVA: 0x0000C8E0 File Offset: 0x0000B8E0
// (set) Token: 0x06000424 RID: 1060 RVA: 0x0000C8F8 File Offset: 0x0000B8F8
public uint BoardId
{
get
{
return this.boardId;
}
set
{
this.boardId = value;
}
}
// Token: 0x170001E0 RID: 480
// (get) Token: 0x06000425 RID: 1061 RVA: 0x0000C904 File Offset: 0x0000B904
// (set) Token: 0x06000426 RID: 1062 RVA: 0x0000C91C File Offset: 0x0000B91C
public int IdOfPrevChunk
{
get
{
return this.idOfPrevChunk;
}
set
{
this.idOfPrevChunk = value;
}
}
// Token: 0x170001E1 RID: 481
// (get) Token: 0x06000427 RID: 1063 RVA: 0x0000C928 File Offset: 0x0000B928
// (set) Token: 0x06000428 RID: 1064 RVA: 0x0000C940 File Offset: 0x0000B940
public long Score
{
get
{
return this.score;
}
set
{
this.score = value;
}
}
// Token: 0x170001E2 RID: 482
// (get) Token: 0x06000429 RID: 1065 RVA: 0x0000C94C File Offset: 0x0000B94C
public ulong TotalSize
{
get
{
return this.totalSize;
}
}
// Token: 0x170001E3 RID: 483
// (get) Token: 0x0600042A RID: 1066 RVA: 0x0000C964 File Offset: 0x0000B964
public byte[] Data
{
get
{
return this.data;
}
}
// Token: 0x170001E4 RID: 484
// (get) Token: 0x0600042B RID: 1067 RVA: 0x0000C97C File Offset: 0x0000B97C
public ulong StartIndex
{
get
{
return this.byteOffset;
}
}
// Token: 0x170001E5 RID: 485
// (get) Token: 0x0600042C RID: 1068 RVA: 0x0000C994 File Offset: 0x0000B994
// (set) Token: 0x0600042D RID: 1069 RVA: 0x0000C9AC File Offset: 0x0000B9AC
public int PcId
{
get
{
return this.pcId;
}
set
{
this.pcId = value;
}
}
// Token: 0x0600042E RID: 1070 RVA: 0x0000C9B6 File Offset: 0x0000B9B6
public void SetDataChunk(byte[] data, ulong startIndex, ulong chunkSize)
{
this.SetDataChunk(data, startIndex, chunkSize, 0UL);
}
// Token: 0x0600042F RID: 1071 RVA: 0x0000C9C8 File Offset: 0x0000B9C8
public void SetDataChunk(byte[] data, ulong startIndex, ulong chunkSize, ulong totalSize)
{
if (startIndex + chunkSize > (ulong)((long)data.Length))
{
throw new NpToolkitException("The start Index and chunk size go off the end of the data array.");
}
this.data = data;
this.byteOffset = startIndex;
this.chunkDataSize = chunkSize;
if (totalSize == 0UL)
{
this.totalSize = (ulong)((long)data.Length);
}
else
{
this.totalSize = totalSize;
}
}
// Token: 0x06000430 RID: 1072 RVA: 0x0000CA2C File Offset: 0x0000BA2C
public SetGameDataRequest()
: base(ServiceTypes.Ranking, FunctionTypes.RankingSetGameData)
{
}
// Token: 0x04000339 RID: 825
internal uint boardId;
// Token: 0x0400033A RID: 826
internal int idOfPrevChunk;
// Token: 0x0400033B RID: 827
internal long score;
// Token: 0x0400033C RID: 828
internal ulong totalSize;
// Token: 0x0400033D RID: 829
[MarshalAs(UnmanagedType.LPArray)]
internal byte[] data;
// Token: 0x0400033E RID: 830
internal ulong byteOffset;
// Token: 0x0400033F RID: 831
internal ulong chunkDataSize;
// Token: 0x04000340 RID: 832
internal int pcId;
}
// Token: 0x020000CE RID: 206
[StructLayout(LayoutKind.Sequential)]
public class GetGameDataRequest : RequestBase
{
// Token: 0x170001E6 RID: 486
// (get) Token: 0x06000431 RID: 1073 RVA: 0x0000CA3C File Offset: 0x0000BA3C
// (set) Token: 0x06000432 RID: 1074 RVA: 0x0000CA54 File Offset: 0x0000BA54
public uint BoardId
{
get
{
return this.boardId;
}
set
{
this.boardId = value;
}
}
// Token: 0x170001E7 RID: 487
// (get) Token: 0x06000433 RID: 1075 RVA: 0x0000CA60 File Offset: 0x0000BA60
// (set) Token: 0x06000434 RID: 1076 RVA: 0x0000CA78 File Offset: 0x0000BA78
public int IdOfPrevChunk
{
get
{
return this.idOfPrevChunk;
}
set
{
this.idOfPrevChunk = value;
}
}
// Token: 0x170001E8 RID: 488
// (get) Token: 0x06000435 RID: 1077 RVA: 0x0000CA84 File Offset: 0x0000BA84
// (set) Token: 0x06000436 RID: 1078 RVA: 0x0000CA9C File Offset: 0x0000BA9C
public Core.NpAccountId AccountId
{
get
{
return this.accountId;
}
set
{
this.accountId = value;
}
}
// Token: 0x170001E9 RID: 489
// (get) Token: 0x06000437 RID: 1079 RVA: 0x0000CAA8 File Offset: 0x0000BAA8
public byte[] RcvData
{
get
{
return this.rcvData;
}
}
// Token: 0x170001EA RID: 490
// (get) Token: 0x06000438 RID: 1080 RVA: 0x0000CAC0 File Offset: 0x0000BAC0
// (set) Token: 0x06000439 RID: 1081 RVA: 0x0000CAD8 File Offset: 0x0000BAD8
public int PcId
{
get
{
return this.pcId;
}
set
{
this.pcId = value;
}
}
// Token: 0x0600043A RID: 1082 RVA: 0x0000CAE4 File Offset: 0x0000BAE4
public void SetRcvDataChunk(byte[] data, ulong startIndex, ulong chunkSize)
{
if (startIndex + chunkSize > (ulong)((long)data.Length))
{
throw new NpToolkitException("The start Index and chunk size go off the end of the data array.");
}
this.rcvData = data;
this.byteOffset = startIndex;
this.chunkToRcvDataSize = chunkSize;
}
// Token: 0x0600043B RID: 1083 RVA: 0x0000CB23 File Offset: 0x0000BB23
public GetGameDataRequest()
: base(ServiceTypes.Ranking, FunctionTypes.RankingGetGameData)
{
}
// Token: 0x04000341 RID: 833
internal uint boardId;
// Token: 0x04000342 RID: 834
internal int idOfPrevChunk;
// Token: 0x04000343 RID: 835
internal Core.NpAccountId accountId;
// Token: 0x04000344 RID: 836
internal byte[] rcvData;
// Token: 0x04000345 RID: 837
internal ulong byteOffset;
// Token: 0x04000346 RID: 838
internal ulong chunkToRcvDataSize;
// Token: 0x04000347 RID: 839
internal int pcId;
}
// Token: 0x020000CF RID: 207
public class TempRankResponse : ResponseBase
{
// Token: 0x170001EB RID: 491
// (get) Token: 0x0600043C RID: 1084 RVA: 0x0000CB34 File Offset: 0x0000BB34
public uint TempRank
{
get
{
return this.tempRank;
}
}
// Token: 0x0600043D RID: 1085 RVA: 0x0000CB4C File Offset: 0x0000BB4C
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TempRankBegin);
this.tempRank = memoryBuffer.ReadUInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TempRankEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000348 RID: 840
internal uint tempRank;
}
// Token: 0x020000D0 RID: 208
public class ScoreRankDataBase
{
// Token: 0x170001EC RID: 492
// (get) Token: 0x0600043F RID: 1087 RVA: 0x0000CBB4 File Offset: 0x0000BBB4
public string Comment
{
get
{
return this.utf8Comment;
}
}
// Token: 0x170001ED RID: 493
// (get) Token: 0x06000440 RID: 1088 RVA: 0x0000CBCC File Offset: 0x0000BBCC
public byte[] GameInfo
{
get
{
return this.gameInfo;
}
}
// Token: 0x170001EE RID: 494
// (get) Token: 0x06000441 RID: 1089 RVA: 0x0000CBE4 File Offset: 0x0000BBE4
public int PcId
{
get
{
return this.pcId;
}
}
// Token: 0x170001EF RID: 495
// (get) Token: 0x06000442 RID: 1090 RVA: 0x0000CBFC File Offset: 0x0000BBFC
public uint SerialRank
{
get
{
return this.serialRank;
}
}
// Token: 0x170001F0 RID: 496
// (get) Token: 0x06000443 RID: 1091 RVA: 0x0000CC14 File Offset: 0x0000BC14
public uint Rank
{
get
{
return this.rank;
}
}
// Token: 0x170001F1 RID: 497
// (get) Token: 0x06000444 RID: 1092 RVA: 0x0000CC2C File Offset: 0x0000BC2C
public uint HighestRank
{
get
{
return this.highestRank;
}
}
// Token: 0x170001F2 RID: 498
// (get) Token: 0x06000445 RID: 1093 RVA: 0x0000CC44 File Offset: 0x0000BC44
public bool HasGameData
{
get
{
return this.hasGameData;
}
}
// Token: 0x170001F3 RID: 499
// (get) Token: 0x06000446 RID: 1094 RVA: 0x0000CC5C File Offset: 0x0000BC5C
public long ScoreValue
{
get
{
return this.scoreValue;
}
}
// Token: 0x170001F4 RID: 500
// (get) Token: 0x06000447 RID: 1095 RVA: 0x0000CC74 File Offset: 0x0000BC74
public DateTime RecordDate
{
get
{
return this.recordDate;
}
}
// Token: 0x170001F5 RID: 501
// (get) Token: 0x06000448 RID: 1096 RVA: 0x0000CC8C File Offset: 0x0000BC8C
public Core.NpAccountId AccountId
{
get
{
return this.accountId;
}
}
// Token: 0x06000449 RID: 1097 RVA: 0x0000CCA4 File Offset: 0x0000BCA4
internal void ReadBase(MemoryBuffer buffer)
{
this.pcId = buffer.ReadInt32();
this.serialRank = buffer.ReadUInt32();
this.rank = buffer.ReadUInt32();
this.highestRank = buffer.ReadUInt32();
this.hasGameData = buffer.ReadBool();
this.scoreValue = buffer.ReadInt64();
this.recordDate = Core.ReadRtcTick(buffer);
this.accountId.Read(buffer);
}
// Token: 0x0600044A RID: 1098 RVA: 0x0000CD13 File Offset: 0x0000BD13
internal void ReadAdditionalData(MemoryBuffer buffer)
{
buffer.ReadString(ref this.utf8Comment);
buffer.ReadData(ref this.gameInfo);
}
// Token: 0x04000349 RID: 841
internal string utf8Comment;
// Token: 0x0400034A RID: 842
internal byte[] gameInfo;
// Token: 0x0400034B RID: 843
internal int pcId;
// Token: 0x0400034C RID: 844
internal uint serialRank;
// Token: 0x0400034D RID: 845
internal uint rank;
// Token: 0x0400034E RID: 846
internal uint highestRank;
// Token: 0x0400034F RID: 847
internal bool hasGameData;
// Token: 0x04000350 RID: 848
internal long scoreValue;
// Token: 0x04000351 RID: 849
internal DateTime recordDate;
// Token: 0x04000352 RID: 850
internal Core.NpAccountId accountId;
}
// Token: 0x020000D1 RID: 209
public class ScoreRankData : Ranking.ScoreRankDataBase
{
// Token: 0x170001F6 RID: 502
// (get) Token: 0x0600044C RID: 1100 RVA: 0x0000CD38 File Offset: 0x0000BD38
public Core.OnlineID OnlineId
{
get
{
return this.onlineId;
}
}
// Token: 0x0600044D RID: 1101 RVA: 0x0000CD50 File Offset: 0x0000BD50
internal void ReadData(MemoryBuffer buffer)
{
base.ReadBase(buffer);
this.onlineId = new Core.OnlineID();
this.onlineId.Read(buffer);
}
// Token: 0x04000353 RID: 851
internal Core.OnlineID onlineId;
}
// Token: 0x020000D2 RID: 210
public class ScoreRankDataForCrossSave : Ranking.ScoreRankDataBase
{
// Token: 0x170001F7 RID: 503
// (get) Token: 0x0600044F RID: 1103 RVA: 0x0000CD7C File Offset: 0x0000BD7C
public Core.NpId NpId
{
get
{
return this.npId;
}
}
// Token: 0x06000450 RID: 1104 RVA: 0x0000CD94 File Offset: 0x0000BD94
internal void ReadData(MemoryBuffer buffer)
{
base.ReadBase(buffer);
this.npId.Read(buffer);
}
// Token: 0x04000354 RID: 852
internal Core.NpId npId;
}
// Token: 0x020000D3 RID: 211
public class ScorePlayerRankData : Ranking.ScoreRankData
{
// Token: 0x170001F8 RID: 504
// (get) Token: 0x06000452 RID: 1106 RVA: 0x0000CDB4 File Offset: 0x0000BDB4
public bool HasData
{
get
{
return this.hasData;
}
}
// Token: 0x06000453 RID: 1107 RVA: 0x0000CDCC File Offset: 0x0000BDCC
internal void Read(MemoryBuffer buffer)
{
this.hasData = buffer.ReadBool();
if (this.hasData)
{
base.ReadData(buffer);
}
}
// Token: 0x04000355 RID: 853
internal bool hasData;
}
// Token: 0x020000D4 RID: 212
public class ScorePlayerRankDataForCrossSave : Ranking.ScoreRankDataForCrossSave
{
// Token: 0x170001F9 RID: 505
// (get) Token: 0x06000455 RID: 1109 RVA: 0x0000CE08 File Offset: 0x0000BE08
public bool HasData
{
get
{
return this.hasData;
}
}
// Token: 0x06000456 RID: 1110 RVA: 0x0000CE20 File Offset: 0x0000BE20
internal void Read(MemoryBuffer buffer)
{
this.hasData = buffer.ReadBool();
if (this.hasData)
{
base.ReadData(buffer);
}
}
// Token: 0x04000356 RID: 854
internal bool hasData;
}
// Token: 0x020000D5 RID: 213
public class RangeOfRanksResponse : ResponseBase
{
// Token: 0x170001FA RID: 506
// (get) Token: 0x06000458 RID: 1112 RVA: 0x0000CE5C File Offset: 0x0000BE5C
public Ranking.ScoreRankData[] RankData
{
get
{
if (this.isCrossSaveInformation)
{
throw new NpToolkitException("RankData isn't valid unless 'IsCrossSaveInformation' is set to false.");
}
return this.scoreRankData;
}
}
// Token: 0x170001FB RID: 507
// (get) Token: 0x06000459 RID: 1113 RVA: 0x0000CE90 File Offset: 0x0000BE90
public Ranking.ScoreRankDataForCrossSave[] RankDataForCrossSave
{
get
{
if (!this.isCrossSaveInformation)
{
throw new NpToolkitException("RankDataForCrossSave isn't valid unless 'IsCrossSaveInformation' is set to true.");
}
return this.scoreRankDataForCrossSave;
}
}
// Token: 0x170001FC RID: 508
// (get) Token: 0x0600045A RID: 1114 RVA: 0x0000CEC0 File Offset: 0x0000BEC0
public bool IsCrossSaveInformation
{
get
{
return this.isCrossSaveInformation;
}
}
// Token: 0x170001FD RID: 509
// (get) Token: 0x0600045B RID: 1115 RVA: 0x0000CED8 File Offset: 0x0000BED8
public DateTime UpdateTime
{
get
{
return this.updateTime;
}
}
// Token: 0x170001FE RID: 510
// (get) Token: 0x0600045C RID: 1116 RVA: 0x0000CEF0 File Offset: 0x0000BEF0
public uint TotalEntriesOnBoard
{
get
{
return this.totalEntriesOnBoard;
}
}
// Token: 0x170001FF RID: 511
// (get) Token: 0x0600045D RID: 1117 RVA: 0x0000CF08 File Offset: 0x0000BF08
public uint BoardId
{
get
{
return this.boardId;
}
}
// Token: 0x17000200 RID: 512
// (get) Token: 0x0600045E RID: 1118 RVA: 0x0000CF20 File Offset: 0x0000BF20
public ulong NumValidEntries
{
get
{
return this.numValidEntries;
}
}
// Token: 0x17000201 RID: 513
// (get) Token: 0x0600045F RID: 1119 RVA: 0x0000CF38 File Offset: 0x0000BF38
public int StartRank
{
get
{
return this.startRank;
}
}
// Token: 0x06000460 RID: 1120 RVA: 0x0000CF50 File Offset: 0x0000BF50
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.RangeOfRanksBegin);
this.isCrossSaveInformation = memoryBuffer.ReadBool();
ulong num = memoryBuffer.ReadUInt64();
this.scoreRankData = null;
this.scoreRankDataForCrossSave = null;
if (num > 0UL)
{
if (this.isCrossSaveInformation)
{
this.scoreRankDataForCrossSave = new Ranking.ScoreRankDataForCrossSave[num];
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
{
checked
{
this.scoreRankDataForCrossSave[(int)((IntPtr)num2)] = new Ranking.ScoreRankDataForCrossSave();
this.scoreRankDataForCrossSave[(int)((IntPtr)num2)].ReadData(memoryBuffer);
this.scoreRankDataForCrossSave[(int)((IntPtr)num2)].ReadAdditionalData(memoryBuffer);
}
}
}
else
{
this.scoreRankData = new Ranking.ScoreRankData[num];
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
{
checked
{
this.scoreRankData[(int)((IntPtr)num2)] = new Ranking.ScoreRankData();
this.scoreRankData[(int)((IntPtr)num2)].ReadData(memoryBuffer);
this.scoreRankData[(int)((IntPtr)num2)].ReadAdditionalData(memoryBuffer);
}
}
}
}
this.numValidEntries = memoryBuffer.ReadUInt64();
this.updateTime = Core.ReadRtcTick(memoryBuffer);
this.totalEntriesOnBoard = memoryBuffer.ReadUInt32();
this.boardId = memoryBuffer.ReadUInt32();
this.startRank = memoryBuffer.ReadInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.RangeOfRanksEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000357 RID: 855
internal Ranking.ScoreRankData[] scoreRankData;
// Token: 0x04000358 RID: 856
internal Ranking.ScoreRankDataForCrossSave[] scoreRankDataForCrossSave;
// Token: 0x04000359 RID: 857
internal bool isCrossSaveInformation;
// Token: 0x0400035A RID: 858
internal ulong numValidEntries;
// Token: 0x0400035B RID: 859
internal DateTime updateTime;
// Token: 0x0400035C RID: 860
internal uint totalEntriesOnBoard;
// Token: 0x0400035D RID: 861
internal uint boardId;
// Token: 0x0400035E RID: 862
internal int startRank;
}
// Token: 0x020000D6 RID: 214
public class FriendsRanksResponse : ResponseBase
{
// Token: 0x17000202 RID: 514
// (get) Token: 0x06000462 RID: 1122 RVA: 0x0000D0D4 File Offset: 0x0000C0D4
public Ranking.ScoreRankData[] RankData
{
get
{
if (this.isCrossSaveInformation)
{
throw new NpToolkitException("RankData isn't valid unless 'IsCrossSaveInformation' is set to false.");
}
return this.scoreRankData;
}
}
// Token: 0x17000203 RID: 515
// (get) Token: 0x06000463 RID: 1123 RVA: 0x0000D108 File Offset: 0x0000C108
public Ranking.ScoreRankDataForCrossSave[] RankDataForCrossSave
{
get
{
if (!this.isCrossSaveInformation)
{
throw new NpToolkitException("RankDataForCrossSave isn't valid unless 'IsCrossSaveInformation' is set to true.");
}
return this.scoreRankDataForCrossSave;
}
}
// Token: 0x17000204 RID: 516
// (get) Token: 0x06000464 RID: 1124 RVA: 0x0000D138 File Offset: 0x0000C138
public bool IsCrossSaveInformation
{
get
{
return this.isCrossSaveInformation;
}
}
// Token: 0x17000205 RID: 517
// (get) Token: 0x06000465 RID: 1125 RVA: 0x0000D150 File Offset: 0x0000C150
public ulong NumFriends
{
get
{
return this.numFriends;
}
}
// Token: 0x17000206 RID: 518
// (get) Token: 0x06000466 RID: 1126 RVA: 0x0000D168 File Offset: 0x0000C168
public DateTime UpdateTime
{
get
{
return this.updateTime;
}
}
// Token: 0x17000207 RID: 519
// (get) Token: 0x06000467 RID: 1127 RVA: 0x0000D180 File Offset: 0x0000C180
public uint BoardId
{
get
{
return this.boardId;
}
}
// Token: 0x17000208 RID: 520
// (get) Token: 0x06000468 RID: 1128 RVA: 0x0000D198 File Offset: 0x0000C198
public uint TotalEntriesOnBoard
{
get
{
return this.totalEntriesOnBoard;
}
}
// Token: 0x17000209 RID: 521
// (get) Token: 0x06000469 RID: 1129 RVA: 0x0000D1B0 File Offset: 0x0000C1B0
public uint TotalFriendsOnBoard
{
get
{
return this.totalFriendsOnBoard;
}
}
// Token: 0x1700020A RID: 522
// (get) Token: 0x0600046A RID: 1130 RVA: 0x0000D1C8 File Offset: 0x0000C1C8
public int FriendsWithPcId
{
get
{
return this.friendsWithPcId;
}
}
// Token: 0x0600046B RID: 1131 RVA: 0x0000D1E0 File Offset: 0x0000C1E0
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.FriendsRanksBegin);
this.isCrossSaveInformation = memoryBuffer.ReadBool();
this.numFriends = memoryBuffer.ReadUInt64();
this.scoreRankData = null;
this.scoreRankDataForCrossSave = null;
if (this.isCrossSaveInformation)
{
this.scoreRankDataForCrossSave = new Ranking.ScoreRankDataForCrossSave[this.numFriends];
for (ulong num = 0UL; num < this.numFriends; num += 1UL)
{
checked
{
this.scoreRankDataForCrossSave[(int)((IntPtr)num)] = new Ranking.ScoreRankDataForCrossSave();
this.scoreRankDataForCrossSave[(int)((IntPtr)num)].ReadData(memoryBuffer);
this.scoreRankDataForCrossSave[(int)((IntPtr)num)].ReadAdditionalData(memoryBuffer);
}
}
}
else
{
this.scoreRankData = new Ranking.ScoreRankData[this.numFriends];
for (ulong num = 0UL; num < this.numFriends; num += 1UL)
{
checked
{
this.scoreRankData[(int)((IntPtr)num)] = new Ranking.ScoreRankData();
this.scoreRankData[(int)((IntPtr)num)].ReadData(memoryBuffer);
this.scoreRankData[(int)((IntPtr)num)].ReadAdditionalData(memoryBuffer);
}
}
}
this.updateTime = Core.ReadRtcTick(memoryBuffer);
this.boardId = memoryBuffer.ReadUInt32();
this.totalEntriesOnBoard = memoryBuffer.ReadUInt32();
this.totalFriendsOnBoard = memoryBuffer.ReadUInt32();
this.friendsWithPcId = memoryBuffer.ReadInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.FriendsRanksEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x0400035F RID: 863
internal Ranking.ScoreRankData[] scoreRankData;
// Token: 0x04000360 RID: 864
internal Ranking.ScoreRankDataForCrossSave[] scoreRankDataForCrossSave;
// Token: 0x04000361 RID: 865
internal bool isCrossSaveInformation;
// Token: 0x04000362 RID: 866
internal ulong numFriends;
// Token: 0x04000363 RID: 867
internal DateTime updateTime;
// Token: 0x04000364 RID: 868
internal uint boardId;
// Token: 0x04000365 RID: 869
internal uint totalEntriesOnBoard;
// Token: 0x04000366 RID: 870
internal uint totalFriendsOnBoard;
// Token: 0x04000367 RID: 871
internal int friendsWithPcId;
}
// Token: 0x020000D7 RID: 215
public class UsersRanksResponse : ResponseBase
{
// Token: 0x1700020B RID: 523
// (get) Token: 0x0600046D RID: 1133 RVA: 0x0000D364 File Offset: 0x0000C364
public Ranking.ScorePlayerRankData[] Users
{
get
{
if (this.isCrossSaveInformation)
{
throw new NpToolkitException("RankData isn't valid unless 'IsCrossSaveInformation' is set to false.");
}
return this.users;
}
}
// Token: 0x1700020C RID: 524
// (get) Token: 0x0600046E RID: 1134 RVA: 0x0000D398 File Offset: 0x0000C398
public Ranking.ScorePlayerRankDataForCrossSave[] UsersForCrossSave
{
get
{
if (!this.isCrossSaveInformation)
{
throw new NpToolkitException("RankDataForCrossSave isn't valid unless 'IsCrossSaveInformation' is set to true.");
}
return this.usersForCrossSave;
}
}
// Token: 0x1700020D RID: 525
// (get) Token: 0x0600046F RID: 1135 RVA: 0x0000D3C8 File Offset: 0x0000C3C8
public bool IsCrossSaveInformation
{
get
{
return this.isCrossSaveInformation;
}
}
// Token: 0x1700020E RID: 526
// (get) Token: 0x06000470 RID: 1136 RVA: 0x0000D3E0 File Offset: 0x0000C3E0
public ulong NumUsers
{
get
{
return this.numUsers;
}
}
// Token: 0x1700020F RID: 527
// (get) Token: 0x06000471 RID: 1137 RVA: 0x0000D3F8 File Offset: 0x0000C3F8
public ulong NumValidUsers
{
get
{
return this.numValidUsers;
}
}
// Token: 0x17000210 RID: 528
// (get) Token: 0x06000472 RID: 1138 RVA: 0x0000D410 File Offset: 0x0000C410
public DateTime UpdateTime
{
get
{
return this.updateTime;
}
}
// Token: 0x17000211 RID: 529
// (get) Token: 0x06000473 RID: 1139 RVA: 0x0000D428 File Offset: 0x0000C428
public uint BoardId
{
get
{
return this.boardId;
}
}
// Token: 0x17000212 RID: 530
// (get) Token: 0x06000474 RID: 1140 RVA: 0x0000D440 File Offset: 0x0000C440
public uint TotalEntriesOnBoard
{
get
{
return this.totalEntriesOnBoard;
}
}
// Token: 0x06000475 RID: 1141 RVA: 0x0000D458 File Offset: 0x0000C458
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.UsersRanksBegin);
this.isCrossSaveInformation = memoryBuffer.ReadBool();
this.numUsers = memoryBuffer.ReadUInt64();
this.numValidUsers = memoryBuffer.ReadUInt64();
this.users = null;
this.usersForCrossSave = null;
if (this.isCrossSaveInformation)
{
this.usersForCrossSave = new Ranking.ScorePlayerRankDataForCrossSave[this.numUsers];
for (ulong num = 0UL; num < this.numUsers; num += 1UL)
{
checked
{
this.usersForCrossSave[(int)((IntPtr)num)] = new Ranking.ScorePlayerRankDataForCrossSave();
this.usersForCrossSave[(int)((IntPtr)num)].Read(memoryBuffer);
if (this.usersForCrossSave[(int)((IntPtr)num)].HasData)
{
this.usersForCrossSave[(int)((IntPtr)num)].ReadAdditionalData(memoryBuffer);
}
}
}
}
else
{
this.users = new Ranking.ScorePlayerRankData[this.numUsers];
for (ulong num = 0UL; num < this.numUsers; num += 1UL)
{
checked
{
this.users[(int)((IntPtr)num)] = new Ranking.ScorePlayerRankData();
this.users[(int)((IntPtr)num)].Read(memoryBuffer);
if (this.users[(int)((IntPtr)num)].HasData)
{
this.users[(int)((IntPtr)num)].ReadAdditionalData(memoryBuffer);
}
}
}
}
this.updateTime = Core.ReadRtcTick(memoryBuffer);
this.boardId = memoryBuffer.ReadUInt32();
this.totalEntriesOnBoard = memoryBuffer.ReadUInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.UsersRanksEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000368 RID: 872
internal Ranking.ScorePlayerRankData[] users;
// Token: 0x04000369 RID: 873
internal Ranking.ScorePlayerRankDataForCrossSave[] usersForCrossSave;
// Token: 0x0400036A RID: 874
internal bool isCrossSaveInformation;
// Token: 0x0400036B RID: 875
internal ulong numUsers;
// Token: 0x0400036C RID: 876
internal ulong numValidUsers;
// Token: 0x0400036D RID: 877
internal DateTime updateTime;
// Token: 0x0400036E RID: 878
internal uint boardId;
// Token: 0x0400036F RID: 879
internal uint totalEntriesOnBoard;
}
// Token: 0x020000D8 RID: 216
public class SetGameDataResultResponse : ResponseBase
{
// Token: 0x17000213 RID: 531
// (get) Token: 0x06000477 RID: 1143 RVA: 0x0000D5FC File Offset: 0x0000C5FC
public int ChunkId
{
get
{
return this.chunkId;
}
}
// Token: 0x06000478 RID: 1144 RVA: 0x0000D614 File Offset: 0x0000C614
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SetGameDataBegin);
this.chunkId = memoryBuffer.ReadInt32();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SetGameDataEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000370 RID: 880
internal int chunkId;
}
// Token: 0x020000D9 RID: 217
public class GetGameDataResultResponse : ResponseBase
{
// Token: 0x17000214 RID: 532
// (get) Token: 0x0600047A RID: 1146 RVA: 0x0000D67C File Offset: 0x0000C67C
public ulong TotalSize
{
get
{
return this.totalSize;
}
}
// Token: 0x17000215 RID: 533
// (get) Token: 0x0600047B RID: 1147 RVA: 0x0000D694 File Offset: 0x0000C694
public ulong RcvDataSize
{
get
{
return this.rcvDataSize;
}
}
// Token: 0x17000216 RID: 534
// (get) Token: 0x0600047C RID: 1148 RVA: 0x0000D6AC File Offset: 0x0000C6AC
public ulong RcvDataValidSize
{
get
{
return this.rcvDataValidSize;
}
}
// Token: 0x17000217 RID: 535
// (get) Token: 0x0600047D RID: 1149 RVA: 0x0000D6C4 File Offset: 0x0000C6C4
public ulong StartIndex
{
get
{
return this.startIndex;
}
}
// Token: 0x17000218 RID: 536
// (get) Token: 0x0600047E RID: 1150 RVA: 0x0000D6DC File Offset: 0x0000C6DC
public byte[] RcvData
{
get
{
return this.rcvData;
}
}
// Token: 0x17000219 RID: 537
// (get) Token: 0x0600047F RID: 1151 RVA: 0x0000D6F4 File Offset: 0x0000C6F4
public int ChunkId
{
get
{
return this.chunkId;
}
}
// Token: 0x06000480 RID: 1152 RVA: 0x0000D70C File Offset: 0x0000C70C
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GetGameDataBegin);
this.totalSize = memoryBuffer.ReadUInt64();
this.rcvDataSize = memoryBuffer.ReadUInt64();
this.rcvDataValidSize = memoryBuffer.ReadUInt64();
this.chunkId = memoryBuffer.ReadInt32();
Ranking.GetGameDataRequest getGameDataRequest = request as Ranking.GetGameDataRequest;
this.rcvData = getGameDataRequest.rcvData;
this.startIndex = getGameDataRequest.byteOffset;
memoryBuffer.ReadData(ref this.rcvData, (uint)this.startIndex);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.GetGameDataEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000371 RID: 881
internal ulong totalSize;
// Token: 0x04000372 RID: 882
internal ulong rcvDataSize;
// Token: 0x04000373 RID: 883
internal ulong rcvDataValidSize;
// Token: 0x04000374 RID: 884
internal ulong startIndex;
// Token: 0x04000375 RID: 885
internal int chunkId;
// Token: 0x04000376 RID: 886
internal byte[] rcvData;
}
}
}
+117
View File
@@ -0,0 +1,117 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x02000005 RID: 5
[StructLayout(LayoutKind.Sequential, Pack = 8)]
public class RequestBase
{
// Token: 0x17000003 RID: 3
// (get) Token: 0x0600000A RID: 10 RVA: 0x000021C8 File Offset: 0x000011C8
public ServiceTypes ServiceType
{
get
{
return this.serviceType;
}
}
// Token: 0x17000004 RID: 4
// (get) Token: 0x0600000B RID: 11 RVA: 0x000021E0 File Offset: 0x000011E0
public FunctionTypes FunctionType
{
get
{
return this.functionType;
}
}
// Token: 0x17000005 RID: 5
// (get) Token: 0x0600000C RID: 12 RVA: 0x000021F8 File Offset: 0x000011F8
// (set) Token: 0x0600000D RID: 13 RVA: 0x00002210 File Offset: 0x00001210
public uint ServiceLabel
{
get
{
return this.serviceLabel;
}
set
{
this.serviceLabel = value;
}
}
// Token: 0x17000006 RID: 6
// (get) Token: 0x0600000E RID: 14 RVA: 0x0000221C File Offset: 0x0000121C
// (set) Token: 0x0600000F RID: 15 RVA: 0x00002234 File Offset: 0x00001234
public Core.UserServiceUserId UserId
{
get
{
return this.userId;
}
set
{
this.userId = value;
}
}
// Token: 0x17000007 RID: 7
// (get) Token: 0x06000010 RID: 16 RVA: 0x00002240 File Offset: 0x00001240
// (set) Token: 0x06000011 RID: 17 RVA: 0x00002258 File Offset: 0x00001258
public bool Async
{
get
{
return this.async;
}
set
{
this.async = value;
}
}
// Token: 0x06000012 RID: 18 RVA: 0x00002262 File Offset: 0x00001262
internal RequestBase(ServiceTypes serviceType, FunctionTypes functionType)
{
this.userId.id = -1;
this.serviceType = serviceType;
this.functionType = functionType;
}
// Token: 0x06000013 RID: 19 RVA: 0x0000229C File Offset: 0x0000129C
internal static void FinaliseRequest(RequestBase request, ResponseBase response, int npRequestId)
{
if (!request.async)
{
response.PopulateFromNative((uint)npRequestId, request.functionType, request);
}
else
{
PendingAsyncRequestList.AddRequest((uint)npRequestId, request);
PendingAsyncResponseList.AddResponse((uint)npRequestId, response);
response.UpdateAsyncState((uint)npRequestId, request.functionType);
}
}
// Token: 0x04000005 RID: 5
internal ServiceTypes serviceType;
// Token: 0x04000006 RID: 6
internal FunctionTypes functionType;
// Token: 0x04000007 RID: 7
internal uint serviceLabel;
// Token: 0x04000008 RID: 8
internal Core.UserServiceUserId userId;
// Token: 0x04000009 RID: 9
[MarshalAs(UnmanagedType.I1)]
internal bool async = true;
// Token: 0x0400000A RID: 10
internal uint padding = 1234U;
}
}
+256
View File
@@ -0,0 +1,256 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x02000009 RID: 9
public class ResponseBase
{
// Token: 0x06000020 RID: 32
[DllImport("UnityNpToolkit2")]
private static extern void PrxReadResponseBase(uint nptRequestId, FunctionTypes apiCalled, out int returnCode, out bool locked, out APIResult result);
// Token: 0x06000021 RID: 33
[DllImport("UnityNpToolkit2")]
private static extern void PrxReadResponseBaseLockedState(uint nptRequestId, FunctionTypes apiCalled, out bool locked, out APIResult result);
// Token: 0x06000022 RID: 34
[DllImport("UnityNpToolkit2")]
private static extern void PrxReadResponseCompleted(uint nptRequestId, FunctionTypes apiCalled, out APIResult result);
// Token: 0x06000023 RID: 35
[DllImport("UnityNpToolkit2")]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool PrxReadHasServerError(uint nptRequestId, FunctionTypes apiCalled, out APIResult result);
// Token: 0x06000024 RID: 36
[DllImport("UnityNpToolkit2")]
private static extern void PrxMarshalResponse(uint npRequestId, FunctionTypes apiCalled, out NpMemoryBuffer data, out APIResult result);
// Token: 0x1700000D RID: 13
// (get) Token: 0x06000025 RID: 37 RVA: 0x00002434 File Offset: 0x00001434
public int ReturnCodeValue
{
get
{
return this.returnCode;
}
}
// Token: 0x1700000E RID: 14
// (get) Token: 0x06000026 RID: 38 RVA: 0x0000244C File Offset: 0x0000144C
public Core.ReturnCodes ReturnCode
{
get
{
return (Core.ReturnCodes)this.returnCode;
}
}
// Token: 0x1700000F RID: 15
// (get) Token: 0x06000027 RID: 39 RVA: 0x00002464 File Offset: 0x00001464
public bool Locked
{
get
{
return this.locked;
}
}
// Token: 0x17000010 RID: 16
// (get) Token: 0x06000028 RID: 40 RVA: 0x0000247C File Offset: 0x0000147C
public ServerErrorManaged ServerError
{
get
{
return this.serverError;
}
}
// Token: 0x06000029 RID: 41 RVA: 0x00002494 File Offset: 0x00001494
internal ResponseBase()
{
}
// Token: 0x17000011 RID: 17
// (get) Token: 0x0600002A RID: 42 RVA: 0x000024A0 File Offset: 0x000014A0
public bool IsErrorCode
{
get
{
return this.returnCode >= -2113929216 && this.returnCode <= -2097152001;
}
}
// Token: 0x17000012 RID: 18
// (get) Token: 0x0600002B RID: 43 RVA: 0x000024DC File Offset: 0x000014DC
public bool HasServerError
{
get
{
return this.serverError != null;
}
}
// Token: 0x0600002C RID: 44 RVA: 0x000024FC File Offset: 0x000014FC
internal void PopulateFromNative(uint nptRequestId, FunctionTypes apiCalled, RequestBase request)
{
this.ReadResult(nptRequestId, apiCalled, request);
APIResult apiresult;
ResponseBase.PrxReadResponseCompleted(nptRequestId, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
}
// Token: 0x0600002D RID: 45 RVA: 0x00002534 File Offset: 0x00001534
protected internal virtual void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
bool flag;
APIResult apiresult;
ResponseBase.PrxReadResponseBase(id, apiCalled, out this.returnCode, out flag, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
if (ResponseBase.PrxReadHasServerError(id, apiCalled, out apiresult))
{
this.serverError = new ServerErrorManaged();
this.serverError.ReadResult(id, apiCalled);
}
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
this.locked = flag;
}
// Token: 0x0600002E RID: 46 RVA: 0x000025B0 File Offset: 0x000015B0
internal void UpdateAsyncState(uint nptRequestId, FunctionTypes apiCalled)
{
APIResult apiresult;
ResponseBase.PrxReadResponseBaseLockedState(nptRequestId, apiCalled, out this.locked, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
}
// Token: 0x0600002F RID: 47 RVA: 0x000025E4 File Offset: 0x000015E4
internal MemoryBuffer BeginReadResponseBuffer(uint id, FunctionTypes apiCalled, out APIResult result)
{
NpMemoryBuffer npMemoryBuffer = default(NpMemoryBuffer);
ResponseBase.PrxMarshalResponse(id, apiCalled, out npMemoryBuffer, out result);
if (result.RaiseException)
{
throw new NpToolkitException(result);
}
MemoryBuffer memoryBuffer = new MemoryBuffer(npMemoryBuffer);
memoryBuffer.CheckStartMarker();
return memoryBuffer;
}
// Token: 0x06000030 RID: 48 RVA: 0x00002631 File Offset: 0x00001631
internal void EndReadResponseBuffer(MemoryBuffer readBuffer)
{
readBuffer.CheckEndMarker();
}
// Token: 0x06000031 RID: 49 RVA: 0x0000263C File Offset: 0x0000163C
public string ConvertReturnCodeToString(FunctionTypes apiCalled)
{
string text = "(0x" + this.returnCode.ToString("X8") + ")";
Core.ReturnCodes returnCodes = (Core.ReturnCodes)this.returnCode;
if (apiCalled != FunctionTypes.Invalid)
{
if (apiCalled <= FunctionTypes.NpUtilsDisplaySigninDialog)
{
switch (apiCalled)
{
case FunctionTypes.CommerceDisplayCategoryBrowseDialog:
case FunctionTypes.CommerceDisplayProductBrowseDialog:
case FunctionTypes.CommerceDisplayVoucherCodeInputDialog:
case FunctionTypes.CommerceDisplayCheckoutDialog:
case FunctionTypes.CommerceDisplayJoinPlusDialog:
case FunctionTypes.CommerceDisplayDownloadListDialog:
case FunctionTypes.FriendsDisplayFriendRequestDialog:
case FunctionTypes.FriendsDisplayBlockUserDialog:
break;
case FunctionTypes.CommerceSetPsStoreIconDisplayState:
case FunctionTypes.EventsClientGetEvent:
case FunctionTypes.FriendsGetFriends:
case FunctionTypes.FriendsGetFriendsOfFriends:
case FunctionTypes.FriendsGetBlockedUsers:
goto IL_11C;
default:
if (apiCalled != FunctionTypes.MessagingDisplayReceivedGameDataMessagesDialog && apiCalled != FunctionTypes.NpUtilsDisplaySigninDialog)
{
goto IL_11C;
}
break;
}
}
else if (apiCalled <= FunctionTypes.TrophyUnlock)
{
if (apiCalled != FunctionTypes.SessionDisplayReceivedInvitationsDialog)
{
if (apiCalled != FunctionTypes.TrophyUnlock)
{
goto IL_11C;
}
if (returnCodes == Core.ReturnCodes.DIALOG_RESULT_USER_CANCELED)
{
return text + " (TROPHY_PLATINUM_UNLOCKED) ";
}
goto IL_13F;
}
}
else if (apiCalled != FunctionTypes.TrophyDisplayTrophyListDialog)
{
switch (apiCalled)
{
case FunctionTypes.UserProfileDisplayUserProfileDialog:
case FunctionTypes.UserProfileDisplayGriefReportingDialog:
break;
default:
goto IL_11C;
}
}
if (returnCodes == Core.ReturnCodes.SUCCESS)
{
return text + " (DIALOG_RESULT_OK) ";
}
if (returnCodes == Core.ReturnCodes.DIALOG_RESULT_USER_CANCELED)
{
return text + " (DIALOG_RESULT_USER_CANCELED) ";
}
goto IL_13F;
IL_11C:
if (this.returnCode == 0)
{
return text + " (SUCCESS) ";
}
IL_13F:;
}
if (Enum.IsDefined(typeof(Core.ReturnCodes), returnCodes))
{
text = text + " (" + returnCodes.ToString() + ") ";
}
else
{
text += " (UNKNOWN) ";
}
return text;
}
// Token: 0x04000017 RID: 23
internal int returnCode;
// Token: 0x04000018 RID: 24
internal bool locked;
// Token: 0x04000019 RID: 25
internal ServerErrorManaged serverError;
}
}
+11
View File
@@ -0,0 +1,11 @@
using System;
namespace Sony.NP
{
// Token: 0x0200012B RID: 299
public enum SDKVersions
{
// Token: 0x040004E9 RID: 1257
SDK_4 = 67108864
}
}
+30
View File
@@ -0,0 +1,30 @@
using System;
namespace Sony.NP
{
// Token: 0x0200012C RID: 300
public struct SceSDKVersion
{
// Token: 0x06000636 RID: 1590 RVA: 0x000113F0 File Offset: 0x000103F0
public override string ToString()
{
return string.Concat(new string[]
{
this.Major.ToString("X2"),
".",
this.Minor.ToString("X3"),
".",
this.Patch.ToString("X3")
});
}
// Token: 0x040004EA RID: 1258
public uint Major;
// Token: 0x040004EB RID: 1259
public uint Minor;
// Token: 0x040004EC RID: 1260
public uint Patch;
}
}
+67
View File
@@ -0,0 +1,67 @@
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace Sony.NP
{
// Token: 0x02000137 RID: 311
public class ServerErrorManaged
{
// Token: 0x0600065F RID: 1631
[DllImport("UnityNpToolkit2")]
private static extern void PrxReadServerError(uint responseId, FunctionTypes apiCalled, out long webApiNextAvailableTime, out int httpStatusCode, [MarshalAs(UnmanagedType.LPArray, SizeConst = 512)] [In] [Out] byte[] jsonData, out APIResult result);
// Token: 0x170002E4 RID: 740
// (get) Token: 0x06000660 RID: 1632 RVA: 0x00011F60 File Offset: 0x00010F60
public string JsonData
{
get
{
return Encoding.UTF8.GetString(this.jsonData, 0, this.jsonData.Length);
}
}
// Token: 0x170002E5 RID: 741
// (get) Token: 0x06000661 RID: 1633 RVA: 0x00011F8C File Offset: 0x00010F8C
public long WebApiNextAvailableTime
{
get
{
return this.webApiNextAvailableTime;
}
}
// Token: 0x170002E6 RID: 742
// (get) Token: 0x06000662 RID: 1634 RVA: 0x00011FA4 File Offset: 0x00010FA4
public int HttpStatusCode
{
get
{
return this.httpStatusCode;
}
}
// Token: 0x06000663 RID: 1635 RVA: 0x00011FBC File Offset: 0x00010FBC
internal void ReadResult(uint unqiueId, FunctionTypes apiCalled)
{
APIResult apiresult;
ServerErrorManaged.PrxReadServerError(unqiueId, apiCalled, out this.webApiNextAvailableTime, out this.httpStatusCode, this.jsonData, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
}
// Token: 0x04000629 RID: 1577
private const int JSON_DATA_MAX_LEN = 512;
// Token: 0x0400062A RID: 1578
internal byte[] jsonData = new byte[512];
// Token: 0x0400062B RID: 1579
internal long webApiNextAvailableTime = 0L;
// Token: 0x0400062C RID: 1580
internal int httpStatusCode = 0;
}
}
+135
View File
@@ -0,0 +1,135 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x02000126 RID: 294
[Obsolete("ServerPushNotifications is deprecated, please use PushNotificationsFlags instead.")]
public struct ServerPushNotifications
{
// Token: 0x170002CD RID: 717
// (get) Token: 0x06000614 RID: 1556 RVA: 0x00010FD8 File Offset: 0x0000FFD8
// (set) Token: 0x06000615 RID: 1557 RVA: 0x00010FF0 File Offset: 0x0000FFF0
public bool NewGameDataMessage
{
get
{
return this.newGameDataMessage;
}
set
{
this.newGameDataMessage = value;
}
}
// Token: 0x170002CE RID: 718
// (get) Token: 0x06000616 RID: 1558 RVA: 0x00010FFC File Offset: 0x0000FFFC
// (set) Token: 0x06000617 RID: 1559 RVA: 0x00011014 File Offset: 0x00010014
public bool NewInvitation
{
get
{
return this.newInvitation;
}
set
{
this.newInvitation = value;
}
}
// Token: 0x170002CF RID: 719
// (get) Token: 0x06000618 RID: 1560 RVA: 0x00011020 File Offset: 0x00010020
// (set) Token: 0x06000619 RID: 1561 RVA: 0x00011038 File Offset: 0x00010038
public bool UpdateBlockedUsersList
{
get
{
return this.updateBlockedUsersList;
}
set
{
this.updateBlockedUsersList = value;
}
}
// Token: 0x170002D0 RID: 720
// (get) Token: 0x0600061A RID: 1562 RVA: 0x00011044 File Offset: 0x00010044
// (set) Token: 0x0600061B RID: 1563 RVA: 0x0001105C File Offset: 0x0001005C
public bool UpdateFriendPresence
{
get
{
return this.updateFriendPresence;
}
set
{
this.updateFriendPresence = value;
}
}
// Token: 0x170002D1 RID: 721
// (get) Token: 0x0600061C RID: 1564 RVA: 0x00011068 File Offset: 0x00010068
// (set) Token: 0x0600061D RID: 1565 RVA: 0x00011080 File Offset: 0x00010080
public bool UpdateFriendsList
{
get
{
return this.updateFriendsList;
}
set
{
this.updateFriendsList = value;
}
}
// Token: 0x170002D2 RID: 722
// (get) Token: 0x0600061E RID: 1566 RVA: 0x0001108C File Offset: 0x0001008C
// (set) Token: 0x0600061F RID: 1567 RVA: 0x000110A4 File Offset: 0x000100A4
public bool NewInGameMessage
{
get
{
return this.newInGameMessage;
}
set
{
this.newInGameMessage = value;
}
}
// Token: 0x06000620 RID: 1568 RVA: 0x000110AE File Offset: 0x000100AE
public void Init()
{
this.newGameDataMessage = true;
this.newInvitation = true;
this.updateBlockedUsersList = true;
this.updateFriendPresence = true;
this.updateFriendsList = true;
this.newInGameMessage = true;
}
// Token: 0x040004BD RID: 1213
[MarshalAs(UnmanagedType.I1)]
internal bool newGameDataMessage;
// Token: 0x040004BE RID: 1214
[MarshalAs(UnmanagedType.I1)]
internal bool newInvitation;
// Token: 0x040004BF RID: 1215
[MarshalAs(UnmanagedType.I1)]
internal bool updateBlockedUsersList;
// Token: 0x040004C0 RID: 1216
[MarshalAs(UnmanagedType.I1)]
internal bool updateFriendPresence;
// Token: 0x040004C1 RID: 1217
[MarshalAs(UnmanagedType.I1)]
internal bool updateFriendsList;
// Token: 0x040004C2 RID: 1218
[MarshalAs(UnmanagedType.I1)]
internal bool newInGameMessage;
}
}
+57
View File
@@ -0,0 +1,57 @@
using System;
namespace Sony.NP
{
// Token: 0x02000133 RID: 307
public enum ServiceTypes
{
// Token: 0x0400058E RID: 1422
Invalid,
// Token: 0x0400058F RID: 1423
Auth,
// Token: 0x04000590 RID: 1424
Presence,
// Token: 0x04000591 RID: 1425
Ranking,
// Token: 0x04000592 RID: 1426
Trophy,
// Token: 0x04000593 RID: 1427
NetworkUtils,
// Token: 0x04000594 RID: 1428
NpUtils,
// Token: 0x04000595 RID: 1429
WordFilter,
// Token: 0x04000596 RID: 1430
UserProfile,
// Token: 0x04000597 RID: 1431
EventsClient,
// Token: 0x04000598 RID: 1432
Messaging,
// Token: 0x04000599 RID: 1433
Matching,
// Token: 0x0400059A RID: 1434
Commerce,
// Token: 0x0400059B RID: 1435
Challenge,
// Token: 0x0400059C RID: 1436
Tus,
// Token: 0x0400059D RID: 1437
Tss,
// Token: 0x0400059E RID: 1438
Friends,
// Token: 0x0400059F RID: 1439
Session,
// Token: 0x040005A0 RID: 1440
ActivityFeed,
// Token: 0x040005A1 RID: 1441
SocialMedia,
// Token: 0x040005A2 RID: 1442
SharedMedia,
// Token: 0x040005A3 RID: 1443
Core,
// Token: 0x040005A4 RID: 1444
Notification,
// Token: 0x040005A5 RID: 1445
Size
}
}
+105
View File
@@ -0,0 +1,105 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{99604A24-13D0-4C83-A3AA-9A315339FA54}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Sony.NP</RootNamespace>
<AssemblyName>SonyNP</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>4096</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
</PropertyGroup>
<ItemGroup />
<ItemGroup>
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
<Compile Include="Affinity.cs" />
<Compile Include="AgeRestriction.cs" />
<Compile Include="APIResult.cs" />
<Compile Include="APIResultTypes.cs" />
<Compile Include="Auth.cs" />
<Compile Include="Commerce.cs" />
<Compile Include="ContentRestriction.cs" />
<Compile Include="Core.cs" />
<Compile Include="Friends.cs" />
<Compile Include="FunctionTypes.cs" />
<Compile Include="Icon.cs" />
<Compile Include="InitResult.cs" />
<Compile Include="InitToolkit.cs" />
<Compile Include="Main.cs" />
<Compile Include="Matching.cs" />
<Compile Include="MemoryBuffer.cs" />
<Compile Include="MemoryPools.cs" />
<Compile Include="Messaging.cs" />
<Compile Include="NativeInitResult.cs" />
<Compile Include="NetworkUtils.cs" />
<Compile Include="Notifications.cs" />
<Compile Include="NpCallbackEvent.cs" />
<Compile Include="NpMemoryBuffer.cs" />
<Compile Include="NpRequestsThread.cs" />
<Compile Include="NpToolkitException.cs" />
<Compile Include="NpUtils.cs" />
<Compile Include="PendingAsyncRequestList.cs" />
<Compile Include="PendingAsyncResponseList.cs" />
<Compile Include="PendingCallbackQueue.cs" />
<Compile Include="PendingRequest.cs" />
<Compile Include="PopulateThread.cs" />
<Compile Include="Presence.cs" />
<Compile Include="Profiles.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="PushNotificationsFlags.cs" />
<Compile Include="Ranking.cs" />
<Compile Include="RequestBase.cs" />
<Compile Include="ResponseBase.cs" />
<Compile Include="SceSDKVersion.cs" />
<Compile Include="SDKVersions.cs" />
<Compile Include="ServerErrorManaged.cs" />
<Compile Include="ServerPushNotifications.cs" />
<Compile Include="ServiceTypes.cs" />
<Compile Include="ThreadSettings.cs" />
<Compile Include="Trophies.cs" />
<Compile Include="Tss.cs" />
<Compile Include="Tus.cs" />
<Compile Include="UserProfiles.cs" />
<Compile Include="WordFilter.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\mscorlib\mscorlib.csproj">
<Project>{99604a24-13d0-4c83-a3aa-9a315339fa4c}</Project>
<Name>mscorlib</Name>
</ProjectReference>
<ProjectReference Include="..\System\System.csproj">
<Project>{99604a24-13d0-4c83-a3aa-9a315339fa56}</Project>
<Name>System</Name>
</ProjectReference>
<ProjectReference Include="..\UnityEngine\UnityEngine.csproj">
<Project>{99604a24-13d0-4c83-a3aa-9a315339fa58}</Project>
<Name>UnityEngine</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
+17
View File
@@ -0,0 +1,17 @@
using System;
namespace Sony.NP
{
// Token: 0x02000129 RID: 297
public struct ThreadSettings
{
// Token: 0x06000621 RID: 1569 RVA: 0x000110DB File Offset: 0x000100DB
public void Init()
{
this.affinity = Affinity.AllCores;
}
// Token: 0x040004D1 RID: 1233
public Affinity affinity;
}
}
+1282
View File
@@ -0,0 +1,1282 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x020000DA RID: 218
public class Trophies
{
// Token: 0x06000482 RID: 1154
[DllImport("UnityNpToolkit2")]
private static extern int PrxRegisterTrophyPack(Trophies.RegisterTrophyPackRequest request, out APIResult result);
// Token: 0x06000483 RID: 1155
[DllImport("UnityNpToolkit2")]
private static extern int PrxUnlockTrophy(Trophies.UnlockTrophyRequest request, out APIResult result);
// Token: 0x06000484 RID: 1156
[DllImport("UnityNpToolkit2")]
private static extern int PrxSetScreenshot(Trophies.SetScreenshotRequest request, out APIResult result);
// Token: 0x06000485 RID: 1157
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetUnlockedTrophies(Trophies.GetUnlockedTrophiesRequest request, out APIResult result);
// Token: 0x06000486 RID: 1158
[DllImport("UnityNpToolkit2")]
private static extern int PrxDisplayTrophyListDialog(Trophies.DisplayTrophyListDialogRequest request, out APIResult result);
// Token: 0x06000487 RID: 1159
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetTrophyPackSummary(Trophies.GetTrophyPackSummaryRequest request, out APIResult result);
// Token: 0x06000488 RID: 1160
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetTrophyPackGroup(Trophies.GetTrophyPackGroupRequest request, out APIResult result);
// Token: 0x06000489 RID: 1161
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetTrophyPackTrophy(Trophies.GetTrophyPackTrophyRequest request, out APIResult result);
// Token: 0x0600048A RID: 1162 RVA: 0x0000D7CC File Offset: 0x0000C7CC
public static int RegisterTrophyPack(Trophies.RegisterTrophyPackRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Trophies.PrxRegisterTrophyPack(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600048B RID: 1163 RVA: 0x0000D820 File Offset: 0x0000C820
public static int SetScreenshot(Trophies.SetScreenshotRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Trophies.PrxSetScreenshot(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600048C RID: 1164 RVA: 0x0000D874 File Offset: 0x0000C874
public static int UnlockTrophy(Trophies.UnlockTrophyRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
if (request.trophyId < 0)
{
throw new NpToolkitException("Invalid trophy id has been used.");
}
APIResult apiresult;
int num = Trophies.PrxUnlockTrophy(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600048D RID: 1165 RVA: 0x0000D8E4 File Offset: 0x0000C8E4
public static int GetUnlockedTrophies(Trophies.GetUnlockedTrophiesRequest request, Trophies.UnlockedTrophiesResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Trophies.PrxGetUnlockedTrophies(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600048E RID: 1166 RVA: 0x0000D938 File Offset: 0x0000C938
public static int DisplayTrophyListDialog(Trophies.DisplayTrophyListDialogRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Trophies.PrxDisplayTrophyListDialog(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600048F RID: 1167 RVA: 0x0000D98C File Offset: 0x0000C98C
public static int GetTrophyPackSummary(Trophies.GetTrophyPackSummaryRequest request, Trophies.TrophyPackSummaryResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Trophies.PrxGetTrophyPackSummary(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000490 RID: 1168 RVA: 0x0000D9E0 File Offset: 0x0000C9E0
public static int GetTrophyPackGroup(Trophies.GetTrophyPackGroupRequest request, Trophies.TrophyPackGroupResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Trophies.PrxGetTrophyPackGroup(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000491 RID: 1169 RVA: 0x0000DA34 File Offset: 0x0000CA34
public static int GetTrophyPackTrophy(Trophies.GetTrophyPackTrophyRequest request, Trophies.TrophyPackTrophyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Trophies.PrxGetTrophyPackTrophy(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x020000DB RID: 219
[StructLayout(LayoutKind.Sequential)]
public class RegisterTrophyPackRequest : RequestBase
{
// Token: 0x06000493 RID: 1171 RVA: 0x0000DA8F File Offset: 0x0000CA8F
public RegisterTrophyPackRequest()
: base(ServiceTypes.Trophy, FunctionTypes.TrophyRegisterTrophyPack)
{
}
}
// Token: 0x020000DC RID: 220
[StructLayout(LayoutKind.Sequential)]
public class UnlockTrophyRequest : RequestBase
{
// Token: 0x1700021A RID: 538
// (get) Token: 0x06000494 RID: 1172 RVA: 0x0000DAA0 File Offset: 0x0000CAA0
// (set) Token: 0x06000495 RID: 1173 RVA: 0x0000DAB8 File Offset: 0x0000CAB8
public int TrophyId
{
get
{
return this.trophyId;
}
set
{
this.trophyId = value;
}
}
// Token: 0x06000496 RID: 1174 RVA: 0x0000DAC2 File Offset: 0x0000CAC2
public UnlockTrophyRequest()
: base(ServiceTypes.Trophy, FunctionTypes.TrophyUnlock)
{
this.trophyId = -1;
}
// Token: 0x04000377 RID: 887
internal int trophyId;
}
// Token: 0x020000DD RID: 221
[StructLayout(LayoutKind.Sequential)]
public class SetScreenshotRequest : RequestBase
{
// Token: 0x1700021B RID: 539
// (get) Token: 0x06000497 RID: 1175 RVA: 0x0000DAD8 File Offset: 0x0000CAD8
// (set) Token: 0x06000498 RID: 1176 RVA: 0x0000DB20 File Offset: 0x0000CB20
public int[] TrophiesIds
{
get
{
int[] array;
if (this.numTrophiesIds == 0U)
{
array = null;
}
else
{
int[] array2 = new int[this.numTrophiesIds];
Array.Copy(this.trophiesIds, array2, (long)((ulong)this.numTrophiesIds));
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 4)
{
throw new NpToolkitException("The size of the TrophyIds array is more than " + 4);
}
value.CopyTo(this.trophiesIds, 0);
this.numTrophiesIds = (uint)value.Length;
}
else
{
this.numTrophiesIds = 0U;
}
}
}
// Token: 0x1700021C RID: 540
// (get) Token: 0x06000499 RID: 1177 RVA: 0x0000DB80 File Offset: 0x0000CB80
// (set) Token: 0x0600049A RID: 1178 RVA: 0x0000DB98 File Offset: 0x0000CB98
public bool AssignToAllUsers
{
get
{
return this.assignToAllUsers;
}
set
{
this.assignToAllUsers = value;
}
}
// Token: 0x0600049B RID: 1179 RVA: 0x0000DBA2 File Offset: 0x0000CBA2
public SetScreenshotRequest()
: base(ServiceTypes.Trophy, FunctionTypes.TrophySetScreenshot)
{
this.trophiesIds = new int[4];
this.numTrophiesIds = 0U;
this.assignToAllUsers = true;
}
// Token: 0x04000378 RID: 888
public const int INVALID_TROPHY_ID = -1;
// Token: 0x04000379 RID: 889
public const int MAX_NUMBER_TROPHIES = 4;
// Token: 0x0400037A RID: 890
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
internal int[] trophiesIds;
// Token: 0x0400037B RID: 891
internal uint numTrophiesIds;
// Token: 0x0400037C RID: 892
[MarshalAs(UnmanagedType.I1)]
internal bool assignToAllUsers;
}
// Token: 0x020000DE RID: 222
[StructLayout(LayoutKind.Sequential)]
public class GetUnlockedTrophiesRequest : RequestBase
{
// Token: 0x0600049C RID: 1180 RVA: 0x0000DBCA File Offset: 0x0000CBCA
public GetUnlockedTrophiesRequest()
: base(ServiceTypes.Trophy, FunctionTypes.TrophyGetUnlockedTrophies)
{
}
}
// Token: 0x020000DF RID: 223
[StructLayout(LayoutKind.Sequential)]
public class DisplayTrophyListDialogRequest : RequestBase
{
// Token: 0x0600049D RID: 1181 RVA: 0x0000DBD8 File Offset: 0x0000CBD8
public DisplayTrophyListDialogRequest()
: base(ServiceTypes.Trophy, FunctionTypes.TrophyDisplayTrophyListDialog)
{
}
}
// Token: 0x020000E0 RID: 224
[StructLayout(LayoutKind.Sequential)]
public class GetTrophyPackSummaryRequest : RequestBase
{
// Token: 0x1700021D RID: 541
// (get) Token: 0x0600049E RID: 1182 RVA: 0x0000DBE8 File Offset: 0x0000CBE8
// (set) Token: 0x0600049F RID: 1183 RVA: 0x0000DC00 File Offset: 0x0000CC00
public bool RetrieveTrophyPackSummaryIcon
{
get
{
return this.retrieveTrophyPackSummaryIcon;
}
set
{
this.retrieveTrophyPackSummaryIcon = value;
}
}
// Token: 0x060004A0 RID: 1184 RVA: 0x0000DC0A File Offset: 0x0000CC0A
public GetTrophyPackSummaryRequest()
: base(ServiceTypes.Trophy, FunctionTypes.TrophyGetTrophyPackSummary)
{
this.retrieveTrophyPackSummaryIcon = false;
}
// Token: 0x0400037D RID: 893
[MarshalAs(UnmanagedType.I1)]
internal bool retrieveTrophyPackSummaryIcon;
}
// Token: 0x020000E1 RID: 225
[StructLayout(LayoutKind.Sequential)]
public class GetTrophyPackGroupRequest : RequestBase
{
// Token: 0x1700021E RID: 542
// (get) Token: 0x060004A1 RID: 1185 RVA: 0x0000DC20 File Offset: 0x0000CC20
// (set) Token: 0x060004A2 RID: 1186 RVA: 0x0000DC38 File Offset: 0x0000CC38
public int GroupId
{
get
{
return this.groupId;
}
set
{
this.groupId = value;
}
}
// Token: 0x1700021F RID: 543
// (get) Token: 0x060004A3 RID: 1187 RVA: 0x0000DC44 File Offset: 0x0000CC44
// (set) Token: 0x060004A4 RID: 1188 RVA: 0x0000DC5C File Offset: 0x0000CC5C
public bool RetrieveTrophyPackGroupIcon
{
get
{
return this.retrieveTrophyPackGroupIcon;
}
set
{
this.retrieveTrophyPackGroupIcon = value;
}
}
// Token: 0x060004A5 RID: 1189 RVA: 0x0000DC66 File Offset: 0x0000CC66
public GetTrophyPackGroupRequest()
: base(ServiceTypes.Trophy, FunctionTypes.TrophyGetTrophyPackGroup)
{
this.groupId = -1;
this.retrieveTrophyPackGroupIcon = false;
}
// Token: 0x0400037E RID: 894
internal int groupId;
// Token: 0x0400037F RID: 895
[MarshalAs(UnmanagedType.I1)]
internal bool retrieveTrophyPackGroupIcon;
}
// Token: 0x020000E2 RID: 226
[StructLayout(LayoutKind.Sequential)]
public class GetTrophyPackTrophyRequest : RequestBase
{
// Token: 0x17000220 RID: 544
// (get) Token: 0x060004A6 RID: 1190 RVA: 0x0000DC84 File Offset: 0x0000CC84
// (set) Token: 0x060004A7 RID: 1191 RVA: 0x0000DC9C File Offset: 0x0000CC9C
public int TrophyId
{
get
{
return this.trophyId;
}
set
{
this.trophyId = value;
}
}
// Token: 0x17000221 RID: 545
// (get) Token: 0x060004A8 RID: 1192 RVA: 0x0000DCA8 File Offset: 0x0000CCA8
// (set) Token: 0x060004A9 RID: 1193 RVA: 0x0000DCC0 File Offset: 0x0000CCC0
public bool RetrieveTrophyPackTrophyIcon
{
get
{
return this.retrieveTrophyPackTrophyIcon;
}
set
{
this.retrieveTrophyPackTrophyIcon = value;
}
}
// Token: 0x060004AA RID: 1194 RVA: 0x0000DCCA File Offset: 0x0000CCCA
public GetTrophyPackTrophyRequest()
: base(ServiceTypes.Trophy, FunctionTypes.TrophyGetTrophyPackTrophy)
{
this.trophyId = -1;
this.retrieveTrophyPackTrophyIcon = false;
}
// Token: 0x04000380 RID: 896
internal int trophyId;
// Token: 0x04000381 RID: 897
internal bool retrieveTrophyPackTrophyIcon;
}
// Token: 0x020000E3 RID: 227
public class UnlockedTrophiesResponse : ResponseBase
{
// Token: 0x17000222 RID: 546
// (get) Token: 0x060004AB RID: 1195 RVA: 0x0000DCE8 File Offset: 0x0000CCE8
public int[] TrophyIds
{
get
{
return this.trophyIds;
}
}
// Token: 0x060004AC RID: 1196 RVA: 0x0000DD00 File Offset: 0x0000CD00
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.UnlockedTrophiesBegin);
uint num = memoryBuffer.ReadUInt32();
this.trophyIds = new int[num];
int num2 = 0;
while ((long)num2 < (long)((ulong)num))
{
this.trophyIds[num2] = memoryBuffer.ReadInt32();
num2++;
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.UnlockedTrophiesEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000382 RID: 898
internal int[] trophyIds;
}
// Token: 0x020000E4 RID: 228
public struct NpTrophyGameDetails
{
// Token: 0x17000223 RID: 547
// (get) Token: 0x060004AE RID: 1198 RVA: 0x0000DD94 File Offset: 0x0000CD94
public uint NumGroups
{
get
{
return this.numGroups;
}
}
// Token: 0x17000224 RID: 548
// (get) Token: 0x060004AF RID: 1199 RVA: 0x0000DDAC File Offset: 0x0000CDAC
public uint NumTrophies
{
get
{
return this.numTrophies;
}
}
// Token: 0x17000225 RID: 549
// (get) Token: 0x060004B0 RID: 1200 RVA: 0x0000DDC4 File Offset: 0x0000CDC4
public uint NumPlatinum
{
get
{
return this.numPlatinum;
}
}
// Token: 0x17000226 RID: 550
// (get) Token: 0x060004B1 RID: 1201 RVA: 0x0000DDDC File Offset: 0x0000CDDC
public uint NumGold
{
get
{
return this.numGold;
}
}
// Token: 0x17000227 RID: 551
// (get) Token: 0x060004B2 RID: 1202 RVA: 0x0000DDF4 File Offset: 0x0000CDF4
public uint NumSilver
{
get
{
return this.numSilver;
}
}
// Token: 0x17000228 RID: 552
// (get) Token: 0x060004B3 RID: 1203 RVA: 0x0000DE0C File Offset: 0x0000CE0C
public uint NumBronze
{
get
{
return this.numBronze;
}
}
// Token: 0x17000229 RID: 553
// (get) Token: 0x060004B4 RID: 1204 RVA: 0x0000DE24 File Offset: 0x0000CE24
public string Title
{
get
{
return this.title;
}
}
// Token: 0x1700022A RID: 554
// (get) Token: 0x060004B5 RID: 1205 RVA: 0x0000DE3C File Offset: 0x0000CE3C
public string Description
{
get
{
return this.description;
}
}
// Token: 0x060004B6 RID: 1206 RVA: 0x0000DE54 File Offset: 0x0000CE54
internal void Read(MemoryBuffer buffer)
{
this.numGroups = buffer.ReadUInt32();
this.numTrophies = buffer.ReadUInt32();
this.numPlatinum = buffer.ReadUInt32();
this.numGold = buffer.ReadUInt32();
this.numSilver = buffer.ReadUInt32();
this.numBronze = buffer.ReadUInt32();
buffer.ReadString(ref this.title);
buffer.ReadString(ref this.description);
}
// Token: 0x04000383 RID: 899
internal uint numGroups;
// Token: 0x04000384 RID: 900
internal uint numTrophies;
// Token: 0x04000385 RID: 901
internal uint numPlatinum;
// Token: 0x04000386 RID: 902
internal uint numGold;
// Token: 0x04000387 RID: 903
internal uint numSilver;
// Token: 0x04000388 RID: 904
internal uint numBronze;
// Token: 0x04000389 RID: 905
internal string title;
// Token: 0x0400038A RID: 906
internal string description;
}
// Token: 0x020000E5 RID: 229
public struct NpTrophyGameData
{
// Token: 0x1700022B RID: 555
// (get) Token: 0x060004B7 RID: 1207 RVA: 0x0000DEC4 File Offset: 0x0000CEC4
public uint UnlockedTrophies
{
get
{
return this.unlockedTrophies;
}
}
// Token: 0x1700022C RID: 556
// (get) Token: 0x060004B8 RID: 1208 RVA: 0x0000DEDC File Offset: 0x0000CEDC
public uint UnlockedPlatinum
{
get
{
return this.unlockedPlatinum;
}
}
// Token: 0x1700022D RID: 557
// (get) Token: 0x060004B9 RID: 1209 RVA: 0x0000DEF4 File Offset: 0x0000CEF4
public uint UnlockedGold
{
get
{
return this.unlockedGold;
}
}
// Token: 0x1700022E RID: 558
// (get) Token: 0x060004BA RID: 1210 RVA: 0x0000DF0C File Offset: 0x0000CF0C
public uint UnlockedSilver
{
get
{
return this.unlockedSilver;
}
}
// Token: 0x1700022F RID: 559
// (get) Token: 0x060004BB RID: 1211 RVA: 0x0000DF24 File Offset: 0x0000CF24
public uint UnlockedBronze
{
get
{
return this.unlockedBronze;
}
}
// Token: 0x17000230 RID: 560
// (get) Token: 0x060004BC RID: 1212 RVA: 0x0000DF3C File Offset: 0x0000CF3C
public uint ProgressPercentage
{
get
{
return this.progressPercentage;
}
}
// Token: 0x060004BD RID: 1213 RVA: 0x0000DF54 File Offset: 0x0000CF54
internal void Read(MemoryBuffer buffer)
{
this.unlockedTrophies = buffer.ReadUInt32();
this.unlockedPlatinum = buffer.ReadUInt32();
this.unlockedGold = buffer.ReadUInt32();
this.unlockedSilver = buffer.ReadUInt32();
this.unlockedBronze = buffer.ReadUInt32();
this.progressPercentage = buffer.ReadUInt32();
}
// Token: 0x0400038B RID: 907
internal uint unlockedTrophies;
// Token: 0x0400038C RID: 908
internal uint unlockedPlatinum;
// Token: 0x0400038D RID: 909
internal uint unlockedGold;
// Token: 0x0400038E RID: 910
internal uint unlockedSilver;
// Token: 0x0400038F RID: 911
internal uint unlockedBronze;
// Token: 0x04000390 RID: 912
internal uint progressPercentage;
}
// Token: 0x020000E6 RID: 230
public class TrophyPackSummaryResponse : ResponseBase
{
// Token: 0x17000231 RID: 561
// (get) Token: 0x060004BE RID: 1214 RVA: 0x0000DFAC File Offset: 0x0000CFAC
public Icon Icon
{
get
{
return this.icon;
}
}
// Token: 0x17000232 RID: 562
// (get) Token: 0x060004BF RID: 1215 RVA: 0x0000DFC4 File Offset: 0x0000CFC4
public Trophies.NpTrophyGameDetails StaticConfiguration
{
get
{
return this.staticConfiguration;
}
}
// Token: 0x17000233 RID: 563
// (get) Token: 0x060004C0 RID: 1216 RVA: 0x0000DFDC File Offset: 0x0000CFDC
public Trophies.NpTrophyGameData UserProgress
{
get
{
return this.userProgress;
}
}
// Token: 0x060004C1 RID: 1217 RVA: 0x0000DFF4 File Offset: 0x0000CFF4
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TrophyPackSummaryBegin);
this.icon = Icon.ReadAndCreate(memoryBuffer);
this.staticConfiguration.Read(memoryBuffer);
this.userProgress.Read(memoryBuffer);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TrophyPackSummaryEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000391 RID: 913
internal Icon icon = null;
// Token: 0x04000392 RID: 914
internal Trophies.NpTrophyGameDetails staticConfiguration;
// Token: 0x04000393 RID: 915
internal Trophies.NpTrophyGameData userProgress;
}
// Token: 0x020000E7 RID: 231
public struct NpTrophyGroupDetails
{
// Token: 0x17000234 RID: 564
// (get) Token: 0x060004C3 RID: 1219 RVA: 0x0000E07C File Offset: 0x0000D07C
public int GroupId
{
get
{
return this.groupId;
}
}
// Token: 0x17000235 RID: 565
// (get) Token: 0x060004C4 RID: 1220 RVA: 0x0000E094 File Offset: 0x0000D094
public uint NumTrophies
{
get
{
return this.numTrophies;
}
}
// Token: 0x17000236 RID: 566
// (get) Token: 0x060004C5 RID: 1221 RVA: 0x0000E0AC File Offset: 0x0000D0AC
public uint NumPlatinum
{
get
{
return this.numPlatinum;
}
}
// Token: 0x17000237 RID: 567
// (get) Token: 0x060004C6 RID: 1222 RVA: 0x0000E0C4 File Offset: 0x0000D0C4
public uint NumGold
{
get
{
return this.numGold;
}
}
// Token: 0x17000238 RID: 568
// (get) Token: 0x060004C7 RID: 1223 RVA: 0x0000E0DC File Offset: 0x0000D0DC
public uint NumSilver
{
get
{
return this.numSilver;
}
}
// Token: 0x17000239 RID: 569
// (get) Token: 0x060004C8 RID: 1224 RVA: 0x0000E0F4 File Offset: 0x0000D0F4
public uint NumBronze
{
get
{
return this.numBronze;
}
}
// Token: 0x1700023A RID: 570
// (get) Token: 0x060004C9 RID: 1225 RVA: 0x0000E10C File Offset: 0x0000D10C
public string Title
{
get
{
return this.title;
}
}
// Token: 0x1700023B RID: 571
// (get) Token: 0x060004CA RID: 1226 RVA: 0x0000E124 File Offset: 0x0000D124
public string Description
{
get
{
return this.description;
}
}
// Token: 0x060004CB RID: 1227 RVA: 0x0000E13C File Offset: 0x0000D13C
internal void Read(MemoryBuffer buffer)
{
this.groupId = buffer.ReadInt32();
this.numTrophies = buffer.ReadUInt32();
this.numPlatinum = buffer.ReadUInt32();
this.numGold = buffer.ReadUInt32();
this.numSilver = buffer.ReadUInt32();
this.numBronze = buffer.ReadUInt32();
buffer.ReadString(ref this.title);
buffer.ReadString(ref this.description);
}
// Token: 0x04000394 RID: 916
internal int groupId;
// Token: 0x04000395 RID: 917
internal uint numTrophies;
// Token: 0x04000396 RID: 918
internal uint numPlatinum;
// Token: 0x04000397 RID: 919
internal uint numGold;
// Token: 0x04000398 RID: 920
internal uint numSilver;
// Token: 0x04000399 RID: 921
internal uint numBronze;
// Token: 0x0400039A RID: 922
internal string title;
// Token: 0x0400039B RID: 923
internal string description;
}
// Token: 0x020000E8 RID: 232
public struct NpTrophyGroupData
{
// Token: 0x1700023C RID: 572
// (get) Token: 0x060004CC RID: 1228 RVA: 0x0000E1AC File Offset: 0x0000D1AC
public int GroupId
{
get
{
return this.groupId;
}
}
// Token: 0x1700023D RID: 573
// (get) Token: 0x060004CD RID: 1229 RVA: 0x0000E1C4 File Offset: 0x0000D1C4
public uint UnlockedTrophies
{
get
{
return this.unlockedTrophies;
}
}
// Token: 0x1700023E RID: 574
// (get) Token: 0x060004CE RID: 1230 RVA: 0x0000E1DC File Offset: 0x0000D1DC
public uint UnlockedPlatinum
{
get
{
return this.unlockedPlatinum;
}
}
// Token: 0x1700023F RID: 575
// (get) Token: 0x060004CF RID: 1231 RVA: 0x0000E1F4 File Offset: 0x0000D1F4
public uint UnlockedGold
{
get
{
return this.unlockedGold;
}
}
// Token: 0x17000240 RID: 576
// (get) Token: 0x060004D0 RID: 1232 RVA: 0x0000E20C File Offset: 0x0000D20C
public uint UnlockedSilver
{
get
{
return this.unlockedSilver;
}
}
// Token: 0x17000241 RID: 577
// (get) Token: 0x060004D1 RID: 1233 RVA: 0x0000E224 File Offset: 0x0000D224
public uint UnlockedBronze
{
get
{
return this.unlockedBronze;
}
}
// Token: 0x17000242 RID: 578
// (get) Token: 0x060004D2 RID: 1234 RVA: 0x0000E23C File Offset: 0x0000D23C
public uint ProgressPercentage
{
get
{
return this.progressPercentage;
}
}
// Token: 0x060004D3 RID: 1235 RVA: 0x0000E254 File Offset: 0x0000D254
internal void Read(MemoryBuffer buffer)
{
this.groupId = buffer.ReadInt32();
this.unlockedTrophies = buffer.ReadUInt32();
this.unlockedPlatinum = buffer.ReadUInt32();
this.unlockedGold = buffer.ReadUInt32();
this.unlockedSilver = buffer.ReadUInt32();
this.unlockedBronze = buffer.ReadUInt32();
this.progressPercentage = buffer.ReadUInt32();
}
// Token: 0x0400039C RID: 924
internal int groupId;
// Token: 0x0400039D RID: 925
internal uint unlockedTrophies;
// Token: 0x0400039E RID: 926
internal uint unlockedPlatinum;
// Token: 0x0400039F RID: 927
internal uint unlockedGold;
// Token: 0x040003A0 RID: 928
internal uint unlockedSilver;
// Token: 0x040003A1 RID: 929
internal uint unlockedBronze;
// Token: 0x040003A2 RID: 930
internal uint progressPercentage;
}
// Token: 0x020000E9 RID: 233
public class TrophyPackGroupResponse : ResponseBase
{
// Token: 0x17000243 RID: 579
// (get) Token: 0x060004D4 RID: 1236 RVA: 0x0000E2B8 File Offset: 0x0000D2B8
public Icon Icon
{
get
{
return this.icon;
}
}
// Token: 0x17000244 RID: 580
// (get) Token: 0x060004D5 RID: 1237 RVA: 0x0000E2D0 File Offset: 0x0000D2D0
public Trophies.NpTrophyGroupDetails StaticConfiguration
{
get
{
return this.staticConfiguration;
}
}
// Token: 0x17000245 RID: 581
// (get) Token: 0x060004D6 RID: 1238 RVA: 0x0000E2E8 File Offset: 0x0000D2E8
public Trophies.NpTrophyGroupData UserProgress
{
get
{
return this.userProgress;
}
}
// Token: 0x060004D7 RID: 1239 RVA: 0x0000E300 File Offset: 0x0000D300
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TrophyPackGroupBegin);
this.icon = Icon.ReadAndCreate(memoryBuffer);
this.staticConfiguration.Read(memoryBuffer);
this.userProgress.Read(memoryBuffer);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TrophyPackGroupEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040003A3 RID: 931
internal Icon icon = null;
// Token: 0x040003A4 RID: 932
internal Trophies.NpTrophyGroupDetails staticConfiguration;
// Token: 0x040003A5 RID: 933
internal Trophies.NpTrophyGroupData userProgress;
}
// Token: 0x020000EA RID: 234
public enum TrophyGrade
{
// Token: 0x040003A7 RID: 935
Unknown,
// Token: 0x040003A8 RID: 936
Platinum,
// Token: 0x040003A9 RID: 937
Gold,
// Token: 0x040003AA RID: 938
Silver,
// Token: 0x040003AB RID: 939
Bronze
}
// Token: 0x020000EB RID: 235
public struct NpTrophyDetails
{
// Token: 0x17000246 RID: 582
// (get) Token: 0x060004D9 RID: 1241 RVA: 0x0000E388 File Offset: 0x0000D388
public int TrophyId
{
get
{
return this.trophyId;
}
}
// Token: 0x17000247 RID: 583
// (get) Token: 0x060004DA RID: 1242 RVA: 0x0000E3A0 File Offset: 0x0000D3A0
public Trophies.TrophyGrade TrophyGrade
{
get
{
return this.trophyGrade;
}
}
// Token: 0x17000248 RID: 584
// (get) Token: 0x060004DB RID: 1243 RVA: 0x0000E3B8 File Offset: 0x0000D3B8
public int GroupId
{
get
{
return this.groupId;
}
}
// Token: 0x17000249 RID: 585
// (get) Token: 0x060004DC RID: 1244 RVA: 0x0000E3D0 File Offset: 0x0000D3D0
public bool Hidden
{
get
{
return this.hidden;
}
}
// Token: 0x1700024A RID: 586
// (get) Token: 0x060004DD RID: 1245 RVA: 0x0000E3E8 File Offset: 0x0000D3E8
public string Name
{
get
{
return this.name;
}
}
// Token: 0x1700024B RID: 587
// (get) Token: 0x060004DE RID: 1246 RVA: 0x0000E400 File Offset: 0x0000D400
public string Description
{
get
{
return this.description;
}
}
// Token: 0x060004DF RID: 1247 RVA: 0x0000E418 File Offset: 0x0000D418
internal void Read(MemoryBuffer buffer)
{
this.trophyId = buffer.ReadInt32();
this.trophyGrade = (Trophies.TrophyGrade)buffer.ReadInt32();
this.groupId = buffer.ReadInt32();
this.hidden = buffer.ReadBool();
buffer.ReadString(ref this.name);
buffer.ReadString(ref this.description);
}
// Token: 0x040003AC RID: 940
internal int trophyId;
// Token: 0x040003AD RID: 941
internal Trophies.TrophyGrade trophyGrade;
// Token: 0x040003AE RID: 942
internal int groupId;
// Token: 0x040003AF RID: 943
internal bool hidden;
// Token: 0x040003B0 RID: 944
internal string name;
// Token: 0x040003B1 RID: 945
internal string description;
}
// Token: 0x020000EC RID: 236
public struct NpTrophyData
{
// Token: 0x1700024C RID: 588
// (get) Token: 0x060004E0 RID: 1248 RVA: 0x0000E470 File Offset: 0x0000D470
public int TrophyId
{
get
{
return this.trophyId;
}
}
// Token: 0x1700024D RID: 589
// (get) Token: 0x060004E1 RID: 1249 RVA: 0x0000E488 File Offset: 0x0000D488
public bool Unlocked
{
get
{
return this.unlocked;
}
}
// Token: 0x1700024E RID: 590
// (get) Token: 0x060004E2 RID: 1250 RVA: 0x0000E4A0 File Offset: 0x0000D4A0
public DateTime Timestamp
{
get
{
return this.timestamp;
}
}
// Token: 0x060004E3 RID: 1251 RVA: 0x0000E4B8 File Offset: 0x0000D4B8
internal void Read(MemoryBuffer buffer)
{
this.trophyId = buffer.ReadInt32();
this.unlocked = buffer.ReadBool();
this.timestamp = Core.ReadRtcTick(buffer);
}
// Token: 0x040003B2 RID: 946
internal int trophyId;
// Token: 0x040003B3 RID: 947
internal bool unlocked;
// Token: 0x040003B4 RID: 948
internal DateTime timestamp;
}
// Token: 0x020000ED RID: 237
public class TrophyPackTrophyResponse : ResponseBase
{
// Token: 0x1700024F RID: 591
// (get) Token: 0x060004E4 RID: 1252 RVA: 0x0000E4E0 File Offset: 0x0000D4E0
public Icon Icon
{
get
{
return this.icon;
}
}
// Token: 0x17000250 RID: 592
// (get) Token: 0x060004E5 RID: 1253 RVA: 0x0000E4F8 File Offset: 0x0000D4F8
public Trophies.NpTrophyDetails StaticConfiguration
{
get
{
return this.staticConfiguration;
}
}
// Token: 0x17000251 RID: 593
// (get) Token: 0x060004E6 RID: 1254 RVA: 0x0000E510 File Offset: 0x0000D510
public Trophies.NpTrophyData UserProgress
{
get
{
return this.userProgress;
}
}
// Token: 0x060004E7 RID: 1255 RVA: 0x0000E528 File Offset: 0x0000D528
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TrophyPackTrophyBegin);
this.icon = Icon.ReadAndCreate(memoryBuffer);
this.staticConfiguration.Read(memoryBuffer);
this.userProgress.Read(memoryBuffer);
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TrophyPackTrophyEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040003B5 RID: 949
internal Icon icon = null;
// Token: 0x040003B6 RID: 950
internal Trophies.NpTrophyDetails staticConfiguration;
// Token: 0x040003B7 RID: 951
internal Trophies.NpTrophyData userProgress;
}
}
}
+218
View File
@@ -0,0 +1,218 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x020000EE RID: 238
public class Tss
{
// Token: 0x060004E9 RID: 1257
[DllImport("UnityNpToolkit2")]
private static extern int PrxTssGetData(Tss.GetDataRequest request, out APIResult result);
// Token: 0x060004EA RID: 1258 RVA: 0x0000E5B0 File Offset: 0x0000D5B0
public static int GetData(Tss.GetDataRequest request, Tss.TssDataResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Tss.PrxTssGetData(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x020000EF RID: 239
[StructLayout(LayoutKind.Sequential)]
public class GetDataRequest : RequestBase
{
// Token: 0x17000252 RID: 594
// (get) Token: 0x060004EC RID: 1260 RVA: 0x0000E60C File Offset: 0x0000D60C
// (set) Token: 0x060004ED RID: 1261 RVA: 0x0000E624 File Offset: 0x0000D624
public ulong Offset
{
get
{
return this.offset;
}
set
{
this.offset = value;
}
}
// Token: 0x17000253 RID: 595
// (get) Token: 0x060004EE RID: 1262 RVA: 0x0000E630 File Offset: 0x0000D630
// (set) Token: 0x060004EF RID: 1263 RVA: 0x0000E648 File Offset: 0x0000D648
public ulong Length
{
get
{
return this.length;
}
set
{
this.length = value;
}
}
// Token: 0x17000254 RID: 596
// (get) Token: 0x060004F0 RID: 1264 RVA: 0x0000E654 File Offset: 0x0000D654
// (set) Token: 0x060004F1 RID: 1265 RVA: 0x0000E671 File Offset: 0x0000D671
public DateTime LastModifiedTicks
{
get
{
return Core.RtcTicksToDateTime(this.lastModifiedTicks);
}
set
{
this.lastModifiedTicks = Core.DateTimeToRtcTicks(value);
}
}
// Token: 0x17000255 RID: 597
// (get) Token: 0x060004F2 RID: 1266 RVA: 0x0000E680 File Offset: 0x0000D680
// (set) Token: 0x060004F3 RID: 1267 RVA: 0x0000E698 File Offset: 0x0000D698
public int TssSlotId
{
get
{
return this.tssSlotId;
}
set
{
this.tssSlotId = value;
}
}
// Token: 0x17000256 RID: 598
// (get) Token: 0x060004F4 RID: 1268 RVA: 0x0000E6A4 File Offset: 0x0000D6A4
// (set) Token: 0x060004F5 RID: 1269 RVA: 0x0000E6BC File Offset: 0x0000D6BC
public bool RetrieveStatusOnly
{
get
{
return this.retrieveStatusOnly;
}
set
{
this.retrieveStatusOnly = value;
}
}
// Token: 0x060004F6 RID: 1270 RVA: 0x0000E6C6 File Offset: 0x0000D6C6
public GetDataRequest()
: base(ServiceTypes.Tss, FunctionTypes.TssGetData)
{
}
// Token: 0x040003B8 RID: 952
internal ulong offset;
// Token: 0x040003B9 RID: 953
internal ulong length;
// Token: 0x040003BA RID: 954
internal ulong lastModifiedTicks;
// Token: 0x040003BB RID: 955
internal int tssSlotId;
// Token: 0x040003BC RID: 956
[MarshalAs(UnmanagedType.I1)]
internal bool retrieveStatusOnly;
}
// Token: 0x020000F0 RID: 240
public enum TssStatusCodes
{
// Token: 0x040003BE RID: 958
Ok,
// Token: 0x040003BF RID: 959
Partial,
// Token: 0x040003C0 RID: 960
NotModified
}
// Token: 0x020000F1 RID: 241
public class TssDataResponse : ResponseBase
{
// Token: 0x17000257 RID: 599
// (get) Token: 0x060004F7 RID: 1271 RVA: 0x0000E6D8 File Offset: 0x0000D6D8
public byte[] Data
{
get
{
return this.data;
}
}
// Token: 0x17000258 RID: 600
// (get) Token: 0x060004F8 RID: 1272 RVA: 0x0000E6F0 File Offset: 0x0000D6F0
public DateTime LastModified
{
get
{
return this.lastModified;
}
}
// Token: 0x17000259 RID: 601
// (get) Token: 0x060004F9 RID: 1273 RVA: 0x0000E708 File Offset: 0x0000D708
public Tss.TssStatusCodes StatusCode
{
get
{
return this.statusCode;
}
}
// Token: 0x1700025A RID: 602
// (get) Token: 0x060004FA RID: 1274 RVA: 0x0000E720 File Offset: 0x0000D720
public long ContentLength
{
get
{
return this.contentLength;
}
}
// Token: 0x060004FB RID: 1275 RVA: 0x0000E738 File Offset: 0x0000D738
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TssDataBegin);
memoryBuffer.ReadData(ref this.data);
this.lastModified = Core.ReadRtcTick(memoryBuffer);
this.statusCode = (Tss.TssStatusCodes)memoryBuffer.ReadInt32();
this.contentLength = memoryBuffer.ReadInt64();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TssDataEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x040003C1 RID: 961
internal byte[] data;
// Token: 0x040003C2 RID: 962
internal DateTime lastModified;
// Token: 0x040003C3 RID: 963
internal Tss.TssStatusCodes statusCode;
// Token: 0x040003C4 RID: 964
internal long contentLength;
}
}
}
+1694
View File
@@ -0,0 +1,1694 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x020000F2 RID: 242
public class Tus
{
// Token: 0x060004FD RID: 1277
[DllImport("UnityNpToolkit2")]
private static extern int PrxTusSetVariables(Tus.SetVariablesRequest request, out APIResult result);
// Token: 0x060004FE RID: 1278
[DllImport("UnityNpToolkit2")]
private static extern int PrxTusGetVariables(Tus.GetVariablesRequest request, out APIResult result);
// Token: 0x060004FF RID: 1279
[DllImport("UnityNpToolkit2")]
private static extern int PrxTusAddToAndGetVariable(Tus.AddToAndGetVariableRequest request, out APIResult result);
// Token: 0x06000500 RID: 1280
[DllImport("UnityNpToolkit2")]
private static extern int PrxTusSetData(Tus.SetDataRequest request, out APIResult result);
// Token: 0x06000501 RID: 1281
[DllImport("UnityNpToolkit2")]
private static extern int PrxTusGetData(Tus.GetDataRequest request, out APIResult result);
// Token: 0x06000502 RID: 1282
[DllImport("UnityNpToolkit2")]
private static extern int PrxTusDeleteData(Tus.DeleteDataRequest request, out APIResult result);
// Token: 0x06000503 RID: 1283 RVA: 0x0000E7C4 File Offset: 0x0000D7C4
public static int SetVariables(Tus.SetVariablesRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Tus.PrxTusSetVariables(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000504 RID: 1284 RVA: 0x0000E818 File Offset: 0x0000D818
public static int GetVariables(Tus.GetVariablesRequest request, Tus.VariablesResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Tus.PrxTusGetVariables(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000505 RID: 1285 RVA: 0x0000E86C File Offset: 0x0000D86C
public static int AddToAndGetVariable(Tus.AddToAndGetVariableRequest request, Tus.AtomicAddToAndGetVariableResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Tus.PrxTusAddToAndGetVariable(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000506 RID: 1286 RVA: 0x0000E8C0 File Offset: 0x0000D8C0
public static int SetData(Tus.SetDataRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Tus.PrxTusSetData(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000507 RID: 1287 RVA: 0x0000E914 File Offset: 0x0000D914
public static int GetData(Tus.GetDataRequest request, Tus.GetDataResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Tus.PrxTusGetData(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x06000508 RID: 1288 RVA: 0x0000E968 File Offset: 0x0000D968
public static int DeleteData(Tus.DeleteDataRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = Tus.PrxTusDeleteData(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x020000F3 RID: 243
public struct VirtualUserID
{
// Token: 0x1700025B RID: 603
// (get) Token: 0x0600050A RID: 1290 RVA: 0x0000E9C4 File Offset: 0x0000D9C4
// (set) Token: 0x0600050B RID: 1291 RVA: 0x0000E9DC File Offset: 0x0000D9DC
public string Name
{
get
{
return this.name;
}
set
{
if (value.Length > 16)
{
throw new NpToolkitException("VirtualUserID can't be more than " + 16 + " characters.");
}
this.name = value;
}
}
// Token: 0x0600050C RID: 1292 RVA: 0x0000EA1F File Offset: 0x0000DA1F
internal void Read(MemoryBuffer buffer)
{
buffer.ReadString(ref this.name);
}
// Token: 0x0600050D RID: 1293 RVA: 0x0000EA30 File Offset: 0x0000DA30
public override string ToString()
{
return this.name;
}
// Token: 0x040003C5 RID: 965
public const int NP_ONLINEID_MAX_LENGTH = 16;
// Token: 0x040003C6 RID: 966
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 17)]
internal string name;
}
// Token: 0x020000F4 RID: 244
public struct Variable
{
// Token: 0x1700025C RID: 604
// (get) Token: 0x0600050E RID: 1294 RVA: 0x0000EA48 File Offset: 0x0000DA48
// (set) Token: 0x0600050F RID: 1295 RVA: 0x0000EA60 File Offset: 0x0000DA60
public long Value
{
get
{
return this.varValue;
}
set
{
this.varValue = value;
}
}
// Token: 0x1700025D RID: 605
// (get) Token: 0x06000510 RID: 1296 RVA: 0x0000EA6C File Offset: 0x0000DA6C
// (set) Token: 0x06000511 RID: 1297 RVA: 0x0000EA84 File Offset: 0x0000DA84
public int SlotId
{
get
{
return this.slotId;
}
set
{
this.slotId = value;
}
}
// Token: 0x040003C7 RID: 967
internal long varValue;
// Token: 0x040003C8 RID: 968
internal int slotId;
}
// Token: 0x020000F5 RID: 245
public class NpVariableBase
{
// Token: 0x1700025E RID: 606
// (get) Token: 0x06000512 RID: 1298 RVA: 0x0000EA90 File Offset: 0x0000DA90
public bool HasData
{
get
{
return this.hasData;
}
}
// Token: 0x1700025F RID: 607
// (get) Token: 0x06000513 RID: 1299 RVA: 0x0000EAA8 File Offset: 0x0000DAA8
public DateTime LastChangedDate
{
get
{
return this.lastChangedDate;
}
}
// Token: 0x17000260 RID: 608
// (get) Token: 0x06000514 RID: 1300 RVA: 0x0000EAC0 File Offset: 0x0000DAC0
public long Variable
{
get
{
return this.variable;
}
}
// Token: 0x17000261 RID: 609
// (get) Token: 0x06000515 RID: 1301 RVA: 0x0000EAD8 File Offset: 0x0000DAD8
public long OldVariable
{
get
{
return this.oldVariable;
}
}
// Token: 0x17000262 RID: 610
// (get) Token: 0x06000516 RID: 1302 RVA: 0x0000EAF0 File Offset: 0x0000DAF0
public Core.NpAccountId OwnerAccountId
{
get
{
return this.ownerAccountId;
}
}
// Token: 0x17000263 RID: 611
// (get) Token: 0x06000517 RID: 1303 RVA: 0x0000EB08 File Offset: 0x0000DB08
public Core.NpAccountId LastChangedAuthorAccountId
{
get
{
return this.lastChangedAuthorAccountId;
}
}
// Token: 0x06000518 RID: 1304 RVA: 0x0000EB20 File Offset: 0x0000DB20
internal void ReadBase(MemoryBuffer buffer)
{
this.hasData = buffer.ReadBool();
this.lastChangedDate = Core.ReadRtcTick(buffer);
this.variable = buffer.ReadInt64();
this.oldVariable = buffer.ReadInt64();
this.ownerAccountId.Read(buffer);
this.lastChangedAuthorAccountId.Read(buffer);
}
// Token: 0x040003C9 RID: 969
internal bool hasData;
// Token: 0x040003CA RID: 970
internal DateTime lastChangedDate;
// Token: 0x040003CB RID: 971
internal long variable;
// Token: 0x040003CC RID: 972
internal long oldVariable;
// Token: 0x040003CD RID: 973
internal Core.NpAccountId ownerAccountId;
// Token: 0x040003CE RID: 974
internal Core.NpAccountId lastChangedAuthorAccountId;
}
// Token: 0x020000F6 RID: 246
public class NpVariable : Tus.NpVariableBase
{
// Token: 0x17000264 RID: 612
// (get) Token: 0x0600051A RID: 1306 RVA: 0x0000EB80 File Offset: 0x0000DB80
public Core.OnlineID OwnerId
{
get
{
return this.ownerId;
}
}
// Token: 0x17000265 RID: 613
// (get) Token: 0x0600051B RID: 1307 RVA: 0x0000EB98 File Offset: 0x0000DB98
public Core.OnlineID LastChangedAuthorId
{
get
{
return this.lastChangedAuthorId;
}
}
// Token: 0x0600051C RID: 1308 RVA: 0x0000EBB0 File Offset: 0x0000DBB0
internal void Read(MemoryBuffer buffer)
{
base.ReadBase(buffer);
this.ownerId = new Core.OnlineID();
this.ownerId.Read(buffer);
this.lastChangedAuthorId = new Core.OnlineID();
this.lastChangedAuthorId.Read(buffer);
}
// Token: 0x040003CF RID: 975
internal Core.OnlineID ownerId;
// Token: 0x040003D0 RID: 976
internal Core.OnlineID lastChangedAuthorId;
}
// Token: 0x020000F7 RID: 247
public class NpVariableForCrossSave : Tus.NpVariableBase
{
// Token: 0x17000266 RID: 614
// (get) Token: 0x0600051E RID: 1310 RVA: 0x0000EBF4 File Offset: 0x0000DBF4
public Core.NpId OwnerId
{
get
{
return this.ownerId;
}
}
// Token: 0x17000267 RID: 615
// (get) Token: 0x0600051F RID: 1311 RVA: 0x0000EC0C File Offset: 0x0000DC0C
public Core.NpId LastChangedAuthorId
{
get
{
return this.lastChangedAuthorId;
}
}
// Token: 0x06000520 RID: 1312 RVA: 0x0000EC24 File Offset: 0x0000DC24
internal void Read(MemoryBuffer buffer)
{
base.ReadBase(buffer);
this.ownerId.Read(buffer);
this.lastChangedAuthorId.Read(buffer);
}
// Token: 0x040003D1 RID: 977
internal Core.NpId ownerId;
// Token: 0x040003D2 RID: 978
internal Core.NpId lastChangedAuthorId;
}
// Token: 0x020000F8 RID: 248
public class NpTusDataStatusBase
{
// Token: 0x17000268 RID: 616
// (get) Token: 0x06000522 RID: 1314 RVA: 0x0000EC54 File Offset: 0x0000DC54
public bool HasData
{
get
{
return this.hasData;
}
}
// Token: 0x17000269 RID: 617
// (get) Token: 0x06000523 RID: 1315 RVA: 0x0000EC6C File Offset: 0x0000DC6C
public DateTime LastChangedDate
{
get
{
return this.lastChangedDate;
}
}
// Token: 0x1700026A RID: 618
// (get) Token: 0x06000524 RID: 1316 RVA: 0x0000EC84 File Offset: 0x0000DC84
public byte[] Data
{
get
{
return this.data;
}
}
// Token: 0x1700026B RID: 619
// (get) Token: 0x06000525 RID: 1317 RVA: 0x0000EC9C File Offset: 0x0000DC9C
public byte[] SupplementaryInfo
{
get
{
return this.supplementaryInfo;
}
}
// Token: 0x1700026C RID: 620
// (get) Token: 0x06000526 RID: 1318 RVA: 0x0000ECB4 File Offset: 0x0000DCB4
public Core.NpAccountId OwnerAccountId
{
get
{
return this.ownerAccountId;
}
}
// Token: 0x1700026D RID: 621
// (get) Token: 0x06000527 RID: 1319 RVA: 0x0000ECCC File Offset: 0x0000DCCC
public Core.NpAccountId LastChangedAuthorAccountId
{
get
{
return this.lastChangedAuthorAccountId;
}
}
// Token: 0x06000528 RID: 1320 RVA: 0x0000ECE4 File Offset: 0x0000DCE4
internal void ReadBase(MemoryBuffer buffer)
{
this.hasData = buffer.ReadBool();
this.lastChangedDate = Core.ReadRtcTick(buffer);
buffer.ReadData(ref this.data);
buffer.ReadData(ref this.supplementaryInfo);
this.ownerAccountId.Read(buffer);
this.lastChangedAuthorAccountId.Read(buffer);
}
// Token: 0x040003D3 RID: 979
internal bool hasData;
// Token: 0x040003D4 RID: 980
internal DateTime lastChangedDate;
// Token: 0x040003D5 RID: 981
internal byte[] data;
// Token: 0x040003D6 RID: 982
internal byte[] supplementaryInfo;
// Token: 0x040003D7 RID: 983
internal Core.NpAccountId ownerAccountId;
// Token: 0x040003D8 RID: 984
internal Core.NpAccountId lastChangedAuthorAccountId;
}
// Token: 0x020000F9 RID: 249
public class NpTusDataStatus : Tus.NpTusDataStatusBase
{
// Token: 0x1700026E RID: 622
// (get) Token: 0x0600052A RID: 1322 RVA: 0x0000ED48 File Offset: 0x0000DD48
public Core.OnlineID OwnerId
{
get
{
return this.ownerId;
}
}
// Token: 0x1700026F RID: 623
// (get) Token: 0x0600052B RID: 1323 RVA: 0x0000ED60 File Offset: 0x0000DD60
public Core.OnlineID LastChangedAuthorId
{
get
{
return this.lastChangedAuthorId;
}
}
// Token: 0x0600052C RID: 1324 RVA: 0x0000ED78 File Offset: 0x0000DD78
internal void Read(MemoryBuffer buffer)
{
base.ReadBase(buffer);
this.ownerId = new Core.OnlineID();
this.ownerId.Read(buffer);
this.lastChangedAuthorId = new Core.OnlineID();
this.lastChangedAuthorId.Read(buffer);
}
// Token: 0x040003D9 RID: 985
internal Core.OnlineID ownerId;
// Token: 0x040003DA RID: 986
internal Core.OnlineID lastChangedAuthorId;
}
// Token: 0x020000FA RID: 250
public class NpTusDataStatusForCrossSave : Tus.NpTusDataStatusBase
{
// Token: 0x17000270 RID: 624
// (get) Token: 0x0600052E RID: 1326 RVA: 0x0000EDBC File Offset: 0x0000DDBC
public Core.NpId OwnerId
{
get
{
return this.ownerId;
}
}
// Token: 0x17000271 RID: 625
// (get) Token: 0x0600052F RID: 1327 RVA: 0x0000EDD4 File Offset: 0x0000DDD4
public Core.NpId LastChangedAuthorId
{
get
{
return this.lastChangedAuthorId;
}
}
// Token: 0x06000530 RID: 1328 RVA: 0x0000EDEC File Offset: 0x0000DDEC
internal void Read(MemoryBuffer buffer)
{
base.ReadBase(buffer);
this.ownerId.Read(buffer);
this.lastChangedAuthorId.Read(buffer);
}
// Token: 0x040003DB RID: 987
internal Core.NpId ownerId;
// Token: 0x040003DC RID: 988
internal Core.NpId lastChangedAuthorId;
}
// Token: 0x020000FB RID: 251
[StructLayout(LayoutKind.Sequential)]
public class SetVariablesRequest : RequestBase
{
// Token: 0x17000272 RID: 626
// (get) Token: 0x06000532 RID: 1330 RVA: 0x0000EE1C File Offset: 0x0000DE1C
// (set) Token: 0x06000533 RID: 1331 RVA: 0x0000EE68 File Offset: 0x0000DE68
public Tus.Variable[] Vars
{
get
{
Tus.Variable[] array;
if (this.numVars == 0UL)
{
array = null;
}
else
{
Tus.Variable[] array2 = new Tus.Variable[this.numVars];
Array.Copy(this.vars, array2, (int)this.numVars);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 64)
{
throw new NpToolkitException("The size of the array is larger than " + 64);
}
value.CopyTo(this.vars, 0);
this.numVars = (ulong)((long)value.Length);
}
else
{
this.numVars = 0UL;
}
}
}
// Token: 0x17000273 RID: 627
// (get) Token: 0x06000534 RID: 1332 RVA: 0x0000EECC File Offset: 0x0000DECC
// (set) Token: 0x06000535 RID: 1333 RVA: 0x0000EEFD File Offset: 0x0000DEFD
public Core.NpAccountId TargetUser
{
get
{
if (this.isVirtualUser)
{
throw new NpToolkitException("A virtual user id is currently configured on for this request, meaning the TargetUser is not valid");
}
return this.targetUser;
}
set
{
this.targetUser = value;
this.isVirtualUser = false;
}
}
// Token: 0x17000274 RID: 628
// (get) Token: 0x06000536 RID: 1334 RVA: 0x0000EF10 File Offset: 0x0000DF10
// (set) Token: 0x06000537 RID: 1335 RVA: 0x0000EF40 File Offset: 0x0000DF40
public Tus.VirtualUserID VirtualUserID
{
get
{
if (!this.isVirtualUser)
{
throw new NpToolkitException("This request doesn't have a virtual user id current set.");
}
return this.virtualUserID;
}
set
{
this.virtualUserID = value;
if (value.name.Length > 0)
{
this.isVirtualUser = true;
}
else
{
this.isVirtualUser = false;
}
}
}
// Token: 0x17000275 RID: 629
// (get) Token: 0x06000538 RID: 1336 RVA: 0x0000EF7C File Offset: 0x0000DF7C
public bool IsVirtualUser
{
get
{
return this.isVirtualUser;
}
}
// Token: 0x06000539 RID: 1337 RVA: 0x0000EF94 File Offset: 0x0000DF94
public SetVariablesRequest()
: base(ServiceTypes.Tus, FunctionTypes.TusSetVariables)
{
}
// Token: 0x040003DD RID: 989
public const int MAX_VARIABLE_SLOTS = 64;
// Token: 0x040003DE RID: 990
internal ulong numVars;
// Token: 0x040003DF RID: 991
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
private Tus.Variable[] vars = new Tus.Variable[64];
// Token: 0x040003E0 RID: 992
internal Core.NpAccountId targetUser;
// Token: 0x040003E1 RID: 993
internal Tus.VirtualUserID virtualUserID;
// Token: 0x040003E2 RID: 994
[MarshalAs(UnmanagedType.I1)]
internal bool isVirtualUser;
}
// Token: 0x020000FC RID: 252
[StructLayout(LayoutKind.Sequential)]
public class GetVariablesRequest : RequestBase
{
// Token: 0x17000276 RID: 630
// (get) Token: 0x0600053A RID: 1338 RVA: 0x0000EFB0 File Offset: 0x0000DFB0
// (set) Token: 0x0600053B RID: 1339 RVA: 0x0000EFFC File Offset: 0x0000DFFC
public int[] SlotIds
{
get
{
int[] array;
if (this.numSlots == 0UL)
{
array = null;
}
else
{
int[] array2 = new int[this.numSlots];
Array.Copy(this.slotIds, array2, (int)this.numSlots);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 64)
{
throw new NpToolkitException("The size of the array is larger than " + 64);
}
value.CopyTo(this.slotIds, 0);
this.numSlots = (ulong)((long)value.Length);
}
else
{
this.numSlots = 0UL;
}
}
}
// Token: 0x17000277 RID: 631
// (get) Token: 0x0600053C RID: 1340 RVA: 0x0000F060 File Offset: 0x0000E060
// (set) Token: 0x0600053D RID: 1341 RVA: 0x0000F091 File Offset: 0x0000E091
public Core.NpAccountId TargetUser
{
get
{
if (this.isVirtualUser)
{
throw new NpToolkitException("A virtual user id is currently configured on for this request, meaning the TargetUser is not valid");
}
return this.targetUser;
}
set
{
this.targetUser = value;
this.isVirtualUser = false;
}
}
// Token: 0x17000278 RID: 632
// (get) Token: 0x0600053E RID: 1342 RVA: 0x0000F0A4 File Offset: 0x0000E0A4
// (set) Token: 0x0600053F RID: 1343 RVA: 0x0000F0D4 File Offset: 0x0000E0D4
public Tus.VirtualUserID VirtualUserID
{
get
{
if (!this.isVirtualUser)
{
throw new NpToolkitException("This request doesn't have a virtual user id current set.");
}
return this.virtualUserID;
}
set
{
this.virtualUserID = value;
if (value.name.Length > 0)
{
this.isVirtualUser = true;
}
else
{
this.isVirtualUser = false;
}
}
}
// Token: 0x17000279 RID: 633
// (get) Token: 0x06000540 RID: 1344 RVA: 0x0000F110 File Offset: 0x0000E110
public bool IsVirtualUser
{
get
{
return this.isVirtualUser;
}
}
// Token: 0x06000541 RID: 1345 RVA: 0x0000F128 File Offset: 0x0000E128
public GetVariablesRequest()
: base(ServiceTypes.Tus, FunctionTypes.TusGetVariables)
{
}
// Token: 0x040003E3 RID: 995
public const int MAX_VARIABLE_SLOTS = 64;
// Token: 0x040003E4 RID: 996
internal ulong numSlots;
// Token: 0x040003E5 RID: 997
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
internal int[] slotIds = new int[64];
// Token: 0x040003E6 RID: 998
internal Core.NpAccountId targetUser;
// Token: 0x040003E7 RID: 999
internal Tus.VirtualUserID virtualUserID;
// Token: 0x040003E8 RID: 1000
[MarshalAs(UnmanagedType.I1)]
internal bool isVirtualUser;
// Token: 0x040003E9 RID: 1001
[MarshalAs(UnmanagedType.I1)]
internal bool forCrossSave;
}
// Token: 0x020000FD RID: 253
public struct DataContention
{
// Token: 0x1700027A RID: 634
// (get) Token: 0x06000542 RID: 1346 RVA: 0x0000F144 File Offset: 0x0000E144
// (set) Token: 0x06000543 RID: 1347 RVA: 0x0000F161 File Offset: 0x0000E161
public DateTime LastChangedDate
{
get
{
return Core.RtcTicksToDateTime(this.lastChangedDateTicks);
}
set
{
this.lastChangedDateTicks = Core.DateTimeToRtcTicks(value);
}
}
// Token: 0x1700027B RID: 635
// (get) Token: 0x06000544 RID: 1348 RVA: 0x0000F170 File Offset: 0x0000E170
// (set) Token: 0x06000545 RID: 1349 RVA: 0x0000F188 File Offset: 0x0000E188
public Core.NpAccountId RequiredLastChangeUser
{
get
{
return this.requiredLastChangeUser;
}
set
{
this.requiredLastChangeUser = value;
}
}
// Token: 0x040003EA RID: 1002
internal ulong lastChangedDateTicks;
// Token: 0x040003EB RID: 1003
internal Core.NpAccountId requiredLastChangeUser;
}
// Token: 0x020000FE RID: 254
[StructLayout(LayoutKind.Sequential)]
public class AddToAndGetVariableRequest : RequestBase
{
// Token: 0x1700027C RID: 636
// (get) Token: 0x06000546 RID: 1350 RVA: 0x0000F194 File Offset: 0x0000E194
// (set) Token: 0x06000547 RID: 1351 RVA: 0x0000F1AC File Offset: 0x0000E1AC
public Tus.Variable Var
{
get
{
return this.var;
}
set
{
this.var = value;
}
}
// Token: 0x1700027D RID: 637
// (get) Token: 0x06000548 RID: 1352 RVA: 0x0000F1B8 File Offset: 0x0000E1B8
// (set) Token: 0x06000549 RID: 1353 RVA: 0x0000F1D0 File Offset: 0x0000E1D0
public Tus.DataContention DataContention
{
get
{
return this.dataContention;
}
set
{
this.dataContention = value;
}
}
// Token: 0x1700027E RID: 638
// (get) Token: 0x0600054A RID: 1354 RVA: 0x0000F1DC File Offset: 0x0000E1DC
// (set) Token: 0x0600054B RID: 1355 RVA: 0x0000F20D File Offset: 0x0000E20D
public Core.NpAccountId TargetUser
{
get
{
if (this.isVirtualUser)
{
throw new NpToolkitException("A virtual user id is currently configured on for this request, meaning the TargetUser is not valid");
}
return this.targetUser;
}
set
{
this.targetUser = value;
this.isVirtualUser = false;
}
}
// Token: 0x1700027F RID: 639
// (get) Token: 0x0600054C RID: 1356 RVA: 0x0000F220 File Offset: 0x0000E220
// (set) Token: 0x0600054D RID: 1357 RVA: 0x0000F250 File Offset: 0x0000E250
public Tus.VirtualUserID VirtualUserID
{
get
{
if (!this.isVirtualUser)
{
throw new NpToolkitException("This request doesn't have a virtual user id current set.");
}
return this.virtualUserID;
}
set
{
this.virtualUserID = value;
if (value.name.Length > 0)
{
this.isVirtualUser = true;
}
else
{
this.isVirtualUser = false;
}
}
}
// Token: 0x17000280 RID: 640
// (get) Token: 0x0600054E RID: 1358 RVA: 0x0000F28C File Offset: 0x0000E28C
public bool IsVirtualUser
{
get
{
return this.isVirtualUser;
}
}
// Token: 0x17000281 RID: 641
// (get) Token: 0x0600054F RID: 1359 RVA: 0x0000F2A4 File Offset: 0x0000E2A4
// (set) Token: 0x06000550 RID: 1360 RVA: 0x0000F2BC File Offset: 0x0000E2BC
public bool ForCrossSave
{
get
{
return this.forCrossSave;
}
set
{
this.forCrossSave = value;
}
}
// Token: 0x06000551 RID: 1361 RVA: 0x0000F2C6 File Offset: 0x0000E2C6
public AddToAndGetVariableRequest()
: base(ServiceTypes.Tus, FunctionTypes.TusAddToAndGetVariable)
{
this.dataContention.lastChangedDateTicks = 0UL;
this.dataContention.requiredLastChangeUser = 0UL;
}
// Token: 0x040003EC RID: 1004
internal Tus.Variable var;
// Token: 0x040003ED RID: 1005
internal Tus.DataContention dataContention;
// Token: 0x040003EE RID: 1006
internal Core.NpAccountId targetUser;
// Token: 0x040003EF RID: 1007
internal Tus.VirtualUserID virtualUserID;
// Token: 0x040003F0 RID: 1008
[MarshalAs(UnmanagedType.I1)]
internal bool isVirtualUser;
// Token: 0x040003F1 RID: 1009
[MarshalAs(UnmanagedType.I1)]
internal bool forCrossSave;
}
// Token: 0x020000FF RID: 255
[StructLayout(LayoutKind.Sequential)]
public class SetDataRequest : RequestBase
{
// Token: 0x17000282 RID: 642
// (get) Token: 0x06000552 RID: 1362 RVA: 0x0000F2F4 File Offset: 0x0000E2F4
// (set) Token: 0x06000553 RID: 1363 RVA: 0x0000F30C File Offset: 0x0000E30C
public byte[] Data
{
get
{
return this.data;
}
set
{
this.data = value;
this.dataSize = (ulong)((value != null) ? ((long)value.Length) : 0L);
}
}
// Token: 0x17000283 RID: 643
// (get) Token: 0x06000554 RID: 1364 RVA: 0x0000F328 File Offset: 0x0000E328
// (set) Token: 0x06000555 RID: 1365 RVA: 0x0000F374 File Offset: 0x0000E374
public byte[] SupplementaryInfo
{
get
{
byte[] array;
if (this.supplementaryInfoSize == 0UL)
{
array = null;
}
else
{
byte[] array2 = new byte[this.supplementaryInfoSize];
Array.Copy(this.supplementaryInfo, array2, (int)this.supplementaryInfoSize);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 384)
{
throw new NpToolkitException("The size of the array is larger than " + 384);
}
value.CopyTo(this.supplementaryInfo, 0);
this.supplementaryInfoSize = (ulong)((long)value.Length);
}
else
{
this.supplementaryInfoSize = 0UL;
}
}
}
// Token: 0x17000284 RID: 644
// (get) Token: 0x06000556 RID: 1366 RVA: 0x0000F3DC File Offset: 0x0000E3DC
// (set) Token: 0x06000557 RID: 1367 RVA: 0x0000F3F4 File Offset: 0x0000E3F4
public int SlotId
{
get
{
return this.slotId;
}
set
{
this.slotId = value;
}
}
// Token: 0x17000285 RID: 645
// (get) Token: 0x06000558 RID: 1368 RVA: 0x0000F400 File Offset: 0x0000E400
// (set) Token: 0x06000559 RID: 1369 RVA: 0x0000F418 File Offset: 0x0000E418
public Tus.DataContention DataContention
{
get
{
return this.dataContention;
}
set
{
this.dataContention = value;
}
}
// Token: 0x17000286 RID: 646
// (get) Token: 0x0600055A RID: 1370 RVA: 0x0000F424 File Offset: 0x0000E424
// (set) Token: 0x0600055B RID: 1371 RVA: 0x0000F455 File Offset: 0x0000E455
public Core.NpAccountId TargetUser
{
get
{
if (this.isVirtualUser)
{
throw new NpToolkitException("A virtual user id is currently configured on for this request, meaning the TargetUser is not valid");
}
return this.targetUser;
}
set
{
this.targetUser = value;
this.isVirtualUser = false;
}
}
// Token: 0x17000287 RID: 647
// (get) Token: 0x0600055C RID: 1372 RVA: 0x0000F468 File Offset: 0x0000E468
// (set) Token: 0x0600055D RID: 1373 RVA: 0x0000F498 File Offset: 0x0000E498
public Tus.VirtualUserID VirtualUserID
{
get
{
if (!this.isVirtualUser)
{
throw new NpToolkitException("This request doesn't have a virtual user id current set.");
}
return this.virtualUserID;
}
set
{
this.virtualUserID = value;
if (value.name.Length > 0)
{
this.isVirtualUser = true;
}
else
{
this.isVirtualUser = false;
}
}
}
// Token: 0x17000288 RID: 648
// (get) Token: 0x0600055E RID: 1374 RVA: 0x0000F4D4 File Offset: 0x0000E4D4
public bool IsVirtualUser
{
get
{
return this.isVirtualUser;
}
}
// Token: 0x0600055F RID: 1375 RVA: 0x0000F4EC File Offset: 0x0000E4EC
public SetDataRequest()
: base(ServiceTypes.Tus, FunctionTypes.TusSetData)
{
}
// Token: 0x040003F2 RID: 1010
public const int NP_TUS_DATA_INFO_MAX_SIZE = 384;
// Token: 0x040003F3 RID: 1011
[MarshalAs(UnmanagedType.LPArray)]
internal byte[] data;
// Token: 0x040003F4 RID: 1012
internal ulong dataSize;
// Token: 0x040003F5 RID: 1013
internal Core.NpAccountId targetUser;
// Token: 0x040003F6 RID: 1014
internal ulong supplementaryInfoSize;
// Token: 0x040003F7 RID: 1015
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 384)]
internal byte[] supplementaryInfo = new byte[384];
// Token: 0x040003F8 RID: 1016
internal Tus.DataContention dataContention;
// Token: 0x040003F9 RID: 1017
internal int slotId;
// Token: 0x040003FA RID: 1018
internal Tus.VirtualUserID virtualUserID;
// Token: 0x040003FB RID: 1019
[MarshalAs(UnmanagedType.I1)]
internal bool isVirtualUser;
}
// Token: 0x02000100 RID: 256
[StructLayout(LayoutKind.Sequential)]
public class GetDataRequest : RequestBase
{
// Token: 0x17000289 RID: 649
// (get) Token: 0x06000560 RID: 1376 RVA: 0x0000F50C File Offset: 0x0000E50C
// (set) Token: 0x06000561 RID: 1377 RVA: 0x0000F524 File Offset: 0x0000E524
public int SlotId
{
get
{
return this.slotId;
}
set
{
this.slotId = value;
}
}
// Token: 0x1700028A RID: 650
// (get) Token: 0x06000562 RID: 1378 RVA: 0x0000F530 File Offset: 0x0000E530
// (set) Token: 0x06000563 RID: 1379 RVA: 0x0000F561 File Offset: 0x0000E561
public Core.NpAccountId TargetUser
{
get
{
if (this.isVirtualUser)
{
throw new NpToolkitException("A virtual user id is currently configured on for this request, meaning the TargetUser is not valid");
}
return this.targetUser;
}
set
{
this.targetUser = value;
this.isVirtualUser = false;
}
}
// Token: 0x1700028B RID: 651
// (get) Token: 0x06000564 RID: 1380 RVA: 0x0000F574 File Offset: 0x0000E574
// (set) Token: 0x06000565 RID: 1381 RVA: 0x0000F5A4 File Offset: 0x0000E5A4
public Tus.VirtualUserID VirtualUserID
{
get
{
if (!this.isVirtualUser)
{
throw new NpToolkitException("This request doesn't have a virtual user id current set.");
}
return this.virtualUserID;
}
set
{
this.virtualUserID = value;
if (value.name.Length > 0)
{
this.isVirtualUser = true;
}
else
{
this.isVirtualUser = false;
}
}
}
// Token: 0x1700028C RID: 652
// (get) Token: 0x06000566 RID: 1382 RVA: 0x0000F5E0 File Offset: 0x0000E5E0
public bool IsVirtualUser
{
get
{
return this.isVirtualUser;
}
}
// Token: 0x1700028D RID: 653
// (get) Token: 0x06000567 RID: 1383 RVA: 0x0000F5F8 File Offset: 0x0000E5F8
// (set) Token: 0x06000568 RID: 1384 RVA: 0x0000F610 File Offset: 0x0000E610
public bool ForCrossSave
{
get
{
return this.forCrossSave;
}
set
{
this.forCrossSave = value;
}
}
// Token: 0x1700028E RID: 654
// (get) Token: 0x06000569 RID: 1385 RVA: 0x0000F61C File Offset: 0x0000E61C
// (set) Token: 0x0600056A RID: 1386 RVA: 0x0000F634 File Offset: 0x0000E634
public bool RetrieveStatusOnly
{
get
{
return this.retrieveStatusOnly;
}
set
{
this.retrieveStatusOnly = value;
}
}
// Token: 0x0600056B RID: 1387 RVA: 0x0000F63E File Offset: 0x0000E63E
public GetDataRequest()
: base(ServiceTypes.Tus, FunctionTypes.TusGetData)
{
}
// Token: 0x040003FC RID: 1020
internal Core.NpAccountId targetUser;
// Token: 0x040003FD RID: 1021
internal int slotId;
// Token: 0x040003FE RID: 1022
internal Tus.VirtualUserID virtualUserID;
// Token: 0x040003FF RID: 1023
[MarshalAs(UnmanagedType.I1)]
internal bool isVirtualUser;
// Token: 0x04000400 RID: 1024
[MarshalAs(UnmanagedType.I1)]
internal bool forCrossSave;
// Token: 0x04000401 RID: 1025
[MarshalAs(UnmanagedType.I1)]
internal bool retrieveStatusOnly;
}
// Token: 0x02000101 RID: 257
[StructLayout(LayoutKind.Sequential)]
public class DeleteDataRequest : RequestBase
{
// Token: 0x1700028F RID: 655
// (get) Token: 0x0600056C RID: 1388 RVA: 0x0000F650 File Offset: 0x0000E650
// (set) Token: 0x0600056D RID: 1389 RVA: 0x0000F69C File Offset: 0x0000E69C
public int[] SlotIds
{
get
{
int[] array;
if (this.numSlots == 0UL)
{
array = null;
}
else
{
int[] array2 = new int[this.numSlots];
Array.Copy(this.slotIds, array2, (int)this.numSlots);
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 16)
{
throw new NpToolkitException("The size of the array is larger than " + 16);
}
value.CopyTo(this.slotIds, 0);
this.numSlots = (ulong)((long)value.Length);
}
else
{
this.numSlots = 0UL;
}
}
}
// Token: 0x17000290 RID: 656
// (get) Token: 0x0600056E RID: 1390 RVA: 0x0000F700 File Offset: 0x0000E700
// (set) Token: 0x0600056F RID: 1391 RVA: 0x0000F731 File Offset: 0x0000E731
public Core.NpAccountId TargetUser
{
get
{
if (this.isVirtualUser)
{
throw new NpToolkitException("A virtual user id is currently configured on for this request, meaning the TargetUser is not valid");
}
return this.targetUser;
}
set
{
this.targetUser = value;
this.isVirtualUser = false;
}
}
// Token: 0x17000291 RID: 657
// (get) Token: 0x06000570 RID: 1392 RVA: 0x0000F744 File Offset: 0x0000E744
// (set) Token: 0x06000571 RID: 1393 RVA: 0x0000F774 File Offset: 0x0000E774
public Tus.VirtualUserID VirtualUserID
{
get
{
if (!this.isVirtualUser)
{
throw new NpToolkitException("This request doesn't have a virtual user id current set.");
}
return this.virtualUserID;
}
set
{
this.virtualUserID = value;
if (value.name.Length > 0)
{
this.isVirtualUser = true;
}
else
{
this.isVirtualUser = false;
}
}
}
// Token: 0x17000292 RID: 658
// (get) Token: 0x06000572 RID: 1394 RVA: 0x0000F7B0 File Offset: 0x0000E7B0
public bool IsVirtualUser
{
get
{
return this.isVirtualUser;
}
}
// Token: 0x06000573 RID: 1395 RVA: 0x0000F7C8 File Offset: 0x0000E7C8
public DeleteDataRequest()
: base(ServiceTypes.Tus, FunctionTypes.TusDeleteData)
{
}
// Token: 0x04000402 RID: 1026
public const int MAX_DATA_SLOTS = 16;
// Token: 0x04000403 RID: 1027
internal ulong numSlots;
// Token: 0x04000404 RID: 1028
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
private int[] slotIds = new int[16];
// Token: 0x04000405 RID: 1029
internal Core.NpAccountId targetUser;
// Token: 0x04000406 RID: 1030
internal Tus.VirtualUserID virtualUserID;
// Token: 0x04000407 RID: 1031
[MarshalAs(UnmanagedType.I1)]
internal bool isVirtualUser;
}
// Token: 0x02000102 RID: 258
public class VariablesResponse : ResponseBase
{
// Token: 0x17000293 RID: 659
// (get) Token: 0x06000574 RID: 1396 RVA: 0x0000F7E4 File Offset: 0x0000E7E4
public bool ForCrossSave
{
get
{
return this.forCrossSave;
}
}
// Token: 0x17000294 RID: 660
// (get) Token: 0x06000575 RID: 1397 RVA: 0x0000F7FC File Offset: 0x0000E7FC
public Tus.NpVariable[] Vars
{
get
{
if (this.forCrossSave)
{
throw new NpToolkitException("Vars isn't valid unless 'ForCrossSave' is set to false.");
}
return this.vars;
}
}
// Token: 0x17000295 RID: 661
// (get) Token: 0x06000576 RID: 1398 RVA: 0x0000F830 File Offset: 0x0000E830
public Tus.NpVariableForCrossSave[] VarsForCrossSave
{
get
{
if (!this.forCrossSave)
{
throw new NpToolkitException("VarsForCrossSave isn't valid unless 'ForCrossSave' is set to true.");
}
return this.varsForCrossSave;
}
}
// Token: 0x06000577 RID: 1399 RVA: 0x0000F860 File Offset: 0x0000E860
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TusVariablesBegin);
long num = memoryBuffer.ReadInt64();
this.forCrossSave = memoryBuffer.ReadBool();
if (this.forCrossSave)
{
this.varsForCrossSave = new Tus.NpVariableForCrossSave[num];
}
else
{
this.vars = new Tus.NpVariable[num];
}
int num2 = 0;
while ((long)num2 < num)
{
if (this.forCrossSave)
{
this.varsForCrossSave[num2] = new Tus.NpVariableForCrossSave();
this.varsForCrossSave[num2].Read(memoryBuffer);
}
else
{
this.vars[num2] = new Tus.NpVariable();
this.vars[num2].Read(memoryBuffer);
}
num2++;
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TusVariablesEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000408 RID: 1032
internal bool forCrossSave;
// Token: 0x04000409 RID: 1033
internal Tus.NpVariable[] vars;
// Token: 0x0400040A RID: 1034
internal Tus.NpVariableForCrossSave[] varsForCrossSave;
}
// Token: 0x02000103 RID: 259
public class AtomicAddToAndGetVariableResponse : ResponseBase
{
// Token: 0x17000296 RID: 662
// (get) Token: 0x06000579 RID: 1401 RVA: 0x0000F960 File Offset: 0x0000E960
public bool ForCrossSave
{
get
{
return this.forCrossSave;
}
}
// Token: 0x17000297 RID: 663
// (get) Token: 0x0600057A RID: 1402 RVA: 0x0000F978 File Offset: 0x0000E978
public Tus.NpVariable Var
{
get
{
if (this.forCrossSave)
{
throw new NpToolkitException("Vars isn't valid unless 'ForCrossSave' is set to false.");
}
return this.var;
}
}
// Token: 0x17000298 RID: 664
// (get) Token: 0x0600057B RID: 1403 RVA: 0x0000F9AC File Offset: 0x0000E9AC
public Tus.NpVariableForCrossSave VarForCrossSave
{
get
{
if (!this.forCrossSave)
{
throw new NpToolkitException("VarsForCrossSave isn't valid unless 'ForCrossSave' is set to true.");
}
return this.varForCrossSave;
}
}
// Token: 0x0600057C RID: 1404 RVA: 0x0000F9DC File Offset: 0x0000E9DC
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TusAtomicAddToAndGetVariableBegin);
this.forCrossSave = memoryBuffer.ReadBool();
if (this.forCrossSave)
{
this.varForCrossSave = new Tus.NpVariableForCrossSave();
this.varForCrossSave.Read(memoryBuffer);
}
else
{
this.var = new Tus.NpVariable();
this.var.Read(memoryBuffer);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TusAtomicAddToAndGetVariableEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x0400040B RID: 1035
internal bool forCrossSave;
// Token: 0x0400040C RID: 1036
internal Tus.NpVariable var;
// Token: 0x0400040D RID: 1037
internal Tus.NpVariableForCrossSave varForCrossSave;
}
// Token: 0x02000104 RID: 260
public class GetDataResponse : ResponseBase
{
// Token: 0x17000299 RID: 665
// (get) Token: 0x0600057E RID: 1406 RVA: 0x0000FA88 File Offset: 0x0000EA88
public byte[] Data
{
get
{
return this.data;
}
}
// Token: 0x1700029A RID: 666
// (get) Token: 0x0600057F RID: 1407 RVA: 0x0000FAA0 File Offset: 0x0000EAA0
public bool ForCrossSave
{
get
{
return this.forCrossSave;
}
}
// Token: 0x1700029B RID: 667
// (get) Token: 0x06000580 RID: 1408 RVA: 0x0000FAB8 File Offset: 0x0000EAB8
public Tus.NpTusDataStatus Status
{
get
{
if (this.forCrossSave)
{
throw new NpToolkitException("Vars isn't valid unless 'ForCrossSave' is set to false.");
}
return this.status;
}
}
// Token: 0x1700029C RID: 668
// (get) Token: 0x06000581 RID: 1409 RVA: 0x0000FAEC File Offset: 0x0000EAEC
public Tus.NpTusDataStatusForCrossSave StatusForCrossSave
{
get
{
if (!this.forCrossSave)
{
throw new NpToolkitException("VarsForCrossSave isn't valid unless 'ForCrossSave' is set to true.");
}
return this.statusForCrossSave;
}
}
// Token: 0x06000582 RID: 1410 RVA: 0x0000FB1C File Offset: 0x0000EB1C
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TusDataBegin);
memoryBuffer.ReadData(ref this.data);
this.forCrossSave = memoryBuffer.ReadBool();
if (this.forCrossSave)
{
this.statusForCrossSave = new Tus.NpTusDataStatusForCrossSave();
this.statusForCrossSave.Read(memoryBuffer);
}
else
{
this.status = new Tus.NpTusDataStatus();
this.status.Read(memoryBuffer);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.TusDataEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x0400040E RID: 1038
internal bool forCrossSave;
// Token: 0x0400040F RID: 1039
internal Tus.NpTusDataStatus status;
// Token: 0x04000410 RID: 1040
internal Tus.NpTusDataStatusForCrossSave statusForCrossSave;
// Token: 0x04000411 RID: 1041
internal byte[] data;
}
}
}
+441
View File
@@ -0,0 +1,441 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x02000105 RID: 261
public class UserProfiles
{
// Token: 0x06000584 RID: 1412
[DllImport("UnityNpToolkit2")]
private static extern void PrxGetLocalLoginUserIds([MarshalAs(UnmanagedType.LPArray, SizeConst = 4)] [Out] UserProfiles.LocalLoginUserId[] users, int maxSize, out APIResult result);
// Token: 0x06000585 RID: 1413
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetNpProfiles(UserProfiles.GetNpProfilesRquest request, out APIResult result);
// Token: 0x06000586 RID: 1414
[DllImport("UnityNpToolkit2")]
private static extern int PrxGetVerifiedAccountsForTitle(UserProfiles.GetVerifiedAccountsForTitleRequest request, out APIResult result);
// Token: 0x06000587 RID: 1415
[DllImport("UnityNpToolkit2")]
private static extern int PrxDisplayUserProfileDialog(UserProfiles.DisplayUserProfileDialogRequest request, out APIResult result);
// Token: 0x06000588 RID: 1416
[DllImport("UnityNpToolkit2")]
private static extern int PrxDisplayGriefReportingDialog(UserProfiles.DisplayGriefReportingDialogRequest request, out APIResult result);
// Token: 0x06000589 RID: 1417 RVA: 0x0000FBD4 File Offset: 0x0000EBD4
public static void GetLocalUsers(UserProfiles.LocalUsers users)
{
APIResult apiresult;
UserProfiles.PrxGetLocalLoginUserIds(users.localUsers, 4, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
}
// Token: 0x0600058A RID: 1418 RVA: 0x0000FC08 File Offset: 0x0000EC08
public static int GetNpProfiles(UserProfiles.GetNpProfilesRquest request, UserProfiles.NpProfilesResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = UserProfiles.PrxGetNpProfiles(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600058B RID: 1419 RVA: 0x0000FC5C File Offset: 0x0000EC5C
public static int GetVerifiedAccountsForTitle(UserProfiles.GetVerifiedAccountsForTitleRequest request, UserProfiles.NpProfilesResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = UserProfiles.PrxGetVerifiedAccountsForTitle(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600058C RID: 1420 RVA: 0x0000FCB0 File Offset: 0x0000ECB0
public static int DisplayUserProfileDialog(UserProfiles.DisplayUserProfileDialogRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = UserProfiles.PrxDisplayUserProfileDialog(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0600058D RID: 1421 RVA: 0x0000FD04 File Offset: 0x0000ED04
public static int DisplayGriefReportingDialog(UserProfiles.DisplayGriefReportingDialogRequest request, Core.EmptyResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked.");
}
if (!request.reportAboutMe && !request.reportName && !request.reportOnlineId && !request.reportAboutMe)
{
throw new NpToolkitException("It is mandatory to specify at least one reason for the report.");
}
APIResult apiresult;
int num = UserProfiles.PrxDisplayGriefReportingDialog(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x02000106 RID: 262
public class LocalUsers
{
// Token: 0x1700029D RID: 669
// (get) Token: 0x0600058F RID: 1423 RVA: 0x0000FD90 File Offset: 0x0000ED90
public UserProfiles.LocalLoginUserId[] LocalUsersIds
{
get
{
return this.localUsers;
}
}
// Token: 0x04000412 RID: 1042
public const int MaxLocalUsers = 4;
// Token: 0x04000413 RID: 1043
internal UserProfiles.LocalLoginUserId[] localUsers = new UserProfiles.LocalLoginUserId[4];
}
// Token: 0x02000107 RID: 263
public struct LocalLoginUserId
{
// Token: 0x1700029E RID: 670
// (get) Token: 0x06000591 RID: 1425 RVA: 0x0000FDC0 File Offset: 0x0000EDC0
public Core.UserServiceUserId UserId
{
get
{
return this.userId;
}
}
// Token: 0x1700029F RID: 671
// (get) Token: 0x06000592 RID: 1426 RVA: 0x0000FDD8 File Offset: 0x0000EDD8
public Core.NpAccountId AccountId
{
get
{
return this.accountId;
}
}
// Token: 0x170002A0 RID: 672
// (get) Token: 0x06000593 RID: 1427 RVA: 0x0000FDF0 File Offset: 0x0000EDF0
public int SceErrorCode
{
get
{
return this.sceErrorCode;
}
}
// Token: 0x04000414 RID: 1044
internal Core.UserServiceUserId userId;
// Token: 0x04000415 RID: 1045
internal Core.NpAccountId accountId;
// Token: 0x04000416 RID: 1046
internal int sceErrorCode;
}
// Token: 0x02000108 RID: 264
public class NpProfilesResponse : ResponseBase
{
// Token: 0x170002A1 RID: 673
// (get) Token: 0x06000594 RID: 1428 RVA: 0x0000FE08 File Offset: 0x0000EE08
public Profiles.Profile[] Profiles
{
get
{
return this.profiles;
}
}
// Token: 0x06000595 RID: 1429 RVA: 0x0000FE20 File Offset: 0x0000EE20
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NpProfilesBegin);
uint num = memoryBuffer.ReadUInt32();
this.profiles = new Profiles.Profile[num];
int num2 = 0;
while ((long)num2 < (long)((ulong)num))
{
this.profiles[num2] = new Profiles.Profile();
this.profiles[num2].Read(memoryBuffer);
num2++;
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.NpProfilesEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000417 RID: 1047
internal Profiles.Profile[] profiles;
}
// Token: 0x02000109 RID: 265
[StructLayout(LayoutKind.Sequential)]
public class GetNpProfilesRquest : RequestBase
{
// Token: 0x170002A2 RID: 674
// (get) Token: 0x06000597 RID: 1431 RVA: 0x0000FEC4 File Offset: 0x0000EEC4
// (set) Token: 0x06000598 RID: 1432 RVA: 0x0000FF0C File Offset: 0x0000EF0C
public Core.NpAccountId[] AccountIds
{
get
{
Core.NpAccountId[] array;
if (this.numValidAccountIds == 0U)
{
array = null;
}
else
{
Core.NpAccountId[] array2 = new Core.NpAccountId[this.numValidAccountIds];
Array.Copy(this.accountIds, array2, (long)((ulong)this.numValidAccountIds));
array = array2;
}
return array;
}
set
{
if (value != null)
{
if (value.Length > 50)
{
throw new NpToolkitException("The size of the Account ids array is more than " + 50);
}
value.CopyTo(this.accountIds, 0);
this.numValidAccountIds = (uint)value.Length;
}
else
{
this.numValidAccountIds = 0U;
}
}
}
// Token: 0x06000599 RID: 1433 RVA: 0x0000FF6C File Offset: 0x0000EF6C
public GetNpProfilesRquest()
: base(ServiceTypes.UserProfile, FunctionTypes.UserProfileGetNpProfiles)
{
this.accountIds = new Core.NpAccountId[50];
this.numValidAccountIds = 0U;
}
// Token: 0x04000418 RID: 1048
public const int MAX_SIZE_ACCOUNT_IDS = 50;
// Token: 0x04000419 RID: 1049
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
internal Core.NpAccountId[] accountIds;
// Token: 0x0400041A RID: 1050
internal uint numValidAccountIds;
}
// Token: 0x0200010A RID: 266
[StructLayout(LayoutKind.Sequential)]
public class GetVerifiedAccountsForTitleRequest : RequestBase
{
// Token: 0x170002A3 RID: 675
// (get) Token: 0x0600059A RID: 1434 RVA: 0x0000FF90 File Offset: 0x0000EF90
// (set) Token: 0x0600059B RID: 1435 RVA: 0x0000FFA8 File Offset: 0x0000EFA8
public uint Limit
{
get
{
return this.limit;
}
set
{
this.limit = value;
}
}
// Token: 0x0600059C RID: 1436 RVA: 0x0000FFB2 File Offset: 0x0000EFB2
public GetVerifiedAccountsForTitleRequest()
: base(ServiceTypes.UserProfile, FunctionTypes.UserProfileGetVerifiedAccountsForTitle)
{
this.limit = 10U;
}
// Token: 0x0400041B RID: 1051
internal uint limit;
}
// Token: 0x0200010B RID: 267
[StructLayout(LayoutKind.Sequential)]
public class DisplayUserProfileDialogRequest : RequestBase
{
// Token: 0x170002A4 RID: 676
// (get) Token: 0x0600059D RID: 1437 RVA: 0x0000FFC8 File Offset: 0x0000EFC8
// (set) Token: 0x0600059E RID: 1438 RVA: 0x0000FFE0 File Offset: 0x0000EFE0
public Core.NpAccountId TargetAccountId
{
get
{
return this.targetAccountId;
}
set
{
this.targetAccountId = value;
}
}
// Token: 0x0600059F RID: 1439 RVA: 0x0000FFEA File Offset: 0x0000EFEA
public DisplayUserProfileDialogRequest()
: base(ServiceTypes.UserProfile, FunctionTypes.UserProfileDisplayUserProfileDialog)
{
}
// Token: 0x0400041C RID: 1052
internal Core.NpAccountId targetAccountId;
}
// Token: 0x0200010C RID: 268
[StructLayout(LayoutKind.Sequential)]
public class DisplayGriefReportingDialogRequest : RequestBase
{
// Token: 0x170002A5 RID: 677
// (get) Token: 0x060005A0 RID: 1440 RVA: 0x0000FFF8 File Offset: 0x0000EFF8
// (set) Token: 0x060005A1 RID: 1441 RVA: 0x00010010 File Offset: 0x0000F010
public Core.NpAccountId TargetAccountId
{
get
{
return this.targetAccountId;
}
set
{
this.targetAccountId = value;
}
}
// Token: 0x170002A6 RID: 678
// (get) Token: 0x060005A2 RID: 1442 RVA: 0x0001001C File Offset: 0x0000F01C
// (set) Token: 0x060005A3 RID: 1443 RVA: 0x00010034 File Offset: 0x0000F034
public bool ReportOnlineId
{
get
{
return this.reportOnlineId;
}
set
{
this.reportOnlineId = value;
}
}
// Token: 0x170002A7 RID: 679
// (get) Token: 0x060005A4 RID: 1444 RVA: 0x00010040 File Offset: 0x0000F040
// (set) Token: 0x060005A5 RID: 1445 RVA: 0x00010058 File Offset: 0x0000F058
public bool ReportName
{
get
{
return this.reportName;
}
set
{
this.reportName = value;
}
}
// Token: 0x170002A8 RID: 680
// (get) Token: 0x060005A6 RID: 1446 RVA: 0x00010064 File Offset: 0x0000F064
// (set) Token: 0x060005A7 RID: 1447 RVA: 0x0001007C File Offset: 0x0000F07C
public bool ReportPicture
{
get
{
return this.reportPicture;
}
set
{
this.reportPicture = value;
}
}
// Token: 0x170002A9 RID: 681
// (get) Token: 0x060005A8 RID: 1448 RVA: 0x00010088 File Offset: 0x0000F088
// (set) Token: 0x060005A9 RID: 1449 RVA: 0x000100A0 File Offset: 0x0000F0A0
public bool ReportAboutMe
{
get
{
return this.reportAboutMe;
}
set
{
this.reportAboutMe = value;
}
}
// Token: 0x060005AA RID: 1450 RVA: 0x000100AA File Offset: 0x0000F0AA
public DisplayGriefReportingDialogRequest()
: base(ServiceTypes.UserProfile, FunctionTypes.UserProfileDisplayGriefReportingDialog)
{
}
// Token: 0x0400041D RID: 1053
public Core.NpAccountId targetAccountId;
// Token: 0x0400041E RID: 1054
[MarshalAs(UnmanagedType.I1)]
public bool reportOnlineId;
// Token: 0x0400041F RID: 1055
[MarshalAs(UnmanagedType.I1)]
public bool reportName;
// Token: 0x04000420 RID: 1056
[MarshalAs(UnmanagedType.I1)]
public bool reportPicture;
// Token: 0x04000421 RID: 1057
[MarshalAs(UnmanagedType.I1)]
public bool reportAboutMe;
}
}
}
+114
View File
@@ -0,0 +1,114 @@
using System;
using System.Runtime.InteropServices;
namespace Sony.NP
{
// Token: 0x0200010D RID: 269
public class WordFilter
{
// Token: 0x060005AB RID: 1451
[DllImport("UnityNpToolkit2")]
private static extern int PrxFilterComment(WordFilter.FilterCommentRequest request, out APIResult result);
// Token: 0x060005AC RID: 1452 RVA: 0x000100B8 File Offset: 0x0000F0B8
public static int FilterComment(WordFilter.FilterCommentRequest request, WordFilter.SanitizedCommentResponse response)
{
if (response.locked)
{
throw new NpToolkitException("Response object is already locked");
}
APIResult apiresult;
int num = WordFilter.PrxFilterComment(request, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
RequestBase.FinaliseRequest(request, response, num);
return num;
}
// Token: 0x0200010E RID: 270
[StructLayout(LayoutKind.Sequential)]
public class FilterCommentRequest : RequestBase
{
// Token: 0x170002AA RID: 682
// (get) Token: 0x060005AE RID: 1454 RVA: 0x00010114 File Offset: 0x0000F114
// (set) Token: 0x060005AF RID: 1455 RVA: 0x0001012C File Offset: 0x0000F12C
public string Comment
{
get
{
return this.comment;
}
set
{
if (value.Length > 1024)
{
throw new NpToolkitException("The size of the string is more than " + 1024 + " characters.");
}
this.comment = value;
}
}
// Token: 0x060005B0 RID: 1456 RVA: 0x00010175 File Offset: 0x0000F175
public FilterCommentRequest()
: base(ServiceTypes.WordFilter, FunctionTypes.WordfilterFilterComment)
{
}
// Token: 0x04000422 RID: 1058
public const int MAX_SIZE_COMMENT = 1024;
// Token: 0x04000423 RID: 1059
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1025)]
internal string comment;
}
// Token: 0x0200010F RID: 271
public class SanitizedCommentResponse : ResponseBase
{
// Token: 0x170002AB RID: 683
// (get) Token: 0x060005B1 RID: 1457 RVA: 0x00010184 File Offset: 0x0000F184
public string ResultComment
{
get
{
return this.resultComment;
}
}
// Token: 0x170002AC RID: 684
// (get) Token: 0x060005B2 RID: 1458 RVA: 0x0001019C File Offset: 0x0000F19C
public bool IsCommentChanged
{
get
{
return this.isCommentChanged;
}
}
// Token: 0x060005B3 RID: 1459 RVA: 0x000101B4 File Offset: 0x0000F1B4
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
{
base.ReadResult(id, apiCalled, request);
APIResult apiresult;
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
if (apiresult.RaiseException)
{
throw new NpToolkitException(apiresult);
}
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.WordFilterBegin);
memoryBuffer.ReadString(ref this.resultComment);
this.isCommentChanged = memoryBuffer.ReadBool();
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.WordFilterEnd);
base.EndReadResponseBuffer(memoryBuffer);
}
// Token: 0x04000424 RID: 1060
internal string resultComment;
// Token: 0x04000425 RID: 1061
internal bool isCommentChanged;
}
}
}