# MoePus-RemoteType **Repository Path**: AbstractFactory/MoePus-RemoteType ## Basic Information - **Project Name**: MoePus-RemoteType - **Description**: Hack to use Remote Class as a local struct - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-03-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # RemoteType A C++ Header only lib to help to write simple code to get remote class. ## How To Use 1. Include RemoteType.h 2. Implement your RPM method 3. Define Class with RemoteType ## Showcase ```C++ class ULevel :public UObject { public: UINT8 DONTCARE[152-sizeof(UObject)]; TArray Actors; TArray ActorsForGC; } class AActor : public UObject { public: UINT8 DONTCARE[0x140 - sizeof(UObject)]; ReflectPointer Instigator; TArray Children; ReflectPointer RootComponent; }; ``` ```C++ for (auto levelIndex = 1; levelIndex < levels.Num(); levelIndex++) { auto level = levels.get(levelIndex); auto liveActors = level->findLiveActors(); for (ReflectPointer actor_r : liveActors) { auto actor = actor_r.share(); if (!actor->Outer) continue; auto RootComponent = actor->RootComponent.share(); auto pos = RootComponent->ComponentToWorld.Translation; ... } } ```