[DiscordArchive] <@169121237539356673> ive been reading eluna source and i have a question, why are `Eluna::OnExpire`
[DiscordArchive] <@169121237539356673> ive been reading eluna source and i have a question, why are `Eluna::OnExpire`
Archived author: Tea • Posted: 2024-03-09T16:35:54.041000+00:00
Original source
one more question, ObjectGuid, where and how is it used on lua side? what would break if somebody wanted to change its representation from uint64 to string? (its 128 in modern client variants)
Archived author: Foe • Posted: 2024-03-09T16:41:42.619000+00:00
Original source
It's cast to number Lua side (unsigned long long), so the cases where we cast would have to be changed
There's not very many methods where we actually use ObjectGuid as is, we primarily use GUID low
Archived author: Foe • Posted: 2024-03-09T16:42:23.652000+00:00
Original source
https://github.com/ElunaLuaEngine/Eluna/...e.cpp#L545
[Embed: Eluna/LuaEngine.cpp at 9e32296c747197f86b5d4f5512838f75ff234d94 · E...]
Eluna Lua Engine © for WoW Emulators. Contribute to ElunaLuaEngine/Eluna development by creating an account on GitHub.
https://github.com/ElunaLuaEngine/Eluna/...Engine.cpp
Archived author: Foe • Posted: 2024-03-09T16:42:31.689000+00:00
Original source
This would be the primary to change
Archived author: Foe • Posted: 2024-03-09T16:42:44.026000+00:00
Original source
And here https://github.com/ElunaLuaEngine/Eluna/...e.cpp#L651
[Embed: Eluna/LuaEngine.cpp at 9e32296c747197f86b5d4f5512838f75ff234d94 · E...]
Eluna Lua Engine © for WoW Emulators. Contribute to ElunaLuaEngine/Eluna development by creating an account on GitHub.
https://github.com/ElunaLuaEngine/Eluna/...Engine.cpp
Archived author: Tea • Posted: 2024-03-09T16:43:21.151000+00:00
Original source
that isnt going to work, full guid cannot be uniquely reconstructed from low
Archived author: Foe • Posted: 2024-03-09T16:47:36.278000+00:00
Original source
Changing those two above should be the only two places to change that I can see at a glance, then we'd just have to treat them as strings instead of uint long long
Archived author: Tea • Posted: 2024-03-09T16:48:49.870000+00:00
Original source
guids arent supposed to be arithmetic anyway, you should only print them or pass back unmodified
Archived author: Foe • Posted: 2024-03-09T16:48:51.602000+00:00
Original source
All the engine side structs use ObjectGuid as is, so we'd just have to change the representation Lua side
Archived author: Foe • Posted: 2024-03-09T16:48:57.647000+00:00
Original source
Yeah