mirror of
https://codeberg.org/steam-vent/proto-csgo.git
synced 2026-06-04 02:24:07 +02:00
Update to latest proto definitions from SteamDatabase/Protobufs
From commit 085746bbf6b48d1b89b7a63e7876932793f4c08f
This commit is contained in:
parent
b4633fa310
commit
6d40b01547
43 changed files with 14210 additions and 22031 deletions
|
|
@ -34,7 +34,7 @@ pub struct CGCStorePurchaseInit_LineItem {
|
|||
// @@protoc_insertion_point(field:CGCStorePurchaseInit_LineItem.quantity)
|
||||
pub quantity: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CGCStorePurchaseInit_LineItem.cost_in_local_currency)
|
||||
pub cost_in_local_currency: ::std::option::Option<u32>,
|
||||
pub cost_in_local_currency: ::std::option::Option<u64>,
|
||||
// @@protoc_insertion_point(field:CGCStorePurchaseInit_LineItem.purchase_type)
|
||||
pub purchase_type: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CGCStorePurchaseInit_LineItem.supplemental_data)
|
||||
|
|
@ -93,9 +93,9 @@ impl CGCStorePurchaseInit_LineItem {
|
|||
self.quantity = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 cost_in_local_currency = 3;
|
||||
// optional uint64 cost_in_local_currency = 3;
|
||||
|
||||
pub fn cost_in_local_currency(&self) -> u32 {
|
||||
pub fn cost_in_local_currency(&self) -> u64 {
|
||||
self.cost_in_local_currency.unwrap_or(0)
|
||||
}
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ impl CGCStorePurchaseInit_LineItem {
|
|||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_cost_in_local_currency(&mut self, v: u32) {
|
||||
pub fn set_cost_in_local_currency(&mut self, v: u64) {
|
||||
self.cost_in_local_currency = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
|
|
@ -168,7 +168,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CGCStorePurchaseInit_LineI
|
|||
self.quantity = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
24 => {
|
||||
self.cost_in_local_currency = ::std::option::Option::Some(is.read_uint32()?);
|
||||
self.cost_in_local_currency = ::std::option::Option::Some(is.read_uint64()?);
|
||||
},
|
||||
32 => {
|
||||
self.purchase_type = ::std::option::Option::Some(is.read_uint32()?);
|
||||
|
|
@ -195,7 +195,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CGCStorePurchaseInit_LineI
|
|||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
|
||||
}
|
||||
if let Some(v) = self.cost_in_local_currency {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(3, v);
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint64_size(3, v);
|
||||
}
|
||||
if let Some(v) = self.purchase_type {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(4, v);
|
||||
|
|
@ -216,7 +216,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CGCStorePurchaseInit_LineI
|
|||
os.write_uint32(2, v)?;
|
||||
}
|
||||
if let Some(v) = self.cost_in_local_currency {
|
||||
os.write_uint32(3, v)?;
|
||||
os.write_uint64(3, v)?;
|
||||
}
|
||||
if let Some(v) = self.purchase_type {
|
||||
os.write_uint32(4, v)?;
|
||||
|
|
@ -2073,6 +2073,8 @@ pub struct CSOEconGameAccountClient {
|
|||
// message fields
|
||||
// @@protoc_insertion_point(field:CSOEconGameAccountClient.additional_backpack_slots)
|
||||
pub additional_backpack_slots: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CSOEconGameAccountClient.trade_ban_expiration)
|
||||
pub trade_ban_expiration: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CSOEconGameAccountClient.bonus_xp_timestamp_refresh)
|
||||
pub bonus_xp_timestamp_refresh: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CSOEconGameAccountClient.bonus_xp_usedflags)
|
||||
|
|
@ -2116,6 +2118,25 @@ impl CSOEconGameAccountClient {
|
|||
self.additional_backpack_slots = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional fixed32 trade_ban_expiration = 6;
|
||||
|
||||
pub fn trade_ban_expiration(&self) -> u32 {
|
||||
self.trade_ban_expiration.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_trade_ban_expiration(&mut self) {
|
||||
self.trade_ban_expiration = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_trade_ban_expiration(&self) -> bool {
|
||||
self.trade_ban_expiration.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_trade_ban_expiration(&mut self, v: u32) {
|
||||
self.trade_ban_expiration = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional fixed32 bonus_xp_timestamp_refresh = 12;
|
||||
|
||||
pub fn bonus_xp_timestamp_refresh(&self) -> u32 {
|
||||
|
|
@ -2206,6 +2227,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CSOEconGameAccountClient {
|
|||
8 => {
|
||||
self.additional_backpack_slots = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
53 => {
|
||||
self.trade_ban_expiration = ::std::option::Option::Some(is.read_fixed32()?);
|
||||
},
|
||||
101 => {
|
||||
self.bonus_xp_timestamp_refresh = ::std::option::Option::Some(is.read_fixed32()?);
|
||||
},
|
||||
|
|
@ -2233,6 +2257,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CSOEconGameAccountClient {
|
|||
if let Some(v) = self.additional_backpack_slots {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
|
||||
}
|
||||
if let Some(v) = self.trade_ban_expiration {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
if let Some(v) = self.bonus_xp_timestamp_refresh {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
|
|
@ -2254,6 +2281,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CSOEconGameAccountClient {
|
|||
if let Some(v) = self.additional_backpack_slots {
|
||||
os.write_uint32(1, v)?;
|
||||
}
|
||||
if let Some(v) = self.trade_ban_expiration {
|
||||
os.write_fixed32(6, v)?;
|
||||
}
|
||||
if let Some(v) = self.bonus_xp_timestamp_refresh {
|
||||
os.write_fixed32(12, v)?;
|
||||
}
|
||||
|
|
@ -2284,6 +2314,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CSOEconGameAccountClient {
|
|||
|
||||
fn clear(&mut self) {
|
||||
self.additional_backpack_slots = ::std::option::Option::None;
|
||||
self.trade_ban_expiration = ::std::option::Option::None;
|
||||
self.bonus_xp_timestamp_refresh = ::std::option::Option::None;
|
||||
self.bonus_xp_usedflags = ::std::option::Option::None;
|
||||
self.elevated_state = ::std::option::Option::None;
|
||||
|
|
@ -2294,6 +2325,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CSOEconGameAccountClient {
|
|||
fn default_instance() -> &'static CSOEconGameAccountClient {
|
||||
static instance: CSOEconGameAccountClient = CSOEconGameAccountClient {
|
||||
additional_backpack_slots: ::std::option::Option::None,
|
||||
trade_ban_expiration: ::std::option::Option::None,
|
||||
bonus_xp_timestamp_refresh: ::std::option::Option::None,
|
||||
bonus_xp_usedflags: ::std::option::Option::None,
|
||||
elevated_state: ::std::option::Option::None,
|
||||
|
|
@ -4171,6 +4203,10 @@ pub struct CMsgApplySticker {
|
|||
pub sticker_offset_x: ::std::option::Option<f32>,
|
||||
// @@protoc_insertion_point(field:CMsgApplySticker.sticker_offset_y)
|
||||
pub sticker_offset_y: ::std::option::Option<f32>,
|
||||
// @@protoc_insertion_point(field:CMsgApplySticker.sticker_offset_z)
|
||||
pub sticker_offset_z: ::std::option::Option<f32>,
|
||||
// @@protoc_insertion_point(field:CMsgApplySticker.sticker_wear_target)
|
||||
pub sticker_wear_target: ::std::option::Option<f32>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CMsgApplySticker.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
|
|
@ -4357,6 +4393,44 @@ impl CMsgApplySticker {
|
|||
pub fn set_sticker_offset_y(&mut self, v: f32) {
|
||||
self.sticker_offset_y = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional float sticker_offset_z = 10;
|
||||
|
||||
pub fn sticker_offset_z(&self) -> f32 {
|
||||
self.sticker_offset_z.unwrap_or(0.)
|
||||
}
|
||||
|
||||
pub fn clear_sticker_offset_z(&mut self) {
|
||||
self.sticker_offset_z = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_sticker_offset_z(&self) -> bool {
|
||||
self.sticker_offset_z.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_sticker_offset_z(&mut self, v: f32) {
|
||||
self.sticker_offset_z = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional float sticker_wear_target = 11;
|
||||
|
||||
pub fn sticker_wear_target(&self) -> f32 {
|
||||
self.sticker_wear_target.unwrap_or(0.)
|
||||
}
|
||||
|
||||
pub fn clear_sticker_wear_target(&mut self) {
|
||||
self.sticker_wear_target = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_sticker_wear_target(&self) -> bool {
|
||||
self.sticker_wear_target.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_sticker_wear_target(&mut self, v: f32) {
|
||||
self.sticker_wear_target = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CMsgApplySticker {
|
||||
|
|
@ -4396,6 +4470,12 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgApplySticker {
|
|||
77 => {
|
||||
self.sticker_offset_y = ::std::option::Option::Some(is.read_float()?);
|
||||
},
|
||||
85 => {
|
||||
self.sticker_offset_z = ::std::option::Option::Some(is.read_float()?);
|
||||
},
|
||||
93 => {
|
||||
self.sticker_wear_target = ::std::option::Option::Some(is.read_float()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
|
|
@ -4435,6 +4515,12 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgApplySticker {
|
|||
if let Some(v) = self.sticker_offset_y {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
if let Some(v) = self.sticker_offset_z {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
if let Some(v) = self.sticker_wear_target {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
|
|
@ -4468,6 +4554,12 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgApplySticker {
|
|||
if let Some(v) = self.sticker_offset_y {
|
||||
os.write_float(9, v)?;
|
||||
}
|
||||
if let Some(v) = self.sticker_offset_z {
|
||||
os.write_float(10, v)?;
|
||||
}
|
||||
if let Some(v) = self.sticker_wear_target {
|
||||
os.write_float(11, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
|
@ -4494,6 +4586,8 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgApplySticker {
|
|||
self.sticker_scale = ::std::option::Option::None;
|
||||
self.sticker_offset_x = ::std::option::Option::None;
|
||||
self.sticker_offset_y = ::std::option::Option::None;
|
||||
self.sticker_offset_z = ::std::option::Option::None;
|
||||
self.sticker_wear_target = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
|
|
@ -4508,6 +4602,8 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgApplySticker {
|
|||
sticker_scale: ::std::option::Option::None,
|
||||
sticker_offset_x: ::std::option::Option::None,
|
||||
sticker_offset_y: ::std::option::Option::None,
|
||||
sticker_offset_z: ::std::option::Option::None,
|
||||
sticker_wear_target: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
|
|
@ -6247,336 +6343,6 @@ impl ::steam_vent_proto_common::protobuf::Message for CSOEconItem {
|
|||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CMsgAdjustItemEquippedState)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CMsgAdjustItemEquippedState {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:CMsgAdjustItemEquippedState.item_id)
|
||||
pub item_id: ::std::option::Option<u64>,
|
||||
// @@protoc_insertion_point(field:CMsgAdjustItemEquippedState.new_class)
|
||||
pub new_class: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgAdjustItemEquippedState.new_slot)
|
||||
pub new_slot: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgAdjustItemEquippedState.swap)
|
||||
pub swap: ::std::option::Option<bool>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CMsgAdjustItemEquippedState.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a CMsgAdjustItemEquippedState {
|
||||
fn default() -> &'a CMsgAdjustItemEquippedState {
|
||||
<CMsgAdjustItemEquippedState as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl CMsgAdjustItemEquippedState {
|
||||
pub fn new() -> CMsgAdjustItemEquippedState {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
// optional uint64 item_id = 1;
|
||||
|
||||
pub fn item_id(&self) -> u64 {
|
||||
self.item_id.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_item_id(&mut self) {
|
||||
self.item_id = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_item_id(&self) -> bool {
|
||||
self.item_id.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_item_id(&mut self, v: u64) {
|
||||
self.item_id = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 new_class = 2;
|
||||
|
||||
pub fn new_class(&self) -> u32 {
|
||||
self.new_class.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_new_class(&mut self) {
|
||||
self.new_class = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_new_class(&self) -> bool {
|
||||
self.new_class.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_new_class(&mut self, v: u32) {
|
||||
self.new_class = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 new_slot = 3;
|
||||
|
||||
pub fn new_slot(&self) -> u32 {
|
||||
self.new_slot.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_new_slot(&mut self) {
|
||||
self.new_slot = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_new_slot(&self) -> bool {
|
||||
self.new_slot.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_new_slot(&mut self, v: u32) {
|
||||
self.new_slot = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional bool swap = 4;
|
||||
|
||||
pub fn swap(&self) -> bool {
|
||||
self.swap.unwrap_or(false)
|
||||
}
|
||||
|
||||
pub fn clear_swap(&mut self) {
|
||||
self.swap = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_swap(&self) -> bool {
|
||||
self.swap.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_swap(&mut self, v: bool) {
|
||||
self.swap = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CMsgAdjustItemEquippedState {
|
||||
const NAME: &'static str = "CMsgAdjustItemEquippedState";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
||||
match tag {
|
||||
8 => {
|
||||
self.item_id = ::std::option::Option::Some(is.read_uint64()?);
|
||||
},
|
||||
16 => {
|
||||
self.new_class = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
24 => {
|
||||
self.new_slot = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
32 => {
|
||||
self.swap = ::std::option::Option::Some(is.read_bool()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
};
|
||||
}
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
// Compute sizes of nested messages
|
||||
#[allow(unused_variables)]
|
||||
fn compute_size(&self) -> u64 {
|
||||
let mut my_size = 0;
|
||||
if let Some(v) = self.item_id {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint64_size(1, v);
|
||||
}
|
||||
if let Some(v) = self.new_class {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
|
||||
}
|
||||
if let Some(v) = self.new_slot {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(3, v);
|
||||
}
|
||||
if let Some(v) = self.swap {
|
||||
my_size += 1 + 1;
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
}
|
||||
|
||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
if let Some(v) = self.item_id {
|
||||
os.write_uint64(1, v)?;
|
||||
}
|
||||
if let Some(v) = self.new_class {
|
||||
os.write_uint32(2, v)?;
|
||||
}
|
||||
if let Some(v) = self.new_slot {
|
||||
os.write_uint32(3, v)?;
|
||||
}
|
||||
if let Some(v) = self.swap {
|
||||
os.write_bool(4, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&self.special_fields
|
||||
}
|
||||
|
||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> CMsgAdjustItemEquippedState {
|
||||
CMsgAdjustItemEquippedState::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.item_id = ::std::option::Option::None;
|
||||
self.new_class = ::std::option::Option::None;
|
||||
self.new_slot = ::std::option::Option::None;
|
||||
self.swap = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static CMsgAdjustItemEquippedState {
|
||||
static instance: CMsgAdjustItemEquippedState = CMsgAdjustItemEquippedState {
|
||||
item_id: ::std::option::Option::None,
|
||||
new_class: ::std::option::Option::None,
|
||||
new_slot: ::std::option::Option::None,
|
||||
swap: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CMsgAdjustItemEquippedStateMulti)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CMsgAdjustItemEquippedStateMulti {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:CMsgAdjustItemEquippedStateMulti.t_equips)
|
||||
pub t_equips: ::std::vec::Vec<u64>,
|
||||
// @@protoc_insertion_point(field:CMsgAdjustItemEquippedStateMulti.ct_equips)
|
||||
pub ct_equips: ::std::vec::Vec<u64>,
|
||||
// @@protoc_insertion_point(field:CMsgAdjustItemEquippedStateMulti.noteam_equips)
|
||||
pub noteam_equips: ::std::vec::Vec<u64>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CMsgAdjustItemEquippedStateMulti.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a CMsgAdjustItemEquippedStateMulti {
|
||||
fn default() -> &'a CMsgAdjustItemEquippedStateMulti {
|
||||
<CMsgAdjustItemEquippedStateMulti as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl CMsgAdjustItemEquippedStateMulti {
|
||||
pub fn new() -> CMsgAdjustItemEquippedStateMulti {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CMsgAdjustItemEquippedStateMulti {
|
||||
const NAME: &'static str = "CMsgAdjustItemEquippedStateMulti";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
||||
match tag {
|
||||
10 => {
|
||||
is.read_repeated_packed_uint64_into(&mut self.t_equips)?;
|
||||
},
|
||||
8 => {
|
||||
self.t_equips.push(is.read_uint64()?);
|
||||
},
|
||||
18 => {
|
||||
is.read_repeated_packed_uint64_into(&mut self.ct_equips)?;
|
||||
},
|
||||
16 => {
|
||||
self.ct_equips.push(is.read_uint64()?);
|
||||
},
|
||||
26 => {
|
||||
is.read_repeated_packed_uint64_into(&mut self.noteam_equips)?;
|
||||
},
|
||||
24 => {
|
||||
self.noteam_equips.push(is.read_uint64()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
};
|
||||
}
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
// Compute sizes of nested messages
|
||||
#[allow(unused_variables)]
|
||||
fn compute_size(&self) -> u64 {
|
||||
let mut my_size = 0;
|
||||
for value in &self.t_equips {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint64_size(1, *value);
|
||||
};
|
||||
for value in &self.ct_equips {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint64_size(2, *value);
|
||||
};
|
||||
for value in &self.noteam_equips {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint64_size(3, *value);
|
||||
};
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
}
|
||||
|
||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
for v in &self.t_equips {
|
||||
os.write_uint64(1, *v)?;
|
||||
};
|
||||
for v in &self.ct_equips {
|
||||
os.write_uint64(2, *v)?;
|
||||
};
|
||||
for v in &self.noteam_equips {
|
||||
os.write_uint64(3, *v)?;
|
||||
};
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&self.special_fields
|
||||
}
|
||||
|
||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> CMsgAdjustItemEquippedStateMulti {
|
||||
CMsgAdjustItemEquippedStateMulti::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.t_equips.clear();
|
||||
self.ct_equips.clear();
|
||||
self.noteam_equips.clear();
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static CMsgAdjustItemEquippedStateMulti {
|
||||
static instance: CMsgAdjustItemEquippedStateMulti = CMsgAdjustItemEquippedStateMulti {
|
||||
t_equips: ::std::vec::Vec::new(),
|
||||
ct_equips: ::std::vec::Vec::new(),
|
||||
noteam_equips: ::std::vec::Vec::new(),
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CMsgSortItems)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CMsgSortItems {
|
||||
|
|
@ -12527,211 +12293,6 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgGCToGCBannedWordListUp
|
|||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CSOEconDefaultEquippedDefinitionInstanceClient)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CSOEconDefaultEquippedDefinitionInstanceClient {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:CSOEconDefaultEquippedDefinitionInstanceClient.account_id)
|
||||
pub account_id: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CSOEconDefaultEquippedDefinitionInstanceClient.item_definition)
|
||||
pub item_definition: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CSOEconDefaultEquippedDefinitionInstanceClient.class_id)
|
||||
pub class_id: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CSOEconDefaultEquippedDefinitionInstanceClient.slot_id)
|
||||
pub slot_id: ::std::option::Option<u32>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CSOEconDefaultEquippedDefinitionInstanceClient.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a CSOEconDefaultEquippedDefinitionInstanceClient {
|
||||
fn default() -> &'a CSOEconDefaultEquippedDefinitionInstanceClient {
|
||||
<CSOEconDefaultEquippedDefinitionInstanceClient as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl CSOEconDefaultEquippedDefinitionInstanceClient {
|
||||
pub fn new() -> CSOEconDefaultEquippedDefinitionInstanceClient {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
// optional uint32 account_id = 1;
|
||||
|
||||
pub fn account_id(&self) -> u32 {
|
||||
self.account_id.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_account_id(&mut self) {
|
||||
self.account_id = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_account_id(&self) -> bool {
|
||||
self.account_id.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_account_id(&mut self, v: u32) {
|
||||
self.account_id = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 item_definition = 2;
|
||||
|
||||
pub fn item_definition(&self) -> u32 {
|
||||
self.item_definition.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_item_definition(&mut self) {
|
||||
self.item_definition = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_item_definition(&self) -> bool {
|
||||
self.item_definition.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_item_definition(&mut self, v: u32) {
|
||||
self.item_definition = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 class_id = 3;
|
||||
|
||||
pub fn class_id(&self) -> u32 {
|
||||
self.class_id.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_class_id(&mut self) {
|
||||
self.class_id = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_class_id(&self) -> bool {
|
||||
self.class_id.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_class_id(&mut self, v: u32) {
|
||||
self.class_id = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 slot_id = 4;
|
||||
|
||||
pub fn slot_id(&self) -> u32 {
|
||||
self.slot_id.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_slot_id(&mut self) {
|
||||
self.slot_id = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_slot_id(&self) -> bool {
|
||||
self.slot_id.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_slot_id(&mut self, v: u32) {
|
||||
self.slot_id = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CSOEconDefaultEquippedDefinitionInstanceClient {
|
||||
const NAME: &'static str = "CSOEconDefaultEquippedDefinitionInstanceClient";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
||||
match tag {
|
||||
8 => {
|
||||
self.account_id = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
16 => {
|
||||
self.item_definition = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
24 => {
|
||||
self.class_id = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
32 => {
|
||||
self.slot_id = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
};
|
||||
}
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
// Compute sizes of nested messages
|
||||
#[allow(unused_variables)]
|
||||
fn compute_size(&self) -> u64 {
|
||||
let mut my_size = 0;
|
||||
if let Some(v) = self.account_id {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
|
||||
}
|
||||
if let Some(v) = self.item_definition {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
|
||||
}
|
||||
if let Some(v) = self.class_id {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(3, v);
|
||||
}
|
||||
if let Some(v) = self.slot_id {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(4, v);
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
}
|
||||
|
||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
if let Some(v) = self.account_id {
|
||||
os.write_uint32(1, v)?;
|
||||
}
|
||||
if let Some(v) = self.item_definition {
|
||||
os.write_uint32(2, v)?;
|
||||
}
|
||||
if let Some(v) = self.class_id {
|
||||
os.write_uint32(3, v)?;
|
||||
}
|
||||
if let Some(v) = self.slot_id {
|
||||
os.write_uint32(4, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&self.special_fields
|
||||
}
|
||||
|
||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> CSOEconDefaultEquippedDefinitionInstanceClient {
|
||||
CSOEconDefaultEquippedDefinitionInstanceClient::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.account_id = ::std::option::Option::None;
|
||||
self.item_definition = ::std::option::Option::None;
|
||||
self.class_id = ::std::option::Option::None;
|
||||
self.slot_id = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static CSOEconDefaultEquippedDefinitionInstanceClient {
|
||||
static instance: CSOEconDefaultEquippedDefinitionInstanceClient = CSOEconDefaultEquippedDefinitionInstanceClient {
|
||||
account_id: ::std::option::Option::None,
|
||||
item_definition: ::std::option::Option::None,
|
||||
class_id: ::std::option::Option::None,
|
||||
slot_id: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CMsgGCToGCDirtySDOCache)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CMsgGCToGCDirtySDOCache {
|
||||
|
|
@ -15421,6 +14982,8 @@ pub struct CMsgOpenCrate {
|
|||
pub subject_item_id: ::std::option::Option<u64>,
|
||||
// @@protoc_insertion_point(field:CMsgOpenCrate.for_rental)
|
||||
pub for_rental: ::std::option::Option<bool>,
|
||||
// @@protoc_insertion_point(field:CMsgOpenCrate.points_remaining)
|
||||
pub points_remaining: ::std::option::Option<u32>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CMsgOpenCrate.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
|
|
@ -15493,6 +15056,25 @@ impl CMsgOpenCrate {
|
|||
pub fn set_for_rental(&mut self, v: bool) {
|
||||
self.for_rental = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 points_remaining = 4;
|
||||
|
||||
pub fn points_remaining(&self) -> u32 {
|
||||
self.points_remaining.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_points_remaining(&mut self) {
|
||||
self.points_remaining = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_points_remaining(&self) -> bool {
|
||||
self.points_remaining.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_points_remaining(&mut self, v: u32) {
|
||||
self.points_remaining = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CMsgOpenCrate {
|
||||
|
|
@ -15514,6 +15096,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgOpenCrate {
|
|||
24 => {
|
||||
self.for_rental = ::std::option::Option::Some(is.read_bool()?);
|
||||
},
|
||||
32 => {
|
||||
self.points_remaining = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
|
|
@ -15535,6 +15120,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgOpenCrate {
|
|||
if let Some(v) = self.for_rental {
|
||||
my_size += 1 + 1;
|
||||
}
|
||||
if let Some(v) = self.points_remaining {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(4, v);
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
|
|
@ -15550,6 +15138,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgOpenCrate {
|
|||
if let Some(v) = self.for_rental {
|
||||
os.write_bool(3, v)?;
|
||||
}
|
||||
if let Some(v) = self.points_remaining {
|
||||
os.write_uint32(4, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
|
@ -15570,6 +15161,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgOpenCrate {
|
|||
self.tool_item_id = ::std::option::Option::None;
|
||||
self.subject_item_id = ::std::option::Option::None;
|
||||
self.for_rental = ::std::option::Option::None;
|
||||
self.points_remaining = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
|
|
@ -15578,6 +15170,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgOpenCrate {
|
|||
tool_item_id: ::std::option::Option::None,
|
||||
subject_item_id: ::std::option::Option::None,
|
||||
for_rental: ::std::option::Option::None,
|
||||
points_remaining: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
|
|
@ -16557,40 +16150,6 @@ impl ::steam_vent_proto_common::RpcMessage for CSOEconItem {
|
|||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for CMsgAdjustItemEquippedState {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
}
|
||||
fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.write_to_writer(writer)
|
||||
}
|
||||
fn encode_size(&self) -> usize {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessageWithKind for CMsgAdjustItemEquippedState {
|
||||
type KindEnum = crate::econ_gcmessages::EGCItemMsg;
|
||||
const KIND: Self::KindEnum = crate::econ_gcmessages::EGCItemMsg::k_EMsgGCAdjustItemEquippedState;
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for CMsgAdjustItemEquippedStateMulti {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
}
|
||||
fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.write_to_writer(writer)
|
||||
}
|
||||
fn encode_size(&self) -> usize {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessageWithKind for CMsgAdjustItemEquippedStateMulti {
|
||||
type KindEnum = crate::econ_gcmessages::EGCItemMsg;
|
||||
const KIND: Self::KindEnum = crate::econ_gcmessages::EGCItemMsg::k_EMsgGCAdjustItemEquippedStateMulti;
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for CMsgSortItems {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
|
|
@ -17143,20 +16702,6 @@ impl ::steam_vent_proto_common::RpcMessageWithKind for CMsgGCToGCBannedWordListU
|
|||
type KindEnum = crate::econ_gcmessages::EGCItemMsg;
|
||||
const KIND: Self::KindEnum = crate::econ_gcmessages::EGCItemMsg::k_EMsgGCToGCBannedWordListUpdated;
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage
|
||||
for CSOEconDefaultEquippedDefinitionInstanceClient {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
}
|
||||
fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.write_to_writer(writer)
|
||||
}
|
||||
fn encode_size(&self) -> usize {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for CMsgGCToGCDirtySDOCache {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1232,6 +1232,10 @@ pub enum P2P_Messages {
|
|||
p2p_VRAvatarPosition = 259,
|
||||
// @@protoc_insertion_point(enum_value:P2P_Messages.p2p_WatchSynchronization)
|
||||
p2p_WatchSynchronization = 260,
|
||||
// @@protoc_insertion_point(enum_value:P2P_Messages.p2p_FightingGame_GameData)
|
||||
p2p_FightingGame_GameData = 261,
|
||||
// @@protoc_insertion_point(enum_value:P2P_Messages.p2p_FightingGame_Connection)
|
||||
p2p_FightingGame_Connection = 262,
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Enum for P2P_Messages {
|
||||
|
|
@ -1248,6 +1252,8 @@ impl ::steam_vent_proto_common::protobuf::Enum for P2P_Messages {
|
|||
258 => ::std::option::Option::Some(P2P_Messages::p2p_Ping),
|
||||
259 => ::std::option::Option::Some(P2P_Messages::p2p_VRAvatarPosition),
|
||||
260 => ::std::option::Option::Some(P2P_Messages::p2p_WatchSynchronization),
|
||||
261 => ::std::option::Option::Some(P2P_Messages::p2p_FightingGame_GameData),
|
||||
262 => ::std::option::Option::Some(P2P_Messages::p2p_FightingGame_Connection),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
|
@ -1259,6 +1265,8 @@ impl ::steam_vent_proto_common::protobuf::Enum for P2P_Messages {
|
|||
"p2p_Ping" => ::std::option::Option::Some(P2P_Messages::p2p_Ping),
|
||||
"p2p_VRAvatarPosition" => ::std::option::Option::Some(P2P_Messages::p2p_VRAvatarPosition),
|
||||
"p2p_WatchSynchronization" => ::std::option::Option::Some(P2P_Messages::p2p_WatchSynchronization),
|
||||
"p2p_FightingGame_GameData" => ::std::option::Option::Some(P2P_Messages::p2p_FightingGame_GameData),
|
||||
"p2p_FightingGame_Connection" => ::std::option::Option::Some(P2P_Messages::p2p_FightingGame_Connection),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
|
@ -1269,6 +1277,8 @@ impl ::steam_vent_proto_common::protobuf::Enum for P2P_Messages {
|
|||
P2P_Messages::p2p_Ping,
|
||||
P2P_Messages::p2p_VRAvatarPosition,
|
||||
P2P_Messages::p2p_WatchSynchronization,
|
||||
P2P_Messages::p2p_FightingGame_GameData,
|
||||
P2P_Messages::p2p_FightingGame_Connection,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,147 @@
|
|||
/// of protobuf runtime.
|
||||
const _PROTOBUF_VERSION_CHECK: () = ::steam_vent_proto_common::protobuf::VERSION_3_5_1;
|
||||
|
||||
// @@protoc_insertion_point(message:C2S_CONNECT_SameProcessCheck)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct C2S_CONNECT_SameProcessCheck {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:C2S_CONNECT_SameProcessCheck.localhost_process_id)
|
||||
pub localhost_process_id: ::std::option::Option<u64>,
|
||||
// @@protoc_insertion_point(field:C2S_CONNECT_SameProcessCheck.key)
|
||||
pub key: ::std::option::Option<u64>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:C2S_CONNECT_SameProcessCheck.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a C2S_CONNECT_SameProcessCheck {
|
||||
fn default() -> &'a C2S_CONNECT_SameProcessCheck {
|
||||
<C2S_CONNECT_SameProcessCheck as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl C2S_CONNECT_SameProcessCheck {
|
||||
pub fn new() -> C2S_CONNECT_SameProcessCheck {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
// optional uint64 localhost_process_id = 1;
|
||||
|
||||
pub fn localhost_process_id(&self) -> u64 {
|
||||
self.localhost_process_id.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_localhost_process_id(&mut self) {
|
||||
self.localhost_process_id = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_localhost_process_id(&self) -> bool {
|
||||
self.localhost_process_id.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_localhost_process_id(&mut self, v: u64) {
|
||||
self.localhost_process_id = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint64 key = 2;
|
||||
|
||||
pub fn key(&self) -> u64 {
|
||||
self.key.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_key(&mut self) {
|
||||
self.key = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_key(&self) -> bool {
|
||||
self.key.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_key(&mut self, v: u64) {
|
||||
self.key = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for C2S_CONNECT_SameProcessCheck {
|
||||
const NAME: &'static str = "C2S_CONNECT_SameProcessCheck";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
||||
match tag {
|
||||
8 => {
|
||||
self.localhost_process_id = ::std::option::Option::Some(is.read_uint64()?);
|
||||
},
|
||||
16 => {
|
||||
self.key = ::std::option::Option::Some(is.read_uint64()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
};
|
||||
}
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
// Compute sizes of nested messages
|
||||
#[allow(unused_variables)]
|
||||
fn compute_size(&self) -> u64 {
|
||||
let mut my_size = 0;
|
||||
if let Some(v) = self.localhost_process_id {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint64_size(1, v);
|
||||
}
|
||||
if let Some(v) = self.key {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint64_size(2, v);
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
}
|
||||
|
||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
if let Some(v) = self.localhost_process_id {
|
||||
os.write_uint64(1, v)?;
|
||||
}
|
||||
if let Some(v) = self.key {
|
||||
os.write_uint64(2, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&self.special_fields
|
||||
}
|
||||
|
||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> C2S_CONNECT_SameProcessCheck {
|
||||
C2S_CONNECT_SameProcessCheck::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.localhost_process_id = ::std::option::Option::None;
|
||||
self.key = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static C2S_CONNECT_SameProcessCheck {
|
||||
static instance: C2S_CONNECT_SameProcessCheck = C2S_CONNECT_SameProcessCheck {
|
||||
localhost_process_id: ::std::option::Option::None,
|
||||
key: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:C2S_CONNECT_Message)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct C2S_CONNECT_Message {
|
||||
|
|
@ -47,6 +188,8 @@ pub struct C2S_CONNECT_Message {
|
|||
pub auth_steam: ::std::option::Option<::std::vec::Vec<u8>>,
|
||||
// @@protoc_insertion_point(field:C2S_CONNECT_Message.challenge_context)
|
||||
pub challenge_context: ::std::option::Option<::std::string::String>,
|
||||
// @@protoc_insertion_point(field:C2S_CONNECT_Message.localhost_same_process_check)
|
||||
pub localhost_same_process_check: ::steam_vent_proto_common::protobuf::MessageField<C2S_CONNECT_SameProcessCheck>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:C2S_CONNECT_Message.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
|
|
@ -304,6 +447,9 @@ impl ::steam_vent_proto_common::protobuf::Message for C2S_CONNECT_Message {
|
|||
74 => {
|
||||
self.challenge_context = ::std::option::Option::Some(is.read_string()?);
|
||||
},
|
||||
82 => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.localhost_same_process_check)?;
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
|
|
@ -344,6 +490,10 @@ impl ::steam_vent_proto_common::protobuf::Message for C2S_CONNECT_Message {
|
|||
if let Some(v) = self.challenge_context.as_ref() {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::string_size(9, &v);
|
||||
}
|
||||
if let Some(v) = self.localhost_same_process_check.as_ref() {
|
||||
let len = v.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
|
|
@ -377,6 +527,9 @@ impl ::steam_vent_proto_common::protobuf::Message for C2S_CONNECT_Message {
|
|||
if let Some(v) = self.challenge_context.as_ref() {
|
||||
os.write_string(9, v)?;
|
||||
}
|
||||
if let Some(v) = self.localhost_same_process_check.as_ref() {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(10, v, os)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
|
@ -403,6 +556,7 @@ impl ::steam_vent_proto_common::protobuf::Message for C2S_CONNECT_Message {
|
|||
self.splitplayers.clear();
|
||||
self.auth_steam = ::std::option::Option::None;
|
||||
self.challenge_context = ::std::option::Option::None;
|
||||
self.localhost_same_process_check.clear();
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
|
|
@ -417,6 +571,7 @@ impl ::steam_vent_proto_common::protobuf::Message for C2S_CONNECT_Message {
|
|||
splitplayers: ::std::vec::Vec::new(),
|
||||
auth_steam: ::std::option::Option::None,
|
||||
challenge_context: ::std::option::Option::None,
|
||||
localhost_same_process_check: ::steam_vent_proto_common::protobuf::MessageField::none(),
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
|
|
@ -429,6 +584,8 @@ pub struct C2S_CONNECTION_Message {
|
|||
// message fields
|
||||
// @@protoc_insertion_point(field:C2S_CONNECTION_Message.addon_name)
|
||||
pub addon_name: ::std::option::Option<::std::string::String>,
|
||||
// @@protoc_insertion_point(field:C2S_CONNECTION_Message.localhost_same_process_check)
|
||||
pub localhost_same_process_check: ::steam_vent_proto_common::protobuf::MessageField<C2S_CONNECT_SameProcessCheck>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:C2S_CONNECTION_Message.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
|
|
@ -495,6 +652,9 @@ impl ::steam_vent_proto_common::protobuf::Message for C2S_CONNECTION_Message {
|
|||
10 => {
|
||||
self.addon_name = ::std::option::Option::Some(is.read_string()?);
|
||||
},
|
||||
18 => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.localhost_same_process_check)?;
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
|
|
@ -510,6 +670,10 @@ impl ::steam_vent_proto_common::protobuf::Message for C2S_CONNECTION_Message {
|
|||
if let Some(v) = self.addon_name.as_ref() {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::string_size(1, &v);
|
||||
}
|
||||
if let Some(v) = self.localhost_same_process_check.as_ref() {
|
||||
let len = v.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
|
|
@ -519,6 +683,9 @@ impl ::steam_vent_proto_common::protobuf::Message for C2S_CONNECTION_Message {
|
|||
if let Some(v) = self.addon_name.as_ref() {
|
||||
os.write_string(1, v)?;
|
||||
}
|
||||
if let Some(v) = self.localhost_same_process_check.as_ref() {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
|
@ -537,12 +704,14 @@ impl ::steam_vent_proto_common::protobuf::Message for C2S_CONNECTION_Message {
|
|||
|
||||
fn clear(&mut self) {
|
||||
self.addon_name = ::std::option::Option::None;
|
||||
self.localhost_same_process_check.clear();
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static C2S_CONNECTION_Message {
|
||||
static instance: C2S_CONNECTION_Message = C2S_CONNECTION_Message {
|
||||
addon_name: ::std::option::Option::None,
|
||||
localhost_same_process_check: ::steam_vent_proto_common::protobuf::MessageField::none(),
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
|
|
@ -554,6 +723,19 @@ const _VENT_PROTO_VERSION_CHECK: () = ::steam_vent_proto_common::VERSION_0_5_0;
|
|||
|
||||
#[allow(unused_imports)]
|
||||
use crate::netmessages::*;
|
||||
impl ::steam_vent_proto_common::RpcMessage for C2S_CONNECT_SameProcessCheck {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
}
|
||||
fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.write_to_writer(writer)
|
||||
}
|
||||
fn encode_size(&self) -> usize {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for C2S_CONNECT_Message {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
|
|
|
|||
434
src/generated/cs_prediction_events.rs
Normal file
434
src/generated/cs_prediction_events.rs
Normal file
|
|
@ -0,0 +1,434 @@
|
|||
// This file is generated by rust-protobuf 3.5.1. Do not edit
|
||||
// .proto file is parsed by pure
|
||||
// @generated
|
||||
|
||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
||||
#![allow(unknown_lints)]
|
||||
#![allow(clippy::all)]
|
||||
|
||||
#![allow(unused_attributes)]
|
||||
#![cfg_attr(rustfmt, rustfmt::skip)]
|
||||
|
||||
#![allow(dead_code)]
|
||||
#![allow(missing_docs)]
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(non_snake_case)]
|
||||
#![allow(non_upper_case_globals)]
|
||||
#![allow(trivial_casts)]
|
||||
#![allow(unused_results)]
|
||||
#![allow(unused_mut)]
|
||||
|
||||
//! Generated file from `cs_prediction_events.proto`
|
||||
// Generated for lite runtime
|
||||
|
||||
/// Generated files are compatible only with the same version
|
||||
/// of protobuf runtime.
|
||||
const _PROTOBUF_VERSION_CHECK: () = ::steam_vent_proto_common::protobuf::VERSION_3_5_1;
|
||||
|
||||
// @@protoc_insertion_point(message:CCSPredictionEvent_DamageTag)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CCSPredictionEvent_DamageTag {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:CCSPredictionEvent_DamageTag.flinch_mod_small)
|
||||
pub flinch_mod_small: ::std::option::Option<f32>,
|
||||
// @@protoc_insertion_point(field:CCSPredictionEvent_DamageTag.flinch_mod_large)
|
||||
pub flinch_mod_large: ::std::option::Option<f32>,
|
||||
// @@protoc_insertion_point(field:CCSPredictionEvent_DamageTag.friendly_fire_damage_reduction_ratio)
|
||||
pub friendly_fire_damage_reduction_ratio: ::std::option::Option<f32>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CCSPredictionEvent_DamageTag.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a CCSPredictionEvent_DamageTag {
|
||||
fn default() -> &'a CCSPredictionEvent_DamageTag {
|
||||
<CCSPredictionEvent_DamageTag as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl CCSPredictionEvent_DamageTag {
|
||||
pub fn new() -> CCSPredictionEvent_DamageTag {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
// optional float flinch_mod_small = 1;
|
||||
|
||||
pub fn flinch_mod_small(&self) -> f32 {
|
||||
self.flinch_mod_small.unwrap_or(0.)
|
||||
}
|
||||
|
||||
pub fn clear_flinch_mod_small(&mut self) {
|
||||
self.flinch_mod_small = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_flinch_mod_small(&self) -> bool {
|
||||
self.flinch_mod_small.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_flinch_mod_small(&mut self, v: f32) {
|
||||
self.flinch_mod_small = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional float flinch_mod_large = 2;
|
||||
|
||||
pub fn flinch_mod_large(&self) -> f32 {
|
||||
self.flinch_mod_large.unwrap_or(0.)
|
||||
}
|
||||
|
||||
pub fn clear_flinch_mod_large(&mut self) {
|
||||
self.flinch_mod_large = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_flinch_mod_large(&self) -> bool {
|
||||
self.flinch_mod_large.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_flinch_mod_large(&mut self, v: f32) {
|
||||
self.flinch_mod_large = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional float friendly_fire_damage_reduction_ratio = 3;
|
||||
|
||||
pub fn friendly_fire_damage_reduction_ratio(&self) -> f32 {
|
||||
self.friendly_fire_damage_reduction_ratio.unwrap_or(0.)
|
||||
}
|
||||
|
||||
pub fn clear_friendly_fire_damage_reduction_ratio(&mut self) {
|
||||
self.friendly_fire_damage_reduction_ratio = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_friendly_fire_damage_reduction_ratio(&self) -> bool {
|
||||
self.friendly_fire_damage_reduction_ratio.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_friendly_fire_damage_reduction_ratio(&mut self, v: f32) {
|
||||
self.friendly_fire_damage_reduction_ratio = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CCSPredictionEvent_DamageTag {
|
||||
const NAME: &'static str = "CCSPredictionEvent_DamageTag";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
||||
match tag {
|
||||
13 => {
|
||||
self.flinch_mod_small = ::std::option::Option::Some(is.read_float()?);
|
||||
},
|
||||
21 => {
|
||||
self.flinch_mod_large = ::std::option::Option::Some(is.read_float()?);
|
||||
},
|
||||
29 => {
|
||||
self.friendly_fire_damage_reduction_ratio = ::std::option::Option::Some(is.read_float()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
};
|
||||
}
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
// Compute sizes of nested messages
|
||||
#[allow(unused_variables)]
|
||||
fn compute_size(&self) -> u64 {
|
||||
let mut my_size = 0;
|
||||
if let Some(v) = self.flinch_mod_small {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
if let Some(v) = self.flinch_mod_large {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
if let Some(v) = self.friendly_fire_damage_reduction_ratio {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
}
|
||||
|
||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
if let Some(v) = self.flinch_mod_small {
|
||||
os.write_float(1, v)?;
|
||||
}
|
||||
if let Some(v) = self.flinch_mod_large {
|
||||
os.write_float(2, v)?;
|
||||
}
|
||||
if let Some(v) = self.friendly_fire_damage_reduction_ratio {
|
||||
os.write_float(3, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&self.special_fields
|
||||
}
|
||||
|
||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> CCSPredictionEvent_DamageTag {
|
||||
CCSPredictionEvent_DamageTag::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.flinch_mod_small = ::std::option::Option::None;
|
||||
self.flinch_mod_large = ::std::option::Option::None;
|
||||
self.friendly_fire_damage_reduction_ratio = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static CCSPredictionEvent_DamageTag {
|
||||
static instance: CCSPredictionEvent_DamageTag = CCSPredictionEvent_DamageTag {
|
||||
flinch_mod_small: ::std::option::Option::None,
|
||||
flinch_mod_large: ::std::option::Option::None,
|
||||
friendly_fire_damage_reduction_ratio: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CCSPredictionEvent_AddAimPunch)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CCSPredictionEvent_AddAimPunch {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:CCSPredictionEvent_AddAimPunch.punch_angle)
|
||||
pub punch_angle: ::steam_vent_proto_common::protobuf::MessageField<super::networkbasetypes::CMsgQAngle>,
|
||||
// @@protoc_insertion_point(field:CCSPredictionEvent_AddAimPunch.when_tick)
|
||||
pub when_tick: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CCSPredictionEvent_AddAimPunch.when_tick_frac)
|
||||
pub when_tick_frac: ::std::option::Option<f32>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CCSPredictionEvent_AddAimPunch.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a CCSPredictionEvent_AddAimPunch {
|
||||
fn default() -> &'a CCSPredictionEvent_AddAimPunch {
|
||||
<CCSPredictionEvent_AddAimPunch as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl CCSPredictionEvent_AddAimPunch {
|
||||
pub fn new() -> CCSPredictionEvent_AddAimPunch {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
// optional uint32 when_tick = 2;
|
||||
|
||||
pub fn when_tick(&self) -> u32 {
|
||||
self.when_tick.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_when_tick(&mut self) {
|
||||
self.when_tick = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_when_tick(&self) -> bool {
|
||||
self.when_tick.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_when_tick(&mut self, v: u32) {
|
||||
self.when_tick = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional float when_tick_frac = 3;
|
||||
|
||||
pub fn when_tick_frac(&self) -> f32 {
|
||||
self.when_tick_frac.unwrap_or(0.)
|
||||
}
|
||||
|
||||
pub fn clear_when_tick_frac(&mut self) {
|
||||
self.when_tick_frac = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_when_tick_frac(&self) -> bool {
|
||||
self.when_tick_frac.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_when_tick_frac(&mut self, v: f32) {
|
||||
self.when_tick_frac = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CCSPredictionEvent_AddAimPunch {
|
||||
const NAME: &'static str = "CCSPredictionEvent_AddAimPunch";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
||||
match tag {
|
||||
10 => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.punch_angle)?;
|
||||
},
|
||||
16 => {
|
||||
self.when_tick = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
29 => {
|
||||
self.when_tick_frac = ::std::option::Option::Some(is.read_float()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
};
|
||||
}
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
// Compute sizes of nested messages
|
||||
#[allow(unused_variables)]
|
||||
fn compute_size(&self) -> u64 {
|
||||
let mut my_size = 0;
|
||||
if let Some(v) = self.punch_angle.as_ref() {
|
||||
let len = v.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
}
|
||||
if let Some(v) = self.when_tick {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
|
||||
}
|
||||
if let Some(v) = self.when_tick_frac {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
}
|
||||
|
||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
if let Some(v) = self.punch_angle.as_ref() {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
|
||||
}
|
||||
if let Some(v) = self.when_tick {
|
||||
os.write_uint32(2, v)?;
|
||||
}
|
||||
if let Some(v) = self.when_tick_frac {
|
||||
os.write_float(3, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&self.special_fields
|
||||
}
|
||||
|
||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> CCSPredictionEvent_AddAimPunch {
|
||||
CCSPredictionEvent_AddAimPunch::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.punch_angle.clear();
|
||||
self.when_tick = ::std::option::Option::None;
|
||||
self.when_tick_frac = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static CCSPredictionEvent_AddAimPunch {
|
||||
static instance: CCSPredictionEvent_AddAimPunch = CCSPredictionEvent_AddAimPunch {
|
||||
punch_angle: ::steam_vent_proto_common::protobuf::MessageField::none(),
|
||||
when_tick: ::std::option::Option::None,
|
||||
when_tick_frac: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
||||
// @@protoc_insertion_point(enum:ECSPredictionEvents)
|
||||
pub enum ECSPredictionEvents {
|
||||
// @@protoc_insertion_point(enum_value:ECSPredictionEvents.CSPE_DamageTag)
|
||||
CSPE_DamageTag = 1,
|
||||
// @@protoc_insertion_point(enum_value:ECSPredictionEvents.CSPE_AddAimPunch)
|
||||
CSPE_AddAimPunch = 3,
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Enum for ECSPredictionEvents {
|
||||
const NAME: &'static str = "ECSPredictionEvents";
|
||||
|
||||
fn value(&self) -> i32 {
|
||||
*self as i32
|
||||
}
|
||||
|
||||
fn from_i32(value: i32) -> ::std::option::Option<ECSPredictionEvents> {
|
||||
match value {
|
||||
1 => ::std::option::Option::Some(ECSPredictionEvents::CSPE_DamageTag),
|
||||
3 => ::std::option::Option::Some(ECSPredictionEvents::CSPE_AddAimPunch),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
||||
fn from_str(str: &str) -> ::std::option::Option<ECSPredictionEvents> {
|
||||
match str {
|
||||
"CSPE_DamageTag" => ::std::option::Option::Some(ECSPredictionEvents::CSPE_DamageTag),
|
||||
"CSPE_AddAimPunch" => ::std::option::Option::Some(ECSPredictionEvents::CSPE_AddAimPunch),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
||||
const VALUES: &'static [ECSPredictionEvents] = &[
|
||||
ECSPredictionEvents::CSPE_DamageTag,
|
||||
ECSPredictionEvents::CSPE_AddAimPunch,
|
||||
];
|
||||
}
|
||||
|
||||
// Note, `Default` is implemented although default value is not 0
|
||||
impl ::std::default::Default for ECSPredictionEvents {
|
||||
fn default() -> Self {
|
||||
ECSPredictionEvents::CSPE_DamageTag
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
const _VENT_PROTO_VERSION_CHECK: () = ::steam_vent_proto_common::VERSION_0_5_0;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use crate::networkbasetypes::*;
|
||||
#[allow(unused_imports)]
|
||||
use crate::prediction_events::*;
|
||||
impl ::steam_vent_proto_common::RpcMessage for CCSPredictionEvent_DamageTag {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
}
|
||||
fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.write_to_writer(writer)
|
||||
}
|
||||
fn encode_size(&self) -> usize {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for CCSPredictionEvent_AddAimPunch {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
}
|
||||
fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.write_to_writer(writer)
|
||||
}
|
||||
fn encode_size(&self) -> usize {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
|
|
@ -198,6 +198,115 @@ impl ::steam_vent_proto_common::protobuf::Message for CSGOInterpolationInfoPB {
|
|||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CSGOInterpolationInfoPB_CL)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CSGOInterpolationInfoPB_CL {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:CSGOInterpolationInfoPB_CL.frac)
|
||||
pub frac: ::std::option::Option<f32>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CSGOInterpolationInfoPB_CL.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a CSGOInterpolationInfoPB_CL {
|
||||
fn default() -> &'a CSGOInterpolationInfoPB_CL {
|
||||
<CSGOInterpolationInfoPB_CL as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl CSGOInterpolationInfoPB_CL {
|
||||
pub fn new() -> CSGOInterpolationInfoPB_CL {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
// optional float frac = 3;
|
||||
|
||||
pub fn frac(&self) -> f32 {
|
||||
self.frac.unwrap_or(0.0f32)
|
||||
}
|
||||
|
||||
pub fn clear_frac(&mut self) {
|
||||
self.frac = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_frac(&self) -> bool {
|
||||
self.frac.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_frac(&mut self, v: f32) {
|
||||
self.frac = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CSGOInterpolationInfoPB_CL {
|
||||
const NAME: &'static str = "CSGOInterpolationInfoPB_CL";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
||||
match tag {
|
||||
29 => {
|
||||
self.frac = ::std::option::Option::Some(is.read_float()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
};
|
||||
}
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
// Compute sizes of nested messages
|
||||
#[allow(unused_variables)]
|
||||
fn compute_size(&self) -> u64 {
|
||||
let mut my_size = 0;
|
||||
if let Some(v) = self.frac {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
}
|
||||
|
||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
if let Some(v) = self.frac {
|
||||
os.write_float(3, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&self.special_fields
|
||||
}
|
||||
|
||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> CSGOInterpolationInfoPB_CL {
|
||||
CSGOInterpolationInfoPB_CL::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.frac = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static CSGOInterpolationInfoPB_CL {
|
||||
static instance: CSGOInterpolationInfoPB_CL = CSGOInterpolationInfoPB_CL {
|
||||
frac: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CSGOInputHistoryEntryPB)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CSGOInputHistoryEntryPB {
|
||||
|
|
@ -213,7 +322,7 @@ pub struct CSGOInputHistoryEntryPB {
|
|||
// @@protoc_insertion_point(field:CSGOInputHistoryEntryPB.player_tick_fraction)
|
||||
pub player_tick_fraction: ::std::option::Option<f32>,
|
||||
// @@protoc_insertion_point(field:CSGOInputHistoryEntryPB.cl_interp)
|
||||
pub cl_interp: ::steam_vent_proto_common::protobuf::MessageField<CSGOInterpolationInfoPB>,
|
||||
pub cl_interp: ::steam_vent_proto_common::protobuf::MessageField<CSGOInterpolationInfoPB_CL>,
|
||||
// @@protoc_insertion_point(field:CSGOInputHistoryEntryPB.sv_interp0)
|
||||
pub sv_interp0: ::steam_vent_proto_common::protobuf::MessageField<CSGOInterpolationInfoPB>,
|
||||
// @@protoc_insertion_point(field:CSGOInputHistoryEntryPB.sv_interp1)
|
||||
|
|
@ -324,7 +433,7 @@ impl CSGOInputHistoryEntryPB {
|
|||
self.player_tick_fraction = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional int32 frame_number = 20;
|
||||
// optional int32 frame_number = 64;
|
||||
|
||||
pub fn frame_number(&self) -> i32 {
|
||||
self.frame_number.unwrap_or(0)
|
||||
|
|
@ -343,7 +452,7 @@ impl CSGOInputHistoryEntryPB {
|
|||
self.frame_number = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional int32 target_ent_index = 8;
|
||||
// optional int32 target_ent_index = 65;
|
||||
|
||||
pub fn target_ent_index(&self) -> i32 {
|
||||
self.target_ent_index.unwrap_or(-1i32)
|
||||
|
|
@ -400,22 +509,22 @@ impl ::steam_vent_proto_common::protobuf::Message for CSGOInputHistoryEntryPB {
|
|||
122 => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.player_interp)?;
|
||||
},
|
||||
160 => {
|
||||
512 => {
|
||||
self.frame_number = ::std::option::Option::Some(is.read_int32()?);
|
||||
},
|
||||
64 => {
|
||||
520 => {
|
||||
self.target_ent_index = ::std::option::Option::Some(is.read_int32()?);
|
||||
},
|
||||
26 => {
|
||||
530 => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.shoot_position)?;
|
||||
},
|
||||
74 => {
|
||||
538 => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.target_head_pos_check)?;
|
||||
},
|
||||
82 => {
|
||||
546 => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.target_abs_pos_check)?;
|
||||
},
|
||||
90 => {
|
||||
554 => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.target_abs_ang_check)?;
|
||||
},
|
||||
tag => {
|
||||
|
|
@ -463,26 +572,26 @@ impl ::steam_vent_proto_common::protobuf::Message for CSGOInputHistoryEntryPB {
|
|||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
}
|
||||
if let Some(v) = self.frame_number {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(20, v);
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(64, v);
|
||||
}
|
||||
if let Some(v) = self.target_ent_index {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(8, v);
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(65, v);
|
||||
}
|
||||
if let Some(v) = self.shoot_position.as_ref() {
|
||||
let len = v.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
my_size += 2 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
}
|
||||
if let Some(v) = self.target_head_pos_check.as_ref() {
|
||||
let len = v.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
my_size += 2 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
}
|
||||
if let Some(v) = self.target_abs_pos_check.as_ref() {
|
||||
let len = v.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
my_size += 2 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
}
|
||||
if let Some(v) = self.target_abs_ang_check.as_ref() {
|
||||
let len = v.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
my_size += 2 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
|
|
@ -518,22 +627,22 @@ impl ::steam_vent_proto_common::protobuf::Message for CSGOInputHistoryEntryPB {
|
|||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(15, v, os)?;
|
||||
}
|
||||
if let Some(v) = self.frame_number {
|
||||
os.write_int32(20, v)?;
|
||||
os.write_int32(64, v)?;
|
||||
}
|
||||
if let Some(v) = self.target_ent_index {
|
||||
os.write_int32(8, v)?;
|
||||
os.write_int32(65, v)?;
|
||||
}
|
||||
if let Some(v) = self.shoot_position.as_ref() {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(66, v, os)?;
|
||||
}
|
||||
if let Some(v) = self.target_head_pos_check.as_ref() {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(9, v, os)?;
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(67, v, os)?;
|
||||
}
|
||||
if let Some(v) = self.target_abs_pos_check.as_ref() {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(10, v, os)?;
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(68, v, os)?;
|
||||
}
|
||||
if let Some(v) = self.target_abs_ang_check.as_ref() {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(11, v, os)?;
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(69, v, os)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
|
|
@ -605,10 +714,14 @@ pub struct CSGOUserCmdPB {
|
|||
pub attack1_start_history_index: ::std::option::Option<i32>,
|
||||
// @@protoc_insertion_point(field:CSGOUserCmdPB.attack2_start_history_index)
|
||||
pub attack2_start_history_index: ::std::option::Option<i32>,
|
||||
// @@protoc_insertion_point(field:CSGOUserCmdPB.attack3_start_history_index)
|
||||
pub attack3_start_history_index: ::std::option::Option<i32>,
|
||||
// @@protoc_insertion_point(field:CSGOUserCmdPB.left_hand_desired)
|
||||
pub left_hand_desired: ::std::option::Option<bool>,
|
||||
// @@protoc_insertion_point(field:CSGOUserCmdPB.is_predicting_body_shot_fx)
|
||||
pub is_predicting_body_shot_fx: ::std::option::Option<bool>,
|
||||
// @@protoc_insertion_point(field:CSGOUserCmdPB.is_predicting_head_shot_fx)
|
||||
pub is_predicting_head_shot_fx: ::std::option::Option<bool>,
|
||||
// @@protoc_insertion_point(field:CSGOUserCmdPB.is_predicting_kill_ragdolls)
|
||||
pub is_predicting_kill_ragdolls: ::std::option::Option<bool>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CSGOUserCmdPB.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
|
|
@ -663,25 +776,6 @@ impl CSGOUserCmdPB {
|
|||
self.attack2_start_history_index = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional int32 attack3_start_history_index = 8;
|
||||
|
||||
pub fn attack3_start_history_index(&self) -> i32 {
|
||||
self.attack3_start_history_index.unwrap_or(-1i32)
|
||||
}
|
||||
|
||||
pub fn clear_attack3_start_history_index(&mut self) {
|
||||
self.attack3_start_history_index = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_attack3_start_history_index(&self) -> bool {
|
||||
self.attack3_start_history_index.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_attack3_start_history_index(&mut self, v: i32) {
|
||||
self.attack3_start_history_index = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional bool left_hand_desired = 9;
|
||||
|
||||
pub fn left_hand_desired(&self) -> bool {
|
||||
|
|
@ -700,6 +794,63 @@ impl CSGOUserCmdPB {
|
|||
pub fn set_left_hand_desired(&mut self, v: bool) {
|
||||
self.left_hand_desired = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional bool is_predicting_body_shot_fx = 11;
|
||||
|
||||
pub fn is_predicting_body_shot_fx(&self) -> bool {
|
||||
self.is_predicting_body_shot_fx.unwrap_or(false)
|
||||
}
|
||||
|
||||
pub fn clear_is_predicting_body_shot_fx(&mut self) {
|
||||
self.is_predicting_body_shot_fx = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_is_predicting_body_shot_fx(&self) -> bool {
|
||||
self.is_predicting_body_shot_fx.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_is_predicting_body_shot_fx(&mut self, v: bool) {
|
||||
self.is_predicting_body_shot_fx = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional bool is_predicting_head_shot_fx = 12;
|
||||
|
||||
pub fn is_predicting_head_shot_fx(&self) -> bool {
|
||||
self.is_predicting_head_shot_fx.unwrap_or(false)
|
||||
}
|
||||
|
||||
pub fn clear_is_predicting_head_shot_fx(&mut self) {
|
||||
self.is_predicting_head_shot_fx = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_is_predicting_head_shot_fx(&self) -> bool {
|
||||
self.is_predicting_head_shot_fx.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_is_predicting_head_shot_fx(&mut self, v: bool) {
|
||||
self.is_predicting_head_shot_fx = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional bool is_predicting_kill_ragdolls = 13;
|
||||
|
||||
pub fn is_predicting_kill_ragdolls(&self) -> bool {
|
||||
self.is_predicting_kill_ragdolls.unwrap_or(false)
|
||||
}
|
||||
|
||||
pub fn clear_is_predicting_kill_ragdolls(&mut self) {
|
||||
self.is_predicting_kill_ragdolls = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_is_predicting_kill_ragdolls(&self) -> bool {
|
||||
self.is_predicting_kill_ragdolls.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_is_predicting_kill_ragdolls(&mut self, v: bool) {
|
||||
self.is_predicting_kill_ragdolls = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CSGOUserCmdPB {
|
||||
|
|
@ -724,12 +875,18 @@ impl ::steam_vent_proto_common::protobuf::Message for CSGOUserCmdPB {
|
|||
56 => {
|
||||
self.attack2_start_history_index = ::std::option::Option::Some(is.read_int32()?);
|
||||
},
|
||||
64 => {
|
||||
self.attack3_start_history_index = ::std::option::Option::Some(is.read_int32()?);
|
||||
},
|
||||
72 => {
|
||||
self.left_hand_desired = ::std::option::Option::Some(is.read_bool()?);
|
||||
},
|
||||
88 => {
|
||||
self.is_predicting_body_shot_fx = ::std::option::Option::Some(is.read_bool()?);
|
||||
},
|
||||
96 => {
|
||||
self.is_predicting_head_shot_fx = ::std::option::Option::Some(is.read_bool()?);
|
||||
},
|
||||
104 => {
|
||||
self.is_predicting_kill_ragdolls = ::std::option::Option::Some(is.read_bool()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
|
|
@ -756,12 +913,18 @@ impl ::steam_vent_proto_common::protobuf::Message for CSGOUserCmdPB {
|
|||
if let Some(v) = self.attack2_start_history_index {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(7, v);
|
||||
}
|
||||
if let Some(v) = self.attack3_start_history_index {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(8, v);
|
||||
}
|
||||
if let Some(v) = self.left_hand_desired {
|
||||
my_size += 1 + 1;
|
||||
}
|
||||
if let Some(v) = self.is_predicting_body_shot_fx {
|
||||
my_size += 1 + 1;
|
||||
}
|
||||
if let Some(v) = self.is_predicting_head_shot_fx {
|
||||
my_size += 1 + 1;
|
||||
}
|
||||
if let Some(v) = self.is_predicting_kill_ragdolls {
|
||||
my_size += 1 + 1;
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
|
|
@ -780,12 +943,18 @@ impl ::steam_vent_proto_common::protobuf::Message for CSGOUserCmdPB {
|
|||
if let Some(v) = self.attack2_start_history_index {
|
||||
os.write_int32(7, v)?;
|
||||
}
|
||||
if let Some(v) = self.attack3_start_history_index {
|
||||
os.write_int32(8, v)?;
|
||||
}
|
||||
if let Some(v) = self.left_hand_desired {
|
||||
os.write_bool(9, v)?;
|
||||
}
|
||||
if let Some(v) = self.is_predicting_body_shot_fx {
|
||||
os.write_bool(11, v)?;
|
||||
}
|
||||
if let Some(v) = self.is_predicting_head_shot_fx {
|
||||
os.write_bool(12, v)?;
|
||||
}
|
||||
if let Some(v) = self.is_predicting_kill_ragdolls {
|
||||
os.write_bool(13, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
|
@ -807,8 +976,10 @@ impl ::steam_vent_proto_common::protobuf::Message for CSGOUserCmdPB {
|
|||
self.input_history.clear();
|
||||
self.attack1_start_history_index = ::std::option::Option::None;
|
||||
self.attack2_start_history_index = ::std::option::Option::None;
|
||||
self.attack3_start_history_index = ::std::option::Option::None;
|
||||
self.left_hand_desired = ::std::option::Option::None;
|
||||
self.is_predicting_body_shot_fx = ::std::option::Option::None;
|
||||
self.is_predicting_head_shot_fx = ::std::option::Option::None;
|
||||
self.is_predicting_kill_ragdolls = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
|
|
@ -818,8 +989,10 @@ impl ::steam_vent_proto_common::protobuf::Message for CSGOUserCmdPB {
|
|||
input_history: ::std::vec::Vec::new(),
|
||||
attack1_start_history_index: ::std::option::Option::None,
|
||||
attack2_start_history_index: ::std::option::Option::None,
|
||||
attack3_start_history_index: ::std::option::Option::None,
|
||||
left_hand_desired: ::std::option::Option::None,
|
||||
is_predicting_body_shot_fx: ::std::option::Option::None,
|
||||
is_predicting_head_shot_fx: ::std::option::Option::None,
|
||||
is_predicting_kill_ragdolls: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
|
|
@ -846,6 +1019,19 @@ impl ::steam_vent_proto_common::RpcMessage for CSGOInterpolationInfoPB {
|
|||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for CSGOInterpolationInfoPB_CL {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
}
|
||||
fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.write_to_writer(writer)
|
||||
}
|
||||
fn encode_size(&self) -> usize {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for CSGOInputHistoryEntryPB {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1554,7 +1554,7 @@ pub mod cgame_info {
|
|||
// @@protoc_insertion_point(field:CGameInfo.CDotaGameInfo.CHeroSelectEvent.team)
|
||||
pub team: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CGameInfo.CDotaGameInfo.CHeroSelectEvent.hero_id)
|
||||
pub hero_id: ::std::option::Option<u32>,
|
||||
pub hero_id: ::std::option::Option<i32>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CGameInfo.CDotaGameInfo.CHeroSelectEvent.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
|
|
@ -1609,9 +1609,9 @@ pub mod cgame_info {
|
|||
self.team = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 hero_id = 3;
|
||||
// optional int32 hero_id = 3;
|
||||
|
||||
pub fn hero_id(&self) -> u32 {
|
||||
pub fn hero_id(&self) -> i32 {
|
||||
self.hero_id.unwrap_or(0)
|
||||
}
|
||||
|
||||
|
|
@ -1624,7 +1624,7 @@ pub mod cgame_info {
|
|||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_hero_id(&mut self, v: u32) {
|
||||
pub fn set_hero_id(&mut self, v: i32) {
|
||||
self.hero_id = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
|
@ -1646,7 +1646,7 @@ pub mod cgame_info {
|
|||
self.team = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
24 => {
|
||||
self.hero_id = ::std::option::Option::Some(is.read_uint32()?);
|
||||
self.hero_id = ::std::option::Option::Some(is.read_int32()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
|
|
@ -1667,7 +1667,7 @@ pub mod cgame_info {
|
|||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
|
||||
}
|
||||
if let Some(v) = self.hero_id {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(3, v);
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(3, v);
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
|
|
@ -1682,7 +1682,7 @@ pub mod cgame_info {
|
|||
os.write_uint32(2, v)?;
|
||||
}
|
||||
if let Some(v) = self.hero_id {
|
||||
os.write_uint32(3, v)?;
|
||||
os.write_int32(3, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
|
|
@ -4553,6 +4553,290 @@ impl ::steam_vent_proto_common::protobuf::Message for CDemoSpawnGroups {
|
|||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CDemoRecovery)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CDemoRecovery {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:CDemoRecovery.initial_spawn_group)
|
||||
pub initial_spawn_group: ::steam_vent_proto_common::protobuf::MessageField<cdemo_recovery::DemoInitialSpawnGroupEntry>,
|
||||
// @@protoc_insertion_point(field:CDemoRecovery.spawn_group_message)
|
||||
pub spawn_group_message: ::std::option::Option<::std::vec::Vec<u8>>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CDemoRecovery.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a CDemoRecovery {
|
||||
fn default() -> &'a CDemoRecovery {
|
||||
<CDemoRecovery as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl CDemoRecovery {
|
||||
pub fn new() -> CDemoRecovery {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
// optional bytes spawn_group_message = 2;
|
||||
|
||||
pub fn spawn_group_message(&self) -> &[u8] {
|
||||
match self.spawn_group_message.as_ref() {
|
||||
Some(v) => v,
|
||||
None => &[],
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clear_spawn_group_message(&mut self) {
|
||||
self.spawn_group_message = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_spawn_group_message(&self) -> bool {
|
||||
self.spawn_group_message.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_spawn_group_message(&mut self, v: ::std::vec::Vec<u8>) {
|
||||
self.spawn_group_message = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// Mutable pointer to the field.
|
||||
// If field is not initialized, it is initialized with default value first.
|
||||
pub fn mut_spawn_group_message(&mut self) -> &mut ::std::vec::Vec<u8> {
|
||||
if self.spawn_group_message.is_none() {
|
||||
self.spawn_group_message = ::std::option::Option::Some(::std::vec::Vec::new());
|
||||
}
|
||||
self.spawn_group_message.as_mut().unwrap()
|
||||
}
|
||||
|
||||
// Take field
|
||||
pub fn take_spawn_group_message(&mut self) -> ::std::vec::Vec<u8> {
|
||||
self.spawn_group_message.take().unwrap_or_else(|| ::std::vec::Vec::new())
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CDemoRecovery {
|
||||
const NAME: &'static str = "CDemoRecovery";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
||||
match tag {
|
||||
10 => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.initial_spawn_group)?;
|
||||
},
|
||||
18 => {
|
||||
self.spawn_group_message = ::std::option::Option::Some(is.read_bytes()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
};
|
||||
}
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
// Compute sizes of nested messages
|
||||
#[allow(unused_variables)]
|
||||
fn compute_size(&self) -> u64 {
|
||||
let mut my_size = 0;
|
||||
if let Some(v) = self.initial_spawn_group.as_ref() {
|
||||
let len = v.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
}
|
||||
if let Some(v) = self.spawn_group_message.as_ref() {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::bytes_size(2, &v);
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
}
|
||||
|
||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
if let Some(v) = self.initial_spawn_group.as_ref() {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
|
||||
}
|
||||
if let Some(v) = self.spawn_group_message.as_ref() {
|
||||
os.write_bytes(2, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&self.special_fields
|
||||
}
|
||||
|
||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> CDemoRecovery {
|
||||
CDemoRecovery::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.initial_spawn_group.clear();
|
||||
self.spawn_group_message = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static CDemoRecovery {
|
||||
static instance: CDemoRecovery = CDemoRecovery {
|
||||
initial_spawn_group: ::steam_vent_proto_common::protobuf::MessageField::none(),
|
||||
spawn_group_message: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
}
|
||||
}
|
||||
|
||||
/// Nested message and enums of message `CDemoRecovery`
|
||||
pub mod cdemo_recovery {
|
||||
// @@protoc_insertion_point(message:CDemoRecovery.DemoInitialSpawnGroupEntry)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct DemoInitialSpawnGroupEntry {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:CDemoRecovery.DemoInitialSpawnGroupEntry.spawngrouphandle)
|
||||
pub spawngrouphandle: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CDemoRecovery.DemoInitialSpawnGroupEntry.was_created)
|
||||
pub was_created: ::std::option::Option<bool>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CDemoRecovery.DemoInitialSpawnGroupEntry.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a DemoInitialSpawnGroupEntry {
|
||||
fn default() -> &'a DemoInitialSpawnGroupEntry {
|
||||
<DemoInitialSpawnGroupEntry as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl DemoInitialSpawnGroupEntry {
|
||||
pub fn new() -> DemoInitialSpawnGroupEntry {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
// optional uint32 spawngrouphandle = 1;
|
||||
|
||||
pub fn spawngrouphandle(&self) -> u32 {
|
||||
self.spawngrouphandle.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_spawngrouphandle(&mut self) {
|
||||
self.spawngrouphandle = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_spawngrouphandle(&self) -> bool {
|
||||
self.spawngrouphandle.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_spawngrouphandle(&mut self, v: u32) {
|
||||
self.spawngrouphandle = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional bool was_created = 2;
|
||||
|
||||
pub fn was_created(&self) -> bool {
|
||||
self.was_created.unwrap_or(false)
|
||||
}
|
||||
|
||||
pub fn clear_was_created(&mut self) {
|
||||
self.was_created = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_was_created(&self) -> bool {
|
||||
self.was_created.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_was_created(&mut self, v: bool) {
|
||||
self.was_created = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for DemoInitialSpawnGroupEntry {
|
||||
const NAME: &'static str = "DemoInitialSpawnGroupEntry";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
||||
match tag {
|
||||
8 => {
|
||||
self.spawngrouphandle = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
16 => {
|
||||
self.was_created = ::std::option::Option::Some(is.read_bool()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
};
|
||||
}
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
// Compute sizes of nested messages
|
||||
#[allow(unused_variables)]
|
||||
fn compute_size(&self) -> u64 {
|
||||
let mut my_size = 0;
|
||||
if let Some(v) = self.spawngrouphandle {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
|
||||
}
|
||||
if let Some(v) = self.was_created {
|
||||
my_size += 1 + 1;
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
}
|
||||
|
||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
if let Some(v) = self.spawngrouphandle {
|
||||
os.write_uint32(1, v)?;
|
||||
}
|
||||
if let Some(v) = self.was_created {
|
||||
os.write_bool(2, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&self.special_fields
|
||||
}
|
||||
|
||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> DemoInitialSpawnGroupEntry {
|
||||
DemoInitialSpawnGroupEntry::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.spawngrouphandle = ::std::option::Option::None;
|
||||
self.was_created = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static DemoInitialSpawnGroupEntry {
|
||||
static instance: DemoInitialSpawnGroupEntry = DemoInitialSpawnGroupEntry {
|
||||
spawngrouphandle: ::std::option::Option::None,
|
||||
was_created: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
||||
// @@protoc_insertion_point(enum:EDemoCommands)
|
||||
pub enum EDemoCommands {
|
||||
|
|
@ -4594,8 +4878,10 @@ pub enum EDemoCommands {
|
|||
DEM_AnimationData = 16,
|
||||
// @@protoc_insertion_point(enum_value:EDemoCommands.DEM_AnimationHeader)
|
||||
DEM_AnimationHeader = 17,
|
||||
// @@protoc_insertion_point(enum_value:EDemoCommands.DEM_Recovery)
|
||||
DEM_Recovery = 18,
|
||||
// @@protoc_insertion_point(enum_value:EDemoCommands.DEM_Max)
|
||||
DEM_Max = 18,
|
||||
DEM_Max = 19,
|
||||
// @@protoc_insertion_point(enum_value:EDemoCommands.DEM_IsCompressed)
|
||||
DEM_IsCompressed = 64,
|
||||
}
|
||||
|
|
@ -4628,7 +4914,8 @@ impl ::steam_vent_proto_common::protobuf::Enum for EDemoCommands {
|
|||
15 => ::std::option::Option::Some(EDemoCommands::DEM_SpawnGroups),
|
||||
16 => ::std::option::Option::Some(EDemoCommands::DEM_AnimationData),
|
||||
17 => ::std::option::Option::Some(EDemoCommands::DEM_AnimationHeader),
|
||||
18 => ::std::option::Option::Some(EDemoCommands::DEM_Max),
|
||||
18 => ::std::option::Option::Some(EDemoCommands::DEM_Recovery),
|
||||
19 => ::std::option::Option::Some(EDemoCommands::DEM_Max),
|
||||
64 => ::std::option::Option::Some(EDemoCommands::DEM_IsCompressed),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
|
|
@ -4655,6 +4942,7 @@ impl ::steam_vent_proto_common::protobuf::Enum for EDemoCommands {
|
|||
"DEM_SpawnGroups" => ::std::option::Option::Some(EDemoCommands::DEM_SpawnGroups),
|
||||
"DEM_AnimationData" => ::std::option::Option::Some(EDemoCommands::DEM_AnimationData),
|
||||
"DEM_AnimationHeader" => ::std::option::Option::Some(EDemoCommands::DEM_AnimationHeader),
|
||||
"DEM_Recovery" => ::std::option::Option::Some(EDemoCommands::DEM_Recovery),
|
||||
"DEM_Max" => ::std::option::Option::Some(EDemoCommands::DEM_Max),
|
||||
"DEM_IsCompressed" => ::std::option::Option::Some(EDemoCommands::DEM_IsCompressed),
|
||||
_ => ::std::option::Option::None
|
||||
|
|
@ -4681,6 +4969,7 @@ impl ::steam_vent_proto_common::protobuf::Enum for EDemoCommands {
|
|||
EDemoCommands::DEM_SpawnGroups,
|
||||
EDemoCommands::DEM_AnimationData,
|
||||
EDemoCommands::DEM_AnimationHeader,
|
||||
EDemoCommands::DEM_Recovery,
|
||||
EDemoCommands::DEM_Max,
|
||||
EDemoCommands::DEM_IsCompressed,
|
||||
];
|
||||
|
|
@ -4931,3 +5220,16 @@ impl ::steam_vent_proto_common::RpcMessage for CDemoSpawnGroups {
|
|||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for CDemoRecovery {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
}
|
||||
fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.write_to_writer(writer)
|
||||
}
|
||||
fn encode_size(&self) -> usize {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -743,6 +743,8 @@ pub struct CMsgGCItemCustomizationNotification {
|
|||
pub item_id: ::std::vec::Vec<u64>,
|
||||
// @@protoc_insertion_point(field:CMsgGCItemCustomizationNotification.request)
|
||||
pub request: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgGCItemCustomizationNotification.extra_data)
|
||||
pub extra_data: ::std::vec::Vec<u64>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CMsgGCItemCustomizationNotification.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
|
|
@ -798,6 +800,12 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgGCItemCustomizationNot
|
|||
16 => {
|
||||
self.request = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
26 => {
|
||||
is.read_repeated_packed_uint64_into(&mut self.extra_data)?;
|
||||
},
|
||||
24 => {
|
||||
self.extra_data.push(is.read_uint64()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
|
|
@ -816,6 +824,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgGCItemCustomizationNot
|
|||
if let Some(v) = self.request {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
|
||||
}
|
||||
for value in &self.extra_data {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint64_size(3, *value);
|
||||
};
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
|
|
@ -828,6 +839,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgGCItemCustomizationNot
|
|||
if let Some(v) = self.request {
|
||||
os.write_uint32(2, v)?;
|
||||
}
|
||||
for v in &self.extra_data {
|
||||
os.write_uint64(3, *v)?;
|
||||
};
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
|
@ -847,6 +861,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgGCItemCustomizationNot
|
|||
fn clear(&mut self) {
|
||||
self.item_id.clear();
|
||||
self.request = ::std::option::Option::None;
|
||||
self.extra_data.clear();
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
|
|
@ -854,6 +869,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgGCItemCustomizationNot
|
|||
static instance: CMsgGCItemCustomizationNotification = CMsgGCItemCustomizationNotification {
|
||||
item_id: ::std::vec::Vec::new(),
|
||||
request: ::std::option::Option::None,
|
||||
extra_data: ::std::vec::Vec::new(),
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
|
|
@ -877,8 +893,8 @@ pub enum EGCItemMsg {
|
|||
k_EMsgGCVerifyCacheSubscription = 1005,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCNameItem)
|
||||
k_EMsgGCNameItem = 1006,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCUnlockCrate)
|
||||
k_EMsgGCUnlockCrate = 1007,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCUnlockCrate_DEPRECATED)
|
||||
k_EMsgGCUnlockCrate_DEPRECATED = 1007,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCUnlockCrateResponse)
|
||||
k_EMsgGCUnlockCrateResponse = 1008,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCPaintItem)
|
||||
|
|
@ -971,8 +987,6 @@ pub enum EGCItemMsg {
|
|||
k_EMsgGCSaxxyBroadcast = 1057,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCBackpackSortFinished)
|
||||
k_EMsgGCBackpackSortFinished = 1058,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCAdjustItemEquippedState)
|
||||
k_EMsgGCAdjustItemEquippedState = 1059,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCCollectItem)
|
||||
k_EMsgGCCollectItem = 1061,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCItemAcknowledged__DEPRECATED)
|
||||
|
|
@ -1147,20 +1161,18 @@ pub enum EGCItemMsg {
|
|||
k_EMsgGCRequestPassportItemGrant = 2527,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCClientVersionUpdated)
|
||||
k_EMsgGCClientVersionUpdated = 2528,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCAdjustItemEquippedStateMulti)
|
||||
k_EMsgGCAdjustItemEquippedStateMulti = 2529,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCRecurringSubscriptionStatus)
|
||||
k_EMsgGCRecurringSubscriptionStatus = 2530,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCAdjustEquipSlotsManual)
|
||||
k_EMsgGCAdjustEquipSlotsManual = 2531,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCAdjustEquipSlotsShuffle)
|
||||
k_EMsgGCAdjustEquipSlotsShuffle = 2532,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCNameItemAndEquip)
|
||||
k_EMsgGCNameItemAndEquip = 2533,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCOpenCrate)
|
||||
k_EMsgGCOpenCrate = 2534,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCAcknowledgeRentalExpiration)
|
||||
k_EMsgGCAcknowledgeRentalExpiration = 2535,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemMsg.k_EMsgGCVolatileItemLoadContents)
|
||||
k_EMsgGCVolatileItemLoadContents = 2536,
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Enum for EGCItemMsg {
|
||||
|
|
@ -1179,7 +1191,7 @@ impl ::steam_vent_proto_common::protobuf::Enum for EGCItemMsg {
|
|||
1004 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCDelete),
|
||||
1005 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCVerifyCacheSubscription),
|
||||
1006 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCNameItem),
|
||||
1007 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCUnlockCrate),
|
||||
1007 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCUnlockCrate_DEPRECATED),
|
||||
1008 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCUnlockCrateResponse),
|
||||
1009 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCPaintItem),
|
||||
1010 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCPaintItemResponse),
|
||||
|
|
@ -1226,7 +1238,6 @@ impl ::steam_vent_proto_common::protobuf::Enum for EGCItemMsg {
|
|||
1056 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCRemoveUniqueCraftIndexResponse),
|
||||
1057 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCSaxxyBroadcast),
|
||||
1058 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCBackpackSortFinished),
|
||||
1059 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCAdjustItemEquippedState),
|
||||
1061 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCCollectItem),
|
||||
1062 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCItemAcknowledged__DEPRECATED),
|
||||
1065 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGC_ReportAbuse),
|
||||
|
|
@ -1314,13 +1325,12 @@ impl ::steam_vent_proto_common::protobuf::Enum for EGCItemMsg {
|
|||
2526 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCRequestAnnouncementsResponse),
|
||||
2527 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCRequestPassportItemGrant),
|
||||
2528 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCClientVersionUpdated),
|
||||
2529 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCAdjustItemEquippedStateMulti),
|
||||
2530 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCRecurringSubscriptionStatus),
|
||||
2531 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCAdjustEquipSlotsManual),
|
||||
2532 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCAdjustEquipSlotsShuffle),
|
||||
2533 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCNameItemAndEquip),
|
||||
2534 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCOpenCrate),
|
||||
2535 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCAcknowledgeRentalExpiration),
|
||||
2536 => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCVolatileItemLoadContents),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
|
@ -1334,7 +1344,7 @@ impl ::steam_vent_proto_common::protobuf::Enum for EGCItemMsg {
|
|||
"k_EMsgGCDelete" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCDelete),
|
||||
"k_EMsgGCVerifyCacheSubscription" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCVerifyCacheSubscription),
|
||||
"k_EMsgGCNameItem" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCNameItem),
|
||||
"k_EMsgGCUnlockCrate" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCUnlockCrate),
|
||||
"k_EMsgGCUnlockCrate_DEPRECATED" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCUnlockCrate_DEPRECATED),
|
||||
"k_EMsgGCUnlockCrateResponse" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCUnlockCrateResponse),
|
||||
"k_EMsgGCPaintItem" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCPaintItem),
|
||||
"k_EMsgGCPaintItemResponse" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCPaintItemResponse),
|
||||
|
|
@ -1381,7 +1391,6 @@ impl ::steam_vent_proto_common::protobuf::Enum for EGCItemMsg {
|
|||
"k_EMsgGCRemoveUniqueCraftIndexResponse" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCRemoveUniqueCraftIndexResponse),
|
||||
"k_EMsgGCSaxxyBroadcast" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCSaxxyBroadcast),
|
||||
"k_EMsgGCBackpackSortFinished" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCBackpackSortFinished),
|
||||
"k_EMsgGCAdjustItemEquippedState" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCAdjustItemEquippedState),
|
||||
"k_EMsgGCCollectItem" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCCollectItem),
|
||||
"k_EMsgGCItemAcknowledged__DEPRECATED" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCItemAcknowledged__DEPRECATED),
|
||||
"k_EMsgGC_ReportAbuse" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGC_ReportAbuse),
|
||||
|
|
@ -1469,13 +1478,12 @@ impl ::steam_vent_proto_common::protobuf::Enum for EGCItemMsg {
|
|||
"k_EMsgGCRequestAnnouncementsResponse" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCRequestAnnouncementsResponse),
|
||||
"k_EMsgGCRequestPassportItemGrant" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCRequestPassportItemGrant),
|
||||
"k_EMsgGCClientVersionUpdated" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCClientVersionUpdated),
|
||||
"k_EMsgGCAdjustItemEquippedStateMulti" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCAdjustItemEquippedStateMulti),
|
||||
"k_EMsgGCRecurringSubscriptionStatus" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCRecurringSubscriptionStatus),
|
||||
"k_EMsgGCAdjustEquipSlotsManual" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCAdjustEquipSlotsManual),
|
||||
"k_EMsgGCAdjustEquipSlotsShuffle" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCAdjustEquipSlotsShuffle),
|
||||
"k_EMsgGCNameItemAndEquip" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCNameItemAndEquip),
|
||||
"k_EMsgGCOpenCrate" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCOpenCrate),
|
||||
"k_EMsgGCAcknowledgeRentalExpiration" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCAcknowledgeRentalExpiration),
|
||||
"k_EMsgGCVolatileItemLoadContents" => ::std::option::Option::Some(EGCItemMsg::k_EMsgGCVolatileItemLoadContents),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
|
@ -1488,7 +1496,7 @@ impl ::steam_vent_proto_common::protobuf::Enum for EGCItemMsg {
|
|||
EGCItemMsg::k_EMsgGCDelete,
|
||||
EGCItemMsg::k_EMsgGCVerifyCacheSubscription,
|
||||
EGCItemMsg::k_EMsgGCNameItem,
|
||||
EGCItemMsg::k_EMsgGCUnlockCrate,
|
||||
EGCItemMsg::k_EMsgGCUnlockCrate_DEPRECATED,
|
||||
EGCItemMsg::k_EMsgGCUnlockCrateResponse,
|
||||
EGCItemMsg::k_EMsgGCPaintItem,
|
||||
EGCItemMsg::k_EMsgGCPaintItemResponse,
|
||||
|
|
@ -1535,7 +1543,6 @@ impl ::steam_vent_proto_common::protobuf::Enum for EGCItemMsg {
|
|||
EGCItemMsg::k_EMsgGCRemoveUniqueCraftIndexResponse,
|
||||
EGCItemMsg::k_EMsgGCSaxxyBroadcast,
|
||||
EGCItemMsg::k_EMsgGCBackpackSortFinished,
|
||||
EGCItemMsg::k_EMsgGCAdjustItemEquippedState,
|
||||
EGCItemMsg::k_EMsgGCCollectItem,
|
||||
EGCItemMsg::k_EMsgGCItemAcknowledged__DEPRECATED,
|
||||
EGCItemMsg::k_EMsgGC_ReportAbuse,
|
||||
|
|
@ -1623,13 +1630,12 @@ impl ::steam_vent_proto_common::protobuf::Enum for EGCItemMsg {
|
|||
EGCItemMsg::k_EMsgGCRequestAnnouncementsResponse,
|
||||
EGCItemMsg::k_EMsgGCRequestPassportItemGrant,
|
||||
EGCItemMsg::k_EMsgGCClientVersionUpdated,
|
||||
EGCItemMsg::k_EMsgGCAdjustItemEquippedStateMulti,
|
||||
EGCItemMsg::k_EMsgGCRecurringSubscriptionStatus,
|
||||
EGCItemMsg::k_EMsgGCAdjustEquipSlotsManual,
|
||||
EGCItemMsg::k_EMsgGCAdjustEquipSlotsShuffle,
|
||||
EGCItemMsg::k_EMsgGCNameItemAndEquip,
|
||||
EGCItemMsg::k_EMsgGCOpenCrate,
|
||||
EGCItemMsg::k_EMsgGCAcknowledgeRentalExpiration,
|
||||
EGCItemMsg::k_EMsgGCVolatileItemLoadContents,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -1831,6 +1837,10 @@ pub enum EGCItemCustomizationNotification {
|
|||
k_EGCItemCustomizationNotification_RemovePatch = 1089,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemCustomizationNotification.k_EGCItemCustomizationNotification_ApplyPatch)
|
||||
k_EGCItemCustomizationNotification_ApplyPatch = 1090,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemCustomizationNotification.k_EGCItemCustomizationNotification_ApplyKeychain)
|
||||
k_EGCItemCustomizationNotification_ApplyKeychain = 1091,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemCustomizationNotification.k_EGCItemCustomizationNotification_RemoveKeychain)
|
||||
k_EGCItemCustomizationNotification_RemoveKeychain = 1092,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemCustomizationNotification.k_EGCItemCustomizationNotification_ActivateFanToken)
|
||||
k_EGCItemCustomizationNotification_ActivateFanToken = 9178,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemCustomizationNotification.k_EGCItemCustomizationNotification_ActivateOperationCoin)
|
||||
|
|
@ -1843,6 +1853,10 @@ pub enum EGCItemCustomizationNotification {
|
|||
k_EGCItemCustomizationNotification_ClientRedeemMissionReward = 9209,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemCustomizationNotification.k_EGCItemCustomizationNotification_ClientRedeemFreeReward)
|
||||
k_EGCItemCustomizationNotification_ClientRedeemFreeReward = 9219,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemCustomizationNotification.k_EGCItemCustomizationNotification_XpShopUseTicket)
|
||||
k_EGCItemCustomizationNotification_XpShopUseTicket = 9221,
|
||||
// @@protoc_insertion_point(enum_value:EGCItemCustomizationNotification.k_EGCItemCustomizationNotification_XpShopAckTracks)
|
||||
k_EGCItemCustomizationNotification_XpShopAckTracks = 9222,
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Enum for EGCItemCustomizationNotification {
|
||||
|
|
@ -1870,12 +1884,16 @@ impl ::steam_vent_proto_common::protobuf::Enum for EGCItemCustomizationNotificat
|
|||
1088 => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_StatTrakSwap),
|
||||
1089 => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_RemovePatch),
|
||||
1090 => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ApplyPatch),
|
||||
1091 => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ApplyKeychain),
|
||||
1092 => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_RemoveKeychain),
|
||||
9178 => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ActivateFanToken),
|
||||
9179 => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ActivateOperationCoin),
|
||||
9185 => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_GraffitiUnseal),
|
||||
9204 => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_GenerateSouvenir),
|
||||
9209 => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ClientRedeemMissionReward),
|
||||
9219 => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ClientRedeemFreeReward),
|
||||
9221 => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_XpShopUseTicket),
|
||||
9222 => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_XpShopAckTracks),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
|
@ -1898,12 +1916,16 @@ impl ::steam_vent_proto_common::protobuf::Enum for EGCItemCustomizationNotificat
|
|||
"k_EGCItemCustomizationNotification_StatTrakSwap" => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_StatTrakSwap),
|
||||
"k_EGCItemCustomizationNotification_RemovePatch" => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_RemovePatch),
|
||||
"k_EGCItemCustomizationNotification_ApplyPatch" => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ApplyPatch),
|
||||
"k_EGCItemCustomizationNotification_ApplyKeychain" => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ApplyKeychain),
|
||||
"k_EGCItemCustomizationNotification_RemoveKeychain" => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_RemoveKeychain),
|
||||
"k_EGCItemCustomizationNotification_ActivateFanToken" => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ActivateFanToken),
|
||||
"k_EGCItemCustomizationNotification_ActivateOperationCoin" => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ActivateOperationCoin),
|
||||
"k_EGCItemCustomizationNotification_GraffitiUnseal" => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_GraffitiUnseal),
|
||||
"k_EGCItemCustomizationNotification_GenerateSouvenir" => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_GenerateSouvenir),
|
||||
"k_EGCItemCustomizationNotification_ClientRedeemMissionReward" => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ClientRedeemMissionReward),
|
||||
"k_EGCItemCustomizationNotification_ClientRedeemFreeReward" => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ClientRedeemFreeReward),
|
||||
"k_EGCItemCustomizationNotification_XpShopUseTicket" => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_XpShopUseTicket),
|
||||
"k_EGCItemCustomizationNotification_XpShopAckTracks" => ::std::option::Option::Some(EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_XpShopAckTracks),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
|
@ -1925,12 +1947,16 @@ impl ::steam_vent_proto_common::protobuf::Enum for EGCItemCustomizationNotificat
|
|||
EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_StatTrakSwap,
|
||||
EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_RemovePatch,
|
||||
EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ApplyPatch,
|
||||
EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ApplyKeychain,
|
||||
EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_RemoveKeychain,
|
||||
EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ActivateFanToken,
|
||||
EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ActivateOperationCoin,
|
||||
EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_GraffitiUnseal,
|
||||
EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_GenerateSouvenir,
|
||||
EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ClientRedeemMissionReward,
|
||||
EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_ClientRedeemFreeReward,
|
||||
EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_XpShopUseTicket,
|
||||
EGCItemCustomizationNotification::k_EGCItemCustomizationNotification_XpShopAckTracks,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -193,28 +193,26 @@ pub struct CMsgPlaceDecalEvent {
|
|||
pub normal: ::steam_vent_proto_common::protobuf::MessageField<super::networkbasetypes::CMsgVector>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.saxis)
|
||||
pub saxis: ::steam_vent_proto_common::protobuf::MessageField<super::networkbasetypes::CMsgVector>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.decalmaterialindex)
|
||||
pub decalmaterialindex: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.boneindex)
|
||||
pub boneindex: ::std::option::Option<i32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.triangleindex)
|
||||
pub triangleindex: ::std::option::Option<i32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.flags)
|
||||
pub flags: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.color)
|
||||
pub color: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.width)
|
||||
pub width: ::std::option::Option<f32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.height)
|
||||
pub height: ::std::option::Option<f32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.depth)
|
||||
pub depth: ::std::option::Option<f32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.entityhandleindex)
|
||||
pub entityhandleindex: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.skeletoninstancehash)
|
||||
pub skeletoninstancehash: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.boneindex)
|
||||
pub boneindex: ::std::option::Option<i32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.translucenthit)
|
||||
pub translucenthit: ::std::option::Option<bool>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.is_adjacent)
|
||||
pub is_adjacent: ::std::option::Option<bool>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.random_seed)
|
||||
pub random_seed: ::std::option::Option<i32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.decal_group_name)
|
||||
pub decal_group_name: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.size_override)
|
||||
pub size_override: ::std::option::Option<f32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.entityhandle)
|
||||
pub entityhandle: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.material_id)
|
||||
pub material_id: ::std::option::Option<u64>,
|
||||
// @@protoc_insertion_point(field:CMsgPlaceDecalEvent.sequence_name)
|
||||
pub sequence_name: ::std::option::Option<u32>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CMsgPlaceDecalEvent.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
|
|
@ -231,23 +229,42 @@ impl CMsgPlaceDecalEvent {
|
|||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
// optional uint32 decalmaterialindex = 4;
|
||||
// optional int32 boneindex = 4;
|
||||
|
||||
pub fn decalmaterialindex(&self) -> u32 {
|
||||
self.decalmaterialindex.unwrap_or(0)
|
||||
pub fn boneindex(&self) -> i32 {
|
||||
self.boneindex.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_decalmaterialindex(&mut self) {
|
||||
self.decalmaterialindex = ::std::option::Option::None;
|
||||
pub fn clear_boneindex(&mut self) {
|
||||
self.boneindex = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_decalmaterialindex(&self) -> bool {
|
||||
self.decalmaterialindex.is_some()
|
||||
pub fn has_boneindex(&self) -> bool {
|
||||
self.boneindex.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_decalmaterialindex(&mut self, v: u32) {
|
||||
self.decalmaterialindex = ::std::option::Option::Some(v);
|
||||
pub fn set_boneindex(&mut self, v: i32) {
|
||||
self.boneindex = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional int32 triangleindex = 13;
|
||||
|
||||
pub fn triangleindex(&self) -> i32 {
|
||||
self.triangleindex.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_triangleindex(&mut self) {
|
||||
self.triangleindex = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_triangleindex(&self) -> bool {
|
||||
self.triangleindex.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_triangleindex(&mut self, v: i32) {
|
||||
self.triangleindex = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 flags = 5;
|
||||
|
|
@ -288,156 +305,118 @@ impl CMsgPlaceDecalEvent {
|
|||
self.color = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional float width = 7;
|
||||
// optional int32 random_seed = 7;
|
||||
|
||||
pub fn width(&self) -> f32 {
|
||||
self.width.unwrap_or(0.)
|
||||
pub fn random_seed(&self) -> i32 {
|
||||
self.random_seed.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_width(&mut self) {
|
||||
self.width = ::std::option::Option::None;
|
||||
pub fn clear_random_seed(&mut self) {
|
||||
self.random_seed = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_width(&self) -> bool {
|
||||
self.width.is_some()
|
||||
pub fn has_random_seed(&self) -> bool {
|
||||
self.random_seed.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_width(&mut self, v: f32) {
|
||||
self.width = ::std::option::Option::Some(v);
|
||||
pub fn set_random_seed(&mut self, v: i32) {
|
||||
self.random_seed = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional float height = 8;
|
||||
// optional uint32 decal_group_name = 8;
|
||||
|
||||
pub fn height(&self) -> f32 {
|
||||
self.height.unwrap_or(0.)
|
||||
pub fn decal_group_name(&self) -> u32 {
|
||||
self.decal_group_name.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_height(&mut self) {
|
||||
self.height = ::std::option::Option::None;
|
||||
pub fn clear_decal_group_name(&mut self) {
|
||||
self.decal_group_name = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_height(&self) -> bool {
|
||||
self.height.is_some()
|
||||
pub fn has_decal_group_name(&self) -> bool {
|
||||
self.decal_group_name.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_height(&mut self, v: f32) {
|
||||
self.height = ::std::option::Option::Some(v);
|
||||
pub fn set_decal_group_name(&mut self, v: u32) {
|
||||
self.decal_group_name = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional float depth = 9;
|
||||
// optional float size_override = 9;
|
||||
|
||||
pub fn depth(&self) -> f32 {
|
||||
self.depth.unwrap_or(0.)
|
||||
pub fn size_override(&self) -> f32 {
|
||||
self.size_override.unwrap_or(0.)
|
||||
}
|
||||
|
||||
pub fn clear_depth(&mut self) {
|
||||
self.depth = ::std::option::Option::None;
|
||||
pub fn clear_size_override(&mut self) {
|
||||
self.size_override = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_depth(&self) -> bool {
|
||||
self.depth.is_some()
|
||||
pub fn has_size_override(&self) -> bool {
|
||||
self.size_override.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_depth(&mut self, v: f32) {
|
||||
self.depth = ::std::option::Option::Some(v);
|
||||
pub fn set_size_override(&mut self, v: f32) {
|
||||
self.size_override = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 entityhandleindex = 10;
|
||||
// optional uint32 entityhandle = 10;
|
||||
|
||||
pub fn entityhandleindex(&self) -> u32 {
|
||||
self.entityhandleindex.unwrap_or(0)
|
||||
pub fn entityhandle(&self) -> u32 {
|
||||
self.entityhandle.unwrap_or(16777215u32)
|
||||
}
|
||||
|
||||
pub fn clear_entityhandleindex(&mut self) {
|
||||
self.entityhandleindex = ::std::option::Option::None;
|
||||
pub fn clear_entityhandle(&mut self) {
|
||||
self.entityhandle = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_entityhandleindex(&self) -> bool {
|
||||
self.entityhandleindex.is_some()
|
||||
pub fn has_entityhandle(&self) -> bool {
|
||||
self.entityhandle.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_entityhandleindex(&mut self, v: u32) {
|
||||
self.entityhandleindex = ::std::option::Option::Some(v);
|
||||
pub fn set_entityhandle(&mut self, v: u32) {
|
||||
self.entityhandle = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional fixed32 skeletoninstancehash = 11;
|
||||
// optional uint64 material_id = 11;
|
||||
|
||||
pub fn skeletoninstancehash(&self) -> u32 {
|
||||
self.skeletoninstancehash.unwrap_or(0)
|
||||
pub fn material_id(&self) -> u64 {
|
||||
self.material_id.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_skeletoninstancehash(&mut self) {
|
||||
self.skeletoninstancehash = ::std::option::Option::None;
|
||||
pub fn clear_material_id(&mut self) {
|
||||
self.material_id = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_skeletoninstancehash(&self) -> bool {
|
||||
self.skeletoninstancehash.is_some()
|
||||
pub fn has_material_id(&self) -> bool {
|
||||
self.material_id.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_skeletoninstancehash(&mut self, v: u32) {
|
||||
self.skeletoninstancehash = ::std::option::Option::Some(v);
|
||||
pub fn set_material_id(&mut self, v: u64) {
|
||||
self.material_id = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional int32 boneindex = 12;
|
||||
// optional uint32 sequence_name = 12;
|
||||
|
||||
pub fn boneindex(&self) -> i32 {
|
||||
self.boneindex.unwrap_or(0)
|
||||
pub fn sequence_name(&self) -> u32 {
|
||||
self.sequence_name.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_boneindex(&mut self) {
|
||||
self.boneindex = ::std::option::Option::None;
|
||||
pub fn clear_sequence_name(&mut self) {
|
||||
self.sequence_name = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_boneindex(&self) -> bool {
|
||||
self.boneindex.is_some()
|
||||
pub fn has_sequence_name(&self) -> bool {
|
||||
self.sequence_name.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_boneindex(&mut self, v: i32) {
|
||||
self.boneindex = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional bool translucenthit = 13;
|
||||
|
||||
pub fn translucenthit(&self) -> bool {
|
||||
self.translucenthit.unwrap_or(false)
|
||||
}
|
||||
|
||||
pub fn clear_translucenthit(&mut self) {
|
||||
self.translucenthit = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_translucenthit(&self) -> bool {
|
||||
self.translucenthit.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_translucenthit(&mut self, v: bool) {
|
||||
self.translucenthit = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional bool is_adjacent = 14;
|
||||
|
||||
pub fn is_adjacent(&self) -> bool {
|
||||
self.is_adjacent.unwrap_or(false)
|
||||
}
|
||||
|
||||
pub fn clear_is_adjacent(&mut self) {
|
||||
self.is_adjacent = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_is_adjacent(&self) -> bool {
|
||||
self.is_adjacent.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_is_adjacent(&mut self, v: bool) {
|
||||
self.is_adjacent = ::std::option::Option::Some(v);
|
||||
pub fn set_sequence_name(&mut self, v: u32) {
|
||||
self.sequence_name = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -461,7 +440,10 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgPlaceDecalEvent {
|
|||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.saxis)?;
|
||||
},
|
||||
32 => {
|
||||
self.decalmaterialindex = ::std::option::Option::Some(is.read_uint32()?);
|
||||
self.boneindex = ::std::option::Option::Some(is.read_int32()?);
|
||||
},
|
||||
104 => {
|
||||
self.triangleindex = ::std::option::Option::Some(is.read_int32()?);
|
||||
},
|
||||
40 => {
|
||||
self.flags = ::std::option::Option::Some(is.read_uint32()?);
|
||||
|
|
@ -469,29 +451,23 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgPlaceDecalEvent {
|
|||
53 => {
|
||||
self.color = ::std::option::Option::Some(is.read_fixed32()?);
|
||||
},
|
||||
61 => {
|
||||
self.width = ::std::option::Option::Some(is.read_float()?);
|
||||
56 => {
|
||||
self.random_seed = ::std::option::Option::Some(is.read_int32()?);
|
||||
},
|
||||
69 => {
|
||||
self.height = ::std::option::Option::Some(is.read_float()?);
|
||||
64 => {
|
||||
self.decal_group_name = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
77 => {
|
||||
self.depth = ::std::option::Option::Some(is.read_float()?);
|
||||
self.size_override = ::std::option::Option::Some(is.read_float()?);
|
||||
},
|
||||
80 => {
|
||||
self.entityhandleindex = ::std::option::Option::Some(is.read_uint32()?);
|
||||
self.entityhandle = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
93 => {
|
||||
self.skeletoninstancehash = ::std::option::Option::Some(is.read_fixed32()?);
|
||||
88 => {
|
||||
self.material_id = ::std::option::Option::Some(is.read_uint64()?);
|
||||
},
|
||||
96 => {
|
||||
self.boneindex = ::std::option::Option::Some(is.read_int32()?);
|
||||
},
|
||||
104 => {
|
||||
self.translucenthit = ::std::option::Option::Some(is.read_bool()?);
|
||||
},
|
||||
112 => {
|
||||
self.is_adjacent = ::std::option::Option::Some(is.read_bool()?);
|
||||
self.sequence_name = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
|
|
@ -517,8 +493,11 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgPlaceDecalEvent {
|
|||
let len = v.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
}
|
||||
if let Some(v) = self.decalmaterialindex {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(4, v);
|
||||
if let Some(v) = self.boneindex {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(4, v);
|
||||
}
|
||||
if let Some(v) = self.triangleindex {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(13, v);
|
||||
}
|
||||
if let Some(v) = self.flags {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(5, v);
|
||||
|
|
@ -526,29 +505,23 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgPlaceDecalEvent {
|
|||
if let Some(v) = self.color {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
if let Some(v) = self.width {
|
||||
if let Some(v) = self.random_seed {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(7, v);
|
||||
}
|
||||
if let Some(v) = self.decal_group_name {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(8, v);
|
||||
}
|
||||
if let Some(v) = self.size_override {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
if let Some(v) = self.height {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
if let Some(v) = self.depth {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
if let Some(v) = self.entityhandleindex {
|
||||
if let Some(v) = self.entityhandle {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(10, v);
|
||||
}
|
||||
if let Some(v) = self.skeletoninstancehash {
|
||||
my_size += 1 + 4;
|
||||
if let Some(v) = self.material_id {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint64_size(11, v);
|
||||
}
|
||||
if let Some(v) = self.boneindex {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(12, v);
|
||||
}
|
||||
if let Some(v) = self.translucenthit {
|
||||
my_size += 1 + 1;
|
||||
}
|
||||
if let Some(v) = self.is_adjacent {
|
||||
my_size += 1 + 1;
|
||||
if let Some(v) = self.sequence_name {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(12, v);
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
|
|
@ -565,8 +538,11 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgPlaceDecalEvent {
|
|||
if let Some(v) = self.saxis.as_ref() {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
|
||||
}
|
||||
if let Some(v) = self.decalmaterialindex {
|
||||
os.write_uint32(4, v)?;
|
||||
if let Some(v) = self.boneindex {
|
||||
os.write_int32(4, v)?;
|
||||
}
|
||||
if let Some(v) = self.triangleindex {
|
||||
os.write_int32(13, v)?;
|
||||
}
|
||||
if let Some(v) = self.flags {
|
||||
os.write_uint32(5, v)?;
|
||||
|
|
@ -574,29 +550,23 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgPlaceDecalEvent {
|
|||
if let Some(v) = self.color {
|
||||
os.write_fixed32(6, v)?;
|
||||
}
|
||||
if let Some(v) = self.width {
|
||||
os.write_float(7, v)?;
|
||||
if let Some(v) = self.random_seed {
|
||||
os.write_int32(7, v)?;
|
||||
}
|
||||
if let Some(v) = self.height {
|
||||
os.write_float(8, v)?;
|
||||
if let Some(v) = self.decal_group_name {
|
||||
os.write_uint32(8, v)?;
|
||||
}
|
||||
if let Some(v) = self.depth {
|
||||
if let Some(v) = self.size_override {
|
||||
os.write_float(9, v)?;
|
||||
}
|
||||
if let Some(v) = self.entityhandleindex {
|
||||
if let Some(v) = self.entityhandle {
|
||||
os.write_uint32(10, v)?;
|
||||
}
|
||||
if let Some(v) = self.skeletoninstancehash {
|
||||
os.write_fixed32(11, v)?;
|
||||
if let Some(v) = self.material_id {
|
||||
os.write_uint64(11, v)?;
|
||||
}
|
||||
if let Some(v) = self.boneindex {
|
||||
os.write_int32(12, v)?;
|
||||
}
|
||||
if let Some(v) = self.translucenthit {
|
||||
os.write_bool(13, v)?;
|
||||
}
|
||||
if let Some(v) = self.is_adjacent {
|
||||
os.write_bool(14, v)?;
|
||||
if let Some(v) = self.sequence_name {
|
||||
os.write_uint32(12, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
|
|
@ -618,17 +588,16 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgPlaceDecalEvent {
|
|||
self.position.clear();
|
||||
self.normal.clear();
|
||||
self.saxis.clear();
|
||||
self.decalmaterialindex = ::std::option::Option::None;
|
||||
self.boneindex = ::std::option::Option::None;
|
||||
self.triangleindex = ::std::option::Option::None;
|
||||
self.flags = ::std::option::Option::None;
|
||||
self.color = ::std::option::Option::None;
|
||||
self.width = ::std::option::Option::None;
|
||||
self.height = ::std::option::Option::None;
|
||||
self.depth = ::std::option::Option::None;
|
||||
self.entityhandleindex = ::std::option::Option::None;
|
||||
self.skeletoninstancehash = ::std::option::Option::None;
|
||||
self.boneindex = ::std::option::Option::None;
|
||||
self.translucenthit = ::std::option::Option::None;
|
||||
self.is_adjacent = ::std::option::Option::None;
|
||||
self.random_seed = ::std::option::Option::None;
|
||||
self.decal_group_name = ::std::option::Option::None;
|
||||
self.size_override = ::std::option::Option::None;
|
||||
self.entityhandle = ::std::option::Option::None;
|
||||
self.material_id = ::std::option::Option::None;
|
||||
self.sequence_name = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
|
|
@ -637,17 +606,16 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgPlaceDecalEvent {
|
|||
position: ::steam_vent_proto_common::protobuf::MessageField::none(),
|
||||
normal: ::steam_vent_proto_common::protobuf::MessageField::none(),
|
||||
saxis: ::steam_vent_proto_common::protobuf::MessageField::none(),
|
||||
decalmaterialindex: ::std::option::Option::None,
|
||||
boneindex: ::std::option::Option::None,
|
||||
triangleindex: ::std::option::Option::None,
|
||||
flags: ::std::option::Option::None,
|
||||
color: ::std::option::Option::None,
|
||||
width: ::std::option::Option::None,
|
||||
height: ::std::option::Option::None,
|
||||
depth: ::std::option::Option::None,
|
||||
entityhandleindex: ::std::option::Option::None,
|
||||
skeletoninstancehash: ::std::option::Option::None,
|
||||
boneindex: ::std::option::Option::None,
|
||||
translucenthit: ::std::option::Option::None,
|
||||
is_adjacent: ::std::option::Option::None,
|
||||
random_seed: ::std::option::Option::None,
|
||||
decal_group_name: ::std::option::Option::None,
|
||||
size_override: ::std::option::Option::None,
|
||||
entityhandle: ::std::option::Option::None,
|
||||
material_id: ::std::option::Option::None,
|
||||
sequence_name: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
|
|
@ -872,29 +840,27 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgClearEntityDecalsEvent
|
|||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CMsgClearDecalsForSkeletonInstanceEvent)
|
||||
// @@protoc_insertion_point(message:CMsgClearDecalsForEntityEvent)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CMsgClearDecalsForSkeletonInstanceEvent {
|
||||
pub struct CMsgClearDecalsForEntityEvent {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:CMsgClearDecalsForSkeletonInstanceEvent.flagstoclear)
|
||||
// @@protoc_insertion_point(field:CMsgClearDecalsForEntityEvent.flagstoclear)
|
||||
pub flagstoclear: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgClearDecalsForSkeletonInstanceEvent.entityhandleindex)
|
||||
pub entityhandleindex: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgClearDecalsForSkeletonInstanceEvent.skeletoninstancehash)
|
||||
pub skeletoninstancehash: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgClearDecalsForEntityEvent.entityhandle)
|
||||
pub entityhandle: ::std::option::Option<u32>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CMsgClearDecalsForSkeletonInstanceEvent.special_fields)
|
||||
// @@protoc_insertion_point(special_field:CMsgClearDecalsForEntityEvent.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a CMsgClearDecalsForSkeletonInstanceEvent {
|
||||
fn default() -> &'a CMsgClearDecalsForSkeletonInstanceEvent {
|
||||
<CMsgClearDecalsForSkeletonInstanceEvent as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
impl<'a> ::std::default::Default for &'a CMsgClearDecalsForEntityEvent {
|
||||
fn default() -> &'a CMsgClearDecalsForEntityEvent {
|
||||
<CMsgClearDecalsForEntityEvent as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl CMsgClearDecalsForSkeletonInstanceEvent {
|
||||
pub fn new() -> CMsgClearDecalsForSkeletonInstanceEvent {
|
||||
impl CMsgClearDecalsForEntityEvent {
|
||||
pub fn new() -> CMsgClearDecalsForEntityEvent {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
|
|
@ -917,47 +883,28 @@ impl CMsgClearDecalsForSkeletonInstanceEvent {
|
|||
self.flagstoclear = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 entityhandleindex = 2;
|
||||
// optional uint32 entityhandle = 2;
|
||||
|
||||
pub fn entityhandleindex(&self) -> u32 {
|
||||
self.entityhandleindex.unwrap_or(0)
|
||||
pub fn entityhandle(&self) -> u32 {
|
||||
self.entityhandle.unwrap_or(16777215u32)
|
||||
}
|
||||
|
||||
pub fn clear_entityhandleindex(&mut self) {
|
||||
self.entityhandleindex = ::std::option::Option::None;
|
||||
pub fn clear_entityhandle(&mut self) {
|
||||
self.entityhandle = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_entityhandleindex(&self) -> bool {
|
||||
self.entityhandleindex.is_some()
|
||||
pub fn has_entityhandle(&self) -> bool {
|
||||
self.entityhandle.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_entityhandleindex(&mut self, v: u32) {
|
||||
self.entityhandleindex = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 skeletoninstancehash = 3;
|
||||
|
||||
pub fn skeletoninstancehash(&self) -> u32 {
|
||||
self.skeletoninstancehash.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_skeletoninstancehash(&mut self) {
|
||||
self.skeletoninstancehash = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_skeletoninstancehash(&self) -> bool {
|
||||
self.skeletoninstancehash.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_skeletoninstancehash(&mut self, v: u32) {
|
||||
self.skeletoninstancehash = ::std::option::Option::Some(v);
|
||||
pub fn set_entityhandle(&mut self, v: u32) {
|
||||
self.entityhandle = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CMsgClearDecalsForSkeletonInstanceEvent {
|
||||
const NAME: &'static str = "CMsgClearDecalsForSkeletonInstanceEvent";
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CMsgClearDecalsForEntityEvent {
|
||||
const NAME: &'static str = "CMsgClearDecalsForEntityEvent";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
|
|
@ -970,10 +917,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgClearDecalsForSkeleton
|
|||
self.flagstoclear = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
16 => {
|
||||
self.entityhandleindex = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
24 => {
|
||||
self.skeletoninstancehash = ::std::option::Option::Some(is.read_uint32()?);
|
||||
self.entityhandle = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
|
|
@ -990,12 +934,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgClearDecalsForSkeleton
|
|||
if let Some(v) = self.flagstoclear {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
|
||||
}
|
||||
if let Some(v) = self.entityhandleindex {
|
||||
if let Some(v) = self.entityhandle {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
|
||||
}
|
||||
if let Some(v) = self.skeletoninstancehash {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(3, v);
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
|
|
@ -1005,12 +946,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgClearDecalsForSkeleton
|
|||
if let Some(v) = self.flagstoclear {
|
||||
os.write_uint32(1, v)?;
|
||||
}
|
||||
if let Some(v) = self.entityhandleindex {
|
||||
if let Some(v) = self.entityhandle {
|
||||
os.write_uint32(2, v)?;
|
||||
}
|
||||
if let Some(v) = self.skeletoninstancehash {
|
||||
os.write_uint32(3, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
|
@ -1023,22 +961,20 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgClearDecalsForSkeleton
|
|||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> CMsgClearDecalsForSkeletonInstanceEvent {
|
||||
CMsgClearDecalsForSkeletonInstanceEvent::new()
|
||||
fn new() -> CMsgClearDecalsForEntityEvent {
|
||||
CMsgClearDecalsForEntityEvent::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.flagstoclear = ::std::option::Option::None;
|
||||
self.entityhandleindex = ::std::option::Option::None;
|
||||
self.skeletoninstancehash = ::std::option::Option::None;
|
||||
self.entityhandle = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static CMsgClearDecalsForSkeletonInstanceEvent {
|
||||
static instance: CMsgClearDecalsForSkeletonInstanceEvent = CMsgClearDecalsForSkeletonInstanceEvent {
|
||||
fn default_instance() -> &'static CMsgClearDecalsForEntityEvent {
|
||||
static instance: CMsgClearDecalsForEntityEvent = CMsgClearDecalsForEntityEvent {
|
||||
flagstoclear: ::std::option::Option::None,
|
||||
entityhandleindex: ::std::option::Option::None,
|
||||
skeletoninstancehash: ::std::option::Option::None,
|
||||
entityhandle: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
|
|
@ -3046,8 +2982,8 @@ pub enum EBaseGameEvents {
|
|||
GE_ClearWorldDecalsEvent = 202,
|
||||
// @@protoc_insertion_point(enum_value:EBaseGameEvents.GE_ClearEntityDecalsEvent)
|
||||
GE_ClearEntityDecalsEvent = 203,
|
||||
// @@protoc_insertion_point(enum_value:EBaseGameEvents.GE_ClearDecalsForSkeletonInstanceEvent)
|
||||
GE_ClearDecalsForSkeletonInstanceEvent = 204,
|
||||
// @@protoc_insertion_point(enum_value:EBaseGameEvents.GE_ClearDecalsForEntityEvent)
|
||||
GE_ClearDecalsForEntityEvent = 204,
|
||||
// @@protoc_insertion_point(enum_value:EBaseGameEvents.GE_Source1LegacyGameEventList)
|
||||
GE_Source1LegacyGameEventList = 205,
|
||||
// @@protoc_insertion_point(enum_value:EBaseGameEvents.GE_Source1LegacyListenEvents)
|
||||
|
|
@ -3079,7 +3015,7 @@ impl ::steam_vent_proto_common::protobuf::Enum for EBaseGameEvents {
|
|||
201 => ::std::option::Option::Some(EBaseGameEvents::GE_PlaceDecalEvent),
|
||||
202 => ::std::option::Option::Some(EBaseGameEvents::GE_ClearWorldDecalsEvent),
|
||||
203 => ::std::option::Option::Some(EBaseGameEvents::GE_ClearEntityDecalsEvent),
|
||||
204 => ::std::option::Option::Some(EBaseGameEvents::GE_ClearDecalsForSkeletonInstanceEvent),
|
||||
204 => ::std::option::Option::Some(EBaseGameEvents::GE_ClearDecalsForEntityEvent),
|
||||
205 => ::std::option::Option::Some(EBaseGameEvents::GE_Source1LegacyGameEventList),
|
||||
206 => ::std::option::Option::Some(EBaseGameEvents::GE_Source1LegacyListenEvents),
|
||||
207 => ::std::option::Option::Some(EBaseGameEvents::GE_Source1LegacyGameEvent),
|
||||
|
|
@ -3098,7 +3034,7 @@ impl ::steam_vent_proto_common::protobuf::Enum for EBaseGameEvents {
|
|||
"GE_PlaceDecalEvent" => ::std::option::Option::Some(EBaseGameEvents::GE_PlaceDecalEvent),
|
||||
"GE_ClearWorldDecalsEvent" => ::std::option::Option::Some(EBaseGameEvents::GE_ClearWorldDecalsEvent),
|
||||
"GE_ClearEntityDecalsEvent" => ::std::option::Option::Some(EBaseGameEvents::GE_ClearEntityDecalsEvent),
|
||||
"GE_ClearDecalsForSkeletonInstanceEvent" => ::std::option::Option::Some(EBaseGameEvents::GE_ClearDecalsForSkeletonInstanceEvent),
|
||||
"GE_ClearDecalsForEntityEvent" => ::std::option::Option::Some(EBaseGameEvents::GE_ClearDecalsForEntityEvent),
|
||||
"GE_Source1LegacyGameEventList" => ::std::option::Option::Some(EBaseGameEvents::GE_Source1LegacyGameEventList),
|
||||
"GE_Source1LegacyListenEvents" => ::std::option::Option::Some(EBaseGameEvents::GE_Source1LegacyListenEvents),
|
||||
"GE_Source1LegacyGameEvent" => ::std::option::Option::Some(EBaseGameEvents::GE_Source1LegacyGameEvent),
|
||||
|
|
@ -3116,7 +3052,7 @@ impl ::steam_vent_proto_common::protobuf::Enum for EBaseGameEvents {
|
|||
EBaseGameEvents::GE_PlaceDecalEvent,
|
||||
EBaseGameEvents::GE_ClearWorldDecalsEvent,
|
||||
EBaseGameEvents::GE_ClearEntityDecalsEvent,
|
||||
EBaseGameEvents::GE_ClearDecalsForSkeletonInstanceEvent,
|
||||
EBaseGameEvents::GE_ClearDecalsForEntityEvent,
|
||||
EBaseGameEvents::GE_Source1LegacyGameEventList,
|
||||
EBaseGameEvents::GE_Source1LegacyListenEvents,
|
||||
EBaseGameEvents::GE_Source1LegacyGameEvent,
|
||||
|
|
@ -3193,7 +3129,7 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClearEntityDecalsEvent {
|
|||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for CMsgClearDecalsForSkeletonInstanceEvent {
|
||||
impl ::steam_vent_proto_common::RpcMessage for CMsgClearDecalsForEntityEvent {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
// @generated
|
||||
|
||||
pub mod base_gcmessages;
|
||||
pub mod base_gcmessages_csgo;
|
||||
pub mod c_peer2peer_netmessages;
|
||||
pub mod clientmessages;
|
||||
pub mod connectionless_netmessages;
|
||||
pub mod cs_gameevents;
|
||||
pub mod cs_prediction_events;
|
||||
pub mod cs_usercmd;
|
||||
pub mod cstrike15_gcmessages;
|
||||
pub mod cstrike15_usermessages;
|
||||
|
|
@ -21,6 +21,7 @@ pub mod netmessages;
|
|||
pub mod network_connection;
|
||||
pub mod networkbasetypes;
|
||||
pub mod networksystem_protomessages;
|
||||
pub mod prediction_events;
|
||||
pub mod steamdatagram_messages_auth;
|
||||
pub mod steamdatagram_messages_sdr;
|
||||
pub mod steammessages;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -264,6 +264,12 @@ pub enum ENetworkDisconnectionReason {
|
|||
NETWORK_DISCONNECT_KICKED_NOSTEAMLOGIN = 160,
|
||||
// @@protoc_insertion_point(enum_value:ENetworkDisconnectionReason.NETWORK_DISCONNECT_KICKED_NOSTEAMTICKET)
|
||||
NETWORK_DISCONNECT_KICKED_NOSTEAMTICKET = 161,
|
||||
// @@protoc_insertion_point(enum_value:ENetworkDisconnectionReason.NETWORK_DISCONNECT_KICKED_INPUTAUTOMATION)
|
||||
NETWORK_DISCONNECT_KICKED_INPUTAUTOMATION = 162,
|
||||
// @@protoc_insertion_point(enum_value:ENetworkDisconnectionReason.NETWORK_DISCONNECT_KICKED_VACNETABNORMALBEHAVIOR)
|
||||
NETWORK_DISCONNECT_KICKED_VACNETABNORMALBEHAVIOR = 163,
|
||||
// @@protoc_insertion_point(enum_value:ENetworkDisconnectionReason.NETWORK_DISCONNECT_KICKED_INSECURECLIENT)
|
||||
NETWORK_DISCONNECT_KICKED_INSECURECLIENT = 164,
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Enum for ENetworkDisconnectionReason {
|
||||
|
|
@ -393,6 +399,9 @@ impl ::steam_vent_proto_common::protobuf::Enum for ENetworkDisconnectionReason {
|
|||
159 => ::std::option::Option::Some(ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_SUICIDE),
|
||||
160 => ::std::option::Option::Some(ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_NOSTEAMLOGIN),
|
||||
161 => ::std::option::Option::Some(ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_NOSTEAMTICKET),
|
||||
162 => ::std::option::Option::Some(ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_INPUTAUTOMATION),
|
||||
163 => ::std::option::Option::Some(ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_VACNETABNORMALBEHAVIOR),
|
||||
164 => ::std::option::Option::Some(ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_INSECURECLIENT),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
|
@ -517,6 +526,9 @@ impl ::steam_vent_proto_common::protobuf::Enum for ENetworkDisconnectionReason {
|
|||
"NETWORK_DISCONNECT_KICKED_SUICIDE" => ::std::option::Option::Some(ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_SUICIDE),
|
||||
"NETWORK_DISCONNECT_KICKED_NOSTEAMLOGIN" => ::std::option::Option::Some(ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_NOSTEAMLOGIN),
|
||||
"NETWORK_DISCONNECT_KICKED_NOSTEAMTICKET" => ::std::option::Option::Some(ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_NOSTEAMTICKET),
|
||||
"NETWORK_DISCONNECT_KICKED_INPUTAUTOMATION" => ::std::option::Option::Some(ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_INPUTAUTOMATION),
|
||||
"NETWORK_DISCONNECT_KICKED_VACNETABNORMALBEHAVIOR" => ::std::option::Option::Some(ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_VACNETABNORMALBEHAVIOR),
|
||||
"NETWORK_DISCONNECT_KICKED_INSECURECLIENT" => ::std::option::Option::Some(ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_INSECURECLIENT),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
|
@ -640,6 +652,9 @@ impl ::steam_vent_proto_common::protobuf::Enum for ENetworkDisconnectionReason {
|
|||
ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_SUICIDE,
|
||||
ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_NOSTEAMLOGIN,
|
||||
ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_NOSTEAMTICKET,
|
||||
ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_INPUTAUTOMATION,
|
||||
ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_VACNETABNORMALBEHAVIOR,
|
||||
ENetworkDisconnectionReason::NETWORK_DISCONNECT_KICKED_INSECURECLIENT,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1946,18 +1946,12 @@ pub struct CNETMsg_Tick {
|
|||
// message fields
|
||||
// @@protoc_insertion_point(field:CNETMsg_Tick.tick)
|
||||
pub tick: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CNETMsg_Tick.host_frametime)
|
||||
pub host_frametime: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CNETMsg_Tick.host_frametime_std_deviation)
|
||||
pub host_frametime_std_deviation: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CNETMsg_Tick.host_computationtime)
|
||||
pub host_computationtime: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CNETMsg_Tick.host_computationtime_std_deviation)
|
||||
pub host_computationtime_std_deviation: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CNETMsg_Tick.host_framestarttime_std_deviation)
|
||||
pub host_framestarttime_std_deviation: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CNETMsg_Tick.host_loss)
|
||||
pub host_loss: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CNETMsg_Tick.legacy_host_loss)
|
||||
pub legacy_host_loss: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CNETMsg_Tick.host_unfiltered_frametime)
|
||||
pub host_unfiltered_frametime: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CNETMsg_Tick.hltv_replay_flags)
|
||||
|
|
@ -1966,6 +1960,10 @@ pub struct CNETMsg_Tick {
|
|||
pub expected_long_tick: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CNETMsg_Tick.expected_long_tick_reason)
|
||||
pub expected_long_tick_reason: ::std::option::Option<::std::string::String>,
|
||||
// @@protoc_insertion_point(field:CNETMsg_Tick.host_frame_dropped_pct_x10)
|
||||
pub host_frame_dropped_pct_x10: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CNETMsg_Tick.host_frame_irregular_arrival_pct_x10)
|
||||
pub host_frame_irregular_arrival_pct_x10: ::std::option::Option<u32>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CNETMsg_Tick.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
|
|
@ -2001,44 +1999,6 @@ impl CNETMsg_Tick {
|
|||
self.tick = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 host_frametime = 2;
|
||||
|
||||
pub fn host_frametime(&self) -> u32 {
|
||||
self.host_frametime.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_host_frametime(&mut self) {
|
||||
self.host_frametime = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_host_frametime(&self) -> bool {
|
||||
self.host_frametime.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_host_frametime(&mut self, v: u32) {
|
||||
self.host_frametime = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 host_frametime_std_deviation = 3;
|
||||
|
||||
pub fn host_frametime_std_deviation(&self) -> u32 {
|
||||
self.host_frametime_std_deviation.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_host_frametime_std_deviation(&mut self) {
|
||||
self.host_frametime_std_deviation = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_host_frametime_std_deviation(&self) -> bool {
|
||||
self.host_frametime_std_deviation.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_host_frametime_std_deviation(&mut self, v: u32) {
|
||||
self.host_frametime_std_deviation = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 host_computationtime = 4;
|
||||
|
||||
pub fn host_computationtime(&self) -> u32 {
|
||||
|
|
@ -2077,42 +2037,23 @@ impl CNETMsg_Tick {
|
|||
self.host_computationtime_std_deviation = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 host_framestarttime_std_deviation = 6;
|
||||
// optional uint32 legacy_host_loss = 7;
|
||||
|
||||
pub fn host_framestarttime_std_deviation(&self) -> u32 {
|
||||
self.host_framestarttime_std_deviation.unwrap_or(0)
|
||||
pub fn legacy_host_loss(&self) -> u32 {
|
||||
self.legacy_host_loss.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_host_framestarttime_std_deviation(&mut self) {
|
||||
self.host_framestarttime_std_deviation = ::std::option::Option::None;
|
||||
pub fn clear_legacy_host_loss(&mut self) {
|
||||
self.legacy_host_loss = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_host_framestarttime_std_deviation(&self) -> bool {
|
||||
self.host_framestarttime_std_deviation.is_some()
|
||||
pub fn has_legacy_host_loss(&self) -> bool {
|
||||
self.legacy_host_loss.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_host_framestarttime_std_deviation(&mut self, v: u32) {
|
||||
self.host_framestarttime_std_deviation = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 host_loss = 7;
|
||||
|
||||
pub fn host_loss(&self) -> u32 {
|
||||
self.host_loss.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_host_loss(&mut self) {
|
||||
self.host_loss = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_host_loss(&self) -> bool {
|
||||
self.host_loss.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_host_loss(&mut self, v: u32) {
|
||||
self.host_loss = ::std::option::Option::Some(v);
|
||||
pub fn set_legacy_host_loss(&mut self, v: u32) {
|
||||
self.legacy_host_loss = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 host_unfiltered_frametime = 8;
|
||||
|
|
@ -2207,6 +2148,44 @@ impl CNETMsg_Tick {
|
|||
pub fn take_expected_long_tick_reason(&mut self) -> ::std::string::String {
|
||||
self.expected_long_tick_reason.take().unwrap_or_else(|| ::std::string::String::new())
|
||||
}
|
||||
|
||||
// optional uint32 host_frame_dropped_pct_x10 = 12;
|
||||
|
||||
pub fn host_frame_dropped_pct_x10(&self) -> u32 {
|
||||
self.host_frame_dropped_pct_x10.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_host_frame_dropped_pct_x10(&mut self) {
|
||||
self.host_frame_dropped_pct_x10 = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_host_frame_dropped_pct_x10(&self) -> bool {
|
||||
self.host_frame_dropped_pct_x10.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_host_frame_dropped_pct_x10(&mut self, v: u32) {
|
||||
self.host_frame_dropped_pct_x10 = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 host_frame_irregular_arrival_pct_x10 = 13;
|
||||
|
||||
pub fn host_frame_irregular_arrival_pct_x10(&self) -> u32 {
|
||||
self.host_frame_irregular_arrival_pct_x10.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_host_frame_irregular_arrival_pct_x10(&mut self) {
|
||||
self.host_frame_irregular_arrival_pct_x10 = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_host_frame_irregular_arrival_pct_x10(&self) -> bool {
|
||||
self.host_frame_irregular_arrival_pct_x10.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_host_frame_irregular_arrival_pct_x10(&mut self, v: u32) {
|
||||
self.host_frame_irregular_arrival_pct_x10 = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CNETMsg_Tick {
|
||||
|
|
@ -2222,23 +2201,14 @@ impl ::steam_vent_proto_common::protobuf::Message for CNETMsg_Tick {
|
|||
8 => {
|
||||
self.tick = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
16 => {
|
||||
self.host_frametime = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
24 => {
|
||||
self.host_frametime_std_deviation = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
32 => {
|
||||
self.host_computationtime = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
40 => {
|
||||
self.host_computationtime_std_deviation = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
48 => {
|
||||
self.host_framestarttime_std_deviation = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
56 => {
|
||||
self.host_loss = ::std::option::Option::Some(is.read_uint32()?);
|
||||
self.legacy_host_loss = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
64 => {
|
||||
self.host_unfiltered_frametime = ::std::option::Option::Some(is.read_uint32()?);
|
||||
|
|
@ -2252,6 +2222,12 @@ impl ::steam_vent_proto_common::protobuf::Message for CNETMsg_Tick {
|
|||
90 => {
|
||||
self.expected_long_tick_reason = ::std::option::Option::Some(is.read_string()?);
|
||||
},
|
||||
96 => {
|
||||
self.host_frame_dropped_pct_x10 = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
104 => {
|
||||
self.host_frame_irregular_arrival_pct_x10 = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
|
|
@ -2267,22 +2243,13 @@ impl ::steam_vent_proto_common::protobuf::Message for CNETMsg_Tick {
|
|||
if let Some(v) = self.tick {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
|
||||
}
|
||||
if let Some(v) = self.host_frametime {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
|
||||
}
|
||||
if let Some(v) = self.host_frametime_std_deviation {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(3, v);
|
||||
}
|
||||
if let Some(v) = self.host_computationtime {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(4, v);
|
||||
}
|
||||
if let Some(v) = self.host_computationtime_std_deviation {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(5, v);
|
||||
}
|
||||
if let Some(v) = self.host_framestarttime_std_deviation {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(6, v);
|
||||
}
|
||||
if let Some(v) = self.host_loss {
|
||||
if let Some(v) = self.legacy_host_loss {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(7, v);
|
||||
}
|
||||
if let Some(v) = self.host_unfiltered_frametime {
|
||||
|
|
@ -2297,6 +2264,12 @@ impl ::steam_vent_proto_common::protobuf::Message for CNETMsg_Tick {
|
|||
if let Some(v) = self.expected_long_tick_reason.as_ref() {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::string_size(11, &v);
|
||||
}
|
||||
if let Some(v) = self.host_frame_dropped_pct_x10 {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(12, v);
|
||||
}
|
||||
if let Some(v) = self.host_frame_irregular_arrival_pct_x10 {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(13, v);
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
|
|
@ -2306,22 +2279,13 @@ impl ::steam_vent_proto_common::protobuf::Message for CNETMsg_Tick {
|
|||
if let Some(v) = self.tick {
|
||||
os.write_uint32(1, v)?;
|
||||
}
|
||||
if let Some(v) = self.host_frametime {
|
||||
os.write_uint32(2, v)?;
|
||||
}
|
||||
if let Some(v) = self.host_frametime_std_deviation {
|
||||
os.write_uint32(3, v)?;
|
||||
}
|
||||
if let Some(v) = self.host_computationtime {
|
||||
os.write_uint32(4, v)?;
|
||||
}
|
||||
if let Some(v) = self.host_computationtime_std_deviation {
|
||||
os.write_uint32(5, v)?;
|
||||
}
|
||||
if let Some(v) = self.host_framestarttime_std_deviation {
|
||||
os.write_uint32(6, v)?;
|
||||
}
|
||||
if let Some(v) = self.host_loss {
|
||||
if let Some(v) = self.legacy_host_loss {
|
||||
os.write_uint32(7, v)?;
|
||||
}
|
||||
if let Some(v) = self.host_unfiltered_frametime {
|
||||
|
|
@ -2336,6 +2300,12 @@ impl ::steam_vent_proto_common::protobuf::Message for CNETMsg_Tick {
|
|||
if let Some(v) = self.expected_long_tick_reason.as_ref() {
|
||||
os.write_string(11, v)?;
|
||||
}
|
||||
if let Some(v) = self.host_frame_dropped_pct_x10 {
|
||||
os.write_uint32(12, v)?;
|
||||
}
|
||||
if let Some(v) = self.host_frame_irregular_arrival_pct_x10 {
|
||||
os.write_uint32(13, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
|
@ -2354,32 +2324,30 @@ impl ::steam_vent_proto_common::protobuf::Message for CNETMsg_Tick {
|
|||
|
||||
fn clear(&mut self) {
|
||||
self.tick = ::std::option::Option::None;
|
||||
self.host_frametime = ::std::option::Option::None;
|
||||
self.host_frametime_std_deviation = ::std::option::Option::None;
|
||||
self.host_computationtime = ::std::option::Option::None;
|
||||
self.host_computationtime_std_deviation = ::std::option::Option::None;
|
||||
self.host_framestarttime_std_deviation = ::std::option::Option::None;
|
||||
self.host_loss = ::std::option::Option::None;
|
||||
self.legacy_host_loss = ::std::option::Option::None;
|
||||
self.host_unfiltered_frametime = ::std::option::Option::None;
|
||||
self.hltv_replay_flags = ::std::option::Option::None;
|
||||
self.expected_long_tick = ::std::option::Option::None;
|
||||
self.expected_long_tick_reason = ::std::option::Option::None;
|
||||
self.host_frame_dropped_pct_x10 = ::std::option::Option::None;
|
||||
self.host_frame_irregular_arrival_pct_x10 = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static CNETMsg_Tick {
|
||||
static instance: CNETMsg_Tick = CNETMsg_Tick {
|
||||
tick: ::std::option::Option::None,
|
||||
host_frametime: ::std::option::Option::None,
|
||||
host_frametime_std_deviation: ::std::option::Option::None,
|
||||
host_computationtime: ::std::option::Option::None,
|
||||
host_computationtime_std_deviation: ::std::option::Option::None,
|
||||
host_framestarttime_std_deviation: ::std::option::Option::None,
|
||||
host_loss: ::std::option::Option::None,
|
||||
legacy_host_loss: ::std::option::Option::None,
|
||||
host_unfiltered_frametime: ::std::option::Option::None,
|
||||
hltv_replay_flags: ::std::option::Option::None,
|
||||
expected_long_tick: ::std::option::Option::None,
|
||||
expected_long_tick_reason: ::std::option::Option::None,
|
||||
host_frame_dropped_pct_x10: ::std::option::Option::None,
|
||||
host_frame_irregular_arrival_pct_x10: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
|
|
@ -6406,6 +6374,8 @@ impl ::std::default::Default for SpawnGroupFlags_t {
|
|||
}
|
||||
|
||||
|
||||
// Extension generation with lite runtime is not supported
|
||||
|
||||
|
||||
const _VENT_PROTO_VERSION_CHECK: () = ::steam_vent_proto_common::VERSION_0_5_0;
|
||||
|
||||
|
|
|
|||
|
|
@ -140,6 +140,8 @@ pub struct NetMessageConnectionClosed {
|
|||
// message fields
|
||||
// @@protoc_insertion_point(field:NetMessageConnectionClosed.reason)
|
||||
pub reason: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:NetMessageConnectionClosed.message)
|
||||
pub message: ::std::option::Option<::std::string::String>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:NetMessageConnectionClosed.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
|
|
@ -174,6 +176,42 @@ impl NetMessageConnectionClosed {
|
|||
pub fn set_reason(&mut self, v: u32) {
|
||||
self.reason = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional string message = 2;
|
||||
|
||||
pub fn message(&self) -> &str {
|
||||
match self.message.as_ref() {
|
||||
Some(v) => v,
|
||||
None => "",
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clear_message(&mut self) {
|
||||
self.message = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_message(&self) -> bool {
|
||||
self.message.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_message(&mut self, v: ::std::string::String) {
|
||||
self.message = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// Mutable pointer to the field.
|
||||
// If field is not initialized, it is initialized with default value first.
|
||||
pub fn mut_message(&mut self) -> &mut ::std::string::String {
|
||||
if self.message.is_none() {
|
||||
self.message = ::std::option::Option::Some(::std::string::String::new());
|
||||
}
|
||||
self.message.as_mut().unwrap()
|
||||
}
|
||||
|
||||
// Take field
|
||||
pub fn take_message(&mut self) -> ::std::string::String {
|
||||
self.message.take().unwrap_or_else(|| ::std::string::String::new())
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for NetMessageConnectionClosed {
|
||||
|
|
@ -189,6 +227,9 @@ impl ::steam_vent_proto_common::protobuf::Message for NetMessageConnectionClosed
|
|||
8 => {
|
||||
self.reason = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
18 => {
|
||||
self.message = ::std::option::Option::Some(is.read_string()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
|
|
@ -204,6 +245,9 @@ impl ::steam_vent_proto_common::protobuf::Message for NetMessageConnectionClosed
|
|||
if let Some(v) = self.reason {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
|
||||
}
|
||||
if let Some(v) = self.message.as_ref() {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::string_size(2, &v);
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
|
|
@ -213,6 +257,9 @@ impl ::steam_vent_proto_common::protobuf::Message for NetMessageConnectionClosed
|
|||
if let Some(v) = self.reason {
|
||||
os.write_uint32(1, v)?;
|
||||
}
|
||||
if let Some(v) = self.message.as_ref() {
|
||||
os.write_string(2, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
|
@ -231,12 +278,14 @@ impl ::steam_vent_proto_common::protobuf::Message for NetMessageConnectionClosed
|
|||
|
||||
fn clear(&mut self) {
|
||||
self.reason = ::std::option::Option::None;
|
||||
self.message = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static NetMessageConnectionClosed {
|
||||
static instance: NetMessageConnectionClosed = NetMessageConnectionClosed {
|
||||
reason: ::std::option::Option::None,
|
||||
message: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
|
|
@ -249,6 +298,8 @@ pub struct NetMessageConnectionCrashed {
|
|||
// message fields
|
||||
// @@protoc_insertion_point(field:NetMessageConnectionCrashed.reason)
|
||||
pub reason: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:NetMessageConnectionCrashed.message)
|
||||
pub message: ::std::option::Option<::std::string::String>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:NetMessageConnectionCrashed.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
|
|
@ -283,6 +334,42 @@ impl NetMessageConnectionCrashed {
|
|||
pub fn set_reason(&mut self, v: u32) {
|
||||
self.reason = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional string message = 2;
|
||||
|
||||
pub fn message(&self) -> &str {
|
||||
match self.message.as_ref() {
|
||||
Some(v) => v,
|
||||
None => "",
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clear_message(&mut self) {
|
||||
self.message = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_message(&self) -> bool {
|
||||
self.message.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_message(&mut self, v: ::std::string::String) {
|
||||
self.message = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// Mutable pointer to the field.
|
||||
// If field is not initialized, it is initialized with default value first.
|
||||
pub fn mut_message(&mut self) -> &mut ::std::string::String {
|
||||
if self.message.is_none() {
|
||||
self.message = ::std::option::Option::Some(::std::string::String::new());
|
||||
}
|
||||
self.message.as_mut().unwrap()
|
||||
}
|
||||
|
||||
// Take field
|
||||
pub fn take_message(&mut self) -> ::std::string::String {
|
||||
self.message.take().unwrap_or_else(|| ::std::string::String::new())
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for NetMessageConnectionCrashed {
|
||||
|
|
@ -298,6 +385,9 @@ impl ::steam_vent_proto_common::protobuf::Message for NetMessageConnectionCrashe
|
|||
8 => {
|
||||
self.reason = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
18 => {
|
||||
self.message = ::std::option::Option::Some(is.read_string()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
|
|
@ -313,6 +403,9 @@ impl ::steam_vent_proto_common::protobuf::Message for NetMessageConnectionCrashe
|
|||
if let Some(v) = self.reason {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
|
||||
}
|
||||
if let Some(v) = self.message.as_ref() {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::string_size(2, &v);
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
|
|
@ -322,6 +415,9 @@ impl ::steam_vent_proto_common::protobuf::Message for NetMessageConnectionCrashe
|
|||
if let Some(v) = self.reason {
|
||||
os.write_uint32(1, v)?;
|
||||
}
|
||||
if let Some(v) = self.message.as_ref() {
|
||||
os.write_string(2, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
|
@ -340,12 +436,14 @@ impl ::steam_vent_proto_common::protobuf::Message for NetMessageConnectionCrashe
|
|||
|
||||
fn clear(&mut self) {
|
||||
self.reason = ::std::option::Option::None;
|
||||
self.message = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static NetMessageConnectionCrashed {
|
||||
static instance: NetMessageConnectionCrashed = NetMessageConnectionCrashed {
|
||||
reason: ::std::option::Option::None,
|
||||
message: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
|
|
|
|||
574
src/generated/prediction_events.rs
Normal file
574
src/generated/prediction_events.rs
Normal file
|
|
@ -0,0 +1,574 @@
|
|||
// This file is generated by rust-protobuf 3.5.1. Do not edit
|
||||
// .proto file is parsed by pure
|
||||
// @generated
|
||||
|
||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
||||
#![allow(unknown_lints)]
|
||||
#![allow(clippy::all)]
|
||||
|
||||
#![allow(unused_attributes)]
|
||||
#![cfg_attr(rustfmt, rustfmt::skip)]
|
||||
|
||||
#![allow(dead_code)]
|
||||
#![allow(missing_docs)]
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(non_snake_case)]
|
||||
#![allow(non_upper_case_globals)]
|
||||
#![allow(trivial_casts)]
|
||||
#![allow(unused_results)]
|
||||
#![allow(unused_mut)]
|
||||
|
||||
//! Generated file from `prediction_events.proto`
|
||||
// Generated for lite runtime
|
||||
|
||||
/// Generated files are compatible only with the same version
|
||||
/// of protobuf runtime.
|
||||
const _PROTOBUF_VERSION_CHECK: () = ::steam_vent_proto_common::protobuf::VERSION_3_5_1;
|
||||
|
||||
// @@protoc_insertion_point(message:CPredictionEvent_Teleport)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CPredictionEvent_Teleport {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:CPredictionEvent_Teleport.origin)
|
||||
pub origin: ::steam_vent_proto_common::protobuf::MessageField<super::networkbasetypes::CMsgVector>,
|
||||
// @@protoc_insertion_point(field:CPredictionEvent_Teleport.angles)
|
||||
pub angles: ::steam_vent_proto_common::protobuf::MessageField<super::networkbasetypes::CMsgQAngle>,
|
||||
// @@protoc_insertion_point(field:CPredictionEvent_Teleport.drop_to_ground_range)
|
||||
pub drop_to_ground_range: ::std::option::Option<f32>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CPredictionEvent_Teleport.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a CPredictionEvent_Teleport {
|
||||
fn default() -> &'a CPredictionEvent_Teleport {
|
||||
<CPredictionEvent_Teleport as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl CPredictionEvent_Teleport {
|
||||
pub fn new() -> CPredictionEvent_Teleport {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
// optional float drop_to_ground_range = 3;
|
||||
|
||||
pub fn drop_to_ground_range(&self) -> f32 {
|
||||
self.drop_to_ground_range.unwrap_or(0.)
|
||||
}
|
||||
|
||||
pub fn clear_drop_to_ground_range(&mut self) {
|
||||
self.drop_to_ground_range = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_drop_to_ground_range(&self) -> bool {
|
||||
self.drop_to_ground_range.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_drop_to_ground_range(&mut self, v: f32) {
|
||||
self.drop_to_ground_range = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CPredictionEvent_Teleport {
|
||||
const NAME: &'static str = "CPredictionEvent_Teleport";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
||||
match tag {
|
||||
10 => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.origin)?;
|
||||
},
|
||||
18 => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.angles)?;
|
||||
},
|
||||
29 => {
|
||||
self.drop_to_ground_range = ::std::option::Option::Some(is.read_float()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
};
|
||||
}
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
// Compute sizes of nested messages
|
||||
#[allow(unused_variables)]
|
||||
fn compute_size(&self) -> u64 {
|
||||
let mut my_size = 0;
|
||||
if let Some(v) = self.origin.as_ref() {
|
||||
let len = v.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
}
|
||||
if let Some(v) = self.angles.as_ref() {
|
||||
let len = v.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
}
|
||||
if let Some(v) = self.drop_to_ground_range {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
}
|
||||
|
||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
if let Some(v) = self.origin.as_ref() {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
|
||||
}
|
||||
if let Some(v) = self.angles.as_ref() {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
|
||||
}
|
||||
if let Some(v) = self.drop_to_ground_range {
|
||||
os.write_float(3, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&self.special_fields
|
||||
}
|
||||
|
||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> CPredictionEvent_Teleport {
|
||||
CPredictionEvent_Teleport::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.origin.clear();
|
||||
self.angles.clear();
|
||||
self.drop_to_ground_range = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static CPredictionEvent_Teleport {
|
||||
static instance: CPredictionEvent_Teleport = CPredictionEvent_Teleport {
|
||||
origin: ::steam_vent_proto_common::protobuf::MessageField::none(),
|
||||
angles: ::steam_vent_proto_common::protobuf::MessageField::none(),
|
||||
drop_to_ground_range: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CPredictionEvent_StringCommand)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CPredictionEvent_StringCommand {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:CPredictionEvent_StringCommand.command)
|
||||
pub command: ::std::option::Option<::std::string::String>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CPredictionEvent_StringCommand.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a CPredictionEvent_StringCommand {
|
||||
fn default() -> &'a CPredictionEvent_StringCommand {
|
||||
<CPredictionEvent_StringCommand as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl CPredictionEvent_StringCommand {
|
||||
pub fn new() -> CPredictionEvent_StringCommand {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
// optional string command = 1;
|
||||
|
||||
pub fn command(&self) -> &str {
|
||||
match self.command.as_ref() {
|
||||
Some(v) => v,
|
||||
None => "",
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clear_command(&mut self) {
|
||||
self.command = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_command(&self) -> bool {
|
||||
self.command.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_command(&mut self, v: ::std::string::String) {
|
||||
self.command = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// Mutable pointer to the field.
|
||||
// If field is not initialized, it is initialized with default value first.
|
||||
pub fn mut_command(&mut self) -> &mut ::std::string::String {
|
||||
if self.command.is_none() {
|
||||
self.command = ::std::option::Option::Some(::std::string::String::new());
|
||||
}
|
||||
self.command.as_mut().unwrap()
|
||||
}
|
||||
|
||||
// Take field
|
||||
pub fn take_command(&mut self) -> ::std::string::String {
|
||||
self.command.take().unwrap_or_else(|| ::std::string::String::new())
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CPredictionEvent_StringCommand {
|
||||
const NAME: &'static str = "CPredictionEvent_StringCommand";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
||||
match tag {
|
||||
10 => {
|
||||
self.command = ::std::option::Option::Some(is.read_string()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
};
|
||||
}
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
// Compute sizes of nested messages
|
||||
#[allow(unused_variables)]
|
||||
fn compute_size(&self) -> u64 {
|
||||
let mut my_size = 0;
|
||||
if let Some(v) = self.command.as_ref() {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::string_size(1, &v);
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
}
|
||||
|
||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
if let Some(v) = self.command.as_ref() {
|
||||
os.write_string(1, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&self.special_fields
|
||||
}
|
||||
|
||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> CPredictionEvent_StringCommand {
|
||||
CPredictionEvent_StringCommand::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.command = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static CPredictionEvent_StringCommand {
|
||||
static instance: CPredictionEvent_StringCommand = CPredictionEvent_StringCommand {
|
||||
command: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CPredictionEvent_Diagnostic)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CPredictionEvent_Diagnostic {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:CPredictionEvent_Diagnostic.id)
|
||||
pub id: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CPredictionEvent_Diagnostic.requested_sync)
|
||||
pub requested_sync: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CPredictionEvent_Diagnostic.requested_player_index)
|
||||
pub requested_player_index: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CPredictionEvent_Diagnostic.execution_sync)
|
||||
pub execution_sync: ::std::vec::Vec<u32>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CPredictionEvent_Diagnostic.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a CPredictionEvent_Diagnostic {
|
||||
fn default() -> &'a CPredictionEvent_Diagnostic {
|
||||
<CPredictionEvent_Diagnostic as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl CPredictionEvent_Diagnostic {
|
||||
pub fn new() -> CPredictionEvent_Diagnostic {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
// optional uint32 id = 1;
|
||||
|
||||
pub fn id(&self) -> u32 {
|
||||
self.id.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_id(&mut self) {
|
||||
self.id = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_id(&self) -> bool {
|
||||
self.id.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_id(&mut self, v: u32) {
|
||||
self.id = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 requested_sync = 2;
|
||||
|
||||
pub fn requested_sync(&self) -> u32 {
|
||||
self.requested_sync.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_requested_sync(&mut self) {
|
||||
self.requested_sync = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_requested_sync(&self) -> bool {
|
||||
self.requested_sync.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_requested_sync(&mut self, v: u32) {
|
||||
self.requested_sync = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 requested_player_index = 3;
|
||||
|
||||
pub fn requested_player_index(&self) -> u32 {
|
||||
self.requested_player_index.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_requested_player_index(&mut self) {
|
||||
self.requested_player_index = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_requested_player_index(&self) -> bool {
|
||||
self.requested_player_index.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_requested_player_index(&mut self, v: u32) {
|
||||
self.requested_player_index = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CPredictionEvent_Diagnostic {
|
||||
const NAME: &'static str = "CPredictionEvent_Diagnostic";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
||||
match tag {
|
||||
8 => {
|
||||
self.id = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
16 => {
|
||||
self.requested_sync = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
24 => {
|
||||
self.requested_player_index = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
34 => {
|
||||
is.read_repeated_packed_uint32_into(&mut self.execution_sync)?;
|
||||
},
|
||||
32 => {
|
||||
self.execution_sync.push(is.read_uint32()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
};
|
||||
}
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
// Compute sizes of nested messages
|
||||
#[allow(unused_variables)]
|
||||
fn compute_size(&self) -> u64 {
|
||||
let mut my_size = 0;
|
||||
if let Some(v) = self.id {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(1, v);
|
||||
}
|
||||
if let Some(v) = self.requested_sync {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(2, v);
|
||||
}
|
||||
if let Some(v) = self.requested_player_index {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(3, v);
|
||||
}
|
||||
for value in &self.execution_sync {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(4, *value);
|
||||
};
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
}
|
||||
|
||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
if let Some(v) = self.id {
|
||||
os.write_uint32(1, v)?;
|
||||
}
|
||||
if let Some(v) = self.requested_sync {
|
||||
os.write_uint32(2, v)?;
|
||||
}
|
||||
if let Some(v) = self.requested_player_index {
|
||||
os.write_uint32(3, v)?;
|
||||
}
|
||||
for v in &self.execution_sync {
|
||||
os.write_uint32(4, *v)?;
|
||||
};
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&self.special_fields
|
||||
}
|
||||
|
||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> CPredictionEvent_Diagnostic {
|
||||
CPredictionEvent_Diagnostic::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.id = ::std::option::Option::None;
|
||||
self.requested_sync = ::std::option::Option::None;
|
||||
self.requested_player_index = ::std::option::Option::None;
|
||||
self.execution_sync.clear();
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static CPredictionEvent_Diagnostic {
|
||||
static instance: CPredictionEvent_Diagnostic = CPredictionEvent_Diagnostic {
|
||||
id: ::std::option::Option::None,
|
||||
requested_sync: ::std::option::Option::None,
|
||||
requested_player_index: ::std::option::Option::None,
|
||||
execution_sync: ::std::vec::Vec::new(),
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
||||
// @@protoc_insertion_point(enum:EBasePredictionEvents)
|
||||
pub enum EBasePredictionEvents {
|
||||
// @@protoc_insertion_point(enum_value:EBasePredictionEvents.BPE_StringCommand)
|
||||
BPE_StringCommand = 128,
|
||||
// @@protoc_insertion_point(enum_value:EBasePredictionEvents.BPE_Teleport)
|
||||
BPE_Teleport = 130,
|
||||
// @@protoc_insertion_point(enum_value:EBasePredictionEvents.BPE_Diagnostic)
|
||||
BPE_Diagnostic = 16384,
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Enum for EBasePredictionEvents {
|
||||
const NAME: &'static str = "EBasePredictionEvents";
|
||||
|
||||
fn value(&self) -> i32 {
|
||||
*self as i32
|
||||
}
|
||||
|
||||
fn from_i32(value: i32) -> ::std::option::Option<EBasePredictionEvents> {
|
||||
match value {
|
||||
128 => ::std::option::Option::Some(EBasePredictionEvents::BPE_StringCommand),
|
||||
130 => ::std::option::Option::Some(EBasePredictionEvents::BPE_Teleport),
|
||||
16384 => ::std::option::Option::Some(EBasePredictionEvents::BPE_Diagnostic),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
||||
fn from_str(str: &str) -> ::std::option::Option<EBasePredictionEvents> {
|
||||
match str {
|
||||
"BPE_StringCommand" => ::std::option::Option::Some(EBasePredictionEvents::BPE_StringCommand),
|
||||
"BPE_Teleport" => ::std::option::Option::Some(EBasePredictionEvents::BPE_Teleport),
|
||||
"BPE_Diagnostic" => ::std::option::Option::Some(EBasePredictionEvents::BPE_Diagnostic),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
||||
const VALUES: &'static [EBasePredictionEvents] = &[
|
||||
EBasePredictionEvents::BPE_StringCommand,
|
||||
EBasePredictionEvents::BPE_Teleport,
|
||||
EBasePredictionEvents::BPE_Diagnostic,
|
||||
];
|
||||
}
|
||||
|
||||
// Note, `Default` is implemented although default value is not 0
|
||||
impl ::std::default::Default for EBasePredictionEvents {
|
||||
fn default() -> Self {
|
||||
EBasePredictionEvents::BPE_StringCommand
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
const _VENT_PROTO_VERSION_CHECK: () = ::steam_vent_proto_common::VERSION_0_5_0;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use crate::networkbasetypes::*;
|
||||
impl ::steam_vent_proto_common::RpcMessage for CPredictionEvent_Teleport {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
}
|
||||
fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.write_to_writer(writer)
|
||||
}
|
||||
fn encode_size(&self) -> usize {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for CPredictionEvent_StringCommand {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
}
|
||||
fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.write_to_writer(writer)
|
||||
}
|
||||
fn encode_size(&self) -> usize {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for CPredictionEvent_Diagnostic {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
}
|
||||
fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.write_to_writer(writer)
|
||||
}
|
||||
fn encode_size(&self) -> usize {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
|
|
@ -447,6 +447,14 @@ pub struct CMsgSteamDatagramRouterPingReply {
|
|||
pub seconds_until_shutdown: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgSteamDatagramRouterPingReply.client_cookie)
|
||||
pub client_cookie: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgSteamDatagramRouterPingReply.recv_tos)
|
||||
pub recv_tos: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgSteamDatagramRouterPingReply.echo_sent_tos)
|
||||
pub echo_sent_tos: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgSteamDatagramRouterPingReply.sent_tos)
|
||||
pub sent_tos: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgSteamDatagramRouterPingReply.echo_request_reply_tos)
|
||||
pub echo_request_reply_tos: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgSteamDatagramRouterPingReply.scoring_penalty_relay_cluster)
|
||||
pub scoring_penalty_relay_cluster: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgSteamDatagramRouterPingReply.flags)
|
||||
|
|
@ -457,6 +465,8 @@ pub struct CMsgSteamDatagramRouterPingReply {
|
|||
pub alt_addresses: ::std::vec::Vec<cmsg_steam_datagram_router_ping_reply::AltAddress>,
|
||||
// @@protoc_insertion_point(field:CMsgSteamDatagramRouterPingReply.dummy_pad)
|
||||
pub dummy_pad: ::std::option::Option<::std::vec::Vec<u8>>,
|
||||
// @@protoc_insertion_point(field:CMsgSteamDatagramRouterPingReply.dummy_varint)
|
||||
pub dummy_varint: ::std::option::Option<u64>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CMsgSteamDatagramRouterPingReply.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
|
|
@ -606,6 +616,82 @@ impl CMsgSteamDatagramRouterPingReply {
|
|||
self.client_cookie = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 recv_tos = 16;
|
||||
|
||||
pub fn recv_tos(&self) -> u32 {
|
||||
self.recv_tos.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_recv_tos(&mut self) {
|
||||
self.recv_tos = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_recv_tos(&self) -> bool {
|
||||
self.recv_tos.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_recv_tos(&mut self, v: u32) {
|
||||
self.recv_tos = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 echo_sent_tos = 17;
|
||||
|
||||
pub fn echo_sent_tos(&self) -> u32 {
|
||||
self.echo_sent_tos.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_echo_sent_tos(&mut self) {
|
||||
self.echo_sent_tos = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_echo_sent_tos(&self) -> bool {
|
||||
self.echo_sent_tos.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_echo_sent_tos(&mut self, v: u32) {
|
||||
self.echo_sent_tos = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 sent_tos = 18;
|
||||
|
||||
pub fn sent_tos(&self) -> u32 {
|
||||
self.sent_tos.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_sent_tos(&mut self) {
|
||||
self.sent_tos = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_sent_tos(&self) -> bool {
|
||||
self.sent_tos.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_sent_tos(&mut self, v: u32) {
|
||||
self.sent_tos = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 echo_request_reply_tos = 19;
|
||||
|
||||
pub fn echo_request_reply_tos(&self) -> u32 {
|
||||
self.echo_request_reply_tos.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_echo_request_reply_tos(&mut self) {
|
||||
self.echo_request_reply_tos = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_echo_request_reply_tos(&self) -> bool {
|
||||
self.echo_request_reply_tos.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_echo_request_reply_tos(&mut self, v: u32) {
|
||||
self.echo_request_reply_tos = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 scoring_penalty_relay_cluster = 9;
|
||||
|
||||
pub fn scoring_penalty_relay_cluster(&self) -> u32 {
|
||||
|
|
@ -679,6 +765,25 @@ impl CMsgSteamDatagramRouterPingReply {
|
|||
pub fn take_dummy_pad(&mut self) -> ::std::vec::Vec<u8> {
|
||||
self.dummy_pad.take().unwrap_or_else(|| ::std::vec::Vec::new())
|
||||
}
|
||||
|
||||
// optional uint64 dummy_varint = 100;
|
||||
|
||||
pub fn dummy_varint(&self) -> u64 {
|
||||
self.dummy_varint.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_dummy_varint(&mut self) {
|
||||
self.dummy_varint = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_dummy_varint(&self) -> bool {
|
||||
self.dummy_varint.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_dummy_varint(&mut self, v: u64) {
|
||||
self.dummy_varint = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramRouterPingReply {
|
||||
|
|
@ -736,6 +841,18 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramRouterPin
|
|||
69 => {
|
||||
self.client_cookie = ::std::option::Option::Some(is.read_fixed32()?);
|
||||
},
|
||||
128 => {
|
||||
self.recv_tos = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
136 => {
|
||||
self.echo_sent_tos = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
144 => {
|
||||
self.sent_tos = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
152 => {
|
||||
self.echo_request_reply_tos = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
72 => {
|
||||
self.scoring_penalty_relay_cluster = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
|
|
@ -751,6 +868,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramRouterPin
|
|||
794 => {
|
||||
self.dummy_pad = ::std::option::Option::Some(is.read_bytes()?);
|
||||
},
|
||||
800 => {
|
||||
self.dummy_varint = ::std::option::Option::Some(is.read_uint64()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
|
|
@ -788,6 +908,18 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramRouterPin
|
|||
if let Some(v) = self.client_cookie {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
if let Some(v) = self.recv_tos {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(16, v);
|
||||
}
|
||||
if let Some(v) = self.echo_sent_tos {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(17, v);
|
||||
}
|
||||
if let Some(v) = self.sent_tos {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(18, v);
|
||||
}
|
||||
if let Some(v) = self.echo_request_reply_tos {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(19, v);
|
||||
}
|
||||
if let Some(v) = self.scoring_penalty_relay_cluster {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(9, v);
|
||||
}
|
||||
|
|
@ -805,6 +937,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramRouterPin
|
|||
if let Some(v) = self.dummy_pad.as_ref() {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::bytes_size(99, &v);
|
||||
}
|
||||
if let Some(v) = self.dummy_varint {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint64_size(100, v);
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
|
|
@ -836,6 +971,18 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramRouterPin
|
|||
if let Some(v) = self.client_cookie {
|
||||
os.write_fixed32(8, v)?;
|
||||
}
|
||||
if let Some(v) = self.recv_tos {
|
||||
os.write_uint32(16, v)?;
|
||||
}
|
||||
if let Some(v) = self.echo_sent_tos {
|
||||
os.write_uint32(17, v)?;
|
||||
}
|
||||
if let Some(v) = self.sent_tos {
|
||||
os.write_uint32(18, v)?;
|
||||
}
|
||||
if let Some(v) = self.echo_request_reply_tos {
|
||||
os.write_uint32(19, v)?;
|
||||
}
|
||||
if let Some(v) = self.scoring_penalty_relay_cluster {
|
||||
os.write_uint32(9, v)?;
|
||||
}
|
||||
|
|
@ -851,6 +998,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramRouterPin
|
|||
if let Some(v) = self.dummy_pad.as_ref() {
|
||||
os.write_bytes(99, v)?;
|
||||
}
|
||||
if let Some(v) = self.dummy_varint {
|
||||
os.write_uint64(100, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
|
@ -879,11 +1029,16 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramRouterPin
|
|||
self.challenge = ::std::option::Option::None;
|
||||
self.seconds_until_shutdown = ::std::option::Option::None;
|
||||
self.client_cookie = ::std::option::Option::None;
|
||||
self.recv_tos = ::std::option::Option::None;
|
||||
self.echo_sent_tos = ::std::option::Option::None;
|
||||
self.sent_tos = ::std::option::Option::None;
|
||||
self.echo_request_reply_tos = ::std::option::Option::None;
|
||||
self.scoring_penalty_relay_cluster = ::std::option::Option::None;
|
||||
self.flags = ::std::option::Option::None;
|
||||
self.route_exceptions.clear();
|
||||
self.alt_addresses.clear();
|
||||
self.dummy_pad = ::std::option::Option::None;
|
||||
self.dummy_varint = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
|
|
@ -900,11 +1055,16 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramRouterPin
|
|||
challenge: ::std::option::Option::None,
|
||||
seconds_until_shutdown: ::std::option::Option::None,
|
||||
client_cookie: ::std::option::Option::None,
|
||||
recv_tos: ::std::option::Option::None,
|
||||
echo_sent_tos: ::std::option::Option::None,
|
||||
sent_tos: ::std::option::Option::None,
|
||||
echo_request_reply_tos: ::std::option::Option::None,
|
||||
scoring_penalty_relay_cluster: ::std::option::Option::None,
|
||||
flags: ::std::option::Option::None,
|
||||
route_exceptions: ::std::vec::Vec::new(),
|
||||
alt_addresses: ::std::vec::Vec::new(),
|
||||
dummy_pad: ::std::option::Option::None,
|
||||
dummy_varint: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
|
|
@ -1350,8 +1510,6 @@ pub mod cmsg_steam_datagram_router_ping_reply {
|
|||
pub enum Protocol {
|
||||
// @@protoc_insertion_point(enum_value:CMsgSteamDatagramRouterPingReply.AltAddress.Protocol.DefaultProtocol)
|
||||
DefaultProtocol = 0,
|
||||
// @@protoc_insertion_point(enum_value:CMsgSteamDatagramRouterPingReply.AltAddress.Protocol.NetworkNext)
|
||||
NetworkNext = 1,
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Enum for Protocol {
|
||||
|
|
@ -1364,7 +1522,6 @@ pub mod cmsg_steam_datagram_router_ping_reply {
|
|||
fn from_i32(value: i32) -> ::std::option::Option<Protocol> {
|
||||
match value {
|
||||
0 => ::std::option::Option::Some(Protocol::DefaultProtocol),
|
||||
1 => ::std::option::Option::Some(Protocol::NetworkNext),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
|
@ -1372,14 +1529,12 @@ pub mod cmsg_steam_datagram_router_ping_reply {
|
|||
fn from_str(str: &str) -> ::std::option::Option<Protocol> {
|
||||
match str {
|
||||
"DefaultProtocol" => ::std::option::Option::Some(Protocol::DefaultProtocol),
|
||||
"NetworkNext" => ::std::option::Option::Some(Protocol::NetworkNext),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
||||
const VALUES: &'static [Protocol] = &[
|
||||
Protocol::DefaultProtocol,
|
||||
Protocol::NetworkNext,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -3072,6 +3227,230 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramNoSession
|
|||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CMsgTOSTreatment)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CMsgTOSTreatment {
|
||||
// message fields
|
||||
// @@protoc_insertion_point(field:CMsgTOSTreatment.l4s_detect)
|
||||
pub l4s_detect: ::std::option::Option<::std::string::String>,
|
||||
// @@protoc_insertion_point(field:CMsgTOSTreatment.up_ecn1)
|
||||
pub up_ecn1: ::std::option::Option<::std::string::String>,
|
||||
// @@protoc_insertion_point(field:CMsgTOSTreatment.down_dscp45)
|
||||
pub down_dscp45: ::std::option::Option<::std::string::String>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CMsgTOSTreatment.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
}
|
||||
|
||||
impl<'a> ::std::default::Default for &'a CMsgTOSTreatment {
|
||||
fn default() -> &'a CMsgTOSTreatment {
|
||||
<CMsgTOSTreatment as ::steam_vent_proto_common::protobuf::Message>::default_instance()
|
||||
}
|
||||
}
|
||||
|
||||
impl CMsgTOSTreatment {
|
||||
pub fn new() -> CMsgTOSTreatment {
|
||||
::std::default::Default::default()
|
||||
}
|
||||
|
||||
// optional string l4s_detect = 1;
|
||||
|
||||
pub fn l4s_detect(&self) -> &str {
|
||||
match self.l4s_detect.as_ref() {
|
||||
Some(v) => v,
|
||||
None => "",
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clear_l4s_detect(&mut self) {
|
||||
self.l4s_detect = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_l4s_detect(&self) -> bool {
|
||||
self.l4s_detect.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_l4s_detect(&mut self, v: ::std::string::String) {
|
||||
self.l4s_detect = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// Mutable pointer to the field.
|
||||
// If field is not initialized, it is initialized with default value first.
|
||||
pub fn mut_l4s_detect(&mut self) -> &mut ::std::string::String {
|
||||
if self.l4s_detect.is_none() {
|
||||
self.l4s_detect = ::std::option::Option::Some(::std::string::String::new());
|
||||
}
|
||||
self.l4s_detect.as_mut().unwrap()
|
||||
}
|
||||
|
||||
// Take field
|
||||
pub fn take_l4s_detect(&mut self) -> ::std::string::String {
|
||||
self.l4s_detect.take().unwrap_or_else(|| ::std::string::String::new())
|
||||
}
|
||||
|
||||
// optional string up_ecn1 = 2;
|
||||
|
||||
pub fn up_ecn1(&self) -> &str {
|
||||
match self.up_ecn1.as_ref() {
|
||||
Some(v) => v,
|
||||
None => "",
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clear_up_ecn1(&mut self) {
|
||||
self.up_ecn1 = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_up_ecn1(&self) -> bool {
|
||||
self.up_ecn1.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_up_ecn1(&mut self, v: ::std::string::String) {
|
||||
self.up_ecn1 = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// Mutable pointer to the field.
|
||||
// If field is not initialized, it is initialized with default value first.
|
||||
pub fn mut_up_ecn1(&mut self) -> &mut ::std::string::String {
|
||||
if self.up_ecn1.is_none() {
|
||||
self.up_ecn1 = ::std::option::Option::Some(::std::string::String::new());
|
||||
}
|
||||
self.up_ecn1.as_mut().unwrap()
|
||||
}
|
||||
|
||||
// Take field
|
||||
pub fn take_up_ecn1(&mut self) -> ::std::string::String {
|
||||
self.up_ecn1.take().unwrap_or_else(|| ::std::string::String::new())
|
||||
}
|
||||
|
||||
// optional string down_dscp45 = 3;
|
||||
|
||||
pub fn down_dscp45(&self) -> &str {
|
||||
match self.down_dscp45.as_ref() {
|
||||
Some(v) => v,
|
||||
None => "",
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clear_down_dscp45(&mut self) {
|
||||
self.down_dscp45 = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_down_dscp45(&self) -> bool {
|
||||
self.down_dscp45.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_down_dscp45(&mut self, v: ::std::string::String) {
|
||||
self.down_dscp45 = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// Mutable pointer to the field.
|
||||
// If field is not initialized, it is initialized with default value first.
|
||||
pub fn mut_down_dscp45(&mut self) -> &mut ::std::string::String {
|
||||
if self.down_dscp45.is_none() {
|
||||
self.down_dscp45 = ::std::option::Option::Some(::std::string::String::new());
|
||||
}
|
||||
self.down_dscp45.as_mut().unwrap()
|
||||
}
|
||||
|
||||
// Take field
|
||||
pub fn take_down_dscp45(&mut self) -> ::std::string::String {
|
||||
self.down_dscp45.take().unwrap_or_else(|| ::std::string::String::new())
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CMsgTOSTreatment {
|
||||
const NAME: &'static str = "CMsgTOSTreatment";
|
||||
|
||||
fn is_initialized(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn merge_from(&mut self, is: &mut ::steam_vent_proto_common::protobuf::CodedInputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
||||
match tag {
|
||||
10 => {
|
||||
self.l4s_detect = ::std::option::Option::Some(is.read_string()?);
|
||||
},
|
||||
18 => {
|
||||
self.up_ecn1 = ::std::option::Option::Some(is.read_string()?);
|
||||
},
|
||||
26 => {
|
||||
self.down_dscp45 = ::std::option::Option::Some(is.read_string()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
};
|
||||
}
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
// Compute sizes of nested messages
|
||||
#[allow(unused_variables)]
|
||||
fn compute_size(&self) -> u64 {
|
||||
let mut my_size = 0;
|
||||
if let Some(v) = self.l4s_detect.as_ref() {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::string_size(1, &v);
|
||||
}
|
||||
if let Some(v) = self.up_ecn1.as_ref() {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::string_size(2, &v);
|
||||
}
|
||||
if let Some(v) = self.down_dscp45.as_ref() {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::string_size(3, &v);
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
}
|
||||
|
||||
fn write_to_with_cached_sizes(&self, os: &mut ::steam_vent_proto_common::protobuf::CodedOutputStream<'_>) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
if let Some(v) = self.l4s_detect.as_ref() {
|
||||
os.write_string(1, v)?;
|
||||
}
|
||||
if let Some(v) = self.up_ecn1.as_ref() {
|
||||
os.write_string(2, v)?;
|
||||
}
|
||||
if let Some(v) = self.down_dscp45.as_ref() {
|
||||
os.write_string(3, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
||||
fn special_fields(&self) -> &::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&self.special_fields
|
||||
}
|
||||
|
||||
fn mut_special_fields(&mut self) -> &mut ::steam_vent_proto_common::protobuf::SpecialFields {
|
||||
&mut self.special_fields
|
||||
}
|
||||
|
||||
fn new() -> CMsgTOSTreatment {
|
||||
CMsgTOSTreatment::new()
|
||||
}
|
||||
|
||||
fn clear(&mut self) {
|
||||
self.l4s_detect = ::std::option::Option::None;
|
||||
self.up_ecn1 = ::std::option::Option::None;
|
||||
self.down_dscp45 = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
fn default_instance() -> &'static CMsgTOSTreatment {
|
||||
static instance: CMsgTOSTreatment = CMsgTOSTreatment {
|
||||
l4s_detect: ::std::option::Option::None,
|
||||
up_ecn1: ::std::option::Option::None,
|
||||
down_dscp45: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
}
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(message:CMsgSteamDatagramClientPingSampleRequest)
|
||||
#[derive(PartialEq,Clone,Default,Debug)]
|
||||
pub struct CMsgSteamDatagramClientPingSampleRequest {
|
||||
|
|
@ -3189,6 +3568,8 @@ pub struct CMsgSteamDatagramClientPingSampleReply {
|
|||
pub connection_id: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CMsgSteamDatagramClientPingSampleReply.relay_override_active)
|
||||
pub relay_override_active: ::std::option::Option<bool>,
|
||||
// @@protoc_insertion_point(field:CMsgSteamDatagramClientPingSampleReply.tos)
|
||||
pub tos: ::steam_vent_proto_common::protobuf::MessageField<CMsgTOSTreatment>,
|
||||
// @@protoc_insertion_point(field:CMsgSteamDatagramClientPingSampleReply.pops)
|
||||
pub pops: ::std::vec::Vec<cmsg_steam_datagram_client_ping_sample_reply::POP>,
|
||||
// @@protoc_insertion_point(field:CMsgSteamDatagramClientPingSampleReply.legacy_data_centers)
|
||||
|
|
@ -3264,6 +3645,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramClientPin
|
|||
40 => {
|
||||
self.relay_override_active = ::std::option::Option::Some(is.read_bool()?);
|
||||
},
|
||||
50 => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.tos)?;
|
||||
},
|
||||
18 => {
|
||||
self.pops.push(is.read_message()?);
|
||||
},
|
||||
|
|
@ -3288,6 +3672,10 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramClientPin
|
|||
if let Some(v) = self.relay_override_active {
|
||||
my_size += 1 + 1;
|
||||
}
|
||||
if let Some(v) = self.tos.as_ref() {
|
||||
let len = v.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
}
|
||||
for value in &self.pops {
|
||||
let len = value.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
|
|
@ -3308,6 +3696,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramClientPin
|
|||
if let Some(v) = self.relay_override_active {
|
||||
os.write_bool(5, v)?;
|
||||
}
|
||||
if let Some(v) = self.tos.as_ref() {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(6, v, os)?;
|
||||
}
|
||||
for v in &self.pops {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
|
||||
};
|
||||
|
|
@ -3333,6 +3724,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramClientPin
|
|||
fn clear(&mut self) {
|
||||
self.connection_id = ::std::option::Option::None;
|
||||
self.relay_override_active = ::std::option::Option::None;
|
||||
self.tos.clear();
|
||||
self.pops.clear();
|
||||
self.legacy_data_centers.clear();
|
||||
self.special_fields.clear();
|
||||
|
|
@ -3342,6 +3734,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CMsgSteamDatagramClientPin
|
|||
static instance: CMsgSteamDatagramClientPingSampleReply = CMsgSteamDatagramClientPingSampleReply {
|
||||
connection_id: ::std::option::Option::None,
|
||||
relay_override_active: ::std::option::Option::None,
|
||||
tos: ::steam_vent_proto_common::protobuf::MessageField::none(),
|
||||
pops: ::std::vec::Vec::new(),
|
||||
legacy_data_centers: ::std::vec::Vec::new(),
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
|
|
@ -13638,6 +14031,19 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgSteamDatagramNoSessionRelayTo
|
|||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for CMsgTOSTreatment {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
}
|
||||
fn write(&self, writer: &mut dyn std::io::Write) -> ::steam_vent_proto_common::protobuf::Result<()> {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.write_to_writer(writer)
|
||||
}
|
||||
fn encode_size(&self) -> usize {
|
||||
use ::steam_vent_proto_common::protobuf::Message;
|
||||
self.compute_size() as usize
|
||||
}
|
||||
}
|
||||
impl ::steam_vent_proto_common::RpcMessage for CMsgSteamDatagramClientPingSampleRequest {
|
||||
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
|
||||
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -212,6 +212,10 @@ pub struct CSubtickMoveStep {
|
|||
pub analog_forward_delta: ::std::option::Option<f32>,
|
||||
// @@protoc_insertion_point(field:CSubtickMoveStep.analog_left_delta)
|
||||
pub analog_left_delta: ::std::option::Option<f32>,
|
||||
// @@protoc_insertion_point(field:CSubtickMoveStep.pitch_delta)
|
||||
pub pitch_delta: ::std::option::Option<f32>,
|
||||
// @@protoc_insertion_point(field:CSubtickMoveStep.yaw_delta)
|
||||
pub yaw_delta: ::std::option::Option<f32>,
|
||||
// special fields
|
||||
// @@protoc_insertion_point(special_field:CSubtickMoveStep.special_fields)
|
||||
pub special_fields: ::steam_vent_proto_common::protobuf::SpecialFields,
|
||||
|
|
@ -322,6 +326,44 @@ impl CSubtickMoveStep {
|
|||
pub fn set_analog_left_delta(&mut self, v: f32) {
|
||||
self.analog_left_delta = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional float pitch_delta = 8;
|
||||
|
||||
pub fn pitch_delta(&self) -> f32 {
|
||||
self.pitch_delta.unwrap_or(0.)
|
||||
}
|
||||
|
||||
pub fn clear_pitch_delta(&mut self) {
|
||||
self.pitch_delta = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_pitch_delta(&self) -> bool {
|
||||
self.pitch_delta.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_pitch_delta(&mut self, v: f32) {
|
||||
self.pitch_delta = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional float yaw_delta = 9;
|
||||
|
||||
pub fn yaw_delta(&self) -> f32 {
|
||||
self.yaw_delta.unwrap_or(0.)
|
||||
}
|
||||
|
||||
pub fn clear_yaw_delta(&mut self) {
|
||||
self.yaw_delta = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_yaw_delta(&self) -> bool {
|
||||
self.yaw_delta.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_yaw_delta(&mut self, v: f32) {
|
||||
self.yaw_delta = ::std::option::Option::Some(v);
|
||||
}
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Message for CSubtickMoveStep {
|
||||
|
|
@ -349,6 +391,12 @@ impl ::steam_vent_proto_common::protobuf::Message for CSubtickMoveStep {
|
|||
45 => {
|
||||
self.analog_left_delta = ::std::option::Option::Some(is.read_float()?);
|
||||
},
|
||||
69 => {
|
||||
self.pitch_delta = ::std::option::Option::Some(is.read_float()?);
|
||||
},
|
||||
77 => {
|
||||
self.yaw_delta = ::std::option::Option::Some(is.read_float()?);
|
||||
},
|
||||
tag => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
||||
},
|
||||
|
|
@ -376,6 +424,12 @@ impl ::steam_vent_proto_common::protobuf::Message for CSubtickMoveStep {
|
|||
if let Some(v) = self.analog_left_delta {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
if let Some(v) = self.pitch_delta {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
if let Some(v) = self.yaw_delta {
|
||||
my_size += 1 + 4;
|
||||
}
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
||||
self.special_fields.cached_size().set(my_size as u32);
|
||||
my_size
|
||||
|
|
@ -397,6 +451,12 @@ impl ::steam_vent_proto_common::protobuf::Message for CSubtickMoveStep {
|
|||
if let Some(v) = self.analog_left_delta {
|
||||
os.write_float(5, v)?;
|
||||
}
|
||||
if let Some(v) = self.pitch_delta {
|
||||
os.write_float(8, v)?;
|
||||
}
|
||||
if let Some(v) = self.yaw_delta {
|
||||
os.write_float(9, v)?;
|
||||
}
|
||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
||||
::std::result::Result::Ok(())
|
||||
}
|
||||
|
|
@ -419,6 +479,8 @@ impl ::steam_vent_proto_common::protobuf::Message for CSubtickMoveStep {
|
|||
self.when = ::std::option::Option::None;
|
||||
self.analog_forward_delta = ::std::option::Option::None;
|
||||
self.analog_left_delta = ::std::option::Option::None;
|
||||
self.pitch_delta = ::std::option::Option::None;
|
||||
self.yaw_delta = ::std::option::Option::None;
|
||||
self.special_fields.clear();
|
||||
}
|
||||
|
||||
|
|
@ -429,6 +491,8 @@ impl ::steam_vent_proto_common::protobuf::Message for CSubtickMoveStep {
|
|||
when: ::std::option::Option::None,
|
||||
analog_forward_delta: ::std::option::Option::None,
|
||||
analog_left_delta: ::std::option::Option::None,
|
||||
pitch_delta: ::std::option::Option::None,
|
||||
yaw_delta: ::std::option::Option::None,
|
||||
special_fields: ::steam_vent_proto_common::protobuf::SpecialFields::new(),
|
||||
};
|
||||
&instance
|
||||
|
|
@ -443,6 +507,8 @@ pub struct CBaseUserCmdPB {
|
|||
pub legacy_command_number: ::std::option::Option<i32>,
|
||||
// @@protoc_insertion_point(field:CBaseUserCmdPB.client_tick)
|
||||
pub client_tick: ::std::option::Option<i32>,
|
||||
// @@protoc_insertion_point(field:CBaseUserCmdPB.prediction_offset_ticks_x256)
|
||||
pub prediction_offset_ticks_x256: ::std::option::Option<u32>,
|
||||
// @@protoc_insertion_point(field:CBaseUserCmdPB.buttons_pb)
|
||||
pub buttons_pb: ::steam_vent_proto_common::protobuf::MessageField<CInButtonStatePB>,
|
||||
// @@protoc_insertion_point(field:CBaseUserCmdPB.viewangles)
|
||||
|
|
@ -527,6 +593,25 @@ impl CBaseUserCmdPB {
|
|||
self.client_tick = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional uint32 prediction_offset_ticks_x256 = 17;
|
||||
|
||||
pub fn prediction_offset_ticks_x256(&self) -> u32 {
|
||||
self.prediction_offset_ticks_x256.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn clear_prediction_offset_ticks_x256(&mut self) {
|
||||
self.prediction_offset_ticks_x256 = ::std::option::Option::None;
|
||||
}
|
||||
|
||||
pub fn has_prediction_offset_ticks_x256(&self) -> bool {
|
||||
self.prediction_offset_ticks_x256.is_some()
|
||||
}
|
||||
|
||||
// Param is passed by value, moved
|
||||
pub fn set_prediction_offset_ticks_x256(&mut self, v: u32) {
|
||||
self.prediction_offset_ticks_x256 = ::std::option::Option::Some(v);
|
||||
}
|
||||
|
||||
// optional float forwardmove = 5;
|
||||
|
||||
pub fn forwardmove(&self) -> f32 {
|
||||
|
|
@ -789,6 +874,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CBaseUserCmdPB {
|
|||
16 => {
|
||||
self.client_tick = ::std::option::Option::Some(is.read_int32()?);
|
||||
},
|
||||
136 => {
|
||||
self.prediction_offset_ticks_x256 = ::std::option::Option::Some(is.read_uint32()?);
|
||||
},
|
||||
26 => {
|
||||
::steam_vent_proto_common::protobuf::rt::read_singular_message_into_field(is, &mut self.buttons_pb)?;
|
||||
},
|
||||
|
|
@ -852,6 +940,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CBaseUserCmdPB {
|
|||
if let Some(v) = self.client_tick {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::int32_size(2, v);
|
||||
}
|
||||
if let Some(v) = self.prediction_offset_ticks_x256 {
|
||||
my_size += ::steam_vent_proto_common::protobuf::rt::uint32_size(17, v);
|
||||
}
|
||||
if let Some(v) = self.buttons_pb.as_ref() {
|
||||
let len = v.compute_size();
|
||||
my_size += 1 + ::steam_vent_proto_common::protobuf::rt::compute_raw_varint64_size(len) + len;
|
||||
|
|
@ -912,6 +1003,9 @@ impl ::steam_vent_proto_common::protobuf::Message for CBaseUserCmdPB {
|
|||
if let Some(v) = self.client_tick {
|
||||
os.write_int32(2, v)?;
|
||||
}
|
||||
if let Some(v) = self.prediction_offset_ticks_x256 {
|
||||
os.write_uint32(17, v)?;
|
||||
}
|
||||
if let Some(v) = self.buttons_pb.as_ref() {
|
||||
::steam_vent_proto_common::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
|
||||
}
|
||||
|
|
@ -976,6 +1070,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CBaseUserCmdPB {
|
|||
fn clear(&mut self) {
|
||||
self.legacy_command_number = ::std::option::Option::None;
|
||||
self.client_tick = ::std::option::Option::None;
|
||||
self.prediction_offset_ticks_x256 = ::std::option::Option::None;
|
||||
self.buttons_pb.clear();
|
||||
self.viewangles.clear();
|
||||
self.forwardmove = ::std::option::Option::None;
|
||||
|
|
@ -998,6 +1093,7 @@ impl ::steam_vent_proto_common::protobuf::Message for CBaseUserCmdPB {
|
|||
static instance: CBaseUserCmdPB = CBaseUserCmdPB {
|
||||
legacy_command_number: ::std::option::Option::None,
|
||||
client_tick: ::std::option::Option::None,
|
||||
prediction_offset_ticks_x256: ::std::option::Option::None,
|
||||
buttons_pb: ::steam_vent_proto_common::protobuf::MessageField::none(),
|
||||
viewangles: ::steam_vent_proto_common::protobuf::MessageField::none(),
|
||||
forwardmove: ::std::option::Option::None,
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -25,6 +25,66 @@
|
|||
/// of protobuf runtime.
|
||||
const _PROTOBUF_VERSION_CHECK: () = ::steam_vent_proto_common::protobuf::VERSION_3_5_1;
|
||||
|
||||
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
||||
// @@protoc_insertion_point(enum:EProtoDebugVisiblity)
|
||||
pub enum EProtoDebugVisiblity {
|
||||
// @@protoc_insertion_point(enum_value:EProtoDebugVisiblity.k_EProtoDebugVisibility_Always)
|
||||
k_EProtoDebugVisibility_Always = 0,
|
||||
// @@protoc_insertion_point(enum_value:EProtoDebugVisiblity.k_EProtoDebugVisibility_Server)
|
||||
k_EProtoDebugVisibility_Server = 70,
|
||||
// @@protoc_insertion_point(enum_value:EProtoDebugVisiblity.k_EProtoDebugVisibility_ValveServer)
|
||||
k_EProtoDebugVisibility_ValveServer = 80,
|
||||
// @@protoc_insertion_point(enum_value:EProtoDebugVisiblity.k_EProtoDebugVisibility_GC)
|
||||
k_EProtoDebugVisibility_GC = 90,
|
||||
// @@protoc_insertion_point(enum_value:EProtoDebugVisiblity.k_EProtoDebugVisibility_Never)
|
||||
k_EProtoDebugVisibility_Never = 100,
|
||||
}
|
||||
|
||||
impl ::steam_vent_proto_common::protobuf::Enum for EProtoDebugVisiblity {
|
||||
const NAME: &'static str = "EProtoDebugVisiblity";
|
||||
|
||||
fn value(&self) -> i32 {
|
||||
*self as i32
|
||||
}
|
||||
|
||||
fn from_i32(value: i32) -> ::std::option::Option<EProtoDebugVisiblity> {
|
||||
match value {
|
||||
0 => ::std::option::Option::Some(EProtoDebugVisiblity::k_EProtoDebugVisibility_Always),
|
||||
70 => ::std::option::Option::Some(EProtoDebugVisiblity::k_EProtoDebugVisibility_Server),
|
||||
80 => ::std::option::Option::Some(EProtoDebugVisiblity::k_EProtoDebugVisibility_ValveServer),
|
||||
90 => ::std::option::Option::Some(EProtoDebugVisiblity::k_EProtoDebugVisibility_GC),
|
||||
100 => ::std::option::Option::Some(EProtoDebugVisiblity::k_EProtoDebugVisibility_Never),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
||||
fn from_str(str: &str) -> ::std::option::Option<EProtoDebugVisiblity> {
|
||||
match str {
|
||||
"k_EProtoDebugVisibility_Always" => ::std::option::Option::Some(EProtoDebugVisiblity::k_EProtoDebugVisibility_Always),
|
||||
"k_EProtoDebugVisibility_Server" => ::std::option::Option::Some(EProtoDebugVisiblity::k_EProtoDebugVisibility_Server),
|
||||
"k_EProtoDebugVisibility_ValveServer" => ::std::option::Option::Some(EProtoDebugVisiblity::k_EProtoDebugVisibility_ValveServer),
|
||||
"k_EProtoDebugVisibility_GC" => ::std::option::Option::Some(EProtoDebugVisiblity::k_EProtoDebugVisibility_GC),
|
||||
"k_EProtoDebugVisibility_Never" => ::std::option::Option::Some(EProtoDebugVisiblity::k_EProtoDebugVisibility_Never),
|
||||
_ => ::std::option::Option::None
|
||||
}
|
||||
}
|
||||
|
||||
const VALUES: &'static [EProtoDebugVisiblity] = &[
|
||||
EProtoDebugVisiblity::k_EProtoDebugVisibility_Always,
|
||||
EProtoDebugVisiblity::k_EProtoDebugVisibility_Server,
|
||||
EProtoDebugVisiblity::k_EProtoDebugVisibility_ValveServer,
|
||||
EProtoDebugVisiblity::k_EProtoDebugVisibility_GC,
|
||||
EProtoDebugVisiblity::k_EProtoDebugVisibility_Never,
|
||||
];
|
||||
}
|
||||
|
||||
impl ::std::default::Default for EProtoDebugVisiblity {
|
||||
fn default() -> Self {
|
||||
EProtoDebugVisiblity::k_EProtoDebugVisibility_Always
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Extension generation with lite runtime is not supported
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue