rlabrecque / Steamworks.NET

Steamworks wrapper for Unity / C#
http://steamworks.github.io
MIT License
2.8k stars 368 forks source link

LobbyEnter_t.m_EChatRoomEnterResponse of type uint instead of an enum? #606

Open hedgewizards opened 6 months ago

hedgewizards commented 6 months ago

https://github.com/rlabrecque/Steamworks.NET/blob/37df82ec444f31a60741384b4ef46471f0fc0760/com.rlabrecque.steamworks.net/Runtime/autogen/SteamCallbacks.cs#L1135

this is a uint when we know the response is supposed to be an enum EChatRoomEnterResponse

Is there a good reason for this? i had to scramble to find the right value and write an explicit cast instead of getting a nice autocomplete.

rlabrecque commented 4 months ago

That's just how Valve has it as well :/

https://github.com/rlabrecque/Steamworks.NET/blob/37df82ec444f31a60741384b4ef46471f0fc0760/CodeGen/steam/isteammatchmaking.h#L775

For what ever reason the other callback they have it in is correct;