Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
#266: Introduce role assignment as Lobby Host (#288)
Browse files Browse the repository at this point in the history
* #266: Introduce role assignment as Lobby Host

* #266: Check max Imposter Amount
  • Loading branch information
DarkPenguin24 authored Jan 27, 2022
1 parent 0f6a80d commit 0b580d1
Show file tree
Hide file tree
Showing 10 changed files with 389 additions and 52 deletions.
254 changes: 252 additions & 2 deletions appdata/il2cpp-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -10508,7 +10508,7 @@ namespace app
#else
int32_t TaskBarMode;
#endif
void* RoleOptions;
struct RoleOptionsData* RoleOptions;
bool isDefaults;
void* settings;
};
Expand Down Expand Up @@ -10633,7 +10633,7 @@ namespace app
float ProtectionDurationSeconds;
float EngineerCooldown;
float EngineerInVentMaxTime;
void* roleRates;
struct Dictionary_2_RoleTypes_RoleOptionsData_RoleRate_* roleRates;
};

struct RoleOptionsData
Expand All @@ -10651,10 +10651,260 @@ namespace app
VirtualInvokeData ToString;
};

struct IEqualityComparer_1_RoleTypes_
{
struct IEqualityComparer_1_RoleTypes___Class* klass;
MonitorData* monitor;
};

struct IEqualityComparer_1_RoleTypes___StaticFields
{
};

struct IEqualityComparer_1_RoleTypes___VTable
{
VirtualInvokeData Equals;
VirtualInvokeData GetHashCode;
};

struct IEqualityComparer_1_RoleTypes___Class
{
Il2CppClass_0 _0;
Il2CppRuntimeInterfaceOffsetPair* interfaceOffsets;
struct IEqualityComparer_1_RoleTypes___StaticFields* static_fields;
const Il2CppRGCTXData* rgctx_data;
Il2CppClass_1 _1;
struct IEqualityComparer_1_RoleTypes___VTable vtable;
};

struct __declspec(align(4)) Dictionary_2_RoleTypes_RoleOptionsData_RoleRate___Fields
{
struct Int32__Array* buckets;
struct Dictionary_2_TKey_TValue_Entry_RoleTypes_RoleOptionsData_RoleRate___Array* entries;
int32_t count;
int32_t version;
int32_t freeList;
int32_t freeCount;
struct IEqualityComparer_1_RoleTypes_* comparer;
struct Dictionary_2_TKey_TValue_KeyCollection_RoleTypes_RoleOptionsData_RoleRate_* keys;
struct Dictionary_2_TKey_TValue_ValueCollection_RoleTypes_RoleOptionsData_RoleRate_* values;
struct Object* _syncRoot;
};

struct __declspec(align(4)) Dictionary_2_TKey_TValue_ValueCollection_RoleTypes_RoleOptionsData_RoleRate___Fields
{
struct Dictionary_2_RoleTypes_RoleOptionsData_RoleRate_* dictionary;
};

struct Dictionary_2_TKey_TValue_ValueCollection_RoleTypes_RoleOptionsData_RoleRate_
{
struct Dictionary_2_TKey_TValue_ValueCollection_RoleTypes_RoleOptionsData_RoleRate___Class* klass;
MonitorData* monitor;
struct Dictionary_2_TKey_TValue_ValueCollection_RoleTypes_RoleOptionsData_RoleRate___Fields fields;
};

struct Dictionary_2_TKey_TValue_ValueCollection_RoleTypes_RoleOptionsData_RoleRate___VTable
{
VirtualInvokeData Equals;
VirtualInvokeData Finalize;
VirtualInvokeData GetHashCode;
VirtualInvokeData ToString;
VirtualInvokeData get_Count;
VirtualInvokeData System_Collections_Generic_ICollection_TValue__get_IsReadOnly;
VirtualInvokeData System_Collections_Generic_ICollection_TValue__Add;
VirtualInvokeData System_Collections_Generic_ICollection_TValue__Clear;
VirtualInvokeData System_Collections_Generic_ICollection_TValue__Contains;
VirtualInvokeData CopyTo;
VirtualInvokeData System_Collections_Generic_ICollection_TValue__Remove;
VirtualInvokeData System_Collections_Generic_IEnumerable_TValue__GetEnumerator;
VirtualInvokeData System_Collections_IEnumerable_GetEnumerator;
VirtualInvokeData System_Collections_ICollection_CopyTo;
VirtualInvokeData get_Count_1;
VirtualInvokeData System_Collections_ICollection_get_SyncRoot;
VirtualInvokeData System_Collections_ICollection_get_IsSynchronized;
VirtualInvokeData get_Count_2;
};

struct Dictionary_2_TKey_TValue_ValueCollection_RoleTypes_RoleOptionsData_RoleRate___StaticFields
{
};

struct Dictionary_2_TKey_TValue_ValueCollection_RoleTypes_RoleOptionsData_RoleRate___Class
{
Il2CppClass_0 _0;
Il2CppRuntimeInterfaceOffsetPair* interfaceOffsets;
struct Dictionary_2_TKey_TValue_ValueCollection_RoleTypes_RoleOptionsData_RoleRate___StaticFields* static_fields;
const Il2CppRGCTXData* rgctx_data;
Il2CppClass_1 _1;
struct Dictionary_2_TKey_TValue_ValueCollection_RoleTypes_RoleOptionsData_RoleRate___VTable vtable;
};

struct __declspec(align(4)) Dictionary_2_TKey_TValue_KeyCollection_RoleTypes_RoleOptionsData_RoleRate___Fields
{
struct Dictionary_2_RoleTypes_RoleOptionsData_RoleRate_* dictionary;
};

struct Dictionary_2_TKey_TValue_KeyCollection_RoleTypes_RoleOptionsData_RoleRate_
{
struct Dictionary_2_TKey_TValue_KeyCollection_RoleTypes_RoleOptionsData_RoleRate___Class* klass;
MonitorData* monitor;
struct Dictionary_2_TKey_TValue_KeyCollection_RoleTypes_RoleOptionsData_RoleRate___Fields fields;
};

struct Dictionary_2_TKey_TValue_KeyCollection_RoleTypes_RoleOptionsData_RoleRate___VTable
{
VirtualInvokeData Equals;
VirtualInvokeData Finalize;
VirtualInvokeData GetHashCode;
VirtualInvokeData ToString;
VirtualInvokeData get_Count;
VirtualInvokeData System_Collections_Generic_ICollection_TKey__get_IsReadOnly;
VirtualInvokeData System_Collections_Generic_ICollection_TKey__Add;
VirtualInvokeData System_Collections_Generic_ICollection_TKey__Clear;
VirtualInvokeData System_Collections_Generic_ICollection_TKey__Contains;
VirtualInvokeData CopyTo;
VirtualInvokeData System_Collections_Generic_ICollection_TKey__Remove;
VirtualInvokeData System_Collections_Generic_IEnumerable_TKey__GetEnumerator;
VirtualInvokeData System_Collections_IEnumerable_GetEnumerator;
VirtualInvokeData System_Collections_ICollection_CopyTo;
VirtualInvokeData get_Count_1;
VirtualInvokeData System_Collections_ICollection_get_SyncRoot;
VirtualInvokeData System_Collections_ICollection_get_IsSynchronized;
VirtualInvokeData get_Count_2;
};

struct Dictionary_2_TKey_TValue_KeyCollection_RoleTypes_RoleOptionsData_RoleRate___StaticFields
{
};

struct Dictionary_2_TKey_TValue_KeyCollection_RoleTypes_RoleOptionsData_RoleRate___Class
{
Il2CppClass_0 _0;
Il2CppRuntimeInterfaceOffsetPair* interfaceOffsets;
struct Dictionary_2_TKey_TValue_KeyCollection_RoleTypes_RoleOptionsData_RoleRate___StaticFields* static_fields;
const Il2CppRGCTXData* rgctx_data;
Il2CppClass_1 _1;
struct Dictionary_2_TKey_TValue_KeyCollection_RoleTypes_RoleOptionsData_RoleRate___VTable vtable;
};

struct Dictionary_2_RoleTypes_RoleOptionsData_RoleRate_
{
struct Dictionary_2_RoleTypes_RoleOptionsData_RoleRate___Class* klass;
MonitorData* monitor;
struct Dictionary_2_RoleTypes_RoleOptionsData_RoleRate___Fields fields;
};

