mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 16:15:46 +00:00
IPC: Add functions to read the input move/copy objects from an IPC request.
This commit is contained in:
parent
7e3561b1cd
commit
32847d8b86
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