[DiscordArchive] can some1 explain this to me ?
[DiscordArchive] can some1 explain this to me ?
Archived author: Anchy • Posted: 2023-05-05T04:52:35.449000+00:00
Original source
to be honest that function doesnt need to exist if its just a wrapper over GetLevel
Archived author: Anchy • Posted: 2023-05-05T04:53:23.250000+00:00
Original source
but it looks like the code is different depending on the context of the target
Archived author: Anchy • Posted: 2023-05-05T04:54:11.214000+00:00
Original source
where is this code located
Archived author: Rymercyble • Posted: 2023-05-05T04:54:15.422000+00:00
Original source
`uint8 getLevelForTarget(WorldObject const* /*target*/) const override { return GetLevel(); }` u know when i saw that unused parameter it finished me
Archived author: Rymercyble • Posted: 2023-05-05T04:54:33.690000+00:00
Original source
https://github.com/azerothcore/azerothco....cpp#L3309
Archived author: Anchy • Posted: 2023-05-05T04:55:13.804000+00:00
Original source
ah I see, it's in kind of a generic use case
Archived author: Anchy • Posted: 2023-05-05T04:55:21.247000+00:00
Original source
so in this case it makes sense instead of calling GetLevel directly
Archived author: Anchy • Posted: 2023-05-05T04:55:47.243000+00:00
Original source
but I agree the naming is not great
Archived author: Anchy • Posted: 2023-05-05T04:55:47.787000+00:00
Original source
lol
Archived author: Rymercyble • Posted: 2023-05-05T04:57:44.511000+00:00
Original source
what u wrote here would just work fine so using weird wrapper and saving it to variable with wrong name is just bad