-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMPGameModeClass.cs
30 lines (27 loc) · 1.13 KB
/
MPGameModeClass.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace PatcherYRpp
{
[StructLayout(LayoutKind.Explicit, Size = 64)]
public struct MPGameModeClass
{
private static IntPtr instance = new IntPtr(0xA8B23C);
static public ref MPGameModeClass Instance { get => ref instance.Convert<Pointer<MPGameModeClass>>().Ref.Ref; }
[FieldOffset(8)] public DynamicVectorClass<Pointer<MPTeam>> MPTeams;
[FieldOffset(32)] public UniStringPointer CSFTitle;
[FieldOffset(36)] public UniStringPointer CSFTooltip;
[FieldOffset(40)] public int MPModeIndex;
[FieldOffset(44)] public AnsiStringPointer INIFilename;
[FieldOffset(48)] public AnsiStringPointer MapFilter;
[FieldOffset(52)] public Bool AIAllowed;
[FieldOffset(56)] public Pointer<CCINIClass> INI;
[FieldOffset(60)] public Bool AlliesAllowed;
[FieldOffset(61)] public Bool wolTourney;
[FieldOffset(62)] public Bool wolClanTourney;
[FieldOffset(63)] public Bool MustAlly;
}
}