Cyrus Mod Loader
Loading...
Searching...
No Matches
PhysicsBehavior.h
1#pragma once
2#include <Cyrus/Shared.h>
3#include <Cyrus/Classes/BehaviorInstance.h>
4#include <Cyrus/Classes/CollisionBehavior.h>
5#include <Cyrus/Classes/CoreObject.h>
6#include <Cyrus/Classes/PropertyClass.h>
7
9public:
10 gid getNHolderGID() { // Property Generated Getter
11 return *reinterpret_cast<gid*>(reinterpret_cast<uintptr_t>(this) + 0x160);
12 }
13
14 void setNHolderGID(gid val) { // Property Generated Setter
15 *reinterpret_cast<gid*>(reinterpret_cast<uintptr_t>(this) + 0x160) = val;
16 }
17
18 Vector3D getVHoldOffset() { // Property Generated Getter
19 return *reinterpret_cast<Vector3D*>(reinterpret_cast<uintptr_t>(this) + 0x168);
20 }
21
22 void setVHoldOffset(Vector3D val) { // Property Generated Setter
23 *reinterpret_cast<Vector3D*>(reinterpret_cast<uintptr_t>(this) + 0x168) = val;
24 }
25
26 float getFHoldForce() { // Property Generated Getter
27 return *reinterpret_cast<float*>(reinterpret_cast<uintptr_t>(this) + 0x174);
28 }
29
30 void setFHoldForce(float val) { // Property Generated Setter
31 *reinterpret_cast<float*>(reinterpret_cast<uintptr_t>(this) + 0x174) = val;
32 }
33
34 bool IsEnabled() { // Function Generated
35 using FunctionPointerType = bool (*)(PhysicsBehavior *self);
36 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0x358830);
37 return inner(this);
38 }
39
40 bool IsResting() { // Function Generated
41 using FunctionPointerType = bool (*)(PhysicsBehavior *self);
42 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0x14BC3B0);
43 return inner(this);
44 }
45
46 void SetEnabled(bool a0) { // Function Generated
47 using FunctionPointerType = void (*)(PhysicsBehavior *self, bool a0);
48 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0x14B76C0);
49 return inner(this, a0);
50 }
51
52 bool CreateSimObject() { // Function Generated
53 using FunctionPointerType = bool (*)(PhysicsBehavior *self);
54 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0x14B76F0);
55 return inner(this);
56 }
57
58 bool DestroySimObject() { // Function Generated
59 using FunctionPointerType = bool (*)(PhysicsBehavior *self);
60 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0x14B7F10);
61 return inner(this);
62 }
63
64 PhysicsSimObject* GetSimObject() { // Function Generated
65 using FunctionPointerType = PhysicsSimObject* (*)(PhysicsBehavior *self);
66 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0x14BB8C0);
67 return inner(this);
68 }
69
71 using FunctionPointerType = PhysicsBehaviorTemplate* (*)(PhysicsBehavior *self);
72 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0x14BB7B0);
73 return inner(this);
74 }
75
76 CoreObject* GetHolder() { // Function Generated
77 using FunctionPointerType = CoreObject* (*)(PhysicsBehavior *self);
78 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0x14BB770);
79 return inner(this);
80 }
81
82 Vector3D GetHolderOffset() { // Function Generated
83 using FunctionPointerType = Vector3D (*)(PhysicsBehavior *self);
84 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0x14BB7A0);
85 return inner(this);
86 }
87
88 float GetHolderForce() { // Function Generated
89 using FunctionPointerType = float (*)(PhysicsBehavior *self);
90 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0x14BB790);
91 return inner(this);
92 }
93
94 bool Start() { // Function Generated
95 using FunctionPointerType = bool (*)(PhysicsBehavior *self);
96 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0xCA2424);
97 return inner(this);
98 }
99
100 bool Stop() { // Function Generated
101 using FunctionPointerType = bool (*)(PhysicsBehavior *self);
102 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0xCA2430);
103 return inner(this);
104 }
105
106 bool ApplyForce(Vector3D a0) { // Function Generated
107 using FunctionPointerType = bool (*)(PhysicsBehavior *self, Vector3D a0);
108 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0xCA243C);
109 return inner(this, a0);
110 }
111
112 bool ApplyTorque(Vector3D a0) { // Function Generated
113 using FunctionPointerType = bool (*)(PhysicsBehavior *self, Vector3D a0);
114 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0xCA2454);
115 return inner(this, a0);
116 }
117
118 bool Grab(CoreObject a0, Vector3D a1, float a2) { // Function Generated
119 using FunctionPointerType = bool (*)(PhysicsBehavior *self, CoreObject a0, Vector3D a1, float a2);
120 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0xCA2460);
121 return inner(this, a0, a1, a2);
122 }
123
124 bool Release(CoreObject a0) { // Function Generated
125 using FunctionPointerType = bool (*)(PhysicsBehavior *self, CoreObject a0);
126 FunctionPointerType inner = reinterpret_cast<FunctionPointerType>(__SHARED::base + 0xCA246C);
127 return inner(this, a0);
128 }
129
130};
Definition CollisionBehavior.h:6
Definition CoreObject.h:29
Definition PhysicsBehavior.h:8
float GetHolderForce()
Definition PhysicsBehavior.h:88
Vector3D getVHoldOffset()
Definition PhysicsBehavior.h:18
void setNHolderGID(gid val)
Definition PhysicsBehavior.h:14
bool Start()
Definition PhysicsBehavior.h:94
bool Grab(CoreObject a0, Vector3D a1, float a2)
Definition PhysicsBehavior.h:118
bool IsEnabled()
Definition PhysicsBehavior.h:34
bool Stop()
Definition PhysicsBehavior.h:100
bool IsResting()
Definition PhysicsBehavior.h:40
bool ApplyTorque(Vector3D a0)
Definition PhysicsBehavior.h:112
void SetEnabled(bool a0)
Definition PhysicsBehavior.h:46
float getFHoldForce()
Definition PhysicsBehavior.h:26
CoreObject * GetHolder()
Definition PhysicsBehavior.h:76
bool Release(CoreObject a0)
Definition PhysicsBehavior.h:124
bool ApplyForce(Vector3D a0)
Definition PhysicsBehavior.h:106
bool CreateSimObject()
Definition PhysicsBehavior.h:52
void setFHoldForce(float val)
Definition PhysicsBehavior.h:30
gid getNHolderGID()
Definition PhysicsBehavior.h:10
PhysicsBehaviorTemplate * GetPhysicsTemplate()
Definition PhysicsBehavior.h:70
Vector3D GetHolderOffset()
Definition PhysicsBehavior.h:82
void setVHoldOffset(Vector3D val)
Definition PhysicsBehavior.h:22
PhysicsSimObject * GetSimObject()
Definition PhysicsBehavior.h:64
bool DestroySimObject()
Definition PhysicsBehavior.h:58
Definition PhysicsBehaviorTemplate.h:8
Definition PhysicsSimObject.h:5
Definition shared.h:12