-
dump by Il2CppInspectorRedux namespace ParipariApi.Shared.Models.Campaigns
{
[MessagePackObject(false)]
public class CampainBonusMaster // TypeDefIndex: 13911
{
// Properties
[Key(0)]
public long? CharacterGroupMasterId { get; set; } // 0x0000000180691070-0x0000000180691080 0x00000001806910B0-0x00000001806910C0
[Key(1)]
public CampaignBonusTypes CampaignBonusType { get; set; } // 0x00000001806824F0-0x0000000180682500 0x00000001806A7790-0x00000001806A77A0
[Key(2)]
public int CampaignBonusValue { get; set; } // 0x00000001806A76F0-0x00000001806A7700 0x00000001806A7730-0x00000001806A7740
[Key(3)]
public long? MonsterGroupMasterId { get; set; } // 0x0000000180A73150-0x0000000180A73160 0x0000000180C38110-0x0000000180C38120
// Constructors
public CampainBonusMaster() {} // 0x000000018066F110-0x000000018066F120
}
} I want to get the Key value of the MessagePackObject.
I tried to get fieldInfo using the method get_Attributes,
|
Beta Was this translation helpful? Give feedback.
Answered by
KWINEKO
Jul 24, 2024
Replies: 1 comment
-
I solved it const properties = klass.type.object.method<Il2Cpp.Array<Il2Cpp.Object>>('GetProperties', 0).invoke()
for (var i = 0; i < properties.length; i++) {
const propertie = properties.get(i)
const attributes = propertie.method<Il2Cpp.Array<Il2Cpp.Object>>('GetCustomAttributes').invoke(true)
for (var j = 0; j < attributes.length; j++) {
const attribute = attributes.get(j)
if (attribute.toString() != 'MessagePack.KeyAttribute') continue |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vfsfitvnm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I solved it