├── ProtoFire ├── Frames │ ├── FrameType.cs │ ├── MessageType.cs │ └── IFireFrame.cs ├── Captures │ └── Records │ │ ├── Perspective.cs │ │ ├── RecordType.cs │ │ ├── CaptureRecord.cs │ │ └── PacketRecord.cs ├── ProtoFire.csproj ├── Internal │ └── Utilities.cs └── Tls │ └── ProtoFireTlsAuthentication.cs ├── Blaze2SDK ├── Blaze │ ├── Clubs │ │ ├── ClubNewsFlags.cs │ │ ├── ClubAcceptanceFlags.cs │ │ ├── ClubArtSettingsFlags.cs │ │ ├── MessageType.cs │ │ ├── SeasonState.cs │ │ ├── TimeSortType.cs │ │ ├── RecordStatType.cs │ │ ├── MetaDataType.cs │ │ ├── PetitionsType.cs │ │ ├── MembershipStatus.cs │ │ ├── ArtPackageType.cs │ │ ├── InvitationsType.cs │ │ ├── NewsType.cs │ │ ├── MemberOnlineStatus.cs │ │ ├── ClubOnlineStatusUpdateReason.cs │ │ ├── JoinClubRequest.cs │ │ ├── GetMembersRequest.cs │ │ ├── ListRivalsRequest.cs │ │ ├── CreateClubResponse.cs │ │ ├── GetClubBansRequest.cs │ │ ├── GetUserBansRequest.cs │ │ ├── SendPetitionRequest.cs │ │ ├── CountMessagesResponse.cs │ │ └── GetClubAwardsRequest.cs │ ├── League │ │ ├── LeagueFlags.cs │ │ ├── NewsFormat.cs │ │ ├── InvitationOp.cs │ │ ├── NewsMsgType.cs │ │ ├── TradeOp.cs │ │ ├── TradeType.cs │ │ ├── ScheduleType.cs │ │ ├── PlayoffType.cs │ │ ├── InvitationsToGetType.cs │ │ ├── NewsParamType.cs │ │ ├── RunDraftRequest.cs │ │ ├── GetLeagueRequest.cs │ │ └── PositionPref.cs │ ├── Mail │ │ ├── EmailOptInFlags.cs │ │ └── EmailFormatPref.cs │ ├── UpnpStatus.cs │ ├── Stats │ │ ├── AggregateCalcFlags.cs │ │ ├── KeyScopeType.cs │ │ ├── AggregateType.cs │ │ ├── EntityCount.cs │ │ └── GetStatGroupRequest.cs │ ├── Locker │ │ ├── UploadStatus.cs │ │ ├── Permission.cs │ │ ├── ReferenceType.cs │ │ ├── LeaderboardType.cs │ │ ├── Status.cs │ │ ├── RefSearchFlag.cs │ │ └── PermissionFlag.cs │ ├── UserDataFlags.cs │ ├── HardwareFlags.cs │ ├── Messaging │ │ ├── ServerFlags.cs │ │ ├── MessageOrder.cs │ │ ├── MatchFlags.cs │ │ └── MessageFlags.cs │ ├── Authentication │ │ ├── Gender.cs │ │ ├── TOKENTYPE.cs │ │ ├── KeymasterCodeStatus.cs │ │ ├── EmailStatus.cs │ │ ├── EntitlementSearchFlag.cs │ │ ├── ExternalRefType.cs │ │ ├── EntitlementStatus.cs │ │ ├── EntitlementType.cs │ │ ├── PersonaStatus.cs │ │ ├── AccountField.cs │ │ ├── NucleusField.cs │ │ ├── AccountStatus.cs │ │ ├── ValidationError.cs │ │ ├── NucleusCause.cs │ │ ├── NucleusCode.cs │ │ ├── StatusReason.cs │ │ └── UseCount.cs │ ├── Playgroups │ │ ├── PlaygroupJoinability.cs │ │ ├── PlaygroupDestroyReason.cs │ │ ├── MemberPermissions.cs │ │ └── PlaygroupMemberRemoveReason.cs │ ├── GameManager │ │ ├── SlotType.cs │ │ ├── SkillValueOverride.cs │ │ ├── MatchmakingSessionMode.cs │ │ ├── PlayerNetConnectionStatus.cs │ │ ├── UpdateAdminListOperation.cs │ │ ├── HostMigrationType.cs │ │ ├── GameDestructionReason.cs │ │ ├── PlayerState.cs │ │ ├── GameState.cs │ │ ├── MatchmakingResult.cs │ │ ├── JoinMethod.cs │ │ ├── PlayerRemovedReason.cs │ │ ├── GameSettings.cs │ │ ├── MatchmakingCustomAsyncStatus.cs │ │ ├── MatchmakingCustomCriteriaData.cs │ │ ├── JoinGameResponse.cs │ │ ├── DNFRulePrefs.cs │ │ ├── NotifyGameCreated.cs │ │ └── ReplayGameRequest.cs │ ├── VoipTopology.cs │ ├── Rooms │ │ ├── RoomCategoryFlags.cs │ │ ├── RoomRemoved.cs │ │ ├── RoomViewRemoved.cs │ │ └── LeaveRoomRequest.cs │ ├── Redirector │ │ └── ServerAddressType.cs │ ├── ClientType.cs │ ├── Util │ │ ├── NatType.cs │ │ ├── FilterResult.cs │ │ ├── UserText.cs │ │ └── PingResponse.cs │ ├── GameNetworkTopology.cs │ ├── OnlineStatus.cs │ ├── Association │ │ └── ClearList.cs │ ├── Example │ │ └── ExampleError.cs │ └── Tournaments │ │ └── LeaveTournamentRequest.cs ├── Blaze2Router.cs └── Components │ ├── ExampleComponentBase.json │ ├── GpsContentControllerComponentBase.json │ ├── MailComponentBase.json │ └── CensusDataComponentBase.json ├── Blaze3SDK ├── Blaze │ ├── Clubs │ │ ├── ClubNewsFlags.cs │ │ ├── OrderMode.cs │ │ ├── ClubAcceptanceFlags.cs │ │ ├── ClubArtSettingsFlags.cs │ │ ├── MessageType.cs │ │ ├── SeasonState.cs │ │ ├── MemberOrder.cs │ │ ├── TimeSortType.cs │ │ ├── RecordStatType.cs │ │ ├── MetaDataType.cs │ │ ├── PetitionsType.cs │ │ ├── MembershipStatus.cs │ │ ├── MemberTypeFilter.cs │ │ ├── ArtPackageType.cs │ │ ├── InvitationsType.cs │ │ ├── PasswordOption.cs │ │ ├── TagSearchOperation.cs │ │ ├── NewsType.cs │ │ ├── ClubsOrder.cs │ │ ├── MemberOnlineStatus.cs │ │ ├── UpdateReason.cs │ │ ├── ListRivalsRequest.cs │ │ ├── CreateClubResponse.cs │ │ ├── DisbandClubRequest.cs │ │ ├── GetClubBansRequest.cs │ │ ├── GetUserBansRequest.cs │ │ ├── CountMessagesResponse.cs │ │ └── GetClubAwardsRequest.cs │ ├── League │ │ ├── LeagueFlags.cs │ │ ├── NewsFormat.cs │ │ ├── InvitationOp.cs │ │ ├── NewsMsgType.cs │ │ ├── TradeOp.cs │ │ ├── TradeType.cs │ │ ├── ScheduleType.cs │ │ ├── PlayoffType.cs │ │ ├── InvitationsToGetType.cs │ │ ├── NewsParamType.cs │ │ ├── LeagueState.cs │ │ ├── RunDraftRequest.cs │ │ ├── GetLeagueRequest.cs │ │ └── PositionPref.cs │ ├── Mail │ │ ├── EmailOptInFlags.cs │ │ └── EmailFormatPref.cs │ ├── Messaging │ │ ├── MatchFlags.cs │ │ ├── ServerFlags.cs │ │ ├── MessageFlags.cs │ │ └── MessageOrder.cs │ ├── Stats │ │ ├── AggregateCalcFlags.cs │ │ ├── CategoryType.cs │ │ ├── AggregateType.cs │ │ ├── StatPeriodType.cs │ │ ├── EntityCount.cs │ │ └── GetStatGroupRequest.cs │ ├── Locker │ │ ├── UploadStatus.cs │ │ ├── Status.cs │ │ ├── Permission.cs │ │ ├── LeaderboardType.cs │ │ ├── RefSearchFlag.cs │ │ └── PermissionFlag.cs │ ├── HardwareFlags.cs │ ├── Util │ │ ├── TelemetryOpt.cs │ │ ├── NatType.cs │ │ ├── PssReportTypes.cs │ │ ├── FilterResult.cs │ │ ├── UserText.cs │ │ ├── PingResponse.cs │ │ └── GetUserOptionsRequest.cs │ ├── UpnpStatus.cs │ ├── Authentication │ │ ├── Gender.cs │ │ ├── ProductCatalog.cs │ │ ├── TOKENTYPE.cs │ │ ├── KeymasterCodeStatus.cs │ │ ├── EmailStatus.cs │ │ ├── EntitlementSearchFlag.cs │ │ ├── EntitlementStatus.cs │ │ ├── PersonaStatus.cs │ │ ├── EntitlementType.cs │ │ ├── AccountStatus.cs │ │ ├── NucleusField.cs │ │ ├── ExternalRefType.cs │ │ ├── NucleusCause.cs │ │ ├── StatusReason.cs │ │ ├── UseCount.cs │ │ ├── OptInValue.cs │ │ └── OptInRequest.cs │ ├── UserDataFlags.cs │ ├── Association │ │ ├── ListStatusFlags.cs │ │ └── ListUpdateType.cs │ ├── Playgroups │ │ ├── PlaygroupJoinability.cs │ │ ├── PlaygroupDestroyReason.cs │ │ ├── MemberPermissions.cs │ │ └── PlaygroupMemberRemoveReason.cs │ ├── GameManager │ │ ├── SlotType.cs │ │ ├── JoinState.cs │ │ ├── SkillValueOverride.cs │ │ ├── MatchmakingSessionMode.cs │ │ ├── PlayerNetConnectionStatus.cs │ │ ├── UpdateAdminListOperation.cs │ │ ├── HostMigrationType.cs │ │ ├── GameEntryType.cs │ │ ├── PlayerNetConnectionFlags.cs │ │ ├── PlayerState.cs │ │ ├── DatalessContext.cs │ │ ├── GameState.cs │ │ ├── GameDestructionReason.cs │ │ ├── MatchmakingResult.cs │ │ ├── JoinMethod.cs │ │ ├── PlayerRemovedReason.cs │ │ ├── GameSettings.cs │ │ ├── MatchmakingCustomAsyncStatus.cs │ │ ├── MatchmakingCustomCriteriaData.cs │ │ ├── EjectHostRequest.cs │ │ ├── BannedListRequest.cs │ │ ├── DNFRulePrefs.cs │ │ ├── NotifyGameCreated.cs │ │ └── ReplayGameRequest.cs │ ├── VoipTopology.cs │ ├── PresenceMode.cs │ ├── Rooms │ │ ├── RoomCategoryFlags.cs │ │ ├── RoomRemoved.cs │ │ ├── RoomViewRemoved.cs │ │ ├── LeaveRoomRequest.cs │ │ └── BannedUserList.cs │ ├── Rsp │ │ ├── ServerType.cs │ │ ├── ServerStatus.cs │ │ ├── PurchaseStatus.cs │ │ └── GetGameDataRequest.cs │ ├── BlazeUpnpFlags.cs │ ├── Redirector │ │ ├── InstanceType.cs │ │ └── ServerAddressType.cs │ ├── ClientType.cs │ ├── GameReporting │ │ ├── GameReportPlayerFinishedStatus.cs │ │ └── GetGameReportQuery.cs │ ├── GameNetworkTopology.cs │ ├── ExternalSystemId.cs │ ├── OnlineStatus.cs │ ├── NotifyUserRemoved.cs │ ├── Example │ │ └── ExampleError.cs │ ├── DynamicInetFilter │ │ ├── AddResponse.cs │ │ └── RemoveRequest.cs │ ├── CheckOnlineStatusRequest.cs │ ├── FetchExtendedDataRequest.cs │ └── Tournaments │ │ └── LeaveTournamentRequest.cs ├── Blaze3Router.cs └── Components │ ├── ExampleComponentBase.json │ ├── GpsContentControllerComponentBase.json │ └── RedirectorComponentBase.json ├── EATDF ├── Serialization │ ├── TdfSerializerType.cs │ ├── ITdfRegistry.cs │ ├── ITdfSerializer.cs │ ├── XmlSerializer.cs │ ├── HeatSerializer.cs │ ├── TdfSerializer.cs │ ├── Heat2Serializer.cs │ └── TdfRegistry.cs ├── Xml │ └── XmlWriter.cs ├── EATDF.csproj ├── Heat2 │ ├── Heat2MemberHeader.cs │ └── Heat2Type.cs ├── Members │ ├── ITdfMember.cs │ ├── TdfFloat.cs │ ├── TdfBool.cs │ ├── TdfInt16.cs │ ├── TdfInt32.cs │ ├── TdfInt64.cs │ ├── TdfInt8.cs │ ├── TdfUInt8.cs │ ├── TdfUInt32.cs │ ├── TdfUInt64.cs │ ├── TdfUInt16.cs │ ├── TdfString.cs │ ├── TdfVariable.cs │ ├── TdfObjectId.cs │ ├── TdfTimeValue.cs │ ├── TdfObjectType.cs │ ├── TdfBlob.cs │ ├── TdfUnion.cs │ ├── TdfList.cs │ ├── TdfMember.cs │ ├── TdfMap.cs │ └── TdfStruct.cs ├── Heat │ ├── HeatMemberHeader.cs │ └── HeatType.cs ├── TdfType.cs ├── Extensions │ └── StreamExtensions.cs ├── Types │ ├── EmptyMessage.cs │ └── ObjectType.cs └── Internal │ └── RestorePoint.cs ├── Blaze.Core ├── IRpcCommandResult.cs ├── FrameEncoding.cs ├── IRpcNotificationFunc.cs ├── IBlazeComponent.cs ├── IBlazeRouter.cs ├── IRpcCommandFunc.cs ├── BlazePacket.cs ├── BlazeRpcContext.cs ├── Blaze.Core.csproj ├── IBlazeServerCallbacks.cs ├── BlazeRpcException.cs ├── RpcNotificationFunc.cs ├── BlazeServerConfig.cs ├── RpcCommandFunc.cs └── Utilities.cs ├── Blaze.Hosting └── Blaze.Hosting.csproj └── LICENSE.txt /ProtoFire/Frames/FrameType.cs: -------------------------------------------------------------------------------- 1 | namespace ProtoFire; 2 | 3 | public enum FrameType 4 | { 5 | FireFrame, 6 | Fire2Frame 7 | } 8 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/ClubNewsFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | [Flags] 4 | public enum ClubNewsFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/League/LeagueFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.League; 2 | 3 | [Flags] 4 | public enum LeagueFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/ClubNewsFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | [Flags] 4 | public enum ClubNewsFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/LeagueFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.League; 2 | 3 | [Flags] 4 | public enum LeagueFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /EATDF/Serialization/TdfSerializerType.cs: -------------------------------------------------------------------------------- 1 | namespace EATDF.Serialization; 2 | public enum TdfSerializerType 3 | { 4 | Heat, 5 | Heat2, 6 | Xml 7 | } 8 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Mail/EmailOptInFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Mail; 2 | 3 | [Flags] 4 | public enum EmailOptInFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/UpnpStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze; 2 | 3 | public enum UpnpStatus : int 4 | { 5 | UPNP_UNKNOWN = 0, 6 | UPNP_ENABLED = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Mail/EmailOptInFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Mail; 2 | 3 | [Flags] 4 | public enum EmailOptInFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Messaging/MatchFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Messaging; 2 | 3 | [Flags] 4 | public enum MatchFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Messaging/ServerFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Messaging; 2 | 3 | [Flags] 4 | public enum ServerFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Stats/AggregateCalcFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Stats; 2 | 3 | [Flags] 4 | public enum AggregateCalcFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/OrderMode.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum OrderMode : int 4 | { 5 | ASC_ORDER = 0, 6 | DESC_ORDER = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Stats/AggregateCalcFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Stats; 2 | 3 | [Flags] 4 | public enum AggregateCalcFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/ClubAcceptanceFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | [Flags] 4 | public enum ClubAcceptanceFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/ClubArtSettingsFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | [Flags] 4 | public enum ClubArtSettingsFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Locker/UploadStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Locker; 2 | 3 | public enum UploadStatus : int 4 | { 5 | SUCCESS = 0, 6 | FAILURE = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/ClubAcceptanceFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | [Flags] 4 | public enum ClubAcceptanceFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/ClubArtSettingsFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | [Flags] 4 | public enum ClubArtSettingsFlags : int 5 | { 6 | None = 0, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Locker/UploadStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Locker; 2 | 3 | public enum UploadStatus : int 4 | { 5 | SUCCESS = 0, 6 | FAILURE = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/UserDataFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze; 2 | 3 | [Flags] 4 | public enum UserDataFlags : uint 5 | { 6 | None = 0, 7 | Online = 1, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/MessageType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | public enum MessageType : int 4 | { 5 | CLUBS_INVITATION = 0, 6 | CLUBS_PETITION = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/MessageType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum MessageType : int 4 | { 5 | CLUBS_INVITATION = 0, 6 | CLUBS_PETITION = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/SeasonState.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | public enum SeasonState : int 4 | { 5 | CLUBS_IN_SEASON = 0, 6 | CLUBS_POST_SEASON = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/HardwareFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze; 2 | 3 | [Flags] 4 | public enum HardwareFlags : int 5 | { 6 | None = 0, 7 | VoipHeadsetStatus = 1, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/League/NewsFormat.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.League; 2 | 3 | public enum NewsFormat : int 4 | { 5 | NEWS_FMT_PLAIN_TEXT = 1, 6 | NEWS_FMT_HTML = 2, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/SeasonState.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum SeasonState : int 4 | { 5 | CLUBS_IN_SEASON = 0, 6 | CLUBS_POST_SEASON = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/HardwareFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze; 2 | 3 | [Flags] 4 | public enum HardwareFlags : int 5 | { 6 | None = 0, 7 | VoipHeadsetStatus = 1, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/NewsFormat.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.League; 2 | 3 | public enum NewsFormat : int 4 | { 5 | NEWS_FMT_PLAIN_TEXT = 1, 6 | NEWS_FMT_HTML = 2, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Util/TelemetryOpt.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Util; 2 | 3 | public enum TelemetryOpt : int 4 | { 5 | TELEMETRY_OPT_OUT = 0, 6 | TELEMETRY_OPT_IN = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/TimeSortType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | public enum TimeSortType : int 4 | { 5 | CLUBS_SORT_TIME_DESC = 0, 6 | CLUBS_SORT_TIME_ASC = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/League/InvitationOp.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.League; 2 | 3 | public enum InvitationOp : int 4 | { 5 | INVITATION_REJECT = 1, 6 | INVITATION_REVOKE = 2, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/League/NewsMsgType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.League; 2 | 3 | public enum NewsMsgType : int 4 | { 5 | NEWS_MSG_TYPE_SERVER = 1, 6 | NEWS_MSG_TYPE_USER = 2, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Mail/EmailFormatPref.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Mail; 2 | 3 | public enum EmailFormatPref : int 4 | { 5 | EMAIL_FORMAT_TEXT = 0, 6 | EMAIL_FORMAT_HTML = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Messaging/ServerFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Messaging; 2 | 3 | [Flags] 4 | public enum ServerFlags : uint 5 | { 6 | None = 0, 7 | Fetched = 1 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/MemberOrder.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum MemberOrder : int 4 | { 5 | MEMBER_NO_ORDER = 0, 6 | MEMBER_ORDER_BY_JOIN_TIME = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/TimeSortType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum TimeSortType : int 4 | { 5 | CLUBS_SORT_TIME_DESC = 0, 6 | CLUBS_SORT_TIME_ASC = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/InvitationOp.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.League; 2 | 3 | public enum InvitationOp : int 4 | { 5 | INVITATION_REJECT = 1, 6 | INVITATION_REVOKE = 2, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/NewsMsgType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.League; 2 | 3 | public enum NewsMsgType : int 4 | { 5 | NEWS_MSG_TYPE_SERVER = 1, 6 | NEWS_MSG_TYPE_USER = 2, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Locker/Status.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Locker; 2 | 3 | public enum Status : int 4 | { 5 | ACTIVE = 0, 6 | PENDING = 1, 7 | SHAREABLE = 4, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Mail/EmailFormatPref.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Mail; 2 | 3 | public enum EmailFormatPref : int 4 | { 5 | EMAIL_FORMAT_TEXT = 0, 6 | EMAIL_FORMAT_HTML = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Stats/KeyScopeType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Stats; 2 | 3 | public enum KeyScopeType : int 4 | { 5 | KEY_SCOPE_TYPE_STRING = 0, 6 | KEY_SCOPE_TYPE_NUMERIC = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Stats/CategoryType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Stats; 2 | 3 | public enum CategoryType : int 4 | { 5 | CATEGORY_TYPE_REGULAR = 0, 6 | CATEGORY_TYPE_GLOBAL = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/UpnpStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze; 2 | 3 | public enum UpnpStatus : int 4 | { 5 | UPNP_UNKNOWN = 0, 6 | UPNP_FOUND = 1, 7 | UPNP_ENABLED = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/Gender.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum Gender : int 4 | { 5 | UNKNOWN = 0, 6 | FEMALE = 1, 7 | MALE = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/RecordStatType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | public enum RecordStatType : int 4 | { 5 | CLUBS_RECORD_STAT_INT = 0, 6 | CLUBS_RECORD_STAT_FLOAT = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Locker/Permission.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Locker; 2 | 3 | public enum Permission : int 4 | { 5 | PUBLIC = 0, 6 | PRIVATE = 1, 7 | FRIENDS_ONLY = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Locker/ReferenceType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Locker; 2 | 3 | public enum ReferenceType : int 4 | { 5 | OWNER = 0, 6 | COPY = 1, 7 | BOOKMARK = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/Gender.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | public enum Gender : int 4 | { 5 | UNKNOWN = 0, 6 | FEMALE = 1, 7 | MALE = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/RecordStatType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum RecordStatType : int 4 | { 5 | CLUBS_RECORD_STAT_INT = 0, 6 | CLUBS_RECORD_STAT_FLOAT = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Locker/Permission.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Locker; 2 | 3 | public enum Permission : int 4 | { 5 | PUBLIC = 0, 6 | PRIVATE = 1, 7 | FRIENDS_ONLY = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Messaging/MessageFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Messaging; 2 | 3 | [Flags] 4 | public enum MessageFlags : int 5 | { 6 | None = 0, 7 | FilterProfanity = 4, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/UserDataFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze; 2 | 3 | [Flags] 4 | public enum UserDataFlags : int 5 | { 6 | None = 0, 7 | Subscribed = 1, 8 | Online = 2, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/MetaDataType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | public enum MetaDataType : int 4 | { 5 | CLUBS_METADATA_TYPE_STRING = 0, 6 | CLUBS_METADATA_TYPE_BINARY = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/PetitionsType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | public enum PetitionsType : int 4 | { 5 | CLUBS_PETITION_SENT_BY_ME = 0, 6 | CLUBS_PETITION_SENT_TO_CLUB = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/League/TradeOp.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.League; 2 | 3 | public enum TradeOp : int 4 | { 5 | TRADE_ACCEPT = 0, 6 | TRADE_REJECT = 1, 7 | TRADE_REVOKE = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Association/ListStatusFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Association; 2 | 3 | [Flags] 4 | public enum ListStatusFlags : int 5 | { 6 | None = 0, 7 | Subscribed = 1, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/MetaDataType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum MetaDataType : int 4 | { 5 | CLUBS_METADATA_TYPE_STRING = 0, 6 | CLUBS_METADATA_TYPE_BINARY = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/PetitionsType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum PetitionsType : int 4 | { 5 | CLUBS_PETITION_SENT_BY_ME = 0, 6 | CLUBS_PETITION_SENT_TO_CLUB = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/TradeOp.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.League; 2 | 3 | public enum TradeOp : int 4 | { 5 | TRADE_ACCEPT = 0, 6 | TRADE_REJECT = 1, 7 | TRADE_REVOKE = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Playgroups/PlaygroupJoinability.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Playgroups; 2 | 3 | public enum PlaygroupJoinability : int 4 | { 5 | PLAYGROUP_OPEN = 0, 6 | PLAYGROUP_CLOSED = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Association/ListUpdateType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Association; 2 | 3 | public enum ListUpdateType : int 4 | { 5 | LISTUPDATETYPE_ADD = 1, 6 | LISTUPDATETYPE_REMOVE = 2, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Playgroups/PlaygroupJoinability.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Playgroups; 2 | 3 | public enum PlaygroupJoinability : int 4 | { 5 | PLAYGROUP_OPEN = 0, 6 | PLAYGROUP_CLOSED = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/MembershipStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | public enum MembershipStatus : int 4 | { 5 | CLUBS_MEMBER = 0, 6 | CLUBS_GM = 1, 7 | CLUBS_OWNER = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/SlotType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.GameManager; 2 | 3 | public enum SlotType : int 4 | { 5 | SLOT_PUBLIC = 0, 6 | SLOT_PRIVATE = 1, 7 | MAX_SLOT_TYPE = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/VoipTopology.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze; 2 | 3 | public enum VoipTopology : int 4 | { 5 | VOIP_DISABLED = 0, 6 | VOIP_DEDICATED_SERVER = 1, 7 | VOIP_PEER_TO_PEER = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/ProductCatalog.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | public enum ProductCatalog : int 4 | { 5 | UNKNOWN = 0, 6 | SKUD = 1, 7 | OFB = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/MembershipStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum MembershipStatus : int 4 | { 5 | CLUBS_MEMBER = 0, 6 | CLUBS_GM = 1, 7 | CLUBS_OWNER = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/SlotType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum SlotType : int 4 | { 5 | SLOT_PUBLIC = 0, 6 | SLOT_PRIVATE = 1, 7 | MAX_SLOT_TYPE = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/VoipTopology.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze; 2 | 3 | public enum VoipTopology : int 4 | { 5 | VOIP_DISABLED = 0, 6 | VOIP_DEDICATED_SERVER = 1, 7 | VOIP_PEER_TO_PEER = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Locker/LeaderboardType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Locker; 2 | 3 | public enum LeaderboardType : int 4 | { 5 | MOST_RECENT = 0, 6 | HIGHEST_RATED = 1, 7 | MOST_USED = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/MemberTypeFilter.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum MemberTypeFilter : int 4 | { 5 | ALL_MEMBERS = 0, 6 | GM_MEMBERS = 1, 7 | NON_GM_MEMBERS = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Locker/LeaderboardType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Locker; 2 | 3 | public enum LeaderboardType : int 4 | { 5 | MOST_RECENT = 0, 6 | HIGHEST_RATED = 1, 7 | MOST_USED = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/ArtPackageType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | public enum ArtPackageType : int 4 | { 5 | CLUBS_ART_UNKNOWN = 0, 6 | CLUBS_ART_JPG = 1, 7 | CLUBS_ART_GIF = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/SkillValueOverride.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.GameManager; 2 | 3 | public enum SkillValueOverride : int 4 | { 5 | USE_SERVER_SKILL_VALUE = 0, 6 | CLIENT_OVERRIDE_SKILL_VALUE = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Messaging/MessageOrder.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Messaging; 2 | 3 | public enum MessageOrder : int 4 | { 5 | ORDER_DEFAULT = 0, 6 | ORDER_TIME_ASC = 1, 7 | ORDER_TIME_DESC = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Rooms/RoomCategoryFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Rooms; 2 | 3 | [Flags] 4 | public enum RoomCategoryFlags : int 5 | { 6 | None = 0, 7 | Pseudo = 4, 8 | AutoRemoveMember = 8, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/ArtPackageType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum ArtPackageType : int 4 | { 5 | CLUBS_ART_UNKNOWN = 0, 6 | CLUBS_ART_JPG = 1, 7 | CLUBS_ART_GIF = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/JoinState.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum JoinState : int 4 | { 5 | JOINED_GAME = 0, 6 | IN_QUEUE = 1, 7 | GROUP_PARTIALLY_JOINED = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/SkillValueOverride.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum SkillValueOverride : int 4 | { 5 | USE_SERVER_SKILL_VALUE = 0, 6 | CLIENT_OVERRIDE_SKILL_VALUE = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Messaging/MessageOrder.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Messaging; 2 | 3 | public enum MessageOrder : int 4 | { 5 | ORDER_DEFAULT = 0, 6 | ORDER_TIME_ASC = 1, 7 | ORDER_TIME_DESC = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/PresenceMode.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze; 2 | 3 | public enum PresenceMode : int 4 | { 5 | PRESENCE_MODE_NONE = 0, 6 | PRESENCE_MODE_STANDARD = 1, 7 | PRESENCE_MODE_PRIVATE = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Rooms/RoomCategoryFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Rooms; 2 | 3 | [Flags] 4 | public enum RoomCategoryFlags : int 5 | { 6 | None = 0, 7 | Pseudo = 4, 8 | AutoRemoveMember = 8, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Rsp/ServerType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Rsp; 2 | 3 | public enum ServerType : int 4 | { 5 | SERVER_TYPE_RANKED = 0, 6 | SERVER_TYPE_UNRANKED = 1, 7 | SERVER_TYPE_PRIVATE = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Locker/Status.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Locker; 2 | 3 | public enum Status : int 4 | { 5 | ACTIVE = 0, 6 | PENDING = 1, 7 | DELETED = 2, 8 | SHAREABLE = 4, 9 | BANNED = 8, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/InvitationsType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | public enum InvitationsType : int 4 | { 5 | CLUBS_SENT_TO_ME = 0, 6 | CLUBS_SENT_BY_ME = 1, 7 | CLUBS_SENT_BY_CLUB = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/League/TradeType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.League; 2 | 3 | public enum TradeType : int 4 | { 5 | LEAGUE_TRADES_NONE = 0, 6 | LEAGUE_TRADES_SIMPLE = 1, 7 | LEAGUE_TRADES_RESTRICTED = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Stats/AggregateType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Stats; 2 | 3 | public enum AggregateType : int 4 | { 5 | STAT_AGGREGATE_AVERAGE = 0, 6 | STAT_AGGREGATE_TOP = 1, 7 | STAT_AGGREGATE_MIN = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/BlazeUpnpFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze; 2 | 3 | [Flags] 4 | public enum BlazeUpnpFlags : int 5 | { 6 | None = 0, 7 | NatPromoted = 1, 8 | DoubleNat = 2, 9 | PortOverride = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/InvitationsType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum InvitationsType : int 4 | { 5 | CLUBS_SENT_TO_ME = 0, 6 | CLUBS_SENT_BY_ME = 1, 7 | CLUBS_SENT_BY_CLUB = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/TradeType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.League; 2 | 3 | public enum TradeType : int 4 | { 5 | LEAGUE_TRADES_NONE = 0, 6 | LEAGUE_TRADES_SIMPLE = 1, 7 | LEAGUE_TRADES_RESTRICTED = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Stats/AggregateType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Stats; 2 | 3 | public enum AggregateType : int 4 | { 5 | STAT_AGGREGATE_AVERAGE = 0, 6 | STAT_AGGREGATE_TOP = 1, 7 | STAT_AGGREGATE_MIN = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Messaging/MatchFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Messaging; 2 | 3 | [Flags] 4 | public enum MatchFlags : uint 5 | { 6 | None = 0, 7 | MatchId = 1, 8 | MatchSource = 2, 9 | MatchType = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Redirector/InstanceType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Redirector; 2 | 3 | public enum InstanceType : int 4 | { 5 | SLAVE = 0, 6 | AUX_MASTER = 1, 7 | CONFIG_MASTER = 2, 8 | AUX_SLAVE = 3, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/TOKENTYPE.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum TOKENTYPE : int 4 | { 5 | UNKNOWN = 0, 6 | AUTHTOKEN = 1, 7 | PCLOGINTOKEN = 2, 8 | HANDOFFTOKEN = 3, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/MatchmakingSessionMode.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.GameManager; 2 | 3 | [Flags] 4 | public enum MatchmakingSessionMode : uint 5 | { 6 | None = 0, 7 | FindGame = 1, 8 | CreateGame = 2, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/League/ScheduleType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.League; 2 | 3 | public enum ScheduleType : int 4 | { 5 | LEAGUE_SCHEDULE_NONE = 0, 6 | LEAGUE_SCHEDULE_CASUAL = 1, 7 | LEAGUE_SCHEDULE_STRICT = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Messaging/MessageFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Messaging; 2 | 3 | [Flags] 4 | public enum MessageFlags : uint 5 | { 6 | None = 0, 7 | Persistent = 1, 8 | Echo = 2, 9 | FilterProfanity = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Redirector/ServerAddressType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Redirector; 2 | 3 | public enum ServerAddressType : int 4 | { 5 | INTERNAL_IPPORT = 0, 6 | EXTERNAL_IPPORT = 1, 7 | XBOX_SERVER_ADDRESS = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/TOKENTYPE.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | public enum TOKENTYPE : int 4 | { 5 | UNKNOWN = 0, 6 | AUTHTOKEN = 1, 7 | PCLOGINTOKEN = 2, 8 | HANDOFFTOKEN = 3, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/MatchmakingSessionMode.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | [Flags] 4 | public enum MatchmakingSessionMode : int 5 | { 6 | None = 0, 7 | FindGame = 1, 8 | CreateGame = 2, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/ScheduleType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.League; 2 | 3 | public enum ScheduleType : int 4 | { 5 | LEAGUE_SCHEDULE_NONE = 0, 6 | LEAGUE_SCHEDULE_CASUAL = 1, 7 | LEAGUE_SCHEDULE_STRICT = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Redirector/ServerAddressType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Redirector; 2 | 3 | public enum ServerAddressType : int 4 | { 5 | INTERNAL_IPPORT = 0, 6 | EXTERNAL_IPPORT = 1, 7 | XBOX_SERVER_ADDRESS = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/KeymasterCodeStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum KeymasterCodeStatus : int 4 | { 5 | UNKNOWN = 0, 6 | USED = 1, 7 | UNUSED = 2, 8 | DISABLED = 3, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Playgroups/PlaygroupDestroyReason.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Playgroups; 2 | 3 | public enum PlaygroupDestroyReason : int 4 | { 5 | PLAYGROUP_DESTROY_REASON_DEFAULT = 0, 6 | PLAYGROUP_DESTROY_REASON_DISCONNECTED = 1, 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/KeymasterCodeStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | public enum KeymasterCodeStatus : int 4 | { 5 | UNKNOWN = 0, 6 | USED = 1, 7 | UNUSED = 2, 8 | DISABLED = 3, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/PasswordOption.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum PasswordOption : int 4 | { 5 | CLUB_PASSWORD_IGNORE = 0, 6 | CLUB_PASSWORD_NOT_PROTECTED = 1, 7 | CLUB_PASSWORD_PROTECTED = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/EmailStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum EmailStatus : int 4 | { 5 | BAD = 0, 6 | UNKNOWN = 1, 7 | VERIFIED = 2, 8 | GUEST = 3, 9 | ANONYMOUS = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/League/PlayoffType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.League; 2 | 3 | public enum PlayoffType : int 4 | { 5 | LEAGUE_PLAYOFF_NONE = 0, 6 | LEAGUE_PLAYOFF_BEST_OF_N = 1, 7 | LEAGUE_PLAYOFF_N_GAME_TOTAL_POINT = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Locker/RefSearchFlag.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Locker; 2 | 3 | public enum RefSearchFlag : int 4 | { 5 | OWNERFLAG = 1, 6 | COPYFLAG = 2, 7 | LOCKERFLAG = 3, 8 | BOOKMARKFLAG = 4, 9 | ALLFLAG = 8, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/EmailStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | public enum EmailStatus : int 4 | { 5 | BAD = 0, 6 | UNKNOWN = 1, 7 | VERIFIED = 2, 8 | GUEST = 3, 9 | ANONYMOUS = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/PlayoffType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.League; 2 | 3 | public enum PlayoffType : int 4 | { 5 | LEAGUE_PLAYOFF_NONE = 0, 6 | LEAGUE_PLAYOFF_BEST_OF_N = 1, 7 | LEAGUE_PLAYOFF_N_GAME_TOTAL_POINT = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Locker/RefSearchFlag.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Locker; 2 | 3 | public enum RefSearchFlag : int 4 | { 5 | OWNERFLAG = 1, 6 | COPYFLAG = 2, 7 | LOCKERFLAG = 3, 8 | BOOKMARKFLAG = 4, 9 | ALLFLAG = 8, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/PlayerNetConnectionStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.GameManager; 2 | 3 | public enum PlayerNetConnectionStatus : int 4 | { 5 | DISCONNECTED = 0, 6 | ESTABLISHING_CONNECTION = 1, 7 | CONNECTED = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/UpdateAdminListOperation.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.GameManager; 2 | 3 | public enum UpdateAdminListOperation : int 4 | { 5 | GM_ADMIN_ADDED = 0, 6 | GM_ADMIN_REMOVED = 1, 7 | GM_ADMIN_MIGRATED = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/EntitlementSearchFlag.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | [Flags] 4 | public enum EntitlementSearchFlag : int 5 | { 6 | None = 0, 7 | IncludePersonaLink = 1, 8 | IncludeUnlinked = 2 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/TagSearchOperation.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum TagSearchOperation : int 4 | { 5 | CLUB_TAG_SEARCH_IGNORE = 0, 6 | CLUB_TAG_SEARCH_MATCH_ANY = 1, 7 | CLUB_TAG_SEARCH_MATCH_ALL = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/PlayerNetConnectionStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum PlayerNetConnectionStatus : int 4 | { 5 | DISCONNECTED = 0, 6 | ESTABLISHING_CONNECTION = 1, 7 | CONNECTED = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/UpdateAdminListOperation.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum UpdateAdminListOperation : int 4 | { 5 | GM_ADMIN_ADDED = 0, 6 | GM_ADMIN_REMOVED = 1, 7 | GM_ADMIN_MIGRATED = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /EATDF/Xml/XmlWriter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace EATDF.Xml 8 | { 9 | internal class XmlWriter 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Blaze.Core/IRpcCommandResult.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | 3 | namespace Blaze.Core; 4 | 5 | //public interface IRpcCommandResult 6 | //{ 7 | // public bool Success { get; } 8 | // public ushort ErrorCode { get; } 9 | // public Tdf Response { get; } 10 | //} 11 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/EntitlementSearchFlag.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | [Flags] 4 | public enum EntitlementSearchFlag : int 5 | { 6 | None = 0, 7 | IncludePersonaLink = 1, 8 | IncludeUnlinked = 2, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /EATDF/EATDF.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | enable 6 | enable 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/NewsType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | public enum NewsType : int 4 | { 5 | CLUBS_SERVER_GENERATED_NEWS = 0, 6 | CLUBS_MEMBER_POSTED_NEWS = 1, 7 | CLUBS_ASSOCIATE_NEWS = 2, 8 | CLUBS_ALL_NEWS = 3, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Locker/PermissionFlag.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Locker; 2 | 3 | public enum PermissionFlag : int 4 | { 5 | NOFLAG = 0, 6 | PUBLICFLAG = 1, 7 | PRIVATEFLAG = 2, 8 | FRIENDSONLYFLAG = 3, 9 | PUBLICFRIENDSFLAG = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/NewsType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum NewsType : int 4 | { 5 | CLUBS_SERVER_GENERATED_NEWS = 0, 6 | CLUBS_MEMBER_POSTED_NEWS = 1, 7 | CLUBS_ASSOCIATE_NEWS = 2, 8 | CLUBS_ALL_NEWS = 3, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Locker/PermissionFlag.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Locker; 2 | 3 | public enum PermissionFlag : int 4 | { 5 | NOFLAG = 0, 6 | PUBLICFLAG = 1, 7 | PRIVATEFLAG = 2, 8 | FRIENDSONLYFLAG = 3, 9 | PUBLICFRIENDSFLAG = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/ClientType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze; 2 | 3 | public enum ClientType : int 4 | { 5 | CLIENT_TYPE_CONSOLE_USER = 0, 6 | CLIENT_TYPE_WEB_ACCESS_LAYER = 1, 7 | CLIENT_TYPE_DEDICATED_SERVER = 2, 8 | CLIENT_TYPE_INVALID = 3, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/HostMigrationType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.GameManager; 2 | 3 | public enum HostMigrationType : int 4 | { 5 | TOPOLOGY_HOST_MIGRATION = 0, 6 | PLATFORM_HOST_MIGRATION = 1, 7 | TOPOLOGY_PLATFORM_HOST_MIGRATION = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/League/InvitationsToGetType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.League; 2 | 3 | public enum InvitationsToGetType : int 4 | { 5 | LEAGUE_INVITATIONS_SENT_TO_ME = 0, 6 | LEAGUE_INVITATIONS_SENT_BY_ME = 1, 7 | LEAGUE_INVITATIONS_ALL = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/ClubsOrder.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum ClubsOrder : int 4 | { 5 | CLUBS_NO_ORDER = 0, 6 | CLUBS_ORDER_BY_NAME = 1, 7 | CLUBS_ORDER_BY_CREATIONTIME = 2, 8 | CLUBS_ORDER_BY_MEMBERCOUNT = 3, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/HostMigrationType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum HostMigrationType : int 4 | { 5 | TOPOLOGY_HOST_MIGRATION = 0, 6 | PLATFORM_HOST_MIGRATION = 1, 7 | TOPOLOGY_PLATFORM_HOST_MIGRATION = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/InvitationsToGetType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.League; 2 | 3 | public enum InvitationsToGetType : int 4 | { 5 | LEAGUE_INVITATIONS_SENT_TO_ME = 0, 6 | LEAGUE_INVITATIONS_SENT_BY_ME = 1, 7 | LEAGUE_INVITATIONS_ALL = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Rsp/ServerStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Rsp; 2 | 3 | public enum ServerStatus : int 4 | { 5 | SERVER_STATUS_INACTIVE = 0, 6 | SERVER_STATUS_ACTIVE = 1, 7 | SERVER_STATUS_EXPIRING = 2, 8 | SERVER_STATUS_EXPIRED = 3, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze.Core/FrameEncoding.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Blaze.Core; 8 | 9 | public enum FrameEncoding 10 | { 11 | Fire, 12 | Fire2, 13 | } 14 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Util/NatType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Util; 2 | 3 | public enum NatType : int 4 | { 5 | NAT_TYPE_OPEN = 0, 6 | NAT_TYPE_MODERATE = 1, 7 | NAT_TYPE_STRICT_SEQUENTIAL = 2, 8 | NAT_TYPE_STRICT = 3, 9 | NAT_TYPE_UNKNOWN = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/GameEntryType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum GameEntryType : int 4 | { 5 | GAME_ENTRY_TYPE_DIRECT = 0, 6 | GAME_ENTRY_TYPE_MAKE_RESERVATION = 1, 7 | GAME_ENTRY_TYPE_CLAIM_RESERVATION = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Util/NatType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Util; 2 | 3 | public enum NatType : int 4 | { 5 | NAT_TYPE_OPEN = 0, 6 | NAT_TYPE_MODERATE = 1, 7 | NAT_TYPE_STRICT_SEQUENTIAL = 2, 8 | NAT_TYPE_STRICT = 3, 9 | NAT_TYPE_UNKNOWN = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/ExternalRefType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum ExternalRefType : int 4 | { 5 | UNKNOWN = 0, 6 | XBOX = 1, 7 | PS3 = 2, 8 | WII = 3, 9 | MOBILE = 4, 10 | LEGACYPROFILEID = 5, 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/EntitlementStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum EntitlementStatus : int 4 | { 5 | UNKNOWN = 0, 6 | ACTIVE = 1, 7 | DISABLED = 2, 8 | PENDING = 3, 9 | DELETED = 4, 10 | BANNED = 5, 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/EntitlementType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum EntitlementType : int 4 | { 5 | UNKNOWN = 0, 6 | ONLINE_ACCESS = 1, 7 | SUBSCRIPTIONS = 2, 8 | PARENTAL_APPROVAL = 3, 9 | DEFAULT = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/EntitlementStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | public enum EntitlementStatus : int 4 | { 5 | UNKNOWN = 0, 6 | ACTIVE = 1, 7 | DISABLED = 2, 8 | PENDING = 3, 9 | DELETED = 4, 10 | BANNED = 5, 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/League/NewsParamType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.League; 2 | 3 | public enum NewsParamType : int 4 | { 5 | NEWS_PARAM_NONE = 0, 6 | NEWS_PARAM_STRING = 1, 7 | NEWS_PARAM_INT = 2, 8 | NEWS_PARAM_PLAYER_ID = 3, 9 | NEWS_PARAM_TROPHY_ID = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/PlayerNetConnectionFlags.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | [Flags] 4 | public enum PlayerNetConnectionFlags : int 5 | { 6 | None = 0, 7 | _DEPRECATED = 1, 8 | ConnectionDemangled = 2, 9 | ConnectionPktReceived = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Rsp/PurchaseStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Rsp; 2 | 3 | public enum PurchaseStatus : int 4 | { 5 | PURCHASE_CANCELLED = 0, 6 | PURCHASE_STARTED = 1, 7 | PURCHASE_VERIFIED = 2, 8 | PURCHASE_CONSUMED = 3, 9 | PURCHASE_COMPLETED = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Util/PssReportTypes.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Util; 2 | 3 | [Flags] 4 | public enum PssReportTypes : int 5 | { 6 | None = 0, 7 | PssTypePurchases = 1, 8 | PssTypeFriendsList = 2, 9 | PssTypeAchievements = 4, 10 | PssTypeConsumables = 8, 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/ClientType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze; 2 | 3 | public enum ClientType : int 4 | { 5 | CLIENT_TYPE_GAMEPLAY_USER = 0, 6 | CLIENT_TYPE_HTTP_USER = 1, 7 | CLIENT_TYPE_DEDICATED_SERVER = 2, 8 | CLIENT_TYPE_TOOLS = 3, 9 | CLIENT_TYPE_INVALID = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Stats/StatPeriodType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Stats; 2 | 3 | public enum StatPeriodType : int 4 | { 5 | STAT_PERIOD_ALL_TIME = 0, 6 | STAT_PERIOD_MONTHLY = 1, 7 | STAT_PERIOD_WEEKLY = 2, 8 | STAT_PERIOD_DAILY = 3, 9 | STAT_NUM_PERIODS = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/PersonaStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum PersonaStatus : int 4 | { 5 | UNKNOWN = 0, 6 | PENDING = 1, 7 | ACTIVE = 2, 8 | DEACTIVATED = 3, 9 | DISABLED = 4, 10 | DELETED = 5, 11 | BANNED = 6, 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/GameDestructionReason.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.GameManager; 2 | 3 | public enum GameDestructionReason : int 4 | { 5 | SYS_GAME_ENDING = 0, 6 | SYS_CREATION_FAILED = 1, 7 | HOST_LEAVING = 2, 8 | TITLE_REASON_BASE_GAME_DESTRUCTION_REASON = 3, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/PersonaStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | public enum PersonaStatus : int 4 | { 5 | UNKNOWN = 0, 6 | PENDING = 1, 7 | ACTIVE = 2, 8 | DEACTIVATED = 3, 9 | DISABLED = 4, 10 | DELETED = 5, 11 | BANNED = 6, 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/PlayerState.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.GameManager; 2 | 3 | public enum PlayerState : int 4 | { 5 | RESERVED = 0, 6 | QUEUED = 1, 7 | ACTIVE_CONNECTING = 2, 8 | ACTIVE_MIGRATING = 3, 9 | ACTIVE_CONNECTED = 4, 10 | ACTIVE_KICK_PENDING = 5, 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/PlayerState.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum PlayerState : int 4 | { 5 | RESERVED = 0, 6 | QUEUED = 1, 7 | ACTIVE_CONNECTING = 2, 8 | ACTIVE_MIGRATING = 3, 9 | ACTIVE_CONNECTED = 4, 10 | ACTIVE_KICK_PENDING = 5, 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Util/FilterResult.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Util; 2 | 3 | public enum FilterResult : int 4 | { 5 | FILTER_RESULT_PASSED = 0, 6 | FILTER_RESULT_OFFENSIVE = 1, 7 | FILTER_RESULT_UNPROCESSED = 2, 8 | FILTER_RESULT_STRING_TOO_LONG = 3, 9 | FILTER_RESULT_OTHER = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze2Router.cs: -------------------------------------------------------------------------------- 1 | using Blaze.Core; 2 | using Blaze2SDK.Components; 3 | 4 | namespace Blaze2SDK; 5 | 6 | public class Blaze2Router : BlazeRouter 7 | { 8 | public Blaze2Router() 9 | { 10 | ConfigureServerErrors(); 11 | ConfigureSdkErrors(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/EntitlementType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | public enum EntitlementType : int 4 | { 5 | UNKNOWN = 0, 6 | ONLINE_ACCESS = 1, 7 | TRIAL_ONLINE_ACCESS = 2, 8 | SUBSCRIPTIONS = 3, 9 | PARENTAL_APPROVAL = 4, 10 | DEFAULT = 5, 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Util/FilterResult.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Util; 2 | 3 | public enum FilterResult : int 4 | { 5 | FILTER_RESULT_PASSED = 0, 6 | FILTER_RESULT_OFFENSIVE = 1, 7 | FILTER_RESULT_UNPROCESSED = 2, 8 | FILTER_RESULT_STRING_TOO_LONG = 3, 9 | FILTER_RESULT_OTHER = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze3Router.cs: -------------------------------------------------------------------------------- 1 | using Blaze.Core; 2 | using Blaze3SDK.Components; 3 | 4 | namespace Blaze3SDK; 5 | 6 | public class Blaze3Router : BlazeRouter 7 | { 8 | public Blaze3Router() 9 | { 10 | ConfigureServerErrors(); 11 | ConfigureSdkErrors(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/AccountField.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum AccountField : int 4 | { 5 | UNKNOWN = 0, 6 | NONE = 1, 7 | EMAIL = 2, 8 | PASSWORD = 3, 9 | DOB = 4, 10 | COUNTRY = 5, 11 | LANGUAGE = 6, 12 | PARENTAL_EMAIL = 7, 13 | } 14 | 15 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Playgroups/PlaygroupDestroyReason.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Playgroups; 2 | 3 | public enum PlaygroupDestroyReason : int 4 | { 5 | PLAYGROUP_DESTROY_REASON_DEFAULT = 0, 6 | PLAYGROUP_DESTROY_REASON_DISCONNECTED = 1, 7 | PLAYGROUP_DESTROY_REASON_LEADER_CHANGE_DISABLED = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /ProtoFire/Captures/Records/Perspective.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ProtoFire.Captures.Records; 8 | public enum Perspective : int 9 | { 10 | Unknown, 11 | Client, 12 | Server 13 | } 14 | -------------------------------------------------------------------------------- /ProtoFire/Captures/Records/RecordType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ProtoFire.Captures.Records; 8 | 9 | public enum RecordType : byte 10 | { 11 | Metadata = 0, 12 | Packet = 1, 13 | } 14 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameReporting/GameReportPlayerFinishedStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameReporting; 2 | 3 | public enum GameReportPlayerFinishedStatus : int 4 | { 5 | GAMEREPORT_FINISHED_STATUS_DEFAULT = 0, 6 | GAMEREPORT_FINISHED_STATUS_FINISHED = 1, 7 | GAMEREPORT_FINISHED_STATUS_DNF = 2, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/NewsParamType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.League; 2 | 3 | public enum NewsParamType : int 4 | { 5 | NEWS_PARAM_NONE = 0, 6 | NEWS_PARAM_STRING = 1, 7 | NEWS_PARAM_INT = 2, 8 | NEWS_PARAM_PLAYER_ID = 3, 9 | NEWS_PARAM_TROPHY_ID = 4, 10 | NEWS_PARAM_BLAZE_ID = 5, 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameNetworkTopology.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze; 2 | 3 | public enum GameNetworkTopology : int 4 | { 5 | CLIENT_SERVER_PEER_HOSTED = 0, 6 | CLIENT_SERVER_DEDICATED = 1, 7 | PEER_TO_PEER_FULL_MESH = 130, 8 | PEER_TO_PEER_PARTIAL_MESH = 131, 9 | PEER_TO_PEER_DIRTYCAST_FAILOVER = 132, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameNetworkTopology.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze; 2 | 3 | public enum GameNetworkTopology : int 4 | { 5 | CLIENT_SERVER_PEER_HOSTED = 0, 6 | CLIENT_SERVER_DEDICATED = 1, 7 | PEER_TO_PEER_FULL_MESH = 130, 8 | PEER_TO_PEER_PARTIAL_MESH = 131, 9 | PEER_TO_PEER_DIRTYCAST_FAILOVER = 132, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze.Core/IRpcNotificationFunc.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | 3 | namespace Blaze.Core; 4 | 5 | public interface IRpcNotificationFunc 6 | { 7 | ushort Id { get; } 8 | string Name { get; } 9 | bool IsSupported { get; } 10 | Tdf CreateNotificationTdf(); 11 | Task InvokeAsync(Tdf notification, BlazeRpcContext context); 12 | } 13 | -------------------------------------------------------------------------------- /EATDF/Heat2/Heat2MemberHeader.cs: -------------------------------------------------------------------------------- 1 | namespace EATDF.Heat2; 2 | 3 | internal struct Heat2MemberHeader 4 | { 5 | public static readonly Heat2MemberHeader Invalid = new Heat2MemberHeader { Tag = 0, Type = Heat2Type.Struct}; 6 | 7 | public required uint Tag { get; init; } 8 | public required Heat2Type Type { get; init; } 9 | } 10 | -------------------------------------------------------------------------------- /EATDF/Members/ITdfMember.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public interface ITdfMember 6 | { 7 | TdfMemberInfo TdfInfo { get; } 8 | bool UserSet { get; } 9 | bool IsSet(); 10 | object? GetValue(); 11 | bool Visit(ITdfVisitor visitor, Tdf parent); 12 | void Reset(); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Blaze.Core/IBlazeComponent.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze.Core; 2 | 3 | public interface IBlazeComponent 4 | { 5 | ushort Id { get; } 6 | string Name { get; } 7 | string GetErrorName(ushort errorCode); 8 | IRpcCommandFunc? GetCommandFunc(ushort commandId); 9 | IRpcNotificationFunc? GetNotificationFunc(ushort notificationId); 10 | } 11 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/LeagueState.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.League; 2 | 3 | public enum LeagueState : int 4 | { 5 | LEAGUE_STATE_NONE = 0, 6 | LEAGUE_STATE_REGISTRATION = 1, 7 | LEAGUE_STATE_DRAFT = 2, 8 | LEAGUE_STATE_REGULAR_SEASON = 3, 9 | LEAGUE_STATE_PLAYOFFS = 4, 10 | LEAGUE_STATE_COMPLETED = 5, 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/NucleusField.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum NucleusField : int 4 | { 5 | UNKNOWN = 0, 6 | PASSWORD = 1, 7 | EMAIL = 2, 8 | PARENTAL_EMAIL = 3, 9 | DISPLAY_NAME = 4, 10 | STATUS = 5, 11 | DOB = 6, 12 | TOKEN = 7, 13 | EXPIRATION = 8, 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Playgroups/MemberPermissions.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Playgroups; 2 | 3 | [Flags] 4 | public enum MemberPermissions : int 5 | { 6 | None = 0, 7 | DestroyPlaygroup = 1, 8 | JoinGame = 2, 9 | KickPlaygroupMember = 4, 10 | ModifyPlaygroupAttributes = 8, 11 | ModifyPlaygroupJoinControls = 16, 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Playgroups/MemberPermissions.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Playgroups; 2 | 3 | [Flags] 4 | public enum MemberPermissions : int 5 | { 6 | None = 0, 7 | DestroyPlaygroup = 1, 8 | JoinGame = 2, 9 | KickPlaygroupMember = 4, 10 | ModifyPlaygroupAttributes = 8, 11 | ModifyPlaygroupJoinControls = 16, 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/GameState.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.GameManager; 2 | 3 | public enum GameState : int 4 | { 5 | NEW_STATE = 0, 6 | INITIALIZING = 1, 7 | POST_GAME = 4, 8 | MIGRATING = 5, 9 | DESTRUCTING = 6, 10 | RESETABLE = 7, 11 | REPLAY_SETUP = 8, 12 | PRE_GAME = 130, 13 | IN_GAME = 131, 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/DatalessContext.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum DatalessContext : int 4 | { 5 | CREATE_GAME_SETUP_CONTEXT = 0, 6 | JOIN_GAME_SETUP_CONTEXT = 1, 7 | INDIRECT_JOIN_GAME_FROM_QUEUE_SETUP_CONTEXT = 2, 8 | INDIRECT_JOIN_GAME_FROM_RESERVATION_CONTEXT = 3, 9 | HOST_INJECTION_SETUP_CONTEXT = 4, 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/GameState.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum GameState : int 4 | { 5 | NEW_STATE = 0, 6 | INITIALIZING = 1, 7 | VIRTUAL = 2, 8 | POST_GAME = 4, 9 | MIGRATING = 5, 10 | DESTRUCTING = 6, 11 | RESETABLE = 7, 12 | REPLAY_SETUP = 8, 13 | PRE_GAME = 130, 14 | IN_GAME = 131, 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Blaze.Core/IBlazeRouter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics.CodeAnalysis; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Blaze.Core; 9 | 10 | public interface IBlazeRouter 11 | { 12 | IBlazeComponent? GetComponent(ushort id); 13 | string GetErrorName(int errorCode); 14 | } 15 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Playgroups/PlaygroupMemberRemoveReason.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Playgroups; 2 | 3 | public enum PlaygroupMemberRemoveReason : int 4 | { 5 | PLAYGROUP_MEMBER_REMOVE_REASON_DEFAULT = 0, 6 | PLAYGROUP_MEMBER_REMOVE_REASON_DISCONNECTED = 1, 7 | PLAYGROUP_MEMBER_REMOVE_REASON_KICKED = 2, 8 | PLAYGROUP_MEMBER_REMOVE_TITLE_BASE_REASON = 3, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Playgroups/PlaygroupMemberRemoveReason.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Playgroups; 2 | 3 | public enum PlaygroupMemberRemoveReason : int 4 | { 5 | PLAYGROUP_MEMBER_REMOVE_REASON_DEFAULT = 0, 6 | PLAYGROUP_MEMBER_REMOVE_REASON_DISCONNECTED = 1, 7 | PLAYGROUP_MEMBER_REMOVE_REASON_KICKED = 2, 8 | PLAYGROUP_MEMBER_REMOVE_TITLE_BASE_REASON = 3, 9 | } 10 | 11 | -------------------------------------------------------------------------------- /EATDF/Heat2/Heat2Type.cs: -------------------------------------------------------------------------------- 1 | namespace EATDF.Heat2; 2 | 3 | public enum Heat2Type : byte 4 | { 5 | Integer = 0x0, 6 | String = 0x1, 7 | Binary = 0x2, 8 | Struct = 0x3, 9 | List = 0x4, 10 | Map = 0x5, 11 | Union = 0x6, 12 | Variable = 0x7, 13 | BlazeObjectType = 0x8, 14 | BlazeObjectId = 0x9, 15 | Float = 0xA, 16 | TimeValue = 0xB, 17 | } 18 | -------------------------------------------------------------------------------- /ProtoFire/Frames/MessageType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ProtoFire.Frames; 8 | 9 | public enum MessageType 10 | { 11 | Message = 0, 12 | Reply = 1, 13 | Notification = 2, 14 | ErrorReply = 3, 15 | Ping = 4, 16 | PingReply = 5 17 | } 18 | -------------------------------------------------------------------------------- /Blaze.Core/IRpcCommandFunc.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | 3 | namespace Blaze.Core; 4 | 5 | public interface IRpcCommandFunc 6 | { 7 | ushort Id { get; } 8 | string Name { get; } 9 | bool IsSupported { get; } 10 | Tdf CreateRequestTdf(); 11 | Tdf CreateResponseTdf(); 12 | Tdf CreateErrorResponseTdf(); 13 | Task InvokeAsync(Tdf request, BlazeRpcContext context); 14 | } -------------------------------------------------------------------------------- /EATDF/Serialization/ITdfRegistry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace EATDF.Serialization; 8 | 9 | public interface ITdfRegistry 10 | { 11 | bool RegisterTdf(Tdf tdf); 12 | bool RegisterTdf() where T : Tdf, new(); 13 | Tdf? CreateTdf(uint tdfId); 14 | } 15 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/GameDestructionReason.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum GameDestructionReason : int 4 | { 5 | SYS_GAME_ENDING = 0, 6 | SYS_CREATION_FAILED = 1, 7 | HOST_LEAVING = 2, 8 | HOST_INJECTION = 3, 9 | HOST_EJECTION = 4, 10 | LOCAL_PLAYER_LEAVING = 5, 11 | TITLE_REASON_BASE_GAME_DESTRUCTION_REASON = 6, 12 | } 13 | 14 | -------------------------------------------------------------------------------- /ProtoFire/ProtoFire.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | enable 6 | enable 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/ExternalSystemId.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze; 2 | 3 | public enum ExternalSystemId : int 4 | { 5 | NONE = 0, 6 | XBOX = 1, 7 | PS3 = 2, 8 | WII = 32, 9 | MOBILE = 33, 10 | LEGACYPROFILEID = 34, 11 | VERIZON = 35, 12 | FACEBOOK = 36, 13 | FACEBOOK_EACOM = 37, 14 | BEBO = 38, 15 | FRIENDSTER = 39, 16 | NATIVE = 65535, 17 | } 18 | 19 | -------------------------------------------------------------------------------- /EATDF/Heat/HeatMemberHeader.cs: -------------------------------------------------------------------------------- 1 | namespace EATDF.Heat; 2 | 3 | internal struct HeatMemberHeader 4 | { 5 | public static readonly HeatMemberHeader Invalid = new HeatMemberHeader { Tag = 0, Type = HeatType.Struct, SizeHint = 0 }; 6 | 7 | public required uint Tag { get; init; } 8 | public required HeatType Type { get; init; } 9 | public required byte SizeHint { get; init; } 10 | } 11 | -------------------------------------------------------------------------------- /Blaze.Core/BlazePacket.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Types; 3 | using ProtoFire.Frames; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace Blaze.Core; 11 | 12 | public class BlazePacket 13 | { 14 | public Tdf? Data { get; set; } 15 | public required IFireFrame Frame { get; init; } 16 | } 17 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/MatchmakingResult.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.GameManager; 2 | 3 | public enum MatchmakingResult : int 4 | { 5 | SUCCESS_CREATED_GAME = 0, 6 | SUCCESS_JOINED_NEW_GAME = 1, 7 | SUCCESS_JOINED_EXISTING_GAME = 2, 8 | SESSION_TIMED_OUT = 3, 9 | SESSION_CANCELED = 4, 10 | SESSION_TERMINATED = 5, 11 | SESSION_ERROR_GAME_SETUP_FAILED = 6, 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/MatchmakingResult.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum MatchmakingResult : int 4 | { 5 | SUCCESS_CREATED_GAME = 0, 6 | SUCCESS_JOINED_NEW_GAME = 1, 7 | SUCCESS_JOINED_EXISTING_GAME = 2, 8 | SESSION_TIMED_OUT = 3, 9 | SESSION_CANCELED = 4, 10 | SESSION_TERMINATED = 5, 11 | SESSION_ERROR_GAME_SETUP_FAILED = 6, 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/AccountStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum AccountStatus : int 4 | { 5 | UNKNOWN = 0, 6 | ACTIVE = 1, 7 | BANNED = 2, 8 | CHILD_APPROVED = 3, 9 | CHILD_PENDING = 4, 10 | DEACTIVATED = 5, 11 | DELETED = 6, 12 | DISABLED = 7, 13 | PENDING = 8, 14 | TENTATIVE = 9, 15 | VOLATILE = 10, 16 | } 17 | 18 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/AccountStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | public enum AccountStatus : int 4 | { 5 | UNKNOWN = 0, 6 | ACTIVE = 1, 7 | BANNED = 2, 8 | CHILD_APPROVED = 3, 9 | CHILD_PENDING = 4, 10 | DEACTIVATED = 5, 11 | DELETED = 6, 12 | DISABLED = 7, 13 | PENDING = 8, 14 | TENTATIVE = 9, 15 | VOLATILE = 10, 16 | } 17 | 18 | -------------------------------------------------------------------------------- /EATDF/Heat/HeatType.cs: -------------------------------------------------------------------------------- 1 | namespace EATDF.Heat; 2 | 3 | public enum HeatType : byte 4 | { 5 | Struct = 0x00, 6 | String = 0x01, 7 | Int8 = 0x02, 8 | UInt8 = 0x03, 9 | Int16 = 0x04, 10 | UInt16 = 0x05, 11 | Int32 = 0x06, 12 | UInt32 = 0x07, 13 | Int64 = 0x08, 14 | UInt64 = 0x09, 15 | Array = 0x0A, 16 | Blob = 0x0B, 17 | Map = 0x0C, 18 | Union = 0x0D, 19 | } 20 | -------------------------------------------------------------------------------- /EATDF/TdfType.cs: -------------------------------------------------------------------------------- 1 | namespace EATDF; 2 | 3 | public enum TdfType 4 | { 5 | Struct, 6 | String, 7 | Bool, 8 | Int8, 9 | UInt8, 10 | Int16, 11 | UInt16, 12 | Int32, 13 | UInt32, 14 | Int64, 15 | UInt64, 16 | Enum, 17 | TimeValue, 18 | Float, 19 | List, 20 | Map, 21 | Blob, 22 | Union, 23 | Variable, 24 | ObjectType, 25 | ObjectId 26 | } 27 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/NucleusField.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | public enum NucleusField : int 4 | { 5 | UNKNOWN = 0, 6 | PASSWORD = 1, 7 | EMAIL = 2, 8 | PARENTAL_EMAIL = 3, 9 | DISPLAY_NAME = 4, 10 | STATUS = 5, 11 | DOB = 6, 12 | TOKEN = 7, 13 | EXPIRATION = 8, 14 | OPTINTYPE = 9, 15 | APPLICATION = 10, 16 | SOURCE = 11, 17 | } 18 | 19 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/MemberOnlineStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | public enum MemberOnlineStatus : int 4 | { 5 | CLUBS_MEMBER_OFFLINE = 0, 6 | CLUBS_MEMBER_ONLINE_INTERACTIVE = 1, 7 | CLUBS_MEMBER_ONLINE_NON_INTERACTIVE = 2, 8 | CLUBS_MEMBER_IN_GAMEROOM = 3, 9 | CLUBS_MEMBER_IN_OPEN_SESSION = 4, 10 | CLUBS_MEMBER_IN_GAME = 5, 11 | CLUBS_MEMBER_CUSTOM_ONLINE_STATUS = 6, 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/MemberOnlineStatus.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum MemberOnlineStatus : int 4 | { 5 | CLUBS_MEMBER_OFFLINE = 0, 6 | CLUBS_MEMBER_ONLINE_INTERACTIVE = 1, 7 | CLUBS_MEMBER_ONLINE_NON_INTERACTIVE = 2, 8 | CLUBS_MEMBER_IN_GAMEROOM = 3, 9 | CLUBS_MEMBER_IN_OPEN_SESSION = 4, 10 | CLUBS_MEMBER_IN_GAME = 5, 11 | CLUBS_MEMBER_CUSTOM_ONLINE_STATUS = 6, 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Blaze.Core/BlazeRpcContext.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze.Core; 2 | 3 | public class BlazeRpcContext 4 | { 5 | public required BlazeRpcConnection Connection { get; init; } 6 | public object? State => Connection.State; 7 | public required ushort ErrorCode { get; init; } 8 | public required uint MessageNum { get; init; } 9 | public required byte UserIndex { get; init; } 10 | public required ulong Context { get; init; } 11 | } 12 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/JoinMethod.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.GameManager; 2 | 3 | public enum JoinMethod : int 4 | { 5 | JOIN_BY_BROWSING = 1, 6 | JOIN_BY_MATCHMAKING = 2, 7 | JOIN_BY_INVITES = 4, 8 | JOIN_BY_PLAYER = 8, 9 | SYS_JOIN_BY_FOLLOWLEADER_CREATEGAME = 15, 10 | SYS_JOIN_BY_RESETDEDICATEDSERVER = 16, 11 | SYS_JOIN_BY_FOLLOWLEADER_RESETDEDICATEDSERVER = 32, 12 | SYS_JOIN_BY_FOLLOWLEADER_CREATEGAME_HOST = 64, 13 | } 14 | 15 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/JoinMethod.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum JoinMethod : int 4 | { 5 | JOIN_BY_BROWSING = 1, 6 | JOIN_BY_MATCHMAKING = 2, 7 | JOIN_BY_INVITES = 4, 8 | JOIN_BY_PLAYER = 8, 9 | SYS_JOIN_BY_FOLLOWLEADER_CREATEGAME = 15, 10 | SYS_JOIN_BY_RESETDEDICATEDSERVER = 16, 11 | SYS_JOIN_BY_FOLLOWLEADER_RESETDEDICATEDSERVER = 32, 12 | SYS_JOIN_BY_FOLLOWLEADER_CREATEGAME_HOST = 64, 13 | } 14 | 15 | -------------------------------------------------------------------------------- /Blaze2SDK/Components/ExampleComponentBase.json: -------------------------------------------------------------------------------- 1 | { 2 | "Usings": [], 3 | "Namespace": "Blaze2SDK.Components", 4 | "Id": 3, 5 | "Name": "ExampleComponent", 6 | "ShortName": "Example", 7 | "ErrorCodes": { 8 | "1": "EXAMPLE_ERR_UNKNOWN" 9 | }, 10 | "Methods": [ 11 | { 12 | "Id": 1, 13 | "Name": "poke", 14 | "RequestType": null, 15 | "ResponseType": null, 16 | "ErrorResponseType": null 17 | } 18 | ], 19 | "Notifications": [] 20 | } -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/PlayerRemovedReason.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.GameManager; 2 | 3 | public enum PlayerRemovedReason : int 4 | { 5 | PLAYER_JOIN_TIMEOUT = 0, 6 | PLAYER_CONN_LOST = 1, 7 | BLAZESERVER_CONN_LOST = 2, 8 | MIGRATION_FAILED = 3, 9 | GAME_DESTROYED = 4, 10 | GAME_ENDED = 5, 11 | PLAYER_LEFT = 6, 12 | GROUP_LEFT = 7, 13 | PLAYER_KICKED = 8, 14 | PLAYER_KICKED_WITH_BAN = 9, 15 | PLAYER_JOIN_FROM_QUEUE_FAILED = 10, 16 | } 17 | 18 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/ClubOnlineStatusUpdateReason.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Clubs; 2 | 3 | public enum ClubOnlineStatusUpdateReason : int 4 | { 5 | CLUBS_USER_SESSION_CREATED = 0, 6 | CLUBS_USER_SESSION_DESTROYED = 1, 7 | CLUBS_USER_JOINED_CLUB = 2, 8 | CLUBS_USER_LEFT_CLUB = 3, 9 | CLUBS_USER_ONLINE_STATUS_UPDATED = 4, 10 | CLUBS_CLUB_DESTROYED = 5, 11 | CLUBS_CLUB_CREATED = 6, 12 | CLUBS_CLUB_SETTINGS_UPDATED = 7, 13 | CLUBS_USER_PROMOTED_TO_GM = 8, 14 | } 15 | 16 | -------------------------------------------------------------------------------- /EATDF/Extensions/StreamExtensions.cs: -------------------------------------------------------------------------------- 1 | namespace EATDF.Extensions; 2 | 3 | internal static class StreamExtensions 4 | { 5 | public static bool ReadAll(this Stream stream, Span buffer) 6 | { 7 | int read; 8 | while (buffer.Length > 0) 9 | { 10 | read = stream.Read(buffer); 11 | if (read == 0) 12 | return false; 13 | buffer = buffer.Slice(read); 14 | } 15 | return true; 16 | } 17 | 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/ValidationError.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum ValidationError : int 4 | { 5 | UNKNOWN = 0, 6 | INVALID_VALUE = 1, 7 | ILLEGAL_VALUE = 2, 8 | MISSING_VALUE = 3, 9 | DUPLICATE_VALUE = 4, 10 | INVALID_EMAIL_DOMAIN = 5, 11 | SPACES_NOT_ALLOWED = 6, 12 | TOO_SHORT = 7, 13 | TOO_LONG = 8, 14 | TOO_YOUNG = 9, 15 | TOO_OLD = 10, 16 | ILLEGAL_FOR_COUNTRY = 11, 17 | BANNED_COUNTRY = 12, 18 | } 19 | 20 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/ExternalRefType.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | public enum ExternalRefType : int 4 | { 5 | BLAZE_EXTERNAL_REF_TYPE_UNKNOWN = 0, 6 | BLAZE_EXTERNAL_REF_TYPE_XBOX = 1, 7 | BLAZE_EXTERNAL_REF_TYPE_PS3 = 2, 8 | BLAZE_EXTERNAL_REF_TYPE_WII = 3, 9 | BLAZE_EXTERNAL_REF_TYPE_MOBILE = 4, 10 | BLAZE_EXTERNAL_REF_TYPE_LEGACYPROFILEID = 5, 11 | BLAZE_EXTERNAL_REF_TYPE_TWITTER = 6, 12 | BLAZE_EXTERNAL_REF_TYPE_FACEBOOK = 7, 13 | } 14 | 15 | -------------------------------------------------------------------------------- /EATDF/Serialization/ITdfSerializer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace EATDF.Serialization; 8 | 9 | public interface ITdfSerializer 10 | { 11 | public string Name { get; } 12 | bool Deserialize(Stream stream, out T tdf) where T : Tdf, new(); 13 | bool Deserialize(Stream stream, Tdf tdf); 14 | void Serialize(Stream stream, Tdf tdf); 15 | byte[] Serialize(Tdf tdf); 16 | } 17 | -------------------------------------------------------------------------------- /ProtoFire/Internal/Utilities.cs: -------------------------------------------------------------------------------- 1 | namespace ProtoFire.Internal; 2 | 3 | internal static class Utilities 4 | { 5 | public static void ValidateFrameType(FrameType frameType) 6 | { 7 | if (frameType == FrameType.FireFrame) 8 | return; 9 | 10 | if (frameType == FrameType.Fire2Frame) 11 | throw new NotSupportedException("Fire2Frame is not yet supported"); 12 | 13 | throw new NotSupportedException("Unknown frame type"); 14 | 15 | } 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/NucleusCause.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum NucleusCause : int 4 | { 5 | UNKNOWN = 0, 6 | INVALID_VALUE = 1, 7 | ILLEGAL_VALUE = 2, 8 | MISSING_VALUE = 3, 9 | DUPLICATE_VALUE = 4, 10 | INVALID_EMAIL_DOMAIN = 5, 11 | SPACES_NOT_ALLOWED = 6, 12 | TOO_SHORT = 7, 13 | TOO_LONG = 8, 14 | TOO_YOUNG = 9, 15 | TOO_OLD = 10, 16 | ILLEGAL_FOR_COUNTRY = 11, 17 | BANNED_COUNTRY = 12, 18 | NOT_ALLOWED = 13, 19 | TOKEN_EXPIRED = 14, 20 | } 21 | 22 | -------------------------------------------------------------------------------- /Blaze3SDK/Components/ExampleComponentBase.json: -------------------------------------------------------------------------------- 1 | { 2 | "Usings": [ 3 | "Blaze3SDK.Blaze.Example" 4 | ], 5 | "Namespace": "Blaze3SDK.Components", 6 | "Id": 3, 7 | "Name": "ExampleComponent", 8 | "ShortName": "Example", 9 | "ErrorCodes": { 10 | "1": "EXAMPLE_ERR_UNKNOWN" 11 | }, 12 | "Methods": [ 13 | { 14 | "Id": 1, 15 | "Name": "poke", 16 | "RequestType": "ExampleRequest", 17 | "ResponseType": "ExampleResponse", 18 | "ErrorResponseType": "ExampleError" 19 | } 20 | ], 21 | "Notifications": [] 22 | } -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/PlayerRemovedReason.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | public enum PlayerRemovedReason : int 4 | { 5 | PLAYER_JOIN_TIMEOUT = 0, 6 | PLAYER_CONN_LOST = 1, 7 | BLAZESERVER_CONN_LOST = 2, 8 | MIGRATION_FAILED = 3, 9 | GAME_DESTROYED = 4, 10 | GAME_ENDED = 5, 11 | PLAYER_LEFT = 6, 12 | GROUP_LEFT = 7, 13 | PLAYER_KICKED = 8, 14 | PLAYER_KICKED_WITH_BAN = 9, 15 | PLAYER_JOIN_FROM_QUEUE_FAILED = 10, 16 | PLAYER_RESERVATION_TIMEOUT = 11, 17 | HOST_EJECTED = 12, 18 | } 19 | 20 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/GameSettings.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.GameManager; 2 | 3 | [Flags] 4 | public enum GameSettings : uint 5 | { 6 | None = 0, 7 | OpenToBrowsing = 1, 8 | OpenToMatchmaking = 2, 9 | OpenToInvites = 4, 10 | OpenToJoinByPlayer = 8, 11 | HostMigratable = 16, 12 | Ranked = 32, 13 | AdminOnlyInvites = 64, 14 | EnforceSingleGroupJoin = 128, 15 | JoinInProgressSupported = 256, 16 | AdminInvitesOnlyIgnoreEntryChecks = 512, 17 | EnablePersistedGameId = 1024, 18 | AllowSameTeamId = 2048, 19 | } 20 | 21 | -------------------------------------------------------------------------------- /Blaze.Core/Blaze.Core.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | enable 6 | enable 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/NucleusCause.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | public enum NucleusCause : int 4 | { 5 | UNKNOWN = 0, 6 | INVALID_VALUE = 1, 7 | ILLEGAL_VALUE = 2, 8 | MISSING_VALUE = 3, 9 | DUPLICATE_VALUE = 4, 10 | INVALID_EMAIL_DOMAIN = 5, 11 | SPACES_NOT_ALLOWED = 6, 12 | TOO_SHORT = 7, 13 | TOO_LONG = 8, 14 | TOO_YOUNG = 9, 15 | TOO_OLD = 10, 16 | ILLEGAL_FOR_COUNTRY = 11, 17 | BANNED_COUNTRY = 12, 18 | NOT_ALLOWED = 13, 19 | TOKEN_EXPIRED = 14, 20 | OPTIN_MISMATCH = 15, 21 | } 22 | 23 | -------------------------------------------------------------------------------- /EATDF/Serialization/XmlSerializer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace EATDF.Serialization; 8 | 9 | public class XmlSerializer : TdfSerializer 10 | { 11 | public override string Name => "Xml"; 12 | 13 | public override bool Deserialize(Stream stream, Tdf tdf) 14 | { 15 | throw new NotImplementedException(); 16 | } 17 | 18 | public override void Serialize(Stream stream, Tdf tdf) 19 | { 20 | throw new NotImplementedException(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Blaze.Hosting/Blaze.Hosting.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | enable 6 | enable 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/UpdateReason.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Clubs; 2 | 3 | public enum UpdateReason : int 4 | { 5 | UPDATE_REASON_USER_SESSION_CREATED = 0, 6 | UPDATE_REASON_USER_SESSION_DESTROYED = 1, 7 | UPDATE_REASON_USER_JOINED_CLUB = 2, 8 | UPDATE_REASON_USER_LEFT_CLUB = 3, 9 | UPDATE_REASON_USER_ONLINE_STATUS_UPDATED = 4, 10 | UPDATE_REASON_CLUB_DESTROYED = 5, 11 | UPDATE_REASON_CLUB_CREATED = 6, 12 | UPDATE_REASON_CLUB_SETTINGS_UPDATED = 7, 13 | UPDATE_REASON_USER_PROMOTED_TO_GM = 8, 14 | UPDATE_REASON_USER_DEMOTED_TO_MEMBER = 9, 15 | UPDATE_REASON_TRANSFER_OWNERSHIP = 10, 16 | } 17 | 18 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/NucleusCode.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum NucleusCode : int 4 | { 5 | UNKNOWN = 0, 6 | VALIDATION_FAILED = 1, 7 | NO_SUCH_USER = 2, 8 | NO_SUCH_COUNTRY = 3, 9 | NO_SUCH_PERSONA = 4, 10 | NO_SUCH_EXTERNAL_REFERENCE = 5, 11 | NO_SUCH_NAMESPACE = 6, 12 | INVALID_PASSWORD = 7, 13 | CODE_ALREADY_USED = 8, 14 | INVALID_CODE = 9, 15 | PARSE_EXCEPTION = 10, 16 | NO_SUCH_GROUP = 11, 17 | NO_SUCH_GROUP_NAME = 12, 18 | NO_ASSOCIATED_PRODUCT = 13, 19 | CODE_ALREADY_DISABLED = 14, 20 | GROUP_NAME_DOES_NOT_MATCH = 15, 21 | } 22 | 23 | -------------------------------------------------------------------------------- /EATDF/Types/EmptyMessage.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Members; 2 | 3 | namespace EATDF.Types; 4 | 5 | public class EmptyMessage : Tdf 6 | { 7 | public override Tdf CreateNew() 8 | { 9 | return new EmptyMessage(); 10 | } 11 | 12 | public override string GetClassName() 13 | { 14 | return nameof(EmptyMessage); 15 | } 16 | 17 | public override string GetFullClassName() 18 | { 19 | return typeof(EmptyMessage).FullName ?? nameof(EmptyMessage); 20 | } 21 | 22 | public override TdfMemberInfo[] GetMemberInfos() 23 | { 24 | return Array.Empty(); 25 | } 26 | 27 | public override ITdfMember[] GetMembers() 28 | { 29 | return Array.Empty(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /EATDF/Members/TdfFloat.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public class TdfFloat : TdfMember 6 | { 7 | public TdfFloat(TdfMemberInfo typeInfo) : base(typeInfo) 8 | { 9 | } 10 | 11 | public override float DefaultValue() 12 | { 13 | return 0.0f; 14 | } 15 | 16 | public override float InitValue() 17 | { 18 | return 0.0f; 19 | } 20 | 21 | public override bool IsSet() 22 | { 23 | return UserSet; 24 | } 25 | 26 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 27 | { 28 | return visitor.VisitFloat(this, parent); 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return Value.ToString(); 34 | } 35 | } -------------------------------------------------------------------------------- /EATDF/Serialization/HeatSerializer.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace EATDF.Serialization; 9 | 10 | public class HeatSerializer : TdfSerializer 11 | { 12 | public override string Name => "Heat"; 13 | 14 | public override bool Deserialize(Stream stream, Tdf tdf) 15 | { 16 | HeatDecoder decoder = new HeatDecoder(stream); 17 | decoder.VisitTdf(tdf); 18 | return decoder.StreamValid; 19 | } 20 | 21 | public override void Serialize(Stream stream, Tdf tdf) 22 | { 23 | HeatEncoder encoder = new HeatEncoder(stream); 24 | encoder.VisitTdf(tdf); 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /EATDF/Members/TdfBool.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public class TdfBool : TdfMember 6 | { 7 | public TdfBool(TdfMemberInfo typeInfo) : base(typeInfo) 8 | { 9 | } 10 | 11 | public override bool DefaultValue() 12 | { 13 | return false; 14 | } 15 | 16 | public override bool InitValue() 17 | { 18 | return false; 19 | } 20 | 21 | public override bool IsSet() 22 | { 23 | return UserSet; 24 | } 25 | 26 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 27 | { 28 | return visitor.VisitBool(this, parent); 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return Value ? "true" : "false"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /EATDF/Members/TdfInt16.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public class TdfInt16 : TdfMember 6 | { 7 | public TdfInt16(TdfMemberInfo typeInfo) : base(typeInfo) 8 | { 9 | } 10 | 11 | public override short DefaultValue() 12 | { 13 | return 0; 14 | } 15 | 16 | public override short InitValue() 17 | { 18 | return 0; 19 | } 20 | 21 | public override bool IsSet() 22 | { 23 | return UserSet; 24 | } 25 | 26 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 27 | { 28 | return visitor.VisitInt16(this, parent); 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return $"{Value} (0x{Value:X4})"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /EATDF/Members/TdfInt32.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public class TdfInt32 : TdfMember 6 | { 7 | public TdfInt32(TdfMemberInfo typeInfo) : base(typeInfo) 8 | { 9 | } 10 | 11 | public override int DefaultValue() 12 | { 13 | return 0; 14 | } 15 | 16 | public override int InitValue() 17 | { 18 | return 0; 19 | } 20 | 21 | public override bool IsSet() 22 | { 23 | return UserSet; 24 | } 25 | 26 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 27 | { 28 | return visitor.VisitInt32(this, parent); 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return $"{Value} (0x{Value:X8})"; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /EATDF/Members/TdfInt64.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public class TdfInt64 : TdfMember 6 | { 7 | public TdfInt64(TdfMemberInfo typeInfo) : base(typeInfo) 8 | { 9 | } 10 | 11 | public override long DefaultValue() 12 | { 13 | return 0; 14 | } 15 | 16 | public override long InitValue() 17 | { 18 | return 0; 19 | } 20 | 21 | public override bool IsSet() 22 | { 23 | return UserSet; 24 | } 25 | 26 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 27 | { 28 | return visitor.VisitInt64(this, parent); 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return $"{Value} (0x{Value:X16})"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /EATDF/Members/TdfInt8.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public class TdfInt8 : TdfMember 6 | { 7 | public TdfInt8(TdfMemberInfo typeInfo) : base(typeInfo) 8 | { 9 | } 10 | 11 | public override sbyte DefaultValue() 12 | { 13 | return 0; 14 | } 15 | 16 | public override sbyte InitValue() 17 | { 18 | return 0; 19 | } 20 | 21 | public override bool IsSet() 22 | { 23 | return UserSet; 24 | } 25 | 26 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 27 | { 28 | return visitor.VisitInt8(this, parent); 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return $"{Value} (0x{Value:X2})"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /EATDF/Members/TdfUInt8.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public class TdfUInt8 : TdfMember 6 | { 7 | public TdfUInt8(TdfMemberInfo typeInfo) : base(typeInfo) 8 | { 9 | } 10 | 11 | public override byte DefaultValue() 12 | { 13 | return 0; 14 | } 15 | 16 | public override byte InitValue() 17 | { 18 | return 0; 19 | } 20 | 21 | public override bool IsSet() 22 | { 23 | return UserSet; 24 | } 25 | 26 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 27 | { 28 | return visitor.VisitUInt8(this, parent); 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return $"{Value} (0x{Value:X2})"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /EATDF/Members/TdfUInt32.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public class TdfUInt32 : TdfMember 6 | { 7 | public TdfUInt32(TdfMemberInfo typeInfo) : base(typeInfo) 8 | { 9 | } 10 | 11 | public override uint DefaultValue() 12 | { 13 | return 0; 14 | } 15 | 16 | public override uint InitValue() 17 | { 18 | return 0; 19 | } 20 | 21 | public override bool IsSet() 22 | { 23 | return UserSet; 24 | } 25 | 26 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 27 | { 28 | return visitor.VisitUInt32(this, parent); 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return $"{Value} (0x{Value:X8})"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /EATDF/Members/TdfUInt64.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public class TdfUInt64 : TdfMember 6 | { 7 | public TdfUInt64(TdfMemberInfo typeInfo) : base(typeInfo) 8 | { 9 | } 10 | 11 | public override ulong DefaultValue() 12 | { 13 | return 0; 14 | } 15 | 16 | public override ulong InitValue() 17 | { 18 | return 0; 19 | } 20 | 21 | public override bool IsSet() 22 | { 23 | return UserSet; 24 | } 25 | 26 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 27 | { 28 | return visitor.VisitUInt64(this, parent); 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return $"{Value} (0x{Value:X16})"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /EATDF/Members/TdfUInt16.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public class TdfUInt16 : TdfMember 6 | { 7 | public TdfUInt16(TdfMemberInfo typeInfo) : base(typeInfo) 8 | { 9 | } 10 | 11 | public override ushort DefaultValue() 12 | { 13 | return 0; 14 | } 15 | 16 | public override ushort InitValue() 17 | { 18 | return 0; 19 | } 20 | 21 | public override bool IsSet() 22 | { 23 | return UserSet; 24 | } 25 | 26 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 27 | { 28 | return visitor.VisitUInt16(this, parent); 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return $"{Value} (0x{Value:X4})"; 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /ProtoFire/Tls/ProtoFireTlsAuthentication.cs: -------------------------------------------------------------------------------- 1 | using Org.BouncyCastle.Pqc.Crypto.Lms; 2 | using Org.BouncyCastle.Tls; 3 | using Org.BouncyCastle.Utilities; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Diagnostics; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | 11 | namespace ProtoFire.Tls; 12 | 13 | internal class ProtoFireTlsAuthentication : TlsAuthentication 14 | { 15 | public TlsCredentials GetClientCredentials(CertificateRequest certificateRequest) 16 | { 17 | return null!; 18 | } 19 | 20 | public void NotifyServerCertificate(TlsServerCertificate serverCertificate) 21 | { 22 | // Do nothing 23 | Debug.WriteLine("[ProtoFire]: Server certificate received"); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/StatusReason.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze2SDK.Blaze.Authentication; 2 | 3 | public enum StatusReason : int 4 | { 5 | UNKNOWN = 0, 6 | NONE = 1, 7 | REACTIVATED_CUSTOMER = 2, 8 | INVALID_EMAIL = 3, 9 | PRIVACY_POLICY = 4, 10 | PARENTS_REQUEST = 5, 11 | PARENTAL_REQUEST = 6, 12 | SUSPENDED_MISCONDUCT_GENERAL = 7, 13 | SUSPENDED_MISCONDUCT_HARASSMENT = 8, 14 | SUSPENDED_MISCONDUCT_MACROING = 9, 15 | SUSPENDED_MISCONDUCT_EXPLOITATION = 10, 16 | CUSTOMER_OPT_OUT = 11, 17 | CUSTOMER_UNDER_AGE = 12, 18 | EMAIL_CONFIRMATION_REQUIRED = 13, 19 | MISTYPED_ID = 14, 20 | ABUSED_ID = 15, 21 | DEACTIVATED_EMAIL_LINK = 16, 22 | DEACTIVATED_CS = 17, 23 | CLAIMED_BY_TRUE_OWNER = 18, 24 | BANNED = 19, 25 | } 26 | 27 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/StatusReason.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.Authentication; 2 | 3 | public enum StatusReason : int 4 | { 5 | UNKNOWN = 0, 6 | NONE = 1, 7 | REACTIVATED_CUSTOMER = 2, 8 | INVALID_EMAIL = 3, 9 | PRIVACY_POLICY = 4, 10 | PARENTS_REQUEST = 5, 11 | PARENTAL_REQUEST = 6, 12 | SUSPENDED_MISCONDUCT_GENERAL = 7, 13 | SUSPENDED_MISCONDUCT_HARASSMENT = 8, 14 | SUSPENDED_MISCONDUCT_MACROING = 9, 15 | SUSPENDED_MISCONDUCT_EXPLOITATION = 10, 16 | CUSTOMER_OPT_OUT = 11, 17 | CUSTOMER_UNDER_AGE = 12, 18 | EMAIL_CONFIRMATION_REQUIRED = 13, 19 | MISTYPED_ID = 14, 20 | ABUSED_ID = 15, 21 | DEACTIVATED_EMAIL_LINK = 16, 22 | DEACTIVATED_CS = 17, 23 | CLAIMED_BY_TRUE_OWNER = 18, 24 | BANNED = 19, 25 | } 26 | 27 | -------------------------------------------------------------------------------- /EATDF/Members/TdfString.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public class TdfString : TdfMember 6 | { 7 | public TdfString(TdfMemberInfo typeInfo) : base(typeInfo) 8 | { 9 | } 10 | 11 | public override string DefaultValue() 12 | { 13 | return string.Empty; 14 | } 15 | 16 | public override string InitValue() 17 | { 18 | return string.Empty; 19 | } 20 | 21 | public override bool IsSet() 22 | { 23 | return UserSet && Value != null; 24 | } 25 | 26 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 27 | { 28 | return visitor.VisitString(this, parent); 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return Value; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Blaze.Core/IBlazeServerCallbacks.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Visitors; 3 | using ProtoFire; 4 | using ProtoFire.Tls; 5 | 6 | namespace Blaze.Core; 7 | 8 | public interface IBlazeServerCallbacks 9 | { 10 | Task OnConnectedAsync(BlazeRpcConnection connection); 11 | ProtoSSLCertificate? SelectCertificate(BlazeRpcConnection connection); 12 | Task OnAuthenticatedAsync(BlazeRpcConnection connection, bool secure); 13 | Task OnDisconnectedAsync(BlazeRpcConnection connection); 14 | Task OnErrorAsync(BlazeRpcConnection connection, Exception exception); 15 | Task OnRpcCommandErrorAsync(BlazeRpcConnection connection, ProtoFirePacket packet, Tdf request, Exception exception); 16 | Task OnUnhandledAsync(BlazeRpcConnection connection, ProtoFirePacket packet, bool corrupted); 17 | } 18 | -------------------------------------------------------------------------------- /EATDF/Members/TdfVariable.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public class TdfVariable : TdfMember 6 | { 7 | public TdfVariable(TdfMemberInfo typeInfo) : base(typeInfo) 8 | { 9 | } 10 | 11 | public override object? DefaultValue() 12 | { 13 | return null; 14 | } 15 | 16 | public override object? InitValue() 17 | { 18 | return null; 19 | } 20 | 21 | public override bool IsSet() 22 | { 23 | return UserSet; 24 | } 25 | 26 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 27 | { 28 | return visitor.VisitVariable(this, parent); 29 | } 30 | 31 | public override string ToString() 32 | { 33 | return Value?.ToString() ?? "(null)"; 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /EATDF/Members/TdfObjectId.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Types; 2 | using EATDF.Visitors; 3 | 4 | namespace EATDF.Members; 5 | 6 | public class TdfObjectId : TdfMember 7 | { 8 | public TdfObjectId(TdfMemberInfo typeInfo) : base(typeInfo) 9 | { 10 | } 11 | 12 | public override ObjectId DefaultValue() 13 | { 14 | return new ObjectId(); 15 | } 16 | 17 | public override ObjectId InitValue() 18 | { 19 | return new ObjectId(); 20 | } 21 | 22 | public override bool IsSet() 23 | { 24 | return UserSet; 25 | } 26 | 27 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 28 | { 29 | return visitor.VisitBlazeObjectId(this, parent); 30 | } 31 | 32 | public override string ToString() 33 | { 34 | return Value.ToString(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /EATDF/Members/TdfTimeValue.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Types; 2 | using EATDF.Visitors; 3 | 4 | namespace EATDF.Members; 5 | 6 | public class TdfTimeValue : TdfMember 7 | { 8 | public TdfTimeValue(TdfMemberInfo typeInfo) : base(typeInfo) 9 | { 10 | } 11 | 12 | public override TimeValue DefaultValue() 13 | { 14 | return new TimeValue(); 15 | } 16 | 17 | public override TimeValue InitValue() 18 | { 19 | return new TimeValue(); 20 | } 21 | 22 | public override bool IsSet() 23 | { 24 | return UserSet; 25 | } 26 | 27 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 28 | { 29 | return visitor.VisitTimeValue(this, parent); 30 | } 31 | 32 | public override string ToString() 33 | { 34 | return Value.ToString(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /EATDF/Members/TdfObjectType.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Types; 2 | using EATDF.Visitors; 3 | 4 | namespace EATDF.Members; 5 | 6 | public class TdfObjectType : TdfMember 7 | { 8 | public TdfObjectType(TdfMemberInfo typeInfo) : base(typeInfo) 9 | { 10 | } 11 | 12 | public override ObjectType DefaultValue() 13 | { 14 | return new ObjectType(); 15 | } 16 | 17 | public override ObjectType InitValue() 18 | { 19 | return new ObjectType(); 20 | } 21 | 22 | public override bool IsSet() 23 | { 24 | return UserSet; 25 | } 26 | 27 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 28 | { 29 | return visitor.VisitBlazeObjectType(this, parent); 30 | } 31 | 32 | public override string ToString() 33 | { 34 | return Value.ToString(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /ProtoFire/Captures/Records/CaptureRecord.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Buffers.Binary; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace ProtoFire.Captures.Records; 9 | 10 | public abstract class CaptureRecord 11 | { 12 | public abstract RecordType RecordType { get; } 13 | public DateTime Timestamp { get; set; } = DateTime.UtcNow; 14 | 15 | internal virtual void WriteTo(Stream stream) 16 | { 17 | ArgumentNullException.ThrowIfNull(stream, nameof(stream)); 18 | 19 | StreamUtils.WriteTimestamp(stream, Timestamp); 20 | } 21 | 22 | internal virtual void ReadFrom(Stream stream) 23 | { 24 | ArgumentNullException.ThrowIfNull(stream, nameof(stream)); 25 | 26 | Timestamp = StreamUtils.ReadTimestamp(stream); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /EATDF/Members/TdfBlob.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Printer; 2 | using EATDF.Visitors; 3 | 4 | namespace EATDF.Members; 5 | 6 | public class TdfBlob : TdfMember 7 | { 8 | public TdfBlob(TdfMemberInfo typeInfo) : base(typeInfo) 9 | { 10 | } 11 | 12 | public override byte[] DefaultValue() 13 | { 14 | return Array.Empty(); 15 | } 16 | 17 | public override byte[] InitValue() 18 | { 19 | return Array.Empty(); 20 | } 21 | 22 | public override bool IsSet() 23 | { 24 | return Value != null && (UserSet || Value.Length > 0); 25 | } 26 | 27 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 28 | { 29 | return visitor.VisitBlob(this, parent); 30 | } 31 | 32 | public override string ToString() 33 | { 34 | return StringFormatter.FormatBytes(Value); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /EATDF/Members/TdfUnion.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Types; 2 | using EATDF.Visitors; 3 | 4 | namespace EATDF.Members; 5 | 6 | public class TdfUnion : TdfMember where TUnion : Union, new() 7 | { 8 | public TdfUnion(TdfMemberInfo typeInfo) : base(typeInfo) 9 | { 10 | 11 | } 12 | 13 | public override TUnion DefaultValue() 14 | { 15 | return new TUnion(); 16 | } 17 | 18 | public override TUnion InitValue() 19 | { 20 | return new TUnion(); 21 | } 22 | 23 | public override bool IsSet() 24 | { 25 | return UserSet && Value != null; 26 | } 27 | 28 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 29 | { 30 | return visitor.VisitUnion(this, parent); 31 | } 32 | 33 | public override string ToString() 34 | { 35 | return Value?.ToString() ?? "(null)"; 36 | } 37 | } -------------------------------------------------------------------------------- /Blaze.Core/BlazeRpcException.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | 3 | namespace Blaze.Core; 4 | 5 | public class BlazeRpcException : Exception 6 | { 7 | public ushort ErrorCode { get; } 8 | public Tdf? ErrorResponse { get; } 9 | 10 | public BlazeRpcException(ushort errorCode, Tdf? errorResponse) 11 | { 12 | ErrorCode = errorCode; 13 | ErrorResponse = errorResponse; 14 | } 15 | 16 | public BlazeRpcException(ushort errorCode, Tdf? errorResponse, string? message) 17 | : base(message) 18 | { 19 | ErrorCode = errorCode; 20 | ErrorResponse = errorResponse; 21 | } 22 | 23 | public BlazeRpcException(ushort errorCode, Tdf? errorResponse, string? message, Exception? innerException) 24 | : base(message, innerException) 25 | { 26 | ErrorCode = errorCode; 27 | ErrorResponse = errorResponse; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /EATDF/Serialization/TdfSerializer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Concurrent; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace EATDF.Serialization; 9 | 10 | public abstract class TdfSerializer : ITdfSerializer 11 | { 12 | public abstract string Name { get; } 13 | 14 | public bool Deserialize(Stream stream, out T tdf) where T : Tdf, new() 15 | { 16 | tdf = new T(); 17 | return Deserialize(stream, tdf); 18 | } 19 | 20 | public byte[] Serialize(Tdf tdf) 21 | { 22 | using MemoryStream stream = new MemoryStream(); 23 | Serialize(stream, tdf); 24 | return stream.ToArray(); 25 | } 26 | 27 | public abstract bool Deserialize(Stream stream, Tdf tdf); 28 | public abstract void Serialize(Stream stream, Tdf tdf); 29 | } 30 | -------------------------------------------------------------------------------- /ProtoFire/Frames/IFireFrame.cs: -------------------------------------------------------------------------------- 1 | namespace ProtoFire.Frames; 2 | 3 | public interface IFireFrame 4 | { 5 | FrameType Type { get; } 6 | MessageType MessageType { get; set; } 7 | public uint MessageNum { get; set; } 8 | int HeaderSize { get; } 9 | uint Size { get; set; } 10 | ushort Component { get; set; } 11 | ushort Command { get; set; } 12 | ushort ErrorCode { get; set; } 13 | int FullErrorCode { get; } 14 | byte UserIndex { get; set; } 15 | ulong Context { get; set; } 16 | 17 | IFireFrame CreateResponseFrame(); 18 | IFireFrame CreateResponseFrame(ushort errorCode); 19 | 20 | // Reading the frame data from the stream 21 | void Initialize(Stream stream); 22 | Task InitializeAsync(Stream stream); 23 | 24 | // Writing the frame to the stream 25 | void WriteTo(Stream stream); 26 | Task WriteToAsync(Stream stream); 27 | } 28 | -------------------------------------------------------------------------------- /Blaze.Core/RpcNotificationFunc.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | 3 | namespace Blaze.Core; 4 | 5 | public class RpcNotificationFunc : IRpcNotificationFunc where TNotification : Tdf, new() 6 | { 7 | public required ushort Id { get; init; } 8 | public required string Name { get; init; } 9 | public required bool IsSupported { get; init; } 10 | public required Func Func { get; init; } 11 | public TNotification CreateNotificationStruct() => new TNotification(); 12 | Tdf IRpcNotificationFunc.CreateNotificationTdf() => CreateNotificationStruct(); 13 | public Task InvokeAsync(TNotification notification, BlazeRpcContext context) => Func(notification, context); 14 | public Task InvokeAsync(Tdf notification, BlazeRpcContext context) 15 | { 16 | return InvokeAsync((TNotification)notification, context); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Blaze2SDK/Components/GpsContentControllerComponentBase.json: -------------------------------------------------------------------------------- 1 | { 2 | "Usings": [], 3 | "Namespace": "Blaze2SDK.Components", 4 | "Id": 27, 5 | "Name": "GpsContentControllerComponent", 6 | "ShortName": "GpsContentController", 7 | "ErrorCodes": { 8 | "1": "GPSCONTENTCONTROLLER_ERR_CONTENT_NOT_FOUND" 9 | }, 10 | "Methods": [ 11 | { 12 | "Id": 1, 13 | "Name": "filePetition", 14 | "RequestType": null, 15 | "ResponseType": null, 16 | "ErrorResponseType": null 17 | }, 18 | { 19 | "Id": 2, 20 | "Name": "fetchContent", 21 | "RequestType": null, 22 | "ResponseType": null, 23 | "ErrorResponseType": null 24 | }, 25 | { 26 | "Id": 3, 27 | "Name": "showContent", 28 | "RequestType": null, 29 | "ResponseType": null, 30 | "ErrorResponseType": null 31 | } 32 | ], 33 | "Notifications": [] 34 | } -------------------------------------------------------------------------------- /Blaze3SDK/Components/GpsContentControllerComponentBase.json: -------------------------------------------------------------------------------- 1 | { 2 | "Usings": [], 3 | "Namespace": "Blaze3SDK.Components", 4 | "Id": 27, 5 | "Name": "GpsContentControllerComponent", 6 | "ShortName": "GpsContentController", 7 | "ErrorCodes": { 8 | "1": "GPSCONTENTCONTROLLER_ERR_CONTENT_NOT_FOUND" 9 | }, 10 | "Methods": [ 11 | { 12 | "Id": 1, 13 | "Name": "filePetition", 14 | "RequestType": null, 15 | "ResponseType": null, 16 | "ErrorResponseType": null 17 | }, 18 | { 19 | "Id": 2, 20 | "Name": "fetchContent", 21 | "RequestType": null, 22 | "ResponseType": null, 23 | "ErrorResponseType": null 24 | }, 25 | { 26 | "Id": 3, 27 | "Name": "showContent", 28 | "RequestType": null, 29 | "ResponseType": null, 30 | "ErrorResponseType": null 31 | } 32 | ], 33 | "Notifications": [] 34 | } -------------------------------------------------------------------------------- /EATDF/Members/TdfList.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Printer; 2 | using EATDF.Visitors; 3 | 4 | namespace EATDF.Members; 5 | 6 | public class TdfList : TdfMember> 7 | { 8 | public TdfList(TdfMemberInfo typeInfo) : base(typeInfo) 9 | { 10 | } 11 | 12 | public Type ElementType => typeof(T); 13 | 14 | public override IList DefaultValue() 15 | { 16 | return new List(); 17 | } 18 | 19 | public override IList InitValue() 20 | { 21 | return new List(); 22 | } 23 | 24 | public override bool IsSet() 25 | { 26 | return Value != null && (UserSet || Value.Count > 0); 27 | } 28 | 29 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 30 | { 31 | return visitor.VisitList(this, parent); 32 | } 33 | 34 | public override string ToString() 35 | { 36 | return StringFormatter.FormatList(Value); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /Blaze.Core/BlazeServerConfig.cs: -------------------------------------------------------------------------------- 1 | using Blaze.Core.Internal; 2 | using EATDF.Serialization; 3 | using Microsoft.Extensions.Logging; 4 | using ProtoFire; 5 | using ProtoFire.Tls; 6 | using System; 7 | using System.Collections.Generic; 8 | using System.Linq; 9 | using System.Net; 10 | using System.Text; 11 | using System.Threading.Tasks; 12 | 13 | namespace Blaze.Core; 14 | 15 | public class BlazeServerConfig 16 | { 17 | public IPEndPoint LocalEndpoint { get; set; } = new IPEndPoint(IPAddress.Any, 0); 18 | public FrameEncoding PacketFrameEncoding { get; set; } = FrameEncoding.Fire; 19 | public ITdfSerializer Serializer { get; set; } = new Heat2Serializer(); 20 | public IBlazeRouter Router { get; set; } = new BlazeRouter(); 21 | public IBlazeServerCallbacks CallbackHandler { get; set; } = new DefaultServerCallbacks(); 22 | public bool Secure { get; set; } = false; 23 | public int Backlog { get; set; } = -1; 24 | } 25 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/GameSettings.cs: -------------------------------------------------------------------------------- 1 | namespace Blaze3SDK.Blaze.GameManager; 2 | 3 | [Flags] 4 | public enum GameSettings : int 5 | { 6 | None = 0, 7 | OpenToBrowsing = 1, 8 | OpenToMatchmaking = 2, 9 | OpenToInvites = 4, 10 | OpenToJoinByPlayer = 8, 11 | HostMigratable = 16, 12 | Ranked = 32, 13 | AdminOnlyInvites = 64, 14 | EnforceSingleGroupJoin = 128, 15 | JoinInProgressSupported = 256, 16 | AdminInvitesOnlyIgnoreEntryChecks = 512, 17 | IgnoreEntryCriteriaWithInvite = 1024, 18 | EnablePersistedGameId = 2048, 19 | AllowSameTeamId = 4096, 20 | Virtualized = 8192, 21 | SendOrphanedGameReportEvent = 16384, 22 | AllowAnyReputation = 32768, 23 | LockedAsBusy = 65536, 24 | DisconnectReservation = 131072, 25 | DynamicReputationRequirement = 262144, 26 | FriendsBypassClosedToJoinByPlayer = 524288, 27 | AllowMemberGameAttributeEdit = 1048576, 28 | } 29 | 30 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/MatchmakingCustomAsyncStatus.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.GameManager; 6 | 7 | public class MatchmakingCustomAsyncStatus : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | ]; 11 | private ITdfMember[] __members; 12 | 13 | 14 | public MatchmakingCustomAsyncStatus() 15 | { 16 | __members = [ 17 | ]; 18 | } 19 | 20 | public override Tdf CreateNew() => new MatchmakingCustomAsyncStatus(); 21 | public override ITdfMember[] GetMembers() => __members; 22 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 23 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 24 | public override string GetClassName() => "MatchmakingCustomAsyncStatus"; 25 | public override string GetFullClassName() => "Blaze::GameManager::MatchmakingCustomAsyncStatus"; 26 | 27 | } 28 | 29 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/MatchmakingCustomAsyncStatus.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.GameManager; 6 | 7 | public class MatchmakingCustomAsyncStatus : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | ]; 11 | private ITdfMember[] __members; 12 | 13 | 14 | public MatchmakingCustomAsyncStatus() 15 | { 16 | __members = [ 17 | ]; 18 | } 19 | 20 | public override Tdf CreateNew() => new MatchmakingCustomAsyncStatus(); 21 | public override ITdfMember[] GetMembers() => __members; 22 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 23 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 24 | public override string GetClassName() => "MatchmakingCustomAsyncStatus"; 25 | public override string GetFullClassName() => "Blaze::GameManager::MatchmakingCustomAsyncStatus"; 26 | 27 | } 28 | 29 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/MatchmakingCustomCriteriaData.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.GameManager; 6 | 7 | public class MatchmakingCustomCriteriaData : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | ]; 11 | private ITdfMember[] __members; 12 | 13 | 14 | public MatchmakingCustomCriteriaData() 15 | { 16 | __members = [ 17 | ]; 18 | } 19 | 20 | public override Tdf CreateNew() => new MatchmakingCustomCriteriaData(); 21 | public override ITdfMember[] GetMembers() => __members; 22 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 23 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 24 | public override string GetClassName() => "MatchmakingCustomCriteriaData"; 25 | public override string GetFullClassName() => "Blaze::GameManager::MatchmakingCustomCriteriaData"; 26 | 27 | } 28 | 29 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/MatchmakingCustomCriteriaData.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.GameManager; 6 | 7 | public class MatchmakingCustomCriteriaData : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | ]; 11 | private ITdfMember[] __members; 12 | 13 | 14 | public MatchmakingCustomCriteriaData() 15 | { 16 | __members = [ 17 | ]; 18 | } 19 | 20 | public override Tdf CreateNew() => new MatchmakingCustomCriteriaData(); 21 | public override ITdfMember[] GetMembers() => __members; 22 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 23 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 24 | public override string GetClassName() => "MatchmakingCustomCriteriaData"; 25 | public override string GetFullClassName() => "Blaze::GameManager::MatchmakingCustomCriteriaData"; 26 | 27 | } 28 | 29 | -------------------------------------------------------------------------------- /Blaze2SDK/Components/MailComponentBase.json: -------------------------------------------------------------------------------- 1 | { 2 | "Usings": [], 3 | "Namespace": "Blaze2SDK.Components", 4 | "Id": 14, 5 | "Name": "MailComponent", 6 | "ShortName": "Mail", 7 | "ErrorCodes": { 8 | "1": "MAIL_ERR_INVALID_OPTIN_FLAGS", 9 | "2": "MAIL_ERR_INVALID_EMAIL_FORMAT", 10 | "3": "MAIL_ERR_USER_NOT_FOUND_IN_DB", 11 | "20": "MAIL_ERR_SEND_MAIL_INVALID_EMAIL", 12 | "21": "MAIL_ERR_SEND_MAIL_INVALID_TEMPLATE", 13 | "22": "MAIL_ERR_SEND_MAIL_MISSING_HEADER", 14 | "23": "MAIL_ERR_SEND_MAIL_MISSING_VARIABLE_VALUE" 15 | }, 16 | "Methods": [ 17 | { 18 | "Id": 1, 19 | "Name": "updateMailSettings", 20 | "RequestType": null, 21 | "ResponseType": null, 22 | "ErrorResponseType": null 23 | }, 24 | { 25 | "Id": 2, 26 | "Name": "sendMailToSelf", 27 | "RequestType": null, 28 | "ResponseType": null, 29 | "ErrorResponseType": null 30 | } 31 | ], 32 | "Notifications": [] 33 | } -------------------------------------------------------------------------------- /ProtoFire/Captures/Records/PacketRecord.cs: -------------------------------------------------------------------------------- 1 | using ProtoFire.Frames; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace ProtoFire.Captures.Records; 9 | 10 | public class PacketRecord : CaptureRecord 11 | { 12 | public override RecordType RecordType => RecordType.Packet; 13 | public bool Inbound { get; set; } 14 | public ProtoFirePacket Packet { get; set; } = null!; 15 | 16 | internal override void WriteTo(Stream stream) 17 | { 18 | ArgumentNullException.ThrowIfNull(Packet, nameof(Packet)); 19 | 20 | base.WriteTo(stream); 21 | 22 | StreamUtils.WriteBool(stream, Inbound); 23 | StreamUtils.WritePacket(stream, Packet); 24 | } 25 | 26 | internal override void ReadFrom(Stream stream) 27 | { 28 | base.ReadFrom(stream); 29 | 30 | Inbound = StreamUtils.ReadBool(stream); 31 | Packet = StreamUtils.ReadPacket(stream); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /EATDF/Types/ObjectType.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace EATDF.Types; 3 | 4 | public struct ObjectType 5 | { 6 | public ushort Component { get; set; } 7 | public ushort Type { get; set; } 8 | 9 | public ObjectType() 10 | { 11 | Component = 0; 12 | Type = 0; 13 | } 14 | 15 | public ObjectType(ushort component, ushort type) 16 | { 17 | Component = component; 18 | Type = type; 19 | } 20 | 21 | public override string ToString() 22 | { 23 | return $"{Component}/{Type}"; 24 | } 25 | 26 | public object? GetValue() 27 | { 28 | return this; 29 | } 30 | 31 | public void SetValue(object value) 32 | { 33 | ObjectType obj = (ObjectType)value; 34 | Component = obj.Component; 35 | Type = obj.Type; 36 | } 37 | 38 | public object? GetDefaultValue() 39 | { 40 | return new ObjectType(); 41 | } 42 | 43 | public object? GetInitValue() 44 | { 45 | return new ObjectType(); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /EATDF/Serialization/Heat2Serializer.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace EATDF.Serialization; 9 | 10 | public class Heat2Serializer : TdfSerializer 11 | { 12 | public override string Name => "Heat2"; 13 | 14 | public ITdfRegistry Registry { get; } 15 | 16 | public Heat2Serializer(ITdfRegistry registry) 17 | { 18 | Registry = registry; 19 | } 20 | 21 | public Heat2Serializer() 22 | { 23 | Registry = new TdfRegistry(); 24 | } 25 | 26 | public override bool Deserialize(Stream stream, Tdf tdf) 27 | { 28 | Heat2Decoder decoder = new Heat2Decoder(stream, Registry); 29 | decoder.VisitTdf(tdf); 30 | return decoder.StreamValid; 31 | } 32 | 33 | public override void Serialize(Stream stream, Tdf tdf) 34 | { 35 | Heat2Encoder encoder = new Heat2Encoder(stream, Registry); 36 | encoder.VisitTdf(tdf); 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /EATDF/Serialization/TdfRegistry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Concurrent; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace EATDF.Serialization; 9 | 10 | public class TdfRegistry : ITdfRegistry 11 | { 12 | ConcurrentDictionary _registeredTdfs = new ConcurrentDictionary(); 13 | 14 | public bool RegisterTdf() where T : Tdf, new() 15 | { 16 | T tdf = new T(); 17 | return RegisterTdf(tdf); 18 | } 19 | 20 | public bool RegisterTdf(Tdf tdf) 21 | { 22 | uint tdfId = tdf.GetTdfId(); 23 | if (tdfId == 0) 24 | return false; 25 | 26 | return _registeredTdfs.TryAdd(tdfId, tdf); 27 | } 28 | 29 | public Tdf? CreateTdf(uint tdfId) 30 | { 31 | if (tdfId == 0) 32 | return null; 33 | 34 | if (_registeredTdfs.TryGetValue(tdfId, out Tdf? tdf)) 35 | return tdf.CreateNew(); 36 | 37 | return null; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /EATDF/Members/TdfMember.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Visitors; 2 | 3 | namespace EATDF.Members; 4 | 5 | public abstract class TdfMember : ITdfMember 6 | { 7 | private bool _setByUser; 8 | private T _value; 9 | public bool UserSet => _setByUser; 10 | public TdfMemberInfo TdfInfo { get; } 11 | public Type Type => typeof(T); 12 | public T Value 13 | { 14 | get => _value; 15 | set 16 | { 17 | _value = value; 18 | _setByUser = true; 19 | } 20 | } 21 | 22 | public TdfMember(TdfMemberInfo typeInfo) 23 | { 24 | TdfInfo = typeInfo; 25 | _value = InitValue(); 26 | _setByUser = false; 27 | } 28 | public abstract bool IsSet(); 29 | public abstract bool Visit(ITdfVisitor visitor, Tdf parent); 30 | public abstract T DefaultValue(); 31 | public abstract T InitValue(); 32 | 33 | public void Reset() 34 | { 35 | _value = InitValue(); 36 | } 37 | 38 | public object? GetValue() 39 | { 40 | return Value; 41 | } 42 | } 43 | 44 | 45 | -------------------------------------------------------------------------------- /EATDF/Members/TdfMap.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Printer; 2 | using EATDF.Visitors; 3 | 4 | namespace EATDF.Members; 5 | 6 | public class TdfMap : TdfMember> where TKey : notnull 7 | { 8 | public TdfMap(TdfMemberInfo typeInfo) : base(typeInfo) 9 | { 10 | } 11 | 12 | public Type KeyType => typeof(TKey); 13 | public Type ValueType => typeof(TValue); 14 | 15 | public override IDictionary DefaultValue() 16 | { 17 | return new SortedDictionary(); 18 | } 19 | 20 | public override IDictionary InitValue() 21 | { 22 | return new SortedDictionary(); 23 | } 24 | 25 | public override bool IsSet() 26 | { 27 | return Value != null && (UserSet || Value.Count > 0); 28 | } 29 | 30 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 31 | { 32 | return visitor.VisitMap(this, parent); 33 | } 34 | 35 | public override string ToString() 36 | { 37 | return StringFormatter.FormatMap(Value); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Util/UserText.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Util; 6 | 7 | public class UserText : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Text", "mText", 0xD74E3400, TdfType.String, 0, true), // UTXT 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfString _text = new(__typeInfos[0]); 15 | 16 | public UserText() 17 | { 18 | __members = [ 19 | _text, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new UserText(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "UserText"; 28 | public override string GetFullClassName() => "Blaze::Util::UserText"; 29 | 30 | public string Text 31 | { 32 | get => _text.Value; 33 | set => _text.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Util/UserText.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Util; 6 | 7 | public class UserText : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Text", "mText", 0xD74E3400, TdfType.String, 0, true), // UTXT 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfString _text = new(__typeInfos[0]); 15 | 16 | public UserText() 17 | { 18 | __members = [ 19 | _text, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new UserText(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "UserText"; 28 | public override string GetFullClassName() => "Blaze::Util::UserText"; 29 | 30 | public string Text 31 | { 32 | get => _text.Value; 33 | set => _text.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Components/CensusDataComponentBase.json: -------------------------------------------------------------------------------- 1 | { 2 | "Usings": [ 3 | "Blaze2SDK.Blaze.CensusData" 4 | ], 5 | "Namespace": "Blaze2SDK.Components", 6 | "Id": 10, 7 | "Name": "CensusDataComponent", 8 | "ShortName": "CensusData", 9 | "ErrorCodes": { 10 | "1": "CENSUSDATA_ERR_PLAYER_ALREADY_SUBSCRIBED", 11 | "2": "CENSUSDATA_ERR_PLAYER_NOT_SUBSCRIBED" 12 | }, 13 | "Methods": [ 14 | { 15 | "Id": 1, 16 | "Name": "subscribeToCensusData", 17 | "RequestType": null, 18 | "ResponseType": null, 19 | "ErrorResponseType": null 20 | }, 21 | { 22 | "Id": 2, 23 | "Name": "unsubscribeFromCensusData", 24 | "RequestType": null, 25 | "ResponseType": null, 26 | "ErrorResponseType": null 27 | }, 28 | { 29 | "Id": 3, 30 | "Name": "getRegionCounts", 31 | "RequestType": null, 32 | "ResponseType": null, 33 | "ErrorResponseType": null 34 | } 35 | ], 36 | "Notifications": [ 37 | { 38 | "Id": 1, 39 | "Name": "NotifyServerCensusData", 40 | "Type": "NotifyServerCensusData" 41 | } 42 | ] 43 | } -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/OnlineStatus.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze; 6 | 7 | public class OnlineStatus : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Online", "mOnline", 0x8B5A6400, TdfType.Bool, 0, true), // BUID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfBool _online = new(__typeInfos[0]); 15 | 16 | public OnlineStatus() 17 | { 18 | __members = [ 19 | _online, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new OnlineStatus(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "OnlineStatus"; 28 | public override string GetFullClassName() => "Blaze::OnlineStatus"; 29 | 30 | public bool Online 31 | { 32 | get => _online.Value; 33 | set => _online.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/OnlineStatus.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze; 6 | 7 | public class OnlineStatus : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Online", "mOnline", 0x8B5A6400, TdfType.Bool, 0, true), // BUID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfBool _online = new(__typeInfos[0]); 15 | 16 | public OnlineStatus() 17 | { 18 | __members = [ 19 | _online, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new OnlineStatus(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "OnlineStatus"; 28 | public override string GetFullClassName() => "Blaze::OnlineStatus"; 29 | 30 | public bool Online 31 | { 32 | get => _online.Value; 33 | set => _online.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Stats/EntityCount.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Stats; 6 | 7 | public class EntityCount : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Count", "mCount", 0x8EED0000, TdfType.Int32, 0, true), // CNT 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfInt32 _count = new(__typeInfos[0]); 15 | 16 | public EntityCount() 17 | { 18 | __members = [ 19 | _count, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new EntityCount(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "EntityCount"; 28 | public override string GetFullClassName() => "Blaze::Stats::EntityCount"; 29 | 30 | public int Count 31 | { 32 | get => _count.Value; 33 | set => _count.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Stats/EntityCount.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Stats; 6 | 7 | public class EntityCount : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Count", "mCount", 0x8EED0000, TdfType.Int32, 0, true), // CNT 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfInt32 _count = new(__typeInfos[0]); 15 | 16 | public EntityCount() 17 | { 18 | __members = [ 19 | _count, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new EntityCount(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "EntityCount"; 28 | public override string GetFullClassName() => "Blaze::Stats::EntityCount"; 29 | 30 | public int Count 31 | { 32 | get => _count.Value; 33 | set => _count.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /EATDF/Members/TdfStruct.cs: -------------------------------------------------------------------------------- 1 | using EATDF.Types; 2 | using EATDF.Visitors; 3 | 4 | namespace EATDF.Members; 5 | 6 | public class TdfStruct : TdfMember where TStruct : Tdf?, new() 7 | { 8 | public TdfStruct(TdfMemberInfo typeInfo) : base(typeInfo) 9 | { 10 | } 11 | 12 | public override TStruct DefaultValue() 13 | { 14 | return new TStruct(); 15 | } 16 | 17 | public override TStruct InitValue() 18 | { 19 | // All structures (classes) must be initialized as null to avoid infinite recursion if the class is a member of itself. 20 | return null!; 21 | } 22 | 23 | public override bool IsSet() 24 | { 25 | return UserSet && Value != null; 26 | } 27 | 28 | public override bool Visit(ITdfVisitor visitor, Tdf parent) 29 | { 30 | return visitor.VisitStruct(this, parent); 31 | } 32 | 33 | public override string ToString() 34 | { 35 | if (Value == null) 36 | return "(null)"; 37 | 38 | PrintVisitor visitor = new(); 39 | visitor.VisitTdf(Value); 40 | return visitor.ToString(); 41 | } 42 | } -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Rooms/RoomRemoved.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Rooms; 6 | 7 | public class RoomRemoved : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("RoomId", "mRoomId", 0xCADA6400, TdfType.UInt32, 0, true), // RMID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _roomId = new(__typeInfos[0]); 15 | 16 | public RoomRemoved() 17 | { 18 | __members = [ 19 | _roomId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new RoomRemoved(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "RoomRemoved"; 28 | public override string GetFullClassName() => "Blaze::Rooms::RoomRemoved"; 29 | 30 | public uint RoomId 31 | { 32 | get => _roomId.Value; 33 | set => _roomId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Rooms/RoomRemoved.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Rooms; 6 | 7 | public class RoomRemoved : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("RoomId", "mRoomId", 0xCADA6400, TdfType.UInt32, 0, true), // RMID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _roomId = new(__typeInfos[0]); 15 | 16 | public RoomRemoved() 17 | { 18 | __members = [ 19 | _roomId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new RoomRemoved(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "RoomRemoved"; 28 | public override string GetFullClassName() => "Blaze::Rooms::RoomRemoved"; 29 | 30 | public uint RoomId 31 | { 32 | get => _roomId.Value; 33 | set => _roomId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Aim2Strike 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/NotifyUserRemoved.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze; 6 | 7 | public class NotifyUserRemoved : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("UserId", "mUserId", 0x8B5A6400, TdfType.Int64, 0, true), // BUID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfInt64 _userId = new(__typeInfos[0]); 15 | 16 | public NotifyUserRemoved() 17 | { 18 | __members = [ 19 | _userId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new NotifyUserRemoved(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "NotifyUserRemoved"; 28 | public override string GetFullClassName() => "Blaze::NotifyUserRemoved"; 29 | 30 | public long UserId 31 | { 32 | get => _userId.Value; 33 | set => _userId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Components/RedirectorComponentBase.json: -------------------------------------------------------------------------------- 1 | { 2 | "Usings": [ 3 | "Blaze3SDK.Blaze.Redirector" 4 | ], 5 | "Namespace": "Blaze3SDK.Components", 6 | "Id": 5, 7 | "Name": "RedirectorComponent", 8 | "ShortName": "Redirector", 9 | "ErrorCodes": { 10 | "1": "REDIRECTOR_SERVER_NOT_FOUND", 11 | "2": "REDIRECTOR_NO_SERVER_CAPACITY", 12 | "3": "REDIRECTOR_NO_MATCHING_INSTANCE", 13 | "4": "REDIRECTOR_SERVER_NAME_ALREADY_IN_USE", 14 | "5": "REDIRECTOR_CLIENT_NOT_COMPATIBLE", 15 | "6": "REDIRECTOR_CLIENT_UNKNOWN", 16 | "7": "REDIRECTOR_UNKNOWN_CONNECTION_PROFILE", 17 | "8": "REDIRECTOR_SERVER_SUNSET", 18 | "9": "REDIRECTOR_SERVER_DOWN", 19 | "10": "REDIRECTOR_INVALID_PARAMETER", 20 | "11": "REDIRECTOR_UNKNOWN_SERVICE_NAME", 21 | "12": "REDIRECTOR_PAST_EVENT", 22 | "13": "REDIRECTOR_UNKNOWN_SCHEDULE_ID" 23 | }, 24 | "Methods": [ 25 | { 26 | "Id": 1, 27 | "Name": "getServerInstance", 28 | "RequestType": "ServerInstanceRequest", 29 | "ResponseType": "ServerInstanceInfo", 30 | "ErrorResponseType": "ServerInstanceError" 31 | } 32 | ], 33 | "Notifications": [] 34 | } -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Association/ClearList.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Association; 6 | 7 | public class ClearList : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ListName", "mListName", 0x86CBAD00, TdfType.String, 0, true), // ALNM 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfString _listName = new(__typeInfos[0]); 15 | 16 | public ClearList() 17 | { 18 | __members = [ 19 | _listName, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new ClearList(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "ClearList"; 28 | public override string GetFullClassName() => "Blaze::Association::ClearList"; 29 | 30 | public string ListName 31 | { 32 | get => _listName.Value; 33 | set => _listName.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Example/ExampleError.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Example; 6 | 7 | public class ExampleError : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Message", "mMessage", 0xB739C000, TdfType.String, 0, true), // MSG 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfString _message = new(__typeInfos[0]); 15 | 16 | public ExampleError() 17 | { 18 | __members = [ 19 | _message, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new ExampleError(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "ExampleError"; 28 | public override string GetFullClassName() => "Blaze::Example::ExampleError"; 29 | 30 | public string Message 31 | { 32 | get => _message.Value; 33 | set => _message.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Example/ExampleError.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Example; 6 | 7 | public class ExampleError : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Message", "mMessage", 0xB739C000, TdfType.String, 0, true), // MSG 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfString _message = new(__typeInfos[0]); 15 | 16 | public ExampleError() 17 | { 18 | __members = [ 19 | _message, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new ExampleError(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "ExampleError"; 28 | public override string GetFullClassName() => "Blaze::Example::ExampleError"; 29 | 30 | public string Message 31 | { 32 | get => _message.Value; 33 | set => _message.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Authentication/UseCount.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Authentication; 6 | 7 | public class UseCount : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("UseCount", "mUseCount", 0xD63BB400, TdfType.UInt32, 0, true), // UCNT 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _useCount = new(__typeInfos[0]); 15 | 16 | public UseCount() 17 | { 18 | __members = [ 19 | _useCount, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new UseCount(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "UseCount"; 28 | public override string GetFullClassName() => "Blaze::Authentication::UseCount"; 29 | 30 | public uint mUseCount 31 | { 32 | get => _useCount.Value; 33 | set => _useCount.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/JoinClubRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Clubs; 6 | 7 | public class JoinClubRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ClubId", "mClubId", 0x8ECA6400, TdfType.UInt32, 0, true), // CLID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _clubId = new(__typeInfos[0]); 15 | 16 | public JoinClubRequest() 17 | { 18 | __members = [ 19 | _clubId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new JoinClubRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "JoinClubRequest"; 28 | public override string GetFullClassName() => "Blaze::Clubs::JoinClubRequest"; 29 | 30 | public uint ClubId 31 | { 32 | get => _clubId.Value; 33 | set => _clubId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Rooms/RoomViewRemoved.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Rooms; 6 | 7 | public class RoomViewRemoved : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ViewId", "mViewId", 0xDB7A6400, TdfType.UInt32, 0, true), // VWID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _viewId = new(__typeInfos[0]); 15 | 16 | public RoomViewRemoved() 17 | { 18 | __members = [ 19 | _viewId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new RoomViewRemoved(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "RoomViewRemoved"; 28 | public override string GetFullClassName() => "Blaze::Rooms::RoomViewRemoved"; 29 | 30 | public uint ViewId 31 | { 32 | get => _viewId.Value; 33 | set => _viewId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/UseCount.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Authentication; 6 | 7 | public class UseCount : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("UseCount", "mUseCount", 0xD63BB400, TdfType.UInt32, 0, true), // UCNT 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _useCount = new(__typeInfos[0]); 15 | 16 | public UseCount() 17 | { 18 | __members = [ 19 | _useCount, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new UseCount(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "UseCount"; 28 | public override string GetFullClassName() => "Blaze::Authentication::UseCount"; 29 | 30 | public uint mUseCount 31 | { 32 | get => _useCount.Value; 33 | set => _useCount.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Rooms/RoomViewRemoved.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Rooms; 6 | 7 | public class RoomViewRemoved : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ViewId", "mViewId", 0xDB7A6400, TdfType.UInt32, 0, true), // VWID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _viewId = new(__typeInfos[0]); 15 | 16 | public RoomViewRemoved() 17 | { 18 | __members = [ 19 | _viewId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new RoomViewRemoved(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "RoomViewRemoved"; 28 | public override string GetFullClassName() => "Blaze::Rooms::RoomViewRemoved"; 29 | 30 | public uint ViewId 31 | { 32 | get => _viewId.Value; 33 | set => _viewId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Rooms/LeaveRoomRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Rooms; 6 | 7 | public class LeaveRoomRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("RoomId", "mRoomId", 0xCADA6400, TdfType.UInt32, 0, true), // RMID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _roomId = new(__typeInfos[0]); 15 | 16 | public LeaveRoomRequest() 17 | { 18 | __members = [ 19 | _roomId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new LeaveRoomRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "LeaveRoomRequest"; 28 | public override string GetFullClassName() => "Blaze::Rooms::LeaveRoomRequest"; 29 | 30 | public uint RoomId 31 | { 32 | get => _roomId.Value; 33 | set => _roomId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Util/PingResponse.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Util; 6 | 7 | public class PingResponse : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ServerTime", "mServerTime", 0xCF4A6D00, TdfType.UInt32, 0, true), // STIM 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _serverTime = new(__typeInfos[0]); 15 | 16 | public PingResponse() 17 | { 18 | __members = [ 19 | _serverTime, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new PingResponse(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "PingResponse"; 28 | public override string GetFullClassName() => "Blaze::Util::PingResponse"; 29 | 30 | public uint ServerTime 31 | { 32 | get => _serverTime.Value; 33 | set => _serverTime.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/DynamicInetFilter/AddResponse.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.DynamicInetFilter; 6 | 7 | public class AddResponse : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("RowId", "mRowId", 0xCA990000, TdfType.UInt32, 0, true), // RID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _rowId = new(__typeInfos[0]); 15 | 16 | public AddResponse() 17 | { 18 | __members = [ 19 | _rowId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new AddResponse(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "AddResponse"; 28 | public override string GetFullClassName() => "Blaze::DynamicInetFilter::AddResponse"; 29 | 30 | public uint RowId 31 | { 32 | get => _rowId.Value; 33 | set => _rowId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Rooms/LeaveRoomRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Rooms; 6 | 7 | public class LeaveRoomRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("RoomId", "mRoomId", 0xCADA6400, TdfType.UInt32, 0, true), // RMID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _roomId = new(__typeInfos[0]); 15 | 16 | public LeaveRoomRequest() 17 | { 18 | __members = [ 19 | _roomId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new LeaveRoomRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "LeaveRoomRequest"; 28 | public override string GetFullClassName() => "Blaze::Rooms::LeaveRoomRequest"; 29 | 30 | public uint RoomId 31 | { 32 | get => _roomId.Value; 33 | set => _roomId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Util/PingResponse.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Util; 6 | 7 | public class PingResponse : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ServerTime", "mServerTime", 0xCF4A6D00, TdfType.UInt32, 0, true), // STIM 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _serverTime = new(__typeInfos[0]); 15 | 16 | public PingResponse() 17 | { 18 | __members = [ 19 | _serverTime, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new PingResponse(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "PingResponse"; 28 | public override string GetFullClassName() => "Blaze::Util::PingResponse"; 29 | 30 | public uint ServerTime 31 | { 32 | get => _serverTime.Value; 33 | set => _serverTime.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/GetMembersRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Clubs; 6 | 7 | public class GetMembersRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ClubId", "mClubId", 0x8ECA6400, TdfType.UInt32, 0, true), // CLID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _clubId = new(__typeInfos[0]); 15 | 16 | public GetMembersRequest() 17 | { 18 | __members = [ 19 | _clubId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetMembersRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetMembersRequest"; 28 | public override string GetFullClassName() => "Blaze::Clubs::GetMembersRequest"; 29 | 30 | public uint ClubId 31 | { 32 | get => _clubId.Value; 33 | set => _clubId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/ListRivalsRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Clubs; 6 | 7 | public class ListRivalsRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ClubId", "mClubId", 0x8ECA6400, TdfType.UInt32, 0, true), // CLID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _clubId = new(__typeInfos[0]); 15 | 16 | public ListRivalsRequest() 17 | { 18 | __members = [ 19 | _clubId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new ListRivalsRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "ListRivalsRequest"; 28 | public override string GetFullClassName() => "Blaze::Clubs::ListRivalsRequest"; 29 | 30 | public uint ClubId 31 | { 32 | get => _clubId.Value; 33 | set => _clubId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Stats/GetStatGroupRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Stats; 6 | 7 | public class GetStatGroupRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Name", "mName", 0xBA1B6500, TdfType.String, 0, true), // NAME 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfString _name = new(__typeInfos[0]); 15 | 16 | public GetStatGroupRequest() 17 | { 18 | __members = [ 19 | _name, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetStatGroupRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetStatGroupRequest"; 28 | public override string GetFullClassName() => "Blaze::Stats::GetStatGroupRequest"; 29 | 30 | public string Name 31 | { 32 | get => _name.Value; 33 | set => _name.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/ListRivalsRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Clubs; 6 | 7 | public class ListRivalsRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ClubId", "mClubId", 0x8ECA6400, TdfType.UInt32, 0, true), // CLID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _clubId = new(__typeInfos[0]); 15 | 16 | public ListRivalsRequest() 17 | { 18 | __members = [ 19 | _clubId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new ListRivalsRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "ListRivalsRequest"; 28 | public override string GetFullClassName() => "Blaze::Clubs::ListRivalsRequest"; 29 | 30 | public uint ClubId 31 | { 32 | get => _clubId.Value; 33 | set => _clubId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Rsp/GetGameDataRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Rsp; 6 | 7 | public class GetGameDataRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("GameId", "mGameId", 0x9E990000, TdfType.UInt32, 0, true), // GID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _gameId = new(__typeInfos[0]); 15 | 16 | public GetGameDataRequest() 17 | { 18 | __members = [ 19 | _gameId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetGameDataRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetGameDataRequest"; 28 | public override string GetFullClassName() => "Blaze::Rsp::GetGameDataRequest"; 29 | 30 | public uint GameId 31 | { 32 | get => _gameId.Value; 33 | set => _gameId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Stats/GetStatGroupRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Stats; 6 | 7 | public class GetStatGroupRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Name", "mName", 0xBA1B6500, TdfType.String, 0, true), // NAME 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfString _name = new(__typeInfos[0]); 15 | 16 | public GetStatGroupRequest() 17 | { 18 | __members = [ 19 | _name, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetStatGroupRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetStatGroupRequest"; 28 | public override string GetFullClassName() => "Blaze::Stats::GetStatGroupRequest"; 29 | 30 | public string Name 31 | { 32 | get => _name.Value; 33 | set => _name.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/CreateClubResponse.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Clubs; 6 | 7 | public class CreateClubResponse : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ClubId", "mClubId", 0x8ECA6400, TdfType.UInt32, 0, true), // CLID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _clubId = new(__typeInfos[0]); 15 | 16 | public CreateClubResponse() 17 | { 18 | __members = [ 19 | _clubId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new CreateClubResponse(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "CreateClubResponse"; 28 | public override string GetFullClassName() => "Blaze::Clubs::CreateClubResponse"; 29 | 30 | public uint ClubId 31 | { 32 | get => _clubId.Value; 33 | set => _clubId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/GetClubBansRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Clubs; 6 | 7 | public class GetClubBansRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ClubId", "mClubId", 0x8ECA6400, TdfType.UInt32, 0, true), // CLID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _clubId = new(__typeInfos[0]); 15 | 16 | public GetClubBansRequest() 17 | { 18 | __members = [ 19 | _clubId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetClubBansRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetClubBansRequest"; 28 | public override string GetFullClassName() => "Blaze::Clubs::GetClubBansRequest"; 29 | 30 | public uint ClubId 31 | { 32 | get => _clubId.Value; 33 | set => _clubId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/GetUserBansRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Clubs; 6 | 7 | public class GetUserBansRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("UserId", "mUserId", 0xD6990000, TdfType.UInt32, 0, true), // UID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _userId = new(__typeInfos[0]); 15 | 16 | public GetUserBansRequest() 17 | { 18 | __members = [ 19 | _userId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetUserBansRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetUserBansRequest"; 28 | public override string GetFullClassName() => "Blaze::Clubs::GetUserBansRequest"; 29 | 30 | public uint UserId 31 | { 32 | get => _userId.Value; 33 | set => _userId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/League/RunDraftRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.League; 6 | 7 | public class RunDraftRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("LeagueId", "mLeagueId", 0xB27A6400, TdfType.UInt32, 0, true), // LGID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _leagueId = new(__typeInfos[0]); 15 | 16 | public RunDraftRequest() 17 | { 18 | __members = [ 19 | _leagueId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new RunDraftRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "RunDraftRequest"; 28 | public override string GetFullClassName() => "Blaze::League::RunDraftRequest"; 29 | 30 | public uint LeagueId 31 | { 32 | get => _leagueId.Value; 33 | set => _leagueId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/CreateClubResponse.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Clubs; 6 | 7 | public class CreateClubResponse : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ClubId", "mClubId", 0x8ECA6400, TdfType.UInt32, 0, true), // CLID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _clubId = new(__typeInfos[0]); 15 | 16 | public CreateClubResponse() 17 | { 18 | __members = [ 19 | _clubId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new CreateClubResponse(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "CreateClubResponse"; 28 | public override string GetFullClassName() => "Blaze::Clubs::CreateClubResponse"; 29 | 30 | public uint ClubId 31 | { 32 | get => _clubId.Value; 33 | set => _clubId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/DisbandClubRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Clubs; 6 | 7 | public class DisbandClubRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ClubId", "mClubId", 0x8ECA6400, TdfType.UInt32, 0, true), // CLID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _clubId = new(__typeInfos[0]); 15 | 16 | public DisbandClubRequest() 17 | { 18 | __members = [ 19 | _clubId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new DisbandClubRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "DisbandClubRequest"; 28 | public override string GetFullClassName() => "Blaze::Clubs::DisbandClubRequest"; 29 | 30 | public uint ClubId 31 | { 32 | get => _clubId.Value; 33 | set => _clubId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/GetClubBansRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Clubs; 6 | 7 | public class GetClubBansRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ClubId", "mClubId", 0x8ECA6400, TdfType.UInt32, 0, true), // CLID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _clubId = new(__typeInfos[0]); 15 | 16 | public GetClubBansRequest() 17 | { 18 | __members = [ 19 | _clubId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetClubBansRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetClubBansRequest"; 28 | public override string GetFullClassName() => "Blaze::Clubs::GetClubBansRequest"; 29 | 30 | public uint ClubId 31 | { 32 | get => _clubId.Value; 33 | set => _clubId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/GetUserBansRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Clubs; 6 | 7 | public class GetUserBansRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("UserId", "mUserId", 0xD6990000, TdfType.Int64, 0, true), // UID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfInt64 _userId = new(__typeInfos[0]); 15 | 16 | public GetUserBansRequest() 17 | { 18 | __members = [ 19 | _userId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetUserBansRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetUserBansRequest"; 28 | public override string GetFullClassName() => "Blaze::Clubs::GetUserBansRequest"; 29 | 30 | public long UserId 31 | { 32 | get => _userId.Value; 33 | set => _userId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/DynamicInetFilter/RemoveRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.DynamicInetFilter; 6 | 7 | public class RemoveRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("RowId", "mRowId", 0xCA990000, TdfType.UInt32, 0, true), // RID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _rowId = new(__typeInfos[0]); 15 | 16 | public RemoveRequest() 17 | { 18 | __members = [ 19 | _rowId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new RemoveRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "RemoveRequest"; 28 | public override string GetFullClassName() => "Blaze::DynamicInetFilter::RemoveRequest"; 29 | 30 | public uint RowId 31 | { 32 | get => _rowId.Value; 33 | set => _rowId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/RunDraftRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.League; 6 | 7 | public class RunDraftRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("LeagueId", "mLeagueId", 0xB27A6400, TdfType.UInt32, 0, true), // LGID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _leagueId = new(__typeInfos[0]); 15 | 16 | public RunDraftRequest() 17 | { 18 | __members = [ 19 | _leagueId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new RunDraftRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "RunDraftRequest"; 28 | public override string GetFullClassName() => "Blaze::League::RunDraftRequest"; 29 | 30 | public uint LeagueId 31 | { 32 | get => _leagueId.Value; 33 | set => _leagueId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/JoinGameResponse.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.GameManager; 6 | 7 | public class JoinGameResponse : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("GameId", "mGameId", 0x9E990000, TdfType.UInt32, 0, true), // GID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _gameId = new(__typeInfos[0]); 15 | 16 | public JoinGameResponse() 17 | { 18 | __members = [ 19 | _gameId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new JoinGameResponse(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "JoinGameResponse"; 28 | public override string GetFullClassName() => "Blaze::GameManager::JoinGameResponse"; 29 | 30 | public uint GameId 31 | { 32 | get => _gameId.Value; 33 | set => _gameId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/League/GetLeagueRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.League; 6 | 7 | public class GetLeagueRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("LeagueId", "mLeagueId", 0xB27A6400, TdfType.UInt32, 0, true), // LGID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _leagueId = new(__typeInfos[0]); 15 | 16 | public GetLeagueRequest() 17 | { 18 | __members = [ 19 | _leagueId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetLeagueRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetLeagueRequest"; 28 | public override string GetFullClassName() => "Blaze::League::GetLeagueRequest"; 29 | 30 | public uint LeagueId 31 | { 32 | get => _leagueId.Value; 33 | set => _leagueId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/OptInValue.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Authentication; 6 | 7 | public class OptInValue : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("OptInValue", "mOptInValue", 0xDA1B3500, TdfType.Bool, 0, true), // VALU 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfBool _optInValue = new(__typeInfos[0]); 15 | 16 | public OptInValue() 17 | { 18 | __members = [ 19 | _optInValue, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new OptInValue(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "OptInValue"; 28 | public override string GetFullClassName() => "Blaze::Authentication::OptInValue"; 29 | 30 | public bool mOptInValue 31 | { 32 | get => _optInValue.Value; 33 | set => _optInValue.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/EjectHostRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.GameManager; 6 | 7 | public class EjectHostRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("GameId", "mGameId", 0x9E990000, TdfType.UInt32, 0, true), // GID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _gameId = new(__typeInfos[0]); 15 | 16 | public EjectHostRequest() 17 | { 18 | __members = [ 19 | _gameId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new EjectHostRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "EjectHostRequest"; 28 | public override string GetFullClassName() => "Blaze::GameManager::EjectHostRequest"; 29 | 30 | public uint GameId 31 | { 32 | get => _gameId.Value; 33 | set => _gameId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/GetLeagueRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.League; 6 | 7 | public class GetLeagueRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("LeagueId", "mLeagueId", 0xB27A6400, TdfType.UInt32, 0, true), // LGID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _leagueId = new(__typeInfos[0]); 15 | 16 | public GetLeagueRequest() 17 | { 18 | __members = [ 19 | _leagueId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetLeagueRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetLeagueRequest"; 28 | public override string GetFullClassName() => "Blaze::League::GetLeagueRequest"; 29 | 30 | public uint LeagueId 31 | { 32 | get => _leagueId.Value; 33 | set => _leagueId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/SendPetitionRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Clubs; 6 | 7 | public class SendPetitionRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ClubId", "mClubId", 0x8ECA6400, TdfType.UInt32, 0, true), // CLID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _clubId = new(__typeInfos[0]); 15 | 16 | public SendPetitionRequest() 17 | { 18 | __members = [ 19 | _clubId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new SendPetitionRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "SendPetitionRequest"; 28 | public override string GetFullClassName() => "Blaze::Clubs::SendPetitionRequest"; 29 | 30 | public uint ClubId 31 | { 32 | get => _clubId.Value; 33 | set => _clubId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /EATDF/Internal/RestorePoint.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace EATDF.Internal; 8 | 9 | internal struct RestorePoint(long position, bool streamValid) 10 | { 11 | internal long Position { get; } = position; 12 | internal bool StreamValid { get; } = streamValid; 13 | 14 | public static bool operator ==(RestorePoint left, RestorePoint right) 15 | { 16 | return left.Position == right.Position; 17 | } 18 | 19 | public static bool operator !=(RestorePoint left, RestorePoint right) 20 | { 21 | return left.Position != right.Position; 22 | } 23 | 24 | public override bool Equals(object? obj) 25 | { 26 | if (obj is null) 27 | return false; 28 | 29 | // If run-time types are not exactly the same, return false. 30 | if (GetType() != obj.GetType()) 31 | return false; 32 | 33 | RestorePoint other = (RestorePoint)obj; 34 | return other == this; 35 | } 36 | 37 | public override int GetHashCode() 38 | { 39 | return Position.GetHashCode(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/CountMessagesResponse.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Clubs; 6 | 7 | public class CountMessagesResponse : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Count", "mCount", 0x8F5BB400, TdfType.UInt32, 0, true), // CUNT 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _count = new(__typeInfos[0]); 15 | 16 | public CountMessagesResponse() 17 | { 18 | __members = [ 19 | _count, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new CountMessagesResponse(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "CountMessagesResponse"; 28 | public override string GetFullClassName() => "Blaze::Clubs::CountMessagesResponse"; 29 | 30 | public uint Count 31 | { 32 | get => _count.Value; 33 | set => _count.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Clubs/GetClubAwardsRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Clubs; 6 | 7 | public class GetClubAwardsRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ClubId", "mClubId", 0x8ECA6400, TdfType.UInt32, 0, true), // CLID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _clubId = new(__typeInfos[0]); 15 | 16 | public GetClubAwardsRequest() 17 | { 18 | __members = [ 19 | _clubId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetClubAwardsRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetClubAwardsRequest"; 28 | public override string GetFullClassName() => "Blaze::Clubs::GetClubAwardsRequest"; 29 | 30 | public uint ClubId 31 | { 32 | get => _clubId.Value; 33 | set => _clubId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/DNFRulePrefs.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.GameManager; 6 | 7 | public class DNFRulePrefs : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("MaxDNFValue", "mMaxDNFValue", 0x92E98000, TdfType.Int32, 0, true), // DNF 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfInt32 _maxDNFValue = new(__typeInfos[0]); 15 | 16 | public DNFRulePrefs() 17 | { 18 | __members = [ 19 | _maxDNFValue, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new DNFRulePrefs(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "DNFRulePrefs"; 28 | public override string GetFullClassName() => "Blaze::GameManager::DNFRulePrefs"; 29 | 30 | public int MaxDNFValue 31 | { 32 | get => _maxDNFValue.Value; 33 | set => _maxDNFValue.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/NotifyGameCreated.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.GameManager; 6 | 7 | public class NotifyGameCreated : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("GameId", "mGameId", 0x9E990000, TdfType.UInt32, 0, true), // GID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _gameId = new(__typeInfos[0]); 15 | 16 | public NotifyGameCreated() 17 | { 18 | __members = [ 19 | _gameId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new NotifyGameCreated(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "NotifyGameCreated"; 28 | public override string GetFullClassName() => "Blaze::GameManager::NotifyGameCreated"; 29 | 30 | public uint GameId 31 | { 32 | get => _gameId.Value; 33 | set => _gameId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/GameManager/ReplayGameRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.GameManager; 6 | 7 | public class ReplayGameRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("GameId", "mGameId", 0x9E990000, TdfType.UInt32, 0, true), // GID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _gameId = new(__typeInfos[0]); 15 | 16 | public ReplayGameRequest() 17 | { 18 | __members = [ 19 | _gameId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new ReplayGameRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "ReplayGameRequest"; 28 | public override string GetFullClassName() => "Blaze::GameManager::ReplayGameRequest"; 29 | 30 | public uint GameId 31 | { 32 | get => _gameId.Value; 33 | set => _gameId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/League/PositionPref.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.League; 6 | 7 | public class PositionPref : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Preferences", "mPreferences", 0xCA4C2600, TdfType.List, 0, true), // RDPF 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfList _preferences = new(__typeInfos[0]); 15 | 16 | public PositionPref() 17 | { 18 | __members = [ 19 | _preferences, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new PositionPref(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "PositionPref"; 28 | public override string GetFullClassName() => "Blaze::League::PositionPref"; 29 | 30 | public IList Preferences 31 | { 32 | get => _preferences.Value; 33 | set => _preferences.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze2SDK/Blaze/Tournaments/LeaveTournamentRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze2SDK.Blaze.Tournaments; 6 | 7 | public class LeaveTournamentRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Id", "mId", 0xD2EA6400, TdfType.UInt32, 0, true), // TNID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _id = new(__typeInfos[0]); 15 | 16 | public LeaveTournamentRequest() 17 | { 18 | __members = [ 19 | _id, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new LeaveTournamentRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "LeaveTournamentRequest"; 28 | public override string GetFullClassName() => "Blaze::Tournaments::LeaveTournamentRequest"; 29 | 30 | public uint Id 31 | { 32 | get => _id.Value; 33 | set => _id.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Authentication/OptInRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Authentication; 6 | 7 | public class OptInRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("OptInName", "mOptInName", 0xBA1B6500, TdfType.String, 0, true), // NAME 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfString _optInName = new(__typeInfos[0]); 15 | 16 | public OptInRequest() 17 | { 18 | __members = [ 19 | _optInName, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new OptInRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "OptInRequest"; 28 | public override string GetFullClassName() => "Blaze::Authentication::OptInRequest"; 29 | 30 | public string OptInName 31 | { 32 | get => _optInName.Value; 33 | set => _optInName.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/CheckOnlineStatusRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze; 6 | 7 | public class CheckOnlineStatusRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("UserId", "mUserId", 0x8B5A6400, TdfType.Int64, 0, true), // BUID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfInt64 _userId = new(__typeInfos[0]); 15 | 16 | public CheckOnlineStatusRequest() 17 | { 18 | __members = [ 19 | _userId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new CheckOnlineStatusRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "CheckOnlineStatusRequest"; 28 | public override string GetFullClassName() => "Blaze::CheckOnlineStatusRequest"; 29 | 30 | public long UserId 31 | { 32 | get => _userId.Value; 33 | set => _userId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/CountMessagesResponse.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Clubs; 6 | 7 | public class CountMessagesResponse : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Count", "mCount", 0x8F5BB400, TdfType.UInt32, 0, true), // CUNT 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _count = new(__typeInfos[0]); 15 | 16 | public CountMessagesResponse() 17 | { 18 | __members = [ 19 | _count, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new CountMessagesResponse(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "CountMessagesResponse"; 28 | public override string GetFullClassName() => "Blaze::Clubs::CountMessagesResponse"; 29 | 30 | public uint Count 31 | { 32 | get => _count.Value; 33 | set => _count.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Clubs/GetClubAwardsRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Clubs; 6 | 7 | public class GetClubAwardsRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("ClubId", "mClubId", 0x8ECA6400, TdfType.UInt32, 0, true), // CLID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _clubId = new(__typeInfos[0]); 15 | 16 | public GetClubAwardsRequest() 17 | { 18 | __members = [ 19 | _clubId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetClubAwardsRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetClubAwardsRequest"; 28 | public override string GetFullClassName() => "Blaze::Clubs::GetClubAwardsRequest"; 29 | 30 | public uint ClubId 31 | { 32 | get => _clubId.Value; 33 | set => _clubId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/FetchExtendedDataRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze; 6 | 7 | public class FetchExtendedDataRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("UserId", "mUserId", 0x8B5A6400, TdfType.Int64, 0, true), // BUID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfInt64 _userId = new(__typeInfos[0]); 15 | 16 | public FetchExtendedDataRequest() 17 | { 18 | __members = [ 19 | _userId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new FetchExtendedDataRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "FetchExtendedDataRequest"; 28 | public override string GetFullClassName() => "Blaze::FetchExtendedDataRequest"; 29 | 30 | public long UserId 31 | { 32 | get => _userId.Value; 33 | set => _userId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/BannedListRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.GameManager; 6 | 7 | public class BannedListRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("GameId", "mGameId", 0x9E990000, TdfType.UInt32, 0, true), // GID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _gameId = new(__typeInfos[0]); 15 | 16 | public BannedListRequest() 17 | { 18 | __members = [ 19 | _gameId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new BannedListRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "BannedListRequest"; 28 | public override string GetFullClassName() => "Blaze::GameManager::BannedListRequest"; 29 | 30 | public uint GameId 31 | { 32 | get => _gameId.Value; 33 | set => _gameId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/DNFRulePrefs.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.GameManager; 6 | 7 | public class DNFRulePrefs : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("MaxDNFValue", "mMaxDNFValue", 0x92E98000, TdfType.Int64, 0, true), // DNF 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfInt64 _maxDNFValue = new(__typeInfos[0]); 15 | 16 | public DNFRulePrefs() 17 | { 18 | __members = [ 19 | _maxDNFValue, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new DNFRulePrefs(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "DNFRulePrefs"; 28 | public override string GetFullClassName() => "Blaze::GameManager::DNFRulePrefs"; 29 | 30 | public long MaxDNFValue 31 | { 32 | get => _maxDNFValue.Value; 33 | set => _maxDNFValue.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/NotifyGameCreated.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.GameManager; 6 | 7 | public class NotifyGameCreated : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("GameId", "mGameId", 0x9E990000, TdfType.UInt32, 0, true), // GID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _gameId = new(__typeInfos[0]); 15 | 16 | public NotifyGameCreated() 17 | { 18 | __members = [ 19 | _gameId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new NotifyGameCreated(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "NotifyGameCreated"; 28 | public override string GetFullClassName() => "Blaze::GameManager::NotifyGameCreated"; 29 | 30 | public uint GameId 31 | { 32 | get => _gameId.Value; 33 | set => _gameId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameManager/ReplayGameRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.GameManager; 6 | 7 | public class ReplayGameRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("GameId", "mGameId", 0x9E990000, TdfType.UInt32, 0, true), // GID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _gameId = new(__typeInfos[0]); 15 | 16 | public ReplayGameRequest() 17 | { 18 | __members = [ 19 | _gameId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new ReplayGameRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "ReplayGameRequest"; 28 | public override string GetFullClassName() => "Blaze::GameManager::ReplayGameRequest"; 29 | 30 | public uint GameId 31 | { 32 | get => _gameId.Value; 33 | set => _gameId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/GameReporting/GetGameReportQuery.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.GameReporting; 6 | 7 | public class GetGameReportQuery : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Name", "mName", 0xC6E86D00, TdfType.String, 0, true), // QNAM 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfString _name = new(__typeInfos[0]); 15 | 16 | public GetGameReportQuery() 17 | { 18 | __members = [ 19 | _name, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetGameReportQuery(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetGameReportQuery"; 28 | public override string GetFullClassName() => "Blaze::GameReporting::GetGameReportQuery"; 29 | 30 | public string Name 31 | { 32 | get => _name.Value; 33 | set => _name.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/League/PositionPref.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.League; 6 | 7 | public class PositionPref : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Preferences", "mPreferences", 0xCA4C2600, TdfType.List, 0, true), // RDPF 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfList _preferences = new(__typeInfos[0]); 15 | 16 | public PositionPref() 17 | { 18 | __members = [ 19 | _preferences, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new PositionPref(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "PositionPref"; 28 | public override string GetFullClassName() => "Blaze::League::PositionPref"; 29 | 30 | public IList Preferences 31 | { 32 | get => _preferences.Value; 33 | set => _preferences.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Rooms/BannedUserList.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Rooms; 6 | 7 | public class BannedUserList : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("BannedList", "mBannedList", 0x8ACCF400, TdfType.List, 0, true), // BLST 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfList _bannedList = new(__typeInfos[0]); 15 | 16 | public BannedUserList() 17 | { 18 | __members = [ 19 | _bannedList, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new BannedUserList(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "BannedUserList"; 28 | public override string GetFullClassName() => "Blaze::Rooms::BannedUserList"; 29 | 30 | public IList BannedList 31 | { 32 | get => _bannedList.Value; 33 | set => _bannedList.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Tournaments/LeaveTournamentRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Tournaments; 6 | 7 | public class LeaveTournamentRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("Id", "mId", 0xD2EA6400, TdfType.UInt32, 0, true), // TNID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfUInt32 _id = new(__typeInfos[0]); 15 | 16 | public LeaveTournamentRequest() 17 | { 18 | __members = [ 19 | _id, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new LeaveTournamentRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "LeaveTournamentRequest"; 28 | public override string GetFullClassName() => "Blaze::Tournaments::LeaveTournamentRequest"; 29 | 30 | public uint Id 31 | { 32 | get => _id.Value; 33 | set => _id.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze3SDK/Blaze/Util/GetUserOptionsRequest.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | using EATDF.Members; 3 | using EATDF.Types; 4 | 5 | namespace Blaze3SDK.Blaze.Util; 6 | 7 | public class GetUserOptionsRequest : Tdf 8 | { 9 | static readonly TdfMemberInfo[] __typeInfos = [ 10 | new TdfMemberInfo("UserId", "mUserId", 0xD6990000, TdfType.Int64, 0, true), // UID 11 | ]; 12 | private ITdfMember[] __members; 13 | 14 | private TdfInt64 _userId = new(__typeInfos[0]); 15 | 16 | public GetUserOptionsRequest() 17 | { 18 | __members = [ 19 | _userId, 20 | ]; 21 | } 22 | 23 | public override Tdf CreateNew() => new GetUserOptionsRequest(); 24 | public override ITdfMember[] GetMembers() => __members; 25 | public override TdfMemberInfo[] GetMemberInfos() => __typeInfos; 26 | public static TdfMemberInfo[] GetTdfMemberInfos() => __typeInfos; 27 | public override string GetClassName() => "GetUserOptionsRequest"; 28 | public override string GetFullClassName() => "Blaze::Util::GetUserOptionsRequest"; 29 | 30 | public long UserId 31 | { 32 | get => _userId.Value; 33 | set => _userId.Value = value; 34 | } 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Blaze.Core/RpcCommandFunc.cs: -------------------------------------------------------------------------------- 1 | using EATDF; 2 | 3 | namespace Blaze.Core; 4 | 5 | public class RpcCommandFunc : IRpcCommandFunc where TRequest : Tdf, new() where TResponse : Tdf, new() where TErrorResponse : Tdf, new() 6 | { 7 | public required ushort Id { get; init; } 8 | public required string Name { get; init; } 9 | public required bool IsSupported { get; init; } 10 | public required Func> Func { get; init; } 11 | public TRequest CreateRequestStruct() => new TRequest(); 12 | Tdf IRpcCommandFunc.CreateRequestTdf() => CreateRequestStruct(); 13 | public TResponse CreateResponseStruct() => new TResponse(); 14 | Tdf IRpcCommandFunc.CreateResponseTdf() => CreateResponseStruct(); 15 | public TErrorResponse CreateErrorResponseStruct() => new TErrorResponse(); 16 | Tdf IRpcCommandFunc.CreateErrorResponseTdf() => CreateErrorResponseStruct(); 17 | public Task InvokeAsync(TRequest request, BlazeRpcContext context) => Func(request, context); 18 | public Task InvokeAsync(Tdf request, BlazeRpcContext context) 19 | { 20 | return InvokeAsync((TRequest)request, context); 21 | } 22 | } -------------------------------------------------------------------------------- /Blaze.Core/Utilities.cs: -------------------------------------------------------------------------------- 1 | using ProtoFire; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using static System.Runtime.InteropServices.JavaScript.JSType; 8 | 9 | namespace Blaze.Core; 10 | 11 | internal static class Utilities 12 | { 13 | public static FrameType ToFrameType(this FrameEncoding encoding) 14 | { 15 | switch (encoding) 16 | { 17 | case FrameEncoding.Fire: 18 | return FrameType.FireFrame; 19 | case FrameEncoding.Fire2: 20 | return FrameType.Fire2Frame; 21 | default: 22 | throw new ArgumentException("Invalid frame encoding"); 23 | } 24 | } 25 | 26 | public static int ToFullErrorCode(ushort error, ushort component) 27 | { 28 | if (error == 0) 29 | return 0; 30 | 31 | int fullError = error << 16; 32 | 33 | //check if it's a global error (server error or an sdk one) 34 | if ((error & 0xC000) != 0) 35 | return fullError; 36 | 37 | //this is an component error 38 | return fullError | component; 39 | } 40 | } 41 | --------------------------------------------------------------------------------