mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-10-08 02:00:02 +08:00
📦 Game Update 13965
This commit is contained in:
@@ -22,9 +22,9 @@ impl FileBuilder for CppFileBuilder {
|
||||
name: &str,
|
||||
comment: Option<&str>,
|
||||
) -> Result<()> {
|
||||
let comment = comment.map_or(String::new(), |c| format!("// {}", c));
|
||||
let comment = comment.map_or(String::new(), |c| format!(" // {}", c));
|
||||
|
||||
write!(output, "namespace {} {{ {}\n", name, comment)
|
||||
write!(output, "namespace {} {{{}\n", name, comment)
|
||||
}
|
||||
|
||||
fn write_variable(
|
||||
@@ -37,11 +37,11 @@ impl FileBuilder for CppFileBuilder {
|
||||
) -> Result<()> {
|
||||
let indentation = " ".repeat(indentation.unwrap_or(4));
|
||||
|
||||
let comment = comment.map_or(String::new(), |c| format!("// {}", c));
|
||||
let comment = comment.map_or(String::new(), |c| format!(" // {}", c));
|
||||
|
||||
write!(
|
||||
output,
|
||||
"{}constexpr std::ptrdiff_t {} = {:#X}; {}\n",
|
||||
"{}constexpr std::ptrdiff_t {} = {:#X};{}\n",
|
||||
indentation, name, value, comment
|
||||
)
|
||||
}
|
||||
|
@@ -22,9 +22,9 @@ impl FileBuilder for CSharpFileBuilder {
|
||||
name: &str,
|
||||
comment: Option<&str>,
|
||||
) -> Result<()> {
|
||||
let comment = comment.map_or(String::new(), |c| format!("// {}", c));
|
||||
let comment = comment.map_or(String::new(), |c| format!(" // {}", c));
|
||||
|
||||
write!(output, "public static class {} {{ {}\n", name, comment)
|
||||
write!(output, "public static class {} {{{}\n", name, comment)
|
||||
}
|
||||
|
||||
fn write_variable(
|
||||
@@ -37,11 +37,11 @@ impl FileBuilder for CSharpFileBuilder {
|
||||
) -> Result<()> {
|
||||
let indentation = " ".repeat(indentation.unwrap_or(4));
|
||||
|
||||
let comment = comment.map_or(String::new(), |c| format!("// {}", c));
|
||||
let comment = comment.map_or(String::new(), |c| format!(" // {}", c));
|
||||
|
||||
write!(
|
||||
output,
|
||||
"{}public const nint {} = {:#X}; {}\n",
|
||||
"{}public const nint {} = {:#X};{}\n",
|
||||
indentation, name, value, comment
|
||||
)
|
||||
}
|
||||
|
@@ -22,9 +22,9 @@ impl FileBuilder for PythonFileBuilder {
|
||||
name: &str,
|
||||
comment: Option<&str>,
|
||||
) -> Result<()> {
|
||||
let comment = comment.map_or(String::new(), |c| format!("# {}", c));
|
||||
let comment = comment.map_or(String::new(), |c| format!(" # {}", c));
|
||||
|
||||
write!(output, "class {}: {}\n", name, comment)
|
||||
write!(output, "class {}:{}\n", name, comment)
|
||||
}
|
||||
|
||||
fn write_variable(
|
||||
@@ -37,11 +37,11 @@ impl FileBuilder for PythonFileBuilder {
|
||||
) -> Result<()> {
|
||||
let indentation = " ".repeat(indentation.unwrap_or(4));
|
||||
|
||||
let comment = comment.map_or(String::new(), |c| format!("# {}", c));
|
||||
let comment = comment.map_or(String::new(), |c| format!(" # {}", c));
|
||||
|
||||
write!(
|
||||
output,
|
||||
"{}{} = {:#X} {}\n",
|
||||
"{}{} = {:#X}{}\n",
|
||||
indentation, name, value, comment
|
||||
)
|
||||
}
|
||||
|
@@ -25,9 +25,9 @@ impl FileBuilder for RustFileBuilder {
|
||||
name: &str,
|
||||
comment: Option<&str>,
|
||||
) -> Result<()> {
|
||||
let comment = comment.map_or(String::new(), |c| format!("// {}", c));
|
||||
let comment = comment.map_or(String::new(), |c| format!(" // {}", c));
|
||||
|
||||
write!(output, "pub mod {} {{ {}\n", name, comment)
|
||||
write!(output, "pub mod {} {{{}\n", name, comment)
|
||||
}
|
||||
|
||||
fn write_variable(
|
||||
@@ -40,11 +40,11 @@ impl FileBuilder for RustFileBuilder {
|
||||
) -> Result<()> {
|
||||
let indentation = " ".repeat(indentation.unwrap_or(4));
|
||||
|
||||
let comment = comment.map_or(String::new(), |c| format!("// {}", c));
|
||||
let comment = comment.map_or(String::new(), |c| format!(" // {}", c));
|
||||
|
||||
write!(
|
||||
output,
|
||||
"{}pub const {}: usize = {:#X}; {}\n",
|
||||
"{}pub const {}: usize = {:#X};{}\n",
|
||||
indentation, name, value, comment
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user