add compiled and uncompiled protobuf formats

This commit is contained in:
Ole Morud
2022-07-11 19:18:06 +02:00
parent 3565b495aa
commit b13d6f5082
18 changed files with 48990 additions and 211 deletions

View File

@@ -1,3 +1,5 @@
syntax = "proto2";
option go_package="./demo";
import "networkbasetypes.proto";
option cc_generic_services = false;
@@ -19,6 +21,7 @@ enum CLC_Messages {
clc_RequestPause = 33;
clc_CmdKeyValues = 34;
clc_RconServerDetails = 35;
clc_HltvReplay = 36;
}
enum SVC_Messages {
@@ -48,6 +51,10 @@ enum SVC_Messages {
svc_ServerSteamID = 63;
svc_FullFrameSplit = 70;
svc_RconServerDetails = 71;
svc_UserMessage = 72;
svc_HltvReplay = 73;
svc_Broadcast_Command = 74;
svc_HltvFixupOperatorStatus = 75;
}
enum VoiceDataFormat_t {
@@ -100,6 +107,14 @@ enum Bidirectional_Messages_LowFrequency {
bi_RelayPacket = 701;
}
enum ReplayEventType_t {
REPLAY_EVENT_CANCEL = 0;
REPLAY_EVENT_DEATH = 1;
REPLAY_EVENT_GENERIC = 2;
REPLAY_EVENT_STUCK_NEED_FULL_UPDATE = 3;
REPLAY_EVENT_VICTORY = 4;
}
message CCLCMsg_ClientInfo {
optional fixed32 send_table_crc = 1;
optional uint32 server_count = 2;
@@ -304,6 +319,12 @@ message CSVCMsg_Menu {
optional bytes menu_key_values = 2;
}
message CSVCMsg_UserMessage {
optional int32 msg_type = 1;
optional bytes msg_data = 2;
optional int32 passthrough = 3;
}
message CSVCMsg_SendTable {
message sendprop_t {
optional int32 type = 1;
@@ -491,43 +512,6 @@ message CBidirMsg_RebroadcastSource {
optional int32 eventsource = 1;
}
message SerializedNetAddress_t {
required bytes serializedAddress = 1;
}
message CBidirMsg_RelayInfo {
enum Operation_t {
RIO_REQUEST_RELAY = 0;
RIO_WILL_RELAY = 1;
RIO_NO_ROUTE = 2;
RIO_REJECT_RELAY = 3;
RIO_ESTABLISH_CONNECTION = 4;
}
required .CBidirMsg_RelayInfo.Operation_t operation = 1 [default = RIO_REQUEST_RELAY];
optional .SerializedNetAddress_t serializedTargetAddress = 2;
optional uint32 additionalHops = 3;
}
message SignedPayload_t {
required bytes payloadData = 1;
required uint32 signature = 2;
required bool bPayloadEncrypted = 3;
}
message CBidirMsg_RelayPacket {
message SignedDestinationAddress_t {
required .SerializedNetAddress_t serializedAddr = 1;
required uint32 signature = 2;
optional bytes encryptedPayloadKey = 3;
}
required uint32 prevhopcount = 1;
required .SerializedNetAddress_t originalSender = 2;
required .SignedPayload_t signedPayload = 3;
repeated .CBidirMsg_RelayPacket.SignedDestinationAddress_t recipientList = 4;
}
message CMsgServerNetworkStats {
message Port {
optional int32 port = 1;
@@ -569,3 +553,42 @@ message CMsgServerNetworkStats {
optional uint64 total_packets_out = 29;
repeated .CMsgServerNetworkStats.Player players = 30;
}
message CSVCMsg_HltvReplay {
optional int32 delay = 1;
optional int32 primary_target = 2;
optional int32 replay_stop_at = 3;
optional int32 replay_start_at = 4;
optional int32 replay_slowdown_begin = 5;
optional int32 replay_slowdown_end = 6;
optional float replay_slowdown_rate = 7;
optional int32 reason = 8;
}
message CCLCMsg_HltvReplay {
optional int32 request = 1;
optional float slowdown_length = 2;
optional float slowdown_rate = 3;
optional int32 primary_target = 4;
optional float event_time = 5;
}
message CSVCMsg_Broadcast_Command {
optional string cmd = 1;
}
message CCLCMsg_HltvFixupOperatorTick {
optional int32 tick = 1;
optional bytes props_data = 2;
optional .CMsgVector origin = 3;
optional .CMsgQAngle eye_angles = 4;
optional int32 observer_mode = 5;
optional bool cameraman_scoreboard = 6;
optional int32 observer_target = 7;
optional .CMsgVector view_offset = 8;
}
message CSVCMsg_HltvFixupOperatorStatus {
optional uint32 mode = 1;
optional string override_operator_name = 2;
}