[DiscordArchive] The client is using *descriptors* with the *mirrors*. How does that work exactly?
[DiscordArchive] The client is using *descriptors* with the *mirrors*. How does that work exactly?
Archived author: Natrist • Posted: 2024-04-09T14:35:12.629000+00:00
Original source
The client is using *descriptors* with the *mirrors*. How does that work exactly?
Archived author: Natrist • Posted: 2024-04-09T14:36:46.542000+00:00
Original source
Like everything that should be a member variable of the object, corpse, player, unit, etc. classes are instead stored in an array in the Object class. I don't intend to fix it all up just yet but I would like to extract at least the player flags from that hellish nightmare of a code.
Archived author: Natrist • Posted: 2024-04-09T14:37:24.377000+00:00
Original source
Seems like someone just extracted everything from the client (says it's auto generated in the Object header file) and called it a day.
Archived author: Natrist • Posted: 2024-04-09T14:47:30.312000+00:00
Original source
Also, how do you know the player is stunned? Does that get sent in the compressed object update message?
Archived author: brotalnia • Posted: 2024-04-09T14:49:39.283000+00:00
Original source
you can see the stun unit flag is being applied
Archived author: brotalnia • Posted: 2024-04-09T14:56:16.164000+00:00
Original source
is this what you're referring to?
https://github.com/cmangos/mangos-wotlk/...ds.cpp#L29
[Embed: mangos-wotlk/src/game/Entities/UpdateFields.cpp at master · cmangos...]
C(ontinued)-MaNGOS is about: -- Doing WoW-Emulation Right! - cmangos/mangos-wotlk
https://github.com/cmangos/mangos-wotlk/...Fields.cpp
Archived author: brotalnia • Posted: 2024-04-09T14:56:44.819000+00:00
Original source
the flags need to be used to decide who can see updates to a given field
Archived author: brotalnia • Posted: 2024-04-09T14:57:18.563000+00:00
Original source
for example those with UF_FLAG_PRIVATE are only seen by the player himself, others dont receive those fields in the update object packet
Archived author: Natrist • Posted: 2024-04-09T15:01:50.270000+00:00
Original source
Yes I think that’s it but what I don’t get is why it is implemented in that way on the server side, when the client clearly has the fields in member variables.