mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 16:45:47 +00:00
IPC: Add functions to read the input move/copy objects from an IPC request.
This commit is contained in:
parent
eda468e4fb
commit
347ab620b5
3 changed files with 42 additions and 2 deletions
|
@ -147,6 +147,18 @@ public:
|
|||
return domain != nullptr;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
SharedPtr<T> GetCopyObject(size_t index) {
|
||||
ASSERT(index < copy_objects.size());
|
||||
return DynamicObjectCast(copy_objects[index]);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
SharedPtr<T> GetMoveObject(size_t index) {
|
||||
ASSERT(index < move_objects.size());
|
||||
return DynamicObjectCast(move_objects[index]);
|
||||
}
|
||||
|
||||
void AddMoveObject(SharedPtr<Object> object) {
|
||||
move_objects.emplace_back(std::move(object));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue