Cyrus Mod Loader
Loading...
Searching...
No Matches
SpawnItem.h
1#pragma once
2#include <Cyrus/Shared.h>
3#include <Cyrus/Classes/PropertyClass.h>
4
5class SpawnItem : public PropertyClass {
6public:
7 unsigned char getPercentChance() { // Property Generated Getter
8 return *reinterpret_cast<unsigned char*>(reinterpret_cast<uintptr_t>(this) + 0x48);
9 }
10
11 void setPercentChance(unsigned char val) { // Property Generated Setter
12 *reinterpret_cast<unsigned char*>(reinterpret_cast<uintptr_t>(this) + 0x48) = val;
13 }
14
15 SpawnObjectInfo* * getObjectInfo() { // Property Generated Getter
16 return reinterpret_cast<SpawnObjectInfo* *>(reinterpret_cast<uintptr_t>(this) + 0x50);
17 }
18
19 void setObjectInfo(SpawnObjectInfo* * val) { // Property Generated Setter
20 *reinterpret_cast<SpawnObjectInfo* **>(reinterpret_cast<uintptr_t>(this) + 0x50) = val;
21 }
22
23};
Base class for all property classes, providing reflection and serialization functionality.
Definition PropertyClass.h:86
Definition SpawnItem.h:5
void setPercentChance(unsigned char val)
Definition SpawnItem.h:11
void setObjectInfo(SpawnObjectInfo **val)
Definition SpawnItem.h:19
SpawnObjectInfo ** getObjectInfo()
Definition SpawnItem.h:15
unsigned char getPercentChance()
Definition SpawnItem.h:7
Definition SpawnObjectInfo.h:7