Give enums an appropriate type

This commit is contained in:
Garry Newman 2020-02-12 15:43:53 +00:00
parent 48fdfa1d0d
commit a39ff138ce
2 changed files with 162 additions and 146 deletions

View File

@ -9,16 +9,16 @@ namespace Steamworks
// //
// ESteamIPType // ESteamIPType
// //
internal enum SteamIPType : uint internal enum SteamIPType : int
{ {
SteamIPType4 = 0, Type4 = 0,
SteamIPType6 = 1, Type6 = 1,
} }
// //
// EUniverse // EUniverse
// //
public enum Universe : uint public enum Universe : int
{ {
Invalid = 0, Invalid = 0,
Public = 1, Public = 1,
@ -31,7 +31,7 @@ namespace Steamworks
// //
// EResult // EResult
// //
public enum Result : uint public enum Result : int
{ {
None = 0, None = 0,
OK = 1, OK = 1,
@ -153,7 +153,7 @@ namespace Steamworks
// //
// EVoiceResult // EVoiceResult
// //
internal enum VoiceResult : uint internal enum VoiceResult : int
{ {
OK = 0, OK = 0,
NotInitialized = 1, NotInitialized = 1,
@ -170,7 +170,7 @@ namespace Steamworks
// //
// EDenyReason // EDenyReason
// //
internal enum DenyReason : uint internal enum DenyReason : int
{ {
Invalid = 0, Invalid = 0,
InvalidVersion = 1, InvalidVersion = 1,
@ -193,7 +193,7 @@ namespace Steamworks
// //
// EBeginAuthSessionResult // EBeginAuthSessionResult
// //
public enum BeginAuthResult : uint public enum BeginAuthResult : int
{ {
OK = 0, OK = 0,
InvalidTicket = 1, InvalidTicket = 1,
@ -206,7 +206,7 @@ namespace Steamworks
// //
// EAuthSessionResponse // EAuthSessionResponse
// //
public enum AuthResponse : uint public enum AuthResponse : int
{ {
OK = 0, OK = 0,
UserNotConnectedToSteam = 1, UserNotConnectedToSteam = 1,
@ -223,7 +223,7 @@ namespace Steamworks
// //
// EUserHasLicenseForAppResult // EUserHasLicenseForAppResult
// //
public enum UserHasLicenseForAppResult : uint public enum UserHasLicenseForAppResult : int
{ {
HasLicense = 0, HasLicense = 0,
DoesNotHaveLicense = 1, DoesNotHaveLicense = 1,
@ -233,7 +233,7 @@ namespace Steamworks
// //
// EAccountType // EAccountType
// //
internal enum AccountType : uint internal enum AccountType : int
{ {
Invalid = 0, Invalid = 0,
Individual = 1, Individual = 1,
@ -252,7 +252,7 @@ namespace Steamworks
// //
// EAppReleaseState // EAppReleaseState
// //
internal enum AppReleaseState : uint internal enum AppReleaseState : int
{ {
Unknown = 0, Unknown = 0,
Unavailable = 1, Unavailable = 1,
@ -264,7 +264,7 @@ namespace Steamworks
// //
// EAppOwnershipFlags // EAppOwnershipFlags
// //
internal enum AppOwnershipFlags : uint internal enum AppOwnershipFlags : int
{ {
None = 0, None = 0,
OwnsLicense = 1, OwnsLicense = 1,
@ -320,7 +320,7 @@ namespace Steamworks
// //
// ESteamUserStatType // ESteamUserStatType
// //
internal enum SteamUserStatType : uint internal enum SteamUserStatType : int
{ {
INVALID = 0, INVALID = 0,
INT = 1, INT = 1,
@ -334,7 +334,7 @@ namespace Steamworks
// //
// EChatEntryType // EChatEntryType
// //
internal enum ChatEntryType : uint internal enum ChatEntryType : int
{ {
Invalid = 0, Invalid = 0,
ChatMsg = 1, ChatMsg = 1,
@ -353,7 +353,7 @@ namespace Steamworks
// //
// EChatRoomEnterResponse // EChatRoomEnterResponse
// //
public enum RoomEnter : uint public enum RoomEnter : int
{ {
Success = 1, Success = 1,
DoesntExist = 2, DoesntExist = 2,
@ -372,7 +372,7 @@ namespace Steamworks
// //
// EChatSteamIDInstanceFlags // EChatSteamIDInstanceFlags
// //
internal enum ChatSteamIDInstanceFlags : uint internal enum ChatSteamIDInstanceFlags : int
{ {
AccountInstanceMask = 4095, AccountInstanceMask = 4095,
InstanceFlagClan = 524288, InstanceFlagClan = 524288,
@ -383,7 +383,7 @@ namespace Steamworks
// //
// EMarketingMessageFlags // EMarketingMessageFlags
// //
internal enum MarketingMessageFlags : uint internal enum MarketingMessageFlags : int
{ {
None = 0, None = 0,
HighPriority = 1, HighPriority = 1,
@ -396,7 +396,7 @@ namespace Steamworks
// //
// ENotificationPosition // ENotificationPosition
// //
public enum NotificationPosition : uint public enum NotificationPosition : int
{ {
TopLeft = 0, TopLeft = 0,
TopRight = 1, TopRight = 1,
@ -407,7 +407,7 @@ namespace Steamworks
// //
// EBroadcastUploadResult // EBroadcastUploadResult
// //
public enum BroadcastUploadResult : uint public enum BroadcastUploadResult : int
{ {
None = 0, None = 0,
OK = 1, OK = 1,
@ -438,7 +438,7 @@ namespace Steamworks
// //
// ELaunchOptionType // ELaunchOptionType
// //
internal enum LaunchOptionType : uint internal enum LaunchOptionType : int
{ {
None = 0, None = 0,
Default = 1, Default = 1,
@ -462,7 +462,7 @@ namespace Steamworks
// //
// EVRHMDType // EVRHMDType
// //
internal enum VRHMDType : uint internal enum VRHMDType : int
{ {
MDType_None = -1, MDType_None = -1,
MDType_Unknown = 0, MDType_Unknown = 0,
@ -502,7 +502,7 @@ namespace Steamworks
// //
// EMarketNotAllowedReasonFlags // EMarketNotAllowedReasonFlags
// //
internal enum MarketNotAllowedReasonFlags : uint internal enum MarketNotAllowedReasonFlags : int
{ {
None = 0, None = 0,
TemporaryFailure = 1, TemporaryFailure = 1,
@ -526,7 +526,7 @@ namespace Steamworks
// //
// EDurationControlProgress // EDurationControlProgress
// //
internal enum DurationControlProgress : uint internal enum DurationControlProgress : int
{ {
Progress_Full = 0, Progress_Full = 0,
Progress_Half = 1, Progress_Half = 1,
@ -539,7 +539,7 @@ namespace Steamworks
// //
// EDurationControlNotification // EDurationControlNotification
// //
internal enum DurationControlNotification : uint internal enum DurationControlNotification : int
{ {
None = 0, None = 0,
DurationControlNotification1Hour = 1, DurationControlNotification1Hour = 1,
@ -554,7 +554,7 @@ namespace Steamworks
// //
// EGameIDType // EGameIDType
// //
internal enum GameIDType : uint internal enum GameIDType : int
{ {
App = 0, App = 0,
GameMod = 1, GameMod = 1,
@ -565,7 +565,7 @@ namespace Steamworks
// //
// EGameSearchErrorCode_t // EGameSearchErrorCode_t
// //
internal enum GameSearchErrorCode_t : uint internal enum GameSearchErrorCode_t : int
{ {
OK = 1, OK = 1,
Failed_Search_Already_In_Progress = 2, Failed_Search_Already_In_Progress = 2,
@ -581,7 +581,7 @@ namespace Steamworks
// //
// EPlayerResult_t // EPlayerResult_t
// //
internal enum PlayerResult_t : uint internal enum PlayerResult_t : int
{ {
FailedToConnect = 1, FailedToConnect = 1,
Abandoned = 2, Abandoned = 2,
@ -593,7 +593,7 @@ namespace Steamworks
// //
// ESteamIPv6ConnectivityProtocol // ESteamIPv6ConnectivityProtocol
// //
internal enum SteamIPv6ConnectivityProtocol : uint internal enum SteamIPv6ConnectivityProtocol : int
{ {
Invalid = 0, Invalid = 0,
HTTP = 1, HTTP = 1,
@ -603,7 +603,7 @@ namespace Steamworks
// //
// ESteamIPv6ConnectivityState // ESteamIPv6ConnectivityState
// //
internal enum SteamIPv6ConnectivityState : uint internal enum SteamIPv6ConnectivityState : int
{ {
Unknown = 0, Unknown = 0,
Good = 1, Good = 1,
@ -613,7 +613,7 @@ namespace Steamworks
// //
// EFailureType // EFailureType
// //
internal enum FailureType : uint internal enum FailureType : int
{ {
FlushedCallbackQueue = 0, FlushedCallbackQueue = 0,
PipeFail = 1, PipeFail = 1,
@ -622,7 +622,7 @@ namespace Steamworks
// //
// EFriendRelationship // EFriendRelationship
// //
public enum Relationship : uint public enum Relationship : int
{ {
None = 0, None = 0,
Blocked = 1, Blocked = 1,
@ -638,7 +638,7 @@ namespace Steamworks
// //
// EPersonaState // EPersonaState
// //
public enum FriendState : uint public enum FriendState : int
{ {
Offline = 0, Offline = 0,
Online = 1, Online = 1,
@ -654,7 +654,7 @@ namespace Steamworks
// //
// EFriendFlags // EFriendFlags
// //
public enum FriendFlags : uint public enum FriendFlags : int
{ {
None = 0, None = 0,
Blocked = 1, Blocked = 1,
@ -673,7 +673,7 @@ namespace Steamworks
// //
// EUserRestriction // EUserRestriction
// //
internal enum UserRestriction : uint internal enum UserRestriction : int
{ {
None = 0, None = 0,
Unknown = 1, Unknown = 1,
@ -688,7 +688,7 @@ namespace Steamworks
// //
// EOverlayToStoreFlag // EOverlayToStoreFlag
// //
internal enum OverlayToStoreFlag : uint internal enum OverlayToStoreFlag : int
{ {
None = 0, None = 0,
AddToCart = 1, AddToCart = 1,
@ -698,7 +698,7 @@ namespace Steamworks
// //
// EActivateGameOverlayToWebPageMode // EActivateGameOverlayToWebPageMode
// //
internal enum ActivateGameOverlayToWebPageMode : uint internal enum ActivateGameOverlayToWebPageMode : int
{ {
Default = 0, Default = 0,
Modal = 1, Modal = 1,
@ -707,7 +707,7 @@ namespace Steamworks
// //
// EPersonaChange // EPersonaChange
// //
internal enum PersonaChange : uint internal enum PersonaChange : int
{ {
Name = 1, Name = 1,
Status = 2, Status = 2,
@ -729,7 +729,7 @@ namespace Steamworks
// //
// ESteamAPICallFailure // ESteamAPICallFailure
// //
internal enum SteamAPICallFailure : uint internal enum SteamAPICallFailure : int
{ {
None = -1, None = -1,
SteamGone = 0, SteamGone = 0,
@ -741,7 +741,7 @@ namespace Steamworks
// //
// EGamepadTextInputMode // EGamepadTextInputMode
// //
public enum GamepadTextInputMode : uint public enum GamepadTextInputMode : int
{ {
Normal = 0, Normal = 0,
Password = 1, Password = 1,
@ -750,7 +750,7 @@ namespace Steamworks
// //
// EGamepadTextInputLineMode // EGamepadTextInputLineMode
// //
public enum GamepadTextInputLineMode : uint public enum GamepadTextInputLineMode : int
{ {
SingleLine = 0, SingleLine = 0,
MultipleLines = 1, MultipleLines = 1,
@ -759,7 +759,7 @@ namespace Steamworks
// //
// ECheckFileSignature // ECheckFileSignature
// //
public enum CheckFileSignature : uint public enum CheckFileSignature : int
{ {
InvalidSignature = 0, InvalidSignature = 0,
ValidSignature = 1, ValidSignature = 1,
@ -771,7 +771,7 @@ namespace Steamworks
// //
// EMatchMakingServerResponse // EMatchMakingServerResponse
// //
internal enum MatchMakingServerResponse : uint internal enum MatchMakingServerResponse : int
{ {
ServerResponded = 0, ServerResponded = 0,
ServerFailedToRespond = 1, ServerFailedToRespond = 1,
@ -781,7 +781,7 @@ namespace Steamworks
// //
// ELobbyType // ELobbyType
// //
internal enum LobbyType : uint internal enum LobbyType : int
{ {
Private = 0, Private = 0,
FriendsOnly = 1, FriendsOnly = 1,
@ -793,7 +793,7 @@ namespace Steamworks
// //
// ELobbyComparison // ELobbyComparison
// //
internal enum LobbyComparison : uint internal enum LobbyComparison : int
{ {
EqualToOrLessThan = -2, EqualToOrLessThan = -2,
LessThan = -1, LessThan = -1,
@ -806,7 +806,7 @@ namespace Steamworks
// //
// ELobbyDistanceFilter // ELobbyDistanceFilter
// //
internal enum LobbyDistanceFilter : uint internal enum LobbyDistanceFilter : int
{ {
Close = 0, Close = 0,
Default = 1, Default = 1,
@ -817,7 +817,7 @@ namespace Steamworks
// //
// EChatMemberStateChange // EChatMemberStateChange
// //
internal enum ChatMemberStateChange : uint internal enum ChatMemberStateChange : int
{ {
Entered = 1, Entered = 1,
Left = 2, Left = 2,
@ -829,7 +829,7 @@ namespace Steamworks
// //
// ESteamPartyBeaconLocationType // ESteamPartyBeaconLocationType
// //
internal enum SteamPartyBeaconLocationType : uint internal enum SteamPartyBeaconLocationType : int
{ {
Invalid = 0, Invalid = 0,
ChatGroup = 1, ChatGroup = 1,
@ -839,7 +839,7 @@ namespace Steamworks
// //
// ESteamPartyBeaconLocationData // ESteamPartyBeaconLocationData
// //
internal enum SteamPartyBeaconLocationData : uint internal enum SteamPartyBeaconLocationData : int
{ {
Invalid = 0, Invalid = 0,
Name = 1, Name = 1,
@ -851,7 +851,7 @@ namespace Steamworks
// //
// PlayerAcceptState_t // PlayerAcceptState_t
// //
internal enum PlayerAcceptState_t : uint internal enum PlayerAcceptState_t : int
{ {
Unknown = 0, Unknown = 0,
PlayerAccepted = 1, PlayerAccepted = 1,
@ -877,7 +877,7 @@ namespace Steamworks
// //
// ERemoteStoragePublishedFileVisibility // ERemoteStoragePublishedFileVisibility
// //
internal enum RemoteStoragePublishedFileVisibility : uint internal enum RemoteStoragePublishedFileVisibility : int
{ {
Public = 0, Public = 0,
FriendsOnly = 1, FriendsOnly = 1,
@ -888,7 +888,7 @@ namespace Steamworks
// //
// EWorkshopFileType // EWorkshopFileType
// //
internal enum WorkshopFileType : uint internal enum WorkshopFileType : int
{ {
First = 0, First = 0,
Community = 0, Community = 0,
@ -913,7 +913,7 @@ namespace Steamworks
// //
// EWorkshopVote // EWorkshopVote
// //
internal enum WorkshopVote : uint internal enum WorkshopVote : int
{ {
Unvoted = 0, Unvoted = 0,
For = 1, For = 1,
@ -924,7 +924,7 @@ namespace Steamworks
// //
// EWorkshopFileAction // EWorkshopFileAction
// //
internal enum WorkshopFileAction : uint internal enum WorkshopFileAction : int
{ {
Played = 0, Played = 0,
Completed = 1, Completed = 1,
@ -933,7 +933,7 @@ namespace Steamworks
// //
// EWorkshopEnumerationType // EWorkshopEnumerationType
// //
internal enum WorkshopEnumerationType : uint internal enum WorkshopEnumerationType : int
{ {
RankedByVote = 0, RankedByVote = 0,
Recent = 1, Recent = 1,
@ -947,7 +947,7 @@ namespace Steamworks
// //
// EWorkshopVideoProvider // EWorkshopVideoProvider
// //
internal enum WorkshopVideoProvider : uint internal enum WorkshopVideoProvider : int
{ {
None = 0, None = 0,
Youtube = 1, Youtube = 1,
@ -956,7 +956,7 @@ namespace Steamworks
// //
// EUGCReadAction // EUGCReadAction
// //
internal enum UGCReadAction : uint internal enum UGCReadAction : int
{ {
ontinueReadingUntilFinished = 0, ontinueReadingUntilFinished = 0,
ontinueReading = 1, ontinueReading = 1,
@ -966,7 +966,7 @@ namespace Steamworks
// //
// ELeaderboardDataRequest // ELeaderboardDataRequest
// //
internal enum LeaderboardDataRequest : uint internal enum LeaderboardDataRequest : int
{ {
Global = 0, Global = 0,
GlobalAroundUser = 1, GlobalAroundUser = 1,
@ -983,7 +983,7 @@ namespace Steamworks
// //
// ELeaderboardUploadScoreMethod // ELeaderboardUploadScoreMethod
// //
internal enum LeaderboardUploadScoreMethod : uint internal enum LeaderboardUploadScoreMethod : int
{ {
None = 0, None = 0,
KeepBest = 1, KeepBest = 1,
@ -993,7 +993,7 @@ namespace Steamworks
// //
// ERegisterActivationCodeResult // ERegisterActivationCodeResult
// //
internal enum RegisterActivationCodeResult : uint internal enum RegisterActivationCodeResult : int
{ {
ResultOK = 0, ResultOK = 0,
ResultFail = 1, ResultFail = 1,
@ -1005,7 +1005,7 @@ namespace Steamworks
// //
// EP2PSessionError // EP2PSessionError
// //
public enum P2PSessionError : uint public enum P2PSessionError : int
{ {
None = 0, None = 0,
NotRunningApp = 1, NotRunningApp = 1,
@ -1018,7 +1018,7 @@ namespace Steamworks
// //
// EP2PSend // EP2PSend
// //
public enum P2PSend : uint public enum P2PSend : int
{ {
Unreliable = 0, Unreliable = 0,
UnreliableNoDelay = 1, UnreliableNoDelay = 1,
@ -1029,7 +1029,7 @@ namespace Steamworks
// //
// ESNetSocketState // ESNetSocketState
// //
internal enum SNetSocketState : uint internal enum SNetSocketState : int
{ {
Invalid = 0, Invalid = 0,
Connected = 1, Connected = 1,
@ -1047,7 +1047,7 @@ namespace Steamworks
// //
// ESNetSocketConnectionType // ESNetSocketConnectionType
// //
internal enum SNetSocketConnectionType : uint internal enum SNetSocketConnectionType : int
{ {
NotConnected = 0, NotConnected = 0,
UDP = 1, UDP = 1,
@ -1057,7 +1057,7 @@ namespace Steamworks
// //
// EVRScreenshotType // EVRScreenshotType
// //
internal enum VRScreenshotType : uint internal enum VRScreenshotType : int
{ {
None = 0, None = 0,
Mono = 1, Mono = 1,
@ -1070,7 +1070,7 @@ namespace Steamworks
// //
// AudioPlayback_Status // AudioPlayback_Status
// //
public enum MusicStatus : uint public enum MusicStatus : int
{ {
Undefined = 0, Undefined = 0,
Playing = 1, Playing = 1,
@ -1081,7 +1081,7 @@ namespace Steamworks
// //
// EHTTPMethod // EHTTPMethod
// //
internal enum HTTPMethod : uint internal enum HTTPMethod : int
{ {
Invalid = 0, Invalid = 0,
GET = 1, GET = 1,
@ -1096,58 +1096,58 @@ namespace Steamworks
// //
// EHTTPStatusCode // EHTTPStatusCode
// //
internal enum HTTPStatusCode : uint internal enum HTTPStatusCode : int
{ {
Invalid = 0, Invalid = 0,
HTTPStatusCode100Continue = 100, Code100Continue = 100,
HTTPStatusCode101SwitchingProtocols = 101, Code101SwitchingProtocols = 101,
HTTPStatusCode200OK = 200, Code200OK = 200,
HTTPStatusCode201Created = 201, Code201Created = 201,
HTTPStatusCode202Accepted = 202, Code202Accepted = 202,
HTTPStatusCode203NonAuthoritative = 203, Code203NonAuthoritative = 203,
HTTPStatusCode204NoContent = 204, Code204NoContent = 204,
HTTPStatusCode205ResetContent = 205, Code205ResetContent = 205,
HTTPStatusCode206PartialContent = 206, Code206PartialContent = 206,
HTTPStatusCode300MultipleChoices = 300, Code300MultipleChoices = 300,
HTTPStatusCode301MovedPermanently = 301, Code301MovedPermanently = 301,
HTTPStatusCode302Found = 302, Code302Found = 302,
HTTPStatusCode303SeeOther = 303, Code303SeeOther = 303,
HTTPStatusCode304NotModified = 304, Code304NotModified = 304,
HTTPStatusCode305UseProxy = 305, Code305UseProxy = 305,
HTTPStatusCode307TemporaryRedirect = 307, Code307TemporaryRedirect = 307,
HTTPStatusCode400BadRequest = 400, Code400BadRequest = 400,
HTTPStatusCode401Unauthorized = 401, Code401Unauthorized = 401,
HTTPStatusCode402PaymentRequired = 402, Code402PaymentRequired = 402,
HTTPStatusCode403Forbidden = 403, Code403Forbidden = 403,
HTTPStatusCode404NotFound = 404, Code404NotFound = 404,
HTTPStatusCode405MethodNotAllowed = 405, Code405MethodNotAllowed = 405,
HTTPStatusCode406NotAcceptable = 406, Code406NotAcceptable = 406,
HTTPStatusCode407ProxyAuthRequired = 407, Code407ProxyAuthRequired = 407,
HTTPStatusCode408RequestTimeout = 408, Code408RequestTimeout = 408,
HTTPStatusCode409Conflict = 409, Code409Conflict = 409,
HTTPStatusCode410Gone = 410, Code410Gone = 410,
HTTPStatusCode411LengthRequired = 411, Code411LengthRequired = 411,
HTTPStatusCode412PreconditionFailed = 412, Code412PreconditionFailed = 412,
HTTPStatusCode413RequestEntityTooLarge = 413, Code413RequestEntityTooLarge = 413,
HTTPStatusCode414RequestURITooLong = 414, Code414RequestURITooLong = 414,
HTTPStatusCode415UnsupportedMediaType = 415, Code415UnsupportedMediaType = 415,
HTTPStatusCode416RequestedRangeNotSatisfiable = 416, Code416RequestedRangeNotSatisfiable = 416,
HTTPStatusCode417ExpectationFailed = 417, Code417ExpectationFailed = 417,
HTTPStatusCode4xxUnknown = 418, Code4xxUnknown = 418,
HTTPStatusCode429TooManyRequests = 429, Code429TooManyRequests = 429,
HTTPStatusCode500InternalServerError = 500, Code500InternalServerError = 500,
HTTPStatusCode501NotImplemented = 501, Code501NotImplemented = 501,
HTTPStatusCode502BadGateway = 502, Code502BadGateway = 502,
HTTPStatusCode503ServiceUnavailable = 503, Code503ServiceUnavailable = 503,
HTTPStatusCode504GatewayTimeout = 504, Code504GatewayTimeout = 504,
HTTPStatusCode505HTTPVersionNotSupported = 505, Code505HTTPVersionNotSupported = 505,
HTTPStatusCode5xxUnknown = 599, Code5xxUnknown = 599,
} }
// //
// EInputSourceMode // EInputSourceMode
// //
public enum InputSourceMode : uint public enum InputSourceMode : int
{ {
None = 0, None = 0,
Dpad = 1, Dpad = 1,
@ -1171,7 +1171,7 @@ namespace Steamworks
// //
// EInputActionOrigin // EInputActionOrigin
// //
internal enum InputActionOrigin : uint internal enum InputActionOrigin : int
{ {
None = 0, None = 0,
SteamController_A = 1, SteamController_A = 1,
@ -1438,7 +1438,7 @@ namespace Steamworks
// //
// EXboxOrigin // EXboxOrigin
// //
internal enum XboxOrigin : uint internal enum XboxOrigin : int
{ {
A = 0, A = 0,
B = 1, B = 1,
@ -1474,7 +1474,7 @@ namespace Steamworks
// //
// ESteamControllerPad // ESteamControllerPad
// //
internal enum SteamControllerPad : uint internal enum SteamControllerPad : int
{ {
Left = 0, Left = 0,
Right = 1, Right = 1,
@ -1483,7 +1483,7 @@ namespace Steamworks
// //
// ESteamInputType // ESteamInputType
// //
public enum InputType : uint public enum InputType : int
{ {
Unknown = 0, Unknown = 0,
SteamController = 1, SteamController = 1,
@ -1505,7 +1505,7 @@ namespace Steamworks
// //
// ESteamInputLEDFlag // ESteamInputLEDFlag
// //
internal enum SteamInputLEDFlag : uint internal enum SteamInputLEDFlag : int
{ {
SetColor = 0, SetColor = 0,
RestoreUserDefault = 1, RestoreUserDefault = 1,
@ -1514,7 +1514,7 @@ namespace Steamworks
// //
// EControllerActionOrigin // EControllerActionOrigin
// //
internal enum ControllerActionOrigin : uint internal enum ControllerActionOrigin : int
{ {
None = 0, None = 0,
A = 1, A = 1,
@ -1768,7 +1768,7 @@ namespace Steamworks
// //
// ESteamControllerLEDFlag // ESteamControllerLEDFlag
// //
internal enum SteamControllerLEDFlag : uint internal enum SteamControllerLEDFlag : int
{ {
SetColor = 0, SetColor = 0,
RestoreUserDefault = 1, RestoreUserDefault = 1,
@ -1777,7 +1777,7 @@ namespace Steamworks
// //
// EUGCMatchingUGCType // EUGCMatchingUGCType
// //
public enum UgcType : uint public enum UgcType : int
{ {
Items = 0, Items = 0,
Items_Mtx = 1, Items_Mtx = 1,
@ -1798,7 +1798,7 @@ namespace Steamworks
// //
// EUserUGCList // EUserUGCList
// //
internal enum UserUGCList : uint internal enum UserUGCList : int
{ {
Published = 0, Published = 0,
VotedOn = 1, VotedOn = 1,
@ -1814,7 +1814,7 @@ namespace Steamworks
// //
// EUserUGCListSortOrder // EUserUGCListSortOrder
// //
internal enum UserUGCListSortOrder : uint internal enum UserUGCListSortOrder : int
{ {
CreationOrderDesc = 0, CreationOrderDesc = 0,
CreationOrderAsc = 1, CreationOrderAsc = 1,
@ -1828,7 +1828,7 @@ namespace Steamworks
// //
// EUGCQuery // EUGCQuery
// //
internal enum UGCQuery : uint internal enum UGCQuery : int
{ {
RankedByVote = 0, RankedByVote = 0,
RankedByPublicationDate = 1, RankedByPublicationDate = 1,
@ -1854,7 +1854,7 @@ namespace Steamworks
// //
// EItemUpdateStatus // EItemUpdateStatus
// //
internal enum ItemUpdateStatus : uint internal enum ItemUpdateStatus : int
{ {
Invalid = 0, Invalid = 0,
PreparingConfig = 1, PreparingConfig = 1,
@ -1867,7 +1867,7 @@ namespace Steamworks
// //
// EItemState // EItemState
// //
internal enum ItemState : uint internal enum ItemState : int
{ {
None = 0, None = 0,
Subscribed = 1, Subscribed = 1,
@ -1881,7 +1881,7 @@ namespace Steamworks
// //
// EItemStatistic // EItemStatistic
// //
internal enum ItemStatistic : uint internal enum ItemStatistic : int
{ {
NumSubscriptions = 0, NumSubscriptions = 0,
NumFavorites = 1, NumFavorites = 1,
@ -1901,7 +1901,7 @@ namespace Steamworks
// //
// EItemPreviewType // EItemPreviewType
// //
internal enum ItemPreviewType : uint internal enum ItemPreviewType : int
{ {
Image = 0, Image = 0,
YouTubeVideo = 1, YouTubeVideo = 1,
@ -1914,7 +1914,7 @@ namespace Steamworks
// //
// EHTMLMouseButton // EHTMLMouseButton
// //
internal enum HTMLMouseButton : uint internal enum HTMLMouseButton : int
{ {
Left = 0, Left = 0,
Right = 1, Right = 1,
@ -1924,7 +1924,7 @@ namespace Steamworks
// //
// EMouseCursor // EMouseCursor
// //
internal enum MouseCursor : uint internal enum MouseCursor : int
{ {
user = 0, user = 0,
none = 1, none = 1,
@ -1973,7 +1973,7 @@ namespace Steamworks
// //
// EHTMLKeyModifiers // EHTMLKeyModifiers
// //
internal enum HTMLKeyModifiers : uint internal enum HTMLKeyModifiers : int
{ {
None = 0, None = 0,
AltDown = 1, AltDown = 1,
@ -1984,7 +1984,7 @@ namespace Steamworks
// //
// ESteamItemFlags // ESteamItemFlags
// //
internal enum SteamItemFlags : uint internal enum SteamItemFlags : int
{ {
NoTrade = 1, NoTrade = 1,
Removed = 256, Removed = 256,
@ -1994,7 +1994,7 @@ namespace Steamworks
// //
// ESteamTVRegionBehavior // ESteamTVRegionBehavior
// //
internal enum SteamTVRegionBehavior : uint internal enum SteamTVRegionBehavior : int
{ {
Invalid = -1, Invalid = -1,
Hover = 0, Hover = 0,
@ -2005,7 +2005,7 @@ namespace Steamworks
// //
// EParentalFeature // EParentalFeature
// //
public enum ParentalFeature : uint public enum ParentalFeature : int
{ {
Invalid = 0, Invalid = 0,
Store = 1, Store = 1,
@ -2027,7 +2027,7 @@ namespace Steamworks
// //
// ESteamDeviceFormFactor // ESteamDeviceFormFactor
// //
internal enum SteamDeviceFormFactor : uint internal enum SteamDeviceFormFactor : int
{ {
Unknown = 0, Unknown = 0,
Phone = 1, Phone = 1,
@ -2039,7 +2039,7 @@ namespace Steamworks
// //
// ESteamNetworkingAvailability // ESteamNetworkingAvailability
// //
internal enum SteamNetworkingAvailability : uint internal enum SteamNetworkingAvailability : int
{ {
CannotTry = -102, CannotTry = -102,
Failed = -101, Failed = -101,
@ -2056,7 +2056,7 @@ namespace Steamworks
// //
// ESteamNetworkingIdentityType // ESteamNetworkingIdentityType
// //
internal enum NetIdentityType : uint internal enum NetIdentityType : int
{ {
Invalid = 0, Invalid = 0,
SteamID = 16, SteamID = 16,
@ -2071,7 +2071,7 @@ namespace Steamworks
// //
// ESteamNetworkingConnectionState // ESteamNetworkingConnectionState
// //
internal enum ConnectionState : uint internal enum ConnectionState : int
{ {
None = 0, None = 0,
Connecting = 1, Connecting = 1,
@ -2088,7 +2088,7 @@ namespace Steamworks
// //
// ESteamNetConnectionEnd // ESteamNetConnectionEnd
// //
internal enum SteamNetConnectionEnd : uint internal enum SteamNetConnectionEnd : int
{ {
Invalid = 0, Invalid = 0,
App_Min = 1000, App_Min = 1000,
@ -2126,7 +2126,7 @@ namespace Steamworks
// //
// ESteamNetworkingConfigScope // ESteamNetworkingConfigScope
// //
internal enum NetScope : uint internal enum NetScope : int
{ {
_Global = 1, _Global = 1,
_SocketsInterface = 2, _SocketsInterface = 2,
@ -2138,7 +2138,7 @@ namespace Steamworks
// //
// ESteamNetworkingConfigDataType // ESteamNetworkingConfigDataType
// //
internal enum NetConfigType : uint internal enum NetConfigType : int
{ {
_Int32 = 1, _Int32 = 1,
_Int64 = 2, _Int64 = 2,
@ -2151,7 +2151,7 @@ namespace Steamworks
// //
// ESteamNetworkingConfigValue // ESteamNetworkingConfigValue
// //
internal enum NetConfig : uint internal enum NetConfig : int
{ {
_Invalid = 0, _Invalid = 0,
_FakePacketLoss_Send = 2, _FakePacketLoss_Send = 2,
@ -2195,7 +2195,7 @@ namespace Steamworks
// //
// ESteamNetworkingGetConfigValueResult // ESteamNetworkingGetConfigValueResult
// //
internal enum NetConfigResult : uint internal enum NetConfigResult : int
{ {
_BadValue = -1, _BadValue = -1,
_BadScopeObj = -2, _BadScopeObj = -2,
@ -2208,7 +2208,7 @@ namespace Steamworks
// //
// ESteamNetworkingSocketsDebugOutputType // ESteamNetworkingSocketsDebugOutputType
// //
internal enum DebugOutputType : uint internal enum DebugOutputType : int
{ {
None = 0, None = 0,
Bug = 1, Bug = 1,
@ -2225,7 +2225,7 @@ namespace Steamworks
// //
// EServerMode // EServerMode
// //
internal enum ServerMode : uint internal enum ServerMode : int
{ {
Invalid = 0, Invalid = 0,
NoAuthentication = 1, NoAuthentication = 1,

View File

@ -30,7 +30,16 @@ namespace Generator
if ( !Cleanup.ShouldCreate( name ) ) if ( !Cleanup.ShouldCreate( name ) )
continue; continue;
StartBlock( $"{Cleanup.Expose( name )} enum {name} : uint" ); var lowest = o.Values.Min( x => long.Parse( x.Value ) );
var highest = o.Values.Max( x => long.Parse( x.Value ) );
var t = "int";
if ( highest > int.MaxValue )
t = "uint";
StartBlock( $"{Cleanup.Expose( name )} enum {name} : {t}" );
{ {
// //
// If all the enum values start with the same // If all the enum values start with the same
@ -66,7 +75,14 @@ namespace Generator
// So just stick the enum name on the front // So just stick the enum name on the front
// //
if ( char.IsNumber( ename[0] ) ) if ( char.IsNumber( ename[0] ) )
ename = name + ename; {
var p = name;
if ( p == "HTTPStatusCode" ) p = "Code";
if ( p == "SteamIPType" ) p = "Type";
ename = p + ename;
}
WriteLine( $"{ename} = {entry.Value}," ); WriteLine( $"{ename} = {entry.Value}," );
} }