Initial work on spawning tangibles from Luprex

This commit is contained in:
2023-09-06 23:25:37 -04:00
parent 1482e5e43f
commit 4b3f36d7e7
6 changed files with 93 additions and 20 deletions

View File

@@ -20,10 +20,6 @@ void FLockedWrapper::InitWrapper() {
}
FString FLockedWrapper::FetchStdout() {
if (Lockable.Wrapper.engine == nullptr) {
return FString();
}
uint32_t ndata; const char* data;
Lockable.Wrapper.get_outgoing(Get(), 0, &ndata, &data);
@@ -38,3 +34,13 @@ FString FLockedWrapper::FetchStdout() {
return FString(cps.size(), (const UCS2CHAR*)(&cps[0]));
}
int64 FLockedWrapper::GetActor() {
return Lockable.Wrapper.get_actor_id(Get());
}
FLockedWrapper::IdList FLockedWrapper::GetNear(int64 id, double rx, double ry, double rz) {
uint32 size;
int64* data;
Lockable.Wrapper.get_tangibles_near(Get(), id, rx, ry, rz, &size, &data);
return IdList(data, size);
}