summaryrefslogtreecommitdiff
path: root/src/fakerw
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-03 23:29:30 +0300
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-04 13:41:41 +0300
commit22e8202d27cf7a269ef06442d5be45ba58fbaf26 (patch)
tree40c772b5cb53c2e777cde8ef857c5ec3317ea012 /src/fakerw
parent5b081398b52b59306b102df1588ad00a3315f152 (diff)
Entity/Physical proof-read 1
Diffstat (limited to 'src/fakerw')
-rw-r--r--src/fakerw/fake.cpp1
-rw-r--r--src/fakerw/rwplcore.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp
index 37567927..863407b9 100644
--- a/src/fakerw/fake.cpp
+++ b/src/fakerw/fake.cpp
@@ -14,6 +14,7 @@
using namespace rw;
RwUInt8 RwObjectGetType(const RwObject *obj) { return obj->type; }
+RwFrame* rwObjectGetParent(const RwObject *obj) { return (RwFrame*)obj->parent; }
void *RwMalloc(size_t size) { return engine->memfuncs.rwmalloc(size, 0); }
diff --git a/src/fakerw/rwplcore.h b/src/fakerw/rwplcore.h
index 511f7678..69c921cc 100644
--- a/src/fakerw/rwplcore.h
+++ b/src/fakerw/rwplcore.h
@@ -108,12 +108,12 @@ enum RwCorePluginID
//struct RwObject;
typedef rw::Object RwObject;
+typedef rw::Frame RwFrame;
typedef RwObject *(*RwObjectCallBack)(RwObject *object, void *data);
RwUInt8 RwObjectGetType(const RwObject *obj);
-
-
+RwFrame* rwObjectGetParent(const RwObject *obj);
#define rwsprintf sprintf
#define rwvsprintf vsprintf