struct Dictionary_2_RoleTypes_RoleOptionsData_RoleRate___VTable
{
VirtualInvokeData Equals;
VirtualInvokeData Finalize;
VirtualInvokeData GetHashCode;
VirtualInvokeData ToString;
VirtualInvokeData get_Item;
VirtualInvokeData set_Item;
VirtualInvokeData System_Collections_Generic_IDictionary_TKey_TValue__get_Keys;
VirtualInvokeData System_Collections_Generic_IDictionary_TKey_TValue__get_Values;
VirtualInvokeData ContainsKey;
VirtualInvokeData Add;
VirtualInvokeData Remove;
VirtualInvokeData TryGetValue;
VirtualInvokeData get_Count;
VirtualInvokeData System_Collections_Generic_ICollection_System_Collections_Generic_KeyValuePair_TKey_TValue___get_IsReadOnly;
VirtualInvokeData System_Collections_Generic_ICollection_System_Collections_Generic_KeyValuePair_TKey_TValue___Add;
VirtualInvokeData Clear;
VirtualInvokeData System_Collections_Generic_ICollection_System_Collections_Generic_KeyValuePair_TKey_TValue___Contains;
VirtualInvokeData System_Collections_Generic_ICollection_System_Collections_Generic_KeyValuePair_TKey_TValue___CopyTo;
VirtualInvokeData System_Collections_Generic_ICollection_System_Collections_Generic_KeyValuePair_TKey_TValue___Remove;
VirtualInvokeData System_Collections_Generic_IEnumerable_System_Collections_Generic_KeyValuePair_TKey_TValue___GetEnumerator;
VirtualInvokeData System_Collections_IEnumerable_GetEnumerator;
VirtualInvokeData System_Collections_IDictionary_get_Item;
VirtualInvokeData System_Collections_IDictionary_set_Item;
VirtualInvokeData System_Collections_IDictionary_get_Keys;
VirtualInvokeData System_Collections_IDictionary_get_Values;
VirtualInvokeData System_Collections_IDictionary_Contains;
VirtualInvokeData System_Collections_IDictionary_Add;
VirtualInvokeData Clear_1;
VirtualInvokeData System_Collections_IDictionary_get_IsReadOnly;
VirtualInvokeData System_Collections_IDictionary_get_IsFixedSize;
VirtualInvokeData System_Collections_IDictionary_GetEnumerator;
VirtualInvokeData System_Collections_IDictionary_Remove;
VirtualInvokeData System_Collections_ICollection_CopyTo;
VirtualInvokeData get_Count_1;
VirtualInvokeData System_Collections_ICollection_get_SyncRoot;
VirtualInvokeData System_Collections_ICollection_get_IsSynchronized;
VirtualInvokeData TryGetValue_1;
VirtualInvokeData System_Collections_Generic_IReadOnlyDictionary_TKey_TValue__get_Keys;
VirtualInvokeData System_Collections_Generic_IReadOnlyDictionary_TKey_TValue__get_Values;
VirtualInvokeData get_Count_2;
VirtualInvokeData GetObjectData;
VirtualInvokeData OnDeserialization;
VirtualInvokeData GetObjectData_1;
VirtualInvokeData OnDeserialization_1;
};

struct Dictionary_2_RoleTypes_RoleOptionsData_RoleRate___Class
{
Il2CppClass_0 _0;
Il2CppRuntimeInterfaceOffsetPair* interfaceOffsets;
struct Dictionary_2_RoleTypes_RoleOptionsData_RoleRate___StaticFields* static_fields;
const Il2CppRGCTXData* rgctx_data;
Il2CppClass_1 _1;
struct Dictionary_2_RoleTypes_RoleOptionsData_RoleRate___VTable vtable;
};

struct Dictionary_2_RoleTypes_RoleOptionsData_RoleRate___StaticFields
{
};

struct RoleOptionsData_RoleRate
{
int32_t MaxCount;
int32_t Chance;
};

struct Dictionary_2_TKey_TValue_Entry_RoleTypes_RoleOptionsData_RoleRate_
{
int32_t hashCode;
int32_t next;
#if defined(_CPLUSPLUS_)
RoleTypes__Enum key;
#else
uint16_t key;
#endif
struct RoleOptionsData_RoleRate value;
};

struct Dictionary_2_TKey_TValue_Entry_RoleTypes_RoleOptionsData_RoleRate___Array
{
struct Dictionary_2_TKey_TValue_Entry_RoleTypes_RoleOptionsData_RoleRate___Array__Class* klass;
MonitorData* monitor;
Il2CppArrayBounds* bounds;
il2cpp_array_size_t max_length;
struct Dictionary_2_TKey_TValue_Entry_RoleTypes_RoleOptionsData_RoleRate_ vector[32];
};

struct Dictionary_2_TKey_TValue_Entry_RoleTypes_RoleOptionsData_RoleRate___Array__VTable
{
};

struct Dictionary_2_TKey_TValue_Entry_RoleTypes_RoleOptionsData_RoleRate___Array__Class
{
Il2CppClass_0 _0;
Il2CppRuntimeInterfaceOffsetPair* interfaceOffsets;
struct Dictionary_2_TKey_TValue_Entry_RoleTypes_RoleOptionsData_RoleRate___Array__StaticFields* static_fields;
const Il2CppRGCTXData* rgctx_data;
Il2CppClass_1 _1;
struct Dictionary_2_TKey_TValue_Entry_RoleTypes_RoleOptionsData_RoleRate___Array__VTable vtable;
};

struct RoleOptionsData__StaticFields
{
};

struct Dictionary_2_TKey_TValue_Entry_RoleTypes_RoleOptionsData_RoleRate___Array__StaticFields
{
};

struct RoleOptionsData__Class
{
Il2CppClass_0 _0;
Expand Down
Loading

0 comments on commit 0b580d1

Please sign in to comment.