📦 Game Update 13965

This commit is contained in:
a2x
2023-10-26 16:40:24 +10:00
parent 239c872b65
commit 9a9af96afd
83 changed files with 600 additions and 545 deletions

View File

@@ -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
)
}

View File

@@ -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
)
}

View File

@@ -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
)
}

View File

@@ -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
)
}