Files
Dec2017-Script-Dump/SonyNP/ContentRestriction.cs
T
2026-06-04 11:42:34 +02:00

111 lines
2.5 KiB
C#

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;
}
}