diff --git a/generator/native_generator/main.py b/generator/native_generator/main.py index a7bbf15c9..ace46d3e9 100644 --- a/generator/native_generator/main.py +++ b/generator/native_generator/main.py @@ -51,7 +51,7 @@ def __init__(self): def add_line(self, text: str = ""): if text.strip(): - self.lines.append(" " * self.indent_level + text) + self.lines.append(" " * self.indent_level + text) else: self.lines.append("") @@ -62,15 +62,14 @@ def dedent(self): self.indent_level = max(0, self.indent_level - 1) def add_block(self, header: str, content_func): - self.add_line(header) - self.add_line("{") + self.add_line(header + " {") self.indent() content_func() self.dedent() self.add_line("}") def get_code(self) -> str: - return "\r\n".join(self.lines) + return "\n".join(self.lines) def split_by_last_dot(value: str): @@ -95,6 +94,7 @@ def parse_native(lines: list[str]): writer.add_line("#pragma warning disable CS0649") writer.add_line("#pragma warning disable CS0169") writer.add_line() + writer.add_line("using System.Buffers;") writer.add_line("using System.Text;") writer.add_line("using System.Threading;") writer.add_line("using SwiftlyS2.Shared.Natives;") @@ -158,68 +158,24 @@ def write_method_content(): if is_marked_sync: writer.add_block("if (Thread.CurrentThread.ManagedThreadId != _MainThreadID)", lambda: writer.add_line('throw new InvalidOperationException("This method can only be called from the main thread.");')) - string_params = [n for t, n in param_signatures if t == "string"] - bytes_params = [n for t, n in param_signatures if t == "byte[]"] - - for param in bytes_params: - writer.add_line(f"var {param}Length = {param}.Length;") - - if not string_params: - fixed_blocks = [] - for param in bytes_params: - fixed_blocks.append(f"fixed (byte* {param}BufferPtr = {param})") - - def write_simple_call(): - call_args = [] - for t, n in param_signatures: - if t == "byte[]": - call_args.extend([f"{n}BufferPtr", f"{n}Length"]) - elif t == "bool": - call_args.append(f"{n} ? (byte)1 : (byte)0") - else: - call_args.append(n) - - if is_buffer_return(return_type): - first_call_args = ["null"] + call_args - writer.add_line(f"var ret = _{function_name}({', '.join(first_call_args)});") - if return_type == "string": - writer.add_line("var retBuffer = new byte[ret + 1];") - else: - writer.add_line("var retBuffer = new byte[ret];") - - def write_ret_fixed(): - second_call_args = ["retBufferPtr"] + call_args - writer.add_line(f"ret = _{function_name}({', '.join(second_call_args)});") - if return_type == "string": - writer.add_line("return Encoding.UTF8.GetString(retBufferPtr, ret);") - else: - writer.add_line("var retBytes = new byte[ret];") - writer.add_line("for (int i = 0; i < ret; i++) retBytes[i] = retBufferPtr[i];") - writer.add_line("return retBytes;") - - writer.add_block("fixed (byte* retBufferPtr = retBuffer)", write_ret_fixed) - else: - if return_type == "void": - writer.add_line(f"_{function_name}({', '.join(call_args)});") - else: - writer.add_line(f"var ret = _{function_name}({', '.join(call_args)});") - writer.add_line("return ret == 1;" if return_type == "bool" else "return ret;") - - def write_with_fixed_blocks(blocks, index=0): - if index < len(blocks): - writer.add_block(blocks[index], lambda: write_with_fixed_blocks(blocks, index + 1)) - else: - write_simple_call() - - if fixed_blocks: - write_with_fixed_blocks(fixed_blocks) - else: - write_simple_call() - return - - for param in string_params: - writer.add_line(f"byte[] {param}Buffer = Encoding.UTF8.GetBytes({param} + \"\\0\");") + string_params = [] + bytes_params = [] + pool_declared = False + for t, n in param_signatures: + if t == "string": + if not pool_declared: + writer.add_line("var pool = ArrayPool.Shared;") + pool_declared = True + writer.add_line(f"var {n}Length = Encoding.UTF8.GetByteCount({n});") + writer.add_line(f"var {n}Buffer = pool.Rent({n}Length + 1);") + writer.add_line(f"Encoding.UTF8.GetBytes({n}, {n}Buffer);") + writer.add_line(f"{n}Buffer[{n}Length] = 0;") + string_params.append(n) + elif t == "byte[]": + writer.add_line(f"var {n}Length = {n}.Length;") + bytes_params.append(n) + fixed_blocks = [] for param in string_params: fixed_blocks.append(f"fixed (byte* {param}BufferPtr = {param}Buffer)") @@ -228,42 +184,77 @@ def write_with_fixed_blocks(blocks, index=0): def write_native_call(): call_args = [] - for t, n in param_signatures: - if t == "string": - call_args.append(f"{n}BufferPtr") - elif t == "byte[]": - call_args.extend([f"{n}BufferPtr", f"{n}Length"]) - elif t == "bool": - call_args.append(f"{n} ? (byte)1 : (byte)0") - else: - call_args.append(n) if is_buffer_return(return_type): - first_call_args = ["null"] + call_args + first_call_args = ["null"] + for t, n in param_signatures: + if t == "string": + first_call_args.append(f"{n}BufferPtr") + elif t == "byte[]": + first_call_args.extend([f"{n}BufferPtr", f"{n}Length"]) + elif t == "bool": + first_call_args.append(f"{n} ? (byte)1 : (byte)0") + else: + first_call_args.append(n) + writer.add_line(f"var ret = _{function_name}({', '.join(first_call_args)});") - if return_type == "string": - writer.add_line("var retBuffer = new byte[ret + 1];") - else: - writer.add_line("var retBuffer = new byte[ret];") + + if not pool_declared: + writer.add_line("var pool = ArrayPool.Shared;") + writer.add_line("var retBuffer = pool.Rent(ret + 1);") def write_ret_fixed(): - second_call_args = ["retBufferPtr"] + call_args + second_call_args = ["retBufferPtr"] + for t, n in param_signatures: + if t == "string": + second_call_args.append(f"{n}BufferPtr") + elif t == "byte[]": + second_call_args.extend([f"{n}BufferPtr", f"{n}Length"]) + elif t == "bool": + second_call_args.append(f"{n} ? (byte)1 : (byte)0") + else: + second_call_args.append(n) + writer.add_line(f"ret = _{function_name}({', '.join(second_call_args)});") + if return_type == "string": - writer.add_line("return Encoding.UTF8.GetString(retBufferPtr, ret);") + writer.add_line("var retString = Encoding.UTF8.GetString(retBufferPtr, ret);") + writer.add_line("pool.Return(retBuffer);") + for param in string_params: + writer.add_line(f"pool.Return({param}Buffer);") + writer.add_line("return retString;") else: writer.add_line("var retBytes = new byte[ret];") writer.add_line("for (int i = 0; i < ret; i++) retBytes[i] = retBufferPtr[i];") + writer.add_line("pool.Return(retBuffer);") + for param in string_params: + writer.add_line(f"pool.Return({param}Buffer);") writer.add_line("return retBytes;") writer.add_block("fixed (byte* retBufferPtr = retBuffer)", write_ret_fixed) + else: + for t, n in param_signatures: + if t == "string": + call_args.append(f"{n}BufferPtr") + elif t == "byte[]": + call_args.extend([f"{n}BufferPtr", f"{n}Length"]) + elif t == "bool": + call_args.append(f"{n} ? (byte)1 : (byte)0") + else: + call_args.append(n) + if return_type == "void": writer.add_line(f"_{function_name}({', '.join(call_args)});") else: writer.add_line(f"var ret = _{function_name}({', '.join(call_args)});") - writer.add_line("return ret == 1;" if return_type == "bool" else "return ret;") - + + for param in string_params: + writer.add_line(f"pool.Return({param}Buffer);") + + if return_type != "void": + writer.add_line("return ret == 1;" if return_type == "bool" else f"return ret;") + def write_with_fixed_blocks(blocks, index=0): if index < len(blocks): writer.add_block(blocks[index], lambda: write_with_fixed_blocks(blocks, index + 1)) @@ -276,10 +267,7 @@ def write_with_fixed_blocks(blocks, index=0): write_native_call() writer.add_block(f"public unsafe static {RETURN_TYPE_MAP[return_type]} {function_name}({method_signature})", write_method_content) - - # Benchmark class should be public for external access - access_modifier = "public" if class_name == "Benchmark" else "internal" - writer.add_block(f"{access_modifier} static class Native{class_name}", write_class_content) + writer.add_block(f"internal static class Native{class_name}", write_class_content) with open(out_path, "w", encoding="utf-8", newline="") as f: f.write(writer.get_code()) diff --git a/generator/steamworks_generator/templates/custom_types/SteamClientPublic/CSteamID.cs b/generator/steamworks_generator/templates/custom_types/SteamClientPublic/CSteamID.cs index a173073b8..e4b1541dd 100644 --- a/generator/steamworks_generator/templates/custom_types/SteamClientPublic/CSteamID.cs +++ b/generator/steamworks_generator/templates/custom_types/SteamClientPublic/CSteamID.cs @@ -218,6 +218,7 @@ public EUniverse GetEUniverse() return (EUniverse)((m_SteamID >> 56) & 0xFFul); } + public bool IsValid() { if (GetEAccountType() <= EAccountType.k_EAccountTypeInvalid || GetEAccountType() >= EAccountType.k_EAccountTypeMax) diff --git a/managed/.editorconfig b/managed/.editorconfig new file mode 100644 index 000000000..8d0744627 --- /dev/null +++ b/managed/.editorconfig @@ -0,0 +1,179 @@ +# Visual Studio generated .editorconfig file with C++ settings. +root = true + +[*] +indent_style = space +indent_size = 4 +charset = utf-8 + +[*.{c++,cc,cpp,cppm,cxx,h,h++,hh,hpp,hxx,inl,ipp,ixx,tlh,tli}] + +# Visual C++ Code Style settings + +cpp_generate_documentation_comments = xml + +# Visual C++ Formatting settings + +cpp_indent_braces = false +cpp_indent_multi_line_relative_to = innermost_parenthesis +cpp_indent_within_parentheses = indent +cpp_indent_preserve_within_parentheses = false +cpp_indent_case_contents = true +cpp_indent_case_labels = false +cpp_indent_case_contents_when_block = false +cpp_indent_lambda_braces_when_parameter = true +cpp_indent_goto_labels = one_left +cpp_indent_preprocessor = leftmost_column +cpp_indent_access_specifiers = false +cpp_indent_namespace_contents = true +cpp_indent_preserve_comments = false +cpp_new_line_before_open_brace_namespace = ignore +cpp_new_line_before_open_brace_type = ignore +cpp_new_line_before_open_brace_function = ignore +cpp_new_line_before_open_brace_block = ignore +cpp_new_line_before_open_brace_lambda = ignore +cpp_new_line_scope_braces_on_separate_lines = false +cpp_new_line_close_brace_same_line_empty_type = false +cpp_new_line_close_brace_same_line_empty_function = false +cpp_new_line_before_catch = true +cpp_new_line_before_else = true +cpp_new_line_before_while_in_do_while = false +cpp_space_before_function_open_parenthesis = remove +cpp_space_within_parameter_list_parentheses = false +cpp_space_between_empty_parameter_list_parentheses = false +cpp_space_after_keywords_in_control_flow_statements = true +cpp_space_within_control_flow_statement_parentheses = false +cpp_space_before_lambda_open_parenthesis = false +cpp_space_within_cast_parentheses = false +cpp_space_after_cast_close_parenthesis = false +cpp_space_within_expression_parentheses = false +cpp_space_before_block_open_brace = true +cpp_space_between_empty_braces = false +cpp_space_before_initializer_list_open_brace = false +cpp_space_within_initializer_list_braces = true +cpp_space_preserve_in_initializer_list = true +cpp_space_before_open_square_bracket = false +cpp_space_within_square_brackets = false +cpp_space_before_empty_square_brackets = false +cpp_space_between_empty_square_brackets = false +cpp_space_group_square_brackets = true +cpp_space_within_lambda_brackets = false +cpp_space_between_empty_lambda_brackets = false +cpp_space_before_comma = false +cpp_space_after_comma = true +cpp_space_remove_around_member_operators = true +cpp_space_before_inheritance_colon = true +cpp_space_before_constructor_colon = true +cpp_space_remove_before_semicolon = true +cpp_space_after_semicolon = false +cpp_space_remove_around_unary_operator = true +cpp_space_around_binary_operator = insert +cpp_space_around_assignment_operator = insert +cpp_space_pointer_reference_alignment = left +cpp_space_around_ternary_operator = insert +cpp_use_unreal_engine_macro_formatting = true +cpp_wrap_preserve_blocks = one_liners + +# Visual C++ Inlcude Cleanup settings + +cpp_include_cleanup_add_missing_error_tag_type = suggestion +cpp_include_cleanup_remove_unused_error_tag_type = dimmed + +[*.cs] +dotnet_style_qualification_for_field = true +dotnet_style_qualification_for_property = true +dotnet_style_qualification_for_method = false +dotnet_style_qualification_for_event = true +dotnet_diagnostic.IDE0003.severity = suggestion +dotnet_style_predefined_type_for_locals_parameters_members = true +dotnet_style_predefined_type_for_member_access = true +dotnet_diagnostic.IDE0049.severity = warning +csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async +dotnet_diagnostic.IDE0036.severity = suggestion +dotnet_style_require_accessibility_modifiers = always +dotnet_diagnostic.IDE0040.severity = warning +dotnet_style_readonly_field = true +dotnet_diagnostic.IDE0044.severity = warning +csharp_prefer_static_local_function = true +dotnet_diagnostic.IDE0062.severity = warning +dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity +dotnet_diagnostic.IDE0047.severity = suggestion +dotnet_diagnostic.IDE0048.severity = suggestion +dotnet_diagnostic.IDE0010.severity = warning +dotnet_style_object_initializer = true +dotnet_diagnostic.IDE0017.severity = warning +csharp_style_inlined_variable_declaration = true +dotnet_diagnostic.IDE0018.severity = warning +dotnet_style_collection_initializer = true +dotnet_diagnostic.IDE0028.severity = warning +dotnet_style_prefer_auto_properties = true +dotnet_diagnostic.IDE0032.severity = warning +dotnet_style_explicit_tuple_names = true +dotnet_diagnostic.IDE0033.severity = warning +csharp_prefer_simple_default_expression = true +dotnet_diagnostic.IDE0034.severity = warning +dotnet_style_prefer_inferred_tuple_names = true +dotnet_style_prefer_inferred_anonymous_type_member_names = true +dotnet_diagnostic.IDE0037.severity = warning +csharp_style_prefer_local_over_anonymous_function = true +dotnet_diagnostic.IDE0039.severity = warning +csharp_style_deconstructed_variable_declaration = false +dotnet_diagnostic.IDE0042.severity = warning +dotnet_style_prefer_conditional_expression_over_assignment = true +dotnet_diagnostic.IDE0045.severity = warning +dotnet_style_prefer_conditional_expression_over_return = true +dotnet_diagnostic.IDE0046.severity = warning +dotnet_style_prefer_compound_assignment = true +dotnet_diagnostic.IDE0054.severity = warning +dotnet_diagnostic.IDE0074.severity = warning +csharp_style_prefer_index_operator = true +dotnet_diagnostic.IDE0056.severity = warning +csharp_style_prefer_range_operator = false +dotnet_diagnostic.IDE0057.severity = warning +dotnet_diagnostic.IDE0070.severity = warning +dotnet_style_prefer_simplified_interpolation = true +dotnet_diagnostic.IDE0071.severity = warning +dotnet_diagnostic.IDE0072.severity = warning +dotnet_style_prefer_simplified_boolean_expressions = true +dotnet_diagnostic.IDE0075.severity = warning +dotnet_diagnostic.IDE0082.severity = warning +csharp_style_implicit_object_creation_when_type_is_apparent = true +dotnet_diagnostic.IDE0090.severity = warning +dotnet_diagnostic.IDE0180.severity = warning +csharp_style_namespace_declarations = file_scoped +dotnet_diagnostic.IDE0160.severity = warning +dotnet_diagnostic.IDE0161.severity = warning +csharp_style_throw_expression = true +dotnet_diagnostic.IDE0016.severity = warning +dotnet_style_coalesce_expression = true +dotnet_diagnostic.IDE0029.severity = warning +dotnet_diagnostic.IDE0030.severity = warning +dotnet_style_null_propagation = true +dotnet_diagnostic.IDE0031.severity = warning +dotnet_style_prefer_is_null_check_over_reference_equality_method = true +dotnet_diagnostic.IDE0041.severity = warning +csharp_style_prefer_null_check_over_type_check = true +dotnet_diagnostic.IDE0150.severity = warning +csharp_style_conditional_delegate_call = true +dotnet_diagnostic.IDE1005.severity = warning +csharp_style_var_for_built_in_types = true +csharp_style_var_when_type_is_apparent = true +csharp_style_var_elsewhere = true +dotnet_diagnostic.IDE0007.severity = warning +dotnet_diagnostic.IDE0008.severity = warning +dotnet_diagnostic.IDE0001.severity = warning +dotnet_diagnostic.IDE0002.severity = warning +dotnet_diagnostic.IDE0004.severity = warning +dotnet_diagnostic.IDE0005.severity = warning +dotnet_diagnostic.IDE0035.severity = warning +dotnet_diagnostic.IDE0051.severity = warning +dotnet_diagnostic.IDE0052.severity = warning +csharp_style_unused_value_expression_statement_preference = discard_variable +dotnet_diagnostic.IDE0058.severity = warning +csharp_style_unused_value_assignment_preference = discard_variable +dotnet_diagnostic.IDE0059.severity = warning +csharp_indent_case_contents = true +csharp_indent_switch_labels = true +csharp_new_line_before_open_brace = types, object_collection, methods, control_blocks, lambdas +dotnet_sort_system_directives_first = true +csharp_space_between_method_declaration_parameter_list_parentheses = true \ No newline at end of file diff --git a/managed/SwiftlyS2.PluginTemplate/templates/PluginId.csproj b/managed/SwiftlyS2.PluginTemplate/templates/PluginId.csproj index 7b5f9e899..0018c4b3e 100644 --- a/managed/SwiftlyS2.PluginTemplate/templates/PluginId.csproj +++ b/managed/SwiftlyS2.PluginTemplate/templates/PluginId.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable enable true @@ -39,4 +39,4 @@ - \ No newline at end of file + diff --git a/managed/SwiftlyS2.PluginTemplate/templates/examples/Commands.example.cs b/managed/SwiftlyS2.PluginTemplate/templates/examples/Commands.example.cs index 953f63399..47e31fb07 100644 --- a/managed/SwiftlyS2.PluginTemplate/templates/examples/Commands.example.cs +++ b/managed/SwiftlyS2.PluginTemplate/templates/examples/Commands.example.cs @@ -7,18 +7,19 @@ namespace PluginId; /// public partial class PluginId { - public void InitializeCommands() - { - // Register a command. - Core.Command.RegisterCommand("test2", (context) => { - Console.WriteLine("Test command"); - }); - } + public void InitializeCommands() + { + // Register a command. + _ = Core.Command.RegisterCommand("test2", ( context ) => + { + Console.WriteLine("Test command"); + }); + } - [Command("test")] // this will be `sw_test` in the console. - // [Command("test", registerRaw: true)] // this will be `test` in the console, without the sw_ prefix. - public void TestCommand(ICommandContext context) - { - context.Reply("Hello World"); - } + [Command("test")] // this will be `sw_test` in the console. + // [Command("test", registerRaw: true)] // this will be `test` in the console, without the sw_ prefix. + public void TestCommand( ICommandContext context ) + { + context.Reply("Hello World"); + } } \ No newline at end of file diff --git a/managed/SwiftlyS2.PluginTemplate/templates/examples/Events.example.cs b/managed/SwiftlyS2.PluginTemplate/templates/examples/Events.example.cs index 2f75ff24b..fa96b795e 100644 --- a/managed/SwiftlyS2.PluginTemplate/templates/examples/Events.example.cs +++ b/managed/SwiftlyS2.PluginTemplate/templates/examples/Events.example.cs @@ -7,28 +7,32 @@ namespace PluginId; /// public partial class PluginId { - public void InitializeEvents() - { - // Register an event on tick. - Core.Event.OnTick += () => { - Console.WriteLine("Tick"); - }; + public void InitializeEvents() + { + // Register an event on tick. + Core.Event.OnTick += () => + { + Console.WriteLine("Tick"); + }; - Core.Event.OnEntityCreated += (@event) => { - Console.WriteLine("Entity created"); - Console.WriteLine(@event.Entity.DesignerName); - }; + Core.Event.OnEntityCreated += ( @event ) => + { + Console.WriteLine("Entity created"); + Console.WriteLine(@event.Entity.DesignerName); + }; - Core.Event.OnClientConnected += (@event) => { - Console.WriteLine("Client connected"); - // prevent a join. - @event.Result = HookResult.Stop; - }; + Core.Event.OnClientConnected += ( @event ) => + { + Console.WriteLine("Client connected"); + // prevent a join. + @event.Result = HookResult.Stop; + }; - Core.Event.OnPrecacheResource += (@event) => { - // Add your resource here. - @event.AddItem("characters/test.vmdl"); - }; + Core.Event.OnPrecacheResource += ( @event ) => + { + // Add your resource here. + @event.AddItem("characters/test.vmdl"); + }; - } + } } \ No newline at end of file diff --git a/managed/SwiftlyS2.PluginTemplate/templates/examples/GameEvents.example.cs b/managed/SwiftlyS2.PluginTemplate/templates/examples/GameEvents.example.cs index d448a5950..394b555de 100644 --- a/managed/SwiftlyS2.PluginTemplate/templates/examples/GameEvents.example.cs +++ b/managed/SwiftlyS2.PluginTemplate/templates/examples/GameEvents.example.cs @@ -1,6 +1,6 @@ using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Misc; using SwiftlyS2.Shared.GameEvents; +using SwiftlyS2.Shared.Misc; namespace PluginId; @@ -9,35 +9,37 @@ namespace PluginId; public partial class PluginId { - public void InitializeGameEvents() - { - /// Hook a game event. - /// The method must take a single parameter that is the game event type, and return a HookResult. - - Core.GameEvent.HookPre((@event) => { - Console.WriteLine($"Player {@event.UserIdController.PlayerName} jumped"); - return HookResult.Continue; - }); - - /// Fire a game event to all players. - /// You can configure the event inside the action. - /// The event will be destroyed immediately after being fired. - /// - /// To fire to a specific client, also check Core.GameEvent.FireToPlayer - Core.GameEvent.Fire(@event => { - @event.LocToken = "Hello World"; - }); - } - - [GameEventHandler(HookMode.Pre)] - public HookResult TestServerNetMessageHandler(EventPlayerJump @event) - { - /// You can also hook the event by using the attribute. - /// The attribute only works on main class that inherits BasePlugin. - - @event.DontBroadcast = true; - - return HookResult.Continue; - } + public void InitializeGameEvents() + { + /// Hook a game event. + /// The method must take a single parameter that is the game event type, and return a HookResult. + + _ = Core.GameEvent.HookPre(( @event ) => + { + Console.WriteLine($"Player {@event.UserIdController.PlayerName} jumped"); + return HookResult.Continue; + }); + + /// Fire a game event to all players. + /// You can configure the event inside the action. + /// The event will be destroyed immediately after being fired. + /// + /// To fire to a specific client, also check Core.GameEvent.FireToPlayer + Core.GameEvent.Fire(@event => + { + @event.LocToken = "Hello World"; + }); + } + + [GameEventHandler(HookMode.Pre)] + public HookResult TestServerNetMessageHandler( EventPlayerJump @event ) + { + /// You can also hook the event by using the attribute. + /// The attribute only works on main class that inherits BasePlugin. + + @event.DontBroadcast = true; + + return HookResult.Continue; + } } diff --git a/managed/SwiftlyS2.PluginTemplate/templates/examples/HookAndCallNativeFunctions.example.cs b/managed/SwiftlyS2.PluginTemplate/templates/examples/HookAndCallNativeFunctions.example.cs index 88adf2930..ea21c4a5c 100644 --- a/managed/SwiftlyS2.PluginTemplate/templates/examples/HookAndCallNativeFunctions.example.cs +++ b/managed/SwiftlyS2.PluginTemplate/templates/examples/HookAndCallNativeFunctions.example.cs @@ -1,6 +1,5 @@ using Microsoft.Extensions.Logging; using SwiftlyS2.Shared.Memory; -using SwiftlyS2.Shared.Misc; namespace PluginId; @@ -10,59 +9,60 @@ namespace PluginId; public partial class PluginId { - // Your delegate type of the function. - delegate int TestFunctionDelegate(int a, int b); - public void InitializeUnmanagedFunctions() - { - // Get the address of the function. - nint? address = Core.GameData.GetSignature("YourFunctionSignature"); - - // Or you can use the signature to get the address. - address = Core.Memory.GetAddressBySignature(Library.Server, "48 89 5C XXX"); - if (address is null) + // Your delegate type of the function. + private delegate int TestFunctionDelegate( int a, int b ); + public void InitializeUnmanagedFunctions() { - Core.Logger.LogError("Failed to get the address of the function."); - return; - } + // Get the address of the function. + nint? address = Core.GameData.GetSignature("YourFunctionSignature"); - // Get the function. - var function = Core.Memory.GetUnmanagedFunctionByAddress(address!.Value); + // Or you can use the signature to get the address. + address = Core.Memory.GetAddressBySignature(Library.Server, "48 89 5C XXX"); + if (address is null) + { + Core.Logger.LogError("Failed to get the address of the function."); + return; + } - // Call the function. - function.Call(1, 2); + // Get the function. + var function = Core.Memory.GetUnmanagedFunctionByAddress(address!.Value); - // Call the original function if hooked, this can bypass all the hooks that created by SwiftlyS2. - function.CallOriginal(1, 2); + // Call the function. + _ = function.Call(1, 2); - var guid = function.AddHook(next => { - return (a, b) => - { - Console.WriteLine("Hooked!"); + // Call the original function if hooked, this can bypass all the hooks that created by SwiftlyS2. + _ = function.CallOriginal(1, 2); - Console.WriteLine("Pre hook"); + var guid = function.AddHook(next => + { + return ( a, b ) => + { + Console.WriteLine("Hooked!"); - // here is the code for pre hook. + Console.WriteLine("Pre hook"); - // you can modify the param in this way. - var modifiedA = a + 1; + // here is the code for pre hook. - // Call the original function. - // If you want to stop the call, you can return 0 and don't call next(). - var result = next()(modifiedA, b); + // you can modify the param in this way. + var modifiedA = a + 1; - // here is the code for post hook. - Console.WriteLine("Post hook"); + // Call the original function. + // If you want to stop the call, you can return 0 and don't call next(). + var result = next()(modifiedA, b); - // you can modify the result in this way. - var modifiedResult = result + 1; + // here is the code for post hook. + Console.WriteLine("Post hook"); - return modifiedResult; - }; - }); + // you can modify the result in this way. + var modifiedResult = result + 1; - // Remove the hook. - function.RemoveHook(guid); + return modifiedResult; + }; + }); + // Remove the hook. + function.RemoveHook(guid); - } + + } } \ No newline at end of file diff --git a/managed/SwiftlyS2.PluginTemplate/templates/examples/NetMessage.example.cs b/managed/SwiftlyS2.PluginTemplate/templates/examples/NetMessage.example.cs index 40f4a3443..e5ca5ea29 100644 --- a/managed/SwiftlyS2.PluginTemplate/templates/examples/NetMessage.example.cs +++ b/managed/SwiftlyS2.PluginTemplate/templates/examples/NetMessage.example.cs @@ -6,50 +6,54 @@ namespace PluginId; /// This is an example that shows various net message API. -public partial class PluginId { - - public void InitializeNetMessage() { - - /* - This is an example that shows how to send a net message. - The msg will be destroyed immediately after being sent. - */ - Core.NetMessage.Send(msg => { - // Setting fields of the net message. - msg.Amplitude = 10; - msg.Duration = 10; - - // Control the recipients of the net message. - msg.Recipients.AddAllPlayers(); - }); - - - /* - You can also create a persistent net message and send it. - As long as the message is not recycled by GC, you can send it as many times as you want. - */ - using var message = Core.NetMessage.Create(); - message.Amplitude = 10; - message.Duration = 10; - message.Recipients.AddAllPlayers(); - message.SendToAllPlayers(); - } - - /// The ServerNetMessageHandler attribute is used to mark a method as a server-side net message handler. - /// the attribute only works on main class that inherits BasePlugin. - /// - /// The method must take a single parameter that is the net message type, and return a HookResult. - /// - [ServerNetMessageHandler] - public HookResult TestServerNetMessageHandler(CMsgSosStartSoundEvent msg) { - - // You can also set fields of the net message. - msg.SoundeventHash = 0; - - // You can also control the recipients of the net message. - msg.Recipients.RemoveAllPlayers(); - - return HookResult.Continue; - } +public partial class PluginId +{ + + public void InitializeNetMessage() + { + + /* + This is an example that shows how to send a net message. + The msg will be destroyed immediately after being sent. + */ + Core.NetMessage.Send(msg => + { + // Setting fields of the net message. + msg.Amplitude = 10; + msg.Duration = 10; + + // Control the recipients of the net message. + msg.Recipients.AddAllPlayers(); + }); + + + /* + You can also create a persistent net message and send it. + As long as the message is not recycled by GC, you can send it as many times as you want. + */ + using var message = Core.NetMessage.Create(); + message.Amplitude = 10; + message.Duration = 10; + message.Recipients.AddAllPlayers(); + message.SendToAllPlayers(); + } + + /// The ServerNetMessageHandler attribute is used to mark a method as a server-side net message handler. + /// the attribute only works on main class that inherits BasePlugin. + /// + /// The method must take a single parameter that is the net message type, and return a HookResult. + /// + [ServerNetMessageHandler] + public HookResult TestServerNetMessageHandler( CMsgSosStartSoundEvent msg ) + { + + // You can also set fields of the net message. + msg.SoundeventHash = 0; + + // You can also control the recipients of the net message. + msg.Recipients.RemoveAllPlayers(); + + return HookResult.Continue; + } } diff --git a/managed/SwiftlyS2.PluginTemplate/templates/examples/SoundEvent.example.cs b/managed/SwiftlyS2.PluginTemplate/templates/examples/SoundEvent.example.cs index 77efe8e5a..885e43f60 100644 --- a/managed/SwiftlyS2.PluginTemplate/templates/examples/SoundEvent.example.cs +++ b/managed/SwiftlyS2.PluginTemplate/templates/examples/SoundEvent.example.cs @@ -5,37 +5,39 @@ namespace PluginId; /// /// This is an example that shows how to use sound event. /// -public partial class PluginId { +public partial class PluginId +{ - public void InitializeSoundEvent() { + public void InitializeSoundEvent() + { - // Create a soundevent. - using var soundEvent = new SoundEvent() { - // Set the soundevent name. - Name = "Weapon_AK47.Single", + // Create a soundevent. + using var soundEvent = new SoundEvent() { + // Set the soundevent name. + Name = "Weapon_AK47.Single", - // Set the source entity, - // can be get by entity.Index, - // or set to -1 for emitting at recipient location (by default) - SourceEntityIndex = -1, + // Set the source entity, + // can be get by entity.Index, + // or set to -1 for emitting at recipient location (by default) + SourceEntityIndex = -1, - // Control the volume. - Volume = 0.5f, + // Control the volume. + Volume = 0.5f, - // Control the pitch. - Pitch = 2f + // Control the pitch. + Pitch = 2f - }; + }; - // More param can be set. - soundEvent.SetFloat3("public.position", 1.0f, 1.0f, 1.0f); + // More param can be set. + soundEvent.SetFloat3("public.position", 1.0f, 1.0f, 1.0f); - // Don't forget to add recipients. - soundEvent.Recipients.AddAllPlayers(); + // Don't forget to add recipients. + soundEvent.Recipients.AddAllPlayers(); - // Emit the sound event. - soundEvent.Emit(); - - } + // Emit the sound event. + _ = soundEvent.Emit(); + + } } \ No newline at end of file diff --git a/managed/SwiftlyS2.PluginTemplate/templates/src/PluginId.cs b/managed/SwiftlyS2.PluginTemplate/templates/src/PluginId.cs index 8dd37bddb..67f7f9788 100644 --- a/managed/SwiftlyS2.PluginTemplate/templates/src/PluginId.cs +++ b/managed/SwiftlyS2.PluginTemplate/templates/src/PluginId.cs @@ -1,25 +1,29 @@ -using Microsoft.Extensions.DependencyInjection; -using SwiftlyS2.Shared.Plugins; using SwiftlyS2.Shared; +using SwiftlyS2.Shared.Plugins; namespace PluginId; [PluginMetadata(Id = "PluginId", Version = "PluginVersion", Name = "PluginName", Author = "PluginAuthor", Description = "PluginDescription")] -public partial class PluginId : BasePlugin { - public PluginId(ISwiftlyCore core) : base(core) - { - } +public partial class PluginId : BasePlugin +{ + public PluginId( ISwiftlyCore core ) : base(core) + { + } + + public override void ConfigureSharedInterface( IInterfaceManager interfaceManager ) + { + } - public override void ConfigureSharedInterface(IInterfaceManager interfaceManager) { - } + public override void UseSharedInterface( IInterfaceManager interfaceManager ) + { + } - public override void UseSharedInterface(IInterfaceManager interfaceManager) { - } + public override void Load( bool hotReload ) + { - public override void Load(bool hotReload) { - - } + } - public override void Unload() { - } -} \ No newline at end of file + public override void Unload() + { + } +} \ No newline at end of file diff --git a/managed/managed.csproj b/managed/managed.csproj index 7b0728874..aedb6095b 100644 --- a/managed/managed.csproj +++ b/managed/managed.csproj @@ -22,6 +22,7 @@ $(BaseOutputPath)Release\SwiftlyS2 SwiftlyS2.CS2 true + x64 $(NoWarn);CS1591 diff --git a/managed/src/Entrypoint.cs b/managed/src/Entrypoint.cs index 2ca75d6f4..0da141eba 100644 --- a/managed/src/Entrypoint.cs +++ b/managed/src/Entrypoint.cs @@ -1,4 +1,4 @@ -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; using System.Security; using Spectre.Console; using SwiftlyS2.Core; diff --git a/managed/src/SwiftlyS2.Core/AttributeParsers/CommandAttributeParser.cs b/managed/src/SwiftlyS2.Core/AttributeParsers/CommandAttributeParser.cs index 6b6fb343a..1daafcdbd 100644 --- a/managed/src/SwiftlyS2.Core/AttributeParsers/CommandAttributeParser.cs +++ b/managed/src/SwiftlyS2.Core/AttributeParsers/CommandAttributeParser.cs @@ -1,41 +1,42 @@ using System.Reflection; -using SwiftlyS2.Core.Commands; using SwiftlyS2.Shared.Commands; namespace SwiftlyS2.Core.AttributeParsers; -internal static class CommandAttributeParser { - public static void ParseFromObject(this ICommandService self, object instance) { - var type = instance.GetType(); - var methods = type.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); - foreach (var method in methods) +internal static class CommandAttributeParser +{ + public static void ParseFromObject( this ICommandService self, object instance ) { - var commandAttribute = method.GetCustomAttribute(); - var clientCommandHookHandlerAttribute = method.GetCustomAttribute(); - var clientChatHookHandlerAttribute = method.GetCustomAttribute(); - if (commandAttribute != null) - { - var commandAliasAttributes = method.GetCustomAttributes(); - var commandName = commandAttribute.Name; - var commandAlias = commandAliasAttributes.Select(a => a.Alias).ToArray(); - var registerRaw = commandAttribute.RegisterRaw; - var permission = commandAttribute.Permission; - self.RegisterCommand(commandName, method.CreateDelegate(instance), registerRaw, permission); - foreach (var alias in commandAlias) + var type = instance.GetType(); + var methods = type.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); + foreach (var method in methods) { - self.RegisterCommandAlias(commandName, alias, registerRaw); - } - } + var commandAttribute = method.GetCustomAttribute(); + var clientCommandHookHandlerAttribute = method.GetCustomAttribute(); + var clientChatHookHandlerAttribute = method.GetCustomAttribute(); + if (commandAttribute != null) + { + var commandAliasAttributes = method.GetCustomAttributes(); + var commandName = commandAttribute.Name; + var commandAlias = commandAliasAttributes.Select(a => a.Alias).ToArray(); + var registerRaw = commandAttribute.RegisterRaw; + var permission = commandAttribute.Permission; + _ = self.RegisterCommand(commandName, method.CreateDelegate(instance), registerRaw, permission); + foreach (var alias in commandAlias) + { + self.RegisterCommandAlias(commandName, alias, registerRaw); + } + } - if (clientCommandHookHandlerAttribute != null) - { - self.HookClientCommand(method.CreateDelegate(instance)); - } + if (clientCommandHookHandlerAttribute != null) + { + _ = self.HookClientCommand(method.CreateDelegate(instance)); + } - if (clientChatHookHandlerAttribute != null) - { - self.HookClientChat(method.CreateDelegate(instance)); - } + if (clientChatHookHandlerAttribute != null) + { + _ = self.HookClientChat(method.CreateDelegate(instance)); + } + } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/AttributeParsers/EventAttributeParser.cs b/managed/src/SwiftlyS2.Core/AttributeParsers/EventAttributeParser.cs index caf9aebbb..c1af44816 100644 --- a/managed/src/SwiftlyS2.Core/AttributeParsers/EventAttributeParser.cs +++ b/managed/src/SwiftlyS2.Core/AttributeParsers/EventAttributeParser.cs @@ -1,34 +1,33 @@ using System.Reflection; -using SwiftlyS2.Core.GameEvents; using SwiftlyS2.Shared.Events; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.Misc; namespace SwiftlyS2.Core.AttributeParsers; internal static class EventAttributeParser { - public static void ParseFromObject(this IEventSubscriber self, object instance) - { - var type = instance.GetType(); - var methods = type.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); - foreach (var method in methods) + public static void ParseFromObject( this IEventSubscriber self, object instance ) { - var eventHandlerAttributes = method.GetCustomAttributes(); - foreach (var eventHandlerAttribute in eventHandlerAttributes) { - var attrType = eventHandlerAttribute.GetType(); - if (!attrType.IsGenericType || attrType.GetGenericTypeDefinition() != typeof(EventListener<>)) continue; + var type = instance.GetType(); + var methods = type.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); + foreach (var method in methods) + { + var eventHandlerAttributes = method.GetCustomAttributes(); + foreach (var eventHandlerAttribute in eventHandlerAttributes) + { + var attrType = eventHandlerAttribute.GetType(); + if (!attrType.IsGenericType || attrType.GetGenericTypeDefinition() != typeof(EventListener<>)) continue; - var delegateType = attrType.GetGenericArguments()[0]; - if (delegateType.DeclaringType != typeof(EventDelegates)) { - throw new InvalidOperationException($"Event type {delegateType.Name} is not a valid event type"); + var delegateType = attrType.GetGenericArguments()[0]; + if (delegateType.DeclaringType != typeof(EventDelegates)) + { + throw new InvalidOperationException($"Event type {delegateType.Name} is not a valid event type"); + } + self + .GetType() + .GetEvents() + .First(f => f.EventHandlerType == delegateType) + .AddEventHandler(self, method.CreateDelegate(delegateType, instance)); + } } - self - .GetType() - .GetEvents() - .First(f => f.EventHandlerType == delegateType) - .AddEventHandler(self, method.CreateDelegate(delegateType, instance)); - } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/AttributeParsers/GameEventAttributeParser.cs b/managed/src/SwiftlyS2.Core/AttributeParsers/GameEventAttributeParser.cs index 21d4a7bb7..27df27c3e 100644 --- a/managed/src/SwiftlyS2.Core/AttributeParsers/GameEventAttributeParser.cs +++ b/managed/src/SwiftlyS2.Core/AttributeParsers/GameEventAttributeParser.cs @@ -1,38 +1,37 @@ using System.Reflection; -using SwiftlyS2.Core.GameEvents; using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Misc; namespace SwiftlyS2.Core.AttributeParsers; -internal static class GameEventAttributeParser { - public static void ParseFromObject(this IGameEventService self, object instance) { - var type = instance.GetType(); - var methods = type.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); - foreach (var method in methods) +internal static class GameEventAttributeParser +{ + public static void ParseFromObject( this IGameEventService self, object instance ) { - var gameEventHandlerAttribute = method.GetCustomAttribute(); - if (gameEventHandlerAttribute != null) - { - var eventType = method.GetParameters()[0].ParameterType; - var handlerType = typeof(IGameEventService.GameEventHandler<>).MakeGenericType(eventType); - var eventHandler = method.CreateDelegate(handlerType, instance); - MethodInfo hookMethod; - if (gameEventHandlerAttribute.HookMode == HookMode.Pre) + var type = instance.GetType(); + var methods = type.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); + foreach (var method in methods) { - hookMethod = typeof(IGameEventService).GetMethod("HookPre")!; + var gameEventHandlerAttribute = method.GetCustomAttribute(); + if (gameEventHandlerAttribute != null) + { + var eventType = method.GetParameters()[0].ParameterType; + var handlerType = typeof(IGameEventService.GameEventHandler<>).MakeGenericType(eventType); + var eventHandler = method.CreateDelegate(handlerType, instance); + MethodInfo hookMethod; + if (gameEventHandlerAttribute.HookMode == HookMode.Pre) + { + hookMethod = typeof(IGameEventService).GetMethod("HookPre")!; + } + else + { + hookMethod = gameEventHandlerAttribute.HookMode == HookMode.Post + ? typeof(IGameEventService).GetMethod("HookPost")! + : throw new InvalidOperationException($"Invalid hook mode: {gameEventHandlerAttribute.HookMode}"); + } + var hookMethodGeneric = hookMethod.MakeGenericMethod(eventType); + _ = hookMethodGeneric.Invoke(self, new object[] { eventHandler }); + } } - else if (gameEventHandlerAttribute.HookMode == HookMode.Post) - { - hookMethod = typeof(IGameEventService).GetMethod("HookPost")!; - } - else - { - throw new InvalidOperationException($"Invalid hook mode: {gameEventHandlerAttribute.HookMode}"); - } - var hookMethodGeneric = hookMethod.MakeGenericMethod(eventType); - hookMethodGeneric.Invoke(self, new object[] { eventHandler }); - } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/AttributeParsers/NetMessageAttributeParser.cs b/managed/src/SwiftlyS2.Core/AttributeParsers/NetMessageAttributeParser.cs index 705ce2dbe..09f680dc0 100644 --- a/managed/src/SwiftlyS2.Core/AttributeParsers/NetMessageAttributeParser.cs +++ b/managed/src/SwiftlyS2.Core/AttributeParsers/NetMessageAttributeParser.cs @@ -1,48 +1,49 @@ using System.Reflection; -using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Core.AttributeParsers; -internal static class NetMessageAttributeParser { - public static void ParseFromObject(this INetMessageService self, object instance) { - var type = instance.GetType(); - var methods = type.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); - - foreach (var method in methods) +internal static class NetMessageAttributeParser +{ + public static void ParseFromObject( this INetMessageService self, object instance ) { - var serverNetMessageHandlerAttribute = method.GetCustomAttribute(); - var clientNetMessageHandlerAttribute = method.GetCustomAttribute(); + var type = instance.GetType(); + var methods = type.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); - if (serverNetMessageHandlerAttribute != null) - { - var msgType = method.GetParameters()[0].ParameterType; - if (!msgType.GetInterfaces().Any(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(INetMessage<>))) + foreach (var method in methods) { - throw new InvalidOperationException($"Type {msgType.Name} is not a valid net message type"); - } + var serverNetMessageHandlerAttribute = method.GetCustomAttribute(); + var clientNetMessageHandlerAttribute = method.GetCustomAttribute(); - var hookMethod = typeof(INetMessageService).GetMethod("HookServerMessage")!; - var hookMethodGeneric = hookMethod.MakeGenericMethod(msgType); - var handlerType = typeof(INetMessageService.ServerNetMessageHandler<>).MakeGenericType(msgType); - var handler = method.CreateDelegate(handlerType, instance); - hookMethodGeneric.Invoke(self, new object[] { handler }); - } + if (serverNetMessageHandlerAttribute != null) + { + var msgType = method.GetParameters()[0].ParameterType; + if (!msgType.GetInterfaces().Any(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(INetMessage<>))) + { + throw new InvalidOperationException($"Type {msgType.Name} is not a valid net message type"); + } - if (clientNetMessageHandlerAttribute != null) - { - var msgType = method.GetParameters()[0].ParameterType; - if (!msgType.GetInterfaces().Any(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(INetMessage<>))) - { - throw new InvalidOperationException($"Type {msgType.Name} is not a valid net message type"); - } + var hookMethod = typeof(INetMessageService).GetMethod("HookServerMessage")!; + var hookMethodGeneric = hookMethod.MakeGenericMethod(msgType); + var handlerType = typeof(INetMessageService.ServerNetMessageHandler<>).MakeGenericType(msgType); + var handler = method.CreateDelegate(handlerType, instance); + _ = hookMethodGeneric.Invoke(self, new object[] { handler }); + } + + if (clientNetMessageHandlerAttribute != null) + { + var msgType = method.GetParameters()[0].ParameterType; + if (!msgType.GetInterfaces().Any(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(INetMessage<>))) + { + throw new InvalidOperationException($"Type {msgType.Name} is not a valid net message type"); + } - var hookMethod = typeof(INetMessageService).GetMethod("HookClientMessage")!; - var hookMethodGeneric = hookMethod.MakeGenericMethod(msgType); - var handlerType = typeof(INetMessageService.ClientNetMessageHandler<>).MakeGenericType(msgType); - var handler = method.CreateDelegate(handlerType, instance); - hookMethodGeneric.Invoke(self, new object[] { handler }); - } + var hookMethod = typeof(INetMessageService).GetMethod("HookClientMessage")!; + var hookMethodGeneric = hookMethod.MakeGenericMethod(msgType); + var handlerType = typeof(INetMessageService.ClientNetMessageHandler<>).MakeGenericType(msgType); + var handler = method.CreateDelegate(handlerType, instance); + _ = hookMethodGeneric.Invoke(self, new object[] { handler }); + } + } } - } -} \ No newline at end of file +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/AttributeParsers/SwiftlyCoreAttributeParser.cs b/managed/src/SwiftlyS2.Core/AttributeParsers/SwiftlyCoreAttributeParser.cs index 7a6a2d771..c23438d83 100644 --- a/managed/src/SwiftlyS2.Core/AttributeParsers/SwiftlyCoreAttributeParser.cs +++ b/managed/src/SwiftlyS2.Core/AttributeParsers/SwiftlyCoreAttributeParser.cs @@ -1,32 +1,37 @@ using System.Reflection; -using SwiftlyS2.Core.Services; using SwiftlyS2.Shared; -using SwiftlyS2.Shared.Plugins; namespace SwiftlyS2.Core.AttributeParsers; -internal static class SwiftlyCoreAttributeParser { - public static void Parse(this ISwiftlyCore self, Type t) { +internal static class SwiftlyCoreAttributeParser +{ + public static void Parse( this ISwiftlyCore self, Type t ) + { - var assembly = t.Assembly; - var types = assembly.GetTypes(); - foreach (var type in types) { - var fields = type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static); - foreach (var field in fields) { - var attribute = field.GetCustomAttribute(); + var assembly = t.Assembly; + var types = assembly.GetTypes(); + foreach (var type in types) + { + var fields = type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static); + foreach (var field in fields) + { + var attribute = field.GetCustomAttribute(); - if (attribute != null) { - field.SetValue(null, self); - } - } - var properties = type.GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static); - foreach (var property in properties) { - var attribute = property.GetCustomAttribute(); + if (attribute != null) + { + field.SetValue(null, self); + } + } + var properties = type.GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static); + foreach (var property in properties) + { + var attribute = property.GetCustomAttribute(); - if (attribute != null) { - property.SetValue(null, self); + if (attribute != null) + { + property.SetValue(null, self); + } + } } - } } - } } diff --git a/managed/src/SwiftlyS2.Core/Bootstrap.cs b/managed/src/SwiftlyS2.Core/Bootstrap.cs index a471357f1..8fe3fa34b 100644 --- a/managed/src/SwiftlyS2.Core/Bootstrap.cs +++ b/managed/src/SwiftlyS2.Core/Bootstrap.cs @@ -1,102 +1,99 @@ +using System.Reflection; +using System.Runtime.InteropServices; +using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; using Spectre.Console; +using SwiftlyS2.Core.Events; using SwiftlyS2.Core.Hosting; +using SwiftlyS2.Core.Misc; using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.Services; -using SwiftlyS2.Shared; -using SwiftlyS2.Core.Events; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Hosting; -using SwiftlyS2.Core.Misc; -using Microsoft.Extensions.Configuration; -using SwiftlyS2.Shared.Memory; -using SwiftlyS2.Shared.Services; -using System.Runtime.InteropServices; using SwiftlyS2.Shared.SteamAPI; -using System.Reflection; namespace SwiftlyS2.Core; internal static class Bootstrap { - // how tf i forgot services can be collected hahahahahahahhaahhahaa FUCK - private static IHost? _host; + // how tf i forgot services can be collected hahahahahahahhaahhahaa FUCK + private static IHost? _host; - private static IntPtr SteamAPIDLLResolver( string libraryName, Assembly assembly, DllImportSearchPath? searchPath ) - { - if (libraryName == "steam_api" || libraryName == "sdkencryptedappticket") + private static IntPtr SteamAPIDLLResolver( string libraryName, Assembly assembly, DllImportSearchPath? searchPath ) { - if (OperatingSystem.IsWindows()) - { - libraryName += "64"; - } + if (libraryName == "steam_api" || libraryName == "sdkencryptedappticket") + { + if (OperatingSystem.IsWindows()) + { + libraryName += "64"; + } - if (NativeLibrary.TryLoad(libraryName, out var handle)) - { - return handle; - } - } + if (NativeLibrary.TryLoad(libraryName, out var handle)) + { + return handle; + } + } - return IntPtr.Zero; - } + return IntPtr.Zero; + } - public static void Start( IntPtr nativeTable, int nativeTableSize, string basePath ) - { - Environment.SetEnvironmentVariable("SWIFTLY_MANAGED_ROOT", basePath); + public static void Start( IntPtr nativeTable, int nativeTableSize, string basePath ) + { + Environment.SetEnvironmentVariable("SWIFTLY_MANAGED_ROOT", basePath); - NativeBinding.BindNatives(nativeTable, nativeTableSize); + NativeBinding.BindNatives(nativeTable, nativeTableSize); - NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly, SteamAPIDLLResolver); + NativeLibrary.SetDllImportResolver(typeof(NativeMethods).Assembly, SteamAPIDLLResolver); - EventPublisher.Register(); - GameFunctions.Initialize(); - FileLogger.Initialize(basePath); + EventPublisher.Register(); + GameFunctions.Initialize(); + FileLogger.Initialize(basePath); - AnsiConsole.Write(new FigletText("SwiftlyS2").LeftJustified().Color(Spectre.Console.Color.LightSteelBlue1)); + AnsiConsole.Write(new FigletText("SwiftlyS2").LeftJustified().Color(Color.LightSteelBlue1)); - _host = Host.CreateDefaultBuilder() - .UseConsoleLifetime(options => - { - options.SuppressStatusMessages = true; - }) - .ConfigureServices(( context, services ) => - { - services.AddHostedService(); - }) - .ConfigureLogging(( context, logging ) => - { - logging.ClearProviders(); - logging.AddProvider(new SwiftlyLoggerProvider("SwiftlyS2")); - }) - .ConfigureAppConfiguration(( context, config ) => - { - config.SetBasePath(Path.Combine(Environment.GetEnvironmentVariable("SWIFTLY_MANAGED_ROOT")!, "configs")); - config.AddJsonFile("permissions.jsonc", optional: false, reloadOnChange: true); - }) - .ConfigureServices(( context, services ) => - { - services - .AddProfileService() - .AddConfigurationService() - .AddTestService() - .AddRootDirService() - .AddDataDirectoryService() - .AddPlayerManagerService() - .AddPluginManager() - .AddHookManager() - .AddTraceManagerService() - .AddPermissionManager() - .AddCoreHookService() - .AddCoreCommandService() - .AddCommandTrackerManager() - .AddCommandTrackerService() - .AddSwiftlyCore(basePath); - }) - .Build(); + _host = Host.CreateDefaultBuilder() + .UseConsoleLifetime(options => + { + options.SuppressStatusMessages = true; + }) + .ConfigureServices(( context, services ) => + { + _ = services.AddHostedService(); + }) + .ConfigureLogging(( context, logging ) => + { + _ = logging.ClearProviders(); + _ = logging.AddProvider(new SwiftlyLoggerProvider("SwiftlyS2")); + }) + .ConfigureAppConfiguration(( context, config ) => + { + _ = config.SetBasePath(Path.Combine(Environment.GetEnvironmentVariable("SWIFTLY_MANAGED_ROOT")!, "configs")); + _ = config.AddJsonFile("permissions.jsonc", optional: false, reloadOnChange: true); + }) + .ConfigureServices(( context, services ) => + { + _ = services + .AddProfileService() + .AddConfigurationService() + .AddTestService() + .AddRootDirService() + .AddDataDirectoryService() + .AddPlayerManagerService() + .AddPluginManager() + .AddHookManager() + .AddTraceManagerService() + .AddPermissionManager() + .AddCoreHookService() + .AddCoreCommandService() + .AddCommandTrackerManager() + .AddCommandTrackerService() + .AddSwiftlyCore(basePath); + }) + .Build(); - _host.Start(); + _host.Start(); - // provider.UseTestService(); + // provider.UseTestService(); - } + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Extensions/PtrExtensions.cs b/managed/src/SwiftlyS2.Core/Extensions/PtrExtensions.cs index 56950223c..4aacb13e1 100644 --- a/managed/src/SwiftlyS2.Core/Extensions/PtrExtensions.cs +++ b/managed/src/SwiftlyS2.Core/Extensions/PtrExtensions.cs @@ -1,5 +1,4 @@ using System.Runtime.CompilerServices; -using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.Schemas; @@ -8,112 +7,112 @@ namespace SwiftlyS2.Core.Extensions; internal static class PtrExtensions { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static T Read( this nint ptr ) where T : unmanaged - { - unsafe { return Unsafe.Read((void*)ptr); } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static T Read( this nint ptr, int offset ) where T : unmanaged - { - unsafe { return Unsafe.Read((void*)(ptr + offset)); } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static T Read( this nint ptr, nint offset ) where T : unmanaged - { - unsafe { return Unsafe.Read((void*)(ptr + offset)); } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ref T AsRef( this nint ptr ) where T : unmanaged - { - unsafe { return ref Unsafe.AsRef((void*)ptr); } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ref T AsRef( this nint ptr, int offset ) where T : unmanaged - { - unsafe { return ref Unsafe.AsRef((void*)(ptr + offset)); } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ref T AsRef( this nint ptr, nint offset ) where T : unmanaged - { - unsafe { return ref Unsafe.AsRef((void*)(ptr + offset)); } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ref T Deref( this nint ptr ) where T : unmanaged - { - return ref ptr.Read().AsRef(); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ref T Deref( this nint ptr, int offset ) where T : unmanaged - { - return ref ptr.Read(offset).AsRef(); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ref T Deref( this nint ptr, nint offset ) where T : unmanaged - { - return ref ptr.Read(offset).AsRef(); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Write( this nint ptr, T value ) where T : unmanaged - { - unsafe { Unsafe.Write((void*)ptr, value); } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Write( this nint ptr, int offset, T value ) where T : unmanaged - { - unsafe { Unsafe.Write((void*)(ptr + offset), value); } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Write( this nint ptr, nint offset, T value ) where T : unmanaged - { - unsafe { Unsafe.Write((void*)(ptr + offset), value); } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CopyFrom( this nint ptr, byte[] source ) - { - unsafe - { - fixed (byte* sourcePtr = source) - { - Unsafe.CopyBlockUnaligned((void*)ptr, sourcePtr, (uint)source.Length); - } - } - } - - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CopyFrom( this nint ptr, nint source, int size ) - { - unsafe { Unsafe.CopyBlockUnaligned((void*)ptr, (void*)source, (uint)size); } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void CopyFrom( this nint ptr, int offset, nint source, int size ) - { - unsafe { Unsafe.CopyBlockUnaligned((void*)(ptr + offset), (void*)source, (uint)size); } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool IsValidPtr( this nint ptr ) - { - return ptr != 0 && ptr != IntPtr.MaxValue; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static T AsHandle( this nint ptr ) where T : INativeHandle, ISchemaClass - { - return T.From(ptr); - } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static T Read( this nint ptr ) where T : unmanaged + { + unsafe { return Unsafe.Read((void*)ptr); } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static T Read( this nint ptr, int offset ) where T : unmanaged + { + unsafe { return Unsafe.Read((void*)(ptr + offset)); } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static T Read( this nint ptr, nint offset ) where T : unmanaged + { + unsafe { return Unsafe.Read((void*)(ptr + offset)); } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ref T AsRef( this nint ptr ) where T : unmanaged + { + unsafe { return ref Unsafe.AsRef((void*)ptr); } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ref T AsRef( this nint ptr, int offset ) where T : unmanaged + { + unsafe { return ref Unsafe.AsRef((void*)(ptr + offset)); } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ref T AsRef( this nint ptr, nint offset ) where T : unmanaged + { + unsafe { return ref Unsafe.AsRef((void*)(ptr + offset)); } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ref T Deref( this nint ptr ) where T : unmanaged + { + return ref ptr.Read().AsRef(); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ref T Deref( this nint ptr, int offset ) where T : unmanaged + { + return ref ptr.Read(offset).AsRef(); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ref T Deref( this nint ptr, nint offset ) where T : unmanaged + { + return ref ptr.Read(offset).AsRef(); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Write( this nint ptr, T value ) where T : unmanaged + { + unsafe { Unsafe.Write((void*)ptr, value); } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Write( this nint ptr, int offset, T value ) where T : unmanaged + { + unsafe { Unsafe.Write((void*)(ptr + offset), value); } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Write( this nint ptr, nint offset, T value ) where T : unmanaged + { + unsafe { Unsafe.Write((void*)(ptr + offset), value); } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CopyFrom( this nint ptr, byte[] source ) + { + unsafe + { + fixed (byte* sourcePtr = source) + { + Unsafe.CopyBlockUnaligned((void*)ptr, sourcePtr, (uint)source.Length); + } + } + } + + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CopyFrom( this nint ptr, nint source, int size ) + { + unsafe { Unsafe.CopyBlockUnaligned((void*)ptr, (void*)source, (uint)size); } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void CopyFrom( this nint ptr, int offset, nint source, int size ) + { + unsafe { Unsafe.CopyBlockUnaligned((void*)(ptr + offset), (void*)source, (uint)size); } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool IsValidPtr( this nint ptr ) + { + return ptr != 0 && ptr != IntPtr.MaxValue; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static T AsHandle( this nint ptr ) where T : INativeHandle, ISchemaClass + { + return T.From(ptr); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/CommandTrackerManagerInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/CommandTrackerManagerInjection.cs index 06956612d..702169667 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/CommandTrackerManagerInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/CommandTrackerManagerInjection.cs @@ -5,10 +5,10 @@ namespace SwiftlyS2.Core.Hosting; internal static class CommandTrackerManagerInjection { - public static IServiceCollection AddCommandTrackerManager(this IServiceCollection self) + public static IServiceCollection AddCommandTrackerManager( this IServiceCollection self ) { return self.AddSingleton(); } - + } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/CommandTrackerServiceInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/CommandTrackerServiceInjection.cs index 427b50859..5bef0664e 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/CommandTrackerServiceInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/CommandTrackerServiceInjection.cs @@ -1,18 +1,17 @@ using Microsoft.Extensions.DependencyInjection; using SwiftlyS2.Core.Engine; -using SwiftlyS2.Core.Services; namespace SwiftlyS2.Core.Hosting; internal static class CommandTrackerServiceInjection { - public static IServiceCollection AddCommandTrackerService(this IServiceCollection self) + public static IServiceCollection AddCommandTrackerService( this IServiceCollection self ) { return self.AddSingleton(); } - public static void UseCommandTrackerService(this IServiceProvider self) + public static void UseCommandTrackerService( this IServiceProvider self ) { - self.GetRequiredService(); + _ = self.GetRequiredService(); } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/ConfigurationServiceInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/ConfigurationServiceInjection.cs index 63372e584..2c1ca61ba 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/ConfigurationServiceInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/ConfigurationServiceInjection.cs @@ -5,9 +5,9 @@ namespace SwiftlyS2.Core.Hosting; internal static class ConfigurationServiceInjection { - public static IServiceCollection AddConfigurationService(this IServiceCollection self) - { - self.AddSingleton(); - return self; - } + public static IServiceCollection AddConfigurationService( this IServiceCollection self ) + { + _ = self.AddSingleton(); + return self; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/CoreCommandServiceInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/CoreCommandServiceInjection.cs index f38034c50..e81be0778 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/CoreCommandServiceInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/CoreCommandServiceInjection.cs @@ -3,13 +3,16 @@ namespace SwiftlyS2.Core.Hosting; -internal static class CoreCommandServiceInjection { - public static IServiceCollection AddCoreCommandService(this IServiceCollection services) { - services.AddSingleton(); - return services; - } +internal static class CoreCommandServiceInjection +{ + public static IServiceCollection AddCoreCommandService( this IServiceCollection services ) + { + _ = services.AddSingleton(); + return services; + } - public static void UseCoreCommandService(this IServiceProvider provider) { - provider.GetRequiredService(); - } + public static void UseCoreCommandService( this IServiceProvider provider ) + { + _ = provider.GetRequiredService(); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/CoreHookServiceInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/CoreHookServiceInjection.cs index a3dffeb92..7c1d69102 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/CoreHookServiceInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/CoreHookServiceInjection.cs @@ -3,13 +3,16 @@ namespace SwiftlyS2.Core.Hosting; -internal static class CoreHookServiceInjection { - public static IServiceCollection AddCoreHookService(this IServiceCollection self) { - self.AddSingleton(); - return self; - } +internal static class CoreHookServiceInjection +{ + public static IServiceCollection AddCoreHookService( this IServiceCollection self ) + { + _ = self.AddSingleton(); + return self; + } - public static void UseCoreHookService(this IServiceProvider self) { - self.GetRequiredService(); - } + public static void UseCoreHookService( this IServiceProvider self ) + { + _ = self.GetRequiredService(); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/DataDirectoryServiceInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/DataDirectoryServiceInjection.cs index c1b0d5009..652e5623a 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/DataDirectoryServiceInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/DataDirectoryServiceInjection.cs @@ -3,9 +3,11 @@ namespace SwiftlyS2.Core.Hosting; -internal static class DataDirectoryServiceInjection { - public static IServiceCollection AddDataDirectoryService(this IServiceCollection self) { - self.AddSingleton(); - return self; - } +internal static class DataDirectoryServiceInjection +{ + public static IServiceCollection AddDataDirectoryService( this IServiceCollection self ) + { + _ = self.AddSingleton(); + return self; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/HookManagerInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/HookManagerInjection.cs index 2c3ec3f9a..490c8a050 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/HookManagerInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/HookManagerInjection.cs @@ -1,14 +1,13 @@ using Microsoft.Extensions.DependencyInjection; using SwiftlyS2.Core.Hooks; -using SwiftlyS2.Core.Services; namespace SwiftlyS2.Core.Hosting; internal static class HookServiceInjection { - public static IServiceCollection AddHookManager(this IServiceCollection self) - { - self.AddSingleton(); - return self; - } -} \ No newline at end of file + public static IServiceCollection AddHookManager( this IServiceCollection self ) + { + _ = self.AddSingleton(); + return self; + } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/PermissionManagerInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/PermissionManagerInjection.cs index af2b4e9b1..8a1162ba5 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/PermissionManagerInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/PermissionManagerInjection.cs @@ -4,18 +4,21 @@ namespace SwiftlyS2.Core.Hosting; -internal static class PermissionManagerInjection { - public static IServiceCollection AddPermissionManager(this IServiceCollection self) { - self.AddSingleton(); +internal static class PermissionManagerInjection +{ + public static IServiceCollection AddPermissionManager( this IServiceCollection self ) + { + _ = self.AddSingleton(); - self.AddOptions() - .BindConfiguration("Permissions") - .ValidateOnStart(); + _ = self.AddOptions() + .BindConfiguration("Permissions") + .ValidateOnStart(); - return self; - } + return self; + } - public static void UsePermissionManager(this IServiceProvider self) { - self.GetRequiredService(); - } + public static void UsePermissionManager( this IServiceProvider self ) + { + _ = self.GetRequiredService(); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/PlayerManagerServiceInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/PlayerManagerServiceInjection.cs index 5d415f4a6..834dc6e23 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/PlayerManagerServiceInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/PlayerManagerServiceInjection.cs @@ -1,11 +1,11 @@ -using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection; using SwiftlyS2.Core.Players; namespace SwiftlyS2.Core.Hosting; internal static class PlayerManagerServiceInjection { - public static IServiceCollection AddPlayerManagerService(this IServiceCollection self) + public static IServiceCollection AddPlayerManagerService( this IServiceCollection self ) { return self.AddSingleton(); } diff --git a/managed/src/SwiftlyS2.Core/Hosting/PluginManagerInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/PluginManagerInjection.cs index a248825a8..cf083bab1 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/PluginManagerInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/PluginManagerInjection.cs @@ -5,13 +5,13 @@ namespace SwiftlyS2.Core.Hosting; internal static class PluginManagerInjection { - public static IServiceCollection AddPluginManager(this IServiceCollection self) - { - return self.AddSingleton(); - } + public static IServiceCollection AddPluginManager( this IServiceCollection self ) + { + return self.AddSingleton(); + } - public static void UsePluginManager(this IServiceProvider self) - { - self.GetRequiredService(); - } + public static void UsePluginManager( this IServiceProvider self ) + { + _ = self.GetRequiredService(); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/ProfileServiceInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/ProfileServiceInjection.cs index e73aa5482..d733661aa 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/ProfileServiceInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/ProfileServiceInjection.cs @@ -5,8 +5,8 @@ namespace SwiftlyS2.Core.Hosting; internal static class ProfileServiceInjection { - public static IServiceCollection AddProfileService(this IServiceCollection self) - { - return self.AddSingleton(); - } + public static IServiceCollection AddProfileService( this IServiceCollection self ) + { + return self.AddSingleton(); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/RootDirServiceInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/RootDirServiceInjection.cs index 255f3f1b3..0168a7a22 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/RootDirServiceInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/RootDirServiceInjection.cs @@ -5,9 +5,9 @@ namespace SwiftlyS2.Core.Hosting; internal static class RootDirServiceInjection { - public static IServiceCollection AddRootDirService(this IServiceCollection self) - { - self.AddSingleton(); - return self; - } + public static IServiceCollection AddRootDirService( this IServiceCollection self ) + { + _ = self.AddSingleton(); + return self; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/SwiftlyCoreInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/SwiftlyCoreInjection.cs index b0e05f2f4..6095f702a 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/SwiftlyCoreInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/SwiftlyCoreInjection.cs @@ -4,15 +4,17 @@ namespace SwiftlyS2.Core.Hosting; -internal static class SwiftlyCoreInjection { - public static IServiceCollection AddSwiftlyCore(this IServiceCollection self, string basePath) { - return self.AddSingleton((provider) => new SwiftlyCore( - "SwiftlyS2", - basePath, - null, - typeof(SwiftlyCore), - provider, - basePath - )); - } +internal static class SwiftlyCoreInjection +{ + public static IServiceCollection AddSwiftlyCore( this IServiceCollection self, string basePath ) + { + return self.AddSingleton(( provider ) => new SwiftlyCore( + "SwiftlyS2", + basePath, + null, + typeof(SwiftlyCore), + provider, + basePath + )); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/TestServiceInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/TestServiceInjection.cs index 4f56c1615..8f07c3629 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/TestServiceInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/TestServiceInjection.cs @@ -5,14 +5,14 @@ namespace SwiftlyS2.Core.Hosting; internal static class TestServiceInjection { - public static IServiceCollection AddTestService(this IServiceCollection self) - { - self.AddSingleton(); - return self; - } + public static IServiceCollection AddTestService( this IServiceCollection self ) + { + _ = self.AddSingleton(); + return self; + } - public static void UseTestService(this IServiceProvider self) - { - self.GetRequiredService(); - } + public static void UseTestService( this IServiceProvider self ) + { + _ = self.GetRequiredService(); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Hosting/TraceManagerServiceInjection.cs b/managed/src/SwiftlyS2.Core/Hosting/TraceManagerServiceInjection.cs index 3dc67b767..e0ea1ac93 100644 --- a/managed/src/SwiftlyS2.Core/Hosting/TraceManagerServiceInjection.cs +++ b/managed/src/SwiftlyS2.Core/Hosting/TraceManagerServiceInjection.cs @@ -1,13 +1,13 @@ -using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection; using SwiftlyS2.Core.Services; namespace SwiftlyS2.Core.Hosting; internal static class TraceManagerServiceInjection { - public static IServiceCollection AddTraceManagerService(this IServiceCollection self) + public static IServiceCollection AddTraceManagerService( this IServiceCollection self ) { - self.AddSingleton(); + _ = self.AddSingleton(); return self; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Misc/CoreContext.cs b/managed/src/SwiftlyS2.Core/Misc/CoreContext.cs index 821586f61..8c65f1bf7 100644 --- a/managed/src/SwiftlyS2.Core/Misc/CoreContext.cs +++ b/managed/src/SwiftlyS2.Core/Misc/CoreContext.cs @@ -1,18 +1,19 @@ -using SwiftlyS2.Core.Plugins; using SwiftlyS2.Shared; namespace SwiftlyS2.Core.Services; -internal class CoreContext { - public string Name { get; init; } +internal class CoreContext +{ + public string Name { get; init; } - public string BaseDirectory { get; init; } + public string BaseDirectory { get; init; } - public PluginMetadata? PluginMetadata { get; init; } + public PluginMetadata? PluginMetadata { get; init; } - public CoreContext(string name, string baseDirectory, PluginMetadata? pluginManifest) { - Name = name; - BaseDirectory = baseDirectory; - PluginMetadata = pluginManifest; - } + public CoreContext( string name, string baseDirectory, PluginMetadata? pluginManifest ) + { + Name = name; + BaseDirectory = baseDirectory; + PluginMetadata = pluginManifest; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Misc/FileLogger.cs b/managed/src/SwiftlyS2.Core/Misc/FileLogger.cs index 588299742..3ea2a5b8a 100644 --- a/managed/src/SwiftlyS2.Core/Misc/FileLogger.cs +++ b/managed/src/SwiftlyS2.Core/Misc/FileLogger.cs @@ -1,66 +1,63 @@ -using System.Text; -using Spectre.Console; - namespace SwiftlyS2.Core.Misc; internal static class FileLogger { - private static StreamWriter? _fileStream; - private static Lock _lock = new(); - - public static void Initialize( string basePath ) - { - var directory = Path.Combine(basePath, "logs"); + private static StreamWriter? _fileStream; + private static readonly Lock _lock = new(); - if (!Directory.Exists(directory)) + public static void Initialize( string basePath ) { - Directory.CreateDirectory(directory); - } + var directory = Path.Combine(basePath, "logs"); - var time = DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss"); + if (!Directory.Exists(directory)) + { + _ = Directory.CreateDirectory(directory); + } - var filePath = Path.Combine(directory, $"swiftlys2_managed_{time}.log"); + var time = DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss"); - if (File.Exists(filePath)) - { - File.Delete(filePath); - } + var filePath = Path.Combine(directory, $"swiftlys2_managed_{time}.log"); - _fileStream = new StreamWriter(filePath, true); - } + if (File.Exists(filePath)) + { + File.Delete(filePath); + } - public static void Log( string message ) - { - lock (_lock) - { - if (_fileStream == null) - { - return; - } + _fileStream = new StreamWriter(filePath, true); + } - _fileStream.WriteLine(message); - _fileStream.Flush(); + public static void Log( string message ) + { + lock (_lock) + { + if (_fileStream == null) + { + return; + } + + _fileStream.WriteLine(message); + _fileStream.Flush(); + } } - } - public static void LogException( Exception exception, string message ) - { - lock (_lock) + public static void LogException( Exception exception, string message ) + { + lock (_lock) + { + if (_fileStream == null) + { + return; + } + _fileStream.WriteLine(message); + _fileStream.WriteLine(exception.Message); + _fileStream.WriteLine(exception.StackTrace); + _fileStream.Flush(); + } + } + public static void Dispose() { - if (_fileStream == null) - { - return; - } - _fileStream.WriteLine(message); - _fileStream.WriteLine(exception.Message); - _fileStream.WriteLine(exception.StackTrace); - _fileStream.Flush(); + _fileStream?.Dispose(); + _fileStream = null; } - } - public static void Dispose() - { - _fileStream?.Dispose(); - _fileStream = null; - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Misc/SwiftlyLogger.cs b/managed/src/SwiftlyS2.Core/Misc/SwiftlyLogger.cs index 71b086b86..64d5372c0 100644 --- a/managed/src/SwiftlyS2.Core/Misc/SwiftlyLogger.cs +++ b/managed/src/SwiftlyS2.Core/Misc/SwiftlyLogger.cs @@ -5,107 +5,107 @@ namespace SwiftlyS2.Core.Misc; internal class SwiftlyLoggerProvider : ILoggerProvider { - private readonly string _contextName; + private readonly string _contextName; - public SwiftlyLoggerProvider(string contextName) - { - _contextName = contextName; - } + public SwiftlyLoggerProvider( string contextName ) + { + _contextName = contextName; + } - public ILogger CreateLogger(string categoryName) - { - return new SwiftlyLogger(categoryName, _contextName); - } + public ILogger CreateLogger( string categoryName ) + { + return new SwiftlyLogger(categoryName, _contextName); + } - public void Dispose() - { - } + public void Dispose() + { + } } internal class SwiftlyLogger : ILogger { - private readonly string _categoryName; - private readonly string _contextName; - - public SwiftlyLogger(string categoryName, string contextName) - { - _categoryName = categoryName; - _contextName = contextName; - } - - public IDisposable? BeginScope(TState state) where TState : notnull - { - return NullScope.Instance; - } - - public bool IsEnabled(LogLevel logLevel) - { - return logLevel != LogLevel.None; - } - - public void Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func formatter) - { - if (!IsEnabled(logLevel)) return; - - var timestamp = DateTime.Now.ToString("MM/dd HH:mm:ss"); - var level = GetLogLevelString(logLevel); - var id = $"[{eventId.ToString()}]"; - var color = GetLogLevelColor(logLevel); - - AnsiConsole.MarkupLineInterpolated($"[lightsteelblue1 bold]{_contextName}[/] [lightsteelblue]|[/] [grey42]{timestamp}[/] [lightsteelblue]|[/] [{color}]{level}[/] [lightsteelblue]|[/] [lightsteelblue]{_categoryName}{id}[/]"); - - string? message = formatter != null ? formatter(state, exception) : state?.ToString(); - if (!string.IsNullOrEmpty(message)) + private readonly string _categoryName; + private readonly string _contextName; + + public SwiftlyLogger( string categoryName, string contextName ) { - FileLogger.Log($"{_contextName} | {timestamp} | {level} | {_categoryName}{id} | {message}"); - var lines = message.Split('\n'); - for (int i = 0; i < lines.Length; i++) - { - var line = lines[i]; - if (i == lines.Length - 1 && line == "") break; - AnsiConsole.MarkupLineInterpolated($"[lightsteelblue1 bold]{_contextName}[/] [lightsteelblue]|[/] [grey85]{line}[/]"); - } + _categoryName = categoryName; + _contextName = contextName; } - if (exception != null) + public IDisposable? BeginScope( TState state ) where TState : notnull { - FileLogger.LogException(exception, $"{exception.Message}"); - AnsiConsole.WriteException(exception); + return NullScope.Instance; } - AnsiConsole.Reset(); - } - private static string GetLogLevelString(LogLevel logLevel) - { - return logLevel switch + public bool IsEnabled( LogLevel logLevel ) { - LogLevel.Trace => "Trace ", - LogLevel.Debug => "Debug ", - LogLevel.Information => "Information", - LogLevel.Warning => "Warning ", - LogLevel.Error => "Error ", - LogLevel.Critical => "Critical ", - _ => "Unknown " - }; - } - - private static string GetLogLevelColor(LogLevel logLevel) - { - return logLevel switch + return logLevel != LogLevel.None; + } + + public void Log( LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func formatter ) { - LogLevel.Trace => "grey42", - LogLevel.Debug => "grey42", - LogLevel.Information => "silver", - LogLevel.Warning => "yellow1", - LogLevel.Error => "red3", - LogLevel.Critical => "red3", - _ => "grey42" - }; - } - - private sealed class NullScope : IDisposable - { - public static readonly NullScope Instance = new NullScope(); - public void Dispose() { } - } + if (!IsEnabled(logLevel)) return; + + var timestamp = DateTime.Now.ToString("MM/dd HH:mm:ss"); + var level = GetLogLevelString(logLevel); + var id = $"[{eventId}]"; + var color = GetLogLevelColor(logLevel); + + AnsiConsole.MarkupLineInterpolated($"[lightsteelblue1 bold]{_contextName}[/] [lightsteelblue]|[/] [grey42]{timestamp}[/] [lightsteelblue]|[/] [{color}]{level}[/] [lightsteelblue]|[/] [lightsteelblue]{_categoryName}{id}[/]"); + + var message = formatter != null ? formatter(state, exception) : state?.ToString(); + if (!string.IsNullOrEmpty(message)) + { + FileLogger.Log($"{_contextName} | {timestamp} | {level} | {_categoryName}{id} | {message}"); + var lines = message.Split('\n'); + for (var i = 0; i < lines.Length; i++) + { + var line = lines[i]; + if (i == lines.Length - 1 && line == "") break; + AnsiConsole.MarkupLineInterpolated($"[lightsteelblue1 bold]{_contextName}[/] [lightsteelblue]|[/] [grey85]{line}[/]"); + } + } + + if (exception != null) + { + FileLogger.LogException(exception, $"{exception.Message}"); + AnsiConsole.WriteException(exception); + } + AnsiConsole.Reset(); + } + + private static string GetLogLevelString( LogLevel logLevel ) + { + return logLevel switch { + LogLevel.Trace => "Trace ", + LogLevel.Debug => "Debug ", + LogLevel.Information => "Information", + LogLevel.Warning => "Warning ", + LogLevel.Error => "Error ", + LogLevel.Critical => "Critical ", + LogLevel.None => throw new NotImplementedException(), + _ => "Unknown " + }; + } + + private static string GetLogLevelColor( LogLevel logLevel ) + { + return logLevel switch { + LogLevel.Trace => "grey42", + LogLevel.Debug => "grey42", + LogLevel.Information => "silver", + LogLevel.Warning => "yellow1", + LogLevel.Error => "red3", + LogLevel.Critical => "red3", + LogLevel.None => throw new NotImplementedException(), + _ => "grey42" + }; + } + + private sealed class NullScope : IDisposable + { + public static readonly NullScope Instance = new(); + public void Dispose() { } + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Models/PermissionConfig.cs b/managed/src/SwiftlyS2.Core/Models/PermissionConfig.cs index c67c3dd3a..4eb1155e2 100644 --- a/managed/src/SwiftlyS2.Core/Models/PermissionConfig.cs +++ b/managed/src/SwiftlyS2.Core/Models/PermissionConfig.cs @@ -1,6 +1,7 @@ namespace SwiftlyS2.Core.Models; -internal class PermissionConfig { - public Dictionary> Players { get; set; } = new(); - public Dictionary> PermissionGroups { get; set; } = new(); +internal class PermissionConfig +{ + public Dictionary> Players { get; set; } = []; + public Dictionary> PermissionGroups { get; set; } = []; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/CommandLine/CommandLine.cs b/managed/src/SwiftlyS2.Core/Modules/CommandLine/CommandLine.cs index abff6c849..d726bf9a6 100644 --- a/managed/src/SwiftlyS2.Core/Modules/CommandLine/CommandLine.cs +++ b/managed/src/SwiftlyS2.Core/Modules/CommandLine/CommandLine.cs @@ -11,22 +11,22 @@ internal class CommandLineService : ICommandLine public bool HasParameters => NativeCommandLine.HasParameters(); - public float GetParameterFloat(string paramName, float defaultValue = 0) + public float GetParameterFloat( string paramName, float defaultValue = 0 ) { return NativeCommandLine.GetParameterValueFloat(paramName, defaultValue); } - public int GetParameterInt(string paramName, int defaultValue = 0) + public int GetParameterInt( string paramName, int defaultValue = 0 ) { return NativeCommandLine.GetParameterValueInt(paramName, defaultValue); } - public string GetParameterString(string paramName, string defaultValue = "") + public string GetParameterString( string paramName, string defaultValue = "" ) { return NativeCommandLine.GetParameterValueString(paramName, defaultValue); } - public bool HasParameter(string paramName) + public bool HasParameter( string paramName ) { return NativeCommandLine.HasParameter(paramName); } diff --git a/managed/src/SwiftlyS2.Core/Modules/Commands/CommandCallback.cs b/managed/src/SwiftlyS2.Core/Modules/Commands/CommandCallback.cs index c0680c35f..69c447f0f 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Commands/CommandCallback.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Commands/CommandCallback.cs @@ -1,13 +1,11 @@ using System.Runtime.InteropServices; +using Microsoft.Extensions.Logging; using SwiftlyS2.Core.Natives; -using SwiftlyS2.Core.Services; -using SwiftlyS2.Shared.Misc; using SwiftlyS2.Shared.Commands; +using SwiftlyS2.Shared.Misc; using SwiftlyS2.Shared.Permissions; using SwiftlyS2.Shared.Players; -using Microsoft.Extensions.Logging; using SwiftlyS2.Shared.Profiler; -using SwiftlyS2.Shared; namespace SwiftlyS2.Core.Commands; @@ -20,182 +18,182 @@ namespace SwiftlyS2.Core.Commands; internal abstract class CommandCallbackBase : IDisposable { - public Guid Guid { get; protected init; } + public Guid Guid { get; protected init; } - public IContextedProfilerService Profiler { get; } + public IContextedProfilerService Profiler { get; } - public ILoggerFactory LoggerFactory { get; } + public ILoggerFactory LoggerFactory { get; } - protected CommandCallbackBase( ILoggerFactory loggerFactory, IContextedProfilerService profiler ) - { - LoggerFactory = loggerFactory; - Profiler = profiler; - } + protected CommandCallbackBase( ILoggerFactory loggerFactory, IContextedProfilerService profiler ) + { + LoggerFactory = loggerFactory; + Profiler = profiler; + } - public abstract void Dispose(); + public abstract void Dispose(); } internal class CommandCallback : CommandCallbackBase { - public string CommandName { get; protected init; } + public string CommandName { get; protected init; } - private ICommandService.CommandListener _handler; - private CommandCallbackDelegate _unmanagedCallback; + private readonly ICommandService.CommandListener _handler; + private readonly CommandCallbackDelegate _unmanagedCallback; - private nint _unmanagedCallbackPtr; - private ulong _nativeListenerId; - private string _permissions; + private readonly nint _unmanagedCallbackPtr; + private readonly ulong _nativeListenerId; + private readonly string _permissions; - private ILogger _logger; - private readonly IPlayerManagerService _playerManagerService; - private readonly IPermissionManager _permissionManager; + private readonly ILogger _logger; + private readonly IPlayerManagerService _playerManagerService; + private readonly IPermissionManager _permissionManager; - public CommandCallback( string commandName, bool registerRaw, ICommandService.CommandListener handler, string permission, IPlayerManagerService playerManagerService, IPermissionManager permissionManager, ILoggerFactory loggerFactory, IContextedProfilerService profiler ) - : base(loggerFactory, profiler) - { - _logger = LoggerFactory.CreateLogger(); - _playerManagerService = playerManagerService; - _permissionManager = permissionManager; - Guid = Guid.NewGuid(); + public CommandCallback( string commandName, bool registerRaw, ICommandService.CommandListener handler, string permission, IPlayerManagerService playerManagerService, IPermissionManager permissionManager, ILoggerFactory loggerFactory, IContextedProfilerService profiler ) + : base(loggerFactory, profiler) + { + _logger = LoggerFactory.CreateLogger(); + _playerManagerService = playerManagerService; + _permissionManager = permissionManager; + Guid = Guid.NewGuid(); - CommandName = commandName; - _permissions = permission; - _handler = handler; + CommandName = commandName; + _permissions = permission; + _handler = handler; - _unmanagedCallback = ( playerId, argsPtr, commandNamePtr, prefixPtr, slient ) => - { - try - { - var category = "CommandCallback::" + CommandName; - Profiler.StartRecording(category); - var argsString = Marshal.PtrToStringUTF8(argsPtr)!; - var commandNameString = Marshal.PtrToStringUTF8(commandNamePtr)!; - var prefixString = Marshal.PtrToStringUTF8(prefixPtr)!; - - var args = argsString.Split('\x01'); - var context = new CommandContext(playerId, args, commandNameString, prefixString, slient == 1); - if (!context.IsSentByPlayer || string.IsNullOrWhiteSpace(_permissions) || _permissionManager.PlayerHasPermission(_playerManagerService.GetPlayer(playerId).SteamID, _permissions)) + _unmanagedCallback = ( playerId, argsPtr, commandNamePtr, prefixPtr, slient ) => { - _handler(context); - } - else - { - context.Reply("You do not have permission to use this command."); - } - Profiler.StopRecording(category); - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - _logger.LogError(e, "Failed to handle command {0}.", commandName); - } - }; - - _unmanagedCallbackPtr = Marshal.GetFunctionPointerForDelegate(_unmanagedCallback); - - _nativeListenerId = NativeCommands.RegisterCommand(commandName, _unmanagedCallbackPtr, registerRaw); - } - - public override void Dispose() - { - NativeCommands.UnregisterCommand(_nativeListenerId); - } + try + { + var category = "CommandCallback::" + CommandName; + Profiler.StartRecording(category); + var argsString = Marshal.PtrToStringUTF8(argsPtr)!; + var commandNameString = Marshal.PtrToStringUTF8(commandNamePtr)!; + var prefixString = Marshal.PtrToStringUTF8(prefixPtr)!; + + var args = argsString.Split('\x01'); + var context = new CommandContext(playerId, args, commandNameString, prefixString, slient == 1); + if (!context.IsSentByPlayer || string.IsNullOrWhiteSpace(_permissions) || _permissionManager.PlayerHasPermission(_playerManagerService.GetPlayer(playerId).SteamID, _permissions)) + { + _handler(context); + } + else + { + context.Reply("You do not have permission to use this command."); + } + Profiler.StopRecording(category); + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + _logger.LogError(e, "Failed to handle command {0}.", commandName); + } + }; + + _unmanagedCallbackPtr = Marshal.GetFunctionPointerForDelegate(_unmanagedCallback); + + _nativeListenerId = NativeCommands.RegisterCommand(commandName, _unmanagedCallbackPtr, registerRaw); + } + + public override void Dispose() + { + NativeCommands.UnregisterCommand(_nativeListenerId); + } } internal class ClientCommandListenerCallback : CommandCallbackBase { - private ICommandService.ClientCommandHandler _handler; - private ClientCommandListenerCallbackDelegate _unmanagedCallback; - private nint _unmanagedCallbackPtr; - private ulong _nativeListenerId; - private ILogger _logger; + private readonly ICommandService.ClientCommandHandler _handler; + private readonly ClientCommandListenerCallbackDelegate _unmanagedCallback; + private readonly nint _unmanagedCallbackPtr; + private readonly ulong _nativeListenerId; + private readonly ILogger _logger; - public ClientCommandListenerCallback( ICommandService.ClientCommandHandler handler, ILoggerFactory loggerFactory, IContextedProfilerService profiler ) - : base(loggerFactory, profiler) - { - _logger = LoggerFactory.CreateLogger(); - Guid = Guid.NewGuid(); + public ClientCommandListenerCallback( ICommandService.ClientCommandHandler handler, ILoggerFactory loggerFactory, IContextedProfilerService profiler ) + : base(loggerFactory, profiler) + { + _logger = LoggerFactory.CreateLogger(); + Guid = Guid.NewGuid(); - _handler = handler; + _handler = handler; - _unmanagedCallback = ( playerId, commandLinePtr ) => + _unmanagedCallback = ( playerId, commandLinePtr ) => + { + try + { + var category = "ClientCommandListenerCallback"; + Profiler.StartRecording(category); + var commandLineString = Marshal.PtrToStringUTF8(commandLinePtr)!; + var result = _handler(playerId, commandLineString); + Profiler.StopRecording(category); + return result; + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return HookResult.Continue; + _logger.LogError(e, "Failed to handle client command listener."); + return HookResult.Continue; + } + }; + + _unmanagedCallbackPtr = Marshal.GetFunctionPointerForDelegate(_unmanagedCallback); + + _nativeListenerId = NativeCommands.RegisterClientCommandsListener(_unmanagedCallbackPtr); + + } + + public override void Dispose() { - try - { - var category = "ClientCommandListenerCallback"; - Profiler.StartRecording(category); - var commandLineString = Marshal.PtrToStringUTF8(commandLinePtr)!; - var result = _handler(playerId, commandLineString); - Profiler.StopRecording(category); - return result; - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return HookResult.Continue; - _logger.LogError(e, "Failed to handle client command listener."); - return HookResult.Continue; - } - }; - - _unmanagedCallbackPtr = Marshal.GetFunctionPointerForDelegate(_unmanagedCallback); - - _nativeListenerId = NativeCommands.RegisterClientCommandsListener(_unmanagedCallbackPtr); - - } - - public override void Dispose() - { - NativeCommands.UnregisterClientCommandsListener(_nativeListenerId); - } + NativeCommands.UnregisterClientCommandsListener(_nativeListenerId); + } } internal class ClientChatListenerCallback : CommandCallbackBase { - private ICommandService.ClientChatHandler _handler; - private ClientChatListenerCallbackDelegate _unmanagedCallback; - private nint _unmanagedCallbackPtr; - private ulong _nativeListenerId; - private ILogger _logger; + private readonly ICommandService.ClientChatHandler _handler; + private readonly ClientChatListenerCallbackDelegate _unmanagedCallback; + private readonly nint _unmanagedCallbackPtr; + private readonly ulong _nativeListenerId; + private readonly ILogger _logger; - public ClientChatListenerCallback( ICommandService.ClientChatHandler handler, ILoggerFactory loggerFactory, IContextedProfilerService profiler ) - : base(loggerFactory, profiler) - { - _logger = LoggerFactory.CreateLogger(); - Guid = Guid.NewGuid(); + public ClientChatListenerCallback( ICommandService.ClientChatHandler handler, ILoggerFactory loggerFactory, IContextedProfilerService profiler ) + : base(loggerFactory, profiler) + { + _logger = LoggerFactory.CreateLogger(); + Guid = Guid.NewGuid(); - _handler = handler; + _handler = handler; - _unmanagedCallback = ( playerId, textPtr, teamonly ) => + _unmanagedCallback = ( playerId, textPtr, teamonly ) => + { + try + { + var category = "ClientChatListenerCallback"; + Profiler.StartRecording(category); + var textString = Marshal.PtrToStringUTF8(textPtr)!; + var result = _handler(playerId, textString, teamonly == 1); + Profiler.StopRecording(category); + return result; + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return HookResult.Continue; + _logger.LogError(e, "Failed to handle client chat listener."); + return HookResult.Continue; + } + }; + + _unmanagedCallbackPtr = Marshal.GetFunctionPointerForDelegate(_unmanagedCallback); + + _nativeListenerId = NativeCommands.RegisterClientChatListener(_unmanagedCallbackPtr); + + } + + public override void Dispose() { - try - { - var category = "ClientChatListenerCallback"; - Profiler.StartRecording(category); - var textString = Marshal.PtrToStringUTF8(textPtr)!; - var result = _handler(playerId, textString, teamonly == 1); - Profiler.StopRecording(category); - return result; - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return HookResult.Continue; - _logger.LogError(e, "Failed to handle client chat listener."); - return HookResult.Continue; - } - }; - - _unmanagedCallbackPtr = Marshal.GetFunctionPointerForDelegate(_unmanagedCallback); - - _nativeListenerId = NativeCommands.RegisterClientChatListener(_unmanagedCallbackPtr); - - } - - public override void Dispose() - { - NativeCommands.UnregisterClientChatListener(_nativeListenerId); - } + NativeCommands.UnregisterClientChatListener(_nativeListenerId); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Commands/CommandContext.cs b/managed/src/SwiftlyS2.Core/Modules/Commands/CommandContext.cs index 95bc2e70f..e133f9efa 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Commands/CommandContext.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Commands/CommandContext.cs @@ -5,32 +5,37 @@ namespace SwiftlyS2.Core.Commands; -internal class CommandContext : ICommandContext { +internal class CommandContext : ICommandContext +{ - public bool IsSentByPlayer { get; } + public bool IsSentByPlayer { get; } - public IPlayer? Sender { get; } + public IPlayer? Sender { get; } - public string Prefix { get; } + public string Prefix { get; } - public bool IsSlient { get; } + public bool IsSlient { get; } - public string[] Args { get; } + public string[] Args { get; } - public void Reply(string message) { - if (IsSentByPlayer) { - Sender?.SendMessage(MessageType.Chat, message); - } else { - NativeEngineHelpers.SendMessageToConsole(message + Environment.NewLine); + public void Reply( string message ) + { + if (IsSentByPlayer) + { + Sender?.SendMessage(MessageType.Chat, message); + } + else + { + NativeEngineHelpers.SendMessageToConsole(message + Environment.NewLine); + } + } + + public CommandContext( int playerId, string[] args, string commandName, string prefix, bool slient ) + { + IsSentByPlayer = playerId != -1; + Sender = playerId != -1 ? new Player(playerId) : null; + Prefix = prefix; + IsSlient = slient; + Args = args; } - } - - public CommandContext(int playerId, string[] args, string commandName, string prefix, bool slient) - { - IsSentByPlayer = playerId != -1; - Sender = playerId != -1 ? new Player(playerId) : null; - Prefix = prefix; - IsSlient = slient; - Args = args; - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Commands/CommandService.cs b/managed/src/SwiftlyS2.Core/Modules/Commands/CommandService.cs index c5e5d6767..593e75531 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Commands/CommandService.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Commands/CommandService.cs @@ -1,144 +1,142 @@ -using System.Reflection; using Microsoft.Extensions.Logging; using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.Commands; -using SwiftlyS2.Shared.Plugins; -using SwiftlyS2.Shared.Profiler; -using SwiftlyS2.Shared.Players; using SwiftlyS2.Shared.Permissions; +using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.Profiler; namespace SwiftlyS2.Core.Commands; internal class CommandService : ICommandService, IDisposable { - private List _callbacks = new(); - private ILogger _Logger { get; init; } - private ILoggerFactory _LoggerFactory { get; init; } - private IContextedProfilerService _Profiler { get; init; } - private IPlayerManagerService _PlayerManagerService { get; init; } - private IPermissionManager _PermissionManager { get; init; } - - private Lock _lock = new(); + private readonly List _callbacks = []; + private ILogger _Logger { get; init; } + private ILoggerFactory _LoggerFactory { get; init; } + private IContextedProfilerService _Profiler { get; init; } + private IPlayerManagerService _PlayerManagerService { get; init; } + private IPermissionManager _PermissionManager { get; init; } - public CommandService( ILogger logger, ILoggerFactory loggerFactory, IContextedProfilerService profiler, IPlayerManagerService playerManagerService, IPermissionManager permissionManager ) - { - _Logger = logger; - _LoggerFactory = loggerFactory; - _Profiler = profiler; - _PlayerManagerService = playerManagerService; - _PermissionManager = permissionManager; - } + private readonly Lock _lock = new(); - public Guid RegisterCommand( string commandName, ICommandService.CommandListener handler, bool registerRaw = false, string permission = "" ) - { - var callback = new CommandCallback(commandName, registerRaw, handler, permission, _PlayerManagerService, _PermissionManager, _LoggerFactory, _Profiler); - lock (_lock) + public CommandService( ILogger logger, ILoggerFactory loggerFactory, IContextedProfilerService profiler, IPlayerManagerService playerManagerService, IPermissionManager permissionManager ) { - _callbacks.Add(callback); + _Logger = logger; + _LoggerFactory = loggerFactory; + _Profiler = profiler; + _PlayerManagerService = playerManagerService; + _PermissionManager = permissionManager; } - return callback.Guid; - } + public Guid RegisterCommand( string commandName, ICommandService.CommandListener handler, bool registerRaw = false, string permission = "" ) + { + var callback = new CommandCallback(commandName, registerRaw, handler, permission, _PlayerManagerService, _PermissionManager, _LoggerFactory, _Profiler); + lock (_lock) + { + _callbacks.Add(callback); + } + + return callback.Guid; + } - public void RegisterCommandAlias( string commandName, string alias, bool registerRaw = false ) - { - NativeCommands.RegisterAlias(alias, commandName, registerRaw); - } + public void RegisterCommandAlias( string commandName, string alias, bool registerRaw = false ) + { + _ = NativeCommands.RegisterAlias(alias, commandName, registerRaw); + } - public void UnregisterCommand( Guid guid ) - { - lock (_lock) + public void UnregisterCommand( Guid guid ) { - _callbacks.RemoveAll(callback => - { - if (callback.Guid == guid) + lock (_lock) { - callback.Dispose(); - return true; + _ = _callbacks.RemoveAll(callback => + { + if (callback.Guid == guid) + { + callback.Dispose(); + return true; + } + return false; + }); } - return false; - }); } - } - public void UnregisterCommand( string commandName ) - { - lock (_lock) + public void UnregisterCommand( string commandName ) { - _callbacks.RemoveAll(callback => - { - if (callback is CommandCallback commandCallback && commandCallback.CommandName == commandName) + lock (_lock) { - commandCallback.Dispose(); - return true; + _ = _callbacks.RemoveAll(callback => + { + if (callback is CommandCallback commandCallback && commandCallback.CommandName == commandName) + { + commandCallback.Dispose(); + return true; + } + return false; + }); } - return false; - }); } - } - public Guid HookClientCommand( ICommandService.ClientCommandHandler handler ) - { - var callback = new ClientCommandListenerCallback(handler, _LoggerFactory, _Profiler); - lock (_lock) + public Guid HookClientCommand( ICommandService.ClientCommandHandler handler ) { - _callbacks.Add(callback); + var callback = new ClientCommandListenerCallback(handler, _LoggerFactory, _Profiler); + lock (_lock) + { + _callbacks.Add(callback); + } + return callback.Guid; } - return callback.Guid; - } - public void UnhookClientCommand( Guid guid ) - { - lock (_lock) + public void UnhookClientCommand( Guid guid ) { - _callbacks.RemoveAll(callback => - { - if (callback is ClientCommandListenerCallback clientCommandCallback && clientCommandCallback.Guid == guid) + lock (_lock) { - clientCommandCallback.Dispose(); - return true; + _ = _callbacks.RemoveAll(callback => + { + if (callback is ClientCommandListenerCallback clientCommandCallback && clientCommandCallback.Guid == guid) + { + clientCommandCallback.Dispose(); + return true; + } + return false; + }); } - return false; - }); } - } - public Guid HookClientChat( ICommandService.ClientChatHandler handler ) - { - var callback = new ClientChatListenerCallback(handler, _LoggerFactory, _Profiler); - lock (_lock) + public Guid HookClientChat( ICommandService.ClientChatHandler handler ) { - _callbacks.Add(callback); + var callback = new ClientChatListenerCallback(handler, _LoggerFactory, _Profiler); + lock (_lock) + { + _callbacks.Add(callback); + } + return callback.Guid; } - return callback.Guid; - } - public void UnhookClientChat( Guid guid ) - { - lock (_lock) + public void UnhookClientChat( Guid guid ) { - _callbacks.RemoveAll(callback => - { - if (callback is ClientChatListenerCallback clientChatListenerCallback && clientChatListenerCallback.Guid == guid) + lock (_lock) { - clientChatListenerCallback.Dispose(); - return true; + _ = _callbacks.RemoveAll(callback => + { + if (callback is ClientChatListenerCallback clientChatListenerCallback && clientChatListenerCallback.Guid == guid) + { + clientChatListenerCallback.Dispose(); + return true; + } + return false; + }); } - return false; - }); } - } - public void Dispose() - { - lock (_lock) + public void Dispose() { - foreach (var callback in _callbacks) - { - callback.Dispose(); - } - _callbacks.Clear(); + lock (_lock) + { + foreach (var callback in _callbacks) + { + callback.Dispose(); + } + _callbacks.Clear(); + } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/ConsoleOutput/ConsoleOutputService.cs b/managed/src/SwiftlyS2.Core/Modules/ConsoleOutput/ConsoleOutputService.cs index 4eeba9eb9..fa7dff159 100644 --- a/managed/src/SwiftlyS2.Core/Modules/ConsoleOutput/ConsoleOutputService.cs +++ b/managed/src/SwiftlyS2.Core/Modules/ConsoleOutput/ConsoleOutputService.cs @@ -1,7 +1,5 @@ -using Microsoft.Extensions.Logging; using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.ConsoleOutput; -using SwiftlyS2.Shared.Profiler; namespace SwiftlyS2.Core.ConsoleOutput; @@ -26,7 +24,7 @@ public void ReloadFilterConfiguration() NativeConsoleOutput.ReloadFilterConfiguration(); } - public bool NeedsFiltering(string message) + public bool NeedsFiltering( string message ) { return NativeConsoleOutput.NeedsFiltering(message); } @@ -36,7 +34,7 @@ public string GetCounterText() return NativeConsoleOutput.GetCounterText(); } - public void WriteToServerConsole(string message) + public void WriteToServerConsole( string message ) { NativeEngineHelpers.SendMessageToConsole(message); } diff --git a/managed/src/SwiftlyS2.Core/Modules/Convars/ConVar.cs b/managed/src/SwiftlyS2.Core/Modules/Convars/ConVar.cs index 25b4913d6..c0128d84c 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Convars/ConVar.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Convars/ConVar.cs @@ -1,9 +1,8 @@ +using System.Runtime.InteropServices; +using SwiftlyS2.Core.Extensions; using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.Convars; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Core.Extensions; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; namespace SwiftlyS2.Core.Convars; @@ -12,379 +11,369 @@ namespace SwiftlyS2.Core.Convars; internal class ConVar : IConVar { - private Dictionary _callbacks = new(); - private Lock _lock = new(); - - private nint _minValuePtrPtr => NativeConvars.GetMinValuePtrPtr(Name); - private nint _maxValuePtrPtr => NativeConvars.GetMaxValuePtrPtr(Name); - - public EConVarType Type => (EConVarType)NativeConvars.GetConvarType(Name); - - private bool IsValidType => Type > EConVarType.EConVarType_Invalid && Type < EConVarType.EConVarType_MAX; - - // im not sure - private bool IsMinMaxType => IsValidType && Type != EConVarType.EConVarType_String && Type != EConVarType.EConVarType_Color; - - public T MinValue { - get => GetMinValue(); - set => SetMinValue(value); - } - public T MaxValue { - get => GetMaxValue(); - set => SetMaxValue(value); - } - - public T DefaultValue { - get => GetDefaultValue(); - set => SetDefaultValue(value); - } - - public ConvarFlags Flags { - get => (ConvarFlags)NativeConvars.GetFlags(Name); - set => NativeConvars.SetFlags(Name, (ulong)value); - } - - public bool HasDefaultValue => NativeConvars.HasDefaultValue(Name); - - public bool HasMinValue => _minValuePtrPtr.Read() != 0; - public bool HasMaxValue => _maxValuePtrPtr.Read() != 0; - - public string Name { get; set; } - - internal ConVar( string name ) - { - Name = name; - - ValidateType(); - } - - public void ValidateType() - { - if ( - (typeof(T) == typeof(bool) && Type != EConVarType.EConVarType_Bool) || - (typeof(T) == typeof(short) && Type != EConVarType.EConVarType_Int16) || - (typeof(T) == typeof(ushort) && Type != EConVarType.EConVarType_UInt16) || - (typeof(T) == typeof(int) && Type != EConVarType.EConVarType_Int32) || - (typeof(T) == typeof(uint) && Type != EConVarType.EConVarType_UInt32) || - (typeof(T) == typeof(float) && Type != EConVarType.EConVarType_Float32) || - (typeof(T) == typeof(long) && Type != EConVarType.EConVarType_Int64) || - (typeof(T) == typeof(ulong) && Type != EConVarType.EConVarType_UInt64) || - (typeof(T) == typeof(double) && Type != EConVarType.EConVarType_Float64) || - (typeof(T) == typeof(Color) && Type != EConVarType.EConVarType_Color) || - (typeof(T) == typeof(QAngle) && Type != EConVarType.EConVarType_Qangle) || - (typeof(T) == typeof(Vector) && Type != EConVarType.EConVarType_Vector3) || - (typeof(T) == typeof(Vector2D) && Type != EConVarType.EConVarType_Vector2) || - (typeof(T) == typeof(Vector4D) && Type != EConVarType.EConVarType_Vector4) || - (typeof(T) == typeof(string) && Type != EConVarType.EConVarType_String) - ) - { - throw new Exception($"Type mismatch for convar {Name}. The real type is {Type}."); - } - } - - public T Value { - get => GetValue(); - set => SetValue(value); - } - public void ReplicateToClient( int clientId, T value ) - { - var val = ""; - if (value is bool boolValue) - { - val = boolValue ? "1" : "0"; - } - else if (value is short shortValue) - { - val = shortValue.ToString(); - } - else if (value is ushort ushortValue) - { - val = ushortValue.ToString(); - } - else if (value is int intValue) - { - val = intValue.ToString(); - } - else if (value is uint uintValue) - { - val = uintValue.ToString(); - } - else if (value is float floatValue) - { - val = floatValue.ToString(); - } - else if (value is long longValue) - { - val = longValue.ToString(); - } - else if (value is ulong ulongValue) - { - val = ulongValue.ToString(); - } - else if (value is double doubleValue) - { - val = doubleValue.ToString(); - } - else if (value is Color colorValue) - { - val = $"{colorValue.R},{colorValue.G},{colorValue.B}"; - } - else if (value is QAngle qAngleValue) - { - val = $"{qAngleValue.Pitch},{qAngleValue.Yaw},{qAngleValue.Roll}"; - } - else if (value is Vector vectorValue) - { - val = $"{vectorValue.X},{vectorValue.Y},{vectorValue.Z}"; - } - else if (value is Vector2D vector2DValue) - { - val = $"{vector2DValue.X},{vector2DValue.Y}"; - } - else if (value is Vector4D vector4DValue) - { - val = $"{vector4DValue.X},{vector4DValue.Y},{vector4DValue.Z},{vector4DValue.W}"; - } - else if (value is string stringValue) - { - val = stringValue; - } - else throw new ArgumentException($"Invalid type {typeof(T).Name}"); - - NativeConvars.SetClientConvarValueString(clientId, Name, val); - } + private readonly Dictionary _callbacks = []; + private readonly Lock _lock = new(); - public void QueryClient( int clientId, Action callback ) - { - - Action? removeSelf = null; - ConVarCallbackDelegate nativeCallback = ( playerId, namePtr, valuePtr ) => - { - if (clientId != playerId) return; - var name = Marshal.PtrToStringAnsi(namePtr); - if (name != Name) return; - var value = Marshal.PtrToStringAnsi(valuePtr)!; - - // var convertedValue = (T)Convert.ChangeType(value, typeof(T))!; - callback(value); - if (removeSelf != null) removeSelf(); - }; - - - var callbackPtr = Marshal.GetFunctionPointerForDelegate(nativeCallback); - - var listenerId = NativeConvars.AddQueryClientCvarCallback(callbackPtr); - lock (_lock) - { - _callbacks[listenerId] = nativeCallback; - } - - removeSelf = () => - { - lock (_lock) - { - _callbacks.Remove(listenerId); - NativeConvars.RemoveQueryClientCvarCallback(listenerId); - } - }; - - NativeConvars.QueryClientConvar(clientId, Name); - } - - public T GetValue() - { - unsafe - { - if (Type != EConVarType.EConVarType_String) - { - return *(T*)NativeConvars.GetValuePtr(Name); - } - else - { - return (T)(object)(*(CUtlString*)NativeConvars.GetValuePtr(Name)).Value; - } - } - } + private nint _minValuePtrPtr => NativeConvars.GetMinValuePtrPtr(Name); + private nint _maxValuePtrPtr => NativeConvars.GetMaxValuePtrPtr(Name); - public void SetValue( T value ) - { - unsafe - { - if (Type != EConVarType.EConVarType_String) - { - NativeConvars.SetValuePtr(Name, (nint)(&value)); - } - else - { - CUtlString str = new(); - str.Value = (string)(object)value; - NativeConvars.SetValuePtr(Name, (nint)(&str)); - } - } - } - - - public void SetInternal( T value ) - { - unsafe - { - if (Type != EConVarType.EConVarType_String) - { - NativeConvars.SetValueInternalPtr(Name, (nint)(&value)); - } - else - { - CUtlString str = new(); - str.Value = (string)(object)value; - NativeConvars.SetValueInternalPtr(Name, (nint)(&str)); - } - } - } - - - public T GetMinValue() - { - if (!IsMinMaxType) - { - throw new Exception($"Convar {Name} is not a min/max type."); - } - if (!HasMinValue) - { - throw new Exception($"Convar {Name} doesn't have a min value."); - } - unsafe - { - return **(T**)_minValuePtrPtr; - } - } - - public T GetMaxValue() - { - if (!IsMinMaxType) - { - throw new Exception($"Convar {Name} is not a min/max type."); - } - if (!HasMaxValue) - { - throw new Exception($"Convar {Name} doesn't have a max value."); - } - unsafe - { - return **(T**)_maxValuePtrPtr; - } - } - public void SetMinValue( T minValue ) - { - if (!IsMinMaxType) - { - throw new Exception($"Convar {Name} is not a min/max type."); - } - unsafe - { - if (_minValuePtrPtr.Read() == nint.Zero) - { - _minValuePtrPtr.Write(NativeAllocator.Alloc(16)); - } - **(T**)_minValuePtrPtr = minValue; - } - } - - public void SetMaxValue( T maxValue ) - { - if (!IsMinMaxType) - { - throw new Exception($"Convar {Name} is not a min/max type."); - } - unsafe - { - if (_maxValuePtrPtr.Read() == nint.Zero) - { - _maxValuePtrPtr.Write(NativeAllocator.Alloc(16)); - } - **(T**)_maxValuePtrPtr = maxValue; - } - } - - public T GetDefaultValue() - { - unsafe - { - var ptr = NativeConvars.GetDefaultValuePtr(Name); - if (ptr == nint.Zero) - { - throw new Exception($"Convar {Name} doesn't have a default value."); - } - if (Type != EConVarType.EConVarType_String) - { - return *(T*)ptr; - } - else - { - return (T)(object)(*(CUtlString*)ptr).Value; - } - } - } - - public void SetDefaultValue( T defaultValue ) - { - unsafe - { - var ptr = NativeConvars.GetDefaultValuePtr(Name); - if (ptr == nint.Zero) - { - throw new Exception($"Convar {Name} doesn't have a default value."); - } - if (Type != EConVarType.EConVarType_String) - { - *(T*)NativeConvars.GetDefaultValuePtr(Name) = defaultValue; - } - else - { - NativeConvars.GetDefaultValuePtr(Name).Write(StringPool.Allocate((string)(object)defaultValue)); - } - } - } - - public bool TryGetMinValue( out T minValue ) - { - if (!IsMinMaxType) - { - minValue = default; - return false; - } - if (!HasMinValue) - { - minValue = default; - return false; - } - minValue = GetMinValue(); - return true; - } - - public bool TryGetMaxValue( out T maxValue ) - { - if (!IsMinMaxType) - { - maxValue = default; - return false; - } - if (!HasMaxValue) - { - maxValue = default; - return false; - } - maxValue = GetMaxValue(); - return true; - } - - public bool TryGetDefaultValue( out T defaultValue ) - { - if (!HasDefaultValue) - { - defaultValue = default; - return false; + public EConVarType Type => (EConVarType)NativeConvars.GetConvarType(Name); + + private bool IsValidType => Type > EConVarType.EConVarType_Invalid && Type < EConVarType.EConVarType_MAX; + + // im not sure + private bool IsMinMaxType => IsValidType && Type != EConVarType.EConVarType_String && Type != EConVarType.EConVarType_Color; + + public T MinValue { + get => GetMinValue(); + set => SetMinValue(value); + } + public T MaxValue { + get => GetMaxValue(); + set => SetMaxValue(value); + } + + public T DefaultValue { + get => GetDefaultValue(); + set => SetDefaultValue(value); + } + + public ConvarFlags Flags { + get => (ConvarFlags)NativeConvars.GetFlags(Name); + set => NativeConvars.SetFlags(Name, (ulong)value); + } + + public bool HasDefaultValue => NativeConvars.HasDefaultValue(Name); + + public bool HasMinValue => _minValuePtrPtr.Read() != 0; + public bool HasMaxValue => _maxValuePtrPtr.Read() != 0; + + public string Name { get; set; } + + internal ConVar( string name ) + { + Name = name; + + ValidateType(); + } + + public void ValidateType() + { + if ( + (typeof(T) == typeof(bool) && Type != EConVarType.EConVarType_Bool) || + (typeof(T) == typeof(short) && Type != EConVarType.EConVarType_Int16) || + (typeof(T) == typeof(ushort) && Type != EConVarType.EConVarType_UInt16) || + (typeof(T) == typeof(int) && Type != EConVarType.EConVarType_Int32) || + (typeof(T) == typeof(uint) && Type != EConVarType.EConVarType_UInt32) || + (typeof(T) == typeof(float) && Type != EConVarType.EConVarType_Float32) || + (typeof(T) == typeof(long) && Type != EConVarType.EConVarType_Int64) || + (typeof(T) == typeof(ulong) && Type != EConVarType.EConVarType_UInt64) || + (typeof(T) == typeof(double) && Type != EConVarType.EConVarType_Float64) || + (typeof(T) == typeof(Color) && Type != EConVarType.EConVarType_Color) || + (typeof(T) == typeof(QAngle) && Type != EConVarType.EConVarType_Qangle) || + (typeof(T) == typeof(Vector) && Type != EConVarType.EConVarType_Vector3) || + (typeof(T) == typeof(Vector2D) && Type != EConVarType.EConVarType_Vector2) || + (typeof(T) == typeof(Vector4D) && Type != EConVarType.EConVarType_Vector4) || + (typeof(T) == typeof(string) && Type != EConVarType.EConVarType_String) + ) + { + throw new Exception($"Type mismatch for convar {Name}. The real type is {Type}."); + } + } + + public T Value { + get => GetValue(); + set => SetValue(value); + } + + public void ReplicateToClient( int clientId, T value ) + { + var val = ""; + if (value is bool boolValue) + { + val = boolValue ? "1" : "0"; + } + else if (value is short shortValue) + { + val = shortValue.ToString(); + } + else if (value is ushort ushortValue) + { + val = ushortValue.ToString(); + } + else if (value is int intValue) + { + val = intValue.ToString(); + } + else if (value is uint uintValue) + { + val = uintValue.ToString(); + } + else if (value is float floatValue) + { + val = floatValue.ToString(); + } + else if (value is long longValue) + { + val = longValue.ToString(); + } + else if (value is ulong ulongValue) + { + val = ulongValue.ToString(); + } + else if (value is double doubleValue) + { + val = doubleValue.ToString(); + } + else if (value is Color colorValue) + { + val = $"{colorValue.R},{colorValue.G},{colorValue.B}"; + } + else if (value is QAngle qAngleValue) + { + val = $"{qAngleValue.Pitch},{qAngleValue.Yaw},{qAngleValue.Roll}"; + } + else if (value is Vector vectorValue) + { + val = $"{vectorValue.X},{vectorValue.Y},{vectorValue.Z}"; + } + else if (value is Vector2D vector2DValue) + { + val = $"{vector2DValue.X},{vector2DValue.Y}"; + } + else if (value is Vector4D vector4DValue) + { + val = $"{vector4DValue.X},{vector4DValue.Y},{vector4DValue.Z},{vector4DValue.W}"; + } + else + { + val = value is string stringValue ? stringValue : throw new ArgumentException($"Invalid type {typeof(T).Name}"); + } + + NativeConvars.SetClientConvarValueString(clientId, Name, val); + } + + public void QueryClient( int clientId, Action callback ) + { + + Action? removeSelf = null; + void nativeCallback( int playerId, nint namePtr, nint valuePtr ) + { + if (clientId != playerId) return; + var name = Marshal.PtrToStringAnsi(namePtr); + if (name != Name) return; + var value = Marshal.PtrToStringAnsi(valuePtr)!; + + // var convertedValue = (T)Convert.ChangeType(value, typeof(T))!; + callback(value); + removeSelf?.Invoke(); + } + + + var callbackPtr = Marshal.GetFunctionPointerForDelegate((ConVarCallbackDelegate)nativeCallback); + + var listenerId = NativeConvars.AddQueryClientCvarCallback(callbackPtr); + lock (_lock) + { + _callbacks[listenerId] = nativeCallback; + } + + removeSelf = () => + { + lock (_lock) + { + _ = _callbacks.Remove(listenerId); + NativeConvars.RemoveQueryClientCvarCallback(listenerId); + } + }; + + NativeConvars.QueryClientConvar(clientId, Name); + } + + public T GetValue() + { + unsafe + { + return Type != EConVarType.EConVarType_String + ? *(T*)NativeConvars.GetValuePtr(Name) + : (T)(object)(*(CUtlString*)NativeConvars.GetValuePtr(Name)).Value; + } + } + + public void SetValue( T value ) + { + unsafe + { + if (Type != EConVarType.EConVarType_String) + { + NativeConvars.SetValuePtr(Name, (nint)(&value)); + } + else + { + CUtlString str = new() { + Value = (string)(object)value + }; + NativeConvars.SetValuePtr(Name, (nint)(&str)); + } + } + } + + + public void SetInternal( T value ) + { + unsafe + { + if (Type != EConVarType.EConVarType_String) + { + NativeConvars.SetValueInternalPtr(Name, (nint)(&value)); + } + else + { + CUtlString str = new() { + Value = (string)(object)value + }; + NativeConvars.SetValueInternalPtr(Name, (nint)(&str)); + } + } + } + + + public T GetMinValue() + { + if (!IsMinMaxType) + { + throw new Exception($"Convar {Name} is not a min/max type."); + } + if (!HasMinValue) + { + throw new Exception($"Convar {Name} doesn't have a min value."); + } + unsafe + { + return **(T**)_minValuePtrPtr; + } + } + + public T GetMaxValue() + { + if (!IsMinMaxType) + { + throw new Exception($"Convar {Name} is not a min/max type."); + } + if (!HasMaxValue) + { + throw new Exception($"Convar {Name} doesn't have a max value."); + } + unsafe + { + return **(T**)_maxValuePtrPtr; + } + } + public void SetMinValue( T minValue ) + { + if (!IsMinMaxType) + { + throw new Exception($"Convar {Name} is not a min/max type."); + } + unsafe + { + if (_minValuePtrPtr.Read() == nint.Zero) + { + _minValuePtrPtr.Write(NativeAllocator.Alloc(16)); + } + **(T**)_minValuePtrPtr = minValue; + } + } + + public void SetMaxValue( T maxValue ) + { + if (!IsMinMaxType) + { + throw new Exception($"Convar {Name} is not a min/max type."); + } + unsafe + { + if (_maxValuePtrPtr.Read() == nint.Zero) + { + _maxValuePtrPtr.Write(NativeAllocator.Alloc(16)); + } + **(T**)_maxValuePtrPtr = maxValue; + } + } + + public T GetDefaultValue() + { + unsafe + { + var ptr = NativeConvars.GetDefaultValuePtr(Name); + if (ptr == nint.Zero) + { + throw new Exception($"Convar {Name} doesn't have a default value."); + } + return Type != EConVarType.EConVarType_String ? *(T*)ptr : (T)(object)(*(CUtlString*)ptr).Value; + } + } + + public void SetDefaultValue( T defaultValue ) + { + unsafe + { + var ptr = NativeConvars.GetDefaultValuePtr(Name); + if (ptr == nint.Zero) + { + throw new Exception($"Convar {Name} doesn't have a default value."); + } + if (Type != EConVarType.EConVarType_String) + { + *(T*)NativeConvars.GetDefaultValuePtr(Name) = defaultValue; + } + else + { + NativeConvars.GetDefaultValuePtr(Name).Write(StringPool.Allocate((string)(object)defaultValue)); + } + } + } + + public bool TryGetMinValue( out T minValue ) + { + if (!IsMinMaxType) + { + minValue = default; + return false; + } + if (!HasMinValue) + { + minValue = default; + return false; + } + minValue = GetMinValue(); + return true; + } + + public bool TryGetMaxValue( out T maxValue ) + { + if (!IsMinMaxType) + { + maxValue = default; + return false; + } + if (!HasMaxValue) + { + maxValue = default; + return false; + } + maxValue = GetMaxValue(); + return true; + } + + public bool TryGetDefaultValue( out T defaultValue ) + { + if (!HasDefaultValue) + { + defaultValue = default; + return false; + } + defaultValue = GetDefaultValue(); + return true; } - defaultValue = GetDefaultValue(); - return true; - } } diff --git a/managed/src/SwiftlyS2.Core/Modules/Convars/ConVarService.cs b/managed/src/SwiftlyS2.Core/Modules/Convars/ConVarService.cs index e916a6318..6ea69f7ba 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Convars/ConVarService.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Convars/ConVarService.cs @@ -6,269 +6,263 @@ namespace SwiftlyS2.Core.Convars; internal enum EConVarType : int { - EConVarType_Invalid = -1, - EConVarType_Bool, - EConVarType_Int16, - EConVarType_UInt16, - EConVarType_Int32, - EConVarType_UInt32, - EConVarType_Int64, - EConVarType_UInt64, - EConVarType_Float32, - EConVarType_Float64, - EConVarType_String, - EConVarType_Color, - EConVarType_Vector2, - EConVarType_Vector3, - EConVarType_Vector4, - EConVarType_Qangle, - EConVarType_MAX + EConVarType_Invalid = -1, + EConVarType_Bool, + EConVarType_Int16, + EConVarType_UInt16, + EConVarType_Int32, + EConVarType_UInt32, + EConVarType_Int64, + EConVarType_UInt64, + EConVarType_Float32, + EConVarType_Float64, + EConVarType_String, + EConVarType_Color, + EConVarType_Vector2, + EConVarType_Vector3, + EConVarType_Vector4, + EConVarType_Qangle, + EConVarType_MAX }; internal class ConVarService : IConVarService { - public IConVar? Find( string name ) - { - - if (!NativeConvars.ExistsConvar(name)) + public IConVar? Find( string name ) { - return null; - } - - return new ConVar(name); - } - - public IConVar Create( string name, string helpMessage, T defaultValue, ConvarFlags flags = ConvarFlags.NONE ) - { - if (NativeConvars.ExistsConvar(name)) - { - throw new Exception($"Convar {name} already exists."); - } - - if (defaultValue is bool boolValue) - { - NativeConvars.CreateConvarBool(name, (int)EConVarType.EConVarType_Bool, (ulong)flags, helpMessage, boolValue, 0, 0); - } - else if (defaultValue is short shortValue) - { - NativeConvars.CreateConvarInt16(name, (int)EConVarType.EConVarType_Int16, (ulong)flags, helpMessage, shortValue, 0, 0); - } - else if (defaultValue is ushort ushortValue) - { - NativeConvars.CreateConvarUInt16(name, (int)EConVarType.EConVarType_UInt16, (ulong)flags, helpMessage, ushortValue, 0, 0); - } - else if (defaultValue is int intValue) - { - NativeConvars.CreateConvarInt32(name, (int)EConVarType.EConVarType_Int32, (ulong)flags, helpMessage, intValue, 0, 0); - } - else if (defaultValue is uint uintValue) - { - NativeConvars.CreateConvarUInt32(name, (int)EConVarType.EConVarType_UInt32, (ulong)flags, helpMessage, uintValue, 0, 0); - } - else if (defaultValue is long longValue) - { - NativeConvars.CreateConvarInt64(name, (int)EConVarType.EConVarType_Int64, (ulong)flags, helpMessage, longValue, 0, 0); - } - else if (defaultValue is ulong ulongValue) - { - NativeConvars.CreateConvarUInt64(name, (int)EConVarType.EConVarType_UInt64, (ulong)flags, helpMessage, ulongValue, 0, 0); - } - else if (defaultValue is float floatValue) - { - NativeConvars.CreateConvarFloat(name, (int)EConVarType.EConVarType_Float32, (ulong)flags, helpMessage, floatValue, 0, 0); - } - else if (defaultValue is double doubleValue) - { - NativeConvars.CreateConvarDouble(name, (int)EConVarType.EConVarType_Float64, (ulong)flags, helpMessage, doubleValue, 0, 0); - } - else if (defaultValue is Vector2D vector2Value) - { - NativeConvars.CreateConvarVector2D(name, (int)EConVarType.EConVarType_Vector2, (ulong)flags, helpMessage, vector2Value, 0, 0); - } - else if (defaultValue is Vector vector3Value) - { - NativeConvars.CreateConvarVector(name, (int)EConVarType.EConVarType_Vector3, (ulong)flags, helpMessage, vector3Value, 0, 0); - } - else if (defaultValue is Vector4D vector4Value) - { - NativeConvars.CreateConvarVector4D(name, (int)EConVarType.EConVarType_Vector4, (ulong)flags, helpMessage, vector4Value, 0, 0); - } - else if (defaultValue is QAngle qAngleValue) - { - NativeConvars.CreateConvarQAngle(name, (int)EConVarType.EConVarType_Qangle, (ulong)flags, helpMessage, qAngleValue, 0, 0); - } - else if (defaultValue is Color colorValue) - { - NativeConvars.CreateConvarColor(name, (int)EConVarType.EConVarType_Color, (ulong)flags, helpMessage, colorValue, 0, 0); - } - else if (defaultValue is string stringValue) - { - NativeConvars.CreateConvarString(name, (int)EConVarType.EConVarType_String, (ulong)flags, helpMessage, stringValue, 0, 0); + return !NativeConvars.ExistsConvar(name) ? null : (IConVar)new ConVar(name); } - else - { - throw new Exception($"Unsupported type {typeof(T)}."); - } - - return new ConVar(name); - } - public IConVar Create( string name, string helpMessage, T defaultValue, T? minValue, T? maxValue, ConvarFlags flags = ConvarFlags.NONE ) where T : unmanaged - { - - if (NativeConvars.ExistsConvar(name)) + public IConVar Create( string name, string helpMessage, T defaultValue, ConvarFlags flags = ConvarFlags.NONE ) { - throw new Exception($"Convar {name} already exists."); - } - unsafe - { - - if (defaultValue is short shortValue) - { - short* pMin = stackalloc short[1]; - if (minValue.HasValue) + if (NativeConvars.ExistsConvar(name)) { - pMin[0] = (short)(object)minValue.Value; + throw new Exception($"Convar {name} already exists."); } - short* pMax = stackalloc short[1]; - if (maxValue.HasValue) + if (defaultValue is bool boolValue) { - pMax[0] = (short)(object)maxValue.Value; + NativeConvars.CreateConvarBool(name, (int)EConVarType.EConVarType_Bool, (ulong)flags, helpMessage, boolValue, 0, 0); } - - NativeConvars.CreateConvarInt16(name, (int)EConVarType.EConVarType_Int16, (ulong)flags, helpMessage, shortValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); - } - else if (defaultValue is ushort ushortValue) - { - ushort* pMin = stackalloc ushort[1]; - if (minValue.HasValue) + else if (defaultValue is short shortValue) { - pMin[0] = (ushort)(object)minValue.Value; + NativeConvars.CreateConvarInt16(name, (int)EConVarType.EConVarType_Int16, (ulong)flags, helpMessage, shortValue, 0, 0); } - - ushort* pMax = stackalloc ushort[1]; - if (maxValue.HasValue) + else if (defaultValue is ushort ushortValue) { - pMax[0] = (ushort)(object)maxValue.Value; + NativeConvars.CreateConvarUInt16(name, (int)EConVarType.EConVarType_UInt16, (ulong)flags, helpMessage, ushortValue, 0, 0); } - - NativeConvars.CreateConvarUInt16(name, (int)EConVarType.EConVarType_UInt16, (ulong)flags, helpMessage, ushortValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); - } - else if (defaultValue is int intValue) - { - int* pMin = stackalloc int[1]; - if (minValue.HasValue) + else if (defaultValue is int intValue) { - pMin[0] = (int)(object)minValue.Value; + NativeConvars.CreateConvarInt32(name, (int)EConVarType.EConVarType_Int32, (ulong)flags, helpMessage, intValue, 0, 0); } - - int* pMax = stackalloc int[1]; - if (maxValue.HasValue) + else if (defaultValue is uint uintValue) { - pMax[0] = (int)(object)maxValue.Value; + NativeConvars.CreateConvarUInt32(name, (int)EConVarType.EConVarType_UInt32, (ulong)flags, helpMessage, uintValue, 0, 0); } - - NativeConvars.CreateConvarInt32(name, (int)EConVarType.EConVarType_Int32, (ulong)flags, helpMessage, intValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); - } - else if (defaultValue is uint uintValue) - { - uint* pMin = stackalloc uint[1]; - if (minValue.HasValue) + else if (defaultValue is long longValue) { - pMin[0] = (uint)(object)minValue.Value; + NativeConvars.CreateConvarInt64(name, (int)EConVarType.EConVarType_Int64, (ulong)flags, helpMessage, longValue, 0, 0); } - - uint* pMax = stackalloc uint[1]; - if (maxValue.HasValue) + else if (defaultValue is ulong ulongValue) { - pMax[0] = (uint)(object)maxValue.Value; + NativeConvars.CreateConvarUInt64(name, (int)EConVarType.EConVarType_UInt64, (ulong)flags, helpMessage, ulongValue, 0, 0); } - - NativeConvars.CreateConvarUInt32(name, (int)EConVarType.EConVarType_UInt32, (ulong)flags, helpMessage, uintValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); - } - else if (defaultValue is long longValue) - { - long* pMin = stackalloc long[1]; - if (minValue.HasValue) + else if (defaultValue is float floatValue) { - pMin[0] = (long)(object)minValue.Value; + NativeConvars.CreateConvarFloat(name, (int)EConVarType.EConVarType_Float32, (ulong)flags, helpMessage, floatValue, 0, 0); } - - long* pMax = stackalloc long[1]; - if (maxValue.HasValue) + else if (defaultValue is double doubleValue) { - pMax[0] = (long)(object)maxValue.Value; + NativeConvars.CreateConvarDouble(name, (int)EConVarType.EConVarType_Float64, (ulong)flags, helpMessage, doubleValue, 0, 0); } - - NativeConvars.CreateConvarInt64(name, (int)EConVarType.EConVarType_Int64, (ulong)flags, helpMessage, longValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); - } - else if (defaultValue is ulong ulongValue) - { - ulong* pMin = stackalloc ulong[1]; - if (minValue.HasValue) + else if (defaultValue is Vector2D vector2Value) { - pMin[0] = (ulong)(object)minValue.Value; + NativeConvars.CreateConvarVector2D(name, (int)EConVarType.EConVarType_Vector2, (ulong)flags, helpMessage, vector2Value, 0, 0); } - - ulong* pMax = stackalloc ulong[1]; - if (maxValue.HasValue) + else if (defaultValue is Vector vector3Value) { - pMax[0] = (ulong)(object)maxValue.Value; + NativeConvars.CreateConvarVector(name, (int)EConVarType.EConVarType_Vector3, (ulong)flags, helpMessage, vector3Value, 0, 0); } - - NativeConvars.CreateConvarUInt64(name, (int)EConVarType.EConVarType_UInt64, (ulong)flags, helpMessage, ulongValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); - } - else if (defaultValue is float floatValue) - { - float* pMin = stackalloc float[1]; - if (minValue.HasValue) + else if (defaultValue is Vector4D vector4Value) { - pMin[0] = (float)(object)minValue.Value; + NativeConvars.CreateConvarVector4D(name, (int)EConVarType.EConVarType_Vector4, (ulong)flags, helpMessage, vector4Value, 0, 0); } - - float* pMax = stackalloc float[1]; - if (maxValue.HasValue) + else if (defaultValue is QAngle qAngleValue) { - pMax[0] = (float)(object)maxValue.Value; + NativeConvars.CreateConvarQAngle(name, (int)EConVarType.EConVarType_Qangle, (ulong)flags, helpMessage, qAngleValue, 0, 0); } - - NativeConvars.CreateConvarFloat(name, (int)EConVarType.EConVarType_Float32, (ulong)flags, helpMessage, floatValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); - } - else if (defaultValue is double doubleValue) - { - double* pMin = stackalloc double[1]; - if (minValue.HasValue) + else if (defaultValue is Color colorValue) { - pMin[0] = (double)(object)minValue.Value; + NativeConvars.CreateConvarColor(name, (int)EConVarType.EConVarType_Color, (ulong)flags, helpMessage, colorValue, 0, 0); } - - double* pMax = stackalloc double[1]; - if (maxValue.HasValue) + else if (defaultValue is string stringValue) + { + NativeConvars.CreateConvarString(name, (int)EConVarType.EConVarType_String, (ulong)flags, helpMessage, stringValue, 0, 0); + } + else { - pMax[0] = (double)(object)maxValue.Value; + throw new Exception($"Unsupported type {typeof(T)}."); } - NativeConvars.CreateConvarDouble(name, (int)EConVarType.EConVarType_Float64, (ulong)flags, helpMessage, doubleValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); - } - else - { - throw new Exception($"You can't assign min and max values to {typeof(T)}."); - } + return new ConVar(name); } - return new ConVar(name); - } + public IConVar Create( string name, string helpMessage, T defaultValue, T? minValue, T? maxValue, ConvarFlags flags = ConvarFlags.NONE ) where T : unmanaged + { + + if (NativeConvars.ExistsConvar(name)) + { + throw new Exception($"Convar {name} already exists."); + } + unsafe + { + + if (defaultValue is short shortValue) + { + var pMin = stackalloc short[1]; + if (minValue.HasValue) + { + pMin[0] = (short)(object)minValue.Value; + } + + var pMax = stackalloc short[1]; + if (maxValue.HasValue) + { + pMax[0] = (short)(object)maxValue.Value; + } + + NativeConvars.CreateConvarInt16(name, (int)EConVarType.EConVarType_Int16, (ulong)flags, helpMessage, shortValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); + } + else if (defaultValue is ushort ushortValue) + { + var pMin = stackalloc ushort[1]; + if (minValue.HasValue) + { + pMin[0] = (ushort)(object)minValue.Value; + } + + var pMax = stackalloc ushort[1]; + if (maxValue.HasValue) + { + pMax[0] = (ushort)(object)maxValue.Value; + } + + NativeConvars.CreateConvarUInt16(name, (int)EConVarType.EConVarType_UInt16, (ulong)flags, helpMessage, ushortValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); + } + else if (defaultValue is int intValue) + { + var pMin = stackalloc int[1]; + if (minValue.HasValue) + { + pMin[0] = (int)(object)minValue.Value; + } + + var pMax = stackalloc int[1]; + if (maxValue.HasValue) + { + pMax[0] = (int)(object)maxValue.Value; + } + + NativeConvars.CreateConvarInt32(name, (int)EConVarType.EConVarType_Int32, (ulong)flags, helpMessage, intValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); + } + else if (defaultValue is uint uintValue) + { + var pMin = stackalloc uint[1]; + if (minValue.HasValue) + { + pMin[0] = (uint)(object)minValue.Value; + } + + var pMax = stackalloc uint[1]; + if (maxValue.HasValue) + { + pMax[0] = (uint)(object)maxValue.Value; + } + + NativeConvars.CreateConvarUInt32(name, (int)EConVarType.EConVarType_UInt32, (ulong)flags, helpMessage, uintValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); + } + else if (defaultValue is long longValue) + { + var pMin = stackalloc long[1]; + if (minValue.HasValue) + { + pMin[0] = (long)(object)minValue.Value; + } + + var pMax = stackalloc long[1]; + if (maxValue.HasValue) + { + pMax[0] = (long)(object)maxValue.Value; + } + + NativeConvars.CreateConvarInt64(name, (int)EConVarType.EConVarType_Int64, (ulong)flags, helpMessage, longValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); + } + else if (defaultValue is ulong ulongValue) + { + var pMin = stackalloc ulong[1]; + if (minValue.HasValue) + { + pMin[0] = (ulong)(object)minValue.Value; + } + + var pMax = stackalloc ulong[1]; + if (maxValue.HasValue) + { + pMax[0] = (ulong)(object)maxValue.Value; + } + + NativeConvars.CreateConvarUInt64(name, (int)EConVarType.EConVarType_UInt64, (ulong)flags, helpMessage, ulongValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); + } + else if (defaultValue is float floatValue) + { + var pMin = stackalloc float[1]; + if (minValue.HasValue) + { + pMin[0] = (float)(object)minValue.Value; + } + + var pMax = stackalloc float[1]; + if (maxValue.HasValue) + { + pMax[0] = (float)(object)maxValue.Value; + } + + NativeConvars.CreateConvarFloat(name, (int)EConVarType.EConVarType_Float32, (ulong)flags, helpMessage, floatValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); + } + else if (defaultValue is double doubleValue) + { + var pMin = stackalloc double[1]; + if (minValue.HasValue) + { + pMin[0] = (double)(object)minValue.Value; + } + + var pMax = stackalloc double[1]; + if (maxValue.HasValue) + { + pMax[0] = (double)(object)maxValue.Value; + } + + NativeConvars.CreateConvarDouble(name, (int)EConVarType.EConVarType_Float64, (ulong)flags, helpMessage, doubleValue, minValue.HasValue ? (nint)pMin : 0, maxValue.HasValue ? (nint)pMax : 0); + } + else + { + throw new Exception($"You can't assign min and max values to {typeof(T)}."); + } + } - public IConVar CreateOrFind( string name, string helpMessage, T defaultValue, ConvarFlags flags = ConvarFlags.NONE ) - { - return NativeConvars.ExistsConvar(name) ? new ConVar(name) : Create(name, helpMessage, defaultValue, flags); - } + return new ConVar(name); + } - public IConVar CreateOrFind( string name, string helpMessage, T defaultValue, T? minValue, T? maxValue, ConvarFlags flags = ConvarFlags.NONE ) where T : unmanaged - { - return NativeConvars.ExistsConvar(name) ? new ConVar(name) : Create(name, helpMessage, defaultValue, minValue, maxValue, flags); - } + public IConVar CreateOrFind( string name, string helpMessage, T defaultValue, ConvarFlags flags = ConvarFlags.NONE ) + { + return NativeConvars.ExistsConvar(name) ? new ConVar(name) : Create(name, helpMessage, defaultValue, flags); + } + + public IConVar CreateOrFind( string name, string helpMessage, T defaultValue, T? minValue, T? maxValue, ConvarFlags flags = ConvarFlags.NONE ) where T : unmanaged + { + return NativeConvars.ExistsConvar(name) ? new ConVar(name) : Create(name, helpMessage, defaultValue, minValue, maxValue, flags); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Database/DatabaseService.cs b/managed/src/SwiftlyS2.Core/Modules/Database/DatabaseService.cs index 1e030957b..5b34f68e2 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Database/DatabaseService.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Database/DatabaseService.cs @@ -1,11 +1,10 @@ -using Dapper; -using System.Data.SQLite; -using SwiftlyS2.Core.Natives; -using System.Data; using System.Collections.Concurrent; +using System.Data; +using System.Data.SQLite; +using Microsoft.Extensions.Logging; using MySqlConnector; using Npgsql; -using Microsoft.Extensions.Logging; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.Services; using SwiftlyS2.Shared.Database; @@ -14,80 +13,78 @@ namespace SwiftlyS2.Core.Database; internal class DatabaseService : IDatabaseService { - private ILogger _Logger { get; init; } - private CoreContext _Context { get; init; } - - private ConcurrentDictionary> _connectionStrings = new ConcurrentDictionary>(); + private ILogger _Logger { get; init; } + private CoreContext _Context { get; init; } - public DatabaseService( ILogger logger, CoreContext context ) - { - _Logger = logger; - _Context = context; - } + private readonly ConcurrentDictionary> _connectionStrings = new(); - public string GetConnectionString( string connectionName ) - { - if (NativeDatabase.ConnectionExists(connectionName)) + public DatabaseService( ILogger logger, CoreContext context ) { - return NativeDatabase.GetCredentials(connectionName); + _Logger = logger; + _Context = context; } - return NativeDatabase.GetDefaultConnectionCredentials(); - } - private Func ResolveConnectionString( string connectionString ) - { - try + public string GetConnectionString( string connectionName ) { - - if (_connectionStrings.TryGetValue(connectionString, out var connectionFunc)) - { - return connectionFunc; - } - - var protocol = connectionString.Split("://")[0]; - var rest = connectionString.Split("://")[1]; - - if (protocol == "sqlite") - { - var path = connectionString.Split("://")[1]; - return () => new SQLiteConnection($"Data Source={path}"); - } - - var credential = rest.Split("@")[0]; - rest = rest.Split("@")[1]; - - var user = credential.Split(":")[0]; - var password = credential.Split(":")[1]; - - var address = rest.Split("/")[0]; - var database = rest.Split("/")[1]; - - var host = address.Split(":")[0]; - var port = address.Split(":")[1]; - - - if (protocol == "mysql") - { - return () => new MySqlConnection($"Server={host};Port={port};Database={database};User ID={user};Password={password};"); - } - else if (protocol == "postgresql") - { - return () => new NpgsqlConnection($"Server={host};Port={port};Database={database};User ID={user};Password={password};"); - } - - throw new Exception($"Unsupported protocol: {protocol}"); + return NativeDatabase.ConnectionExists(connectionName) + ? NativeDatabase.GetCredentials(connectionName) + : NativeDatabase.GetDefaultConnectionCredentials(); } - catch (Exception e) + + private Func ResolveConnectionString( string connectionString ) { - if (!GlobalExceptionHandler.Handle(e)) throw; - _Logger.LogError(e, "Failed to resolve database credentials for {connectionString}! Please check your connection string format.", connectionString); - throw; + try + { + + if (_connectionStrings.TryGetValue(connectionString, out var connectionFunc)) + { + return connectionFunc; + } + + var protocol = connectionString.Split("://")[0]; + var rest = connectionString.Split("://")[1]; + + if (protocol == "sqlite") + { + var path = connectionString.Split("://")[1]; + return () => new SQLiteConnection($"Data Source={path}"); + } + + var credential = rest.Split("@")[0]; + rest = rest.Split("@")[1]; + + var user = credential.Split(":")[0]; + var password = credential.Split(":")[1]; + + var address = rest.Split("/")[0]; + var database = rest.Split("/")[1]; + + var host = address.Split(":")[0]; + var port = address.Split(":")[1]; + + + if (protocol == "mysql") + { + return () => new MySqlConnection($"Server={host};Port={port};Database={database};User ID={user};Password={password};"); + } + else if (protocol == "postgresql") + { + return () => new NpgsqlConnection($"Server={host};Port={port};Database={database};User ID={user};Password={password};"); + } + + throw new Exception($"Unsupported protocol: {protocol}"); + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) throw; + _Logger.LogError(e, "Failed to resolve database credentials for {connectionString}! Please check your connection string format.", connectionString); + throw; + } } - } - public IDbConnection GetConnection( string connectionName ) - { - var connectionString = GetConnectionString(connectionName); - return ResolveConnectionString(connectionString)(); - } + public IDbConnection GetConnection( string connectionName ) + { + var connectionString = GetConnectionString(connectionName); + return ResolveConnectionString(connectionString)(); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Engine/CommandTrackerManager.cs b/managed/src/SwiftlyS2.Core/Modules/Engine/CommandTrackerManager.cs index ec84af02b..2f2f7d1b6 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Engine/CommandTrackerManager.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Engine/CommandTrackerManager.cs @@ -1,8 +1,8 @@ -using System.Text; using System.Collections.Concurrent; +using System.Text; using Spectre.Console; -using SwiftlyS2.Shared.Misc; using SwiftlyS2.Shared.Events; +using SwiftlyS2.Shared.Misc; namespace SwiftlyS2.Core.Services; @@ -70,13 +70,13 @@ public void ProcessCommandStart( IOnCommandExecuteHookEvent @event ) if (activeCommands.TryAdd(newCommandId, newCommand)) { var newContainer = new CommandIdContainer(newCommandId); - Interlocked.Exchange(ref currentCommandContainer, newContainer); - @event.Command.Tokenize($"{@event.Command[0]!.Replace("^wb^", string.Empty)} {@event.Command.ArgS}"); + _ = Interlocked.Exchange(ref currentCommandContainer, newContainer); + _ = @event.Command.Tokenize($"{@event.Command[0]!.Replace("^wb^", string.Empty)} {@event.Command.ArgS}"); } } else { - Interlocked.Exchange(ref currentCommandContainer, CommandIdContainer.Empty); + _ = Interlocked.Exchange(ref currentCommandContainer, CommandIdContainer.Empty); } } @@ -90,17 +90,17 @@ public void ProcessCommandEnd( IOnCommandExecuteHookEvent _ ) var output = new StringBuilder(); while (command.Output.TryDequeue(out var line)) { - if (output.Length > 0) output.AppendLine(); - output.Append(line); + if (output.Length > 0) _ = output.AppendLine(); + _ = output.Append(line); } - Task.Run(() => command.Callback.Invoke(output.ToString())); + _ = Task.Run(() => command.Callback.Invoke(output.ToString())); } } private void StartCleanupTimer() { - Task.Run(async () => + _ = Task.Run(async () => { while (!cancellationTokenSource.Token.IsCancellationRequested) { @@ -124,7 +124,7 @@ private void CleanupExpiredCommands() { if (kvp.Value.IsExpired) { - activeCommands.TryRemove(kvp.Key, out _); + _ = activeCommands.TryRemove(kvp.Key, out _); } } } diff --git a/managed/src/SwiftlyS2.Core/Modules/Engine/EngineService.cs b/managed/src/SwiftlyS2.Core/Modules/Engine/EngineService.cs index 70a9b34b5..08c906746 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Engine/EngineService.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Engine/EngineService.cs @@ -1,11 +1,8 @@ -using SwiftlyS2.Shared; -using SwiftlyS2.Core.Natives; -using SwiftlyS2.Shared.Services; using SwiftlyS2.Core.Extensions; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.SteamAPI; -using Spectre.Console; +using SwiftlyS2.Shared.Services; namespace SwiftlyS2.Core.Services; @@ -22,7 +19,9 @@ public EngineService( CommandTrackerManager commandTrackedManager ) public ref CGlobalVars GlobalVars => ref NativeEngineHelpers.GetGlobalVars().AsRef(); - public string Map => GlobalVars.MapName.ToString() ?? string.Empty; + public string Map => GlobalVars.MapName.Value; + + public string WorkshopId => NativeEngineHelpers.GetWorkshopId(); public int MaxPlayers => GlobalVars.MaxClients; diff --git a/managed/src/SwiftlyS2.Core/Modules/Engine/TraceManager.cs b/managed/src/SwiftlyS2.Core/Modules/Engine/TraceManager.cs index 641bdb079..2f52e00b5 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Engine/TraceManager.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Engine/TraceManager.cs @@ -1,4 +1,4 @@ -using SwiftlyS2.Core.Natives; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.Services; @@ -6,16 +6,16 @@ namespace SwiftlyS2.Core.Services; internal class TraceManager : ITraceManager { - public void TracePlayerBBox(Vector start, Vector end, BBox_t bounds, CTraceFilter filter, ref CGameTrace trace) + public void TracePlayerBBox( Vector start, Vector end, BBox_t bounds, CTraceFilter filter, ref CGameTrace trace ) { unsafe { - fixed(CGameTrace* tracePtr = &trace) + fixed (CGameTrace* tracePtr = &trace) GameFunctions.TracePlayerBBox(start, end, bounds, &filter, tracePtr); } } - public void TraceShape(Vector start, Vector end, Ray_t ray, CTraceFilter filter, ref CGameTrace trace) + public void TraceShape( Vector start, Vector end, Ray_t ray, CTraceFilter filter, ref CGameTrace trace ) { unsafe { diff --git a/managed/src/SwiftlyS2.Core/Modules/EntitySystem/EntityOutputHookCallback.cs b/managed/src/SwiftlyS2.Core/Modules/EntitySystem/EntityOutputHookCallback.cs index 4c421c4f3..f562e48ff 100644 --- a/managed/src/SwiftlyS2.Core/Modules/EntitySystem/EntityOutputHookCallback.cs +++ b/managed/src/SwiftlyS2.Core/Modules/EntitySystem/EntityOutputHookCallback.cs @@ -1,9 +1,9 @@ -using Microsoft.Extensions.Logging; +using System.Runtime.InteropServices; +using Microsoft.Extensions.Logging; using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.SchemaDefinitions; using SwiftlyS2.Shared.EntitySystem; using SwiftlyS2.Shared.Profiler; -using System.Runtime.InteropServices; namespace SwiftlyS2.Core.NetMessages; @@ -15,11 +15,11 @@ internal class EntityOutputHookCallback : IDisposable public Guid Guid { get; init; } public IContextedProfilerService Profiler { get; } - private IEntitySystemService.EntityOutputHandler _callback; - private ILogger _logger; - private EntityOutputHookCallbackDelegate _unmanagedCallback; - private nint _unmanagedCallbackPtr; - private ulong _nativeHookId; + private readonly IEntitySystemService.EntityOutputHandler _callback; + private readonly ILogger _logger; + private readonly EntityOutputHookCallbackDelegate _unmanagedCallback; + private readonly nint _unmanagedCallbackPtr; + private readonly ulong _nativeHookId; public EntityOutputHookCallback( string className, string outputName, IEntitySystemService.EntityOutputHandler callback, ILoggerFactory loggerFactory, IContextedProfilerService profiler ) { diff --git a/managed/src/SwiftlyS2.Core/Modules/EntitySystem/EntitySystem.cs b/managed/src/SwiftlyS2.Core/Modules/EntitySystem/EntitySystem.cs index f7bb93404..ab8ceec41 100644 --- a/managed/src/SwiftlyS2.Core/Modules/EntitySystem/EntitySystem.cs +++ b/managed/src/SwiftlyS2.Core/Modules/EntitySystem/EntitySystem.cs @@ -1,3 +1,4 @@ +using System.Collections.Frozen; using Microsoft.Extensions.Logging; using SwiftlyS2.Core.Extensions; using SwiftlyS2.Core.Natives; @@ -8,121 +9,110 @@ using SwiftlyS2.Shared.Profiler; using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.Schemas; -using System.Collections.Frozen; namespace SwiftlyS2.Core.EntitySystem; internal class EntitySystemService : IEntitySystemService, IDisposable { - private List _callbacks = new(); - private Lock _lock = new(); - private ILoggerFactory _loggerFactory; - private IContextedProfilerService _profiler; - - public EntitySystemService( ILoggerFactory loggerFactory, IContextedProfilerService profiler ) - { - _loggerFactory = loggerFactory; - _profiler = profiler; - } + private readonly List _callbacks = []; + private readonly Lock _lock = new(); + private readonly ILoggerFactory _loggerFactory; + private readonly IContextedProfilerService _profiler; - public T CreateEntity() where T : class, ISchemaClass - { - var designerName = GetEntityDesignerName(); - if (designerName == null) + public EntitySystemService( ILoggerFactory loggerFactory, IContextedProfilerService profiler ) { - throw new ArgumentException($"Can't create entity with class {typeof(T).Name}, which doesn't have a designer name."); + _loggerFactory = loggerFactory; + _profiler = profiler; } - return CreateEntityByDesignerName(designerName); - } - public T CreateEntityByDesignerName( string designerName ) where T : ISchemaClass - { - var handle = NativeEntitySystem.CreateEntityByName(designerName); - if (handle == nint.Zero) + public T CreateEntity() where T : class, ISchemaClass { - throw new ArgumentException($"Failed to create entity by designer name: {designerName}, probably invalid designer name."); + var designerName = GetEntityDesignerName(); + return designerName == null + ? throw new ArgumentException($"Can't create entity with class {typeof(T).Name}, which doesn't have a designer name.") + : CreateEntityByDesignerName(designerName); } - return T.From(handle); - } - public CHandle GetRefEHandle( T entity ) where T : class, ISchemaClass - { - var handle = NativeEntitySystem.GetEntityHandleFromEntity(entity.Address); - return new CHandle { - Raw = handle, - }; - } + public T CreateEntityByDesignerName( string designerName ) where T : ISchemaClass + { + var handle = NativeEntitySystem.CreateEntityByName(designerName); + return handle == nint.Zero + ? throw new ArgumentException($"Failed to create entity by designer name: {designerName}, probably invalid designer name.") + : T.From(handle); + } - public CCSGameRules? GetGameRules() - { - var handle = NativeEntitySystem.GetGameRules(); - return handle.IsValidPtr() ? new CCSGameRulesImpl(handle) : null; - } + public CHandle GetRefEHandle( T entity ) where T : class, ISchemaClass + { + var handle = NativeEntitySystem.GetEntityHandleFromEntity(entity.Address); + return new CHandle { + Raw = handle, + }; + } - public IEnumerable GetAllEntities() - { - CEntityIdentity? pFirst = new CEntityIdentityImpl(NativeEntitySystem.GetFirstActiveEntity()); + public CCSGameRules? GetGameRules() + { + var handle = NativeEntitySystem.GetGameRules(); + return handle.IsValidPtr() ? new CCSGameRulesImpl(handle) : null; + } - for (; pFirst != null && pFirst.IsValid; pFirst = pFirst.Next) + public IEnumerable GetAllEntities() { - yield return new CEntityInstanceImpl(pFirst.Address.Read()); + CEntityIdentity? pFirst = new CEntityIdentityImpl(NativeEntitySystem.GetFirstActiveEntity()); + + for (; pFirst != null && pFirst.IsValid; pFirst = pFirst.Next) + { + yield return new CEntityInstanceImpl(pFirst.Address.Read()); + } } - } - public IEnumerable GetAllEntitiesByClass() where T : class, ISchemaClass - { - var designerName = GetEntityDesignerName(); - if (designerName == null) + public IEnumerable GetAllEntitiesByClass() where T : class, ISchemaClass { - throw new ArgumentException($"Can't get entities with class {typeof(T).Name}, which doesn't have a designer name"); + var designerName = GetEntityDesignerName(); + return designerName == null + ? throw new ArgumentException($"Can't get entities with class {typeof(T).Name}, which doesn't have a designer name") + : GetAllEntities().Where(( entity ) => entity.Entity?.DesignerName == designerName).Select(( entity ) => T.From(entity.Address)); } - return GetAllEntities().Where(( entity ) => entity.Entity?.DesignerName == designerName).Select(( entity ) => T.From(entity.Address)); - } - public IEnumerable GetAllEntitiesByDesignerName( string designerName ) where T : class, ISchemaClass - { - return GetAllEntities() - .Where(entity => entity.Entity?.DesignerName == designerName) - .Select(entity => T.From(entity.Address)); - } + public IEnumerable GetAllEntitiesByDesignerName( string designerName ) where T : class, ISchemaClass + { + return GetAllEntities() + .Where(entity => entity.Entity?.DesignerName == designerName) + .Select(entity => T.From(entity.Address)); + } - public T? GetEntityByIndex( uint index ) where T : class, ISchemaClass - { - var handle = NativeEntitySystem.GetEntityByIndex(index); - if (handle == nint.Zero) + public T? GetEntityByIndex( uint index ) where T : class, ISchemaClass { - return null; + var handle = NativeEntitySystem.GetEntityByIndex(index); + return handle == nint.Zero ? null : T.From(handle); } - return T.From(handle); - } - Guid IEntitySystemService.HookEntityOutput( string outputName, IEntitySystemService.EntityOutputHandler callback ) - { - var hook = new EntityOutputHookCallback(GetEntityDesignerName() ?? "", outputName, callback, _loggerFactory, _profiler); - lock (_lock) + Guid IEntitySystemService.HookEntityOutput( string outputName, IEntitySystemService.EntityOutputHandler callback ) { - _callbacks.Add(hook); + var hook = new EntityOutputHookCallback(GetEntityDesignerName() ?? "", outputName, callback, _loggerFactory, _profiler); + lock (_lock) + { + _callbacks.Add(hook); + } + return hook.Guid; } - return hook.Guid; - } - public void UnhookEntityOutput( Guid guid ) - { - lock (_lock) + public void UnhookEntityOutput( Guid guid ) { - _callbacks.RemoveAll(callback => - { - if (callback.Guid == guid) + lock (_lock) { - callback.Dispose(); - return true; + _ = _callbacks.RemoveAll(callback => + { + if (callback.Guid == guid) + { + callback.Dispose(); + return true; + } + return false; + }); } - return false; - }); } - } - public static readonly FrozenDictionary TypeToDesignerName = new Dictionary() { + public static readonly FrozenDictionary TypeToDesignerName = new Dictionary() { { typeof(CCSPlayerController), "cs_player_controller" }, { typeof(CCSPlayerPawn), "player" }, { typeof(CCSObserverPawn), "observer" }, @@ -569,20 +559,20 @@ public void UnhookEntityOutput( Guid guid ) { typeof(CAI_ChangeHintGroup), "ai_changehintgroup" } }.ToFrozenDictionary(); - private string? GetEntityDesignerName() where T : class, ISchemaClass - { - return TypeToDesignerName.TryGetValue(typeof(T), out var name) ? name : null; - } + private string? GetEntityDesignerName() where T : class, ISchemaClass + { + return TypeToDesignerName.TryGetValue(typeof(T), out var name) ? name : null; + } - public void Dispose() - { - lock (_lock) + public void Dispose() { - foreach (var callback in _callbacks) - { - callback.Dispose(); - } - _callbacks.Clear(); + lock (_lock) + { + foreach (var callback in _callbacks) + { + callback.Dispose(); + } + _callbacks.Clear(); + } } - } } diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientConnectedEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientConnectedEvent.cs index f153d75c0..668a3201a 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientConnectedEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientConnectedEvent.cs @@ -6,8 +6,8 @@ namespace SwiftlyS2.Core.Events; internal class OnClientConnectedEvent : IOnClientConnectedEvent { - public int PlayerId { get; set; } + public int PlayerId { get; set; } - public HookResult Result { get; set; } = HookResult.Continue; + public HookResult Result { get; set; } = HookResult.Continue; } diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientDisconnectedEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientDisconnectedEvent.cs index 640a215f8..fc1f99550 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientDisconnectedEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientDisconnectedEvent.cs @@ -6,7 +6,7 @@ namespace SwiftlyS2.Core.Events; internal class OnClientDisconnectedEvent : IOnClientDisconnectedEvent { - public int PlayerId { get; set; } + public int PlayerId { get; set; } - public ENetworkDisconnectionReason Reason { get; set; } -} \ No newline at end of file + public ENetworkDisconnectionReason Reason { get; set; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientKeyStateChangedEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientKeyStateChangedEvent.cs index 7ef6b7311..b0363d53d 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientKeyStateChangedEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientKeyStateChangedEvent.cs @@ -5,9 +5,9 @@ namespace SwiftlyS2.Core.Events; internal class OnClientKeyStateChangedEvent : IOnClientKeyStateChangedEvent { - public int PlayerId { get; set; } + public int PlayerId { get; set; } - public KeyKind Key { get; set; } + public KeyKind Key { get; set; } - public bool Pressed { get; set; } -} \ No newline at end of file + public bool Pressed { get; set; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientProcessUsercmdsEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientProcessUsercmdsEvent.cs index 919fae394..0dea2bae0 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientProcessUsercmdsEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientProcessUsercmdsEvent.cs @@ -3,9 +3,10 @@ namespace SwiftlyS2.Core.Events; -internal class OnClientProcessUsercmdsEvent : IOnClientProcessUsercmdsEvent { - public int PlayerId { get; set; } - public required List Usercmds { get; set; } - public bool Paused { get; set; } - public float Margin { get; set; } +internal class OnClientProcessUsercmdsEvent : IOnClientProcessUsercmdsEvent +{ + public int PlayerId { get; set; } + public required List Usercmds { get; set; } + public bool Paused { get; set; } + public float Margin { get; set; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientPutInServerEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientPutInServerEvent.cs index fdd7716d4..baa29a4df 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientPutInServerEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientPutInServerEvent.cs @@ -5,7 +5,7 @@ namespace SwiftlyS2.Core.Events; internal class OnClientPutInServerEvent : IOnClientPutInServerEvent { - public int PlayerId { get; set; } + public int PlayerId { get; set; } - public ClientKind Kind { get; set; } -} \ No newline at end of file + public ClientKind Kind { get; set; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientSteamAuthorizeEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientSteamAuthorizeEvent.cs index 476ae4d3b..e4ef45e87 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientSteamAuthorizeEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientSteamAuthorizeEvent.cs @@ -5,5 +5,5 @@ namespace SwiftlyS2.Core.Events; internal class OnClientSteamAuthorizeEvent : IOnClientSteamAuthorizeEvent { - public int PlayerId { get; set; } -} \ No newline at end of file + public int PlayerId { get; set; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientSteamAuthorizeFailEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientSteamAuthorizeFailEvent.cs index 43f8409ac..532c7c620 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientSteamAuthorizeFailEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnClientSteamAuthorizeFailEvent.cs @@ -5,5 +5,5 @@ namespace SwiftlyS2.Core.Events; internal class OnClientSteamAuthorizeFailEvent : IOnClientSteamAuthorizeFailEvent { - public int PlayerId { get; set; } -} \ No newline at end of file + public int PlayerId { get; set; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnCommandExecuteHookEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnCommandExecuteHookEvent.cs index ce1462f8a..5f68e77d8 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnCommandExecuteHookEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnCommandExecuteHookEvent.cs @@ -1,20 +1,20 @@ -using SwiftlyS2.Shared.Misc; using SwiftlyS2.Shared.Events; +using SwiftlyS2.Shared.Misc; using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Events; internal class OnCommandExecuteHookEvent : IOnCommandExecuteHookEvent { - private CCommand _command; + private CCommand _command; - public ref CCommand Command => ref _command; + public ref CCommand Command => ref _command; - public HookMode HookMode { get; init; } + public HookMode HookMode { get; init; } - public OnCommandExecuteHookEvent(ref CCommand command, HookMode hookMode) - { - _command = command; - HookMode = hookMode; - } + public OnCommandExecuteHookEvent( ref CCommand command, HookMode hookMode ) + { + _command = command; + HookMode = hookMode; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnConsoleOutputEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnConsoleOutputEvent.cs index a9e8ece04..06b3025ed 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnConsoleOutputEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnConsoleOutputEvent.cs @@ -5,5 +5,5 @@ namespace SwiftlyS2.Core.Events; internal class OnConsoleOutputEvent : IOnConsoleOutputEvent { - public required string Message { get; set; } + public required string Message { get; set; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityCreatedEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityCreatedEvent.cs index bbdf870ee..0b16db8cc 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityCreatedEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityCreatedEvent.cs @@ -6,5 +6,5 @@ namespace SwiftlyS2.Core.Events; internal class OnEntityCreatedEvent : IOnEntityCreatedEvent { - public required CEntityInstance Entity { get; set; } -} \ No newline at end of file + public required CEntityInstance Entity { get; set; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityDeletedEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityDeletedEvent.cs index e0097aec7..300054088 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityDeletedEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityDeletedEvent.cs @@ -6,5 +6,5 @@ namespace SwiftlyS2.Core.Events; internal class OnEntityDeletedEvent : IOnEntityDeletedEvent { - public required CEntityInstance Entity { get; set; } -} \ No newline at end of file + public required CEntityInstance Entity { get; set; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityParentChangedEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityParentChangedEvent.cs index 50a3e67f2..e26e2514e 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityParentChangedEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityParentChangedEvent.cs @@ -6,7 +6,7 @@ namespace SwiftlyS2.Core.Events; internal class OnEntityParentChangedEvent : IOnEntityParentChangedEvent { - public required CEntityInstance Entity { get; set; } + public required CEntityInstance Entity { get; set; } - public CEntityInstance? NewParent { get; set; } -} \ No newline at end of file + public CEntityInstance? NewParent { get; set; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntitySpawnedEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntitySpawnedEvent.cs index cbb3fe59e..63fc2b2a3 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntitySpawnedEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntitySpawnedEvent.cs @@ -6,5 +6,5 @@ namespace SwiftlyS2.Core.Events; internal class OnEntitySpawnedEvent : IOnEntitySpawnedEvent { - public required CEntityInstance Entity { get; set; } -} \ No newline at end of file + public required CEntityInstance Entity { get; set; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityTakeDamageEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityTakeDamageEvent.cs index 93506d9d9..fe1c0e29c 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityTakeDamageEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityTakeDamageEvent.cs @@ -1,16 +1,17 @@ -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Core.Extensions; using SwiftlyS2.Shared.Events; using SwiftlyS2.Shared.Misc; +using SwiftlyS2.Shared.Natives; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.Events; -internal class OnEntityTakeDamageEvent : IOnEntityTakeDamageEvent { - public required CEntityInstance Entity { get; set; } - public unsafe nint _infoPtr; - public ref CTakeDamageInfo Info => ref _infoPtr.AsRef(); +internal class OnEntityTakeDamageEvent : IOnEntityTakeDamageEvent +{ + public required CEntityInstance Entity { get; set; } + public unsafe nint _infoPtr; + public ref CTakeDamageInfo Info => ref _infoPtr.AsRef(); - public HookResult Result { get; set; } = HookResult.Continue; + public HookResult Result { get; set; } = HookResult.Continue; } diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityTouchHookEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityTouchHookEvent.cs index b20a4eb9e..7907b72c0 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityTouchHookEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnEntityTouchHookEvent.cs @@ -6,30 +6,30 @@ namespace SwiftlyS2.Core.Events; [Obsolete("OnEntityTouchHookEvent is deprecated. Use OnEntityStartTouchEvent, OnEntityTouchEvent, or OnEntityEndTouchEvent instead.")] internal class OnEntityTouchHookEvent : IOnEntityTouchHookEvent { - public required CBaseEntity Entity { get; init; } + public required CBaseEntity Entity { get; init; } - public required CBaseEntity OtherEntity { get; init; } + public required CBaseEntity OtherEntity { get; init; } - public required EntityTouchType TouchType { get; init; } + public required EntityTouchType TouchType { get; init; } } internal class OnEntityStartTouchEvent : IOnEntityStartTouchEvent { - public required CBaseEntity Entity { get; init; } + public required CBaseEntity Entity { get; init; } - public required CBaseEntity OtherEntity { get; init; } + public required CBaseEntity OtherEntity { get; init; } } internal class OnEntityTouchEvent : IOnEntityTouchEvent { - public required CBaseEntity Entity { get; init; } + public required CBaseEntity Entity { get; init; } - public required CBaseEntity OtherEntity { get; init; } + public required CBaseEntity OtherEntity { get; init; } } internal class OnEntityEndTouchEvent : IOnEntityEndTouchEvent { - public required CBaseEntity Entity { get; init; } + public required CBaseEntity Entity { get; init; } - public required CBaseEntity OtherEntity { get; init; } + public required CBaseEntity OtherEntity { get; init; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnItemServicesCanAcquireHookEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnItemServicesCanAcquireHookEvent.cs index 0430c5563..52baadfbe 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnItemServicesCanAcquireHookEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnItemServicesCanAcquireHookEvent.cs @@ -4,17 +4,19 @@ namespace SwiftlyS2.Core.Events; -internal class OnItemServicesCanAcquireHookEvent : IOnItemServicesCanAcquireHookEvent { - public required CCSPlayer_ItemServices ItemServices { get; set; } - public required CEconItemView EconItemView { get; set; } - public required CCSWeaponBaseVData? WeaponVData { get; set; } - public required AcquireMethod AcquireMethod { get; set; } - public required AcquireResult OriginalResult { get; set; } +internal class OnItemServicesCanAcquireHookEvent : IOnItemServicesCanAcquireHookEvent +{ + public required CCSPlayer_ItemServices ItemServices { get; set; } + public required CEconItemView EconItemView { get; set; } + public required CCSWeaponBaseVData? WeaponVData { get; set; } + public required AcquireMethod AcquireMethod { get; set; } + public required AcquireResult OriginalResult { get; set; } - public bool Intercepted { get; set; } = false; + public bool Intercepted { get; set; } = false; - public void SetAcquireResult(AcquireResult result) { - OriginalResult = result; - Intercepted = true; - } + public void SetAcquireResult( AcquireResult result ) + { + OriginalResult = result; + Intercepted = true; + } } diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnMapLoadEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnMapLoadEvent.cs index 37308952c..9144848ae 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnMapLoadEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnMapLoadEvent.cs @@ -5,5 +5,5 @@ namespace SwiftlyS2.Core.Events; internal class OnMapLoadEvent : IOnMapLoadEvent { - public required string MapName { get; set; } -} \ No newline at end of file + public required string MapName { get; set; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnMapUnloadEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnMapUnloadEvent.cs index 26efe131a..23666b12d 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnMapUnloadEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnMapUnloadEvent.cs @@ -5,5 +5,5 @@ namespace SwiftlyS2.Core.Events; internal class OnMapUnloadEvent : IOnMapUnloadEvent { - public required string MapName { get; set; } -} \ No newline at end of file + public required string MapName { get; set; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnMovementServicesRunCommandHookEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnMovementServicesRunCommandHookEvent.cs new file mode 100644 index 000000000..ce4c3fb7b --- /dev/null +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnMovementServicesRunCommandHookEvent.cs @@ -0,0 +1,13 @@ +using SwiftlyS2.Shared.Events; +using SwiftlyS2.Shared.ProtobufDefinitions; +using SwiftlyS2.Shared.SchemaDefinitions; + +namespace SwiftlyS2.Core.Events; + +internal class OnMovementServicesRunCommandHookEvent : IOnMovementServicesRunCommandHookEvent +{ + public required CCSPlayer_MovementServices MovementServices { get; set; } + public required CInButtonState ButtonState { get; set; } + public required CSGOUserCmdPB UserCmdPB { get; set; } + +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnPrecacheResourceEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnPrecacheResourceEvent.cs index e3e441178..3e728e074 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnPrecacheResourceEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnPrecacheResourceEvent.cs @@ -7,10 +7,11 @@ namespace SwiftlyS2.Core.Events; internal class OnPrecacheResourceEvent : IOnPrecacheResourceEvent { - internal required nint pResourceManifest; + internal required nint pResourceManifest; + + public void AddItem( string path ) + { + GameFunctions.CEntityResourceManifest_AddResource(pResourceManifest, path); + } - public void AddItem(string path) { - GameFunctions.CEntityResourceManifest_AddResource(pResourceManifest, path); - } - } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnWeaponServicesCanUseHookEvent.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnWeaponServicesCanUseHookEvent.cs index 643cc9894..3e956df96 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnWeaponServicesCanUseHookEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventParams/OnWeaponServicesCanUseHookEvent.cs @@ -3,14 +3,16 @@ namespace SwiftlyS2.Core.Events; -internal class OnWeaponServicesCanUseHookEvent : IOnWeaponServicesCanUseHookEvent { - public required CCSPlayer_WeaponServices WeaponServices { get; set; } - public required CCSWeaponBase Weapon { get; set; } - public required bool OriginalResult { get; set; } - public bool Intercepted { get; set; } = false; +internal class OnWeaponServicesCanUseHookEvent : IOnWeaponServicesCanUseHookEvent +{ + public required CCSPlayer_WeaponServices WeaponServices { get; set; } + public required CCSWeaponBase Weapon { get; set; } + public required bool OriginalResult { get; set; } + public bool Intercepted { get; set; } = false; - public void SetResult(bool result) { - OriginalResult = result; - Intercepted = true; - } + public void SetResult( bool result ) + { + OriginalResult = result; + Intercepted = true; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventPublisher.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventPublisher.cs index 264abe002..72fbf592a 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventPublisher.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventPublisher.cs @@ -1,692 +1,723 @@ using System.Runtime.InteropServices; +using Spectre.Console; using SwiftlyS2.Core.Natives; +using SwiftlyS2.Core.ProtobufDefinitions; +using SwiftlyS2.Core.Scheduler; +using SwiftlyS2.Core.SchemaDefinitions; using SwiftlyS2.Shared.Events; using SwiftlyS2.Shared.Misc; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.ProtobufDefinitions; -using SwiftlyS2.Core.SchemaDefinitions; using SwiftlyS2.Shared.SchemaDefinitions; -using Spectre.Console; -using System.Runtime.CompilerServices; -using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Core.Extensions; -using SwiftlyS2.Core.Scheduler; -using SwiftlyS2.Shared.SteamAPI; namespace SwiftlyS2.Core.Events; internal static class EventPublisher { - private static List _subscribers = new(); - - public static void Subscribe( EventSubscriber subscriber ) - { - _subscribers.Add(subscriber); - } - public static void Unsubscribe( EventSubscriber subscriber ) - { - _subscribers.Remove(subscriber); - } - - public static void Register() - { - unsafe - { - NativeEvents.RegisterOnGameTickCallback((nint)(delegate* unmanaged< byte, byte, byte, void >)&OnTick); - NativeEvents.RegisterOnClientConnectCallback((nint)(delegate* unmanaged< int, byte >)&OnClientConnected); - NativeEvents.RegisterOnClientDisconnectCallback((nint)(delegate* unmanaged< int, int, void >)&OnClientDisconnected); - NativeEvents.RegisterOnClientKeyStateChangedCallback((nint)(delegate* unmanaged< int, GameButtons, byte, void >)&OnClientKeyStateChanged); - NativeEvents.RegisterOnClientPutInServerCallback((nint)(delegate* unmanaged< int, int, void >)&OnClientPutInServer); - NativeEvents.RegisterOnClientSteamAuthorizeCallback((nint)(delegate* unmanaged< int, void >)&OnClientSteamAuthorize); - NativeEvents.RegisterOnClientSteamAuthorizeFailCallback((nint)(delegate* unmanaged< int, void >)&OnClientSteamAuthorizeFail); - NativeEvents.RegisterOnEntityCreatedCallback((nint)(delegate* unmanaged< nint, void >)&OnEntityCreated); - NativeEvents.RegisterOnEntityDeletedCallback((nint)(delegate* unmanaged< nint, void >)&OnEntityDeleted); - NativeEvents.RegisterOnEntityParentChangedCallback((nint)(delegate* unmanaged< nint, nint, void >)&OnEntityParentChanged); - NativeEvents.RegisterOnEntitySpawnedCallback((nint)(delegate* unmanaged< nint, void >)&OnEntitySpawned); - NativeEvents.RegisterOnMapLoadCallback((nint)(delegate* unmanaged< nint, void >)&OnMapLoad); - NativeEvents.RegisterOnMapUnloadCallback((nint)(delegate* unmanaged< nint, void >)&OnMapUnload); - NativeEvents.RegisterOnClientProcessUsercmdsCallback((nint)(delegate* unmanaged< int, nint, int, byte, float, void >)&OnClientProcessUsercmds); - NativeEvents.RegisterOnEntityTakeDamageCallback((nint)(delegate* unmanaged< nint, nint, byte >)&OnEntityTakeDamage); - NativeEvents.RegisterOnPrecacheResourceCallback((nint)(delegate* unmanaged< nint, void >)&OnPrecacheResource); - NativeConvars.AddConvarCreatedListener((nint)(delegate* unmanaged< nint, void >)&OnConVarCreated); - NativeConvars.AddConCommandCreatedListener((nint)(delegate* unmanaged< nint, void >)&OnConCommandCreated); - NativeConvars.AddGlobalChangeListener((nint)(delegate* unmanaged< nint, int, nint, nint, void >)&OnConVarValueChanged); - NativeConsoleOutput.AddConsoleListener((nint)(delegate* unmanaged< nint, void >)&OnConsoleOutput); - } - } - - [UnmanagedCallersOnly] - public static void OnConVarCreated( nint convarNamePtr ) - { - if (_subscribers.Count == 0) return; - try - { - string convarName = Marshal.PtrToStringUTF8(convarNamePtr) ?? string.Empty; - OnConVarCreated @event = new() { - ConVarName = convarName - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnConVarCreated(@event); - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } - } - - [UnmanagedCallersOnly] - public static void OnConCommandCreated( nint commandNamePtr ) - { - if (_subscribers.Count == 0) return; - try - { - string commandName = Marshal.PtrToStringUTF8(commandNamePtr) ?? string.Empty; - OnConCommandCreated @event = new() { - CommandName = commandName - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnConCommandCreated(@event); - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } - } - - [UnmanagedCallersOnly] - public static void OnConVarValueChanged( nint convarNamePtr, int playerid, nint newValuePtr, nint oldValuePtr ) - { - if (_subscribers.Count == 0) return; - try - { - string convarName = Marshal.PtrToStringUTF8(convarNamePtr) ?? string.Empty; - string newValue = Marshal.PtrToStringUTF8(newValuePtr) ?? string.Empty; - string oldValue = Marshal.PtrToStringUTF8(oldValuePtr) ?? string.Empty; - OnConVarValueChanged @event = new() { - ConVarName = convarName, - PlayerId = playerid, - NewValue = newValue, - OldValue = oldValue - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnConVarValueChanged(@event); - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } - } - - [UnmanagedCallersOnly] - public static void OnTick( byte simulating, byte first, byte last ) - { - SchedulerManager.OnTick(); - // CallbackDispatcher.RunFrame(true); - if (_subscribers.Count == 0) return; - try - { - _subscribers.ForEach(subscriber => subscriber.InvokeOnTick()); - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } - } - - [UnmanagedCallersOnly] - public static byte OnClientConnected( int playerId ) - { - if (_subscribers.Count == 0) return 1; - try + private static readonly List _subscribers = []; + + public static void Subscribe( EventSubscriber subscriber ) { - OnClientConnectedEvent @event = new() { - PlayerId = playerId - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnClientConnected(@event); - - if (@event.Result == HookResult.Handled) - { - return 1; - } + _subscribers.Add(subscriber); + } + public static void Unsubscribe( EventSubscriber subscriber ) + { + _ = _subscribers.Remove(subscriber); + } - if (@event.Result == HookResult.Stop) + public static void Register() + { + unsafe { - return 0; + NativeEvents.RegisterOnGameTickCallback((nint)(delegate* unmanaged< byte, byte, byte, void >)&OnTick); + NativeEvents.RegisterOnPreworldUpdateCallback((nint)(delegate* unmanaged< byte, void >)&OnPreworldUpdate); + NativeEvents.RegisterOnClientConnectCallback((nint)(delegate* unmanaged< int, byte >)&OnClientConnected); + NativeEvents.RegisterOnClientDisconnectCallback((nint)(delegate* unmanaged< int, int, void >)&OnClientDisconnected); + NativeEvents.RegisterOnClientKeyStateChangedCallback((nint)(delegate* unmanaged< int, GameButtons, byte, void >)&OnClientKeyStateChanged); + NativeEvents.RegisterOnClientPutInServerCallback((nint)(delegate* unmanaged< int, int, void >)&OnClientPutInServer); + NativeEvents.RegisterOnClientSteamAuthorizeCallback((nint)(delegate* unmanaged< int, void >)&OnClientSteamAuthorize); + NativeEvents.RegisterOnClientSteamAuthorizeFailCallback((nint)(delegate* unmanaged< int, void >)&OnClientSteamAuthorizeFail); + NativeEvents.RegisterOnEntityCreatedCallback((nint)(delegate* unmanaged< nint, void >)&OnEntityCreated); + NativeEvents.RegisterOnEntityDeletedCallback((nint)(delegate* unmanaged< nint, void >)&OnEntityDeleted); + NativeEvents.RegisterOnEntityParentChangedCallback((nint)(delegate* unmanaged< nint, nint, void >)&OnEntityParentChanged); + NativeEvents.RegisterOnEntitySpawnedCallback((nint)(delegate* unmanaged< nint, void >)&OnEntitySpawned); + NativeEvents.RegisterOnMapLoadCallback((nint)(delegate* unmanaged< nint, void >)&OnMapLoad); + NativeEvents.RegisterOnMapUnloadCallback((nint)(delegate* unmanaged< nint, void >)&OnMapUnload); + NativeEvents.RegisterOnClientProcessUsercmdsCallback((nint)(delegate* unmanaged< int, nint, int, byte, float, void >)&OnClientProcessUsercmds); + NativeEvents.RegisterOnEntityTakeDamageCallback((nint)(delegate* unmanaged< nint, nint, byte >)&OnEntityTakeDamage); + NativeEvents.RegisterOnPrecacheResourceCallback((nint)(delegate* unmanaged< nint, void >)&OnPrecacheResource); + _ = NativeConvars.AddConvarCreatedListener((nint)(delegate* unmanaged< nint, void >)&OnConVarCreated); + _ = NativeConvars.AddConCommandCreatedListener((nint)(delegate* unmanaged< nint, void >)&OnConCommandCreated); + _ = NativeConvars.AddGlobalChangeListener((nint)(delegate* unmanaged< nint, int, nint, nint, void >)&OnConVarValueChanged); + _ = NativeConsoleOutput.AddConsoleListener((nint)(delegate* unmanaged< nint, void >)&OnConsoleOutput); } - } - - return 1; } - catch (Exception e) + + [UnmanagedCallersOnly] + public static void OnConVarCreated( nint convarNamePtr ) { - if (!GlobalExceptionHandler.Handle(e)) return 1; - AnsiConsole.WriteException(e); - return 1; + if (_subscribers.Count == 0) return; + try + { + var convarName = Marshal.PtrToStringUTF8(convarNamePtr) ?? string.Empty; + OnConVarCreated @event = new() { + ConVarName = convarName + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnConVarCreated(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - } - [UnmanagedCallersOnly] - public static void OnClientDisconnected( int playerId, int reason ) - { - if (_subscribers.Count == 0) return; - try + [UnmanagedCallersOnly] + public static void OnConCommandCreated( nint commandNamePtr ) { - OnClientDisconnectedEvent @event = new() { - PlayerId = playerId, - Reason = (ENetworkDisconnectionReason)reason - }; - - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnClientDisconnected(@event); - } + if (_subscribers.Count == 0) return; + try + { + var commandName = Marshal.PtrToStringUTF8(commandNamePtr) ?? string.Empty; + OnConCommandCreated @event = new() { + CommandName = commandName + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnConCommandCreated(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - catch (Exception e) + + [UnmanagedCallersOnly] + public static void OnConVarValueChanged( nint convarNamePtr, int playerid, nint newValuePtr, nint oldValuePtr ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); + if (_subscribers.Count == 0) return; + try + { + var convarName = Marshal.PtrToStringUTF8(convarNamePtr) ?? string.Empty; + var newValue = Marshal.PtrToStringUTF8(newValuePtr) ?? string.Empty; + var oldValue = Marshal.PtrToStringUTF8(oldValuePtr) ?? string.Empty; + OnConVarValueChanged @event = new() { + ConVarName = convarName, + PlayerId = playerid, + NewValue = newValue, + OldValue = oldValue + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnConVarValueChanged(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - } - - [UnmanagedCallersOnly] - public static void OnClientKeyStateChanged( int playerId, GameButtons key, byte pressed ) - { - if (_subscribers.Count == 0) return; - try + + [UnmanagedCallersOnly] + public static void OnTick( byte simulating, byte first, byte last ) { - OnClientKeyStateChangedEvent @event = new() { - PlayerId = playerId, - Key = key.ToKeyKind(), - Pressed = pressed != 0 - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnClientKeyStateChanged(@event); - } + SchedulerManager.OnTick(); + // CallbackDispatcher.RunFrame(true); + if (_subscribers.Count == 0) return; + try + { + _subscribers.ForEach(subscriber => subscriber.InvokeOnTick()); + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - catch (Exception e) + + [UnmanagedCallersOnly] + public static void OnPreworldUpdate( byte simulating ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); + SchedulerManager.OnWorldUpdate(); + if (_subscribers.Count == 0) return; + try + { + _subscribers.ForEach(subscriber => subscriber.InvokeOnWorldUpdate()); + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - } - [UnmanagedCallersOnly] - public static void OnClientPutInServer( int playerId, int clientKind ) - { - if (_subscribers.Count == 0) return; - try + [UnmanagedCallersOnly] + public static byte OnClientConnected( int playerId ) { - OnClientPutInServerEvent @event = new() { - PlayerId = playerId, - Kind = (ClientKind)clientKind - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnClientPutInServer(@event); - } + if (_subscribers.Count == 0) return 1; + try + { + OnClientConnectedEvent @event = new() { + PlayerId = playerId + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnClientConnected(@event); + + if (@event.Result == HookResult.Handled) + { + return 1; + } + + if (@event.Result == HookResult.Stop) + { + return 0; + } + } + + return 1; + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return 1; + AnsiConsole.WriteException(e); + return 1; + } } - catch (Exception e) + + [UnmanagedCallersOnly] + public static void OnClientDisconnected( int playerId, int reason ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); + if (_subscribers.Count == 0) return; + try + { + OnClientDisconnectedEvent @event = new() { + PlayerId = playerId, + Reason = (ENetworkDisconnectionReason)reason + }; + + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnClientDisconnected(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - } - - [UnmanagedCallersOnly] - public static void OnClientSteamAuthorize( int playerId ) - { - if (_subscribers.Count == 0) return; - try + + [UnmanagedCallersOnly] + public static void OnClientKeyStateChanged( int playerId, GameButtons key, byte pressed ) { - OnClientSteamAuthorizeEvent @event = new() { - PlayerId = playerId - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnClientSteamAuthorize(@event); - } + if (_subscribers.Count == 0) return; + try + { + OnClientKeyStateChangedEvent @event = new() { + PlayerId = playerId, + Key = key.ToKeyKind(), + Pressed = pressed != 0 + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnClientKeyStateChanged(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - catch (Exception e) + + [UnmanagedCallersOnly] + public static void OnClientPutInServer( int playerId, int clientKind ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } - } - - [UnmanagedCallersOnly] - public static void OnClientSteamAuthorizeFail( int playerId ) - { - if (_subscribers.Count == 0) return; - try - { - OnClientSteamAuthorizeFailEvent @event = new() { - PlayerId = playerId - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnClientSteamAuthorizeFail(@event); - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } - } - - [UnmanagedCallersOnly] - public static void OnEntityCreated( nint entityPtr ) - { - if (_subscribers.Count == 0) return; - try - { - var entity = new CEntityInstanceImpl(entityPtr); - OnEntityCreatedEvent @event = new() { - Entity = entity - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnEntityCreated(@event); - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } - } - - [UnmanagedCallersOnly] - public static void OnEntityDeleted( nint entityPtr ) - { - if (_subscribers.Count == 0) return; - try - { - var entity = new CEntityInstanceImpl(entityPtr); - OnEntityDeletedEvent @event = new() { - Entity = entity - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnEntityDeleted(@event); - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } - } - - [UnmanagedCallersOnly] - public static void OnEntityParentChanged( nint entityPtr, nint newParentPtr ) - { - if (_subscribers.Count == 0) return; - try - { - var entity = new CEntityInstanceImpl(entityPtr); - CEntityInstance? parent = newParentPtr != 0 ? new CEntityInstanceImpl(newParentPtr) : null; - OnEntityParentChangedEvent @event = new() { - Entity = entity, - NewParent = parent - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnEntityParentChanged(@event); - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } - } - - [UnmanagedCallersOnly] - public static void OnEntitySpawned( nint entityPtr ) - { - if (_subscribers.Count == 0) return; - try - { - var entity = new CEntityInstanceImpl(entityPtr); - OnEntitySpawnedEvent @event = new() { - Entity = entity - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnEntitySpawned(@event); - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } - } - - [UnmanagedCallersOnly] - public static void OnMapLoad( nint mapNamePtr ) - { - if (_subscribers.Count == 0) return; - try - { - string map = Marshal.PtrToStringUTF8(mapNamePtr) ?? string.Empty; - OnMapLoadEvent @event = new() { - MapName = map - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnMapLoad(@event); - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } - } - - [UnmanagedCallersOnly] - public static void OnMapUnload( nint mapNamePtr ) - { - if (_subscribers.Count == 0) return; - try - { - string map = Marshal.PtrToStringUTF8(mapNamePtr) ?? string.Empty; - OnMapUnloadEvent @event = new() { - MapName = map - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnMapUnload(@event); - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } - } - - [UnmanagedCallersOnly] - public static void OnClientProcessUsercmds( int playerId, nint usercmdsPtr, int numcmds, byte paused, float margin ) - { - if (_subscribers.Count == 0) return; - try - { - unsafe - { - ReadOnlySpan usercmdPtrs = new ReadOnlySpan(usercmdsPtr.ToPointer(), numcmds); - List usercmds = new(); - foreach (var pUsercmd in usercmdPtrs) - { - var usercmd = new CSGOUserCmdPBImpl(pUsercmd, false); - usercmds.Add(usercmd); - } - - OnClientProcessUsercmdsEvent @event = new() { - PlayerId = playerId, - Usercmds = usercmds, - Paused = paused != 0, - Margin = margin - }; - foreach (var subscriber in _subscribers) + if (_subscribers.Count == 0) return; + try { - subscriber.InvokeOnClientProcessUsercmds(@event); + OnClientPutInServerEvent @event = new() { + PlayerId = playerId, + Kind = (ClientKind)clientKind + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnClientPutInServer(@event); + } } - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } - } - - [UnmanagedCallersOnly] - public static byte OnEntityTakeDamage( nint entityPtr, nint takeDamageInfoPtr ) - { - if (_subscribers.Count == 0) return 1; - try - { - unsafe - { - var entity = new CEntityInstanceImpl(entityPtr); - OnEntityTakeDamageEvent @event = new() { - Entity = entity, - _infoPtr = takeDamageInfoPtr - }; - foreach (var subscriber in _subscribers) + catch (Exception e) { - subscriber.InvokeOnEntityTakeDamage(@event); - - if (@event.Result == HookResult.Handled) - { - return 1; - } - - if (@event.Result == HookResult.Stop) - { - return 0; - } + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); } - return 1; - } } - catch (Exception e) + + [UnmanagedCallersOnly] + public static void OnClientSteamAuthorize( int playerId ) { - if (!GlobalExceptionHandler.Handle(e)) return 1; - AnsiConsole.WriteException(e); - return 1; + if (_subscribers.Count == 0) return; + try + { + OnClientSteamAuthorizeEvent @event = new() { + PlayerId = playerId + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnClientSteamAuthorize(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - } - [UnmanagedCallersOnly] - public static void OnPrecacheResource( nint pResourceManifest ) - { - if (_subscribers.Count == 0) return; - try + [UnmanagedCallersOnly] + public static void OnClientSteamAuthorizeFail( int playerId ) { - OnPrecacheResourceEvent @event = new() { - pResourceManifest = pResourceManifest - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnPrecacheResource(@event); - } + if (_subscribers.Count == 0) return; + try + { + OnClientSteamAuthorizeFailEvent @event = new() { + PlayerId = playerId + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnClientSteamAuthorizeFail(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - catch (Exception e) + + [UnmanagedCallersOnly] + public static void OnEntityCreated( nint entityPtr ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); + if (_subscribers.Count == 0) return; + try + { + var entity = new CEntityInstanceImpl(entityPtr); + OnEntityCreatedEvent @event = new() { + Entity = entity + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnEntityCreated(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - } - [Obsolete("InvokeOnEntityTouchHook is deprecated. Use InvokeOnEntityStartTouch, InvokeOnEntityTouch, or InvokeOnEntityEndTouch instead.")] - public static void InvokeOnEntityTouchHook( OnEntityTouchHookEvent @event ) - { - if (_subscribers.Count == 0) return; - try + [UnmanagedCallersOnly] + public static void OnEntityDeleted( nint entityPtr ) { - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnEntityTouchHook(@event); - } - return; + if (_subscribers.Count == 0) return; + try + { + var entity = new CEntityInstanceImpl(entityPtr); + OnEntityDeletedEvent @event = new() { + Entity = entity + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnEntityDeleted(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - catch (Exception e) + + [UnmanagedCallersOnly] + public static void OnEntityParentChanged( nint entityPtr, nint newParentPtr ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - return; + if (_subscribers.Count == 0) return; + try + { + var entity = new CEntityInstanceImpl(entityPtr); + CEntityInstance? parent = newParentPtr != 0 ? new CEntityInstanceImpl(newParentPtr) : null; + OnEntityParentChangedEvent @event = new() { + Entity = entity, + NewParent = parent + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnEntityParentChanged(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - } - public static void InvokeOnEntityStartTouch( OnEntityStartTouchEvent @event ) - { - if (_subscribers.Count == 0) return; - try + [UnmanagedCallersOnly] + public static void OnEntitySpawned( nint entityPtr ) { - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnEntityStartTouch(@event); - } - return; + if (_subscribers.Count == 0) return; + try + { + var entity = new CEntityInstanceImpl(entityPtr); + OnEntitySpawnedEvent @event = new() { + Entity = entity + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnEntitySpawned(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - catch (Exception e) + + [UnmanagedCallersOnly] + public static void OnMapLoad( nint mapNamePtr ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - return; + if (_subscribers.Count == 0) return; + try + { + var map = Marshal.PtrToStringUTF8(mapNamePtr) ?? string.Empty; + OnMapLoadEvent @event = new() { + MapName = map + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnMapLoad(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - } - public static void InvokeOnEntityTouch( OnEntityTouchEvent @event ) - { - if (_subscribers.Count == 0) return; - try + [UnmanagedCallersOnly] + public static void OnMapUnload( nint mapNamePtr ) { - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnEntityTouch(@event); - } - return; + if (_subscribers.Count == 0) return; + try + { + var map = Marshal.PtrToStringUTF8(mapNamePtr) ?? string.Empty; + OnMapUnloadEvent @event = new() { + MapName = map + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnMapUnload(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - catch (Exception e) + + [UnmanagedCallersOnly] + public static void OnClientProcessUsercmds( int playerId, nint usercmdsPtr, int numcmds, byte paused, float margin ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - return; + if (_subscribers.Count == 0) return; + try + { + unsafe + { + ReadOnlySpan usercmdPtrs = new ReadOnlySpan(usercmdsPtr.ToPointer(), numcmds); + List usercmds = []; + foreach (var pUsercmd in usercmdPtrs) + { + var usercmd = new CSGOUserCmdPBImpl(pUsercmd, false); + usercmds.Add(usercmd); + } + + OnClientProcessUsercmdsEvent @event = new() { + PlayerId = playerId, + Usercmds = usercmds, + Paused = paused != 0, + Margin = margin + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnClientProcessUsercmds(@event); + } + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - } - public static void InvokeOnEntityEndTouch( OnEntityEndTouchEvent @event ) - { - if (_subscribers.Count == 0) return; - try + [UnmanagedCallersOnly] + public static byte OnEntityTakeDamage( nint entityPtr, nint takeDamageInfoPtr ) { - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnEntityEndTouch(@event); - } - return; + if (_subscribers.Count == 0) return 1; + try + { + unsafe + { + var entity = new CEntityInstanceImpl(entityPtr); + OnEntityTakeDamageEvent @event = new() { + Entity = entity, + _infoPtr = takeDamageInfoPtr + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnEntityTakeDamage(@event); + + if (@event.Result == HookResult.Handled) + { + return 1; + } + + if (@event.Result == HookResult.Stop) + { + return 0; + } + } + return 1; + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return 1; + AnsiConsole.WriteException(e); + return 1; + } } - catch (Exception e) + + [UnmanagedCallersOnly] + public static void OnPrecacheResource( nint pResourceManifest ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - return; + if (_subscribers.Count == 0) return; + try + { + OnPrecacheResourceEvent @event = new() { + pResourceManifest = pResourceManifest + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnPrecacheResource(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - } - public static void InvokeOnSteamAPIActivatedHook() - { - if (_subscribers.Count == 0) return; - try + [Obsolete("InvokeOnEntityTouchHook is deprecated. Use InvokeOnEntityStartTouch, InvokeOnEntityTouch, or InvokeOnEntityEndTouch instead.")] + public static void InvokeOnEntityTouchHook( OnEntityTouchHookEvent @event ) { - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnSteamAPIActivatedHook(); - } - return; + if (_subscribers.Count == 0) return; + try + { + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnEntityTouchHook(@event); + } + return; + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + return; + } } - catch (Exception e) + + public static void InvokeOnEntityStartTouch( OnEntityStartTouchEvent @event ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - return; + if (_subscribers.Count == 0) return; + try + { + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnEntityStartTouch(@event); + } + return; + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + return; + } } - } - public static void InvokeOnCanAcquireHook( OnItemServicesCanAcquireHookEvent @event ) - { - if (_subscribers.Count == 0) return; - try + public static void InvokeOnEntityTouch( OnEntityTouchEvent @event ) { - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnItemServicesCanAcquireHook(@event); - if (@event.Intercepted) + if (_subscribers.Count == 0) return; + try { - return; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnEntityTouch(@event); + } + return; + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + return; } - } - return; } - catch (Exception e) + + public static void InvokeOnEntityEndTouch( OnEntityEndTouchEvent @event ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - return; + if (_subscribers.Count == 0) return; + try + { + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnEntityEndTouch(@event); + } + return; + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + return; + } } - } - public static void InvokeOnWeaponServicesCanUseHook( OnWeaponServicesCanUseHookEvent @event ) - { - if (_subscribers.Count == 0) return; - try + public static void InvokeOnSteamAPIActivatedHook() { - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnWeaponServicesCanUseHook(@event); - } + if (_subscribers.Count == 0) return; + try + { + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnSteamAPIActivatedHook(); + } + return; + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + return; + } } - catch (Exception e) + + public static void InvokeOnCanAcquireHook( OnItemServicesCanAcquireHookEvent @event ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); + if (_subscribers.Count == 0) return; + try + { + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnItemServicesCanAcquireHook(@event); + if (@event.Intercepted) + { + return; + } + } + return; + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + return; + } } - } - [UnmanagedCallersOnly] - public static void OnConsoleOutput( nint messagePtr ) - { - if (_subscribers.Count == 0) return; - try + public static void InvokeOnWeaponServicesCanUseHook( OnWeaponServicesCanUseHookEvent @event ) { - OnConsoleOutputEvent @event = new() { - Message = Marshal.PtrToStringUTF8(messagePtr) ?? string.Empty - }; - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnConsoleOutput(@event); - } + if (_subscribers.Count == 0) return; + try + { + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnWeaponServicesCanUseHook(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - catch (Exception e) + + [UnmanagedCallersOnly] + public static void OnConsoleOutput( nint messagePtr ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); + if (_subscribers.Count == 0) return; + try + { + OnConsoleOutputEvent @event = new() { + Message = Marshal.PtrToStringUTF8(messagePtr) ?? string.Empty + }; + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnConsoleOutput(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - } - public static void InvokeOnCommandExecuteHook( OnCommandExecuteHookEvent @event ) - { - if (_subscribers.Count == 0) return; - try + public static void InvokeOnCommandExecuteHook( OnCommandExecuteHookEvent @event ) { - foreach (var subscriber in _subscribers) - { - subscriber.InvokeOnCommandExecuteHook(@event); - } + if (_subscribers.Count == 0) return; + try + { + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnCommandExecuteHook(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - catch (Exception e) + + public static void InvokeOnMovementServicesRunCommandHook( OnMovementServicesRunCommandHookEvent @event ) { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); + if (_subscribers.Count == 0) return; + try + { + foreach (var subscriber in _subscribers) + { + subscriber.InvokeOnMovementServicesRunCommandHook(@event); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + return; + } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Events/EventSubscriber.cs b/managed/src/SwiftlyS2.Core/Modules/Events/EventSubscriber.cs index 95c71bc9e..6c42c19b8 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Events/EventSubscriber.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Events/EventSubscriber.cs @@ -1,5 +1,3 @@ -using System.Diagnostics; -using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using SwiftlyS2.Core.Services; using SwiftlyS2.Shared.Events; @@ -13,554 +11,591 @@ namespace SwiftlyS2.Core.Events; internal class EventSubscriber : IEventSubscriber, IDisposable { - private CoreContext _Id { get; init; } - private IContextedProfilerService _Profiler { get; init; } - private ILogger _Logger { get; init; } - - public EventSubscriber( CoreContext id, IContextedProfilerService profiler, ILogger logger ) - { - _Id = id; - _Profiler = profiler; - _Logger = logger; - EventPublisher.Subscribe(this); - } - - public event EventDelegates.OnTick? OnTick; - - public event EventDelegates.OnClientConnected? OnClientConnected; - - public event EventDelegates.OnClientDisconnected? OnClientDisconnected; - public event EventDelegates.OnClientKeyStateChanged? OnClientKeyStateChanged; - public event EventDelegates.OnClientPutInServer? OnClientPutInServer; - public event EventDelegates.OnClientSteamAuthorize? OnClientSteamAuthorize; - public event EventDelegates.OnClientSteamAuthorizeFail? OnClientSteamAuthorizeFail; - public event EventDelegates.OnEntityCreated? OnEntityCreated; - public event EventDelegates.OnEntityDeleted? OnEntityDeleted; - public event EventDelegates.OnEntityParentChanged? OnEntityParentChanged; - public event EventDelegates.OnEntitySpawned? OnEntitySpawned; - public event EventDelegates.OnMapLoad? OnMapLoad; - public event EventDelegates.OnMapUnload? OnMapUnload; - public event EventDelegates.OnClientProcessUsercmds? OnClientProcessUsercmds; - public event EventDelegates.OnConVarValueChanged? OnConVarValueChanged; - public event EventDelegates.OnConCommandCreated? OnConCommandCreated; - public event EventDelegates.OnConVarCreated? OnConVarCreated; - public event EventDelegates.OnEntityTakeDamage? OnEntityTakeDamage; - public event EventDelegates.OnPrecacheResource? OnPrecacheResource; - public event EventDelegates.OnEntityTouchHook? OnEntityTouchHook; - public event EventDelegates.OnEntityStartTouch? OnEntityStartTouch; - public event EventDelegates.OnEntityTouch? OnEntityTouch; - public event EventDelegates.OnEntityEndTouch? OnEntityEndTouch; - public event EventDelegates.OnItemServicesCanAcquireHook? OnItemServicesCanAcquireHook; - public event EventDelegates.OnWeaponServicesCanUseHook? OnWeaponServicesCanUseHook; - public event EventDelegates.OnConsoleOutput? OnConsoleOutput; - public event EventDelegates.OnCommandExecuteHook? OnCommandExecuteHook; - public event EventDelegates.OnSteamAPIActivated? OnSteamAPIActivated; - - public void Dispose() - { - EventPublisher.Unsubscribe(this); - } - - public void InvokeOnTick() - { - try - { - _Profiler.StartRecording("Event::OnTick"); - OnTick?.Invoke(); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnTick."); - } - finally - { - _Profiler.StopRecording("Event::OnTick"); - } - } - - public void InvokeOnClientConnected( OnClientConnectedEvent @event ) - { - try - { - if (OnClientConnected == null) return; - _Profiler.StartRecording("Event::OnClientConnected"); - OnClientConnected?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientConnected."); - } - finally - { - _Profiler.StopRecording("Event::OnClientConnected"); - } - } - - public void InvokeOnClientDisconnected( OnClientDisconnectedEvent @event ) - { - try - { - if (OnClientDisconnected == null) return; - _Profiler.StartRecording("Event::OnClientDisconnected"); - OnClientDisconnected?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientDisconnected."); - } - finally - { - _Profiler.StopRecording("Event::OnClientDisconnected"); - } - } - - public void InvokeOnClientKeyStateChanged( OnClientKeyStateChangedEvent @event ) - { - try - { - if (OnClientKeyStateChanged == null) return; - _Profiler.StartRecording("Event::OnClientKeyStateChanged"); - OnClientKeyStateChanged?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientKeyStateChanged."); - } - finally - { - _Profiler.StopRecording("Event::OnClientKeyStateChanged"); - } - } - - public void InvokeOnClientPutInServer( OnClientPutInServerEvent @event ) - { - try - { - if (OnClientPutInServer == null) return; - _Profiler.StartRecording("Event::OnClientPutInServer"); - OnClientPutInServer?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientPutInServer."); - } - finally - { - _Profiler.StopRecording("Event::OnClientPutInServer"); - } - } - - public void InvokeOnClientSteamAuthorize( OnClientSteamAuthorizeEvent @event ) - { - try - { - if (OnClientSteamAuthorize == null) return; - _Profiler.StartRecording("Event::OnClientSteamAuthorize"); - OnClientSteamAuthorize?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientSteamAuthorize."); - } - finally - { - _Profiler.StopRecording("Event::OnClientSteamAuthorize"); - } - } - - public void InvokeOnClientSteamAuthorizeFail( OnClientSteamAuthorizeFailEvent @event ) - { - try - { - if (OnClientSteamAuthorizeFail == null) return; - _Profiler.StartRecording("Event::OnClientSteamAuthorizeFail"); - OnClientSteamAuthorizeFail?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientSteamAuthorizeFail."); - } - finally - { - _Profiler.StopRecording("Event::OnClientSteamAuthorizeFail"); - } - } - - public void InvokeOnEntityCreated( OnEntityCreatedEvent @event ) - { - try - { - if (OnEntityCreated == null) return; - _Profiler.StartRecording("Event::OnEntityCreated"); - OnEntityCreated?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityCreated."); - } - finally - { - _Profiler.StopRecording("Event::OnEntityCreated"); - } - } - - public void InvokeOnEntityDeleted( OnEntityDeletedEvent @event ) - { - try - { - if (OnEntityDeleted == null) return; - _Profiler.StartRecording("Event::OnEntityDeleted"); - OnEntityDeleted?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityDeleted."); - } - finally - { - _Profiler.StopRecording("Event::OnEntityDeleted"); - } - } - - public void InvokeOnEntityParentChanged( OnEntityParentChangedEvent @event ) - { - try - { - if (OnEntityParentChanged == null) return; - _Profiler.StartRecording("Event::OnEntityParentChanged"); - OnEntityParentChanged?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityParentChanged."); - } - finally - { - _Profiler.StopRecording("Event::OnEntityParentChanged"); - } - } - - public void InvokeOnEntitySpawned( OnEntitySpawnedEvent @event ) - { - try - { - if (OnEntitySpawned == null) return; - _Profiler.StartRecording("Event::OnEntitySpawned"); - OnEntitySpawned?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntitySpawned."); - } - finally - { - _Profiler.StopRecording("Event::OnEntitySpawned"); - } - } - - public void InvokeOnMapLoad( OnMapLoadEvent @event ) - { - try - { - if (OnMapLoad == null) return; - _Profiler.StartRecording("Event::OnMapLoad"); - OnMapLoad?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnMapLoad."); - } - finally - { - _Profiler.StopRecording("Event::OnMapLoad"); - } - } - - public void InvokeOnMapUnload( OnMapUnloadEvent @event ) - { - try - { - if (OnMapUnload == null) return; - _Profiler.StartRecording("Event::OnMapUnload"); - OnMapUnload?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnMapUnload."); - } - finally - { - _Profiler.StopRecording("Event::OnMapUnload"); - } - } - - public void InvokeOnClientProcessUsercmds( OnClientProcessUsercmdsEvent @event ) - { - try - { - if (OnClientProcessUsercmds == null) return; - _Profiler.StartRecording("Event::OnClientProcessUsercmds"); - OnClientProcessUsercmds?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientProcessUsercmds."); - } - finally - { - _Profiler.StopRecording("Event::OnClientProcessUsercmds"); - } - } - - public void InvokeOnEntityTakeDamage( OnEntityTakeDamageEvent @event ) - { - try - { - if (OnEntityTakeDamage == null) return; - _Profiler.StartRecording("Event::OnEntityTakeDamage"); - OnEntityTakeDamage?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityTakeDamage."); - } - finally - { - _Profiler.StopRecording("Event::OnEntityTakeDamage"); - } - } - - public void InvokeOnPrecacheResource( OnPrecacheResourceEvent @event ) - { - try - { - if (OnPrecacheResource == null) return; - _Profiler.StartRecording("Event::OnPrecacheResource"); - OnPrecacheResource?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnPrecacheResource."); - } - finally - { - _Profiler.StopRecording("Event::OnPrecacheResource"); - } - } - - [Obsolete("InvokeOnEntityTouchHook is deprecated. Use InvokeOnEntityStartTouch, InvokeOnEntityTouch, or InvokeOnEntityEndTouch instead.")] - public void InvokeOnEntityTouchHook( OnEntityTouchHookEvent @event ) - { - try - { - if (OnEntityTouchHook == null) return; - _Profiler.StartRecording("Event::OnEntityTouchHook"); - OnEntityTouchHook?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityTouchHook."); - } - finally - { - _Profiler.StopRecording("Event::OnEntityTouchHook"); - } - } - - public void InvokeOnEntityStartTouch( OnEntityStartTouchEvent @event ) - { - try - { - if (OnEntityStartTouch == null) return; - _Profiler.StartRecording("Event::OnEntityStartTouch"); - OnEntityStartTouch?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityStartTouch."); - } - finally - { - _Profiler.StopRecording("Event::OnEntityStartTouch"); - } - } - - public void InvokeOnEntityTouch( OnEntityTouchEvent @event ) - { - try - { - if (OnEntityTouch == null) return; - _Profiler.StartRecording("Event::OnEntityTouch"); - OnEntityTouch?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityTouch."); - } - finally - { - _Profiler.StopRecording("Event::OnEntityTouch"); - } - } - - public void InvokeOnEntityEndTouch( OnEntityEndTouchEvent @event ) - { - try - { - if (OnEntityEndTouch == null) return; - _Profiler.StartRecording("Event::OnEntityEndTouch"); - OnEntityEndTouch?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityEndTouch."); - } - finally - { - _Profiler.StopRecording("Event::OnEntityEndTouch"); - } - } - - public void InvokeOnSteamAPIActivatedHook() - { - try - { - _Profiler.StartRecording("Event::OnSteamAPIActivatedHook"); - OnSteamAPIActivated?.Invoke(); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnSteamAPIActivatedHook."); - } - finally - { - _Profiler.StopRecording("Event::OnSteamAPIActivatedHook"); - } - } - - public void InvokeOnItemServicesCanAcquireHook( OnItemServicesCanAcquireHookEvent @event ) - { - try - { - if (OnItemServicesCanAcquireHook == null) return; - _Profiler.StartRecording("Event::OnItemServicesCanAcquireHook"); - OnItemServicesCanAcquireHook?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnItemServicesCanAcquireHook."); - } - finally - { - _Profiler.StopRecording("Event::OnItemServicesCanAcquireHook"); - } - } - - public void InvokeOnWeaponServicesCanUseHook( OnWeaponServicesCanUseHookEvent @event ) - { - try - { - if (OnWeaponServicesCanUseHook == null) return; - _Profiler.StartRecording("Event::OnWeaponServicesCanUseHook"); - OnWeaponServicesCanUseHook?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnWeaponServicesCanUseHook."); - } - finally - { - _Profiler.StopRecording("Event::OnWeaponServicesCanUseHook"); - } - } - - public void InvokeOnConsoleOutput( OnConsoleOutputEvent @event ) - { - try - { - if (OnConsoleOutput == null) return; - _Profiler.StartRecording("Event::OnConsoleOutput"); - OnConsoleOutput?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnConsoleOutput."); - } - finally - { - _Profiler.StopRecording("Event::OnConsoleOutput"); - } - } - - public void InvokeOnConVarValueChanged( OnConVarValueChanged @event ) - { - try - { - if (OnConVarValueChanged == null) return; - _Profiler.StartRecording("Event::OnConVarValueChanged"); - OnConVarValueChanged?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnConVarValueChanged."); - } - finally - { - _Profiler.StopRecording("Event::OnConVarValueChanged"); - } - } - - public void InvokeOnConCommandCreated( OnConCommandCreated @event ) - { - try - { - if (OnConCommandCreated == null) return; - _Profiler.StartRecording("Event::OnConCommandCreated"); - OnConCommandCreated?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnConCommandCreated."); - } - finally - { - _Profiler.StopRecording("Event::OnConCommandCreated"); - } - } - - public void InvokeOnConVarCreated( OnConVarCreated @event ) - { - try - { - if (OnConVarCreated == null) return; - _Profiler.StartRecording("Event::OnConVarCreated"); - OnConVarCreated?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnConVarCreated."); - } - finally - { - _Profiler.StopRecording("Event::OnConVarCreated"); - } - } - - public void InvokeOnCommandExecuteHook( OnCommandExecuteHookEvent @event ) - { - try - { - if (OnCommandExecuteHook == null) return; - _Profiler.StartRecording("Event::OnCommandExecuteHook"); - OnCommandExecuteHook?.Invoke(@event); - } - catch (Exception e) - { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnCommandExecuteHook."); - } - finally - { - _Profiler.StopRecording("Event::OnCommandExecuteHook"); + private CoreContext _Id { get; init; } + private IContextedProfilerService _Profiler { get; init; } + private ILogger _Logger { get; init; } + + public EventSubscriber( CoreContext id, IContextedProfilerService profiler, ILogger logger ) + { + _Id = id; + _Profiler = profiler; + _Logger = logger; + EventPublisher.Subscribe(this); + } + + public event EventDelegates.OnTick? OnTick; + public event EventDelegates.OnWorldUpdate? OnWorldUpdate; + + public event EventDelegates.OnClientConnected? OnClientConnected; + + public event EventDelegates.OnClientDisconnected? OnClientDisconnected; + public event EventDelegates.OnClientKeyStateChanged? OnClientKeyStateChanged; + public event EventDelegates.OnClientPutInServer? OnClientPutInServer; + public event EventDelegates.OnClientSteamAuthorize? OnClientSteamAuthorize; + public event EventDelegates.OnClientSteamAuthorizeFail? OnClientSteamAuthorizeFail; + public event EventDelegates.OnEntityCreated? OnEntityCreated; + public event EventDelegates.OnEntityDeleted? OnEntityDeleted; + public event EventDelegates.OnEntityParentChanged? OnEntityParentChanged; + public event EventDelegates.OnEntitySpawned? OnEntitySpawned; + public event EventDelegates.OnMapLoad? OnMapLoad; + public event EventDelegates.OnMapUnload? OnMapUnload; + public event EventDelegates.OnClientProcessUsercmds? OnClientProcessUsercmds; + public event EventDelegates.OnConVarValueChanged? OnConVarValueChanged; + public event EventDelegates.OnConCommandCreated? OnConCommandCreated; + public event EventDelegates.OnConVarCreated? OnConVarCreated; + public event EventDelegates.OnEntityTakeDamage? OnEntityTakeDamage; + public event EventDelegates.OnPrecacheResource? OnPrecacheResource; + public event EventDelegates.OnEntityTouchHook? OnEntityTouchHook; + public event EventDelegates.OnEntityStartTouch? OnEntityStartTouch; + public event EventDelegates.OnEntityTouch? OnEntityTouch; + public event EventDelegates.OnEntityEndTouch? OnEntityEndTouch; + public event EventDelegates.OnItemServicesCanAcquireHook? OnItemServicesCanAcquireHook; + public event EventDelegates.OnWeaponServicesCanUseHook? OnWeaponServicesCanUseHook; + public event EventDelegates.OnConsoleOutput? OnConsoleOutput; + public event EventDelegates.OnCommandExecuteHook? OnCommandExecuteHook; + public event EventDelegates.OnSteamAPIActivated? OnSteamAPIActivated; + public event EventDelegates.OnMovementServicesRunCommandHook? OnMovementServicesRunCommandHook; + + public void Dispose() + { + EventPublisher.Unsubscribe(this); + } + + public void InvokeOnTick() + { + try + { + _Profiler.StartRecording("Event::OnTick"); + OnTick?.Invoke(); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnTick."); + } + finally + { + _Profiler.StopRecording("Event::OnTick"); + } + } + + public void InvokeOnWorldUpdate() + { + try + { + _Profiler.StartRecording("Event::OnWorldUpdate"); + OnWorldUpdate?.Invoke(); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnWorldUpdate."); + } + finally + { + _Profiler.StopRecording("Event::OnWorldUpdate"); + } + } + + public void InvokeOnClientConnected( OnClientConnectedEvent @event ) + { + try + { + if (OnClientConnected == null) return; + _Profiler.StartRecording("Event::OnClientConnected"); + OnClientConnected?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientConnected."); + } + finally + { + _Profiler.StopRecording("Event::OnClientConnected"); + } + } + + public void InvokeOnClientDisconnected( OnClientDisconnectedEvent @event ) + { + try + { + if (OnClientDisconnected == null) return; + _Profiler.StartRecording("Event::OnClientDisconnected"); + OnClientDisconnected?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientDisconnected."); + } + finally + { + _Profiler.StopRecording("Event::OnClientDisconnected"); + } + } + + public void InvokeOnClientKeyStateChanged( OnClientKeyStateChangedEvent @event ) + { + try + { + if (OnClientKeyStateChanged == null) return; + _Profiler.StartRecording("Event::OnClientKeyStateChanged"); + OnClientKeyStateChanged?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientKeyStateChanged."); + } + finally + { + _Profiler.StopRecording("Event::OnClientKeyStateChanged"); + } + } + + public void InvokeOnClientPutInServer( OnClientPutInServerEvent @event ) + { + try + { + if (OnClientPutInServer == null) return; + _Profiler.StartRecording("Event::OnClientPutInServer"); + OnClientPutInServer?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientPutInServer."); + } + finally + { + _Profiler.StopRecording("Event::OnClientPutInServer"); + } + } + + public void InvokeOnClientSteamAuthorize( OnClientSteamAuthorizeEvent @event ) + { + try + { + if (OnClientSteamAuthorize == null) return; + _Profiler.StartRecording("Event::OnClientSteamAuthorize"); + OnClientSteamAuthorize?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientSteamAuthorize."); + } + finally + { + _Profiler.StopRecording("Event::OnClientSteamAuthorize"); + } + } + + public void InvokeOnClientSteamAuthorizeFail( OnClientSteamAuthorizeFailEvent @event ) + { + try + { + if (OnClientSteamAuthorizeFail == null) return; + _Profiler.StartRecording("Event::OnClientSteamAuthorizeFail"); + OnClientSteamAuthorizeFail?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientSteamAuthorizeFail."); + } + finally + { + _Profiler.StopRecording("Event::OnClientSteamAuthorizeFail"); + } + } + + public void InvokeOnEntityCreated( OnEntityCreatedEvent @event ) + { + try + { + if (OnEntityCreated == null) return; + _Profiler.StartRecording("Event::OnEntityCreated"); + OnEntityCreated?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityCreated."); + } + finally + { + _Profiler.StopRecording("Event::OnEntityCreated"); + } + } + + public void InvokeOnEntityDeleted( OnEntityDeletedEvent @event ) + { + try + { + if (OnEntityDeleted == null) return; + _Profiler.StartRecording("Event::OnEntityDeleted"); + OnEntityDeleted?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityDeleted."); + } + finally + { + _Profiler.StopRecording("Event::OnEntityDeleted"); + } + } + + public void InvokeOnEntityParentChanged( OnEntityParentChangedEvent @event ) + { + try + { + if (OnEntityParentChanged == null) return; + _Profiler.StartRecording("Event::OnEntityParentChanged"); + OnEntityParentChanged?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityParentChanged."); + } + finally + { + _Profiler.StopRecording("Event::OnEntityParentChanged"); + } + } + + public void InvokeOnEntitySpawned( OnEntitySpawnedEvent @event ) + { + try + { + if (OnEntitySpawned == null) return; + _Profiler.StartRecording("Event::OnEntitySpawned"); + OnEntitySpawned?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntitySpawned."); + } + finally + { + _Profiler.StopRecording("Event::OnEntitySpawned"); + } + } + + public void InvokeOnMapLoad( OnMapLoadEvent @event ) + { + try + { + if (OnMapLoad == null) return; + _Profiler.StartRecording("Event::OnMapLoad"); + OnMapLoad?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnMapLoad."); + } + finally + { + _Profiler.StopRecording("Event::OnMapLoad"); + } + } + + public void InvokeOnMapUnload( OnMapUnloadEvent @event ) + { + try + { + if (OnMapUnload == null) return; + _Profiler.StartRecording("Event::OnMapUnload"); + OnMapUnload?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnMapUnload."); + } + finally + { + _Profiler.StopRecording("Event::OnMapUnload"); + } + } + + public void InvokeOnClientProcessUsercmds( OnClientProcessUsercmdsEvent @event ) + { + try + { + if (OnClientProcessUsercmds == null) return; + _Profiler.StartRecording("Event::OnClientProcessUsercmds"); + OnClientProcessUsercmds?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnClientProcessUsercmds."); + } + finally + { + _Profiler.StopRecording("Event::OnClientProcessUsercmds"); + } + } + + public void InvokeOnEntityTakeDamage( OnEntityTakeDamageEvent @event ) + { + try + { + if (OnEntityTakeDamage == null) return; + _Profiler.StartRecording("Event::OnEntityTakeDamage"); + OnEntityTakeDamage?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityTakeDamage."); + } + finally + { + _Profiler.StopRecording("Event::OnEntityTakeDamage"); + } + } + + public void InvokeOnPrecacheResource( OnPrecacheResourceEvent @event ) + { + try + { + if (OnPrecacheResource == null) return; + _Profiler.StartRecording("Event::OnPrecacheResource"); + OnPrecacheResource?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnPrecacheResource."); + } + finally + { + _Profiler.StopRecording("Event::OnPrecacheResource"); + } + } + + [Obsolete("InvokeOnEntityTouchHook is deprecated. Use InvokeOnEntityStartTouch, InvokeOnEntityTouch, or InvokeOnEntityEndTouch instead.")] + public void InvokeOnEntityTouchHook( OnEntityTouchHookEvent @event ) + { + try + { + if (OnEntityTouchHook == null) return; + _Profiler.StartRecording("Event::OnEntityTouchHook"); + OnEntityTouchHook?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityTouchHook."); + } + finally + { + _Profiler.StopRecording("Event::OnEntityTouchHook"); + } + } + + public void InvokeOnEntityStartTouch( OnEntityStartTouchEvent @event ) + { + try + { + if (OnEntityStartTouch == null) return; + _Profiler.StartRecording("Event::OnEntityStartTouch"); + OnEntityStartTouch?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityStartTouch."); + } + finally + { + _Profiler.StopRecording("Event::OnEntityStartTouch"); + } + } + + public void InvokeOnEntityTouch( OnEntityTouchEvent @event ) + { + try + { + if (OnEntityTouch == null) return; + _Profiler.StartRecording("Event::OnEntityTouch"); + OnEntityTouch?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityTouch."); + } + finally + { + _Profiler.StopRecording("Event::OnEntityTouch"); + } + } + + public void InvokeOnEntityEndTouch( OnEntityEndTouchEvent @event ) + { + try + { + if (OnEntityEndTouch == null) return; + _Profiler.StartRecording("Event::OnEntityEndTouch"); + OnEntityEndTouch?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnEntityEndTouch."); + } + finally + { + _Profiler.StopRecording("Event::OnEntityEndTouch"); + } + } + + public void InvokeOnSteamAPIActivatedHook() + { + try + { + _Profiler.StartRecording("Event::OnSteamAPIActivatedHook"); + OnSteamAPIActivated?.Invoke(); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnSteamAPIActivatedHook."); + } + finally + { + _Profiler.StopRecording("Event::OnSteamAPIActivatedHook"); + } + } + + public void InvokeOnItemServicesCanAcquireHook( OnItemServicesCanAcquireHookEvent @event ) + { + try + { + if (OnItemServicesCanAcquireHook == null) return; + _Profiler.StartRecording("Event::OnItemServicesCanAcquireHook"); + OnItemServicesCanAcquireHook?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnItemServicesCanAcquireHook."); + } + finally + { + _Profiler.StopRecording("Event::OnItemServicesCanAcquireHook"); + } + } + + public void InvokeOnWeaponServicesCanUseHook( OnWeaponServicesCanUseHookEvent @event ) + { + try + { + if (OnWeaponServicesCanUseHook == null) return; + _Profiler.StartRecording("Event::OnWeaponServicesCanUseHook"); + OnWeaponServicesCanUseHook?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnWeaponServicesCanUseHook."); + } + finally + { + _Profiler.StopRecording("Event::OnWeaponServicesCanUseHook"); + } + } + + public void InvokeOnConsoleOutput( OnConsoleOutputEvent @event ) + { + try + { + if (OnConsoleOutput == null) return; + _Profiler.StartRecording("Event::OnConsoleOutput"); + OnConsoleOutput?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnConsoleOutput."); + } + finally + { + _Profiler.StopRecording("Event::OnConsoleOutput"); + } + } + + public void InvokeOnConVarValueChanged( OnConVarValueChanged @event ) + { + try + { + if (OnConVarValueChanged == null) return; + _Profiler.StartRecording("Event::OnConVarValueChanged"); + OnConVarValueChanged?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnConVarValueChanged."); + } + finally + { + _Profiler.StopRecording("Event::OnConVarValueChanged"); + } + } + + public void InvokeOnConCommandCreated( OnConCommandCreated @event ) + { + try + { + if (OnConCommandCreated == null) return; + _Profiler.StartRecording("Event::OnConCommandCreated"); + OnConCommandCreated?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnConCommandCreated."); + } + finally + { + _Profiler.StopRecording("Event::OnConCommandCreated"); + } + } + + public void InvokeOnConVarCreated( OnConVarCreated @event ) + { + try + { + if (OnConVarCreated == null) return; + _Profiler.StartRecording("Event::OnConVarCreated"); + OnConVarCreated?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnConVarCreated."); + } + finally + { + _Profiler.StopRecording("Event::OnConVarCreated"); + } + } + + public void InvokeOnCommandExecuteHook( OnCommandExecuteHookEvent @event ) + { + try + { + if (OnCommandExecuteHook == null) return; + _Profiler.StartRecording("Event::OnCommandExecuteHook"); + OnCommandExecuteHook?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnCommandExecuteHook."); + } + finally + { + _Profiler.StopRecording("Event::OnCommandExecuteHook"); + } + } + + public void InvokeOnMovementServicesRunCommandHook( OnMovementServicesRunCommandHookEvent @event ) + { + try + { + if (OnMovementServicesRunCommandHook == null) return; + _Profiler.StartRecording("Event::OnMovementServicesRunCommandHook"); + OnMovementServicesRunCommandHook?.Invoke(@event); + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Error invoking OnMovementServicesRunCommandHook."); + } + finally + { + _Profiler.StopRecording("Event::OnMovementServicesRunCommandHook"); + } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/GameData/GameDataService.cs b/managed/src/SwiftlyS2.Core/Modules/GameData/GameDataService.cs index e4ab86d8d..7504176bd 100644 --- a/managed/src/SwiftlyS2.Core/Modules/GameData/GameDataService.cs +++ b/managed/src/SwiftlyS2.Core/Modules/GameData/GameDataService.cs @@ -17,180 +17,146 @@ internal record Patch( string signature, string windows, string linux ); internal class GameDataService : IGameDataService { - private CoreContext _Context { get; init; } + private CoreContext _Context { get; init; } - private ConcurrentDictionary _Signatures = new(); - private ConcurrentDictionary _Offsets = new(); - private ConcurrentDictionary _Patches = new(); + private readonly ConcurrentDictionary _Signatures = new(); + private readonly ConcurrentDictionary _Offsets = new(); + private readonly ConcurrentDictionary _Patches = new(); - private static OSPlatform _Platform = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? OSPlatform.Windows : OSPlatform.Linux; + private static readonly OSPlatform _Platform = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? OSPlatform.Windows : OSPlatform.Linux; - public GameDataService( CoreContext context, MemoryService memoryService, ILogger logger ) - { - _Context = context; - - var signaturePath = Path.Combine(_Context.BaseDirectory, "resources", "gamedata", "signatures.jsonc"); - var offsetPath = Path.Combine(_Context.BaseDirectory, "resources", "gamedata", "offsets.jsonc"); - var patchPath = Path.Combine(_Context.BaseDirectory, "resources", "gamedata", "patches.jsonc"); - - try + public GameDataService( CoreContext context, MemoryService memoryService, ILogger logger ) { + _Context = context; - if (File.Exists(signaturePath)) - { - var signatures = JsonSerializer.Deserialize>(File.ReadAllText(signaturePath))!; - foreach (var signature in signatures) - { - nint? value = null; - if (_Platform == OSPlatform.Windows) - { - value = memoryService.GetAddressBySignature(signature.Value.lib, signature.Value.windows); - } - else - { - value = memoryService.GetAddressBySignature(signature.Value.lib, signature.Value.linux); - } - if (value is null) - { - logger.LogError("Failed to load signature {Signature}!", signature.Key); - continue; - } - _Signatures.TryAdd(signature.Key, value.Value); - } - } + var signaturePath = Path.Combine(_Context.BaseDirectory, "resources", "gamedata", "signatures.jsonc"); + var offsetPath = Path.Combine(_Context.BaseDirectory, "resources", "gamedata", "offsets.jsonc"); + var patchPath = Path.Combine(_Context.BaseDirectory, "resources", "gamedata", "patches.jsonc"); - if (File.Exists(offsetPath)) - { - var offsets = JsonSerializer.Deserialize>(File.ReadAllText(offsetPath))!; - foreach (var offset in offsets) + try { - if (_Platform == OSPlatform.Windows) - { - _Offsets.TryAdd(offset.Key, offset.Value.windows); - } - else - { - _Offsets.TryAdd(offset.Key, offset.Value.linux); - } - } - } - if (File.Exists(patchPath)) - { - var patches = JsonSerializer.Deserialize>(File.ReadAllText(patchPath))!; - foreach (var patch in patches) + if (File.Exists(signaturePath)) + { + var signatures = JsonSerializer.Deserialize>(File.ReadAllText(signaturePath))!; + foreach (var signature in signatures) + { + var value = _Platform == OSPlatform.Windows + ? memoryService.GetAddressBySignature(signature.Value.lib, signature.Value.windows) + : memoryService.GetAddressBySignature(signature.Value.lib, signature.Value.linux); + if (value is null) + { + logger.LogError("Failed to load signature {Signature}!", signature.Key); + continue; + } + _ = _Signatures.TryAdd(signature.Key, value.Value); + } + } + + if (File.Exists(offsetPath)) + { + var offsets = JsonSerializer.Deserialize>(File.ReadAllText(offsetPath))!; + foreach (var offset in offsets) + { + if (_Platform == OSPlatform.Windows) + { + _ = _Offsets.TryAdd(offset.Key, offset.Value.windows); + } + else + { + _ = _Offsets.TryAdd(offset.Key, offset.Value.linux); + } + } + } + + if (File.Exists(patchPath)) + { + var patches = JsonSerializer.Deserialize>(File.ReadAllText(patchPath))!; + foreach (var patch in patches) + { + _ = _Patches.TryAdd(patch.Key, patch.Value); + } + } + + } + catch (Exception e) { - _Patches.TryAdd(patch.Key, patch.Value); + if (!GlobalExceptionHandler.Handle(e)) return; + logger.LogError(e, "Failed to load game data."); } - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - logger.LogError(e, "Failed to load game data."); - } - } - public bool HasSignature( string signatureName ) - { - if (_Signatures.ContainsKey(signatureName)) + public bool HasSignature( string signatureName ) { - return true; + return _Signatures.ContainsKey(signatureName) ? true : NativeSignatures.Exists(signatureName); } - return NativeSignatures.Exists(signatureName); - } - - public nint GetSignature( string signatureName ) - { - if (_Signatures.TryGetValue(signatureName, out var signature)) + public nint GetSignature( string signatureName ) { - return signature; + return _Signatures.TryGetValue(signatureName, out var signature) ? signature : NativeSignatures.Fetch(signatureName); } - return NativeSignatures.Fetch(signatureName); - } - public bool TryGetSignature( string signatureName, out nint signature ) - { - if (_Signatures.TryGetValue(signatureName, out var _signature)) + public bool TryGetSignature( string signatureName, out nint signature ) { - signature = _signature; - return true; + if (_Signatures.TryGetValue(signatureName, out var _signature)) + { + signature = _signature; + return true; + } + signature = NativeSignatures.Fetch(signatureName); + return signature != nint.Zero; } - signature = NativeSignatures.Fetch(signatureName); - return signature != nint.Zero; - } - public bool HasOffset( string offsetName ) - { - if (_Offsets.ContainsKey(offsetName)) + public bool HasOffset( string offsetName ) { - return true; + return _Offsets.ContainsKey(offsetName) ? true : NativeOffsets.Exists(offsetName); } - return NativeOffsets.Exists(offsetName); - } - public int GetOffset( string offsetName ) - { - if (_Offsets.TryGetValue(offsetName, out var offset)) + public int GetOffset( string offsetName ) { - return offset; + return _Offsets.TryGetValue(offsetName, out var offset) ? offset : NativeOffsets.Fetch(offsetName); } - return NativeOffsets.Fetch(offsetName); - } - public bool TryGetOffset( string offsetName, out nint offset ) - { - if (_Offsets.TryGetValue(offsetName, out var _offset)) + public bool TryGetOffset( string offsetName, out nint offset ) { - offset = _offset; - return true; + if (_Offsets.TryGetValue(offsetName, out var _offset)) + { + offset = _offset; + return true; + } + offset = NativeOffsets.Fetch(offsetName); + return offset != nint.Zero; } - offset = NativeOffsets.Fetch(offsetName); - return offset != nint.Zero; - } - public bool HasPatch( string patchName ) - { - if (_Patches.ContainsKey(patchName)) + public bool HasPatch( string patchName ) { - return true; + return _Patches.ContainsKey(patchName) ? true : NativePatches.Exists(patchName); } - return NativePatches.Exists(patchName); - } - public void ApplyPatch( string patchName ) - { - if (_Patches.TryGetValue(patchName, out var patch)) + public void ApplyPatch( string patchName ) { - nint address = GetSignature(patch.signature); - if (address == nint.Zero) - { - throw new Exception($"Failed to apply patch {patchName}, cannot find signature {patch.signature}."); - } - - byte[] bytes; - - if (_Platform == OSPlatform.Windows) - { - bytes = patch.windows - .Split(' ', StringSplitOptions.RemoveEmptyEntries) - .Select(x => byte.Parse(x, NumberStyles.HexNumber, CultureInfo.InvariantCulture)) - .ToArray(); - } - else - { - bytes = patch.linux - .Split(' ', StringSplitOptions.RemoveEmptyEntries) - .Select(x => byte.Parse(x, NumberStyles.HexNumber, CultureInfo.InvariantCulture)) - .ToArray(); - } - MemoryPatch.SetMemAccess(address, bytes.Length); - address.CopyFrom(bytes); - return; + if (_Patches.TryGetValue(patchName, out var patch)) + { + var address = GetSignature(patch.signature); + if (address == nint.Zero) + { + throw new Exception($"Failed to apply patch {patchName}, cannot find signature {patch.signature}."); + } + + var bytes = _Platform == OSPlatform.Windows + ? patch.windows + .Split(' ', StringSplitOptions.RemoveEmptyEntries) + .Select(x => byte.Parse(x, NumberStyles.HexNumber, CultureInfo.InvariantCulture)) + .ToArray() + : patch.linux + .Split(' ', StringSplitOptions.RemoveEmptyEntries) + .Select(x => byte.Parse(x, NumberStyles.HexNumber, CultureInfo.InvariantCulture)) + .ToArray(); + _ = MemoryPatch.SetMemAccess(address, bytes.Length); + address.CopyFrom(bytes); + return; + } + NativePatches.Apply(patchName); } - NativePatches.Apply(patchName); - } } diff --git a/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEvent.cs b/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEvent.cs index d387b7b41..ef0514cd2 100644 --- a/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEvent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEvent.cs @@ -2,23 +2,26 @@ namespace SwiftlyS2.Core.GameEvents; -internal class GameEvent where T : IGameEvent { +internal class GameEvent where T : IGameEvent +{ - private GameEventAccessor _Accessor { get; init; } + private GameEventAccessor _Accessor { get; init; } - public IGameEventAccessor Accessor => _Accessor; + public IGameEventAccessor Accessor => _Accessor; - public GameEvent(nint address) { - _Accessor = new GameEventAccessor(address); - } + public GameEvent( nint address ) + { + _Accessor = new GameEventAccessor(address); + } - public void Dispose() { - _Accessor.Dispose(); - } + public void Dispose() + { + _Accessor.Dispose(); + } - public bool DontBroadcast { - get => Accessor.DontBroadcast; - set => Accessor.DontBroadcast = value; - } + public bool DontBroadcast { + get => Accessor.DontBroadcast; + set => Accessor.DontBroadcast = value; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEventAccessor.cs b/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEventAccessor.cs index 77a6fb40e..fa0b45431 100644 --- a/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEventAccessor.cs +++ b/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEventAccessor.cs @@ -3,148 +3,174 @@ using SwiftlyS2.Core.Players; using SwiftlyS2.Core.SchemaDefinitions; using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.Players; using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEvents; -internal class GameEventAccessor : NativeHandle, IGameEventAccessor, IDisposable { - - public bool DontBroadcast { get; set; } - private bool _IsValid = true; - - public GameEventAccessor(nint handle) : base(handle) - { - } - - public void Dispose() { - _IsValid = false; - } - - private void CheckIsValid() { - if (!_IsValid) throw new InvalidOperationException("The event is already disposed."); - } - - public void SetBool(string key, bool value) { - CheckIsValid(); - NativeGameEvents.SetBool(Address, key, value); - } - - public bool GetBool(string key) { - CheckIsValid(); - return NativeGameEvents.GetBool(Address, key); - } - - public void SetInt32(string key, int value) { - CheckIsValid(); - NativeGameEvents.SetInt(Address, key, value); - } - - public int GetInt32(string key) { - CheckIsValid(); - return NativeGameEvents.GetInt(Address, key); - } - - public void SetUInt64(string key, ulong value) { - CheckIsValid(); - NativeGameEvents.SetUint64(Address, key, value); - } - - public ulong GetUInt64(string key) { - CheckIsValid(); - return NativeGameEvents.GetUint64(Address, key); - } - - public void SetFloat(string key, float value) { - CheckIsValid(); - NativeGameEvents.SetFloat(Address, key, value); - } - - public float GetFloat(string key) { - CheckIsValid(); - return NativeGameEvents.GetFloat(Address, key); - } - - public void SetString(string key, string value) { - CheckIsValid(); - NativeGameEvents.SetString(Address, key, value); - } - - public string GetString(string key) { - CheckIsValid(); - return NativeGameEvents.GetString(Address, key); - } - - public void SetEntity(string key, K value) where K : CEntityInstance { - CheckIsValid(); - NativeGameEvents.SetEntity(Address, key, value.Address); - } - - public K GetEntity(string key) where K : CEntityInstance { - CheckIsValid(); - return (K)K.From(NativeGameEvents.GetEntity(Address, key)); - } - - public void SetEntityIndex(string key, int value) { - CheckIsValid(); - NativeGameEvents.SetEntityIndex(Address, key, value); - } - - public int GetEntityIndex(string key) { - CheckIsValid(); - return NativeGameEvents.GetEntityIndex(Address, key); - } - - public void SetPlayerSlot(string key, int value) { - CheckIsValid(); - NativeGameEvents.SetPlayerSlot(Address, key, value); - } - - public int GetPlayerSlot(string key) { - CheckIsValid(); - return NativeGameEvents.GetPlayerSlot(Address, key); - } - - public CCSPlayerController GetPlayerController(string key) { - CheckIsValid(); - return new CCSPlayerControllerImpl(NativeGameEvents.GetPlayerController(Address, key)); - } - - public CCSPlayerPawn GetPlayerPawn(string key) { - CheckIsValid(); - return new CCSPlayerPawnImpl(NativeGameEvents.GetPlayerPawn(Address, key)); - } - - public IPlayer GetPlayer(string key) { - CheckIsValid(); - return new Player(GetInt32(key)); - } - - public void SetPtr(string key, nint value) { - CheckIsValid(); - NativeGameEvents.SetPtr(Address, key, value); - } - - public nint GetPtr(string key) { - CheckIsValid(); - return NativeGameEvents.GetPtr(Address, key); - } - - public int GetPawnEntityIndex(string key) { - CheckIsValid(); - return NativeGameEvents.GetPawnEntityIndex(Address, key); - } - - public bool IsReliable() { - CheckIsValid(); - return NativeGameEvents.IsReliable(Address); - } - - public bool IsLocal() { - CheckIsValid(); - return NativeGameEvents.IsLocal(Address); - } - - +internal class GameEventAccessor : NativeHandle, IGameEventAccessor, IDisposable +{ + + public bool DontBroadcast { get; set; } + private bool _IsValid = true; + + public GameEventAccessor( nint handle ) : base(handle) + { + } + + public void Dispose() + { + _IsValid = false; + } + + private void CheckIsValid() + { + if (!_IsValid) throw new InvalidOperationException("The event is already disposed."); + } + + public void SetBool( string key, bool value ) + { + CheckIsValid(); + NativeGameEvents.SetBool(Address, key, value); + } + + public bool GetBool( string key ) + { + CheckIsValid(); + return NativeGameEvents.GetBool(Address, key); + } + + public void SetInt32( string key, int value ) + { + CheckIsValid(); + NativeGameEvents.SetInt(Address, key, value); + } + + public int GetInt32( string key ) + { + CheckIsValid(); + return NativeGameEvents.GetInt(Address, key); + } + + public void SetUInt64( string key, ulong value ) + { + CheckIsValid(); + NativeGameEvents.SetUint64(Address, key, value); + } + + public ulong GetUInt64( string key ) + { + CheckIsValid(); + return NativeGameEvents.GetUint64(Address, key); + } + + public void SetFloat( string key, float value ) + { + CheckIsValid(); + NativeGameEvents.SetFloat(Address, key, value); + } + + public float GetFloat( string key ) + { + CheckIsValid(); + return NativeGameEvents.GetFloat(Address, key); + } + + public void SetString( string key, string value ) + { + CheckIsValid(); + NativeGameEvents.SetString(Address, key, value); + } + + public string GetString( string key ) + { + CheckIsValid(); + return NativeGameEvents.GetString(Address, key); + } + + public void SetEntity( string key, K value ) where K : CEntityInstance + { + CheckIsValid(); + NativeGameEvents.SetEntity(Address, key, value.Address); + } + + public K GetEntity( string key ) where K : CEntityInstance + { + CheckIsValid(); + return (K)K.From(NativeGameEvents.GetEntity(Address, key)); + } + + public void SetEntityIndex( string key, int value ) + { + CheckIsValid(); + NativeGameEvents.SetEntityIndex(Address, key, value); + } + + public int GetEntityIndex( string key ) + { + CheckIsValid(); + return NativeGameEvents.GetEntityIndex(Address, key); + } + + public void SetPlayerSlot( string key, int value ) + { + CheckIsValid(); + NativeGameEvents.SetPlayerSlot(Address, key, value); + } + + public int GetPlayerSlot( string key ) + { + CheckIsValid(); + return NativeGameEvents.GetPlayerSlot(Address, key); + } + + public CCSPlayerController GetPlayerController( string key ) + { + CheckIsValid(); + return new CCSPlayerControllerImpl(NativeGameEvents.GetPlayerController(Address, key)); + } + + public CCSPlayerPawn GetPlayerPawn( string key ) + { + CheckIsValid(); + return new CCSPlayerPawnImpl(NativeGameEvents.GetPlayerPawn(Address, key)); + } + + public IPlayer GetPlayer( string key ) + { + CheckIsValid(); + return new Player(GetInt32(key)); + } + + public void SetPtr( string key, nint value ) + { + CheckIsValid(); + NativeGameEvents.SetPtr(Address, key, value); + } + + public nint GetPtr( string key ) + { + CheckIsValid(); + return NativeGameEvents.GetPtr(Address, key); + } + + public int GetPawnEntityIndex( string key ) + { + CheckIsValid(); + return NativeGameEvents.GetPawnEntityIndex(Address, key); + } + + public bool IsReliable() + { + CheckIsValid(); + return NativeGameEvents.IsReliable(Address); + } + + public bool IsLocal() + { + CheckIsValid(); + return NativeGameEvents.IsLocal(Address); + } + + } diff --git a/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEventCallback.cs b/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEventCallback.cs index 541977f66..a3aa06041 100644 --- a/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEventCallback.cs +++ b/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEventCallback.cs @@ -1,10 +1,10 @@ using System.Runtime.InteropServices; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Core.Extensions; using Microsoft.Extensions.Logging; +using SwiftlyS2.Core.Extensions; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.Services; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Misc; -using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.Profiler; namespace SwiftlyS2.Core.GameEvents; @@ -15,99 +15,97 @@ namespace SwiftlyS2.Core.GameEvents; internal abstract class GameEventCallback : IEquatable, IDisposable { - public Guid Guid { get; init; } + public Guid Guid { get; init; } - public string EventName { get; init; } = ""; + public string EventName { get; init; } = ""; - public Type EventType { get; init; } = typeof(object); + public Type EventType { get; init; } = typeof(object); - public bool IsPreHook { get; init; } + public bool IsPreHook { get; init; } - public nint UnmanagedWrapperPtr { get; init; } + public nint UnmanagedWrapperPtr { get; init; } - public ulong ListenerId { get; init; } + public ulong ListenerId { get; init; } - public IContextedProfilerService Profiler { get; } + public IContextedProfilerService Profiler { get; } - public ILoggerFactory LoggerFactory { get; } + public ILoggerFactory LoggerFactory { get; } - public CoreContext Context { get; } + public CoreContext Context { get; } - protected GameEventCallback( ILoggerFactory loggerFactory, IContextedProfilerService profiler, CoreContext context ) - { - LoggerFactory = loggerFactory; - Profiler = profiler; - Context = context; - } + protected GameEventCallback( ILoggerFactory loggerFactory, IContextedProfilerService profiler, CoreContext context ) + { + LoggerFactory = loggerFactory; + Profiler = profiler; + Context = context; + } - public void Dispose() - { - if (IsPreHook) + public void Dispose() { - NativeGameEvents.RemoveListenerPreCallback(ListenerId); + if (IsPreHook) + { + NativeGameEvents.RemoveListenerPreCallback(ListenerId); + } + else + { + NativeGameEvents.RemoveListenerPostCallback(ListenerId); + } } - else + + public bool Equals( GameEventCallback? other ) { - NativeGameEvents.RemoveListenerPostCallback(ListenerId); + return other is null ? false : Guid == other.Guid; + } + + public override bool Equals( object? obj ) + { + return ReferenceEquals(this, obj) ? true : obj is GameEventCallback other && Equals(other); + } + + public override int GetHashCode() + { + return Guid.GetHashCode(); } - } - - public bool Equals( GameEventCallback? other ) - { - if (other is null) return false; - return Guid == other.Guid; - } - - public override bool Equals( object? obj ) - { - if (ReferenceEquals(this, obj)) return true; - return obj is GameEventCallback other && Equals(other); - } - - public override int GetHashCode() - { - return Guid.GetHashCode(); - } } internal class GameEventCallback : GameEventCallback, IDisposable where T : IGameEvent { - private IGameEventService.GameEventHandler _callback { get; init; } - private ILogger> _Logger { get; init; } - private UnmanagedEventCallback _unmanagedCallback; - - public GameEventCallback( IGameEventService.GameEventHandler callback, bool pre, ILoggerFactory loggerFactory, IContextedProfilerService profiler, CoreContext context ) : base(loggerFactory, profiler, context) - { - Guid = Guid.NewGuid(); - EventType = typeof(T); - IsPreHook = pre; - EventName = T.GetName(); - _callback = callback; - _Logger = LoggerFactory.CreateLogger>(); - - _unmanagedCallback = ( hash, pEvent, pDontBroadcast ) => + private IGameEventService.GameEventHandler _callback { get; init; } + private ILogger> _Logger { get; init; } + private readonly UnmanagedEventCallback _unmanagedCallback; + + public GameEventCallback( IGameEventService.GameEventHandler callback, bool pre, ILoggerFactory loggerFactory, IContextedProfilerService profiler, CoreContext context ) : base(loggerFactory, profiler, context) { - try - { - var category = "GameEventCallback::" + EventName; - if (hash != T.GetHash()) return HookResult.Continue; - Profiler.StartRecording(category); - var eventObj = T.Create(pEvent); - var result = _callback(eventObj); - pDontBroadcast.Write(eventObj.DontBroadcast); - eventObj.Dispose(); - Profiler.StopRecording(category); - return result; - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return HookResult.Continue; - _Logger.LogError(e, "Error in event {EventName} callback from context {ContextName}", EventName, Context.Name); - return HookResult.Continue; - } - }; - UnmanagedWrapperPtr = Marshal.GetFunctionPointerForDelegate(_unmanagedCallback); - NativeGameEvents.RegisterListener(EventName); - ListenerId = IsPreHook ? NativeGameEvents.AddListenerPreCallback(UnmanagedWrapperPtr) : NativeGameEvents.AddListenerPostCallback(UnmanagedWrapperPtr); - } + Guid = Guid.NewGuid(); + EventType = typeof(T); + IsPreHook = pre; + EventName = T.GetName(); + _callback = callback; + _Logger = LoggerFactory.CreateLogger>(); + + _unmanagedCallback = ( hash, pEvent, pDontBroadcast ) => + { + try + { + if (hash != T.GetHash()) return HookResult.Continue; + var category = "GameEventCallback::" + EventName; + Profiler.StartRecording(category); + var eventObj = T.Create(pEvent); + var result = _callback(eventObj); + pDontBroadcast.Write(eventObj.DontBroadcast); + eventObj.Dispose(); + Profiler.StopRecording(category); + return result; + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return HookResult.Continue; + _Logger.LogError(e, "Error in event {EventName} callback from context {ContextName}", EventName, Context.Name); + return HookResult.Continue; + } + }; + UnmanagedWrapperPtr = Marshal.GetFunctionPointerForDelegate(_unmanagedCallback); + NativeGameEvents.RegisterListener(EventName); + ListenerId = IsPreHook ? NativeGameEvents.AddListenerPreCallback(UnmanagedWrapperPtr) : NativeGameEvents.AddListenerPostCallback(UnmanagedWrapperPtr); + } } diff --git a/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEventService.cs b/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEventService.cs index f027f7c05..41cc0a43e 100644 --- a/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEventService.cs +++ b/managed/src/SwiftlyS2.Core/Modules/GameEvents/GameEventService.cs @@ -1,10 +1,7 @@ -using System.Reflection; using Microsoft.Extensions.Logging; using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.Services; -using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.Misc; using SwiftlyS2.Shared.Profiler; namespace SwiftlyS2.Core.GameEvents; @@ -12,159 +9,159 @@ namespace SwiftlyS2.Core.GameEvents; internal class GameEventService : IGameEventService, IDisposable { - private ILoggerFactory _LoggerFactory { get; init; } - private CoreContext _Context { get; init; } - private IContextedProfilerService _Profiler { get; init; } + private ILoggerFactory _LoggerFactory { get; init; } + private CoreContext _Context { get; init; } + private IContextedProfilerService _Profiler { get; init; } - public GameEventService( ILoggerFactory loggerFactory, CoreContext context, IContextedProfilerService profiler ) - { - _LoggerFactory = loggerFactory; - _Context = context; - _Profiler = profiler; - } + public GameEventService( ILoggerFactory loggerFactory, CoreContext context, IContextedProfilerService profiler ) + { + _LoggerFactory = loggerFactory; + _Context = context; + _Profiler = profiler; + } - private readonly List _callbacks = new(); - private Lock _lock = new(); + private readonly List _callbacks = []; + private readonly Lock _lock = new(); - public Guid HookPre( IGameEventService.GameEventHandler callback ) where T : IGameEvent - { - GameEventCallback cb = new(callback, true, _LoggerFactory, _Profiler, _Context); - lock (_lock) + public Guid HookPre( IGameEventService.GameEventHandler callback ) where T : IGameEvent { - _callbacks.Add(cb); + GameEventCallback cb = new(callback, true, _LoggerFactory, _Profiler, _Context); + lock (_lock) + { + _callbacks.Add(cb); + } + return cb.Guid; } - return cb.Guid; - } - public Guid HookPost( IGameEventService.GameEventHandler callback ) where T : IGameEvent - { - GameEventCallback cb = new(callback, false, _LoggerFactory, _Profiler, _Context); - lock (_lock) + public Guid HookPost( IGameEventService.GameEventHandler callback ) where T : IGameEvent { - _callbacks.Add(cb); + GameEventCallback cb = new(callback, false, _LoggerFactory, _Profiler, _Context); + lock (_lock) + { + _callbacks.Add(cb); + } + return cb.Guid; } - return cb.Guid; - } - public void Unhook( Guid guid ) - { - lock (_lock) + public void Unhook( Guid guid ) { - _callbacks.RemoveAll(callback => - { - if (callback.Guid == guid) + lock (_lock) { - callback.Dispose(); - return true; + _ = _callbacks.RemoveAll(callback => + { + if (callback.Guid == guid) + { + callback.Dispose(); + return true; + } + return false; + }); } - return false; - }); } - } - public void UnhookPre() where T : IGameEvent - { - lock (_lock) + public void UnhookPre() where T : IGameEvent + { + lock (_lock) + { + _ = _callbacks.RemoveAll(callback => + { + if (callback.IsPreHook && callback is GameEventCallback) + { + callback.Dispose(); + return true; + } + return false; + }); + } + } + + public void UnhookPost() where T : IGameEvent + { + lock (_lock) + { + _ = _callbacks.RemoveAll(callback => + { + if (!callback.IsPreHook && callback is GameEventCallback) + { + callback.Dispose(); + return true; + } + return false; + }); + } + } + + public void Fire() where T : IGameEvent { - _callbacks.RemoveAll(callback => - { - if (callback.IsPreHook && callback is GameEventCallback) + var handle = NativeGameEvents.CreateEvent(T.GetName()); + for (var i = 0; i < NativePlayerManager.GetPlayerCap(); i++) { - callback.Dispose(); - return true; + if (NativeGameEvents.IsPlayerListeningToEventName(i, T.GetName()) && NativePlayerManager.IsPlayerOnline(i)) + { + NativeGameEvents.FireEventToClient(handle, i); + } } - return false; - }); + NativeGameEvents.FreeEvent(handle); } - } - public void UnhookPost() where T : IGameEvent - { - lock (_lock) + public void Fire( Action configureEvent ) where T : IGameEvent { - _callbacks.RemoveAll(callback => - { - if (!callback.IsPreHook && callback is GameEventCallback) + var handle = NativeGameEvents.CreateEvent(T.GetName()); + var eventObj = T.Create(handle); + configureEvent(eventObj); + eventObj.Dispose(); + for (var i = 0; i < NativePlayerManager.GetPlayerCap(); i++) { - callback.Dispose(); - return true; + if (NativeGameEvents.IsPlayerListeningToEventName(i, T.GetName()) && NativePlayerManager.IsPlayerOnline(i)) + { + NativeGameEvents.FireEventToClient(handle, i); + } } - return false; - }); + NativeGameEvents.FreeEvent(handle); } - } - public void Fire() where T : IGameEvent - { - var handle = NativeGameEvents.CreateEvent(T.GetName()); - for (int i = 0; i < NativePlayerManager.GetPlayerCap(); i++) + public void FireToPlayer( int slot ) where T : IGameEvent { - if (NativeGameEvents.IsPlayerListeningToEventName(i, T.GetName()) && NativePlayerManager.IsPlayerOnline(i)) - { - NativeGameEvents.FireEventToClient(handle, i); - } + var handle = NativeGameEvents.CreateEvent(T.GetName()); + NativeGameEvents.FireEventToClient(handle, slot); + NativeGameEvents.FreeEvent(handle); } - NativeGameEvents.FreeEvent(handle); - } - - public void Fire( Action configureEvent ) where T : IGameEvent - { - var handle = NativeGameEvents.CreateEvent(T.GetName()); - var eventObj = T.Create(handle); - configureEvent(eventObj); - eventObj.Dispose(); - for (int i = 0; i < NativePlayerManager.GetPlayerCap(); i++) + + public void FireToPlayer( int slot, Action configureEvent ) where T : IGameEvent { - if (NativeGameEvents.IsPlayerListeningToEventName(i, T.GetName()) && NativePlayerManager.IsPlayerOnline(i)) - { - NativeGameEvents.FireEventToClient(handle, i); - } + var handle = NativeGameEvents.CreateEvent(T.GetName()); + var eventObj = T.Create(handle); + configureEvent(eventObj); + eventObj.Dispose(); + NativeGameEvents.FireEventToClient(handle, slot); + NativeGameEvents.FreeEvent(handle); } - NativeGameEvents.FreeEvent(handle); - } - - public void FireToPlayer( int slot ) where T : IGameEvent - { - var handle = NativeGameEvents.CreateEvent(T.GetName()); - NativeGameEvents.FireEventToClient(handle, slot); - NativeGameEvents.FreeEvent(handle); - } - - public void FireToPlayer( int slot, Action configureEvent ) where T : IGameEvent - { - var handle = NativeGameEvents.CreateEvent(T.GetName()); - var eventObj = T.Create(handle); - configureEvent(eventObj); - eventObj.Dispose(); - NativeGameEvents.FireEventToClient(handle, slot); - NativeGameEvents.FreeEvent(handle); - } - - public void FireToServer() where T : IGameEvent - { - var handle = NativeGameEvents.CreateEvent(T.GetName()); - NativeGameEvents.FireEvent(handle, true); - } - - public void FireToServer( Action configureEvent ) where T : IGameEvent - { - var handle = NativeGameEvents.CreateEvent(T.GetName()); - var eventObj = T.Create(handle); - configureEvent(eventObj); - eventObj.Dispose(); - NativeGameEvents.FireEvent(handle, true); - } - - public void Dispose() - { - lock (_lock) + + public void FireToServer() where T : IGameEvent { - foreach (var callback in _callbacks) - { - callback.Dispose(); - } - _callbacks.Clear(); + var handle = NativeGameEvents.CreateEvent(T.GetName()); + NativeGameEvents.FireEvent(handle, true); + } + + public void FireToServer( Action configureEvent ) where T : IGameEvent + { + var handle = NativeGameEvents.CreateEvent(T.GetName()); + var eventObj = T.Create(handle); + configureEvent(eventObj); + eventObj.Dispose(); + NativeGameEvents.FireEvent(handle, true); + } + + public void Dispose() + { + lock (_lock) + { + foreach (var callback in _callbacks) + { + callback.Dispose(); + } + _callbacks.Clear(); + } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Helpers/Helpers.cs b/managed/src/SwiftlyS2.Core/Modules/Helpers/Helpers.cs index 445486b74..c6f92dac7 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Helpers/Helpers.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Helpers/Helpers.cs @@ -90,22 +90,18 @@ internal class HelpersService : IHelpers { "ammo_50ae", 0 } }; - public CCSWeaponBaseVData? GetWeaponCSDataFromKey(int unknown, string key) + public CCSWeaponBaseVData? GetWeaponCSDataFromKey( int unknown, string key ) { - nint weaponDataPtr = GameFunctions.GetWeaponCSDataFromKey(unknown, key); - if (weaponDataPtr == 0) - { - return null; - } - return new CCSWeaponBaseVDataImpl(weaponDataPtr); + var weaponDataPtr = GameFunctions.GetWeaponCSDataFromKey(unknown, key); + return weaponDataPtr == 0 ? null : (CCSWeaponBaseVData)new CCSWeaponBaseVDataImpl(weaponDataPtr); } - public CCSWeaponBaseVData? GetWeaponCSDataFromKey(int itemDefinitionIndex) + public CCSWeaponBaseVData? GetWeaponCSDataFromKey( int itemDefinitionIndex ) { return GetWeaponCSDataFromKey(-1, itemDefinitionIndex.ToString()); } - public string? GetClassnameByDefinitionIndex(int itemDefinitionIndex) + public string? GetClassnameByDefinitionIndex( int itemDefinitionIndex ) { foreach (var kvp in WeaponItemDefinitionIndices) { @@ -117,13 +113,9 @@ internal class HelpersService : IHelpers return null; } - public int? GetDefinitionIndexByClassname(string classname) + public int? GetDefinitionIndexByClassname( string classname ) { - if (WeaponItemDefinitionIndices.TryGetValue(classname, out int index)) - { - return index; - } - return null; + return WeaponItemDefinitionIndices.TryGetValue(classname, out var index) ? index : null; } } diff --git a/managed/src/SwiftlyS2.Core/Modules/Hooks/HookManager.cs b/managed/src/SwiftlyS2.Core/Modules/Hooks/HookManager.cs index 6965070bd..8750e3edb 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Hooks/HookManager.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Hooks/HookManager.cs @@ -8,221 +8,217 @@ namespace SwiftlyS2.Core.Hooks; internal class HookManager { - private class HookNode - { - public required Guid Id { get; init; } - - public nint HookHandle { get; set; } - public nint OriginalFuncPtr { get; set; } - public required Func, Delegate> CallbackBuilder { get; init; } - public Delegate? BuiltDelegate { get; set; } - public nint BuiltPointer { get; set; } - } - - private class MidHookNode - { - public required Guid Id { get; init; } - public nint HookHandle { get; set; } - public required MidHookDelegate BuiltDelegate { get; init; } - } - - private class HookChain - { - public bool Hooked { get; set; } = false; - public required nint FunctionAddress { get; set; } - public nint HookHandle { get; set; } - public nint OriginalFunctionAddress { get; set; } - public List Nodes { get; } = new(); - } - - private class MidHookChain - { - public bool Hooked { get; set; } = false; - public required nint Address { get; set; } - public nint HookHandle { get; set; } - public List Nodes { get; } = new(); - } - - private readonly Lock _sync = new(); - private readonly Dictionary _chains = new(); - private readonly Dictionary _midChains = new(); - - public bool IsMidHooked( nint address ) - { - lock (_sync) + private class HookNode { - return _midChains.TryGetValue(address, out var chain) && chain.Hooked; + public required Guid Id { get; init; } + + public nint HookHandle { get; set; } + public nint OriginalFuncPtr { get; set; } + public required Func, Delegate> CallbackBuilder { get; init; } + public Delegate? BuiltDelegate { get; set; } + public nint BuiltPointer { get; set; } + } + + private class MidHookNode + { + public required Guid Id { get; init; } + public nint HookHandle { get; set; } + public required MidHookDelegate BuiltDelegate { get; init; } + } + + private class HookChain + { + public bool Hooked { get; set; } = false; + public required nint FunctionAddress { get; set; } + public nint HookHandle { get; set; } + public nint OriginalFunctionAddress { get; set; } + public List Nodes { get; } = []; } - } - public bool IsHooked( nint functionAddress ) - { - lock (_sync) + private class MidHookChain { - return _chains.TryGetValue(functionAddress, out var chain) && chain.Hooked; + public bool Hooked { get; set; } = false; + public required nint Address { get; set; } + public nint HookHandle { get; set; } + public List Nodes { get; } = []; } - } - public nint GetOriginal( nint functionAddress ) - { - lock (_sync) + private readonly Lock _sync = new(); + private readonly Dictionary _chains = []; + private readonly Dictionary _midChains = []; + + public bool IsMidHooked( nint address ) { - if (_chains.TryGetValue(functionAddress, out var chain)) - { - if (!chain.Hooked) + lock (_sync) { - return functionAddress; + return _midChains.TryGetValue(address, out var chain) && chain.Hooked; } - if (chain.Nodes.Count == 0) + } + + public bool IsHooked( nint functionAddress ) + { + lock (_sync) { - return chain.OriginalFunctionAddress; + return _chains.TryGetValue(functionAddress, out var chain) && chain.Hooked; } - return chain.Nodes[^1].OriginalFuncPtr; - } - return nint.Zero; } - } - - public Guid AddMidHook( nint address, MidHookDelegate callback ) - { - MidHookChain chain; - MidHookNode node = new MidHookNode { - Id = Guid.NewGuid(), - BuiltDelegate = callback, - }; - lock (_sync) + public nint GetOriginal( nint functionAddress ) { - if (!_midChains.TryGetValue(address, out chain)) - { - chain = new MidHookChain { Address = address }; - chain.HookHandle = NativeHooks.AllocateMHook(); - MidHookDelegate _unmanagedCallback = ( ref MidHookContext ctx ) => + lock (_sync) { - try - { - foreach (var n in chain.Nodes) + if (_chains.TryGetValue(functionAddress, out var chain)) { - n.BuiltDelegate(ref ctx); + if (!chain.Hooked) + { + return functionAddress; + } + return chain.Nodes.Count == 0 ? chain.OriginalFunctionAddress : chain.Nodes[^1].OriginalFuncPtr; } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - } - }; - NativeHooks.SetMHook(chain.HookHandle, address, Marshal.GetFunctionPointerForDelegate(_unmanagedCallback)); - NativeHooks.EnableMHook(chain.HookHandle); - chain.Hooked = true; - _midChains[address] = chain; - } - chain.Nodes.Add(node); + return nint.Zero; + } } - return node.Id; - } + public Guid AddMidHook( nint address, MidHookDelegate callback ) + { + MidHookNode node = new MidHookNode { + Id = Guid.NewGuid(), + BuiltDelegate = callback, + }; - public Guid AddHook( nint functionAddress, Func, Delegate> callbackBuilder ) - { - HookChain chain; - HookNode node = new HookNode { - Id = Guid.NewGuid(), - CallbackBuilder = callbackBuilder, - }; + lock (_sync) + { + if (!_midChains.TryGetValue(address, out var chain)) + { + chain = new MidHookChain { + Address = address, + HookHandle = NativeHooks.AllocateMHook() + }; + void _unmanagedCallback( ref MidHookContext ctx ) + { + try + { + foreach (var n in chain.Nodes) + { + n.BuiltDelegate(ref ctx); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + } + } + NativeHooks.SetMHook(chain.HookHandle, address, Marshal.GetFunctionPointerForDelegate((MidHookDelegate)_unmanagedCallback)); + NativeHooks.EnableMHook(chain.HookHandle); + chain.Hooked = true; + _midChains[address] = chain; + } + chain.Nodes.Add(node); + } - lock (_sync) - { - if (!_chains.TryGetValue(functionAddress, out chain)) - { - chain = new HookChain { FunctionAddress = functionAddress }; - _chains[functionAddress] = chain; - } - chain.Nodes.Add(node); - RebuildChain(chain); + return node.Id; } - return node.Id; - } - - public void RemoveMidHook( List nodeIds ) - { - lock (_sync) + public Guid AddHook( nint functionAddress, Func, Delegate> callbackBuilder ) { - var chains = _midChains.Values.Where(c => c.Nodes.Any(n => nodeIds.Contains(n.Id))).ToList(); - if (chains.Count == 0) return; - foreach (var chain in chains) - { - chain.Nodes.RemoveAll(n => nodeIds.Contains(n.Id)); - } + HookNode node = new HookNode { + Id = Guid.NewGuid(), + CallbackBuilder = callbackBuilder, + }; + + lock (_sync) + { + if (!_chains.TryGetValue(functionAddress, out var chain)) + { + chain = new HookChain { FunctionAddress = functionAddress }; + _chains[functionAddress] = chain; + } + chain.Nodes.Add(node); + RebuildChain(chain); + } + + return node.Id; } - } - public void Remove( List nodeIds ) - { - lock (_sync) + public void RemoveMidHook( List nodeIds ) { - var chains = _chains.Values.Where(c => c.Nodes.Any(n => nodeIds.Contains(n.Id))).ToList(); - if (chains.Count == 0) return; - foreach (var chain in chains) - { - chain.Nodes.RemoveAll(n => nodeIds.Contains(n.Id)); - RebuildChain(chain); - } + lock (_sync) + { + var chains = _midChains.Values.Where(c => c.Nodes.Any(n => nodeIds.Contains(n.Id))).ToList(); + if (chains.Count == 0) return; + foreach (var chain in chains) + { + _ = chain.Nodes.RemoveAll(n => nodeIds.Contains(n.Id)); + } + } } - } - private void RebuildChain( HookChain chain ) - { - try + public void Remove( List nodeIds ) { - // Rebuild delegates from first to last, wiring each to previous pointer (or original for first) - if (chain.Hooked) - { - for (int i = 0; i < chain.Nodes.Count; i++) + lock (_sync) { - chain.Nodes[i].BuiltDelegate = null; - chain.Nodes[i].BuiltPointer = nint.Zero; - if (chain.Nodes[i].HookHandle != 0) - { - NativeHooks.DeallocateHook(chain.Nodes[i].HookHandle); - chain.Nodes[i].HookHandle = 0; - } + var chains = _chains.Values.Where(c => c.Nodes.Any(n => nodeIds.Contains(n.Id))).ToList(); + if (chains.Count == 0) return; + foreach (var chain in chains) + { + _ = chain.Nodes.RemoveAll(n => nodeIds.Contains(n.Id)); + RebuildChain(chain); + } } - chain.OriginalFunctionAddress = 0; - NativeHooks.DeallocateHook(chain.HookHandle); - chain.HookHandle = 0; - chain.Hooked = false; - } - chain.HookHandle = NativeHooks.AllocateHook(); - - for (int i = 0; i < chain.Nodes.Count; i++) - { - var node = chain.Nodes[i]; - - var built = node.CallbackBuilder.Invoke(() => node.OriginalFuncPtr); - node.BuiltDelegate = built; - node.BuiltPointer = Marshal.GetFunctionPointerForDelegate(node.BuiltDelegate); - if (i == 0) + } + + private void RebuildChain( HookChain chain ) + { + try { - NativeHooks.SetHook(chain.HookHandle, chain.FunctionAddress, node.BuiltPointer); - node.OriginalFuncPtr = NativeHooks.GetHookOriginal(chain.HookHandle); - chain.OriginalFunctionAddress = node.OriginalFuncPtr; - NativeHooks.EnableHook(chain.HookHandle); - chain.Hooked = true; + // Rebuild delegates from first to last, wiring each to previous pointer (or original for first) + if (chain.Hooked) + { + for (var i = 0; i < chain.Nodes.Count; i++) + { + chain.Nodes[i].BuiltDelegate = null; + chain.Nodes[i].BuiltPointer = nint.Zero; + if (chain.Nodes[i].HookHandle != 0) + { + NativeHooks.DeallocateHook(chain.Nodes[i].HookHandle); + chain.Nodes[i].HookHandle = 0; + } + } + chain.OriginalFunctionAddress = 0; + NativeHooks.DeallocateHook(chain.HookHandle); + chain.HookHandle = 0; + chain.Hooked = false; + } + chain.HookHandle = NativeHooks.AllocateHook(); + + for (var i = 0; i < chain.Nodes.Count; i++) + { + var node = chain.Nodes[i]; + + var built = node.CallbackBuilder.Invoke(() => node.OriginalFuncPtr); + node.BuiltDelegate = built; + node.BuiltPointer = Marshal.GetFunctionPointerForDelegate(node.BuiltDelegate); + if (i == 0) + { + NativeHooks.SetHook(chain.HookHandle, chain.FunctionAddress, node.BuiltPointer); + node.OriginalFuncPtr = NativeHooks.GetHookOriginal(chain.HookHandle); + chain.OriginalFunctionAddress = node.OriginalFuncPtr; + NativeHooks.EnableHook(chain.HookHandle); + chain.Hooked = true; + } + else + { + node.HookHandle = NativeHooks.AllocateHook(); + NativeHooks.SetHook(node.HookHandle, chain.Nodes[i - 1].OriginalFuncPtr, node.BuiltPointer); + NativeHooks.EnableHook(node.HookHandle); + node.OriginalFuncPtr = NativeHooks.GetHookOriginal(node.HookHandle); + } + } } - else + catch (Exception e) { - node.HookHandle = NativeHooks.AllocateHook(); - NativeHooks.SetHook(node.HookHandle, chain.Nodes[i - 1].OriginalFuncPtr, node.BuiltPointer); - NativeHooks.EnableHook(node.HookHandle); - node.OriginalFuncPtr = NativeHooks.GetHookOriginal(node.HookHandle); + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); } - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Memory/MemoryService.cs b/managed/src/SwiftlyS2.Core/Modules/Memory/MemoryService.cs index 2150e7f29..07f72bfa8 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Memory/MemoryService.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Memory/MemoryService.cs @@ -1,8 +1,7 @@ -using System.Runtime.InteropServices; using Microsoft.Extensions.Logging; +using SwiftlyS2.Core.Extensions; using SwiftlyS2.Core.Hooks; using SwiftlyS2.Core.Natives; -using SwiftlyS2.Core.Extensions; using SwiftlyS2.Shared.Memory; using SwiftlyS2.Shared.Schemas; @@ -11,146 +10,129 @@ namespace SwiftlyS2.Core.Memory; internal class MemoryService : IMemoryService, IDisposable { - private readonly ILogger _Logger; - private readonly HookManager _HookManager; - private readonly ILoggerFactory _LoggerFactory; - private readonly Dictionary _UnmanagedFunctions = new(); - private readonly Dictionary _UnmanagedMemories = new(); - - public MemoryService( ILogger logger, HookManager hookManager, ILoggerFactory loggerFactory ) - { - _Logger = logger; - _HookManager = hookManager; - _LoggerFactory = loggerFactory; - } - - public IUnmanagedFunction GetUnmanagedFunctionByAddress( nint address ) where TDelegate : Delegate - { - try + private readonly ILogger _Logger; + private readonly HookManager _HookManager; + private readonly ILoggerFactory _LoggerFactory; + private readonly Dictionary _UnmanagedFunctions = []; + private readonly Dictionary _UnmanagedMemories = []; + + public MemoryService( ILogger logger, HookManager hookManager, ILoggerFactory loggerFactory ) + { + _Logger = logger; + _HookManager = hookManager; + _LoggerFactory = loggerFactory; + } + + public IUnmanagedFunction GetUnmanagedFunctionByAddress( nint address ) where TDelegate : Delegate + { + try + { + if (_UnmanagedFunctions.TryGetValue(address, out var function)) + { + return function.DelegateType == typeof(TDelegate) + ? (IUnmanagedFunction)(UnmanagedFunction)function + : throw new Exception($"Cannot have two different delegate type on a same address. The previous one is {function.DelegateType}."); + } + var newFunction = new UnmanagedFunction(address, _HookManager, _LoggerFactory); + _UnmanagedFunctions.Add(address, newFunction); + return newFunction; + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Failed to get unmanaged function by address {0}.", address); + throw new Exception($"Failed to get unmanaged function by address {address}."); + } + } + + public IUnmanagedFunction GetUnmanagedFunctionByVTable( nint pVTable, int index ) where TDelegate : Delegate { - if (_UnmanagedFunctions.TryGetValue(address, out var function)) - { - if (function.DelegateType == typeof(TDelegate)) + try { - return (UnmanagedFunction)function; + var address = pVTable.Read(index * IntPtr.Size); + return GetUnmanagedFunctionByAddress(address); } - else + catch (Exception e) { - throw new Exception($"Cannot have two different delegate type on a same address. The previous one is {function.DelegateType}."); + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Failed to get unmanaged function by vtable {0} and index {1}.", pVTable, index); + throw new Exception($"Failed to get unmanaged function by vtable {pVTable} and index {index}."); } - } - var newFunction = new UnmanagedFunction(address, _HookManager, _LoggerFactory); - _UnmanagedFunctions.Add(address, newFunction); - return newFunction; } - catch (Exception e) + + public IUnmanagedMemory GetUnmanagedMemoryByAddress( nint address ) { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Failed to get unmanaged function by address {0}.", address); - throw new Exception($"Failed to get unmanaged function by address {address}."); + try + { + if (_UnmanagedMemories.TryGetValue(address, out var memory)) + { + return memory; + } + var newMemory = new UnmanagedMemory(address, _HookManager, _LoggerFactory); + _UnmanagedMemories.Add(address, newMemory); + return newMemory; + } + catch (Exception e) + { + if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Failed to get unmanaged memory by address {0}.", address); + throw new Exception($"Failed to get unmanaged memory by address {address}."); + } } - } - public IUnmanagedFunction GetUnmanagedFunctionByVTable( nint pVTable, int index ) where TDelegate : Delegate - { - try + public nint? GetInterfaceByName( string name ) { - var address = pVTable.Read(index * IntPtr.Size); - return GetUnmanagedFunctionByAddress(address); + var ptr = NativeMemoryHelpers.FetchInterfaceByName(name); + return ptr == 0 ? null : ptr; } - catch (Exception e) + + public nint? GetAddressBySignature( string library, string signature ) { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Failed to get unmanaged function by vtable {0} and index {1}.", pVTable, index); - throw new Exception($"Failed to get unmanaged function by vtable {pVTable} and index {index}."); + var ptr = NativeMemoryHelpers.GetAddressBySignature(library, signature, 0, false); + return ptr == 0 ? null : ptr; } - } - public IUnmanagedMemory GetUnmanagedMemoryByAddress( nint address ) - { - try + public nint? GetVTableAddress( string library, string vtableName ) { - if (_UnmanagedMemories.TryGetValue(address, out var memory)) - { - return memory; - } - var newMemory = new UnmanagedMemory(address, _HookManager, _LoggerFactory); - _UnmanagedMemories.Add(address, newMemory); - return newMemory; + var ptr = NativeMemoryHelpers.GetVirtualTableAddress(library, vtableName); + return ptr == 0 ? null : ptr; } - catch (Exception e) + + public nint ResolveXrefAddress( nint xrefAddress ) { - if (GlobalExceptionHandler.Handle(e)) _Logger.LogError(e, "Failed to get unmanaged memory by address {0}.", address); - throw new Exception($"Failed to get unmanaged memory by address {address}."); + var offset = (xrefAddress + 3).Read(); + return xrefAddress + 7 + (nint)offset; } - } - public nint? GetInterfaceByName( string name ) - { - var ptr = NativeMemoryHelpers.FetchInterfaceByName(name); - if (ptr == 0) + public string? GetObjectPtrVtableName( nint address ) { - return null; + var result = NativeMemoryHelpers.GetObjectPtrVtableName(address); + return result == string.Empty ? null : result; } - return ptr; - } - public nint? GetAddressBySignature( string library, string signature ) - { - var ptr = NativeMemoryHelpers.GetAddressBySignature(library, signature, 0, false); - if (ptr == 0) + public bool ObjectPtrHasVtable( nint address ) { - return null; + return NativeMemoryHelpers.ObjectPtrHasVtable(address); } - return ptr; - } - public nint? GetVTableAddress( string library, string vtableName ) - { - var ptr = NativeMemoryHelpers.GetVirtualTableAddress(library, vtableName); - if (ptr == 0) + public bool ObjectPtrHasBaseClass( nint address, string baseClassName ) { - return null; + return NativeMemoryHelpers.ObjectPtrHasBaseClass(address, baseClassName); } - return ptr; - } - - public nint ResolveXrefAddress( nint xrefAddress ) - { - var offset = (xrefAddress + 3).Read(); - return xrefAddress + 7 + (nint)offset; - } - - public string? GetObjectPtrVtableName( nint address ) - { - var result = NativeMemoryHelpers.GetObjectPtrVtableName(address); - return result == string.Empty ? null : result; - } - - public bool ObjectPtrHasVtable( nint address ) - { - return NativeMemoryHelpers.ObjectPtrHasVtable(address); - } - - public bool ObjectPtrHasBaseClass( nint address, string baseClassName ) - { - return NativeMemoryHelpers.ObjectPtrHasBaseClass(address, baseClassName); - } - - public T ToSchemaClass( nint address ) where T : class, ISchemaClass - { - return T.From(address); - } - - public void Dispose() - { - foreach (var function in _UnmanagedFunctions) + + public T ToSchemaClass( nint address ) where T : class, ISchemaClass { - function.Value.Dispose(); + return T.From(address); } - foreach (var memory in _UnmanagedMemories) + + public void Dispose() { - memory.Value.Dispose(); + foreach (var function in _UnmanagedFunctions) + { + function.Value.Dispose(); + } + foreach (var memory in _UnmanagedMemories) + { + memory.Value.Dispose(); + } + _UnmanagedFunctions.Clear(); + _UnmanagedMemories.Clear(); } - _UnmanagedFunctions.Clear(); - _UnmanagedMemories.Clear(); - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Memory/UnmanagedFunction.cs b/managed/src/SwiftlyS2.Core/Modules/Memory/UnmanagedFunction.cs index 61b3ade63..a3bdf0ba0 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Memory/UnmanagedFunction.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Memory/UnmanagedFunction.cs @@ -9,88 +9,88 @@ namespace SwiftlyS2.Core.Memory; internal abstract class UnmanagedFunction : NativeHandle, IDisposable { - public UnmanagedFunction( nint address ) : base(address) - { - } + public UnmanagedFunction( nint address ) : base(address) + { + } - public Type? DelegateType { get; init; } + public Type? DelegateType { get; init; } - public abstract void Dispose(); + public abstract void Dispose(); } internal class UnmanagedFunction : UnmanagedFunction, IUnmanagedFunction, IDisposable where TDelegate : Delegate { - public new nint Address { get; private set; } - - public TDelegate CallOriginal { - get { - if (_HookManager.IsHooked(Address)) - { - var original = _HookManager.GetOriginal(Address); - if (original != nint.Zero) - { - return Marshal.GetDelegateForFunctionPointer(original); + public new nint Address { get; private set; } + + public TDelegate CallOriginal { + get { + if (_HookManager.IsHooked(Address)) + { + var original = _HookManager.GetOriginal(Address); + if (original != nint.Zero) + { + return Marshal.GetDelegateForFunctionPointer(original); + } + } + return Call; } - } - return Call; } - } - - public TDelegate Call { get; private set; } - public List Hooks { get; } = new(); + public TDelegate Call { get; private set; } - private HookManager _HookManager { get; set; } + public List Hooks { get; } = []; - private ILogger> _Logger { get; set; } + private HookManager _HookManager { get; set; } - public UnmanagedFunction( nint address, HookManager hookManager, ILoggerFactory loggerFactory ) : base(address) - { - _Logger = loggerFactory.CreateLogger>(); - _HookManager = hookManager; - DelegateType = typeof(TDelegate); + private ILogger> _Logger { get; set; } - Address = address; + public UnmanagedFunction( nint address, HookManager hookManager, ILoggerFactory loggerFactory ) : base(address) + { + _Logger = loggerFactory.CreateLogger>(); + _HookManager = hookManager; + DelegateType = typeof(TDelegate); - Call = Marshal.GetDelegateForFunctionPointer(address); - } + Address = address; - public Guid AddHook( Func, TDelegate> callbackBuilder ) - { - try - { - var id = _HookManager.AddHook(Address, ( builder ) => callbackBuilder(() => Marshal.GetDelegateForFunctionPointer(builder()))); - Hooks.Add(id); - return id; + Call = Marshal.GetDelegateForFunctionPointer(address); } - catch (Exception e) + + public Guid AddHook( Func, TDelegate> callbackBuilder ) { - if (!GlobalExceptionHandler.Handle(e)) return Guid.Empty; - _Logger.LogError(e, "Failed to add hook to function {0}.", Address); - return Guid.Empty; + try + { + var id = _HookManager.AddHook(Address, ( builder ) => callbackBuilder(() => Marshal.GetDelegateForFunctionPointer(builder()))); + Hooks.Add(id); + return id; + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return Guid.Empty; + _Logger.LogError(e, "Failed to add hook to function {0}.", Address); + return Guid.Empty; + } } - } - public void RemoveHook( Guid id ) - { - try + public void RemoveHook( Guid id ) { - _HookManager.Remove(new List { id }); - Hooks.Remove(id); + try + { + _HookManager.Remove([id]); + _ = Hooks.Remove(id); + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + _Logger.LogError(e, "Failed to remove hook {0} from function {1}.", id, Address); + } } - catch (Exception e) + + public override void Dispose() { - if (!GlobalExceptionHandler.Handle(e)) return; - _Logger.LogError(e, "Failed to remove hook {0} from function {1}.", id, Address); + _HookManager.Remove(Hooks); + Hooks.Clear(); } - } - - public override void Dispose() - { - _HookManager.Remove(Hooks); - Hooks.Clear(); - } diff --git a/managed/src/SwiftlyS2.Core/Modules/Memory/UnmanagedMemory.cs b/managed/src/SwiftlyS2.Core/Modules/Memory/UnmanagedMemory.cs index 94b749e41..6f69de3ed 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Memory/UnmanagedMemory.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Memory/UnmanagedMemory.cs @@ -10,7 +10,7 @@ internal class UnmanagedMemory : NativeHandle, IUnmanagedMemory, IDisposable public new nint Address { get; private set; } private HookManager _HookManager { get; set; } private ILogger _Logger { get; set; } - public List Hooks { get; } = new(); + public List Hooks { get; } = []; public UnmanagedMemory( nint address, HookManager hookManager, ILoggerFactory loggerFactory ) : base(address) { @@ -45,8 +45,8 @@ public void RemoveHook( Guid id ) { try { - _HookManager.RemoveMidHook(new List { id }); - Hooks.Remove(id); + _HookManager.RemoveMidHook([id]); + _ = Hooks.Remove(id); } catch (Exception e) { diff --git a/managed/src/SwiftlyS2.Core/Modules/Menus/MenuAPI.cs b/managed/src/SwiftlyS2.Core/Modules/Menus/MenuAPI.cs index 5a158bd77..0e20be706 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Menus/MenuAPI.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Menus/MenuAPI.cs @@ -1,7 +1,7 @@ using System.Collections.Concurrent; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared; using SwiftlyS2.Shared.Menus; -using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.Players; using SwiftlyS2.Shared.SchemaDefinitions; @@ -106,7 +106,7 @@ public IReadOnlyList Options { // public event EventHandler? OptionLeaving; private readonly ISwiftlyCore core; - private readonly List options = new(); + private readonly List options = []; private readonly Lock optionsLock = new(); // Lock for synchronizing modifications to the `options` private readonly ConcurrentDictionary selectedOptionIndex = new(); // Stores the currently selected option index for each player // NOTE: Menu selection movement is entirely driven by changes to `desiredOptionIndex` (independent of any other variables) @@ -117,7 +117,7 @@ public IReadOnlyList Options { // private readonly ConcurrentDictionary> visibleOptionsCache = new(); private readonly ConcurrentDictionary autoCloseCancelTokens = new(); - private readonly ConcurrentDictionary renderCache = new(); + // private readonly ConcurrentDictionary renderCache = new(); private readonly CancellationTokenSource renderLoopCancellationTokenSource = new(); private volatile bool disposed; @@ -137,18 +137,21 @@ public MenuAPI( ISwiftlyCore core, MenuConfiguration configuration, MenuKeybindO Builder = builder; // Parent = parent; - options.Clear(); + lock (optionsLock) + { + options.Clear(); + } selectedOptionIndex.Clear(); desiredOptionIndex.Clear(); // selectedDisplayLine.Clear(); autoCloseCancelTokens.Clear(); // visibleOptionsCache.Clear(); - renderCache.Clear(); + // renderCache.Clear(); maxOptions = 0; // maxDisplayLines = 0; - core.Event.OnTick += OnTick; + // core.Event.OnTick += OnTick; _ = Task.Run(async () => { @@ -200,19 +203,22 @@ public void Dispose() } }); - // options.ForEach(option => option.Dispose()); - options.Clear(); + lock (optionsLock) + { + // options.ForEach(option => option.Dispose()); + options.Clear(); + } selectedOptionIndex.Clear(); desiredOptionIndex.Clear(); // selectedDisplayLine.Clear(); autoCloseCancelTokens.Clear(); // visibleOptionsCache.Clear(); - renderCache.Clear(); + // renderCache.Clear(); maxOptions = 0; // maxDisplayLines = 0; - core.Event.OnTick -= OnTick; + // core.Event.OnTick -= OnTick; renderLoopCancellationTokenSource?.Cancel(); renderLoopCancellationTokenSource?.Dispose(); @@ -221,24 +227,24 @@ public void Dispose() GC.SuppressFinalize(this); } - private void OnTick() - { - if (maxOptions <= 0) - { - return; - } + // private void OnTick() + // { + // if (maxOptions <= 0) + // { + // return; + // } - foreach (var kvp in renderCache) - { - var player = kvp.Key; - if (!player.IsValid || player.IsFakeClient) - { - continue; - } + // foreach (var kvp in renderCache) + // { + // var player = kvp.Key; + // if (!player.IsValid || player.IsFakeClient) + // { + // continue; + // } - NativePlayer.SetCenterMenuRender(player.PlayerID, kvp.Value); - } - } + // NativePlayer.SetCenterMenuRender(player.PlayerID, kvp.Value); + // } + // } private void OnRender() { @@ -264,22 +270,25 @@ private void OnRender() : Math.Clamp(baseMaxVisibleItems, 1, 5); var halfVisible = maxVisibleItems / 2; - lock (optionsLock) + foreach (var (player, desiredIndex, selectedIndex) in playerStates) { - foreach (var (player, desiredIndex, selectedIndex) in playerStates) - { - ProcessPlayerMenu(player, desiredIndex, selectedIndex, maxOptions, maxVisibleItems, halfVisible); - } + ProcessPlayerMenu(player, desiredIndex, selectedIndex, maxOptions, maxVisibleItems, halfVisible); } } private void ProcessPlayerMenu( IPlayer player, int desiredIndex, int selectedIndex, int maxOptions, int maxVisibleItems, int halfVisible ) { - var filteredOptions = options.Where(opt => opt.Visible && opt.GetVisible(player)).ToList(); - if (filteredOptions.Count == 0) + var filteredOptions = new List(); + lock (optionsLock) + { + filteredOptions = options.Where(opt => opt.Visible && opt.GetVisible(player)).ToList(); + } + + if (filteredOptions.Count <= 0) { var emptyHtml = BuildMenuHtml(player, [], 0, 0, maxOptions, maxVisibleItems); - _ = renderCache.AddOrUpdate(player, emptyHtml, ( _, _ ) => emptyHtml); + // _ = renderCache.AddOrUpdate(player, emptyHtml, ( _, _ ) => emptyHtml); + core.Scheduler.NextTick(() => NativePlayer.SetCenterMenuRender(player.PlayerID, emptyHtml)); return; } @@ -293,33 +302,40 @@ private void ProcessPlayerMenu( IPlayer player, int desiredIndex, int selectedIn }); var html = BuildMenuHtml(player, visibleOptions, safeArrowPosition, clampedDesiredIndex, maxOptions, maxVisibleItems); - _ = renderCache.AddOrUpdate(player, html, ( _, _ ) => html); + // _ = renderCache.AddOrUpdate(player, html, ( _, _ ) => html); + core.Scheduler.NextTick(() => NativePlayer.SetCenterMenuRender(player.PlayerID, html)); - var currentOption = visibleOptions[safeArrowPosition]; - var currentOriginalIndex = options.IndexOf(currentOption); - - if (currentOriginalIndex != selectedIndex) + lock (optionsLock) { - var updateResult = selectedOptionIndex.TryUpdate(player, currentOriginalIndex, selectedIndex); - if (updateResult && currentOriginalIndex != desiredIndex) + var currentOriginalIndex = options.IndexOf(visibleOptions[safeArrowPosition]); + + if (currentOriginalIndex != selectedIndex) { - _ = desiredOptionIndex.TryUpdate(player, currentOriginalIndex, desiredIndex); + var updateResult = selectedOptionIndex.TryUpdate(player, currentOriginalIndex, selectedIndex); + if (updateResult && currentOriginalIndex != desiredIndex) + { + _ = desiredOptionIndex.TryUpdate(player, currentOriginalIndex, desiredIndex); + } } } } private (IReadOnlyList VisibleOptions, int ArrowPosition) GetVisibleOptionsAndArrowPosition( List filteredOptions, int clampedDesiredIndex, int maxVisibleItems, int halfVisible ) { - var filteredMaxOptions = filteredOptions.Count; - var desiredOption = options[clampedDesiredIndex]; - var mappedDesiredIndex = filteredOptions.IndexOf(desiredOption); - - if (mappedDesiredIndex < 0) + var filteredMaxOptions = -1; + var mappedDesiredIndex = -1; + lock (optionsLock) { - mappedDesiredIndex = filteredOptions - .Select(( opt, idx ) => (Index: idx, Distance: Math.Abs(options.IndexOf(opt) - clampedDesiredIndex))) - .MinBy(x => x.Distance) - .Index; + filteredMaxOptions = filteredOptions.Count; + mappedDesiredIndex = filteredOptions.IndexOf(options[clampedDesiredIndex]); + + if (mappedDesiredIndex < 0) + { + mappedDesiredIndex = filteredOptions + .Select(( opt, idx ) => (Index: idx, Distance: Math.Abs(options.IndexOf(opt) - clampedDesiredIndex))) + .MinBy(x => x.Distance) + .Index; + } } if (filteredMaxOptions <= maxVisibleItems) @@ -467,7 +483,7 @@ public void HideForPlayer( IPlayer player ) SetFreezeState(player, false); - _ = renderCache.TryRemove(player, out _); + // _ = renderCache.TryRemove(player, out _); if (autoCloseCancelTokens.TryRemove(player, out var token)) { @@ -521,25 +537,29 @@ public bool RemoveOption( IMenuOption option ) public bool MoveToOption( IPlayer player, IMenuOption option ) { - return MoveToOptionIndex(player, options.IndexOf(option)); + lock (optionsLock) + { + return MoveToOptionIndex(player, options.IndexOf(option)); + } } public bool MoveToOptionIndex( IPlayer player, int index ) { - lock (optionsLock) + + if (maxOptions == 0 || !desiredOptionIndex.TryGetValue(player, out var oldIndex)) { - if (maxOptions == 0 || !desiredOptionIndex.TryGetValue(player, out var oldIndex)) - { - return false; - } + return false; + } - var targetIndex = ((index % maxOptions) + maxOptions) % maxOptions; - var direction = Math.Sign(targetIndex - oldIndex); - if (direction == 0) - { - return true; - } + var targetIndex = ((index % maxOptions) + maxOptions) % maxOptions; + var direction = Math.Sign(targetIndex - oldIndex); + if (direction == 0) + { + return true; + } + lock (optionsLock) + { var visibleIndex = Enumerable.Range(0, maxOptions) .Select(i => (((targetIndex + (i * direction)) % maxOptions) + maxOptions) % maxOptions) .FirstOrDefault(idx => options[idx].Visible && options[idx].GetVisible(player), -1); @@ -550,7 +570,10 @@ public bool MoveToOptionIndex( IPlayer player, int index ) public IMenuOption? GetCurrentOption( IPlayer player ) { - return selectedOptionIndex.TryGetValue(player, out var index) ? options[index] : null; + lock (optionsLock) + { + return selectedOptionIndex.TryGetValue(player, out var index) ? options[index] : null; + } } public int GetCurrentOptionIndex( IPlayer player ) diff --git a/managed/src/SwiftlyS2.Core/Modules/Menus/MenuBuilderAPI.cs b/managed/src/SwiftlyS2.Core/Modules/Menus/MenuBuilderAPI.cs index 855945237..70d20a5c5 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Menus/MenuBuilderAPI.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Menus/MenuBuilderAPI.cs @@ -8,16 +8,15 @@ internal sealed class MenuBuilderAPI : IMenuBuilderAPI /// /// Gets the design interface for this menu. /// - public IMenuDesignAPI Design { get => design ??= new MenuDesignAPI(configuration, this, style => optionScrollStyle = style/*, style => optionTextStyle = style*/); } + public IMenuDesignAPI Design { get => field ??= new MenuDesignAPI(configuration, this, style => optionScrollStyle = style/*, style => optionTextStyle = style*/); } = null; private readonly ISwiftlyCore core; private readonly MenuConfiguration configuration = new(); - private readonly List options = new(); + private readonly List options = []; private MenuKeybindOverrides keybindOverrides = new(); private MenuOptionScrollStyle optionScrollStyle = MenuOptionScrollStyle.CenterFixed; // private MenuOptionTextStyle optionTextStyle = MenuOptionTextStyle.TruncateEnd; private IMenuAPI? parent = null; - private IMenuDesignAPI? design = null; public MenuBuilderAPI( ISwiftlyCore core ) { diff --git a/managed/src/SwiftlyS2.Core/Modules/Menus/MenuManagerAPI.cs b/managed/src/SwiftlyS2.Core/Modules/Menus/MenuManagerAPI.cs index 1e61e5006..6b217e2d7 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Menus/MenuManagerAPI.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Menus/MenuManagerAPI.cs @@ -1,12 +1,11 @@ -using System.Globalization; using System.Collections.Concurrent; +using System.Globalization; using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared; -using SwiftlyS2.Shared.Menus; using SwiftlyS2.Shared.Events; -using SwiftlyS2.Shared.Sounds; +using SwiftlyS2.Shared.Menus; using SwiftlyS2.Shared.Players; -using SwiftlyS2.Shared.SchemaDefinitions; +using SwiftlyS2.Shared.Sounds; namespace SwiftlyS2.Core.Menus; @@ -145,7 +144,7 @@ private void KeyStateChange( IOnClientKeyStateChangedEvent @event ) if (menu.Configuration.PlaySound) { scrollSound.Recipients.AddRecipient(@event.PlayerId); - scrollSound.Emit(); + _ = scrollSound.Emit(); scrollSound.Recipients.RemoveRecipient(@event.PlayerId); } } @@ -156,7 +155,7 @@ private void KeyStateChange( IOnClientKeyStateChangedEvent @event ) if (menu.Configuration.PlaySound) { scrollSound.Recipients.AddRecipient(@event.PlayerId); - scrollSound.Emit(); + _ = scrollSound.Emit(); scrollSound.Recipients.RemoveRecipient(@event.PlayerId); } } @@ -167,7 +166,7 @@ private void KeyStateChange( IOnClientKeyStateChangedEvent @event ) if (menu.Configuration.PlaySound) { exitSound.Recipients.AddRecipient(@event.PlayerId); - exitSound.Emit(); + _ = exitSound.Emit(); exitSound.Recipients.RemoveRecipient(@event.PlayerId); } } @@ -181,7 +180,7 @@ private void KeyStateChange( IOnClientKeyStateChangedEvent @event ) if (menu.Configuration.PlaySound && option.PlaySound) { useSound.Recipients.AddRecipient(@event.PlayerId); - useSound.Emit(); + _ = useSound.Emit(); useSound.Recipients.RemoveRecipient(@event.PlayerId); } } @@ -196,7 +195,7 @@ private void KeyStateChange( IOnClientKeyStateChangedEvent @event ) if (menu.Configuration.PlaySound) { scrollSound.Recipients.AddRecipient(@event.PlayerId); - scrollSound.Emit(); + _ = scrollSound.Emit(); scrollSound.Recipients.RemoveRecipient(@event.PlayerId); } } @@ -207,7 +206,7 @@ private void KeyStateChange( IOnClientKeyStateChangedEvent @event ) if (menu.Configuration.PlaySound) { scrollSound.Recipients.AddRecipient(@event.PlayerId); - scrollSound.Emit(); + _ = scrollSound.Emit(); scrollSound.Recipients.RemoveRecipient(@event.PlayerId); } } @@ -217,7 +216,7 @@ private void KeyStateChange( IOnClientKeyStateChangedEvent @event ) if (menu.Configuration.PlaySound) { exitSound.Recipients.AddRecipient(@event.PlayerId); - exitSound.Emit(); + _ = exitSound.Emit(); exitSound.Recipients.RemoveRecipient(@event.PlayerId); } } @@ -231,7 +230,7 @@ private void KeyStateChange( IOnClientKeyStateChangedEvent @event ) if (menu.Configuration.PlaySound && option.PlaySound) { useSound.Recipients.AddRecipient(@event.PlayerId); - useSound.Emit(); + _ = useSound.Emit(); useSound.Recipients.RemoveRecipient(@event.PlayerId); } } diff --git a/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/Helpers/TextStyleProcessor.cs b/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/Helpers/TextStyleProcessor.cs index ec3a53ff4..a1949e84f 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/Helpers/TextStyleProcessor.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/Helpers/TextStyleProcessor.cs @@ -1,5 +1,5 @@ -using System.Text; using System.Collections.Concurrent; +using System.Text; using System.Text.RegularExpressions; using SwiftlyS2.Shared; using SwiftlyS2.Shared.Menus; diff --git a/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/InputMenuOption.cs b/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/InputMenuOption.cs index b5d51224f..93e4b0461 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/InputMenuOption.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/InputMenuOption.cs @@ -1,6 +1,6 @@ using System.Collections.Concurrent; -using SwiftlyS2.Shared.Misc; using SwiftlyS2.Shared.Menus; +using SwiftlyS2.Shared.Misc; using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.Menus.OptionsBase; diff --git a/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/MenuOptionBase.cs b/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/MenuOptionBase.cs index 901b7b1a2..98d23ede3 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/MenuOptionBase.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/MenuOptionBase.cs @@ -1,8 +1,8 @@ using System.Collections.Concurrent; using System.Text.RegularExpressions; +using SwiftlyS2.Core.Menus.OptionsBase.Helpers; using SwiftlyS2.Shared.Menus; using SwiftlyS2.Shared.Players; -using SwiftlyS2.Core.Menus.OptionsBase.Helpers; namespace SwiftlyS2.Core.Menus.OptionsBase; @@ -11,12 +11,7 @@ namespace SwiftlyS2.Core.Menus.OptionsBase; /// public abstract partial class MenuOptionBase : IMenuOption, IDisposable { - private string text = string.Empty; private string? dynamicText = null; - private float maxWidth = 26f; - private MenuOptionTextStyle textStyle = MenuOptionTextStyle.TruncateEnd; - private bool visible = true; - private bool enabled = true; private readonly DynamicTextUpdater? dynamicTextUpdater; private readonly ConcurrentDictionary playerVisible = new(); private readonly ConcurrentDictionary playerEnabled = new(); @@ -61,9 +56,9 @@ protected MenuOptionBase( int updateIntervalMs, int pauseIntervalMs ) } dynamicTextUpdater = new DynamicTextUpdater( - () => text, - () => textStyle, - () => maxWidth, + () => Text, + () => TextStyle, + () => MaxWidth, value => dynamicText = value, Math.Max((int)(1 / 64f * 1000), updateIntervalMs), Math.Max((int)(1 / 64f * 1000), pauseIntervalMs) @@ -110,27 +105,27 @@ public virtual void Dispose() /// This is a global property. Changing it will affect what all players see. /// public string Text { - get => text; + get; set { - if (text == value) + if (field == value) { return; } - text = value; + field = value; // dynamicText = null; TextChanged?.Invoke(this, new MenuOptionEventArgs { Player = null!, Option = this }); } - } + } = string.Empty; /// /// The maximum display width for menu option text in relative units. /// public float MaxWidth { - get => maxWidth; + get; set { - if (maxWidth == value) + if (field == value) { return; } @@ -140,10 +135,10 @@ public float MaxWidth { Spectre.Console.AnsiConsole.WriteException(new ArgumentOutOfRangeException(nameof(MaxWidth), $"MaxWidth: value {value:F3} is out of range.")); } - maxWidth = Math.Max(value, 1f); + field = Math.Max(value, 1f); // dynamicText = null; } - } + } = 26f; /// /// Gets or sets a value indicating whether this option is visible in the menu. @@ -152,17 +147,17 @@ public float MaxWidth { /// This is a global property. Changing it will affect what all players see. /// public bool Visible { - get => visible; + get; set { - if (visible == value) + if (field == value) { return; } - visible = value; + field = value; VisibilityChanged?.Invoke(this, new MenuOptionEventArgs { Player = null!, Option = this }); } - } + } = true; /// /// Gets or sets a value indicating whether this option can be interacted with. @@ -171,17 +166,17 @@ public bool Visible { /// This is a global property. Changing it will affect what all players see. /// public bool Enabled { - get => enabled; + get; set { - if (enabled == value) + if (field == value) { return; } - enabled = value; + field = value; EnabledChanged?.Invoke(this, new MenuOptionEventArgs { Player = null!, Option = this }); } - } + } = true; /// /// Gets or sets a value indicating whether the menu should be closed after handling the click. @@ -202,17 +197,17 @@ public bool Enabled { /// Gets or sets the text overflow style for this option. /// public MenuOptionTextStyle TextStyle { - get => textStyle; + get; set { - if (textStyle == value) + if (field == value) { return; } - textStyle = value; + field = value; // dynamicText = null; } - } + } = MenuOptionTextStyle.TruncateEnd; /// /// Gets or sets a value indicating whether a sound should play when this option is selected. @@ -461,7 +456,7 @@ public virtual ValueTask OnValidatingAsync( IPlayer player ) /// A task that represents the asynchronous operation. public virtual async ValueTask OnClickAsync( IPlayer player ) { - if (!visible || !enabled || !GetVisible(player) || !GetEnabled(player)) + if (!Visible || !Enabled || !GetVisible(player) || !GetEnabled(player)) { return; } diff --git a/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/SubmenuMenuOption.cs b/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/SubmenuMenuOption.cs index 15c04e2f8..8ff833efb 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/SubmenuMenuOption.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Menus/OptionsBase/SubmenuMenuOption.cs @@ -1,6 +1,4 @@ -using System.Collections.Concurrent; using SwiftlyS2.Shared.Menus; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.Menus.OptionsBase; diff --git a/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessage.cs b/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessage.cs index 5fdb16086..1586bf8e1 100644 --- a/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessage.cs +++ b/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessage.cs @@ -1,63 +1,69 @@ using SwiftlyS2.Core.Natives; -using SwiftlyS2.Core.Natives.NativeObjects; using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Core.NetMessages; -internal class NetMessage : TypedProtobuf, INativeHandle, IDisposable where T : ITypedProtobuf, INetMessage, IDisposable { +internal class NetMessage : TypedProtobuf, INativeHandle, IDisposable where T : ITypedProtobuf, INetMessage, IDisposable +{ - private NetMessageAllocableNativeHandle? _allocatedHandle; + private readonly NetMessageAllocableNativeHandle? _allocatedHandle; - private CRecipientFilter _filter = new(); + private CRecipientFilter _filter = new(); - public ref CRecipientFilter Recipients { get => ref _filter; } + public ref CRecipientFilter Recipients { get => ref _filter; } - /* + /* - Evil hack to convert a CNetMessagePB<>* to google::protobuf::Message* + Evil hack to convert a CNetMessagePB<>* to google::protobuf::Message* - CNetMessage memory layout: - vtable -> 8 bytes - members -> 40 bytes + CNetMessage memory layout: + vtable -> 8 bytes + members -> 40 bytes - and CNetMessagePB inheritance: public CNetMessage, public PROTO_TYPE - so we can cast to PROTO_TYPE* by adding 48 bytes to the handle + and CNetMessagePB inheritance: public CNetMessage, public PROTO_TYPE + so we can cast to PROTO_TYPE* by adding 48 bytes to the handle - */ - public NetMessage(nint handle, bool isManuallyAllocated) : base(handle + 48) { - if (isManuallyAllocated) { - _allocatedHandle = new(handle); + */ + public NetMessage( nint handle, bool isManuallyAllocated ) : base(handle + 48) + { + if (isManuallyAllocated) + { + _allocatedHandle = new(handle); + } } - } - public void Dispose() { - _allocatedHandle?.Dispose(); - } + public void Dispose() + { + _allocatedHandle?.Dispose(); + } + + private void CheckIsManuallyAllocated() + { + if (_allocatedHandle == null) + { + throw new InvalidOperationException("Send methods is not available for externally allocated net messages."); + } + } + + public void Send() + { + CheckIsManuallyAllocated(); + NativeNetMessages.SendMessageToPlayers(_allocatedHandle!.Address, T.MessageId, _filter.ToMask()); + } + + public void SendToAllPlayers() + { + CheckIsManuallyAllocated(); + _filter.AddAllPlayers(); + NativeNetMessages.SendMessageToPlayers(_allocatedHandle!.Address, T.MessageId, _filter.ToMask()); + } - private void CheckIsManuallyAllocated() { - if (_allocatedHandle == null) { - throw new InvalidOperationException("Send methods is not available for externally allocated net messages."); + public void SendToPlayer( int playerId ) + { + CheckIsManuallyAllocated(); + _filter.AddRecipient(playerId); + NativeNetMessages.SendMessageToPlayers(_allocatedHandle!.Address, T.MessageId, _filter.ToMask()); } - } - - public void Send() { - CheckIsManuallyAllocated(); - NativeNetMessages.SendMessageToPlayers(_allocatedHandle!.Address, T.MessageId, _filter.ToMask()); - } - - public void SendToAllPlayers() - { - CheckIsManuallyAllocated(); - _filter.AddAllPlayers(); - NativeNetMessages.SendMessageToPlayers(_allocatedHandle!.Address, T.MessageId, _filter.ToMask()); - } - - public void SendToPlayer(int playerId) - { - CheckIsManuallyAllocated(); - _filter.AddRecipient(playerId); - NativeNetMessages.SendMessageToPlayers(_allocatedHandle!.Address, T.MessageId, _filter.ToMask()); - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessageAllocableNativeHandle.cs b/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessageAllocableNativeHandle.cs index 1af346b35..ae724af6d 100644 --- a/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessageAllocableNativeHandle.cs +++ b/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessageAllocableNativeHandle.cs @@ -3,14 +3,17 @@ namespace SwiftlyS2.Core.NetMessages; -internal class NetMessageAllocableNativeHandle : AllocableNativeHandle { +internal class NetMessageAllocableNativeHandle : AllocableNativeHandle +{ - public NetMessageAllocableNativeHandle(nint handle) : base(handle, true) { - } + public NetMessageAllocableNativeHandle( nint handle ) : base(handle, true) + { + } - protected override bool Free() { - NativeNetMessages.DeallocateNetMessage(Address); - return true; - } + protected override bool Free() + { + NativeNetMessages.DeallocateNetMessage(Address); + return true; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessageHookCallback.cs b/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessageHookCallback.cs index a69bad96c..f257e15fe 100644 --- a/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessageHookCallback.cs +++ b/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessageHookCallback.cs @@ -1,13 +1,10 @@ using System.Runtime.InteropServices; using Microsoft.Extensions.Logging; -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.Extensions; -using SwiftlyS2.Shared.Natives; +using SwiftlyS2.Core.Natives; +using SwiftlyS2.Shared.Misc; using SwiftlyS2.Shared.NetMessages; -using SwiftlyS2.Shared.ProtobufDefinitions; using SwiftlyS2.Shared.Profiler; -using System.Diagnostics.CodeAnalysis; -using SwiftlyS2.Shared.Misc; namespace SwiftlyS2.Core.NetMessages; @@ -21,116 +18,116 @@ namespace SwiftlyS2.Core.NetMessages; internal abstract class NetMessageHookCallback : IDisposable { - public Guid Guid { get; init; } + public Guid Guid { get; init; } - public IContextedProfilerService Profiler { get; } + public IContextedProfilerService Profiler { get; } - public ILoggerFactory LoggerFactory { get; } + public ILoggerFactory LoggerFactory { get; } - protected NetMessageHookCallback( ILoggerFactory loggerFactory, IContextedProfilerService profiler ) - { - LoggerFactory = loggerFactory; - Profiler = profiler; - } + protected NetMessageHookCallback( ILoggerFactory loggerFactory, IContextedProfilerService profiler ) + { + LoggerFactory = loggerFactory; + Profiler = profiler; + } - public abstract void Dispose(); + public abstract void Dispose(); } internal class NetMessageClientHookCallback : NetMessageHookCallback where T : ITypedProtobuf, INetMessage, IDisposable { - private INetMessageService.ClientNetMessageHandler _callback; - private NetMessageClientHookCallbackDelegate _unmanagedCallback; - private nint _unmanagedCallbackPtr; - private ulong _nativeListenerId; - private ILogger> _logger; - + private readonly INetMessageService.ClientNetMessageHandler _callback; + private readonly NetMessageClientHookCallbackDelegate _unmanagedCallback; + private readonly nint _unmanagedCallbackPtr; + private readonly ulong _nativeListenerId; + private readonly ILogger> _logger; - public NetMessageClientHookCallback( INetMessageService.ClientNetMessageHandler callback, ILoggerFactory loggerFactory, IContextedProfilerService profiler ) : base(loggerFactory, profiler) - { - Guid = Guid.NewGuid(); - _logger = LoggerFactory.CreateLogger>(); - _callback = callback; - - _unmanagedCallback = ( playerId, msgId, pMessage ) => + public NetMessageClientHookCallback( INetMessageService.ClientNetMessageHandler callback, ILoggerFactory loggerFactory, IContextedProfilerService profiler ) : base(loggerFactory, profiler) + { + Guid = Guid.NewGuid(); + _logger = LoggerFactory.CreateLogger>(); + + _callback = callback; + + _unmanagedCallback = ( playerId, msgId, pMessage ) => + { + try + { + if (msgId != T.MessageId) return HookResult.Continue; + var category = "NetMessageClientHookCallback::" + typeof(T).Name; + Profiler.StartRecording(category); + var msg = T.Wrap(pMessage, false); + var result = _callback(msg, playerId); + Profiler.StopRecording(category); + return result; + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return HookResult.Continue; + _logger.LogError(e, "Error in net message client hook callback for {MessageType}", typeof(T).Name); + return HookResult.Continue; + } + }; + _unmanagedCallbackPtr = Marshal.GetFunctionPointerForDelegate(_unmanagedCallback); + _nativeListenerId = NativeNetMessages.AddNetMessageClientHook(_unmanagedCallbackPtr); + + } + + public override void Dispose() { - try - { - if (msgId != T.MessageId) return HookResult.Continue; - var category = "NetMessageClientHookCallback::" + typeof(T).Name; - Profiler.StartRecording(category); - var msg = T.Wrap(pMessage, false); - var result = _callback(msg, playerId); - Profiler.StopRecording(category); - return result; - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return HookResult.Continue; - _logger.LogError(e, "Error in net message client hook callback for {MessageType}", typeof(T).Name); - return HookResult.Continue; - } - }; - _unmanagedCallbackPtr = Marshal.GetFunctionPointerForDelegate(_unmanagedCallback); - _nativeListenerId = NativeNetMessages.AddNetMessageClientHook(_unmanagedCallbackPtr); - - } - - public override void Dispose() - { - NativeNetMessages.RemoveNetMessageClientHook(_nativeListenerId); - } + NativeNetMessages.RemoveNetMessageClientHook(_nativeListenerId); + } } internal class NetMessageServerHookCallback : NetMessageHookCallback where T : ITypedProtobuf, INetMessage, IDisposable { - private INetMessageService.ServerNetMessageHandler _callback; - private NetMessageServerHookCallbackDelegate _unmanagedCallback; - private nint _unmanagedCallbackPtr; - private ulong _nativeListenerId; - private ILogger> _logger; - - public NetMessageServerHookCallback( INetMessageService.ServerNetMessageHandler callback, ILoggerFactory loggerFactory, IContextedProfilerService profiler ) : base(loggerFactory, profiler) - { - Guid = Guid.NewGuid(); - _logger = LoggerFactory.CreateLogger>(); + private readonly INetMessageService.ServerNetMessageHandler _callback; + private readonly NetMessageServerHookCallbackDelegate _unmanagedCallback; + private readonly nint _unmanagedCallbackPtr; + private readonly ulong _nativeListenerId; + private readonly ILogger> _logger; - _callback = callback; - - _unmanagedCallback = ( pPlayerMask, msgId, pMessage ) => + public NetMessageServerHookCallback( INetMessageService.ServerNetMessageHandler callback, ILoggerFactory loggerFactory, IContextedProfilerService profiler ) : base(loggerFactory, profiler) + { + Guid = Guid.NewGuid(); + _logger = LoggerFactory.CreateLogger>(); + + _callback = callback; + + _unmanagedCallback = ( pPlayerMask, msgId, pMessage ) => + { + try + { + if (msgId != T.MessageId) return HookResult.Continue; + var category = "NetMessageServerHookCallback::" + typeof(T).Name; + Profiler.StartRecording(category); + var msg = T.Wrap(pMessage, false); + var mask = pPlayerMask.Read(); + msg.Recipients.RecipientsMask = mask; + var result = _callback(msg); + pPlayerMask.Write(msg.Recipients.ToMask()); + Profiler.StopRecording(category); + return result; + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return HookResult.Continue; + _logger.LogError(e, "Error in net message server hook callback for {MessageType}", typeof(T).Name); + return HookResult.Continue; + } + }; + _unmanagedCallbackPtr = Marshal.GetFunctionPointerForDelegate(_unmanagedCallback); + _nativeListenerId = NativeNetMessages.AddNetMessageServerHook(_unmanagedCallbackPtr); + + } + + public override void Dispose() { - try - { - if (msgId != T.MessageId) return HookResult.Continue; - var category = "NetMessageServerHookCallback::" + typeof(T).Name; - Profiler.StartRecording(category); - var msg = T.Wrap(pMessage, false); - var mask = pPlayerMask.Read(); - msg.Recipients.RecipientsMask = mask; - var result = _callback(msg); - pPlayerMask.Write(msg.Recipients.ToMask()); - Profiler.StopRecording(category); - return result; - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return HookResult.Continue; - _logger.LogError(e, "Error in net message server hook callback for {MessageType}", typeof(T).Name); - return HookResult.Continue; - } - }; - _unmanagedCallbackPtr = Marshal.GetFunctionPointerForDelegate(_unmanagedCallback); - _nativeListenerId = NativeNetMessages.AddNetMessageServerHook(_unmanagedCallbackPtr); - - } - - public override void Dispose() - { - NativeNetMessages.RemoveNetMessageServerHook(_nativeListenerId); - } + NativeNetMessages.RemoveNetMessageServerHook(_nativeListenerId); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessageService.cs b/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessageService.cs index c608a3cac..614c28d9b 100644 --- a/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessageService.cs +++ b/managed/src/SwiftlyS2.Core/Modules/NetMessages/NetMessageService.cs @@ -1,6 +1,5 @@ using Microsoft.Extensions.Logging; using SwiftlyS2.Core.Natives; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.Profiler; @@ -10,117 +9,118 @@ namespace SwiftlyS2.Core.NetMessages; internal class NetMessageService : INetMessageService, IDisposable { - private List _callbacks = new(); - private ILoggerFactory _loggerFactory; - private IContextedProfilerService _profiler; - private Lock _lock = new(); + private readonly List _callbacks = []; + private readonly ILoggerFactory _loggerFactory; + private readonly IContextedProfilerService _profiler; + private readonly Lock _lock = new(); - public NetMessageService( ILoggerFactory loggerFactory, IContextedProfilerService profiler ) - { - _loggerFactory = loggerFactory; - _profiler = profiler; - } + public NetMessageService( ILoggerFactory loggerFactory, IContextedProfilerService profiler ) + { + _loggerFactory = loggerFactory; + _profiler = profiler; + } - public Guid HookClientMessage( INetMessageService.ClientNetMessageHandler callback ) where T : ITypedProtobuf, INetMessage, IDisposable - { - var hook = new NetMessageClientHookCallback(callback, _loggerFactory, _profiler); - lock (_lock) + public Guid HookClientMessage( INetMessageService.ClientNetMessageHandler callback ) where T : ITypedProtobuf, INetMessage, IDisposable { - _callbacks.Add(hook); + var hook = new NetMessageClientHookCallback(callback, _loggerFactory, _profiler); + lock (_lock) + { + _callbacks.Add(hook); + } + return hook.Guid; } - return hook.Guid; - } - public Guid HookServerMessage( INetMessageService.ServerNetMessageHandler callback ) where T : ITypedProtobuf, INetMessage, IDisposable - { - var hook = new NetMessageServerHookCallback(callback, _loggerFactory, _profiler); - lock (_lock) + public Guid HookServerMessage( INetMessageService.ServerNetMessageHandler callback ) where T : ITypedProtobuf, INetMessage, IDisposable { - _callbacks.Add(hook); + var hook = new NetMessageServerHookCallback(callback, _loggerFactory, _profiler); + lock (_lock) + { + _callbacks.Add(hook); + } + return hook.Guid; } - return hook.Guid; - } - public void Unhook( Guid guid ) - { - lock (_lock) + public void Unhook( Guid guid ) { - _callbacks.RemoveAll(callback => - { - if (callback.Guid == guid) + lock (_lock) { - callback.Dispose(); - return true; + _ = _callbacks.RemoveAll(callback => + { + if (callback.Guid == guid) + { + callback.Dispose(); + return true; + } + return false; + }); } - return false; - }); } - } - public void UnhookClientMessage() where T : ITypedProtobuf, INetMessage, IDisposable - { - lock (_lock) + public void UnhookClientMessage() where T : ITypedProtobuf, INetMessage, IDisposable { - _callbacks.RemoveAll(callback => - { - if (callback is NetMessageClientHookCallback clientHook) + lock (_lock) { - clientHook.Dispose(); - return true; + _ = _callbacks.RemoveAll(callback => + { + if (callback is NetMessageClientHookCallback clientHook) + { + clientHook.Dispose(); + return true; + } + return false; + }); } - return false; - }); } - } - public void UnhookServerMessage() where T : ITypedProtobuf, INetMessage, IDisposable - { - lock (_lock) + public void UnhookServerMessage() where T : ITypedProtobuf, INetMessage, IDisposable { - _callbacks.RemoveAll(callback => - { - if (callback is NetMessageServerHookCallback serverHook) + lock (_lock) { - serverHook.Dispose(); - return true; + _ = _callbacks.RemoveAll(callback => + { + if (callback is NetMessageServerHookCallback serverHook) + { + serverHook.Dispose(); + return true; + } + return false; + }); } - return false; - }); } - } - private nint AllocateNetMessage( int msgId ) - { - var handle = NativeNetMessages.AllocateNetMessageByID(msgId); - if (handle == 0) throw new InvalidOperationException("Failed to allocate net message. This is possibly caused by the message ID is already deprecated not supported in game."); - return handle; - } + private nint AllocateNetMessage( int msgId ) + { + var handle = NativeNetMessages.AllocateNetMessageByID(msgId); + return handle == 0 + ? throw new InvalidOperationException("Failed to allocate net message. This is possibly caused by the message ID is already deprecated not supported in game.") + : handle; + } - public T Create() where T : ITypedProtobuf, INetMessage, IDisposable - { - var handle = AllocateNetMessage(T.MessageId); - var message = T.Wrap(handle, true); - return message; - } + public T Create() where T : ITypedProtobuf, INetMessage, IDisposable + { + var handle = AllocateNetMessage(T.MessageId); + var message = T.Wrap(handle, true); + return message; + } - public void Send( Action configureMessage ) where T : ITypedProtobuf, INetMessage, IDisposable - { - var handle = AllocateNetMessage(T.MessageId); - var message = T.Wrap(handle, true); - configureMessage(message); - NativeNetMessages.SendMessageToPlayers(handle, T.MessageId, message.Recipients.ToMask()); - } + public void Send( Action configureMessage ) where T : ITypedProtobuf, INetMessage, IDisposable + { + var handle = AllocateNetMessage(T.MessageId); + var message = T.Wrap(handle, true); + configureMessage(message); + NativeNetMessages.SendMessageToPlayers(handle, T.MessageId, message.Recipients.ToMask()); + } - public void Dispose() - { - lock (_lock) + public void Dispose() { - foreach (var callback in _callbacks) - { - callback.Dispose(); - } - _callbacks.Clear(); + lock (_lock) + { + foreach (var callback in _callbacks) + { + callback.Dispose(); + } + _callbacks.Clear(); + } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/NetMessages/ProtobufAccessor.cs b/managed/src/SwiftlyS2.Core/Modules/NetMessages/ProtobufAccessor.cs index 55d6565ad..33cbd3a7e 100644 --- a/managed/src/SwiftlyS2.Core/Modules/NetMessages/ProtobufAccessor.cs +++ b/managed/src/SwiftlyS2.Core/Modules/NetMessages/ProtobufAccessor.cs @@ -4,572 +4,670 @@ using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Core.NetMessages; - -internal class ProtobufAccessor : NativeHandle, IProtobufAccessor { +internal class ProtobufAccessor : NativeHandle, IProtobufAccessor +{ - public ProtobufAccessor(nint handle) : base(handle) { - } - - public bool HasField(string fieldName) - { - return NativeNetMessages.HasField(Address, fieldName); - } - public bool GetBool(string fieldName) - { - return NativeNetMessages.GetBool(Address, fieldName); - } - - public void SetBool(string fieldName, bool value) - { - NativeNetMessages.SetBool(Address, fieldName, value); - } - - public void SetInt32(string fieldName, int value) - { - NativeNetMessages.SetInt32(Address, fieldName, value); - } - - public int GetInt32(string fieldName) { - return NativeNetMessages.GetInt32(Address, fieldName); - } - - public void SetUInt32(string fieldName, uint value) { - NativeNetMessages.SetUInt32(Address, fieldName, value); - } - - public uint GetUInt32(string fieldName) { - return NativeNetMessages.GetUInt32(Address, fieldName); - } - - - public void SetInt64(string fieldName, long value) - { - NativeNetMessages.SetInt64(Address, fieldName, value); - } + public ProtobufAccessor( nint handle ) : base(handle) + { + } - public long GetInt64(string fieldName) - { - return NativeNetMessages.GetInt64(Address, fieldName); - } + public bool HasField( string fieldName ) + { + return NativeNetMessages.HasField(Address, fieldName); + } - public void SetUInt64(string fieldName, ulong value) { - NativeNetMessages.SetUInt64(Address, fieldName, value); - } + public bool GetBool( string fieldName ) + { + return NativeNetMessages.GetBool(Address, fieldName); + } - public ulong GetUInt64(string fieldName) { - return NativeNetMessages.GetUInt64(Address, fieldName); - } + public void SetBool( string fieldName, bool value ) + { + NativeNetMessages.SetBool(Address, fieldName, value); + } + public void SetInt32( string fieldName, int value ) + { + NativeNetMessages.SetInt32(Address, fieldName, value); + } - public float GetFloat(string fieldName) { - return NativeNetMessages.GetFloat(Address, fieldName); - } + public int GetInt32( string fieldName ) + { + return NativeNetMessages.GetInt32(Address, fieldName); + } - public void SetFloat(string fieldName, float value) { - NativeNetMessages.SetFloat(Address, fieldName, value); - } + public void SetUInt32( string fieldName, uint value ) + { + NativeNetMessages.SetUInt32(Address, fieldName, value); + } - public double GetDouble(string fieldName) { - return NativeNetMessages.GetDouble(Address, fieldName); - } + public uint GetUInt32( string fieldName ) + { + return NativeNetMessages.GetUInt32(Address, fieldName); + } - public void SetDouble(string fieldName, double value) { - NativeNetMessages.SetDouble(Address, fieldName, value); - } - - public string GetString(string fieldName) { - return NativeNetMessages.GetString(Address, fieldName); - } - - public void SetString(string fieldName, string value) { - NativeNetMessages.SetString(Address, fieldName, value); - } - - public void SetBytes(string fieldName, byte[] value) { - NativeNetMessages.SetBytes(Address, fieldName, value); - } - - public byte[] GetBytes(string fieldName) { - return NativeNetMessages.GetBytes(Address, fieldName); - } - - public void SetVector2D(string fieldName, Vector2D value) { - NativeNetMessages.SetVector2D(Address, fieldName, value); - } - - public Vector2D GetVector2D(string fieldName) { - return NativeNetMessages.GetVector2D(Address, fieldName); - } - - public void SetVector(string fieldName, Vector value) { - NativeNetMessages.SetVector(Address, fieldName, value); - } - - public Vector GetVector(string fieldName) { - return NativeNetMessages.GetVector(Address, fieldName); - } - - public void SetColor(string fieldName, Color value) { - NativeNetMessages.SetColor(Address, fieldName, value); - } - - public Color GetColor(string fieldName) { - return NativeNetMessages.GetColor(Address, fieldName); - } - - public void SetQAngle(string fieldName, QAngle value) { - NativeNetMessages.SetQAngle(Address, fieldName, value); - } - - public QAngle GetQAngle(string fieldName) { - return NativeNetMessages.GetQAngle(Address, fieldName); - } - - - public unsafe nint GetNestedMessage(string fieldName) - { - return NativeNetMessages.GetNestedMessage(Address, fieldName); - } - - - // Repeated field accessors - public bool GetRepeatedBool(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedBool(Address, fieldName, index); - } - - public void SetRepeatedBool(string fieldName, int index, bool value) - { - NativeNetMessages.SetRepeatedBool(Address, fieldName, index, value); - } - - public void AddBool(string fieldName, bool value) - { - NativeNetMessages.AddBool(Address, fieldName, value); - } - - public int GetRepeatedInt32(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedInt32(Address, fieldName, index); - } - - public void SetRepeatedInt32(string fieldName, int index, int value) - { - NativeNetMessages.SetRepeatedInt32(Address, fieldName, index, value); - } - - public void AddInt32(string fieldName, int value) - { - NativeNetMessages.AddInt32(Address, fieldName, value); - } - - public uint GetRepeatedUInt32(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedUInt32(Address, fieldName, index); - } - - public void SetRepeatedUInt32(string fieldName, int index, uint value) - { - NativeNetMessages.SetRepeatedUInt32(Address, fieldName, index, value); - } - - public void AddUInt32(string fieldName, uint value) - { - NativeNetMessages.AddUInt32(Address, fieldName, value); - } - - public long GetRepeatedInt64(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedInt64(Address, fieldName, index); - } - - public void SetRepeatedInt64(string fieldName, int index, long value) - { - NativeNetMessages.SetRepeatedInt64(Address, fieldName, index, value); - } - - public void AddInt64(string fieldName, long value) - { - NativeNetMessages.AddInt64(Address, fieldName, value); - } - - public ulong GetRepeatedUInt64(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedUInt64(Address, fieldName, index); - } - - public void SetRepeatedUInt64(string fieldName, int index, ulong value) - { - NativeNetMessages.SetRepeatedUInt64(Address, fieldName, index, value); - } - - public void AddUInt64(string fieldName, ulong value) - { - NativeNetMessages.AddUInt64(Address, fieldName, value); - } - - public float GetRepeatedFloat(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedFloat(Address, fieldName, index); - } - - public void SetRepeatedFloat(string fieldName, int index, float value) - { - NativeNetMessages.SetRepeatedFloat(Address, fieldName, index, value); - } - - public void AddFloat(string fieldName, float value) - { - NativeNetMessages.AddFloat(Address, fieldName, value); - } - - public double GetRepeatedDouble(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedDouble(Address, fieldName, index); - } - - public void SetRepeatedDouble(string fieldName, int index, double value) - { - NativeNetMessages.SetRepeatedDouble(Address, fieldName, index, value); - } - - public void AddDouble(string fieldName, double value) - { - NativeNetMessages.AddDouble(Address, fieldName, value); - } - - public string GetRepeatedString(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedString(Address, fieldName, index); - } - - public void SetRepeatedString(string fieldName, int index, string value) - { - NativeNetMessages.SetRepeatedString(Address, fieldName, index, value); - } - - public void AddString(string fieldName, string value) - { - NativeNetMessages.AddString(Address, fieldName, value); - } - - public byte[] GetRepeatedBytes(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedBytes(Address, fieldName, index); - } - - public void SetRepeatedBytes(string fieldName, int index, byte[] value) - { - NativeNetMessages.SetRepeatedBytes(Address, fieldName, index, value); - } - - public void AddBytes(string fieldName, byte[] value) - { - NativeNetMessages.AddBytes(Address, fieldName, value); - } - - public Vector2D GetRepeatedVector2D(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedVector2D(Address, fieldName, index); - } - - public void SetRepeatedVector2D(string fieldName, int index, Vector2D value) - { - NativeNetMessages.SetRepeatedVector2D(Address, fieldName, index, value); - } - - public void AddVector2D(string fieldName, Vector2D value) - { - NativeNetMessages.AddVector2D(Address, fieldName, value); - } - - public Vector GetRepeatedVector(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedVector(Address, fieldName, index); - } - - public void SetRepeatedVector(string fieldName, int index, Vector value) - { - NativeNetMessages.SetRepeatedVector(Address, fieldName, index, value); - } - - public void AddVector(string fieldName, Vector value) - { - NativeNetMessages.AddVector(Address, fieldName, value); - } - - public Color GetRepeatedColor(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedColor(Address, fieldName, index); - } - - public void SetRepeatedColor(string fieldName, int index, Color value) - { - NativeNetMessages.SetRepeatedColor(Address, fieldName, index, value); - } - - public void AddColor(string fieldName, Color value) - { - NativeNetMessages.AddColor(Address, fieldName, value); - } - - public QAngle GetRepeatedQAngle(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedQAngle(Address, fieldName, index); - } - - public void SetRepeatedQAngle(string fieldName, int index, QAngle value) - { - NativeNetMessages.SetRepeatedQAngle(Address, fieldName, index, value); - } - public void AddQAngle(string fieldName, QAngle value) - { - NativeNetMessages.AddQAngle(Address, fieldName, value); - } + public void SetInt64( string fieldName, long value ) + { + NativeNetMessages.SetInt64(Address, fieldName, value); + } - public unsafe nint GetRepeatedNestedMessage(string fieldName, int index) - { - return NativeNetMessages.GetRepeatedNestedMessage(Address, fieldName, index); - } + public long GetInt64( string fieldName ) + { + return NativeNetMessages.GetInt64(Address, fieldName); + } - public unsafe nint AddNestedMessage(string fieldName) - { - return NativeNetMessages.AddNestedMessage(Address, fieldName); - } + public void SetUInt64( string fieldName, ulong value ) + { + NativeNetMessages.SetUInt64(Address, fieldName, value); + } - public int GetRepeatedFieldSize(string fieldName) - { - return NativeNetMessages.GetRepeatedFieldSize(Address, fieldName); - } + public ulong GetUInt64( string fieldName ) + { + return NativeNetMessages.GetUInt64(Address, fieldName); + } - public void ClearRepeatedField(string fieldName) - { - NativeNetMessages.ClearRepeatedField(Address, fieldName); - } - public T Get(string fieldName) { - if (typeof(T) == typeof(bool)) { - return (T)(object)GetBool(fieldName); - } - else if (typeof(T) == typeof(int)) { - return (T)(object)GetInt32(fieldName); - } - else if (typeof(T) == typeof(uint)) { - return (T)(object)GetUInt32(fieldName); + public float GetFloat( string fieldName ) + { + return NativeNetMessages.GetFloat(Address, fieldName); } - else if (typeof(T) == typeof(long)) { - return (T)(object)GetInt64(fieldName); - } - else if (typeof(T) == typeof(ulong)) { - return (T)(object)GetUInt64(fieldName); - } - else if (typeof(T) == typeof(float)) { - return (T)(object)GetFloat(fieldName); - } - else if (typeof(T) == typeof(double)) { - return (T)(object)GetDouble(fieldName); - } - else if (typeof(T) == typeof(string)) { - return (T)(object)GetString(fieldName); - } - else if (typeof(T) == typeof(byte[])) { - return (T)(object)GetBytes(fieldName); - } - else if (typeof(T) == typeof(Vector2D)) { - return (T)(object)GetVector2D(fieldName); + + public void SetFloat( string fieldName, float value ) + { + NativeNetMessages.SetFloat(Address, fieldName, value); } - else if (typeof(T) == typeof(Vector)) { - return (T)(object)GetVector(fieldName); + + public double GetDouble( string fieldName ) + { + return NativeNetMessages.GetDouble(Address, fieldName); } - else if (typeof(T) == typeof(Color)) { - return (T)(object)GetColor(fieldName); + + public void SetDouble( string fieldName, double value ) + { + NativeNetMessages.SetDouble(Address, fieldName, value); } - else if (typeof(T) == typeof(QAngle)) { - return (T)(object)GetQAngle(fieldName); + + public string GetString( string fieldName ) + { + return NativeNetMessages.GetString(Address, fieldName); } - throw new InvalidOperationException($"Invalid type: {typeof(T)}"); - } - public void Set(string fieldName, T value) { - if (typeof(T) == typeof(bool)) { - SetBool(fieldName, (bool)(object)value!); + public void SetString( string fieldName, string value ) + { + NativeNetMessages.SetString(Address, fieldName, value); } - else if (typeof(T) == typeof(int)) { - SetInt32(fieldName, (int)(object)value!); + + public void SetBytes( string fieldName, byte[] value ) + { + NativeNetMessages.SetBytes(Address, fieldName, value); } - else if (typeof(T) == typeof(uint)) { - SetUInt32(fieldName, (uint)(object)value!); + + public byte[] GetBytes( string fieldName ) + { + return NativeNetMessages.GetBytes(Address, fieldName); } - else if (typeof(T) == typeof(long)) { - SetInt64(fieldName, (long)(object)value!); + + public void SetVector2D( string fieldName, Vector2D value ) + { + NativeNetMessages.SetVector2D(Address, fieldName, value); } - else if (typeof(T) == typeof(ulong)) { - SetUInt64(fieldName, (ulong)(object)value!); + + public Vector2D GetVector2D( string fieldName ) + { + return NativeNetMessages.GetVector2D(Address, fieldName); } - else if (typeof(T) == typeof(float)) { - SetFloat(fieldName, (float)(object)value!); + + public void SetVector( string fieldName, Vector value ) + { + NativeNetMessages.SetVector(Address, fieldName, value); } - else if (typeof(T) == typeof(double)) { - SetDouble(fieldName, (double)(object)value!); + + public Vector GetVector( string fieldName ) + { + return NativeNetMessages.GetVector(Address, fieldName); } - else if (typeof(T) == typeof(string)) { - SetString(fieldName, (string)(object)value!); + + public void SetColor( string fieldName, Color value ) + { + NativeNetMessages.SetColor(Address, fieldName, value); } - else if (typeof(T) == typeof(byte[])) { - SetBytes(fieldName, (byte[])(object)value!); + + public Color GetColor( string fieldName ) + { + return NativeNetMessages.GetColor(Address, fieldName); } - else if (typeof(T) == typeof(Vector2D)) { - SetVector2D(fieldName, (Vector2D)(object)value!); + + public void SetQAngle( string fieldName, QAngle value ) + { + NativeNetMessages.SetQAngle(Address, fieldName, value); } - else if (typeof(T) == typeof(Vector)) { - SetVector(fieldName, (Vector)(object)value!); + + public QAngle GetQAngle( string fieldName ) + { + return NativeNetMessages.GetQAngle(Address, fieldName); } - else if (typeof(T) == typeof(Color)) { - SetColor(fieldName, (Color)(object)value!); + + + public unsafe nint GetNestedMessage( string fieldName ) + { + return NativeNetMessages.GetNestedMessage(Address, fieldName); } - else if (typeof(T) == typeof(QAngle)) { - SetQAngle(fieldName, (QAngle)(object)value!); - } else { - throw new InvalidOperationException($"Invalid type: {typeof(T)}"); + + + // Repeated field accessors + public bool GetRepeatedBool( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedBool(Address, fieldName, index); } - } - public void Add(string fieldName, T value) { - if (typeof(T) == typeof(bool)) { - AddBool(fieldName, (bool)(object)value!); + public void SetRepeatedBool( string fieldName, int index, bool value ) + { + NativeNetMessages.SetRepeatedBool(Address, fieldName, index, value); } - else if (typeof(T) == typeof(int)) { - AddInt32(fieldName, (int)(object)value!); + + public void AddBool( string fieldName, bool value ) + { + NativeNetMessages.AddBool(Address, fieldName, value); } - else if (typeof(T) == typeof(uint)) { - AddUInt32(fieldName, (uint)(object)value!); + + public int GetRepeatedInt32( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedInt32(Address, fieldName, index); } - else if (typeof(T) == typeof(long)) { - AddInt64(fieldName, (long)(object)value!); + + public void SetRepeatedInt32( string fieldName, int index, int value ) + { + NativeNetMessages.SetRepeatedInt32(Address, fieldName, index, value); } - else if (typeof(T) == typeof(ulong)) { - AddUInt64(fieldName, (ulong)(object)value!); + + public void AddInt32( string fieldName, int value ) + { + NativeNetMessages.AddInt32(Address, fieldName, value); } - else if (typeof(T) == typeof(float)) { - AddFloat(fieldName, (float)(object)value!); + + public uint GetRepeatedUInt32( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedUInt32(Address, fieldName, index); } - else if (typeof(T) == typeof(double)) { - AddDouble(fieldName, (double)(object)value!); + + public void SetRepeatedUInt32( string fieldName, int index, uint value ) + { + NativeNetMessages.SetRepeatedUInt32(Address, fieldName, index, value); } - else if (typeof(T) == typeof(string)) { - AddString(fieldName, (string)(object)value!); + + public void AddUInt32( string fieldName, uint value ) + { + NativeNetMessages.AddUInt32(Address, fieldName, value); } - else if (typeof(T) == typeof(byte[])) { - AddBytes(fieldName, (byte[])(object)value!); + + public long GetRepeatedInt64( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedInt64(Address, fieldName, index); } - else if (typeof(T) == typeof(Vector2D)) { - AddVector2D(fieldName, (Vector2D)(object)value!); + + public void SetRepeatedInt64( string fieldName, int index, long value ) + { + NativeNetMessages.SetRepeatedInt64(Address, fieldName, index, value); } - else if (typeof(T) == typeof(Vector)) { - AddVector(fieldName, (Vector)(object)value!); + + public void AddInt64( string fieldName, long value ) + { + NativeNetMessages.AddInt64(Address, fieldName, value); } - else if (typeof(T) == typeof(Color)) { - AddColor(fieldName, (Color)(object)value!); + + public ulong GetRepeatedUInt64( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedUInt64(Address, fieldName, index); } - else if (typeof(T) == typeof(QAngle)) { - AddQAngle(fieldName, (QAngle)(object)value!); + + public void SetRepeatedUInt64( string fieldName, int index, ulong value ) + { + NativeNetMessages.SetRepeatedUInt64(Address, fieldName, index, value); } - // HOW THE FUCK I FORGOT TO ADD A ELSE HERE - // this mf exception throws silently and fuck my stacktrace, my debugger and my life - // fuck me - // -- @samyyc - else { - throw new InvalidOperationException($"Invalid type: {typeof(T)}"); + + public void AddUInt64( string fieldName, ulong value ) + { + NativeNetMessages.AddUInt64(Address, fieldName, value); } - } - public void SetRepeated(string fieldName, int index, T value) { - if (typeof(T) == typeof(bool)) { - SetRepeatedBool(fieldName, index, (bool)(object)value!); + public float GetRepeatedFloat( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedFloat(Address, fieldName, index); } - else if (typeof(T) == typeof(int)) { - SetRepeatedInt32(fieldName, index, (int)(object)value!); + + public void SetRepeatedFloat( string fieldName, int index, float value ) + { + NativeNetMessages.SetRepeatedFloat(Address, fieldName, index, value); } - else if (typeof(T) == typeof(uint)) { - SetRepeatedUInt32(fieldName, index, (uint)(object)value!); + + public void AddFloat( string fieldName, float value ) + { + NativeNetMessages.AddFloat(Address, fieldName, value); } - else if (typeof(T) == typeof(long)) { - SetRepeatedInt64(fieldName, index, (long)(object)value!); + + public double GetRepeatedDouble( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedDouble(Address, fieldName, index); } - else if (typeof(T) == typeof(ulong)) { - SetRepeatedUInt64(fieldName, index, (ulong)(object)value!); + + public void SetRepeatedDouble( string fieldName, int index, double value ) + { + NativeNetMessages.SetRepeatedDouble(Address, fieldName, index, value); } - else if (typeof(T) == typeof(float)) { - SetRepeatedFloat(fieldName, index, (float)(object)value!); + + public void AddDouble( string fieldName, double value ) + { + NativeNetMessages.AddDouble(Address, fieldName, value); } - else if (typeof(T) == typeof(double)) { - SetRepeatedDouble(fieldName, index, (double)(object)value!); + + public string GetRepeatedString( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedString(Address, fieldName, index); } - else if (typeof(T) == typeof(string)) { - SetRepeatedString(fieldName, index, (string)(object)value!); + + public void SetRepeatedString( string fieldName, int index, string value ) + { + NativeNetMessages.SetRepeatedString(Address, fieldName, index, value); } - else if (typeof(T) == typeof(byte[])) { - SetRepeatedBytes(fieldName, index, (byte[])(object)value!); + + public void AddString( string fieldName, string value ) + { + NativeNetMessages.AddString(Address, fieldName, value); } - else if (typeof(T) == typeof(Vector2D)) { - SetRepeatedVector2D(fieldName, index, (Vector2D)(object)value!); + + public byte[] GetRepeatedBytes( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedBytes(Address, fieldName, index); } - else if (typeof(T) == typeof(Vector)) { - SetRepeatedVector(fieldName, index, (Vector)(object)value!); + + public void SetRepeatedBytes( string fieldName, int index, byte[] value ) + { + NativeNetMessages.SetRepeatedBytes(Address, fieldName, index, value); } - else if (typeof(T) == typeof(Color)) { - SetRepeatedColor(fieldName, index, (Color)(object)value!); + + public void AddBytes( string fieldName, byte[] value ) + { + NativeNetMessages.AddBytes(Address, fieldName, value); } - else if (typeof(T) == typeof(QAngle)) { - SetRepeatedQAngle(fieldName, index, (QAngle)(object)value!); - } else { - throw new InvalidOperationException($"Invalid type: {typeof(T)}"); + + public Vector2D GetRepeatedVector2D( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedVector2D(Address, fieldName, index); } - } - public T GetRepeated(string fieldName, int index) { - if (typeof(T) == typeof(bool)) { - return (T)(object)GetRepeatedBool(fieldName, index); + public void SetRepeatedVector2D( string fieldName, int index, Vector2D value ) + { + NativeNetMessages.SetRepeatedVector2D(Address, fieldName, index, value); } - else if (typeof(T) == typeof(int)) { - return (T)(object)GetRepeatedInt32(fieldName, index); + + public void AddVector2D( string fieldName, Vector2D value ) + { + NativeNetMessages.AddVector2D(Address, fieldName, value); } - else if (typeof(T) == typeof(uint)) { - return (T)(object)GetRepeatedUInt32(fieldName, index); + + public Vector GetRepeatedVector( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedVector(Address, fieldName, index); } - else if (typeof(T) == typeof(long)) { - return (T)(object)GetRepeatedInt64(fieldName, index); + + public void SetRepeatedVector( string fieldName, int index, Vector value ) + { + NativeNetMessages.SetRepeatedVector(Address, fieldName, index, value); } - else if (typeof(T) == typeof(ulong)) { - return (T)(object)GetRepeatedUInt64(fieldName, index); + + public void AddVector( string fieldName, Vector value ) + { + NativeNetMessages.AddVector(Address, fieldName, value); } - else if (typeof(T) == typeof(float)) { - return (T)(object)GetRepeatedFloat(fieldName, index); + + public Color GetRepeatedColor( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedColor(Address, fieldName, index); } - else if (typeof(T) == typeof(double)) { - return (T)(object)GetRepeatedDouble(fieldName, index); + + public void SetRepeatedColor( string fieldName, int index, Color value ) + { + NativeNetMessages.SetRepeatedColor(Address, fieldName, index, value); } - else if (typeof(T) == typeof(string)) { - return (T)(object)GetRepeatedString(fieldName, index); + + public void AddColor( string fieldName, Color value ) + { + NativeNetMessages.AddColor(Address, fieldName, value); } - else if (typeof(T) == typeof(byte[])) { - return (T)(object)GetRepeatedBytes(fieldName, index); + + public QAngle GetRepeatedQAngle( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedQAngle(Address, fieldName, index); } - else if (typeof(T) == typeof(Vector2D)) { - return (T)(object)GetRepeatedVector2D(fieldName, index); + + public void SetRepeatedQAngle( string fieldName, int index, QAngle value ) + { + NativeNetMessages.SetRepeatedQAngle(Address, fieldName, index, value); } - else if (typeof(T) == typeof(Vector)) { - return (T)(object)GetRepeatedVector(fieldName, index); + + public void AddQAngle( string fieldName, QAngle value ) + { + NativeNetMessages.AddQAngle(Address, fieldName, value); } - else if (typeof(T) == typeof(Color)) { - return (T)(object)GetRepeatedColor(fieldName, index); + + public unsafe nint GetRepeatedNestedMessage( string fieldName, int index ) + { + return NativeNetMessages.GetRepeatedNestedMessage(Address, fieldName, index); } - else if (typeof(T) == typeof(QAngle)) { - return (T)(object)GetRepeatedQAngle(fieldName, index); + + public unsafe nint AddNestedMessage( string fieldName ) + { + return NativeNetMessages.AddNestedMessage(Address, fieldName); + } + + public int GetRepeatedFieldSize( string fieldName ) + { + return NativeNetMessages.GetRepeatedFieldSize(Address, fieldName); + } + + public void ClearRepeatedField( string fieldName ) + { + NativeNetMessages.ClearRepeatedField(Address, fieldName); + } + + public T Get( string fieldName ) + { + if (typeof(T) == typeof(bool)) + { + return (T)(object)GetBool(fieldName); + } + else if (typeof(T) == typeof(int)) + { + return (T)(object)GetInt32(fieldName); + } + else if (typeof(T) == typeof(uint)) + { + return (T)(object)GetUInt32(fieldName); + } + else if (typeof(T) == typeof(long)) + { + return (T)(object)GetInt64(fieldName); + } + else if (typeof(T) == typeof(ulong)) + { + return (T)(object)GetUInt64(fieldName); + } + else if (typeof(T) == typeof(float)) + { + return (T)(object)GetFloat(fieldName); + } + else if (typeof(T) == typeof(double)) + { + return (T)(object)GetDouble(fieldName); + } + else if (typeof(T) == typeof(string)) + { + return (T)(object)GetString(fieldName); + } + else if (typeof(T) == typeof(byte[])) + { + return (T)(object)GetBytes(fieldName); + } + else if (typeof(T) == typeof(Vector2D)) + { + return (T)(object)GetVector2D(fieldName); + } + else if (typeof(T) == typeof(Vector)) + { + return (T)(object)GetVector(fieldName); + } + else if (typeof(T) == typeof(Color)) + { + return (T)(object)GetColor(fieldName); + } + else if (typeof(T) == typeof(QAngle)) + { + return (T)(object)GetQAngle(fieldName); + } + throw new InvalidOperationException($"Invalid type: {typeof(T)}"); + } + + public void Set( string fieldName, T value ) + { + if (typeof(T) == typeof(bool)) + { + SetBool(fieldName, (bool)(object)value!); + } + else if (typeof(T) == typeof(int)) + { + SetInt32(fieldName, (int)(object)value!); + } + else if (typeof(T) == typeof(uint)) + { + SetUInt32(fieldName, (uint)(object)value!); + } + else if (typeof(T) == typeof(long)) + { + SetInt64(fieldName, (long)(object)value!); + } + else if (typeof(T) == typeof(ulong)) + { + SetUInt64(fieldName, (ulong)(object)value!); + } + else if (typeof(T) == typeof(float)) + { + SetFloat(fieldName, (float)(object)value!); + } + else if (typeof(T) == typeof(double)) + { + SetDouble(fieldName, (double)(object)value!); + } + else if (typeof(T) == typeof(string)) + { + SetString(fieldName, (string)(object)value!); + } + else if (typeof(T) == typeof(byte[])) + { + SetBytes(fieldName, (byte[])(object)value!); + } + else if (typeof(T) == typeof(Vector2D)) + { + SetVector2D(fieldName, (Vector2D)(object)value!); + } + else if (typeof(T) == typeof(Vector)) + { + SetVector(fieldName, (Vector)(object)value!); + } + else if (typeof(T) == typeof(Color)) + { + SetColor(fieldName, (Color)(object)value!); + } + else if (typeof(T) == typeof(QAngle)) + { + SetQAngle(fieldName, (QAngle)(object)value!); + } + else + { + throw new InvalidOperationException($"Invalid type: {typeof(T)}"); + } + } + + public void Add( string fieldName, T value ) + { + if (typeof(T) == typeof(bool)) + { + AddBool(fieldName, (bool)(object)value!); + } + else if (typeof(T) == typeof(int)) + { + AddInt32(fieldName, (int)(object)value!); + } + else if (typeof(T) == typeof(uint)) + { + AddUInt32(fieldName, (uint)(object)value!); + } + else if (typeof(T) == typeof(long)) + { + AddInt64(fieldName, (long)(object)value!); + } + else if (typeof(T) == typeof(ulong)) + { + AddUInt64(fieldName, (ulong)(object)value!); + } + else if (typeof(T) == typeof(float)) + { + AddFloat(fieldName, (float)(object)value!); + } + else if (typeof(T) == typeof(double)) + { + AddDouble(fieldName, (double)(object)value!); + } + else if (typeof(T) == typeof(string)) + { + AddString(fieldName, (string)(object)value!); + } + else if (typeof(T) == typeof(byte[])) + { + AddBytes(fieldName, (byte[])(object)value!); + } + else if (typeof(T) == typeof(Vector2D)) + { + AddVector2D(fieldName, (Vector2D)(object)value!); + } + else if (typeof(T) == typeof(Vector)) + { + AddVector(fieldName, (Vector)(object)value!); + } + else if (typeof(T) == typeof(Color)) + { + AddColor(fieldName, (Color)(object)value!); + } + else if (typeof(T) == typeof(QAngle)) + { + AddQAngle(fieldName, (QAngle)(object)value!); + } + // HOW THE FUCK I FORGOT TO ADD A ELSE HERE + // this mf exception throws silently and fuck my stacktrace, my debugger and my life + // fuck me + // -- @samyyc + else + { + throw new InvalidOperationException($"Invalid type: {typeof(T)}"); + } + } + + public void SetRepeated( string fieldName, int index, T value ) + { + if (typeof(T) == typeof(bool)) + { + SetRepeatedBool(fieldName, index, (bool)(object)value!); + } + else if (typeof(T) == typeof(int)) + { + SetRepeatedInt32(fieldName, index, (int)(object)value!); + } + else if (typeof(T) == typeof(uint)) + { + SetRepeatedUInt32(fieldName, index, (uint)(object)value!); + } + else if (typeof(T) == typeof(long)) + { + SetRepeatedInt64(fieldName, index, (long)(object)value!); + } + else if (typeof(T) == typeof(ulong)) + { + SetRepeatedUInt64(fieldName, index, (ulong)(object)value!); + } + else if (typeof(T) == typeof(float)) + { + SetRepeatedFloat(fieldName, index, (float)(object)value!); + } + else if (typeof(T) == typeof(double)) + { + SetRepeatedDouble(fieldName, index, (double)(object)value!); + } + else if (typeof(T) == typeof(string)) + { + SetRepeatedString(fieldName, index, (string)(object)value!); + } + else if (typeof(T) == typeof(byte[])) + { + SetRepeatedBytes(fieldName, index, (byte[])(object)value!); + } + else if (typeof(T) == typeof(Vector2D)) + { + SetRepeatedVector2D(fieldName, index, (Vector2D)(object)value!); + } + else if (typeof(T) == typeof(Vector)) + { + SetRepeatedVector(fieldName, index, (Vector)(object)value!); + } + else if (typeof(T) == typeof(Color)) + { + SetRepeatedColor(fieldName, index, (Color)(object)value!); + } + else if (typeof(T) == typeof(QAngle)) + { + SetRepeatedQAngle(fieldName, index, (QAngle)(object)value!); + } + else + { + throw new InvalidOperationException($"Invalid type: {typeof(T)}"); + } + } + + public T GetRepeated( string fieldName, int index ) + { + if (typeof(T) == typeof(bool)) + { + return (T)(object)GetRepeatedBool(fieldName, index); + } + else if (typeof(T) == typeof(int)) + { + return (T)(object)GetRepeatedInt32(fieldName, index); + } + else if (typeof(T) == typeof(uint)) + { + return (T)(object)GetRepeatedUInt32(fieldName, index); + } + else if (typeof(T) == typeof(long)) + { + return (T)(object)GetRepeatedInt64(fieldName, index); + } + else if (typeof(T) == typeof(ulong)) + { + return (T)(object)GetRepeatedUInt64(fieldName, index); + } + else if (typeof(T) == typeof(float)) + { + return (T)(object)GetRepeatedFloat(fieldName, index); + } + else if (typeof(T) == typeof(double)) + { + return (T)(object)GetRepeatedDouble(fieldName, index); + } + else if (typeof(T) == typeof(string)) + { + return (T)(object)GetRepeatedString(fieldName, index); + } + else if (typeof(T) == typeof(byte[])) + { + return (T)(object)GetRepeatedBytes(fieldName, index); + } + else if (typeof(T) == typeof(Vector2D)) + { + return (T)(object)GetRepeatedVector2D(fieldName, index); + } + else if (typeof(T) == typeof(Vector)) + { + return (T)(object)GetRepeatedVector(fieldName, index); + } + else if (typeof(T) == typeof(Color)) + { + return (T)(object)GetRepeatedColor(fieldName, index); + } + else if (typeof(T) == typeof(QAngle)) + { + return (T)(object)GetRepeatedQAngle(fieldName, index); + } + throw new InvalidOperationException($"Invalid type: {typeof(T)}"); } - throw new InvalidOperationException($"Invalid type: {typeof(T)}"); - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/NetMessages/ProtobufRepeatedField.cs b/managed/src/SwiftlyS2.Core/Modules/NetMessages/ProtobufRepeatedField.cs index bdf4a0801..1fdc7876a 100644 --- a/managed/src/SwiftlyS2.Core/Modules/NetMessages/ProtobufRepeatedField.cs +++ b/managed/src/SwiftlyS2.Core/Modules/NetMessages/ProtobufRepeatedField.cs @@ -1,125 +1,131 @@ using System.Collections; -using SwiftlyS2.Core.Natives.NativeObjects; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Core.NetMessages; internal class ProtobufRepeatedFieldValueType : IProtobufRepeatedFieldValueType { - private IProtobufAccessor _Protobuf { get; init; } - private string _FieldName { get; init; } - public ProtobufRepeatedFieldValueType(IProtobufAccessor protobuf, string fieldName) - { - _Protobuf = protobuf; - _FieldName = fieldName; - } - - public T this[int index] { - get => _Protobuf.GetRepeated(_FieldName, index); - set => _Protobuf.SetRepeated(_FieldName, index, value); - } - - public int Count => _Protobuf.GetRepeatedFieldSize(_FieldName); - - public bool IsReadOnly => false; - - public void Add(T item) - { - _Protobuf.Add(_FieldName, item); - } - - public void Clear() - { - _Protobuf.ClearRepeatedField(_FieldName); - } - - public bool Contains(T item) - { - for (int i = 0; i < Count; i++) { - if (this[i].Equals(item)) { - return true; - } - } - return false; - } - - public void CopyTo(T[] array, int arrayIndex) - { - for (int i = 0; i < Count; i++) { - array[arrayIndex + i] = this[i]; - } - } - - public IEnumerator GetEnumerator() - { - foreach (var item in this) { - yield return item; - } - } - - public int IndexOf(T item) - { - for (int i = 0; i < Count; i++) { - if (this[i].Equals(item)) { - return i; - } - } - return -1; - } - - public void Insert(int index, T item) - { - _Protobuf.Add(_FieldName, item); - } - - public bool Remove(T item) - { - throw new NotSupportedException("Removing element from a protobuf repeated field is not supported."); - } - - public void RemoveAt(int index) - { - throw new NotSupportedException("Removing element from a protobuf repeated field is not supported."); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } + private IProtobufAccessor _Protobuf { get; init; } + private string _FieldName { get; init; } + public ProtobufRepeatedFieldValueType( IProtobufAccessor protobuf, string fieldName ) + { + _Protobuf = protobuf; + _FieldName = fieldName; + } + + public T this[int index] { + get => _Protobuf.GetRepeated(_FieldName, index); + set => _Protobuf.SetRepeated(_FieldName, index, value); + } + + public int Count => _Protobuf.GetRepeatedFieldSize(_FieldName); + + public bool IsReadOnly => false; + + public void Add( T item ) + { + _Protobuf.Add(_FieldName, item); + } + + public void Clear() + { + _Protobuf.ClearRepeatedField(_FieldName); + } + + public bool Contains( T item ) + { + for (var i = 0; i < Count; i++) + { + if (this[i].Equals(item)) + { + return true; + } + } + return false; + } + + public void CopyTo( T[] array, int arrayIndex ) + { + for (var i = 0; i < Count; i++) + { + array[arrayIndex + i] = this[i]; + } + } + + public IEnumerator GetEnumerator() + { + foreach (var item in this) + { + yield return item; + } + } + + public int IndexOf( T item ) + { + for (var i = 0; i < Count; i++) + { + if (this[i].Equals(item)) + { + return i; + } + } + return -1; + } + + public void Insert( int index, T item ) + { + _Protobuf.Add(_FieldName, item); + } + + public bool Remove( T item ) + { + throw new NotSupportedException("Removing element from a protobuf repeated field is not supported."); + } + + public void RemoveAt( int index ) + { + throw new NotSupportedException("Removing element from a protobuf repeated field is not supported."); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } } internal class ProtobufRepeatedFieldSubMessageType : IProtobufRepeatedFieldSubMessageType where T : ITypedProtobuf { - private IProtobufAccessor _Protobuf { get; init; } - private string _FieldName { get; init; } - - public int Count => _Protobuf.GetRepeatedFieldSize(_FieldName); - - public ProtobufRepeatedFieldSubMessageType(IProtobufAccessor protobuf, string fieldName) - { - _Protobuf = protobuf; - _FieldName = fieldName; - } - - public T Get(int index) - { - return T.Wrap(_Protobuf.GetRepeatedNestedMessage(_FieldName, index), false); - } - public T Add() - { - return T.Wrap(_Protobuf.AddNestedMessage(_FieldName), false); - } - - public IEnumerator GetEnumerator() - { - for (int i = 0; i < Count; i++) { - yield return Get(i); - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } + private IProtobufAccessor _Protobuf { get; init; } + private string _FieldName { get; init; } + + public int Count => _Protobuf.GetRepeatedFieldSize(_FieldName); + + public ProtobufRepeatedFieldSubMessageType( IProtobufAccessor protobuf, string fieldName ) + { + _Protobuf = protobuf; + _FieldName = fieldName; + } + + public T Get( int index ) + { + return T.Wrap(_Protobuf.GetRepeatedNestedMessage(_FieldName, index), false); + } + public T Add() + { + return T.Wrap(_Protobuf.AddNestedMessage(_FieldName), false); + } + + public IEnumerator GetEnumerator() + { + for (var i = 0; i < Count; i++) + { + yield return Get(i); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/NetMessages/TypedProtobuf.cs b/managed/src/SwiftlyS2.Core/Modules/NetMessages/TypedProtobuf.cs index 54d1ba347..6ced80962 100644 --- a/managed/src/SwiftlyS2.Core/Modules/NetMessages/TypedProtobuf.cs +++ b/managed/src/SwiftlyS2.Core/Modules/NetMessages/TypedProtobuf.cs @@ -1,5 +1,3 @@ -using SwiftlyS2.Core.Natives; -using SwiftlyS2.Core.Natives.NativeObjects; using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; @@ -8,14 +6,14 @@ namespace SwiftlyS2.Core.NetMessages; internal class TypedProtobuf : INativeHandle where T : ITypedProtobuf { - public IProtobufAccessor Accessor { get; private init; } + public IProtobufAccessor Accessor { get; private init; } - public TypedProtobuf(nint handle) - { - Accessor = new ProtobufAccessor(handle); - } + public TypedProtobuf( nint handle ) + { + Accessor = new ProtobufAccessor(handle); + } - public nint Address => Accessor.Address; + public nint Address => Accessor.Address; - public bool IsValid => Accessor.IsValid; + public bool IsValid => Accessor.IsValid; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Permissions/PermissionCacheKey.cs b/managed/src/SwiftlyS2.Core/Modules/Permissions/PermissionCacheKey.cs index cef754584..88aa07167 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Permissions/PermissionCacheKey.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Permissions/PermissionCacheKey.cs @@ -1,15 +1,18 @@ namespace SwiftlyS2.Core.Permissions; -internal readonly struct PermissionCacheKey : IEquatable { - public required ulong PlayerId { get; init; } - public required string Permission { get; init; } - private static readonly StringComparer StrCmp = StringComparer.OrdinalIgnoreCase; +internal readonly struct PermissionCacheKey : IEquatable +{ + public required ulong PlayerId { get; init; } + public required string Permission { get; init; } + private static readonly StringComparer StrCmp = StringComparer.OrdinalIgnoreCase; - public bool Equals(PermissionCacheKey other) { - return PlayerId == other.PlayerId && StrCmp.Equals(Permission, other.Permission); - } + public bool Equals( PermissionCacheKey other ) + { + return PlayerId == other.PlayerId && StrCmp.Equals(Permission, other.Permission); + } - public override int GetHashCode() { - return HashCode.Combine(PlayerId, Permission.GetHashCode(StringComparison.OrdinalIgnoreCase)); - } + public override int GetHashCode() + { + return HashCode.Combine(PlayerId, Permission.GetHashCode(StringComparison.OrdinalIgnoreCase)); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Permissions/PermissionManager.cs b/managed/src/SwiftlyS2.Core/Modules/Permissions/PermissionManager.cs index 457ee92ad..e55437990 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Permissions/PermissionManager.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Permissions/PermissionManager.cs @@ -1,4 +1,3 @@ -using System.Collections.Concurrent; using System.Collections.Immutable; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; @@ -11,244 +10,244 @@ namespace SwiftlyS2.Core.Permissions; internal class PermissionManager : IPermissionManager { - private Dictionary> _playerPermissions = new(); - private Dictionary> _temporaryPlayerPermissions = new(); - private Dictionary> _subPermissions = new(); - private Dictionary> _temporarySubPermissions = new(); - private List _defaultPermissions = new(); - private ImmutableDictionary _queryCache = ImmutableDictionary.Create(); - private object _lock = new(); + private Dictionary> _playerPermissions = []; + private readonly Dictionary> _temporaryPlayerPermissions = []; + private Dictionary> _subPermissions = []; + private readonly Dictionary> _temporarySubPermissions = []; + private List _defaultPermissions = []; + private ImmutableDictionary _queryCache = ImmutableDictionary.Create(); + private readonly object _lock = new(); - public PermissionManager( IOptionsMonitor options, ILogger logger ) - { - LoadPermissions(options.CurrentValue); - - options.OnChange(( config ) => - { - try - { - logger.LogInformation("Permission config changed, reloading..."); - LoadPermissions(config); - logger.LogInformation("Permission config reloaded."); - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - logger.LogError(e, "Error reloading permission config."); - } - }); - } - - private void LoadPermissions( PermissionConfig config ) - { - lock (_lock) + public PermissionManager( IOptionsMonitor options, ILogger logger ) { - _queryCache = _queryCache.Clear(); - _defaultPermissions = config.PermissionGroups.ContainsKey("__default") ? config.PermissionGroups["__default"] : []; - _playerPermissions = config.Players.ToDictionary(x => ulong.Parse(x.Key), x => x.Value); - _subPermissions = config.PermissionGroups; - } - } - - private List GetPlayerPermissions( ulong playerId ) - { - List permissions = new(); + LoadPermissions(options.CurrentValue); - if (_playerPermissions.TryGetValue(playerId, out var playerPermission)) - { - permissions.AddRange(playerPermission); + _ = options.OnChange(( config ) => + { + try + { + logger.LogInformation("Permission config changed, reloading..."); + LoadPermissions(config); + logger.LogInformation("Permission config reloaded."); + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + logger.LogError(e, "Error reloading permission config."); + } + }); + } + + private void LoadPermissions( PermissionConfig config ) + { + lock (_lock) + { + _queryCache = _queryCache.Clear(); + _defaultPermissions = config.PermissionGroups.ContainsKey("__default") ? config.PermissionGroups["__default"] : []; + _playerPermissions = config.Players.ToDictionary(x => ulong.Parse(x.Key), x => x.Value); + _subPermissions = config.PermissionGroups; + } } - if (_temporaryPlayerPermissions.TryGetValue(playerId, out var temporaryPermissions)) + private List GetPlayerPermissions( ulong playerId ) { - permissions.AddRange(temporaryPermissions); - } + List permissions = []; - permissions.AddRange(_defaultPermissions); + if (_playerPermissions.TryGetValue(playerId, out var playerPermission)) + { + permissions.AddRange(playerPermission); + } - return permissions; - } + if (_temporaryPlayerPermissions.TryGetValue(playerId, out var temporaryPermissions)) + { + permissions.AddRange(temporaryPermissions); + } - private Dictionary> GetSubPermissions() - { - var result = new Dictionary>(); + permissions.AddRange(_defaultPermissions); - foreach (var kvp in _subPermissions) - { - result[kvp.Key] = [.. kvp.Value]; + return permissions; } - foreach (var kvp in _temporarySubPermissions) + private Dictionary> GetSubPermissions() { - if (result.TryGetValue(kvp.Key, out var existingPermissions)) - { - var permissionSet = new HashSet(existingPermissions); - foreach (var perm in kvp.Value) - { - permissionSet.Add(perm); - } - result[kvp.Key] = permissionSet.ToList(); - } - else - { - result[kvp.Key] = [.. kvp.Value]; - } - } - - return result; - } + var result = new Dictionary>(); - private bool IsEqual( string from, string target ) - { - if (from == "*") - { - return true; - } - if (!from.Contains("*")) - { - return string.Equals(from, target, StringComparison.OrdinalIgnoreCase); - } + foreach (var kvp in _subPermissions) + { + result[kvp.Key] = [.. kvp.Value]; + } - var prefix = from[..^2]; - return target.StartsWith(prefix, StringComparison.OrdinalIgnoreCase); - } + foreach (var kvp in _temporarySubPermissions) + { + if (result.TryGetValue(kvp.Key, out var existingPermissions)) + { + var permissionSet = new HashSet(existingPermissions); + foreach (var perm in kvp.Value) + { + _ = permissionSet.Add(perm); + } + result[kvp.Key] = permissionSet.ToList(); + } + else + { + result[kvp.Key] = [.. kvp.Value]; + } + } - private bool HasNestedPermission( string rootPermission, string targetPermission, HashSet visitedPermissions ) - { - if (visitedPermissions.Contains(rootPermission)) - { - AnsiConsole.WriteLine("Loop detected for permission: " + rootPermission); - return false; + return result; } - visitedPermissions.Add(rootPermission); - - if (IsEqual(rootPermission, targetPermission)) + private bool IsEqual( string from, string target ) { - return true; + if (from == "*") + { + return true; + } + if (!from.Contains("*")) + { + return string.Equals(from, target, StringComparison.OrdinalIgnoreCase); + } + + var prefix = from[..^2]; + return target.StartsWith(prefix, StringComparison.OrdinalIgnoreCase); } - if (GetSubPermissions().TryGetValue(rootPermission, out var subPermissions)) + private bool HasNestedPermission( string rootPermission, string targetPermission, HashSet visitedPermissions ) { - foreach (var subPermission in subPermissions) - { - if (HasNestedPermission(subPermission, targetPermission, visitedPermissions)) + if (visitedPermissions.Contains(rootPermission)) { - return true; + AnsiConsole.WriteLine("Loop detected for permission: " + rootPermission); + return false; } - } - } - return false; - } + _ = visitedPermissions.Add(rootPermission); - public bool PlayerHasPermission( ulong playerId, string permission ) - { - var key = new PermissionCacheKey { PlayerId = playerId, Permission = permission }; - if (_queryCache.TryGetValue(key, out var result)) - { - return result; - } + if (IsEqual(rootPermission, targetPermission)) + { + return true; + } - lock (_lock) - { - var permissions = GetPlayerPermissions(playerId); + if (GetSubPermissions().TryGetValue(rootPermission, out var subPermissions)) + { + foreach (var subPermission in subPermissions) + { + if (HasNestedPermission(subPermission, targetPermission, visitedPermissions)) + { + return true; + } + } + } - if (permissions.Count == 0) - { - _queryCache = _queryCache.Add(key, false); return false; - } + } - if (permissions.Any(p => IsEqual(p, permission))) - { - _queryCache = _queryCache.Add(key, true); - return true; - } + public bool PlayerHasPermission( ulong playerId, string permission ) + { + var key = new PermissionCacheKey { PlayerId = playerId, Permission = permission }; + if (_queryCache.TryGetValue(key, out var result)) + { + return result; + } - foreach (var perm in permissions) - { - if (HasNestedPermission(perm, permission, new HashSet())) + lock (_lock) { - _queryCache = _queryCache.Add(key, true); - return true; + var permissions = GetPlayerPermissions(playerId); + + if (permissions.Count == 0) + { + _queryCache = _queryCache.Add(key, false); + return false; + } + + if (permissions.Any(p => IsEqual(p, permission))) + { + _queryCache = _queryCache.Add(key, true); + return true; + } + + foreach (var perm in permissions) + { + if (HasNestedPermission(perm, permission, [])) + { + _queryCache = _queryCache.Add(key, true); + return true; + } + } + + _queryCache = _queryCache.Add(key, false); + return false; } - } - _queryCache = _queryCache.Add(key, false); - return false; } - } - - public void AddPermission( ulong playerId, string permission ) - { - lock (_lock) + public void AddPermission( ulong playerId, string permission ) { - if (_temporaryPlayerPermissions.TryGetValue(playerId, out var permissions)) - { - if (!permissions.Contains(permission)) + lock (_lock) { - permissions.Add(permission); + if (_temporaryPlayerPermissions.TryGetValue(playerId, out var permissions)) + { + if (!permissions.Contains(permission)) + { + permissions.Add(permission); + } + } + else + { + _temporaryPlayerPermissions[playerId] = [permission]; + } + + _queryCache = _queryCache.Clear(); } - } - else - { - _temporaryPlayerPermissions[playerId] = [permission]; - } - - _queryCache = _queryCache.Clear(); } - } - public void RemovePermission( ulong playerId, string permission ) - { - lock (_lock) + public void RemovePermission( ulong playerId, string permission ) { - if (_temporaryPlayerPermissions.TryGetValue(playerId, out var permissions)) - { - if (permissions.Contains(permission)) + lock (_lock) { - permissions.Remove(permission); + if (_temporaryPlayerPermissions.TryGetValue(playerId, out var permissions)) + { + if (permissions.Contains(permission)) + { + _ = permissions.Remove(permission); + } + } } - } - } - _queryCache = _queryCache.Clear(); - } + _queryCache = _queryCache.Clear(); + } - public void AddSubPermission( string permission, string subPermission ) - { - lock (_lock) + public void AddSubPermission( string permission, string subPermission ) { - if (_temporarySubPermissions.TryGetValue(permission, out var subPermissions)) - { - if (!subPermissions.Contains(subPermission)) + lock (_lock) { - subPermissions.Add(subPermission); + if (_temporarySubPermissions.TryGetValue(permission, out var subPermissions)) + { + if (!subPermissions.Contains(subPermission)) + { + subPermissions.Add(subPermission); + } + } + else + { + _temporarySubPermissions[permission] = [subPermission]; + } } - } - else - { - _temporarySubPermissions[permission] = [subPermission]; - } + _queryCache = _queryCache.Clear(); } - _queryCache = _queryCache.Clear(); - } - public void RemoveSubPermission( string permission, string subPermission ) - { - lock (_lock) + public void RemoveSubPermission( string permission, string subPermission ) { - if (_temporarySubPermissions.TryGetValue(permission, out var subPermissions)) - { - if (subPermissions.Contains(subPermission)) + lock (_lock) { - subPermissions.Remove(subPermission); + if (_temporarySubPermissions.TryGetValue(permission, out var subPermissions)) + { + if (subPermissions.Contains(subPermission)) + { + _ = subPermissions.Remove(subPermission); + } + } } - } - } - _queryCache = _queryCache.Clear(); - } + _queryCache = _queryCache.Clear(); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Players/Player.cs b/managed/src/SwiftlyS2.Core/Modules/Players/Player.cs index 7976dc504..b47ecaceb 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Players/Player.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Players/Player.cs @@ -1,4 +1,4 @@ -using SwiftlyS2.Core.Natives; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.SchemaDefinitions; using SwiftlyS2.Shared.Events; using SwiftlyS2.Shared.Natives; diff --git a/managed/src/SwiftlyS2.Core/Modules/Players/PlayerManagerService.cs b/managed/src/SwiftlyS2.Core/Modules/Players/PlayerManagerService.cs index 815319bee..e9096bef5 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Players/PlayerManagerService.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Players/PlayerManagerService.cs @@ -1,8 +1,7 @@ -using SwiftlyS2.Core.Natives; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.SchemaDefinitions; using SwiftlyS2.Shared.Players; using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.Services; namespace SwiftlyS2.Core.Players; @@ -46,13 +45,13 @@ public IEnumerable GetAllPlayers() private static ulong SteamIDToSteamID64( string steamID ) { - string[] parts = steamID.Split(':'); + var parts = steamID.Split(':'); if (parts.Length != 3) return 0; - int X = int.Parse(parts[1]); - int Y = int.Parse(parts[2]); + var X = int.Parse(parts[1]); + var Y = int.Parse(parts[2]); - ulong steamID64 = (ulong)Y * 2 + (ulong)X + 76561197960265728UL; + var steamID64 = (ulong)Y * 2 + (ulong)X + 76561197960265728UL; return steamID64; } @@ -61,7 +60,7 @@ public IEnumerable FindTargettedPlayers( IPlayer player, string target, { IEnumerable allPlayers = []; - for (int i = 0; i < PlayerCap; i++) + for (var i = 0; i < PlayerCap; i++) { if (!IsPlayerOnline(i)) continue; @@ -142,7 +141,7 @@ public IEnumerable FindTargettedPlayers( IPlayer player, string target, } else if (target.StartsWith('#')) { - if (int.TryParse(target[1..], out int id) && targetPlayer.PlayerID == id) + if (int.TryParse(target[1..], out var id) && targetPlayer.PlayerID == id) { allPlayers = allPlayers.Append(targetPlayer); } @@ -151,7 +150,7 @@ public IEnumerable FindTargettedPlayers( IPlayer player, string target, { allPlayers = allPlayers.Append(targetPlayer); } - else if (ulong.TryParse(target, out ulong steamId) && targetPlayer.SteamID == steamId) + else if (ulong.TryParse(target, out var steamId) && targetPlayer.SteamID == steamId) { allPlayers = allPlayers.Append(targetPlayer); } diff --git a/managed/src/SwiftlyS2.Core/Modules/Plugins/DependencyResolver.cs b/managed/src/SwiftlyS2.Core/Modules/Plugins/DependencyResolver.cs index e56133b7f..1ee248898 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Plugins/DependencyResolver.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Plugins/DependencyResolver.cs @@ -1,13 +1,13 @@ -using Mono.Cecil; using Microsoft.Extensions.Logging; +using Mono.Cecil; namespace SwiftlyS2.Core.Modules.Plugins; internal class DependencyResolver { private readonly ILogger _logger; - private readonly Dictionary> _dependencyGraph = new(); - private readonly Dictionary _pluginPaths = new(); + private readonly Dictionary> _dependencyGraph = []; + private readonly Dictionary _pluginPaths = []; public DependencyResolver( ILogger logger ) { @@ -31,7 +31,7 @@ private void ReadDependencies( string pluginDir, ref Dictionary if (!_dependencyGraph.ContainsKey(assemblyName)) { - _dependencyGraph[assemblyName] = new List(); + _dependencyGraph[assemblyName] = []; } _logger.LogDebug($"Found export assembly: {assemblyName} at {exportFile}"); @@ -128,7 +128,7 @@ private void TopologicalSort( return; } - visiting.Add(assembly); + _ = visiting.Add(assembly); if (_dependencyGraph.TryGetValue(assembly, out var dependencies)) { @@ -138,8 +138,8 @@ private void TopologicalSort( } } - visiting.Remove(assembly); - visited.Add(assembly); + _ = visiting.Remove(assembly); + _ = visited.Add(assembly); result.Add(assembly); } private string BuildCyclePath( string start, HashSet visiting ) diff --git a/managed/src/SwiftlyS2.Core/Modules/Plugins/InterfaceManager.cs b/managed/src/SwiftlyS2.Core/Modules/Plugins/InterfaceManager.cs index ed8d229c6..e4b2d492a 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Plugins/InterfaceManager.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Plugins/InterfaceManager.cs @@ -5,44 +5,42 @@ namespace SwiftlyS2.Core.Modules.Plugins; internal class InterfaceManager : IInterfaceManager, IDisposable { - private ServiceCollection _ServiceCollection { get; set; } = new(); - private ServiceProvider? _ServiceProvider { get; set; } - private List _RegisteredStrings { get; init; } = new(); - public void AddSharedInterface(string key, TImpl implInstance) - where TInterface : class - where TImpl : class, TInterface - { - if (_RegisteredStrings.Contains(key)) + private ServiceCollection _ServiceCollection { get; set; } = new(); + private ServiceProvider? _ServiceProvider { get; set; } + private List _RegisteredStrings { get; init; } = []; + public void AddSharedInterface( string key, TImpl implInstance ) + where TInterface : class + where TImpl : class, TInterface { - throw new Exception($"Interface {key} is already registered."); + if (_RegisteredStrings.Contains(key)) + { + throw new Exception($"Interface {key} is already registered."); + } + _RegisteredStrings.Add(key); + _ = _ServiceCollection.AddKeyedSingleton(key, implInstance); } - _RegisteredStrings.Add(key); - _ServiceCollection.AddKeyedSingleton(key, implInstance); - } - public bool HasSharedInterface(string key) - { - return _RegisteredStrings.Contains(key); - } + public bool HasSharedInterface( string key ) + { + return _RegisteredStrings.Contains(key); + } - public TInterface GetSharedInterface(string key) where TInterface : class - { - if (_ServiceProvider == null) + public TInterface GetSharedInterface( string key ) where TInterface : class { - throw new Exception("InterfaceManager is not built."); + return _ServiceProvider == null + ? throw new Exception("InterfaceManager is not built.") + : _ServiceProvider!.GetRequiredKeyedService(key); } - return _ServiceProvider!.GetRequiredKeyedService(key); - } - public void Build() - { - _ServiceProvider = _ServiceCollection.BuildServiceProvider(); - } + public void Build() + { + _ServiceProvider = _ServiceCollection.BuildServiceProvider(); + } - public void Dispose() - { - _ServiceProvider?.Dispose(); - _ServiceCollection = new(); - _RegisteredStrings.Clear(); - } + public void Dispose() + { + _ServiceProvider?.Dispose(); + _ServiceCollection = new(); + _RegisteredStrings.Clear(); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Plugins/PluginManager.cs b/managed/src/SwiftlyS2.Core/Modules/Plugins/PluginManager.cs index a2e9c3f5f..d69b89b0b 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Plugins/PluginManager.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Plugins/PluginManager.cs @@ -2,8 +2,8 @@ using System.Runtime.Loader; using McMaster.NETCore.Plugins; using Microsoft.Extensions.Logging; -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.Modules.Plugins; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.Services; using SwiftlyS2.Shared; using SwiftlyS2.Shared.Plugins; @@ -15,13 +15,13 @@ internal class PluginManager private IServiceProvider _Provider { get; init; } private RootDirService _RootDirService { get; init; } private ILogger _Logger { get; init; } - private List _Plugins { get; } = new(); + private List _Plugins { get; } = []; private FileSystemWatcher? _Watcher { get; set; } private InterfaceManager _InterfaceManager { get; set; } = new(); - private List _SharedTypes { get; set; } = new(); + private List _SharedTypes { get; set; } = []; private DataDirectoryService _DataDirectoryService { get; init; } private DateTime lastRead = DateTime.MinValue; - private readonly HashSet reloadingPlugins = new(); + private readonly HashSet reloadingPlugins = []; public PluginManager( IServiceProvider provider, @@ -288,6 +288,11 @@ private void LoadPlugins() LoadPluginsFromFolder(_RootDirService.GetPluginsRoot()); RebuildSharedServices(); + + _Plugins + .Where(p => p.Status == PluginStatus.Loaded) + .ToList() + .ForEach(p => p.Plugin!.OnAllPluginsLoaded()); } public List GetPlugins() @@ -311,6 +316,11 @@ private void RebuildSharedServices() .Where(p => p.Status == PluginStatus.Loaded) .ToList() .ForEach(p => p.Plugin!.UseSharedInterface(_InterfaceManager)); + + _Plugins + .Where(p => p.Status == PluginStatus.Loaded) + .ToList() + .ForEach(p => p.Plugin!.OnSharedInterfaceInjected(_InterfaceManager)); } diff --git a/managed/src/SwiftlyS2.Core/Modules/Plugins/PluginStatus.cs b/managed/src/SwiftlyS2.Core/Modules/Plugins/PluginStatus.cs index 7c2681b07..e780108bb 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Plugins/PluginStatus.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Plugins/PluginStatus.cs @@ -1,9 +1,10 @@ namespace SwiftlyS2.Core.Services; -internal enum PluginStatus { +internal enum PluginStatus +{ - Loaded, - Unloaded, - Loading, - Error, + Loaded, + Unloaded, + Loading, + Error, } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Plugins/SwiftlyCore.cs b/managed/src/SwiftlyS2.Core/Modules/Plugins/SwiftlyCore.cs index 177c6223c..e756a5bf4 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Plugins/SwiftlyCore.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Plugins/SwiftlyCore.cs @@ -1,46 +1,46 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; +using SwiftlyS2.Core.AttributeParsers; +using SwiftlyS2.Core.CommandLine; using SwiftlyS2.Core.Commands; using SwiftlyS2.Core.ConsoleOutput; +using SwiftlyS2.Core.Convars; +using SwiftlyS2.Core.Database; +using SwiftlyS2.Core.EntitySystem; using SwiftlyS2.Core.Events; +using SwiftlyS2.Core.FileSystem; using SwiftlyS2.Core.GameEvents; +using SwiftlyS2.Core.Hooks; +using SwiftlyS2.Core.Memory; +using SwiftlyS2.Core.Menus; using SwiftlyS2.Core.Misc; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; +using SwiftlyS2.Core.Permissions; +using SwiftlyS2.Core.Players; +using SwiftlyS2.Core.Profiler; +using SwiftlyS2.Core.Scheduler; +using SwiftlyS2.Core.Translations; using SwiftlyS2.Shared; -using SwiftlyS2.Shared.Events; -using SwiftlyS2.Shared.GameEvents; +using SwiftlyS2.Shared.CommandLine; using SwiftlyS2.Shared.Commands; using SwiftlyS2.Shared.ConsoleOutput; -using SwiftlyS2.Shared.NetMessages; -using SwiftlyS2.Shared.Services; -using SwiftlyS2.Core.AttributeParsers; -using SwiftlyS2.Core.EntitySystem; -using SwiftlyS2.Shared.EntitySystem; -using SwiftlyS2.Core.Convars; using SwiftlyS2.Shared.Convars; -using SwiftlyS2.Core.Hooks; -using SwiftlyS2.Shared.Profiler; -using SwiftlyS2.Core.Profiler; -using SwiftlyS2.Shared.Memory; -using SwiftlyS2.Core.Memory; -using SwiftlyS2.Shared.Scheduler; -using SwiftlyS2.Core.Scheduler; -using SwiftlyS2.Core.Database; using SwiftlyS2.Shared.Database; -using SwiftlyS2.Core.Translations; -using SwiftlyS2.Core.Permissions; -using SwiftlyS2.Shared.Permissions; -using SwiftlyS2.Core.Menus; +using SwiftlyS2.Shared.EntitySystem; +using SwiftlyS2.Shared.Events; +using SwiftlyS2.Shared.FileSystem; +using SwiftlyS2.Shared.GameEvents; +using SwiftlyS2.Shared.Helpers; +using SwiftlyS2.Shared.Memory; using SwiftlyS2.Shared.Menus; +using SwiftlyS2.Shared.NetMessages; +using SwiftlyS2.Shared.Permissions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.Profiler; +using SwiftlyS2.Shared.Scheduler; +using SwiftlyS2.Shared.Services; using SwiftlyS2.Shared.Translation; -using SwiftlyS2.Core.Players; -using SwiftlyS2.Shared.CommandLine; -using SwiftlyS2.Core.CommandLine; -using SwiftlyS2.Shared.Helpers; -using SwiftlyS2.Core.Natives; -using SwiftlyS2.Core.FileSystem; -using SwiftlyS2.Shared.FileSystem; namespace SwiftlyS2.Core.Services; @@ -114,7 +114,7 @@ public SwiftlyCore( string contextId, string contextBaseDirectory, PluginMetadat .AddSingleton() .AddSingleton() .AddSingleton() - .AddSingleton(provider => provider.GetRequiredService().GetLocalizer()) + .AddSingleton(provider => provider.GetRequiredService().GetLocalizer()) .AddSingleton() // .AddSingleton() .AddSingleton() diff --git a/managed/src/SwiftlyS2.Core/Modules/Profiler/IContextedProfilerService.cs b/managed/src/SwiftlyS2.Core/Modules/Profiler/IContextedProfilerService.cs index 91678b0b2..88dec8f03 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Profiler/IContextedProfilerService.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Profiler/IContextedProfilerService.cs @@ -3,29 +3,35 @@ namespace SwiftlyS2.Core.Profiler; -internal class ContextedProfilerService : IContextedProfilerService { - - private string _Name { get; init; } - private ProfileService _ProfileService { get; init; } - - public ContextedProfilerService(CoreContext context, ProfileService profileService) { - _Name = context.Name; - _ProfileService = profileService; - } - - public void StartRecording(string name) { - _ProfileService.StartRecordingWithIdentifier(_Name, name); - } - - public void StopRecording(string name) { - _ProfileService.StopRecordingWithIdentifier(_Name, name); - } - - public void RecordTime(string name, double duration) { - _ProfileService.RecordTimeWithIdentifier(_Name, name, duration); - } - - public string GeneratePerformanceTraceJson() { - return _ProfileService.GenerateJSONPerformance(_Name); - } +internal class ContextedProfilerService : IContextedProfilerService +{ + + private string _Name { get; init; } + private ProfileService _ProfileService { get; init; } + + public ContextedProfilerService( CoreContext context, ProfileService profileService ) + { + _Name = context.Name; + _ProfileService = profileService; + } + + public void StartRecording( string name ) + { + _ProfileService.StartRecordingWithIdentifier(_Name, name); + } + + public void StopRecording( string name ) + { + _ProfileService.StopRecordingWithIdentifier(_Name, name); + } + + public void RecordTime( string name, double duration ) + { + _ProfileService.RecordTimeWithIdentifier(_Name, name, duration); + } + + public string GeneratePerformanceTraceJson() + { + return _ProfileService.GenerateJSONPerformance(_Name); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Scheduler/SchedulerManager.cs b/managed/src/SwiftlyS2.Core/Modules/Scheduler/SchedulerManager.cs index 096f8bf5c..86033906f 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Scheduler/SchedulerManager.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Scheduler/SchedulerManager.cs @@ -1,144 +1,176 @@ -using System.Collections.Concurrent; using Spectre.Console; -using SwiftlyS2.Core.Natives; -using SwiftlyS2.Shared.Scheduler; -using System.Collections.Generic; -using System.Linq; -using System.Threading; namespace SwiftlyS2.Core.Scheduler; internal class Timer { - public required int PeriodTick { get; set; } - public required int DelayTick { get; set; } - public required Action Task { get; set; } - public required CancellationTokenSource CancellationTokenSource { get; set; } - public long DueTick { get; set; } - public CancellationToken OwnerToken { get; set; } + public required int PeriodTick { get; set; } + public required int DelayTick { get; set; } + public required Action Task { get; set; } + public required CancellationTokenSource CancellationTokenSource { get; set; } + public long DueTick { get; set; } + public CancellationToken OwnerToken { get; set; } } internal static class SchedulerManager { - private static readonly Lock _lock = new(); - private static long _currentTick = 0; + private static readonly Lock _lock = new(); + private static long _currentTick = 0; - // Min-heap keyed by DueTick - private static readonly PriorityQueue _timerQueue = new(); + // Min-heap keyed by DueTick + private static readonly PriorityQueue _timerQueue = new(); - // Next-tick tasks keyed by guid so services can remove them before they run - private static readonly List<(Action action, CancellationToken ownerToken)> _nextTickTasks = new(); + // Next-tick tasks keyed by guid so services can remove them before they run + private static readonly List<(Action action, CancellationToken ownerToken)> _nextTickTasks = []; - public static void OnTick() - { - List<(Action action, CancellationToken ownerToken)> nextTickActions; - List dueTimers = new(); + private static readonly List<(Action action, CancellationToken ownerToken)> _nextWorldUpdateTasks = []; - lock (_lock) + public static void OnWorldUpdate() { - _currentTick++; + List<(Action action, CancellationToken ownerToken)> nextWorldUpdateActions; - // Drain next-tick tasks - nextTickActions = _nextTickTasks.ToList(); - _nextTickTasks.Clear(); - - // Pop all due timers from the heap - while (_timerQueue.Count > 0) - { - if (!_timerQueue.TryPeek(out var timer, out var due)) break; - if (due > _currentTick) break; - _timerQueue.Dequeue(); - - // Skip canceled/owner-disposed timers - if (timer.CancellationTokenSource.IsCancellationRequested || timer.OwnerToken.IsCancellationRequested) + lock (_lock) { - continue; + nextWorldUpdateActions = _nextWorldUpdateTasks.ToList(); + _nextWorldUpdateTasks.Clear(); } - dueTimers.Add(timer); - } - } - - // Execute next-tick actions outside the lock - if (nextTickActions.Count > 0) - { - foreach (var tuple in nextTickActions) - { - if (tuple.ownerToken.IsCancellationRequested) continue; - try + if (nextWorldUpdateActions.Count > 0) { - tuple.action(); + foreach (var tuple in nextWorldUpdateActions) + { + if (tuple.ownerToken.IsCancellationRequested) continue; + try + { + tuple.action(); + } + catch (Exception ex) + { + if (!GlobalExceptionHandler.Handle(ex)) return; + AnsiConsole.WriteException(ex); + } + } } - catch (Exception ex) - { - if (!GlobalExceptionHandler.Handle(ex)) return; - AnsiConsole.WriteException(ex); - } - } } - // Execute due timers outside the lock and reschedule if repeating - if (dueTimers.Count > 0) + public static void OnTick() { - foreach (var timer in dueTimers) - { - try - { - timer.Task(); - } - catch (Exception ex) + List<(Action action, CancellationToken ownerToken)> nextTickActions; + List dueTimers = []; + + lock (_lock) { - if (!GlobalExceptionHandler.Handle(ex)) return; - AnsiConsole.WriteException(ex); + _currentTick++; + + // Drain next-tick tasks + nextTickActions = _nextTickTasks.ToList(); + _nextTickTasks.Clear(); + + // Pop all due timers from the heap + while (_timerQueue.Count > 0) + { + if (!_timerQueue.TryPeek(out var timer, out var due)) break; + if (due > _currentTick) break; + _ = _timerQueue.Dequeue(); + + // Skip canceled/owner-disposed timers + if (timer.CancellationTokenSource.IsCancellationRequested || timer.OwnerToken.IsCancellationRequested) + { + continue; + } + + dueTimers.Add(timer); + } } - // If not repeating or canceled/owner disposed after callback, don't reschedule - if (timer.PeriodTick == 0) + // Execute next-tick actions outside the lock + if (nextTickActions.Count > 0) { - timer.CancellationTokenSource.Cancel(); - continue; + foreach (var tuple in nextTickActions) + { + if (tuple.ownerToken.IsCancellationRequested) continue; + try + { + tuple.action(); + } + catch (Exception ex) + { + if (!GlobalExceptionHandler.Handle(ex)) return; + AnsiConsole.WriteException(ex); + } + } } - if (timer.CancellationTokenSource.IsCancellationRequested || timer.OwnerToken.IsCancellationRequested) + + // Execute due timers outside the lock and reschedule if repeating + if (dueTimers.Count > 0) { - continue; + foreach (var timer in dueTimers) + { + try + { + timer.Task(); + } + catch (Exception ex) + { + if (!GlobalExceptionHandler.Handle(ex)) return; + AnsiConsole.WriteException(ex); + } + + // If not repeating or canceled/owner disposed after callback, don't reschedule + if (timer.PeriodTick == 0) + { + timer.CancellationTokenSource.Cancel(); + continue; + } + if (timer.CancellationTokenSource.IsCancellationRequested || timer.OwnerToken.IsCancellationRequested) + { + continue; + } + + // Reschedule + timer.DueTick = Interlocked.Read(ref _currentTick) + timer.PeriodTick; + lock (_lock) + { + _timerQueue.Enqueue(timer, timer.DueTick); + } + } } + } - // Reschedule - timer.DueTick = Interlocked.Read(ref _currentTick) + timer.PeriodTick; + public static void NextTick( Action task, CancellationToken ownerToken ) + { lock (_lock) { - _timerQueue.Enqueue(timer, timer.DueTick); + _nextTickTasks.Add((task, ownerToken)); } - } } - } - public static void NextTick( Action task, CancellationToken ownerToken ) - { - lock (_lock) + public static void NextWorldUpdate( Action task, CancellationToken ownerToken ) { - _nextTickTasks.Add((task, ownerToken)); + lock (_lock) + { + _nextWorldUpdateTasks.Add((task, ownerToken)); + } } - } - - public static CancellationTokenSource AddTimer( int delayTick, int periodTick, Action task, CancellationToken ownerToken ) - { - var cancellationTokenSource = new CancellationTokenSource(); - var timer = new Timer { - DelayTick = delayTick, - PeriodTick = periodTick, - Task = task, - CancellationTokenSource = cancellationTokenSource, - OwnerToken = ownerToken, - DueTick = Interlocked.Read(ref _currentTick) + delayTick - }; - - lock (_lock) + + public static CancellationTokenSource AddTimer( int delayTick, int periodTick, Action task, CancellationToken ownerToken ) { - _timerQueue.Enqueue(timer, timer.DueTick); - } + var cancellationTokenSource = new CancellationTokenSource(); + var timer = new Timer { + DelayTick = delayTick, + PeriodTick = periodTick, + Task = task, + CancellationTokenSource = cancellationTokenSource, + OwnerToken = ownerToken, + DueTick = Interlocked.Read(ref _currentTick) + delayTick + }; + + lock (_lock) + { + _timerQueue.Enqueue(timer, timer.DueTick); + } - return cancellationTokenSource; - } + return cancellationTokenSource; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Scheduler/SchedulerService.cs b/managed/src/SwiftlyS2.Core/Modules/Scheduler/SchedulerService.cs index 6ad08ffba..08f5d4dae 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Scheduler/SchedulerService.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Scheduler/SchedulerService.cs @@ -6,109 +6,114 @@ namespace SwiftlyS2.Core.Scheduler; internal class SchedulerService : ISchedulerService, IDisposable { - private readonly List _timers = new(); - private readonly Lock _lock = new(); - private readonly CancellationTokenSource _lifecycleCts = new(); - private CancellationTokenSource _mapChangeCts = new(); + private readonly List _timers = []; + private readonly Lock _lock = new(); + private readonly CancellationTokenSource _lifecycleCts = new(); + private CancellationTokenSource _mapChangeCts = new(); - private static int tickPerSecond = 64; + private static readonly int tickPerSecond = 64; - public SchedulerService( IEventSubscriber eventSubscriber ) - { - eventSubscriber.OnMapUnload += ( @event ) => + public SchedulerService( IEventSubscriber eventSubscriber ) { - lock (_lock) - { - _mapChangeCts.Cancel(); - _mapChangeCts.Dispose(); - _mapChangeCts = new CancellationTokenSource(); - } - - CleanFinishedTimers(); - }; - - } - - public void NextTick( Action task ) - { - SchedulerManager.NextTick(task, _lifecycleCts.Token); - } - - public CancellationTokenSource Delay( int delayTick, Action task ) - { - CleanFinishedTimers(); - var cts = SchedulerManager.AddTimer(delayTick, 0, task, _lifecycleCts.Token); - lock (_lock) + eventSubscriber.OnMapUnload += ( @event ) => + { + lock (_lock) + { + _mapChangeCts.Cancel(); + _mapChangeCts.Dispose(); + _mapChangeCts = new CancellationTokenSource(); + } + + CleanFinishedTimers(); + }; + + } + + public void NextTick( Action task ) + { + SchedulerManager.NextTick(task, _lifecycleCts.Token); + } + + public void NextWorldUpdate( Action task ) + { + SchedulerManager.NextWorldUpdate(task, _lifecycleCts.Token); + } + + public CancellationTokenSource Delay( int delayTick, Action task ) + { + CleanFinishedTimers(); + var cts = SchedulerManager.AddTimer(delayTick, 0, task, _lifecycleCts.Token); + lock (_lock) + { + _timers.Add(cts); + } + return cts; + } + + public CancellationTokenSource Repeat( int periodTick, Action task ) + { + var cts = SchedulerManager.AddTimer(0, periodTick, task, _lifecycleCts.Token); + lock (_lock) + { + _timers.Add(cts); + } + return cts; + } + + public CancellationTokenSource DelayAndRepeat( int delayTick, int periodTick, Action task ) { - _timers.Add(cts); + var cts = SchedulerManager.AddTimer(delayTick, periodTick, task, _lifecycleCts.Token); + lock (_lock) + { + _timers.Add(cts); + } + return cts; } - return cts; - } - public CancellationTokenSource Repeat( int periodTick, Action task ) - { - var cts = SchedulerManager.AddTimer(0, periodTick, task, _lifecycleCts.Token); - lock (_lock) + public CancellationTokenSource DelayBySeconds( float delaySeconds, Action task ) { - _timers.Add(cts); + return Delay((int)(delaySeconds * tickPerSecond), task); } - return cts; - } - public CancellationTokenSource DelayAndRepeat( int delayTick, int periodTick, Action task ) - { - var cts = SchedulerManager.AddTimer(delayTick, periodTick, task, _lifecycleCts.Token); - lock (_lock) + public CancellationTokenSource RepeatBySeconds( float periodSeconds, Action task ) { - _timers.Add(cts); + return Repeat((int)(periodSeconds * tickPerSecond), task); } - return cts; - } - - public CancellationTokenSource DelayBySeconds( float delaySeconds, Action task ) - { - return Delay((int)(delaySeconds * tickPerSecond), task); - } - - public CancellationTokenSource RepeatBySeconds( float periodSeconds, Action task ) - { - return Repeat((int)(periodSeconds * tickPerSecond), task); - } - - public CancellationTokenSource DelayAndRepeatBySeconds( float delaySeconds, float periodSeconds, Action task ) - { - return DelayAndRepeat((int)(delaySeconds * tickPerSecond), (int)(periodSeconds * tickPerSecond), task); - } - - public void StopOnMapChange( CancellationTokenSource cts ) - { - _mapChangeCts.Token.Register(cts.Cancel); - } - - private void CleanFinishedTimers() - { - lock (_lock) + + public CancellationTokenSource DelayAndRepeatBySeconds( float delaySeconds, float periodSeconds, Action task ) + { + return DelayAndRepeat((int)(delaySeconds * tickPerSecond), (int)(periodSeconds * tickPerSecond), task); + } + + public void StopOnMapChange( CancellationTokenSource cts ) + { + _ = _mapChangeCts.Token.Register(cts.Cancel); + } + + private void CleanFinishedTimers() { - _timers.RemoveAll(timer => timer.IsCancellationRequested); + lock (_lock) + { + _ = _timers.RemoveAll(timer => timer.IsCancellationRequested); + } } - } - public void Dispose() - { - lock (_lock) + public void Dispose() { - if (_lifecycleCts.IsCancellationRequested) return; - _lifecycleCts.Cancel(); - _lifecycleCts.Dispose(); - _mapChangeCts.Cancel(); - _mapChangeCts.Dispose(); - - foreach (var timer in _timers) - { - timer.Cancel(); - timer.Dispose(); - } - _timers.Clear(); + lock (_lock) + { + if (_lifecycleCts.IsCancellationRequested) return; + _lifecycleCts.Cancel(); + _lifecycleCts.Dispose(); + _mapChangeCts.Cancel(); + _mapChangeCts.Dispose(); + + foreach (var timer in _timers) + { + timer.Cancel(); + timer.Dispose(); + } + _timers.Clear(); + } } - } } diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CAttributeList.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CAttributeList.cs index ebc42d447..57f99e4a4 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CAttributeList.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CAttributeList.cs @@ -5,5 +5,5 @@ public partial interface CAttributeList /// /// Sets or adds an attribute to the attribute list. /// - public void SetOrAddAttribute(string attributeName, float value); + public void SetOrAddAttribute( string attributeName, float value ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CAttributeListImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CAttributeListImpl.cs index de778ffde..c4e8dbad6 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CAttributeListImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CAttributeListImpl.cs @@ -5,7 +5,7 @@ namespace SwiftlyS2.Core.SchemaDefinitions; internal partial class CAttributeListImpl : CAttributeList { - public void SetOrAddAttribute(string attributeName, float value) + public void SetOrAddAttribute( string attributeName, float value ) { GameFunctions.SetOrAddAttribute(Address, attributeName, value); } diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseEntity.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseEntity.cs index 3afa100f2..57cc281e3 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseEntity.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseEntity.cs @@ -1,4 +1,4 @@ -using SwiftlyS2.Shared.Natives; +using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Shared.SchemaDefinitions; @@ -25,7 +25,7 @@ public partial interface CBaseEntity /// The target position to move the entity to. If null, the entity's position is not changed. /// The target orientation to set for the entity. If null, the entity's orientation is not changed. /// The velocity to apply to the entity after teleportation. If null, the entity's velocity is not changed. - public void Teleport(Vector? position, QAngle? angle, Vector? velocity); + public void Teleport( Vector? position, QAngle? angle, Vector? velocity ); /// diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseEntityImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseEntityImpl.cs index 0be83aebd..ff8d1105c 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseEntityImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseEntityImpl.cs @@ -1,4 +1,4 @@ -using SwiftlyS2.Core.Natives; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.SchemaDefinitions; diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseModelEntity.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseModelEntity.cs index 93169e1c0..10a227009 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseModelEntity.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseModelEntity.cs @@ -1,4 +1,4 @@ -namespace SwiftlyS2.Shared.SchemaDefinitions; +namespace SwiftlyS2.Shared.SchemaDefinitions; public partial interface CBaseModelEntity { @@ -6,15 +6,15 @@ public partial interface CBaseModelEntity /// Sets the model to the entity. /// /// The model path to be used. - public void SetModel(string model); + public void SetModel( string model ); /// /// Sets the bodygroup to the entity. /// - public void SetBodygroupByName(string group, int value); + public void SetBodygroupByName( string group, int value ); /// /// Sets the scale of the entity. /// - public void SetScale(float scale); + public void SetScale( float scale ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseModelEntityImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseModelEntityImpl.cs index 75270daee..88ae0f4d7 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseModelEntityImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseModelEntityImpl.cs @@ -1,21 +1,21 @@ -using SwiftlyS2.Core.Natives; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.SchemaDefinitions; internal partial class CBaseModelEntityImpl : CBaseModelEntity { - public void SetModel(string model) + public void SetModel( string model ) { GameFunctions.SetModel(Address, model); } - public void SetBodygroupByName(string group, int value) + public void SetBodygroupByName( string group, int value ) { AcceptInput("SetBodygroup", $"{group},{value}"); } - public void SetScale(float scale) + public void SetScale( float scale ) { var skeletonInstance = CBodyComponent?.SceneNode?.GetSkeletonInstance(); if (skeletonInstance == null) return; diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerController.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerController.cs index 3de37c579..615148b11 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerController.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerController.cs @@ -1,4 +1,4 @@ -namespace SwiftlyS2.Shared.SchemaDefinitions; +namespace SwiftlyS2.Shared.SchemaDefinitions; public partial interface CBasePlayerController { @@ -6,5 +6,5 @@ public partial interface CBasePlayerController /// Sets the player pawn to the entity. /// /// The player pawn to associate. Can be null to remove the current association. - public void SetPawn(CBasePlayerPawn? pawn); + public void SetPawn( CBasePlayerPawn? pawn ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerControllerImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerControllerImpl.cs index 8c7777d37..1749324bc 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerControllerImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerControllerImpl.cs @@ -1,13 +1,13 @@ -using SwiftlyS2.Core.Natives; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.SchemaDefinitions; internal partial class CBasePlayerControllerImpl : CBasePlayerController { - public void SetPawn(CBasePlayerPawn? pawn) + public void SetPawn( CBasePlayerPawn? pawn ) { - nint? handle = pawn?.Address; + var handle = pawn?.Address; GameFunctions.SetPlayerControllerPawn(Address, handle ?? IntPtr.Zero, true, false, false, false); } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerPawn.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerPawn.cs index f9ef2b9f7..b081e7587 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerPawn.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerPawn.cs @@ -1,9 +1,9 @@ -namespace SwiftlyS2.Shared.SchemaDefinitions; +namespace SwiftlyS2.Shared.SchemaDefinitions; public partial interface CBasePlayerPawn { /// /// Performs a suicide on the pawn, optionally causing an explosion and allowing forced execution. /// - public void CommitSuicide(bool explode, bool force); + public void CommitSuicide( bool explode, bool force ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerPawnImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerPawnImpl.cs index 5656a01d3..80aae9b2f 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerPawnImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerPawnImpl.cs @@ -1,11 +1,11 @@ -using SwiftlyS2.Core.Natives; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.SchemaDefinitions; internal partial class CBasePlayerPawnImpl : CBasePlayerPawn { - public void CommitSuicide(bool explode, bool force) + public void CommitSuicide( bool explode, bool force ) { GameFunctions.PawnCommitSuicide(Address, explode, force); } diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerWeapon.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerWeapon.cs index a5c98d285..130d76aa1 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerWeapon.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerWeapon.cs @@ -1,4 +1,4 @@ -namespace SwiftlyS2.Shared.SchemaDefinitions; +namespace SwiftlyS2.Shared.SchemaDefinitions; public partial interface CBasePlayerWeapon { diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerWeaponImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerWeaponImpl.cs index 8100142b2..611a1f646 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerWeaponImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBasePlayerWeaponImpl.cs @@ -1,13 +1,11 @@ -using SwiftlyS2.Shared.SchemaDefinitions; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.SchemaDefinitions; internal partial class CBasePlayerWeaponImpl : CBasePlayerWeapon { - public CBasePlayerWeaponVData PlayerWeaponVData - { - get - { + public CBasePlayerWeaponVData PlayerWeaponVData { + get { return VData.As(); } } diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSGameRules.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSGameRules.cs index f5b0f7539..f11e41614 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSGameRules.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSGameRules.cs @@ -1,5 +1,4 @@ -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.SchemaDefinitions; +using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.Schemas; namespace SwiftlyS2.Shared.SchemaDefinitions; diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSGameRulesImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSGameRulesImpl.cs index 2d568ed54..a7ad6d3cc 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSGameRulesImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSGameRulesImpl.cs @@ -1,4 +1,4 @@ -using SwiftlyS2.Core.Natives; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.Schemas; diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSWeaponBase.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSWeaponBase.cs index 23190e481..6acbf8ad8 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSWeaponBase.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSWeaponBase.cs @@ -2,5 +2,5 @@ namespace SwiftlyS2.Shared.SchemaDefinitions; public partial interface CCSWeaponBase { - public CCSWeaponBaseVData WeaponBaseVData { get; } + public CCSWeaponBaseVData WeaponBaseVData { get; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSWeaponBaseImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSWeaponBaseImpl.cs index d3f704130..adc30c296 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSWeaponBaseImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CCSWeaponBaseImpl.cs @@ -2,11 +2,12 @@ namespace SwiftlyS2.Core.SchemaDefinitions; -internal partial class CCSWeaponBaseImpl : CCSWeaponBase { +internal partial class CCSWeaponBaseImpl : CCSWeaponBase +{ - public CCSWeaponBaseVData WeaponBaseVData { - get { - return VData.As(); + public CCSWeaponBaseVData WeaponBaseVData { + get { + return VData.As(); + } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityIdentity.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityIdentity.cs index 6e946ba18..3d0ea8471 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityIdentity.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityIdentity.cs @@ -2,8 +2,9 @@ namespace SwiftlyS2.Shared.SchemaDefinitions; -public partial interface CEntityIdentity { - public CEntityInstance EntityInstance { get; } +public partial interface CEntityIdentity +{ + public CEntityInstance EntityInstance { get; } - public CHandle EntityHandle { get; } + public CHandle EntityHandle { get; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityIdentityImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityIdentityImpl.cs index 8e2e7785a..e3012850e 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityIdentityImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityIdentityImpl.cs @@ -1,13 +1,14 @@ -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Core.Extensions; using SwiftlyS2.Shared.Natives; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.SchemaDefinitions; -internal partial class CEntityIdentityImpl { +internal partial class CEntityIdentityImpl +{ - public CEntityInstance EntityInstance => new CEntityInstanceImpl(Address.Read()); + public CEntityInstance EntityInstance => new CEntityInstanceImpl(Address.Read()); - public CHandle EntityHandle => new CHandle(Address.Read(0x10)); + public CHandle EntityHandle => new(Address.Read(0x10)); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityInstance.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityInstance.cs index 0df411f07..976ae54e4 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityInstance.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityInstance.cs @@ -1,69 +1,69 @@ -using SwiftlyS2.Core.EntitySystem; using SwiftlyS2.Shared.EntitySystem; namespace SwiftlyS2.Shared.SchemaDefinitions; -public partial interface CEntityInstance { +public partial interface CEntityInstance +{ - /// - /// The index of the entity. - /// - public uint Index { get; } + /// + /// The index of the entity. + /// + public uint Index { get; } - /// - /// The designer name of the entity. - /// - public string DesignerName { get; } + /// + /// The designer name of the entity. + /// + public string DesignerName { get; } - /// - /// Fire an input to the entity. - /// - /// Param type. Support bool, int, uint, long, ulong, float, double, string - /// Input name. - /// Input value. - /// Activator entity. Nullable. - /// Caller entity. Nullable. - /// Output ID. - public void AcceptInput(string input, T value, CEntityInstance? activator = null, CEntityInstance? caller = null, int outputID = 0); + /// + /// Fire an input to the entity. + /// + /// Param type. Support bool, int, uint, long, ulong, float, double, string + /// Input name. + /// Input value. + /// Activator entity. Nullable. + /// Caller entity. Nullable. + /// Output ID. + public void AcceptInput( string input, T value, CEntityInstance? activator = null, CEntityInstance? caller = null, int outputID = 0 ); - /// - /// Add an entity IO event to the entity. - /// - /// Param type. Support bool, int, uint, long, ulong, float, double, string - /// Input name. - /// Input value. - /// Activator entity. Nullable. - /// Caller entity. Nullable. - /// Delay in seconds.x - public void AddEntityIOEvent(string input, T value, CEntityInstance? activator = null, CEntityInstance? caller = null, float delay = 0f); + /// + /// Add an entity IO event to the entity. + /// + /// Param type. Support bool, int, uint, long, ulong, float, double, string + /// Input name. + /// Input value. + /// Activator entity. Nullable. + /// Caller entity. Nullable. + /// Delay in seconds.x + public void AddEntityIOEvent( string input, T value, CEntityInstance? activator = null, CEntityInstance? caller = null, float delay = 0f ); - /// - /// Dispatch a spawn event to the entity. - /// - /// Entity key values. Nullable. - public void DispatchSpawn( CEntityKeyValues? entityKV = null ); + /// + /// Dispatch a spawn event to the entity. + /// + /// Entity key values. Nullable. + public void DispatchSpawn( CEntityKeyValues? entityKV = null ); - /// - /// Set the transmit state of the entity for one player. - /// - /// Whether the entity should be transmitting. - /// The player ID to set the transmit state for. - public void SetTransmitState( bool transmitting , int playerId ); + /// + /// Set the transmit state of the entity for one player. + /// + /// Whether the entity should be transmitting. + /// The player ID to set the transmit state for. + public void SetTransmitState( bool transmitting, int playerId ); - /// - /// Set the global transmit state of the entity. - /// - /// Whether the entity should be transmitting. - public void SetTransmitState( bool transmitting ); + /// + /// Set the global transmit state of the entity. + /// + /// Whether the entity should be transmitting. + public void SetTransmitState( bool transmitting ); - /// - /// Check if the entity is transmitting for one player. - /// - /// The player ID to check the transmit state for. - public bool IsTransmitting( int playerId ); + /// + /// Check if the entity is transmitting for one player. + /// + /// The player ID to check the transmit state for. + public bool IsTransmitting( int playerId ); - /// - /// Despawn the entity. - public void Despawn(); + /// + /// Despawn the entity. + public void Despawn(); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityInstanceImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityInstanceImpl.cs index 097ff1615..13f40cbfb 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityInstanceImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CEntityInstanceImpl.cs @@ -1,100 +1,105 @@ using SwiftlyS2.Core.Natives; -using SwiftlyS2.Core.Schemas; using SwiftlyS2.Shared.EntitySystem; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.Schemas; namespace SwiftlyS2.Core.SchemaDefinitions; -internal partial class CEntityInstanceImpl : CEntityInstance { +internal partial class CEntityInstanceImpl : CEntityInstance +{ - public uint Index => Entity?.EntityHandle.EntityIndex ?? uint.MaxValue; + public uint Index => Entity?.EntityHandle.EntityIndex ?? uint.MaxValue; - public string DesignerName => Entity?.DesignerName ?? string.Empty; + public string DesignerName => Entity?.DesignerName ?? string.Empty; - public void AcceptInput(string input, T value, CEntityInstance? activator = null, CEntityInstance? caller = null, int outputID = 0) { - switch (value) { - case bool boolValue: - NativeEntitySystem.AcceptInputBool(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, boolValue, outputID); - break; - case int intValue: - NativeEntitySystem.AcceptInputInt32(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, intValue, outputID); - break; - case uint uintValue: - NativeEntitySystem.AcceptInputUInt32(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, uintValue, outputID); - break; - case long longValue: - NativeEntitySystem.AcceptInputInt64(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, longValue, outputID); - break; - case ulong ulongValue: - NativeEntitySystem.AcceptInputUInt64(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, ulongValue, outputID); - break; - case float floatValue: - NativeEntitySystem.AcceptInputFloat(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, floatValue, outputID); - break; - case double doubleValue: - NativeEntitySystem.AcceptInputDouble(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, doubleValue, outputID); - break; - case string stringValue: - NativeEntitySystem.AcceptInputString(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, stringValue, outputID); - break; - default: - throw new InvalidOperationException($"Unsupported type: {typeof(T).Name}"); + public void AcceptInput( string input, T value, CEntityInstance? activator = null, CEntityInstance? caller = null, int outputID = 0 ) + { + switch (value) + { + case bool boolValue: + NativeEntitySystem.AcceptInputBool(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, boolValue, outputID); + break; + case int intValue: + NativeEntitySystem.AcceptInputInt32(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, intValue, outputID); + break; + case uint uintValue: + NativeEntitySystem.AcceptInputUInt32(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, uintValue, outputID); + break; + case long longValue: + NativeEntitySystem.AcceptInputInt64(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, longValue, outputID); + break; + case ulong ulongValue: + NativeEntitySystem.AcceptInputUInt64(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, ulongValue, outputID); + break; + case float floatValue: + NativeEntitySystem.AcceptInputFloat(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, floatValue, outputID); + break; + case double doubleValue: + NativeEntitySystem.AcceptInputDouble(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, doubleValue, outputID); + break; + case string stringValue: + NativeEntitySystem.AcceptInputString(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, stringValue, outputID); + break; + default: + throw new InvalidOperationException($"Unsupported type: {typeof(T).Name}"); + } } - } - public void AddEntityIOEvent(string input, T value, CEntityInstance? activator = null, CEntityInstance? caller = null, float delay = 0f) { - switch (value) { - case bool boolValue: - NativeEntitySystem.AddEntityIOEventBool(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, boolValue, delay); - break; - case int intValue: - NativeEntitySystem.AddEntityIOEventInt32(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, intValue, delay); - break; - case uint uintValue: - NativeEntitySystem.AddEntityIOEventUInt32(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, uintValue, delay); - break; - case long longValue: - NativeEntitySystem.AddEntityIOEventInt64(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, longValue, delay); - break; - case ulong ulongValue: - NativeEntitySystem.AddEntityIOEventUInt64(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, ulongValue, delay); - break; - case float floatValue: - NativeEntitySystem.AddEntityIOEventFloat(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, floatValue, delay); - break; - case double doubleValue: - NativeEntitySystem.AddEntityIOEventDouble(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, doubleValue, delay); - break; - case string stringValue: - NativeEntitySystem.AddEntityIOEventString(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, stringValue, delay); - break; - default: - throw new InvalidOperationException($"Unsupported type: {typeof(T).Name}"); + public void AddEntityIOEvent( string input, T value, CEntityInstance? activator = null, CEntityInstance? caller = null, float delay = 0f ) + { + switch (value) + { + case bool boolValue: + NativeEntitySystem.AddEntityIOEventBool(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, boolValue, delay); + break; + case int intValue: + NativeEntitySystem.AddEntityIOEventInt32(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, intValue, delay); + break; + case uint uintValue: + NativeEntitySystem.AddEntityIOEventUInt32(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, uintValue, delay); + break; + case long longValue: + NativeEntitySystem.AddEntityIOEventInt64(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, longValue, delay); + break; + case ulong ulongValue: + NativeEntitySystem.AddEntityIOEventUInt64(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, ulongValue, delay); + break; + case float floatValue: + NativeEntitySystem.AddEntityIOEventFloat(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, floatValue, delay); + break; + case double doubleValue: + NativeEntitySystem.AddEntityIOEventDouble(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, doubleValue, delay); + break; + case string stringValue: + NativeEntitySystem.AddEntityIOEventString(Address, input, activator?.Address ?? nint.Zero, caller?.Address ?? nint.Zero, stringValue, delay); + break; + default: + throw new InvalidOperationException($"Unsupported type: {typeof(T).Name}"); + } } - } - public void SetTransmitState( bool transmitting , int playerId ) { - NativePlayer.ShouldBlockTransmitEntity(playerId, (int)Index, transmitting); + public void SetTransmitState( bool transmitting, int playerId ) + { + NativePlayer.ShouldBlockTransmitEntity(playerId, (int)Index, transmitting); - } + } + + public void SetTransmitState( bool transmitting ) + { + NativePlayerManager.ShouldBlockTransmitEntity((int)Index, transmitting); + } - public void SetTransmitState( bool transmitting ) - { - NativePlayerManager.ShouldBlockTransmitEntity((int)Index, transmitting); - } - - public bool IsTransmitting( int playerId ) - { - return NativePlayer.IsTransmitEntityBlocked(playerId, (int)Index); - } + public bool IsTransmitting( int playerId ) + { + return NativePlayer.IsTransmitEntityBlocked(playerId, (int)Index); + } - public void DispatchSpawn(CEntityKeyValues? entityKV = null) { - NativeEntitySystem.Spawn(Address, entityKV?.Address ?? nint.Zero); - } + public void DispatchSpawn( CEntityKeyValues? entityKV = null ) + { + NativeEntitySystem.Spawn(Address, entityKV?.Address ?? nint.Zero); + } - public void Despawn() { - NativeEntitySystem.Despawn(Address); - } + public void Despawn() + { + NativeEntitySystem.Despawn(Address); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CGameSceneNode.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CGameSceneNode.cs index 5096b6462..ae32596b9 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CGameSceneNode.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CGameSceneNode.cs @@ -1,4 +1,4 @@ -namespace SwiftlyS2.Shared.SchemaDefinitions; +namespace SwiftlyS2.Shared.SchemaDefinitions; public partial interface CGameSceneNode { diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CGameSceneNodeImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CGameSceneNodeImpl.cs index e0896c10c..a32cc9d92 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CGameSceneNodeImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CGameSceneNodeImpl.cs @@ -1,4 +1,4 @@ -using SwiftlyS2.Core.Natives; +using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.SchemaDefinitions; diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CInButtonState.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CInButtonState.cs new file mode 100644 index 000000000..1a032938b --- /dev/null +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CInButtonState.cs @@ -0,0 +1,13 @@ +using SwiftlyS2.Shared.Events; + +namespace SwiftlyS2.Shared.SchemaDefinitions; + +public partial interface CInButtonState +{ + public GameButtonFlags ButtonPressed { get; set; } + + public GameButtonFlags ButtonChanged { get; set; } + + public GameButtonFlags ButtonScroll { get; set; } + +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CInButtonStateImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CInButtonStateImpl.cs new file mode 100644 index 000000000..a933679b2 --- /dev/null +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CInButtonStateImpl.cs @@ -0,0 +1,23 @@ +using SwiftlyS2.Shared.Events; +using SwiftlyS2.Shared.SchemaDefinitions; + +namespace SwiftlyS2.Core.SchemaDefinitions; + +internal partial class CInButtonStateImpl : CInButtonState +{ + public GameButtonFlags ButtonPressed { + get => (GameButtonFlags)ButtonStates[0]; + set => ButtonStates[0] = (ulong)value; + } + + public GameButtonFlags ButtonChanged { + get => (GameButtonFlags)ButtonStates[1]; + set => ButtonStates[1] = (ulong)value; + } + + public GameButtonFlags ButtonScroll { + get => (GameButtonFlags)ButtonStates[2]; + set => ButtonStates[2] = (ulong)value; + } + +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerControllerComponent.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerControllerComponent.cs index e02d0e0b9..b8a5ffd72 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerControllerComponent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerControllerComponent.cs @@ -1,4 +1,4 @@ -namespace SwiftlyS2.Shared.SchemaDefinitions; +namespace SwiftlyS2.Shared.SchemaDefinitions; public partial interface CPlayerControllerComponent { diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerControllerComponentImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerControllerComponentImpl.cs index 3975feb46..897104065 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerControllerComponentImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerControllerComponentImpl.cs @@ -1,4 +1,4 @@ -using SwiftlyS2.Shared.SchemaDefinitions; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.SchemaDefinitions; diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerPawnComponent.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerPawnComponent.cs index 356064d4c..a75605c84 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerPawnComponent.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerPawnComponent.cs @@ -1,4 +1,4 @@ -namespace SwiftlyS2.Shared.SchemaDefinitions; +namespace SwiftlyS2.Shared.SchemaDefinitions; public partial interface CPlayerPawnComponent { diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerPawnComponentImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerPawnComponentImpl.cs index b498dd1e6..2c713672b 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerPawnComponentImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayerPawnComponentImpl.cs @@ -1,4 +1,4 @@ -using SwiftlyS2.Shared.SchemaDefinitions; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.SchemaDefinitions; diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_ItemServices.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_ItemServices.cs index 4f73b22f9..1677f2e80 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_ItemServices.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_ItemServices.cs @@ -1,38 +1,38 @@ -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.Schemas; namespace SwiftlyS2.Shared.SchemaDefinitions; -public partial interface CPlayer_ItemServices { - - /// - /// Give an item to the player. - /// - /// The type of the item to give. - /// The item that was given. - public T GiveItem() where T : ISchemaClass; - - /// - /// Give an item to the player. - /// - /// The designer name of the item to give. - /// The item that was given. - public T GiveItem(string itemDesignerName) where T : ISchemaClass; - - /// - /// Give an item to the player. - /// - /// The designer name of the item to give. - public void GiveItem(string itemDesignerName); - - - /// - /// Drop the item that player is holding. - /// - public void DropActiveItem(); - - /// - /// Remove all items from the player. - /// - public void RemoveItems(); +public partial interface CPlayer_ItemServices +{ + + /// + /// Give an item to the player. + /// + /// The type of the item to give. + /// The item that was given. + public T GiveItem() where T : ISchemaClass; + + /// + /// Give an item to the player. + /// + /// The designer name of the item to give. + /// The item that was given. + public T GiveItem( string itemDesignerName ) where T : ISchemaClass; + + /// + /// Give an item to the player. + /// + /// The designer name of the item to give. + public void GiveItem( string itemDesignerName ); + + + /// + /// Drop the item that player is holding. + /// + public void DropActiveItem(); + + /// + /// Remove all items from the player. + /// + public void RemoveItems(); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_ItemServicesImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_ItemServicesImpl.cs index eaec2c16e..440335b76 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_ItemServicesImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_ItemServicesImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.EntitySystem; using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.Schemas; namespace SwiftlyS2.Core.SchemaDefinitions; @@ -9,25 +8,30 @@ namespace SwiftlyS2.Core.SchemaDefinitions; internal partial class CPlayer_ItemServicesImpl { - public T GiveItem() where T : ISchemaClass { - var name = EntitySystemService.TypeToDesignerName[typeof(T)]; - return T.From(GameFunctions.CCSPlayer_ItemServices_GiveNamedItem(Address, name)); - } - - public T GiveItem(string itemDesignerName) where T : ISchemaClass { - return T.From(GameFunctions.CCSPlayer_ItemServices_GiveNamedItem(Address, itemDesignerName)); - } - - public void GiveItem(string itemDesignerName) { - GameFunctions.CCSPlayer_ItemServices_GiveNamedItem(Address, itemDesignerName); - } - - public void RemoveItems() { - GameFunctions.CCSPlayer_ItemServices_RemoveWeapons(Address); - } - - public void DropActiveItem() { - GameFunctions.CCSPlayer_ItemServices_DropActiveItem(Address, Vector.Zero); - } + public T GiveItem() where T : ISchemaClass + { + var name = EntitySystemService.TypeToDesignerName[typeof(T)]; + return T.From(GameFunctions.CCSPlayer_ItemServices_GiveNamedItem(Address, name)); + } + + public T GiveItem( string itemDesignerName ) where T : ISchemaClass + { + return T.From(GameFunctions.CCSPlayer_ItemServices_GiveNamedItem(Address, itemDesignerName)); + } + + public void GiveItem( string itemDesignerName ) + { + _ = GameFunctions.CCSPlayer_ItemServices_GiveNamedItem(Address, itemDesignerName); + } + + public void RemoveItems() + { + GameFunctions.CCSPlayer_ItemServices_RemoveWeapons(Address); + } + + public void DropActiveItem() + { + GameFunctions.CCSPlayer_ItemServices_DropActiveItem(Address, Vector.Zero); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_WeaponServices.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_WeaponServices.cs index f41932800..71055d512 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_WeaponServices.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_WeaponServices.cs @@ -3,75 +3,75 @@ namespace SwiftlyS2.Shared.SchemaDefinitions; public partial interface CPlayer_WeaponServices { - /// - /// Drop a weapon. - /// - /// The weapon to drop. - public void DropWeapon( CBasePlayerWeapon weapon ); + /// + /// Drop a weapon. + /// + /// The weapon to drop. + public void DropWeapon( CBasePlayerWeapon weapon ); - /// - /// Drop and remove a weapon. - /// - /// The weapon to remove. - public void RemoveWeapon( CBasePlayerWeapon weapon ); + /// + /// Drop and remove a weapon. + /// + /// The weapon to remove. + public void RemoveWeapon( CBasePlayerWeapon weapon ); - /// - /// Make player select a weapon. - /// - /// The weapon to select. - public void SelectWeapon( CBasePlayerWeapon weapon ); + /// + /// Make player select a weapon. + /// + /// The weapon to select. + public void SelectWeapon( CBasePlayerWeapon weapon ); - /// - /// Drop a weapon by slot. - /// - /// The slot to drop the weapon from. - public void DropWeaponBySlot( gear_slot_t slot ); + /// + /// Drop a weapon by slot. + /// + /// The slot to drop the weapon from. + public void DropWeaponBySlot( gear_slot_t slot ); - /// - /// Remove a weapon by slot. - /// - /// The slot to remove the weapon from. - public void RemoveWeaponBySlot( gear_slot_t slot ); + /// + /// Remove a weapon by slot. + /// + /// The slot to remove the weapon from. + public void RemoveWeaponBySlot( gear_slot_t slot ); - /// - /// Select a weapon by slot. - /// - /// The slot to select the weapon from. - public void SelectWeaponBySlot( gear_slot_t slot ); + /// + /// Select a weapon by slot. + /// + /// The slot to select the weapon from. + public void SelectWeaponBySlot( gear_slot_t slot ); - /// - /// Drop a weapon by designer name. - /// - /// The designer name of the weapon to drop. - public void DropWeaponByDesignerName( string designerName ); + /// + /// Drop a weapon by designer name. + /// + /// The designer name of the weapon to drop. + public void DropWeaponByDesignerName( string designerName ); - /// - /// Remove a weapon by designer name. - /// - /// The designer name of the weapon to remove. - public void RemoveWeaponByDesignerName( string designerName ); + /// + /// Remove a weapon by designer name. + /// + /// The designer name of the weapon to remove. + public void RemoveWeaponByDesignerName( string designerName ); - /// - /// Select a weapon by designer name. - /// - /// The designer name of the weapon to select. - public void SelectWeaponByDesignerName( string designerName ); + /// + /// Select a weapon by designer name. + /// + /// The designer name of the weapon to select. + public void SelectWeaponByDesignerName( string designerName ); - /// - /// Drop all weapons with the specified class. - /// - /// The weapon class. - public void DropWeaponByClass() where T : CBasePlayerWeapon; + /// + /// Drop all weapons with the specified class. + /// + /// The weapon class. + public void DropWeaponByClass() where T : CBasePlayerWeapon; - /// - /// Drop and remove all weapons with the specified class. - /// - /// The weapon class. - public void RemoveWeaponByClass() where T : CBasePlayerWeapon; + /// + /// Drop and remove all weapons with the specified class. + /// + /// The weapon class. + public void RemoveWeaponByClass() where T : CBasePlayerWeapon; - /// - /// Select a weapon by class. - /// - /// The weapon class. - public void SelectWeaponByClass() where T : CBasePlayerWeapon; + /// + /// Select a weapon by class. + /// + /// The weapon class. + public void SelectWeaponByClass() where T : CBasePlayerWeapon; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_WeaponServicesImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_WeaponServicesImpl.cs index 3815721ab..8c06739f8 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_WeaponServicesImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CPlayer_WeaponServicesImpl.cs @@ -1,88 +1,111 @@ using SwiftlyS2.Core.EntitySystem; using SwiftlyS2.Core.Natives; -using SwiftlyS2.Core.Scheduler; using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.Schemas; namespace SwiftlyS2.Core.SchemaDefinitions; -internal partial class CPlayer_WeaponServicesImpl { +internal partial class CPlayer_WeaponServicesImpl +{ - public void DropWeapon(CBasePlayerWeapon weapon) { - GameFunctions.CCSPlayer_WeaponServices_DropWeapon(Address, weapon.Address); - } + public void DropWeapon( CBasePlayerWeapon weapon ) + { + GameFunctions.CCSPlayer_WeaponServices_DropWeapon(Address, weapon.Address); + } - public void RemoveWeapon(CBasePlayerWeapon weapon) { - GameFunctions.CCSPlayer_WeaponServices_DropWeapon(Address, weapon.Address); - weapon.Despawn(); - } + public void RemoveWeapon( CBasePlayerWeapon weapon ) + { + GameFunctions.CCSPlayer_WeaponServices_DropWeapon(Address, weapon.Address); + weapon.Despawn(); + } - public void SelectWeapon(CBasePlayerWeapon weapon) { - GameFunctions.CCSPlayer_WeaponServices_SelectWeapon(Address, weapon.Address); - } + public void SelectWeapon( CBasePlayerWeapon weapon ) + { + GameFunctions.CCSPlayer_WeaponServices_SelectWeapon(Address, weapon.Address); + } - public void DropWeaponBySlot( gear_slot_t slot ) { - MyWeapons.ToList().ForEach(weapon => { - if ( weapon.Value?.As().WeaponBaseVData.GearSlot == slot ) { - DropWeapon(weapon.Value); - } - }); - } + public void DropWeaponBySlot( gear_slot_t slot ) + { + MyWeapons.ToList().ForEach(weapon => + { + if (weapon.Value?.As().WeaponBaseVData.GearSlot == slot) + { + DropWeapon(weapon.Value); + } + }); + } - public void RemoveWeaponBySlot( gear_slot_t slot ) { - MyWeapons.ToList().ForEach(weapon => { - if ( weapon.Value?.As().WeaponBaseVData.GearSlot == slot ) { - RemoveWeapon(weapon.Value); - } - }); - } + public void RemoveWeaponBySlot( gear_slot_t slot ) + { + MyWeapons.ToList().ForEach(weapon => + { + if (weapon.Value?.As().WeaponBaseVData.GearSlot == slot) + { + RemoveWeapon(weapon.Value); + } + }); + } - public void SelectWeaponBySlot( gear_slot_t slot ) { - MyWeapons.ToList().ForEach(weapon => { - if ( weapon.Value?.As().WeaponBaseVData.GearSlot == slot ) { - SelectWeapon(weapon.Value); - return; - } - }); - } + public void SelectWeaponBySlot( gear_slot_t slot ) + { + MyWeapons.ToList().ForEach(weapon => + { + if (weapon.Value?.As().WeaponBaseVData.GearSlot == slot) + { + SelectWeapon(weapon.Value); + return; + } + }); + } - public void DropWeaponByDesignerName( string designerName ) { - MyWeapons.ToList().ForEach(weapon => { - if ( weapon.Value?.Entity?.DesignerName == designerName ) { - DropWeapon(weapon.Value); - } - }); - } + public void DropWeaponByDesignerName( string designerName ) + { + MyWeapons.ToList().ForEach(weapon => + { + if (weapon.Value?.Entity?.DesignerName == designerName) + { + DropWeapon(weapon.Value); + } + }); + } - public void RemoveWeaponByDesignerName( string designerName ) { - MyWeapons.ToList().ForEach(weapon => { - if ( weapon.Value?.Entity?.DesignerName == designerName ) { - RemoveWeapon(weapon.Value); - } - }); - } + public void RemoveWeaponByDesignerName( string designerName ) + { + MyWeapons.ToList().ForEach(weapon => + { + if (weapon.Value?.Entity?.DesignerName == designerName) + { + RemoveWeapon(weapon.Value); + } + }); + } - public void SelectWeaponByDesignerName( string designerName ) { - MyWeapons.ToList().ForEach(weapon => { - if ( weapon.Value?.Entity?.DesignerName == designerName ) { - SelectWeapon(weapon.Value); - } - }); - } + public void SelectWeaponByDesignerName( string designerName ) + { + MyWeapons.ToList().ForEach(weapon => + { + if (weapon.Value?.Entity?.DesignerName == designerName) + { + SelectWeapon(weapon.Value); + } + }); + } - public void DropWeaponByClass() where T : CBasePlayerWeapon { - var name = EntitySystemService.TypeToDesignerName[typeof(T)]; - DropWeaponByDesignerName(name); - } + public void DropWeaponByClass() where T : CBasePlayerWeapon + { + var name = EntitySystemService.TypeToDesignerName[typeof(T)]; + DropWeaponByDesignerName(name); + } - public void RemoveWeaponByClass() where T : CBasePlayerWeapon { - var name = EntitySystemService.TypeToDesignerName[typeof(T)]; - RemoveWeaponByDesignerName(name); - } + public void RemoveWeaponByClass() where T : CBasePlayerWeapon + { + var name = EntitySystemService.TypeToDesignerName[typeof(T)]; + RemoveWeaponByDesignerName(name); + } - public void SelectWeaponByClass() where T : CBasePlayerWeapon { - var name = EntitySystemService.TypeToDesignerName[typeof(T)]; - SelectWeaponByDesignerName(name); - } + public void SelectWeaponByClass() where T : CBasePlayerWeapon + { + var name = EntitySystemService.TypeToDesignerName[typeof(T)]; + SelectWeaponByDesignerName(name); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Schema.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Schema.cs index 017e3cc76..8bc5ddf48 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Schema.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Schema.cs @@ -1,15 +1,15 @@ -using SwiftlyS2.Core.Natives; -using SwiftlyS2.Core.Extensions; -using System.Runtime.CompilerServices; -using System.Text; using System.Buffers; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using System.Text; +using SwiftlyS2.Core.Extensions; +using SwiftlyS2.Core.Natives; namespace SwiftlyS2.Core.Schemas; internal static class Schema { - private static readonly HashSet dangerousFields = new() { + private static readonly HashSet dangerousFields = [ 0x509D90A88DFCB984, // CMaterialAttributeAnimTag.m_flValue 0xCB1D2D708DFCB984, // CNmConstFloatNode__CDefinition.m_flValue 0xB6A452E28DFCB984, // MaterialParamFloat_t.m_flValue @@ -43,60 +43,58 @@ internal static class Schema 0xCD91F684A1B165B2, // CEconEntity.m_nFallbackSeed 0xCD91F68486253266, // CEconEntity.m_flFallbackWear 0xCD91F68467ECC1E7, // CEconEntity.m_nFallbackStatTrak - }; + ]; - private static readonly bool isFollowingServerGuidelines = NativeServerHelpers.IsFollowingServerGuidelines(); + private static readonly bool isFollowingServerGuidelines = NativeServerHelpers.IsFollowingServerGuidelines(); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static nint GetOffset( ulong hash ) - { - if (isFollowingServerGuidelines && dangerousFields.Contains(hash)) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static nint GetOffset( ulong hash ) { - throw new InvalidOperationException($"Cannot get or set 0x{hash:X16} while \"FollowCS2ServerGuidelines\" is enabled.\n\tTo use this operation, disable the option in core.jsonc."); + return isFollowingServerGuidelines && dangerousFields.Contains(hash) + ? throw new InvalidOperationException($"Cannot get or set 0x{hash:X16} while \"FollowCS2ServerGuidelines\" is enabled.\n\tTo use this operation, disable the option in core.jsonc.") + : NativeSchema.GetOffset(hash); } - return NativeSchema.GetOffset(hash); - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void Update( nint handle, ulong hash ) - { - if (isFollowingServerGuidelines && dangerousFields.Contains(hash)) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Update( nint handle, ulong hash ) { - throw new InvalidOperationException($"Cannot get or set 0x{hash:X16} while \"FollowCS2ServerGuidelines\" is enabled.\n\tTo use this operation, disable the option in core.jsonc."); + if (isFollowingServerGuidelines && dangerousFields.Contains(hash)) + { + throw new InvalidOperationException($"Cannot get or set 0x{hash:X16} while \"FollowCS2ServerGuidelines\" is enabled.\n\tTo use this operation, disable the option in core.jsonc."); + } + NativeSchema.SetStateChanged(handle, hash); } - NativeSchema.SetStateChanged(handle, hash); - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetString( nint handle, nint offset, string value ) - { - handle.Write(offset, StringPool.Allocate(value)); - } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetString( nint handle, nint offset, string value ) + { + handle.Write(offset, StringPool.Allocate(value)); + } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static void SetFixedString( nint handle, nint offset, string value, int maxSize ) - { - var pool = ArrayPool.Shared; - var size = Encoding.UTF8.GetByteCount(value); - if (size + 1 > maxSize) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void SetFixedString( nint handle, nint offset, string value, int maxSize ) { - throw new ArgumentException("Value is too long. Max size is " + maxSize); + var pool = ArrayPool.Shared; + var size = Encoding.UTF8.GetByteCount(value); + if (size + 1 > maxSize) + { + throw new ArgumentException("Value is too long. Max size is " + maxSize); + } + var bytes = pool.Rent(size + 1); + _ = Encoding.UTF8.GetBytes(value, bytes); + bytes[size] = 0; + Unsafe.CopyBlockUnaligned( + ref handle.AsRef(offset), + ref bytes[0], + (uint)(size + 1) + ); + pool.Return(bytes); } - var bytes = pool.Rent(size + 1); - Encoding.UTF8.GetBytes(value, bytes); - bytes[size] = 0; - Unsafe.CopyBlockUnaligned( - ref handle.AsRef(offset), - ref bytes[0], - (uint)(size + 1) - ); - pool.Return(bytes); - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static string GetString( nint handle ) - { - return Marshal.PtrToStringUTF8(handle) ?? string.Empty; - } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static string GetString( nint handle ) + { + return Marshal.PtrToStringUTF8(handle) ?? string.Empty; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaClass.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaClass.cs index c74bc8cd9..f9350b4b0 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaClass.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaClass.cs @@ -1,15 +1,13 @@ -using System.Security.Cryptography.X509Certificates; -using SwiftlyS2.Core.Natives.NativeObjects; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.Schemas; - namespace SwiftlyS2.Core.Schemas; -internal abstract class SchemaClass : SchemaField { - public SchemaClass(nint handle) : base(handle, 0) { - } +internal abstract class SchemaClass : SchemaField +{ + public SchemaClass( nint handle ) : base(handle, 0) + { + } - public SchemaClass(nint handle, ulong hash) : base(handle, hash) { - } + public SchemaClass( nint handle, ulong hash ) : base(handle, hash) + { + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaField.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaField.cs index eb6b97384..13af94195 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaField.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaField.cs @@ -3,16 +3,18 @@ namespace SwiftlyS2.Core.Schemas; -internal abstract class SchemaField : NativeHandle, ISchemaField { +internal abstract class SchemaField : NativeHandle, ISchemaField +{ - public nint FieldOffset { get; set; } + public nint FieldOffset { get; set; } - private ulong _hash { get; set; } = 0; + private ulong _hash { get; set; } = 0; - public SchemaField(nint handle, ulong hash) : base(handle) { - FieldOffset = Schema.GetOffset(hash); - _hash = hash; - } + public SchemaField( nint handle, ulong hash ) : base(handle) + { + FieldOffset = Schema.GetOffset(hash); + _hash = hash; + } } diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaFixedArray.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaFixedArray.cs index 070c75ea3..5bc3029bc 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaFixedArray.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaFixedArray.cs @@ -1,28 +1,30 @@ -using SwiftlyS2.Shared.Schemas; using SwiftlyS2.Core.Extensions; +using SwiftlyS2.Shared.Schemas; namespace SwiftlyS2.Core.Schemas; -internal class SchemaFixedArray : SchemaField, ISchemaFixedArray where T : unmanaged { +internal class SchemaFixedArray : SchemaField, ISchemaFixedArray where T : unmanaged +{ - public int ElementAlignment { get; set; } + public int ElementAlignment { get; set; } - public int ElementCount { get; set; } + public int ElementCount { get; set; } - public int ElementSize { get; set; } + public int ElementSize { get; set; } - public SchemaFixedArray(nint handle, ulong hash, int elementCount, int elementSize, int elementAlignment) : base(handle, hash) { - - ElementAlignment = elementAlignment; - ElementCount = elementCount; - ElementSize = elementSize; - } + public SchemaFixedArray( nint handle, ulong hash, int elementCount, int elementSize, int elementAlignment ) : base(handle, hash) + { + + ElementAlignment = elementAlignment; + ElementCount = elementCount; + ElementSize = elementSize; + } - public ref T this[int index] { - get { - return ref _Handle.AsRef(FieldOffset + index * ElementSize); + public ref T this[int index] { + get { + return ref _Handle.AsRef(FieldOffset + index * ElementSize); + } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaFixedString.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaFixedString.cs index 26f6fcf9a..586e19b72 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaFixedString.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/SchemaFixedString.cs @@ -4,32 +4,37 @@ namespace SwiftlyS2.Core.Schemas; -internal class SchemaFixedString : SchemaFixedArray, ISchemaFixedString, IFormattable { +internal class SchemaFixedString : SchemaFixedArray, ISchemaFixedString, IFormattable +{ - public SchemaFixedString(nint handle, ulong hash, int elementCount, int elementSize, int elementAlignment) : base(handle, hash, elementCount, elementSize, elementAlignment) { - } - - public string Value { - get { - return Marshal.PtrToStringUTF8(_Handle + FieldOffset)!; + public SchemaFixedString( nint handle, ulong hash, int elementCount, int elementSize, int elementAlignment ) : base(handle, hash, elementCount, elementSize, elementAlignment) + { } - set { - unsafe { - var bytes = Encoding.UTF8.GetBytes(value); - if (bytes.Length + 1 > ElementCount) { - throw new ArgumentException("Value is too long for the fixed string."); + + public string Value { + get { + return Marshal.PtrToStringUTF8(_Handle + FieldOffset)!; } - fixed (byte* p = bytes) { - NativeMemory.Copy(p, (byte*)(_Handle + FieldOffset), (nuint)bytes.Length); + set { + unsafe + { + var bytes = Encoding.UTF8.GetBytes(value); + if (bytes.Length + 1 > ElementCount) + { + throw new ArgumentException("Value is too long for the fixed string."); + } + fixed (byte* p = bytes) + { + NativeMemory.Copy(p, (byte*)(_Handle + FieldOffset), (nuint)bytes.Length); + } + } } - } } - } - public static implicit operator string(SchemaFixedString str) => str.Value; + public static implicit operator string( SchemaFixedString str ) => str.Value; - public string ToString(string? format, IFormatProvider? formatProvider) - { - return Value; - } + public string ToString( string? format, IFormatProvider? formatProvider ) + { + return Value; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/StringPool/StringPool.cs b/managed/src/SwiftlyS2.Core/Modules/StringPool/StringPool.cs index d934d8ecd..b7e89aa87 100644 --- a/managed/src/SwiftlyS2.Core/Modules/StringPool/StringPool.cs +++ b/managed/src/SwiftlyS2.Core/Modules/StringPool/StringPool.cs @@ -1,33 +1,32 @@ using System.Text; -using SwiftlyS2.Core.Natives; namespace SwiftlyS2.Core.Natives; internal class StringPool { - private static Dictionary stringToAddr = new(); - private static Lock _lock = new(); + private static readonly Dictionary stringToAddr = []; + private static readonly Lock _lock = new(); - public static nint Allocate( string str ) - { - lock (_lock) + public static nint Allocate( string str ) { - if (stringToAddr.TryGetValue(str, out var addr)) - { - return addr; - } + lock (_lock) + { + if (stringToAddr.TryGetValue(str, out var addr)) + { + return addr; + } - var length = Encoding.UTF8.GetByteCount(str); - addr = NativeAllocator.Alloc((ulong)(length + 1)); - stringToAddr[str] = addr; - unsafe - { - Span bytes = new(addr.ToPointer(), length + 1); - Encoding.UTF8.GetBytes(str, bytes); - bytes[length] = 0; - } - return addr; + var length = Encoding.UTF8.GetByteCount(str); + addr = NativeAllocator.Alloc((ulong)(length + 1)); + stringToAddr[str] = addr; + unsafe + { + Span bytes = new(addr.ToPointer(), length + 1); + _ = Encoding.UTF8.GetBytes(str, bytes); + bytes[length] = 0; + } + return addr; + } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Translations/Localizer.cs b/managed/src/SwiftlyS2.Core/Modules/Translations/Localizer.cs index a69421896..c24308e41 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Translations/Localizer.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Translations/Localizer.cs @@ -1,36 +1,32 @@ -using SwiftlyS2.Shared.Services; using SwiftlyS2.Shared.Translation; namespace SwiftlyS2.Core.Translations; internal class Localizer : ILocalizer { - private Dictionary _Resource { get; init; } - private Dictionary _DefaultResource { get; init; } + private Dictionary _Resource { get; init; } + private Dictionary _DefaultResource { get; init; } - public Localizer(Dictionary resource, Dictionary defaultResource) - { - _Resource = resource; - _DefaultResource = defaultResource; - } + public Localizer( Dictionary resource, Dictionary defaultResource ) + { + _Resource = resource; + _DefaultResource = defaultResource; + } - public string this[string key] => Get(key); + public string this[string key] => Get(key); - public string this[string key, params object[] args] => string.Format(this[key], args); + public string this[string key, params object[] args] => string.Format(this[key], args); - public string Get(string key) - { - if (_Resource.ContainsKey(key)) { - return _Resource[key]; - } + public string Get( string key ) + { + if (_Resource.ContainsKey(key)) + { + return _Resource[key]; + } - if (_DefaultResource.ContainsKey(key)) { - return _DefaultResource[key]; + return _DefaultResource.ContainsKey(key) ? _DefaultResource[key] : throw new Exception($"Translation key {key} not found."); } - throw new Exception($"Translation key {key} not found."); - } - } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Translations/TranslationFactory.cs b/managed/src/SwiftlyS2.Core/Modules/Translations/TranslationFactory.cs index bc540fb09..9ef946947 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Translations/TranslationFactory.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Translations/TranslationFactory.cs @@ -1,68 +1,69 @@ using System.Text.Json; -using Microsoft.Extensions.Logging; using SwiftlyS2.Shared; -using SwiftlyS2.Shared.Services; using SwiftlyS2.Shared.Translation; namespace SwiftlyS2.Core.Translations; -internal class TranslationResource { - public Dictionary> Resources { get; set; } = new(); +internal class TranslationResource +{ + public Dictionary> Resources { get; set; } = []; } internal class TranslationFactory { - /// - /// Creates a new from the specified resource directory. - /// - /// The directory containing the translation files. - /// A containing the translation files. - /// Thrown when the language is not recognized. - public static TranslationResource Create(string resourceDir) { - - var resource = new TranslationResource(); - - var translationFiles = Directory.GetFiles(resourceDir, "*.jsonc"); - - foreach (var translationFile in translationFiles) { - var language = Path.GetFileNameWithoutExtension(translationFile); - if (!Language.RecognizedLanguages.Contains(language)) { - throw new Exception($"Invalid language: {language}"); - } - - var options = new JsonSerializerOptions() { - AllowTrailingCommas = true, - ReadCommentHandling = JsonCommentHandling.Skip, - }; - - var translation = JsonSerializer.Deserialize>(File.ReadAllText(translationFile), options) ?? new(); - foreach (var translationEntry in translation) { - translation[translationEntry.Key] = translationEntry.Value.Colored(); - } - resource.Resources[new Language(language)] = translation; + /// + /// Creates a new from the specified resource directory. + /// + /// The directory containing the translation files. + /// A containing the translation files. + /// Thrown when the language is not recognized. + public static TranslationResource Create( string resourceDir ) + { + + var resource = new TranslationResource(); + + var translationFiles = Directory.GetFiles(resourceDir, "*.jsonc"); + + foreach (var translationFile in translationFiles) + { + var language = Path.GetFileNameWithoutExtension(translationFile); + if (!Language.RecognizedLanguages.Contains(language)) + { + throw new Exception($"Invalid language: {language}"); + } + + var options = new JsonSerializerOptions() { + AllowTrailingCommas = true, + ReadCommentHandling = JsonCommentHandling.Skip, + }; + + var translation = JsonSerializer.Deserialize>(File.ReadAllText(translationFile), options) ?? []; + foreach (var translationEntry in translation) + { + translation[translationEntry.Key] = translationEntry.Value.Colored(); + } + resource.Resources[new Language(language)] = translation; + } + + if (resource.Resources.Count == 0) + { + throw new Exception("No translation files found."); + } + + return !resource.Resources.ContainsKey(Language.English) + ? throw new Exception("English primary translation file not found.") + : resource; } - if (resource.Resources.Count == 0) { - throw new Exception("No translation files found."); - } - - if (!resource.Resources.ContainsKey(Language.English)) { - throw new Exception("English primary translation file not found."); - } - return resource; - } + public static Localizer CreateLocalizer( TranslationResource resource, Language language ) + { + var defaultResource = resource.Resources[Language.English]; - public static Localizer CreateLocalizer(TranslationResource resource, Language language) { - - var defaultResource = resource.Resources[Language.English]; - - if (!resource.Resources.ContainsKey(language)) { - return new Localizer(defaultResource, defaultResource); + return !resource.Resources.ContainsKey(language) + ? new Localizer(defaultResource, defaultResource) + : new Localizer(resource.Resources[language], defaultResource); } - - return new Localizer(resource.Resources[language], defaultResource); - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Modules/Translations/TranslationService.cs b/managed/src/SwiftlyS2.Core/Modules/Translations/TranslationService.cs index d5c019a74..2a9a54d5f 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Translations/TranslationService.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Translations/TranslationService.cs @@ -1,4 +1,3 @@ -using System.Text.Json; using Microsoft.Extensions.Logging; using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.Services; @@ -10,47 +9,50 @@ namespace SwiftlyS2.Core.Translations; internal class TranslationService : ITranslationService { - private ILogger _Logger { get; init; } - private CoreContext _Context { get; init; } - private TranslationResource _TranslationResource { get; set; } = new(); + private ILogger _Logger { get; init; } + private CoreContext _Context { get; init; } + private TranslationResource _TranslationResource { get; set; } = new(); - public TranslationService(ILogger logger, CoreContext context) - { - _Logger = logger; - _Context = context; + public TranslationService( ILogger logger, CoreContext context ) + { + _Logger = logger; + _Context = context; - var translationDir = Path.Combine(_Context.BaseDirectory, "resources", "translations"); + var translationDir = Path.Combine(_Context.BaseDirectory, "resources", "translations"); - if (!Directory.Exists(translationDir)) { - return; - } + if (!Directory.Exists(translationDir)) + { + return; + } - if (!File.Exists(Path.Combine(translationDir, "en.jsonc"))) { - return; - } + if (!File.Exists(Path.Combine(translationDir, "en.jsonc"))) + { + return; + } - _TranslationResource = TranslationFactory.Create(translationDir)!; - } + _TranslationResource = TranslationFactory.Create(translationDir)!; + } - public Language GetServerLanguage() { - return new Language(NativeServerHelpers.GetServerLanguage()); - } + public Language GetServerLanguage() + { + return new Language(NativeServerHelpers.GetServerLanguage()); + } - public Localizer GetLocalizer() { - if (_TranslationResource.Resources.Count == 0) { - return new Localizer(new Dictionary(), new Dictionary()); + public Localizer GetLocalizer() + { + return _TranslationResource.Resources.Count == 0 + ? new Localizer([], []) + : TranslationFactory.CreateLocalizer(_TranslationResource, GetServerLanguage()); } - return TranslationFactory.CreateLocalizer(_TranslationResource, GetServerLanguage()); - } + public ILocalizer GetPlayerLocalizer( IPlayer player ) + { + if (_TranslationResource.Resources.Count == 0) + { + return new Localizer([], []); + } - public ILocalizer GetPlayerLocalizer(IPlayer player) - { - if (_TranslationResource.Resources.Count == 0) { - return new Localizer(new Dictionary(), new Dictionary()); + var language = NativeServerHelpers.UsePlayerLanguage() ? player.PlayerLanguage : GetServerLanguage(); + return TranslationFactory.CreateLocalizer(_TranslationResource, language); } - - var language = NativeServerHelpers.UsePlayerLanguage() ? player.PlayerLanguage : GetServerLanguage(); - return TranslationFactory.CreateLocalizer(_TranslationResource, language); - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Natives/GameFunctions.cs b/managed/src/SwiftlyS2.Core/Natives/GameFunctions.cs index d6ef2a5d6..24874d9c7 100644 --- a/managed/src/SwiftlyS2.Core/Natives/GameFunctions.cs +++ b/managed/src/SwiftlyS2.Core/Natives/GameFunctions.cs @@ -2,7 +2,6 @@ using System.Text; using Spectre.Console; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.Natives; @@ -102,7 +101,7 @@ public static nint GetWeaponCSDataFromKey( int unknown, string key ) var pool = ArrayPool.Shared; var keyLength = Encoding.UTF8.GetByteCount(key); var keyBuffer = pool.Rent(keyLength + 1); - Encoding.UTF8.GetBytes(key, keyBuffer); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); keyBuffer[keyLength] = 0; fixed (byte* pKey = keyBuffer) { @@ -191,7 +190,7 @@ public unsafe static void SetModel( nint pEntity, string model ) var pool = ArrayPool.Shared; var modelLength = Encoding.UTF8.GetByteCount(model); var modelBuffer = pool.Rent(modelLength + 1); - Encoding.UTF8.GetBytes(model, modelBuffer); + _ = Encoding.UTF8.GetBytes(model, modelBuffer); modelBuffer[modelLength] = 0; fixed (byte* pModel = modelBuffer) { @@ -317,12 +316,12 @@ public unsafe static nint CCSPlayer_ItemServices_GiveNamedItem( nint pThis, stri { unsafe { - void*** ppVTable = (void***)pThis; + var ppVTable = (void***)pThis; var pGiveNamedItem = (delegate* unmanaged< nint, nint, nint >)ppVTable[0][GiveNamedItemOffset]; var pool = ArrayPool.Shared; var nameLength = Encoding.UTF8.GetByteCount(name); var nameBuffer = pool.Rent(nameLength + 1); - Encoding.UTF8.GetBytes(name, nameBuffer); + _ = Encoding.UTF8.GetBytes(name, nameBuffer); nameBuffer[nameLength] = 0; fixed (byte* pName = nameBuffer) { @@ -359,8 +358,8 @@ public unsafe static void CCSPlayer_WeaponServices_DropWeapon( nint pThis, nint { unsafe { - var pDropWeapon = (delegate* unmanaged< nint, nint, void >)GetVirtualFunction(pThis, DropWeaponOffset); - pDropWeapon(pThis, pWeapon); + var pDropWeapon = (delegate* unmanaged< nint, nint, nint, nint, void >)GetVirtualFunction(pThis, DropWeaponOffset); + pDropWeapon(pThis, pWeapon, 0, 0); } } catch (Exception e) @@ -394,7 +393,7 @@ public unsafe static void CEntityResourceManifest_AddResource( nint pThis, strin var pool = ArrayPool.Shared; var pathLength = Encoding.UTF8.GetByteCount(path); var pathBuffer = pool.Rent(pathLength + 1); - Encoding.UTF8.GetBytes(path, pathBuffer); + _ = Encoding.UTF8.GetBytes(path, pathBuffer); pathBuffer[pathLength] = 0; var pAddResource = (delegate* unmanaged< nint, nint, void >)GetVirtualFunction(pThis, AddResourceOffset); fixed (byte* pPath = pathBuffer) @@ -419,7 +418,7 @@ public unsafe static void SetOrAddAttribute( nint handle, string name, float val var pool = ArrayPool.Shared; var nameLength = Encoding.UTF8.GetByteCount(name); var nameBuffer = pool.Rent(nameLength + 1); - Encoding.UTF8.GetBytes(name, nameBuffer); + _ = Encoding.UTF8.GetBytes(name, nameBuffer); nameBuffer[nameLength] = 0; fixed (byte* pName = nameBuffer) { diff --git a/managed/src/SwiftlyS2.Core/Natives/NativeBinding.cs b/managed/src/SwiftlyS2.Core/Natives/NativeBinding.cs index ea8b4f6dc..59722b45d 100644 --- a/managed/src/SwiftlyS2.Core/Natives/NativeBinding.cs +++ b/managed/src/SwiftlyS2.Core/Natives/NativeBinding.cs @@ -1,44 +1,43 @@ using System.Reflection; using System.Runtime.InteropServices; using Spectre.Console; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal class NativeBinding { - public static void BindNatives( IntPtr nativeTable, int nativeTableSize ) - { - unsafe + public static void BindNatives( IntPtr nativeTable, int nativeTableSize ) { - try - { - var pNativeTables = (NativeFunction*)nativeTable; - - - for (int i = 0; i < nativeTableSize; i++) + unsafe { - var name = Marshal.PtrToStringUTF8(pNativeTables[i].Name)!; - - var names = name.Split('.'); - var className = names[0]; - var funcName = names[1]; - - var nativeNameSpace = "SwiftlyS2.Core.Natives.Native" + className; - - var nativeClass = Type.GetType(nativeNameSpace)!; - var nativeStaticField = nativeClass.GetField("_" + funcName, BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); - nativeStaticField!.SetValue(null, pNativeTables[i].Function); - var mainThreadIDStaticField = nativeClass.GetField("_MainThreadID", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); - mainThreadIDStaticField!.SetValue(null, Thread.CurrentThread.ManagedThreadId); + try + { + var pNativeTables = (NativeFunction*)nativeTable; + + + for (var i = 0; i < nativeTableSize; i++) + { + var name = Marshal.PtrToStringUTF8(pNativeTables[i].Name)!; + + var names = name.Split('.'); + var className = names[0]; + var funcName = names[1]; + + var nativeNameSpace = "SwiftlyS2.Core.Natives.Native" + className; + + var nativeClass = Type.GetType(nativeNameSpace)!; + var nativeStaticField = nativeClass.GetField("_" + funcName, BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); + nativeStaticField!.SetValue(null, pNativeTables[i].Function); + var mainThreadIDStaticField = nativeClass.GetField("_MainThreadID", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); + mainThreadIDStaticField!.SetValue(null, Thread.CurrentThread.ManagedThreadId); + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + AnsiConsole.WriteException(e); + } } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - AnsiConsole.WriteException(e); - } } - } } diff --git a/managed/src/SwiftlyS2.Core/Natives/NativeFunction.cs b/managed/src/SwiftlyS2.Core/Natives/NativeFunction.cs index 9378a4b08..e9ede8590 100644 --- a/managed/src/SwiftlyS2.Core/Natives/NativeFunction.cs +++ b/managed/src/SwiftlyS2.Core/Natives/NativeFunction.cs @@ -3,7 +3,8 @@ namespace SwiftlyS2.Core.Natives; [StructLayout(LayoutKind.Sequential, Pack = 16, Size = 16)] -internal unsafe struct NativeFunction { - public nint Name; - public nint Function; +internal unsafe struct NativeFunction +{ + public nint Name; + public nint Function; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Natives/NativeObjects/NativeHandle.cs b/managed/src/SwiftlyS2.Core/Natives/NativeObjects/NativeHandle.cs index 110ba7392..5cda846de 100644 --- a/managed/src/SwiftlyS2.Core/Natives/NativeObjects/NativeHandle.cs +++ b/managed/src/SwiftlyS2.Core/Natives/NativeObjects/NativeHandle.cs @@ -1,17 +1,17 @@ -using System.Numerics; -using System.Runtime.CompilerServices; using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives.NativeObjects; -internal class NativeHandle : INativeHandle { - protected nint _Handle { get; set; } +internal class NativeHandle : INativeHandle +{ + protected nint _Handle { get; set; } - public bool IsValid { get => _Handle != nint.Zero; } + public bool IsValid { get => _Handle != nint.Zero; } - public NativeHandle(nint handle) { - _Handle = handle; - } + public NativeHandle( nint handle ) + { + _Handle = handle; + } - public nint Address => _Handle; + public nint Address => _Handle; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Services/CommandTrackerService.cs b/managed/src/SwiftlyS2.Core/Services/CommandTrackerService.cs index a20c0ef8c..6fbc2059a 100644 --- a/managed/src/SwiftlyS2.Core/Services/CommandTrackerService.cs +++ b/managed/src/SwiftlyS2.Core/Services/CommandTrackerService.cs @@ -1,6 +1,5 @@ using SwiftlyS2.Core.Services; using SwiftlyS2.Shared; -using SwiftlyS2.Shared.Events; namespace SwiftlyS2.Core.Engine; @@ -10,7 +9,7 @@ internal class CommandTrackerService : IDisposable private ISwiftlyCore Core { get; init; } - public CommandTrackerService(ISwiftlyCore core, CommandTrackerManager commandTrackedManager) + public CommandTrackerService( ISwiftlyCore core, CommandTrackerManager commandTrackedManager ) { CommandTrackedManager = commandTrackedManager; Core = core; diff --git a/managed/src/SwiftlyS2.Core/Services/ConfigurationService.cs b/managed/src/SwiftlyS2.Core/Services/ConfigurationService.cs index f99ad50c9..a1b25a6ec 100644 --- a/managed/src/SwiftlyS2.Core/Services/ConfigurationService.cs +++ b/managed/src/SwiftlyS2.Core/Services/ConfigurationService.cs @@ -2,30 +2,37 @@ namespace SwiftlyS2.Core.Services; -internal class ConfigurationService { - private readonly RootDirService _rootDirService; +internal class ConfigurationService +{ + private readonly RootDirService _rootDirService; - public ConfigurationService(RootDirService rootDirService) { - _rootDirService = rootDirService; - } + public ConfigurationService( RootDirService rootDirService ) + { + _rootDirService = rootDirService; + } - public string GetConfigRoot() { - return _rootDirService.GetConfigRoot(); - } + public string GetConfigRoot() + { + return _rootDirService.GetConfigRoot(); + } - public string CombineConfigPath(string configPath) { - return _rootDirService.CombineRoot(configPath); - } + public string CombineConfigPath( string configPath ) + { + return _rootDirService.CombineRoot(configPath); + } - public void InitializeConfig(string configPath) { - if (!File.Exists(CombineConfigPath(configPath))) { - + public void InitializeConfig( string configPath ) + { + if (!File.Exists(CombineConfigPath(configPath))) + { + + } } - } - public IConfiguration GetConfig(string configPath) { - return new ConfigurationBuilder() - .AddJsonFile(CombineConfigPath(configPath)) - .Build(); - } + public IConfiguration GetConfig( string configPath ) + { + return new ConfigurationBuilder() + .AddJsonFile(CombineConfigPath(configPath)) + .Build(); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Services/CoreCommandService.cs b/managed/src/SwiftlyS2.Core/Services/CoreCommandService.cs index febcaf0e3..12aaaac2f 100644 --- a/managed/src/SwiftlyS2.Core/Services/CoreCommandService.cs +++ b/managed/src/SwiftlyS2.Core/Services/CoreCommandService.cs @@ -12,279 +12,279 @@ namespace SwiftlyS2.Core.Services; internal class CoreCommandService { - private ILogger _Logger { get; init; } + private ILogger _Logger { get; init; } - private ISwiftlyCore _Core { get; init; } + private ISwiftlyCore _Core { get; init; } - private ICommandService _CommandService { get; init; } - private PluginManager _PluginManager { get; init; } - private ProfileService _ProfileService { get; init; } + private ICommandService _CommandService { get; init; } + private PluginManager _PluginManager { get; init; } + private ProfileService _ProfileService { get; init; } - public CoreCommandService( ILogger logger, ISwiftlyCore core, PluginManager pluginManager, ProfileService profileService ) - { - _Logger = logger; - _Core = core; - _CommandService = core.Command; - _PluginManager = pluginManager; - _ProfileService = profileService; - _CommandService.RegisterCommand("sw", OnCommand, true); - } + public CoreCommandService( ILogger logger, ISwiftlyCore core, PluginManager pluginManager, ProfileService profileService ) + { + _Logger = logger; + _Core = core; + _CommandService = core.Command; + _PluginManager = pluginManager; + _ProfileService = profileService; + _ = _CommandService.RegisterCommand("sw", OnCommand, true); + } - private void OnCommand( ICommandContext context ) - { - try + private void OnCommand( ICommandContext context ) { - if (context.IsSentByPlayer) return; + try + { + if (context.IsSentByPlayer) return; - var args = context.Args; - if (args.Length == 0) - { - ShowHelp(context); - return; - } + var args = context.Args; + if (args.Length == 0) + { + ShowHelp(context); + return; + } - switch (args[0]) - { - case "help": - ShowHelp(context); - break; - case "credits": - _Logger.LogInformation(@"SwiftlyS2 was created and developed by Swiftly Solution SRL and the contributors. + switch (args[0]) + { + case "help": + ShowHelp(context); + break; + case "credits": + _Logger.LogInformation(@"SwiftlyS2 was created and developed by Swiftly Solution SRL and the contributors. SwiftlyS2 is licensed under the GNU General Public License v3.0 or later. Website: https://swiftlys2.net/ GitHub: https://github.com/swiftly-solution/swiftlys2"); - break; - case "list": - var players = _Core.PlayerManager.GetAllPlayers(); - var outString = $"Connected players: {_Core.PlayerManager.PlayerCount}/{_Core.Engine.MaxPlayers}"; - foreach (var player in players) - { - outString += $"\n{player.PlayerID}. {player.Controller?.PlayerName}{(player.IsFakeClient ? " (BOT)" : "")} (steamid={player.SteamID})"; - } - _Logger.LogInformation(outString); - break; - case "status": - var uptime = DateTime.Now - System.Diagnostics.Process.GetCurrentProcess().StartTime; - var outStrings = $"Uptime: {uptime.Days}d {uptime.Hours}h {uptime.Minutes}m {uptime.Seconds}s"; - outStrings += $"\nManaged Heap Memory: {GC.GetTotalMemory(false) / 1024.0f / 1024.0f:0.00} MB"; - outStrings += $"\nLoaded Plugins: {_PluginManager.GetPlugins().Count()}"; - outStrings += $"\nPlayers: {_Core.PlayerManager.PlayerCount}/{_Core.Engine.MaxPlayers}"; - outStrings += $"\nMap: {_Core.Engine.Map}"; - _Logger.LogInformation(outStrings); - break; - case "version": - var outVersion = $"SwiftlyS2 Version: {NativeEngineHelpers.GetNativeVersion()}"; - outVersion += $"\nSwiftlyS2 Managed Version: {Assembly.GetExecutingAssembly().GetName().Version}"; - outVersion += $"\nSwiftlyS2 Runtime Version: {Environment.Version}"; - outVersion += $"\nSwiftlyS2 C++ Version: C++23"; - outVersion += $"\nSwiftlyS2 .NET Version: {RuntimeInformation.FrameworkDescription}"; - outVersion += $"\nGitHub URL: https://github.com/swiftly-solution/swiftlys2"; - _Logger.LogInformation(outVersion); - break; - case "gc": - if (context.IsSentByPlayer) - { - context.Reply("This command can only be executed from the server console."); - return; - } - var outGc = "Garbage Collection Information:"; - outGc += $"\n - Total Memory: {GC.GetTotalMemory(false) / 1024.0f / 1024.0f:0.00} MB"; - outGc += $"\n - Is Server GC: {GCSettings.IsServerGC}"; - outGc += $"\n - Max Generation: {GC.MaxGeneration}"; - for (int i = 0; i <= GC.MaxGeneration; i++) - { - outGc += $"\n - Generation {i} Collection Count: {GC.CollectionCount(i)}"; - } - outGc += $"\n - Latency Mode: {GCSettings.LatencyMode}"; - _Logger.LogInformation(outGc); - break; - case "plugins": - if (context.IsSentByPlayer) - { - context.Reply("This command can only be executed from the server console."); - return; - } - PluginCommand(context); - break; - case "profiler": - if (context.IsSentByPlayer) - { - context.Reply("This command can only be executed from the server console."); - return; - } - ProfilerCommand(context); - break; - case "confilter": - if (context.IsSentByPlayer) - { - context.Reply("This command can only be executed from the server console."); - return; - } - ConfilterCommand(context); - break; - default: - ShowHelp(context); - break; - } - } - catch (Exception e) - { - if (!GlobalExceptionHandler.Handle(e)) return; - _Logger.LogError(e, "Error executing command"); - } - } - - private static void ShowHelp( ICommandContext context ) - { - var table = new Table().AddColumn("Command").AddColumn("Description"); - table.AddRow("credits", "List Swiftly credits"); - table.AddRow("help", "Show the help for Swiftly Commands"); - table.AddRow("list", "Show the list of online players"); - table.AddRow("status", "Show the status of the server"); - if (!context.IsSentByPlayer) - { - table.AddRow("confilter", "Console Filter Menu"); - table.AddRow("plugins", "Plugin Management Menu"); - table.AddRow("gc", "Show garbage collection information on managed"); - table.AddRow("profiler", "Profiler Menu"); + break; + case "list": + var players = _Core.PlayerManager.GetAllPlayers(); + var outString = $"Connected players: {_Core.PlayerManager.PlayerCount}/{_Core.Engine.MaxPlayers}"; + foreach (var player in players) + { + outString += $"\n{player.PlayerID}. {player.Controller?.PlayerName}{(player.IsFakeClient ? " (BOT)" : "")} (steamid={player.SteamID})"; + } + _Logger.LogInformation(outString); + break; + case "status": + var uptime = DateTime.Now - System.Diagnostics.Process.GetCurrentProcess().StartTime; + var outStrings = $"Uptime: {uptime.Days}d {uptime.Hours}h {uptime.Minutes}m {uptime.Seconds}s"; + outStrings += $"\nManaged Heap Memory: {GC.GetTotalMemory(false) / 1024.0f / 1024.0f:0.00} MB"; + outStrings += $"\nLoaded Plugins: {_PluginManager.GetPlugins().Count()}"; + outStrings += $"\nPlayers: {_Core.PlayerManager.PlayerCount}/{_Core.Engine.GlobalVars.MaxClients}"; + outStrings += $"\nMap: {_Core.Engine.GlobalVars.MapName.Value}"; + _Logger.LogInformation(outStrings); + break; + case "version": + var outVersion = $"SwiftlyS2 Version: {NativeEngineHelpers.GetNativeVersion()}"; + outVersion += $"\nSwiftlyS2 Managed Version: {Assembly.GetExecutingAssembly().GetName().Version}"; + outVersion += $"\nSwiftlyS2 Runtime Version: {Environment.Version}"; + outVersion += $"\nSwiftlyS2 C++ Version: C++23"; + outVersion += $"\nSwiftlyS2 .NET Version: {RuntimeInformation.FrameworkDescription}"; + outVersion += $"\nGitHub URL: https://github.com/swiftly-solution/swiftlys2"; + _Logger.LogInformation(outVersion); + break; + case "gc": + if (context.IsSentByPlayer) + { + context.Reply("This command can only be executed from the server console."); + return; + } + var outGc = "Garbage Collection Information:"; + outGc += $"\n - Total Memory: {GC.GetTotalMemory(false) / 1024.0f / 1024.0f:0.00} MB"; + outGc += $"\n - Is Server GC: {GCSettings.IsServerGC}"; + outGc += $"\n - Max Generation: {GC.MaxGeneration}"; + for (var i = 0; i <= GC.MaxGeneration; i++) + { + outGc += $"\n - Generation {i} Collection Count: {GC.CollectionCount(i)}"; + } + outGc += $"\n - Latency Mode: {GCSettings.LatencyMode}"; + _Logger.LogInformation(outGc); + break; + case "plugins": + if (context.IsSentByPlayer) + { + context.Reply("This command can only be executed from the server console."); + return; + } + PluginCommand(context); + break; + case "profiler": + if (context.IsSentByPlayer) + { + context.Reply("This command can only be executed from the server console."); + return; + } + ProfilerCommand(context); + break; + case "confilter": + if (context.IsSentByPlayer) + { + context.Reply("This command can only be executed from the server console."); + return; + } + ConfilterCommand(context); + break; + default: + ShowHelp(context); + break; + } + } + catch (Exception e) + { + if (!GlobalExceptionHandler.Handle(e)) return; + _Logger.LogError(e, "Error executing command"); + } } - table.AddRow("version", "Display Swiftly version"); - AnsiConsole.Write(table); - } - private void ConfilterCommand( ICommandContext context ) - { - var args = context.Args; - if (args.Length == 1) + private static void ShowHelp( ICommandContext context ) { - var table = new Table().AddColumn("Command").AddColumn("Description"); - table.AddRow("enable", "Enable console filtering"); - table.AddRow("disable", "Disable console filtering"); - table.AddRow("status", "Show the status of the console filter"); - table.AddRow("reload", "Reload console filter configuration"); - AnsiConsole.Write(table); - return; + var table = new Table().AddColumn("Command").AddColumn("Description"); + _ = table.AddRow("credits", "List Swiftly credits"); + _ = table.AddRow("help", "Show the help for Swiftly Commands"); + _ = table.AddRow("list", "Show the list of online players"); + _ = table.AddRow("status", "Show the status of the server"); + if (!context.IsSentByPlayer) + { + _ = table.AddRow("confilter", "Console Filter Menu"); + _ = table.AddRow("plugins", "Plugin Management Menu"); + _ = table.AddRow("gc", "Show garbage collection information on managed"); + _ = table.AddRow("profiler", "Profiler Menu"); + } + _ = table.AddRow("version", "Display Swiftly version"); + AnsiConsole.Write(table); } - switch (args[1]) + private void ConfilterCommand( ICommandContext context ) { - case "enable": - if (!_Core.ConsoleOutput.IsFilterEnabled()) _Core.ConsoleOutput.ToggleFilter(); - _Logger.LogInformation("Console filtering has been enabled."); - break; - case "disable": - if (_Core.ConsoleOutput.IsFilterEnabled()) _Core.ConsoleOutput.ToggleFilter(); - _Logger.LogInformation("Console filtering has been disabled."); - break; - case "status": - _Logger.LogInformation($"Console filtering is currently {(_Core.ConsoleOutput.IsFilterEnabled() ? "enabled" : "disabled")}.\nBelow are some statistics for the filtering process:\n{_Core.ConsoleOutput.GetCounterText()}"); - break; - case "reload": - _Core.ConsoleOutput.ReloadFilterConfiguration(); - _Logger.LogInformation("Console filter configuration reloaded."); - break; - default: - _Logger.LogWarning("Unknown command"); - break; - } - } + var args = context.Args; + if (args.Length == 1) + { + var table = new Table().AddColumn("Command").AddColumn("Description"); + _ = table.AddRow("enable", "Enable console filtering"); + _ = table.AddRow("disable", "Disable console filtering"); + _ = table.AddRow("status", "Show the status of the console filter"); + _ = table.AddRow("reload", "Reload console filter configuration"); + AnsiConsole.Write(table); + return; + } - private void ProfilerCommand( ICommandContext context ) - { - var args = context.Args; - if (args.Length == 1) - { - var table = new Table().AddColumn("Command").AddColumn("Description"); - table.AddRow("enable", "Enable the profiler"); - table.AddRow("disable", "Disable the profiler"); - table.AddRow("status", "Show the status of the profiler"); - table.AddRow("save", "Save the profiler data to a file"); - AnsiConsole.Write(table); - return; + switch (args[1]) + { + case "enable": + if (!_Core.ConsoleOutput.IsFilterEnabled()) _Core.ConsoleOutput.ToggleFilter(); + _Logger.LogInformation("Console filtering has been enabled."); + break; + case "disable": + if (_Core.ConsoleOutput.IsFilterEnabled()) _Core.ConsoleOutput.ToggleFilter(); + _Logger.LogInformation("Console filtering has been disabled."); + break; + case "status": + _Logger.LogInformation($"Console filtering is currently {(_Core.ConsoleOutput.IsFilterEnabled() ? "enabled" : "disabled")}.\nBelow are some statistics for the filtering process:\n{_Core.ConsoleOutput.GetCounterText()}"); + break; + case "reload": + _Core.ConsoleOutput.ReloadFilterConfiguration(); + _Logger.LogInformation("Console filter configuration reloaded."); + break; + default: + _Logger.LogWarning("Unknown command"); + break; + } } - switch (args[1]) + private void ProfilerCommand( ICommandContext context ) { - case "enable": - _ProfileService.Enable(); - _Logger.LogInformation("The profiler has been enabled."); - break; - case "disable": - _ProfileService.Disable(); - _Logger.LogInformation("The profiler has been disabled."); - break; - case "status": - _Logger.LogInformation($"Profiler is currently {(_ProfileService.IsEnabled() ? "enabled" : "disabled")}."); - break; - case "save": - var pluginId = args.Length >= 3 ? args[2] : ""; - var basePath = Environment.GetEnvironmentVariable("SWIFTLY_MANAGED_ROOT")!; - if (!File.Exists(Path.Combine(basePath, "profilers"))) + var args = context.Args; + if (args.Length == 1) { - Directory.CreateDirectory(Path.Combine(basePath, "profilers")); + var table = new Table().AddColumn("Command").AddColumn("Description"); + _ = table.AddRow("enable", "Enable the profiler"); + _ = table.AddRow("disable", "Disable the profiler"); + _ = table.AddRow("status", "Show the status of the profiler"); + _ = table.AddRow("save", "Save the profiler data to a file"); + AnsiConsole.Write(table); + return; } - Guid guid = Guid.NewGuid(); - File.WriteAllText(Path.Combine(basePath, "profilers", $"profiler.{guid}.{(pluginId == "" ? "core" : pluginId)}.json"), _ProfileService.GenerateJSONPerformance(pluginId)); - _Logger.LogInformation($"Profile saved to {Path.Combine(basePath, "profilers", $"profiler.{guid}.{(pluginId == "" ? "core" : pluginId)}.json")}"); - break; - default: - _Logger.LogWarning("Unknown command"); - break; - } - } + switch (args[1]) + { + case "enable": + _ProfileService.Enable(); + _Logger.LogInformation("The profiler has been enabled."); + break; + case "disable": + _ProfileService.Disable(); + _Logger.LogInformation("The profiler has been disabled."); + break; + case "status": + _Logger.LogInformation($"Profiler is currently {(_ProfileService.IsEnabled() ? "enabled" : "disabled")}."); + break; + case "save": + var pluginId = args.Length >= 3 ? args[2] : ""; + var basePath = Environment.GetEnvironmentVariable("SWIFTLY_MANAGED_ROOT")!; + if (!File.Exists(Path.Combine(basePath, "profilers"))) + { + _ = Directory.CreateDirectory(Path.Combine(basePath, "profilers")); + } - private void PluginCommand( ICommandContext context ) - { - var args = context.Args; - if (args.Length == 1) - { - var table = new Table().AddColumn("Command").AddColumn("Description"); - table.AddRow("list", "List all plugins"); - table.AddRow("load", "Load a plugin"); - table.AddRow("unload", "Unload a plugin"); - table.AddRow("reload", "Reload a plugin"); - AnsiConsole.Write(table); - return; + Guid guid = Guid.NewGuid(); + File.WriteAllText(Path.Combine(basePath, "profilers", $"profiler.{guid}.{(pluginId == "" ? "core" : pluginId)}.json"), _ProfileService.GenerateJSONPerformance(pluginId)); + _Logger.LogInformation($"Profile saved to {Path.Combine(basePath, "profilers", $"profiler.{guid}.{(pluginId == "" ? "core" : pluginId)}.json")}"); + break; + default: + _Logger.LogWarning("Unknown command"); + break; + } } - switch (args[1]) + private void PluginCommand( ICommandContext context ) { - case "list": - var table = new Table().AddColumn("Name").AddColumn("Status").AddColumn("Version").AddColumn("Author").AddColumn("Website"); - foreach (var plugin in _PluginManager.GetPlugins()) - { - table.AddRow(plugin.Metadata?.Id ?? "", plugin.Status?.ToString() ?? "Unknown", plugin.Metadata?.Version ?? "", plugin.Metadata?.Author ?? "", plugin.Metadata?.Website ?? ""); - } - AnsiConsole.Write(table); - break; - case "load": - if (args.Length < 3) + var args = context.Args; + if (args.Length == 1) { - _Logger.LogWarning("Usage: sw plugins load "); - return; - } - _PluginManager.LoadPluginById(args[2]); - break; - case "unload": - if (args.Length < 3) - { - _Logger.LogWarning("Usage: sw plugins unload "); - return; + var table = new Table().AddColumn("Command").AddColumn("Description"); + _ = table.AddRow("list", "List all plugins"); + _ = table.AddRow("load", "Load a plugin"); + _ = table.AddRow("unload", "Unload a plugin"); + _ = table.AddRow("reload", "Reload a plugin"); + AnsiConsole.Write(table); + return; } - _PluginManager.UnloadPlugin(args[2]); - break; - case "reload": - if (args.Length < 3) + + switch (args[1]) { - _Logger.LogWarning("Usage: sw plugins reload "); - return; + case "list": + var table = new Table().AddColumn("Name").AddColumn("Status").AddColumn("Version").AddColumn("Author").AddColumn("Website"); + foreach (var plugin in _PluginManager.GetPlugins()) + { + _ = table.AddRow(plugin.Metadata?.Id ?? "", plugin.Status?.ToString() ?? "Unknown", plugin.Metadata?.Version ?? "", plugin.Metadata?.Author ?? "", plugin.Metadata?.Website ?? ""); + } + AnsiConsole.Write(table); + break; + case "load": + if (args.Length < 3) + { + _Logger.LogWarning("Usage: sw plugins load "); + return; + } + _ = _PluginManager.LoadPluginById(args[2]); + break; + case "unload": + if (args.Length < 3) + { + _Logger.LogWarning("Usage: sw plugins unload "); + return; + } + _ = _PluginManager.UnloadPlugin(args[2]); + break; + case "reload": + if (args.Length < 3) + { + _Logger.LogWarning("Usage: sw plugins reload "); + return; + } + _PluginManager.ReloadPlugin(args[2]); + break; + default: + _Logger.LogWarning("Unknown command"); + break; } - _PluginManager.ReloadPlugin(args[2]); - break; - default: - _Logger.LogWarning("Unknown command"); - break; } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Services/CoreHookService.cs b/managed/src/SwiftlyS2.Core/Services/CoreHookService.cs index eacfcac2e..80c3c2129 100644 --- a/managed/src/SwiftlyS2.Core/Services/CoreHookService.cs +++ b/managed/src/SwiftlyS2.Core/Services/CoreHookService.cs @@ -1,358 +1,394 @@ using System.Runtime.CompilerServices; -using System.Text; using System.Runtime.InteropServices; +using System.Text; using Microsoft.Extensions.Logging; using SwiftlyS2.Core.Events; using SwiftlyS2.Core.Extensions; -using SwiftlyS2.Core.Natives; +using SwiftlyS2.Core.ProtobufDefinitions; +using SwiftlyS2.Core.SchemaDefinitions; using SwiftlyS2.Shared; using SwiftlyS2.Shared.Memory; using SwiftlyS2.Shared.Misc; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Core.SchemaDefinitions; +using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.SteamAPI; namespace SwiftlyS2.Core.Services; internal class CoreHookService : IDisposable { - private ILogger _Logger { get; init; } - private ISwiftlyCore _Core { get; init; } - - public CoreHookService( ILogger logger, ISwiftlyCore core ) - { - _Logger = logger; - _Core = core; - - HookTouch(); - HookCanAcquire(); - HookCommandExecute(); - HookICVarFindConCommand(); - HookCCSPlayer_WeaponServices_CanUse(); - HookSteamServerAPIActivated(); - } - - private delegate int CanAcquireDelegate( nint pItemServices, nint pEconItemView, nint acquireMethod, nint unk1 ); - /* - Original function in engine2.dll: __int64 sub_1C0CD0(__int64 a1, int a2, unsigned int a3, ...) - This is a variadic function, but we only need the first two variable arguments (v55, v57) - - __int64 sub_1C0CD0(__int64 a1, int a2, unsigned int a3, ...) + private ILogger _Logger { get; init; } + private ISwiftlyCore _Core { get; init; } + + public CoreHookService( ILogger logger, ISwiftlyCore core ) { - ... - - va_list va; // [rsp+D28h] [rbp+D28h] - __int64 v55; // [rsp+E28h] [rbp+D28h] BYREF - va_list va1; // [rsp+E28h] [rbp+D28h] + _Logger = logger; + _Core = core; + + HookTouch(); + HookCanAcquire(); + HookCommandExecute(); + HookICVarFindConCommand(); + HookCCSPlayer_WeaponServices_CanUse(); + HookSteamServerAPIActivated(); + HookCPlayer_MovementServices_RunCommand(); + } - ... + private delegate int CanAcquireDelegate( nint pItemServices, nint pEconItemView, nint acquireMethod, nint unk1 ); + /* + Original function in engine2.dll: __int64 sub_1C0CD0(__int64 a1, int a2, unsigned int a3, ...) + This is a variadic function, but we only need the first two variable arguments (v55, v57) - va_start(va1, a3); - va_start(va, a3); - v55 = va_arg(va1, _QWORD); - v57 = va_arg(va1, _QWORD); + __int64 sub_1C0CD0(__int64 a1, int a2, unsigned int a3, ...) + { + ... + + va_list va; // [rsp+D28h] [rbp+D28h] + __int64 v55; // [rsp+E28h] [rbp+D28h] BYREF + va_list va1; // [rsp+E28h] [rbp+D28h] + + ... + + va_start(va1, a3); + va_start(va, a3); + v55 = va_arg(va1, _QWORD); + v57 = va_arg(va1, _QWORD); + + ... + } + + So we model it as a fixed 5-parameter function for interop purposes + */ + private delegate nint ExecuteCommandDelegate( nint a1, int a2, uint a3, nint a4, nint a5 ); + + private delegate byte CCSPlayer_WeaponServices_CanUse( nint pWeaponServices, nint pBasePlayerWeapon ); + private delegate nint CBaseEntity_Touch_Template( nint pBaseEntity, nint pOtherEntity ); + private delegate void SteamServerAPIActivated( nint pServer ); + private delegate nint CPlayer_MovementServices_RunCommandDelegate( nint pMovementServices, nint pUserCmd ); + + private IUnmanagedFunction? _ExecuteCommand; + private Guid _ExecuteCommandGuid; + private IUnmanagedFunction? _CanAcquire; + private Guid _CanAcquireGuid; + private IUnmanagedFunction? _CCSPlayer_WeaponServices_CanUse; + private Guid _CCSPlayer_WeaponServices_CanUseGuid; + private IUnmanagedFunction? _CBaseEntity_StartTouch; + private Guid _CBaseEntity_StartTouchGuid; + private IUnmanagedFunction? _CBaseEntity_Touch; + private Guid _CBaseEntity_TouchGuid; + private IUnmanagedFunction? _CBaseEntity_EndTouch; + private Guid _CBaseEntity_EndTouchGuid; + private IUnmanagedFunction? _SteamServerAPIActivated; + private Guid _SteamServerAPIActivatedGuid; + private IUnmanagedFunction? _CPlayer_MovementServices_RunCommand; + private Guid _CPlayer_MovementServices_RunCommandGuid; + + private void HookSteamServerAPIActivated() + { + var offset = _Core.GameData.GetOffset("IServerGameDLL::GameServerSteamAPIActivated"); + var pVtable = _Core.Memory.GetVTableAddress(Library.Server, "CSource2Server"); - ... - } + if (pVtable == null) + { + _Logger.LogError("Failed to get CSource2Server vtable."); + return; + } - So we model it as a fixed 5-parameter function for interop purposes - */ - private delegate nint ExecuteCommandDelegate( nint a1, int a2, uint a3, nint a4, nint a5 ); - - private delegate byte CCSPlayer_WeaponServices_CanUse( nint pWeaponServices, nint pBasePlayerWeapon ); - private delegate nint CBaseEntity_Touch_Template( nint pBaseEntity, nint pOtherEntity ); - private delegate void SteamServerAPIActivated( nint pServer ); - - private IUnmanagedFunction? _ExecuteCommand; - private Guid _ExecuteCommandGuid; - private IUnmanagedFunction? _CanAcquire; - private Guid _CanAcquireGuid; - private IUnmanagedFunction? _CCSPlayer_WeaponServices_CanUse; - private Guid _CCSPlayer_WeaponServices_CanUseGuid; - private IUnmanagedFunction? _CBaseEntity_StartTouch; - private Guid _CBaseEntity_StartTouchGuid; - private IUnmanagedFunction? _CBaseEntity_Touch; - private Guid _CBaseEntity_TouchGuid; - private IUnmanagedFunction? _CBaseEntity_EndTouch; - private Guid _CBaseEntity_EndTouchGuid; - private IUnmanagedFunction? _SteamServerAPIActivated; - private Guid _SteamServerAPIActivatedGuid; - - private void HookSteamServerAPIActivated() - { - var offset = _Core.GameData.GetOffset("IServerGameDLL::GameServerSteamAPIActivated"); - var pVtable = _Core.Memory.GetVTableAddress(Library.Server, "CSource2Server"); - - if (pVtable == null) - { - _Logger.LogError("Failed to get CSource2Server vtable."); - return; + _SteamServerAPIActivated = _Core.Memory.GetUnmanagedFunctionByVTable(pVtable!.Value, offset); + _Logger.LogInformation("Hooking IServerGameDLL::GameServerSteamAPIActivated at {Address}", _SteamServerAPIActivated.Address); + _SteamServerAPIActivatedGuid = _SteamServerAPIActivated.AddHook(next => + { + return ( pServer ) => + { + if (!CSteamGameServerAPIContext.Init()) + { + _Logger.LogError("Failed to initialize Steamworks GameServer API context."); + return; + } + + + EventPublisher.InvokeOnSteamAPIActivatedHook(); + next()(pServer); + }; + }); } - _SteamServerAPIActivated = _Core.Memory.GetUnmanagedFunctionByVTable(pVtable!.Value, offset); - _Logger.LogInformation("Hooking IServerGameDLL::GameServerSteamAPIActivated at {Address}", _SteamServerAPIActivated.Address); - _SteamServerAPIActivatedGuid = _SteamServerAPIActivated.AddHook(next => + private void HookCCSPlayer_WeaponServices_CanUse() { - return ( pServer ) => - { - if (!CSteamGameServerAPIContext.Init()) + var offset = _Core.GameData.GetOffset("CCSPlayer_WeaponServices::CanUse"); + var pVtable = _Core.Memory.GetVTableAddress(Library.Server, "CCSPlayer_WeaponServices"); + + if (pVtable == null) { - _Logger.LogError("Failed to initialize Steamworks GameServer API context."); - return; + _Logger.LogError("Failed to get CCSPlayer_WeaponServices vtable."); + return; } + _CCSPlayer_WeaponServices_CanUse = _Core.Memory.GetUnmanagedFunctionByVTable(pVtable!.Value, offset); + _Logger.LogInformation("Hooking CCSPlayer_WeaponServices::CanUse at {Address}", _CCSPlayer_WeaponServices_CanUse.Address); + _CCSPlayer_WeaponServices_CanUseGuid = _CCSPlayer_WeaponServices_CanUse.AddHook(next => + { + return ( pWeaponServices, pBasePlayerWeapon ) => + { - - EventPublisher.InvokeOnSteamAPIActivatedHook(); - next()(pServer); - }; - }); - } + var result = next()(pWeaponServices, pBasePlayerWeapon); - private void HookCCSPlayer_WeaponServices_CanUse() - { - var offset = _Core.GameData.GetOffset("CCSPlayer_WeaponServices::CanUse"); - var pVtable = _Core.Memory.GetVTableAddress(Library.Server, "CCSPlayer_WeaponServices"); + var weaponServices = new CCSPlayer_WeaponServicesImpl(pWeaponServices); + var basePlayerWeapon = new CCSWeaponBaseImpl(pBasePlayerWeapon); - if (pVtable == null) + var @event = new OnWeaponServicesCanUseHookEvent { + WeaponServices = weaponServices, + Weapon = basePlayerWeapon, + OriginalResult = result != 0 + }; + EventPublisher.InvokeOnWeaponServicesCanUseHook(@event); + + return @event.Intercepted ? @event.OriginalResult ? (byte)1 : (byte)0 : result; + }; + }); + } + + private void HookTouch() { - _Logger.LogError("Failed to get CCSPlayer_WeaponServices vtable."); - return; + var touchOffset = _Core.GameData.GetOffset("CBaseEntity::Touch"); + var startTouchOffset = _Core.GameData.GetOffset("CBaseEntity::StartTouch"); + var endTouchOffset = _Core.GameData.GetOffset("CBaseEntity::EndTouch"); + var pVtable = _Core.Memory.GetVTableAddress(Library.Server, "CBaseEntity"); + + if (pVtable == null) + { + _Logger.LogError("Failed to get CBaseEntity vtable."); + return; + } + _CBaseEntity_StartTouch = _Core.Memory.GetUnmanagedFunctionByVTable(pVtable!.Value, startTouchOffset); + _CBaseEntity_Touch = _Core.Memory.GetUnmanagedFunctionByVTable(pVtable!.Value, touchOffset); + _CBaseEntity_EndTouch = _Core.Memory.GetUnmanagedFunctionByVTable(pVtable!.Value, endTouchOffset); + _Logger.LogInformation("Hooking CBaseEntity::StartTouch at {Address}", _CBaseEntity_StartTouch.Address); + _Logger.LogInformation("Hooking CBaseEntity::Touch at {Address}", _CBaseEntity_Touch.Address); + _Logger.LogInformation("Hooking CBaseEntity::EndTouch at {Address}", _CBaseEntity_EndTouch.Address); + + _CBaseEntity_StartTouchGuid = _CBaseEntity_StartTouch.AddHook(next => + { + return ( pBaseEntity, pOtherEntity ) => + { + var entity = new CBaseEntityImpl(pBaseEntity); + var otherEntity = new CBaseEntityImpl(pOtherEntity); + EventPublisher.InvokeOnEntityStartTouch(new OnEntityStartTouchEvent { Entity = entity, OtherEntity = otherEntity }); + EventPublisher.InvokeOnEntityTouchHook(new OnEntityTouchHookEvent { Entity = entity, OtherEntity = otherEntity, TouchType = EntityTouchType.StartTouch }); + return next()(pBaseEntity, pOtherEntity); + }; + }); + + _CBaseEntity_TouchGuid = _CBaseEntity_Touch.AddHook(next => + { + return ( pBaseEntity, pOtherEntity ) => + { + var entity = new CBaseEntityImpl(pBaseEntity); + var otherEntity = new CBaseEntityImpl(pOtherEntity); + EventPublisher.InvokeOnEntityTouch(new OnEntityTouchEvent { Entity = entity, OtherEntity = otherEntity }); + EventPublisher.InvokeOnEntityTouchHook(new OnEntityTouchHookEvent { Entity = entity, OtherEntity = otherEntity, TouchType = EntityTouchType.Touch }); + return next()(pBaseEntity, pOtherEntity); + }; + }); + + _CBaseEntity_EndTouchGuid = _CBaseEntity_EndTouch.AddHook(next => + { + return ( pBaseEntity, pOtherEntity ) => + { + var entity = new CBaseEntityImpl(pBaseEntity); + var otherEntity = new CBaseEntityImpl(pOtherEntity); + EventPublisher.InvokeOnEntityEndTouch(new OnEntityEndTouchEvent { Entity = entity, OtherEntity = otherEntity }); + EventPublisher.InvokeOnEntityTouchHook(new OnEntityTouchHookEvent { Entity = entity, OtherEntity = otherEntity, TouchType = EntityTouchType.EndTouch }); + return next()(pBaseEntity, pOtherEntity); + }; + }); } - _CCSPlayer_WeaponServices_CanUse = _Core.Memory.GetUnmanagedFunctionByVTable(pVtable!.Value, offset); - _Logger.LogInformation("Hooking CCSPlayer_WeaponServices::CanUse at {Address}", _CCSPlayer_WeaponServices_CanUse.Address); - _CCSPlayer_WeaponServices_CanUseGuid = _CCSPlayer_WeaponServices_CanUse.AddHook(next => + private void HookCanAcquire() { - return ( pWeaponServices, pBasePlayerWeapon ) => - { - var result = next()(pWeaponServices, pBasePlayerWeapon); + var address = _Core.GameData.GetSignature("CCSPlayer_ItemServices::CanAcquire"); - var weaponServices = new CCSPlayer_WeaponServicesImpl(pWeaponServices); - var basePlayerWeapon = new CCSWeaponBaseImpl(pBasePlayerWeapon); + _Logger.LogInformation("Hooking CCSPlayer_ItemServices::CanAcquire at {Address}", address); - var @event = new OnWeaponServicesCanUseHookEvent { - WeaponServices = weaponServices, - Weapon = basePlayerWeapon, - OriginalResult = result != 0 - }; - EventPublisher.InvokeOnWeaponServicesCanUseHook(@event); + _CanAcquire = _Core.Memory.GetUnmanagedFunctionByAddress(address); + _CanAcquireGuid = _CanAcquire.AddHook(next => + { - if (@event.Intercepted) + return ( pItemServices, pEconItemView, acquireMethod, unk1 ) => { - return @event.OriginalResult ? (byte)1 : (byte)0; - } + var result = next()(pItemServices, pEconItemView, acquireMethod, unk1); - return result; - }; - }); - } + var itemServices = _Core.Memory.ToSchemaClass(pItemServices); + var econItemView = _Core.Memory.ToSchemaClass(pEconItemView); - private void HookTouch() - { - var touchOffset = _Core.GameData.GetOffset("CBaseEntity::Touch"); - var startTouchOffset = _Core.GameData.GetOffset("CBaseEntity::StartTouch"); - var endTouchOffset = _Core.GameData.GetOffset("CBaseEntity::EndTouch"); - var pVtable = _Core.Memory.GetVTableAddress(Library.Server, "CBaseEntity"); + var @event = new OnItemServicesCanAcquireHookEvent { + ItemServices = itemServices, + EconItemView = econItemView, + WeaponVData = _Core.Helpers.GetWeaponCSDataFromKey(econItemView.ItemDefinitionIndex), + AcquireMethod = (AcquireMethod)acquireMethod, + OriginalResult = (AcquireResult)result + }; - if (pVtable == null) - { - _Logger.LogError("Failed to get CBaseEntity vtable."); - return; - } - _CBaseEntity_StartTouch = _Core.Memory.GetUnmanagedFunctionByVTable(pVtable!.Value, startTouchOffset); - _CBaseEntity_Touch = _Core.Memory.GetUnmanagedFunctionByVTable(pVtable!.Value, touchOffset); - _CBaseEntity_EndTouch = _Core.Memory.GetUnmanagedFunctionByVTable(pVtable!.Value, endTouchOffset); - _Logger.LogInformation("Hooking CBaseEntity::StartTouch at {Address}", _CBaseEntity_StartTouch.Address); - _Logger.LogInformation("Hooking CBaseEntity::Touch at {Address}", _CBaseEntity_Touch.Address); - _Logger.LogInformation("Hooking CBaseEntity::EndTouch at {Address}", _CBaseEntity_EndTouch.Address); - - _CBaseEntity_StartTouchGuid = _CBaseEntity_StartTouch.AddHook(next => - { - return ( pBaseEntity, pOtherEntity ) => - { - var entity = new CBaseEntityImpl(pBaseEntity); - var otherEntity = new CBaseEntityImpl(pOtherEntity); - EventPublisher.InvokeOnEntityStartTouch(new OnEntityStartTouchEvent { Entity = entity, OtherEntity = otherEntity }); - EventPublisher.InvokeOnEntityTouchHook(new OnEntityTouchHookEvent { Entity = entity, OtherEntity = otherEntity, TouchType = EntityTouchType.StartTouch }); - return next()(pBaseEntity, pOtherEntity); - }; - }); - - _CBaseEntity_TouchGuid = _CBaseEntity_Touch.AddHook(next => - { - return ( pBaseEntity, pOtherEntity ) => - { - var entity = new CBaseEntityImpl(pBaseEntity); - var otherEntity = new CBaseEntityImpl(pOtherEntity); - EventPublisher.InvokeOnEntityTouch(new OnEntityTouchEvent { Entity = entity, OtherEntity = otherEntity }); - EventPublisher.InvokeOnEntityTouchHook(new OnEntityTouchHookEvent { Entity = entity, OtherEntity = otherEntity, TouchType = EntityTouchType.Touch }); - return next()(pBaseEntity, pOtherEntity); - }; - }); - - _CBaseEntity_EndTouchGuid = _CBaseEntity_EndTouch.AddHook(next => - { - return ( pBaseEntity, pOtherEntity ) => - { - var entity = new CBaseEntityImpl(pBaseEntity); - var otherEntity = new CBaseEntityImpl(pOtherEntity); - EventPublisher.InvokeOnEntityEndTouch(new OnEntityEndTouchEvent { Entity = entity, OtherEntity = otherEntity }); - EventPublisher.InvokeOnEntityTouchHook(new OnEntityTouchHookEvent { Entity = entity, OtherEntity = otherEntity, TouchType = EntityTouchType.EndTouch }); - return next()(pBaseEntity, pOtherEntity); - }; - }); - } - private void HookCanAcquire() - { - - var address = _Core.GameData.GetSignature("CCSPlayer_ItemServices::CanAcquire"); - - _Logger.LogInformation("Hooking CCSPlayer_ItemServices::CanAcquire at {Address}", address); - - _CanAcquire = _Core.Memory.GetUnmanagedFunctionByAddress(address); - _CanAcquireGuid = _CanAcquire.AddHook(next => - { + EventPublisher.InvokeOnCanAcquireHook(@event); - return ( pItemServices, pEconItemView, acquireMethod, unk1 ) => - { - var result = next()(pItemServices, pEconItemView, acquireMethod, unk1); + if (@event.Intercepted) + { + // original result is modified here. + return (int)@event.OriginalResult; + } - var itemServices = _Core.Memory.ToSchemaClass(pItemServices); - var econItemView = _Core.Memory.ToSchemaClass(pEconItemView); + return result; + }; + }); + } - var @event = new OnItemServicesCanAcquireHookEvent { - ItemServices = itemServices, - EconItemView = econItemView, - WeaponVData = _Core.Helpers.GetWeaponCSDataFromKey(econItemView.ItemDefinitionIndex), - AcquireMethod = (AcquireMethod)acquireMethod, - OriginalResult = (AcquireResult)result - }; + private void HookCommandExecute() + { - EventPublisher.InvokeOnCanAcquireHook(@event); + var address = _Core.GameData.GetSignature("Cmd_ExecuteCommand"); - if (@event.Intercepted) + _Logger.LogInformation("Hooking Cmd_ExecuteCommand at {Address}", address); + + _ExecuteCommand = _Core.Memory.GetUnmanagedFunctionByAddress(address); + _ExecuteCommandGuid = _ExecuteCommand.AddHook(( next ) => { - // original result is modified here. - return (int)@event.OriginalResult; - } + return ( a1, a2, a3, a4, a5 ) => + { + unsafe + { + if (a5 != nint.Zero) + { + ref var command = ref Unsafe.AsRef((void*)a5); + var @eventPre = new OnCommandExecuteHookEvent(ref command, HookMode.Pre); + EventPublisher.InvokeOnCommandExecuteHook(@eventPre); + + var result = next()(a1, a2, a3, a4, a5); + + var @eventPost = new OnCommandExecuteHookEvent(ref command, HookMode.Post); + EventPublisher.InvokeOnCommandExecuteHook(@eventPost); + return result; + } + return next()(a1, a2, a3, a4, a5); + } + }; + }); + } - return result; - }; - }); - } + private delegate nint FindConCommandDelegate( nint pICvar, nint pRet, nint pConCommandName, int unk1 ); + private delegate nint FindConCommandDelegateLinux( nint pICvar, nint pConCommandName, int unk1 ); - private void HookCommandExecute() - { + private IUnmanagedFunction? _FindConCommandWindows; + private IUnmanagedFunction? _FindConCommandLinux; + private Guid _FindConCommandGuid; - var address = _Core.GameData.GetSignature("Cmd_ExecuteCommand"); + private void HookICVarFindConCommand() + { + if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) + { + var offset = _Core.GameData.GetOffset("ICvar::FindConCommand"); + _FindConCommandLinux = _Core.Memory.GetUnmanagedFunctionByVTable(_Core.Memory.GetVTableAddress("tier0", "CCvar")!.Value, offset); - _Logger.LogInformation("Hooking Cmd_ExecuteCommand at {Address}", address); + _Logger.LogInformation("Hooking ICvar::FindConCommand at {Address}", _FindConCommandLinux.Address); - _ExecuteCommand = _Core.Memory.GetUnmanagedFunctionByAddress(address); - _ExecuteCommandGuid = _ExecuteCommand.AddHook(( next ) => - { - return ( a1, a2, a3, a4, a5 ) => - { - unsafe + _FindConCommandGuid = _FindConCommandLinux.AddHook(( next ) => + { + return ( pICvar, pConCommandName, unk1 ) => + { + var commandName = Marshal.PtrToStringAnsi(pConCommandName)!; + if (commandName.StartsWith("^wb^")) + { + commandName = commandName.Substring(4); + var bytes = Encoding.UTF8.GetBytes(commandName); + unsafe + { + var pStr = (nint)NativeMemory.AllocZeroed((nuint)bytes.Length); + pStr.CopyFrom(bytes); + var result = next()(pICvar, pStr, unk1); + NativeMemory.Free((void*)pStr); + return result; + } + } + return next()(pICvar, pConCommandName, unk1); + }; + }); + } + else { - if (a5 != nint.Zero) + var offset = _Core.GameData.GetOffset("ICvar::FindConCommand"); + _FindConCommandWindows = _Core.Memory.GetUnmanagedFunctionByVTable(_Core.Memory.GetVTableAddress("tier0", "CCvar")!.Value, offset); + + _Logger.LogInformation("Hooking ICvar::FindConCommand at {Address}", _FindConCommandWindows.Address); + + _FindConCommandGuid = _FindConCommandWindows.AddHook(( next ) => + { + return ( pICvar, pRet, pConCommandName, unk1 ) => { - ref var command = ref Unsafe.AsRef((void*)a5); - var @eventPre = new OnCommandExecuteHookEvent(ref command, HookMode.Pre); - EventPublisher.InvokeOnCommandExecuteHook(@eventPre); + var commandName = Marshal.PtrToStringAnsi(pConCommandName)!; + if (commandName.StartsWith("^wb^")) + { + commandName = commandName.Substring(4); + var bytes = Encoding.UTF8.GetBytes(commandName); + unsafe + { + var pStr = (nint)NativeMemory.AllocZeroed((nuint)bytes.Length); + pStr.CopyFrom(bytes); + var result = next()(pICvar, pRet, pStr, unk1); + NativeMemory.Free((void*)pStr); + return result; + } + } + return next()(pICvar, pRet, pConCommandName, unk1); + }; + }); + } + } - var result = next()(a1, a2, a3, a4, a5); - var @eventPost = new OnCommandExecuteHookEvent(ref command, HookMode.Post); - EventPublisher.InvokeOnCommandExecuteHook(@eventPost); - return result; - } - return next()(a1, a2, a3, a4, a5); + private void HookCPlayer_MovementServices_RunCommand() + { + var offset = _Core.GameData.GetOffset("CPlayer_MovementServices::RunCommand"); + var pVtable = _Core.Memory.GetVTableAddress(Library.Server, "CPlayer_MovementServices"); + if (pVtable == null) + { + _Logger.LogError("Failed to get CPlayer_MovementServices vtable."); + return; } - }; - }); - } + _CPlayer_MovementServices_RunCommand = _Core.Memory.GetUnmanagedFunctionByVTable(pVtable!.Value, offset); + _Logger.LogInformation("Hooking CPlayer_MovementServices::RunCommand at {Address}", _CPlayer_MovementServices_RunCommand.Address); + _CPlayer_MovementServices_RunCommandGuid = _CPlayer_MovementServices_RunCommand.AddHook(( next ) => + { + return ( pMovementServices, pUserCmd ) => + { - private delegate nint FindConCommandDelegate( nint pICvar, nint pRet, nint pConCommandName, int unk1 ); - private delegate nint FindConCommandDelegateLinux( nint pICvar, nint pConCommandName, int unk1 ); + var movementService = new CCSPlayer_MovementServicesImpl(pMovementServices); - private IUnmanagedFunction? _FindConCommandWindows; - private IUnmanagedFunction? _FindConCommandLinux; - private Guid _FindConCommandGuid; + var userCmdPb = new CSGOUserCmdPBImpl(pUserCmd + 0x10, false); - private void HookICVarFindConCommand() - { - if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) - { - var offset = _Core.GameData.GetOffset("ICvar::FindConCommand"); - _FindConCommandLinux = _Core.Memory.GetUnmanagedFunctionByVTable(_Core.Memory.GetVTableAddress("tier0", "CCvar")!.Value, offset); + var buttonState = new CInButtonStateImpl(pUserCmd + 0x58); - _Logger.LogInformation("Hooking ICvar::FindConCommand at {Address}", _FindConCommandLinux.Address); + var @event = new OnMovementServicesRunCommandHookEvent { + MovementServices = movementService, + ButtonState = buttonState, + UserCmdPB = userCmdPb + }; + EventPublisher.InvokeOnMovementServicesRunCommandHook(@event); - _FindConCommandGuid = _FindConCommandLinux.AddHook(( next ) => - { - return ( pICvar, pConCommandName, unk1 ) => - { - var commandName = Marshal.PtrToStringAnsi(pConCommandName)!; - if (commandName.StartsWith("^wb^")) - { - commandName = commandName.Substring(4); - var bytes = Encoding.UTF8.GetBytes(commandName); - unsafe - { - var pStr = (nint)NativeMemory.AllocZeroed((nuint)bytes.Length); - pStr.CopyFrom(bytes); - var result = next()(pICvar, pStr, unk1); - NativeMemory.Free((void*)pStr); + var result = next()(pMovementServices, pUserCmd); return result; - } - } - return next()(pICvar, pConCommandName, unk1); - }; - }); + }; + }); } - else - { - var offset = _Core.GameData.GetOffset("ICvar::FindConCommand"); - _FindConCommandWindows = _Core.Memory.GetUnmanagedFunctionByVTable(_Core.Memory.GetVTableAddress("tier0", "CCvar")!.Value, offset); - _Logger.LogInformation("Hooking ICvar::FindConCommand at {Address}", _FindConCommandWindows.Address); - - _FindConCommandGuid = _FindConCommandWindows.AddHook(( next ) => - { - return ( pICvar, pRet, pConCommandName, unk1 ) => - { - var commandName = Marshal.PtrToStringAnsi(pConCommandName)!; - if (commandName.StartsWith("^wb^")) - { - commandName = commandName.Substring(4); - var bytes = Encoding.UTF8.GetBytes(commandName); - unsafe - { - var pStr = (nint)NativeMemory.AllocZeroed((nuint)bytes.Length); - pStr.CopyFrom(bytes); - var result = next()(pICvar, pRet, pStr, unk1); - NativeMemory.Free((void*)pStr); - return result; - } - } - return next()(pICvar, pRet, pConCommandName, unk1); - }; - }); + public void Dispose() + { + _CanAcquire!.RemoveHook(_CanAcquireGuid); + _ExecuteCommand!.RemoveHook(_ExecuteCommandGuid); + _FindConCommandWindows?.RemoveHook(_FindConCommandGuid); + _FindConCommandLinux?.RemoveHook(_FindConCommandGuid); + _CCSPlayer_WeaponServices_CanUse!.RemoveHook(_CCSPlayer_WeaponServices_CanUseGuid); + _CBaseEntity_StartTouch!.RemoveHook(_CBaseEntity_StartTouchGuid); + _CBaseEntity_Touch!.RemoveHook(_CBaseEntity_TouchGuid); + _CBaseEntity_EndTouch!.RemoveHook(_CBaseEntity_EndTouchGuid); + _SteamServerAPIActivated?.RemoveHook(_SteamServerAPIActivatedGuid); + _CPlayer_MovementServices_RunCommand?.RemoveHook(_CPlayer_MovementServices_RunCommandGuid); } - } - - public void Dispose() - { - _CanAcquire!.RemoveHook(_CanAcquireGuid); - _ExecuteCommand!.RemoveHook(_ExecuteCommandGuid); - _FindConCommandWindows?.RemoveHook(_FindConCommandGuid); - _FindConCommandLinux?.RemoveHook(_FindConCommandGuid); - _CCSPlayer_WeaponServices_CanUse!.RemoveHook(_CCSPlayer_WeaponServices_CanUseGuid); - _CBaseEntity_StartTouch!.RemoveHook(_CBaseEntity_StartTouchGuid); - _CBaseEntity_Touch!.RemoveHook(_CBaseEntity_TouchGuid); - _CBaseEntity_EndTouch!.RemoveHook(_CBaseEntity_EndTouchGuid); - _SteamServerAPIActivated?.RemoveHook(_SteamServerAPIActivatedGuid); - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Services/DataDirectoryService.cs b/managed/src/SwiftlyS2.Core/Services/DataDirectoryService.cs index 33d71f58d..b95642133 100644 --- a/managed/src/SwiftlyS2.Core/Services/DataDirectoryService.cs +++ b/managed/src/SwiftlyS2.Core/Services/DataDirectoryService.cs @@ -1,24 +1,29 @@ namespace SwiftlyS2.Core.Services; -internal class DataDirectoryService { - - private RootDirService RootDirService { get; init; } +internal class DataDirectoryService +{ - private string DataRoot => RootDirService.GetDataRoot(); - public DataDirectoryService(RootDirService rootDirService) { - RootDirService = rootDirService; + private RootDirService RootDirService { get; init; } - if (!Directory.Exists(DataRoot)) { - Directory.CreateDirectory(DataRoot); + private string DataRoot => RootDirService.GetDataRoot(); + public DataDirectoryService( RootDirService rootDirService ) + { + RootDirService = rootDirService; + + if (!Directory.Exists(DataRoot)) + { + _ = Directory.CreateDirectory(DataRoot); + } } - } - public void EnsurePluginDataDirectory(string pluginId) { - var pluginDataDirectory = GetPluginDataDirectory(pluginId); - if (!Directory.Exists(pluginDataDirectory)) { - Directory.CreateDirectory(pluginDataDirectory); + public void EnsurePluginDataDirectory( string pluginId ) + { + var pluginDataDirectory = GetPluginDataDirectory(pluginId); + if (!Directory.Exists(pluginDataDirectory)) + { + _ = Directory.CreateDirectory(pluginDataDirectory); + } } - } - public string GetPluginDataDirectory(string pluginId) => Path.Combine(DataRoot, pluginId); + public string GetPluginDataDirectory( string pluginId ) => Path.Combine(DataRoot, pluginId); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Services/PluginConfigurationService.cs b/managed/src/SwiftlyS2.Core/Services/PluginConfigurationService.cs index a12ae461f..afcba8deb 100644 --- a/managed/src/SwiftlyS2.Core/Services/PluginConfigurationService.cs +++ b/managed/src/SwiftlyS2.Core/Services/PluginConfigurationService.cs @@ -1,8 +1,5 @@ -using System.Data.Common; using System.Text.Json; using Microsoft.Extensions.Configuration; -using SwiftlyS2.Core.Natives; -using SwiftlyS2.Core.Services; using SwiftlyS2.Shared.Services; using Tomlyn; @@ -11,151 +8,145 @@ namespace SwiftlyS2.Core.Services; internal class PluginConfigurationService : IPluginConfigurationService { - private ConfigurationService _ConfigurationService { get; init; } - private CoreContext _Id { get; init; } - private IConfigurationManager? _Manager { get; set; } + private ConfigurationService _ConfigurationService { get; init; } + private CoreContext _Id { get; init; } + private IConfigurationManager? _Manager { get; set; } - public bool BasePathExists - { - get => Path.Exists(BasePath); - } - - public PluginConfigurationService(CoreContext id, ConfigurationService configurationService) - { - _Id = id; - _ConfigurationService = configurationService; - } - - public string BasePath => Path.Combine(_ConfigurationService.GetConfigRoot(), "plugins", _Id.Name); + public bool BasePathExists { + get => Path.Exists(BasePath); + } - public string GetRoot() - { - var dir = Path.Combine(_ConfigurationService.GetConfigRoot(), "plugins", _Id.Name); - if (!Directory.Exists(dir)) + public PluginConfigurationService( CoreContext id, ConfigurationService configurationService ) { - Directory.CreateDirectory(dir); + _Id = id; + _ConfigurationService = configurationService; } - return dir; - } - public string GetConfigPath(string name) - { - return Path.Combine(GetRoot(), name); - } + public string BasePath => Path.Combine(_ConfigurationService.GetConfigRoot(), "plugins", _Id.Name); - public IPluginConfigurationService InitializeWithTemplate(string name, string templatePath) - { - - var configPath = GetConfigPath(name); - - if (File.Exists(configPath)) + public string GetRoot() { - return this; + var dir = Path.Combine(_ConfigurationService.GetConfigRoot(), "plugins", _Id.Name); + if (!Directory.Exists(dir)) + { + _ = Directory.CreateDirectory(dir); + } + return dir; } - var dir = Path.GetDirectoryName(configPath); - if (dir is not null) + public string GetConfigPath( string name ) { - Directory.CreateDirectory(dir); + return Path.Combine(GetRoot(), name); } - File.Create(configPath).Close(); - - var templateAbsPath = Path.Combine(_Id.BaseDirectory, "resources", "templates", templatePath); - if (!File.Exists(templateAbsPath)) + public IPluginConfigurationService InitializeWithTemplate( string name, string templatePath ) { - throw new FileNotFoundException($"Template file not found: {templateAbsPath}"); - } - File.Copy(templateAbsPath, configPath); - return this; - } + var configPath = GetConfigPath(name); - public IPluginConfigurationService InitializeJsonWithModel(string name, string sectionName) where T : class, new() - { + if (File.Exists(configPath)) + { + return this; + } - var configPath = GetConfigPath(name); + var dir = Path.GetDirectoryName(configPath); + if (dir is not null) + { + _ = Directory.CreateDirectory(dir); + } + File.Create(configPath).Close(); - if (File.Exists(configPath)) - { - return this; + var templateAbsPath = Path.Combine(_Id.BaseDirectory, "resources", "templates", templatePath); + + if (!File.Exists(templateAbsPath)) + { + throw new FileNotFoundException($"Template file not found: {templateAbsPath}"); + } + + File.Copy(templateAbsPath, configPath); + return this; } - var dir = Path.GetDirectoryName(configPath); - if (dir is not null) + public IPluginConfigurationService InitializeJsonWithModel( string name, string sectionName ) where T : class, new() { - Directory.CreateDirectory(dir); - } - var config = new T(); + var configPath = GetConfigPath(name); - var wrapped = new Dictionary - { - [sectionName] = config - }; + if (File.Exists(configPath)) + { + return this; + } - var options = new JsonSerializerOptions - { - WriteIndented = true, - IncludeFields = true, - PropertyNamingPolicy = null - }; + var dir = Path.GetDirectoryName(configPath); + if (dir is not null) + { + _ = Directory.CreateDirectory(dir); + } - var configJson = JsonSerializer.Serialize(wrapped, options); - File.WriteAllText(configPath, configJson); + var config = new T(); - return this; - } + var wrapped = new Dictionary { + [sectionName] = config + }; - public IPluginConfigurationService InitializeTomlWithModel(string name, string sectionName) where T : class, new() - { + var options = new JsonSerializerOptions { + WriteIndented = true, + IncludeFields = true, + PropertyNamingPolicy = null + }; - var configPath = GetConfigPath(name); + var configJson = JsonSerializer.Serialize(wrapped, options); + File.WriteAllText(configPath, configJson); - if (File.Exists(configPath)) - { - return this; + return this; } - var dir = Path.GetDirectoryName(configPath); - if (dir is not null) + public IPluginConfigurationService InitializeTomlWithModel( string name, string sectionName ) where T : class, new() { - Directory.CreateDirectory(dir); - } - var config = new T(); + var configPath = GetConfigPath(name); - var wrapped = new Dictionary - { - [sectionName] = config - }; + if (File.Exists(configPath)) + { + return this; + } - var tomlString = Toml.FromModel(wrapped); - File.WriteAllText(configPath, tomlString); + var dir = Path.GetDirectoryName(configPath); + if (dir is not null) + { + _ = Directory.CreateDirectory(dir); + } - return this; - } + var config = new T(); - public IPluginConfigurationService Configure(Action configure) - { - configure(Manager); - return this; - } + var wrapped = new Dictionary { + [sectionName] = config + }; - public IConfigurationManager Manager - { - get + var tomlString = Toml.FromModel(wrapped); + File.WriteAllText(configPath, tomlString); + + return this; + } + + public IPluginConfigurationService Configure( Action configure ) { - if (!BasePathExists) - { - throw new Exception("Base path does not exist in file system. Please call InitializeWithTemplate, InitializeJsonWithModel or InitializeTomlWithModel before using the Manager."); - } - if (_Manager is null) - { - _Manager = new ConfigurationManager(); - _Manager.SetBasePath(BasePath); - } - return _Manager; + configure(Manager); + return this; + } + + public IConfigurationManager Manager { + get { + if (!BasePathExists) + { + throw new Exception("Base path does not exist in file system. Please call InitializeWithTemplate, InitializeJsonWithModel or InitializeTomlWithModel before using the Manager."); + } + if (_Manager is null) + { + _Manager = new ConfigurationManager(); + _ = _Manager.SetBasePath(BasePath); + } + return _Manager; + } } - } } diff --git a/managed/src/SwiftlyS2.Core/Services/ProfileService.cs b/managed/src/SwiftlyS2.Core/Services/ProfileService.cs index ba188640d..428f80288 100644 --- a/managed/src/SwiftlyS2.Core/Services/ProfileService.cs +++ b/managed/src/SwiftlyS2.Core/Services/ProfileService.cs @@ -1,179 +1,176 @@ -using SwiftlyS2.Core.Natives; +using System.Diagnostics; using System.Text.Json; using System.Text.Json.Serialization; -using System.Linq; -using System.Diagnostics; namespace SwiftlyS2.Core.Services; internal class ProfileService { - private readonly Lock _lock = new(); - private bool _enabled = false; - - private readonly Dictionary> _statsTable = new(); - private readonly Dictionary> _activeStartsUs = new(); - - // High-precision timestamping via Stopwatch, mapped to epoch micros - private readonly long _swBaseTicks; - private readonly ulong _epochBaseMicros; - private readonly double _ticksToMicro; - - private sealed class Stat - { - public ulong Count; - public ulong TotalUs; - public ulong MinUs = ulong.MaxValue; - public ulong MaxUs = 0UL; - } - - public ProfileService() - { - _swBaseTicks = Stopwatch.GetTimestamp(); - // Capture epoch micros at approximately the same moment as base ticks - var epochTicks = DateTimeOffset.UtcNow.Ticks - DateTimeOffset.UnixEpoch.Ticks; // 100ns ticks - _epochBaseMicros = (ulong)(epochTicks / 10); - _ticksToMicro = 1_000_000.0 / Stopwatch.Frequency; - } - - private ulong NowMicrosecondsSinceUnixEpoch() - { - var deltaTicks = Stopwatch.GetTimestamp() - _swBaseTicks; - var micros = (ulong)(deltaTicks * _ticksToMicro); - return _epochBaseMicros + micros; - } - - public void Enable() - { - lock (_lock) + private readonly Lock _lock = new(); + private bool _enabled = false; + + private readonly Dictionary> _statsTable = []; + private readonly Dictionary> _activeStartsUs = []; + + // High-precision timestamping via Stopwatch, mapped to epoch micros + private readonly long _swBaseTicks; + private readonly ulong _epochBaseMicros; + private readonly double _ticksToMicro; + + private sealed class Stat + { + public ulong Count; + public ulong TotalUs; + public ulong MinUs = ulong.MaxValue; + public ulong MaxUs = 0UL; + } + + public ProfileService() + { + _swBaseTicks = Stopwatch.GetTimestamp(); + // Capture epoch micros at approximately the same moment as base ticks + var epochTicks = DateTimeOffset.UtcNow.Ticks - DateTimeOffset.UnixEpoch.Ticks; // 100ns ticks + _epochBaseMicros = (ulong)(epochTicks / 10); + _ticksToMicro = 1_000_000.0 / Stopwatch.Frequency; + } + + private ulong NowMicrosecondsSinceUnixEpoch() + { + var deltaTicks = Stopwatch.GetTimestamp() - _swBaseTicks; + var micros = (ulong)(deltaTicks * _ticksToMicro); + return _epochBaseMicros + micros; + } + + public void Enable() { - _statsTable.Clear(); - _activeStartsUs.Clear(); - _enabled = true; + lock (_lock) + { + _statsTable.Clear(); + _activeStartsUs.Clear(); + _enabled = true; + } } - } - public void Disable() - { - lock (_lock) + public void Disable() { - _enabled = false; - _statsTable.Clear(); - _activeStartsUs.Clear(); + lock (_lock) + { + _enabled = false; + _statsTable.Clear(); + _activeStartsUs.Clear(); + } } - } - public bool IsEnabled() - { - lock (_lock) + public bool IsEnabled() { - return _enabled; + lock (_lock) + { + return _enabled; + } } - } - public void StartRecordingWithIdentifier( string identifier, string name ) - { - if (!_enabled) return; - lock (_lock) + public void StartRecordingWithIdentifier( string identifier, string name ) { - if (!_activeStartsUs.TryGetValue(identifier, out var startMap)) - { - startMap = new Dictionary(StringComparer.Ordinal); - _activeStartsUs[identifier] = startMap; - } - startMap[name] = NowMicrosecondsSinceUnixEpoch(); + if (!_enabled) return; + lock (_lock) + { + if (!_activeStartsUs.TryGetValue(identifier, out var startMap)) + { + startMap = new Dictionary(StringComparer.Ordinal); + _activeStartsUs[identifier] = startMap; + } + startMap[name] = NowMicrosecondsSinceUnixEpoch(); + } } - } - public void StopRecordingWithIdentifier( string identifier, string name ) - { - if (!_enabled) return; - lock (_lock) + public void StopRecordingWithIdentifier( string identifier, string name ) { - if (!_activeStartsUs.TryGetValue(identifier, out var startMap)) return; - if (!startMap.TryGetValue(name, out var startUs)) return; - var endUs = NowMicrosecondsSinceUnixEpoch(); - var durUs = endUs > startUs ? endUs - startUs : 0UL; - startMap.Remove(name); - - if (!_statsTable.TryGetValue(identifier, out var nameToStat)) - { - nameToStat = new Dictionary(StringComparer.Ordinal); - _statsTable[identifier] = nameToStat; - } - if (!nameToStat.TryGetValue(name, out var stat)) - { - stat = new Stat(); - nameToStat[name] = stat; - } - - stat.Count++; - stat.TotalUs += durUs; - if (durUs < stat.MinUs) stat.MinUs = durUs; - if (durUs > stat.MaxUs) stat.MaxUs = durUs; + if (!_enabled) return; + lock (_lock) + { + if (!_activeStartsUs.TryGetValue(identifier, out var startMap)) return; + if (!startMap.TryGetValue(name, out var startUs)) return; + var endUs = NowMicrosecondsSinceUnixEpoch(); + var durUs = endUs > startUs ? endUs - startUs : 0UL; + _ = startMap.Remove(name); + + if (!_statsTable.TryGetValue(identifier, out var nameToStat)) + { + nameToStat = new Dictionary(StringComparer.Ordinal); + _statsTable[identifier] = nameToStat; + } + if (!nameToStat.TryGetValue(name, out var stat)) + { + stat = new Stat(); + nameToStat[name] = stat; + } + + stat.Count++; + stat.TotalUs += durUs; + if (durUs < stat.MinUs) stat.MinUs = durUs; + if (durUs > stat.MaxUs) stat.MaxUs = durUs; + } } - } - public void RecordTimeWithIdentifier( string identifier, string name, double duration ) - { - lock (_lock) + public void RecordTimeWithIdentifier( string identifier, string name, double duration ) { - if (!_enabled) return; - - var durUs = duration <= 0 ? 0UL : (ulong)duration; - - if (!_statsTable.TryGetValue(identifier, out var nameToStat)) - { - nameToStat = new Dictionary(StringComparer.Ordinal); - _statsTable[identifier] = nameToStat; - } - if (!nameToStat.TryGetValue(name, out var stat)) - { - stat = new Stat(); - nameToStat[name] = stat; - } - - stat.Count++; - stat.TotalUs += durUs; - if (durUs < stat.MinUs) stat.MinUs = durUs; - if (durUs > stat.MaxUs) stat.MaxUs = durUs; + lock (_lock) + { + if (!_enabled) return; + + var durUs = duration <= 0 ? 0UL : (ulong)duration; + + if (!_statsTable.TryGetValue(identifier, out var nameToStat)) + { + nameToStat = new Dictionary(StringComparer.Ordinal); + _statsTable[identifier] = nameToStat; + } + if (!nameToStat.TryGetValue(name, out var stat)) + { + stat = new Stat(); + nameToStat[name] = stat; + } + + stat.Count++; + stat.TotalUs += durUs; + if (durUs < stat.MinUs) stat.MinUs = durUs; + if (durUs > stat.MaxUs) stat.MaxUs = durUs; + } } - } - - public void StartRecording( string name ) - { - StartRecordingWithIdentifier("SwiftlyS2", name); - } - - public void StopRecording( string name ) - { - StopRecordingWithIdentifier("SwiftlyS2", name); - } - - public void RecordTime( string name, double duration ) - { - RecordTimeWithIdentifier("SwiftlyS2", name, duration); - } - - public string GenerateJSONPerformance( string pluginId ) - { - // snapshot stats - Dictionary> stats; - lock (_lock) + + public void StartRecording( string name ) { - stats = _statsTable.ToDictionary( - kv => kv.Key, - kv => kv.Value.ToDictionary(inner => inner.Key, inner => new Stat { - Count = inner.Value.Count, - TotalUs = inner.Value.TotalUs, - MinUs = inner.Value.Count == 0 ? 0UL : inner.Value.MinUs, - MaxUs = inner.Value.MaxUs, - }, StringComparer.Ordinal), StringComparer.Ordinal); + StartRecordingWithIdentifier("SwiftlyS2", name); } - var traceEvents = new List>(); + public void StopRecording( string name ) + { + StopRecordingWithIdentifier("SwiftlyS2", name); + } - // Metadata events - traceEvents.Add(new Dictionary { + public void RecordTime( string name, double duration ) + { + RecordTimeWithIdentifier("SwiftlyS2", name, duration); + } + + public string GenerateJSONPerformance( string pluginId ) + { + // snapshot stats + Dictionary> stats; + lock (_lock) + { + stats = _statsTable.ToDictionary( + kv => kv.Key, + kv => kv.Value.ToDictionary(inner => inner.Key, inner => new Stat { + Count = inner.Value.Count, + TotalUs = inner.Value.TotalUs, + MinUs = inner.Value.Count == 0 ? 0UL : inner.Value.MinUs, + MaxUs = inner.Value.MaxUs, + }, StringComparer.Ordinal), StringComparer.Ordinal); + } + + var traceEvents = new List> { + // Metadata events + new() { { "args", new Dictionary { { "name", "Swiftly" } } }, { "cat", "__metadata" }, { "name", "process_name" }, @@ -181,8 +178,8 @@ public string GenerateJSONPerformance( string pluginId ) { "pid", 1 }, { "tid", 1 }, { "ts", 0UL }, - }); - traceEvents.Add(new Dictionary { + }, + new() { { "args", new Dictionary { { "name", "Swiftly Main" } } }, { "cat", "__metadata" }, { "name", "thread_name" }, @@ -190,8 +187,8 @@ public string GenerateJSONPerformance( string pluginId ) { "pid", 1 }, { "tid", 1 }, { "ts", 0UL }, - }); - traceEvents.Add(new Dictionary { + }, + new() { { "args", new Dictionary { { "name", "Swiftly Profiler" } } }, { "cat", "__metadata" }, { "name", "thread_name" }, @@ -199,35 +196,36 @@ public string GenerateJSONPerformance( string pluginId ) { "pid", 1 }, { "tid", 2 }, { "ts", 0UL }, - }); - - string FormatUs( float us ) - { - // switch to ms when duration reaches 0.01 ms (10 microseconds) - if (us >= 10f) - { - var ms = us / 1000f; - return $"{ms:F2}ms"; - } - var ius = (ulong)System.MathF.Max(0f, us); - return $"{ius:d}.00μs"; } - - foreach (var (plugin, nameMap) in stats) - { - if (!string.IsNullOrEmpty(pluginId) && !string.Equals(pluginId, plugin, StringComparison.Ordinal)) - { - continue; - } - foreach (var (name, stat) in nameMap) - { - var count = stat.Count; - float minUs = count == 0 ? 0f : stat.MinUs; - float maxUs = stat.MaxUs; - float avgUs = count == 0 ? 0f : (float)(stat.TotalUs / (double)count); - var eventName = $"{name} [{plugin}] (min={FormatUs(minUs)},avg={FormatUs(avgUs)},max={FormatUs(maxUs)},count={(ulong)count})"; - - traceEvents.Add(new Dictionary { + }; + + static string FormatUs( float us ) + { + // switch to ms when duration reaches 0.01 ms (10 microseconds) + if (us >= 10f) + { + var ms = us / 1000f; + return $"{ms:F2}ms"; + } + var ius = (ulong)MathF.Max(0f, us); + return $"{ius:d}.00μs"; + } + + foreach (var (plugin, nameMap) in stats) + { + if (!string.IsNullOrEmpty(pluginId) && !string.Equals(pluginId, plugin, StringComparison.Ordinal)) + { + continue; + } + foreach (var (name, stat) in nameMap) + { + var count = stat.Count; + var minUs = count == 0 ? 0f : stat.MinUs; + float maxUs = stat.MaxUs; + var avgUs = count == 0 ? 0f : (float)(stat.TotalUs / (double)count); + var eventName = $"{name} [{plugin}] (min={FormatUs(minUs)},avg={FormatUs(avgUs)},max={FormatUs(maxUs)},count={count})"; + + traceEvents.Add(new Dictionary { { "name", eventName }, { "ph", "X" }, { "tid", 2 }, @@ -235,19 +233,19 @@ string FormatUs( float us ) { "ts", 0UL }, { "dur", stat.TotalUs }, }); - } - } + } + } - var root = new Dictionary { + var root = new Dictionary { { "traceEvents", traceEvents } }; - var options = new JsonSerializerOptions { - PropertyNamingPolicy = null, - WriteIndented = false, - DefaultIgnoreCondition = JsonIgnoreCondition.Never, - }; + var options = new JsonSerializerOptions { + PropertyNamingPolicy = null, + WriteIndented = false, + DefaultIgnoreCondition = JsonIgnoreCondition.Never, + }; - return JsonSerializer.Serialize(root, options); - } + return JsonSerializer.Serialize(root, options); + } } diff --git a/managed/src/SwiftlyS2.Core/Services/RegistratorService.cs b/managed/src/SwiftlyS2.Core/Services/RegistratorService.cs index ca47ed59e..8a5f006c4 100644 --- a/managed/src/SwiftlyS2.Core/Services/RegistratorService.cs +++ b/managed/src/SwiftlyS2.Core/Services/RegistratorService.cs @@ -1,24 +1,25 @@ -using Microsoft.Extensions.DependencyInjection; using SwiftlyS2.Core.AttributeParsers; -using SwiftlyS2.Shared; using SwiftlyS2.Shared.Services; namespace SwiftlyS2.Core.Services; -internal class RegistratorService : IRegistratorService { +internal class RegistratorService : IRegistratorService +{ - public RegistratorService(SwiftlyCore core) { - _Core = core; - } + public RegistratorService( SwiftlyCore core ) + { + _Core = core; + } - private SwiftlyCore _Core { get; } + private SwiftlyCore _Core { get; } - public void Register(object instance) { + public void Register( object instance ) + { - _Core.CommandService.ParseFromObject(instance); - _Core.EventSubscriber.ParseFromObject(instance); - _Core.GameEventService.ParseFromObject(instance); - _Core.NetMessageService.ParseFromObject(instance); + _Core.CommandService.ParseFromObject(instance); + _Core.EventSubscriber.ParseFromObject(instance); + _Core.GameEventService.ParseFromObject(instance); + _Core.NetMessageService.ParseFromObject(instance); - } + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Services/RootDirService.cs b/managed/src/SwiftlyS2.Core/Services/RootDirService.cs index fa8eb12ad..b43c01be9 100644 --- a/managed/src/SwiftlyS2.Core/Services/RootDirService.cs +++ b/managed/src/SwiftlyS2.Core/Services/RootDirService.cs @@ -1,26 +1,29 @@ namespace SwiftlyS2.Core.Services; -internal class RootDirService { - public string GetRoot() { - if (Environment.GetEnvironmentVariable("SWIFTLY_MANAGED_ROOT") is { } root) { - return root; +internal class RootDirService +{ + public string GetRoot() + { + return Environment.GetEnvironmentVariable("SWIFTLY_MANAGED_ROOT") is { } root ? root : AppContext.BaseDirectory; } - return AppContext.BaseDirectory; - } - public string CombineRoot(string path) { - return Path.Combine(GetRoot(), path); - } + public string CombineRoot( string path ) + { + return Path.Combine(GetRoot(), path); + } - public string GetPluginsRoot() { - return CombineRoot("plugins"); - } + public string GetPluginsRoot() + { + return CombineRoot("plugins"); + } - public string GetConfigRoot() { - return CombineRoot("configs"); - } + public string GetConfigRoot() + { + return CombineRoot("configs"); + } - public string GetDataRoot() { - return CombineRoot("data"); - } + public string GetDataRoot() + { + return CombineRoot("data"); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Services/StartupService.cs b/managed/src/SwiftlyS2.Core/Services/StartupService.cs index fa86dc966..747500cd6 100644 --- a/managed/src/SwiftlyS2.Core/Services/StartupService.cs +++ b/managed/src/SwiftlyS2.Core/Services/StartupService.cs @@ -7,27 +7,27 @@ namespace SwiftlyS2.Core.Services; internal class StartupService : IHostedService { - private readonly IServiceProvider _provider; + private readonly IServiceProvider _provider; - public StartupService(IServiceProvider provider) - { - _provider = provider; - provider.UseCoreCommandService(); - provider.UseCoreHookService(); - provider.UsePermissionManager(); - provider.UsePluginManager(); - provider.UseCommandTrackerService(); - // provider.UseTestService(); - } + public StartupService( IServiceProvider provider ) + { + _provider = provider; + provider.UseCoreCommandService(); + provider.UseCoreHookService(); + provider.UsePermissionManager(); + provider.UsePluginManager(); + provider.UseCommandTrackerService(); + // provider.UseTestService(); + } - public Task StartAsync(CancellationToken cancellationToken) - { - return Task.CompletedTask; - } + public Task StartAsync( CancellationToken cancellationToken ) + { + return Task.CompletedTask; + } - public Task StopAsync(CancellationToken cancellationToken) - { - FileLogger.Dispose(); - return Task.CompletedTask; - } + public Task StopAsync( CancellationToken cancellationToken ) + { + FileLogger.Dispose(); + return Task.CompletedTask; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Core/Services/TestService.cs b/managed/src/SwiftlyS2.Core/Services/TestService.cs index e4e8d4cf7..2512d2cd9 100644 --- a/managed/src/SwiftlyS2.Core/Services/TestService.cs +++ b/managed/src/SwiftlyS2.Core/Services/TestService.cs @@ -1,73 +1,74 @@ -using System.Buffers; -using System.Diagnostics; -using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Microsoft.Extensions.Logging; -using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Core.Natives; -using SwiftlyS2.Core.Natives.NativeObjects; -using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Core.SchemaDefinitions; using SwiftlyS2.Shared; -using SwiftlyS2.Shared.Convars; -using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.Misc; -using SwiftlyS2.Shared.ProtobufDefinitions; -using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.Services; [UnmanagedFunctionPointer(CallingConvention.Cdecl)] -internal delegate nint DispatchSpawnHook(nint entity, nint kv); +internal delegate nint DispatchSpawnHook( nint entity, nint kv ); -internal class TestService { +internal class TestService +{ - private ILogger _Logger { get; init; } - private ProfileService _ProfileService { get; init; } - private ISwiftlyCore _Core { get; init; } - public unsafe TestService( - ILogger logger, - ProfileService profileService, - ISwiftlyCore core - ) { - _ProfileService = profileService; - _Core = core; - _Logger = logger; + private ILogger _Logger { get; init; } + private ProfileService _ProfileService { get; init; } + private ISwiftlyCore _Core { get; init; } + public unsafe TestService( + ILogger logger, + ProfileService profileService, + ISwiftlyCore core + ) + { + _ProfileService = profileService; + _Core = core; + _Logger = logger; + + _Logger.LogWarning("TestService created"); + _Logger.LogWarning("TestService created"); + _Logger.LogWarning("TestService created"); + _Logger.LogWarning("TestService created"); + _Logger.LogWarning("TestService created"); + _Logger.LogWarning("TestService created"); + _Logger.LogWarning("TestService created"); + _Logger.LogWarning("TestService created"); + _Logger.LogWarning("TestService created"); + + Test2(); + } - _Logger.LogWarning("TestService created"); - _Logger.LogWarning("TestService created"); - _Logger.LogWarning("TestService created"); - _Logger.LogWarning("TestService created"); - _Logger.LogWarning("TestService created"); - _Logger.LogWarning("TestService created"); - _Logger.LogWarning("TestService created"); - _Logger.LogWarning("TestService created"); - _Logger.LogWarning("TestService created"); - Test(); - } + public void Test() + { + _Core.Event.OnEntityCreated += ( @event ) => + { + var name = _Core.Memory.GetObjectPtrVtableName(@event.Entity.Address); + Console.WriteLine("Entity spawned: " + name); + var hasVtable = _Core.Memory.ObjectPtrHasVtable(@event.Entity.Address + 1); + Console.WriteLine("Has vtable: " + hasVtable); + var vtable = _Core.Memory.ObjectPtrHasBaseClass(@event.Entity.Address, "CBaseEntity"); + Console.WriteLine("Has base class: " + vtable); + var handle = _Core.EntitySystem.GetRefEHandle(@event.Entity); + }; + // _Core.Event.OnItemServicesCanAcquireHook += (@event) => { + // Console.WriteLine(@event.EconItemView.ItemDefinitionIndex); + + // @event.SetAcquireResult(AcquireResult.NotAllowedByProhibition); + // }; - public void Test() - { - _Core.Event.OnEntityCreated += (@event) => + } + public void Test2() { - var name = _Core.Memory.GetObjectPtrVtableName(@event.Entity.Address); - Console.WriteLine("Entity spawned: " + name); - var hasVtable = _Core.Memory.ObjectPtrHasVtable(@event.Entity.Address + 1); - Console.WriteLine("Has vtable: " + hasVtable); - var vtable = _Core.Memory.ObjectPtrHasBaseClass(@event.Entity.Address, "CBaseEntity"); - Console.WriteLine("Has base class: " + vtable); - }; - // _Core.Event.OnItemServicesCanAcquireHook += (@event) => { - // Console.WriteLine(@event.EconItemView.ItemDefinitionIndex); + _Core.Event.OnMovementServicesRunCommandHook += ( @event ) => + { + @event.UserCmdPB.Base.ClientTick -= 100; + }; + // _Core.Event.OnItemServicesCanAcquireHook += (@event) => { + // Console.WriteLine(@event.EconItemView.ItemDefinitionIndex); - // @event.SetAcquireResult(AcquireResult.NotAllowedByProhibition); - // }; + // @event.SetAcquireResult(AcquireResult.NotAllowedByProhibition); + // }; - } + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementEarnedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementEarnedImpl.cs index a9cd55dc7..b4152ae61 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementEarnedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementEarnedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,15 +10,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventAchievementEarnedImpl : GameEvent, EventAchievementEarned { - public EventAchievementEarnedImpl(nint address) : base(address) - { - } + public EventAchievementEarnedImpl( nint address ) : base(address) + { + } - // entindex of the player - public int Player - { get => Accessor.GetPlayerSlot("player"); set => Accessor.SetPlayerSlot("player", value); } + // entindex of the player + public int Player { get => Accessor.GetPlayerSlot("player"); set => Accessor.SetPlayerSlot("player", value); } - // achievement ID - public short Achievement - { get => (short)Accessor.GetInt32("achievement"); set => Accessor.SetInt32("achievement", value); } + // achievement ID + public short Achievement { get => (short)Accessor.GetInt32("achievement"); set => Accessor.SetInt32("achievement", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementEarnedLocalImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementEarnedLocalImpl.cs index 117bd6159..9354ec669 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementEarnedLocalImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementEarnedLocalImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,15 +10,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventAchievementEarnedLocalImpl : GameEvent, EventAchievementEarnedLocal { - public EventAchievementEarnedLocalImpl(nint address) : base(address) - { - } + public EventAchievementEarnedLocalImpl( nint address ) : base(address) + { + } - // achievement ID - public short Achievement - { get => (short)Accessor.GetInt32("achievement"); set => Accessor.SetInt32("achievement", value); } + // achievement ID + public short Achievement { get => (short)Accessor.GetInt32("achievement"); set => Accessor.SetInt32("achievement", value); } - // splitscreen ID - public short SplitScreenPlayer - { get => (short)Accessor.GetInt32("splitscreenplayer"); set => Accessor.SetInt32("splitscreenplayer", value); } + // splitscreen ID + public short SplitScreenPlayer { get => (short)Accessor.GetInt32("splitscreenplayer"); set => Accessor.SetInt32("splitscreenplayer", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementEventImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementEventImpl.cs index 389b29aa2..7cac060b0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementEventImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +10,16 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventAchievementEventImpl : GameEvent, EventAchievementEvent { - public EventAchievementEventImpl(nint address) : base(address) - { - } + public EventAchievementEventImpl( nint address ) : base(address) + { + } - // non-localized name of achievement - public string AchievementName - { get => Accessor.GetString("achievement_name"); set => Accessor.SetString("achievement_name", value); } + // non-localized name of achievement + public string AchievementName { get => Accessor.GetString("achievement_name"); set => Accessor.SetString("achievement_name", value); } - // # of steps toward achievement - public short CurVal - { get => (short)Accessor.GetInt32("cur_val"); set => Accessor.SetInt32("cur_val", value); } + // # of steps toward achievement + public short CurVal { get => (short)Accessor.GetInt32("cur_val"); set => Accessor.SetInt32("cur_val", value); } - // total # of steps in achievement - public short MaxVal - { get => (short)Accessor.GetInt32("max_val"); set => Accessor.SetInt32("max_val", value); } + // total # of steps in achievement + public short MaxVal { get => (short)Accessor.GetInt32("max_val"); set => Accessor.SetInt32("max_val", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementInfoLoadedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementInfoLoadedImpl.cs index a92f83b5e..65cd591b8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementInfoLoadedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementInfoLoadedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventAchievementInfoLoadedImpl : GameEvent, EventAchievementInfoLoaded { - public EventAchievementInfoLoadedImpl(nint address) : base(address) - { - } + public EventAchievementInfoLoadedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementWriteFailedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementWriteFailedImpl.cs index da96d525c..b9e31660a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementWriteFailedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAchievementWriteFailedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventAchievementWriteFailedImpl : GameEvent, EventAchievementWriteFailed { - public EventAchievementWriteFailedImpl(nint address) : base(address) - { - } + public EventAchievementWriteFailedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAddBulletHitMarkerImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAddBulletHitMarkerImpl.cs index da341c2dc..fe3d2c6c2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAddBulletHitMarkerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAddBulletHitMarkerImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,52 +12,37 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventAddBulletHitMarkerImpl : GameEvent, EventAddBulletHitMarker { - public EventAddBulletHitMarkerImpl(nint address) : base(address) - { - } + public EventAddBulletHitMarkerImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short Bone - { get => (short)Accessor.GetInt32("bone"); set => Accessor.SetInt32("bone", value); } + public short Bone { get => (short)Accessor.GetInt32("bone"); set => Accessor.SetInt32("bone", value); } - public short PosX - { get => (short)Accessor.GetInt32("pos_x"); set => Accessor.SetInt32("pos_x", value); } + public short PosX { get => (short)Accessor.GetInt32("pos_x"); set => Accessor.SetInt32("pos_x", value); } - public short PosY - { get => (short)Accessor.GetInt32("pos_y"); set => Accessor.SetInt32("pos_y", value); } + public short PosY { get => (short)Accessor.GetInt32("pos_y"); set => Accessor.SetInt32("pos_y", value); } - public short PosZ - { get => (short)Accessor.GetInt32("pos_z"); set => Accessor.SetInt32("pos_z", value); } + public short PosZ { get => (short)Accessor.GetInt32("pos_z"); set => Accessor.SetInt32("pos_z", value); } - public short AngX - { get => (short)Accessor.GetInt32("ang_x"); set => Accessor.SetInt32("ang_x", value); } + public short AngX { get => (short)Accessor.GetInt32("ang_x"); set => Accessor.SetInt32("ang_x", value); } - public short AngY - { get => (short)Accessor.GetInt32("ang_y"); set => Accessor.SetInt32("ang_y", value); } + public short AngY { get => (short)Accessor.GetInt32("ang_y"); set => Accessor.SetInt32("ang_y", value); } - public short AngZ - { get => (short)Accessor.GetInt32("ang_z"); set => Accessor.SetInt32("ang_z", value); } + public short AngZ { get => (short)Accessor.GetInt32("ang_z"); set => Accessor.SetInt32("ang_z", value); } - public short StartX - { get => (short)Accessor.GetInt32("start_x"); set => Accessor.SetInt32("start_x", value); } + public short StartX { get => (short)Accessor.GetInt32("start_x"); set => Accessor.SetInt32("start_x", value); } - public short StartY - { get => (short)Accessor.GetInt32("start_y"); set => Accessor.SetInt32("start_y", value); } + public short StartY { get => (short)Accessor.GetInt32("start_y"); set => Accessor.SetInt32("start_y", value); } - public short StartZ - { get => (short)Accessor.GetInt32("start_z"); set => Accessor.SetInt32("start_z", value); } + public short StartZ { get => (short)Accessor.GetInt32("start_z"); set => Accessor.SetInt32("start_z", value); } - public bool Hit - { get => Accessor.GetBool("hit"); set => Accessor.SetBool("hit", value); } + public bool Hit { get => Accessor.GetBool("hit"); set => Accessor.SetBool("hit", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAddPlayerSonarIconImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAddPlayerSonarIconImpl.cs index e54540287..0e66165be 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAddPlayerSonarIconImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAddPlayerSonarIconImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,28 +12,21 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventAddPlayerSonarIconImpl : GameEvent, EventAddPlayerSonarIcon { - public EventAddPlayerSonarIconImpl(nint address) : base(address) - { - } + public EventAddPlayerSonarIconImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public float PosX - { get => Accessor.GetFloat("pos_x"); set => Accessor.SetFloat("pos_x", value); } + public float PosX { get => Accessor.GetFloat("pos_x"); set => Accessor.SetFloat("pos_x", value); } - public float PosY - { get => Accessor.GetFloat("pos_y"); set => Accessor.SetFloat("pos_y", value); } + public float PosY { get => Accessor.GetFloat("pos_y"); set => Accessor.SetFloat("pos_y", value); } - public float PosZ - { get => Accessor.GetFloat("pos_z"); set => Accessor.SetFloat("pos_z", value); } + public float PosZ { get => Accessor.GetFloat("pos_z"); set => Accessor.SetFloat("pos_z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAmmoPickupImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAmmoPickupImpl.cs index d8d780d51..74de2aad3 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAmmoPickupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAmmoPickupImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,21 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventAmmoPickupImpl : GameEvent, EventAmmoPickup { - public EventAmmoPickupImpl(nint address) : base(address) - { - } + public EventAmmoPickupImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' - public string Item - { get => Accessor.GetString("item"); set => Accessor.SetString("item", value); } + // either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' + public string Item { get => Accessor.GetString("item"); set => Accessor.SetString("item", value); } - // the weapon entindex - public int Index - { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } + // the weapon entindex + public int Index { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAmmoRefillImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAmmoRefillImpl.cs index 8b42a54d8..780d7fef4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAmmoRefillImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAmmoRefillImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,22 +12,17 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventAmmoRefillImpl : GameEvent, EventAmmoRefill { - public EventAmmoRefillImpl(nint address) : base(address) - { - } + public EventAmmoRefillImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public bool Success - { get => Accessor.GetBool("success"); set => Accessor.SetBool("success", value); } + public bool Success { get => Accessor.GetBool("success"); set => Accessor.SetBool("success", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAnnouncePhaseEndImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAnnouncePhaseEndImpl.cs index a6145c9dc..bae000bde 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAnnouncePhaseEndImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventAnnouncePhaseEndImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventAnnouncePhaseEndImpl : GameEvent, EventAnnouncePhaseEnd { - public EventAnnouncePhaseEndImpl(nint address) : base(address) - { - } + public EventAnnouncePhaseEndImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBeginNewMatchImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBeginNewMatchImpl.cs index 2f6bd4daf..bab3e4171 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBeginNewMatchImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBeginNewMatchImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBeginNewMatchImpl : GameEvent, EventBeginNewMatch { - public EventBeginNewMatchImpl(nint address) : base(address) - { - } + public EventBeginNewMatchImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombAbortdefuseImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombAbortdefuseImpl.cs index de8c7333c..c825d34d8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombAbortdefuseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombAbortdefuseImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,23 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBombAbortdefuseImpl : GameEvent, EventBombAbortdefuse { - public EventBombAbortdefuseImpl(nint address) : base(address) - { - } + public EventBombAbortdefuseImpl( nint address ) : base(address) + { + } - // player who was defusing - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who was defusing + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who was defusing - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who was defusing + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who was defusing - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who was defusing + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who was defusing - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who was defusing + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombAbortplantImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombAbortplantImpl.cs index 638a8b504..2e4041231 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombAbortplantImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombAbortplantImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBombAbortplantImpl : GameEvent, EventBombAbortplant { - public EventBombAbortplantImpl(nint address) : base(address) - { - } + public EventBombAbortplantImpl( nint address ) : base(address) + { + } - // player who is planting the bomb - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who is planting the bomb + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who is planting the bomb - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who is planting the bomb + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who is planting the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who is planting the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who is planting the bomb - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who is planting the bomb + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // bombsite index - public short Site - { get => (short)Accessor.GetInt32("site"); set => Accessor.SetInt32("site", value); } + // bombsite index + public short Site { get => (short)Accessor.GetInt32("site"); set => Accessor.SetInt32("site", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombBeepImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombBeepImpl.cs index fff3ad65b..414b7492a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombBeepImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombBeepImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,11 +10,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBombBeepImpl : GameEvent, EventBombBeep { - public EventBombBeepImpl(nint address) : base(address) - { - } + public EventBombBeepImpl( nint address ) : base(address) + { + } - // c4 entity - public int EntIndex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + // c4 entity + public int EntIndex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombBegindefuseImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombBegindefuseImpl.cs index c53659c98..a879f494b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombBegindefuseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombBegindefuseImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,26 +12,21 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBombBegindefuseImpl : GameEvent, EventBombBegindefuse { - public EventBombBegindefuseImpl(nint address) : base(address) - { - } + public EventBombBegindefuseImpl( nint address ) : base(address) + { + } - // player who is defusing - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who is defusing + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who is defusing - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who is defusing + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who is defusing - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who is defusing + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who is defusing - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who is defusing + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public bool HasKit - { get => Accessor.GetBool("haskit"); set => Accessor.SetBool("haskit", value); } + public bool HasKit { get => Accessor.GetBool("haskit"); set => Accessor.SetBool("haskit", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombBeginplantImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombBeginplantImpl.cs index 68c076529..af191f7c2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombBeginplantImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombBeginplantImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBombBeginplantImpl : GameEvent, EventBombBeginplant { - public EventBombBeginplantImpl(nint address) : base(address) - { - } + public EventBombBeginplantImpl( nint address ) : base(address) + { + } - // player who is planting the bomb - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who is planting the bomb + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who is planting the bomb - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who is planting the bomb + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who is planting the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who is planting the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who is planting the bomb - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who is planting the bomb + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // bombsite index - public short Site - { get => (short)Accessor.GetInt32("site"); set => Accessor.SetInt32("site", value); } + // bombsite index + public short Site { get => (short)Accessor.GetInt32("site"); set => Accessor.SetInt32("site", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombDefusedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombDefusedImpl.cs index a578a362c..855211baf 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombDefusedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombDefusedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBombDefusedImpl : GameEvent, EventBombDefused { - public EventBombDefusedImpl(nint address) : base(address) - { - } + public EventBombDefusedImpl( nint address ) : base(address) + { + } - // player who defused the bomb - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who defused the bomb + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who defused the bomb - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who defused the bomb + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who defused the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who defused the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who defused the bomb - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who defused the bomb + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // bombsite index - public short Site - { get => (short)Accessor.GetInt32("site"); set => Accessor.SetInt32("site", value); } + // bombsite index + public short Site { get => (short)Accessor.GetInt32("site"); set => Accessor.SetInt32("site", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombDroppedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombDroppedImpl.cs index 3ea2de77a..31b4c17d9 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombDroppedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombDroppedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,26 +12,21 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBombDroppedImpl : GameEvent, EventBombDropped { - public EventBombDroppedImpl(nint address) : base(address) - { - } + public EventBombDroppedImpl( nint address ) : base(address) + { + } - // player who dropped the bomb - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who dropped the bomb + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who dropped the bomb - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who dropped the bomb + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who dropped the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who dropped the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who dropped the bomb - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who dropped the bomb + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public int EntIndex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + public int EntIndex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombExplodedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombExplodedImpl.cs index 46e6cd464..198f1e40e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombExplodedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombExplodedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBombExplodedImpl : GameEvent, EventBombExploded { - public EventBombExplodedImpl(nint address) : base(address) - { - } + public EventBombExplodedImpl( nint address ) : base(address) + { + } - // player who planted the bomb - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who planted the bomb + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who planted the bomb - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who planted the bomb + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who planted the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who planted the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who planted the bomb - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who planted the bomb + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // bombsite index - public short Site - { get => (short)Accessor.GetInt32("site"); set => Accessor.SetInt32("site", value); } + // bombsite index + public short Site { get => (short)Accessor.GetInt32("site"); set => Accessor.SetInt32("site", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombPickupImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombPickupImpl.cs index 8ca30d350..c3ee49608 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombPickupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombPickupImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,23 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBombPickupImpl : GameEvent, EventBombPickup { - public EventBombPickupImpl(nint address) : base(address) - { - } + public EventBombPickupImpl( nint address ) : base(address) + { + } - // player pawn who picked up the bomb - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player pawn who picked up the bomb + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player pawn who picked up the bomb - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player pawn who picked up the bomb + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player pawn who picked up the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player pawn who picked up the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player pawn who picked up the bomb - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player pawn who picked up the bomb + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombPlantedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombPlantedImpl.cs index 449bdef99..bb697f4ca 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombPlantedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBombPlantedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBombPlantedImpl : GameEvent, EventBombPlanted { - public EventBombPlantedImpl(nint address) : base(address) - { - } + public EventBombPlantedImpl( nint address ) : base(address) + { + } - // player who planted the bomb - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who planted the bomb + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who planted the bomb - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who planted the bomb + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who planted the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who planted the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who planted the bomb - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who planted the bomb + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // bombsite index - public short Site - { get => (short)Accessor.GetInt32("site"); set => Accessor.SetInt32("site", value); } + // bombsite index + public short Site { get => (short)Accessor.GetInt32("site"); set => Accessor.SetInt32("site", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBonusUpdatedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBonusUpdatedImpl.cs index 7dfd3c9cb..d79f6c0dc 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBonusUpdatedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBonusUpdatedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +10,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBonusUpdatedImpl : GameEvent, EventBonusUpdated { - public EventBonusUpdatedImpl(nint address) : base(address) - { - } + public EventBonusUpdatedImpl( nint address ) : base(address) + { + } - public short NumAdvanced - { get => (short)Accessor.GetInt32("numadvanced"); set => Accessor.SetInt32("numadvanced", value); } + public short NumAdvanced { get => (short)Accessor.GetInt32("numadvanced"); set => Accessor.SetInt32("numadvanced", value); } - public short NumBronze - { get => (short)Accessor.GetInt32("numbronze"); set => Accessor.SetInt32("numbronze", value); } + public short NumBronze { get => (short)Accessor.GetInt32("numbronze"); set => Accessor.SetInt32("numbronze", value); } - public short NumSilver - { get => (short)Accessor.GetInt32("numsilver"); set => Accessor.SetInt32("numsilver", value); } + public short NumSilver { get => (short)Accessor.GetInt32("numsilver"); set => Accessor.SetInt32("numsilver", value); } - public short NumGold - { get => (short)Accessor.GetInt32("numgold"); set => Accessor.SetInt32("numgold", value); } + public short NumGold { get => (short)Accessor.GetInt32("numgold"); set => Accessor.SetInt32("numgold", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBotTakeoverImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBotTakeoverImpl.cs index 974a9128f..03810afa0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBotTakeoverImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBotTakeoverImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,23 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBotTakeoverImpl : GameEvent, EventBotTakeover { - public EventBotTakeoverImpl(nint address) : base(address) - { - } + public EventBotTakeoverImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public int BotID - { get => Accessor.GetPlayerSlot("botid"); set => Accessor.SetPlayerSlot("botid", value); } + public int BotID { get => Accessor.GetPlayerSlot("botid"); set => Accessor.SetPlayerSlot("botid", value); } - public float P - { get => Accessor.GetFloat("p"); set => Accessor.SetFloat("p", value); } + public float P { get => Accessor.GetFloat("p"); set => Accessor.SetFloat("p", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float R - { get => Accessor.GetFloat("r"); set => Accessor.SetFloat("r", value); } + public float R { get => Accessor.GetFloat("r"); set => Accessor.SetFloat("r", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBreakBreakableImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBreakBreakableImpl.cs index 39e289305..5fd1a595d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBreakBreakableImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBreakBreakableImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,26 +12,20 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBreakBreakableImpl : GameEvent, EventBreakBreakable { - public EventBreakBreakableImpl(nint address) : base(address) - { - } + public EventBreakBreakableImpl( nint address ) : base(address) + { + } - public int EntIndex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + public int EntIndex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // BREAK_GLASS, BREAK_WOOD, etc - public byte Material - { get => (byte)Accessor.GetInt32("material"); set => Accessor.SetInt32("material", value); } + // BREAK_GLASS, BREAK_WOOD, etc + public byte Material { get => (byte)Accessor.GetInt32("material"); set => Accessor.SetInt32("material", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBreakPropImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBreakPropImpl.cs index 1244bbd95..f886fd17e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBreakPropImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBreakPropImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,23 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBreakPropImpl : GameEvent, EventBreakProp { - public EventBreakPropImpl(nint address) : base(address) - { - } + public EventBreakPropImpl( nint address ) : base(address) + { + } - public int EntIndex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + public int EntIndex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public bool PlayerHeld - { get => Accessor.GetBool("player_held"); set => Accessor.SetBool("player_held", value); } + public bool PlayerHeld { get => Accessor.GetBool("player_held"); set => Accessor.SetBool("player_held", value); } - public bool PlayerThrown - { get => Accessor.GetBool("player_thrown"); set => Accessor.SetBool("player_thrown", value); } + public bool PlayerThrown { get => Accessor.GetBool("player_thrown"); set => Accessor.SetBool("player_thrown", value); } - public bool PlayerDropped - { get => Accessor.GetBool("player_dropped"); set => Accessor.SetBool("player_dropped", value); } + public bool PlayerDropped { get => Accessor.GetBool("player_dropped"); set => Accessor.SetBool("player_dropped", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBrokenBreakableImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBrokenBreakableImpl.cs index c3c921f46..964637293 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBrokenBreakableImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBrokenBreakableImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,26 +12,20 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBrokenBreakableImpl : GameEvent, EventBrokenBreakable { - public EventBrokenBreakableImpl(nint address) : base(address) - { - } + public EventBrokenBreakableImpl( nint address ) : base(address) + { + } - public int EntIndex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + public int EntIndex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // BREAK_GLASS, BREAK_WOOD, etc - public byte Material - { get => (byte)Accessor.GetInt32("material"); set => Accessor.SetInt32("material", value); } + // BREAK_GLASS, BREAK_WOOD, etc + public byte Material { get => (byte)Accessor.GetInt32("material"); set => Accessor.SetInt32("material", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBulletDamageImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBulletDamageImpl.cs index b5e58b884..98a94ba3f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBulletDamageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBulletDamageImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,103 +10,79 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBulletDamageImpl : GameEvent, EventBulletDamage { - public EventBulletDamageImpl(nint address) : base(address) - { - } + public EventBulletDamageImpl( nint address ) : base(address) + { + } - // player index who was hurt - public int Victim - { get => Accessor.GetPlayerSlot("victim"); set => Accessor.SetPlayerSlot("victim", value); } + // player index who was hurt + public int Victim { get => Accessor.GetPlayerSlot("victim"); set => Accessor.SetPlayerSlot("victim", value); } - // player index who attacked - public int Attacker - { get => Accessor.GetPlayerSlot("attacker"); set => Accessor.SetPlayerSlot("attacker", value); } + // player index who attacked + public int Attacker { get => Accessor.GetPlayerSlot("attacker"); set => Accessor.SetPlayerSlot("attacker", value); } - // how far the bullet travelled before it hit the player - public float Distance - { get => Accessor.GetFloat("distance"); set => Accessor.SetFloat("distance", value); } + // how far the bullet travelled before it hit the player + public float Distance { get => Accessor.GetFloat("distance"); set => Accessor.SetFloat("distance", value); } - // direction vector of the bullet - public float DamageDirX - { get => Accessor.GetFloat("damage_dir_x"); set => Accessor.SetFloat("damage_dir_x", value); } + // direction vector of the bullet + public float DamageDirX { get => Accessor.GetFloat("damage_dir_x"); set => Accessor.SetFloat("damage_dir_x", value); } - // direction vector of the bullet - public float DamageDirY - { get => Accessor.GetFloat("damage_dir_y"); set => Accessor.SetFloat("damage_dir_y", value); } + // direction vector of the bullet + public float DamageDirY { get => Accessor.GetFloat("damage_dir_y"); set => Accessor.SetFloat("damage_dir_y", value); } - // direction vector of the bullet - public float DamageDirZ - { get => Accessor.GetFloat("damage_dir_z"); set => Accessor.SetFloat("damage_dir_z", value); } + // direction vector of the bullet + public float DamageDirZ { get => Accessor.GetFloat("damage_dir_z"); set => Accessor.SetFloat("damage_dir_z", value); } - // how many surfaces were penetrated - public byte NumPenetrations - { get => (byte)Accessor.GetInt32("num_penetrations"); set => Accessor.SetInt32("num_penetrations", value); } + // how many surfaces were penetrated + public byte NumPenetrations { get => (byte)Accessor.GetInt32("num_penetrations"); set => Accessor.SetInt32("num_penetrations", value); } - // was the shooter noscoped? - public bool NoScope - { get => Accessor.GetBool("no_scope"); set => Accessor.SetBool("no_scope", value); } + // was the shooter noscoped? + public bool NoScope { get => Accessor.GetBool("no_scope"); set => Accessor.SetBool("no_scope", value); } - // was the shooter jumping? - public bool InAir - { get => Accessor.GetBool("in_air"); set => Accessor.SetBool("in_air", value); } + // was the shooter jumping? + public bool InAir { get => Accessor.GetBool("in_air"); set => Accessor.SetBool("in_air", value); } - // shoot angle x - public float ShootAngX - { get => Accessor.GetFloat("shoot_ang_x"); set => Accessor.SetFloat("shoot_ang_x", value); } + // shoot angle x + public float ShootAngX { get => Accessor.GetFloat("shoot_ang_x"); set => Accessor.SetFloat("shoot_ang_x", value); } - // shoot angle y - public float ShootAngY - { get => Accessor.GetFloat("shoot_ang_y"); set => Accessor.SetFloat("shoot_ang_y", value); } + // shoot angle y + public float ShootAngY { get => Accessor.GetFloat("shoot_ang_y"); set => Accessor.SetFloat("shoot_ang_y", value); } - // shoot angle z - public float ShootAngZ - { get => Accessor.GetFloat("shoot_ang_z"); set => Accessor.SetFloat("shoot_ang_z", value); } + // shoot angle z + public float ShootAngZ { get => Accessor.GetFloat("shoot_ang_z"); set => Accessor.SetFloat("shoot_ang_z", value); } - // aim punch x - public float AimPunchX - { get => Accessor.GetFloat("aim_punch_x"); set => Accessor.SetFloat("aim_punch_x", value); } + // aim punch x + public float AimPunchX { get => Accessor.GetFloat("aim_punch_x"); set => Accessor.SetFloat("aim_punch_x", value); } - // aim punch y - public float AimPunchY - { get => Accessor.GetFloat("aim_punch_y"); set => Accessor.SetFloat("aim_punch_y", value); } + // aim punch y + public float AimPunchY { get => Accessor.GetFloat("aim_punch_y"); set => Accessor.SetFloat("aim_punch_y", value); } - // aim punch z - public float AimPunchZ - { get => Accessor.GetFloat("aim_punch_z"); set => Accessor.SetFloat("aim_punch_z", value); } + // aim punch z + public float AimPunchZ { get => Accessor.GetFloat("aim_punch_z"); set => Accessor.SetFloat("aim_punch_z", value); } - // attack tick - public int AttackTickCount - { get => Accessor.GetInt32("attack_tick_count"); set => Accessor.SetInt32("attack_tick_count", value); } + // attack tick + public int AttackTickCount { get => Accessor.GetInt32("attack_tick_count"); set => Accessor.SetInt32("attack_tick_count", value); } - // attack frac - public float AttackTickFrac - { get => Accessor.GetFloat("attack_tick_frac"); set => Accessor.SetFloat("attack_tick_frac", value); } + // attack frac + public float AttackTickFrac { get => Accessor.GetFloat("attack_tick_frac"); set => Accessor.SetFloat("attack_tick_frac", value); } - // render tick - public int RenderTickCount - { get => Accessor.GetInt32("render_tick_count"); set => Accessor.SetInt32("render_tick_count", value); } + // render tick + public int RenderTickCount { get => Accessor.GetInt32("render_tick_count"); set => Accessor.SetInt32("render_tick_count", value); } - // render frac - public float RenderTickFrac - { get => Accessor.GetFloat("render_tick_frac"); set => Accessor.SetFloat("render_tick_frac", value); } + // render frac + public float RenderTickFrac { get => Accessor.GetFloat("render_tick_frac"); set => Accessor.SetFloat("render_tick_frac", value); } - // total inaccuracy - public float InaccuracyTotal - { get => Accessor.GetFloat("inaccuracy_total"); set => Accessor.SetFloat("inaccuracy_total", value); } + // total inaccuracy + public float InaccuracyTotal { get => Accessor.GetFloat("inaccuracy_total"); set => Accessor.SetFloat("inaccuracy_total", value); } - // move inaccuracy - public float InaccuracyMove - { get => Accessor.GetFloat("inaccuracy_move"); set => Accessor.SetFloat("inaccuracy_move", value); } + // move inaccuracy + public float InaccuracyMove { get => Accessor.GetFloat("inaccuracy_move"); set => Accessor.SetFloat("inaccuracy_move", value); } - // air inaccuracy - public float InaccuracyAir - { get => Accessor.GetFloat("inaccuracy_air"); set => Accessor.SetFloat("inaccuracy_air", value); } + // air inaccuracy + public float InaccuracyAir { get => Accessor.GetFloat("inaccuracy_air"); set => Accessor.SetFloat("inaccuracy_air", value); } - // recoil index. Yes this is really a float. - public float RecoilIndex - { get => Accessor.GetFloat("recoil_index"); set => Accessor.SetFloat("recoil_index", value); } + // recoil index. Yes this is really a float. + public float RecoilIndex { get => Accessor.GetFloat("recoil_index"); set => Accessor.SetFloat("recoil_index", value); } - // lag compensation type - public int Type - { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + // lag compensation type + public int Type { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBulletFlightResolutionImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBulletFlightResolutionImpl.cs index 727041d25..0cfde59d0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBulletFlightResolutionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBulletFlightResolutionImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,46 +12,33 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBulletFlightResolutionImpl : GameEvent, EventBulletFlightResolution { - public EventBulletFlightResolutionImpl(nint address) : base(address) - { - } + public EventBulletFlightResolutionImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short PosX - { get => (short)Accessor.GetInt32("pos_x"); set => Accessor.SetInt32("pos_x", value); } + public short PosX { get => (short)Accessor.GetInt32("pos_x"); set => Accessor.SetInt32("pos_x", value); } - public short PosY - { get => (short)Accessor.GetInt32("pos_y"); set => Accessor.SetInt32("pos_y", value); } + public short PosY { get => (short)Accessor.GetInt32("pos_y"); set => Accessor.SetInt32("pos_y", value); } - public short PosZ - { get => (short)Accessor.GetInt32("pos_z"); set => Accessor.SetInt32("pos_z", value); } + public short PosZ { get => (short)Accessor.GetInt32("pos_z"); set => Accessor.SetInt32("pos_z", value); } - public short AngX - { get => (short)Accessor.GetInt32("ang_x"); set => Accessor.SetInt32("ang_x", value); } + public short AngX { get => (short)Accessor.GetInt32("ang_x"); set => Accessor.SetInt32("ang_x", value); } - public short AngY - { get => (short)Accessor.GetInt32("ang_y"); set => Accessor.SetInt32("ang_y", value); } + public short AngY { get => (short)Accessor.GetInt32("ang_y"); set => Accessor.SetInt32("ang_y", value); } - public short AngZ - { get => (short)Accessor.GetInt32("ang_z"); set => Accessor.SetInt32("ang_z", value); } + public short AngZ { get => (short)Accessor.GetInt32("ang_z"); set => Accessor.SetInt32("ang_z", value); } - public short StartX - { get => (short)Accessor.GetInt32("start_x"); set => Accessor.SetInt32("start_x", value); } + public short StartX { get => (short)Accessor.GetInt32("start_x"); set => Accessor.SetInt32("start_x", value); } - public short StartY - { get => (short)Accessor.GetInt32("start_y"); set => Accessor.SetInt32("start_y", value); } + public short StartY { get => (short)Accessor.GetInt32("start_y"); set => Accessor.SetInt32("start_y", value); } - public short StartZ - { get => (short)Accessor.GetInt32("start_z"); set => Accessor.SetInt32("start_z", value); } + public short StartZ { get => (short)Accessor.GetInt32("start_z"); set => Accessor.SetInt32("start_z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBulletImpactImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBulletImpactImpl.cs index 824761581..0b9beb54a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBulletImpactImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBulletImpactImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,28 +12,21 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBulletImpactImpl : GameEvent, EventBulletImpact { - public EventBulletImpactImpl(nint address) : base(address) - { - } + public EventBulletImpactImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBuymenuCloseImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBuymenuCloseImpl.cs index 5b06dd1c6..df1cf561b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBuymenuCloseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBuymenuCloseImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBuymenuCloseImpl : GameEvent, EventBuymenuClose { - public EventBuymenuCloseImpl(nint address) : base(address) - { - } + public EventBuymenuCloseImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBuymenuOpenImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBuymenuOpenImpl.cs index 74aed244c..6dd23243d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBuymenuOpenImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBuymenuOpenImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBuymenuOpenImpl : GameEvent, EventBuymenuOpen { - public EventBuymenuOpenImpl(nint address) : base(address) - { - } + public EventBuymenuOpenImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBuytimeEndedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBuytimeEndedImpl.cs index 93d313828..aa37c86fe 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBuytimeEndedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventBuytimeEndedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventBuytimeEndedImpl : GameEvent, EventBuytimeEnded { - public EventBuytimeEndedImpl(nint address) : base(address) - { - } + public EventBuytimeEndedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCartUpdatedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCartUpdatedImpl.cs index df406958c..c70e06d78 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCartUpdatedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCartUpdatedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventCartUpdatedImpl : GameEvent, EventCartUpdated { - public EventCartUpdatedImpl(nint address) : base(address) - { - } + public EventCartUpdatedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventChoppersIncomingWarningImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventChoppersIncomingWarningImpl.cs index 1a72d7bb8..a8b968f4c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventChoppersIncomingWarningImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventChoppersIncomingWarningImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventChoppersIncomingWarningImpl : GameEvent, EventChoppersIncomingWarning { - public EventChoppersIncomingWarningImpl(nint address) : base(address) - { - } + public EventChoppersIncomingWarningImpl( nint address ) : base(address) + { + } - public bool Global - { get => Accessor.GetBool("global"); set => Accessor.SetBool("global", value); } + public bool Global { get => Accessor.GetBool("global"); set => Accessor.SetBool("global", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientDisconnectImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientDisconnectImpl.cs index 68ad1ab6e..9e1385e6f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientDisconnectImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientDisconnectImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventClientDisconnectImpl : GameEvent, EventClientDisconnect { - public EventClientDisconnectImpl(nint address) : base(address) - { - } + public EventClientDisconnectImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientLoadoutChangedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientLoadoutChangedImpl.cs index 35a6cda9e..f98ad8010 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientLoadoutChangedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientLoadoutChangedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventClientLoadoutChangedImpl : GameEvent, EventClientLoadoutChanged { - public EventClientLoadoutChangedImpl(nint address) : base(address) - { - } + public EventClientLoadoutChangedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientsideLessonClosedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientsideLessonClosedImpl.cs index a6ff82101..19eade644 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientsideLessonClosedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientsideLessonClosedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventClientsideLessonClosedImpl : GameEvent, EventClientsideLessonClosed { - public EventClientsideLessonClosedImpl(nint address) : base(address) - { - } + public EventClientsideLessonClosedImpl( nint address ) : base(address) + { + } - public string LessonName - { get => Accessor.GetString("lesson_name"); set => Accessor.SetString("lesson_name", value); } + public string LessonName { get => Accessor.GetString("lesson_name"); set => Accessor.SetString("lesson_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientsideReloadCustomEconImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientsideReloadCustomEconImpl.cs index 9bde335e2..b016bb9a4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientsideReloadCustomEconImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventClientsideReloadCustomEconImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventClientsideReloadCustomEconImpl : GameEvent, EventClientsideReloadCustomEcon { - public EventClientsideReloadCustomEconImpl(nint address) : base(address) - { - } + public EventClientsideReloadCustomEconImpl( nint address ) : base(address) + { + } - public string SteamID - { get => Accessor.GetString("steamid"); set => Accessor.SetString("steamid", value); } + public string SteamID { get => Accessor.GetString("steamid"); set => Accessor.SetString("steamid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsGameDisconnectedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsGameDisconnectedImpl.cs index 095768a0b..0136826cf 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsGameDisconnectedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsGameDisconnectedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventCsGameDisconnectedImpl : GameEvent, EventCsGameDisconnected { - public EventCsGameDisconnectedImpl(nint address) : base(address) - { - } + public EventCsGameDisconnectedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsIntermissionImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsIntermissionImpl.cs index b322a06c4..6a0791660 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsIntermissionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsIntermissionImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventCsIntermissionImpl : GameEvent, EventCsIntermission { - public EventCsIntermissionImpl(nint address) : base(address) - { - } + public EventCsIntermissionImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsMatchEndRestartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsMatchEndRestartImpl.cs index 466ec2a2f..4851c14a7 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsMatchEndRestartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsMatchEndRestartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventCsMatchEndRestartImpl : GameEvent, EventCsMatchEndRestart { - public EventCsMatchEndRestartImpl(nint address) : base(address) - { - } + public EventCsMatchEndRestartImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsPreRestartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsPreRestartImpl.cs index aee62274d..62eda32b4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsPreRestartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsPreRestartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventCsPreRestartImpl : GameEvent, EventCsPreRestart { - public EventCsPreRestartImpl(nint address) : base(address) - { - } + public EventCsPreRestartImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsPrevNextSpectatorImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsPrevNextSpectatorImpl.cs index a1c009c8a..286354c25 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsPrevNextSpectatorImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsPrevNextSpectatorImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventCsPrevNextSpectatorImpl : GameEvent, EventCsPrevNextSpectator { - public EventCsPrevNextSpectatorImpl(nint address) : base(address) - { - } + public EventCsPrevNextSpectatorImpl( nint address ) : base(address) + { + } - public bool Next - { get => Accessor.GetBool("next"); set => Accessor.SetBool("next", value); } + public bool Next { get => Accessor.GetBool("next"); set => Accessor.SetBool("next", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsRoundFinalBeepImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsRoundFinalBeepImpl.cs index 275cda3c1..7c5351599 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsRoundFinalBeepImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsRoundFinalBeepImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventCsRoundFinalBeepImpl : GameEvent, EventCsRoundFinalBeep { - public EventCsRoundFinalBeepImpl(nint address) : base(address) - { - } + public EventCsRoundFinalBeepImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsRoundStartBeepImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsRoundStartBeepImpl.cs index 41d04c85f..1b3dcdd99 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsRoundStartBeepImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsRoundStartBeepImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventCsRoundStartBeepImpl : GameEvent, EventCsRoundStartBeep { - public EventCsRoundStartBeepImpl(nint address) : base(address) - { - } + public EventCsRoundStartBeepImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsWinPanelMatchImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsWinPanelMatchImpl.cs index d14b5a7e2..7bb6821a7 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsWinPanelMatchImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsWinPanelMatchImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventCsWinPanelMatchImpl : GameEvent, EventCsWinPanelMatch { - public EventCsWinPanelMatchImpl(nint address) : base(address) - { - } + public EventCsWinPanelMatchImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsWinPanelRoundImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsWinPanelRoundImpl.cs index fb6ce0fd5..44f2815d0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsWinPanelRoundImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventCsWinPanelRoundImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,35 +10,26 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventCsWinPanelRoundImpl : GameEvent, EventCsWinPanelRound { - public EventCsWinPanelRoundImpl(nint address) : base(address) - { - } + public EventCsWinPanelRoundImpl( nint address ) : base(address) + { + } - public bool ShowTimerDefend - { get => Accessor.GetBool("show_timer_defend"); set => Accessor.SetBool("show_timer_defend", value); } + public bool ShowTimerDefend { get => Accessor.GetBool("show_timer_defend"); set => Accessor.SetBool("show_timer_defend", value); } - public bool ShowTimerAttack - { get => Accessor.GetBool("show_timer_attack"); set => Accessor.SetBool("show_timer_attack", value); } + public bool ShowTimerAttack { get => Accessor.GetBool("show_timer_attack"); set => Accessor.SetBool("show_timer_attack", value); } - public short TimerTime - { get => (short)Accessor.GetInt32("timer_time"); set => Accessor.SetInt32("timer_time", value); } + public short TimerTime { get => (short)Accessor.GetInt32("timer_time"); set => Accessor.SetInt32("timer_time", value); } - // define in cs_gamerules.h - public byte FinalEvent - { get => (byte)Accessor.GetInt32("final_event"); set => Accessor.SetInt32("final_event", value); } + // define in cs_gamerules.h + public byte FinalEvent { get => (byte)Accessor.GetInt32("final_event"); set => Accessor.SetInt32("final_event", value); } - public string FunfactToken - { get => Accessor.GetString("funfact_token"); set => Accessor.SetString("funfact_token", value); } + public string FunfactToken { get => Accessor.GetString("funfact_token"); set => Accessor.SetString("funfact_token", value); } - public int FunfactPlayer - { get => Accessor.GetPlayerSlot("funfact_player"); set => Accessor.SetPlayerSlot("funfact_player", value); } + public int FunfactPlayer { get => Accessor.GetPlayerSlot("funfact_player"); set => Accessor.SetPlayerSlot("funfact_player", value); } - public int FunfactData1 - { get => Accessor.GetInt32("funfact_data1"); set => Accessor.SetInt32("funfact_data1", value); } + public int FunfactData1 { get => Accessor.GetInt32("funfact_data1"); set => Accessor.SetInt32("funfact_data1", value); } - public int FunfactData2 - { get => Accessor.GetInt32("funfact_data2"); set => Accessor.SetInt32("funfact_data2", value); } + public int FunfactData2 { get => Accessor.GetInt32("funfact_data2"); set => Accessor.SetInt32("funfact_data2", value); } - public int FunfactData3 - { get => Accessor.GetInt32("funfact_data3"); set => Accessor.SetInt32("funfact_data3", value); } + public int FunfactData3 { get => Accessor.GetInt32("funfact_data3"); set => Accessor.SetInt32("funfact_data3", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDecoyDetonateImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDecoyDetonateImpl.cs index fe5a60bcb..f4373611e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDecoyDetonateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDecoyDetonateImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,23 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDecoyDetonateImpl : GameEvent, EventDecoyDetonate { - public EventDecoyDetonateImpl(nint address) : base(address) - { - } + public EventDecoyDetonateImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDecoyFiringImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDecoyFiringImpl.cs index ea36fb91b..e34ee0179 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDecoyFiringImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDecoyFiringImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,23 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDecoyFiringImpl : GameEvent, EventDecoyFiring { - public EventDecoyFiringImpl(nint address) : base(address) - { - } + public EventDecoyFiringImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDecoyStartedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDecoyStartedImpl.cs index ee2b03b36..dfc38e0fb 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDecoyStartedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDecoyStartedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,23 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDecoyStartedImpl : GameEvent, EventDecoyStarted { - public EventDecoyStartedImpl(nint address) : base(address) - { - } + public EventDecoyStartedImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDefuserDroppedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDefuserDroppedImpl.cs index fa0cc51fc..10b5a824d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDefuserDroppedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDefuserDroppedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,11 +10,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDefuserDroppedImpl : GameEvent, EventDefuserDropped { - public EventDefuserDroppedImpl(nint address) : base(address) - { - } + public EventDefuserDroppedImpl( nint address ) : base(address) + { + } - // defuser's entity ID - public int EntityID - { get => Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + // defuser's entity ID + public int EntityID { get => Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDefuserPickupImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDefuserPickupImpl.cs index 9e5cd44a2..e6747d2d2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDefuserPickupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDefuserPickupImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDefuserPickupImpl : GameEvent, EventDefuserPickup { - public EventDefuserPickupImpl(nint address) : base(address) - { - } + public EventDefuserPickupImpl( nint address ) : base(address) + { + } - // defuser's entity ID - public int EntityID - { get => Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + // defuser's entity ID + public int EntityID { get => Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - // player who picked up the defuser - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who picked up the defuser + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who picked up the defuser - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who picked up the defuser + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who picked up the defuser - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who picked up the defuser + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who picked up the defuser - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who picked up the defuser + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDemoSkipImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDemoSkipImpl.cs index ca4c6b13f..7fa647331 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDemoSkipImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDemoSkipImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,15 +10,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDemoSkipImpl : GameEvent, EventDemoSkip { - public EventDemoSkipImpl(nint address) : base(address) - { - } + public EventDemoSkipImpl( nint address ) : base(address) + { + } - // current playback tick - public int PlaybackTick - { get => Accessor.GetInt32("playback_tick"); set => Accessor.SetInt32("playback_tick", value); } + // current playback tick + public int PlaybackTick { get => Accessor.GetInt32("playback_tick"); set => Accessor.SetInt32("playback_tick", value); } - // tick we're going to - public int SkiptoTick - { get => Accessor.GetInt32("skipto_tick"); set => Accessor.SetInt32("skipto_tick", value); } + // tick we're going to + public int SkiptoTick { get => Accessor.GetInt32("skipto_tick"); set => Accessor.SetInt32("skipto_tick", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDemoStartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDemoStartImpl.cs index cb62bc238..151c5f6e4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDemoStartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDemoStartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDemoStartImpl : GameEvent, EventDemoStart { - public EventDemoStartImpl(nint address) : base(address) - { - } + public EventDemoStartImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDemoStopImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDemoStopImpl.cs index 9a8d5c070..02017fb94 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDemoStopImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDemoStopImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDemoStopImpl : GameEvent, EventDemoStop { - public EventDemoStopImpl(nint address) : base(address) - { - } + public EventDemoStopImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDifficultyChangedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDifficultyChangedImpl.cs index e125f7f30..db574d58e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDifficultyChangedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDifficultyChangedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,17 +10,14 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDifficultyChangedImpl : GameEvent, EventDifficultyChanged { - public EventDifficultyChangedImpl(nint address) : base(address) - { - } + public EventDifficultyChangedImpl( nint address ) : base(address) + { + } - public short NewDifficulty - { get => (short)Accessor.GetInt32("newDifficulty"); set => Accessor.SetInt32("newDifficulty", value); } + public short NewDifficulty { get => (short)Accessor.GetInt32("newDifficulty"); set => Accessor.SetInt32("newDifficulty", value); } - public short OldDifficulty - { get => (short)Accessor.GetInt32("oldDifficulty"); set => Accessor.SetInt32("oldDifficulty", value); } + public short OldDifficulty { get => (short)Accessor.GetInt32("oldDifficulty"); set => Accessor.SetInt32("oldDifficulty", value); } - // new difficulty as string - public string StrDifficulty - { get => Accessor.GetString("strDifficulty"); set => Accessor.SetString("strDifficulty", value); } + // new difficulty as string + public string StrDifficulty { get => Accessor.GetString("strDifficulty"); set => Accessor.SetString("strDifficulty", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDmBonusWeaponStartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDmBonusWeaponStartImpl.cs index 71337a5d0..da2645499 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDmBonusWeaponStartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDmBonusWeaponStartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,15 +10,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDmBonusWeaponStartImpl : GameEvent, EventDmBonusWeaponStart { - public EventDmBonusWeaponStartImpl(nint address) : base(address) - { - } + public EventDmBonusWeaponStartImpl( nint address ) : base(address) + { + } - // The length of time that this bonus lasts - public short Time - { get => (short)Accessor.GetInt32("time"); set => Accessor.SetInt32("time", value); } + // The length of time that this bonus lasts + public short Time { get => (short)Accessor.GetInt32("time"); set => Accessor.SetInt32("time", value); } - // Loadout position of the bonus weapon - public short Pos - { get => (short)Accessor.GetInt32("Pos"); set => Accessor.SetInt32("Pos", value); } + // Loadout position of the bonus weapon + public short Pos { get => (short)Accessor.GetInt32("Pos"); set => Accessor.SetInt32("Pos", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorBreakImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorBreakImpl.cs index 7fb24b788..2ee7f3333 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorBreakImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorBreakImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,13 +10,11 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDoorBreakImpl : GameEvent, EventDoorBreak { - public EventDoorBreakImpl(nint address) : base(address) - { - } + public EventDoorBreakImpl( nint address ) : base(address) + { + } - public int EntIndex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + public int EntIndex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } - public int DMgState - { get => Accessor.GetInt32("dmgstate"); set => Accessor.SetInt32("dmgstate", value); } + public int DMgState { get => Accessor.GetInt32("dmgstate"); set => Accessor.SetInt32("dmgstate", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorCloseImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorCloseImpl.cs index 8b3352974..a23fea669 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorCloseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorCloseImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDoorCloseImpl : GameEvent, EventDoorClose { - public EventDoorCloseImpl(nint address) : base(address) - { - } + public EventDoorCloseImpl( nint address ) : base(address) + { + } - // Who closed the door - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // Who closed the door + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // Who closed the door - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // Who closed the door + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // Who closed the door - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // Who closed the door + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // Who closed the door - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // Who closed the door + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // Is the door a checkpoint door - public bool Checkpoint - { get => Accessor.GetBool("checkpoint"); set => Accessor.SetBool("checkpoint", value); } + // Is the door a checkpoint door + public bool Checkpoint { get => Accessor.GetBool("checkpoint"); set => Accessor.SetBool("checkpoint", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorClosedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorClosedImpl.cs index 5c17b1ed2..41753d8ee 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorClosedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorClosedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,26 +12,21 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDoorClosedImpl : GameEvent, EventDoorClosed { - public EventDoorClosedImpl(nint address) : base(address) - { - } + public EventDoorClosedImpl( nint address ) : base(address) + { + } - // Who closed the door - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // Who closed the door + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // Who closed the door - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // Who closed the door + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // Who closed the door - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // Who closed the door + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // Who closed the door - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // Who closed the door + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public int EntIndex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + public int EntIndex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorMovingImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorMovingImpl.cs index 3f88781ed..d9ae80f8f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorMovingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorMovingImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,22 +12,17 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDoorMovingImpl : GameEvent, EventDoorMoving { - public EventDoorMovingImpl(nint address) : base(address) - { - } + public EventDoorMovingImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public int EntIndex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + public int EntIndex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorOpenImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorOpenImpl.cs index 9be1acf0d..ff407f3c9 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorOpenImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDoorOpenImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,26 +12,21 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDoorOpenImpl : GameEvent, EventDoorOpen { - public EventDoorOpenImpl(nint address) : base(address) - { - } + public EventDoorOpenImpl( nint address ) : base(address) + { + } - // Who closed the door - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // Who closed the door + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // Who closed the door - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // Who closed the door + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // Who closed the door - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // Who closed the door + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // Who closed the door - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // Who closed the door + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public int EntIndex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + public int EntIndex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDroneAboveRoofImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDroneAboveRoofImpl.cs index a1f34ee51..8a985b8a8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDroneAboveRoofImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDroneAboveRoofImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,22 +12,17 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDroneAboveRoofImpl : GameEvent, EventDroneAboveRoof { - public EventDroneAboveRoofImpl(nint address) : base(address) - { - } + public EventDroneAboveRoofImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short Cargo - { get => (short)Accessor.GetInt32("cargo"); set => Accessor.SetInt32("cargo", value); } + public short Cargo { get => (short)Accessor.GetInt32("cargo"); set => Accessor.SetInt32("cargo", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDroneCargoDetachedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDroneCargoDetachedImpl.cs index ab1d95daf..e399a49ad 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDroneCargoDetachedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDroneCargoDetachedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,25 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDroneCargoDetachedImpl : GameEvent, EventDroneCargoDetached { - public EventDroneCargoDetachedImpl(nint address) : base(address) - { - } + public EventDroneCargoDetachedImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short Cargo - { get => (short)Accessor.GetInt32("cargo"); set => Accessor.SetInt32("cargo", value); } + public short Cargo { get => (short)Accessor.GetInt32("cargo"); set => Accessor.SetInt32("cargo", value); } - public bool Delivered - { get => Accessor.GetBool("delivered"); set => Accessor.SetBool("delivered", value); } + public bool Delivered { get => Accessor.GetBool("delivered"); set => Accessor.SetBool("delivered", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDroneDispatchedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDroneDispatchedImpl.cs index 8d7793bfe..38f71ea35 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDroneDispatchedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDroneDispatchedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,25 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDroneDispatchedImpl : GameEvent, EventDroneDispatched { - public EventDroneDispatchedImpl(nint address) : base(address) - { - } + public EventDroneDispatchedImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short Priority - { get => (short)Accessor.GetInt32("priority"); set => Accessor.SetInt32("priority", value); } + public short Priority { get => (short)Accessor.GetInt32("priority"); set => Accessor.SetInt32("priority", value); } - public short DroneDispatched - { get => (short)Accessor.GetInt32("drone_dispatched"); set => Accessor.SetInt32("drone_dispatched", value); } + public short DroneDispatched { get => (short)Accessor.GetInt32("drone_dispatched"); set => Accessor.SetInt32("drone_dispatched", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDronegunAttackImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDronegunAttackImpl.cs index 6cee66d12..19544febd 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDronegunAttackImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDronegunAttackImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDronegunAttackImpl : GameEvent, EventDronegunAttack { - public EventDronegunAttackImpl(nint address) : base(address) - { - } + public EventDronegunAttackImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDropRateModifiedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDropRateModifiedImpl.cs index 6f35d8f5c..c50d1fe6f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDropRateModifiedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDropRateModifiedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDropRateModifiedImpl : GameEvent, EventDropRateModified { - public EventDropRateModifiedImpl(nint address) : base(address) - { - } + public EventDropRateModifiedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDynamicShadowLightChangedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDynamicShadowLightChangedImpl.cs index 21df5b986..b60dc18f3 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDynamicShadowLightChangedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDynamicShadowLightChangedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDynamicShadowLightChangedImpl : GameEvent, EventDynamicShadowLightChanged { - public EventDynamicShadowLightChangedImpl(nint address) : base(address) - { - } + public EventDynamicShadowLightChangedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDzItemInteractionImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDzItemInteractionImpl.cs index 8a10eb338..a8bc56ef9 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDzItemInteractionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventDzItemInteractionImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,25 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventDzItemInteractionImpl : GameEvent, EventDzItemInteraction { - public EventDzItemInteractionImpl(nint address) : base(address) - { - } + public EventDzItemInteractionImpl( nint address ) : base(address) + { + } - // player entindex - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player entindex + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player entindex - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player entindex + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player entindex - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player entindex + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player entindex - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player entindex + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // crate entindex - public short Subject - { get => (short)Accessor.GetInt32("subject"); set => Accessor.SetInt32("subject", value); } + // crate entindex + public short Subject { get => (short)Accessor.GetInt32("subject"); set => Accessor.SetInt32("subject", value); } - // type of crate (metal, wood, or paradrop) - public string Type - { get => Accessor.GetString("type"); set => Accessor.SetString("type", value); } + // type of crate (metal, wood, or paradrop) + public string Type { get => Accessor.GetString("type"); set => Accessor.SetString("type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnableRestartVotingImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnableRestartVotingImpl.cs index 3e71c14a5..47c94885b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnableRestartVotingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnableRestartVotingImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventEnableRestartVotingImpl : GameEvent, EventEnableRestartVoting { - public EventEnableRestartVotingImpl(nint address) : base(address) - { - } + public EventEnableRestartVotingImpl( nint address ) : base(address) + { + } - public bool Enable - { get => Accessor.GetBool("enable"); set => Accessor.SetBool("enable", value); } + public bool Enable { get => Accessor.GetBool("enable"); set => Accessor.SetBool("enable", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEndmatchCmmStartRevealItemsImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEndmatchCmmStartRevealItemsImpl.cs index 54e6e7131..8d2b6fe2d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEndmatchCmmStartRevealItemsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEndmatchCmmStartRevealItemsImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventEndmatchCmmStartRevealItemsImpl : GameEvent, EventEndmatchCmmStartRevealItems { - public EventEndmatchCmmStartRevealItemsImpl(nint address) : base(address) - { - } + public EventEndmatchCmmStartRevealItemsImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEndmatchMapvoteSelectingMapImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEndmatchMapvoteSelectingMapImpl.cs index f5aaa3dc8..635b12d30 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEndmatchMapvoteSelectingMapImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEndmatchMapvoteSelectingMapImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,41 +10,30 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventEndmatchMapvoteSelectingMapImpl : GameEvent, EventEndmatchMapvoteSelectingMap { - public EventEndmatchMapvoteSelectingMapImpl(nint address) : base(address) - { - } + public EventEndmatchMapvoteSelectingMapImpl( nint address ) : base(address) + { + } - // Number of "ties" - public byte Count - { get => (byte)Accessor.GetInt32("count"); set => Accessor.SetInt32("count", value); } + // Number of "ties" + public byte Count { get => (byte)Accessor.GetInt32("count"); set => Accessor.SetInt32("count", value); } - public byte Slot1 - { get => (byte)Accessor.GetInt32("slot1"); set => Accessor.SetInt32("slot1", value); } + public byte Slot1 { get => (byte)Accessor.GetInt32("slot1"); set => Accessor.SetInt32("slot1", value); } - public byte Slot2 - { get => (byte)Accessor.GetInt32("slot2"); set => Accessor.SetInt32("slot2", value); } + public byte Slot2 { get => (byte)Accessor.GetInt32("slot2"); set => Accessor.SetInt32("slot2", value); } - public byte Slot3 - { get => (byte)Accessor.GetInt32("slot3"); set => Accessor.SetInt32("slot3", value); } + public byte Slot3 { get => (byte)Accessor.GetInt32("slot3"); set => Accessor.SetInt32("slot3", value); } - public byte Slot4 - { get => (byte)Accessor.GetInt32("slot4"); set => Accessor.SetInt32("slot4", value); } + public byte Slot4 { get => (byte)Accessor.GetInt32("slot4"); set => Accessor.SetInt32("slot4", value); } - public byte Slot5 - { get => (byte)Accessor.GetInt32("slot5"); set => Accessor.SetInt32("slot5", value); } + public byte Slot5 { get => (byte)Accessor.GetInt32("slot5"); set => Accessor.SetInt32("slot5", value); } - public byte Slot6 - { get => (byte)Accessor.GetInt32("slot6"); set => Accessor.SetInt32("slot6", value); } + public byte Slot6 { get => (byte)Accessor.GetInt32("slot6"); set => Accessor.SetInt32("slot6", value); } - public byte Slot7 - { get => (byte)Accessor.GetInt32("slot7"); set => Accessor.SetInt32("slot7", value); } + public byte Slot7 { get => (byte)Accessor.GetInt32("slot7"); set => Accessor.SetInt32("slot7", value); } - public byte Slot8 - { get => (byte)Accessor.GetInt32("slot8"); set => Accessor.SetInt32("slot8", value); } + public byte Slot8 { get => (byte)Accessor.GetInt32("slot8"); set => Accessor.SetInt32("slot8", value); } - public byte Slot9 - { get => (byte)Accessor.GetInt32("slot9"); set => Accessor.SetInt32("slot9", value); } + public byte Slot9 { get => (byte)Accessor.GetInt32("slot9"); set => Accessor.SetInt32("slot9", value); } - public byte Slot10 - { get => (byte)Accessor.GetInt32("slot10"); set => Accessor.SetInt32("slot10", value); } + public byte Slot10 { get => (byte)Accessor.GetInt32("slot10"); set => Accessor.SetInt32("slot10", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnterBombzoneImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnterBombzoneImpl.cs index 2e093fa57..8373c96d3 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnterBombzoneImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnterBombzoneImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,25 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventEnterBombzoneImpl : GameEvent, EventEnterBombzone { - public EventEnterBombzoneImpl(nint address) : base(address) - { - } + public EventEnterBombzoneImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public bool HasBomb - { get => Accessor.GetBool("hasbomb"); set => Accessor.SetBool("hasbomb", value); } + public bool HasBomb { get => Accessor.GetBool("hasbomb"); set => Accessor.SetBool("hasbomb", value); } - public bool IsPlanted - { get => Accessor.GetBool("isplanted"); set => Accessor.SetBool("isplanted", value); } + public bool IsPlanted { get => Accessor.GetBool("isplanted"); set => Accessor.SetBool("isplanted", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnterBuyzoneImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnterBuyzoneImpl.cs index 4b5e81d58..ca63f3bc2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnterBuyzoneImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnterBuyzoneImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,22 +12,17 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventEnterBuyzoneImpl : GameEvent, EventEnterBuyzone { - public EventEnterBuyzoneImpl(nint address) : base(address) - { - } + public EventEnterBuyzoneImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public bool CanBuy - { get => Accessor.GetBool("canbuy"); set => Accessor.SetBool("canbuy", value); } + public bool CanBuy { get => Accessor.GetBool("canbuy"); set => Accessor.SetBool("canbuy", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnterRescueZoneImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnterRescueZoneImpl.cs index 478408445..fee7571a8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnterRescueZoneImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEnterRescueZoneImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventEnterRescueZoneImpl : GameEvent, EventEnterRescueZone { - public EventEnterRescueZoneImpl(nint address) : base(address) - { - } + public EventEnterRescueZoneImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEntityKilledImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEntityKilledImpl.cs index 0d3108cf9..9f7d4887e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEntityKilledImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEntityKilledImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +10,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventEntityKilledImpl : GameEvent, EventEntityKilled { - public EventEntityKilledImpl(nint address) : base(address) - { - } + public EventEntityKilledImpl( nint address ) : base(address) + { + } - public int EntindexKilled - { get => Accessor.GetInt32("entindex_killed"); set => Accessor.SetInt32("entindex_killed", value); } + public int EntindexKilled { get => Accessor.GetInt32("entindex_killed"); set => Accessor.SetInt32("entindex_killed", value); } - public int EntindexAttacker - { get => Accessor.GetInt32("entindex_attacker"); set => Accessor.SetInt32("entindex_attacker", value); } + public int EntindexAttacker { get => Accessor.GetInt32("entindex_attacker"); set => Accessor.SetInt32("entindex_attacker", value); } - public int EntindexInflictor - { get => Accessor.GetInt32("entindex_inflictor"); set => Accessor.SetInt32("entindex_inflictor", value); } + public int EntindexInflictor { get => Accessor.GetInt32("entindex_inflictor"); set => Accessor.SetInt32("entindex_inflictor", value); } - public int DamageBits - { get => Accessor.GetInt32("damagebits"); set => Accessor.SetInt32("damagebits", value); } + public int DamageBits { get => Accessor.GetInt32("damagebits"); set => Accessor.SetInt32("damagebits", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEntityVisibleImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEntityVisibleImpl.cs index 5c64108ff..ab485642d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEntityVisibleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEntityVisibleImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,35 +12,28 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventEntityVisibleImpl : GameEvent, EventEntityVisible { - public EventEntityVisibleImpl(nint address) : base(address) - { - } + public EventEntityVisibleImpl( nint address ) : base(address) + { + } - // The player who sees the entity - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // The player who sees the entity + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // The player who sees the entity - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // The player who sees the entity + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // The player who sees the entity - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // The player who sees the entity + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // The player who sees the entity - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // The player who sees the entity + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // Entindex of the entity they see - public int Subject - { get => Accessor.GetInt32("subject"); set => Accessor.SetInt32("subject", value); } + // Entindex of the entity they see + public int Subject { get => Accessor.GetInt32("subject"); set => Accessor.SetInt32("subject", value); } - // Classname of the entity they see - public string ClassName - { get => Accessor.GetString("classname"); set => Accessor.SetString("classname", value); } + // Classname of the entity they see + public string ClassName { get => Accessor.GetString("classname"); set => Accessor.SetString("classname", value); } - // name of the entity they see - public string EntityName - { get => Accessor.GetString("entityname"); set => Accessor.SetString("entityname", value); } + // name of the entity they see + public string EntityName { get => Accessor.GetString("entityname"); set => Accessor.SetString("entityname", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEventTicketModifiedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEventTicketModifiedImpl.cs index 1e8bd7183..8adba3ba8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEventTicketModifiedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventEventTicketModifiedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventEventTicketModifiedImpl : GameEvent, EventEventTicketModified { - public EventEventTicketModifiedImpl(nint address) : base(address) - { - } + public EventEventTicketModifiedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventExitBombzoneImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventExitBombzoneImpl.cs index 70ac51b5a..a93cbfcf9 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventExitBombzoneImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventExitBombzoneImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,25 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventExitBombzoneImpl : GameEvent, EventExitBombzone { - public EventExitBombzoneImpl(nint address) : base(address) - { - } + public EventExitBombzoneImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public bool HasBomb - { get => Accessor.GetBool("hasbomb"); set => Accessor.SetBool("hasbomb", value); } + public bool HasBomb { get => Accessor.GetBool("hasbomb"); set => Accessor.SetBool("hasbomb", value); } - public bool IsPlanted - { get => Accessor.GetBool("isplanted"); set => Accessor.SetBool("isplanted", value); } + public bool IsPlanted { get => Accessor.GetBool("isplanted"); set => Accessor.SetBool("isplanted", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventExitBuyzoneImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventExitBuyzoneImpl.cs index 78fce45ef..92db32e8e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventExitBuyzoneImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventExitBuyzoneImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,22 +12,17 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventExitBuyzoneImpl : GameEvent, EventExitBuyzone { - public EventExitBuyzoneImpl(nint address) : base(address) - { - } + public EventExitBuyzoneImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public bool CanBuy - { get => Accessor.GetBool("canbuy"); set => Accessor.SetBool("canbuy", value); } + public bool CanBuy { get => Accessor.GetBool("canbuy"); set => Accessor.SetBool("canbuy", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventExitRescueZoneImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventExitRescueZoneImpl.cs index 07325d12d..b7d039563 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventExitRescueZoneImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventExitRescueZoneImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventExitRescueZoneImpl : GameEvent, EventExitRescueZone { - public EventExitRescueZoneImpl(nint address) : base(address) - { - } + public EventExitRescueZoneImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFinaleStartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFinaleStartImpl.cs index 55cd2aa70..c3236d008 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFinaleStartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFinaleStartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventFinaleStartImpl : GameEvent, EventFinaleStart { - public EventFinaleStartImpl(nint address) : base(address) - { - } + public EventFinaleStartImpl( nint address ) : base(address) + { + } - public short Rushes - { get => (short)Accessor.GetInt32("rushes"); set => Accessor.SetInt32("rushes", value); } + public short Rushes { get => (short)Accessor.GetInt32("rushes"); set => Accessor.SetInt32("rushes", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFirstbombsIncomingWarningImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFirstbombsIncomingWarningImpl.cs index c49d8da42..071b02c43 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFirstbombsIncomingWarningImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFirstbombsIncomingWarningImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventFirstbombsIncomingWarningImpl : GameEvent, EventFirstbombsIncomingWarning { - public EventFirstbombsIncomingWarningImpl(nint address) : base(address) - { - } + public EventFirstbombsIncomingWarningImpl( nint address ) : base(address) + { + } - public bool Global - { get => Accessor.GetBool("global"); set => Accessor.SetBool("global", value); } + public bool Global { get => Accessor.GetBool("global"); set => Accessor.SetBool("global", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFlareIgniteNpcImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFlareIgniteNpcImpl.cs index d11b53d08..754ae3185 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFlareIgniteNpcImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFlareIgniteNpcImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,11 +10,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventFlareIgniteNpcImpl : GameEvent, EventFlareIgniteNpc { - public EventFlareIgniteNpcImpl(nint address) : base(address) - { - } + public EventFlareIgniteNpcImpl( nint address ) : base(address) + { + } - // entity ignited - public int EntIndex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + // entity ignited + public int EntIndex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFlashbangDetonateImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFlashbangDetonateImpl.cs index dd46ff5ca..7eb9bacd6 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFlashbangDetonateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventFlashbangDetonateImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,23 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventFlashbangDetonateImpl : GameEvent, EventFlashbangDetonate { - public EventFlashbangDetonateImpl(nint address) : base(address) - { - } + public EventFlashbangDetonateImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameEndImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameEndImpl.cs index 00d829b29..e5423aab5 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameEndImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameEndImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,11 +11,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGameEndImpl : GameEvent, EventGameEnd { - public EventGameEndImpl(nint address) : base(address) - { - } + public EventGameEndImpl( nint address ) : base(address) + { + } - // winner team/user id - public byte Winner - { get => (byte)Accessor.GetInt32("winner"); set => Accessor.SetInt32("winner", value); } + // winner team/user id + public byte Winner { get => (byte)Accessor.GetInt32("winner"); set => Accessor.SetInt32("winner", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameInitImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameInitImpl.cs index fba64b98a..5269a621a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameInitImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameInitImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,7 +11,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGameInitImpl : GameEvent, EventGameInit { - public EventGameInitImpl(nint address) : base(address) - { - } + public EventGameInitImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameMessageImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameMessageImpl.cs index 5d2e1e101..ee40099ef 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameMessageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameMessageImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,15 +11,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGameMessageImpl : GameEvent, EventGameMessage { - public EventGameMessageImpl(nint address) : base(address) - { - } + public EventGameMessageImpl( nint address ) : base(address) + { + } - // 0 = console, 1 = HUD - public byte Target - { get => (byte)Accessor.GetInt32("target"); set => Accessor.SetInt32("target", value); } + // 0 = console, 1 = HUD + public byte Target { get => (byte)Accessor.GetInt32("target"); set => Accessor.SetInt32("target", value); } - // the message text - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + // the message text + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameNewmapImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameNewmapImpl.cs index c693098c5..7bacf7a1d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameNewmapImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameNewmapImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,15 +11,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGameNewmapImpl : GameEvent, EventGameNewmap { - public EventGameNewmapImpl(nint address) : base(address) - { - } + public EventGameNewmapImpl( nint address ) : base(address) + { + } - // map name - public string MapName - { get => Accessor.GetString("mapname"); set => Accessor.SetString("mapname", value); } + // map name + public string MapName { get => Accessor.GetString("mapname"); set => Accessor.SetString("mapname", value); } - // true if this is a transition from one map to another - public bool Transition - { get => Accessor.GetBool("transition"); set => Accessor.SetBool("transition", value); } + // true if this is a transition from one map to another + public bool Transition { get => Accessor.GetBool("transition"); set => Accessor.SetBool("transition", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGamePhaseChangedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGamePhaseChangedImpl.cs index 6ed6160f8..e5657a039 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGamePhaseChangedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGamePhaseChangedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGamePhaseChangedImpl : GameEvent, EventGamePhaseChanged { - public EventGamePhaseChangedImpl(nint address) : base(address) - { - } + public EventGamePhaseChangedImpl( nint address ) : base(address) + { + } - public short NewPhase - { get => (short)Accessor.GetInt32("new_phase"); set => Accessor.SetInt32("new_phase", value); } + public short NewPhase { get => (short)Accessor.GetInt32("new_phase"); set => Accessor.SetInt32("new_phase", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameStartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameStartImpl.cs index 5f1ba03df..5af57d585 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameStartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameStartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,23 +11,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGameStartImpl : GameEvent, EventGameStart { - public EventGameStartImpl(nint address) : base(address) - { - } + public EventGameStartImpl( nint address ) : base(address) + { + } - // max round - public int RoundsLimit - { get => Accessor.GetInt32("roundslimit"); set => Accessor.SetInt32("roundslimit", value); } + // max round + public int RoundsLimit { get => Accessor.GetInt32("roundslimit"); set => Accessor.SetInt32("roundslimit", value); } - // time limit - public int TimeLimit - { get => Accessor.GetInt32("timelimit"); set => Accessor.SetInt32("timelimit", value); } + // time limit + public int TimeLimit { get => Accessor.GetInt32("timelimit"); set => Accessor.SetInt32("timelimit", value); } - // frag limit - public int FragLimit - { get => Accessor.GetInt32("fraglimit"); set => Accessor.SetInt32("fraglimit", value); } + // frag limit + public int FragLimit { get => Accessor.GetInt32("fraglimit"); set => Accessor.SetInt32("fraglimit", value); } - // round objective - public string Objective - { get => Accessor.GetString("objective"); set => Accessor.SetString("objective", value); } + // round objective + public string Objective { get => Accessor.GetString("objective"); set => Accessor.SetString("objective", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameinstructorDrawImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameinstructorDrawImpl.cs index dc75a5658..edd7c7b81 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameinstructorDrawImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameinstructorDrawImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGameinstructorDrawImpl : GameEvent, EventGameinstructorDraw { - public EventGameinstructorDrawImpl(nint address) : base(address) - { - } + public EventGameinstructorDrawImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameinstructorNodrawImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameinstructorNodrawImpl.cs index fc6181ac8..e21141a73 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameinstructorNodrawImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameinstructorNodrawImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGameinstructorNodrawImpl : GameEvent, EventGameinstructorNodraw { - public EventGameinstructorNodrawImpl(nint address) : base(address) - { - } + public EventGameinstructorNodrawImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameuiHiddenImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameuiHiddenImpl.cs index 0308bc4c3..6d657e53e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameuiHiddenImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGameuiHiddenImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGameuiHiddenImpl : GameEvent, EventGameuiHidden { - public EventGameuiHiddenImpl(nint address) : base(address) - { - } + public EventGameuiHiddenImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGcConnectedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGcConnectedImpl.cs index e745d36c0..0b47e013a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGcConnectedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGcConnectedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGcConnectedImpl : GameEvent, EventGcConnected { - public EventGcConnectedImpl(nint address) : base(address) - { - } + public EventGcConnectedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGgKilledEnemyImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGgKilledEnemyImpl.cs index 1773c8d50..d43cbce3f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGgKilledEnemyImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGgKilledEnemyImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +10,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGgKilledEnemyImpl : GameEvent, EventGgKilledEnemy { - public EventGgKilledEnemyImpl(nint address) : base(address) - { - } + public EventGgKilledEnemyImpl( nint address ) : base(address) + { + } - // user ID who died - public int VictimID - { get => Accessor.GetPlayerSlot("victimid"); set => Accessor.SetPlayerSlot("victimid", value); } + // user ID who died + public int VictimID { get => Accessor.GetPlayerSlot("victimid"); set => Accessor.SetPlayerSlot("victimid", value); } - // user ID who killed - public int AttackerID - { get => Accessor.GetPlayerSlot("attackerid"); set => Accessor.SetPlayerSlot("attackerid", value); } + // user ID who killed + public int AttackerID { get => Accessor.GetPlayerSlot("attackerid"); set => Accessor.SetPlayerSlot("attackerid", value); } - // did killer dominate victim with this kill - public short Dominated - { get => (short)Accessor.GetInt32("dominated"); set => Accessor.SetInt32("dominated", value); } + // did killer dominate victim with this kill + public short Dominated { get => (short)Accessor.GetInt32("dominated"); set => Accessor.SetInt32("dominated", value); } - // did killer get revenge on victim with this kill - public short Revenge - { get => (short)Accessor.GetInt32("revenge"); set => Accessor.SetInt32("revenge", value); } + // did killer get revenge on victim with this kill + public short Revenge { get => (short)Accessor.GetInt32("revenge"); set => Accessor.SetInt32("revenge", value); } - // did killer kill with a bonus weapon? - public bool Bonus - { get => Accessor.GetBool("bonus"); set => Accessor.SetBool("bonus", value); } + // did killer kill with a bonus weapon? + public bool Bonus { get => Accessor.GetBool("bonus"); set => Accessor.SetBool("bonus", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGrenadeBounceImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGrenadeBounceImpl.cs index e8b0df549..ac60ebc36 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGrenadeBounceImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGrenadeBounceImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGrenadeBounceImpl : GameEvent, EventGrenadeBounce { - public EventGrenadeBounceImpl(nint address) : base(address) - { - } + public EventGrenadeBounceImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGrenadeThrownImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGrenadeThrownImpl.cs index ef36effa6..cda27af49 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGrenadeThrownImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGrenadeThrownImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,23 +12,18 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGrenadeThrownImpl : GameEvent, EventGrenadeThrown { - public EventGrenadeThrownImpl(nint address) : base(address) - { - } + public EventGrenadeThrownImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // weapon name used - public string Weapon - { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } + // weapon name used + public string Weapon { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGuardianWaveRestartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGuardianWaveRestartImpl.cs index 0c7472a63..d2f12faa9 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGuardianWaveRestartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventGuardianWaveRestartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventGuardianWaveRestartImpl : GameEvent, EventGuardianWaveRestart { - public EventGuardianWaveRestartImpl(nint address) : base(address) - { - } + public EventGuardianWaveRestartImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHegrenadeDetonateImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHegrenadeDetonateImpl.cs index 0cd483456..37361c014 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHegrenadeDetonateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHegrenadeDetonateImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,23 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHegrenadeDetonateImpl : GameEvent, EventHegrenadeDetonate { - public EventHegrenadeDetonateImpl(nint address) : base(address) - { - } + public EventHegrenadeDetonateImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHelicopterGrenadePuntMissImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHelicopterGrenadePuntMissImpl.cs index eeaf8b225..99964e3f4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHelicopterGrenadePuntMissImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHelicopterGrenadePuntMissImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHelicopterGrenadePuntMissImpl : GameEvent, EventHelicopterGrenadePuntMiss { - public EventHelicopterGrenadePuntMissImpl(nint address) : base(address) - { - } + public EventHelicopterGrenadePuntMissImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHideDeathpanelImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHideDeathpanelImpl.cs index 5095c2cf9..c78881560 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHideDeathpanelImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHideDeathpanelImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHideDeathpanelImpl : GameEvent, EventHideDeathpanel { - public EventHideDeathpanelImpl(nint address) : base(address) - { - } + public EventHideDeathpanelImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvCameramanImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvCameramanImpl.cs index 403d555d8..3a06d54f5 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvCameramanImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvCameramanImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,23 +13,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHltvCameramanImpl : GameEvent, EventHltvCameraman { - public EventHltvCameramanImpl(nint address) : base(address) - { - } + public EventHltvCameramanImpl( nint address ) : base(address) + { + } - // camera man entity index - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // camera man entity index + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // camera man entity index - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // camera man entity index + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // camera man entity index - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // camera man entity index + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // camera man entity index - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // camera man entity index + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvChangedModeImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvChangedModeImpl.cs index fbdd96546..6cf34eb24 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvChangedModeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvChangedModeImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,16 +10,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHltvChangedModeImpl : GameEvent, EventHltvChangedMode { - public EventHltvChangedModeImpl(nint address) : base(address) - { - } + public EventHltvChangedModeImpl( nint address ) : base(address) + { + } - public int OldMode - { get => Accessor.GetInt32("oldmode"); set => Accessor.SetInt32("oldmode", value); } + public int OldMode { get => Accessor.GetInt32("oldmode"); set => Accessor.SetInt32("oldmode", value); } - public int NewMode - { get => Accessor.GetInt32("newmode"); set => Accessor.SetInt32("newmode", value); } + public int NewMode { get => Accessor.GetInt32("newmode"); set => Accessor.SetInt32("newmode", value); } - public int ObsTarget - { get => Accessor.GetInt32("obs_target"); set => Accessor.SetInt32("obs_target", value); } + public int ObsTarget { get => Accessor.GetInt32("obs_target"); set => Accessor.SetInt32("obs_target", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvChaseImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvChaseImpl.cs index e0154e55e..a25105ed3 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvChaseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvChaseImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,35 +11,28 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHltvChaseImpl : GameEvent, EventHltvChase { - public EventHltvChaseImpl(nint address) : base(address) - { - } + public EventHltvChaseImpl( nint address ) : base(address) + { + } - // primary traget index - public int Target1 - { get => Accessor.GetPlayerSlot("target1"); set => Accessor.SetPlayerSlot("target1", value); } + // primary traget index + public int Target1 { get => Accessor.GetPlayerSlot("target1"); set => Accessor.SetPlayerSlot("target1", value); } - // secondary traget index or 0 - public int Target2 - { get => Accessor.GetPlayerSlot("target2"); set => Accessor.SetPlayerSlot("target2", value); } + // secondary traget index or 0 + public int Target2 { get => Accessor.GetPlayerSlot("target2"); set => Accessor.SetPlayerSlot("target2", value); } - // camera distance - public short Distance - { get => (short)Accessor.GetInt32("distance"); set => Accessor.SetInt32("distance", value); } + // camera distance + public short Distance { get => (short)Accessor.GetInt32("distance"); set => Accessor.SetInt32("distance", value); } - // view angle horizontal - public short Theta - { get => (short)Accessor.GetInt32("theta"); set => Accessor.SetInt32("theta", value); } + // view angle horizontal + public short Theta { get => (short)Accessor.GetInt32("theta"); set => Accessor.SetInt32("theta", value); } - // view angle vertical - public short Phi - { get => (short)Accessor.GetInt32("phi"); set => Accessor.SetInt32("phi", value); } + // view angle vertical + public short Phi { get => (short)Accessor.GetInt32("phi"); set => Accessor.SetInt32("phi", value); } - // camera inertia - public byte Inertia - { get => (byte)Accessor.GetInt32("inertia"); set => Accessor.SetInt32("inertia", value); } + // camera inertia + public byte Inertia { get => (byte)Accessor.GetInt32("inertia"); set => Accessor.SetInt32("inertia", value); } - // diretcor suggests to show ineye - public byte InEye - { get => (byte)Accessor.GetInt32("ineye"); set => Accessor.SetInt32("ineye", value); } + // diretcor suggests to show ineye + public byte InEye { get => (byte)Accessor.GetInt32("ineye"); set => Accessor.SetInt32("ineye", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvChatImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvChatImpl.cs index 0aa084bf6..959461502 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvChatImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvChatImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,14 +11,12 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHltvChatImpl : GameEvent, EventHltvChat { - public EventHltvChatImpl(nint address) : base(address) - { - } + public EventHltvChatImpl( nint address ) : base(address) + { + } - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } - // steam id - public ulong SteamID - { get => Accessor.GetUInt64("steamID"); set => Accessor.SetUInt64("steamID", value); } + // steam id + public ulong SteamID { get => Accessor.GetUInt64("steamID"); set => Accessor.SetUInt64("steamID", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvFixedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvFixedImpl.cs index 36fa6b3da..297d2c735 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvFixedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvFixedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,34 +11,26 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHltvFixedImpl : GameEvent, EventHltvFixed { - public EventHltvFixedImpl(nint address) : base(address) - { - } + public EventHltvFixedImpl( nint address ) : base(address) + { + } - // camera position in world - public int PosX - { get => Accessor.GetInt32("posx"); set => Accessor.SetInt32("posx", value); } + // camera position in world + public int PosX { get => Accessor.GetInt32("posx"); set => Accessor.SetInt32("posx", value); } - public int Posy - { get => Accessor.GetInt32("posy"); set => Accessor.SetInt32("posy", value); } + public int Posy { get => Accessor.GetInt32("posy"); set => Accessor.SetInt32("posy", value); } - public int PosZ - { get => Accessor.GetInt32("posz"); set => Accessor.SetInt32("posz", value); } + public int PosZ { get => Accessor.GetInt32("posz"); set => Accessor.SetInt32("posz", value); } - // camera angles - public short Theta - { get => (short)Accessor.GetInt32("theta"); set => Accessor.SetInt32("theta", value); } + // camera angles + public short Theta { get => (short)Accessor.GetInt32("theta"); set => Accessor.SetInt32("theta", value); } - public short Phi - { get => (short)Accessor.GetInt32("phi"); set => Accessor.SetInt32("phi", value); } + public short Phi { get => (short)Accessor.GetInt32("phi"); set => Accessor.SetInt32("phi", value); } - public short Offset - { get => (short)Accessor.GetInt32("offset"); set => Accessor.SetInt32("offset", value); } + public short Offset { get => (short)Accessor.GetInt32("offset"); set => Accessor.SetInt32("offset", value); } - public float FOv - { get => Accessor.GetFloat("fov"); set => Accessor.SetFloat("fov", value); } + public float FOv { get => Accessor.GetFloat("fov"); set => Accessor.SetFloat("fov", value); } - // follow this player - public int Target - { get => Accessor.GetPlayerSlot("target"); set => Accessor.SetPlayerSlot("target", value); } + // follow this player + public int Target { get => Accessor.GetPlayerSlot("target"); set => Accessor.SetPlayerSlot("target", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvMessageImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvMessageImpl.cs index 621d17a42..7dfbf10bd 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvMessageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvMessageImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,10 +11,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHltvMessageImpl : GameEvent, EventHltvMessage { - public EventHltvMessageImpl(nint address) : base(address) - { - } + public EventHltvMessageImpl( nint address ) : base(address) + { + } - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvRankCameraImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvRankCameraImpl.cs index 7341ac54c..c79394f95 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvRankCameraImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvRankCameraImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,19 +11,16 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHltvRankCameraImpl : GameEvent, EventHltvRankCamera { - public EventHltvRankCameraImpl(nint address) : base(address) - { - } + public EventHltvRankCameraImpl( nint address ) : base(address) + { + } - // fixed camera index - public byte Index - { get => (byte)Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } + // fixed camera index + public byte Index { get => (byte)Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } - // ranking, how interesting is this camera view - public float Rank - { get => Accessor.GetFloat("rank"); set => Accessor.SetFloat("rank", value); } + // ranking, how interesting is this camera view + public float Rank { get => Accessor.GetFloat("rank"); set => Accessor.SetFloat("rank", value); } - // best/closest target entity - public int Target - { get => Accessor.GetPlayerSlot("target"); set => Accessor.SetPlayerSlot("target", value); } + // best/closest target entity + public int Target { get => Accessor.GetPlayerSlot("target"); set => Accessor.SetPlayerSlot("target", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvRankEntityImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvRankEntityImpl.cs index 39dd91afb..56553040b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvRankEntityImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvRankEntityImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,31 +13,25 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHltvRankEntityImpl : GameEvent, EventHltvRankEntity { - public EventHltvRankEntityImpl(nint address) : base(address) - { - } + public EventHltvRankEntityImpl( nint address ) : base(address) + { + } - // player slot - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player slot + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player slot - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player slot + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player slot - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player slot + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player slot - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player slot + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // ranking, how interesting is this entity to view - public float Rank - { get => Accessor.GetFloat("rank"); set => Accessor.SetFloat("rank", value); } + // ranking, how interesting is this entity to view + public float Rank { get => Accessor.GetFloat("rank"); set => Accessor.SetFloat("rank", value); } - // best/closest target entity - public int Target - { get => Accessor.GetPlayerSlot("target"); set => Accessor.SetPlayerSlot("target", value); } + // best/closest target entity + public int Target { get => Accessor.GetPlayerSlot("target"); set => Accessor.SetPlayerSlot("target", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvReplayImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvReplayImpl.cs index aa0344048..115a09294 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvReplayImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvReplayImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,15 +10,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHltvReplayImpl : GameEvent, EventHltvReplay { - public EventHltvReplayImpl(nint address) : base(address) - { - } + public EventHltvReplayImpl( nint address ) : base(address) + { + } - // number of seconds in killer replay delay - public int Delay - { get => Accessor.GetInt32("delay"); set => Accessor.SetInt32("delay", value); } + // number of seconds in killer replay delay + public int Delay { get => Accessor.GetInt32("delay"); set => Accessor.SetInt32("delay", value); } - // reason for replay (ReplayEventType_t) - public int Reason - { get => Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } + // reason for replay (ReplayEventType_t) + public int Reason { get => Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvReplayStatusImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvReplayStatusImpl.cs index f9e0e0dce..582add8ed 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvReplayStatusImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvReplayStatusImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,11 +10,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHltvReplayStatusImpl : GameEvent, EventHltvReplayStatus { - public EventHltvReplayStatusImpl(nint address) : base(address) - { - } + public EventHltvReplayStatusImpl( nint address ) : base(address) + { + } - // reason for hltv replay status change () - public int Reason - { get => Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } + // reason for hltv replay status change () + public int Reason { get => Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvStatusImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvStatusImpl.cs index 22256b777..fd57f10c8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvStatusImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvStatusImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,23 +11,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHltvStatusImpl : GameEvent, EventHltvStatus { - public EventHltvStatusImpl(nint address) : base(address) - { - } + public EventHltvStatusImpl( nint address ) : base(address) + { + } - // number of HLTV spectators - public int Clients - { get => Accessor.GetInt32("clients"); set => Accessor.SetInt32("clients", value); } + // number of HLTV spectators + public int Clients { get => Accessor.GetInt32("clients"); set => Accessor.SetInt32("clients", value); } - // number of HLTV slots - public int Slots - { get => Accessor.GetInt32("slots"); set => Accessor.SetInt32("slots", value); } + // number of HLTV slots + public int Slots { get => Accessor.GetInt32("slots"); set => Accessor.SetInt32("slots", value); } - // number of HLTV proxies - public short Proxies - { get => (short)Accessor.GetInt32("proxies"); set => Accessor.SetInt32("proxies", value); } + // number of HLTV proxies + public short Proxies { get => (short)Accessor.GetInt32("proxies"); set => Accessor.SetInt32("proxies", value); } - // disptach master IP:port - public string Master - { get => Accessor.GetString("master"); set => Accessor.SetString("master", value); } + // disptach master IP:port + public string Master { get => Accessor.GetString("master"); set => Accessor.SetString("master", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvTitleImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvTitleImpl.cs index 6e86e4eb8..b1c4d6246 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvTitleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvTitleImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHltvTitleImpl : GameEvent, EventHltvTitle { - public EventHltvTitleImpl(nint address) : base(address) - { - } + public EventHltvTitleImpl( nint address ) : base(address) + { + } - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvVersioninfoImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvVersioninfoImpl.cs index 6bd987005..82b204b92 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvVersioninfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHltvVersioninfoImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHltvVersioninfoImpl : GameEvent, EventHltvVersioninfo { - public EventHltvVersioninfoImpl(nint address) : base(address) - { - } + public EventHltvVersioninfoImpl( nint address ) : base(address) + { + } - public int Version - { get => Accessor.GetInt32("version"); set => Accessor.SetInt32("version", value); } + public int Version { get => Accessor.GetInt32("version"); set => Accessor.SetInt32("version", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageCallForHelpImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageCallForHelpImpl.cs index 9413815ac..3e10761af 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageCallForHelpImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageCallForHelpImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,11 +10,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHostageCallForHelpImpl : GameEvent, EventHostageCallForHelp { - public EventHostageCallForHelpImpl(nint address) : base(address) - { - } + public EventHostageCallForHelpImpl( nint address ) : base(address) + { + } - // hostage entity index - public short Hostage - { get => (short)Accessor.GetInt32("hostage"); set => Accessor.SetInt32("hostage", value); } + // hostage entity index + public short Hostage { get => (short)Accessor.GetInt32("hostage"); set => Accessor.SetInt32("hostage", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageFollowsImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageFollowsImpl.cs index a398d9694..527803fb7 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageFollowsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageFollowsImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHostageFollowsImpl : GameEvent, EventHostageFollows { - public EventHostageFollowsImpl(nint address) : base(address) - { - } + public EventHostageFollowsImpl( nint address ) : base(address) + { + } - // player who touched the hostage - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who touched the hostage + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who touched the hostage - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who touched the hostage + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who touched the hostage - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who touched the hostage + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who touched the hostage - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who touched the hostage + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // hostage entity index - public short Hostage - { get => (short)Accessor.GetInt32("hostage"); set => Accessor.SetInt32("hostage", value); } + // hostage entity index + public short Hostage { get => (short)Accessor.GetInt32("hostage"); set => Accessor.SetInt32("hostage", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageHurtImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageHurtImpl.cs index 550e15282..6e4ab45ad 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageHurtImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageHurtImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHostageHurtImpl : GameEvent, EventHostageHurt { - public EventHostageHurtImpl(nint address) : base(address) - { - } + public EventHostageHurtImpl( nint address ) : base(address) + { + } - // player who hurt the hostage - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who hurt the hostage + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who hurt the hostage - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who hurt the hostage + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who hurt the hostage - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who hurt the hostage + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who hurt the hostage - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who hurt the hostage + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // hostage entity index - public short Hostage - { get => (short)Accessor.GetInt32("hostage"); set => Accessor.SetInt32("hostage", value); } + // hostage entity index + public short Hostage { get => (short)Accessor.GetInt32("hostage"); set => Accessor.SetInt32("hostage", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageKilledImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageKilledImpl.cs index 4f02fd624..1c46bf56a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageKilledImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageKilledImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHostageKilledImpl : GameEvent, EventHostageKilled { - public EventHostageKilledImpl(nint address) : base(address) - { - } + public EventHostageKilledImpl( nint address ) : base(address) + { + } - // player who killed the hostage - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who killed the hostage + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who killed the hostage - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who killed the hostage + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who killed the hostage - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who killed the hostage + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who killed the hostage - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who killed the hostage + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // hostage entity index - public short Hostage - { get => (short)Accessor.GetInt32("hostage"); set => Accessor.SetInt32("hostage", value); } + // hostage entity index + public short Hostage { get => (short)Accessor.GetInt32("hostage"); set => Accessor.SetInt32("hostage", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageRescuedAllImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageRescuedAllImpl.cs index d69e89cd7..c2baf88f8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageRescuedAllImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageRescuedAllImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHostageRescuedAllImpl : GameEvent, EventHostageRescuedAll { - public EventHostageRescuedAllImpl(nint address) : base(address) - { - } + public EventHostageRescuedAllImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageRescuedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageRescuedImpl.cs index 5803aa139..7e6d81399 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageRescuedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageRescuedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,25 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHostageRescuedImpl : GameEvent, EventHostageRescued { - public EventHostageRescuedImpl(nint address) : base(address) - { - } + public EventHostageRescuedImpl( nint address ) : base(address) + { + } - // player who rescued the hostage - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who rescued the hostage + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who rescued the hostage - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who rescued the hostage + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who rescued the hostage - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who rescued the hostage + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who rescued the hostage - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who rescued the hostage + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // hostage entity index - public short Hostage - { get => (short)Accessor.GetInt32("hostage"); set => Accessor.SetInt32("hostage", value); } + // hostage entity index + public short Hostage { get => (short)Accessor.GetInt32("hostage"); set => Accessor.SetInt32("hostage", value); } - // rescue site index - public short Site - { get => (short)Accessor.GetInt32("site"); set => Accessor.SetInt32("site", value); } + // rescue site index + public short Site { get => (short)Accessor.GetInt32("site"); set => Accessor.SetInt32("site", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageStopsFollowingImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageStopsFollowingImpl.cs index 2a0bffd07..52d79d636 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageStopsFollowingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostageStopsFollowingImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHostageStopsFollowingImpl : GameEvent, EventHostageStopsFollowing { - public EventHostageStopsFollowingImpl(nint address) : base(address) - { - } + public EventHostageStopsFollowingImpl( nint address ) : base(address) + { + } - // player who rescued the hostage - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who rescued the hostage + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who rescued the hostage - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who rescued the hostage + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who rescued the hostage - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who rescued the hostage + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who rescued the hostage - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who rescued the hostage + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // hostage entity index - public short Hostage - { get => (short)Accessor.GetInt32("hostage"); set => Accessor.SetInt32("hostage", value); } + // hostage entity index + public short Hostage { get => (short)Accessor.GetInt32("hostage"); set => Accessor.SetInt32("hostage", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostnameChangedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostnameChangedImpl.cs index f5953f433..8b6ca45a6 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostnameChangedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventHostnameChangedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventHostnameChangedImpl : GameEvent, EventHostnameChanged { - public EventHostnameChangedImpl(nint address) : base(address) - { - } + public EventHostnameChangedImpl( nint address ) : base(address) + { + } - public string Hostname - { get => Accessor.GetString("hostname"); set => Accessor.SetString("hostname", value); } + public string Hostname { get => Accessor.GetString("hostname"); set => Accessor.SetString("hostname", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInfernoExpireImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInfernoExpireImpl.cs index 0ca9dd5f6..b44c4677b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInfernoExpireImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInfernoExpireImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +10,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventInfernoExpireImpl : GameEvent, EventInfernoExpire { - public EventInfernoExpireImpl(nint address) : base(address) - { - } + public EventInfernoExpireImpl( nint address ) : base(address) + { + } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInfernoExtinguishImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInfernoExtinguishImpl.cs index 8d0e9e006..ad3c607d0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInfernoExtinguishImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInfernoExtinguishImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +10,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventInfernoExtinguishImpl : GameEvent, EventInfernoExtinguish { - public EventInfernoExtinguishImpl(nint address) : base(address) - { - } + public EventInfernoExtinguishImpl( nint address ) : base(address) + { + } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInfernoStartburnImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInfernoStartburnImpl.cs index 5e35f0579..1d8757ff5 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInfernoStartburnImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInfernoStartburnImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +10,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventInfernoStartburnImpl : GameEvent, EventInfernoStartburn { - public EventInfernoStartburnImpl(nint address) : base(address) - { - } + public EventInfernoStartburnImpl( nint address ) : base(address) + { + } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInspectWeaponImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInspectWeaponImpl.cs index c39e61ba0..d5d49b486 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInspectWeaponImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInspectWeaponImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventInspectWeaponImpl : GameEvent, EventInspectWeapon { - public EventInspectWeaponImpl(nint address) : base(address) - { - } + public EventInspectWeaponImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorCloseLessonImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorCloseLessonImpl.cs index ad2553468..04db2d979 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorCloseLessonImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorCloseLessonImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventInstructorCloseLessonImpl : GameEvent, EventInstructorCloseLesson { - public EventInstructorCloseLessonImpl(nint address) : base(address) - { - } + public EventInstructorCloseLessonImpl( nint address ) : base(address) + { + } - // The player who this lesson is intended for - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // The player who this lesson is intended for + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // The player who this lesson is intended for - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // The player who this lesson is intended for + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // The player who this lesson is intended for - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // The player who this lesson is intended for + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // The player who this lesson is intended for - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // The player who this lesson is intended for + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // Name of the lesson to start. Must match instructor_lesson.txt - public string HintName - { get => Accessor.GetString("hint_name"); set => Accessor.SetString("hint_name", value); } + // Name of the lesson to start. Must match instructor_lesson.txt + public string HintName { get => Accessor.GetString("hint_name"); set => Accessor.SetString("hint_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorServerHintCreateImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorServerHintCreateImpl.cs index 907c567b6..061bde40a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorServerHintCreateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorServerHintCreateImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,131 +13,100 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventInstructorServerHintCreateImpl : GameEvent, EventInstructorServerHintCreate { - public EventInstructorServerHintCreateImpl(nint address) : base(address) - { - } + public EventInstructorServerHintCreateImpl( nint address ) : base(address) + { + } - // user ID of the player that triggered the hint - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // user ID of the player that triggered the hint + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // user ID of the player that triggered the hint - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // user ID of the player that triggered the hint + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // user ID of the player that triggered the hint - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // user ID of the player that triggered the hint + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // user ID of the player that triggered the hint - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // user ID of the player that triggered the hint + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // entity id of the env_instructor_hint that fired the event - public int HintEntindex - { get => Accessor.GetInt32("hint_entindex"); set => Accessor.SetInt32("hint_entindex", value); } + // entity id of the env_instructor_hint that fired the event + public int HintEntindex { get => Accessor.GetInt32("hint_entindex"); set => Accessor.SetInt32("hint_entindex", value); } - // what to name the hint. For referencing it again later (e.g. a kill command for the hint instead of a timeout) - public string HintName - { get => Accessor.GetString("hint_name"); set => Accessor.SetString("hint_name", value); } + // what to name the hint. For referencing it again later (e.g. a kill command for the hint instead of a timeout) + public string HintName { get => Accessor.GetString("hint_name"); set => Accessor.SetString("hint_name", value); } - // type name so that messages of the same type will replace each other - public string HintReplaceKey - { get => Accessor.GetString("hint_replace_key"); set => Accessor.SetString("hint_replace_key", value); } + // type name so that messages of the same type will replace each other + public string HintReplaceKey { get => Accessor.GetString("hint_replace_key"); set => Accessor.SetString("hint_replace_key", value); } - // entity id that the hint should display at - public int HintTarget - { get => Accessor.GetInt32("hint_target"); set => Accessor.SetInt32("hint_target", value); } + // entity id that the hint should display at + public int HintTarget { get => Accessor.GetInt32("hint_target"); set => Accessor.SetInt32("hint_target", value); } - // playerslot of the activator - public int HintActivatorUserid - { get => Accessor.GetPlayerSlot("hint_activator_userid"); set => Accessor.SetPlayerSlot("hint_activator_userid", value); } + // playerslot of the activator + public int HintActivatorUserid { get => Accessor.GetPlayerSlot("hint_activator_userid"); set => Accessor.SetPlayerSlot("hint_activator_userid", value); } - // how long in seconds until the hint automatically times out, 0 = never - public short HintTimeout - { get => (short)Accessor.GetInt32("hint_timeout"); set => Accessor.SetInt32("hint_timeout", value); } + // how long in seconds until the hint automatically times out, 0 = never + public short HintTimeout { get => (short)Accessor.GetInt32("hint_timeout"); set => Accessor.SetInt32("hint_timeout", value); } - // the hint icon to use when the hint is onscreen. e.g. "icon_alert_red" - public string HintIconOnscreen - { get => Accessor.GetString("hint_icon_onscreen"); set => Accessor.SetString("hint_icon_onscreen", value); } + // the hint icon to use when the hint is onscreen. e.g. "icon_alert_red" + public string HintIconOnscreen { get => Accessor.GetString("hint_icon_onscreen"); set => Accessor.SetString("hint_icon_onscreen", value); } - // the hint icon to use when the hint is offscreen. e.g. "icon_alert" - public string HintIconOffscreen - { get => Accessor.GetString("hint_icon_offscreen"); set => Accessor.SetString("hint_icon_offscreen", value); } + // the hint icon to use when the hint is offscreen. e.g. "icon_alert" + public string HintIconOffscreen { get => Accessor.GetString("hint_icon_offscreen"); set => Accessor.SetString("hint_icon_offscreen", value); } - // the hint caption. e.g. "#ThisIsDangerous" - public string HintCaption - { get => Accessor.GetString("hint_caption"); set => Accessor.SetString("hint_caption", value); } + // the hint caption. e.g. "#ThisIsDangerous" + public string HintCaption { get => Accessor.GetString("hint_caption"); set => Accessor.SetString("hint_caption", value); } - // the hint caption that only the activator sees e.g. "#YouPushedItGood" - public string HintActivatorCaption - { get => Accessor.GetString("hint_activator_caption"); set => Accessor.SetString("hint_activator_caption", value); } + // the hint caption that only the activator sees e.g. "#YouPushedItGood" + public string HintActivatorCaption { get => Accessor.GetString("hint_activator_caption"); set => Accessor.SetString("hint_activator_caption", value); } - // the hint color in "r,g,b" format where each component is 0-255 - public string HintColor - { get => Accessor.GetString("hint_color"); set => Accessor.SetString("hint_color", value); } + // the hint color in "r,g,b" format where each component is 0-255 + public string HintColor { get => Accessor.GetString("hint_color"); set => Accessor.SetString("hint_color", value); } - // how far on the z axis to offset the hint from entity origin - public float HintIconOffset - { get => Accessor.GetFloat("hint_icon_offset"); set => Accessor.SetFloat("hint_icon_offset", value); } + // how far on the z axis to offset the hint from entity origin + public float HintIconOffset { get => Accessor.GetFloat("hint_icon_offset"); set => Accessor.SetFloat("hint_icon_offset", value); } - // range before the hint is culled - public float HintRange - { get => Accessor.GetFloat("hint_range"); set => Accessor.SetFloat("hint_range", value); } + // range before the hint is culled + public float HintRange { get => Accessor.GetFloat("hint_range"); set => Accessor.SetFloat("hint_range", value); } - // hint flags - public int HintFlags - { get => Accessor.GetInt32("hint_flags"); set => Accessor.SetInt32("hint_flags", value); } + // hint flags + public int HintFlags { get => Accessor.GetInt32("hint_flags"); set => Accessor.SetInt32("hint_flags", value); } - // bindings to use when use_binding is the onscreen icon - public string HintBinding - { get => Accessor.GetString("hint_binding"); set => Accessor.SetString("hint_binding", value); } + // bindings to use when use_binding is the onscreen icon + public string HintBinding { get => Accessor.GetString("hint_binding"); set => Accessor.SetString("hint_binding", value); } - // if false, the hint will dissappear if the target entity is invisible - public bool HintAllowNodrawTarget - { get => Accessor.GetBool("hint_allow_nodraw_target"); set => Accessor.SetBool("hint_allow_nodraw_target", value); } + // if false, the hint will dissappear if the target entity is invisible + public bool HintAllowNodrawTarget { get => Accessor.GetBool("hint_allow_nodraw_target"); set => Accessor.SetBool("hint_allow_nodraw_target", value); } - // if true, the hint will not show when outside the player view - public bool HintNooffscreen - { get => Accessor.GetBool("hint_nooffscreen"); set => Accessor.SetBool("hint_nooffscreen", value); } + // if true, the hint will not show when outside the player view + public bool HintNooffscreen { get => Accessor.GetBool("hint_nooffscreen"); set => Accessor.SetBool("hint_nooffscreen", value); } - // if true, the hint caption will show even if the hint is occluded - public bool HintForcecaption - { get => Accessor.GetBool("hint_forcecaption"); set => Accessor.SetBool("hint_forcecaption", value); } + // if true, the hint caption will show even if the hint is occluded + public bool HintForcecaption { get => Accessor.GetBool("hint_forcecaption"); set => Accessor.SetBool("hint_forcecaption", value); } - // if true, only the local player will see the hint - public bool HintLocalPlayerOnly - { get => Accessor.GetBool("hint_local_player_only"); set => Accessor.SetBool("hint_local_player_only", value); } + // if true, only the local player will see the hint + public bool HintLocalPlayerOnly { get => Accessor.GetBool("hint_local_player_only"); set => Accessor.SetBool("hint_local_player_only", value); } - // Game sound to play - public string HintStartSound - { get => Accessor.GetString("hint_start_sound"); set => Accessor.SetString("hint_start_sound", value); } + // Game sound to play + public string HintStartSound { get => Accessor.GetString("hint_start_sound"); set => Accessor.SetString("hint_start_sound", value); } - // Path for Panorama layout file - public string HintLayoutfile - { get => Accessor.GetString("hint_layoutfile"); set => Accessor.SetString("hint_layoutfile", value); } + // Path for Panorama layout file + public string HintLayoutfile { get => Accessor.GetString("hint_layoutfile"); set => Accessor.SetString("hint_layoutfile", value); } - // Attachment type for the Panorama panel - public short HintVrPanelType - { get => (short)Accessor.GetInt32("hint_vr_panel_type"); set => Accessor.SetInt32("hint_vr_panel_type", value); } + // Attachment type for the Panorama panel + public short HintVrPanelType { get => (short)Accessor.GetInt32("hint_vr_panel_type"); set => Accessor.SetInt32("hint_vr_panel_type", value); } - // Height offset for attached panels - public float HintVrHeightOffset - { get => Accessor.GetFloat("hint_vr_height_offset"); set => Accessor.SetFloat("hint_vr_height_offset", value); } + // Height offset for attached panels + public float HintVrHeightOffset { get => Accessor.GetFloat("hint_vr_height_offset"); set => Accessor.SetFloat("hint_vr_height_offset", value); } - // offset for attached panels - public float HintVrOffsetX - { get => Accessor.GetFloat("hint_vr_offset_x"); set => Accessor.SetFloat("hint_vr_offset_x", value); } + // offset for attached panels + public float HintVrOffsetX { get => Accessor.GetFloat("hint_vr_offset_x"); set => Accessor.SetFloat("hint_vr_offset_x", value); } - // offset for attached panels - public float HintVrOffsetY - { get => Accessor.GetFloat("hint_vr_offset_y"); set => Accessor.SetFloat("hint_vr_offset_y", value); } + // offset for attached panels + public float HintVrOffsetY { get => Accessor.GetFloat("hint_vr_offset_y"); set => Accessor.SetFloat("hint_vr_offset_y", value); } - // offset for attached panels - public float HintVrOffsetZ - { get => Accessor.GetFloat("hint_vr_offset_z"); set => Accessor.SetFloat("hint_vr_offset_z", value); } + // offset for attached panels + public float HintVrOffsetZ { get => Accessor.GetFloat("hint_vr_offset_z"); set => Accessor.SetFloat("hint_vr_offset_z", value); } - // gamepad bindings to use when use_binding is the onscreen icon - public string HintGamepadBinding - { get => Accessor.GetString("hint_gamepad_binding"); set => Accessor.SetString("hint_gamepad_binding", value); } + // gamepad bindings to use when use_binding is the onscreen icon + public string HintGamepadBinding { get => Accessor.GetString("hint_gamepad_binding"); set => Accessor.SetString("hint_gamepad_binding", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorServerHintStopImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorServerHintStopImpl.cs index cc0de4a8f..74cf34a3d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorServerHintStopImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorServerHintStopImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,15 +11,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventInstructorServerHintStopImpl : GameEvent, EventInstructorServerHintStop { - public EventInstructorServerHintStopImpl(nint address) : base(address) - { - } + public EventInstructorServerHintStopImpl( nint address ) : base(address) + { + } - // The hint to stop. Will stop ALL hints with this name - public string HintName - { get => Accessor.GetString("hint_name"); set => Accessor.SetString("hint_name", value); } + // The hint to stop. Will stop ALL hints with this name + public string HintName { get => Accessor.GetString("hint_name"); set => Accessor.SetString("hint_name", value); } - // entity id of the env_instructor_hint that fired the event - public int HintEntindex - { get => Accessor.GetInt32("hint_entindex"); set => Accessor.SetInt32("hint_entindex", value); } + // entity id of the env_instructor_hint that fired the event + public int HintEntindex { get => Accessor.GetInt32("hint_entindex"); set => Accessor.SetInt32("hint_entindex", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorStartLessonImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorStartLessonImpl.cs index 1442d4d7e..066b689c2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorStartLessonImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInstructorStartLessonImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,40 +12,31 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventInstructorStartLessonImpl : GameEvent, EventInstructorStartLesson { - public EventInstructorStartLessonImpl(nint address) : base(address) - { - } + public EventInstructorStartLessonImpl( nint address ) : base(address) + { + } - // The player who this lesson is intended for - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // The player who this lesson is intended for + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // The player who this lesson is intended for - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // The player who this lesson is intended for + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // The player who this lesson is intended for - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // The player who this lesson is intended for + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // The player who this lesson is intended for - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // The player who this lesson is intended for + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // Name of the lesson to start. Must match instructor_lesson.txt - public string HintName - { get => Accessor.GetString("hint_name"); set => Accessor.SetString("hint_name", value); } + // Name of the lesson to start. Must match instructor_lesson.txt + public string HintName { get => Accessor.GetString("hint_name"); set => Accessor.SetString("hint_name", value); } - // entity id that the hint should display at. Leave empty if controller target - public int HintTarget - { get => Accessor.GetInt32("hint_target"); set => Accessor.SetInt32("hint_target", value); } + // entity id that the hint should display at. Leave empty if controller target + public int HintTarget { get => Accessor.GetInt32("hint_target"); set => Accessor.SetInt32("hint_target", value); } - public byte VrMovementType - { get => (byte)Accessor.GetInt32("vr_movement_type"); set => Accessor.SetInt32("vr_movement_type", value); } + public byte VrMovementType { get => (byte)Accessor.GetInt32("vr_movement_type"); set => Accessor.SetInt32("vr_movement_type", value); } - public bool VrSingleController - { get => Accessor.GetBool("vr_single_controller"); set => Accessor.SetBool("vr_single_controller", value); } + public bool VrSingleController { get => Accessor.GetBool("vr_single_controller"); set => Accessor.SetBool("vr_single_controller", value); } - public byte VrControllerType - { get => (byte)Accessor.GetInt32("vr_controller_type"); set => Accessor.SetInt32("vr_controller_type", value); } + public byte VrControllerType { get => (byte)Accessor.GetInt32("vr_controller_type"); set => Accessor.SetInt32("vr_controller_type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInventoryUpdatedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInventoryUpdatedImpl.cs index c8d9b7ee5..d5e5ef20c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInventoryUpdatedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventInventoryUpdatedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,13 +10,11 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventInventoryUpdatedImpl : GameEvent, EventInventoryUpdated { - public EventInventoryUpdatedImpl(nint address) : base(address) - { - } + public EventInventoryUpdatedImpl( nint address ) : base(address) + { + } - public short ItemDef - { get => (short)Accessor.GetInt32("itemdef"); set => Accessor.SetInt32("itemdef", value); } + public short ItemDef { get => (short)Accessor.GetInt32("itemdef"); set => Accessor.SetInt32("itemdef", value); } - public int Itemid - { get => Accessor.GetInt32("itemid"); set => Accessor.SetInt32("itemid", value); } + public int Itemid { get => Accessor.GetInt32("itemid"); set => Accessor.SetInt32("itemid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemEquipImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemEquipImpl.cs index bb3c11a6e..f592dd64b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemEquipImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemEquipImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,44 +12,32 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventItemEquipImpl : GameEvent, EventItemEquip { - public EventItemEquipImpl(nint address) : base(address) - { - } + public EventItemEquipImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' - public string Item - { get => Accessor.GetString("item"); set => Accessor.SetString("item", value); } + // either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' + public string Item { get => Accessor.GetString("item"); set => Accessor.SetString("item", value); } - public int DefIndex - { get => Accessor.GetInt32("defindex"); set => Accessor.SetInt32("defindex", value); } + public int DefIndex { get => Accessor.GetInt32("defindex"); set => Accessor.SetInt32("defindex", value); } - public bool CanZoom - { get => Accessor.GetBool("canzoom"); set => Accessor.SetBool("canzoom", value); } + public bool CanZoom { get => Accessor.GetBool("canzoom"); set => Accessor.SetBool("canzoom", value); } - public bool HasSilencer - { get => Accessor.GetBool("hassilencer"); set => Accessor.SetBool("hassilencer", value); } + public bool HasSilencer { get => Accessor.GetBool("hassilencer"); set => Accessor.SetBool("hassilencer", value); } - public bool IsSilenced - { get => Accessor.GetBool("issilenced"); set => Accessor.SetBool("issilenced", value); } + public bool IsSilenced { get => Accessor.GetBool("issilenced"); set => Accessor.SetBool("issilenced", value); } - public bool HasTracers - { get => Accessor.GetBool("hastracers"); set => Accessor.SetBool("hastracers", value); } + public bool HasTracers { get => Accessor.GetBool("hastracers"); set => Accessor.SetBool("hastracers", value); } - public short WepType - { get => (short)Accessor.GetInt32("weptype"); set => Accessor.SetInt32("weptype", value); } + public short WepType { get => (short)Accessor.GetInt32("weptype"); set => Accessor.SetInt32("weptype", value); } - public bool IsPainted - { get => Accessor.GetBool("ispainted"); set => Accessor.SetBool("ispainted", value); } + public bool IsPainted { get => Accessor.GetBool("ispainted"); set => Accessor.SetBool("ispainted", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPickupFailedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPickupFailedImpl.cs index 97285456c..98f44fcdb 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPickupFailedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPickupFailedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,28 +12,21 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventItemPickupFailedImpl : GameEvent, EventItemPickupFailed { - public EventItemPickupFailedImpl(nint address) : base(address) - { - } + public EventItemPickupFailedImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public string Item - { get => Accessor.GetString("item"); set => Accessor.SetString("item", value); } + public string Item { get => Accessor.GetString("item"); set => Accessor.SetString("item", value); } - public short Reason - { get => (short)Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } + public short Reason { get => (short)Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } - public short Limit - { get => (short)Accessor.GetInt32("limit"); set => Accessor.SetInt32("limit", value); } + public short Limit { get => (short)Accessor.GetInt32("limit"); set => Accessor.SetInt32("limit", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPickupImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPickupImpl.cs index 6efdf0b1c..d5d9ec3b2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPickupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPickupImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,29 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventItemPickupImpl : GameEvent, EventItemPickup { - public EventItemPickupImpl(nint address) : base(address) - { - } + public EventItemPickupImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' - public string Item - { get => Accessor.GetString("item"); set => Accessor.SetString("item", value); } + // either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' + public string Item { get => Accessor.GetString("item"); set => Accessor.SetString("item", value); } - public bool Silent - { get => Accessor.GetBool("silent"); set => Accessor.SetBool("silent", value); } + public bool Silent { get => Accessor.GetBool("silent"); set => Accessor.SetBool("silent", value); } - public int DefIndex - { get => Accessor.GetInt32("defindex"); set => Accessor.SetInt32("defindex", value); } + public int DefIndex { get => Accessor.GetInt32("defindex"); set => Accessor.SetInt32("defindex", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPickupSlerpImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPickupSlerpImpl.cs index 0bcebab89..337800e35 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPickupSlerpImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPickupSlerpImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,25 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventItemPickupSlerpImpl : GameEvent, EventItemPickupSlerp { - public EventItemPickupSlerpImpl(nint address) : base(address) - { - } + public EventItemPickupSlerpImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short Index - { get => (short)Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } + public short Index { get => (short)Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } - public short Behavior - { get => (short)Accessor.GetInt32("behavior"); set => Accessor.SetInt32("behavior", value); } + public short Behavior { get => (short)Accessor.GetInt32("behavior"); set => Accessor.SetInt32("behavior", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPurchaseImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPurchaseImpl.cs index fde4fb871..ac5a7a9ee 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPurchaseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemPurchaseImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,28 +12,21 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventItemPurchaseImpl : GameEvent, EventItemPurchase { - public EventItemPurchaseImpl(nint address) : base(address) - { - } + public EventItemPurchaseImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short Team - { get => (short)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } + public short Team { get => (short)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } - public short LoadOut - { get => (short)Accessor.GetInt32("loadout"); set => Accessor.SetInt32("loadout", value); } + public short LoadOut { get => (short)Accessor.GetInt32("loadout"); set => Accessor.SetInt32("loadout", value); } - public string Weapon - { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } + public string Weapon { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemRemoveImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemRemoveImpl.cs index 91d2ac5dd..4fe76181d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemRemoveImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemRemoveImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,26 +12,20 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventItemRemoveImpl : GameEvent, EventItemRemove { - public EventItemRemoveImpl(nint address) : base(address) - { - } + public EventItemRemoveImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' - public string Item - { get => Accessor.GetString("item"); set => Accessor.SetString("item", value); } + // either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' + public string Item { get => Accessor.GetString("item"); set => Accessor.SetString("item", value); } - public int DefIndex - { get => Accessor.GetInt32("defindex"); set => Accessor.SetInt32("defindex", value); } + public int DefIndex { get => Accessor.GetInt32("defindex"); set => Accessor.SetInt32("defindex", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemSchemaInitializedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemSchemaInitializedImpl.cs index d609ccf1c..5be6754a8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemSchemaInitializedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventItemSchemaInitializedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventItemSchemaInitializedImpl : GameEvent, EventItemSchemaInitialized { - public EventItemSchemaInitializedImpl(nint address) : base(address) - { - } + public EventItemSchemaInitializedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventJointeamFailedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventJointeamFailedImpl.cs index f90b1eabe..c4a08ad2f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventJointeamFailedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventJointeamFailedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,23 +12,18 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventJointeamFailedImpl : GameEvent, EventJointeamFailed { - public EventJointeamFailedImpl(nint address) : base(address) - { - } + public EventJointeamFailedImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // 0 = team_full - public byte Reason - { get => (byte)Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } + // 0 = team_full + public byte Reason { get => (byte)Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLocalPlayerControllerTeamImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLocalPlayerControllerTeamImpl.cs index 594e3a6b4..e0213c13c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLocalPlayerControllerTeamImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLocalPlayerControllerTeamImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventLocalPlayerControllerTeamImpl : GameEvent, EventLocalPlayerControllerTeam { - public EventLocalPlayerControllerTeamImpl(nint address) : base(address) - { - } + public EventLocalPlayerControllerTeamImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLocalPlayerPawnChangedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLocalPlayerPawnChangedImpl.cs index 387a97c0d..c4e223cc0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLocalPlayerPawnChangedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLocalPlayerPawnChangedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventLocalPlayerPawnChangedImpl : GameEvent, EventLocalPlayerPawnChanged { - public EventLocalPlayerPawnChangedImpl(nint address) : base(address) - { - } + public EventLocalPlayerPawnChangedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLocalPlayerTeamImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLocalPlayerTeamImpl.cs index c5cb0b602..4e3ff98c5 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLocalPlayerTeamImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLocalPlayerTeamImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventLocalPlayerTeamImpl : GameEvent, EventLocalPlayerTeam { - public EventLocalPlayerTeamImpl(nint address) : base(address) - { - } + public EventLocalPlayerTeamImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLootCrateOpenedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLootCrateOpenedImpl.cs index 205829fc8..8f4f19d87 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLootCrateOpenedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLootCrateOpenedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventLootCrateOpenedImpl : GameEvent, EventLootCrateOpened { - public EventLootCrateOpenedImpl(nint address) : base(address) - { - } + public EventLootCrateOpenedImpl( nint address ) : base(address) + { + } - // player entindex - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player entindex + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player entindex - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player entindex + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player entindex - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player entindex + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player entindex - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player entindex + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // type of crate (metal, wood, or paradrop) - public string Type - { get => Accessor.GetString("type"); set => Accessor.SetString("type", value); } + // type of crate (metal, wood, or paradrop) + public string Type { get => Accessor.GetString("type"); set => Accessor.SetString("type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLootCrateVisibleImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLootCrateVisibleImpl.cs index 4848b326a..97eb234ba 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLootCrateVisibleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventLootCrateVisibleImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,25 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventLootCrateVisibleImpl : GameEvent, EventLootCrateVisible { - public EventLootCrateVisibleImpl(nint address) : base(address) - { - } + public EventLootCrateVisibleImpl( nint address ) : base(address) + { + } - // player entindex - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player entindex + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player entindex - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player entindex + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player entindex - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player entindex + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player entindex - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player entindex + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // crate entindex - public short Subject - { get => (short)Accessor.GetInt32("subject"); set => Accessor.SetInt32("subject", value); } + // crate entindex + public short Subject { get => (short)Accessor.GetInt32("subject"); set => Accessor.SetInt32("subject", value); } - // type of crate (metal, wood, or paradrop) - public string Type - { get => Accessor.GetString("type"); set => Accessor.SetString("type", value); } + // type of crate (metal, wood, or paradrop) + public string Type { get => Accessor.GetString("type"); set => Accessor.SetString("type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMapShutdownImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMapShutdownImpl.cs index 90d3017f6..c45a9e348 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMapShutdownImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMapShutdownImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventMapShutdownImpl : GameEvent, EventMapShutdown { - public EventMapShutdownImpl(nint address) : base(address) - { - } + public EventMapShutdownImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMapTransitionImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMapTransitionImpl.cs index be58e5691..b2b3c51f2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMapTransitionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMapTransitionImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventMapTransitionImpl : GameEvent, EventMapTransition { - public EventMapTransitionImpl(nint address) : base(address) - { - } + public EventMapTransitionImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMatchEndConditionsImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMatchEndConditionsImpl.cs index 46637cd5a..98d7f1225 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMatchEndConditionsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMatchEndConditionsImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +10,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventMatchEndConditionsImpl : GameEvent, EventMatchEndConditions { - public EventMatchEndConditionsImpl(nint address) : base(address) - { - } + public EventMatchEndConditionsImpl( nint address ) : base(address) + { + } - public int FragS - { get => Accessor.GetInt32("frags"); set => Accessor.SetInt32("frags", value); } + public int FragS { get => Accessor.GetInt32("frags"); set => Accessor.SetInt32("frags", value); } - public int MaxRounds - { get => Accessor.GetInt32("max_rounds"); set => Accessor.SetInt32("max_rounds", value); } + public int MaxRounds { get => Accessor.GetInt32("max_rounds"); set => Accessor.SetInt32("max_rounds", value); } - public int WinRounds - { get => Accessor.GetInt32("win_rounds"); set => Accessor.SetInt32("win_rounds", value); } + public int WinRounds { get => Accessor.GetInt32("win_rounds"); set => Accessor.SetInt32("win_rounds", value); } - public int Time - { get => Accessor.GetInt32("time"); set => Accessor.SetInt32("time", value); } + public int Time { get => Accessor.GetInt32("time"); set => Accessor.SetInt32("time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMaterialDefaultCompleteImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMaterialDefaultCompleteImpl.cs index 3a366ff3b..c9b6244b6 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMaterialDefaultCompleteImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMaterialDefaultCompleteImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventMaterialDefaultCompleteImpl : GameEvent, EventMaterialDefaultComplete { - public EventMaterialDefaultCompleteImpl(nint address) : base(address) - { - } + public EventMaterialDefaultCompleteImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMbInputLockCancelImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMbInputLockCancelImpl.cs index 5e6d9bc54..5cfff0b91 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMbInputLockCancelImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMbInputLockCancelImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventMbInputLockCancelImpl : GameEvent, EventMbInputLockCancel { - public EventMbInputLockCancelImpl(nint address) : base(address) - { - } + public EventMbInputLockCancelImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMbInputLockSuccessImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMbInputLockSuccessImpl.cs index 615bd66cc..7b0705d9c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMbInputLockSuccessImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMbInputLockSuccessImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventMbInputLockSuccessImpl : GameEvent, EventMbInputLockSuccess { - public EventMbInputLockSuccessImpl(nint address) : base(address) - { - } + public EventMbInputLockSuccessImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMolotovDetonateImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMolotovDetonateImpl.cs index a3cd8e14d..e1d16d1bd 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMolotovDetonateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventMolotovDetonateImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,28 +12,21 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventMolotovDetonateImpl : GameEvent, EventMolotovDetonate { - public EventMolotovDetonateImpl(nint address) : base(address) - { - } + public EventMolotovDetonateImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventNavBlockedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventNavBlockedImpl.cs index 37c1b63b8..bd3c95f5d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventNavBlockedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventNavBlockedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,13 +10,11 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventNavBlockedImpl : GameEvent, EventNavBlocked { - public EventNavBlockedImpl(nint address) : base(address) - { - } + public EventNavBlockedImpl( nint address ) : base(address) + { + } - public int Area - { get => Accessor.GetInt32("area"); set => Accessor.SetInt32("area", value); } + public int Area { get => Accessor.GetInt32("area"); set => Accessor.SetInt32("area", value); } - public bool Blocked - { get => Accessor.GetBool("blocked"); set => Accessor.SetBool("blocked", value); } + public bool Blocked { get => Accessor.GetBool("blocked"); set => Accessor.SetBool("blocked", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventNavGenerateImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventNavGenerateImpl.cs index 7f5b80bda..6562ff403 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventNavGenerateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventNavGenerateImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventNavGenerateImpl : GameEvent, EventNavGenerate { - public EventNavGenerateImpl(nint address) : base(address) - { - } + public EventNavGenerateImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventNextlevelChangedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventNextlevelChangedImpl.cs index d53088d2c..8e1b41aa2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventNextlevelChangedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventNextlevelChangedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,16 +11,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventNextlevelChangedImpl : GameEvent, EventNextlevelChanged { - public EventNextlevelChangedImpl(nint address) : base(address) - { - } + public EventNextlevelChangedImpl( nint address ) : base(address) + { + } - public string NextLevel - { get => Accessor.GetString("nextlevel"); set => Accessor.SetString("nextlevel", value); } + public string NextLevel { get => Accessor.GetString("nextlevel"); set => Accessor.SetString("nextlevel", value); } - public string MapGroup - { get => Accessor.GetString("mapgroup"); set => Accessor.SetString("mapgroup", value); } + public string MapGroup { get => Accessor.GetString("mapgroup"); set => Accessor.SetString("mapgroup", value); } - public string SkirmishMode - { get => Accessor.GetString("skirmishmode"); set => Accessor.SetString("skirmishmode", value); } + public string SkirmishMode { get => Accessor.GetString("skirmishmode"); set => Accessor.SetString("skirmishmode", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventOpenCrateInstrImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventOpenCrateInstrImpl.cs index 2d05d08f8..f47ecc62c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventOpenCrateInstrImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventOpenCrateInstrImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,25 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventOpenCrateInstrImpl : GameEvent, EventOpenCrateInstr { - public EventOpenCrateInstrImpl(nint address) : base(address) - { - } + public EventOpenCrateInstrImpl( nint address ) : base(address) + { + } - // player entindex - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player entindex + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player entindex - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player entindex + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player entindex - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player entindex + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player entindex - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player entindex + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // crate entindex - public short Subject - { get => (short)Accessor.GetInt32("subject"); set => Accessor.SetInt32("subject", value); } + // crate entindex + public short Subject { get => (short)Accessor.GetInt32("subject"); set => Accessor.SetInt32("subject", value); } - // type of crate (metal, wood, or paradrop) - public string Type - { get => Accessor.GetString("type"); set => Accessor.SetString("type", value); } + // type of crate (metal, wood, or paradrop) + public string Type { get => Accessor.GetString("type"); set => Accessor.SetString("type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventOtherDeathImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventOtherDeathImpl.cs index 6b4d463a7..46a5fffdd 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventOtherDeathImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventOtherDeathImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,54 +10,42 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventOtherDeathImpl : GameEvent, EventOtherDeath { - public EventOtherDeathImpl(nint address) : base(address) - { - } + public EventOtherDeathImpl( nint address ) : base(address) + { + } - // other entity ID who died - public short OtherID - { get => (short)Accessor.GetInt32("otherid"); set => Accessor.SetInt32("otherid", value); } + // other entity ID who died + public short OtherID { get => (short)Accessor.GetInt32("otherid"); set => Accessor.SetInt32("otherid", value); } - // other entity type - public string OtherType - { get => Accessor.GetString("othertype"); set => Accessor.SetString("othertype", value); } + // other entity type + public string OtherType { get => Accessor.GetString("othertype"); set => Accessor.SetString("othertype", value); } - // user ID who killed - public short Attacker - { get => (short)Accessor.GetInt32("attacker"); set => Accessor.SetInt32("attacker", value); } + // user ID who killed + public short Attacker { get => (short)Accessor.GetInt32("attacker"); set => Accessor.SetInt32("attacker", value); } - // weapon name killer used - public string Weapon - { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } + // weapon name killer used + public string Weapon { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } - // inventory item id of weapon killer used - public string WeaponItemid - { get => Accessor.GetString("weapon_itemid"); set => Accessor.SetString("weapon_itemid", value); } + // inventory item id of weapon killer used + public string WeaponItemid { get => Accessor.GetString("weapon_itemid"); set => Accessor.SetString("weapon_itemid", value); } - // faux item id of weapon killer used - public string WeaponFauxitemid - { get => Accessor.GetString("weapon_fauxitemid"); set => Accessor.SetString("weapon_fauxitemid", value); } + // faux item id of weapon killer used + public string WeaponFauxitemid { get => Accessor.GetString("weapon_fauxitemid"); set => Accessor.SetString("weapon_fauxitemid", value); } - public string WeaponOriginalownerXuid - { get => Accessor.GetString("weapon_originalowner_xuid"); set => Accessor.SetString("weapon_originalowner_xuid", value); } + public string WeaponOriginalownerXuid { get => Accessor.GetString("weapon_originalowner_xuid"); set => Accessor.SetString("weapon_originalowner_xuid", value); } - // singals a headshot - public bool Headshot - { get => Accessor.GetBool("headshot"); set => Accessor.SetBool("headshot", value); } + // singals a headshot + public bool Headshot { get => Accessor.GetBool("headshot"); set => Accessor.SetBool("headshot", value); } - // number of objects shot penetrated before killing target - public short Penetrated - { get => (short)Accessor.GetInt32("penetrated"); set => Accessor.SetInt32("penetrated", value); } + // number of objects shot penetrated before killing target + public short Penetrated { get => (short)Accessor.GetInt32("penetrated"); set => Accessor.SetInt32("penetrated", value); } - // kill happened without a scope, used for death notice icon - public bool NoScope - { get => Accessor.GetBool("noscope"); set => Accessor.SetBool("noscope", value); } + // kill happened without a scope, used for death notice icon + public bool NoScope { get => Accessor.GetBool("noscope"); set => Accessor.SetBool("noscope", value); } - // hitscan weapon went through smoke grenade - public bool ThruSmoke - { get => Accessor.GetBool("thrusmoke"); set => Accessor.SetBool("thrusmoke", value); } + // hitscan weapon went through smoke grenade + public bool ThruSmoke { get => Accessor.GetBool("thrusmoke"); set => Accessor.SetBool("thrusmoke", value); } - // attacker was blind from flashbang - public bool AttackerBlind - { get => Accessor.GetBool("attackerblind"); set => Accessor.SetBool("attackerblind", value); } + // attacker was blind from flashbang + public bool AttackerBlind { get => Accessor.GetBool("attackerblind"); set => Accessor.SetBool("attackerblind", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventParachuteDeployImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventParachuteDeployImpl.cs index 0bc185254..e385fa138 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventParachuteDeployImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventParachuteDeployImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventParachuteDeployImpl : GameEvent, EventParachuteDeploy { - public EventParachuteDeployImpl(nint address) : base(address) - { - } + public EventParachuteDeployImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventParachutePickupImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventParachutePickupImpl.cs index 9b8308a37..1c70156a5 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventParachutePickupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventParachutePickupImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventParachutePickupImpl : GameEvent, EventParachutePickup { - public EventParachutePickupImpl(nint address) : base(address) - { - } + public EventParachutePickupImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPhysgunPickupImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPhysgunPickupImpl.cs index 7a2b3d3af..28a19dc9f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPhysgunPickupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPhysgunPickupImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,11 +10,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPhysgunPickupImpl : GameEvent, EventPhysgunPickup { - public EventPhysgunPickupImpl(nint address) : base(address) - { - } + public EventPhysgunPickupImpl( nint address ) : base(address) + { + } - // entity picked up - public nint Target - { get => Accessor.GetPtr("target"); set => Accessor.SetPtr("target", value); } + // entity picked up + public nint Target { get => Accessor.GetPtr("target"); set => Accessor.SetPtr("target", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerActivateImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerActivateImpl.cs index def485805..d54f2e67e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerActivateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerActivateImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,23 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerActivateImpl : GameEvent, EventPlayerActivate { - public EventPlayerActivateImpl(nint address) : base(address) - { - } + public EventPlayerActivateImpl( nint address ) : base(address) + { + } - // user ID on server - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // user ID on server + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // user ID on server - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // user ID on server + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // user ID on server - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // user ID on server + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // user ID on server - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // user ID on server + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerAvengedTeammateImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerAvengedTeammateImpl.cs index c951b0c58..a1a798efd 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerAvengedTeammateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerAvengedTeammateImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,13 +10,11 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerAvengedTeammateImpl : GameEvent, EventPlayerAvengedTeammate { - public EventPlayerAvengedTeammateImpl(nint address) : base(address) - { - } + public EventPlayerAvengedTeammateImpl( nint address ) : base(address) + { + } - public int AvengerId - { get => Accessor.GetPlayerSlot("avenger_id"); set => Accessor.SetPlayerSlot("avenger_id", value); } + public int AvengerId { get => Accessor.GetPlayerSlot("avenger_id"); set => Accessor.SetPlayerSlot("avenger_id", value); } - public int AvengedPlayerId - { get => Accessor.GetPlayerSlot("avenged_player_id"); set => Accessor.SetPlayerSlot("avenged_player_id", value); } + public int AvengedPlayerId { get => Accessor.GetPlayerSlot("avenged_player_id"); set => Accessor.SetPlayerSlot("avenged_player_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerBlindImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerBlindImpl.cs index d1a79083c..52046fcc2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerBlindImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerBlindImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,30 +12,23 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerBlindImpl : GameEvent, EventPlayerBlind { - public EventPlayerBlindImpl(nint address) : base(address) - { - } + public EventPlayerBlindImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // user ID who threw the flash - public int Attacker - { get => Accessor.GetPlayerSlot("attacker"); set => Accessor.SetPlayerSlot("attacker", value); } + // user ID who threw the flash + public int Attacker { get => Accessor.GetPlayerSlot("attacker"); set => Accessor.SetPlayerSlot("attacker", value); } - // the flashbang going off - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + // the flashbang going off + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - public float BlindDuration - { get => Accessor.GetFloat("blind_duration"); set => Accessor.SetFloat("blind_duration", value); } + public float BlindDuration { get => Accessor.GetFloat("blind_duration"); set => Accessor.SetFloat("blind_duration", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerChangenameImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerChangenameImpl.cs index 22b94791e..c3c41e426 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerChangenameImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerChangenameImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,25 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerChangenameImpl : GameEvent, EventPlayerChangename { - public EventPlayerChangenameImpl(nint address) : base(address) - { - } + public EventPlayerChangenameImpl( nint address ) : base(address) + { + } - // user ID on server - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // user ID on server + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // user ID on server - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // user ID on server + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // user ID on server - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // user ID on server + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // user ID on server - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // user ID on server + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // players old (current) name - public string OldName - { get => Accessor.GetString("oldname"); set => Accessor.SetString("oldname", value); } + // players old (current) name + public string OldName { get => Accessor.GetString("oldname"); set => Accessor.SetString("oldname", value); } - // players new name - public string NewName - { get => Accessor.GetString("newname"); set => Accessor.SetString("newname", value); } + // players new name + public string NewName { get => Accessor.GetString("newname"); set => Accessor.SetString("newname", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerChatImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerChatImpl.cs index 0e9fb7b4f..a5aef27e8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerChatImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerChatImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,35 +13,28 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerChatImpl : GameEvent, EventPlayerChat { - public EventPlayerChatImpl(nint address) : base(address) - { - } + public EventPlayerChatImpl( nint address ) : base(address) + { + } - // true if team only chat - public bool TeamOnly - { get => Accessor.GetBool("teamonly"); set => Accessor.SetBool("teamonly", value); } + // true if team only chat + public bool TeamOnly { get => Accessor.GetBool("teamonly"); set => Accessor.SetBool("teamonly", value); } - // chatting player - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // chatting player + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // chatting player - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // chatting player + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // chatting player - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // chatting player + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // chatting player - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // chatting player + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // chatting player ID - public short Playerid - { get => (short)Accessor.GetInt32("playerid"); set => Accessor.SetInt32("playerid", value); } + // chatting player ID + public short Playerid { get => (short)Accessor.GetInt32("playerid"); set => Accessor.SetInt32("playerid", value); } - // chat text - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + // chat text + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerConnectFullImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerConnectFullImpl.cs index d77587fbb..0c2ca85b0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerConnectFullImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerConnectFullImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,23 +13,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerConnectFullImpl : GameEvent, EventPlayerConnectFull { - public EventPlayerConnectFullImpl(nint address) : base(address) - { - } + public EventPlayerConnectFullImpl( nint address ) : base(address) + { + } - // user ID on server (unique on server) - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // user ID on server (unique on server) + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // user ID on server (unique on server) - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // user ID on server (unique on server) + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // user ID on server (unique on server) - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // user ID on server (unique on server) + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // user ID on server (unique on server) - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // user ID on server (unique on server) + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerConnectImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerConnectImpl.cs index 63b4cf3cb..9a0bd21f7 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerConnectImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerConnectImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,38 +13,30 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerConnectImpl : GameEvent, EventPlayerConnect { - public EventPlayerConnectImpl(nint address) : base(address) - { - } + public EventPlayerConnectImpl( nint address ) : base(address) + { + } - // player name - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + // player name + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - // user ID on server (unique on server) - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // user ID on server (unique on server) + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // user ID on server (unique on server) - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // user ID on server (unique on server) + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // user ID on server (unique on server) - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // user ID on server (unique on server) + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // user ID on server (unique on server) - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // user ID on server (unique on server) + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // player network (i.e steam) id - public string NetworkID - { get => Accessor.GetString("networkid"); set => Accessor.SetString("networkid", value); } + // player network (i.e steam) id + public string NetworkID { get => Accessor.GetString("networkid"); set => Accessor.SetString("networkid", value); } - // steam id - public ulong XuID - { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } + // steam id + public ulong XuID { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } - public bool Bot - { get => Accessor.GetBool("bot"); set => Accessor.SetBool("bot", value); } + public bool Bot { get => Accessor.GetBool("bot"); set => Accessor.SetBool("bot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerDeathImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerDeathImpl.cs index e42325e5c..461088ec6 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerDeathImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerDeathImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,106 +13,81 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerDeathImpl : GameEvent, EventPlayerDeath { - public EventPlayerDeathImpl(nint address) : base(address) - { - } + public EventPlayerDeathImpl( nint address ) : base(address) + { + } - // user ID who died - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // user ID who died + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // user ID who died - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // user ID who died + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // user ID who died - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // user ID who died + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // user ID who died - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // user ID who died + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // user ID who killed - public int Attacker - { get => Accessor.GetPlayerSlot("attacker"); set => Accessor.SetPlayerSlot("attacker", value); } + // user ID who killed + public int Attacker { get => Accessor.GetPlayerSlot("attacker"); set => Accessor.SetPlayerSlot("attacker", value); } - // player who assisted in the kill - public int Assister - { get => Accessor.GetPlayerSlot("assister"); set => Accessor.SetPlayerSlot("assister", value); } + // player who assisted in the kill + public int Assister { get => Accessor.GetPlayerSlot("assister"); set => Accessor.SetPlayerSlot("assister", value); } - // assister helped with a flash - public bool AssistedFlash - { get => Accessor.GetBool("assistedflash"); set => Accessor.SetBool("assistedflash", value); } + // assister helped with a flash + public bool AssistedFlash { get => Accessor.GetBool("assistedflash"); set => Accessor.SetBool("assistedflash", value); } - // weapon name killer used - public string Weapon - { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } + // weapon name killer used + public string Weapon { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } - // inventory item id of weapon killer used - public string WeaponItemid - { get => Accessor.GetString("weapon_itemid"); set => Accessor.SetString("weapon_itemid", value); } + // inventory item id of weapon killer used + public string WeaponItemid { get => Accessor.GetString("weapon_itemid"); set => Accessor.SetString("weapon_itemid", value); } - // faux item id of weapon killer used - public string WeaponFauxitemid - { get => Accessor.GetString("weapon_fauxitemid"); set => Accessor.SetString("weapon_fauxitemid", value); } + // faux item id of weapon killer used + public string WeaponFauxitemid { get => Accessor.GetString("weapon_fauxitemid"); set => Accessor.SetString("weapon_fauxitemid", value); } - public string WeaponOriginalownerXuid - { get => Accessor.GetString("weapon_originalowner_xuid"); set => Accessor.SetString("weapon_originalowner_xuid", value); } + public string WeaponOriginalownerXuid { get => Accessor.GetString("weapon_originalowner_xuid"); set => Accessor.SetString("weapon_originalowner_xuid", value); } - // singals a headshot - public bool Headshot - { get => Accessor.GetBool("headshot"); set => Accessor.SetBool("headshot", value); } + // singals a headshot + public bool Headshot { get => Accessor.GetBool("headshot"); set => Accessor.SetBool("headshot", value); } - // did killer dominate victim with this kill - public short Dominated - { get => (short)Accessor.GetInt32("dominated"); set => Accessor.SetInt32("dominated", value); } + // did killer dominate victim with this kill + public short Dominated { get => (short)Accessor.GetInt32("dominated"); set => Accessor.SetInt32("dominated", value); } - // did killer get revenge on victim with this kill - public short Revenge - { get => (short)Accessor.GetInt32("revenge"); set => Accessor.SetInt32("revenge", value); } + // did killer get revenge on victim with this kill + public short Revenge { get => (short)Accessor.GetInt32("revenge"); set => Accessor.SetInt32("revenge", value); } - // is the kill resulting in squad wipe - public short Wipe - { get => (short)Accessor.GetInt32("wipe"); set => Accessor.SetInt32("wipe", value); } + // is the kill resulting in squad wipe + public short Wipe { get => (short)Accessor.GetInt32("wipe"); set => Accessor.SetInt32("wipe", value); } - // number of objects shot penetrated before killing target - public short Penetrated - { get => (short)Accessor.GetInt32("penetrated"); set => Accessor.SetInt32("penetrated", value); } + // number of objects shot penetrated before killing target + public short Penetrated { get => (short)Accessor.GetInt32("penetrated"); set => Accessor.SetInt32("penetrated", value); } - // if replay data is unavailable, this will be present and set to false - public bool NoReplay - { get => Accessor.GetBool("noreplay"); set => Accessor.SetBool("noreplay", value); } + // if replay data is unavailable, this will be present and set to false + public bool NoReplay { get => Accessor.GetBool("noreplay"); set => Accessor.SetBool("noreplay", value); } - // kill happened without a scope, used for death notice icon - public bool NoScope - { get => Accessor.GetBool("noscope"); set => Accessor.SetBool("noscope", value); } + // kill happened without a scope, used for death notice icon + public bool NoScope { get => Accessor.GetBool("noscope"); set => Accessor.SetBool("noscope", value); } - // hitscan weapon went through smoke grenade - public bool ThruSmoke - { get => Accessor.GetBool("thrusmoke"); set => Accessor.SetBool("thrusmoke", value); } + // hitscan weapon went through smoke grenade + public bool ThruSmoke { get => Accessor.GetBool("thrusmoke"); set => Accessor.SetBool("thrusmoke", value); } - // attacker was blind from flashbang - public bool AttackerBlind - { get => Accessor.GetBool("attackerblind"); set => Accessor.SetBool("attackerblind", value); } + // attacker was blind from flashbang + public bool AttackerBlind { get => Accessor.GetBool("attackerblind"); set => Accessor.SetBool("attackerblind", value); } - // distance to victim in meters - public float Distance - { get => Accessor.GetFloat("distance"); set => Accessor.SetFloat("distance", value); } + // distance to victim in meters + public float Distance { get => Accessor.GetFloat("distance"); set => Accessor.SetFloat("distance", value); } - // damage done to health - public short DmgHealth - { get => (short)Accessor.GetInt32("dmg_health"); set => Accessor.SetInt32("dmg_health", value); } + // damage done to health + public short DmgHealth { get => (short)Accessor.GetInt32("dmg_health"); set => Accessor.SetInt32("dmg_health", value); } - // damage done to armor - public byte DmgArmor - { get => (byte)Accessor.GetInt32("dmg_armor"); set => Accessor.SetInt32("dmg_armor", value); } + // damage done to armor + public byte DmgArmor { get => (byte)Accessor.GetInt32("dmg_armor"); set => Accessor.SetInt32("dmg_armor", value); } - // hitgroup that was damaged - public byte HitGroup - { get => (byte)Accessor.GetInt32("hitgroup"); set => Accessor.SetInt32("hitgroup", value); } + // hitgroup that was damaged + public byte HitGroup { get => (byte)Accessor.GetInt32("hitgroup"); set => Accessor.SetInt32("hitgroup", value); } - // attacker was in midair - public bool AttackerInAir - { get => Accessor.GetBool("attackerinair"); set => Accessor.SetBool("attackerinair", value); } + // attacker was in midair + public bool AttackerInAir { get => Accessor.GetBool("attackerinair"); set => Accessor.SetBool("attackerinair", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerDecalImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerDecalImpl.cs index 33a3bd296..0ca7643b4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerDecalImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerDecalImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerDecalImpl : GameEvent, EventPlayerDecal { - public EventPlayerDecalImpl(nint address) : base(address) - { - } + public EventPlayerDecalImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerDisconnectImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerDisconnectImpl.cs index 74a6f74c7..183c707b8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerDisconnectImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerDisconnectImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,42 +13,33 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerDisconnectImpl : GameEvent, EventPlayerDisconnect { - public EventPlayerDisconnectImpl(nint address) : base(address) - { - } + public EventPlayerDisconnectImpl( nint address ) : base(address) + { + } - // user ID on server - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // user ID on server + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // user ID on server - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // user ID on server + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // user ID on server - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // user ID on server + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // user ID on server - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // user ID on server + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // see networkdisconnect enum protobuf - public short Reason - { get => (short)Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } + // see networkdisconnect enum protobuf + public short Reason { get => (short)Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } - // player name - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + // player name + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - // player network (i.e steam) id - public string NetworkID - { get => Accessor.GetString("networkid"); set => Accessor.SetString("networkid", value); } + // player network (i.e steam) id + public string NetworkID { get => Accessor.GetString("networkid"); set => Accessor.SetString("networkid", value); } - // steam id - public ulong XuID - { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } + // steam id + public ulong XuID { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } - public short PlayerID - { get => (short)Accessor.GetInt32("PlayerID"); set => Accessor.SetInt32("PlayerID", value); } + public short PlayerID { get => (short)Accessor.GetInt32("PlayerID"); set => Accessor.SetInt32("PlayerID", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerFalldamageImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerFalldamageImpl.cs index 39bfebc50..ccb8205cb 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerFalldamageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerFalldamageImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,22 +12,17 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerFalldamageImpl : GameEvent, EventPlayerFalldamage { - public EventPlayerFalldamageImpl(nint address) : base(address) - { - } + public EventPlayerFalldamageImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public float Damage - { get => Accessor.GetFloat("damage"); set => Accessor.SetFloat("damage", value); } + public float Damage { get => Accessor.GetFloat("damage"); set => Accessor.SetFloat("damage", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerFootstepImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerFootstepImpl.cs index 46b17f80a..3d44dccb2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerFootstepImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerFootstepImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerFootstepImpl : GameEvent, EventPlayerFootstep { - public EventPlayerFootstepImpl(nint address) : base(address) - { - } + public EventPlayerFootstepImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerFullUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerFullUpdateImpl.cs index 6e17dd8a3..d75f1597d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerFullUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerFullUpdateImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerFullUpdateImpl : GameEvent, EventPlayerFullUpdate { - public EventPlayerFullUpdateImpl(nint address) : base(address) - { - } + public EventPlayerFullUpdateImpl( nint address ) : base(address) + { + } - // user ID on server - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // user ID on server + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // user ID on server - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // user ID on server + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // user ID on server - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // user ID on server + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // user ID on server - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // user ID on server + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // Number of this full update - public short Count - { get => (short)Accessor.GetInt32("count"); set => Accessor.SetInt32("count", value); } + // Number of this full update + public short Count { get => (short)Accessor.GetInt32("count"); set => Accessor.SetInt32("count", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerGivenC4Impl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerGivenC4Impl.cs index 9ffa8957a..bc370c401 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerGivenC4Impl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerGivenC4Impl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,23 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerGivenC4Impl : GameEvent, EventPlayerGivenC4 { - public EventPlayerGivenC4Impl(nint address) : base(address) - { - } + public EventPlayerGivenC4Impl( nint address ) : base(address) + { + } - // user ID who received the c4 - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // user ID who received the c4 + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // user ID who received the c4 - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // user ID who received the c4 + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // user ID who received the c4 - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // user ID who received the c4 + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // user ID who received the c4 - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // user ID who received the c4 + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerHintmessageImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerHintmessageImpl.cs index c3de31bc6..a5f33e006 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerHintmessageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerHintmessageImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,11 +10,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerHintmessageImpl : GameEvent, EventPlayerHintmessage { - public EventPlayerHintmessageImpl(nint address) : base(address) - { - } + public EventPlayerHintmessageImpl( nint address ) : base(address) + { + } - // localizable string of a hint - public string HintMessage - { get => Accessor.GetString("hintmessage"); set => Accessor.SetString("hintmessage", value); } + // localizable string of a hint + public string HintMessage { get => Accessor.GetString("hintmessage"); set => Accessor.SetString("hintmessage", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerHurtImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerHurtImpl.cs index 7a8eafc6e..51969707f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerHurtImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerHurtImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,51 +12,40 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerHurtImpl : GameEvent, EventPlayerHurt { - public EventPlayerHurtImpl(nint address) : base(address) - { - } + public EventPlayerHurtImpl( nint address ) : base(address) + { + } - // player who was hurt - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who was hurt + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who was hurt - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who was hurt + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who was hurt - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who was hurt + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who was hurt - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who was hurt + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // player who attacked - public int Attacker - { get => Accessor.GetPlayerSlot("attacker"); set => Accessor.SetPlayerSlot("attacker", value); } + // player who attacked + public int Attacker { get => Accessor.GetPlayerSlot("attacker"); set => Accessor.SetPlayerSlot("attacker", value); } - // remaining health points - public byte Health - { get => (byte)Accessor.GetInt32("health"); set => Accessor.SetInt32("health", value); } + // remaining health points + public byte Health { get => (byte)Accessor.GetInt32("health"); set => Accessor.SetInt32("health", value); } - // remaining armor points - public byte Armor - { get => (byte)Accessor.GetInt32("armor"); set => Accessor.SetInt32("armor", value); } + // remaining armor points + public byte Armor { get => (byte)Accessor.GetInt32("armor"); set => Accessor.SetInt32("armor", value); } - // weapon name attacker used, if not the world - public string Weapon - { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } + // weapon name attacker used, if not the world + public string Weapon { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } - // damage done to health - public short DmgHealth - { get => (short)Accessor.GetInt32("dmg_health"); set => Accessor.SetInt32("dmg_health", value); } + // damage done to health + public short DmgHealth { get => (short)Accessor.GetInt32("dmg_health"); set => Accessor.SetInt32("dmg_health", value); } - // damage done to armor - public byte DmgArmor - { get => (byte)Accessor.GetInt32("dmg_armor"); set => Accessor.SetInt32("dmg_armor", value); } + // damage done to armor + public byte DmgArmor { get => (byte)Accessor.GetInt32("dmg_armor"); set => Accessor.SetInt32("dmg_armor", value); } - // hitgroup that was damaged - public byte HitGroup - { get => (byte)Accessor.GetInt32("hitgroup"); set => Accessor.SetInt32("hitgroup", value); } + // hitgroup that was damaged + public byte HitGroup { get => (byte)Accessor.GetInt32("hitgroup"); set => Accessor.SetInt32("hitgroup", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerInfoImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerInfoImpl.cs index 3a963c363..4fb9b209f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerInfoImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,35 +13,28 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerInfoImpl : GameEvent, EventPlayerInfo { - public EventPlayerInfoImpl(nint address) : base(address) - { - } + public EventPlayerInfoImpl( nint address ) : base(address) + { + } - // player name - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + // player name + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - // user ID on server (unique on server) - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // user ID on server (unique on server) + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // user ID on server (unique on server) - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // user ID on server (unique on server) + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // user ID on server (unique on server) - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // user ID on server (unique on server) + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // user ID on server (unique on server) - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // user ID on server (unique on server) + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // player network (i.e steam) id - public ulong SteamID - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + // player network (i.e steam) id + public ulong SteamID { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } - // true if player is a AI bot - public bool Bot - { get => Accessor.GetBool("bot"); set => Accessor.SetBool("bot", value); } + // true if player is a AI bot + public bool Bot { get => Accessor.GetBool("bot"); set => Accessor.SetBool("bot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerJumpImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerJumpImpl.cs index 5bb11f581..5936712e5 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerJumpImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerJumpImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerJumpImpl : GameEvent, EventPlayerJump { - public EventPlayerJumpImpl(nint address) : base(address) - { - } + public EventPlayerJumpImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerPingImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerPingImpl.cs index 614a26099..1becc25c2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerPingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerPingImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,34 +12,25 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerPingImpl : GameEvent, EventPlayerPing { - public EventPlayerPingImpl(nint address) : base(address) - { - } + public EventPlayerPingImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } - public bool Urgent - { get => Accessor.GetBool("urgent"); set => Accessor.SetBool("urgent", value); } + public bool Urgent { get => Accessor.GetBool("urgent"); set => Accessor.SetBool("urgent", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerPingStopImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerPingStopImpl.cs index 57e6ec514..fafbf5e35 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerPingStopImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerPingStopImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerPingStopImpl : GameEvent, EventPlayerPingStop { - public EventPlayerPingStopImpl(nint address) : base(address) - { - } + public EventPlayerPingStopImpl( nint address ) : base(address) + { + } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerRadioImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerRadioImpl.cs index 0c54e5fea..f5de93d1e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerRadioImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerRadioImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,22 +12,17 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerRadioImpl : GameEvent, EventPlayerRadio { - public EventPlayerRadioImpl(nint address) : base(address) - { - } + public EventPlayerRadioImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short Slot - { get => (short)Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } + public short Slot { get => (short)Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerResetVoteImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerResetVoteImpl.cs index 7d18f9ea7..eb1e468ab 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerResetVoteImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerResetVoteImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,22 +12,17 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerResetVoteImpl : GameEvent, EventPlayerResetVote { - public EventPlayerResetVoteImpl(nint address) : base(address) - { - } + public EventPlayerResetVoteImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public bool Vote - { get => Accessor.GetBool("vote"); set => Accessor.SetBool("vote", value); } + public bool Vote { get => Accessor.GetBool("vote"); set => Accessor.SetBool("vote", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerScoreImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerScoreImpl.cs index 946b61b00..0d21e3375 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerScoreImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerScoreImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,35 +13,28 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerScoreImpl : GameEvent, EventPlayerScore { - public EventPlayerScoreImpl(nint address) : base(address) - { - } + public EventPlayerScoreImpl( nint address ) : base(address) + { + } - // user ID on server - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // user ID on server + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // user ID on server - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // user ID on server + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // user ID on server - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // user ID on server + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // user ID on server - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // user ID on server + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // # of kills - public short Kills - { get => (short)Accessor.GetInt32("kills"); set => Accessor.SetInt32("kills", value); } + // # of kills + public short Kills { get => (short)Accessor.GetInt32("kills"); set => Accessor.SetInt32("kills", value); } - // # of deaths - public short Deaths - { get => (short)Accessor.GetInt32("deaths"); set => Accessor.SetInt32("deaths", value); } + // # of deaths + public short Deaths { get => (short)Accessor.GetInt32("deaths"); set => Accessor.SetInt32("deaths", value); } - // total game score - public short Score - { get => (short)Accessor.GetInt32("score"); set => Accessor.SetInt32("score", value); } + // total game score + public short Score { get => (short)Accessor.GetInt32("score"); set => Accessor.SetInt32("score", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerShootImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerShootImpl.cs index d0f3baa9d..1b5580c49 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerShootImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerShootImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,31 +13,25 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerShootImpl : GameEvent, EventPlayerShoot { - public EventPlayerShootImpl(nint address) : base(address) - { - } + public EventPlayerShootImpl( nint address ) : base(address) + { + } - // user ID on server - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // user ID on server + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // user ID on server - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // user ID on server + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // user ID on server - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // user ID on server + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // user ID on server - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // user ID on server + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // weapon ID - public byte Weapon - { get => (byte)Accessor.GetInt32("weapon"); set => Accessor.SetInt32("weapon", value); } + // weapon ID + public byte Weapon { get => (byte)Accessor.GetInt32("weapon"); set => Accessor.SetInt32("weapon", value); } - // weapon mode - public byte Mode - { get => (byte)Accessor.GetInt32("mode"); set => Accessor.SetInt32("mode", value); } + // weapon mode + public byte Mode { get => (byte)Accessor.GetInt32("mode"); set => Accessor.SetInt32("mode", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerSoundImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerSoundImpl.cs index 0af80407b..84e5eec67 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerSoundImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerSoundImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,28 +12,21 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerSoundImpl : GameEvent, EventPlayerSound { - public EventPlayerSoundImpl(nint address) : base(address) - { - } + public EventPlayerSoundImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public int Radius - { get => Accessor.GetInt32("radius"); set => Accessor.SetInt32("radius", value); } + public int Radius { get => Accessor.GetInt32("radius"); set => Accessor.SetInt32("radius", value); } - public float Duration - { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } + public float Duration { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } - public bool Step - { get => Accessor.GetBool("step"); set => Accessor.SetBool("step", value); } + public bool Step { get => Accessor.GetBool("step"); set => Accessor.SetBool("step", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerSpawnImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerSpawnImpl.cs index e8651b473..3668747da 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerSpawnImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerSpawnImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,19 +13,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerSpawnImpl : GameEvent, EventPlayerSpawn { - public EventPlayerSpawnImpl(nint address) : base(address) - { - } + public EventPlayerSpawnImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerSpawnedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerSpawnedImpl.cs index ddf68f9f6..c13224c9d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerSpawnedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerSpawnedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,23 +12,18 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerSpawnedImpl : GameEvent, EventPlayerSpawned { - public EventPlayerSpawnedImpl(nint address) : base(address) - { - } + public EventPlayerSpawnedImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // true if restart is pending - public bool InRestart - { get => Accessor.GetBool("inrestart"); set => Accessor.SetBool("inrestart", value); } + // true if restart is pending + public bool InRestart { get => Accessor.GetBool("inrestart"); set => Accessor.SetBool("inrestart", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerStatsUpdatedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerStatsUpdatedImpl.cs index 3c184733f..bab518038 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerStatsUpdatedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerStatsUpdatedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerStatsUpdatedImpl : GameEvent, EventPlayerStatsUpdated { - public EventPlayerStatsUpdatedImpl(nint address) : base(address) - { - } + public EventPlayerStatsUpdatedImpl( nint address ) : base(address) + { + } - public bool ForceUpload - { get => Accessor.GetBool("forceupload"); set => Accessor.SetBool("forceupload", value); } + public bool ForceUpload { get => Accessor.GetBool("forceupload"); set => Accessor.SetBool("forceupload", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerTeamImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerTeamImpl.cs index 5bb26cd61..2bf9e5d2e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerTeamImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventPlayerTeamImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,45 +12,35 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventPlayerTeamImpl : GameEvent, EventPlayerTeam { - public EventPlayerTeamImpl(nint address) : base(address) - { - } + public EventPlayerTeamImpl( nint address ) : base(address) + { + } - // player - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // team id - public byte Team - { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } + // team id + public byte Team { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } - // old team id - public byte OldTeam - { get => (byte)Accessor.GetInt32("oldteam"); set => Accessor.SetInt32("oldteam", value); } + // old team id + public byte OldTeam { get => (byte)Accessor.GetInt32("oldteam"); set => Accessor.SetInt32("oldteam", value); } - // team change because player disconnects - public bool Disconnect - { get => Accessor.GetBool("disconnect"); set => Accessor.SetBool("disconnect", value); } + // team change because player disconnects + public bool Disconnect { get => Accessor.GetBool("disconnect"); set => Accessor.SetBool("disconnect", value); } - public bool Silent - { get => Accessor.GetBool("silent"); set => Accessor.SetBool("silent", value); } + public bool Silent { get => Accessor.GetBool("silent"); set => Accessor.SetBool("silent", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - // true if player is a bot - public bool IsBot - { get => Accessor.GetBool("isbot"); set => Accessor.SetBool("isbot", value); } + // true if player is a bot + public bool IsBot { get => Accessor.GetBool("isbot"); set => Accessor.SetBool("isbot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRagdollDissolvedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRagdollDissolvedImpl.cs index a74862b7a..24cf68d1f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRagdollDissolvedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRagdollDissolvedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRagdollDissolvedImpl : GameEvent, EventRagdollDissolved { - public EventRagdollDissolvedImpl(nint address) : base(address) - { - } + public EventRagdollDissolvedImpl( nint address ) : base(address) + { + } - public int EntIndex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + public int EntIndex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventReadGameTitledataImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventReadGameTitledataImpl.cs index fa198f1c7..d39843a8b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventReadGameTitledataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventReadGameTitledataImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,11 +11,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventReadGameTitledataImpl : GameEvent, EventReadGameTitledata { - public EventReadGameTitledataImpl(nint address) : base(address) - { - } + public EventReadGameTitledataImpl( nint address ) : base(address) + { + } - // Controller id of user - public short ControllerId - { get => (short)Accessor.GetInt32("controllerId"); set => Accessor.SetInt32("controllerId", value); } + // Controller id of user + public short ControllerId { get => (short)Accessor.GetInt32("controllerId"); set => Accessor.SetInt32("controllerId", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRepostXboxAchievementsImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRepostXboxAchievementsImpl.cs index 99d92f9da..88789194a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRepostXboxAchievementsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRepostXboxAchievementsImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,11 +10,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRepostXboxAchievementsImpl : GameEvent, EventRepostXboxAchievements { - public EventRepostXboxAchievementsImpl(nint address) : base(address) - { - } + public EventRepostXboxAchievementsImpl( nint address ) : base(address) + { + } - // splitscreen ID - public short SplitScreenPlayer - { get => (short)Accessor.GetInt32("splitscreenplayer"); set => Accessor.SetInt32("splitscreenplayer", value); } + // splitscreen ID + public short SplitScreenPlayer { get => (short)Accessor.GetInt32("splitscreenplayer"); set => Accessor.SetInt32("splitscreenplayer", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventResetGameTitledataImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventResetGameTitledataImpl.cs index 0f3fed64a..6d62fbef4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventResetGameTitledataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventResetGameTitledataImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,11 +11,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventResetGameTitledataImpl : GameEvent, EventResetGameTitledata { - public EventResetGameTitledataImpl(nint address) : base(address) - { - } + public EventResetGameTitledataImpl( nint address ) : base(address) + { + } - // Controller id of user - public short ControllerId - { get => (short)Accessor.GetInt32("controllerId"); set => Accessor.SetInt32("controllerId", value); } + // Controller id of user + public short ControllerId { get => (short)Accessor.GetInt32("controllerId"); set => Accessor.SetInt32("controllerId", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceFinalImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceFinalImpl.cs index 64f48ced2..2b19e737a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceFinalImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceFinalImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundAnnounceFinalImpl : GameEvent, EventRoundAnnounceFinal { - public EventRoundAnnounceFinalImpl(nint address) : base(address) - { - } + public EventRoundAnnounceFinalImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceLastRoundHalfImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceLastRoundHalfImpl.cs index 77ed8cab2..2704ce88e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceLastRoundHalfImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceLastRoundHalfImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundAnnounceLastRoundHalfImpl : GameEvent, EventRoundAnnounceLastRoundHalf { - public EventRoundAnnounceLastRoundHalfImpl(nint address) : base(address) - { - } + public EventRoundAnnounceLastRoundHalfImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceMatchPointImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceMatchPointImpl.cs index ac374ca0b..70418e178 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceMatchPointImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceMatchPointImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundAnnounceMatchPointImpl : GameEvent, EventRoundAnnounceMatchPoint { - public EventRoundAnnounceMatchPointImpl(nint address) : base(address) - { - } + public EventRoundAnnounceMatchPointImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceMatchStartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceMatchStartImpl.cs index faa143ae4..9001c6644 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceMatchStartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceMatchStartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundAnnounceMatchStartImpl : GameEvent, EventRoundAnnounceMatchStart { - public EventRoundAnnounceMatchStartImpl(nint address) : base(address) - { - } + public EventRoundAnnounceMatchStartImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceWarmupImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceWarmupImpl.cs index f5b1d6db8..b1cb5ceb0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceWarmupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundAnnounceWarmupImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundAnnounceWarmupImpl : GameEvent, EventRoundAnnounceWarmup { - public EventRoundAnnounceWarmupImpl(nint address) : base(address) - { - } + public EventRoundAnnounceWarmupImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundEndImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundEndImpl.cs index 5717d0b57..d53fc4563 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundEndImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundEndImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,34 +10,27 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundEndImpl : GameEvent, EventRoundEnd { - public EventRoundEndImpl(nint address) : base(address) - { - } + public EventRoundEndImpl( nint address ) : base(address) + { + } - // winner team/user i - public byte Winner - { get => (byte)Accessor.GetInt32("winner"); set => Accessor.SetInt32("winner", value); } + // winner team/user i + public byte Winner { get => (byte)Accessor.GetInt32("winner"); set => Accessor.SetInt32("winner", value); } - // reson why team won - public byte Reason - { get => (byte)Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } + // reson why team won + public byte Reason { get => (byte)Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } - // end round message - public string Message - { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } + // end round message + public string Message { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } - public float Time - { get => Accessor.GetFloat("time"); set => Accessor.SetFloat("time", value); } + public float Time { get => Accessor.GetFloat("time"); set => Accessor.SetFloat("time", value); } - // server-generated legacy value - public byte Legacy - { get => (byte)Accessor.GetInt32("legacy"); set => Accessor.SetInt32("legacy", value); } + // server-generated legacy value + public byte Legacy { get => (byte)Accessor.GetInt32("legacy"); set => Accessor.SetInt32("legacy", value); } - // total number of players alive at the end of round, used for statistics gathering, computed on the server in the event client is in replay when receiving this message - public short PlayerCount - { get => (short)Accessor.GetInt32("player_count"); set => Accessor.SetInt32("player_count", value); } + // total number of players alive at the end of round, used for statistics gathering, computed on the server in the event client is in replay when receiving this message + public short PlayerCount { get => (short)Accessor.GetInt32("player_count"); set => Accessor.SetInt32("player_count", value); } - // if set, don't play round end music, because action is still on-going - public byte NoMusic - { get => (byte)Accessor.GetInt32("nomusic"); set => Accessor.SetInt32("nomusic", value); } + // if set, don't play round end music, because action is still on-going + public byte NoMusic { get => (byte)Accessor.GetInt32("nomusic"); set => Accessor.SetInt32("nomusic", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundEndUploadStatsImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundEndUploadStatsImpl.cs index 42ba1d670..539232332 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundEndUploadStatsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundEndUploadStatsImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundEndUploadStatsImpl : GameEvent, EventRoundEndUploadStats { - public EventRoundEndUploadStatsImpl(nint address) : base(address) - { - } + public EventRoundEndUploadStatsImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundFreezeEndImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundFreezeEndImpl.cs index d302af956..35ca64352 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundFreezeEndImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundFreezeEndImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundFreezeEndImpl : GameEvent, EventRoundFreezeEnd { - public EventRoundFreezeEndImpl(nint address) : base(address) - { - } + public EventRoundFreezeEndImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundMvpImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundMvpImpl.cs index 56a997aa8..0f3ce8ee6 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundMvpImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundMvpImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,34 +12,25 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundMvpImpl : GameEvent, EventRoundMvp { - public EventRoundMvpImpl(nint address) : base(address) - { - } + public EventRoundMvpImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short Reason - { get => (short)Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } + public short Reason { get => (short)Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } - public int Value - { get => Accessor.GetInt32("value"); set => Accessor.SetInt32("value", value); } + public int Value { get => Accessor.GetInt32("value"); set => Accessor.SetInt32("value", value); } - public int MusickItMvps - { get => Accessor.GetInt32("musickitmvps"); set => Accessor.SetInt32("musickitmvps", value); } + public int MusickItMvps { get => Accessor.GetInt32("musickitmvps"); set => Accessor.SetInt32("musickitmvps", value); } - public byte NoMusic - { get => (byte)Accessor.GetInt32("nomusic"); set => Accessor.SetInt32("nomusic", value); } + public byte NoMusic { get => (byte)Accessor.GetInt32("nomusic"); set => Accessor.SetInt32("nomusic", value); } - public int MusickItID - { get => Accessor.GetInt32("musickitid"); set => Accessor.SetInt32("musickitid", value); } + public int MusickItID { get => Accessor.GetInt32("musickitid"); set => Accessor.SetInt32("musickitid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundOfficiallyEndedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundOfficiallyEndedImpl.cs index 56368b1ad..df71ff48e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundOfficiallyEndedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundOfficiallyEndedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundOfficiallyEndedImpl : GameEvent, EventRoundOfficiallyEnded { - public EventRoundOfficiallyEndedImpl(nint address) : base(address) - { - } + public EventRoundOfficiallyEndedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundPoststartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundPoststartImpl.cs index 231205018..dbcdbc2b8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundPoststartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundPoststartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,7 +11,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundPoststartImpl : GameEvent, EventRoundPoststart { - public EventRoundPoststartImpl(nint address) : base(address) - { - } + public EventRoundPoststartImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundPrestartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundPrestartImpl.cs index 77e827384..5888507c0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundPrestartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundPrestartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,7 +11,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundPrestartImpl : GameEvent, EventRoundPrestart { - public EventRoundPrestartImpl(nint address) : base(address) - { - } + public EventRoundPrestartImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundStartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundStartImpl.cs index bb3858e85..0740ca39d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundStartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundStartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +10,16 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundStartImpl : GameEvent, EventRoundStart { - public EventRoundStartImpl(nint address) : base(address) - { - } + public EventRoundStartImpl( nint address ) : base(address) + { + } - // round time limit in seconds - public int TimeLimit - { get => Accessor.GetInt32("timelimit"); set => Accessor.SetInt32("timelimit", value); } + // round time limit in seconds + public int TimeLimit { get => Accessor.GetInt32("timelimit"); set => Accessor.SetInt32("timelimit", value); } - // frag limit in seconds - public int FragLimit - { get => Accessor.GetInt32("fraglimit"); set => Accessor.SetInt32("fraglimit", value); } + // frag limit in seconds + public int FragLimit { get => Accessor.GetInt32("fraglimit"); set => Accessor.SetInt32("fraglimit", value); } - // round objective - public string Objective - { get => Accessor.GetString("objective"); set => Accessor.SetString("objective", value); } + // round objective + public string Objective { get => Accessor.GetString("objective"); set => Accessor.SetString("objective", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundStartPostNavImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundStartPostNavImpl.cs index ac6edcf0c..311064a68 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundStartPostNavImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundStartPostNavImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundStartPostNavImpl : GameEvent, EventRoundStartPostNav { - public EventRoundStartPostNavImpl(nint address) : base(address) - { - } + public EventRoundStartPostNavImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundStartPreEntityImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundStartPreEntityImpl.cs index 87655cf2f..fafe3a49f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundStartPreEntityImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundStartPreEntityImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundStartPreEntityImpl : GameEvent, EventRoundStartPreEntity { - public EventRoundStartPreEntityImpl(nint address) : base(address) - { - } + public EventRoundStartPreEntityImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundTimeWarningImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundTimeWarningImpl.cs index 1d973d504..dab9aa964 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundTimeWarningImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventRoundTimeWarningImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventRoundTimeWarningImpl : GameEvent, EventRoundTimeWarning { - public EventRoundTimeWarningImpl(nint address) : base(address) - { - } + public EventRoundTimeWarningImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSeasoncoinLevelupImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSeasoncoinLevelupImpl.cs index 065e2582a..453fd5949 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSeasoncoinLevelupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSeasoncoinLevelupImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,25 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSeasoncoinLevelupImpl : GameEvent, EventSeasoncoinLevelup { - public EventSeasoncoinLevelupImpl(nint address) : base(address) - { - } + public EventSeasoncoinLevelupImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short Category - { get => (short)Accessor.GetInt32("category"); set => Accessor.SetInt32("category", value); } + public short Category { get => (short)Accessor.GetInt32("category"); set => Accessor.SetInt32("category", value); } - public short Rank - { get => (short)Accessor.GetInt32("rank"); set => Accessor.SetInt32("rank", value); } + public short Rank { get => (short)Accessor.GetInt32("rank"); set => Accessor.SetInt32("rank", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerCvarImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerCvarImpl.cs index cbca23f27..72f81d566 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerCvarImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerCvarImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,15 +11,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventServerCvarImpl : GameEvent, EventServerCvar { - public EventServerCvarImpl(nint address) : base(address) - { - } + public EventServerCvarImpl( nint address ) : base(address) + { + } - // cvar name, eg "mp_roundtime" - public string CVarName - { get => Accessor.GetString("cvarname"); set => Accessor.SetString("cvarname", value); } + // cvar name, eg "mp_roundtime" + public string CVarName { get => Accessor.GetString("cvarname"); set => Accessor.SetString("cvarname", value); } - // new cvar value - public string CVarValue - { get => Accessor.GetString("cvarvalue"); set => Accessor.SetString("cvarvalue", value); } + // new cvar value + public string CVarValue { get => Accessor.GetString("cvarvalue"); set => Accessor.SetString("cvarvalue", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerMessageImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerMessageImpl.cs index 19c0a7ee1..9cae8711b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerMessageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerMessageImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,11 +11,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventServerMessageImpl : GameEvent, EventServerMessage { - public EventServerMessageImpl(nint address) : base(address) - { - } + public EventServerMessageImpl( nint address ) : base(address) + { + } - // the message text - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + // the message text + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerPreShutdownImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerPreShutdownImpl.cs index b1e661b63..fc9c24a84 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerPreShutdownImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerPreShutdownImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,11 +11,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventServerPreShutdownImpl : GameEvent, EventServerPreShutdown { - public EventServerPreShutdownImpl(nint address) : base(address) - { - } + public EventServerPreShutdownImpl( nint address ) : base(address) + { + } - // reason why server is about to be shut down - public string Reason - { get => Accessor.GetString("reason"); set => Accessor.SetString("reason", value); } + // reason why server is about to be shut down + public string Reason { get => Accessor.GetString("reason"); set => Accessor.SetString("reason", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerShutdownImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerShutdownImpl.cs index e0cacd0e5..d346c178e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerShutdownImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerShutdownImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,11 +11,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventServerShutdownImpl : GameEvent, EventServerShutdown { - public EventServerShutdownImpl(nint address) : base(address) - { - } + public EventServerShutdownImpl( nint address ) : base(address) + { + } - // reason why server was shut down - public string Reason - { get => Accessor.GetString("reason"); set => Accessor.SetString("reason", value); } + // reason why server was shut down + public string Reason { get => Accessor.GetString("reason"); set => Accessor.SetString("reason", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerSpawnImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerSpawnImpl.cs index 7d012725d..143eb11a7 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerSpawnImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventServerSpawnImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,47 +11,37 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventServerSpawnImpl : GameEvent, EventServerSpawn { - public EventServerSpawnImpl(nint address) : base(address) - { - } + public EventServerSpawnImpl( nint address ) : base(address) + { + } - // public host name - public string Hostname - { get => Accessor.GetString("hostname"); set => Accessor.SetString("hostname", value); } + // public host name + public string Hostname { get => Accessor.GetString("hostname"); set => Accessor.SetString("hostname", value); } - // hostame, IP or DNS name - public string Address - { get => Accessor.GetString("address"); set => Accessor.SetString("address", value); } + // hostame, IP or DNS name + public string Address { get => Accessor.GetString("address"); set => Accessor.SetString("address", value); } - // server port - public short Port - { get => (short)Accessor.GetInt32("port"); set => Accessor.SetInt32("port", value); } + // server port + public short Port { get => (short)Accessor.GetInt32("port"); set => Accessor.SetInt32("port", value); } - // game dir - public string Game - { get => Accessor.GetString("game"); set => Accessor.SetString("game", value); } + // game dir + public string Game { get => Accessor.GetString("game"); set => Accessor.SetString("game", value); } - // map name - public string MapName - { get => Accessor.GetString("mapname"); set => Accessor.SetString("mapname", value); } + // map name + public string MapName { get => Accessor.GetString("mapname"); set => Accessor.SetString("mapname", value); } - // addon name - public string AddonName - { get => Accessor.GetString("addonname"); set => Accessor.SetString("addonname", value); } + // addon name + public string AddonName { get => Accessor.GetString("addonname"); set => Accessor.SetString("addonname", value); } - // max players - public int MaxPlayers - { get => Accessor.GetInt32("maxplayers"); set => Accessor.SetInt32("maxplayers", value); } + // max players + public int MaxPlayers { get => Accessor.GetInt32("maxplayers"); set => Accessor.SetInt32("maxplayers", value); } - // WIN32, LINUX - public string Os - { get => Accessor.GetString("os"); set => Accessor.SetString("os", value); } + // WIN32, LINUX + public string Os { get => Accessor.GetString("os"); set => Accessor.SetString("os", value); } - // true if dedicated server - public bool Dedicated - { get => Accessor.GetBool("dedicated"); set => Accessor.SetBool("dedicated", value); } + // true if dedicated server + public bool Dedicated { get => Accessor.GetBool("dedicated"); set => Accessor.SetBool("dedicated", value); } - // true if password protected - public bool Password - { get => Accessor.GetBool("password"); set => Accessor.SetBool("password", value); } + // true if password protected + public bool Password { get => Accessor.GetBool("password"); set => Accessor.SetBool("password", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSetInstructorGroupEnabledImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSetInstructorGroupEnabledImpl.cs index 481cb6b0f..d60e64d7d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSetInstructorGroupEnabledImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSetInstructorGroupEnabledImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,13 +10,11 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSetInstructorGroupEnabledImpl : GameEvent, EventSetInstructorGroupEnabled { - public EventSetInstructorGroupEnabledImpl(nint address) : base(address) - { - } + public EventSetInstructorGroupEnabledImpl( nint address ) : base(address) + { + } - public string Group - { get => Accessor.GetString("group"); set => Accessor.SetString("group", value); } + public string Group { get => Accessor.GetString("group"); set => Accessor.SetString("group", value); } - public short Enabled - { get => (short)Accessor.GetInt32("enabled"); set => Accessor.SetInt32("enabled", value); } + public short Enabled { get => (short)Accessor.GetInt32("enabled"); set => Accessor.SetInt32("enabled", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSfuieventImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSfuieventImpl.cs index 77dfa499c..bad72fefa 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSfuieventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSfuieventImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,16 +10,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSfuieventImpl : GameEvent, EventSfuievent { - public EventSfuieventImpl(nint address) : base(address) - { - } + public EventSfuieventImpl( nint address ) : base(address) + { + } - public string Action - { get => Accessor.GetString("action"); set => Accessor.SetString("action", value); } + public string Action { get => Accessor.GetString("action"); set => Accessor.SetString("action", value); } - public string Data - { get => Accessor.GetString("data"); set => Accessor.SetString("data", value); } + public string Data { get => Accessor.GetString("data"); set => Accessor.SetString("data", value); } - public byte Slot - { get => (byte)Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } + public byte Slot { get => (byte)Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventShowDeathpanelImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventShowDeathpanelImpl.cs index aed3e7d38..f69294bb0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventShowDeathpanelImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventShowDeathpanelImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,30 +10,23 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventShowDeathpanelImpl : GameEvent, EventShowDeathpanel { - public EventShowDeathpanelImpl(nint address) : base(address) - { - } + public EventShowDeathpanelImpl( nint address ) : base(address) + { + } - // endindex of the one who was killed - public int Victim - { get => Accessor.GetPlayerSlot("victim"); set => Accessor.SetPlayerSlot("victim", value); } + // endindex of the one who was killed + public int Victim { get => Accessor.GetPlayerSlot("victim"); set => Accessor.SetPlayerSlot("victim", value); } - // entindex of the killer entity - public nint Killer - { get => Accessor.GetPtr("killer"); set => Accessor.SetPtr("killer", value); } + // entindex of the killer entity + public nint Killer { get => Accessor.GetPtr("killer"); set => Accessor.SetPtr("killer", value); } - public int KillerController - { get => Accessor.GetPlayerSlot("killer_controller"); set => Accessor.SetPlayerSlot("killer_controller", value); } + public int KillerController { get => Accessor.GetPlayerSlot("killer_controller"); set => Accessor.SetPlayerSlot("killer_controller", value); } - public short HitsTaken - { get => (short)Accessor.GetInt32("hits_taken"); set => Accessor.SetInt32("hits_taken", value); } + public short HitsTaken { get => (short)Accessor.GetInt32("hits_taken"); set => Accessor.SetInt32("hits_taken", value); } - public short DamageTaken - { get => (short)Accessor.GetInt32("damage_taken"); set => Accessor.SetInt32("damage_taken", value); } + public short DamageTaken { get => (short)Accessor.GetInt32("damage_taken"); set => Accessor.SetInt32("damage_taken", value); } - public short HitsGiven - { get => (short)Accessor.GetInt32("hits_given"); set => Accessor.SetInt32("hits_given", value); } + public short HitsGiven { get => (short)Accessor.GetInt32("hits_given"); set => Accessor.SetInt32("hits_given", value); } - public short DamageGiven - { get => (short)Accessor.GetInt32("damage_given"); set => Accessor.SetInt32("damage_given", value); } + public short DamageGiven { get => (short)Accessor.GetInt32("damage_given"); set => Accessor.SetInt32("damage_given", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventShowSurvivalRespawnStatusImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventShowSurvivalRespawnStatusImpl.cs index af6f0ee9d..dd0274072 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventShowSurvivalRespawnStatusImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventShowSurvivalRespawnStatusImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,25 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventShowSurvivalRespawnStatusImpl : GameEvent, EventShowSurvivalRespawnStatus { - public EventShowSurvivalRespawnStatusImpl(nint address) : base(address) - { - } + public EventShowSurvivalRespawnStatusImpl( nint address ) : base(address) + { + } - public string LocToken - { get => Accessor.GetString("loc_token"); set => Accessor.SetString("loc_token", value); } + public string LocToken { get => Accessor.GetString("loc_token"); set => Accessor.SetString("loc_token", value); } - public int Duration - { get => Accessor.GetInt32("duration"); set => Accessor.SetInt32("duration", value); } + public int Duration { get => Accessor.GetInt32("duration"); set => Accessor.SetInt32("duration", value); } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSilencerDetachImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSilencerDetachImpl.cs index 6a5b26233..8eecd8747 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSilencerDetachImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSilencerDetachImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSilencerDetachImpl : GameEvent, EventSilencerDetach { - public EventSilencerDetachImpl(nint address) : base(address) - { - } + public EventSilencerDetachImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSilencerOffImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSilencerOffImpl.cs index d41188cfc..24464cd1a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSilencerOffImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSilencerOffImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSilencerOffImpl : GameEvent, EventSilencerOff { - public EventSilencerOffImpl(nint address) : base(address) - { - } + public EventSilencerOffImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSilencerOnImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSilencerOnImpl.cs index 80c8c68b6..dc1d9545f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSilencerOnImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSilencerOnImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSilencerOnImpl : GameEvent, EventSilencerOn { - public EventSilencerOnImpl(nint address) : base(address) - { - } + public EventSilencerOnImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSmokeBeaconParadropImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSmokeBeaconParadropImpl.cs index 24647de0b..33c93218d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSmokeBeaconParadropImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSmokeBeaconParadropImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,22 +12,17 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSmokeBeaconParadropImpl : GameEvent, EventSmokeBeaconParadrop { - public EventSmokeBeaconParadropImpl(nint address) : base(address) - { - } + public EventSmokeBeaconParadropImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short ParaDrop - { get => (short)Accessor.GetInt32("paradrop"); set => Accessor.SetInt32("paradrop", value); } + public short ParaDrop { get => (short)Accessor.GetInt32("paradrop"); set => Accessor.SetInt32("paradrop", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSmokegrenadeDetonateImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSmokegrenadeDetonateImpl.cs index cce87403f..0f013bf7e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSmokegrenadeDetonateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSmokegrenadeDetonateImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,23 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSmokegrenadeDetonateImpl : GameEvent, EventSmokegrenadeDetonate { - public EventSmokegrenadeDetonateImpl(nint address) : base(address) - { - } + public EventSmokegrenadeDetonateImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSmokegrenadeExpiredImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSmokegrenadeExpiredImpl.cs index aeae96d37..6d978228f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSmokegrenadeExpiredImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSmokegrenadeExpiredImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,23 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSmokegrenadeExpiredImpl : GameEvent, EventSmokegrenadeExpired { - public EventSmokegrenadeExpiredImpl(nint address) : base(address) - { - } + public EventSmokegrenadeExpiredImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSpecModeUpdatedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSpecModeUpdatedImpl.cs index 20cbca884..afa9abfb7 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSpecModeUpdatedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSpecModeUpdatedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,23 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSpecModeUpdatedImpl : GameEvent, EventSpecModeUpdated { - public EventSpecModeUpdatedImpl(nint address) : base(address) - { - } + public EventSpecModeUpdatedImpl( nint address ) : base(address) + { + } - // spectating player - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // spectating player + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // spectating player - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // spectating player + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // spectating player - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // spectating player + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // spectating player - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // spectating player + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSpecTargetUpdatedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSpecTargetUpdatedImpl.cs index 445363c9c..7704f637d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSpecTargetUpdatedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSpecTargetUpdatedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSpecTargetUpdatedImpl : GameEvent, EventSpecTargetUpdated { - public EventSpecTargetUpdatedImpl(nint address) : base(address) - { - } + public EventSpecTargetUpdatedImpl( nint address ) : base(address) + { + } - // spectating player - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // spectating player + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // spectating player - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // spectating player + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // spectating player - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // spectating player + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // spectating player - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // spectating player + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // ehandle of the target - public nint Target - { get => Accessor.GetPtr("target"); set => Accessor.SetPtr("target", value); } + // ehandle of the target + public nint Target { get => Accessor.GetPtr("target"); set => Accessor.SetPtr("target", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventStartHalftimeImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventStartHalftimeImpl.cs index 1aaef0b3e..f517941f3 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventStartHalftimeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventStartHalftimeImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventStartHalftimeImpl : GameEvent, EventStartHalftime { - public EventStartHalftimeImpl(nint address) : base(address) - { - } + public EventStartHalftimeImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventStartVoteImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventStartVoteImpl.cs index af2f92083..aa58d5ac4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventStartVoteImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventStartVoteImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,25 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventStartVoteImpl : GameEvent, EventStartVote { - public EventStartVoteImpl(nint address) : base(address) - { - } + public EventStartVoteImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public byte Type - { get => (byte)Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + public byte Type { get => (byte)Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } - public short VoteParameter - { get => (short)Accessor.GetInt32("vote_parameter"); set => Accessor.SetInt32("vote_parameter", value); } + public short VoteParameter { get => (short)Accessor.GetInt32("vote_parameter"); set => Accessor.SetInt32("vote_parameter", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventStorePricesheetUpdatedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventStorePricesheetUpdatedImpl.cs index 881621158..74673348c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventStorePricesheetUpdatedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventStorePricesheetUpdatedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventStorePricesheetUpdatedImpl : GameEvent, EventStorePricesheetUpdated { - public EventStorePricesheetUpdatedImpl(nint address) : base(address) - { - } + public EventStorePricesheetUpdatedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalAnnouncePhaseImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalAnnouncePhaseImpl.cs index 5b40cf3ee..6db502f53 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalAnnouncePhaseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalAnnouncePhaseImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,11 +10,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSurvivalAnnouncePhaseImpl : GameEvent, EventSurvivalAnnouncePhase { - public EventSurvivalAnnouncePhaseImpl(nint address) : base(address) - { - } + public EventSurvivalAnnouncePhaseImpl( nint address ) : base(address) + { + } - // The phase # - public short Phase - { get => (short)Accessor.GetInt32("phase"); set => Accessor.SetInt32("phase", value); } + // The phase # + public short Phase { get => (short)Accessor.GetInt32("phase"); set => Accessor.SetInt32("phase", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalNoRespawnsFinalImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalNoRespawnsFinalImpl.cs index 748d13ab4..b7a642db8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalNoRespawnsFinalImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalNoRespawnsFinalImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSurvivalNoRespawnsFinalImpl : GameEvent, EventSurvivalNoRespawnsFinal { - public EventSurvivalNoRespawnsFinalImpl(nint address) : base(address) - { - } + public EventSurvivalNoRespawnsFinalImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalNoRespawnsWarningImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalNoRespawnsWarningImpl.cs index 1ade8b4aa..c5dd216d9 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalNoRespawnsWarningImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalNoRespawnsWarningImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSurvivalNoRespawnsWarningImpl : GameEvent, EventSurvivalNoRespawnsWarning { - public EventSurvivalNoRespawnsWarningImpl(nint address) : base(address) - { - } + public EventSurvivalNoRespawnsWarningImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalParadropBreakImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalParadropBreakImpl.cs index 87890b3f1..5dab5f4d4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalParadropBreakImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalParadropBreakImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSurvivalParadropBreakImpl : GameEvent, EventSurvivalParadropBreak { - public EventSurvivalParadropBreakImpl(nint address) : base(address) - { - } + public EventSurvivalParadropBreakImpl( nint address ) : base(address) + { + } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalParadropSpawnImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalParadropSpawnImpl.cs index 9529f7d9e..eac513728 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalParadropSpawnImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalParadropSpawnImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSurvivalParadropSpawnImpl : GameEvent, EventSurvivalParadropSpawn { - public EventSurvivalParadropSpawnImpl(nint address) : base(address) - { - } + public EventSurvivalParadropSpawnImpl( nint address ) : base(address) + { + } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalTeammateRespawnImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalTeammateRespawnImpl.cs index 53009606e..4b6dff59c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalTeammateRespawnImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSurvivalTeammateRespawnImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSurvivalTeammateRespawnImpl : GameEvent, EventSurvivalTeammateRespawn { - public EventSurvivalTeammateRespawnImpl(nint address) : base(address) - { - } + public EventSurvivalTeammateRespawnImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSwitchTeamImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSwitchTeamImpl.cs index fc6e8da37..ae8ce3d62 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSwitchTeamImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventSwitchTeamImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,25 +10,20 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventSwitchTeamImpl : GameEvent, EventSwitchTeam { - public EventSwitchTeamImpl(nint address) : base(address) - { - } + public EventSwitchTeamImpl( nint address ) : base(address) + { + } - // number of active players on both T and CT - public short NumPlayers - { get => (short)Accessor.GetInt32("numPlayers"); set => Accessor.SetInt32("numPlayers", value); } + // number of active players on both T and CT + public short NumPlayers { get => (short)Accessor.GetInt32("numPlayers"); set => Accessor.SetInt32("numPlayers", value); } - // number of spectators - public short NumSpectators - { get => (short)Accessor.GetInt32("numSpectators"); set => Accessor.SetInt32("numSpectators", value); } + // number of spectators + public short NumSpectators { get => (short)Accessor.GetInt32("numSpectators"); set => Accessor.SetInt32("numSpectators", value); } - // average rank of human players - public short AvgRank - { get => (short)Accessor.GetInt32("avg_rank"); set => Accessor.SetInt32("avg_rank", value); } + // average rank of human players + public short AvgRank { get => (short)Accessor.GetInt32("avg_rank"); set => Accessor.SetInt32("avg_rank", value); } - public short NumTSlotsFree - { get => (short)Accessor.GetInt32("numTSlotsFree"); set => Accessor.SetInt32("numTSlotsFree", value); } + public short NumTSlotsFree { get => (short)Accessor.GetInt32("numTSlotsFree"); set => Accessor.SetInt32("numTSlotsFree", value); } - public short NumCTSlotsFree - { get => (short)Accessor.GetInt32("numCTSlotsFree"); set => Accessor.SetInt32("numCTSlotsFree", value); } + public short NumCTSlotsFree { get => (short)Accessor.GetInt32("numCTSlotsFree"); set => Accessor.SetInt32("numCTSlotsFree", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTagrenadeDetonateImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTagrenadeDetonateImpl.cs index b091d3171..7c260abee 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTagrenadeDetonateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTagrenadeDetonateImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,23 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventTagrenadeDetonateImpl : GameEvent, EventTagrenadeDetonate { - public EventTagrenadeDetonateImpl(nint address) : base(address) - { - } + public EventTagrenadeDetonateImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public short EntityID - { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + public short EntityID { get => (short)Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamInfoImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamInfoImpl.cs index 801fb5128..b1e9d1ff6 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamInfoImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,15 +11,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventTeamInfoImpl : GameEvent, EventTeamInfo { - public EventTeamInfoImpl(nint address) : base(address) - { - } + public EventTeamInfoImpl( nint address ) : base(address) + { + } - // unique team id - public byte TeamID - { get => (byte)Accessor.GetInt32("teamid"); set => Accessor.SetInt32("teamid", value); } + // unique team id + public byte TeamID { get => (byte)Accessor.GetInt32("teamid"); set => Accessor.SetInt32("teamid", value); } - // team name eg "Team Blue" - public string Teamname - { get => Accessor.GetString("teamname"); set => Accessor.SetString("teamname", value); } + // team name eg "Team Blue" + public string Teamname { get => Accessor.GetString("teamname"); set => Accessor.SetString("teamname", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamIntroEndImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamIntroEndImpl.cs index ffb436534..6459d76c6 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamIntroEndImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamIntroEndImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventTeamIntroEndImpl : GameEvent, EventTeamIntroEnd { - public EventTeamIntroEndImpl(nint address) : base(address) - { - } + public EventTeamIntroEndImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamIntroStartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamIntroStartImpl.cs index b9b10f6eb..02d51d18c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamIntroStartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamIntroStartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventTeamIntroStartImpl : GameEvent, EventTeamIntroStart { - public EventTeamIntroStartImpl(nint address) : base(address) - { - } + public EventTeamIntroStartImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamScoreImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamScoreImpl.cs index cdf287561..a359c3c31 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamScoreImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamScoreImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,15 +11,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventTeamScoreImpl : GameEvent, EventTeamScore { - public EventTeamScoreImpl(nint address) : base(address) - { - } + public EventTeamScoreImpl( nint address ) : base(address) + { + } - // team id - public byte TeamID - { get => (byte)Accessor.GetInt32("teamid"); set => Accessor.SetInt32("teamid", value); } + // team id + public byte TeamID { get => (byte)Accessor.GetInt32("teamid"); set => Accessor.SetInt32("teamid", value); } - // total team score - public short Score - { get => (short)Accessor.GetInt32("score"); set => Accessor.SetInt32("score", value); } + // total team score + public short Score { get => (short)Accessor.GetInt32("score"); set => Accessor.SetInt32("score", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamchangePendingImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamchangePendingImpl.cs index 96330d7d6..6b8b2316e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamchangePendingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamchangePendingImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,22 +12,17 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventTeamchangePendingImpl : GameEvent, EventTeamchangePending { - public EventTeamchangePendingImpl(nint address) : base(address) - { - } + public EventTeamchangePendingImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public byte ToTeam - { get => (byte)Accessor.GetInt32("toteam"); set => Accessor.SetInt32("toteam", value); } + public byte ToTeam { get => (byte)Accessor.GetInt32("toteam"); set => Accessor.SetInt32("toteam", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamplayBroadcastAudioImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamplayBroadcastAudioImpl.cs index 0c7353f6b..7f5914925 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamplayBroadcastAudioImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamplayBroadcastAudioImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,15 +11,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventTeamplayBroadcastAudioImpl : GameEvent, EventTeamplayBroadcastAudio { - public EventTeamplayBroadcastAudioImpl(nint address) : base(address) - { - } + public EventTeamplayBroadcastAudioImpl( nint address ) : base(address) + { + } - // unique team id - public byte Team - { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } + // unique team id + public byte Team { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } - // name of the sound to emit - public string Sound - { get => Accessor.GetString("sound"); set => Accessor.SetString("sound", value); } + // name of the sound to emit + public string Sound { get => Accessor.GetString("sound"); set => Accessor.SetString("sound", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamplayRoundStartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamplayRoundStartImpl.cs index cf190f121..3ed3c5cfe 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamplayRoundStartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTeamplayRoundStartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,11 +11,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventTeamplayRoundStartImpl : GameEvent, EventTeamplayRoundStart { - public EventTeamplayRoundStartImpl(nint address) : base(address) - { - } + public EventTeamplayRoundStartImpl( nint address ) : base(address) + { + } - // is this a full reset of the map - public bool FullReset - { get => Accessor.GetBool("full_reset"); set => Accessor.SetBool("full_reset", value); } + // is this a full reset of the map + public bool FullReset { get => Accessor.GetBool("full_reset"); set => Accessor.SetBool("full_reset", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTournamentRewardImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTournamentRewardImpl.cs index 5f85cd1d0..483bddf9f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTournamentRewardImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTournamentRewardImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,16 +10,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventTournamentRewardImpl : GameEvent, EventTournamentReward { - public EventTournamentRewardImpl(nint address) : base(address) - { - } + public EventTournamentRewardImpl( nint address ) : base(address) + { + } - public int DefIndex - { get => Accessor.GetInt32("defindex"); set => Accessor.SetInt32("defindex", value); } + public int DefIndex { get => Accessor.GetInt32("defindex"); set => Accessor.SetInt32("defindex", value); } - public int TotalRewards - { get => Accessor.GetInt32("totalrewards"); set => Accessor.SetInt32("totalrewards", value); } + public int TotalRewards { get => Accessor.GetInt32("totalrewards"); set => Accessor.SetInt32("totalrewards", value); } - public int AccountID - { get => Accessor.GetInt32("accountid"); set => Accessor.SetInt32("accountid", value); } + public int AccountID { get => Accessor.GetInt32("accountid"); set => Accessor.SetInt32("accountid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTrialTimeExpiredImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTrialTimeExpiredImpl.cs index 582d61deb..2fc4b3885 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTrialTimeExpiredImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventTrialTimeExpiredImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,23 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventTrialTimeExpiredImpl : GameEvent, EventTrialTimeExpired { - public EventTrialTimeExpiredImpl(nint address) : base(address) - { - } + public EventTrialTimeExpiredImpl( nint address ) : base(address) + { + } - // player whose time has expired - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player whose time has expired + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player whose time has expired - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player whose time has expired + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player whose time has expired - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player whose time has expired + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player whose time has expired - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player whose time has expired + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcFileDownloadFinishedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcFileDownloadFinishedImpl.cs index bb93422e4..7eb4dc44f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcFileDownloadFinishedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcFileDownloadFinishedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,11 +10,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventUgcFileDownloadFinishedImpl : GameEvent, EventUgcFileDownloadFinished { - public EventUgcFileDownloadFinishedImpl(nint address) : base(address) - { - } + public EventUgcFileDownloadFinishedImpl( nint address ) : base(address) + { + } - // id of this specific content (may be image or map) - public ulong HContent - { get => Accessor.GetUInt64("hcontent"); set => Accessor.SetUInt64("hcontent", value); } + // id of this specific content (may be image or map) + public ulong HContent { get => Accessor.GetUInt64("hcontent"); set => Accessor.SetUInt64("hcontent", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcFileDownloadStartImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcFileDownloadStartImpl.cs index d3543b725..664e1ac77 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcFileDownloadStartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcFileDownloadStartImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,15 +10,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventUgcFileDownloadStartImpl : GameEvent, EventUgcFileDownloadStart { - public EventUgcFileDownloadStartImpl(nint address) : base(address) - { - } + public EventUgcFileDownloadStartImpl( nint address ) : base(address) + { + } - // id of this specific content (may be image or map) - public ulong HContent - { get => Accessor.GetUInt64("hcontent"); set => Accessor.SetUInt64("hcontent", value); } + // id of this specific content (may be image or map) + public ulong HContent { get => Accessor.GetUInt64("hcontent"); set => Accessor.SetUInt64("hcontent", value); } - // id of the associated content package - public ulong PublishedFileId - { get => Accessor.GetUInt64("published_file_id"); set => Accessor.SetUInt64("published_file_id", value); } + // id of the associated content package + public ulong PublishedFileId { get => Accessor.GetUInt64("published_file_id"); set => Accessor.SetUInt64("published_file_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcMapDownloadErrorImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcMapDownloadErrorImpl.cs index ee506edab..d359637c2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcMapDownloadErrorImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcMapDownloadErrorImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,13 +10,11 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventUgcMapDownloadErrorImpl : GameEvent, EventUgcMapDownloadError { - public EventUgcMapDownloadErrorImpl(nint address) : base(address) - { - } + public EventUgcMapDownloadErrorImpl( nint address ) : base(address) + { + } - public ulong PublishedFileId - { get => Accessor.GetUInt64("published_file_id"); set => Accessor.SetUInt64("published_file_id", value); } + public ulong PublishedFileId { get => Accessor.GetUInt64("published_file_id"); set => Accessor.SetUInt64("published_file_id", value); } - public int ErrorCode - { get => Accessor.GetInt32("error_code"); set => Accessor.SetInt32("error_code", value); } + public int ErrorCode { get => Accessor.GetInt32("error_code"); set => Accessor.SetInt32("error_code", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcMapInfoReceivedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcMapInfoReceivedImpl.cs index ee1324220..b8860d2b4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcMapInfoReceivedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcMapInfoReceivedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventUgcMapInfoReceivedImpl : GameEvent, EventUgcMapInfoReceived { - public EventUgcMapInfoReceivedImpl(nint address) : base(address) - { - } + public EventUgcMapInfoReceivedImpl( nint address ) : base(address) + { + } - public ulong PublishedFileId - { get => Accessor.GetUInt64("published_file_id"); set => Accessor.SetUInt64("published_file_id", value); } + public ulong PublishedFileId { get => Accessor.GetUInt64("published_file_id"); set => Accessor.SetUInt64("published_file_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcMapUnsubscribedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcMapUnsubscribedImpl.cs index cac2356d1..11db14eef 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcMapUnsubscribedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUgcMapUnsubscribedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventUgcMapUnsubscribedImpl : GameEvent, EventUgcMapUnsubscribed { - public EventUgcMapUnsubscribedImpl(nint address) : base(address) - { - } + public EventUgcMapUnsubscribedImpl( nint address ) : base(address) + { + } - public ulong PublishedFileId - { get => Accessor.GetUInt64("published_file_id"); set => Accessor.SetUInt64("published_file_id", value); } + public ulong PublishedFileId { get => Accessor.GetUInt64("published_file_id"); set => Accessor.SetUInt64("published_file_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUpdateMatchmakingStatsImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUpdateMatchmakingStatsImpl.cs index 23e61cc92..e19039101 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUpdateMatchmakingStatsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUpdateMatchmakingStatsImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventUpdateMatchmakingStatsImpl : GameEvent, EventUpdateMatchmakingStats { - public EventUpdateMatchmakingStatsImpl(nint address) : base(address) - { - } + public EventUpdateMatchmakingStatsImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUserDataDownloadedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUserDataDownloadedImpl.cs index 6d9e5b8bb..e5b793501 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUserDataDownloadedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventUserDataDownloadedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,7 +11,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventUserDataDownloadedImpl : GameEvent, EventUserDataDownloaded { - public EventUserDataDownloadedImpl(nint address) : base(address) - { - } + public EventUserDataDownloadedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVipEscapedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVipEscapedImpl.cs index 02bc5dc25..589adaeef 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVipEscapedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVipEscapedImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,23 +12,19 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventVipEscapedImpl : GameEvent, EventVipEscaped { - public EventVipEscapedImpl(nint address) : base(address) - { - } + public EventVipEscapedImpl( nint address ) : base(address) + { + } - // player who was the VIP - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who was the VIP + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who was the VIP - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who was the VIP + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who was the VIP - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who was the VIP + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who was the VIP - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who was the VIP + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVipKilledImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVipKilledImpl.cs index bbe46a1da..6d23141f9 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVipKilledImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVipKilledImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,22 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventVipKilledImpl : GameEvent, EventVipKilled { - public EventVipKilledImpl(nint address) : base(address) - { - } + public EventVipKilledImpl( nint address ) : base(address) + { + } - // player who was the VIP - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who was the VIP + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who was the VIP - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who was the VIP + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who was the VIP - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who was the VIP + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who was the VIP - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who was the VIP + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // user ID who killed the VIP - public int Attacker - { get => Accessor.GetPlayerSlot("attacker"); set => Accessor.SetPlayerSlot("attacker", value); } + // user ID who killed the VIP + public int Attacker { get => Accessor.GetPlayerSlot("attacker"); set => Accessor.SetPlayerSlot("attacker", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteCastImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteCastImpl.cs index e45956afd..5b0be3dfb 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteCastImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteCastImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,30 +12,24 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventVoteCastImpl : GameEvent, EventVoteCast { - public EventVoteCastImpl(nint address) : base(address) - { - } + public EventVoteCastImpl( nint address ) : base(address) + { + } - // which option the player voted on - public byte VoteOption - { get => (byte)Accessor.GetInt32("vote_option"); set => Accessor.SetInt32("vote_option", value); } + // which option the player voted on + public byte VoteOption { get => (byte)Accessor.GetInt32("vote_option"); set => Accessor.SetInt32("vote_option", value); } - public short Team - { get => (short)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } + public short Team { get => (short)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } - // player who voted - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // player who voted + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // player who voted - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // player who voted + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // player who voted - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // player who voted + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // player who voted - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // player who voted + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteCastNoImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteCastNoImpl.cs index 20c17b7e8..7a71267bb 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteCastNoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteCastNoImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,14 +10,12 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventVoteCastNoImpl : GameEvent, EventVoteCastNo { - public EventVoteCastNoImpl(nint address) : base(address) - { - } + public EventVoteCastNoImpl( nint address ) : base(address) + { + } - public byte Team - { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } + public byte Team { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } - // entity id of the voter - public int EntityID - { get => Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + // entity id of the voter + public int EntityID { get => Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteCastYesImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteCastYesImpl.cs index c1419a959..e34158bf0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteCastYesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteCastYesImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,14 +10,12 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventVoteCastYesImpl : GameEvent, EventVoteCastYes { - public EventVoteCastYesImpl(nint address) : base(address) - { - } + public EventVoteCastYesImpl( nint address ) : base(address) + { + } - public byte Team - { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } + public byte Team { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } - // entity id of the voter - public int EntityID - { get => Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } + // entity id of the voter + public int EntityID { get => Accessor.GetInt32("entityid"); set => Accessor.SetInt32("entityid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteChangedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteChangedImpl.cs index 15db4b72d..1db536c62 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteChangedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteChangedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +10,23 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventVoteChangedImpl : GameEvent, EventVoteChanged { - public EventVoteChangedImpl(nint address) : base(address) - { - } + public EventVoteChangedImpl( nint address ) : base(address) + { + } - public byte YesVotes - { get => (byte)Accessor.GetInt32("yesVotes"); set => Accessor.SetInt32("yesVotes", value); } + public byte YesVotes { get => (byte)Accessor.GetInt32("yesVotes"); set => Accessor.SetInt32("yesVotes", value); } - public byte NoVotes - { get => (byte)Accessor.GetInt32("noVotes"); set => Accessor.SetInt32("noVotes", value); } + public byte NoVotes { get => (byte)Accessor.GetInt32("noVotes"); set => Accessor.SetInt32("noVotes", value); } - public byte PotentialVotes - { get => (byte)Accessor.GetInt32("potentialVotes"); set => Accessor.SetInt32("potentialVotes", value); } + public byte PotentialVotes { get => (byte)Accessor.GetInt32("potentialVotes"); set => Accessor.SetInt32("potentialVotes", value); } - public byte VoteOption1 - { get => (byte)Accessor.GetInt32("vote_option1"); set => Accessor.SetInt32("vote_option1", value); } + public byte VoteOption1 { get => (byte)Accessor.GetInt32("vote_option1"); set => Accessor.SetInt32("vote_option1", value); } - public byte VoteOption2 - { get => (byte)Accessor.GetInt32("vote_option2"); set => Accessor.SetInt32("vote_option2", value); } + public byte VoteOption2 { get => (byte)Accessor.GetInt32("vote_option2"); set => Accessor.SetInt32("vote_option2", value); } - public byte VoteOption3 - { get => (byte)Accessor.GetInt32("vote_option3"); set => Accessor.SetInt32("vote_option3", value); } + public byte VoteOption3 { get => (byte)Accessor.GetInt32("vote_option3"); set => Accessor.SetInt32("vote_option3", value); } - public byte VoteOption4 - { get => (byte)Accessor.GetInt32("vote_option4"); set => Accessor.SetInt32("vote_option4", value); } + public byte VoteOption4 { get => (byte)Accessor.GetInt32("vote_option4"); set => Accessor.SetInt32("vote_option4", value); } - public byte VoteOption5 - { get => (byte)Accessor.GetInt32("vote_option5"); set => Accessor.SetInt32("vote_option5", value); } + public byte VoteOption5 { get => (byte)Accessor.GetInt32("vote_option5"); set => Accessor.SetInt32("vote_option5", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteEndedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteEndedImpl.cs index 32016d917..8bdedd0cd 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteEndedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteEndedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventVoteEndedImpl : GameEvent, EventVoteEnded { - public EventVoteEndedImpl(nint address) : base(address) - { - } + public EventVoteEndedImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteFailedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteFailedImpl.cs index 8d768988a..d713da3ca 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteFailedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteFailedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,10 +10,9 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventVoteFailedImpl : GameEvent, EventVoteFailed { - public EventVoteFailedImpl(nint address) : base(address) - { - } + public EventVoteFailedImpl( nint address ) : base(address) + { + } - public byte Team - { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } + public byte Team { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteOptionsImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteOptionsImpl.cs index 0b80e809f..3cb354926 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteOptionsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteOptionsImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,26 +10,20 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventVoteOptionsImpl : GameEvent, EventVoteOptions { - public EventVoteOptionsImpl(nint address) : base(address) - { - } + public EventVoteOptionsImpl( nint address ) : base(address) + { + } - // Number of options - up to MAX_VOTE_OPTIONS - public byte Count - { get => (byte)Accessor.GetInt32("count"); set => Accessor.SetInt32("count", value); } + // Number of options - up to MAX_VOTE_OPTIONS + public byte Count { get => (byte)Accessor.GetInt32("count"); set => Accessor.SetInt32("count", value); } - public string Option1 - { get => Accessor.GetString("option1"); set => Accessor.SetString("option1", value); } + public string Option1 { get => Accessor.GetString("option1"); set => Accessor.SetString("option1", value); } - public string Option2 - { get => Accessor.GetString("option2"); set => Accessor.SetString("option2", value); } + public string Option2 { get => Accessor.GetString("option2"); set => Accessor.SetString("option2", value); } - public string Option3 - { get => Accessor.GetString("option3"); set => Accessor.SetString("option3", value); } + public string Option3 { get => Accessor.GetString("option3"); set => Accessor.SetString("option3", value); } - public string Option4 - { get => Accessor.GetString("option4"); set => Accessor.SetString("option4", value); } + public string Option4 { get => Accessor.GetString("option4"); set => Accessor.SetString("option4", value); } - public string Option5 - { get => Accessor.GetString("option5"); set => Accessor.SetString("option5", value); } + public string Option5 { get => Accessor.GetString("option5"); set => Accessor.SetString("option5", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVotePassedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVotePassedImpl.cs index fe7abfbc2..a4709fb41 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVotePassedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVotePassedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,16 +10,13 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventVotePassedImpl : GameEvent, EventVotePassed { - public EventVotePassedImpl(nint address) : base(address) - { - } + public EventVotePassedImpl( nint address ) : base(address) + { + } - public string Details - { get => Accessor.GetString("details"); set => Accessor.SetString("details", value); } + public string Details { get => Accessor.GetString("details"); set => Accessor.SetString("details", value); } - public string Param1 - { get => Accessor.GetString("param1"); set => Accessor.SetString("param1", value); } + public string Param1 { get => Accessor.GetString("param1"); set => Accessor.SetString("param1", value); } - public byte Team - { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } + public byte Team { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteStartedImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteStartedImpl.cs index 825362ab3..dc9d7d24c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteStartedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventVoteStartedImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,23 +10,18 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventVoteStartedImpl : GameEvent, EventVoteStarted { - public EventVoteStartedImpl(nint address) : base(address) - { - } + public EventVoteStartedImpl( nint address ) : base(address) + { + } - public string Issue - { get => Accessor.GetString("issue"); set => Accessor.SetString("issue", value); } + public string Issue { get => Accessor.GetString("issue"); set => Accessor.SetString("issue", value); } - public string Param1 - { get => Accessor.GetString("param1"); set => Accessor.SetString("param1", value); } + public string Param1 { get => Accessor.GetString("param1"); set => Accessor.SetString("param1", value); } - public string VoteData - { get => Accessor.GetString("votedata"); set => Accessor.SetString("votedata", value); } + public string VoteData { get => Accessor.GetString("votedata"); set => Accessor.SetString("votedata", value); } - public byte Team - { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } + public byte Team { get => (byte)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } - // entity id of the player who initiated the vote - public int Initiator - { get => Accessor.GetInt32("initiator"); set => Accessor.SetInt32("initiator", value); } + // entity id of the player who initiated the vote + public int Initiator { get => Accessor.GetInt32("initiator"); set => Accessor.SetInt32("initiator", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWarmupEndImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWarmupEndImpl.cs index 535ff4335..b9eb96163 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWarmupEndImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWarmupEndImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventWarmupEndImpl : GameEvent, EventWarmupEnd { - public EventWarmupEndImpl(nint address) : base(address) - { - } + public EventWarmupEndImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponFireImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponFireImpl.cs index 655345d14..2753a1066 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponFireImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponFireImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,27 +12,21 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventWeaponFireImpl : GameEvent, EventWeaponFire { - public EventWeaponFireImpl(nint address) : base(address) - { - } + public EventWeaponFireImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // weapon name used - public string Weapon - { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } + // weapon name used + public string Weapon { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } - // is weapon silenced - public bool Silenced - { get => Accessor.GetBool("silenced"); set => Accessor.SetBool("silenced", value); } + // is weapon silenced + public bool Silenced { get => Accessor.GetBool("silenced"); set => Accessor.SetBool("silenced", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponFireOnEmptyImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponFireOnEmptyImpl.cs index 5f75145f6..03407b019 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponFireOnEmptyImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponFireOnEmptyImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,23 +12,18 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventWeaponFireOnEmptyImpl : GameEvent, EventWeaponFireOnEmpty { - public EventWeaponFireOnEmptyImpl(nint address) : base(address) - { - } + public EventWeaponFireOnEmptyImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // weapon name used - public string Weapon - { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } + // weapon name used + public string Weapon { get => Accessor.GetString("weapon"); set => Accessor.SetString("weapon", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponReloadImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponReloadImpl.cs index 43c783cb4..e6a73a3a1 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponReloadImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponReloadImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventWeaponReloadImpl : GameEvent, EventWeaponReload { - public EventWeaponReloadImpl(nint address) : base(address) - { - } + public EventWeaponReloadImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponZoomImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponZoomImpl.cs index 72147da5e..22c702618 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponZoomImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponZoomImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventWeaponZoomImpl : GameEvent, EventWeaponZoom { - public EventWeaponZoomImpl(nint address) : base(address) - { - } + public EventWeaponZoomImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponZoomRifleImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponZoomRifleImpl.cs index b2db8fd17..cf09d4074 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponZoomRifleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponZoomRifleImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,19 +12,15 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventWeaponZoomRifleImpl : GameEvent, EventWeaponZoomRifle { - public EventWeaponZoomRifleImpl(nint address) : base(address) - { - } + public EventWeaponZoomRifleImpl( nint address ) : base(address) + { + } - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponhudSelectionImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponhudSelectionImpl.cs index 9262593c3..dc69c52af 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponhudSelectionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWeaponhudSelectionImpl.cs @@ -1,8 +1,7 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,31 +12,25 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventWeaponhudSelectionImpl : GameEvent, EventWeaponhudSelection { - public EventWeaponhudSelectionImpl(nint address) : base(address) - { - } + public EventWeaponhudSelectionImpl( nint address ) : base(address) + { + } - // Player who this event applies to - public CCSPlayerController UserIdController - { get => Accessor.GetPlayerController("userid"); } + // Player who this event applies to + public CCSPlayerController UserIdController { get => Accessor.GetPlayerController("userid"); } - // Player who this event applies to - public CCSPlayerPawn UserIdPawn - { get => Accessor.GetPlayerPawn("userid"); } + // Player who this event applies to + public CCSPlayerPawn UserIdPawn { get => Accessor.GetPlayerPawn("userid"); } - // Player who this event applies to - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } + // Player who this event applies to + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } - // Player who this event applies to - public int UserId - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + // Player who this event applies to + public int UserId { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - // EWeaponHudSelectionMode (switch / pickup / drop) - public byte Mode - { get => (byte)Accessor.GetInt32("mode"); set => Accessor.SetInt32("mode", value); } + // EWeaponHudSelectionMode (switch / pickup / drop) + public byte Mode { get => (byte)Accessor.GetInt32("mode"); set => Accessor.SetInt32("mode", value); } - // Weapon entity index - public int EntIndex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + // Weapon entity index + public int EntIndex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWriteGameTitledataImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWriteGameTitledataImpl.cs index 8af5fb976..1cb06dce5 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWriteGameTitledataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWriteGameTitledataImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -14,11 +11,10 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventWriteGameTitledataImpl : GameEvent, EventWriteGameTitledata { - public EventWriteGameTitledataImpl(nint address) : base(address) - { - } + public EventWriteGameTitledataImpl( nint address ) : base(address) + { + } - // Controller id of user - public short ControllerId - { get => (short)Accessor.GetInt32("controllerId"); set => Accessor.SetInt32("controllerId", value); } + // Controller id of user + public short ControllerId { get => (short)Accessor.GetInt32("controllerId"); set => Accessor.SetInt32("controllerId", value); } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWriteProfileDataImpl.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWriteProfileDataImpl.cs index c1e870b58..3c6f3c26b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWriteProfileDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Classes/EventWriteProfileDataImpl.cs @@ -1,8 +1,5 @@ using SwiftlyS2.Core.GameEvents; -using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.GameEventDefinitions; -using SwiftlyS2.Shared.Players; namespace SwiftlyS2.Core.GameEventDefinitions; @@ -13,7 +10,7 @@ namespace SwiftlyS2.Core.GameEventDefinitions; internal class EventWriteProfileDataImpl : GameEvent, EventWriteProfileData { - public EventWriteProfileDataImpl(nint address) : base(address) - { - } + public EventWriteProfileDataImpl( nint address ) : base(address) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementEarned.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementEarned.cs index 32fdbebea..7e31edb5c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementEarned.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementEarned.cs @@ -1,32 +1,31 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "achievement_earned" /// -public interface EventAchievementEarned : IGameEvent { +public interface EventAchievementEarned : IGameEvent +{ - static EventAchievementEarned IGameEvent.Create(nint address) => new EventAchievementEarnedImpl(address); + static EventAchievementEarned IGameEvent.Create( nint address ) => new EventAchievementEarnedImpl(address); - static string IGameEvent.GetName() => "achievement_earned"; + static string IGameEvent.GetName() => "achievement_earned"; - static uint IGameEvent.GetHash() => 0xDA3B5BA6u; - /// - /// entindex of the player - ///
- /// type: player_controller - ///
- int Player { get; set; } + static uint IGameEvent.GetHash() => 0xDA3B5BA6u; + /// + /// entindex of the player + ///
+ /// type: player_controller + ///
+ public int Player { get; set; } - /// - /// achievement ID - ///
- /// type: short - ///
- short Achievement { get; set; } + /// + /// achievement ID + ///
+ /// type: short + ///
+ public short Achievement { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementEarnedLocal.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementEarnedLocal.cs index 42b3b62c6..e7114788d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementEarnedLocal.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementEarnedLocal.cs @@ -1,32 +1,31 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "achievement_earned_local" /// -public interface EventAchievementEarnedLocal : IGameEvent { +public interface EventAchievementEarnedLocal : IGameEvent +{ - static EventAchievementEarnedLocal IGameEvent.Create(nint address) => new EventAchievementEarnedLocalImpl(address); + static EventAchievementEarnedLocal IGameEvent.Create( nint address ) => new EventAchievementEarnedLocalImpl(address); - static string IGameEvent.GetName() => "achievement_earned_local"; + static string IGameEvent.GetName() => "achievement_earned_local"; - static uint IGameEvent.GetHash() => 0x106FCE0Au; - /// - /// achievement ID - ///
- /// type: short - ///
- short Achievement { get; set; } + static uint IGameEvent.GetHash() => 0x106FCE0Au; + /// + /// achievement ID + ///
+ /// type: short + ///
+ public short Achievement { get; set; } - /// - /// splitscreen ID - ///
- /// type: short - ///
- short SplitScreenPlayer { get; set; } + /// + /// splitscreen ID + ///
+ /// type: short + ///
+ public short SplitScreenPlayer { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementEvent.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementEvent.cs index 21851c40f..2f0df54a0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementEvent.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementEvent.cs @@ -1,39 +1,38 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "achievement_event" /// -public interface EventAchievementEvent : IGameEvent { - - static EventAchievementEvent IGameEvent.Create(nint address) => new EventAchievementEventImpl(address); - - static string IGameEvent.GetName() => "achievement_event"; - - static uint IGameEvent.GetHash() => 0x00F01BDFu; - /// - /// non-localized name of achievement - ///
- /// type: string - ///
- string AchievementName { get; set; } - - /// - /// # of steps toward achievement - ///
- /// type: short - ///
- short CurVal { get; set; } - - /// - /// total # of steps in achievement - ///
- /// type: short - ///
- short MaxVal { get; set; } +public interface EventAchievementEvent : IGameEvent +{ + + static EventAchievementEvent IGameEvent.Create( nint address ) => new EventAchievementEventImpl(address); + + static string IGameEvent.GetName() => "achievement_event"; + + static uint IGameEvent.GetHash() => 0x00F01BDFu; + /// + /// non-localized name of achievement + ///
+ /// type: string + ///
+ public string AchievementName { get; set; } + + /// + /// # of steps toward achievement + ///
+ /// type: short + ///
+ public short CurVal { get; set; } + + /// + /// total # of steps in achievement + ///
+ /// type: short + ///
+ public short MaxVal { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementInfoLoaded.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementInfoLoaded.cs index 1d1328f69..05b21a20f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementInfoLoaded.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementInfoLoaded.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "achievement_info_loaded" /// -public interface EventAchievementInfoLoaded : IGameEvent { +public interface EventAchievementInfoLoaded : IGameEvent +{ - static EventAchievementInfoLoaded IGameEvent.Create(nint address) => new EventAchievementInfoLoadedImpl(address); + static EventAchievementInfoLoaded IGameEvent.Create( nint address ) => new EventAchievementInfoLoadedImpl(address); - static string IGameEvent.GetName() => "achievement_info_loaded"; + static string IGameEvent.GetName() => "achievement_info_loaded"; - static uint IGameEvent.GetHash() => 0x724EE32Fu; + static uint IGameEvent.GetHash() => 0x724EE32Fu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementWriteFailed.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementWriteFailed.cs index 31a2463b3..bbb70c0e4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementWriteFailed.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAchievementWriteFailed.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "achievement_write_failed" /// -public interface EventAchievementWriteFailed : IGameEvent { +public interface EventAchievementWriteFailed : IGameEvent +{ - static EventAchievementWriteFailed IGameEvent.Create(nint address) => new EventAchievementWriteFailedImpl(address); + static EventAchievementWriteFailed IGameEvent.Create( nint address ) => new EventAchievementWriteFailedImpl(address); - static string IGameEvent.GetName() => "achievement_write_failed"; + static string IGameEvent.GetName() => "achievement_write_failed"; - static uint IGameEvent.GetHash() => 0x271251F8u; + static uint IGameEvent.GetHash() => 0x271251F8u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAddBulletHitMarker.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAddBulletHitMarker.cs index 5e2e7b84c..88710d353 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAddBulletHitMarker.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAddBulletHitMarker.cs @@ -1,94 +1,94 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "add_bullet_hit_marker" /// -public interface EventAddBulletHitMarker : IGameEvent { - - static EventAddBulletHitMarker IGameEvent.Create(nint address) => new EventAddBulletHitMarkerImpl(address); - - static string IGameEvent.GetName() => "add_bullet_hit_marker"; - - static uint IGameEvent.GetHash() => 0x6CB6A2A2u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short Bone { get; set; } - - /// - /// type: short - /// - short PosX { get; set; } - - /// - /// type: short - /// - short PosY { get; set; } - - /// - /// type: short - /// - short PosZ { get; set; } - - /// - /// type: short - /// - short AngX { get; set; } - - /// - /// type: short - /// - short AngY { get; set; } - - /// - /// type: short - /// - short AngZ { get; set; } - - /// - /// type: short - /// - short StartX { get; set; } - - /// - /// type: short - /// - short StartY { get; set; } - - /// - /// type: short - /// - short StartZ { get; set; } - - /// - /// type: bool - /// - bool Hit { get; set; } +public interface EventAddBulletHitMarker : IGameEvent +{ + + static EventAddBulletHitMarker IGameEvent.Create( nint address ) => new EventAddBulletHitMarkerImpl(address); + + static string IGameEvent.GetName() => "add_bullet_hit_marker"; + + static uint IGameEvent.GetHash() => 0x6CB6A2A2u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short Bone { get; set; } + + /// + /// type: short + /// + public short PosX { get; set; } + + /// + /// type: short + /// + public short PosY { get; set; } + + /// + /// type: short + /// + public short PosZ { get; set; } + + /// + /// type: short + /// + public short AngX { get; set; } + + /// + /// type: short + /// + public short AngY { get; set; } + + /// + /// type: short + /// + public short AngZ { get; set; } + + /// + /// type: short + /// + public short StartX { get; set; } + + /// + /// type: short + /// + public short StartY { get; set; } + + /// + /// type: short + /// + public short StartZ { get; set; } + + /// + /// type: bool + /// + public bool Hit { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAddPlayerSonarIcon.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAddPlayerSonarIcon.cs index 5092b8984..dd77a6722 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAddPlayerSonarIcon.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAddPlayerSonarIcon.cs @@ -1,54 +1,54 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "add_player_sonar_icon" /// -public interface EventAddPlayerSonarIcon : IGameEvent { - - static EventAddPlayerSonarIcon IGameEvent.Create(nint address) => new EventAddPlayerSonarIconImpl(address); - - static string IGameEvent.GetName() => "add_player_sonar_icon"; - - static uint IGameEvent.GetHash() => 0x7B807538u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: float - /// - float PosX { get; set; } - - /// - /// type: float - /// - float PosY { get; set; } - - /// - /// type: float - /// - float PosZ { get; set; } +public interface EventAddPlayerSonarIcon : IGameEvent +{ + + static EventAddPlayerSonarIcon IGameEvent.Create( nint address ) => new EventAddPlayerSonarIconImpl(address); + + static string IGameEvent.GetName() => "add_player_sonar_icon"; + + static uint IGameEvent.GetHash() => 0x7B807538u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: float + /// + public float PosX { get; set; } + + /// + /// type: float + /// + public float PosY { get; set; } + + /// + /// type: float + /// + public float PosZ { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAmmoPickup.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAmmoPickup.cs index b3d30ec0c..213c02d81 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAmmoPickup.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAmmoPickup.cs @@ -1,53 +1,53 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "ammo_pickup" /// -public interface EventAmmoPickup : IGameEvent { - - static EventAmmoPickup IGameEvent.Create(nint address) => new EventAmmoPickupImpl(address); - - static string IGameEvent.GetName() => "ammo_pickup"; - - static uint IGameEvent.GetHash() => 0x374B5BCCu; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' - ///
- /// type: string - ///
- string Item { get; set; } - - /// - /// the weapon entindex - ///
- /// type: long - ///
- int Index { get; set; } +public interface EventAmmoPickup : IGameEvent +{ + + static EventAmmoPickup IGameEvent.Create( nint address ) => new EventAmmoPickupImpl(address); + + static string IGameEvent.GetName() => "ammo_pickup"; + + static uint IGameEvent.GetHash() => 0x374B5BCCu; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' + ///
+ /// type: string + ///
+ public string Item { get; set; } + + /// + /// the weapon entindex + ///
+ /// type: long + ///
+ public int Index { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAmmoRefill.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAmmoRefill.cs index fddc27d98..839b3e8a8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAmmoRefill.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAmmoRefill.cs @@ -1,44 +1,44 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "ammo_refill" /// -public interface EventAmmoRefill : IGameEvent { - - static EventAmmoRefill IGameEvent.Create(nint address) => new EventAmmoRefillImpl(address); - - static string IGameEvent.GetName() => "ammo_refill"; - - static uint IGameEvent.GetHash() => 0x65179124u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: bool - /// - bool Success { get; set; } +public interface EventAmmoRefill : IGameEvent +{ + + static EventAmmoRefill IGameEvent.Create( nint address ) => new EventAmmoRefillImpl(address); + + static string IGameEvent.GetName() => "ammo_refill"; + + static uint IGameEvent.GetHash() => 0x65179124u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: bool + /// + public bool Success { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAnnouncePhaseEnd.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAnnouncePhaseEnd.cs index fe4df703d..21b6e533d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAnnouncePhaseEnd.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventAnnouncePhaseEnd.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "announce_phase_end" /// -public interface EventAnnouncePhaseEnd : IGameEvent { +public interface EventAnnouncePhaseEnd : IGameEvent +{ - static EventAnnouncePhaseEnd IGameEvent.Create(nint address) => new EventAnnouncePhaseEndImpl(address); + static EventAnnouncePhaseEnd IGameEvent.Create( nint address ) => new EventAnnouncePhaseEndImpl(address); - static string IGameEvent.GetName() => "announce_phase_end"; + static string IGameEvent.GetName() => "announce_phase_end"; - static uint IGameEvent.GetHash() => 0x5063C41Cu; + static uint IGameEvent.GetHash() => 0x5063C41Cu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBeginNewMatch.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBeginNewMatch.cs index cfb8feac2..1bc1d970d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBeginNewMatch.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBeginNewMatch.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "begin_new_match" /// -public interface EventBeginNewMatch : IGameEvent { +public interface EventBeginNewMatch : IGameEvent +{ - static EventBeginNewMatch IGameEvent.Create(nint address) => new EventBeginNewMatchImpl(address); + static EventBeginNewMatch IGameEvent.Create( nint address ) => new EventBeginNewMatchImpl(address); - static string IGameEvent.GetName() => "begin_new_match"; + static string IGameEvent.GetName() => "begin_new_match"; - static uint IGameEvent.GetHash() => 0xE804A3CDu; + static uint IGameEvent.GetHash() => 0xE804A3CDu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombAbortdefuse.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombAbortdefuse.cs index dd16a6d9d..a32e5cd0f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombAbortdefuse.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombAbortdefuse.cs @@ -1,43 +1,43 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bomb_abortdefuse" /// -public interface EventBombAbortdefuse : IGameEvent { - - static EventBombAbortdefuse IGameEvent.Create(nint address) => new EventBombAbortdefuseImpl(address); - - static string IGameEvent.GetName() => "bomb_abortdefuse"; - - static uint IGameEvent.GetHash() => 0x73B79332u; - /// - /// player who was defusing - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who was defusing - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who was defusing - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who was defusing - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } +public interface EventBombAbortdefuse : IGameEvent +{ + + static EventBombAbortdefuse IGameEvent.Create( nint address ) => new EventBombAbortdefuseImpl(address); + + static string IGameEvent.GetName() => "bomb_abortdefuse"; + + static uint IGameEvent.GetHash() => 0x73B79332u; + /// + /// player who was defusing + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who was defusing + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who was defusing + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who was defusing + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombAbortplant.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombAbortplant.cs index 7d67f1de1..190ee5b8e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombAbortplant.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombAbortplant.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bomb_abortplant" /// -public interface EventBombAbortplant : IGameEvent { - - static EventBombAbortplant IGameEvent.Create(nint address) => new EventBombAbortplantImpl(address); - - static string IGameEvent.GetName() => "bomb_abortplant"; - - static uint IGameEvent.GetHash() => 0x7F1DB601u; - /// - /// player who is planting the bomb - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who is planting the bomb - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who is planting the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who is planting the bomb - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// bombsite index - ///
- /// type: short - ///
- short Site { get; set; } +public interface EventBombAbortplant : IGameEvent +{ + + static EventBombAbortplant IGameEvent.Create( nint address ) => new EventBombAbortplantImpl(address); + + static string IGameEvent.GetName() => "bomb_abortplant"; + + static uint IGameEvent.GetHash() => 0x7F1DB601u; + /// + /// player who is planting the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who is planting the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who is planting the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who is planting the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// bombsite index + ///
+ /// type: short + ///
+ public short Site { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombBeep.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombBeep.cs index 580a1d6e4..4c7fd2cde 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombBeep.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombBeep.cs @@ -1,25 +1,24 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bomb_beep" /// -public interface EventBombBeep : IGameEvent { +public interface EventBombBeep : IGameEvent +{ - static EventBombBeep IGameEvent.Create(nint address) => new EventBombBeepImpl(address); + static EventBombBeep IGameEvent.Create( nint address ) => new EventBombBeepImpl(address); - static string IGameEvent.GetName() => "bomb_beep"; + static string IGameEvent.GetName() => "bomb_beep"; - static uint IGameEvent.GetHash() => 0x056A0D22u; - /// - /// c4 entity - ///
- /// type: long - ///
- int EntIndex { get; set; } + static uint IGameEvent.GetHash() => 0x056A0D22u; + /// + /// c4 entity + ///
+ /// type: long + ///
+ public int EntIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombBegindefuse.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombBegindefuse.cs index 3a77301d9..f7c572a89 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombBegindefuse.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombBegindefuse.cs @@ -1,48 +1,48 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bomb_begindefuse" /// -public interface EventBombBegindefuse : IGameEvent { - - static EventBombBegindefuse IGameEvent.Create(nint address) => new EventBombBegindefuseImpl(address); - - static string IGameEvent.GetName() => "bomb_begindefuse"; - - static uint IGameEvent.GetHash() => 0xC3C7D299u; - /// - /// player who is defusing - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who is defusing - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who is defusing - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who is defusing - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: bool - /// - bool HasKit { get; set; } +public interface EventBombBegindefuse : IGameEvent +{ + + static EventBombBegindefuse IGameEvent.Create( nint address ) => new EventBombBegindefuseImpl(address); + + static string IGameEvent.GetName() => "bomb_begindefuse"; + + static uint IGameEvent.GetHash() => 0xC3C7D299u; + /// + /// player who is defusing + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who is defusing + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who is defusing + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who is defusing + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: bool + /// + public bool HasKit { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombBeginplant.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombBeginplant.cs index 9b9ce0048..eb5d446ca 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombBeginplant.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombBeginplant.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bomb_beginplant" /// -public interface EventBombBeginplant : IGameEvent { - - static EventBombBeginplant IGameEvent.Create(nint address) => new EventBombBeginplantImpl(address); - - static string IGameEvent.GetName() => "bomb_beginplant"; - - static uint IGameEvent.GetHash() => 0x7DD410C4u; - /// - /// player who is planting the bomb - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who is planting the bomb - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who is planting the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who is planting the bomb - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// bombsite index - ///
- /// type: short - ///
- short Site { get; set; } +public interface EventBombBeginplant : IGameEvent +{ + + static EventBombBeginplant IGameEvent.Create( nint address ) => new EventBombBeginplantImpl(address); + + static string IGameEvent.GetName() => "bomb_beginplant"; + + static uint IGameEvent.GetHash() => 0x7DD410C4u; + /// + /// player who is planting the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who is planting the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who is planting the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who is planting the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// bombsite index + ///
+ /// type: short + ///
+ public short Site { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombDefused.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombDefused.cs index c8472da53..0804ea116 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombDefused.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombDefused.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bomb_defused" /// -public interface EventBombDefused : IGameEvent { - - static EventBombDefused IGameEvent.Create(nint address) => new EventBombDefusedImpl(address); - - static string IGameEvent.GetName() => "bomb_defused"; - - static uint IGameEvent.GetHash() => 0xD4FCB0A4u; - /// - /// player who defused the bomb - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who defused the bomb - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who defused the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who defused the bomb - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// bombsite index - ///
- /// type: short - ///
- short Site { get; set; } +public interface EventBombDefused : IGameEvent +{ + + static EventBombDefused IGameEvent.Create( nint address ) => new EventBombDefusedImpl(address); + + static string IGameEvent.GetName() => "bomb_defused"; + + static uint IGameEvent.GetHash() => 0xD4FCB0A4u; + /// + /// player who defused the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who defused the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who defused the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who defused the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// bombsite index + ///
+ /// type: short + ///
+ public short Site { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombDropped.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombDropped.cs index 5f6404903..d2b616f1a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombDropped.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombDropped.cs @@ -1,48 +1,48 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bomb_dropped" /// -public interface EventBombDropped : IGameEvent { - - static EventBombDropped IGameEvent.Create(nint address) => new EventBombDroppedImpl(address); - - static string IGameEvent.GetName() => "bomb_dropped"; - - static uint IGameEvent.GetHash() => 0x399275B4u; - /// - /// player who dropped the bomb - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who dropped the bomb - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who dropped the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who dropped the bomb - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: long - /// - int EntIndex { get; set; } +public interface EventBombDropped : IGameEvent +{ + + static EventBombDropped IGameEvent.Create( nint address ) => new EventBombDroppedImpl(address); + + static string IGameEvent.GetName() => "bomb_dropped"; + + static uint IGameEvent.GetHash() => 0x399275B4u; + /// + /// player who dropped the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who dropped the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who dropped the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who dropped the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: long + /// + public int EntIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombExploded.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombExploded.cs index 937ae4a7b..3ac3b7ccd 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombExploded.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombExploded.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bomb_exploded" /// -public interface EventBombExploded : IGameEvent { - - static EventBombExploded IGameEvent.Create(nint address) => new EventBombExplodedImpl(address); - - static string IGameEvent.GetName() => "bomb_exploded"; - - static uint IGameEvent.GetHash() => 0x9C543261u; - /// - /// player who planted the bomb - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who planted the bomb - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who planted the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who planted the bomb - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// bombsite index - ///
- /// type: short - ///
- short Site { get; set; } +public interface EventBombExploded : IGameEvent +{ + + static EventBombExploded IGameEvent.Create( nint address ) => new EventBombExplodedImpl(address); + + static string IGameEvent.GetName() => "bomb_exploded"; + + static uint IGameEvent.GetHash() => 0x9C543261u; + /// + /// player who planted the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who planted the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who planted the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who planted the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// bombsite index + ///
+ /// type: short + ///
+ public short Site { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombPickup.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombPickup.cs index 7d6aead1a..2647cb0cd 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombPickup.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombPickup.cs @@ -1,43 +1,43 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bomb_pickup" /// -public interface EventBombPickup : IGameEvent { - - static EventBombPickup IGameEvent.Create(nint address) => new EventBombPickupImpl(address); - - static string IGameEvent.GetName() => "bomb_pickup"; - - static uint IGameEvent.GetHash() => 0x97693BEEu; - /// - /// player pawn who picked up the bomb - ///
- /// type: player_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player pawn who picked up the bomb - ///
- /// type: player_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player pawn who picked up the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player pawn who picked up the bomb - ///
- /// type: player_pawn - ///
- int UserId { get; set; } +public interface EventBombPickup : IGameEvent +{ + + static EventBombPickup IGameEvent.Create( nint address ) => new EventBombPickupImpl(address); + + static string IGameEvent.GetName() => "bomb_pickup"; + + static uint IGameEvent.GetHash() => 0x97693BEEu; + /// + /// player pawn who picked up the bomb + ///
+ /// type: player_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player pawn who picked up the bomb + ///
+ /// type: player_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player pawn who picked up the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player pawn who picked up the bomb + ///
+ /// type: player_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombPlanted.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombPlanted.cs index ed426bc50..54cecf45a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombPlanted.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBombPlanted.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bomb_planted" /// -public interface EventBombPlanted : IGameEvent { - - static EventBombPlanted IGameEvent.Create(nint address) => new EventBombPlantedImpl(address); - - static string IGameEvent.GetName() => "bomb_planted"; - - static uint IGameEvent.GetHash() => 0x4E704C3Eu; - /// - /// player who planted the bomb - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who planted the bomb - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who planted the bomb - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who planted the bomb - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// bombsite index - ///
- /// type: short - ///
- short Site { get; set; } +public interface EventBombPlanted : IGameEvent +{ + + static EventBombPlanted IGameEvent.Create( nint address ) => new EventBombPlantedImpl(address); + + static string IGameEvent.GetName() => "bomb_planted"; + + static uint IGameEvent.GetHash() => 0x4E704C3Eu; + /// + /// player who planted the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who planted the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who planted the bomb + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who planted the bomb + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// bombsite index + ///
+ /// type: short + ///
+ public short Site { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBonusUpdated.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBonusUpdated.cs index 281cefebf..9ff6b6ef3 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBonusUpdated.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBonusUpdated.cs @@ -1,38 +1,37 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bonus_updated" /// -public interface EventBonusUpdated : IGameEvent { +public interface EventBonusUpdated : IGameEvent +{ - static EventBonusUpdated IGameEvent.Create(nint address) => new EventBonusUpdatedImpl(address); + static EventBonusUpdated IGameEvent.Create( nint address ) => new EventBonusUpdatedImpl(address); - static string IGameEvent.GetName() => "bonus_updated"; + static string IGameEvent.GetName() => "bonus_updated"; - static uint IGameEvent.GetHash() => 0x80BE746Cu; - /// - /// type: short - /// - short NumAdvanced { get; set; } + static uint IGameEvent.GetHash() => 0x80BE746Cu; + /// + /// type: short + /// + public short NumAdvanced { get; set; } - /// - /// type: short - /// - short NumBronze { get; set; } + /// + /// type: short + /// + public short NumBronze { get; set; } - /// - /// type: short - /// - short NumSilver { get; set; } + /// + /// type: short + /// + public short NumSilver { get; set; } - /// - /// type: short - /// - short NumGold { get; set; } + /// + /// type: short + /// + public short NumGold { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBotTakeover.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBotTakeover.cs index eddfc5cfb..9cabb7023 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBotTakeover.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBotTakeover.cs @@ -1,59 +1,59 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bot_takeover" /// -public interface EventBotTakeover : IGameEvent { - - static EventBotTakeover IGameEvent.Create(nint address) => new EventBotTakeoverImpl(address); - - static string IGameEvent.GetName() => "bot_takeover"; - - static uint IGameEvent.GetHash() => 0x6F5C9FCAu; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: player_controller - /// - int BotID { get; set; } - - /// - /// type: float - /// - float P { get; set; } - - /// - /// type: float - /// - float Y { get; set; } - - /// - /// type: float - /// - float R { get; set; } +public interface EventBotTakeover : IGameEvent +{ + + static EventBotTakeover IGameEvent.Create( nint address ) => new EventBotTakeoverImpl(address); + + static string IGameEvent.GetName() => "bot_takeover"; + + static uint IGameEvent.GetHash() => 0x6F5C9FCAu; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: player_controller + /// + public int BotID { get; set; } + + /// + /// type: float + /// + public float P { get; set; } + + /// + /// type: float + /// + public float Y { get; set; } + + /// + /// type: float + /// + public float R { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBreakBreakable.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBreakBreakable.cs index 7f8b7d68f..f56f8b68b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBreakBreakable.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBreakBreakable.cs @@ -1,51 +1,51 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "break_breakable" /// -public interface EventBreakBreakable : IGameEvent { - - static EventBreakBreakable IGameEvent.Create(nint address) => new EventBreakBreakableImpl(address); - - static string IGameEvent.GetName() => "break_breakable"; - - static uint IGameEvent.GetHash() => 0x7CBB3150u; - /// - /// type: long - /// - int EntIndex { get; set; } - - /// - ///
- /// type: player_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_pawn - ///
- int UserId { get; set; } - - /// - /// BREAK_GLASS, BREAK_WOOD, etc - ///
- /// type: byte - ///
- byte Material { get; set; } +public interface EventBreakBreakable : IGameEvent +{ + + static EventBreakBreakable IGameEvent.Create( nint address ) => new EventBreakBreakableImpl(address); + + static string IGameEvent.GetName() => "break_breakable"; + + static uint IGameEvent.GetHash() => 0x7CBB3150u; + /// + /// type: long + /// + public int EntIndex { get; set; } + + /// + ///
+ /// type: player_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_pawn + ///
+ public int UserId { get; set; } + + /// + /// BREAK_GLASS, BREAK_WOOD, etc + ///
+ /// type: byte + ///
+ public byte Material { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBreakProp.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBreakProp.cs index 0f52ff8b7..8715799e9 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBreakProp.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBreakProp.cs @@ -1,59 +1,59 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "break_prop" /// -public interface EventBreakProp : IGameEvent { - - static EventBreakProp IGameEvent.Create(nint address) => new EventBreakPropImpl(address); - - static string IGameEvent.GetName() => "break_prop"; - - static uint IGameEvent.GetHash() => 0x20D10398u; - /// - /// type: long - /// - int EntIndex { get; set; } - - /// - ///
- /// type: player_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_pawn - ///
- int UserId { get; set; } - - /// - /// type: bool - /// - bool PlayerHeld { get; set; } - - /// - /// type: bool - /// - bool PlayerThrown { get; set; } - - /// - /// type: bool - /// - bool PlayerDropped { get; set; } +public interface EventBreakProp : IGameEvent +{ + + static EventBreakProp IGameEvent.Create( nint address ) => new EventBreakPropImpl(address); + + static string IGameEvent.GetName() => "break_prop"; + + static uint IGameEvent.GetHash() => 0x20D10398u; + /// + /// type: long + /// + public int EntIndex { get; set; } + + /// + ///
+ /// type: player_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: bool + /// + public bool PlayerHeld { get; set; } + + /// + /// type: bool + /// + public bool PlayerThrown { get; set; } + + /// + /// type: bool + /// + public bool PlayerDropped { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBrokenBreakable.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBrokenBreakable.cs index e79b2881b..00ef68a05 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBrokenBreakable.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBrokenBreakable.cs @@ -1,51 +1,51 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "broken_breakable" /// -public interface EventBrokenBreakable : IGameEvent { - - static EventBrokenBreakable IGameEvent.Create(nint address) => new EventBrokenBreakableImpl(address); - - static string IGameEvent.GetName() => "broken_breakable"; - - static uint IGameEvent.GetHash() => 0x3EBE8AE8u; - /// - /// type: long - /// - int EntIndex { get; set; } - - /// - ///
- /// type: player_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_pawn - ///
- int UserId { get; set; } - - /// - /// BREAK_GLASS, BREAK_WOOD, etc - ///
- /// type: byte - ///
- byte Material { get; set; } +public interface EventBrokenBreakable : IGameEvent +{ + + static EventBrokenBreakable IGameEvent.Create( nint address ) => new EventBrokenBreakableImpl(address); + + static string IGameEvent.GetName() => "broken_breakable"; + + static uint IGameEvent.GetHash() => 0x3EBE8AE8u; + /// + /// type: long + /// + public int EntIndex { get; set; } + + /// + ///
+ /// type: player_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_pawn + ///
+ public int UserId { get; set; } + + /// + /// BREAK_GLASS, BREAK_WOOD, etc + ///
+ /// type: byte + ///
+ public byte Material { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBulletDamage.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBulletDamage.cs index 68275350a..75ec176ee 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBulletDamage.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBulletDamage.cs @@ -1,186 +1,185 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bullet_damage" /// -public interface EventBulletDamage : IGameEvent { - - static EventBulletDamage IGameEvent.Create(nint address) => new EventBulletDamageImpl(address); - - static string IGameEvent.GetName() => "bullet_damage"; - - static uint IGameEvent.GetHash() => 0xAB7EA51Fu; - /// - /// player index who was hurt - ///
- /// type: player_controller_and_pawn - ///
- int Victim { get; set; } - - /// - /// player index who attacked - ///
- /// type: player_controller_and_pawn - ///
- int Attacker { get; set; } - - /// - /// how far the bullet travelled before it hit the player - ///
- /// type: float - ///
- float Distance { get; set; } - - /// - /// direction vector of the bullet - ///
- /// type: float - ///
- float DamageDirX { get; set; } - - /// - /// direction vector of the bullet - ///
- /// type: float - ///
- float DamageDirY { get; set; } - - /// - /// direction vector of the bullet - ///
- /// type: float - ///
- float DamageDirZ { get; set; } - - /// - /// how many surfaces were penetrated - ///
- /// type: byte - ///
- byte NumPenetrations { get; set; } - - /// - /// was the shooter noscoped? - ///
- /// type: bool - ///
- bool NoScope { get; set; } - - /// - /// was the shooter jumping? - ///
- /// type: bool - ///
- bool InAir { get; set; } - - /// - /// shoot angle x - ///
- /// type: float - ///
- float ShootAngX { get; set; } - - /// - /// shoot angle y - ///
- /// type: float - ///
- float ShootAngY { get; set; } - - /// - /// shoot angle z - ///
- /// type: float - ///
- float ShootAngZ { get; set; } - - /// - /// aim punch x - ///
- /// type: float - ///
- float AimPunchX { get; set; } - - /// - /// aim punch y - ///
- /// type: float - ///
- float AimPunchY { get; set; } - - /// - /// aim punch z - ///
- /// type: float - ///
- float AimPunchZ { get; set; } - - /// - /// attack tick - ///
- /// type: int - ///
- int AttackTickCount { get; set; } - - /// - /// attack frac - ///
- /// type: float - ///
- float AttackTickFrac { get; set; } - - /// - /// render tick - ///
- /// type: int - ///
- int RenderTickCount { get; set; } - - /// - /// render frac - ///
- /// type: float - ///
- float RenderTickFrac { get; set; } - - /// - /// total inaccuracy - ///
- /// type: float - ///
- float InaccuracyTotal { get; set; } - - /// - /// move inaccuracy - ///
- /// type: float - ///
- float InaccuracyMove { get; set; } - - /// - /// air inaccuracy - ///
- /// type: float - ///
- float InaccuracyAir { get; set; } - - /// - /// recoil index. Yes this is really a float. - ///
- /// type: float - ///
- float RecoilIndex { get; set; } - - /// - /// lag compensation type - ///
- /// type: int - ///
- int Type { get; set; } +public interface EventBulletDamage : IGameEvent +{ + + static EventBulletDamage IGameEvent.Create( nint address ) => new EventBulletDamageImpl(address); + + static string IGameEvent.GetName() => "bullet_damage"; + + static uint IGameEvent.GetHash() => 0xAB7EA51Fu; + /// + /// player index who was hurt + ///
+ /// type: player_controller_and_pawn + ///
+ public int Victim { get; set; } + + /// + /// player index who attacked + ///
+ /// type: player_controller_and_pawn + ///
+ public int Attacker { get; set; } + + /// + /// how far the bullet travelled before it hit the player + ///
+ /// type: float + ///
+ public float Distance { get; set; } + + /// + /// direction vector of the bullet + ///
+ /// type: float + ///
+ public float DamageDirX { get; set; } + + /// + /// direction vector of the bullet + ///
+ /// type: float + ///
+ public float DamageDirY { get; set; } + + /// + /// direction vector of the bullet + ///
+ /// type: float + ///
+ public float DamageDirZ { get; set; } + + /// + /// how many surfaces were penetrated + ///
+ /// type: byte + ///
+ public byte NumPenetrations { get; set; } + + /// + /// was the shooter noscoped? + ///
+ /// type: bool + ///
+ public bool NoScope { get; set; } + + /// + /// was the shooter jumping? + ///
+ /// type: bool + ///
+ public bool InAir { get; set; } + + /// + /// shoot angle x + ///
+ /// type: float + ///
+ public float ShootAngX { get; set; } + + /// + /// shoot angle y + ///
+ /// type: float + ///
+ public float ShootAngY { get; set; } + + /// + /// shoot angle z + ///
+ /// type: float + ///
+ public float ShootAngZ { get; set; } + + /// + /// aim punch x + ///
+ /// type: float + ///
+ public float AimPunchX { get; set; } + + /// + /// aim punch y + ///
+ /// type: float + ///
+ public float AimPunchY { get; set; } + + /// + /// aim punch z + ///
+ /// type: float + ///
+ public float AimPunchZ { get; set; } + + /// + /// attack tick + ///
+ /// type: int + ///
+ public int AttackTickCount { get; set; } + + /// + /// attack frac + ///
+ /// type: float + ///
+ public float AttackTickFrac { get; set; } + + /// + /// render tick + ///
+ /// type: int + ///
+ public int RenderTickCount { get; set; } + + /// + /// render frac + ///
+ /// type: float + ///
+ public float RenderTickFrac { get; set; } + + /// + /// total inaccuracy + ///
+ /// type: float + ///
+ public float InaccuracyTotal { get; set; } + + /// + /// move inaccuracy + ///
+ /// type: float + ///
+ public float InaccuracyMove { get; set; } + + /// + /// air inaccuracy + ///
+ /// type: float + ///
+ public float InaccuracyAir { get; set; } + + /// + /// recoil index. Yes this is really a float. + ///
+ /// type: float + ///
+ public float RecoilIndex { get; set; } + + /// + /// lag compensation type + ///
+ /// type: int + ///
+ public int Type { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBulletFlightResolution.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBulletFlightResolution.cs index 3c4d1beaf..a171bc519 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBulletFlightResolution.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBulletFlightResolution.cs @@ -1,84 +1,84 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bullet_flight_resolution" /// -public interface EventBulletFlightResolution : IGameEvent { - - static EventBulletFlightResolution IGameEvent.Create(nint address) => new EventBulletFlightResolutionImpl(address); - - static string IGameEvent.GetName() => "bullet_flight_resolution"; - - static uint IGameEvent.GetHash() => 0xB39BC4E7u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short PosX { get; set; } - - /// - /// type: short - /// - short PosY { get; set; } - - /// - /// type: short - /// - short PosZ { get; set; } - - /// - /// type: short - /// - short AngX { get; set; } - - /// - /// type: short - /// - short AngY { get; set; } - - /// - /// type: short - /// - short AngZ { get; set; } - - /// - /// type: short - /// - short StartX { get; set; } - - /// - /// type: short - /// - short StartY { get; set; } - - /// - /// type: short - /// - short StartZ { get; set; } +public interface EventBulletFlightResolution : IGameEvent +{ + + static EventBulletFlightResolution IGameEvent.Create( nint address ) => new EventBulletFlightResolutionImpl(address); + + static string IGameEvent.GetName() => "bullet_flight_resolution"; + + static uint IGameEvent.GetHash() => 0xB39BC4E7u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short PosX { get; set; } + + /// + /// type: short + /// + public short PosY { get; set; } + + /// + /// type: short + /// + public short PosZ { get; set; } + + /// + /// type: short + /// + public short AngX { get; set; } + + /// + /// type: short + /// + public short AngY { get; set; } + + /// + /// type: short + /// + public short AngZ { get; set; } + + /// + /// type: short + /// + public short StartX { get; set; } + + /// + /// type: short + /// + public short StartY { get; set; } + + /// + /// type: short + /// + public short StartZ { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBulletImpact.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBulletImpact.cs index 539781fcd..fcac65829 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBulletImpact.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBulletImpact.cs @@ -1,54 +1,54 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "bullet_impact" /// -public interface EventBulletImpact : IGameEvent { - - static EventBulletImpact IGameEvent.Create(nint address) => new EventBulletImpactImpl(address); - - static string IGameEvent.GetName() => "bullet_impact"; - - static uint IGameEvent.GetHash() => 0x8B8FCCE8u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: float - /// - float X { get; set; } - - /// - /// type: float - /// - float Y { get; set; } - - /// - /// type: float - /// - float Z { get; set; } +public interface EventBulletImpact : IGameEvent +{ + + static EventBulletImpact IGameEvent.Create( nint address ) => new EventBulletImpactImpl(address); + + static string IGameEvent.GetName() => "bullet_impact"; + + static uint IGameEvent.GetHash() => 0x8B8FCCE8u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: float + /// + public float X { get; set; } + + /// + /// type: float + /// + public float Y { get; set; } + + /// + /// type: float + /// + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBuymenuClose.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBuymenuClose.cs index 11355a7a9..751ffba76 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBuymenuClose.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBuymenuClose.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "buymenu_close" /// -public interface EventBuymenuClose : IGameEvent { +public interface EventBuymenuClose : IGameEvent +{ - static EventBuymenuClose IGameEvent.Create(nint address) => new EventBuymenuCloseImpl(address); + static EventBuymenuClose IGameEvent.Create( nint address ) => new EventBuymenuCloseImpl(address); - static string IGameEvent.GetName() => "buymenu_close"; + static string IGameEvent.GetName() => "buymenu_close"; - static uint IGameEvent.GetHash() => 0xFFC1EF17u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xFFC1EF17u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBuymenuOpen.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBuymenuOpen.cs index f496f4827..f62e2e333 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBuymenuOpen.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBuymenuOpen.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "buymenu_open" /// -public interface EventBuymenuOpen : IGameEvent { +public interface EventBuymenuOpen : IGameEvent +{ - static EventBuymenuOpen IGameEvent.Create(nint address) => new EventBuymenuOpenImpl(address); + static EventBuymenuOpen IGameEvent.Create( nint address ) => new EventBuymenuOpenImpl(address); - static string IGameEvent.GetName() => "buymenu_open"; + static string IGameEvent.GetName() => "buymenu_open"; - static uint IGameEvent.GetHash() => 0x4DB21865u; + static uint IGameEvent.GetHash() => 0x4DB21865u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBuytimeEnded.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBuytimeEnded.cs index ec895de1a..dab1de17f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBuytimeEnded.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventBuytimeEnded.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "buytime_ended" /// -public interface EventBuytimeEnded : IGameEvent { +public interface EventBuytimeEnded : IGameEvent +{ - static EventBuytimeEnded IGameEvent.Create(nint address) => new EventBuytimeEndedImpl(address); + static EventBuytimeEnded IGameEvent.Create( nint address ) => new EventBuytimeEndedImpl(address); - static string IGameEvent.GetName() => "buytime_ended"; + static string IGameEvent.GetName() => "buytime_ended"; - static uint IGameEvent.GetHash() => 0x95E836E5u; + static uint IGameEvent.GetHash() => 0x95E836E5u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCartUpdated.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCartUpdated.cs index b0e84d29b..c9d627b8f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCartUpdated.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCartUpdated.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "cart_updated" /// -public interface EventCartUpdated : IGameEvent { +public interface EventCartUpdated : IGameEvent +{ - static EventCartUpdated IGameEvent.Create(nint address) => new EventCartUpdatedImpl(address); + static EventCartUpdated IGameEvent.Create( nint address ) => new EventCartUpdatedImpl(address); - static string IGameEvent.GetName() => "cart_updated"; + static string IGameEvent.GetName() => "cart_updated"; - static uint IGameEvent.GetHash() => 0x3A4BF24Fu; + static uint IGameEvent.GetHash() => 0x3A4BF24Fu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventChoppersIncomingWarning.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventChoppersIncomingWarning.cs index 4ad3aaf01..e4ffe652c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventChoppersIncomingWarning.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventChoppersIncomingWarning.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "choppers_incoming_warning" /// -public interface EventChoppersIncomingWarning : IGameEvent { +public interface EventChoppersIncomingWarning : IGameEvent +{ - static EventChoppersIncomingWarning IGameEvent.Create(nint address) => new EventChoppersIncomingWarningImpl(address); + static EventChoppersIncomingWarning IGameEvent.Create( nint address ) => new EventChoppersIncomingWarningImpl(address); - static string IGameEvent.GetName() => "choppers_incoming_warning"; + static string IGameEvent.GetName() => "choppers_incoming_warning"; - static uint IGameEvent.GetHash() => 0x68E589D1u; - /// - /// type: bool - /// - bool Global { get; set; } + static uint IGameEvent.GetHash() => 0x68E589D1u; + /// + /// type: bool + /// + public bool Global { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientDisconnect.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientDisconnect.cs index bbbfa2c63..5dd84dc39 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientDisconnect.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientDisconnect.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "client_disconnect" /// -public interface EventClientDisconnect : IGameEvent { +public interface EventClientDisconnect : IGameEvent +{ - static EventClientDisconnect IGameEvent.Create(nint address) => new EventClientDisconnectImpl(address); + static EventClientDisconnect IGameEvent.Create( nint address ) => new EventClientDisconnectImpl(address); - static string IGameEvent.GetName() => "client_disconnect"; + static string IGameEvent.GetName() => "client_disconnect"; - static uint IGameEvent.GetHash() => 0xC714BB79u; + static uint IGameEvent.GetHash() => 0xC714BB79u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientLoadoutChanged.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientLoadoutChanged.cs index b9ed335a5..2935be743 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientLoadoutChanged.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientLoadoutChanged.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "client_loadout_changed" /// -public interface EventClientLoadoutChanged : IGameEvent { +public interface EventClientLoadoutChanged : IGameEvent +{ - static EventClientLoadoutChanged IGameEvent.Create(nint address) => new EventClientLoadoutChangedImpl(address); + static EventClientLoadoutChanged IGameEvent.Create( nint address ) => new EventClientLoadoutChangedImpl(address); - static string IGameEvent.GetName() => "client_loadout_changed"; + static string IGameEvent.GetName() => "client_loadout_changed"; - static uint IGameEvent.GetHash() => 0x2C16C0BAu; + static uint IGameEvent.GetHash() => 0x2C16C0BAu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientsideLessonClosed.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientsideLessonClosed.cs index 3180dbfb3..684ed1f6c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientsideLessonClosed.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientsideLessonClosed.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "clientside_lesson_closed" /// -public interface EventClientsideLessonClosed : IGameEvent { +public interface EventClientsideLessonClosed : IGameEvent +{ - static EventClientsideLessonClosed IGameEvent.Create(nint address) => new EventClientsideLessonClosedImpl(address); + static EventClientsideLessonClosed IGameEvent.Create( nint address ) => new EventClientsideLessonClosedImpl(address); - static string IGameEvent.GetName() => "clientside_lesson_closed"; + static string IGameEvent.GetName() => "clientside_lesson_closed"; - static uint IGameEvent.GetHash() => 0x251ECF23u; - /// - /// type: string - /// - string LessonName { get; set; } + static uint IGameEvent.GetHash() => 0x251ECF23u; + /// + /// type: string + /// + public string LessonName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientsideReloadCustomEcon.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientsideReloadCustomEcon.cs index dd24c0e8f..80e25b77a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientsideReloadCustomEcon.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventClientsideReloadCustomEcon.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "clientside_reload_custom_econ" /// -public interface EventClientsideReloadCustomEcon : IGameEvent { +public interface EventClientsideReloadCustomEcon : IGameEvent +{ - static EventClientsideReloadCustomEcon IGameEvent.Create(nint address) => new EventClientsideReloadCustomEconImpl(address); + static EventClientsideReloadCustomEcon IGameEvent.Create( nint address ) => new EventClientsideReloadCustomEconImpl(address); - static string IGameEvent.GetName() => "clientside_reload_custom_econ"; + static string IGameEvent.GetName() => "clientside_reload_custom_econ"; - static uint IGameEvent.GetHash() => 0x22B74A75u; - /// - /// type: string - /// - string SteamID { get; set; } + static uint IGameEvent.GetHash() => 0x22B74A75u; + /// + /// type: string + /// + public string SteamID { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsGameDisconnected.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsGameDisconnected.cs index ca6de64a7..91011f4fc 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsGameDisconnected.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsGameDisconnected.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "cs_game_disconnected" /// -public interface EventCsGameDisconnected : IGameEvent { +public interface EventCsGameDisconnected : IGameEvent +{ - static EventCsGameDisconnected IGameEvent.Create(nint address) => new EventCsGameDisconnectedImpl(address); + static EventCsGameDisconnected IGameEvent.Create( nint address ) => new EventCsGameDisconnectedImpl(address); - static string IGameEvent.GetName() => "cs_game_disconnected"; + static string IGameEvent.GetName() => "cs_game_disconnected"; - static uint IGameEvent.GetHash() => 0xC1557D00u; + static uint IGameEvent.GetHash() => 0xC1557D00u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsIntermission.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsIntermission.cs index 223f6d1e6..b6a109eff 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsIntermission.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsIntermission.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "cs_intermission" /// -public interface EventCsIntermission : IGameEvent { +public interface EventCsIntermission : IGameEvent +{ - static EventCsIntermission IGameEvent.Create(nint address) => new EventCsIntermissionImpl(address); + static EventCsIntermission IGameEvent.Create( nint address ) => new EventCsIntermissionImpl(address); - static string IGameEvent.GetName() => "cs_intermission"; + static string IGameEvent.GetName() => "cs_intermission"; - static uint IGameEvent.GetHash() => 0x1BDF3E80u; + static uint IGameEvent.GetHash() => 0x1BDF3E80u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsMatchEndRestart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsMatchEndRestart.cs index d08691ff6..88288adbe 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsMatchEndRestart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsMatchEndRestart.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "cs_match_end_restart" /// -public interface EventCsMatchEndRestart : IGameEvent { +public interface EventCsMatchEndRestart : IGameEvent +{ - static EventCsMatchEndRestart IGameEvent.Create(nint address) => new EventCsMatchEndRestartImpl(address); + static EventCsMatchEndRestart IGameEvent.Create( nint address ) => new EventCsMatchEndRestartImpl(address); - static string IGameEvent.GetName() => "cs_match_end_restart"; + static string IGameEvent.GetName() => "cs_match_end_restart"; - static uint IGameEvent.GetHash() => 0xFB2BFA6Fu; + static uint IGameEvent.GetHash() => 0xFB2BFA6Fu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsPreRestart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsPreRestart.cs index 8bbc704e8..48dc468c4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsPreRestart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsPreRestart.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "cs_pre_restart" /// -public interface EventCsPreRestart : IGameEvent { +public interface EventCsPreRestart : IGameEvent +{ - static EventCsPreRestart IGameEvent.Create(nint address) => new EventCsPreRestartImpl(address); + static EventCsPreRestart IGameEvent.Create( nint address ) => new EventCsPreRestartImpl(address); - static string IGameEvent.GetName() => "cs_pre_restart"; + static string IGameEvent.GetName() => "cs_pre_restart"; - static uint IGameEvent.GetHash() => 0xE870A219u; + static uint IGameEvent.GetHash() => 0xE870A219u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsPrevNextSpectator.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsPrevNextSpectator.cs index e1536aa05..6b859860e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsPrevNextSpectator.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsPrevNextSpectator.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "cs_prev_next_spectator" /// -public interface EventCsPrevNextSpectator : IGameEvent { +public interface EventCsPrevNextSpectator : IGameEvent +{ - static EventCsPrevNextSpectator IGameEvent.Create(nint address) => new EventCsPrevNextSpectatorImpl(address); + static EventCsPrevNextSpectator IGameEvent.Create( nint address ) => new EventCsPrevNextSpectatorImpl(address); - static string IGameEvent.GetName() => "cs_prev_next_spectator"; + static string IGameEvent.GetName() => "cs_prev_next_spectator"; - static uint IGameEvent.GetHash() => 0x532CC8E5u; - /// - /// type: bool - /// - bool Next { get; set; } + static uint IGameEvent.GetHash() => 0x532CC8E5u; + /// + /// type: bool + /// + public bool Next { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsRoundFinalBeep.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsRoundFinalBeep.cs index 96b065243..d172c303b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsRoundFinalBeep.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsRoundFinalBeep.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "cs_round_final_beep" /// -public interface EventCsRoundFinalBeep : IGameEvent { +public interface EventCsRoundFinalBeep : IGameEvent +{ - static EventCsRoundFinalBeep IGameEvent.Create(nint address) => new EventCsRoundFinalBeepImpl(address); + static EventCsRoundFinalBeep IGameEvent.Create( nint address ) => new EventCsRoundFinalBeepImpl(address); - static string IGameEvent.GetName() => "cs_round_final_beep"; + static string IGameEvent.GetName() => "cs_round_final_beep"; - static uint IGameEvent.GetHash() => 0x75979130u; + static uint IGameEvent.GetHash() => 0x75979130u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsRoundStartBeep.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsRoundStartBeep.cs index 67262f69d..f1504e705 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsRoundStartBeep.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsRoundStartBeep.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "cs_round_start_beep" /// -public interface EventCsRoundStartBeep : IGameEvent { +public interface EventCsRoundStartBeep : IGameEvent +{ - static EventCsRoundStartBeep IGameEvent.Create(nint address) => new EventCsRoundStartBeepImpl(address); + static EventCsRoundStartBeep IGameEvent.Create( nint address ) => new EventCsRoundStartBeepImpl(address); - static string IGameEvent.GetName() => "cs_round_start_beep"; + static string IGameEvent.GetName() => "cs_round_start_beep"; - static uint IGameEvent.GetHash() => 0x4DB83630u; + static uint IGameEvent.GetHash() => 0x4DB83630u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsWinPanelMatch.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsWinPanelMatch.cs index db9139541..7d21da903 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsWinPanelMatch.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsWinPanelMatch.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "cs_win_panel_match" /// -public interface EventCsWinPanelMatch : IGameEvent { +public interface EventCsWinPanelMatch : IGameEvent +{ - static EventCsWinPanelMatch IGameEvent.Create(nint address) => new EventCsWinPanelMatchImpl(address); + static EventCsWinPanelMatch IGameEvent.Create( nint address ) => new EventCsWinPanelMatchImpl(address); - static string IGameEvent.GetName() => "cs_win_panel_match"; + static string IGameEvent.GetName() => "cs_win_panel_match"; - static uint IGameEvent.GetHash() => 0xEEA464A9u; + static uint IGameEvent.GetHash() => 0xEEA464A9u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsWinPanelRound.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsWinPanelRound.cs index 45ad4c39b..833b1ee12 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsWinPanelRound.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventCsWinPanelRound.cs @@ -1,65 +1,64 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "cs_win_panel_round" /// -public interface EventCsWinPanelRound : IGameEvent { +public interface EventCsWinPanelRound : IGameEvent +{ - static EventCsWinPanelRound IGameEvent.Create(nint address) => new EventCsWinPanelRoundImpl(address); + static EventCsWinPanelRound IGameEvent.Create( nint address ) => new EventCsWinPanelRoundImpl(address); - static string IGameEvent.GetName() => "cs_win_panel_round"; + static string IGameEvent.GetName() => "cs_win_panel_round"; - static uint IGameEvent.GetHash() => 0xFF5D5EC0u; - /// - /// type: bool - /// - bool ShowTimerDefend { get; set; } + static uint IGameEvent.GetHash() => 0xFF5D5EC0u; + /// + /// type: bool + /// + public bool ShowTimerDefend { get; set; } - /// - /// type: bool - /// - bool ShowTimerAttack { get; set; } + /// + /// type: bool + /// + public bool ShowTimerAttack { get; set; } - /// - /// type: short - /// - short TimerTime { get; set; } + /// + /// type: short + /// + public short TimerTime { get; set; } - /// - /// define in cs_gamerules.h - ///
- /// type: byte - ///
- byte FinalEvent { get; set; } + /// + /// define in cs_gamerules.h + ///
+ /// type: byte + ///
+ public byte FinalEvent { get; set; } - /// - /// type: string - /// - string FunfactToken { get; set; } + /// + /// type: string + /// + public string FunfactToken { get; set; } - /// - /// type: player_controller - /// - int FunfactPlayer { get; set; } + /// + /// type: player_controller + /// + public int FunfactPlayer { get; set; } - /// - /// type: long - /// - int FunfactData1 { get; set; } + /// + /// type: long + /// + public int FunfactData1 { get; set; } - /// - /// type: long - /// - int FunfactData2 { get; set; } + /// + /// type: long + /// + public int FunfactData2 { get; set; } - /// - /// type: long - /// - int FunfactData3 { get; set; } + /// + /// type: long + /// + public int FunfactData3 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDecoyDetonate.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDecoyDetonate.cs index a23bc2f5e..89d73c765 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDecoyDetonate.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDecoyDetonate.cs @@ -1,59 +1,59 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "decoy_detonate" /// -public interface EventDecoyDetonate : IGameEvent { - - static EventDecoyDetonate IGameEvent.Create(nint address) => new EventDecoyDetonateImpl(address); - - static string IGameEvent.GetName() => "decoy_detonate"; - - static uint IGameEvent.GetHash() => 0xDA5B1520u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short EntityID { get; set; } - - /// - /// type: float - /// - float X { get; set; } - - /// - /// type: float - /// - float Y { get; set; } - - /// - /// type: float - /// - float Z { get; set; } +public interface EventDecoyDetonate : IGameEvent +{ + + static EventDecoyDetonate IGameEvent.Create( nint address ) => new EventDecoyDetonateImpl(address); + + static string IGameEvent.GetName() => "decoy_detonate"; + + static uint IGameEvent.GetHash() => 0xDA5B1520u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short EntityID { get; set; } + + /// + /// type: float + /// + public float X { get; set; } + + /// + /// type: float + /// + public float Y { get; set; } + + /// + /// type: float + /// + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDecoyFiring.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDecoyFiring.cs index 0c625c504..4de2fb89f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDecoyFiring.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDecoyFiring.cs @@ -1,59 +1,59 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "decoy_firing" /// -public interface EventDecoyFiring : IGameEvent { - - static EventDecoyFiring IGameEvent.Create(nint address) => new EventDecoyFiringImpl(address); - - static string IGameEvent.GetName() => "decoy_firing"; - - static uint IGameEvent.GetHash() => 0xA0DD941Fu; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short EntityID { get; set; } - - /// - /// type: float - /// - float X { get; set; } - - /// - /// type: float - /// - float Y { get; set; } - - /// - /// type: float - /// - float Z { get; set; } +public interface EventDecoyFiring : IGameEvent +{ + + static EventDecoyFiring IGameEvent.Create( nint address ) => new EventDecoyFiringImpl(address); + + static string IGameEvent.GetName() => "decoy_firing"; + + static uint IGameEvent.GetHash() => 0xA0DD941Fu; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short EntityID { get; set; } + + /// + /// type: float + /// + public float X { get; set; } + + /// + /// type: float + /// + public float Y { get; set; } + + /// + /// type: float + /// + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDecoyStarted.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDecoyStarted.cs index 8ad2b199a..385787df0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDecoyStarted.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDecoyStarted.cs @@ -1,59 +1,59 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "decoy_started" /// -public interface EventDecoyStarted : IGameEvent { - - static EventDecoyStarted IGameEvent.Create(nint address) => new EventDecoyStartedImpl(address); - - static string IGameEvent.GetName() => "decoy_started"; - - static uint IGameEvent.GetHash() => 0xD1159B75u; - /// - ///
- /// type: player_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_pawn - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short EntityID { get; set; } - - /// - /// type: float - /// - float X { get; set; } - - /// - /// type: float - /// - float Y { get; set; } - - /// - /// type: float - /// - float Z { get; set; } +public interface EventDecoyStarted : IGameEvent +{ + + static EventDecoyStarted IGameEvent.Create( nint address ) => new EventDecoyStartedImpl(address); + + static string IGameEvent.GetName() => "decoy_started"; + + static uint IGameEvent.GetHash() => 0xD1159B75u; + /// + ///
+ /// type: player_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short EntityID { get; set; } + + /// + /// type: float + /// + public float X { get; set; } + + /// + /// type: float + /// + public float Y { get; set; } + + /// + /// type: float + /// + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDefuserDropped.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDefuserDropped.cs index e2cc4446d..f8437ce96 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDefuserDropped.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDefuserDropped.cs @@ -1,25 +1,24 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "defuser_dropped" /// -public interface EventDefuserDropped : IGameEvent { +public interface EventDefuserDropped : IGameEvent +{ - static EventDefuserDropped IGameEvent.Create(nint address) => new EventDefuserDroppedImpl(address); + static EventDefuserDropped IGameEvent.Create( nint address ) => new EventDefuserDroppedImpl(address); - static string IGameEvent.GetName() => "defuser_dropped"; + static string IGameEvent.GetName() => "defuser_dropped"; - static uint IGameEvent.GetHash() => 0xA5E094F6u; - /// - /// defuser's entity ID - ///
- /// type: long - ///
- int EntityID { get; set; } + static uint IGameEvent.GetHash() => 0xA5E094F6u; + /// + /// defuser's entity ID + ///
+ /// type: long + ///
+ public int EntityID { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDefuserPickup.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDefuserPickup.cs index cefc97ed9..3d90b141b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDefuserPickup.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDefuserPickup.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "defuser_pickup" /// -public interface EventDefuserPickup : IGameEvent { - - static EventDefuserPickup IGameEvent.Create(nint address) => new EventDefuserPickupImpl(address); - - static string IGameEvent.GetName() => "defuser_pickup"; - - static uint IGameEvent.GetHash() => 0xA9099A0Cu; - /// - /// defuser's entity ID - ///
- /// type: long - ///
- int EntityID { get; set; } - - /// - /// player who picked up the defuser - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who picked up the defuser - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who picked up the defuser - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who picked up the defuser - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } +public interface EventDefuserPickup : IGameEvent +{ + + static EventDefuserPickup IGameEvent.Create( nint address ) => new EventDefuserPickupImpl(address); + + static string IGameEvent.GetName() => "defuser_pickup"; + + static uint IGameEvent.GetHash() => 0xA9099A0Cu; + /// + /// defuser's entity ID + ///
+ /// type: long + ///
+ public int EntityID { get; set; } + + /// + /// player who picked up the defuser + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who picked up the defuser + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who picked up the defuser + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who picked up the defuser + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDemoSkip.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDemoSkip.cs index 547e253fd..f0b462249 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDemoSkip.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDemoSkip.cs @@ -1,32 +1,31 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "demo_skip" /// -public interface EventDemoSkip : IGameEvent { +public interface EventDemoSkip : IGameEvent +{ - static EventDemoSkip IGameEvent.Create(nint address) => new EventDemoSkipImpl(address); + static EventDemoSkip IGameEvent.Create( nint address ) => new EventDemoSkipImpl(address); - static string IGameEvent.GetName() => "demo_skip"; + static string IGameEvent.GetName() => "demo_skip"; - static uint IGameEvent.GetHash() => 0x3A36ECC0u; - /// - /// current playback tick - ///
- /// type: long - ///
- int PlaybackTick { get; set; } + static uint IGameEvent.GetHash() => 0x3A36ECC0u; + /// + /// current playback tick + ///
+ /// type: long + ///
+ public int PlaybackTick { get; set; } - /// - /// tick we're going to - ///
- /// type: long - ///
- int SkiptoTick { get; set; } + /// + /// tick we're going to + ///
+ /// type: long + ///
+ public int SkiptoTick { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDemoStart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDemoStart.cs index 401b09b86..40649d995 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDemoStart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDemoStart.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "demo_start" /// -public interface EventDemoStart : IGameEvent { +public interface EventDemoStart : IGameEvent +{ - static EventDemoStart IGameEvent.Create(nint address) => new EventDemoStartImpl(address); + static EventDemoStart IGameEvent.Create( nint address ) => new EventDemoStartImpl(address); - static string IGameEvent.GetName() => "demo_start"; + static string IGameEvent.GetName() => "demo_start"; - static uint IGameEvent.GetHash() => 0x068617A9u; + static uint IGameEvent.GetHash() => 0x068617A9u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDemoStop.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDemoStop.cs index 17615951c..222f0aab3 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDemoStop.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDemoStop.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "demo_stop" /// -public interface EventDemoStop : IGameEvent { +public interface EventDemoStop : IGameEvent +{ - static EventDemoStop IGameEvent.Create(nint address) => new EventDemoStopImpl(address); + static EventDemoStop IGameEvent.Create( nint address ) => new EventDemoStopImpl(address); - static string IGameEvent.GetName() => "demo_stop"; + static string IGameEvent.GetName() => "demo_stop"; - static uint IGameEvent.GetHash() => 0xDF8418C3u; + static uint IGameEvent.GetHash() => 0xDF8418C3u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDifficultyChanged.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDifficultyChanged.cs index a260abc22..bc6776c11 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDifficultyChanged.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDifficultyChanged.cs @@ -1,35 +1,34 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "difficulty_changed" /// -public interface EventDifficultyChanged : IGameEvent { - - static EventDifficultyChanged IGameEvent.Create(nint address) => new EventDifficultyChangedImpl(address); - - static string IGameEvent.GetName() => "difficulty_changed"; - - static uint IGameEvent.GetHash() => 0xB261D803u; - /// - /// type: short - /// - short NewDifficulty { get; set; } - - /// - /// type: short - /// - short OldDifficulty { get; set; } - - /// - /// new difficulty as string - ///
- /// type: string - ///
- string StrDifficulty { get; set; } +public interface EventDifficultyChanged : IGameEvent +{ + + static EventDifficultyChanged IGameEvent.Create( nint address ) => new EventDifficultyChangedImpl(address); + + static string IGameEvent.GetName() => "difficulty_changed"; + + static uint IGameEvent.GetHash() => 0xB261D803u; + /// + /// type: short + /// + public short NewDifficulty { get; set; } + + /// + /// type: short + /// + public short OldDifficulty { get; set; } + + /// + /// new difficulty as string + ///
+ /// type: string + ///
+ public string StrDifficulty { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDmBonusWeaponStart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDmBonusWeaponStart.cs index 2518003d0..6fd1f4859 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDmBonusWeaponStart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDmBonusWeaponStart.cs @@ -1,32 +1,31 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "dm_bonus_weapon_start" /// -public interface EventDmBonusWeaponStart : IGameEvent { +public interface EventDmBonusWeaponStart : IGameEvent +{ - static EventDmBonusWeaponStart IGameEvent.Create(nint address) => new EventDmBonusWeaponStartImpl(address); + static EventDmBonusWeaponStart IGameEvent.Create( nint address ) => new EventDmBonusWeaponStartImpl(address); - static string IGameEvent.GetName() => "dm_bonus_weapon_start"; + static string IGameEvent.GetName() => "dm_bonus_weapon_start"; - static uint IGameEvent.GetHash() => 0xB2B896A4u; - /// - /// The length of time that this bonus lasts - ///
- /// type: short - ///
- short Time { get; set; } + static uint IGameEvent.GetHash() => 0xB2B896A4u; + /// + /// The length of time that this bonus lasts + ///
+ /// type: short + ///
+ public short Time { get; set; } - /// - /// Loadout position of the bonus weapon - ///
- /// type: short - ///
- short Pos { get; set; } + /// + /// Loadout position of the bonus weapon + ///
+ /// type: short + ///
+ public short Pos { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorBreak.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorBreak.cs index ff29ce2e1..ed1941394 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorBreak.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorBreak.cs @@ -1,28 +1,27 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "door_break" /// -public interface EventDoorBreak : IGameEvent { +public interface EventDoorBreak : IGameEvent +{ - static EventDoorBreak IGameEvent.Create(nint address) => new EventDoorBreakImpl(address); + static EventDoorBreak IGameEvent.Create( nint address ) => new EventDoorBreakImpl(address); - static string IGameEvent.GetName() => "door_break"; + static string IGameEvent.GetName() => "door_break"; - static uint IGameEvent.GetHash() => 0x79A0A2E9u; - /// - /// type: long - /// - int EntIndex { get; set; } + static uint IGameEvent.GetHash() => 0x79A0A2E9u; + /// + /// type: long + /// + public int EntIndex { get; set; } - /// - /// type: long - /// - int DMgState { get; set; } + /// + /// type: long + /// + public int DMgState { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorClose.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorClose.cs index 41ba3090d..80e88875a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorClose.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorClose.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "door_close" /// -public interface EventDoorClose : IGameEvent { - - static EventDoorClose IGameEvent.Create(nint address) => new EventDoorCloseImpl(address); - - static string IGameEvent.GetName() => "door_close"; - - static uint IGameEvent.GetHash() => 0xC96E7A7Eu; - /// - /// Who closed the door - ///
- /// type: player_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// Who closed the door - ///
- /// type: player_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // Who closed the door - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// Who closed the door - ///
- /// type: player_pawn - ///
- int UserId { get; set; } - - /// - /// Is the door a checkpoint door - ///
- /// type: bool - ///
- bool Checkpoint { get; set; } +public interface EventDoorClose : IGameEvent +{ + + static EventDoorClose IGameEvent.Create( nint address ) => new EventDoorCloseImpl(address); + + static string IGameEvent.GetName() => "door_close"; + + static uint IGameEvent.GetHash() => 0xC96E7A7Eu; + /// + /// Who closed the door + ///
+ /// type: player_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// Who closed the door + ///
+ /// type: player_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // Who closed the door + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// Who closed the door + ///
+ /// type: player_pawn + ///
+ public int UserId { get; set; } + + /// + /// Is the door a checkpoint door + ///
+ /// type: bool + ///
+ public bool Checkpoint { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorClosed.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorClosed.cs index 5bbacf381..47870e3e4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorClosed.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorClosed.cs @@ -1,48 +1,48 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "door_closed" /// -public interface EventDoorClosed : IGameEvent { - - static EventDoorClosed IGameEvent.Create(nint address) => new EventDoorClosedImpl(address); - - static string IGameEvent.GetName() => "door_closed"; - - static uint IGameEvent.GetHash() => 0x32EA36EEu; - /// - /// Who closed the door - ///
- /// type: player_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// Who closed the door - ///
- /// type: player_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // Who closed the door - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// Who closed the door - ///
- /// type: player_pawn - ///
- int UserId { get; set; } - - /// - /// type: long - /// - int EntIndex { get; set; } +public interface EventDoorClosed : IGameEvent +{ + + static EventDoorClosed IGameEvent.Create( nint address ) => new EventDoorClosedImpl(address); + + static string IGameEvent.GetName() => "door_closed"; + + static uint IGameEvent.GetHash() => 0x32EA36EEu; + /// + /// Who closed the door + ///
+ /// type: player_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// Who closed the door + ///
+ /// type: player_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // Who closed the door + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// Who closed the door + ///
+ /// type: player_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: long + /// + public int EntIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorMoving.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorMoving.cs index 46540f2cc..1f6360647 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorMoving.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorMoving.cs @@ -1,44 +1,44 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "door_moving" /// -public interface EventDoorMoving : IGameEvent { - - static EventDoorMoving IGameEvent.Create(nint address) => new EventDoorMovingImpl(address); - - static string IGameEvent.GetName() => "door_moving"; - - static uint IGameEvent.GetHash() => 0x253FA168u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: long - /// - int EntIndex { get; set; } +public interface EventDoorMoving : IGameEvent +{ + + static EventDoorMoving IGameEvent.Create( nint address ) => new EventDoorMovingImpl(address); + + static string IGameEvent.GetName() => "door_moving"; + + static uint IGameEvent.GetHash() => 0x253FA168u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: long + /// + public int EntIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorOpen.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorOpen.cs index 2d21795ce..f224a3224 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorOpen.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDoorOpen.cs @@ -1,48 +1,48 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "door_open" /// -public interface EventDoorOpen : IGameEvent { - - static EventDoorOpen IGameEvent.Create(nint address) => new EventDoorOpenImpl(address); - - static string IGameEvent.GetName() => "door_open"; - - static uint IGameEvent.GetHash() => 0x062A102Au; - /// - /// Who closed the door - ///
- /// type: player_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// Who closed the door - ///
- /// type: player_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // Who closed the door - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// Who closed the door - ///
- /// type: player_pawn - ///
- int UserId { get; set; } - - /// - /// type: long - /// - int EntIndex { get; set; } +public interface EventDoorOpen : IGameEvent +{ + + static EventDoorOpen IGameEvent.Create( nint address ) => new EventDoorOpenImpl(address); + + static string IGameEvent.GetName() => "door_open"; + + static uint IGameEvent.GetHash() => 0x062A102Au; + /// + /// Who closed the door + ///
+ /// type: player_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// Who closed the door + ///
+ /// type: player_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // Who closed the door + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// Who closed the door + ///
+ /// type: player_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: long + /// + public int EntIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDroneAboveRoof.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDroneAboveRoof.cs index 8621721c8..cac99755a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDroneAboveRoof.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDroneAboveRoof.cs @@ -1,44 +1,44 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "drone_above_roof" /// -public interface EventDroneAboveRoof : IGameEvent { - - static EventDroneAboveRoof IGameEvent.Create(nint address) => new EventDroneAboveRoofImpl(address); - - static string IGameEvent.GetName() => "drone_above_roof"; - - static uint IGameEvent.GetHash() => 0x647D7762u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short Cargo { get; set; } +public interface EventDroneAboveRoof : IGameEvent +{ + + static EventDroneAboveRoof IGameEvent.Create( nint address ) => new EventDroneAboveRoofImpl(address); + + static string IGameEvent.GetName() => "drone_above_roof"; + + static uint IGameEvent.GetHash() => 0x647D7762u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short Cargo { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDroneCargoDetached.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDroneCargoDetached.cs index b5c4bf8bf..e4b58bc25 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDroneCargoDetached.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDroneCargoDetached.cs @@ -1,49 +1,49 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "drone_cargo_detached" /// -public interface EventDroneCargoDetached : IGameEvent { - - static EventDroneCargoDetached IGameEvent.Create(nint address) => new EventDroneCargoDetachedImpl(address); - - static string IGameEvent.GetName() => "drone_cargo_detached"; - - static uint IGameEvent.GetHash() => 0x958BD369u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short Cargo { get; set; } - - /// - /// type: bool - /// - bool Delivered { get; set; } +public interface EventDroneCargoDetached : IGameEvent +{ + + static EventDroneCargoDetached IGameEvent.Create( nint address ) => new EventDroneCargoDetachedImpl(address); + + static string IGameEvent.GetName() => "drone_cargo_detached"; + + static uint IGameEvent.GetHash() => 0x958BD369u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short Cargo { get; set; } + + /// + /// type: bool + /// + public bool Delivered { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDroneDispatched.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDroneDispatched.cs index 12d5e4cb3..9f7ef5dbe 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDroneDispatched.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDroneDispatched.cs @@ -1,49 +1,49 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "drone_dispatched" /// -public interface EventDroneDispatched : IGameEvent { - - static EventDroneDispatched IGameEvent.Create(nint address) => new EventDroneDispatchedImpl(address); - - static string IGameEvent.GetName() => "drone_dispatched"; - - static uint IGameEvent.GetHash() => 0x4491A405u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short Priority { get; set; } - - /// - /// type: short - /// - short DroneDispatched { get; set; } +public interface EventDroneDispatched : IGameEvent +{ + + static EventDroneDispatched IGameEvent.Create( nint address ) => new EventDroneDispatchedImpl(address); + + static string IGameEvent.GetName() => "drone_dispatched"; + + static uint IGameEvent.GetHash() => 0x4491A405u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short Priority { get; set; } + + /// + /// type: short + /// + public short DroneDispatched { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDronegunAttack.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDronegunAttack.cs index fa0a9a9f4..ed0f109db 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDronegunAttack.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDronegunAttack.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "dronegun_attack" /// -public interface EventDronegunAttack : IGameEvent { +public interface EventDronegunAttack : IGameEvent +{ - static EventDronegunAttack IGameEvent.Create(nint address) => new EventDronegunAttackImpl(address); + static EventDronegunAttack IGameEvent.Create( nint address ) => new EventDronegunAttackImpl(address); - static string IGameEvent.GetName() => "dronegun_attack"; + static string IGameEvent.GetName() => "dronegun_attack"; - static uint IGameEvent.GetHash() => 0x3EB09776u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0x3EB09776u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDropRateModified.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDropRateModified.cs index 57f6ae7e7..8a09a7163 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDropRateModified.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDropRateModified.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "drop_rate_modified" /// -public interface EventDropRateModified : IGameEvent { +public interface EventDropRateModified : IGameEvent +{ - static EventDropRateModified IGameEvent.Create(nint address) => new EventDropRateModifiedImpl(address); + static EventDropRateModified IGameEvent.Create( nint address ) => new EventDropRateModifiedImpl(address); - static string IGameEvent.GetName() => "drop_rate_modified"; + static string IGameEvent.GetName() => "drop_rate_modified"; - static uint IGameEvent.GetHash() => 0x4D5A279Bu; + static uint IGameEvent.GetHash() => 0x4D5A279Bu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDynamicShadowLightChanged.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDynamicShadowLightChanged.cs index 237e6fa11..992012231 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDynamicShadowLightChanged.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDynamicShadowLightChanged.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "dynamic_shadow_light_changed" /// -public interface EventDynamicShadowLightChanged : IGameEvent { +public interface EventDynamicShadowLightChanged : IGameEvent +{ - static EventDynamicShadowLightChanged IGameEvent.Create(nint address) => new EventDynamicShadowLightChangedImpl(address); + static EventDynamicShadowLightChanged IGameEvent.Create( nint address ) => new EventDynamicShadowLightChangedImpl(address); - static string IGameEvent.GetName() => "dynamic_shadow_light_changed"; + static string IGameEvent.GetName() => "dynamic_shadow_light_changed"; - static uint IGameEvent.GetHash() => 0x3FC4330Bu; + static uint IGameEvent.GetHash() => 0x3FC4330Bu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDzItemInteraction.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDzItemInteraction.cs index 15463b275..383b04b7d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDzItemInteraction.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventDzItemInteraction.cs @@ -1,57 +1,57 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "dz_item_interaction" /// -public interface EventDzItemInteraction : IGameEvent { - - static EventDzItemInteraction IGameEvent.Create(nint address) => new EventDzItemInteractionImpl(address); - - static string IGameEvent.GetName() => "dz_item_interaction"; - - static uint IGameEvent.GetHash() => 0x4C0C7044u; - /// - /// player entindex - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player entindex - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player entindex - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player entindex - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// crate entindex - ///
- /// type: short - ///
- short Subject { get; set; } - - /// - /// type of crate (metal, wood, or paradrop) - ///
- /// type: string - ///
- string Type { get; set; } +public interface EventDzItemInteraction : IGameEvent +{ + + static EventDzItemInteraction IGameEvent.Create( nint address ) => new EventDzItemInteractionImpl(address); + + static string IGameEvent.GetName() => "dz_item_interaction"; + + static uint IGameEvent.GetHash() => 0x4C0C7044u; + /// + /// player entindex + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player entindex + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player entindex + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player entindex + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// crate entindex + ///
+ /// type: short + ///
+ public short Subject { get; set; } + + /// + /// type of crate (metal, wood, or paradrop) + ///
+ /// type: string + ///
+ public string Type { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnableRestartVoting.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnableRestartVoting.cs index 985ada6d6..83edb802d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnableRestartVoting.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnableRestartVoting.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "enable_restart_voting" /// -public interface EventEnableRestartVoting : IGameEvent { +public interface EventEnableRestartVoting : IGameEvent +{ - static EventEnableRestartVoting IGameEvent.Create(nint address) => new EventEnableRestartVotingImpl(address); + static EventEnableRestartVoting IGameEvent.Create( nint address ) => new EventEnableRestartVotingImpl(address); - static string IGameEvent.GetName() => "enable_restart_voting"; + static string IGameEvent.GetName() => "enable_restart_voting"; - static uint IGameEvent.GetHash() => 0x786801D0u; - /// - /// type: bool - /// - bool Enable { get; set; } + static uint IGameEvent.GetHash() => 0x786801D0u; + /// + /// type: bool + /// + public bool Enable { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEndmatchCmmStartRevealItems.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEndmatchCmmStartRevealItems.cs index f986103c3..fd5ce7630 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEndmatchCmmStartRevealItems.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEndmatchCmmStartRevealItems.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "endmatch_cmm_start_reveal_items" /// -public interface EventEndmatchCmmStartRevealItems : IGameEvent { +public interface EventEndmatchCmmStartRevealItems : IGameEvent +{ - static EventEndmatchCmmStartRevealItems IGameEvent.Create(nint address) => new EventEndmatchCmmStartRevealItemsImpl(address); + static EventEndmatchCmmStartRevealItems IGameEvent.Create( nint address ) => new EventEndmatchCmmStartRevealItemsImpl(address); - static string IGameEvent.GetName() => "endmatch_cmm_start_reveal_items"; + static string IGameEvent.GetName() => "endmatch_cmm_start_reveal_items"; - static uint IGameEvent.GetHash() => 0xCB866623u; + static uint IGameEvent.GetHash() => 0xCB866623u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEndmatchMapvoteSelectingMap.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEndmatchMapvoteSelectingMap.cs index ecb80091f..e105c727d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEndmatchMapvoteSelectingMap.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEndmatchMapvoteSelectingMap.cs @@ -1,75 +1,74 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "endmatch_mapvote_selecting_map" /// -public interface EventEndmatchMapvoteSelectingMap : IGameEvent { - - static EventEndmatchMapvoteSelectingMap IGameEvent.Create(nint address) => new EventEndmatchMapvoteSelectingMapImpl(address); - - static string IGameEvent.GetName() => "endmatch_mapvote_selecting_map"; - - static uint IGameEvent.GetHash() => 0x9694B570u; - /// - /// Number of "ties" - ///
- /// type: byte - ///
- byte Count { get; set; } - - /// - /// type: byte - /// - byte Slot1 { get; set; } - - /// - /// type: byte - /// - byte Slot2 { get; set; } - - /// - /// type: byte - /// - byte Slot3 { get; set; } - - /// - /// type: byte - /// - byte Slot4 { get; set; } - - /// - /// type: byte - /// - byte Slot5 { get; set; } - - /// - /// type: byte - /// - byte Slot6 { get; set; } - - /// - /// type: byte - /// - byte Slot7 { get; set; } - - /// - /// type: byte - /// - byte Slot8 { get; set; } - - /// - /// type: byte - /// - byte Slot9 { get; set; } - - /// - /// type: byte - /// - byte Slot10 { get; set; } +public interface EventEndmatchMapvoteSelectingMap : IGameEvent +{ + + static EventEndmatchMapvoteSelectingMap IGameEvent.Create( nint address ) => new EventEndmatchMapvoteSelectingMapImpl(address); + + static string IGameEvent.GetName() => "endmatch_mapvote_selecting_map"; + + static uint IGameEvent.GetHash() => 0x9694B570u; + /// + /// Number of "ties" + ///
+ /// type: byte + ///
+ public byte Count { get; set; } + + /// + /// type: byte + /// + public byte Slot1 { get; set; } + + /// + /// type: byte + /// + public byte Slot2 { get; set; } + + /// + /// type: byte + /// + public byte Slot3 { get; set; } + + /// + /// type: byte + /// + public byte Slot4 { get; set; } + + /// + /// type: byte + /// + public byte Slot5 { get; set; } + + /// + /// type: byte + /// + public byte Slot6 { get; set; } + + /// + /// type: byte + /// + public byte Slot7 { get; set; } + + /// + /// type: byte + /// + public byte Slot8 { get; set; } + + /// + /// type: byte + /// + public byte Slot9 { get; set; } + + /// + /// type: byte + /// + public byte Slot10 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnterBombzone.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnterBombzone.cs index dd717490c..36e5580a3 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnterBombzone.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnterBombzone.cs @@ -1,49 +1,49 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "enter_bombzone" /// -public interface EventEnterBombzone : IGameEvent { - - static EventEnterBombzone IGameEvent.Create(nint address) => new EventEnterBombzoneImpl(address); - - static string IGameEvent.GetName() => "enter_bombzone"; - - static uint IGameEvent.GetHash() => 0x9175DF94u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: bool - /// - bool HasBomb { get; set; } - - /// - /// type: bool - /// - bool IsPlanted { get; set; } +public interface EventEnterBombzone : IGameEvent +{ + + static EventEnterBombzone IGameEvent.Create( nint address ) => new EventEnterBombzoneImpl(address); + + static string IGameEvent.GetName() => "enter_bombzone"; + + static uint IGameEvent.GetHash() => 0x9175DF94u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: bool + /// + public bool HasBomb { get; set; } + + /// + /// type: bool + /// + public bool IsPlanted { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnterBuyzone.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnterBuyzone.cs index 07e2e0f43..be336174b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnterBuyzone.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnterBuyzone.cs @@ -1,44 +1,44 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "enter_buyzone" /// -public interface EventEnterBuyzone : IGameEvent { - - static EventEnterBuyzone IGameEvent.Create(nint address) => new EventEnterBuyzoneImpl(address); - - static string IGameEvent.GetName() => "enter_buyzone"; - - static uint IGameEvent.GetHash() => 0x9E49E798u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: bool - /// - bool CanBuy { get; set; } +public interface EventEnterBuyzone : IGameEvent +{ + + static EventEnterBuyzone IGameEvent.Create( nint address ) => new EventEnterBuyzoneImpl(address); + + static string IGameEvent.GetName() => "enter_buyzone"; + + static uint IGameEvent.GetHash() => 0x9E49E798u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: bool + /// + public bool CanBuy { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnterRescueZone.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnterRescueZone.cs index 0a539b995..762f621dd 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnterRescueZone.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEnterRescueZone.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "enter_rescue_zone" /// -public interface EventEnterRescueZone : IGameEvent { +public interface EventEnterRescueZone : IGameEvent +{ - static EventEnterRescueZone IGameEvent.Create(nint address) => new EventEnterRescueZoneImpl(address); + static EventEnterRescueZone IGameEvent.Create( nint address ) => new EventEnterRescueZoneImpl(address); - static string IGameEvent.GetName() => "enter_rescue_zone"; + static string IGameEvent.GetName() => "enter_rescue_zone"; - static uint IGameEvent.GetHash() => 0xA10C79CAu; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xA10C79CAu; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEntityKilled.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEntityKilled.cs index 35f299501..4418c12d5 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEntityKilled.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEntityKilled.cs @@ -1,38 +1,37 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "entity_killed" /// -public interface EventEntityKilled : IGameEvent { +public interface EventEntityKilled : IGameEvent +{ - static EventEntityKilled IGameEvent.Create(nint address) => new EventEntityKilledImpl(address); + static EventEntityKilled IGameEvent.Create( nint address ) => new EventEntityKilledImpl(address); - static string IGameEvent.GetName() => "entity_killed"; + static string IGameEvent.GetName() => "entity_killed"; - static uint IGameEvent.GetHash() => 0x6B63D08Eu; - /// - /// type: long - /// - int EntindexKilled { get; set; } + static uint IGameEvent.GetHash() => 0x6B63D08Eu; + /// + /// type: long + /// + public int EntindexKilled { get; set; } - /// - /// type: long - /// - int EntindexAttacker { get; set; } + /// + /// type: long + /// + public int EntindexAttacker { get; set; } - /// - /// type: long - /// - int EntindexInflictor { get; set; } + /// + /// type: long + /// + public int EntindexInflictor { get; set; } - /// - /// type: long - /// - int DamageBits { get; set; } + /// + /// type: long + /// + public int DamageBits { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEntityVisible.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEntityVisible.cs index 8500a99db..c74178d48 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEntityVisible.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEntityVisible.cs @@ -1,64 +1,64 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "entity_visible" /// -public interface EventEntityVisible : IGameEvent { +public interface EventEntityVisible : IGameEvent +{ - static EventEntityVisible IGameEvent.Create(nint address) => new EventEntityVisibleImpl(address); + static EventEntityVisible IGameEvent.Create( nint address ) => new EventEntityVisibleImpl(address); - static string IGameEvent.GetName() => "entity_visible"; + static string IGameEvent.GetName() => "entity_visible"; - static uint IGameEvent.GetHash() => 0xC4D03823u; - /// - /// The player who sees the entity - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xC4D03823u; + /// + /// The player who sees the entity + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - /// The player who sees the entity - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + /// The player who sees the entity + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - // The player who sees the entity - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// The player who sees the entity - ///
- /// type: player_controller - ///
- int UserId { get; set; } + // The player who sees the entity + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// The player who sees the entity + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } - /// - /// Entindex of the entity they see - ///
- /// type: long - ///
- int Subject { get; set; } + /// + /// Entindex of the entity they see + ///
+ /// type: long + ///
+ public int Subject { get; set; } - /// - /// Classname of the entity they see - ///
- /// type: string - ///
- string ClassName { get; set; } + /// + /// Classname of the entity they see + ///
+ /// type: string + ///
+ public string ClassName { get; set; } - /// - /// name of the entity they see - ///
- /// type: string - ///
- string EntityName { get; set; } + /// + /// name of the entity they see + ///
+ /// type: string + ///
+ public string EntityName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEventTicketModified.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEventTicketModified.cs index 9c898637b..28913e55c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEventTicketModified.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventEventTicketModified.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "event_ticket_modified" /// -public interface EventEventTicketModified : IGameEvent { +public interface EventEventTicketModified : IGameEvent +{ - static EventEventTicketModified IGameEvent.Create(nint address) => new EventEventTicketModifiedImpl(address); + static EventEventTicketModified IGameEvent.Create( nint address ) => new EventEventTicketModifiedImpl(address); - static string IGameEvent.GetName() => "event_ticket_modified"; + static string IGameEvent.GetName() => "event_ticket_modified"; - static uint IGameEvent.GetHash() => 0xAD893DFEu; + static uint IGameEvent.GetHash() => 0xAD893DFEu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventExitBombzone.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventExitBombzone.cs index 25cc78231..6c9d2aa9c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventExitBombzone.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventExitBombzone.cs @@ -1,49 +1,49 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "exit_bombzone" /// -public interface EventExitBombzone : IGameEvent { - - static EventExitBombzone IGameEvent.Create(nint address) => new EventExitBombzoneImpl(address); - - static string IGameEvent.GetName() => "exit_bombzone"; - - static uint IGameEvent.GetHash() => 0xF5ADEBDCu; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: bool - /// - bool HasBomb { get; set; } - - /// - /// type: bool - /// - bool IsPlanted { get; set; } +public interface EventExitBombzone : IGameEvent +{ + + static EventExitBombzone IGameEvent.Create( nint address ) => new EventExitBombzoneImpl(address); + + static string IGameEvent.GetName() => "exit_bombzone"; + + static uint IGameEvent.GetHash() => 0xF5ADEBDCu; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: bool + /// + public bool HasBomb { get; set; } + + /// + /// type: bool + /// + public bool IsPlanted { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventExitBuyzone.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventExitBuyzone.cs index d9933ba74..652465e80 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventExitBuyzone.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventExitBuyzone.cs @@ -1,44 +1,44 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "exit_buyzone" /// -public interface EventExitBuyzone : IGameEvent { - - static EventExitBuyzone IGameEvent.Create(nint address) => new EventExitBuyzoneImpl(address); - - static string IGameEvent.GetName() => "exit_buyzone"; - - static uint IGameEvent.GetHash() => 0x9DF26040u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: bool - /// - bool CanBuy { get; set; } +public interface EventExitBuyzone : IGameEvent +{ + + static EventExitBuyzone IGameEvent.Create( nint address ) => new EventExitBuyzoneImpl(address); + + static string IGameEvent.GetName() => "exit_buyzone"; + + static uint IGameEvent.GetHash() => 0x9DF26040u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: bool + /// + public bool CanBuy { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventExitRescueZone.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventExitRescueZone.cs index e9ed6474c..ca8b33307 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventExitRescueZone.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventExitRescueZone.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "exit_rescue_zone" /// -public interface EventExitRescueZone : IGameEvent { +public interface EventExitRescueZone : IGameEvent +{ - static EventExitRescueZone IGameEvent.Create(nint address) => new EventExitRescueZoneImpl(address); + static EventExitRescueZone IGameEvent.Create( nint address ) => new EventExitRescueZoneImpl(address); - static string IGameEvent.GetName() => "exit_rescue_zone"; + static string IGameEvent.GetName() => "exit_rescue_zone"; - static uint IGameEvent.GetHash() => 0xEC6242D2u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xEC6242D2u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFinaleStart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFinaleStart.cs index c24f22918..bb450ef48 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFinaleStart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFinaleStart.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "finale_start" /// -public interface EventFinaleStart : IGameEvent { +public interface EventFinaleStart : IGameEvent +{ - static EventFinaleStart IGameEvent.Create(nint address) => new EventFinaleStartImpl(address); + static EventFinaleStart IGameEvent.Create( nint address ) => new EventFinaleStartImpl(address); - static string IGameEvent.GetName() => "finale_start"; + static string IGameEvent.GetName() => "finale_start"; - static uint IGameEvent.GetHash() => 0xA8BF9A49u; - /// - /// type: short - /// - short Rushes { get; set; } + static uint IGameEvent.GetHash() => 0xA8BF9A49u; + /// + /// type: short + /// + public short Rushes { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFirstbombsIncomingWarning.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFirstbombsIncomingWarning.cs index 68f9c1234..ef934d632 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFirstbombsIncomingWarning.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFirstbombsIncomingWarning.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "firstbombs_incoming_warning" /// -public interface EventFirstbombsIncomingWarning : IGameEvent { +public interface EventFirstbombsIncomingWarning : IGameEvent +{ - static EventFirstbombsIncomingWarning IGameEvent.Create(nint address) => new EventFirstbombsIncomingWarningImpl(address); + static EventFirstbombsIncomingWarning IGameEvent.Create( nint address ) => new EventFirstbombsIncomingWarningImpl(address); - static string IGameEvent.GetName() => "firstbombs_incoming_warning"; + static string IGameEvent.GetName() => "firstbombs_incoming_warning"; - static uint IGameEvent.GetHash() => 0xEE565444u; - /// - /// type: bool - /// - bool Global { get; set; } + static uint IGameEvent.GetHash() => 0xEE565444u; + /// + /// type: bool + /// + public bool Global { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFlareIgniteNpc.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFlareIgniteNpc.cs index 7906e83db..2c049beb9 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFlareIgniteNpc.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFlareIgniteNpc.cs @@ -1,25 +1,24 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "flare_ignite_npc" /// -public interface EventFlareIgniteNpc : IGameEvent { +public interface EventFlareIgniteNpc : IGameEvent +{ - static EventFlareIgniteNpc IGameEvent.Create(nint address) => new EventFlareIgniteNpcImpl(address); + static EventFlareIgniteNpc IGameEvent.Create( nint address ) => new EventFlareIgniteNpcImpl(address); - static string IGameEvent.GetName() => "flare_ignite_npc"; + static string IGameEvent.GetName() => "flare_ignite_npc"; - static uint IGameEvent.GetHash() => 0xDB89EE8Eu; - /// - /// entity ignited - ///
- /// type: long - ///
- int EntIndex { get; set; } + static uint IGameEvent.GetHash() => 0xDB89EE8Eu; + /// + /// entity ignited + ///
+ /// type: long + ///
+ public int EntIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFlashbangDetonate.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFlashbangDetonate.cs index 90f8d417f..17330b1fc 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFlashbangDetonate.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventFlashbangDetonate.cs @@ -1,59 +1,59 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "flashbang_detonate" /// -public interface EventFlashbangDetonate : IGameEvent { - - static EventFlashbangDetonate IGameEvent.Create(nint address) => new EventFlashbangDetonateImpl(address); - - static string IGameEvent.GetName() => "flashbang_detonate"; - - static uint IGameEvent.GetHash() => 0x575C9970u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short EntityID { get; set; } - - /// - /// type: float - /// - float X { get; set; } - - /// - /// type: float - /// - float Y { get; set; } - - /// - /// type: float - /// - float Z { get; set; } +public interface EventFlashbangDetonate : IGameEvent +{ + + static EventFlashbangDetonate IGameEvent.Create( nint address ) => new EventFlashbangDetonateImpl(address); + + static string IGameEvent.GetName() => "flashbang_detonate"; + + static uint IGameEvent.GetHash() => 0x575C9970u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short EntityID { get; set; } + + /// + /// type: float + /// + public float X { get; set; } + + /// + /// type: float + /// + public float Y { get; set; } + + /// + /// type: float + /// + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameEnd.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameEnd.cs index 87e3dd6d8..463e527c1 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameEnd.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameEnd.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,18 +7,19 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "game_end" /// a game ended ///
-public interface EventGameEnd : IGameEvent { +public interface EventGameEnd : IGameEvent +{ - static EventGameEnd IGameEvent.Create(nint address) => new EventGameEndImpl(address); + static EventGameEnd IGameEvent.Create( nint address ) => new EventGameEndImpl(address); - static string IGameEvent.GetName() => "game_end"; + static string IGameEvent.GetName() => "game_end"; - static uint IGameEvent.GetHash() => 0x17FCFCCDu; - /// - /// winner team/user id - ///
- /// type: byte - ///
- byte Winner { get; set; } + static uint IGameEvent.GetHash() => 0x17FCFCCDu; + /// + /// winner team/user id + ///
+ /// type: byte + ///
+ public byte Winner { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameInit.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameInit.cs index 1f5141057..4c66a84bf 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameInit.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameInit.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,11 +7,12 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "game_init" /// sent when a new game is started ///
-public interface EventGameInit : IGameEvent { +public interface EventGameInit : IGameEvent +{ - static EventGameInit IGameEvent.Create(nint address) => new EventGameInitImpl(address); + static EventGameInit IGameEvent.Create( nint address ) => new EventGameInitImpl(address); - static string IGameEvent.GetName() => "game_init"; + static string IGameEvent.GetName() => "game_init"; - static uint IGameEvent.GetHash() => 0xF1BFEF5Au; + static uint IGameEvent.GetHash() => 0xF1BFEF5Au; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameMessage.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameMessage.cs index 7b8e1f7fd..e46bca66c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameMessage.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameMessage.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,25 +7,26 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "game_message" /// a message send by game logic to everyone ///
-public interface EventGameMessage : IGameEvent { +public interface EventGameMessage : IGameEvent +{ - static EventGameMessage IGameEvent.Create(nint address) => new EventGameMessageImpl(address); + static EventGameMessage IGameEvent.Create( nint address ) => new EventGameMessageImpl(address); - static string IGameEvent.GetName() => "game_message"; + static string IGameEvent.GetName() => "game_message"; - static uint IGameEvent.GetHash() => 0xEA7638FFu; - /// - /// 0 = console, 1 = HUD - ///
- /// type: byte - ///
- byte Target { get; set; } + static uint IGameEvent.GetHash() => 0xEA7638FFu; + /// + /// 0 = console, 1 = HUD + ///
+ /// type: byte + ///
+ public byte Target { get; set; } - /// - /// the message text - ///
- /// type: string - ///
- string Text { get; set; } + /// + /// the message text + ///
+ /// type: string + ///
+ public string Text { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameNewmap.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameNewmap.cs index c2861a531..3b2d3356e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameNewmap.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameNewmap.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,25 +7,26 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "game_newmap" /// send when new map is completely loaded ///
-public interface EventGameNewmap : IGameEvent { +public interface EventGameNewmap : IGameEvent +{ - static EventGameNewmap IGameEvent.Create(nint address) => new EventGameNewmapImpl(address); + static EventGameNewmap IGameEvent.Create( nint address ) => new EventGameNewmapImpl(address); - static string IGameEvent.GetName() => "game_newmap"; + static string IGameEvent.GetName() => "game_newmap"; - static uint IGameEvent.GetHash() => 0xF0D60440u; - /// - /// map name - ///
- /// type: string - ///
- string MapName { get; set; } + static uint IGameEvent.GetHash() => 0xF0D60440u; + /// + /// map name + ///
+ /// type: string + ///
+ public string MapName { get; set; } - /// - /// true if this is a transition from one map to another - ///
- /// type: bool - ///
- bool Transition { get; set; } + /// + /// true if this is a transition from one map to another + ///
+ /// type: bool + ///
+ public bool Transition { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGamePhaseChanged.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGamePhaseChanged.cs index a3141ee7f..fcbb43dfe 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGamePhaseChanged.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGamePhaseChanged.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "game_phase_changed" /// -public interface EventGamePhaseChanged : IGameEvent { +public interface EventGamePhaseChanged : IGameEvent +{ - static EventGamePhaseChanged IGameEvent.Create(nint address) => new EventGamePhaseChangedImpl(address); + static EventGamePhaseChanged IGameEvent.Create( nint address ) => new EventGamePhaseChangedImpl(address); - static string IGameEvent.GetName() => "game_phase_changed"; + static string IGameEvent.GetName() => "game_phase_changed"; - static uint IGameEvent.GetHash() => 0x9FBE9554u; - /// - /// type: short - /// - short NewPhase { get; set; } + static uint IGameEvent.GetHash() => 0x9FBE9554u; + /// + /// type: short + /// + public short NewPhase { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameStart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameStart.cs index da9a62c57..5a8e86482 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameStart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameStart.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,39 +7,40 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "game_start" /// a new game starts /// -public interface EventGameStart : IGameEvent { - - static EventGameStart IGameEvent.Create(nint address) => new EventGameStartImpl(address); - - static string IGameEvent.GetName() => "game_start"; - - static uint IGameEvent.GetHash() => 0x8A6A0374u; - /// - /// max round - ///
- /// type: long - ///
- int RoundsLimit { get; set; } - - /// - /// time limit - ///
- /// type: long - ///
- int TimeLimit { get; set; } - - /// - /// frag limit - ///
- /// type: long - ///
- int FragLimit { get; set; } - - /// - /// round objective - ///
- /// type: string - ///
- string Objective { get; set; } +public interface EventGameStart : IGameEvent +{ + + static EventGameStart IGameEvent.Create( nint address ) => new EventGameStartImpl(address); + + static string IGameEvent.GetName() => "game_start"; + + static uint IGameEvent.GetHash() => 0x8A6A0374u; + /// + /// max round + ///
+ /// type: long + ///
+ public int RoundsLimit { get; set; } + + /// + /// time limit + ///
+ /// type: long + ///
+ public int TimeLimit { get; set; } + + /// + /// frag limit + ///
+ /// type: long + ///
+ public int FragLimit { get; set; } + + /// + /// round objective + ///
+ /// type: string + ///
+ public string Objective { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameinstructorDraw.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameinstructorDraw.cs index f1b1c2479..bc53b91ae 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameinstructorDraw.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameinstructorDraw.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "gameinstructor_draw" /// -public interface EventGameinstructorDraw : IGameEvent { +public interface EventGameinstructorDraw : IGameEvent +{ - static EventGameinstructorDraw IGameEvent.Create(nint address) => new EventGameinstructorDrawImpl(address); + static EventGameinstructorDraw IGameEvent.Create( nint address ) => new EventGameinstructorDrawImpl(address); - static string IGameEvent.GetName() => "gameinstructor_draw"; + static string IGameEvent.GetName() => "gameinstructor_draw"; - static uint IGameEvent.GetHash() => 0x6E89B5D7u; + static uint IGameEvent.GetHash() => 0x6E89B5D7u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameinstructorNodraw.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameinstructorNodraw.cs index 8aca56723..422763343 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameinstructorNodraw.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameinstructorNodraw.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "gameinstructor_nodraw" /// -public interface EventGameinstructorNodraw : IGameEvent { +public interface EventGameinstructorNodraw : IGameEvent +{ - static EventGameinstructorNodraw IGameEvent.Create(nint address) => new EventGameinstructorNodrawImpl(address); + static EventGameinstructorNodraw IGameEvent.Create( nint address ) => new EventGameinstructorNodrawImpl(address); - static string IGameEvent.GetName() => "gameinstructor_nodraw"; + static string IGameEvent.GetName() => "gameinstructor_nodraw"; - static uint IGameEvent.GetHash() => 0x067F31A8u; + static uint IGameEvent.GetHash() => 0x067F31A8u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameuiHidden.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameuiHidden.cs index de3884414..750a98b99 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameuiHidden.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGameuiHidden.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "gameui_hidden" /// -public interface EventGameuiHidden : IGameEvent { +public interface EventGameuiHidden : IGameEvent +{ - static EventGameuiHidden IGameEvent.Create(nint address) => new EventGameuiHiddenImpl(address); + static EventGameuiHidden IGameEvent.Create( nint address ) => new EventGameuiHiddenImpl(address); - static string IGameEvent.GetName() => "gameui_hidden"; + static string IGameEvent.GetName() => "gameui_hidden"; - static uint IGameEvent.GetHash() => 0xB938FB5Eu; + static uint IGameEvent.GetHash() => 0xB938FB5Eu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGcConnected.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGcConnected.cs index 1f306d879..15d817aba 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGcConnected.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGcConnected.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "gc_connected" /// -public interface EventGcConnected : IGameEvent { +public interface EventGcConnected : IGameEvent +{ - static EventGcConnected IGameEvent.Create(nint address) => new EventGcConnectedImpl(address); + static EventGcConnected IGameEvent.Create( nint address ) => new EventGcConnectedImpl(address); - static string IGameEvent.GetName() => "gc_connected"; + static string IGameEvent.GetName() => "gc_connected"; - static uint IGameEvent.GetHash() => 0xAEFB8477u; + static uint IGameEvent.GetHash() => 0xAEFB8477u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGgKilledEnemy.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGgKilledEnemy.cs index b70a52d1c..cdda74f8c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGgKilledEnemy.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGgKilledEnemy.cs @@ -1,53 +1,52 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "gg_killed_enemy" /// -public interface EventGgKilledEnemy : IGameEvent { - - static EventGgKilledEnemy IGameEvent.Create(nint address) => new EventGgKilledEnemyImpl(address); - - static string IGameEvent.GetName() => "gg_killed_enemy"; - - static uint IGameEvent.GetHash() => 0x85DB35E2u; - /// - /// user ID who died - ///
- /// type: player_controller - ///
- int VictimID { get; set; } - - /// - /// user ID who killed - ///
- /// type: player_controller - ///
- int AttackerID { get; set; } - - /// - /// did killer dominate victim with this kill - ///
- /// type: short - ///
- short Dominated { get; set; } - - /// - /// did killer get revenge on victim with this kill - ///
- /// type: short - ///
- short Revenge { get; set; } - - /// - /// did killer kill with a bonus weapon? - ///
- /// type: bool - ///
- bool Bonus { get; set; } +public interface EventGgKilledEnemy : IGameEvent +{ + + static EventGgKilledEnemy IGameEvent.Create( nint address ) => new EventGgKilledEnemyImpl(address); + + static string IGameEvent.GetName() => "gg_killed_enemy"; + + static uint IGameEvent.GetHash() => 0x85DB35E2u; + /// + /// user ID who died + ///
+ /// type: player_controller + ///
+ public int VictimID { get; set; } + + /// + /// user ID who killed + ///
+ /// type: player_controller + ///
+ public int AttackerID { get; set; } + + /// + /// did killer dominate victim with this kill + ///
+ /// type: short + ///
+ public short Dominated { get; set; } + + /// + /// did killer get revenge on victim with this kill + ///
+ /// type: short + ///
+ public short Revenge { get; set; } + + /// + /// did killer kill with a bonus weapon? + ///
+ /// type: bool + ///
+ public bool Bonus { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGrenadeBounce.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGrenadeBounce.cs index 499e72646..76a0068b7 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGrenadeBounce.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGrenadeBounce.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "grenade_bounce" /// -public interface EventGrenadeBounce : IGameEvent { +public interface EventGrenadeBounce : IGameEvent +{ - static EventGrenadeBounce IGameEvent.Create(nint address) => new EventGrenadeBounceImpl(address); + static EventGrenadeBounce IGameEvent.Create( nint address ) => new EventGrenadeBounceImpl(address); - static string IGameEvent.GetName() => "grenade_bounce"; + static string IGameEvent.GetName() => "grenade_bounce"; - static uint IGameEvent.GetHash() => 0xF75C5166u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xF75C5166u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGrenadeThrown.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGrenadeThrown.cs index a91f234ce..02f6e91f8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGrenadeThrown.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGrenadeThrown.cs @@ -1,46 +1,46 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "grenade_thrown" /// -public interface EventGrenadeThrown : IGameEvent { - - static EventGrenadeThrown IGameEvent.Create(nint address) => new EventGrenadeThrownImpl(address); - - static string IGameEvent.GetName() => "grenade_thrown"; - - static uint IGameEvent.GetHash() => 0x0F018978u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// weapon name used - ///
- /// type: string - ///
- string Weapon { get; set; } +public interface EventGrenadeThrown : IGameEvent +{ + + static EventGrenadeThrown IGameEvent.Create( nint address ) => new EventGrenadeThrownImpl(address); + + static string IGameEvent.GetName() => "grenade_thrown"; + + static uint IGameEvent.GetHash() => 0x0F018978u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// weapon name used + ///
+ /// type: string + ///
+ public string Weapon { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGuardianWaveRestart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGuardianWaveRestart.cs index d122d3b7a..8cbe28297 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGuardianWaveRestart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventGuardianWaveRestart.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "guardian_wave_restart" /// -public interface EventGuardianWaveRestart : IGameEvent { +public interface EventGuardianWaveRestart : IGameEvent +{ - static EventGuardianWaveRestart IGameEvent.Create(nint address) => new EventGuardianWaveRestartImpl(address); + static EventGuardianWaveRestart IGameEvent.Create( nint address ) => new EventGuardianWaveRestartImpl(address); - static string IGameEvent.GetName() => "guardian_wave_restart"; + static string IGameEvent.GetName() => "guardian_wave_restart"; - static uint IGameEvent.GetHash() => 0xA7FB81A6u; + static uint IGameEvent.GetHash() => 0xA7FB81A6u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHegrenadeDetonate.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHegrenadeDetonate.cs index 15e6bcbe3..f9dde73cd 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHegrenadeDetonate.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHegrenadeDetonate.cs @@ -1,59 +1,59 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hegrenade_detonate" /// -public interface EventHegrenadeDetonate : IGameEvent { - - static EventHegrenadeDetonate IGameEvent.Create(nint address) => new EventHegrenadeDetonateImpl(address); - - static string IGameEvent.GetName() => "hegrenade_detonate"; - - static uint IGameEvent.GetHash() => 0x96A1A98Du; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short EntityID { get; set; } - - /// - /// type: float - /// - float X { get; set; } - - /// - /// type: float - /// - float Y { get; set; } - - /// - /// type: float - /// - float Z { get; set; } +public interface EventHegrenadeDetonate : IGameEvent +{ + + static EventHegrenadeDetonate IGameEvent.Create( nint address ) => new EventHegrenadeDetonateImpl(address); + + static string IGameEvent.GetName() => "hegrenade_detonate"; + + static uint IGameEvent.GetHash() => 0x96A1A98Du; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short EntityID { get; set; } + + /// + /// type: float + /// + public float X { get; set; } + + /// + /// type: float + /// + public float Y { get; set; } + + /// + /// type: float + /// + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHelicopterGrenadePuntMiss.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHelicopterGrenadePuntMiss.cs index e669809e3..ce0ef047a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHelicopterGrenadePuntMiss.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHelicopterGrenadePuntMiss.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "helicopter_grenade_punt_miss" /// -public interface EventHelicopterGrenadePuntMiss : IGameEvent { +public interface EventHelicopterGrenadePuntMiss : IGameEvent +{ - static EventHelicopterGrenadePuntMiss IGameEvent.Create(nint address) => new EventHelicopterGrenadePuntMissImpl(address); + static EventHelicopterGrenadePuntMiss IGameEvent.Create( nint address ) => new EventHelicopterGrenadePuntMissImpl(address); - static string IGameEvent.GetName() => "helicopter_grenade_punt_miss"; + static string IGameEvent.GetName() => "helicopter_grenade_punt_miss"; - static uint IGameEvent.GetHash() => 0xB6DF8460u; + static uint IGameEvent.GetHash() => 0xB6DF8460u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHideDeathpanel.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHideDeathpanel.cs index cc1142336..e3bda0f5e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHideDeathpanel.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHideDeathpanel.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hide_deathpanel" /// -public interface EventHideDeathpanel : IGameEvent { +public interface EventHideDeathpanel : IGameEvent +{ - static EventHideDeathpanel IGameEvent.Create(nint address) => new EventHideDeathpanelImpl(address); + static EventHideDeathpanel IGameEvent.Create( nint address ) => new EventHideDeathpanelImpl(address); - static string IGameEvent.GetName() => "hide_deathpanel"; + static string IGameEvent.GetName() => "hide_deathpanel"; - static uint IGameEvent.GetHash() => 0x3B386392u; + static uint IGameEvent.GetHash() => 0x3B386392u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvCameraman.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvCameraman.cs index cf4bbdfc4..287dc2e6d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvCameraman.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvCameraman.cs @@ -1,7 +1,7 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,36 +9,36 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "hltv_cameraman" /// a spectator/player is a cameraman /// -public interface EventHltvCameraman : IGameEvent { - - static EventHltvCameraman IGameEvent.Create(nint address) => new EventHltvCameramanImpl(address); - - static string IGameEvent.GetName() => "hltv_cameraman"; - - static uint IGameEvent.GetHash() => 0xD54932D5u; - /// - /// camera man entity index - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// camera man entity index - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // camera man entity index - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// camera man entity index - ///
- /// type: player_controller - ///
- int UserId { get; set; } +public interface EventHltvCameraman : IGameEvent +{ + + static EventHltvCameraman IGameEvent.Create( nint address ) => new EventHltvCameramanImpl(address); + + static string IGameEvent.GetName() => "hltv_cameraman"; + + static uint IGameEvent.GetHash() => 0xD54932D5u; + /// + /// camera man entity index + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// camera man entity index + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // camera man entity index + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// camera man entity index + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvChangedMode.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvChangedMode.cs index 27aa0c3f5..c35f254d0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvChangedMode.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvChangedMode.cs @@ -1,33 +1,32 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hltv_changed_mode" /// -public interface EventHltvChangedMode : IGameEvent { +public interface EventHltvChangedMode : IGameEvent +{ - static EventHltvChangedMode IGameEvent.Create(nint address) => new EventHltvChangedModeImpl(address); + static EventHltvChangedMode IGameEvent.Create( nint address ) => new EventHltvChangedModeImpl(address); - static string IGameEvent.GetName() => "hltv_changed_mode"; + static string IGameEvent.GetName() => "hltv_changed_mode"; - static uint IGameEvent.GetHash() => 0x11795622u; - /// - /// type: long - /// - int OldMode { get; set; } + static uint IGameEvent.GetHash() => 0x11795622u; + /// + /// type: long + /// + public int OldMode { get; set; } - /// - /// type: long - /// - int NewMode { get; set; } + /// + /// type: long + /// + public int NewMode { get; set; } - /// - /// type: long - /// - int ObsTarget { get; set; } + /// + /// type: long + /// + public int ObsTarget { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvChase.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvChase.cs index 8d80a6d75..a51888e33 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvChase.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvChase.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,60 +7,61 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "hltv_chase" /// shot of a single entity /// -public interface EventHltvChase : IGameEvent { +public interface EventHltvChase : IGameEvent +{ - static EventHltvChase IGameEvent.Create(nint address) => new EventHltvChaseImpl(address); + static EventHltvChase IGameEvent.Create( nint address ) => new EventHltvChaseImpl(address); - static string IGameEvent.GetName() => "hltv_chase"; + static string IGameEvent.GetName() => "hltv_chase"; - static uint IGameEvent.GetHash() => 0xEB73303Au; - /// - /// primary traget index - ///
- /// type: player_controller - ///
- int Target1 { get; set; } + static uint IGameEvent.GetHash() => 0xEB73303Au; + /// + /// primary traget index + ///
+ /// type: player_controller + ///
+ public int Target1 { get; set; } - /// - /// secondary traget index or 0 - ///
- /// type: player_controller - ///
- int Target2 { get; set; } + /// + /// secondary traget index or 0 + ///
+ /// type: player_controller + ///
+ public int Target2 { get; set; } - /// - /// camera distance - ///
- /// type: short - ///
- short Distance { get; set; } + /// + /// camera distance + ///
+ /// type: short + ///
+ public short Distance { get; set; } - /// - /// view angle horizontal - ///
- /// type: short - ///
- short Theta { get; set; } + /// + /// view angle horizontal + ///
+ /// type: short + ///
+ public short Theta { get; set; } - /// - /// view angle vertical - ///
- /// type: short - ///
- short Phi { get; set; } + /// + /// view angle vertical + ///
+ /// type: short + ///
+ public short Phi { get; set; } - /// - /// camera inertia - ///
- /// type: byte - ///
- byte Inertia { get; set; } + /// + /// camera inertia + ///
+ /// type: byte + ///
+ public byte Inertia { get; set; } - /// - /// diretcor suggests to show ineye - ///
- /// type: byte - ///
- byte InEye { get; set; } + /// + /// diretcor suggests to show ineye + ///
+ /// type: byte + ///
+ public byte InEye { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvChat.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvChat.cs index b8d30ba07..ef41c2670 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvChat.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvChat.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,23 +7,24 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "hltv_chat" /// a HLTV chat msg sent by spectators /// -public interface EventHltvChat : IGameEvent { +public interface EventHltvChat : IGameEvent +{ - static EventHltvChat IGameEvent.Create(nint address) => new EventHltvChatImpl(address); + static EventHltvChat IGameEvent.Create( nint address ) => new EventHltvChatImpl(address); - static string IGameEvent.GetName() => "hltv_chat"; + static string IGameEvent.GetName() => "hltv_chat"; - static uint IGameEvent.GetHash() => 0x91E5A35Au; - /// - /// type: string - /// - string Text { get; set; } + static uint IGameEvent.GetHash() => 0x91E5A35Au; + /// + /// type: string + /// + public string Text { get; set; } - /// - /// steam id - ///
- /// type: uint64 - ///
- ulong SteamID { get; set; } + /// + /// steam id + ///
+ /// type: uint64 + ///
+ public ulong SteamID { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvFixed.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvFixed.cs index ce2a47b52..a2140e944 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvFixed.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvFixed.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,57 +7,58 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "hltv_fixed" /// show from fixed view /// -public interface EventHltvFixed : IGameEvent { +public interface EventHltvFixed : IGameEvent +{ - static EventHltvFixed IGameEvent.Create(nint address) => new EventHltvFixedImpl(address); + static EventHltvFixed IGameEvent.Create( nint address ) => new EventHltvFixedImpl(address); - static string IGameEvent.GetName() => "hltv_fixed"; + static string IGameEvent.GetName() => "hltv_fixed"; - static uint IGameEvent.GetHash() => 0xCA86FB76u; - /// - /// camera position in world - ///
- /// type: long - ///
- int PosX { get; set; } + static uint IGameEvent.GetHash() => 0xCA86FB76u; + /// + /// camera position in world + ///
+ /// type: long + ///
+ public int PosX { get; set; } - /// - /// type: long - /// - int Posy { get; set; } + /// + /// type: long + /// + public int Posy { get; set; } - /// - /// type: long - /// - int PosZ { get; set; } + /// + /// type: long + /// + public int PosZ { get; set; } - /// - /// camera angles - ///
- /// type: short - ///
- short Theta { get; set; } + /// + /// camera angles + ///
+ /// type: short + ///
+ public short Theta { get; set; } - /// - /// type: short - /// - short Phi { get; set; } + /// + /// type: short + /// + public short Phi { get; set; } - /// - /// type: short - /// - short Offset { get; set; } + /// + /// type: short + /// + public short Offset { get; set; } - /// - /// type: float - /// - float FOv { get; set; } + /// + /// type: float + /// + public float FOv { get; set; } - /// - /// follow this player - ///
- /// type: player_controller - ///
- int Target { get; set; } + /// + /// follow this player + ///
+ /// type: player_controller + ///
+ public int Target { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvMessage.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvMessage.cs index 6158412b5..b5359fc63 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvMessage.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvMessage.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,16 +7,17 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "hltv_message" /// a HLTV message send by moderators /// -public interface EventHltvMessage : IGameEvent { +public interface EventHltvMessage : IGameEvent +{ - static EventHltvMessage IGameEvent.Create(nint address) => new EventHltvMessageImpl(address); + static EventHltvMessage IGameEvent.Create( nint address ) => new EventHltvMessageImpl(address); - static string IGameEvent.GetName() => "hltv_message"; + static string IGameEvent.GetName() => "hltv_message"; - static uint IGameEvent.GetHash() => 0x0E93862Bu; - /// - /// type: string - /// - string Text { get; set; } + static uint IGameEvent.GetHash() => 0x0E93862Bu; + /// + /// type: string + /// + public string Text { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvRankCamera.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvRankCamera.cs index 3df6aa7e4..65fc106e4 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvRankCamera.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvRankCamera.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,32 +7,33 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "hltv_rank_camera" /// a camera ranking /// -public interface EventHltvRankCamera : IGameEvent { - - static EventHltvRankCamera IGameEvent.Create(nint address) => new EventHltvRankCameraImpl(address); - - static string IGameEvent.GetName() => "hltv_rank_camera"; - - static uint IGameEvent.GetHash() => 0x493E49E8u; - /// - /// fixed camera index - ///
- /// type: byte - ///
- byte Index { get; set; } - - /// - /// ranking, how interesting is this camera view - ///
- /// type: float - ///
- float Rank { get; set; } - - /// - /// best/closest target entity - ///
- /// type: player_controller - ///
- int Target { get; set; } +public interface EventHltvRankCamera : IGameEvent +{ + + static EventHltvRankCamera IGameEvent.Create( nint address ) => new EventHltvRankCameraImpl(address); + + static string IGameEvent.GetName() => "hltv_rank_camera"; + + static uint IGameEvent.GetHash() => 0x493E49E8u; + /// + /// fixed camera index + ///
+ /// type: byte + ///
+ public byte Index { get; set; } + + /// + /// ranking, how interesting is this camera view + ///
+ /// type: float + ///
+ public float Rank { get; set; } + + /// + /// best/closest target entity + ///
+ /// type: player_controller + ///
+ public int Target { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvRankEntity.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvRankEntity.cs index 1bf42d5da..323178579 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvRankEntity.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvRankEntity.cs @@ -1,7 +1,7 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,50 +9,50 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "hltv_rank_entity" /// an entity ranking /// -public interface EventHltvRankEntity : IGameEvent { - - static EventHltvRankEntity IGameEvent.Create(nint address) => new EventHltvRankEntityImpl(address); - - static string IGameEvent.GetName() => "hltv_rank_entity"; - - static uint IGameEvent.GetHash() => 0xC49644C0u; - /// - /// player slot - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player slot - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player slot - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player slot - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// ranking, how interesting is this entity to view - ///
- /// type: float - ///
- float Rank { get; set; } - - /// - /// best/closest target entity - ///
- /// type: player_controller - ///
- int Target { get; set; } +public interface EventHltvRankEntity : IGameEvent +{ + + static EventHltvRankEntity IGameEvent.Create( nint address ) => new EventHltvRankEntityImpl(address); + + static string IGameEvent.GetName() => "hltv_rank_entity"; + + static uint IGameEvent.GetHash() => 0xC49644C0u; + /// + /// player slot + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player slot + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player slot + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player slot + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// ranking, how interesting is this entity to view + ///
+ /// type: float + ///
+ public float Rank { get; set; } + + /// + /// best/closest target entity + ///
+ /// type: player_controller + ///
+ public int Target { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvReplay.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvReplay.cs index 1e6501a8d..8178a0395 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvReplay.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvReplay.cs @@ -1,32 +1,31 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hltv_replay" /// -public interface EventHltvReplay : IGameEvent { +public interface EventHltvReplay : IGameEvent +{ - static EventHltvReplay IGameEvent.Create(nint address) => new EventHltvReplayImpl(address); + static EventHltvReplay IGameEvent.Create( nint address ) => new EventHltvReplayImpl(address); - static string IGameEvent.GetName() => "hltv_replay"; + static string IGameEvent.GetName() => "hltv_replay"; - static uint IGameEvent.GetHash() => 0xC117A4EBu; - /// - /// number of seconds in killer replay delay - ///
- /// type: long - ///
- int Delay { get; set; } + static uint IGameEvent.GetHash() => 0xC117A4EBu; + /// + /// number of seconds in killer replay delay + ///
+ /// type: long + ///
+ public int Delay { get; set; } - /// - /// reason for replay (ReplayEventType_t) - ///
- /// type: long - ///
- int Reason { get; set; } + /// + /// reason for replay (ReplayEventType_t) + ///
+ /// type: long + ///
+ public int Reason { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvReplayStatus.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvReplayStatus.cs index c97d291be..73cbeb256 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvReplayStatus.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvReplayStatus.cs @@ -1,25 +1,24 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hltv_replay_status" /// -public interface EventHltvReplayStatus : IGameEvent { +public interface EventHltvReplayStatus : IGameEvent +{ - static EventHltvReplayStatus IGameEvent.Create(nint address) => new EventHltvReplayStatusImpl(address); + static EventHltvReplayStatus IGameEvent.Create( nint address ) => new EventHltvReplayStatusImpl(address); - static string IGameEvent.GetName() => "hltv_replay_status"; + static string IGameEvent.GetName() => "hltv_replay_status"; - static uint IGameEvent.GetHash() => 0x262D2D46u; - /// - /// reason for hltv replay status change () - ///
- /// type: long - ///
- int Reason { get; set; } + static uint IGameEvent.GetHash() => 0x262D2D46u; + /// + /// reason for hltv replay status change () + ///
+ /// type: long + ///
+ public int Reason { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvStatus.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvStatus.cs index 32dbca613..6bceb6250 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvStatus.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvStatus.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,39 +7,40 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "hltv_status" /// general HLTV status /// -public interface EventHltvStatus : IGameEvent { - - static EventHltvStatus IGameEvent.Create(nint address) => new EventHltvStatusImpl(address); - - static string IGameEvent.GetName() => "hltv_status"; - - static uint IGameEvent.GetHash() => 0x81C8CF76u; - /// - /// number of HLTV spectators - ///
- /// type: long - ///
- int Clients { get; set; } - - /// - /// number of HLTV slots - ///
- /// type: long - ///
- int Slots { get; set; } - - /// - /// number of HLTV proxies - ///
- /// type: short - ///
- short Proxies { get; set; } - - /// - /// disptach master IP:port - ///
- /// type: string - ///
- string Master { get; set; } +public interface EventHltvStatus : IGameEvent +{ + + static EventHltvStatus IGameEvent.Create( nint address ) => new EventHltvStatusImpl(address); + + static string IGameEvent.GetName() => "hltv_status"; + + static uint IGameEvent.GetHash() => 0x81C8CF76u; + /// + /// number of HLTV spectators + ///
+ /// type: long + ///
+ public int Clients { get; set; } + + /// + /// number of HLTV slots + ///
+ /// type: long + ///
+ public int Slots { get; set; } + + /// + /// number of HLTV proxies + ///
+ /// type: short + ///
+ public short Proxies { get; set; } + + /// + /// disptach master IP:port + ///
+ /// type: string + ///
+ public string Master { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvTitle.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvTitle.cs index e99983354..2f4937da6 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvTitle.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvTitle.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hltv_title" /// -public interface EventHltvTitle : IGameEvent { +public interface EventHltvTitle : IGameEvent +{ - static EventHltvTitle IGameEvent.Create(nint address) => new EventHltvTitleImpl(address); + static EventHltvTitle IGameEvent.Create( nint address ) => new EventHltvTitleImpl(address); - static string IGameEvent.GetName() => "hltv_title"; + static string IGameEvent.GetName() => "hltv_title"; - static uint IGameEvent.GetHash() => 0xA9B9262Au; - /// - /// type: string - /// - string Text { get; set; } + static uint IGameEvent.GetHash() => 0xA9B9262Au; + /// + /// type: string + /// + public string Text { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvVersioninfo.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvVersioninfo.cs index c2f796240..f99c8aa77 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvVersioninfo.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHltvVersioninfo.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hltv_versioninfo" /// -public interface EventHltvVersioninfo : IGameEvent { +public interface EventHltvVersioninfo : IGameEvent +{ - static EventHltvVersioninfo IGameEvent.Create(nint address) => new EventHltvVersioninfoImpl(address); + static EventHltvVersioninfo IGameEvent.Create( nint address ) => new EventHltvVersioninfoImpl(address); - static string IGameEvent.GetName() => "hltv_versioninfo"; + static string IGameEvent.GetName() => "hltv_versioninfo"; - static uint IGameEvent.GetHash() => 0xAB9E0AFCu; - /// - /// type: long - /// - int Version { get; set; } + static uint IGameEvent.GetHash() => 0xAB9E0AFCu; + /// + /// type: long + /// + public int Version { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageCallForHelp.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageCallForHelp.cs index 5a67b68cc..cbfd17bb2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageCallForHelp.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageCallForHelp.cs @@ -1,25 +1,24 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hostage_call_for_help" /// -public interface EventHostageCallForHelp : IGameEvent { +public interface EventHostageCallForHelp : IGameEvent +{ - static EventHostageCallForHelp IGameEvent.Create(nint address) => new EventHostageCallForHelpImpl(address); + static EventHostageCallForHelp IGameEvent.Create( nint address ) => new EventHostageCallForHelpImpl(address); - static string IGameEvent.GetName() => "hostage_call_for_help"; + static string IGameEvent.GetName() => "hostage_call_for_help"; - static uint IGameEvent.GetHash() => 0xADE57017u; - /// - /// hostage entity index - ///
- /// type: short - ///
- short Hostage { get; set; } + static uint IGameEvent.GetHash() => 0xADE57017u; + /// + /// hostage entity index + ///
+ /// type: short + ///
+ public short Hostage { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageFollows.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageFollows.cs index c4353b54c..26e4e3594 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageFollows.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageFollows.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hostage_follows" /// -public interface EventHostageFollows : IGameEvent { - - static EventHostageFollows IGameEvent.Create(nint address) => new EventHostageFollowsImpl(address); - - static string IGameEvent.GetName() => "hostage_follows"; - - static uint IGameEvent.GetHash() => 0xEC398ED7u; - /// - /// player who touched the hostage - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who touched the hostage - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who touched the hostage - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who touched the hostage - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// hostage entity index - ///
- /// type: short - ///
- short Hostage { get; set; } +public interface EventHostageFollows : IGameEvent +{ + + static EventHostageFollows IGameEvent.Create( nint address ) => new EventHostageFollowsImpl(address); + + static string IGameEvent.GetName() => "hostage_follows"; + + static uint IGameEvent.GetHash() => 0xEC398ED7u; + /// + /// player who touched the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who touched the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who touched the hostage + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who touched the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// hostage entity index + ///
+ /// type: short + ///
+ public short Hostage { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageHurt.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageHurt.cs index 3c9d6fcac..97417d523 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageHurt.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageHurt.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hostage_hurt" /// -public interface EventHostageHurt : IGameEvent { - - static EventHostageHurt IGameEvent.Create(nint address) => new EventHostageHurtImpl(address); - - static string IGameEvent.GetName() => "hostage_hurt"; - - static uint IGameEvent.GetHash() => 0x5F292C42u; - /// - /// player who hurt the hostage - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who hurt the hostage - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who hurt the hostage - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who hurt the hostage - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// hostage entity index - ///
- /// type: short - ///
- short Hostage { get; set; } +public interface EventHostageHurt : IGameEvent +{ + + static EventHostageHurt IGameEvent.Create( nint address ) => new EventHostageHurtImpl(address); + + static string IGameEvent.GetName() => "hostage_hurt"; + + static uint IGameEvent.GetHash() => 0x5F292C42u; + /// + /// player who hurt the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who hurt the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who hurt the hostage + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who hurt the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// hostage entity index + ///
+ /// type: short + ///
+ public short Hostage { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageKilled.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageKilled.cs index 3fe19dd67..e7b452ccb 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageKilled.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageKilled.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hostage_killed" /// -public interface EventHostageKilled : IGameEvent { - - static EventHostageKilled IGameEvent.Create(nint address) => new EventHostageKilledImpl(address); - - static string IGameEvent.GetName() => "hostage_killed"; - - static uint IGameEvent.GetHash() => 0x0B1DFB8Au; - /// - /// player who killed the hostage - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who killed the hostage - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who killed the hostage - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who killed the hostage - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// hostage entity index - ///
- /// type: short - ///
- short Hostage { get; set; } +public interface EventHostageKilled : IGameEvent +{ + + static EventHostageKilled IGameEvent.Create( nint address ) => new EventHostageKilledImpl(address); + + static string IGameEvent.GetName() => "hostage_killed"; + + static uint IGameEvent.GetHash() => 0x0B1DFB8Au; + /// + /// player who killed the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who killed the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who killed the hostage + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who killed the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// hostage entity index + ///
+ /// type: short + ///
+ public short Hostage { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageRescued.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageRescued.cs index 004e0c274..13be9e8e0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageRescued.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageRescued.cs @@ -1,57 +1,57 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hostage_rescued" /// -public interface EventHostageRescued : IGameEvent { - - static EventHostageRescued IGameEvent.Create(nint address) => new EventHostageRescuedImpl(address); - - static string IGameEvent.GetName() => "hostage_rescued"; - - static uint IGameEvent.GetHash() => 0x46CA33D6u; - /// - /// player who rescued the hostage - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who rescued the hostage - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who rescued the hostage - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who rescued the hostage - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// hostage entity index - ///
- /// type: short - ///
- short Hostage { get; set; } - - /// - /// rescue site index - ///
- /// type: short - ///
- short Site { get; set; } +public interface EventHostageRescued : IGameEvent +{ + + static EventHostageRescued IGameEvent.Create( nint address ) => new EventHostageRescuedImpl(address); + + static string IGameEvent.GetName() => "hostage_rescued"; + + static uint IGameEvent.GetHash() => 0x46CA33D6u; + /// + /// player who rescued the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who rescued the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who rescued the hostage + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who rescued the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// hostage entity index + ///
+ /// type: short + ///
+ public short Hostage { get; set; } + + /// + /// rescue site index + ///
+ /// type: short + ///
+ public short Site { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageRescuedAll.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageRescuedAll.cs index 4cb5cd085..d91309882 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageRescuedAll.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageRescuedAll.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hostage_rescued_all" /// -public interface EventHostageRescuedAll : IGameEvent { +public interface EventHostageRescuedAll : IGameEvent +{ - static EventHostageRescuedAll IGameEvent.Create(nint address) => new EventHostageRescuedAllImpl(address); + static EventHostageRescuedAll IGameEvent.Create( nint address ) => new EventHostageRescuedAllImpl(address); - static string IGameEvent.GetName() => "hostage_rescued_all"; + static string IGameEvent.GetName() => "hostage_rescued_all"; - static uint IGameEvent.GetHash() => 0x9A8C08CEu; + static uint IGameEvent.GetHash() => 0x9A8C08CEu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageStopsFollowing.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageStopsFollowing.cs index 7cbef04e2..e74f365b5 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageStopsFollowing.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostageStopsFollowing.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hostage_stops_following" /// -public interface EventHostageStopsFollowing : IGameEvent { - - static EventHostageStopsFollowing IGameEvent.Create(nint address) => new EventHostageStopsFollowingImpl(address); - - static string IGameEvent.GetName() => "hostage_stops_following"; - - static uint IGameEvent.GetHash() => 0x63B81600u; - /// - /// player who rescued the hostage - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who rescued the hostage - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who rescued the hostage - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who rescued the hostage - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// hostage entity index - ///
- /// type: short - ///
- short Hostage { get; set; } +public interface EventHostageStopsFollowing : IGameEvent +{ + + static EventHostageStopsFollowing IGameEvent.Create( nint address ) => new EventHostageStopsFollowingImpl(address); + + static string IGameEvent.GetName() => "hostage_stops_following"; + + static uint IGameEvent.GetHash() => 0x63B81600u; + /// + /// player who rescued the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who rescued the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who rescued the hostage + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who rescued the hostage + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// hostage entity index + ///
+ /// type: short + ///
+ public short Hostage { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostnameChanged.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostnameChanged.cs index 797ebff09..2eccc9512 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostnameChanged.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventHostnameChanged.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "hostname_changed" /// -public interface EventHostnameChanged : IGameEvent { +public interface EventHostnameChanged : IGameEvent +{ - static EventHostnameChanged IGameEvent.Create(nint address) => new EventHostnameChangedImpl(address); + static EventHostnameChanged IGameEvent.Create( nint address ) => new EventHostnameChangedImpl(address); - static string IGameEvent.GetName() => "hostname_changed"; + static string IGameEvent.GetName() => "hostname_changed"; - static uint IGameEvent.GetHash() => 0x81496EB7u; - /// - /// type: string - /// - string Hostname { get; set; } + static uint IGameEvent.GetHash() => 0x81496EB7u; + /// + /// type: string + /// + public string Hostname { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInfernoExpire.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInfernoExpire.cs index 0b5cdcd35..781449bc7 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInfernoExpire.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInfernoExpire.cs @@ -1,38 +1,37 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "inferno_expire" /// -public interface EventInfernoExpire : IGameEvent { +public interface EventInfernoExpire : IGameEvent +{ - static EventInfernoExpire IGameEvent.Create(nint address) => new EventInfernoExpireImpl(address); + static EventInfernoExpire IGameEvent.Create( nint address ) => new EventInfernoExpireImpl(address); - static string IGameEvent.GetName() => "inferno_expire"; + static string IGameEvent.GetName() => "inferno_expire"; - static uint IGameEvent.GetHash() => 0x6C556CEEu; - /// - /// type: short - /// - short EntityID { get; set; } + static uint IGameEvent.GetHash() => 0x6C556CEEu; + /// + /// type: short + /// + public short EntityID { get; set; } - /// - /// type: float - /// - float X { get; set; } + /// + /// type: float + /// + public float X { get; set; } - /// - /// type: float - /// - float Y { get; set; } + /// + /// type: float + /// + public float Y { get; set; } - /// - /// type: float - /// - float Z { get; set; } + /// + /// type: float + /// + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInfernoExtinguish.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInfernoExtinguish.cs index c23c385c6..33c1d7ca9 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInfernoExtinguish.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInfernoExtinguish.cs @@ -1,38 +1,37 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "inferno_extinguish" /// -public interface EventInfernoExtinguish : IGameEvent { +public interface EventInfernoExtinguish : IGameEvent +{ - static EventInfernoExtinguish IGameEvent.Create(nint address) => new EventInfernoExtinguishImpl(address); + static EventInfernoExtinguish IGameEvent.Create( nint address ) => new EventInfernoExtinguishImpl(address); - static string IGameEvent.GetName() => "inferno_extinguish"; + static string IGameEvent.GetName() => "inferno_extinguish"; - static uint IGameEvent.GetHash() => 0x9A4147B1u; - /// - /// type: short - /// - short EntityID { get; set; } + static uint IGameEvent.GetHash() => 0x9A4147B1u; + /// + /// type: short + /// + public short EntityID { get; set; } - /// - /// type: float - /// - float X { get; set; } + /// + /// type: float + /// + public float X { get; set; } - /// - /// type: float - /// - float Y { get; set; } + /// + /// type: float + /// + public float Y { get; set; } - /// - /// type: float - /// - float Z { get; set; } + /// + /// type: float + /// + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInfernoStartburn.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInfernoStartburn.cs index 19babf91b..b5d9df4fd 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInfernoStartburn.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInfernoStartburn.cs @@ -1,38 +1,37 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "inferno_startburn" /// -public interface EventInfernoStartburn : IGameEvent { +public interface EventInfernoStartburn : IGameEvent +{ - static EventInfernoStartburn IGameEvent.Create(nint address) => new EventInfernoStartburnImpl(address); + static EventInfernoStartburn IGameEvent.Create( nint address ) => new EventInfernoStartburnImpl(address); - static string IGameEvent.GetName() => "inferno_startburn"; + static string IGameEvent.GetName() => "inferno_startburn"; - static uint IGameEvent.GetHash() => 0xD080B17Au; - /// - /// type: short - /// - short EntityID { get; set; } + static uint IGameEvent.GetHash() => 0xD080B17Au; + /// + /// type: short + /// + public short EntityID { get; set; } - /// - /// type: float - /// - float X { get; set; } + /// + /// type: float + /// + public float X { get; set; } - /// - /// type: float - /// - float Y { get; set; } + /// + /// type: float + /// + public float Y { get; set; } - /// - /// type: float - /// - float Z { get; set; } + /// + /// type: float + /// + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInspectWeapon.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInspectWeapon.cs index 4b4483477..d8e32a368 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInspectWeapon.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInspectWeapon.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "inspect_weapon" /// -public interface EventInspectWeapon : IGameEvent { +public interface EventInspectWeapon : IGameEvent +{ - static EventInspectWeapon IGameEvent.Create(nint address) => new EventInspectWeaponImpl(address); + static EventInspectWeapon IGameEvent.Create( nint address ) => new EventInspectWeaponImpl(address); - static string IGameEvent.GetName() => "inspect_weapon"; + static string IGameEvent.GetName() => "inspect_weapon"; - static uint IGameEvent.GetHash() => 0x211A0C2Cu; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0x211A0C2Cu; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorCloseLesson.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorCloseLesson.cs index e78b3a2bc..a46615576 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorCloseLesson.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorCloseLesson.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "instructor_close_lesson" /// -public interface EventInstructorCloseLesson : IGameEvent { - - static EventInstructorCloseLesson IGameEvent.Create(nint address) => new EventInstructorCloseLessonImpl(address); - - static string IGameEvent.GetName() => "instructor_close_lesson"; - - static uint IGameEvent.GetHash() => 0x2C472152u; - /// - /// The player who this lesson is intended for - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// The player who this lesson is intended for - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // The player who this lesson is intended for - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// The player who this lesson is intended for - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// Name of the lesson to start. Must match instructor_lesson.txt - ///
- /// type: string - ///
- string HintName { get; set; } +public interface EventInstructorCloseLesson : IGameEvent +{ + + static EventInstructorCloseLesson IGameEvent.Create( nint address ) => new EventInstructorCloseLessonImpl(address); + + static string IGameEvent.GetName() => "instructor_close_lesson"; + + static uint IGameEvent.GetHash() => 0x2C472152u; + /// + /// The player who this lesson is intended for + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// The player who this lesson is intended for + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // The player who this lesson is intended for + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// The player who this lesson is intended for + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// Name of the lesson to start. Must match instructor_lesson.txt + ///
+ /// type: string + ///
+ public string HintName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorServerHintCreate.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorServerHintCreate.cs index 4dcec9fb1..2338e3bda 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorServerHintCreate.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorServerHintCreate.cs @@ -1,7 +1,7 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,225 +9,225 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "instructor_server_hint_create" /// create a hint using data supplied entirely by the server/map. Intended for hints to smooth playtests before content is ready to make the hint unneccessary. NOT INTENDED AS A SHIPPABLE CRUTCH /// -public interface EventInstructorServerHintCreate : IGameEvent { - - static EventInstructorServerHintCreate IGameEvent.Create(nint address) => new EventInstructorServerHintCreateImpl(address); - - static string IGameEvent.GetName() => "instructor_server_hint_create"; - - static uint IGameEvent.GetHash() => 0xB6A33F21u; - /// - /// user ID of the player that triggered the hint - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// user ID of the player that triggered the hint - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // user ID of the player that triggered the hint - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// user ID of the player that triggered the hint - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// entity id of the env_instructor_hint that fired the event - ///
- /// type: long - ///
- int HintEntindex { get; set; } - - /// - /// what to name the hint. For referencing it again later (e.g. a kill command for the hint instead of a timeout) - ///
- /// type: string - ///
- string HintName { get; set; } - - /// - /// type name so that messages of the same type will replace each other - ///
- /// type: string - ///
- string HintReplaceKey { get; set; } - - /// - /// entity id that the hint should display at - ///
- /// type: long - ///
- int HintTarget { get; set; } - - /// - /// playerslot of the activator - ///
- /// type: player_controller - ///
- int HintActivatorUserid { get; set; } - - /// - /// how long in seconds until the hint automatically times out, 0 = never - ///
- /// type: short - ///
- short HintTimeout { get; set; } - - /// - /// the hint icon to use when the hint is onscreen. e.g. "icon_alert_red" - ///
- /// type: string - ///
- string HintIconOnscreen { get; set; } - - /// - /// the hint icon to use when the hint is offscreen. e.g. "icon_alert" - ///
- /// type: string - ///
- string HintIconOffscreen { get; set; } - - /// - /// the hint caption. e.g. "#ThisIsDangerous" - ///
- /// type: string - ///
- string HintCaption { get; set; } - - /// - /// the hint caption that only the activator sees e.g. "#YouPushedItGood" - ///
- /// type: string - ///
- string HintActivatorCaption { get; set; } - - /// - /// the hint color in "r,g,b" format where each component is 0-255 - ///
- /// type: string - ///
- string HintColor { get; set; } - - /// - /// how far on the z axis to offset the hint from entity origin - ///
- /// type: float - ///
- float HintIconOffset { get; set; } - - /// - /// range before the hint is culled - ///
- /// type: float - ///
- float HintRange { get; set; } - - /// - /// hint flags - ///
- /// type: long - ///
- int HintFlags { get; set; } - - /// - /// bindings to use when use_binding is the onscreen icon - ///
- /// type: string - ///
- string HintBinding { get; set; } - - /// - /// if false, the hint will dissappear if the target entity is invisible - ///
- /// type: bool - ///
- bool HintAllowNodrawTarget { get; set; } - - /// - /// if true, the hint will not show when outside the player view - ///
- /// type: bool - ///
- bool HintNooffscreen { get; set; } - - /// - /// if true, the hint caption will show even if the hint is occluded - ///
- /// type: bool - ///
- bool HintForcecaption { get; set; } - - /// - /// if true, only the local player will see the hint - ///
- /// type: bool - ///
- bool HintLocalPlayerOnly { get; set; } - - /// - /// Game sound to play - ///
- /// type: string - ///
- string HintStartSound { get; set; } - - /// - /// Path for Panorama layout file - ///
- /// type: string - ///
- string HintLayoutfile { get; set; } - - /// - /// Attachment type for the Panorama panel - ///
- /// type: short - ///
- short HintVrPanelType { get; set; } - - /// - /// Height offset for attached panels - ///
- /// type: float - ///
- float HintVrHeightOffset { get; set; } - - /// - /// offset for attached panels - ///
- /// type: float - ///
- float HintVrOffsetX { get; set; } - - /// - /// offset for attached panels - ///
- /// type: float - ///
- float HintVrOffsetY { get; set; } - - /// - /// offset for attached panels - ///
- /// type: float - ///
- float HintVrOffsetZ { get; set; } - - /// - /// gamepad bindings to use when use_binding is the onscreen icon - ///
- /// type: string - ///
- string HintGamepadBinding { get; set; } +public interface EventInstructorServerHintCreate : IGameEvent +{ + + static EventInstructorServerHintCreate IGameEvent.Create( nint address ) => new EventInstructorServerHintCreateImpl(address); + + static string IGameEvent.GetName() => "instructor_server_hint_create"; + + static uint IGameEvent.GetHash() => 0xB6A33F21u; + /// + /// user ID of the player that triggered the hint + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// user ID of the player that triggered the hint + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // user ID of the player that triggered the hint + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// user ID of the player that triggered the hint + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// entity id of the env_instructor_hint that fired the event + ///
+ /// type: long + ///
+ public int HintEntindex { get; set; } + + /// + /// what to name the hint. For referencing it again later (e.g. a kill command for the hint instead of a timeout) + ///
+ /// type: string + ///
+ public string HintName { get; set; } + + /// + /// type name so that messages of the same type will replace each other + ///
+ /// type: string + ///
+ public string HintReplaceKey { get; set; } + + /// + /// entity id that the hint should display at + ///
+ /// type: long + ///
+ public int HintTarget { get; set; } + + /// + /// playerslot of the activator + ///
+ /// type: player_controller + ///
+ public int HintActivatorUserid { get; set; } + + /// + /// how long in seconds until the hint automatically times out, 0 = never + ///
+ /// type: short + ///
+ public short HintTimeout { get; set; } + + /// + /// the hint icon to use when the hint is onscreen. e.g. "icon_alert_red" + ///
+ /// type: string + ///
+ public string HintIconOnscreen { get; set; } + + /// + /// the hint icon to use when the hint is offscreen. e.g. "icon_alert" + ///
+ /// type: string + ///
+ public string HintIconOffscreen { get; set; } + + /// + /// the hint caption. e.g. "#ThisIsDangerous" + ///
+ /// type: string + ///
+ public string HintCaption { get; set; } + + /// + /// the hint caption that only the activator sees e.g. "#YouPushedItGood" + ///
+ /// type: string + ///
+ public string HintActivatorCaption { get; set; } + + /// + /// the hint color in "r,g,b" format where each component is 0-255 + ///
+ /// type: string + ///
+ public string HintColor { get; set; } + + /// + /// how far on the z axis to offset the hint from entity origin + ///
+ /// type: float + ///
+ public float HintIconOffset { get; set; } + + /// + /// range before the hint is culled + ///
+ /// type: float + ///
+ public float HintRange { get; set; } + + /// + /// hint flags + ///
+ /// type: long + ///
+ public int HintFlags { get; set; } + + /// + /// bindings to use when use_binding is the onscreen icon + ///
+ /// type: string + ///
+ public string HintBinding { get; set; } + + /// + /// if false, the hint will dissappear if the target entity is invisible + ///
+ /// type: bool + ///
+ public bool HintAllowNodrawTarget { get; set; } + + /// + /// if true, the hint will not show when outside the player view + ///
+ /// type: bool + ///
+ public bool HintNooffscreen { get; set; } + + /// + /// if true, the hint caption will show even if the hint is occluded + ///
+ /// type: bool + ///
+ public bool HintForcecaption { get; set; } + + /// + /// if true, only the local player will see the hint + ///
+ /// type: bool + ///
+ public bool HintLocalPlayerOnly { get; set; } + + /// + /// Game sound to play + ///
+ /// type: string + ///
+ public string HintStartSound { get; set; } + + /// + /// Path for Panorama layout file + ///
+ /// type: string + ///
+ public string HintLayoutfile { get; set; } + + /// + /// Attachment type for the Panorama panel + ///
+ /// type: short + ///
+ public short HintVrPanelType { get; set; } + + /// + /// Height offset for attached panels + ///
+ /// type: float + ///
+ public float HintVrHeightOffset { get; set; } + + /// + /// offset for attached panels + ///
+ /// type: float + ///
+ public float HintVrOffsetX { get; set; } + + /// + /// offset for attached panels + ///
+ /// type: float + ///
+ public float HintVrOffsetY { get; set; } + + /// + /// offset for attached panels + ///
+ /// type: float + ///
+ public float HintVrOffsetZ { get; set; } + + /// + /// gamepad bindings to use when use_binding is the onscreen icon + ///
+ /// type: string + ///
+ public string HintGamepadBinding { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorServerHintStop.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorServerHintStop.cs index e33d85c51..bb5fda170 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorServerHintStop.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorServerHintStop.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,25 +7,26 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "instructor_server_hint_stop" /// destroys a server/map created hint /// -public interface EventInstructorServerHintStop : IGameEvent { +public interface EventInstructorServerHintStop : IGameEvent +{ - static EventInstructorServerHintStop IGameEvent.Create(nint address) => new EventInstructorServerHintStopImpl(address); + static EventInstructorServerHintStop IGameEvent.Create( nint address ) => new EventInstructorServerHintStopImpl(address); - static string IGameEvent.GetName() => "instructor_server_hint_stop"; + static string IGameEvent.GetName() => "instructor_server_hint_stop"; - static uint IGameEvent.GetHash() => 0xEA673171u; - /// - /// The hint to stop. Will stop ALL hints with this name - ///
- /// type: string - ///
- string HintName { get; set; } + static uint IGameEvent.GetHash() => 0xEA673171u; + /// + /// The hint to stop. Will stop ALL hints with this name + ///
+ /// type: string + ///
+ public string HintName { get; set; } - /// - /// entity id of the env_instructor_hint that fired the event - ///
- /// type: long - ///
- int HintEntindex { get; set; } + /// + /// entity id of the env_instructor_hint that fired the event + ///
+ /// type: long + ///
+ public int HintEntindex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorStartLesson.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorStartLesson.cs index fc5db9cf6..2e0585d06 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorStartLesson.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInstructorStartLesson.cs @@ -1,72 +1,72 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "instructor_start_lesson" /// -public interface EventInstructorStartLesson : IGameEvent { +public interface EventInstructorStartLesson : IGameEvent +{ - static EventInstructorStartLesson IGameEvent.Create(nint address) => new EventInstructorStartLessonImpl(address); + static EventInstructorStartLesson IGameEvent.Create( nint address ) => new EventInstructorStartLessonImpl(address); - static string IGameEvent.GetName() => "instructor_start_lesson"; + static string IGameEvent.GetName() => "instructor_start_lesson"; - static uint IGameEvent.GetHash() => 0x03846AA2u; - /// - /// The player who this lesson is intended for - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0x03846AA2u; + /// + /// The player who this lesson is intended for + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - /// The player who this lesson is intended for - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + /// The player who this lesson is intended for + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - // The player who this lesson is intended for - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// The player who this lesson is intended for - ///
- /// type: player_controller - ///
- int UserId { get; set; } + // The player who this lesson is intended for + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// The player who this lesson is intended for + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } - /// - /// Name of the lesson to start. Must match instructor_lesson.txt - ///
- /// type: string - ///
- string HintName { get; set; } + /// + /// Name of the lesson to start. Must match instructor_lesson.txt + ///
+ /// type: string + ///
+ public string HintName { get; set; } - /// - /// entity id that the hint should display at. Leave empty if controller target - ///
- /// type: long - ///
- int HintTarget { get; set; } + /// + /// entity id that the hint should display at. Leave empty if controller target + ///
+ /// type: long + ///
+ public int HintTarget { get; set; } - /// - /// type: byte - /// - byte VrMovementType { get; set; } + /// + /// type: byte + /// + public byte VrMovementType { get; set; } - /// - /// type: bool - /// - bool VrSingleController { get; set; } + /// + /// type: bool + /// + public bool VrSingleController { get; set; } - /// - /// type: byte - /// - byte VrControllerType { get; set; } + /// + /// type: byte + /// + public byte VrControllerType { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInventoryUpdated.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInventoryUpdated.cs index f960324f2..f875aff44 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInventoryUpdated.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventInventoryUpdated.cs @@ -1,28 +1,27 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "inventory_updated" /// -public interface EventInventoryUpdated : IGameEvent { +public interface EventInventoryUpdated : IGameEvent +{ - static EventInventoryUpdated IGameEvent.Create(nint address) => new EventInventoryUpdatedImpl(address); + static EventInventoryUpdated IGameEvent.Create( nint address ) => new EventInventoryUpdatedImpl(address); - static string IGameEvent.GetName() => "inventory_updated"; + static string IGameEvent.GetName() => "inventory_updated"; - static uint IGameEvent.GetHash() => 0x1EA652FFu; - /// - /// type: short - /// - short ItemDef { get; set; } + static uint IGameEvent.GetHash() => 0x1EA652FFu; + /// + /// type: short + /// + public short ItemDef { get; set; } - /// - /// type: long - /// - int Itemid { get; set; } + /// + /// type: long + /// + public int Itemid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemEquip.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemEquip.cs index 40e49e71e..4fbb5dfed 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemEquip.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemEquip.cs @@ -1,81 +1,81 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "item_equip" /// -public interface EventItemEquip : IGameEvent { - - static EventItemEquip IGameEvent.Create(nint address) => new EventItemEquipImpl(address); - - static string IGameEvent.GetName() => "item_equip"; - - static uint IGameEvent.GetHash() => 0x3D5F333Du; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' - ///
- /// type: string - ///
- string Item { get; set; } - - /// - /// type: long - /// - int DefIndex { get; set; } - - /// - /// type: bool - /// - bool CanZoom { get; set; } - - /// - /// type: bool - /// - bool HasSilencer { get; set; } - - /// - /// type: bool - /// - bool IsSilenced { get; set; } - - /// - /// type: bool - /// - bool HasTracers { get; set; } - - /// - /// type: short - /// - short WepType { get; set; } - - /// - /// type: bool - /// - bool IsPainted { get; set; } +public interface EventItemEquip : IGameEvent +{ + + static EventItemEquip IGameEvent.Create( nint address ) => new EventItemEquipImpl(address); + + static string IGameEvent.GetName() => "item_equip"; + + static uint IGameEvent.GetHash() => 0x3D5F333Du; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' + ///
+ /// type: string + ///
+ public string Item { get; set; } + + /// + /// type: long + /// + public int DefIndex { get; set; } + + /// + /// type: bool + /// + public bool CanZoom { get; set; } + + /// + /// type: bool + /// + public bool HasSilencer { get; set; } + + /// + /// type: bool + /// + public bool IsSilenced { get; set; } + + /// + /// type: bool + /// + public bool HasTracers { get; set; } + + /// + /// type: short + /// + public short WepType { get; set; } + + /// + /// type: bool + /// + public bool IsPainted { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPickup.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPickup.cs index 412113bbe..f4b727f25 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPickup.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPickup.cs @@ -1,56 +1,56 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "item_pickup" /// -public interface EventItemPickup : IGameEvent { - - static EventItemPickup IGameEvent.Create(nint address) => new EventItemPickupImpl(address); - - static string IGameEvent.GetName() => "item_pickup"; - - static uint IGameEvent.GetHash() => 0x58CEF8C3u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' - ///
- /// type: string - ///
- string Item { get; set; } - - /// - /// type: bool - /// - bool Silent { get; set; } - - /// - /// type: long - /// - int DefIndex { get; set; } +public interface EventItemPickup : IGameEvent +{ + + static EventItemPickup IGameEvent.Create( nint address ) => new EventItemPickupImpl(address); + + static string IGameEvent.GetName() => "item_pickup"; + + static uint IGameEvent.GetHash() => 0x58CEF8C3u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' + ///
+ /// type: string + ///
+ public string Item { get; set; } + + /// + /// type: bool + /// + public bool Silent { get; set; } + + /// + /// type: long + /// + public int DefIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPickupFailed.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPickupFailed.cs index 1a6bc0474..decc56b36 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPickupFailed.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPickupFailed.cs @@ -1,54 +1,54 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "item_pickup_failed" /// -public interface EventItemPickupFailed : IGameEvent { - - static EventItemPickupFailed IGameEvent.Create(nint address) => new EventItemPickupFailedImpl(address); - - static string IGameEvent.GetName() => "item_pickup_failed"; - - static uint IGameEvent.GetHash() => 0x0F6D19A9u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: string - /// - string Item { get; set; } - - /// - /// type: short - /// - short Reason { get; set; } - - /// - /// type: short - /// - short Limit { get; set; } +public interface EventItemPickupFailed : IGameEvent +{ + + static EventItemPickupFailed IGameEvent.Create( nint address ) => new EventItemPickupFailedImpl(address); + + static string IGameEvent.GetName() => "item_pickup_failed"; + + static uint IGameEvent.GetHash() => 0x0F6D19A9u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: string + /// + public string Item { get; set; } + + /// + /// type: short + /// + public short Reason { get; set; } + + /// + /// type: short + /// + public short Limit { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPickupSlerp.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPickupSlerp.cs index b8beecc7f..fcc14be0c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPickupSlerp.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPickupSlerp.cs @@ -1,49 +1,49 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "item_pickup_slerp" /// -public interface EventItemPickupSlerp : IGameEvent { - - static EventItemPickupSlerp IGameEvent.Create(nint address) => new EventItemPickupSlerpImpl(address); - - static string IGameEvent.GetName() => "item_pickup_slerp"; - - static uint IGameEvent.GetHash() => 0x88B06F48u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short Index { get; set; } - - /// - /// type: short - /// - short Behavior { get; set; } +public interface EventItemPickupSlerp : IGameEvent +{ + + static EventItemPickupSlerp IGameEvent.Create( nint address ) => new EventItemPickupSlerpImpl(address); + + static string IGameEvent.GetName() => "item_pickup_slerp"; + + static uint IGameEvent.GetHash() => 0x88B06F48u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short Index { get; set; } + + /// + /// type: short + /// + public short Behavior { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPurchase.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPurchase.cs index a44a325e8..cd6b29197 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPurchase.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemPurchase.cs @@ -1,54 +1,54 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "item_purchase" /// -public interface EventItemPurchase : IGameEvent { - - static EventItemPurchase IGameEvent.Create(nint address) => new EventItemPurchaseImpl(address); - - static string IGameEvent.GetName() => "item_purchase"; - - static uint IGameEvent.GetHash() => 0x4400FB1Cu; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short Team { get; set; } - - /// - /// type: short - /// - short LoadOut { get; set; } - - /// - /// type: string - /// - string Weapon { get; set; } +public interface EventItemPurchase : IGameEvent +{ + + static EventItemPurchase IGameEvent.Create( nint address ) => new EventItemPurchaseImpl(address); + + static string IGameEvent.GetName() => "item_purchase"; + + static uint IGameEvent.GetHash() => 0x4400FB1Cu; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short Team { get; set; } + + /// + /// type: short + /// + public short LoadOut { get; set; } + + /// + /// type: string + /// + public string Weapon { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemRemove.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemRemove.cs index 5e67218e9..bcdfcbe52 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemRemove.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemRemove.cs @@ -1,51 +1,51 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "item_remove" /// -public interface EventItemRemove : IGameEvent { - - static EventItemRemove IGameEvent.Create(nint address) => new EventItemRemoveImpl(address); - - static string IGameEvent.GetName() => "item_remove"; - - static uint IGameEvent.GetHash() => 0x4853B5C7u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' - ///
- /// type: string - ///
- string Item { get; set; } - - /// - /// type: long - /// - int DefIndex { get; set; } +public interface EventItemRemove : IGameEvent +{ + + static EventItemRemove IGameEvent.Create( nint address ) => new EventItemRemoveImpl(address); + + static string IGameEvent.GetName() => "item_remove"; + + static uint IGameEvent.GetHash() => 0x4853B5C7u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' + ///
+ /// type: string + ///
+ public string Item { get; set; } + + /// + /// type: long + /// + public int DefIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemSchemaInitialized.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemSchemaInitialized.cs index 2caebdb4f..4f4ef426f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemSchemaInitialized.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventItemSchemaInitialized.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "item_schema_initialized" /// -public interface EventItemSchemaInitialized : IGameEvent { +public interface EventItemSchemaInitialized : IGameEvent +{ - static EventItemSchemaInitialized IGameEvent.Create(nint address) => new EventItemSchemaInitializedImpl(address); + static EventItemSchemaInitialized IGameEvent.Create( nint address ) => new EventItemSchemaInitializedImpl(address); - static string IGameEvent.GetName() => "item_schema_initialized"; + static string IGameEvent.GetName() => "item_schema_initialized"; - static uint IGameEvent.GetHash() => 0x8046CAA1u; + static uint IGameEvent.GetHash() => 0x8046CAA1u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventJointeamFailed.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventJointeamFailed.cs index 29ef5b003..4d7feb6af 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventJointeamFailed.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventJointeamFailed.cs @@ -1,46 +1,46 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "jointeam_failed" /// -public interface EventJointeamFailed : IGameEvent { - - static EventJointeamFailed IGameEvent.Create(nint address) => new EventJointeamFailedImpl(address); - - static string IGameEvent.GetName() => "jointeam_failed"; - - static uint IGameEvent.GetHash() => 0xCAAD4F84u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// 0 = team_full - ///
- /// type: byte - ///
- byte Reason { get; set; } +public interface EventJointeamFailed : IGameEvent +{ + + static EventJointeamFailed IGameEvent.Create( nint address ) => new EventJointeamFailedImpl(address); + + static string IGameEvent.GetName() => "jointeam_failed"; + + static uint IGameEvent.GetHash() => 0xCAAD4F84u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// 0 = team_full + ///
+ /// type: byte + ///
+ public byte Reason { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLocalPlayerControllerTeam.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLocalPlayerControllerTeam.cs index d24b61091..ca56e5e16 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLocalPlayerControllerTeam.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLocalPlayerControllerTeam.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "local_player_controller_team" /// -public interface EventLocalPlayerControllerTeam : IGameEvent { +public interface EventLocalPlayerControllerTeam : IGameEvent +{ - static EventLocalPlayerControllerTeam IGameEvent.Create(nint address) => new EventLocalPlayerControllerTeamImpl(address); + static EventLocalPlayerControllerTeam IGameEvent.Create( nint address ) => new EventLocalPlayerControllerTeamImpl(address); - static string IGameEvent.GetName() => "local_player_controller_team"; + static string IGameEvent.GetName() => "local_player_controller_team"; - static uint IGameEvent.GetHash() => 0x06A77413u; + static uint IGameEvent.GetHash() => 0x06A77413u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLocalPlayerPawnChanged.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLocalPlayerPawnChanged.cs index f6f2d9dbc..28e39c3a2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLocalPlayerPawnChanged.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLocalPlayerPawnChanged.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "local_player_pawn_changed" /// -public interface EventLocalPlayerPawnChanged : IGameEvent { +public interface EventLocalPlayerPawnChanged : IGameEvent +{ - static EventLocalPlayerPawnChanged IGameEvent.Create(nint address) => new EventLocalPlayerPawnChangedImpl(address); + static EventLocalPlayerPawnChanged IGameEvent.Create( nint address ) => new EventLocalPlayerPawnChangedImpl(address); - static string IGameEvent.GetName() => "local_player_pawn_changed"; + static string IGameEvent.GetName() => "local_player_pawn_changed"; - static uint IGameEvent.GetHash() => 0x4703D4F0u; + static uint IGameEvent.GetHash() => 0x4703D4F0u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLocalPlayerTeam.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLocalPlayerTeam.cs index d11c5db23..c0a4aa2f9 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLocalPlayerTeam.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLocalPlayerTeam.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "local_player_team" /// -public interface EventLocalPlayerTeam : IGameEvent { +public interface EventLocalPlayerTeam : IGameEvent +{ - static EventLocalPlayerTeam IGameEvent.Create(nint address) => new EventLocalPlayerTeamImpl(address); + static EventLocalPlayerTeam IGameEvent.Create( nint address ) => new EventLocalPlayerTeamImpl(address); - static string IGameEvent.GetName() => "local_player_team"; + static string IGameEvent.GetName() => "local_player_team"; - static uint IGameEvent.GetHash() => 0x04FD6AB4u; + static uint IGameEvent.GetHash() => 0x04FD6AB4u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLootCrateOpened.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLootCrateOpened.cs index 3c81d8f29..4b4dcf969 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLootCrateOpened.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLootCrateOpened.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "loot_crate_opened" /// -public interface EventLootCrateOpened : IGameEvent { - - static EventLootCrateOpened IGameEvent.Create(nint address) => new EventLootCrateOpenedImpl(address); - - static string IGameEvent.GetName() => "loot_crate_opened"; - - static uint IGameEvent.GetHash() => 0x18E203D5u; - /// - /// player entindex - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player entindex - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player entindex - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player entindex - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type of crate (metal, wood, or paradrop) - ///
- /// type: string - ///
- string Type { get; set; } +public interface EventLootCrateOpened : IGameEvent +{ + + static EventLootCrateOpened IGameEvent.Create( nint address ) => new EventLootCrateOpenedImpl(address); + + static string IGameEvent.GetName() => "loot_crate_opened"; + + static uint IGameEvent.GetHash() => 0x18E203D5u; + /// + /// player entindex + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player entindex + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player entindex + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player entindex + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type of crate (metal, wood, or paradrop) + ///
+ /// type: string + ///
+ public string Type { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLootCrateVisible.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLootCrateVisible.cs index f207cd962..19129bb85 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLootCrateVisible.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventLootCrateVisible.cs @@ -1,57 +1,57 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "loot_crate_visible" /// -public interface EventLootCrateVisible : IGameEvent { - - static EventLootCrateVisible IGameEvent.Create(nint address) => new EventLootCrateVisibleImpl(address); - - static string IGameEvent.GetName() => "loot_crate_visible"; - - static uint IGameEvent.GetHash() => 0x1926ED06u; - /// - /// player entindex - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player entindex - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player entindex - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player entindex - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// crate entindex - ///
- /// type: short - ///
- short Subject { get; set; } - - /// - /// type of crate (metal, wood, or paradrop) - ///
- /// type: string - ///
- string Type { get; set; } +public interface EventLootCrateVisible : IGameEvent +{ + + static EventLootCrateVisible IGameEvent.Create( nint address ) => new EventLootCrateVisibleImpl(address); + + static string IGameEvent.GetName() => "loot_crate_visible"; + + static uint IGameEvent.GetHash() => 0x1926ED06u; + /// + /// player entindex + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player entindex + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player entindex + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player entindex + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// crate entindex + ///
+ /// type: short + ///
+ public short Subject { get; set; } + + /// + /// type of crate (metal, wood, or paradrop) + ///
+ /// type: string + ///
+ public string Type { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMapShutdown.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMapShutdown.cs index 10bb8c795..0dc609c92 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMapShutdown.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMapShutdown.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "map_shutdown" /// -public interface EventMapShutdown : IGameEvent { +public interface EventMapShutdown : IGameEvent +{ - static EventMapShutdown IGameEvent.Create(nint address) => new EventMapShutdownImpl(address); + static EventMapShutdown IGameEvent.Create( nint address ) => new EventMapShutdownImpl(address); - static string IGameEvent.GetName() => "map_shutdown"; + static string IGameEvent.GetName() => "map_shutdown"; - static uint IGameEvent.GetHash() => 0xCA1507ECu; + static uint IGameEvent.GetHash() => 0xCA1507ECu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMapTransition.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMapTransition.cs index d17d8e67b..fcd54ee61 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMapTransition.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMapTransition.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "map_transition" /// -public interface EventMapTransition : IGameEvent { +public interface EventMapTransition : IGameEvent +{ - static EventMapTransition IGameEvent.Create(nint address) => new EventMapTransitionImpl(address); + static EventMapTransition IGameEvent.Create( nint address ) => new EventMapTransitionImpl(address); - static string IGameEvent.GetName() => "map_transition"; + static string IGameEvent.GetName() => "map_transition"; - static uint IGameEvent.GetHash() => 0x75B82729u; + static uint IGameEvent.GetHash() => 0x75B82729u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMatchEndConditions.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMatchEndConditions.cs index ab86633ed..d3e792560 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMatchEndConditions.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMatchEndConditions.cs @@ -1,38 +1,37 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "match_end_conditions" /// -public interface EventMatchEndConditions : IGameEvent { +public interface EventMatchEndConditions : IGameEvent +{ - static EventMatchEndConditions IGameEvent.Create(nint address) => new EventMatchEndConditionsImpl(address); + static EventMatchEndConditions IGameEvent.Create( nint address ) => new EventMatchEndConditionsImpl(address); - static string IGameEvent.GetName() => "match_end_conditions"; + static string IGameEvent.GetName() => "match_end_conditions"; - static uint IGameEvent.GetHash() => 0x036AAC37u; - /// - /// type: long - /// - int FragS { get; set; } + static uint IGameEvent.GetHash() => 0x036AAC37u; + /// + /// type: long + /// + public int FragS { get; set; } - /// - /// type: long - /// - int MaxRounds { get; set; } + /// + /// type: long + /// + public int MaxRounds { get; set; } - /// - /// type: long - /// - int WinRounds { get; set; } + /// + /// type: long + /// + public int WinRounds { get; set; } - /// - /// type: long - /// - int Time { get; set; } + /// + /// type: long + /// + public int Time { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMaterialDefaultComplete.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMaterialDefaultComplete.cs index 647d7789f..6a24addd7 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMaterialDefaultComplete.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMaterialDefaultComplete.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "material_default_complete" /// -public interface EventMaterialDefaultComplete : IGameEvent { +public interface EventMaterialDefaultComplete : IGameEvent +{ - static EventMaterialDefaultComplete IGameEvent.Create(nint address) => new EventMaterialDefaultCompleteImpl(address); + static EventMaterialDefaultComplete IGameEvent.Create( nint address ) => new EventMaterialDefaultCompleteImpl(address); - static string IGameEvent.GetName() => "material_default_complete"; + static string IGameEvent.GetName() => "material_default_complete"; - static uint IGameEvent.GetHash() => 0x6235E5E8u; + static uint IGameEvent.GetHash() => 0x6235E5E8u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMbInputLockCancel.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMbInputLockCancel.cs index a91848d51..4aca3d59d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMbInputLockCancel.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMbInputLockCancel.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "mb_input_lock_cancel" /// -public interface EventMbInputLockCancel : IGameEvent { +public interface EventMbInputLockCancel : IGameEvent +{ - static EventMbInputLockCancel IGameEvent.Create(nint address) => new EventMbInputLockCancelImpl(address); + static EventMbInputLockCancel IGameEvent.Create( nint address ) => new EventMbInputLockCancelImpl(address); - static string IGameEvent.GetName() => "mb_input_lock_cancel"; + static string IGameEvent.GetName() => "mb_input_lock_cancel"; - static uint IGameEvent.GetHash() => 0x79A46A94u; + static uint IGameEvent.GetHash() => 0x79A46A94u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMbInputLockSuccess.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMbInputLockSuccess.cs index 537fd311a..1c046aa2e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMbInputLockSuccess.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMbInputLockSuccess.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "mb_input_lock_success" /// -public interface EventMbInputLockSuccess : IGameEvent { +public interface EventMbInputLockSuccess : IGameEvent +{ - static EventMbInputLockSuccess IGameEvent.Create(nint address) => new EventMbInputLockSuccessImpl(address); + static EventMbInputLockSuccess IGameEvent.Create( nint address ) => new EventMbInputLockSuccessImpl(address); - static string IGameEvent.GetName() => "mb_input_lock_success"; + static string IGameEvent.GetName() => "mb_input_lock_success"; - static uint IGameEvent.GetHash() => 0xEB082439u; + static uint IGameEvent.GetHash() => 0xEB082439u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMolotovDetonate.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMolotovDetonate.cs index 4cb6d7d36..0597a898f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMolotovDetonate.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventMolotovDetonate.cs @@ -1,54 +1,54 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "molotov_detonate" /// -public interface EventMolotovDetonate : IGameEvent { - - static EventMolotovDetonate IGameEvent.Create(nint address) => new EventMolotovDetonateImpl(address); - - static string IGameEvent.GetName() => "molotov_detonate"; - - static uint IGameEvent.GetHash() => 0xD541EE9Au; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: float - /// - float X { get; set; } - - /// - /// type: float - /// - float Y { get; set; } - - /// - /// type: float - /// - float Z { get; set; } +public interface EventMolotovDetonate : IGameEvent +{ + + static EventMolotovDetonate IGameEvent.Create( nint address ) => new EventMolotovDetonateImpl(address); + + static string IGameEvent.GetName() => "molotov_detonate"; + + static uint IGameEvent.GetHash() => 0xD541EE9Au; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: float + /// + public float X { get; set; } + + /// + /// type: float + /// + public float Y { get; set; } + + /// + /// type: float + /// + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventNavBlocked.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventNavBlocked.cs index 5bbae6a22..7d54f5db1 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventNavBlocked.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventNavBlocked.cs @@ -1,28 +1,27 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "nav_blocked" /// -public interface EventNavBlocked : IGameEvent { +public interface EventNavBlocked : IGameEvent +{ - static EventNavBlocked IGameEvent.Create(nint address) => new EventNavBlockedImpl(address); + static EventNavBlocked IGameEvent.Create( nint address ) => new EventNavBlockedImpl(address); - static string IGameEvent.GetName() => "nav_blocked"; + static string IGameEvent.GetName() => "nav_blocked"; - static uint IGameEvent.GetHash() => 0x1DE3B769u; - /// - /// type: long - /// - int Area { get; set; } + static uint IGameEvent.GetHash() => 0x1DE3B769u; + /// + /// type: long + /// + public int Area { get; set; } - /// - /// type: bool - /// - bool Blocked { get; set; } + /// + /// type: bool + /// + public bool Blocked { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventNavGenerate.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventNavGenerate.cs index bda650e42..4f13730a3 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventNavGenerate.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventNavGenerate.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "nav_generate" /// -public interface EventNavGenerate : IGameEvent { +public interface EventNavGenerate : IGameEvent +{ - static EventNavGenerate IGameEvent.Create(nint address) => new EventNavGenerateImpl(address); + static EventNavGenerate IGameEvent.Create( nint address ) => new EventNavGenerateImpl(address); - static string IGameEvent.GetName() => "nav_generate"; + static string IGameEvent.GetName() => "nav_generate"; - static uint IGameEvent.GetHash() => 0x06197C30u; + static uint IGameEvent.GetHash() => 0x06197C30u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventNextlevelChanged.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventNextlevelChanged.cs index e92975f92..5d4f66b56 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventNextlevelChanged.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventNextlevelChanged.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,26 +7,27 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "nextlevel_changed" /// a game event, name may be 32 characters long /// -public interface EventNextlevelChanged : IGameEvent { +public interface EventNextlevelChanged : IGameEvent +{ - static EventNextlevelChanged IGameEvent.Create(nint address) => new EventNextlevelChangedImpl(address); + static EventNextlevelChanged IGameEvent.Create( nint address ) => new EventNextlevelChangedImpl(address); - static string IGameEvent.GetName() => "nextlevel_changed"; + static string IGameEvent.GetName() => "nextlevel_changed"; - static uint IGameEvent.GetHash() => 0xAD2E0EA9u; - /// - /// type: string - /// - string NextLevel { get; set; } + static uint IGameEvent.GetHash() => 0xAD2E0EA9u; + /// + /// type: string + /// + public string NextLevel { get; set; } - /// - /// type: string - /// - string MapGroup { get; set; } + /// + /// type: string + /// + public string MapGroup { get; set; } - /// - /// type: string - /// - string SkirmishMode { get; set; } + /// + /// type: string + /// + public string SkirmishMode { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventOpenCrateInstr.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventOpenCrateInstr.cs index e63d16f22..d8ed01cc0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventOpenCrateInstr.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventOpenCrateInstr.cs @@ -1,57 +1,57 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "open_crate_instr" /// -public interface EventOpenCrateInstr : IGameEvent { - - static EventOpenCrateInstr IGameEvent.Create(nint address) => new EventOpenCrateInstrImpl(address); - - static string IGameEvent.GetName() => "open_crate_instr"; - - static uint IGameEvent.GetHash() => 0x76409C38u; - /// - /// player entindex - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player entindex - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player entindex - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player entindex - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// crate entindex - ///
- /// type: short - ///
- short Subject { get; set; } - - /// - /// type of crate (metal, wood, or paradrop) - ///
- /// type: string - ///
- string Type { get; set; } +public interface EventOpenCrateInstr : IGameEvent +{ + + static EventOpenCrateInstr IGameEvent.Create( nint address ) => new EventOpenCrateInstrImpl(address); + + static string IGameEvent.GetName() => "open_crate_instr"; + + static uint IGameEvent.GetHash() => 0x76409C38u; + /// + /// player entindex + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player entindex + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player entindex + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player entindex + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// crate entindex + ///
+ /// type: short + ///
+ public short Subject { get; set; } + + /// + /// type of crate (metal, wood, or paradrop) + ///
+ /// type: string + ///
+ public string Type { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventOtherDeath.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventOtherDeath.cs index 09908d85a..d4f2efd5b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventOtherDeath.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventOtherDeath.cs @@ -1,100 +1,99 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "other_death" /// -public interface EventOtherDeath : IGameEvent { - - static EventOtherDeath IGameEvent.Create(nint address) => new EventOtherDeathImpl(address); - - static string IGameEvent.GetName() => "other_death"; - - static uint IGameEvent.GetHash() => 0x8638AEECu; - /// - /// other entity ID who died - ///
- /// type: short - ///
- short OtherID { get; set; } - - /// - /// other entity type - ///
- /// type: string - ///
- string OtherType { get; set; } - - /// - /// user ID who killed - ///
- /// type: short - ///
- short Attacker { get; set; } - - /// - /// weapon name killer used - ///
- /// type: string - ///
- string Weapon { get; set; } - - /// - /// inventory item id of weapon killer used - ///
- /// type: string - ///
- string WeaponItemid { get; set; } - - /// - /// faux item id of weapon killer used - ///
- /// type: string - ///
- string WeaponFauxitemid { get; set; } - - /// - /// type: string - /// - string WeaponOriginalownerXuid { get; set; } - - /// - /// singals a headshot - ///
- /// type: bool - ///
- bool Headshot { get; set; } - - /// - /// number of objects shot penetrated before killing target - ///
- /// type: short - ///
- short Penetrated { get; set; } - - /// - /// kill happened without a scope, used for death notice icon - ///
- /// type: bool - ///
- bool NoScope { get; set; } - - /// - /// hitscan weapon went through smoke grenade - ///
- /// type: bool - ///
- bool ThruSmoke { get; set; } - - /// - /// attacker was blind from flashbang - ///
- /// type: bool - ///
- bool AttackerBlind { get; set; } +public interface EventOtherDeath : IGameEvent +{ + + static EventOtherDeath IGameEvent.Create( nint address ) => new EventOtherDeathImpl(address); + + static string IGameEvent.GetName() => "other_death"; + + static uint IGameEvent.GetHash() => 0x8638AEECu; + /// + /// other entity ID who died + ///
+ /// type: short + ///
+ public short OtherID { get; set; } + + /// + /// other entity type + ///
+ /// type: string + ///
+ public string OtherType { get; set; } + + /// + /// user ID who killed + ///
+ /// type: short + ///
+ public short Attacker { get; set; } + + /// + /// weapon name killer used + ///
+ /// type: string + ///
+ public string Weapon { get; set; } + + /// + /// inventory item id of weapon killer used + ///
+ /// type: string + ///
+ public string WeaponItemid { get; set; } + + /// + /// faux item id of weapon killer used + ///
+ /// type: string + ///
+ public string WeaponFauxitemid { get; set; } + + /// + /// type: string + /// + public string WeaponOriginalownerXuid { get; set; } + + /// + /// singals a headshot + ///
+ /// type: bool + ///
+ public bool Headshot { get; set; } + + /// + /// number of objects shot penetrated before killing target + ///
+ /// type: short + ///
+ public short Penetrated { get; set; } + + /// + /// kill happened without a scope, used for death notice icon + ///
+ /// type: bool + ///
+ public bool NoScope { get; set; } + + /// + /// hitscan weapon went through smoke grenade + ///
+ /// type: bool + ///
+ public bool ThruSmoke { get; set; } + + /// + /// attacker was blind from flashbang + ///
+ /// type: bool + ///
+ public bool AttackerBlind { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventParachuteDeploy.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventParachuteDeploy.cs index 6722058d7..b663bca13 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventParachuteDeploy.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventParachuteDeploy.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "parachute_deploy" /// -public interface EventParachuteDeploy : IGameEvent { +public interface EventParachuteDeploy : IGameEvent +{ - static EventParachuteDeploy IGameEvent.Create(nint address) => new EventParachuteDeployImpl(address); + static EventParachuteDeploy IGameEvent.Create( nint address ) => new EventParachuteDeployImpl(address); - static string IGameEvent.GetName() => "parachute_deploy"; + static string IGameEvent.GetName() => "parachute_deploy"; - static uint IGameEvent.GetHash() => 0xE34D70F2u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xE34D70F2u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventParachutePickup.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventParachutePickup.cs index 196833a92..bf1914f05 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventParachutePickup.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventParachutePickup.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "parachute_pickup" /// -public interface EventParachutePickup : IGameEvent { +public interface EventParachutePickup : IGameEvent +{ - static EventParachutePickup IGameEvent.Create(nint address) => new EventParachutePickupImpl(address); + static EventParachutePickup IGameEvent.Create( nint address ) => new EventParachutePickupImpl(address); - static string IGameEvent.GetName() => "parachute_pickup"; + static string IGameEvent.GetName() => "parachute_pickup"; - static uint IGameEvent.GetHash() => 0x9A331261u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0x9A331261u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPhysgunPickup.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPhysgunPickup.cs index f4831b42e..188483703 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPhysgunPickup.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPhysgunPickup.cs @@ -1,25 +1,24 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "physgun_pickup" /// -public interface EventPhysgunPickup : IGameEvent { +public interface EventPhysgunPickup : IGameEvent +{ - static EventPhysgunPickup IGameEvent.Create(nint address) => new EventPhysgunPickupImpl(address); + static EventPhysgunPickup IGameEvent.Create( nint address ) => new EventPhysgunPickupImpl(address); - static string IGameEvent.GetName() => "physgun_pickup"; + static string IGameEvent.GetName() => "physgun_pickup"; - static uint IGameEvent.GetHash() => 0x5E27B9FAu; - /// - /// entity picked up - ///
- /// type: ehandle - ///
- nint Target { get; set; } + static uint IGameEvent.GetHash() => 0x5E27B9FAu; + /// + /// entity picked up + ///
+ /// type: ehandle + ///
+ public nint Target { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerActivate.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerActivate.cs index e6cff2082..031f22aa6 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerActivate.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerActivate.cs @@ -1,43 +1,43 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_activate" /// -public interface EventPlayerActivate : IGameEvent { - - static EventPlayerActivate IGameEvent.Create(nint address) => new EventPlayerActivateImpl(address); - - static string IGameEvent.GetName() => "player_activate"; - - static uint IGameEvent.GetHash() => 0x5C0DF448u; - /// - /// user ID on server - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// user ID on server - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // user ID on server - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// user ID on server - ///
- /// type: player_controller - ///
- int UserId { get; set; } +public interface EventPlayerActivate : IGameEvent +{ + + static EventPlayerActivate IGameEvent.Create( nint address ) => new EventPlayerActivateImpl(address); + + static string IGameEvent.GetName() => "player_activate"; + + static uint IGameEvent.GetHash() => 0x5C0DF448u; + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // user ID on server + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerAvengedTeammate.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerAvengedTeammate.cs index 896d8b5dd..350d6b8b2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerAvengedTeammate.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerAvengedTeammate.cs @@ -1,28 +1,27 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_avenged_teammate" /// -public interface EventPlayerAvengedTeammate : IGameEvent { +public interface EventPlayerAvengedTeammate : IGameEvent +{ - static EventPlayerAvengedTeammate IGameEvent.Create(nint address) => new EventPlayerAvengedTeammateImpl(address); + static EventPlayerAvengedTeammate IGameEvent.Create( nint address ) => new EventPlayerAvengedTeammateImpl(address); - static string IGameEvent.GetName() => "player_avenged_teammate"; + static string IGameEvent.GetName() => "player_avenged_teammate"; - static uint IGameEvent.GetHash() => 0x8E286DACu; - /// - /// type: player_controller - /// - int AvengerId { get; set; } + static uint IGameEvent.GetHash() => 0x8E286DACu; + /// + /// type: player_controller + /// + public int AvengerId { get; set; } - /// - /// type: player_controller - /// - int AvengedPlayerId { get; set; } + /// + /// type: player_controller + /// + public int AvengedPlayerId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerBlind.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerBlind.cs index 45acf158d..fd0c429a2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerBlind.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerBlind.cs @@ -1,58 +1,58 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_blind" /// -public interface EventPlayerBlind : IGameEvent { - - static EventPlayerBlind IGameEvent.Create(nint address) => new EventPlayerBlindImpl(address); - - static string IGameEvent.GetName() => "player_blind"; - - static uint IGameEvent.GetHash() => 0x4D79D81Cu; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// user ID who threw the flash - ///
- /// type: player_controller - ///
- int Attacker { get; set; } - - /// - /// the flashbang going off - ///
- /// type: short - ///
- short EntityID { get; set; } - - /// - /// type: float - /// - float BlindDuration { get; set; } +public interface EventPlayerBlind : IGameEvent +{ + + static EventPlayerBlind IGameEvent.Create( nint address ) => new EventPlayerBlindImpl(address); + + static string IGameEvent.GetName() => "player_blind"; + + static uint IGameEvent.GetHash() => 0x4D79D81Cu; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// user ID who threw the flash + ///
+ /// type: player_controller + ///
+ public int Attacker { get; set; } + + /// + /// the flashbang going off + ///
+ /// type: short + ///
+ public short EntityID { get; set; } + + /// + /// type: float + /// + public float BlindDuration { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerChangename.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerChangename.cs index 2cf935f78..baad11990 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerChangename.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerChangename.cs @@ -1,57 +1,57 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_changename" /// -public interface EventPlayerChangename : IGameEvent { - - static EventPlayerChangename IGameEvent.Create(nint address) => new EventPlayerChangenameImpl(address); - - static string IGameEvent.GetName() => "player_changename"; - - static uint IGameEvent.GetHash() => 0xD955F966u; - /// - /// user ID on server - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// user ID on server - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // user ID on server - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// user ID on server - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// players old (current) name - ///
- /// type: string - ///
- string OldName { get; set; } - - /// - /// players new name - ///
- /// type: string - ///
- string NewName { get; set; } +public interface EventPlayerChangename : IGameEvent +{ + + static EventPlayerChangename IGameEvent.Create( nint address ) => new EventPlayerChangenameImpl(address); + + static string IGameEvent.GetName() => "player_changename"; + + static uint IGameEvent.GetHash() => 0xD955F966u; + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // user ID on server + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// players old (current) name + ///
+ /// type: string + ///
+ public string OldName { get; set; } + + /// + /// players new name + ///
+ /// type: string + ///
+ public string NewName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerChat.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerChat.cs index ef0169415..a96f5b132 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerChat.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerChat.cs @@ -1,7 +1,7 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,57 +9,57 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "player_chat" /// a public player chat /// -public interface EventPlayerChat : IGameEvent { +public interface EventPlayerChat : IGameEvent +{ - static EventPlayerChat IGameEvent.Create(nint address) => new EventPlayerChatImpl(address); + static EventPlayerChat IGameEvent.Create( nint address ) => new EventPlayerChatImpl(address); - static string IGameEvent.GetName() => "player_chat"; + static string IGameEvent.GetName() => "player_chat"; - static uint IGameEvent.GetHash() => 0xA2C21BE3u; - /// - /// true if team only chat - ///
- /// type: bool - ///
- bool TeamOnly { get; set; } + static uint IGameEvent.GetHash() => 0xA2C21BE3u; + /// + /// true if team only chat + ///
+ /// type: bool + ///
+ public bool TeamOnly { get; set; } - /// - /// chatting player - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + /// + /// chatting player + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - /// chatting player - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + /// chatting player + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - // chatting player - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// chatting player - ///
- /// type: player_controller - ///
- int UserId { get; set; } + // chatting player + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// chatting player + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } - /// - /// chatting player ID - ///
- /// type: short - ///
- short Playerid { get; set; } + /// + /// chatting player ID + ///
+ /// type: short + ///
+ public short Playerid { get; set; } - /// - /// chat text - ///
- /// type: string - ///
- string Text { get; set; } + /// + /// chat text + ///
+ /// type: string + ///
+ public string Text { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerConnect.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerConnect.cs index 85338141c..a2e69a21f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerConnect.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerConnect.cs @@ -1,7 +1,7 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,62 +9,62 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "player_connect" /// a new client connected /// -public interface EventPlayerConnect : IGameEvent { +public interface EventPlayerConnect : IGameEvent +{ - static EventPlayerConnect IGameEvent.Create(nint address) => new EventPlayerConnectImpl(address); + static EventPlayerConnect IGameEvent.Create( nint address ) => new EventPlayerConnectImpl(address); - static string IGameEvent.GetName() => "player_connect"; + static string IGameEvent.GetName() => "player_connect"; - static uint IGameEvent.GetHash() => 0x721B9701u; - /// - /// player name - ///
- /// type: string - ///
- string Name { get; set; } + static uint IGameEvent.GetHash() => 0x721B9701u; + /// + /// player name + ///
+ /// type: string + ///
+ public string Name { get; set; } - /// - /// user ID on server (unique on server) - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + /// + /// user ID on server (unique on server) + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - /// user ID on server (unique on server) - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + /// user ID on server (unique on server) + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - // user ID on server (unique on server) - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// user ID on server (unique on server) - ///
- /// type: player_controller - ///
- int UserId { get; set; } + // user ID on server (unique on server) + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// user ID on server (unique on server) + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } - /// - /// player network (i.e steam) id - ///
- /// type: string - ///
- string NetworkID { get; set; } + /// + /// player network (i.e steam) id + ///
+ /// type: string + ///
+ public string NetworkID { get; set; } - /// - /// steam id - ///
- /// type: uint64 - ///
- ulong XuID { get; set; } + /// + /// steam id + ///
+ /// type: uint64 + ///
+ public ulong XuID { get; set; } - /// - /// type: bool - /// - bool Bot { get; set; } + /// + /// type: bool + /// + public bool Bot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerConnectFull.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerConnectFull.cs index ceb8d24d3..510219780 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerConnectFull.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerConnectFull.cs @@ -1,7 +1,7 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,36 +9,36 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "player_connect_full" /// player has sent final message in the connection sequence /// -public interface EventPlayerConnectFull : IGameEvent { - - static EventPlayerConnectFull IGameEvent.Create(nint address) => new EventPlayerConnectFullImpl(address); - - static string IGameEvent.GetName() => "player_connect_full"; - - static uint IGameEvent.GetHash() => 0x5BE3B233u; - /// - /// user ID on server (unique on server) - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// user ID on server (unique on server) - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // user ID on server (unique on server) - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// user ID on server (unique on server) - ///
- /// type: player_controller - ///
- int UserId { get; set; } +public interface EventPlayerConnectFull : IGameEvent +{ + + static EventPlayerConnectFull IGameEvent.Create( nint address ) => new EventPlayerConnectFullImpl(address); + + static string IGameEvent.GetName() => "player_connect_full"; + + static uint IGameEvent.GetHash() => 0x5BE3B233u; + /// + /// user ID on server (unique on server) + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// user ID on server (unique on server) + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // user ID on server (unique on server) + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// user ID on server (unique on server) + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerDeath.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerDeath.cs index 2d3b5d09c..e9fbbf5f1 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerDeath.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerDeath.cs @@ -1,7 +1,7 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,181 +9,181 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "player_death" /// a game event, name may be 32 charaters long /// -public interface EventPlayerDeath : IGameEvent { - - static EventPlayerDeath IGameEvent.Create(nint address) => new EventPlayerDeathImpl(address); - - static string IGameEvent.GetName() => "player_death"; - - static uint IGameEvent.GetHash() => 0xA6ABE875u; - /// - /// user ID who died - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// user ID who died - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // user ID who died - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// user ID who died - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// user ID who killed - ///
- /// type: player_controller_and_pawn - ///
- int Attacker { get; set; } - - /// - /// player who assisted in the kill - ///
- /// type: player_controller_and_pawn - ///
- int Assister { get; set; } - - /// - /// assister helped with a flash - ///
- /// type: bool - ///
- bool AssistedFlash { get; set; } - - /// - /// weapon name killer used - ///
- /// type: string - ///
- string Weapon { get; set; } - - /// - /// inventory item id of weapon killer used - ///
- /// type: string - ///
- string WeaponItemid { get; set; } - - /// - /// faux item id of weapon killer used - ///
- /// type: string - ///
- string WeaponFauxitemid { get; set; } - - /// - /// type: string - /// - string WeaponOriginalownerXuid { get; set; } - - /// - /// singals a headshot - ///
- /// type: bool - ///
- bool Headshot { get; set; } - - /// - /// did killer dominate victim with this kill - ///
- /// type: short - ///
- short Dominated { get; set; } - - /// - /// did killer get revenge on victim with this kill - ///
- /// type: short - ///
- short Revenge { get; set; } - - /// - /// is the kill resulting in squad wipe - ///
- /// type: short - ///
- short Wipe { get; set; } - - /// - /// number of objects shot penetrated before killing target - ///
- /// type: short - ///
- short Penetrated { get; set; } - - /// - /// if replay data is unavailable, this will be present and set to false - ///
- /// type: bool - ///
- bool NoReplay { get; set; } - - /// - /// kill happened without a scope, used for death notice icon - ///
- /// type: bool - ///
- bool NoScope { get; set; } - - /// - /// hitscan weapon went through smoke grenade - ///
- /// type: bool - ///
- bool ThruSmoke { get; set; } - - /// - /// attacker was blind from flashbang - ///
- /// type: bool - ///
- bool AttackerBlind { get; set; } - - /// - /// distance to victim in meters - ///
- /// type: float - ///
- float Distance { get; set; } - - /// - /// damage done to health - ///
- /// type: short - ///
- short DmgHealth { get; set; } - - /// - /// damage done to armor - ///
- /// type: byte - ///
- byte DmgArmor { get; set; } - - /// - /// hitgroup that was damaged - ///
- /// type: byte - ///
- byte HitGroup { get; set; } - - /// - /// attacker was in midair - ///
- /// type: bool - ///
- bool AttackerInAir { get; set; } +public interface EventPlayerDeath : IGameEvent +{ + + static EventPlayerDeath IGameEvent.Create( nint address ) => new EventPlayerDeathImpl(address); + + static string IGameEvent.GetName() => "player_death"; + + static uint IGameEvent.GetHash() => 0xA6ABE875u; + /// + /// user ID who died + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// user ID who died + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // user ID who died + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// user ID who died + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// user ID who killed + ///
+ /// type: player_controller_and_pawn + ///
+ public int Attacker { get; set; } + + /// + /// player who assisted in the kill + ///
+ /// type: player_controller_and_pawn + ///
+ public int Assister { get; set; } + + /// + /// assister helped with a flash + ///
+ /// type: bool + ///
+ public bool AssistedFlash { get; set; } + + /// + /// weapon name killer used + ///
+ /// type: string + ///
+ public string Weapon { get; set; } + + /// + /// inventory item id of weapon killer used + ///
+ /// type: string + ///
+ public string WeaponItemid { get; set; } + + /// + /// faux item id of weapon killer used + ///
+ /// type: string + ///
+ public string WeaponFauxitemid { get; set; } + + /// + /// type: string + /// + public string WeaponOriginalownerXuid { get; set; } + + /// + /// singals a headshot + ///
+ /// type: bool + ///
+ public bool Headshot { get; set; } + + /// + /// did killer dominate victim with this kill + ///
+ /// type: short + ///
+ public short Dominated { get; set; } + + /// + /// did killer get revenge on victim with this kill + ///
+ /// type: short + ///
+ public short Revenge { get; set; } + + /// + /// is the kill resulting in squad wipe + ///
+ /// type: short + ///
+ public short Wipe { get; set; } + + /// + /// number of objects shot penetrated before killing target + ///
+ /// type: short + ///
+ public short Penetrated { get; set; } + + /// + /// if replay data is unavailable, this will be present and set to false + ///
+ /// type: bool + ///
+ public bool NoReplay { get; set; } + + /// + /// kill happened without a scope, used for death notice icon + ///
+ /// type: bool + ///
+ public bool NoScope { get; set; } + + /// + /// hitscan weapon went through smoke grenade + ///
+ /// type: bool + ///
+ public bool ThruSmoke { get; set; } + + /// + /// attacker was blind from flashbang + ///
+ /// type: bool + ///
+ public bool AttackerBlind { get; set; } + + /// + /// distance to victim in meters + ///
+ /// type: float + ///
+ public float Distance { get; set; } + + /// + /// damage done to health + ///
+ /// type: short + ///
+ public short DmgHealth { get; set; } + + /// + /// damage done to armor + ///
+ /// type: byte + ///
+ public byte DmgArmor { get; set; } + + /// + /// hitgroup that was damaged + ///
+ /// type: byte + ///
+ public byte HitGroup { get; set; } + + /// + /// attacker was in midair + ///
+ /// type: bool + ///
+ public bool AttackerInAir { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerDecal.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerDecal.cs index 85a94f519..b9906c571 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerDecal.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerDecal.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_decal" /// -public interface EventPlayerDecal : IGameEvent { +public interface EventPlayerDecal : IGameEvent +{ - static EventPlayerDecal IGameEvent.Create(nint address) => new EventPlayerDecalImpl(address); + static EventPlayerDecal IGameEvent.Create( nint address ) => new EventPlayerDecalImpl(address); - static string IGameEvent.GetName() => "player_decal"; + static string IGameEvent.GetName() => "player_decal"; - static uint IGameEvent.GetHash() => 0xC7978ED6u; - /// - ///
- /// type: player_pawn - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xC7978ED6u; + /// + ///
+ /// type: player_pawn + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_pawn - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerDisconnect.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerDisconnect.cs index 71b806804..ac95a5771 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerDisconnect.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerDisconnect.cs @@ -1,7 +1,7 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,69 +9,69 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "player_disconnect" /// a client was disconnected /// -public interface EventPlayerDisconnect : IGameEvent { +public interface EventPlayerDisconnect : IGameEvent +{ - static EventPlayerDisconnect IGameEvent.Create(nint address) => new EventPlayerDisconnectImpl(address); + static EventPlayerDisconnect IGameEvent.Create( nint address ) => new EventPlayerDisconnectImpl(address); - static string IGameEvent.GetName() => "player_disconnect"; + static string IGameEvent.GetName() => "player_disconnect"; - static uint IGameEvent.GetHash() => 0x4FE1E633u; - /// - /// user ID on server - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0x4FE1E633u; + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - /// user ID on server - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - // user ID on server - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// user ID on server - ///
- /// type: player_controller - ///
- int UserId { get; set; } + // user ID on server + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } - /// - /// see networkdisconnect enum protobuf - ///
- /// type: short - ///
- short Reason { get; set; } + /// + /// see networkdisconnect enum protobuf + ///
+ /// type: short + ///
+ public short Reason { get; set; } - /// - /// player name - ///
- /// type: string - ///
- string Name { get; set; } + /// + /// player name + ///
+ /// type: string + ///
+ public string Name { get; set; } - /// - /// player network (i.e steam) id - ///
- /// type: string - ///
- string NetworkID { get; set; } + /// + /// player network (i.e steam) id + ///
+ /// type: string + ///
+ public string NetworkID { get; set; } - /// - /// steam id - ///
- /// type: uint64 - ///
- ulong XuID { get; set; } + /// + /// steam id + ///
+ /// type: uint64 + ///
+ public ulong XuID { get; set; } - /// - /// type: short - /// - short PlayerID { get; set; } + /// + /// type: short + /// + public short PlayerID { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerFalldamage.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerFalldamage.cs index c80e31c25..6e0c669cc 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerFalldamage.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerFalldamage.cs @@ -1,44 +1,44 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_falldamage" /// -public interface EventPlayerFalldamage : IGameEvent { - - static EventPlayerFalldamage IGameEvent.Create(nint address) => new EventPlayerFalldamageImpl(address); - - static string IGameEvent.GetName() => "player_falldamage"; - - static uint IGameEvent.GetHash() => 0x594A7109u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: float - /// - float Damage { get; set; } +public interface EventPlayerFalldamage : IGameEvent +{ + + static EventPlayerFalldamage IGameEvent.Create( nint address ) => new EventPlayerFalldamageImpl(address); + + static string IGameEvent.GetName() => "player_falldamage"; + + static uint IGameEvent.GetHash() => 0x594A7109u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: float + /// + public float Damage { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerFootstep.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerFootstep.cs index ea26b82b6..231f67cda 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerFootstep.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerFootstep.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_footstep" /// -public interface EventPlayerFootstep : IGameEvent { +public interface EventPlayerFootstep : IGameEvent +{ - static EventPlayerFootstep IGameEvent.Create(nint address) => new EventPlayerFootstepImpl(address); + static EventPlayerFootstep IGameEvent.Create( nint address ) => new EventPlayerFootstepImpl(address); - static string IGameEvent.GetName() => "player_footstep"; + static string IGameEvent.GetName() => "player_footstep"; - static uint IGameEvent.GetHash() => 0x5EA9530Bu; - /// - ///
- /// type: player_pawn - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0x5EA9530Bu; + /// + ///
+ /// type: player_pawn + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_pawn - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerFullUpdate.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerFullUpdate.cs index 540e1a913..a21c7ec52 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerFullUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerFullUpdate.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_full_update" /// -public interface EventPlayerFullUpdate : IGameEvent { - - static EventPlayerFullUpdate IGameEvent.Create(nint address) => new EventPlayerFullUpdateImpl(address); - - static string IGameEvent.GetName() => "player_full_update"; - - static uint IGameEvent.GetHash() => 0xC12FF460u; - /// - /// user ID on server - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// user ID on server - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // user ID on server - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// user ID on server - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// Number of this full update - ///
- /// type: short - ///
- short Count { get; set; } +public interface EventPlayerFullUpdate : IGameEvent +{ + + static EventPlayerFullUpdate IGameEvent.Create( nint address ) => new EventPlayerFullUpdateImpl(address); + + static string IGameEvent.GetName() => "player_full_update"; + + static uint IGameEvent.GetHash() => 0xC12FF460u; + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // user ID on server + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// Number of this full update + ///
+ /// type: short + ///
+ public short Count { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerGivenC4.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerGivenC4.cs index 2f1a23553..ad4197907 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerGivenC4.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerGivenC4.cs @@ -1,43 +1,43 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_given_c4" /// -public interface EventPlayerGivenC4 : IGameEvent { - - static EventPlayerGivenC4 IGameEvent.Create(nint address) => new EventPlayerGivenC4Impl(address); - - static string IGameEvent.GetName() => "player_given_c4"; - - static uint IGameEvent.GetHash() => 0x0491CF9Cu; - /// - /// user ID who received the c4 - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// user ID who received the c4 - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // user ID who received the c4 - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// user ID who received the c4 - ///
- /// type: player_controller - ///
- int UserId { get; set; } +public interface EventPlayerGivenC4 : IGameEvent +{ + + static EventPlayerGivenC4 IGameEvent.Create( nint address ) => new EventPlayerGivenC4Impl(address); + + static string IGameEvent.GetName() => "player_given_c4"; + + static uint IGameEvent.GetHash() => 0x0491CF9Cu; + /// + /// user ID who received the c4 + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// user ID who received the c4 + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // user ID who received the c4 + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// user ID who received the c4 + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerHintmessage.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerHintmessage.cs index a7982ffb0..c48cb3c0c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerHintmessage.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerHintmessage.cs @@ -1,25 +1,24 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_hintmessage" /// -public interface EventPlayerHintmessage : IGameEvent { +public interface EventPlayerHintmessage : IGameEvent +{ - static EventPlayerHintmessage IGameEvent.Create(nint address) => new EventPlayerHintmessageImpl(address); + static EventPlayerHintmessage IGameEvent.Create( nint address ) => new EventPlayerHintmessageImpl(address); - static string IGameEvent.GetName() => "player_hintmessage"; + static string IGameEvent.GetName() => "player_hintmessage"; - static uint IGameEvent.GetHash() => 0xD756F227u; - /// - /// localizable string of a hint - ///
- /// type: string - ///
- string HintMessage { get; set; } + static uint IGameEvent.GetHash() => 0xD756F227u; + /// + /// localizable string of a hint + ///
+ /// type: string + ///
+ public string HintMessage { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerHurt.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerHurt.cs index 0c2d7d561..6b7b47cfd 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerHurt.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerHurt.cs @@ -1,92 +1,92 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_hurt" /// -public interface EventPlayerHurt : IGameEvent { - - static EventPlayerHurt IGameEvent.Create(nint address) => new EventPlayerHurtImpl(address); - - static string IGameEvent.GetName() => "player_hurt"; - - static uint IGameEvent.GetHash() => 0x1B30DDF0u; - /// - /// player who was hurt - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who was hurt - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who was hurt - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who was hurt - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// player who attacked - ///
- /// type: player_controller_and_pawn - ///
- int Attacker { get; set; } - - /// - /// remaining health points - ///
- /// type: byte - ///
- byte Health { get; set; } - - /// - /// remaining armor points - ///
- /// type: byte - ///
- byte Armor { get; set; } - - /// - /// weapon name attacker used, if not the world - ///
- /// type: string - ///
- string Weapon { get; set; } - - /// - /// damage done to health - ///
- /// type: short - ///
- short DmgHealth { get; set; } - - /// - /// damage done to armor - ///
- /// type: byte - ///
- byte DmgArmor { get; set; } - - /// - /// hitgroup that was damaged - ///
- /// type: byte - ///
- byte HitGroup { get; set; } +public interface EventPlayerHurt : IGameEvent +{ + + static EventPlayerHurt IGameEvent.Create( nint address ) => new EventPlayerHurtImpl(address); + + static string IGameEvent.GetName() => "player_hurt"; + + static uint IGameEvent.GetHash() => 0x1B30DDF0u; + /// + /// player who was hurt + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who was hurt + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who was hurt + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who was hurt + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// player who attacked + ///
+ /// type: player_controller_and_pawn + ///
+ public int Attacker { get; set; } + + /// + /// remaining health points + ///
+ /// type: byte + ///
+ public byte Health { get; set; } + + /// + /// remaining armor points + ///
+ /// type: byte + ///
+ public byte Armor { get; set; } + + /// + /// weapon name attacker used, if not the world + ///
+ /// type: string + ///
+ public string Weapon { get; set; } + + /// + /// damage done to health + ///
+ /// type: short + ///
+ public short DmgHealth { get; set; } + + /// + /// damage done to armor + ///
+ /// type: byte + ///
+ public byte DmgArmor { get; set; } + + /// + /// hitgroup that was damaged + ///
+ /// type: byte + ///
+ public byte HitGroup { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerInfo.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerInfo.cs index 589111f1a..bad812202 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerInfo.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerInfo.cs @@ -1,7 +1,7 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,57 +9,57 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "player_info" /// a player changed his name /// -public interface EventPlayerInfo : IGameEvent { +public interface EventPlayerInfo : IGameEvent +{ - static EventPlayerInfo IGameEvent.Create(nint address) => new EventPlayerInfoImpl(address); + static EventPlayerInfo IGameEvent.Create( nint address ) => new EventPlayerInfoImpl(address); - static string IGameEvent.GetName() => "player_info"; + static string IGameEvent.GetName() => "player_info"; - static uint IGameEvent.GetHash() => 0x0A0BAFFDu; - /// - /// player name - ///
- /// type: string - ///
- string Name { get; set; } + static uint IGameEvent.GetHash() => 0x0A0BAFFDu; + /// + /// player name + ///
+ /// type: string + ///
+ public string Name { get; set; } - /// - /// user ID on server (unique on server) - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + /// + /// user ID on server (unique on server) + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - /// user ID on server (unique on server) - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + /// user ID on server (unique on server) + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - // user ID on server (unique on server) - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// user ID on server (unique on server) - ///
- /// type: player_controller - ///
- int UserId { get; set; } + // user ID on server (unique on server) + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// user ID on server (unique on server) + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } - /// - /// player network (i.e steam) id - ///
- /// type: uint64 - ///
- ulong SteamID { get; set; } + /// + /// player network (i.e steam) id + ///
+ /// type: uint64 + ///
+ public ulong SteamID { get; set; } - /// - /// true if player is a AI bot - ///
- /// type: bool - ///
- bool Bot { get; set; } + /// + /// true if player is a AI bot + ///
+ /// type: bool + ///
+ public bool Bot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerJump.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerJump.cs index 2257a36ab..94e3e925c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerJump.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerJump.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_jump" /// -public interface EventPlayerJump : IGameEvent { +public interface EventPlayerJump : IGameEvent +{ - static EventPlayerJump IGameEvent.Create(nint address) => new EventPlayerJumpImpl(address); + static EventPlayerJump IGameEvent.Create( nint address ) => new EventPlayerJumpImpl(address); - static string IGameEvent.GetName() => "player_jump"; + static string IGameEvent.GetName() => "player_jump"; - static uint IGameEvent.GetHash() => 0xA8C90F75u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xA8C90F75u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerPing.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerPing.cs index e762cdb51..1ece4876a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerPing.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerPing.cs @@ -1,64 +1,64 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_ping" /// -public interface EventPlayerPing : IGameEvent { +public interface EventPlayerPing : IGameEvent +{ - static EventPlayerPing IGameEvent.Create(nint address) => new EventPlayerPingImpl(address); + static EventPlayerPing IGameEvent.Create( nint address ) => new EventPlayerPingImpl(address); - static string IGameEvent.GetName() => "player_ping"; + static string IGameEvent.GetName() => "player_ping"; - static uint IGameEvent.GetHash() => 0xB41F45B1u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xB41F45B1u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } - /// - /// type: short - /// - short EntityID { get; set; } + /// + /// type: short + /// + public short EntityID { get; set; } - /// - /// type: float - /// - float X { get; set; } + /// + /// type: float + /// + public float X { get; set; } - /// - /// type: float - /// - float Y { get; set; } + /// + /// type: float + /// + public float Y { get; set; } - /// - /// type: float - /// - float Z { get; set; } + /// + /// type: float + /// + public float Z { get; set; } - /// - /// type: bool - /// - bool Urgent { get; set; } + /// + /// type: bool + /// + public bool Urgent { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerPingStop.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerPingStop.cs index ee09c76c9..883ce18a1 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerPingStop.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerPingStop.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_ping_stop" /// -public interface EventPlayerPingStop : IGameEvent { +public interface EventPlayerPingStop : IGameEvent +{ - static EventPlayerPingStop IGameEvent.Create(nint address) => new EventPlayerPingStopImpl(address); + static EventPlayerPingStop IGameEvent.Create( nint address ) => new EventPlayerPingStopImpl(address); - static string IGameEvent.GetName() => "player_ping_stop"; + static string IGameEvent.GetName() => "player_ping_stop"; - static uint IGameEvent.GetHash() => 0x5C803792u; - /// - /// type: short - /// - short EntityID { get; set; } + static uint IGameEvent.GetHash() => 0x5C803792u; + /// + /// type: short + /// + public short EntityID { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerRadio.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerRadio.cs index 07b4b0df3..86da4a47a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerRadio.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerRadio.cs @@ -1,44 +1,44 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_radio" /// -public interface EventPlayerRadio : IGameEvent { - - static EventPlayerRadio IGameEvent.Create(nint address) => new EventPlayerRadioImpl(address); - - static string IGameEvent.GetName() => "player_radio"; - - static uint IGameEvent.GetHash() => 0x133AAE2Cu; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short Slot { get; set; } +public interface EventPlayerRadio : IGameEvent +{ + + static EventPlayerRadio IGameEvent.Create( nint address ) => new EventPlayerRadioImpl(address); + + static string IGameEvent.GetName() => "player_radio"; + + static uint IGameEvent.GetHash() => 0x133AAE2Cu; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short Slot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerResetVote.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerResetVote.cs index 2da455cf9..3996e0a93 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerResetVote.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerResetVote.cs @@ -1,44 +1,44 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_reset_vote" /// -public interface EventPlayerResetVote : IGameEvent { - - static EventPlayerResetVote IGameEvent.Create(nint address) => new EventPlayerResetVoteImpl(address); - - static string IGameEvent.GetName() => "player_reset_vote"; - - static uint IGameEvent.GetHash() => 0x86ED6215u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: bool - /// - bool Vote { get; set; } +public interface EventPlayerResetVote : IGameEvent +{ + + static EventPlayerResetVote IGameEvent.Create( nint address ) => new EventPlayerResetVoteImpl(address); + + static string IGameEvent.GetName() => "player_reset_vote"; + + static uint IGameEvent.GetHash() => 0x86ED6215u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: bool + /// + public bool Vote { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerScore.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerScore.cs index d0a11a5fa..bca8c9e23 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerScore.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerScore.cs @@ -1,7 +1,7 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,57 +9,57 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "player_score" /// players scores changed /// -public interface EventPlayerScore : IGameEvent { +public interface EventPlayerScore : IGameEvent +{ - static EventPlayerScore IGameEvent.Create(nint address) => new EventPlayerScoreImpl(address); + static EventPlayerScore IGameEvent.Create( nint address ) => new EventPlayerScoreImpl(address); - static string IGameEvent.GetName() => "player_score"; + static string IGameEvent.GetName() => "player_score"; - static uint IGameEvent.GetHash() => 0xAF712F7Du; - /// - /// user ID on server - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xAF712F7Du; + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - /// user ID on server - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - // user ID on server - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// user ID on server - ///
- /// type: player_controller - ///
- int UserId { get; set; } + // user ID on server + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// user ID on server + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } - /// - /// # of kills - ///
- /// type: short - ///
- short Kills { get; set; } + /// + /// # of kills + ///
+ /// type: short + ///
+ public short Kills { get; set; } - /// - /// # of deaths - ///
- /// type: short - ///
- short Deaths { get; set; } + /// + /// # of deaths + ///
+ /// type: short + ///
+ public short Deaths { get; set; } - /// - /// total game score - ///
- /// type: short - ///
- short Score { get; set; } + /// + /// total game score + ///
+ /// type: short + ///
+ public short Score { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerShoot.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerShoot.cs index 1325dc982..999b8dba8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerShoot.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerShoot.cs @@ -1,7 +1,7 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,50 +9,50 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "player_shoot" /// player shoot his weapon /// -public interface EventPlayerShoot : IGameEvent { - - static EventPlayerShoot IGameEvent.Create(nint address) => new EventPlayerShootImpl(address); - - static string IGameEvent.GetName() => "player_shoot"; - - static uint IGameEvent.GetHash() => 0xE4EF0C38u; - /// - /// user ID on server - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// user ID on server - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // user ID on server - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// user ID on server - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// weapon ID - ///
- /// type: byte - ///
- byte Weapon { get; set; } - - /// - /// weapon mode - ///
- /// type: byte - ///
- byte Mode { get; set; } +public interface EventPlayerShoot : IGameEvent +{ + + static EventPlayerShoot IGameEvent.Create( nint address ) => new EventPlayerShootImpl(address); + + static string IGameEvent.GetName() => "player_shoot"; + + static uint IGameEvent.GetHash() => 0xE4EF0C38u; + /// + /// user ID on server + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// user ID on server + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // user ID on server + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// user ID on server + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// weapon ID + ///
+ /// type: byte + ///
+ public byte Weapon { get; set; } + + /// + /// weapon mode + ///
+ /// type: byte + ///
+ public byte Mode { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerSound.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerSound.cs index 6bcf4a475..907413692 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerSound.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerSound.cs @@ -1,54 +1,54 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_sound" /// -public interface EventPlayerSound : IGameEvent { - - static EventPlayerSound IGameEvent.Create(nint address) => new EventPlayerSoundImpl(address); - - static string IGameEvent.GetName() => "player_sound"; - - static uint IGameEvent.GetHash() => 0xE562BC6Cu; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: int - /// - int Radius { get; set; } - - /// - /// type: float - /// - float Duration { get; set; } - - /// - /// type: bool - /// - bool Step { get; set; } +public interface EventPlayerSound : IGameEvent +{ + + static EventPlayerSound IGameEvent.Create( nint address ) => new EventPlayerSoundImpl(address); + + static string IGameEvent.GetName() => "player_sound"; + + static uint IGameEvent.GetHash() => 0xE562BC6Cu; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: int + /// + public int Radius { get; set; } + + /// + /// type: float + /// + public float Duration { get; set; } + + /// + /// type: bool + /// + public bool Step { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerSpawn.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerSpawn.cs index d517fbe76..a3051da93 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerSpawn.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerSpawn.cs @@ -1,7 +1,7 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,32 +9,32 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "player_spawn" /// player spawned in game /// -public interface EventPlayerSpawn : IGameEvent { +public interface EventPlayerSpawn : IGameEvent +{ - static EventPlayerSpawn IGameEvent.Create(nint address) => new EventPlayerSpawnImpl(address); + static EventPlayerSpawn IGameEvent.Create( nint address ) => new EventPlayerSpawnImpl(address); - static string IGameEvent.GetName() => "player_spawn"; + static string IGameEvent.GetName() => "player_spawn"; - static uint IGameEvent.GetHash() => 0x5BC11C80u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0x5BC11C80u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerSpawned.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerSpawned.cs index 10e68dd33..f75af34d3 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerSpawned.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerSpawned.cs @@ -1,46 +1,46 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_spawned" /// -public interface EventPlayerSpawned : IGameEvent { - - static EventPlayerSpawned IGameEvent.Create(nint address) => new EventPlayerSpawnedImpl(address); - - static string IGameEvent.GetName() => "player_spawned"; - - static uint IGameEvent.GetHash() => 0x7DC35E81u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// true if restart is pending - ///
- /// type: bool - ///
- bool InRestart { get; set; } +public interface EventPlayerSpawned : IGameEvent +{ + + static EventPlayerSpawned IGameEvent.Create( nint address ) => new EventPlayerSpawnedImpl(address); + + static string IGameEvent.GetName() => "player_spawned"; + + static uint IGameEvent.GetHash() => 0x7DC35E81u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// true if restart is pending + ///
+ /// type: bool + ///
+ public bool InRestart { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerStatsUpdated.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerStatsUpdated.cs index 5edd92146..5ca5043ca 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerStatsUpdated.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerStatsUpdated.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_stats_updated" /// -public interface EventPlayerStatsUpdated : IGameEvent { +public interface EventPlayerStatsUpdated : IGameEvent +{ - static EventPlayerStatsUpdated IGameEvent.Create(nint address) => new EventPlayerStatsUpdatedImpl(address); + static EventPlayerStatsUpdated IGameEvent.Create( nint address ) => new EventPlayerStatsUpdatedImpl(address); - static string IGameEvent.GetName() => "player_stats_updated"; + static string IGameEvent.GetName() => "player_stats_updated"; - static uint IGameEvent.GetHash() => 0x9F0E110Cu; - /// - /// type: bool - /// - bool ForceUpload { get; set; } + static uint IGameEvent.GetHash() => 0x9F0E110Cu; + /// + /// type: bool + /// + public bool ForceUpload { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerTeam.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerTeam.cs index ad7e5885b..33aadb261 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerTeam.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventPlayerTeam.cs @@ -1,81 +1,81 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "player_team" /// -public interface EventPlayerTeam : IGameEvent { +public interface EventPlayerTeam : IGameEvent +{ - static EventPlayerTeam IGameEvent.Create(nint address) => new EventPlayerTeamImpl(address); + static EventPlayerTeam IGameEvent.Create( nint address ) => new EventPlayerTeamImpl(address); - static string IGameEvent.GetName() => "player_team"; + static string IGameEvent.GetName() => "player_team"; - static uint IGameEvent.GetHash() => 0xD57549C4u; - /// - /// player - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xD57549C4u; + /// + /// player + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } - /// - /// player - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + /// player + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } - // player - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } + // player + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } - /// - /// team id - ///
- /// type: byte - ///
- byte Team { get; set; } + /// + /// team id + ///
+ /// type: byte + ///
+ public byte Team { get; set; } - /// - /// old team id - ///
- /// type: byte - ///
- byte OldTeam { get; set; } + /// + /// old team id + ///
+ /// type: byte + ///
+ public byte OldTeam { get; set; } - /// - /// team change because player disconnects - ///
- /// type: bool - ///
- bool Disconnect { get; set; } + /// + /// team change because player disconnects + ///
+ /// type: bool + ///
+ public bool Disconnect { get; set; } - /// - /// type: bool - /// - bool Silent { get; set; } + /// + /// type: bool + /// + public bool Silent { get; set; } - /// - /// type: string - /// - string Name { get; set; } + /// + /// type: string + /// + public string Name { get; set; } - /// - /// true if player is a bot - ///
- /// type: bool - ///
- bool IsBot { get; set; } + /// + /// true if player is a bot + ///
+ /// type: bool + ///
+ public bool IsBot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRagdollDissolved.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRagdollDissolved.cs index 444ebe2b1..e6e847dce 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRagdollDissolved.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRagdollDissolved.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "ragdoll_dissolved" /// -public interface EventRagdollDissolved : IGameEvent { +public interface EventRagdollDissolved : IGameEvent +{ - static EventRagdollDissolved IGameEvent.Create(nint address) => new EventRagdollDissolvedImpl(address); + static EventRagdollDissolved IGameEvent.Create( nint address ) => new EventRagdollDissolvedImpl(address); - static string IGameEvent.GetName() => "ragdoll_dissolved"; + static string IGameEvent.GetName() => "ragdoll_dissolved"; - static uint IGameEvent.GetHash() => 0x633046FAu; - /// - /// type: long - /// - int EntIndex { get; set; } + static uint IGameEvent.GetHash() => 0x633046FAu; + /// + /// type: long + /// + public int EntIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventReadGameTitledata.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventReadGameTitledata.cs index d1a7d38a3..2d796d85c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventReadGameTitledata.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventReadGameTitledata.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,18 +7,19 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "read_game_titledata" /// read user titledata from profile /// -public interface EventReadGameTitledata : IGameEvent { +public interface EventReadGameTitledata : IGameEvent +{ - static EventReadGameTitledata IGameEvent.Create(nint address) => new EventReadGameTitledataImpl(address); + static EventReadGameTitledata IGameEvent.Create( nint address ) => new EventReadGameTitledataImpl(address); - static string IGameEvent.GetName() => "read_game_titledata"; + static string IGameEvent.GetName() => "read_game_titledata"; - static uint IGameEvent.GetHash() => 0xACF56D4Du; - /// - /// Controller id of user - ///
- /// type: short - ///
- short ControllerId { get; set; } + static uint IGameEvent.GetHash() => 0xACF56D4Du; + /// + /// Controller id of user + ///
+ /// type: short + ///
+ public short ControllerId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRepostXboxAchievements.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRepostXboxAchievements.cs index cd1437429..27eff95d7 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRepostXboxAchievements.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRepostXboxAchievements.cs @@ -1,25 +1,24 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "repost_xbox_achievements" /// -public interface EventRepostXboxAchievements : IGameEvent { +public interface EventRepostXboxAchievements : IGameEvent +{ - static EventRepostXboxAchievements IGameEvent.Create(nint address) => new EventRepostXboxAchievementsImpl(address); + static EventRepostXboxAchievements IGameEvent.Create( nint address ) => new EventRepostXboxAchievementsImpl(address); - static string IGameEvent.GetName() => "repost_xbox_achievements"; + static string IGameEvent.GetName() => "repost_xbox_achievements"; - static uint IGameEvent.GetHash() => 0x7D188D23u; - /// - /// splitscreen ID - ///
- /// type: short - ///
- short SplitScreenPlayer { get; set; } + static uint IGameEvent.GetHash() => 0x7D188D23u; + /// + /// splitscreen ID + ///
+ /// type: short + ///
+ public short SplitScreenPlayer { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventResetGameTitledata.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventResetGameTitledata.cs index 3dc551391..6ad6c9d02 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventResetGameTitledata.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventResetGameTitledata.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,18 +7,19 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "reset_game_titledata" /// reset user titledata; do not automatically write profile /// -public interface EventResetGameTitledata : IGameEvent { +public interface EventResetGameTitledata : IGameEvent +{ - static EventResetGameTitledata IGameEvent.Create(nint address) => new EventResetGameTitledataImpl(address); + static EventResetGameTitledata IGameEvent.Create( nint address ) => new EventResetGameTitledataImpl(address); - static string IGameEvent.GetName() => "reset_game_titledata"; + static string IGameEvent.GetName() => "reset_game_titledata"; - static uint IGameEvent.GetHash() => 0x2198EA36u; - /// - /// Controller id of user - ///
- /// type: short - ///
- short ControllerId { get; set; } + static uint IGameEvent.GetHash() => 0x2198EA36u; + /// + /// Controller id of user + ///
+ /// type: short + ///
+ public short ControllerId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceFinal.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceFinal.cs index c81cd0ac2..cf2b55b80 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceFinal.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceFinal.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_announce_final" /// -public interface EventRoundAnnounceFinal : IGameEvent { +public interface EventRoundAnnounceFinal : IGameEvent +{ - static EventRoundAnnounceFinal IGameEvent.Create(nint address) => new EventRoundAnnounceFinalImpl(address); + static EventRoundAnnounceFinal IGameEvent.Create( nint address ) => new EventRoundAnnounceFinalImpl(address); - static string IGameEvent.GetName() => "round_announce_final"; + static string IGameEvent.GetName() => "round_announce_final"; - static uint IGameEvent.GetHash() => 0x6413CAF8u; + static uint IGameEvent.GetHash() => 0x6413CAF8u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceLastRoundHalf.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceLastRoundHalf.cs index 54826b699..69fbf01d1 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceLastRoundHalf.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceLastRoundHalf.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_announce_last_round_half" /// -public interface EventRoundAnnounceLastRoundHalf : IGameEvent { +public interface EventRoundAnnounceLastRoundHalf : IGameEvent +{ - static EventRoundAnnounceLastRoundHalf IGameEvent.Create(nint address) => new EventRoundAnnounceLastRoundHalfImpl(address); + static EventRoundAnnounceLastRoundHalf IGameEvent.Create( nint address ) => new EventRoundAnnounceLastRoundHalfImpl(address); - static string IGameEvent.GetName() => "round_announce_last_round_half"; + static string IGameEvent.GetName() => "round_announce_last_round_half"; - static uint IGameEvent.GetHash() => 0x3EF49D9Du; + static uint IGameEvent.GetHash() => 0x3EF49D9Du; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceMatchPoint.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceMatchPoint.cs index 94bd1b2dd..ef92b02ad 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceMatchPoint.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceMatchPoint.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_announce_match_point" /// -public interface EventRoundAnnounceMatchPoint : IGameEvent { +public interface EventRoundAnnounceMatchPoint : IGameEvent +{ - static EventRoundAnnounceMatchPoint IGameEvent.Create(nint address) => new EventRoundAnnounceMatchPointImpl(address); + static EventRoundAnnounceMatchPoint IGameEvent.Create( nint address ) => new EventRoundAnnounceMatchPointImpl(address); - static string IGameEvent.GetName() => "round_announce_match_point"; + static string IGameEvent.GetName() => "round_announce_match_point"; - static uint IGameEvent.GetHash() => 0xE22B8B5Cu; + static uint IGameEvent.GetHash() => 0xE22B8B5Cu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceMatchStart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceMatchStart.cs index 4a40f143e..2d7430066 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceMatchStart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceMatchStart.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_announce_match_start" /// -public interface EventRoundAnnounceMatchStart : IGameEvent { +public interface EventRoundAnnounceMatchStart : IGameEvent +{ - static EventRoundAnnounceMatchStart IGameEvent.Create(nint address) => new EventRoundAnnounceMatchStartImpl(address); + static EventRoundAnnounceMatchStart IGameEvent.Create( nint address ) => new EventRoundAnnounceMatchStartImpl(address); - static string IGameEvent.GetName() => "round_announce_match_start"; + static string IGameEvent.GetName() => "round_announce_match_start"; - static uint IGameEvent.GetHash() => 0xACF8A0B2u; + static uint IGameEvent.GetHash() => 0xACF8A0B2u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceWarmup.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceWarmup.cs index a03a41824..36246a912 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceWarmup.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundAnnounceWarmup.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_announce_warmup" /// -public interface EventRoundAnnounceWarmup : IGameEvent { +public interface EventRoundAnnounceWarmup : IGameEvent +{ - static EventRoundAnnounceWarmup IGameEvent.Create(nint address) => new EventRoundAnnounceWarmupImpl(address); + static EventRoundAnnounceWarmup IGameEvent.Create( nint address ) => new EventRoundAnnounceWarmupImpl(address); - static string IGameEvent.GetName() => "round_announce_warmup"; + static string IGameEvent.GetName() => "round_announce_warmup"; - static uint IGameEvent.GetHash() => 0x352EEA30u; + static uint IGameEvent.GetHash() => 0x352EEA30u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundEnd.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundEnd.cs index 4817d8eaa..fbdb14513 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundEnd.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundEnd.cs @@ -1,65 +1,64 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_end" /// -public interface EventRoundEnd : IGameEvent { +public interface EventRoundEnd : IGameEvent +{ - static EventRoundEnd IGameEvent.Create(nint address) => new EventRoundEndImpl(address); + static EventRoundEnd IGameEvent.Create( nint address ) => new EventRoundEndImpl(address); - static string IGameEvent.GetName() => "round_end"; + static string IGameEvent.GetName() => "round_end"; - static uint IGameEvent.GetHash() => 0x3ABA4E21u; - /// - /// winner team/user i - ///
- /// type: byte - ///
- byte Winner { get; set; } + static uint IGameEvent.GetHash() => 0x3ABA4E21u; + /// + /// winner team/user i + ///
+ /// type: byte + ///
+ public byte Winner { get; set; } - /// - /// reson why team won - ///
- /// type: byte - ///
- byte Reason { get; set; } + /// + /// reson why team won + ///
+ /// type: byte + ///
+ public byte Reason { get; set; } - /// - /// end round message - ///
- /// type: string - ///
- string Message { get; set; } + /// + /// end round message + ///
+ /// type: string + ///
+ public string Message { get; set; } - /// - /// type: float - /// - float Time { get; set; } + /// + /// type: float + /// + public float Time { get; set; } - /// - /// server-generated legacy value - ///
- /// type: byte - ///
- byte Legacy { get; set; } + /// + /// server-generated legacy value + ///
+ /// type: byte + ///
+ public byte Legacy { get; set; } - /// - /// total number of players alive at the end of round, used for statistics gathering, computed on the server in the event client is in replay when receiving this message - ///
- /// type: short - ///
- short PlayerCount { get; set; } + /// + /// total number of players alive at the end of round, used for statistics gathering, computed on the server in the event client is in replay when receiving this message + ///
+ /// type: short + ///
+ public short PlayerCount { get; set; } - /// - /// if set, don't play round end music, because action is still on-going - ///
- /// type: byte - ///
- byte NoMusic { get; set; } + /// + /// if set, don't play round end music, because action is still on-going + ///
+ /// type: byte + ///
+ public byte NoMusic { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundEndUploadStats.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundEndUploadStats.cs index f4a8d2714..066966a71 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundEndUploadStats.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundEndUploadStats.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_end_upload_stats" /// -public interface EventRoundEndUploadStats : IGameEvent { +public interface EventRoundEndUploadStats : IGameEvent +{ - static EventRoundEndUploadStats IGameEvent.Create(nint address) => new EventRoundEndUploadStatsImpl(address); + static EventRoundEndUploadStats IGameEvent.Create( nint address ) => new EventRoundEndUploadStatsImpl(address); - static string IGameEvent.GetName() => "round_end_upload_stats"; + static string IGameEvent.GetName() => "round_end_upload_stats"; - static uint IGameEvent.GetHash() => 0xD0FB36E3u; + static uint IGameEvent.GetHash() => 0xD0FB36E3u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundFreezeEnd.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundFreezeEnd.cs index 0f9d9c9cb..50a2d695e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundFreezeEnd.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundFreezeEnd.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_freeze_end" /// -public interface EventRoundFreezeEnd : IGameEvent { +public interface EventRoundFreezeEnd : IGameEvent +{ - static EventRoundFreezeEnd IGameEvent.Create(nint address) => new EventRoundFreezeEndImpl(address); + static EventRoundFreezeEnd IGameEvent.Create( nint address ) => new EventRoundFreezeEndImpl(address); - static string IGameEvent.GetName() => "round_freeze_end"; + static string IGameEvent.GetName() => "round_freeze_end"; - static uint IGameEvent.GetHash() => 0xD704819Du; + static uint IGameEvent.GetHash() => 0xD704819Du; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundMvp.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundMvp.cs index 286a570fd..7d55e2ff0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundMvp.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundMvp.cs @@ -1,64 +1,64 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_mvp" /// -public interface EventRoundMvp : IGameEvent { +public interface EventRoundMvp : IGameEvent +{ - static EventRoundMvp IGameEvent.Create(nint address) => new EventRoundMvpImpl(address); + static EventRoundMvp IGameEvent.Create( nint address ) => new EventRoundMvpImpl(address); - static string IGameEvent.GetName() => "round_mvp"; + static string IGameEvent.GetName() => "round_mvp"; - static uint IGameEvent.GetHash() => 0xC80E399Du; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xC80E399Du; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } - /// - /// type: short - /// - short Reason { get; set; } + /// + /// type: short + /// + public short Reason { get; set; } - /// - /// type: long - /// - int Value { get; set; } + /// + /// type: long + /// + public int Value { get; set; } - /// - /// type: long - /// - int MusickItMvps { get; set; } + /// + /// type: long + /// + public int MusickItMvps { get; set; } - /// - /// type: byte - /// - byte NoMusic { get; set; } + /// + /// type: byte + /// + public byte NoMusic { get; set; } - /// - /// type: long - /// - int MusickItID { get; set; } + /// + /// type: long + /// + public int MusickItID { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundOfficiallyEnded.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundOfficiallyEnded.cs index 0bdb94fdc..92526d9df 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundOfficiallyEnded.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundOfficiallyEnded.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_officially_ended" /// -public interface EventRoundOfficiallyEnded : IGameEvent { +public interface EventRoundOfficiallyEnded : IGameEvent +{ - static EventRoundOfficiallyEnded IGameEvent.Create(nint address) => new EventRoundOfficiallyEndedImpl(address); + static EventRoundOfficiallyEnded IGameEvent.Create( nint address ) => new EventRoundOfficiallyEndedImpl(address); - static string IGameEvent.GetName() => "round_officially_ended"; + static string IGameEvent.GetName() => "round_officially_ended"; - static uint IGameEvent.GetHash() => 0x62F43919u; + static uint IGameEvent.GetHash() => 0x62F43919u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundPoststart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundPoststart.cs index 23cd59409..7f814b587 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundPoststart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundPoststart.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,11 +7,12 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "round_poststart" /// sent after all other round restart actions /// -public interface EventRoundPoststart : IGameEvent { +public interface EventRoundPoststart : IGameEvent +{ - static EventRoundPoststart IGameEvent.Create(nint address) => new EventRoundPoststartImpl(address); + static EventRoundPoststart IGameEvent.Create( nint address ) => new EventRoundPoststartImpl(address); - static string IGameEvent.GetName() => "round_poststart"; + static string IGameEvent.GetName() => "round_poststart"; - static uint IGameEvent.GetHash() => 0x0BE43746u; + static uint IGameEvent.GetHash() => 0x0BE43746u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundPrestart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundPrestart.cs index 8f3e2e60a..a885e50c0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundPrestart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundPrestart.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,11 +7,12 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "round_prestart" /// sent before all other round restart actions /// -public interface EventRoundPrestart : IGameEvent { +public interface EventRoundPrestart : IGameEvent +{ - static EventRoundPrestart IGameEvent.Create(nint address) => new EventRoundPrestartImpl(address); + static EventRoundPrestart IGameEvent.Create( nint address ) => new EventRoundPrestartImpl(address); - static string IGameEvent.GetName() => "round_prestart"; + static string IGameEvent.GetName() => "round_prestart"; - static uint IGameEvent.GetHash() => 0xE6A3E50Fu; + static uint IGameEvent.GetHash() => 0xE6A3E50Fu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundStart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundStart.cs index 1deb51a6d..9637a7eaa 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundStart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundStart.cs @@ -1,39 +1,38 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_start" /// -public interface EventRoundStart : IGameEvent { - - static EventRoundStart IGameEvent.Create(nint address) => new EventRoundStartImpl(address); - - static string IGameEvent.GetName() => "round_start"; - - static uint IGameEvent.GetHash() => 0xAFCD8F60u; - /// - /// round time limit in seconds - ///
- /// type: long - ///
- int TimeLimit { get; set; } - - /// - /// frag limit in seconds - ///
- /// type: long - ///
- int FragLimit { get; set; } - - /// - /// round objective - ///
- /// type: string - ///
- string Objective { get; set; } +public interface EventRoundStart : IGameEvent +{ + + static EventRoundStart IGameEvent.Create( nint address ) => new EventRoundStartImpl(address); + + static string IGameEvent.GetName() => "round_start"; + + static uint IGameEvent.GetHash() => 0xAFCD8F60u; + /// + /// round time limit in seconds + ///
+ /// type: long + ///
+ public int TimeLimit { get; set; } + + /// + /// frag limit in seconds + ///
+ /// type: long + ///
+ public int FragLimit { get; set; } + + /// + /// round objective + ///
+ /// type: string + ///
+ public string Objective { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundStartPostNav.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundStartPostNav.cs index 04129827c..4ea67a68d 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundStartPostNav.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundStartPostNav.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_start_post_nav" /// -public interface EventRoundStartPostNav : IGameEvent { +public interface EventRoundStartPostNav : IGameEvent +{ - static EventRoundStartPostNav IGameEvent.Create(nint address) => new EventRoundStartPostNavImpl(address); + static EventRoundStartPostNav IGameEvent.Create( nint address ) => new EventRoundStartPostNavImpl(address); - static string IGameEvent.GetName() => "round_start_post_nav"; + static string IGameEvent.GetName() => "round_start_post_nav"; - static uint IGameEvent.GetHash() => 0x0F2F9F25u; + static uint IGameEvent.GetHash() => 0x0F2F9F25u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundStartPreEntity.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundStartPreEntity.cs index 38e7dc603..9ef3e8dff 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundStartPreEntity.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundStartPreEntity.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_start_pre_entity" /// -public interface EventRoundStartPreEntity : IGameEvent { +public interface EventRoundStartPreEntity : IGameEvent +{ - static EventRoundStartPreEntity IGameEvent.Create(nint address) => new EventRoundStartPreEntityImpl(address); + static EventRoundStartPreEntity IGameEvent.Create( nint address ) => new EventRoundStartPreEntityImpl(address); - static string IGameEvent.GetName() => "round_start_pre_entity"; + static string IGameEvent.GetName() => "round_start_pre_entity"; - static uint IGameEvent.GetHash() => 0x703715ECu; + static uint IGameEvent.GetHash() => 0x703715ECu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundTimeWarning.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundTimeWarning.cs index 58f716616..4342f772a 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundTimeWarning.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventRoundTimeWarning.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "round_time_warning" /// -public interface EventRoundTimeWarning : IGameEvent { +public interface EventRoundTimeWarning : IGameEvent +{ - static EventRoundTimeWarning IGameEvent.Create(nint address) => new EventRoundTimeWarningImpl(address); + static EventRoundTimeWarning IGameEvent.Create( nint address ) => new EventRoundTimeWarningImpl(address); - static string IGameEvent.GetName() => "round_time_warning"; + static string IGameEvent.GetName() => "round_time_warning"; - static uint IGameEvent.GetHash() => 0x3E89666Au; + static uint IGameEvent.GetHash() => 0x3E89666Au; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSeasoncoinLevelup.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSeasoncoinLevelup.cs index 350c9165a..635b1579f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSeasoncoinLevelup.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSeasoncoinLevelup.cs @@ -1,49 +1,49 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "seasoncoin_levelup" /// -public interface EventSeasoncoinLevelup : IGameEvent { - - static EventSeasoncoinLevelup IGameEvent.Create(nint address) => new EventSeasoncoinLevelupImpl(address); - - static string IGameEvent.GetName() => "seasoncoin_levelup"; - - static uint IGameEvent.GetHash() => 0xF0EAD821u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short Category { get; set; } - - /// - /// type: short - /// - short Rank { get; set; } +public interface EventSeasoncoinLevelup : IGameEvent +{ + + static EventSeasoncoinLevelup IGameEvent.Create( nint address ) => new EventSeasoncoinLevelupImpl(address); + + static string IGameEvent.GetName() => "seasoncoin_levelup"; + + static uint IGameEvent.GetHash() => 0xF0EAD821u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short Category { get; set; } + + /// + /// type: short + /// + public short Rank { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerCvar.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerCvar.cs index 3b5a9f80e..964da4c2e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerCvar.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerCvar.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,25 +7,26 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "server_cvar" /// a server console var has changed /// -public interface EventServerCvar : IGameEvent { +public interface EventServerCvar : IGameEvent +{ - static EventServerCvar IGameEvent.Create(nint address) => new EventServerCvarImpl(address); + static EventServerCvar IGameEvent.Create( nint address ) => new EventServerCvarImpl(address); - static string IGameEvent.GetName() => "server_cvar"; + static string IGameEvent.GetName() => "server_cvar"; - static uint IGameEvent.GetHash() => 0x11BA3D6Du; - /// - /// cvar name, eg "mp_roundtime" - ///
- /// type: string - ///
- string CVarName { get; set; } + static uint IGameEvent.GetHash() => 0x11BA3D6Du; + /// + /// cvar name, eg "mp_roundtime" + ///
+ /// type: string + ///
+ public string CVarName { get; set; } - /// - /// new cvar value - ///
- /// type: string - ///
- string CVarValue { get; set; } + /// + /// new cvar value + ///
+ /// type: string + ///
+ public string CVarValue { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerMessage.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerMessage.cs index f5ae16723..3104ec4ca 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerMessage.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerMessage.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,18 +7,19 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "server_message" /// a generic server message /// -public interface EventServerMessage : IGameEvent { +public interface EventServerMessage : IGameEvent +{ - static EventServerMessage IGameEvent.Create(nint address) => new EventServerMessageImpl(address); + static EventServerMessage IGameEvent.Create( nint address ) => new EventServerMessageImpl(address); - static string IGameEvent.GetName() => "server_message"; + static string IGameEvent.GetName() => "server_message"; - static uint IGameEvent.GetHash() => 0x29575F36u; - /// - /// the message text - ///
- /// type: string - ///
- string Text { get; set; } + static uint IGameEvent.GetHash() => 0x29575F36u; + /// + /// the message text + ///
+ /// type: string + ///
+ public string Text { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerPreShutdown.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerPreShutdown.cs index 2f75baa67..390e1e3ae 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerPreShutdown.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerPreShutdown.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,18 +7,19 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "server_pre_shutdown" /// server is about to be shut down /// -public interface EventServerPreShutdown : IGameEvent { +public interface EventServerPreShutdown : IGameEvent +{ - static EventServerPreShutdown IGameEvent.Create(nint address) => new EventServerPreShutdownImpl(address); + static EventServerPreShutdown IGameEvent.Create( nint address ) => new EventServerPreShutdownImpl(address); - static string IGameEvent.GetName() => "server_pre_shutdown"; + static string IGameEvent.GetName() => "server_pre_shutdown"; - static uint IGameEvent.GetHash() => 0x2597A7B3u; - /// - /// reason why server is about to be shut down - ///
- /// type: string - ///
- string Reason { get; set; } + static uint IGameEvent.GetHash() => 0x2597A7B3u; + /// + /// reason why server is about to be shut down + ///
+ /// type: string + ///
+ public string Reason { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerShutdown.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerShutdown.cs index 379f79938..917ce6e48 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerShutdown.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerShutdown.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,18 +7,19 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "server_shutdown" /// server shut down /// -public interface EventServerShutdown : IGameEvent { +public interface EventServerShutdown : IGameEvent +{ - static EventServerShutdown IGameEvent.Create(nint address) => new EventServerShutdownImpl(address); + static EventServerShutdown IGameEvent.Create( nint address ) => new EventServerShutdownImpl(address); - static string IGameEvent.GetName() => "server_shutdown"; + static string IGameEvent.GetName() => "server_shutdown"; - static uint IGameEvent.GetHash() => 0x840A8CCDu; - /// - /// reason why server was shut down - ///
- /// type: string - ///
- string Reason { get; set; } + static uint IGameEvent.GetHash() => 0x840A8CCDu; + /// + /// reason why server was shut down + ///
+ /// type: string + ///
+ public string Reason { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerSpawn.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerSpawn.cs index bad3a66b4..044981f86 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerSpawn.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventServerSpawn.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,81 +7,82 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "server_spawn" /// send once a server starts /// -public interface EventServerSpawn : IGameEvent { +public interface EventServerSpawn : IGameEvent +{ - static EventServerSpawn IGameEvent.Create(nint address) => new EventServerSpawnImpl(address); + static EventServerSpawn IGameEvent.Create( nint address ) => new EventServerSpawnImpl(address); - static string IGameEvent.GetName() => "server_spawn"; + static string IGameEvent.GetName() => "server_spawn"; - static uint IGameEvent.GetHash() => 0x7039CD72u; - /// - /// public host name - ///
- /// type: string - ///
- string Hostname { get; set; } + static uint IGameEvent.GetHash() => 0x7039CD72u; + /// + /// public host name + ///
+ /// type: string + ///
+ public string Hostname { get; set; } - /// - /// hostame, IP or DNS name - ///
- /// type: string - ///
- string Address { get; set; } + /// + /// hostame, IP or DNS name + ///
+ /// type: string + ///
+ public string Address { get; set; } - /// - /// server port - ///
- /// type: short - ///
- short Port { get; set; } + /// + /// server port + ///
+ /// type: short + ///
+ public short Port { get; set; } - /// - /// game dir - ///
- /// type: string - ///
- string Game { get; set; } + /// + /// game dir + ///
+ /// type: string + ///
+ public string Game { get; set; } - /// - /// map name - ///
- /// type: string - ///
- string MapName { get; set; } + /// + /// map name + ///
+ /// type: string + ///
+ public string MapName { get; set; } - /// - /// addon name - ///
- /// type: string - ///
- string AddonName { get; set; } + /// + /// addon name + ///
+ /// type: string + ///
+ public string AddonName { get; set; } - /// - /// max players - ///
- /// type: long - ///
- int MaxPlayers { get; set; } + /// + /// max players + ///
+ /// type: long + ///
+ public int MaxPlayers { get; set; } - /// - /// WIN32, LINUX - ///
- /// type: string - ///
- string Os { get; set; } + /// + /// WIN32, LINUX + ///
+ /// type: string + ///
+ public string Os { get; set; } - /// - /// true if dedicated server - ///
- /// type: bool - ///
- bool Dedicated { get; set; } + /// + /// true if dedicated server + ///
+ /// type: bool + ///
+ public bool Dedicated { get; set; } - /// - /// true if password protected - ///
- /// type: bool - ///
- bool Password { get; set; } + /// + /// true if password protected + ///
+ /// type: bool + ///
+ public bool Password { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSetInstructorGroupEnabled.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSetInstructorGroupEnabled.cs index c2f0ba97e..5f8db65da 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSetInstructorGroupEnabled.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSetInstructorGroupEnabled.cs @@ -1,28 +1,27 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "set_instructor_group_enabled" /// -public interface EventSetInstructorGroupEnabled : IGameEvent { +public interface EventSetInstructorGroupEnabled : IGameEvent +{ - static EventSetInstructorGroupEnabled IGameEvent.Create(nint address) => new EventSetInstructorGroupEnabledImpl(address); + static EventSetInstructorGroupEnabled IGameEvent.Create( nint address ) => new EventSetInstructorGroupEnabledImpl(address); - static string IGameEvent.GetName() => "set_instructor_group_enabled"; + static string IGameEvent.GetName() => "set_instructor_group_enabled"; - static uint IGameEvent.GetHash() => 0x87A9E425u; - /// - /// type: string - /// - string Group { get; set; } + static uint IGameEvent.GetHash() => 0x87A9E425u; + /// + /// type: string + /// + public string Group { get; set; } - /// - /// type: short - /// - short Enabled { get; set; } + /// + /// type: short + /// + public short Enabled { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSfuievent.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSfuievent.cs index 0df6a5846..25ee2ba18 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSfuievent.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSfuievent.cs @@ -1,33 +1,32 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "sfuievent" /// -public interface EventSfuievent : IGameEvent { +public interface EventSfuievent : IGameEvent +{ - static EventSfuievent IGameEvent.Create(nint address) => new EventSfuieventImpl(address); + static EventSfuievent IGameEvent.Create( nint address ) => new EventSfuieventImpl(address); - static string IGameEvent.GetName() => "sfuievent"; + static string IGameEvent.GetName() => "sfuievent"; - static uint IGameEvent.GetHash() => 0xA20ACD22u; - /// - /// type: string - /// - string Action { get; set; } + static uint IGameEvent.GetHash() => 0xA20ACD22u; + /// + /// type: string + /// + public string Action { get; set; } - /// - /// type: string - /// - string Data { get; set; } + /// + /// type: string + /// + public string Data { get; set; } - /// - /// type: byte - /// - byte Slot { get; set; } + /// + /// type: byte + /// + public byte Slot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventShowDeathpanel.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventShowDeathpanel.cs index e514c7a4f..85c79d9ca 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventShowDeathpanel.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventShowDeathpanel.cs @@ -1,57 +1,56 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "show_deathpanel" /// -public interface EventShowDeathpanel : IGameEvent { - - static EventShowDeathpanel IGameEvent.Create(nint address) => new EventShowDeathpanelImpl(address); - - static string IGameEvent.GetName() => "show_deathpanel"; - - static uint IGameEvent.GetHash() => 0x2AB9F7A1u; - /// - /// endindex of the one who was killed - ///
- /// type: player_controller_and_pawn - ///
- int Victim { get; set; } - - /// - /// entindex of the killer entity - ///
- /// type: ehandle - ///
- nint Killer { get; set; } - - /// - /// type: player_controller - /// - int KillerController { get; set; } - - /// - /// type: short - /// - short HitsTaken { get; set; } - - /// - /// type: short - /// - short DamageTaken { get; set; } - - /// - /// type: short - /// - short HitsGiven { get; set; } - - /// - /// type: short - /// - short DamageGiven { get; set; } +public interface EventShowDeathpanel : IGameEvent +{ + + static EventShowDeathpanel IGameEvent.Create( nint address ) => new EventShowDeathpanelImpl(address); + + static string IGameEvent.GetName() => "show_deathpanel"; + + static uint IGameEvent.GetHash() => 0x2AB9F7A1u; + /// + /// endindex of the one who was killed + ///
+ /// type: player_controller_and_pawn + ///
+ public int Victim { get; set; } + + /// + /// entindex of the killer entity + ///
+ /// type: ehandle + ///
+ public nint Killer { get; set; } + + /// + /// type: player_controller + /// + public int KillerController { get; set; } + + /// + /// type: short + /// + public short HitsTaken { get; set; } + + /// + /// type: short + /// + public short DamageTaken { get; set; } + + /// + /// type: short + /// + public short HitsGiven { get; set; } + + /// + /// type: short + /// + public short DamageGiven { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventShowSurvivalRespawnStatus.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventShowSurvivalRespawnStatus.cs index ee96aff86..cf13bcec2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventShowSurvivalRespawnStatus.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventShowSurvivalRespawnStatus.cs @@ -1,49 +1,49 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "show_survival_respawn_status" /// -public interface EventShowSurvivalRespawnStatus : IGameEvent { - - static EventShowSurvivalRespawnStatus IGameEvent.Create(nint address) => new EventShowSurvivalRespawnStatusImpl(address); - - static string IGameEvent.GetName() => "show_survival_respawn_status"; - - static uint IGameEvent.GetHash() => 0xAF60FAAFu; - /// - /// type: string - /// - string LocToken { get; set; } - - /// - /// type: long - /// - int Duration { get; set; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } +public interface EventShowSurvivalRespawnStatus : IGameEvent +{ + + static EventShowSurvivalRespawnStatus IGameEvent.Create( nint address ) => new EventShowSurvivalRespawnStatusImpl(address); + + static string IGameEvent.GetName() => "show_survival_respawn_status"; + + static uint IGameEvent.GetHash() => 0xAF60FAAFu; + /// + /// type: string + /// + public string LocToken { get; set; } + + /// + /// type: long + /// + public int Duration { get; set; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSilencerDetach.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSilencerDetach.cs index df81cefdc..cba661c2f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSilencerDetach.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSilencerDetach.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "silencer_detach" /// -public interface EventSilencerDetach : IGameEvent { +public interface EventSilencerDetach : IGameEvent +{ - static EventSilencerDetach IGameEvent.Create(nint address) => new EventSilencerDetachImpl(address); + static EventSilencerDetach IGameEvent.Create( nint address ) => new EventSilencerDetachImpl(address); - static string IGameEvent.GetName() => "silencer_detach"; + static string IGameEvent.GetName() => "silencer_detach"; - static uint IGameEvent.GetHash() => 0x1670A6D0u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0x1670A6D0u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSilencerOff.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSilencerOff.cs index 86bb7fffb..319ae1edc 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSilencerOff.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSilencerOff.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "silencer_off" /// -public interface EventSilencerOff : IGameEvent { +public interface EventSilencerOff : IGameEvent +{ - static EventSilencerOff IGameEvent.Create(nint address) => new EventSilencerOffImpl(address); + static EventSilencerOff IGameEvent.Create( nint address ) => new EventSilencerOffImpl(address); - static string IGameEvent.GetName() => "silencer_off"; + static string IGameEvent.GetName() => "silencer_off"; - static uint IGameEvent.GetHash() => 0x572861ACu; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0x572861ACu; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSilencerOn.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSilencerOn.cs index 85f89962c..b0f9ae761 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSilencerOn.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSilencerOn.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "silencer_on" /// -public interface EventSilencerOn : IGameEvent { +public interface EventSilencerOn : IGameEvent +{ - static EventSilencerOn IGameEvent.Create(nint address) => new EventSilencerOnImpl(address); + static EventSilencerOn IGameEvent.Create( nint address ) => new EventSilencerOnImpl(address); - static string IGameEvent.GetName() => "silencer_on"; + static string IGameEvent.GetName() => "silencer_on"; - static uint IGameEvent.GetHash() => 0xA834DFDAu; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xA834DFDAu; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSmokeBeaconParadrop.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSmokeBeaconParadrop.cs index ca6b5ed90..5f7ce8a1f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSmokeBeaconParadrop.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSmokeBeaconParadrop.cs @@ -1,44 +1,44 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "smoke_beacon_paradrop" /// -public interface EventSmokeBeaconParadrop : IGameEvent { - - static EventSmokeBeaconParadrop IGameEvent.Create(nint address) => new EventSmokeBeaconParadropImpl(address); - - static string IGameEvent.GetName() => "smoke_beacon_paradrop"; - - static uint IGameEvent.GetHash() => 0xA68BF79Bu; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short ParaDrop { get; set; } +public interface EventSmokeBeaconParadrop : IGameEvent +{ + + static EventSmokeBeaconParadrop IGameEvent.Create( nint address ) => new EventSmokeBeaconParadropImpl(address); + + static string IGameEvent.GetName() => "smoke_beacon_paradrop"; + + static uint IGameEvent.GetHash() => 0xA68BF79Bu; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short ParaDrop { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSmokegrenadeDetonate.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSmokegrenadeDetonate.cs index 5a3bcf245..ea7727be2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSmokegrenadeDetonate.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSmokegrenadeDetonate.cs @@ -1,59 +1,59 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "smokegrenade_detonate" /// -public interface EventSmokegrenadeDetonate : IGameEvent { - - static EventSmokegrenadeDetonate IGameEvent.Create(nint address) => new EventSmokegrenadeDetonateImpl(address); - - static string IGameEvent.GetName() => "smokegrenade_detonate"; - - static uint IGameEvent.GetHash() => 0xA786E81Du; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short EntityID { get; set; } - - /// - /// type: float - /// - float X { get; set; } - - /// - /// type: float - /// - float Y { get; set; } - - /// - /// type: float - /// - float Z { get; set; } +public interface EventSmokegrenadeDetonate : IGameEvent +{ + + static EventSmokegrenadeDetonate IGameEvent.Create( nint address ) => new EventSmokegrenadeDetonateImpl(address); + + static string IGameEvent.GetName() => "smokegrenade_detonate"; + + static uint IGameEvent.GetHash() => 0xA786E81Du; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short EntityID { get; set; } + + /// + /// type: float + /// + public float X { get; set; } + + /// + /// type: float + /// + public float Y { get; set; } + + /// + /// type: float + /// + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSmokegrenadeExpired.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSmokegrenadeExpired.cs index 162251faa..f6892e7ca 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSmokegrenadeExpired.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSmokegrenadeExpired.cs @@ -1,59 +1,59 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "smokegrenade_expired" /// -public interface EventSmokegrenadeExpired : IGameEvent { - - static EventSmokegrenadeExpired IGameEvent.Create(nint address) => new EventSmokegrenadeExpiredImpl(address); - - static string IGameEvent.GetName() => "smokegrenade_expired"; - - static uint IGameEvent.GetHash() => 0x45406DF6u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short EntityID { get; set; } - - /// - /// type: float - /// - float X { get; set; } - - /// - /// type: float - /// - float Y { get; set; } - - /// - /// type: float - /// - float Z { get; set; } +public interface EventSmokegrenadeExpired : IGameEvent +{ + + static EventSmokegrenadeExpired IGameEvent.Create( nint address ) => new EventSmokegrenadeExpiredImpl(address); + + static string IGameEvent.GetName() => "smokegrenade_expired"; + + static uint IGameEvent.GetHash() => 0x45406DF6u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short EntityID { get; set; } + + /// + /// type: float + /// + public float X { get; set; } + + /// + /// type: float + /// + public float Y { get; set; } + + /// + /// type: float + /// + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSpecModeUpdated.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSpecModeUpdated.cs index 1239fe7b1..29fcb0e5c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSpecModeUpdated.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSpecModeUpdated.cs @@ -1,43 +1,43 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "spec_mode_updated" /// -public interface EventSpecModeUpdated : IGameEvent { - - static EventSpecModeUpdated IGameEvent.Create(nint address) => new EventSpecModeUpdatedImpl(address); - - static string IGameEvent.GetName() => "spec_mode_updated"; - - static uint IGameEvent.GetHash() => 0x25E84B54u; - /// - /// spectating player - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// spectating player - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // spectating player - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// spectating player - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } +public interface EventSpecModeUpdated : IGameEvent +{ + + static EventSpecModeUpdated IGameEvent.Create( nint address ) => new EventSpecModeUpdatedImpl(address); + + static string IGameEvent.GetName() => "spec_mode_updated"; + + static uint IGameEvent.GetHash() => 0x25E84B54u; + /// + /// spectating player + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// spectating player + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // spectating player + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// spectating player + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSpecTargetUpdated.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSpecTargetUpdated.cs index 6d34d0206..139a61a13 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSpecTargetUpdated.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSpecTargetUpdated.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "spec_target_updated" /// -public interface EventSpecTargetUpdated : IGameEvent { - - static EventSpecTargetUpdated IGameEvent.Create(nint address) => new EventSpecTargetUpdatedImpl(address); - - static string IGameEvent.GetName() => "spec_target_updated"; - - static uint IGameEvent.GetHash() => 0x89A1984Au; - /// - /// spectating player - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// spectating player - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // spectating player - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// spectating player - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// ehandle of the target - ///
- /// type: ehandle - ///
- nint Target { get; set; } +public interface EventSpecTargetUpdated : IGameEvent +{ + + static EventSpecTargetUpdated IGameEvent.Create( nint address ) => new EventSpecTargetUpdatedImpl(address); + + static string IGameEvent.GetName() => "spec_target_updated"; + + static uint IGameEvent.GetHash() => 0x89A1984Au; + /// + /// spectating player + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// spectating player + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // spectating player + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// spectating player + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// ehandle of the target + ///
+ /// type: ehandle + ///
+ public nint Target { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventStartHalftime.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventStartHalftime.cs index 7ea1404cc..2113c9612 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventStartHalftime.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventStartHalftime.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "start_halftime" /// -public interface EventStartHalftime : IGameEvent { +public interface EventStartHalftime : IGameEvent +{ - static EventStartHalftime IGameEvent.Create(nint address) => new EventStartHalftimeImpl(address); + static EventStartHalftime IGameEvent.Create( nint address ) => new EventStartHalftimeImpl(address); - static string IGameEvent.GetName() => "start_halftime"; + static string IGameEvent.GetName() => "start_halftime"; - static uint IGameEvent.GetHash() => 0xC0794EE0u; + static uint IGameEvent.GetHash() => 0xC0794EE0u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventStartVote.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventStartVote.cs index 4d1c1e4f1..d089a923e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventStartVote.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventStartVote.cs @@ -1,49 +1,49 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "start_vote" /// -public interface EventStartVote : IGameEvent { - - static EventStartVote IGameEvent.Create(nint address) => new EventStartVoteImpl(address); - - static string IGameEvent.GetName() => "start_vote"; - - static uint IGameEvent.GetHash() => 0x637C08B4u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: byte - /// - byte Type { get; set; } - - /// - /// type: short - /// - short VoteParameter { get; set; } +public interface EventStartVote : IGameEvent +{ + + static EventStartVote IGameEvent.Create( nint address ) => new EventStartVoteImpl(address); + + static string IGameEvent.GetName() => "start_vote"; + + static uint IGameEvent.GetHash() => 0x637C08B4u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: byte + /// + public byte Type { get; set; } + + /// + /// type: short + /// + public short VoteParameter { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventStorePricesheetUpdated.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventStorePricesheetUpdated.cs index dcd74e4de..f9cf1ae30 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventStorePricesheetUpdated.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventStorePricesheetUpdated.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "store_pricesheet_updated" /// -public interface EventStorePricesheetUpdated : IGameEvent { +public interface EventStorePricesheetUpdated : IGameEvent +{ - static EventStorePricesheetUpdated IGameEvent.Create(nint address) => new EventStorePricesheetUpdatedImpl(address); + static EventStorePricesheetUpdated IGameEvent.Create( nint address ) => new EventStorePricesheetUpdatedImpl(address); - static string IGameEvent.GetName() => "store_pricesheet_updated"; + static string IGameEvent.GetName() => "store_pricesheet_updated"; - static uint IGameEvent.GetHash() => 0xE425C0FFu; + static uint IGameEvent.GetHash() => 0xE425C0FFu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalAnnouncePhase.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalAnnouncePhase.cs index 4d4056c6c..b80eb73ee 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalAnnouncePhase.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalAnnouncePhase.cs @@ -1,25 +1,24 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "survival_announce_phase" /// -public interface EventSurvivalAnnouncePhase : IGameEvent { +public interface EventSurvivalAnnouncePhase : IGameEvent +{ - static EventSurvivalAnnouncePhase IGameEvent.Create(nint address) => new EventSurvivalAnnouncePhaseImpl(address); + static EventSurvivalAnnouncePhase IGameEvent.Create( nint address ) => new EventSurvivalAnnouncePhaseImpl(address); - static string IGameEvent.GetName() => "survival_announce_phase"; + static string IGameEvent.GetName() => "survival_announce_phase"; - static uint IGameEvent.GetHash() => 0x70EE830Bu; - /// - /// The phase # - ///
- /// type: short - ///
- short Phase { get; set; } + static uint IGameEvent.GetHash() => 0x70EE830Bu; + /// + /// The phase # + ///
+ /// type: short + ///
+ public short Phase { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalNoRespawnsFinal.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalNoRespawnsFinal.cs index 4088aebbd..6a527f388 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalNoRespawnsFinal.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalNoRespawnsFinal.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "survival_no_respawns_final" /// -public interface EventSurvivalNoRespawnsFinal : IGameEvent { +public interface EventSurvivalNoRespawnsFinal : IGameEvent +{ - static EventSurvivalNoRespawnsFinal IGameEvent.Create(nint address) => new EventSurvivalNoRespawnsFinalImpl(address); + static EventSurvivalNoRespawnsFinal IGameEvent.Create( nint address ) => new EventSurvivalNoRespawnsFinalImpl(address); - static string IGameEvent.GetName() => "survival_no_respawns_final"; + static string IGameEvent.GetName() => "survival_no_respawns_final"; - static uint IGameEvent.GetHash() => 0xE88046CAu; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xE88046CAu; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalNoRespawnsWarning.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalNoRespawnsWarning.cs index 9e16a8de5..d0a401629 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalNoRespawnsWarning.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalNoRespawnsWarning.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "survival_no_respawns_warning" /// -public interface EventSurvivalNoRespawnsWarning : IGameEvent { +public interface EventSurvivalNoRespawnsWarning : IGameEvent +{ - static EventSurvivalNoRespawnsWarning IGameEvent.Create(nint address) => new EventSurvivalNoRespawnsWarningImpl(address); + static EventSurvivalNoRespawnsWarning IGameEvent.Create( nint address ) => new EventSurvivalNoRespawnsWarningImpl(address); - static string IGameEvent.GetName() => "survival_no_respawns_warning"; + static string IGameEvent.GetName() => "survival_no_respawns_warning"; - static uint IGameEvent.GetHash() => 0xE1C858A2u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xE1C858A2u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalParadropBreak.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalParadropBreak.cs index 2cb54eac3..6cd36d1b0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalParadropBreak.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalParadropBreak.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "survival_paradrop_break" /// -public interface EventSurvivalParadropBreak : IGameEvent { +public interface EventSurvivalParadropBreak : IGameEvent +{ - static EventSurvivalParadropBreak IGameEvent.Create(nint address) => new EventSurvivalParadropBreakImpl(address); + static EventSurvivalParadropBreak IGameEvent.Create( nint address ) => new EventSurvivalParadropBreakImpl(address); - static string IGameEvent.GetName() => "survival_paradrop_break"; + static string IGameEvent.GetName() => "survival_paradrop_break"; - static uint IGameEvent.GetHash() => 0xEBA7AD7Bu; - /// - /// type: short - /// - short EntityID { get; set; } + static uint IGameEvent.GetHash() => 0xEBA7AD7Bu; + /// + /// type: short + /// + public short EntityID { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalParadropSpawn.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalParadropSpawn.cs index 73d657ccd..a6e4d40bd 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalParadropSpawn.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalParadropSpawn.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "survival_paradrop_spawn" /// -public interface EventSurvivalParadropSpawn : IGameEvent { +public interface EventSurvivalParadropSpawn : IGameEvent +{ - static EventSurvivalParadropSpawn IGameEvent.Create(nint address) => new EventSurvivalParadropSpawnImpl(address); + static EventSurvivalParadropSpawn IGameEvent.Create( nint address ) => new EventSurvivalParadropSpawnImpl(address); - static string IGameEvent.GetName() => "survival_paradrop_spawn"; + static string IGameEvent.GetName() => "survival_paradrop_spawn"; - static uint IGameEvent.GetHash() => 0x8F273993u; - /// - /// type: short - /// - short EntityID { get; set; } + static uint IGameEvent.GetHash() => 0x8F273993u; + /// + /// type: short + /// + public short EntityID { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalTeammateRespawn.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalTeammateRespawn.cs index 3e3babeb7..ebf839301 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalTeammateRespawn.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSurvivalTeammateRespawn.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "survival_teammate_respawn" /// -public interface EventSurvivalTeammateRespawn : IGameEvent { +public interface EventSurvivalTeammateRespawn : IGameEvent +{ - static EventSurvivalTeammateRespawn IGameEvent.Create(nint address) => new EventSurvivalTeammateRespawnImpl(address); + static EventSurvivalTeammateRespawn IGameEvent.Create( nint address ) => new EventSurvivalTeammateRespawnImpl(address); - static string IGameEvent.GetName() => "survival_teammate_respawn"; + static string IGameEvent.GetName() => "survival_teammate_respawn"; - static uint IGameEvent.GetHash() => 0x558ADEEBu; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0x558ADEEBu; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSwitchTeam.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSwitchTeam.cs index 90579c070..a8df91057 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSwitchTeam.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventSwitchTeam.cs @@ -1,49 +1,48 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "switch_team" /// -public interface EventSwitchTeam : IGameEvent { - - static EventSwitchTeam IGameEvent.Create(nint address) => new EventSwitchTeamImpl(address); - - static string IGameEvent.GetName() => "switch_team"; - - static uint IGameEvent.GetHash() => 0x53717ECBu; - /// - /// number of active players on both T and CT - ///
- /// type: short - ///
- short NumPlayers { get; set; } - - /// - /// number of spectators - ///
- /// type: short - ///
- short NumSpectators { get; set; } - - /// - /// average rank of human players - ///
- /// type: short - ///
- short AvgRank { get; set; } - - /// - /// type: short - /// - short NumTSlotsFree { get; set; } - - /// - /// type: short - /// - short NumCTSlotsFree { get; set; } +public interface EventSwitchTeam : IGameEvent +{ + + static EventSwitchTeam IGameEvent.Create( nint address ) => new EventSwitchTeamImpl(address); + + static string IGameEvent.GetName() => "switch_team"; + + static uint IGameEvent.GetHash() => 0x53717ECBu; + /// + /// number of active players on both T and CT + ///
+ /// type: short + ///
+ public short NumPlayers { get; set; } + + /// + /// number of spectators + ///
+ /// type: short + ///
+ public short NumSpectators { get; set; } + + /// + /// average rank of human players + ///
+ /// type: short + ///
+ public short AvgRank { get; set; } + + /// + /// type: short + /// + public short NumTSlotsFree { get; set; } + + /// + /// type: short + /// + public short NumCTSlotsFree { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTagrenadeDetonate.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTagrenadeDetonate.cs index 9f25bf2ae..cb7a8c0ed 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTagrenadeDetonate.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTagrenadeDetonate.cs @@ -1,59 +1,59 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "tagrenade_detonate" /// -public interface EventTagrenadeDetonate : IGameEvent { - - static EventTagrenadeDetonate IGameEvent.Create(nint address) => new EventTagrenadeDetonateImpl(address); - - static string IGameEvent.GetName() => "tagrenade_detonate"; - - static uint IGameEvent.GetHash() => 0x727702BDu; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: short - /// - short EntityID { get; set; } - - /// - /// type: float - /// - float X { get; set; } - - /// - /// type: float - /// - float Y { get; set; } - - /// - /// type: float - /// - float Z { get; set; } +public interface EventTagrenadeDetonate : IGameEvent +{ + + static EventTagrenadeDetonate IGameEvent.Create( nint address ) => new EventTagrenadeDetonateImpl(address); + + static string IGameEvent.GetName() => "tagrenade_detonate"; + + static uint IGameEvent.GetHash() => 0x727702BDu; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: short + /// + public short EntityID { get; set; } + + /// + /// type: float + /// + public float X { get; set; } + + /// + /// type: float + /// + public float Y { get; set; } + + /// + /// type: float + /// + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamInfo.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamInfo.cs index 639e8dc32..5a7a3bcf0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamInfo.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamInfo.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,25 +7,26 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "team_info" /// info about team /// -public interface EventTeamInfo : IGameEvent { +public interface EventTeamInfo : IGameEvent +{ - static EventTeamInfo IGameEvent.Create(nint address) => new EventTeamInfoImpl(address); + static EventTeamInfo IGameEvent.Create( nint address ) => new EventTeamInfoImpl(address); - static string IGameEvent.GetName() => "team_info"; + static string IGameEvent.GetName() => "team_info"; - static uint IGameEvent.GetHash() => 0x61D50BD1u; - /// - /// unique team id - ///
- /// type: byte - ///
- byte TeamID { get; set; } + static uint IGameEvent.GetHash() => 0x61D50BD1u; + /// + /// unique team id + ///
+ /// type: byte + ///
+ public byte TeamID { get; set; } - /// - /// team name eg "Team Blue" - ///
- /// type: string - ///
- string Teamname { get; set; } + /// + /// team name eg "Team Blue" + ///
+ /// type: string + ///
+ public string Teamname { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamIntroEnd.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamIntroEnd.cs index acbe9eb8c..da5bfbe43 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamIntroEnd.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamIntroEnd.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "team_intro_end" /// -public interface EventTeamIntroEnd : IGameEvent { +public interface EventTeamIntroEnd : IGameEvent +{ - static EventTeamIntroEnd IGameEvent.Create(nint address) => new EventTeamIntroEndImpl(address); + static EventTeamIntroEnd IGameEvent.Create( nint address ) => new EventTeamIntroEndImpl(address); - static string IGameEvent.GetName() => "team_intro_end"; + static string IGameEvent.GetName() => "team_intro_end"; - static uint IGameEvent.GetHash() => 0x46EF839Bu; + static uint IGameEvent.GetHash() => 0x46EF839Bu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamIntroStart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamIntroStart.cs index 711b71dad..301f2b9f8 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamIntroStart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamIntroStart.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "team_intro_start" /// -public interface EventTeamIntroStart : IGameEvent { +public interface EventTeamIntroStart : IGameEvent +{ - static EventTeamIntroStart IGameEvent.Create(nint address) => new EventTeamIntroStartImpl(address); + static EventTeamIntroStart IGameEvent.Create( nint address ) => new EventTeamIntroStartImpl(address); - static string IGameEvent.GetName() => "team_intro_start"; + static string IGameEvent.GetName() => "team_intro_start"; - static uint IGameEvent.GetHash() => 0xB7C4858Eu; + static uint IGameEvent.GetHash() => 0xB7C4858Eu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamScore.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamScore.cs index 98034e321..fd53e437b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamScore.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamScore.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,25 +7,26 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "team_score" /// team score changed /// -public interface EventTeamScore : IGameEvent { +public interface EventTeamScore : IGameEvent +{ - static EventTeamScore IGameEvent.Create(nint address) => new EventTeamScoreImpl(address); + static EventTeamScore IGameEvent.Create( nint address ) => new EventTeamScoreImpl(address); - static string IGameEvent.GetName() => "team_score"; + static string IGameEvent.GetName() => "team_score"; - static uint IGameEvent.GetHash() => 0x0E418BF1u; - /// - /// team id - ///
- /// type: byte - ///
- byte TeamID { get; set; } + static uint IGameEvent.GetHash() => 0x0E418BF1u; + /// + /// team id + ///
+ /// type: byte + ///
+ public byte TeamID { get; set; } - /// - /// total team score - ///
- /// type: short - ///
- short Score { get; set; } + /// + /// total team score + ///
+ /// type: short + ///
+ public short Score { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamchangePending.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamchangePending.cs index 1297886e3..74f23ef4f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamchangePending.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamchangePending.cs @@ -1,44 +1,44 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "teamchange_pending" /// -public interface EventTeamchangePending : IGameEvent { - - static EventTeamchangePending IGameEvent.Create(nint address) => new EventTeamchangePendingImpl(address); - - static string IGameEvent.GetName() => "teamchange_pending"; - - static uint IGameEvent.GetHash() => 0x53F97450u; - /// - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// type: byte - /// - byte ToTeam { get; set; } +public interface EventTeamchangePending : IGameEvent +{ + + static EventTeamchangePending IGameEvent.Create( nint address ) => new EventTeamchangePendingImpl(address); + + static string IGameEvent.GetName() => "teamchange_pending"; + + static uint IGameEvent.GetHash() => 0x53F97450u; + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// type: byte + /// + public byte ToTeam { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamplayBroadcastAudio.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamplayBroadcastAudio.cs index 19872815e..eb66f6284 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamplayBroadcastAudio.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamplayBroadcastAudio.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,25 +7,26 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "teamplay_broadcast_audio" /// emits a sound to everyone on a team /// -public interface EventTeamplayBroadcastAudio : IGameEvent { +public interface EventTeamplayBroadcastAudio : IGameEvent +{ - static EventTeamplayBroadcastAudio IGameEvent.Create(nint address) => new EventTeamplayBroadcastAudioImpl(address); + static EventTeamplayBroadcastAudio IGameEvent.Create( nint address ) => new EventTeamplayBroadcastAudioImpl(address); - static string IGameEvent.GetName() => "teamplay_broadcast_audio"; + static string IGameEvent.GetName() => "teamplay_broadcast_audio"; - static uint IGameEvent.GetHash() => 0xB81F833Bu; - /// - /// unique team id - ///
- /// type: byte - ///
- byte Team { get; set; } + static uint IGameEvent.GetHash() => 0xB81F833Bu; + /// + /// unique team id + ///
+ /// type: byte + ///
+ public byte Team { get; set; } - /// - /// name of the sound to emit - ///
- /// type: string - ///
- string Sound { get; set; } + /// + /// name of the sound to emit + ///
+ /// type: string + ///
+ public string Sound { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamplayRoundStart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamplayRoundStart.cs index fdbe8d337..694d39b3e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamplayRoundStart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTeamplayRoundStart.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,18 +7,19 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "teamplay_round_start" /// round restart /// -public interface EventTeamplayRoundStart : IGameEvent { +public interface EventTeamplayRoundStart : IGameEvent +{ - static EventTeamplayRoundStart IGameEvent.Create(nint address) => new EventTeamplayRoundStartImpl(address); + static EventTeamplayRoundStart IGameEvent.Create( nint address ) => new EventTeamplayRoundStartImpl(address); - static string IGameEvent.GetName() => "teamplay_round_start"; + static string IGameEvent.GetName() => "teamplay_round_start"; - static uint IGameEvent.GetHash() => 0xB3DC0DA2u; - /// - /// is this a full reset of the map - ///
- /// type: bool - ///
- bool FullReset { get; set; } + static uint IGameEvent.GetHash() => 0xB3DC0DA2u; + /// + /// is this a full reset of the map + ///
+ /// type: bool + ///
+ public bool FullReset { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTournamentReward.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTournamentReward.cs index c04f48224..624e5475c 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTournamentReward.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTournamentReward.cs @@ -1,33 +1,32 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "tournament_reward" /// -public interface EventTournamentReward : IGameEvent { +public interface EventTournamentReward : IGameEvent +{ - static EventTournamentReward IGameEvent.Create(nint address) => new EventTournamentRewardImpl(address); + static EventTournamentReward IGameEvent.Create( nint address ) => new EventTournamentRewardImpl(address); - static string IGameEvent.GetName() => "tournament_reward"; + static string IGameEvent.GetName() => "tournament_reward"; - static uint IGameEvent.GetHash() => 0x1FF0AA30u; - /// - /// type: long - /// - int DefIndex { get; set; } + static uint IGameEvent.GetHash() => 0x1FF0AA30u; + /// + /// type: long + /// + public int DefIndex { get; set; } - /// - /// type: long - /// - int TotalRewards { get; set; } + /// + /// type: long + /// + public int TotalRewards { get; set; } - /// - /// type: long - /// - int AccountID { get; set; } + /// + /// type: long + /// + public int AccountID { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTrialTimeExpired.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTrialTimeExpired.cs index f1ecdfc58..027302682 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTrialTimeExpired.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventTrialTimeExpired.cs @@ -1,43 +1,43 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "trial_time_expired" /// -public interface EventTrialTimeExpired : IGameEvent { - - static EventTrialTimeExpired IGameEvent.Create(nint address) => new EventTrialTimeExpiredImpl(address); - - static string IGameEvent.GetName() => "trial_time_expired"; - - static uint IGameEvent.GetHash() => 0xA80BA2FFu; - /// - /// player whose time has expired - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player whose time has expired - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player whose time has expired - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player whose time has expired - ///
- /// type: player_controller - ///
- int UserId { get; set; } +public interface EventTrialTimeExpired : IGameEvent +{ + + static EventTrialTimeExpired IGameEvent.Create( nint address ) => new EventTrialTimeExpiredImpl(address); + + static string IGameEvent.GetName() => "trial_time_expired"; + + static uint IGameEvent.GetHash() => 0xA80BA2FFu; + /// + /// player whose time has expired + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player whose time has expired + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player whose time has expired + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player whose time has expired + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcFileDownloadFinished.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcFileDownloadFinished.cs index 7baf5ec65..b463bea5e 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcFileDownloadFinished.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcFileDownloadFinished.cs @@ -1,25 +1,24 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "ugc_file_download_finished" /// -public interface EventUgcFileDownloadFinished : IGameEvent { +public interface EventUgcFileDownloadFinished : IGameEvent +{ - static EventUgcFileDownloadFinished IGameEvent.Create(nint address) => new EventUgcFileDownloadFinishedImpl(address); + static EventUgcFileDownloadFinished IGameEvent.Create( nint address ) => new EventUgcFileDownloadFinishedImpl(address); - static string IGameEvent.GetName() => "ugc_file_download_finished"; + static string IGameEvent.GetName() => "ugc_file_download_finished"; - static uint IGameEvent.GetHash() => 0x2800BC41u; - /// - /// id of this specific content (may be image or map) - ///
- /// type: uint64 - ///
- ulong HContent { get; set; } + static uint IGameEvent.GetHash() => 0x2800BC41u; + /// + /// id of this specific content (may be image or map) + ///
+ /// type: uint64 + ///
+ public ulong HContent { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcFileDownloadStart.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcFileDownloadStart.cs index c93e67b6a..d42407193 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcFileDownloadStart.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcFileDownloadStart.cs @@ -1,32 +1,31 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "ugc_file_download_start" /// -public interface EventUgcFileDownloadStart : IGameEvent { +public interface EventUgcFileDownloadStart : IGameEvent +{ - static EventUgcFileDownloadStart IGameEvent.Create(nint address) => new EventUgcFileDownloadStartImpl(address); + static EventUgcFileDownloadStart IGameEvent.Create( nint address ) => new EventUgcFileDownloadStartImpl(address); - static string IGameEvent.GetName() => "ugc_file_download_start"; + static string IGameEvent.GetName() => "ugc_file_download_start"; - static uint IGameEvent.GetHash() => 0x2E2A0CEDu; - /// - /// id of this specific content (may be image or map) - ///
- /// type: uint64 - ///
- ulong HContent { get; set; } + static uint IGameEvent.GetHash() => 0x2E2A0CEDu; + /// + /// id of this specific content (may be image or map) + ///
+ /// type: uint64 + ///
+ public ulong HContent { get; set; } - /// - /// id of the associated content package - ///
- /// type: uint64 - ///
- ulong PublishedFileId { get; set; } + /// + /// id of the associated content package + ///
+ /// type: uint64 + ///
+ public ulong PublishedFileId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcMapDownloadError.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcMapDownloadError.cs index e80771014..3835dde81 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcMapDownloadError.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcMapDownloadError.cs @@ -1,28 +1,27 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "ugc_map_download_error" /// -public interface EventUgcMapDownloadError : IGameEvent { +public interface EventUgcMapDownloadError : IGameEvent +{ - static EventUgcMapDownloadError IGameEvent.Create(nint address) => new EventUgcMapDownloadErrorImpl(address); + static EventUgcMapDownloadError IGameEvent.Create( nint address ) => new EventUgcMapDownloadErrorImpl(address); - static string IGameEvent.GetName() => "ugc_map_download_error"; + static string IGameEvent.GetName() => "ugc_map_download_error"; - static uint IGameEvent.GetHash() => 0xAAE6E991u; - /// - /// type: uint64 - /// - ulong PublishedFileId { get; set; } + static uint IGameEvent.GetHash() => 0xAAE6E991u; + /// + /// type: uint64 + /// + public ulong PublishedFileId { get; set; } - /// - /// type: long - /// - int ErrorCode { get; set; } + /// + /// type: long + /// + public int ErrorCode { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcMapInfoReceived.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcMapInfoReceived.cs index 416a7ff5c..2fa4db7bf 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcMapInfoReceived.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcMapInfoReceived.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "ugc_map_info_received" /// -public interface EventUgcMapInfoReceived : IGameEvent { +public interface EventUgcMapInfoReceived : IGameEvent +{ - static EventUgcMapInfoReceived IGameEvent.Create(nint address) => new EventUgcMapInfoReceivedImpl(address); + static EventUgcMapInfoReceived IGameEvent.Create( nint address ) => new EventUgcMapInfoReceivedImpl(address); - static string IGameEvent.GetName() => "ugc_map_info_received"; + static string IGameEvent.GetName() => "ugc_map_info_received"; - static uint IGameEvent.GetHash() => 0x723494B6u; - /// - /// type: uint64 - /// - ulong PublishedFileId { get; set; } + static uint IGameEvent.GetHash() => 0x723494B6u; + /// + /// type: uint64 + /// + public ulong PublishedFileId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcMapUnsubscribed.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcMapUnsubscribed.cs index c9f28e15c..10ee60cc0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcMapUnsubscribed.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUgcMapUnsubscribed.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "ugc_map_unsubscribed" /// -public interface EventUgcMapUnsubscribed : IGameEvent { +public interface EventUgcMapUnsubscribed : IGameEvent +{ - static EventUgcMapUnsubscribed IGameEvent.Create(nint address) => new EventUgcMapUnsubscribedImpl(address); + static EventUgcMapUnsubscribed IGameEvent.Create( nint address ) => new EventUgcMapUnsubscribedImpl(address); - static string IGameEvent.GetName() => "ugc_map_unsubscribed"; + static string IGameEvent.GetName() => "ugc_map_unsubscribed"; - static uint IGameEvent.GetHash() => 0x275C0753u; - /// - /// type: uint64 - /// - ulong PublishedFileId { get; set; } + static uint IGameEvent.GetHash() => 0x275C0753u; + /// + /// type: uint64 + /// + public ulong PublishedFileId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUpdateMatchmakingStats.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUpdateMatchmakingStats.cs index 43ace08c6..feebda490 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUpdateMatchmakingStats.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUpdateMatchmakingStats.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "update_matchmaking_stats" /// -public interface EventUpdateMatchmakingStats : IGameEvent { +public interface EventUpdateMatchmakingStats : IGameEvent +{ - static EventUpdateMatchmakingStats IGameEvent.Create(nint address) => new EventUpdateMatchmakingStatsImpl(address); + static EventUpdateMatchmakingStats IGameEvent.Create( nint address ) => new EventUpdateMatchmakingStatsImpl(address); - static string IGameEvent.GetName() => "update_matchmaking_stats"; + static string IGameEvent.GetName() => "update_matchmaking_stats"; - static uint IGameEvent.GetHash() => 0xFB94AEE7u; + static uint IGameEvent.GetHash() => 0xFB94AEE7u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUserDataDownloaded.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUserDataDownloaded.cs index e9190d07a..4d0740333 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUserDataDownloaded.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventUserDataDownloaded.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,11 +7,12 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "user_data_downloaded" /// fired when achievements/stats are downloaded from Steam or XBox Live /// -public interface EventUserDataDownloaded : IGameEvent { +public interface EventUserDataDownloaded : IGameEvent +{ - static EventUserDataDownloaded IGameEvent.Create(nint address) => new EventUserDataDownloadedImpl(address); + static EventUserDataDownloaded IGameEvent.Create( nint address ) => new EventUserDataDownloadedImpl(address); - static string IGameEvent.GetName() => "user_data_downloaded"; + static string IGameEvent.GetName() => "user_data_downloaded"; - static uint IGameEvent.GetHash() => 0xA7AE5F51u; + static uint IGameEvent.GetHash() => 0xA7AE5F51u; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVipEscaped.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVipEscaped.cs index 2451f5411..44b05cceb 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVipEscaped.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVipEscaped.cs @@ -1,43 +1,43 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "vip_escaped" /// -public interface EventVipEscaped : IGameEvent { - - static EventVipEscaped IGameEvent.Create(nint address) => new EventVipEscapedImpl(address); - - static string IGameEvent.GetName() => "vip_escaped"; - - static uint IGameEvent.GetHash() => 0x30143B6Eu; - /// - /// player who was the VIP - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who was the VIP - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who was the VIP - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who was the VIP - ///
- /// type: player_controller - ///
- int UserId { get; set; } +public interface EventVipEscaped : IGameEvent +{ + + static EventVipEscaped IGameEvent.Create( nint address ) => new EventVipEscapedImpl(address); + + static string IGameEvent.GetName() => "vip_escaped"; + + static uint IGameEvent.GetHash() => 0x30143B6Eu; + /// + /// player who was the VIP + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who was the VIP + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who was the VIP + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who was the VIP + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVipKilled.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVipKilled.cs index ba1007f57..25a3c37b6 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVipKilled.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVipKilled.cs @@ -1,50 +1,50 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "vip_killed" /// -public interface EventVipKilled : IGameEvent { - - static EventVipKilled IGameEvent.Create(nint address) => new EventVipKilledImpl(address); - - static string IGameEvent.GetName() => "vip_killed"; - - static uint IGameEvent.GetHash() => 0x21FB59C8u; - /// - /// player who was the VIP - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who was the VIP - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who was the VIP - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who was the VIP - ///
- /// type: player_controller - ///
- int UserId { get; set; } - - /// - /// user ID who killed the VIP - ///
- /// type: player_controller - ///
- int Attacker { get; set; } +public interface EventVipKilled : IGameEvent +{ + + static EventVipKilled IGameEvent.Create( nint address ) => new EventVipKilledImpl(address); + + static string IGameEvent.GetName() => "vip_killed"; + + static uint IGameEvent.GetHash() => 0x21FB59C8u; + /// + /// player who was the VIP + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who was the VIP + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who was the VIP + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who was the VIP + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } + + /// + /// user ID who killed the VIP + ///
+ /// type: player_controller + ///
+ public int Attacker { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteCast.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteCast.cs index 14d33a34e..96d994694 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteCast.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteCast.cs @@ -1,55 +1,55 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "vote_cast" /// -public interface EventVoteCast : IGameEvent { - - static EventVoteCast IGameEvent.Create(nint address) => new EventVoteCastImpl(address); - - static string IGameEvent.GetName() => "vote_cast"; - - static uint IGameEvent.GetHash() => 0xFDAD5FE5u; - /// - /// which option the player voted on - ///
- /// type: byte - ///
- byte VoteOption { get; set; } - - /// - /// type: short - /// - short Team { get; set; } - - /// - /// player who voted - ///
- /// type: player_controller - ///
- CCSPlayerController UserIdController { get; } - - /// - /// player who voted - ///
- /// type: player_controller - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // player who voted - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// player who voted - ///
- /// type: player_controller - ///
- int UserId { get; set; } +public interface EventVoteCast : IGameEvent +{ + + static EventVoteCast IGameEvent.Create( nint address ) => new EventVoteCastImpl(address); + + static string IGameEvent.GetName() => "vote_cast"; + + static uint IGameEvent.GetHash() => 0xFDAD5FE5u; + /// + /// which option the player voted on + ///
+ /// type: byte + ///
+ public byte VoteOption { get; set; } + + /// + /// type: short + /// + public short Team { get; set; } + + /// + /// player who voted + ///
+ /// type: player_controller + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// player who voted + ///
+ /// type: player_controller + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // player who voted + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// player who voted + ///
+ /// type: player_controller + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteCastNo.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteCastNo.cs index df53dfa80..e2c7528e2 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteCastNo.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteCastNo.cs @@ -1,30 +1,29 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "vote_cast_no" /// -public interface EventVoteCastNo : IGameEvent { +public interface EventVoteCastNo : IGameEvent +{ - static EventVoteCastNo IGameEvent.Create(nint address) => new EventVoteCastNoImpl(address); + static EventVoteCastNo IGameEvent.Create( nint address ) => new EventVoteCastNoImpl(address); - static string IGameEvent.GetName() => "vote_cast_no"; + static string IGameEvent.GetName() => "vote_cast_no"; - static uint IGameEvent.GetHash() => 0x73639B1Du; - /// - /// type: byte - /// - byte Team { get; set; } + static uint IGameEvent.GetHash() => 0x73639B1Du; + /// + /// type: byte + /// + public byte Team { get; set; } - /// - /// entity id of the voter - ///
- /// type: long - ///
- int EntityID { get; set; } + /// + /// entity id of the voter + ///
+ /// type: long + ///
+ public int EntityID { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteCastYes.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteCastYes.cs index 06c321f67..6cef9c661 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteCastYes.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteCastYes.cs @@ -1,30 +1,29 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "vote_cast_yes" /// -public interface EventVoteCastYes : IGameEvent { +public interface EventVoteCastYes : IGameEvent +{ - static EventVoteCastYes IGameEvent.Create(nint address) => new EventVoteCastYesImpl(address); + static EventVoteCastYes IGameEvent.Create( nint address ) => new EventVoteCastYesImpl(address); - static string IGameEvent.GetName() => "vote_cast_yes"; + static string IGameEvent.GetName() => "vote_cast_yes"; - static uint IGameEvent.GetHash() => 0xC6314219u; - /// - /// type: byte - /// - byte Team { get; set; } + static uint IGameEvent.GetHash() => 0xC6314219u; + /// + /// type: byte + /// + public byte Team { get; set; } - /// - /// entity id of the voter - ///
- /// type: long - ///
- int EntityID { get; set; } + /// + /// entity id of the voter + ///
+ /// type: long + ///
+ public int EntityID { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteChanged.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteChanged.cs index a9ecfa551..2a76e33f6 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteChanged.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteChanged.cs @@ -1,58 +1,57 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "vote_changed" /// -public interface EventVoteChanged : IGameEvent { - - static EventVoteChanged IGameEvent.Create(nint address) => new EventVoteChangedImpl(address); - - static string IGameEvent.GetName() => "vote_changed"; - - static uint IGameEvent.GetHash() => 0xA69CF8EAu; - /// - /// type: byte - /// - byte YesVotes { get; set; } - - /// - /// type: byte - /// - byte NoVotes { get; set; } - - /// - /// type: byte - /// - byte PotentialVotes { get; set; } - - /// - /// type: byte - /// - byte VoteOption1 { get; set; } - - /// - /// type: byte - /// - byte VoteOption2 { get; set; } - - /// - /// type: byte - /// - byte VoteOption3 { get; set; } - - /// - /// type: byte - /// - byte VoteOption4 { get; set; } - - /// - /// type: byte - /// - byte VoteOption5 { get; set; } +public interface EventVoteChanged : IGameEvent +{ + + static EventVoteChanged IGameEvent.Create( nint address ) => new EventVoteChangedImpl(address); + + static string IGameEvent.GetName() => "vote_changed"; + + static uint IGameEvent.GetHash() => 0xA69CF8EAu; + /// + /// type: byte + /// + public byte YesVotes { get; set; } + + /// + /// type: byte + /// + public byte NoVotes { get; set; } + + /// + /// type: byte + /// + public byte PotentialVotes { get; set; } + + /// + /// type: byte + /// + public byte VoteOption1 { get; set; } + + /// + /// type: byte + /// + public byte VoteOption2 { get; set; } + + /// + /// type: byte + /// + public byte VoteOption3 { get; set; } + + /// + /// type: byte + /// + public byte VoteOption4 { get; set; } + + /// + /// type: byte + /// + public byte VoteOption5 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteEnded.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteEnded.cs index 13f8f51dd..9da02d843 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteEnded.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteEnded.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "vote_ended" /// -public interface EventVoteEnded : IGameEvent { +public interface EventVoteEnded : IGameEvent +{ - static EventVoteEnded IGameEvent.Create(nint address) => new EventVoteEndedImpl(address); + static EventVoteEnded IGameEvent.Create( nint address ) => new EventVoteEndedImpl(address); - static string IGameEvent.GetName() => "vote_ended"; + static string IGameEvent.GetName() => "vote_ended"; - static uint IGameEvent.GetHash() => 0xBE602B9Au; + static uint IGameEvent.GetHash() => 0xBE602B9Au; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteFailed.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteFailed.cs index ccb084d8c..14d351053 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteFailed.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteFailed.cs @@ -1,23 +1,22 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "vote_failed" /// -public interface EventVoteFailed : IGameEvent { +public interface EventVoteFailed : IGameEvent +{ - static EventVoteFailed IGameEvent.Create(nint address) => new EventVoteFailedImpl(address); + static EventVoteFailed IGameEvent.Create( nint address ) => new EventVoteFailedImpl(address); - static string IGameEvent.GetName() => "vote_failed"; + static string IGameEvent.GetName() => "vote_failed"; - static uint IGameEvent.GetHash() => 0xCD2BE01Fu; - /// - /// type: byte - /// - byte Team { get; set; } + static uint IGameEvent.GetHash() => 0xCD2BE01Fu; + /// + /// type: byte + /// + public byte Team { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteOptions.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteOptions.cs index c08e5902d..6ebb5b9ee 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteOptions.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteOptions.cs @@ -1,50 +1,49 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "vote_options" /// -public interface EventVoteOptions : IGameEvent { - - static EventVoteOptions IGameEvent.Create(nint address) => new EventVoteOptionsImpl(address); - - static string IGameEvent.GetName() => "vote_options"; - - static uint IGameEvent.GetHash() => 0x73B095B0u; - /// - /// Number of options - up to MAX_VOTE_OPTIONS - ///
- /// type: byte - ///
- byte Count { get; set; } - - /// - /// type: string - /// - string Option1 { get; set; } - - /// - /// type: string - /// - string Option2 { get; set; } - - /// - /// type: string - /// - string Option3 { get; set; } - - /// - /// type: string - /// - string Option4 { get; set; } - - /// - /// type: string - /// - string Option5 { get; set; } +public interface EventVoteOptions : IGameEvent +{ + + static EventVoteOptions IGameEvent.Create( nint address ) => new EventVoteOptionsImpl(address); + + static string IGameEvent.GetName() => "vote_options"; + + static uint IGameEvent.GetHash() => 0x73B095B0u; + /// + /// Number of options - up to MAX_VOTE_OPTIONS + ///
+ /// type: byte + ///
+ public byte Count { get; set; } + + /// + /// type: string + /// + public string Option1 { get; set; } + + /// + /// type: string + /// + public string Option2 { get; set; } + + /// + /// type: string + /// + public string Option3 { get; set; } + + /// + /// type: string + /// + public string Option4 { get; set; } + + /// + /// type: string + /// + public string Option5 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVotePassed.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVotePassed.cs index 8c238c096..ddd5b6858 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVotePassed.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVotePassed.cs @@ -1,33 +1,32 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "vote_passed" /// -public interface EventVotePassed : IGameEvent { +public interface EventVotePassed : IGameEvent +{ - static EventVotePassed IGameEvent.Create(nint address) => new EventVotePassedImpl(address); + static EventVotePassed IGameEvent.Create( nint address ) => new EventVotePassedImpl(address); - static string IGameEvent.GetName() => "vote_passed"; + static string IGameEvent.GetName() => "vote_passed"; - static uint IGameEvent.GetHash() => 0x9B90008Eu; - /// - /// type: string - /// - string Details { get; set; } + static uint IGameEvent.GetHash() => 0x9B90008Eu; + /// + /// type: string + /// + public string Details { get; set; } - /// - /// type: string - /// - string Param1 { get; set; } + /// + /// type: string + /// + public string Param1 { get; set; } - /// - /// type: byte - /// - byte Team { get; set; } + /// + /// type: byte + /// + public byte Team { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteStarted.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteStarted.cs index c00b55306..6f39fb409 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteStarted.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventVoteStarted.cs @@ -1,45 +1,44 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "vote_started" /// -public interface EventVoteStarted : IGameEvent { - - static EventVoteStarted IGameEvent.Create(nint address) => new EventVoteStartedImpl(address); - - static string IGameEvent.GetName() => "vote_started"; - - static uint IGameEvent.GetHash() => 0xE0DFF70Fu; - /// - /// type: string - /// - string Issue { get; set; } - - /// - /// type: string - /// - string Param1 { get; set; } - - /// - /// type: string - /// - string VoteData { get; set; } - - /// - /// type: byte - /// - byte Team { get; set; } - - /// - /// entity id of the player who initiated the vote - ///
- /// type: long - ///
- int Initiator { get; set; } +public interface EventVoteStarted : IGameEvent +{ + + static EventVoteStarted IGameEvent.Create( nint address ) => new EventVoteStartedImpl(address); + + static string IGameEvent.GetName() => "vote_started"; + + static uint IGameEvent.GetHash() => 0xE0DFF70Fu; + /// + /// type: string + /// + public string Issue { get; set; } + + /// + /// type: string + /// + public string Param1 { get; set; } + + /// + /// type: string + /// + public string VoteData { get; set; } + + /// + /// type: byte + /// + public byte Team { get; set; } + + /// + /// entity id of the player who initiated the vote + ///
+ /// type: long + ///
+ public int Initiator { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWarmupEnd.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWarmupEnd.cs index ade4cfb96..13b6f3a61 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWarmupEnd.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWarmupEnd.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "warmup_end" /// -public interface EventWarmupEnd : IGameEvent { +public interface EventWarmupEnd : IGameEvent +{ - static EventWarmupEnd IGameEvent.Create(nint address) => new EventWarmupEndImpl(address); + static EventWarmupEnd IGameEvent.Create( nint address ) => new EventWarmupEndImpl(address); - static string IGameEvent.GetName() => "warmup_end"; + static string IGameEvent.GetName() => "warmup_end"; - static uint IGameEvent.GetHash() => 0xD874EAEBu; + static uint IGameEvent.GetHash() => 0xD874EAEBu; } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponFire.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponFire.cs index b892f0da8..60bac5990 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponFire.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponFire.cs @@ -1,53 +1,53 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "weapon_fire" /// -public interface EventWeaponFire : IGameEvent { - - static EventWeaponFire IGameEvent.Create(nint address) => new EventWeaponFireImpl(address); - - static string IGameEvent.GetName() => "weapon_fire"; - - static uint IGameEvent.GetHash() => 0x78A2D0FEu; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// weapon name used - ///
- /// type: string - ///
- string Weapon { get; set; } - - /// - /// is weapon silenced - ///
- /// type: bool - ///
- bool Silenced { get; set; } +public interface EventWeaponFire : IGameEvent +{ + + static EventWeaponFire IGameEvent.Create( nint address ) => new EventWeaponFireImpl(address); + + static string IGameEvent.GetName() => "weapon_fire"; + + static uint IGameEvent.GetHash() => 0x78A2D0FEu; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// weapon name used + ///
+ /// type: string + ///
+ public string Weapon { get; set; } + + /// + /// is weapon silenced + ///
+ /// type: bool + ///
+ public bool Silenced { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponFireOnEmpty.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponFireOnEmpty.cs index b579f4d8b..acb19815b 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponFireOnEmpty.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponFireOnEmpty.cs @@ -1,46 +1,46 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "weapon_fire_on_empty" /// -public interface EventWeaponFireOnEmpty : IGameEvent { - - static EventWeaponFireOnEmpty IGameEvent.Create(nint address) => new EventWeaponFireOnEmptyImpl(address); - - static string IGameEvent.GetName() => "weapon_fire_on_empty"; - - static uint IGameEvent.GetHash() => 0xB2954170u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// weapon name used - ///
- /// type: string - ///
- string Weapon { get; set; } +public interface EventWeaponFireOnEmpty : IGameEvent +{ + + static EventWeaponFireOnEmpty IGameEvent.Create( nint address ) => new EventWeaponFireOnEmptyImpl(address); + + static string IGameEvent.GetName() => "weapon_fire_on_empty"; + + static uint IGameEvent.GetHash() => 0xB2954170u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// weapon name used + ///
+ /// type: string + ///
+ public string Weapon { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponReload.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponReload.cs index af61d2330..81545becb 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponReload.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponReload.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "weapon_reload" /// -public interface EventWeaponReload : IGameEvent { +public interface EventWeaponReload : IGameEvent +{ - static EventWeaponReload IGameEvent.Create(nint address) => new EventWeaponReloadImpl(address); + static EventWeaponReload IGameEvent.Create( nint address ) => new EventWeaponReloadImpl(address); - static string IGameEvent.GetName() => "weapon_reload"; + static string IGameEvent.GetName() => "weapon_reload"; - static uint IGameEvent.GetHash() => 0x387E603Fu; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0x387E603Fu; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponZoom.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponZoom.cs index 042e4646d..ef3fb5f94 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponZoom.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponZoom.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "weapon_zoom" /// -public interface EventWeaponZoom : IGameEvent { +public interface EventWeaponZoom : IGameEvent +{ - static EventWeaponZoom IGameEvent.Create(nint address) => new EventWeaponZoomImpl(address); + static EventWeaponZoom IGameEvent.Create( nint address ) => new EventWeaponZoomImpl(address); - static string IGameEvent.GetName() => "weapon_zoom"; + static string IGameEvent.GetName() => "weapon_zoom"; - static uint IGameEvent.GetHash() => 0xBF1A06E1u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0xBF1A06E1u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponZoomRifle.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponZoomRifle.cs index 2ce6408ad..d69785749 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponZoomRifle.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponZoomRifle.cs @@ -1,39 +1,39 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "weapon_zoom_rifle" /// -public interface EventWeaponZoomRifle : IGameEvent { +public interface EventWeaponZoomRifle : IGameEvent +{ - static EventWeaponZoomRifle IGameEvent.Create(nint address) => new EventWeaponZoomRifleImpl(address); + static EventWeaponZoomRifle IGameEvent.Create( nint address ) => new EventWeaponZoomRifleImpl(address); - static string IGameEvent.GetName() => "weapon_zoom_rifle"; + static string IGameEvent.GetName() => "weapon_zoom_rifle"; - static uint IGameEvent.GetHash() => 0x4B7652E4u; - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } + static uint IGameEvent.GetHash() => 0x4B7652E4u; + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } - /// - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponhudSelection.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponhudSelection.cs index 4bf876bfa..0914d6e9f 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponhudSelection.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWeaponhudSelection.cs @@ -1,57 +1,57 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; +using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "weaponhud_selection" /// -public interface EventWeaponhudSelection : IGameEvent { - - static EventWeaponhudSelection IGameEvent.Create(nint address) => new EventWeaponhudSelectionImpl(address); - - static string IGameEvent.GetName() => "weaponhud_selection"; - - static uint IGameEvent.GetHash() => 0xCA4A1D6Bu; - /// - /// Player who this event applies to - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerController UserIdController { get; } - - /// - /// Player who this event applies to - ///
- /// type: player_controller_and_pawn - ///
- CCSPlayerPawn UserIdPawn { get; } - - - // Player who this event applies to - public IPlayer UserIdPlayer - { get => Accessor.GetPlayer("userid"); } - /// - /// Player who this event applies to - ///
- /// type: player_controller_and_pawn - ///
- int UserId { get; set; } - - /// - /// EWeaponHudSelectionMode (switch / pickup / drop) - ///
- /// type: byte - ///
- byte Mode { get; set; } - - /// - /// Weapon entity index - ///
- /// type: long - ///
- int EntIndex { get; set; } +public interface EventWeaponhudSelection : IGameEvent +{ + + static EventWeaponhudSelection IGameEvent.Create( nint address ) => new EventWeaponhudSelectionImpl(address); + + static string IGameEvent.GetName() => "weaponhud_selection"; + + static uint IGameEvent.GetHash() => 0xCA4A1D6Bu; + /// + /// Player who this event applies to + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerController UserIdController { get; } + + /// + /// Player who this event applies to + ///
+ /// type: player_controller_and_pawn + ///
+ public CCSPlayerPawn UserIdPawn { get; } + + + // Player who this event applies to + public IPlayer UserIdPlayer { get => Accessor.GetPlayer("userid"); } + /// + /// Player who this event applies to + ///
+ /// type: player_controller_and_pawn + ///
+ public int UserId { get; set; } + + /// + /// EWeaponHudSelectionMode (switch / pickup / drop) + ///
+ /// type: byte + ///
+ public byte Mode { get; set; } + + /// + /// Weapon entity index + ///
+ /// type: long + ///
+ public int EntIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWriteGameTitledata.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWriteGameTitledata.cs index 06d387148..787656921 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWriteGameTitledata.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWriteGameTitledata.cs @@ -1,7 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; @@ -9,18 +7,19 @@ namespace SwiftlyS2.Shared.GameEventDefinitions; /// Event "write_game_titledata" /// write user titledata in profile /// -public interface EventWriteGameTitledata : IGameEvent { +public interface EventWriteGameTitledata : IGameEvent +{ - static EventWriteGameTitledata IGameEvent.Create(nint address) => new EventWriteGameTitledataImpl(address); + static EventWriteGameTitledata IGameEvent.Create( nint address ) => new EventWriteGameTitledataImpl(address); - static string IGameEvent.GetName() => "write_game_titledata"; + static string IGameEvent.GetName() => "write_game_titledata"; - static uint IGameEvent.GetHash() => 0x6ECEB462u; - /// - /// Controller id of user - ///
- /// type: short - ///
- short ControllerId { get; set; } + static uint IGameEvent.GetHash() => 0x6ECEB462u; + /// + /// Controller id of user + ///
+ /// type: short + ///
+ public short ControllerId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWriteProfileData.cs b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWriteProfileData.cs index ba6d438ac..419accda0 100644 --- a/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWriteProfileData.cs +++ b/managed/src/SwiftlyS2.Generated/GameEvents/Interfaces/EventWriteProfileData.cs @@ -1,18 +1,17 @@ -using SwiftlyS2.Shared.SchemaDefinitions; -using SwiftlyS2.Shared.GameEvents; using SwiftlyS2.Core.GameEventDefinitions; -using SwiftlyS2.Shared.Players; +using SwiftlyS2.Shared.GameEvents; namespace SwiftlyS2.Shared.GameEventDefinitions; /// /// Event "write_profile_data" /// -public interface EventWriteProfileData : IGameEvent { +public interface EventWriteProfileData : IGameEvent +{ - static EventWriteProfileData IGameEvent.Create(nint address) => new EventWriteProfileDataImpl(address); + static EventWriteProfileData IGameEvent.Create( nint address ) => new EventWriteProfileDataImpl(address); - static string IGameEvent.GetName() => "write_profile_data"; + static string IGameEvent.GetName() => "write_profile_data"; - static uint IGameEvent.GetHash() => 0x56158E97u; + static uint IGameEvent.GetHash() => 0x56158E97u; } diff --git a/managed/src/SwiftlyS2.Generated/Natives/Allocator.cs b/managed/src/SwiftlyS2.Generated/Natives/Allocator.cs index edd404955..509d1d0c3 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Allocator.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Allocator.cs @@ -1,67 +1,75 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeAllocator { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _Alloc; + private static readonly unsafe delegate* unmanaged< ulong, nint > _Alloc; - public unsafe static nint Alloc(ulong size) + public unsafe static nint Alloc( ulong size ) { var ret = _Alloc(size); return ret; } - private unsafe static delegate* unmanaged _TrackedAlloc; + private static readonly unsafe delegate* unmanaged< ulong, byte*, byte*, nint > _TrackedAlloc; - public unsafe static nint TrackedAlloc(ulong size, string identifier, string details) + public unsafe static nint TrackedAlloc( ulong size, string identifier, string details ) { - byte[] identifierBuffer = Encoding.UTF8.GetBytes(identifier + "\0"); - byte[] detailsBuffer = Encoding.UTF8.GetBytes(details + "\0"); + var pool = ArrayPool.Shared; + var identifierLength = Encoding.UTF8.GetByteCount(identifier); + var identifierBuffer = pool.Rent(identifierLength + 1); + _ = Encoding.UTF8.GetBytes(identifier, identifierBuffer); + identifierBuffer[identifierLength] = 0; + var detailsLength = Encoding.UTF8.GetByteCount(details); + var detailsBuffer = pool.Rent(detailsLength + 1); + _ = Encoding.UTF8.GetBytes(details, detailsBuffer); + detailsBuffer[detailsLength] = 0; fixed (byte* identifierBufferPtr = identifierBuffer) { fixed (byte* detailsBufferPtr = detailsBuffer) { var ret = _TrackedAlloc(size, identifierBufferPtr, detailsBufferPtr); + pool.Return(identifierBuffer); + pool.Return(detailsBuffer); return ret; } } } - private unsafe static delegate* unmanaged _Free; + private static readonly unsafe delegate* unmanaged< nint, void > _Free; - public unsafe static void Free(nint pointer) + public unsafe static void Free( nint pointer ) { _Free(pointer); } - private unsafe static delegate* unmanaged _Resize; + private static readonly unsafe delegate* unmanaged< nint, ulong, nint > _Resize; - public unsafe static nint Resize(nint pointer, ulong new_size) + public unsafe static nint Resize( nint pointer, ulong new_size ) { var ret = _Resize(pointer, new_size); return ret; } - private unsafe static delegate* unmanaged _GetSize; + private static readonly unsafe delegate* unmanaged< nint, ulong > _GetSize; /// /// works only for pointers allocated through Memory.Allocator /// - public unsafe static ulong GetSize(nint pointer) + public unsafe static ulong GetSize( nint pointer ) { var ret = _GetSize(pointer); return ret; } - private unsafe static delegate* unmanaged _GetTotalAllocated; + private static readonly unsafe delegate* unmanaged< ulong > _GetTotalAllocated; public unsafe static ulong GetTotalAllocated() { @@ -69,36 +77,41 @@ public unsafe static ulong GetTotalAllocated() return ret; } - private unsafe static delegate* unmanaged _GetAllocatedByTrackedIdentifier; + private static readonly unsafe delegate* unmanaged< byte*, ulong > _GetAllocatedByTrackedIdentifier; - public unsafe static ulong GetAllocatedByTrackedIdentifier(string identifier) + public unsafe static ulong GetAllocatedByTrackedIdentifier( string identifier ) { - byte[] identifierBuffer = Encoding.UTF8.GetBytes(identifier + "\0"); + var pool = ArrayPool.Shared; + var identifierLength = Encoding.UTF8.GetByteCount(identifier); + var identifierBuffer = pool.Rent(identifierLength + 1); + _ = Encoding.UTF8.GetBytes(identifier, identifierBuffer); + identifierBuffer[identifierLength] = 0; fixed (byte* identifierBufferPtr = identifierBuffer) { var ret = _GetAllocatedByTrackedIdentifier(identifierBufferPtr); + pool.Return(identifierBuffer); return ret; } } - private unsafe static delegate* unmanaged _IsPointerValid; + private static readonly unsafe delegate* unmanaged< nint, byte > _IsPointerValid; - public unsafe static bool IsPointerValid(nint pointer) + public unsafe static bool IsPointerValid( nint pointer ) { var ret = _IsPointerValid(pointer); return ret == 1; } - private unsafe static delegate* unmanaged _Copy; + private static readonly unsafe delegate* unmanaged< nint, nint, ulong, void > _Copy; - public unsafe static void Copy(nint dst, nint src, ulong size) + public unsafe static void Copy( nint dst, nint src, ulong size ) { _Copy(dst, src, size); } - private unsafe static delegate* unmanaged _Move; + private static readonly unsafe delegate* unmanaged< nint, nint, ulong, void > _Move; - public unsafe static void Move(nint dst, nint src, ulong size) + public unsafe static void Move( nint dst, nint src, ulong size ) { _Move(dst, src, size); } diff --git a/managed/src/SwiftlyS2.Generated/Natives/Benchmark.cs b/managed/src/SwiftlyS2.Generated/Natives/Benchmark.cs index 0aba93ee6..2665e544f 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Benchmark.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Benchmark.cs @@ -1,24 +1,24 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; -public static class NativeBenchmark +internal static class NativeBenchmark { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _VoidToVoid; + private static readonly unsafe delegate* unmanaged< void > _VoidToVoid; public unsafe static void VoidToVoid() { _VoidToVoid(); } - private unsafe static delegate* unmanaged _GetBool; + private static readonly unsafe delegate* unmanaged< byte > _GetBool; public unsafe static bool GetBool() { @@ -26,7 +26,7 @@ public unsafe static bool GetBool() return ret == 1; } - private unsafe static delegate* unmanaged _GetInt32; + private static readonly unsafe delegate* unmanaged< int > _GetInt32; public unsafe static int GetInt32() { @@ -34,7 +34,7 @@ public unsafe static int GetInt32() return ret; } - private unsafe static delegate* unmanaged _GetUInt32; + private static readonly unsafe delegate* unmanaged< uint > _GetUInt32; public unsafe static uint GetUInt32() { @@ -42,7 +42,7 @@ public unsafe static uint GetUInt32() return ret; } - private unsafe static delegate* unmanaged _GetInt64; + private static readonly unsafe delegate* unmanaged< long > _GetInt64; public unsafe static long GetInt64() { @@ -50,7 +50,7 @@ public unsafe static long GetInt64() return ret; } - private unsafe static delegate* unmanaged _GetUInt64; + private static readonly unsafe delegate* unmanaged< ulong > _GetUInt64; public unsafe static ulong GetUInt64() { @@ -58,7 +58,7 @@ public unsafe static ulong GetUInt64() return ret; } - private unsafe static delegate* unmanaged _GetFloat; + private static readonly unsafe delegate* unmanaged< float > _GetFloat; public unsafe static float GetFloat() { @@ -66,7 +66,7 @@ public unsafe static float GetFloat() return ret; } - private unsafe static delegate* unmanaged _GetDouble; + private static readonly unsafe delegate* unmanaged< double > _GetDouble; public unsafe static double GetDouble() { @@ -74,7 +74,7 @@ public unsafe static double GetDouble() return ret; } - private unsafe static delegate* unmanaged _GetPtr; + private static readonly unsafe delegate* unmanaged< nint > _GetPtr; public unsafe static nint GetPtr() { @@ -82,156 +82,187 @@ public unsafe static nint GetPtr() return ret; } - private unsafe static delegate* unmanaged _BoolToBool; + private static readonly unsafe delegate* unmanaged< byte, byte > _BoolToBool; - public unsafe static bool BoolToBool(bool value) + public unsafe static bool BoolToBool( bool value ) { var ret = _BoolToBool(value ? (byte)1 : (byte)0); return ret == 1; } - private unsafe static delegate* unmanaged _Int32ToInt32; + private static readonly unsafe delegate* unmanaged< int, int > _Int32ToInt32; - public unsafe static int Int32ToInt32(int value) + public unsafe static int Int32ToInt32( int value ) { var ret = _Int32ToInt32(value); return ret; } - private unsafe static delegate* unmanaged _UInt32ToUInt32; + private static readonly unsafe delegate* unmanaged< uint, uint > _UInt32ToUInt32; - public unsafe static uint UInt32ToUInt32(uint value) + public unsafe static uint UInt32ToUInt32( uint value ) { var ret = _UInt32ToUInt32(value); return ret; } - private unsafe static delegate* unmanaged _Int64ToInt64; + private static readonly unsafe delegate* unmanaged< long, long > _Int64ToInt64; - public unsafe static long Int64ToInt64(long value) + public unsafe static long Int64ToInt64( long value ) { var ret = _Int64ToInt64(value); return ret; } - private unsafe static delegate* unmanaged _UInt64ToUInt64; + private static readonly unsafe delegate* unmanaged< ulong, ulong > _UInt64ToUInt64; - public unsafe static ulong UInt64ToUInt64(ulong value) + public unsafe static ulong UInt64ToUInt64( ulong value ) { var ret = _UInt64ToUInt64(value); return ret; } - private unsafe static delegate* unmanaged _FloatToFloat; + private static readonly unsafe delegate* unmanaged< float, float > _FloatToFloat; - public unsafe static float FloatToFloat(float value) + public unsafe static float FloatToFloat( float value ) { var ret = _FloatToFloat(value); return ret; } - private unsafe static delegate* unmanaged _DoubleToDouble; + private static readonly unsafe delegate* unmanaged< double, double > _DoubleToDouble; - public unsafe static double DoubleToDouble(double value) + public unsafe static double DoubleToDouble( double value ) { var ret = _DoubleToDouble(value); return ret; } - private unsafe static delegate* unmanaged _PtrToPtr; + private static readonly unsafe delegate* unmanaged< nint, nint > _PtrToPtr; - public unsafe static nint PtrToPtr(nint value) + public unsafe static nint PtrToPtr( nint value ) { var ret = _PtrToPtr(value); return ret; } - private unsafe static delegate* unmanaged _StringToString; + private static readonly unsafe delegate* unmanaged< byte*, byte*, int > _StringToString; - public unsafe static string StringToString(string value) + public unsafe static string StringToString( string value ) { - byte[] valueBuffer = Encoding.UTF8.GetBytes(value + "\0"); + var pool = ArrayPool.Shared; + var valueLength = Encoding.UTF8.GetByteCount(value); + var valueBuffer = pool.Rent(valueLength + 1); + _ = Encoding.UTF8.GetBytes(value, valueBuffer); + valueBuffer[valueLength] = 0; fixed (byte* valueBufferPtr = valueBuffer) { var ret = _StringToString(null, valueBufferPtr); - var retBuffer = new byte[ret + 1]; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _StringToString(retBufferPtr, valueBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + pool.Return(valueBuffer); + return retString; } } } - private unsafe static delegate* unmanaged _StringToPtr; + private static readonly unsafe delegate* unmanaged< byte*, nint > _StringToPtr; - public unsafe static nint StringToPtr(string value) + public unsafe static nint StringToPtr( string value ) { - byte[] valueBuffer = Encoding.UTF8.GetBytes(value + "\0"); + var pool = ArrayPool.Shared; + var valueLength = Encoding.UTF8.GetByteCount(value); + var valueBuffer = pool.Rent(valueLength + 1); + _ = Encoding.UTF8.GetBytes(value, valueBuffer); + valueBuffer[valueLength] = 0; fixed (byte* valueBufferPtr = valueBuffer) { var ret = _StringToPtr(valueBufferPtr); + pool.Return(valueBuffer); return ret; } } - private unsafe static delegate* unmanaged _MultiPrimitives; + private static readonly unsafe delegate* unmanaged< nint, int, float, byte, ulong, int > _MultiPrimitives; - public unsafe static int MultiPrimitives(nint p1, int i1, float f1, bool b1, ulong u1) + public unsafe static int MultiPrimitives( nint p1, int i1, float f1, bool b1, ulong u1 ) { var ret = _MultiPrimitives(p1, i1, f1, b1 ? (byte)1 : (byte)0, u1); return ret; } - private unsafe static delegate* unmanaged _MultiWithOneString; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, int, float, int > _MultiWithOneString; - public unsafe static int MultiWithOneString(nint p1, string s1, nint p2, int i1, float f1) + public unsafe static int MultiWithOneString( nint p1, string s1, nint p2, int i1, float f1 ) { - byte[] s1Buffer = Encoding.UTF8.GetBytes(s1 + "\0"); + var pool = ArrayPool.Shared; + var s1Length = Encoding.UTF8.GetByteCount(s1); + var s1Buffer = pool.Rent(s1Length + 1); + _ = Encoding.UTF8.GetBytes(s1, s1Buffer); + s1Buffer[s1Length] = 0; fixed (byte* s1BufferPtr = s1Buffer) { var ret = _MultiWithOneString(p1, s1BufferPtr, p2, i1, f1); + pool.Return(s1Buffer); return ret; } } - private unsafe static delegate* unmanaged _MultiWithTwoStrings; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, byte*, int, void > _MultiWithTwoStrings; - public unsafe static void MultiWithTwoStrings(nint p1, string s1, nint p2, string s2, int i1) + public unsafe static void MultiWithTwoStrings( nint p1, string s1, nint p2, string s2, int i1 ) { - byte[] s1Buffer = Encoding.UTF8.GetBytes(s1 + "\0"); - byte[] s2Buffer = Encoding.UTF8.GetBytes(s2 + "\0"); + var pool = ArrayPool.Shared; + var s1Length = Encoding.UTF8.GetByteCount(s1); + var s1Buffer = pool.Rent(s1Length + 1); + _ = Encoding.UTF8.GetBytes(s1, s1Buffer); + s1Buffer[s1Length] = 0; + var s2Length = Encoding.UTF8.GetByteCount(s2); + var s2Buffer = pool.Rent(s2Length + 1); + _ = Encoding.UTF8.GetBytes(s2, s2Buffer); + s2Buffer[s2Length] = 0; fixed (byte* s1BufferPtr = s1Buffer) { fixed (byte* s2BufferPtr = s2Buffer) { _MultiWithTwoStrings(p1, s1BufferPtr, p2, s2BufferPtr, i1); + pool.Return(s1Buffer); + pool.Return(s2Buffer); } } } - private unsafe static delegate* unmanaged _VectorToVector; + private static readonly unsafe delegate* unmanaged< nint, Vector, void > _VectorToVector; - public unsafe static void VectorToVector(nint result, Vector value) + public unsafe static void VectorToVector( nint result, Vector value ) { _VectorToVector(result, value); } - private unsafe static delegate* unmanaged _QAngleToQAngle; + private static readonly unsafe delegate* unmanaged< nint, QAngle, void > _QAngleToQAngle; - public unsafe static void QAngleToQAngle(nint result, QAngle value) + public unsafe static void QAngleToQAngle( nint result, QAngle value ) { _QAngleToQAngle(result, value); } - private unsafe static delegate* unmanaged _ComplexWithString; + private static readonly unsafe delegate* unmanaged< nint, Vector, byte*, QAngle, void > _ComplexWithString; - public unsafe static void ComplexWithString(nint entity, Vector pos, string name, QAngle angle) + public unsafe static void ComplexWithString( nint entity, Vector pos, string name, QAngle angle ) { - byte[] nameBuffer = Encoding.UTF8.GetBytes(name + "\0"); + var pool = ArrayPool.Shared; + var nameLength = Encoding.UTF8.GetByteCount(name); + var nameBuffer = pool.Rent(nameLength + 1); + _ = Encoding.UTF8.GetBytes(name, nameBuffer); + nameBuffer[nameLength] = 0; fixed (byte* nameBufferPtr = nameBuffer) { _ComplexWithString(entity, pos, nameBufferPtr, angle); + pool.Return(nameBuffer); } } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Generated/Natives/CEntityKeyValues.cs b/managed/src/SwiftlyS2.Generated/Natives/CEntityKeyValues.cs index e8dee0f70..96a9af301 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/CEntityKeyValues.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/CEntityKeyValues.cs @@ -1,17 +1,17 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeCEntityKeyValues { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _Allocate; + private static readonly unsafe delegate* unmanaged< nint > _Allocate; public unsafe static nint Allocate() { @@ -19,364 +19,520 @@ public unsafe static nint Allocate() return ret; } - private unsafe static delegate* unmanaged _Deallocate; + private static readonly unsafe delegate* unmanaged< nint, void > _Deallocate; - public unsafe static void Deallocate(nint keyvalues) + public unsafe static void Deallocate( nint keyvalues ) { _Deallocate(keyvalues); } - private unsafe static delegate* unmanaged _GetBool; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte > _GetBool; - public unsafe static bool GetBool(nint keyvalues, string key) + public unsafe static bool GetBool( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetBool(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _GetInt; + private static readonly unsafe delegate* unmanaged< nint, byte*, int > _GetInt; - public unsafe static int GetInt(nint keyvalues, string key) + public unsafe static int GetInt( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetInt(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetUint; + private static readonly unsafe delegate* unmanaged< nint, byte*, uint > _GetUint; - public unsafe static uint GetUint(nint keyvalues, string key) + public unsafe static uint GetUint( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetUint(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, long > _GetInt64; - public unsafe static long GetInt64(nint keyvalues, string key) + public unsafe static long GetInt64( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetInt64(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetUint64; + private static readonly unsafe delegate* unmanaged< nint, byte*, ulong > _GetUint64; - public unsafe static ulong GetUint64(nint keyvalues, string key) + public unsafe static ulong GetUint64( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetUint64(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetFloat; + private static readonly unsafe delegate* unmanaged< nint, byte*, float > _GetFloat; - public unsafe static float GetFloat(nint keyvalues, string key) + public unsafe static float GetFloat( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetFloat(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetDouble; + private static readonly unsafe delegate* unmanaged< nint, byte*, double > _GetDouble; - public unsafe static double GetDouble(nint keyvalues, string key) + public unsafe static double GetDouble( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetDouble(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetString; + private static readonly unsafe delegate* unmanaged< byte*, nint, byte*, int > _GetString; - public unsafe static string GetString(nint keyvalues, string key) + public unsafe static string GetString( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetString(null, keyvalues, keyBufferPtr); - var retBuffer = new byte[ret + 1]; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetString(retBufferPtr, keyvalues, keyBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + pool.Return(keyBuffer); + return retString; } } } - private unsafe static delegate* unmanaged _GetPtr; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint > _GetPtr; - public unsafe static nint GetPtr(nint keyvalues, string key) + public unsafe static nint GetPtr( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetPtr(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetStringToken; + private static readonly unsafe delegate* unmanaged< nint, byte*, CUtlStringToken > _GetStringToken; - public unsafe static CUtlStringToken GetStringToken(nint keyvalues, string key) + public unsafe static CUtlStringToken GetStringToken( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetStringToken(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetColor; + private static readonly unsafe delegate* unmanaged< nint, byte*, Color > _GetColor; - public unsafe static Color GetColor(nint keyvalues, string key) + public unsafe static Color GetColor( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetColor(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetVector; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector > _GetVector; - public unsafe static Vector GetVector(nint keyvalues, string key) + public unsafe static Vector GetVector( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetVector(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetVector2D; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector2D > _GetVector2D; - public unsafe static Vector2D GetVector2D(nint keyvalues, string key) + public unsafe static Vector2D GetVector2D( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetVector2D(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetVector4D; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector4D > _GetVector4D; - public unsafe static Vector4D GetVector4D(nint keyvalues, string key) + public unsafe static Vector4D GetVector4D( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetVector4D(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetQAngle; + private static readonly unsafe delegate* unmanaged< nint, byte*, QAngle > _GetQAngle; - public unsafe static QAngle GetQAngle(nint keyvalues, string key) + public unsafe static QAngle GetQAngle( nint keyvalues, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetQAngle(keyvalues, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetBool; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte, void > _SetBool; - public unsafe static void SetBool(nint keyvalues, string key, bool value) + public unsafe static void SetBool( nint keyvalues, string key, bool value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetBool(keyvalues, keyBufferPtr, value ? (byte)1 : (byte)0); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetInt; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, void > _SetInt; - public unsafe static void SetInt(nint keyvalues, string key, int value) + public unsafe static void SetInt( nint keyvalues, string key, int value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetInt(keyvalues, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetUint; + private static readonly unsafe delegate* unmanaged< nint, byte*, uint, void > _SetUint; - public unsafe static void SetUint(nint keyvalues, string key, uint value) + public unsafe static void SetUint( nint keyvalues, string key, uint value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetUint(keyvalues, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, long, void > _SetInt64; - public unsafe static void SetInt64(nint keyvalues, string key, long value) + public unsafe static void SetInt64( nint keyvalues, string key, long value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetInt64(keyvalues, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetUint64; + private static readonly unsafe delegate* unmanaged< nint, byte*, ulong, void > _SetUint64; - public unsafe static void SetUint64(nint keyvalues, string key, ulong value) + public unsafe static void SetUint64( nint keyvalues, string key, ulong value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetUint64(keyvalues, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetFloat; + private static readonly unsafe delegate* unmanaged< nint, byte*, float, void > _SetFloat; - public unsafe static void SetFloat(nint keyvalues, string key, float value) + public unsafe static void SetFloat( nint keyvalues, string key, float value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetFloat(keyvalues, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetDouble; + private static readonly unsafe delegate* unmanaged< nint, byte*, double, void > _SetDouble; - public unsafe static void SetDouble(nint keyvalues, string key, double value) + public unsafe static void SetDouble( nint keyvalues, string key, double value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetDouble(keyvalues, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetString; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte*, void > _SetString; - public unsafe static void SetString(nint keyvalues, string key, string value) + public unsafe static void SetString( nint keyvalues, string key, string value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); - byte[] valueBuffer = Encoding.UTF8.GetBytes(value + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; + var valueLength = Encoding.UTF8.GetByteCount(value); + var valueBuffer = pool.Rent(valueLength + 1); + _ = Encoding.UTF8.GetBytes(value, valueBuffer); + valueBuffer[valueLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { fixed (byte* valueBufferPtr = valueBuffer) { _SetString(keyvalues, keyBufferPtr, valueBufferPtr); + pool.Return(keyBuffer); + pool.Return(valueBuffer); } } } - private unsafe static delegate* unmanaged _SetPtr; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, void > _SetPtr; - public unsafe static void SetPtr(nint keyvalues, string key, nint value) + public unsafe static void SetPtr( nint keyvalues, string key, nint value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetPtr(keyvalues, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetStringToken; + private static readonly unsafe delegate* unmanaged< nint, byte*, CUtlStringToken, void > _SetStringToken; - public unsafe static void SetStringToken(nint keyvalues, string key, CUtlStringToken value) + public unsafe static void SetStringToken( nint keyvalues, string key, CUtlStringToken value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetStringToken(keyvalues, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetColor; + private static readonly unsafe delegate* unmanaged< nint, byte*, Color, void > _SetColor; - public unsafe static void SetColor(nint keyvalues, string key, Color value) + public unsafe static void SetColor( nint keyvalues, string key, Color value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetColor(keyvalues, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetVector; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector, void > _SetVector; - public unsafe static void SetVector(nint keyvalues, string key, Vector value) + public unsafe static void SetVector( nint keyvalues, string key, Vector value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetVector(keyvalues, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetVector2D; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector2D, void > _SetVector2D; - public unsafe static void SetVector2D(nint keyvalues, string key, Vector2D value) + public unsafe static void SetVector2D( nint keyvalues, string key, Vector2D value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetVector2D(keyvalues, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetVector4D; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector4D, void > _SetVector4D; - public unsafe static void SetVector4D(nint keyvalues, string key, Vector4D value) + public unsafe static void SetVector4D( nint keyvalues, string key, Vector4D value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetVector4D(keyvalues, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetQAngle; + private static readonly unsafe delegate* unmanaged< nint, byte*, QAngle, void > _SetQAngle; - public unsafe static void SetQAngle(nint keyvalues, string key, QAngle value) + public unsafe static void SetQAngle( nint keyvalues, string key, QAngle value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetQAngle(keyvalues, keyBufferPtr, value); + pool.Return(keyBuffer); } } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Generated/Natives/CommandLine.cs b/managed/src/SwiftlyS2.Generated/Natives/CommandLine.cs index a0e6da30f..5253d17cb 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/CommandLine.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/CommandLine.cs @@ -1,29 +1,33 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeCommandLine { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _HasParameter; + private static readonly unsafe delegate* unmanaged< byte*, byte > _HasParameter; - public unsafe static bool HasParameter(string parameter) + public unsafe static bool HasParameter( string parameter ) { - byte[] parameterBuffer = Encoding.UTF8.GetBytes(parameter + "\0"); + var pool = ArrayPool.Shared; + var parameterLength = Encoding.UTF8.GetByteCount(parameter); + var parameterBuffer = pool.Rent(parameterLength + 1); + _ = Encoding.UTF8.GetBytes(parameter, parameterBuffer); + parameterBuffer[parameterLength] = 0; fixed (byte* parameterBufferPtr = parameterBuffer) { var ret = _HasParameter(parameterBufferPtr); + pool.Return(parameterBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _GetParameterCount; + private static readonly unsafe delegate* unmanaged< int > _GetParameterCount; public unsafe static int GetParameterCount() { @@ -31,65 +35,89 @@ public unsafe static int GetParameterCount() return ret; } - private unsafe static delegate* unmanaged _GetParameterValueString; + private static readonly unsafe delegate* unmanaged< byte*, byte*, byte*, int > _GetParameterValueString; - public unsafe static string GetParameterValueString(string parameter, string defaultValue) + public unsafe static string GetParameterValueString( string parameter, string defaultValue ) { - byte[] parameterBuffer = Encoding.UTF8.GetBytes(parameter + "\0"); - byte[] defaultValueBuffer = Encoding.UTF8.GetBytes(defaultValue + "\0"); + var pool = ArrayPool.Shared; + var parameterLength = Encoding.UTF8.GetByteCount(parameter); + var parameterBuffer = pool.Rent(parameterLength + 1); + _ = Encoding.UTF8.GetBytes(parameter, parameterBuffer); + parameterBuffer[parameterLength] = 0; + var defaultValueLength = Encoding.UTF8.GetByteCount(defaultValue); + var defaultValueBuffer = pool.Rent(defaultValueLength + 1); + _ = Encoding.UTF8.GetBytes(defaultValue, defaultValueBuffer); + defaultValueBuffer[defaultValueLength] = 0; fixed (byte* parameterBufferPtr = parameterBuffer) { fixed (byte* defaultValueBufferPtr = defaultValueBuffer) { var ret = _GetParameterValueString(null, parameterBufferPtr, defaultValueBufferPtr); - var retBuffer = new byte[ret + 1]; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetParameterValueString(retBufferPtr, parameterBufferPtr, defaultValueBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + pool.Return(parameterBuffer); + pool.Return(defaultValueBuffer); + return retString; } } } } - private unsafe static delegate* unmanaged _GetParameterValueInt; + private static readonly unsafe delegate* unmanaged< byte*, int, int > _GetParameterValueInt; - public unsafe static int GetParameterValueInt(string parameter, int defaultValue) + public unsafe static int GetParameterValueInt( string parameter, int defaultValue ) { - byte[] parameterBuffer = Encoding.UTF8.GetBytes(parameter + "\0"); + var pool = ArrayPool.Shared; + var parameterLength = Encoding.UTF8.GetByteCount(parameter); + var parameterBuffer = pool.Rent(parameterLength + 1); + _ = Encoding.UTF8.GetBytes(parameter, parameterBuffer); + parameterBuffer[parameterLength] = 0; fixed (byte* parameterBufferPtr = parameterBuffer) { var ret = _GetParameterValueInt(parameterBufferPtr, defaultValue); + pool.Return(parameterBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetParameterValueFloat; + private static readonly unsafe delegate* unmanaged< byte*, float, float > _GetParameterValueFloat; - public unsafe static float GetParameterValueFloat(string parameter, float defaultValue) + public unsafe static float GetParameterValueFloat( string parameter, float defaultValue ) { - byte[] parameterBuffer = Encoding.UTF8.GetBytes(parameter + "\0"); + var pool = ArrayPool.Shared; + var parameterLength = Encoding.UTF8.GetByteCount(parameter); + var parameterBuffer = pool.Rent(parameterLength + 1); + _ = Encoding.UTF8.GetBytes(parameter, parameterBuffer); + parameterBuffer[parameterLength] = 0; fixed (byte* parameterBufferPtr = parameterBuffer) { var ret = _GetParameterValueFloat(parameterBufferPtr, defaultValue); + pool.Return(parameterBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetCommandLine; + private static readonly unsafe delegate* unmanaged< byte*, int > _GetCommandLine; public unsafe static string GetCommandLine() { var ret = _GetCommandLine(null); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetCommandLine(retBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } - private unsafe static delegate* unmanaged _HasParameters; + private static readonly unsafe delegate* unmanaged< byte > _HasParameters; public unsafe static bool HasParameters() { diff --git a/managed/src/SwiftlyS2.Generated/Natives/Commands.cs b/managed/src/SwiftlyS2.Generated/Natives/Commands.cs index cfe57c711..7615cdc78 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Commands.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Commands.cs @@ -1,111 +1,129 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeCommands { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _HandleCommandForPlayer; + private static readonly unsafe delegate* unmanaged< int, byte*, int > _HandleCommandForPlayer; /// /// 1 -> not silent, 2 -> silent, -1 -> invalid player, 0 -> no command /// - public unsafe static int HandleCommandForPlayer(int playerid, string command) + public unsafe static int HandleCommandForPlayer( int playerid, string command ) { - byte[] commandBuffer = Encoding.UTF8.GetBytes(command + "\0"); + var pool = ArrayPool.Shared; + var commandLength = Encoding.UTF8.GetByteCount(command); + var commandBuffer = pool.Rent(commandLength + 1); + _ = Encoding.UTF8.GetBytes(command, commandBuffer); + commandBuffer[commandLength] = 0; fixed (byte* commandBufferPtr = commandBuffer) { var ret = _HandleCommandForPlayer(playerid, commandBufferPtr); + pool.Return(commandBuffer); return ret; } } - private unsafe static delegate* unmanaged _RegisterCommand; + private static readonly unsafe delegate* unmanaged< byte*, nint, byte, ulong > _RegisterCommand; /// /// callback should receive (int32 playerid, string arguments_list (separated by \x01), string commandName, string prefix, bool silent), if registerRaw is false, it will not put "sw_" before the command name /// - public unsafe static ulong RegisterCommand(string commandName, nint callback, bool registerRaw) + public unsafe static ulong RegisterCommand( string commandName, nint callback, bool registerRaw ) { - byte[] commandNameBuffer = Encoding.UTF8.GetBytes(commandName + "\0"); + var pool = ArrayPool.Shared; + var commandNameLength = Encoding.UTF8.GetByteCount(commandName); + var commandNameBuffer = pool.Rent(commandNameLength + 1); + _ = Encoding.UTF8.GetBytes(commandName, commandNameBuffer); + commandNameBuffer[commandNameLength] = 0; fixed (byte* commandNameBufferPtr = commandNameBuffer) { var ret = _RegisterCommand(commandNameBufferPtr, callback, registerRaw ? (byte)1 : (byte)0); + pool.Return(commandNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _UnregisterCommand; + private static readonly unsafe delegate* unmanaged< ulong, void > _UnregisterCommand; - public unsafe static void UnregisterCommand(ulong callbackID) + public unsafe static void UnregisterCommand( ulong callbackID ) { _UnregisterCommand(callbackID); } - private unsafe static delegate* unmanaged _RegisterAlias; + private static readonly unsafe delegate* unmanaged< byte*, byte*, byte, ulong > _RegisterAlias; /// /// registerRaw behaves the same as on RegisterCommand, for commandName you need to also put the "sw_" prefix if the command is registered without raw mode /// - public unsafe static ulong RegisterAlias(string aliasName, string commandName, bool registerRaw) + public unsafe static ulong RegisterAlias( string aliasName, string commandName, bool registerRaw ) { - byte[] aliasNameBuffer = Encoding.UTF8.GetBytes(aliasName + "\0"); - byte[] commandNameBuffer = Encoding.UTF8.GetBytes(commandName + "\0"); + var pool = ArrayPool.Shared; + var aliasNameLength = Encoding.UTF8.GetByteCount(aliasName); + var aliasNameBuffer = pool.Rent(aliasNameLength + 1); + _ = Encoding.UTF8.GetBytes(aliasName, aliasNameBuffer); + aliasNameBuffer[aliasNameLength] = 0; + var commandNameLength = Encoding.UTF8.GetByteCount(commandName); + var commandNameBuffer = pool.Rent(commandNameLength + 1); + _ = Encoding.UTF8.GetBytes(commandName, commandNameBuffer); + commandNameBuffer[commandNameLength] = 0; fixed (byte* aliasNameBufferPtr = aliasNameBuffer) { fixed (byte* commandNameBufferPtr = commandNameBuffer) { var ret = _RegisterAlias(aliasNameBufferPtr, commandNameBufferPtr, registerRaw ? (byte)1 : (byte)0); + pool.Return(aliasNameBuffer); + pool.Return(commandNameBuffer); return ret; } } } - private unsafe static delegate* unmanaged _UnregisterAlias; + private static readonly unsafe delegate* unmanaged< ulong, void > _UnregisterAlias; - public unsafe static void UnregisterAlias(ulong callbackID) + public unsafe static void UnregisterAlias( ulong callbackID ) { _UnregisterAlias(callbackID); } - private unsafe static delegate* unmanaged _RegisterClientCommandsListener; + private static readonly unsafe delegate* unmanaged< nint, ulong > _RegisterClientCommandsListener; /// /// callback should receive: int32 playerid, string commandline, return true -> ignored, return false -> supercede /// - public unsafe static ulong RegisterClientCommandsListener(nint callback) + public unsafe static ulong RegisterClientCommandsListener( nint callback ) { var ret = _RegisterClientCommandsListener(callback); return ret; } - private unsafe static delegate* unmanaged _UnregisterClientCommandsListener; + private static readonly unsafe delegate* unmanaged< ulong, void > _UnregisterClientCommandsListener; - public unsafe static void UnregisterClientCommandsListener(ulong callbackID) + public unsafe static void UnregisterClientCommandsListener( ulong callbackID ) { _UnregisterClientCommandsListener(callbackID); } - private unsafe static delegate* unmanaged _RegisterClientChatListener; + private static readonly unsafe delegate* unmanaged< nint, ulong > _RegisterClientChatListener; /// /// callback should receive: int32 playerid, string text, bool teamonly, return true -> ignored, return false -> supercede, when superceded it's not gonna send the message /// - public unsafe static ulong RegisterClientChatListener(nint callback) + public unsafe static ulong RegisterClientChatListener( nint callback ) { var ret = _RegisterClientChatListener(callback); return ret; } - private unsafe static delegate* unmanaged _UnregisterClientChatListener; + private static readonly unsafe delegate* unmanaged< ulong, void > _UnregisterClientChatListener; - public unsafe static void UnregisterClientChatListener(ulong callbackID) + public unsafe static void UnregisterClientChatListener( ulong callbackID ) { _UnregisterClientChatListener(callbackID); } diff --git a/managed/src/SwiftlyS2.Generated/Natives/ConsoleOutput.cs b/managed/src/SwiftlyS2.Generated/Natives/ConsoleOutput.cs index 6907ef5dc..ab9f048e0 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/ConsoleOutput.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/ConsoleOutput.cs @@ -1,35 +1,34 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeConsoleOutput { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _AddConsoleListener; + private static readonly unsafe delegate* unmanaged< nint, ulong > _AddConsoleListener; /// /// callback should receive: string message /// - public unsafe static ulong AddConsoleListener(nint callback) + public unsafe static ulong AddConsoleListener( nint callback ) { var ret = _AddConsoleListener(callback); return ret; } - private unsafe static delegate* unmanaged _RemoveConsoleListener; + private static readonly unsafe delegate* unmanaged< ulong, void > _RemoveConsoleListener; - public unsafe static void RemoveConsoleListener(ulong listenerId) + public unsafe static void RemoveConsoleListener( ulong listenerId ) { _RemoveConsoleListener(listenerId); } - private unsafe static delegate* unmanaged _IsEnabled; + private static readonly unsafe delegate* unmanaged< byte > _IsEnabled; /// /// returns whether console filtering is enabled @@ -40,7 +39,7 @@ public unsafe static bool IsEnabled() return ret == 1; } - private unsafe static delegate* unmanaged _ToggleFilter; + private static readonly unsafe delegate* unmanaged< void > _ToggleFilter; /// /// toggles the console filter on/off @@ -50,7 +49,7 @@ public unsafe static void ToggleFilter() _ToggleFilter(); } - private unsafe static delegate* unmanaged _ReloadFilterConfiguration; + private static readonly unsafe delegate* unmanaged< void > _ReloadFilterConfiguration; /// /// reloads the filter configuration from file @@ -60,22 +59,27 @@ public unsafe static void ReloadFilterConfiguration() _ReloadFilterConfiguration(); } - private unsafe static delegate* unmanaged _NeedsFiltering; + private static readonly unsafe delegate* unmanaged< byte*, byte > _NeedsFiltering; /// /// checks if a message needs filtering /// - public unsafe static bool NeedsFiltering(string text) + public unsafe static bool NeedsFiltering( string text ) { - byte[] textBuffer = Encoding.UTF8.GetBytes(text + "\0"); + var pool = ArrayPool.Shared; + var textLength = Encoding.UTF8.GetByteCount(text); + var textBuffer = pool.Rent(textLength + 1); + _ = Encoding.UTF8.GetBytes(text, textBuffer); + textBuffer[textLength] = 0; fixed (byte* textBufferPtr = textBuffer) { var ret = _NeedsFiltering(textBufferPtr); + pool.Return(textBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _GetCounterText; + private static readonly unsafe delegate* unmanaged< byte*, int > _GetCounterText; /// /// gets the counter text showing how many messages were filtered @@ -83,11 +87,14 @@ public unsafe static bool NeedsFiltering(string text) public unsafe static string GetCounterText() { var ret = _GetCounterText(null); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetCounterText(retBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Generated/Natives/Convars.cs b/managed/src/SwiftlyS2.Generated/Natives/Convars.cs index cbbdf29b6..8bfd89103 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Convars.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Convars.cs @@ -1,316 +1,457 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeConvars { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _QueryClientConvar; + private static readonly unsafe delegate* unmanaged< int, byte*, void > _QueryClientConvar; - public unsafe static void QueryClientConvar(int playerid, string cvarName) + public unsafe static void QueryClientConvar( int playerid, string cvarName ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { _QueryClientConvar(playerid, cvarNameBufferPtr); + pool.Return(cvarNameBuffer); } } - private unsafe static delegate* unmanaged _AddQueryClientCvarCallback; + private static readonly unsafe delegate* unmanaged< nint, int > _AddQueryClientCvarCallback; /// /// the callback should receive the following: int32 playerid, string cvarName, string cvarValue /// - public unsafe static int AddQueryClientCvarCallback(nint callback) + public unsafe static int AddQueryClientCvarCallback( nint callback ) { var ret = _AddQueryClientCvarCallback(callback); return ret; } - private unsafe static delegate* unmanaged _RemoveQueryClientCvarCallback; + private static readonly unsafe delegate* unmanaged< int, void > _RemoveQueryClientCvarCallback; - public unsafe static void RemoveQueryClientCvarCallback(int callbackID) + public unsafe static void RemoveQueryClientCvarCallback( int callbackID ) { _RemoveQueryClientCvarCallback(callbackID); } - private unsafe static delegate* unmanaged _AddGlobalChangeListener; + private static readonly unsafe delegate* unmanaged< nint, ulong > _AddGlobalChangeListener; /// /// the callback should receive the following: string convarName, int playerid, string newValue, string oldValue /// - public unsafe static ulong AddGlobalChangeListener(nint callback) + public unsafe static ulong AddGlobalChangeListener( nint callback ) { var ret = _AddGlobalChangeListener(callback); return ret; } - private unsafe static delegate* unmanaged _RemoveGlobalChangeListener; + private static readonly unsafe delegate* unmanaged< ulong, void > _RemoveGlobalChangeListener; - public unsafe static void RemoveGlobalChangeListener(ulong callbackID) + public unsafe static void RemoveGlobalChangeListener( ulong callbackID ) { _RemoveGlobalChangeListener(callbackID); } - private unsafe static delegate* unmanaged _AddConvarCreatedListener; + private static readonly unsafe delegate* unmanaged< nint, ulong > _AddConvarCreatedListener; /// /// the callback should receive the following: string convarName /// - public unsafe static ulong AddConvarCreatedListener(nint callback) + public unsafe static ulong AddConvarCreatedListener( nint callback ) { var ret = _AddConvarCreatedListener(callback); return ret; } - private unsafe static delegate* unmanaged _RemoveConvarCreatedListener; + private static readonly unsafe delegate* unmanaged< ulong, void > _RemoveConvarCreatedListener; - public unsafe static void RemoveConvarCreatedListener(ulong callbackID) + public unsafe static void RemoveConvarCreatedListener( ulong callbackID ) { _RemoveConvarCreatedListener(callbackID); } - private unsafe static delegate* unmanaged _AddConCommandCreatedListener; + private static readonly unsafe delegate* unmanaged< nint, ulong > _AddConCommandCreatedListener; /// /// the callback should receive the following: string commandName /// - public unsafe static ulong AddConCommandCreatedListener(nint callback) + public unsafe static ulong AddConCommandCreatedListener( nint callback ) { var ret = _AddConCommandCreatedListener(callback); return ret; } - private unsafe static delegate* unmanaged _RemoveConCommandCreatedListener; + private static readonly unsafe delegate* unmanaged< ulong, void > _RemoveConCommandCreatedListener; - public unsafe static void RemoveConCommandCreatedListener(ulong callbackID) + public unsafe static void RemoveConCommandCreatedListener( ulong callbackID ) { _RemoveConCommandCreatedListener(callbackID); } - private unsafe static delegate* unmanaged _CreateConvarInt16; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, short, nint, nint, void > _CreateConvarInt16; - public unsafe static void CreateConvarInt16(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, short defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarInt16( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, short defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarInt16(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarUInt16; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, ushort, nint, nint, void > _CreateConvarUInt16; - public unsafe static void CreateConvarUInt16(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, ushort defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarUInt16( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, ushort defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarUInt16(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarInt32; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, int, nint, nint, void > _CreateConvarInt32; - public unsafe static void CreateConvarInt32(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, int defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarInt32( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, int defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarInt32(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarUInt32; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, uint, nint, nint, void > _CreateConvarUInt32; - public unsafe static void CreateConvarUInt32(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, uint defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarUInt32( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, uint defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarUInt32(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarInt64; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, long, nint, nint, void > _CreateConvarInt64; - public unsafe static void CreateConvarInt64(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, long defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarInt64( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, long defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarInt64(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarUInt64; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, ulong, nint, nint, void > _CreateConvarUInt64; - public unsafe static void CreateConvarUInt64(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, ulong defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarUInt64( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, ulong defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarUInt64(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarBool; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, byte, nint, nint, void > _CreateConvarBool; - public unsafe static void CreateConvarBool(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, bool defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarBool( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, bool defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarBool(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue ? (byte)1 : (byte)0, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarFloat; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, float, nint, nint, void > _CreateConvarFloat; - public unsafe static void CreateConvarFloat(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, float defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarFloat( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, float defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarFloat(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarDouble; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, double, nint, nint, void > _CreateConvarDouble; - public unsafe static void CreateConvarDouble(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, double defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarDouble( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, double defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarDouble(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarColor; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, Color, nint, nint, void > _CreateConvarColor; - public unsafe static void CreateConvarColor(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, Color defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarColor( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, Color defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarColor(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarVector2D; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, Vector2D, nint, nint, void > _CreateConvarVector2D; - public unsafe static void CreateConvarVector2D(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, Vector2D defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarVector2D( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, Vector2D defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarVector2D(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarVector; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, Vector, nint, nint, void > _CreateConvarVector; - public unsafe static void CreateConvarVector(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, Vector defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarVector( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, Vector defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarVector(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarVector4D; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, Vector4D, nint, nint, void > _CreateConvarVector4D; - public unsafe static void CreateConvarVector4D(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, Vector4D defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarVector4D( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, Vector4D defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarVector4D(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarQAngle; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, QAngle, nint, nint, void > _CreateConvarQAngle; - public unsafe static void CreateConvarQAngle(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, QAngle defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarQAngle( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, QAngle defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) { _CreateConvarQAngle(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValue, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); } } } - private unsafe static delegate* unmanaged _CreateConvarString; + private static readonly unsafe delegate* unmanaged< byte*, int, ulong, byte*, byte*, nint, nint, void > _CreateConvarString; - public unsafe static void CreateConvarString(string cvarName, int cvarType, ulong cvarFlags, string helpMessage, string defaultValue, nint minValue, nint maxValue) + public unsafe static void CreateConvarString( string cvarName, int cvarType, ulong cvarFlags, string helpMessage, string defaultValue, nint minValue, nint maxValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] helpMessageBuffer = Encoding.UTF8.GetBytes(helpMessage + "\0"); - byte[] defaultValueBuffer = Encoding.UTF8.GetBytes(defaultValue + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var helpMessageLength = Encoding.UTF8.GetByteCount(helpMessage); + var helpMessageBuffer = pool.Rent(helpMessageLength + 1); + _ = Encoding.UTF8.GetBytes(helpMessage, helpMessageBuffer); + helpMessageBuffer[helpMessageLength] = 0; + var defaultValueLength = Encoding.UTF8.GetByteCount(defaultValue); + var defaultValueBuffer = pool.Rent(defaultValueLength + 1); + _ = Encoding.UTF8.GetBytes(defaultValue, defaultValueBuffer); + defaultValueBuffer[defaultValueLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* helpMessageBufferPtr = helpMessageBuffer) @@ -318,189 +459,275 @@ public unsafe static void CreateConvarString(string cvarName, int cvarType, ulon fixed (byte* defaultValueBufferPtr = defaultValueBuffer) { _CreateConvarString(cvarNameBufferPtr, cvarType, cvarFlags, helpMessageBufferPtr, defaultValueBufferPtr, minValue, maxValue); + pool.Return(cvarNameBuffer); + pool.Return(helpMessageBuffer); + pool.Return(defaultValueBuffer); } } } } - private unsafe static delegate* unmanaged _DeleteConvar; + private static readonly unsafe delegate* unmanaged< byte*, void > _DeleteConvar; - public unsafe static void DeleteConvar(string cvarName) + public unsafe static void DeleteConvar( string cvarName ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { _DeleteConvar(cvarNameBufferPtr); + pool.Return(cvarNameBuffer); } } - private unsafe static delegate* unmanaged _ExistsConvar; + private static readonly unsafe delegate* unmanaged< byte*, byte > _ExistsConvar; - public unsafe static bool ExistsConvar(string cvarName) + public unsafe static bool ExistsConvar( string cvarName ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { var ret = _ExistsConvar(cvarNameBufferPtr); + pool.Return(cvarNameBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _GetConvarType; + private static readonly unsafe delegate* unmanaged< byte*, int > _GetConvarType; - public unsafe static int GetConvarType(string cvarName) + public unsafe static int GetConvarType( string cvarName ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { var ret = _GetConvarType(cvarNameBufferPtr); + pool.Return(cvarNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetClientConvarValueString; + private static readonly unsafe delegate* unmanaged< int, byte*, byte*, void > _SetClientConvarValueString; - public unsafe static void SetClientConvarValueString(int playerid, string cvarName, string defaultValue) + public unsafe static void SetClientConvarValueString( int playerid, string cvarName, string defaultValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] defaultValueBuffer = Encoding.UTF8.GetBytes(defaultValue + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var defaultValueLength = Encoding.UTF8.GetByteCount(defaultValue); + var defaultValueBuffer = pool.Rent(defaultValueLength + 1); + _ = Encoding.UTF8.GetBytes(defaultValue, defaultValueBuffer); + defaultValueBuffer[defaultValueLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* defaultValueBufferPtr = defaultValueBuffer) { _SetClientConvarValueString(playerid, cvarNameBufferPtr, defaultValueBufferPtr); + pool.Return(cvarNameBuffer); + pool.Return(defaultValueBuffer); } } } - private unsafe static delegate* unmanaged _GetFlags; + private static readonly unsafe delegate* unmanaged< byte*, ulong > _GetFlags; - public unsafe static ulong GetFlags(string cvarName) + public unsafe static ulong GetFlags( string cvarName ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { var ret = _GetFlags(cvarNameBufferPtr); + pool.Return(cvarNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetFlags; + private static readonly unsafe delegate* unmanaged< byte*, ulong, void > _SetFlags; - public unsafe static void SetFlags(string cvarName, ulong flags) + public unsafe static void SetFlags( string cvarName, ulong flags ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { _SetFlags(cvarNameBufferPtr, flags); + pool.Return(cvarNameBuffer); } } - private unsafe static delegate* unmanaged _GetMinValuePtrPtr; + private static readonly unsafe delegate* unmanaged< byte*, nint > _GetMinValuePtrPtr; - public unsafe static nint GetMinValuePtrPtr(string cvarName) + public unsafe static nint GetMinValuePtrPtr( string cvarName ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { var ret = _GetMinValuePtrPtr(cvarNameBufferPtr); + pool.Return(cvarNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetMaxValuePtrPtr; + private static readonly unsafe delegate* unmanaged< byte*, nint > _GetMaxValuePtrPtr; - public unsafe static nint GetMaxValuePtrPtr(string cvarName) + public unsafe static nint GetMaxValuePtrPtr( string cvarName ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { var ret = _GetMaxValuePtrPtr(cvarNameBufferPtr); + pool.Return(cvarNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _HasDefaultValue; + private static readonly unsafe delegate* unmanaged< byte*, byte > _HasDefaultValue; - public unsafe static bool HasDefaultValue(string cvarName) + public unsafe static bool HasDefaultValue( string cvarName ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { var ret = _HasDefaultValue(cvarNameBufferPtr); + pool.Return(cvarNameBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _GetDefaultValuePtr; + private static readonly unsafe delegate* unmanaged< byte*, nint > _GetDefaultValuePtr; - public unsafe static nint GetDefaultValuePtr(string cvarName) + public unsafe static nint GetDefaultValuePtr( string cvarName ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { var ret = _GetDefaultValuePtr(cvarNameBufferPtr); + pool.Return(cvarNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetDefaultValue; + private static readonly unsafe delegate* unmanaged< byte*, nint, void > _SetDefaultValue; - public unsafe static void SetDefaultValue(string cvarName, nint defaultValue) + public unsafe static void SetDefaultValue( string cvarName, nint defaultValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { _SetDefaultValue(cvarNameBufferPtr, defaultValue); + pool.Return(cvarNameBuffer); } } - private unsafe static delegate* unmanaged _SetDefaultValueString; + private static readonly unsafe delegate* unmanaged< byte*, byte*, void > _SetDefaultValueString; - public unsafe static void SetDefaultValueString(string cvarName, string defaultValue) + public unsafe static void SetDefaultValueString( string cvarName, string defaultValue ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); - byte[] defaultValueBuffer = Encoding.UTF8.GetBytes(defaultValue + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; + var defaultValueLength = Encoding.UTF8.GetByteCount(defaultValue); + var defaultValueBuffer = pool.Rent(defaultValueLength + 1); + _ = Encoding.UTF8.GetBytes(defaultValue, defaultValueBuffer); + defaultValueBuffer[defaultValueLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { fixed (byte* defaultValueBufferPtr = defaultValueBuffer) { _SetDefaultValueString(cvarNameBufferPtr, defaultValueBufferPtr); + pool.Return(cvarNameBuffer); + pool.Return(defaultValueBuffer); } } } - private unsafe static delegate* unmanaged _GetValuePtr; + private static readonly unsafe delegate* unmanaged< byte*, nint > _GetValuePtr; - public unsafe static nint GetValuePtr(string cvarName) + public unsafe static nint GetValuePtr( string cvarName ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { var ret = _GetValuePtr(cvarNameBufferPtr); + pool.Return(cvarNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetValuePtr; + private static readonly unsafe delegate* unmanaged< byte*, nint, void > _SetValuePtr; - public unsafe static void SetValuePtr(string cvarName, nint value) + public unsafe static void SetValuePtr( string cvarName, nint value ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { _SetValuePtr(cvarNameBufferPtr, value); + pool.Return(cvarNameBuffer); } } - private unsafe static delegate* unmanaged _SetValueInternalPtr; + private static readonly unsafe delegate* unmanaged< byte*, nint, void > _SetValueInternalPtr; - public unsafe static void SetValueInternalPtr(string cvarName, nint value) + public unsafe static void SetValueInternalPtr( string cvarName, nint value ) { - byte[] cvarNameBuffer = Encoding.UTF8.GetBytes(cvarName + "\0"); + var pool = ArrayPool.Shared; + var cvarNameLength = Encoding.UTF8.GetByteCount(cvarName); + var cvarNameBuffer = pool.Rent(cvarNameLength + 1); + _ = Encoding.UTF8.GetBytes(cvarName, cvarNameBuffer); + cvarNameBuffer[cvarNameLength] = 0; fixed (byte* cvarNameBufferPtr = cvarNameBuffer) { _SetValueInternalPtr(cvarNameBufferPtr, value); + pool.Return(cvarNameBuffer); } } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Generated/Natives/Database.cs b/managed/src/SwiftlyS2.Generated/Natives/Database.cs index 616a67337..55f4ef537 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Database.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Database.cs @@ -1,67 +1,84 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeDatabase { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _GetDefaultConnection; + private static readonly unsafe delegate* unmanaged< byte*, int > _GetDefaultConnection; public unsafe static string GetDefaultConnection() { var ret = _GetDefaultConnection(null); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetDefaultConnection(retBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } - private unsafe static delegate* unmanaged _GetDefaultConnectionCredentials; + private static readonly unsafe delegate* unmanaged< byte*, int > _GetDefaultConnectionCredentials; public unsafe static string GetDefaultConnectionCredentials() { var ret = _GetDefaultConnectionCredentials(null); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetDefaultConnectionCredentials(retBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } - private unsafe static delegate* unmanaged _GetCredentials; + private static readonly unsafe delegate* unmanaged< byte*, byte*, int > _GetCredentials; - public unsafe static string GetCredentials(string connectionName) + public unsafe static string GetCredentials( string connectionName ) { - byte[] connectionNameBuffer = Encoding.UTF8.GetBytes(connectionName + "\0"); + var pool = ArrayPool.Shared; + var connectionNameLength = Encoding.UTF8.GetByteCount(connectionName); + var connectionNameBuffer = pool.Rent(connectionNameLength + 1); + _ = Encoding.UTF8.GetBytes(connectionName, connectionNameBuffer); + connectionNameBuffer[connectionNameLength] = 0; fixed (byte* connectionNameBufferPtr = connectionNameBuffer) { var ret = _GetCredentials(null, connectionNameBufferPtr); - var retBuffer = new byte[ret + 1]; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetCredentials(retBufferPtr, connectionNameBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + pool.Return(connectionNameBuffer); + return retString; } } } - private unsafe static delegate* unmanaged _ConnectionExists; + private static readonly unsafe delegate* unmanaged< byte*, byte > _ConnectionExists; - public unsafe static bool ConnectionExists(string connectionName) + public unsafe static bool ConnectionExists( string connectionName ) { - byte[] connectionNameBuffer = Encoding.UTF8.GetBytes(connectionName + "\0"); + var pool = ArrayPool.Shared; + var connectionNameLength = Encoding.UTF8.GetByteCount(connectionName); + var connectionNameBuffer = pool.Rent(connectionNameLength + 1); + _ = Encoding.UTF8.GetBytes(connectionName, connectionNameBuffer); + connectionNameBuffer[connectionNameLength] = 0; fixed (byte* connectionNameBufferPtr = connectionNameBuffer) { var ret = _ConnectionExists(connectionNameBufferPtr); + pool.Return(connectionNameBuffer); return ret == 1; } } diff --git a/managed/src/SwiftlyS2.Generated/Natives/EngineHelpers.cs b/managed/src/SwiftlyS2.Generated/Natives/EngineHelpers.cs index 8e924dda2..c266503c5 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/EngineHelpers.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/EngineHelpers.cs @@ -1,79 +1,101 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeEngineHelpers { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _GetIP; + private static readonly unsafe delegate* unmanaged< byte*, int > _GetIP; public unsafe static string GetIP() { var ret = _GetIP(null); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetIP(retBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } - private unsafe static delegate* unmanaged _IsMapValid; + private static readonly unsafe delegate* unmanaged< byte*, byte > _IsMapValid; /// /// it can be map name, or workshop id /// - public unsafe static bool IsMapValid(string map_name) + public unsafe static bool IsMapValid( string map_name ) { - byte[] map_nameBuffer = Encoding.UTF8.GetBytes(map_name + "\0"); + var pool = ArrayPool.Shared; + var map_nameLength = Encoding.UTF8.GetByteCount(map_name); + var map_nameBuffer = pool.Rent(map_nameLength + 1); + _ = Encoding.UTF8.GetBytes(map_name, map_nameBuffer); + map_nameBuffer[map_nameLength] = 0; fixed (byte* map_nameBufferPtr = map_nameBuffer) { var ret = _IsMapValid(map_nameBufferPtr); + pool.Return(map_nameBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _ExecuteCommand; + private static readonly unsafe delegate* unmanaged< byte*, void > _ExecuteCommand; - public unsafe static void ExecuteCommand(string command) + public unsafe static void ExecuteCommand( string command ) { - byte[] commandBuffer = Encoding.UTF8.GetBytes(command + "\0"); + var pool = ArrayPool.Shared; + var commandLength = Encoding.UTF8.GetByteCount(command); + var commandBuffer = pool.Rent(commandLength + 1); + _ = Encoding.UTF8.GetBytes(command, commandBuffer); + commandBuffer[commandLength] = 0; fixed (byte* commandBufferPtr = commandBuffer) { _ExecuteCommand(commandBufferPtr); + pool.Return(commandBuffer); } } - private unsafe static delegate* unmanaged _FindGameSystemByName; + private static readonly unsafe delegate* unmanaged< byte*, nint > _FindGameSystemByName; - public unsafe static nint FindGameSystemByName(string name) + public unsafe static nint FindGameSystemByName( string name ) { - byte[] nameBuffer = Encoding.UTF8.GetBytes(name + "\0"); + var pool = ArrayPool.Shared; + var nameLength = Encoding.UTF8.GetByteCount(name); + var nameBuffer = pool.Rent(nameLength + 1); + _ = Encoding.UTF8.GetBytes(name, nameBuffer); + nameBuffer[nameLength] = 0; fixed (byte* nameBufferPtr = nameBuffer) { var ret = _FindGameSystemByName(nameBufferPtr); + pool.Return(nameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SendMessageToConsole; + private static readonly unsafe delegate* unmanaged< byte*, void > _SendMessageToConsole; - public unsafe static void SendMessageToConsole(string msg) + public unsafe static void SendMessageToConsole( string msg ) { - byte[] msgBuffer = Encoding.UTF8.GetBytes(msg + "\0"); + var pool = ArrayPool.Shared; + var msgLength = Encoding.UTF8.GetByteCount(msg); + var msgBuffer = pool.Rent(msgLength + 1); + _ = Encoding.UTF8.GetBytes(msg, msgBuffer); + msgBuffer[msgLength] = 0; fixed (byte* msgBufferPtr = msgBuffer) { _SendMessageToConsole(msgBufferPtr); + pool.Return(msgBuffer); } } - private unsafe static delegate* unmanaged _GetTraceManager; + private static readonly unsafe delegate* unmanaged< nint > _GetTraceManager; public unsafe static nint GetTraceManager() { @@ -81,46 +103,55 @@ public unsafe static nint GetTraceManager() return ret; } - private unsafe static delegate* unmanaged _GetCurrentGame; + private static readonly unsafe delegate* unmanaged< byte*, int > _GetCurrentGame; public unsafe static string GetCurrentGame() { var ret = _GetCurrentGame(null); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetCurrentGame(retBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } - private unsafe static delegate* unmanaged _GetNativeVersion; + private static readonly unsafe delegate* unmanaged< byte*, int > _GetNativeVersion; public unsafe static string GetNativeVersion() { var ret = _GetNativeVersion(null); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetNativeVersion(retBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } - private unsafe static delegate* unmanaged _GetMenuSettings; + private static readonly unsafe delegate* unmanaged< byte*, int > _GetMenuSettings; public unsafe static string GetMenuSettings() { var ret = _GetMenuSettings(null); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetMenuSettings(retBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } - private unsafe static delegate* unmanaged _GetGlobalVars; + private static readonly unsafe delegate* unmanaged< nint > _GetGlobalVars; public unsafe static nint GetGlobalVars() { @@ -128,29 +159,51 @@ public unsafe static nint GetGlobalVars() return ret; } - private unsafe static delegate* unmanaged _GetCSGODirectoryPath; + private static readonly unsafe delegate* unmanaged< byte*, int > _GetCSGODirectoryPath; public unsafe static string GetCSGODirectoryPath() { var ret = _GetCSGODirectoryPath(null); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetCSGODirectoryPath(retBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } - private unsafe static delegate* unmanaged _GetGameDirectoryPath; + private static readonly unsafe delegate* unmanaged< byte*, int > _GetGameDirectoryPath; public unsafe static string GetGameDirectoryPath() { var ret = _GetGameDirectoryPath(null); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetGameDirectoryPath(retBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; + } + } + + private static readonly unsafe delegate* unmanaged< byte*, int > _GetWorkshopId; + + public unsafe static string GetWorkshopId() + { + var ret = _GetWorkshopId(null); + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); + fixed (byte* retBufferPtr = retBuffer) + { + ret = _GetWorkshopId(retBufferPtr); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Generated/Natives/EntitySystem.cs b/managed/src/SwiftlyS2.Generated/Natives/EntitySystem.cs index 78a5b3473..3164024e2 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/EntitySystem.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/EntitySystem.cs @@ -1,235 +1,327 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeEntitySystem { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _Spawn; + private static readonly unsafe delegate* unmanaged< nint, nint, void > _Spawn; - public unsafe static void Spawn(nint entity, nint keyvalues) + public unsafe static void Spawn( nint entity, nint keyvalues ) { _Spawn(entity, keyvalues); } - private unsafe static delegate* unmanaged _Despawn; + private static readonly unsafe delegate* unmanaged< nint, void > _Despawn; - public unsafe static void Despawn(nint entity) + public unsafe static void Despawn( nint entity ) { _Despawn(entity); } - private unsafe static delegate* unmanaged _CreateEntityByName; + private static readonly unsafe delegate* unmanaged< byte*, nint > _CreateEntityByName; - public unsafe static nint CreateEntityByName(string name) + public unsafe static nint CreateEntityByName( string name ) { - byte[] nameBuffer = Encoding.UTF8.GetBytes(name + "\0"); + var pool = ArrayPool.Shared; + var nameLength = Encoding.UTF8.GetByteCount(name); + var nameBuffer = pool.Rent(nameLength + 1); + _ = Encoding.UTF8.GetBytes(name, nameBuffer); + nameBuffer[nameLength] = 0; fixed (byte* nameBufferPtr = nameBuffer) { var ret = _CreateEntityByName(nameBufferPtr); + pool.Return(nameBuffer); return ret; } } - private unsafe static delegate* unmanaged _AcceptInputInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, int, int, void > _AcceptInputInt32; - public unsafe static void AcceptInputInt32(nint entity, string input, nint activator, nint caller, int value, int outputID) + public unsafe static void AcceptInputInt32( nint entity, string input, nint activator, nint caller, int value, int outputID ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AcceptInputInt32(entity, inputBufferPtr, activator, caller, value, outputID); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AcceptInputUInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, uint, int, void > _AcceptInputUInt32; - public unsafe static void AcceptInputUInt32(nint entity, string input, nint activator, nint caller, uint value, int outputID) + public unsafe static void AcceptInputUInt32( nint entity, string input, nint activator, nint caller, uint value, int outputID ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AcceptInputUInt32(entity, inputBufferPtr, activator, caller, value, outputID); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AcceptInputInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, long, int, void > _AcceptInputInt64; - public unsafe static void AcceptInputInt64(nint entity, string input, nint activator, nint caller, long value, int outputID) + public unsafe static void AcceptInputInt64( nint entity, string input, nint activator, nint caller, long value, int outputID ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AcceptInputInt64(entity, inputBufferPtr, activator, caller, value, outputID); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AcceptInputUInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, ulong, int, void > _AcceptInputUInt64; - public unsafe static void AcceptInputUInt64(nint entity, string input, nint activator, nint caller, ulong value, int outputID) + public unsafe static void AcceptInputUInt64( nint entity, string input, nint activator, nint caller, ulong value, int outputID ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AcceptInputUInt64(entity, inputBufferPtr, activator, caller, value, outputID); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AcceptInputFloat; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, float, int, void > _AcceptInputFloat; - public unsafe static void AcceptInputFloat(nint entity, string input, nint activator, nint caller, float value, int outputID) + public unsafe static void AcceptInputFloat( nint entity, string input, nint activator, nint caller, float value, int outputID ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AcceptInputFloat(entity, inputBufferPtr, activator, caller, value, outputID); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AcceptInputDouble; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, double, int, void > _AcceptInputDouble; - public unsafe static void AcceptInputDouble(nint entity, string input, nint activator, nint caller, double value, int outputID) + public unsafe static void AcceptInputDouble( nint entity, string input, nint activator, nint caller, double value, int outputID ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AcceptInputDouble(entity, inputBufferPtr, activator, caller, value, outputID); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AcceptInputBool; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, byte, int, void > _AcceptInputBool; - public unsafe static void AcceptInputBool(nint entity, string input, nint activator, nint caller, bool value, int outputID) + public unsafe static void AcceptInputBool( nint entity, string input, nint activator, nint caller, bool value, int outputID ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AcceptInputBool(entity, inputBufferPtr, activator, caller, value ? (byte)1 : (byte)0, outputID); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AcceptInputString; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, byte*, int, void > _AcceptInputString; - public unsafe static void AcceptInputString(nint entity, string input, nint activator, nint caller, string value, int outputID) + public unsafe static void AcceptInputString( nint entity, string input, nint activator, nint caller, string value, int outputID ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); - byte[] valueBuffer = Encoding.UTF8.GetBytes(value + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; + var valueLength = Encoding.UTF8.GetByteCount(value); + var valueBuffer = pool.Rent(valueLength + 1); + _ = Encoding.UTF8.GetBytes(value, valueBuffer); + valueBuffer[valueLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { fixed (byte* valueBufferPtr = valueBuffer) { _AcceptInputString(entity, inputBufferPtr, activator, caller, valueBufferPtr, outputID); + pool.Return(inputBuffer); + pool.Return(valueBuffer); } } } - private unsafe static delegate* unmanaged _AddEntityIOEventInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, int, float, void > _AddEntityIOEventInt32; - public unsafe static void AddEntityIOEventInt32(nint entity, string input, nint activator, nint caller, int value, float delay) + public unsafe static void AddEntityIOEventInt32( nint entity, string input, nint activator, nint caller, int value, float delay ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AddEntityIOEventInt32(entity, inputBufferPtr, activator, caller, value, delay); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AddEntityIOEventUInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, uint, float, void > _AddEntityIOEventUInt32; - public unsafe static void AddEntityIOEventUInt32(nint entity, string input, nint activator, nint caller, uint value, float delay) + public unsafe static void AddEntityIOEventUInt32( nint entity, string input, nint activator, nint caller, uint value, float delay ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AddEntityIOEventUInt32(entity, inputBufferPtr, activator, caller, value, delay); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AddEntityIOEventInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, long, float, void > _AddEntityIOEventInt64; - public unsafe static void AddEntityIOEventInt64(nint entity, string input, nint activator, nint caller, long value, float delay) + public unsafe static void AddEntityIOEventInt64( nint entity, string input, nint activator, nint caller, long value, float delay ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AddEntityIOEventInt64(entity, inputBufferPtr, activator, caller, value, delay); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AddEntityIOEventUInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, ulong, float, void > _AddEntityIOEventUInt64; - public unsafe static void AddEntityIOEventUInt64(nint entity, string input, nint activator, nint caller, ulong value, float delay) + public unsafe static void AddEntityIOEventUInt64( nint entity, string input, nint activator, nint caller, ulong value, float delay ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AddEntityIOEventUInt64(entity, inputBufferPtr, activator, caller, value, delay); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AddEntityIOEventFloat; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, float, float, void > _AddEntityIOEventFloat; - public unsafe static void AddEntityIOEventFloat(nint entity, string input, nint activator, nint caller, float value, float delay) + public unsafe static void AddEntityIOEventFloat( nint entity, string input, nint activator, nint caller, float value, float delay ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AddEntityIOEventFloat(entity, inputBufferPtr, activator, caller, value, delay); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AddEntityIOEventDouble; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, double, float, void > _AddEntityIOEventDouble; - public unsafe static void AddEntityIOEventDouble(nint entity, string input, nint activator, nint caller, double value, float delay) + public unsafe static void AddEntityIOEventDouble( nint entity, string input, nint activator, nint caller, double value, float delay ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AddEntityIOEventDouble(entity, inputBufferPtr, activator, caller, value, delay); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AddEntityIOEventBool; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, byte, float, void > _AddEntityIOEventBool; - public unsafe static void AddEntityIOEventBool(nint entity, string input, nint activator, nint caller, bool value, float delay) + public unsafe static void AddEntityIOEventBool( nint entity, string input, nint activator, nint caller, bool value, float delay ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { _AddEntityIOEventBool(entity, inputBufferPtr, activator, caller, value ? (byte)1 : (byte)0, delay); + pool.Return(inputBuffer); } } - private unsafe static delegate* unmanaged _AddEntityIOEventString; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, nint, byte*, float, void > _AddEntityIOEventString; - public unsafe static void AddEntityIOEventString(nint entity, string input, nint activator, nint caller, string value, float delay) + public unsafe static void AddEntityIOEventString( nint entity, string input, nint activator, nint caller, string value, float delay ) { - byte[] inputBuffer = Encoding.UTF8.GetBytes(input + "\0"); - byte[] valueBuffer = Encoding.UTF8.GetBytes(value + "\0"); + var pool = ArrayPool.Shared; + var inputLength = Encoding.UTF8.GetByteCount(input); + var inputBuffer = pool.Rent(inputLength + 1); + _ = Encoding.UTF8.GetBytes(input, inputBuffer); + inputBuffer[inputLength] = 0; + var valueLength = Encoding.UTF8.GetByteCount(value); + var valueBuffer = pool.Rent(valueLength + 1); + _ = Encoding.UTF8.GetBytes(value, valueBuffer); + valueBuffer[valueLength] = 0; fixed (byte* inputBufferPtr = inputBuffer) { fixed (byte* valueBufferPtr = valueBuffer) { _AddEntityIOEventString(entity, inputBufferPtr, activator, caller, valueBufferPtr, delay); + pool.Return(inputBuffer); + pool.Return(valueBuffer); } } } - private unsafe static delegate* unmanaged _IsValidEntity; + private static readonly unsafe delegate* unmanaged< nint, byte > _IsValidEntity; - public unsafe static bool IsValidEntity(nint entity) + public unsafe static bool IsValidEntity( nint entity ) { var ret = _IsValidEntity(entity); return ret == 1; } - private unsafe static delegate* unmanaged _GetGameRules; + private static readonly unsafe delegate* unmanaged< nint > _GetGameRules; public unsafe static nint GetGameRules() { @@ -237,7 +329,7 @@ public unsafe static nint GetGameRules() return ret; } - private unsafe static delegate* unmanaged _GetEntitySystem; + private static readonly unsafe delegate* unmanaged< nint > _GetEntitySystem; public unsafe static nint GetEntitySystem() { @@ -245,31 +337,31 @@ public unsafe static nint GetEntitySystem() return ret; } - private unsafe static delegate* unmanaged _EntityHandleIsValid; + private static readonly unsafe delegate* unmanaged< uint, byte > _EntityHandleIsValid; - public unsafe static bool EntityHandleIsValid(uint handle) + public unsafe static bool EntityHandleIsValid( uint handle ) { var ret = _EntityHandleIsValid(handle); return ret == 1; } - private unsafe static delegate* unmanaged _EntityHandleGet; + private static readonly unsafe delegate* unmanaged< uint, nint > _EntityHandleGet; - public unsafe static nint EntityHandleGet(uint handle) + public unsafe static nint EntityHandleGet( uint handle ) { var ret = _EntityHandleGet(handle); return ret; } - private unsafe static delegate* unmanaged _GetEntityHandleFromEntity; + private static readonly unsafe delegate* unmanaged< nint, uint > _GetEntityHandleFromEntity; - public unsafe static uint GetEntityHandleFromEntity(nint entity) + public unsafe static uint GetEntityHandleFromEntity( nint entity ) { var ret = _GetEntityHandleFromEntity(entity); return ret; } - private unsafe static delegate* unmanaged _GetFirstActiveEntity; + private static readonly unsafe delegate* unmanaged< nint > _GetFirstActiveEntity; public unsafe static nint GetFirstActiveEntity() { @@ -277,35 +369,44 @@ public unsafe static nint GetFirstActiveEntity() return ret; } - private unsafe static delegate* unmanaged _HookEntityOutput; + private static readonly unsafe delegate* unmanaged< byte*, byte*, nint, ulong > _HookEntityOutput; /// /// CEntityIOOutput*, string outputName, CEntityInstance* activator, CEntityInstance* caller, float delay -> int (HookResult) /// - public unsafe static ulong HookEntityOutput(string className, string outputName, nint callback) + public unsafe static ulong HookEntityOutput( string className, string outputName, nint callback ) { - byte[] classNameBuffer = Encoding.UTF8.GetBytes(className + "\0"); - byte[] outputNameBuffer = Encoding.UTF8.GetBytes(outputName + "\0"); + var pool = ArrayPool.Shared; + var classNameLength = Encoding.UTF8.GetByteCount(className); + var classNameBuffer = pool.Rent(classNameLength + 1); + _ = Encoding.UTF8.GetBytes(className, classNameBuffer); + classNameBuffer[classNameLength] = 0; + var outputNameLength = Encoding.UTF8.GetByteCount(outputName); + var outputNameBuffer = pool.Rent(outputNameLength + 1); + _ = Encoding.UTF8.GetBytes(outputName, outputNameBuffer); + outputNameBuffer[outputNameLength] = 0; fixed (byte* classNameBufferPtr = classNameBuffer) { fixed (byte* outputNameBufferPtr = outputNameBuffer) { var ret = _HookEntityOutput(classNameBufferPtr, outputNameBufferPtr, callback); + pool.Return(classNameBuffer); + pool.Return(outputNameBuffer); return ret; } } } - private unsafe static delegate* unmanaged _UnhookEntityOutput; + private static readonly unsafe delegate* unmanaged< ulong, void > _UnhookEntityOutput; - public unsafe static void UnhookEntityOutput(ulong hookid) + public unsafe static void UnhookEntityOutput( ulong hookid ) { _UnhookEntityOutput(hookid); } - private unsafe static delegate* unmanaged _GetEntityByIndex; + private static readonly unsafe delegate* unmanaged< uint, nint > _GetEntityByIndex; - public unsafe static nint GetEntityByIndex(uint index) + public unsafe static nint GetEntityByIndex( uint index ) { var ret = _GetEntityByIndex(index); return ret; diff --git a/managed/src/SwiftlyS2.Generated/Natives/Events.cs b/managed/src/SwiftlyS2.Generated/Natives/Events.cs index 2c0a6a721..508d72e26 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Events.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Events.cs @@ -1,173 +1,177 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 -using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; - namespace SwiftlyS2.Core.Natives; internal static class NativeEvents { - private static int _MainThreadID; - - private unsafe static delegate* unmanaged _RegisterOnGameTickCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnGameTickCallback; /// /// bool simulating, bool first, bool last -> void /// - public unsafe static void RegisterOnGameTickCallback(nint callback) + public unsafe static void RegisterOnGameTickCallback( nint callback ) { _RegisterOnGameTickCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnClientConnectCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnClientConnectCallback; /// /// int32 playerid -> bool (true -> ignored, false -> supercede) /// - public unsafe static void RegisterOnClientConnectCallback(nint callback) + public unsafe static void RegisterOnClientConnectCallback( nint callback ) { _RegisterOnClientConnectCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnClientDisconnectCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnClientDisconnectCallback; /// /// int32 playerid, ENetworkDisconnectReason (int32) reason -> void /// - public unsafe static void RegisterOnClientDisconnectCallback(nint callback) + public unsafe static void RegisterOnClientDisconnectCallback( nint callback ) { _RegisterOnClientDisconnectCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnClientKeyStateChangedCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnClientKeyStateChangedCallback; /// /// int32 playerid, string key, bool pressed -> void /// - public unsafe static void RegisterOnClientKeyStateChangedCallback(nint callback) + public unsafe static void RegisterOnClientKeyStateChangedCallback( nint callback ) { _RegisterOnClientKeyStateChangedCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnClientProcessUsercmdsCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnClientProcessUsercmdsCallback; /// /// int32 playerid, ptr* usercmds, int numcmds, bool paused, float margin -> void /// - public unsafe static void RegisterOnClientProcessUsercmdsCallback(nint callback) + public unsafe static void RegisterOnClientProcessUsercmdsCallback( nint callback ) { _RegisterOnClientProcessUsercmdsCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnClientPutInServerCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnClientPutInServerCallback; /// /// int32 playerid, int32 client_kind (0 -> player, 1 -> bot, 2 -> unknown) -> void /// - public unsafe static void RegisterOnClientPutInServerCallback(nint callback) + public unsafe static void RegisterOnClientPutInServerCallback( nint callback ) { _RegisterOnClientPutInServerCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnClientSteamAuthorizeCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnClientSteamAuthorizeCallback; /// /// int32 playerid -> void /// - public unsafe static void RegisterOnClientSteamAuthorizeCallback(nint callback) + public unsafe static void RegisterOnClientSteamAuthorizeCallback( nint callback ) { _RegisterOnClientSteamAuthorizeCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnClientSteamAuthorizeFailCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnClientSteamAuthorizeFailCallback; /// /// int32 playerid -> void /// - public unsafe static void RegisterOnClientSteamAuthorizeFailCallback(nint callback) + public unsafe static void RegisterOnClientSteamAuthorizeFailCallback( nint callback ) { _RegisterOnClientSteamAuthorizeFailCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnEntityCreatedCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnEntityCreatedCallback; /// /// CEntityInstance* entity /// - public unsafe static void RegisterOnEntityCreatedCallback(nint callback) + public unsafe static void RegisterOnEntityCreatedCallback( nint callback ) { _RegisterOnEntityCreatedCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnEntityDeletedCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnEntityDeletedCallback; /// /// CEntityInstance* entity /// - public unsafe static void RegisterOnEntityDeletedCallback(nint callback) + public unsafe static void RegisterOnEntityDeletedCallback( nint callback ) { _RegisterOnEntityDeletedCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnEntityParentChangedCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnEntityParentChangedCallback; /// /// CEntityInstance* entity, CEntityInstance* newparent /// - public unsafe static void RegisterOnEntityParentChangedCallback(nint callback) + public unsafe static void RegisterOnEntityParentChangedCallback( nint callback ) { _RegisterOnEntityParentChangedCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnEntitySpawnedCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnEntitySpawnedCallback; /// /// CEntityInstance* entity /// - public unsafe static void RegisterOnEntitySpawnedCallback(nint callback) + public unsafe static void RegisterOnEntitySpawnedCallback( nint callback ) { _RegisterOnEntitySpawnedCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnMapLoadCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnMapLoadCallback; /// /// string mapname /// - public unsafe static void RegisterOnMapLoadCallback(nint callback) + public unsafe static void RegisterOnMapLoadCallback( nint callback ) { _RegisterOnMapLoadCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnMapUnloadCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnMapUnloadCallback; /// /// string mapname /// - public unsafe static void RegisterOnMapUnloadCallback(nint callback) + public unsafe static void RegisterOnMapUnloadCallback( nint callback ) { _RegisterOnMapUnloadCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnEntityTakeDamageCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnEntityTakeDamageCallback; /// /// CBaseEntity* entity, CTakeDamageInfo* info -> bool (true -> ignored, false -> supercede) /// - public unsafe static void RegisterOnEntityTakeDamageCallback(nint callback) + public unsafe static void RegisterOnEntityTakeDamageCallback( nint callback ) { _RegisterOnEntityTakeDamageCallback(callback); } - private unsafe static delegate* unmanaged _RegisterOnPrecacheResourceCallback; + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnPrecacheResourceCallback; /// /// IEntityResourceManifest* pResourceManifest /// - public unsafe static void RegisterOnPrecacheResourceCallback(nint callback) + public unsafe static void RegisterOnPrecacheResourceCallback( nint callback ) { _RegisterOnPrecacheResourceCallback(callback); } + + private static readonly unsafe delegate* unmanaged< nint, void > _RegisterOnPreworldUpdateCallback; + + /// + /// bool simulating + /// + public unsafe static void RegisterOnPreworldUpdateCallback( nint callback ) + { + _RegisterOnPreworldUpdateCallback(callback); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Generated/Natives/FileSystem.cs b/managed/src/SwiftlyS2.Generated/Natives/FileSystem.cs index 134a76b5f..1d04d1dce 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/FileSystem.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/FileSystem.cs @@ -1,131 +1,194 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeFileSystem { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _GetSearchPath; + private static readonly unsafe delegate* unmanaged< byte*, byte*, int, int, int > _GetSearchPath; - public unsafe static string GetSearchPath(string pathId, int searchPathType, int searchPathsToGet) + public unsafe static string GetSearchPath( string pathId, int searchPathType, int searchPathsToGet ) { - byte[] pathIdBuffer = Encoding.UTF8.GetBytes(pathId + "\0"); + var pool = ArrayPool.Shared; + var pathIdLength = Encoding.UTF8.GetByteCount(pathId); + var pathIdBuffer = pool.Rent(pathIdLength + 1); + _ = Encoding.UTF8.GetBytes(pathId, pathIdBuffer); + pathIdBuffer[pathIdLength] = 0; fixed (byte* pathIdBufferPtr = pathIdBuffer) { var ret = _GetSearchPath(null, pathIdBufferPtr, searchPathType, searchPathsToGet); - var retBuffer = new byte[ret + 1]; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetSearchPath(retBufferPtr, pathIdBufferPtr, searchPathType, searchPathsToGet); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + pool.Return(pathIdBuffer); + return retString; } } } - private unsafe static delegate* unmanaged _AddSearchPath; + private static readonly unsafe delegate* unmanaged< byte*, byte*, int, int, void > _AddSearchPath; - public unsafe static void AddSearchPath(string path, string pathId, int searchPathAdd, int searchPathPriority) + public unsafe static void AddSearchPath( string path, string pathId, int searchPathAdd, int searchPathPriority ) { - byte[] pathBuffer = Encoding.UTF8.GetBytes(path + "\0"); - byte[] pathIdBuffer = Encoding.UTF8.GetBytes(pathId + "\0"); + var pool = ArrayPool.Shared; + var pathLength = Encoding.UTF8.GetByteCount(path); + var pathBuffer = pool.Rent(pathLength + 1); + _ = Encoding.UTF8.GetBytes(path, pathBuffer); + pathBuffer[pathLength] = 0; + var pathIdLength = Encoding.UTF8.GetByteCount(pathId); + var pathIdBuffer = pool.Rent(pathIdLength + 1); + _ = Encoding.UTF8.GetBytes(pathId, pathIdBuffer); + pathIdBuffer[pathIdLength] = 0; fixed (byte* pathBufferPtr = pathBuffer) { fixed (byte* pathIdBufferPtr = pathIdBuffer) { _AddSearchPath(pathBufferPtr, pathIdBufferPtr, searchPathAdd, searchPathPriority); + pool.Return(pathBuffer); + pool.Return(pathIdBuffer); } } } - private unsafe static delegate* unmanaged _RemoveSearchPath; + private static readonly unsafe delegate* unmanaged< byte*, byte*, byte > _RemoveSearchPath; - public unsafe static bool RemoveSearchPath(string path, string pathId) + public unsafe static bool RemoveSearchPath( string path, string pathId ) { - byte[] pathBuffer = Encoding.UTF8.GetBytes(path + "\0"); - byte[] pathIdBuffer = Encoding.UTF8.GetBytes(pathId + "\0"); + var pool = ArrayPool.Shared; + var pathLength = Encoding.UTF8.GetByteCount(path); + var pathBuffer = pool.Rent(pathLength + 1); + _ = Encoding.UTF8.GetBytes(path, pathBuffer); + pathBuffer[pathLength] = 0; + var pathIdLength = Encoding.UTF8.GetByteCount(pathId); + var pathIdBuffer = pool.Rent(pathIdLength + 1); + _ = Encoding.UTF8.GetBytes(pathId, pathIdBuffer); + pathIdBuffer[pathIdLength] = 0; fixed (byte* pathBufferPtr = pathBuffer) { fixed (byte* pathIdBufferPtr = pathIdBuffer) { var ret = _RemoveSearchPath(pathBufferPtr, pathIdBufferPtr); + pool.Return(pathBuffer); + pool.Return(pathIdBuffer); return ret == 1; } } } - private unsafe static delegate* unmanaged _FileExists; + private static readonly unsafe delegate* unmanaged< byte*, byte*, byte > _FileExists; - public unsafe static bool FileExists(string fileName, string pathId) + public unsafe static bool FileExists( string fileName, string pathId ) { - byte[] fileNameBuffer = Encoding.UTF8.GetBytes(fileName + "\0"); - byte[] pathIdBuffer = Encoding.UTF8.GetBytes(pathId + "\0"); + var pool = ArrayPool.Shared; + var fileNameLength = Encoding.UTF8.GetByteCount(fileName); + var fileNameBuffer = pool.Rent(fileNameLength + 1); + _ = Encoding.UTF8.GetBytes(fileName, fileNameBuffer); + fileNameBuffer[fileNameLength] = 0; + var pathIdLength = Encoding.UTF8.GetByteCount(pathId); + var pathIdBuffer = pool.Rent(pathIdLength + 1); + _ = Encoding.UTF8.GetBytes(pathId, pathIdBuffer); + pathIdBuffer[pathIdLength] = 0; fixed (byte* fileNameBufferPtr = fileNameBuffer) { fixed (byte* pathIdBufferPtr = pathIdBuffer) { var ret = _FileExists(fileNameBufferPtr, pathIdBufferPtr); + pool.Return(fileNameBuffer); + pool.Return(pathIdBuffer); return ret == 1; } } } - private unsafe static delegate* unmanaged _IsDirectory; + private static readonly unsafe delegate* unmanaged< byte*, byte*, byte > _IsDirectory; - public unsafe static bool IsDirectory(string path, string pathId) + public unsafe static bool IsDirectory( string path, string pathId ) { - byte[] pathBuffer = Encoding.UTF8.GetBytes(path + "\0"); - byte[] pathIdBuffer = Encoding.UTF8.GetBytes(pathId + "\0"); + var pool = ArrayPool.Shared; + var pathLength = Encoding.UTF8.GetByteCount(path); + var pathBuffer = pool.Rent(pathLength + 1); + _ = Encoding.UTF8.GetBytes(path, pathBuffer); + pathBuffer[pathLength] = 0; + var pathIdLength = Encoding.UTF8.GetByteCount(pathId); + var pathIdBuffer = pool.Rent(pathIdLength + 1); + _ = Encoding.UTF8.GetBytes(pathId, pathIdBuffer); + pathIdBuffer[pathIdLength] = 0; fixed (byte* pathBufferPtr = pathBuffer) { fixed (byte* pathIdBufferPtr = pathIdBuffer) { var ret = _IsDirectory(pathBufferPtr, pathIdBufferPtr); + pool.Return(pathBuffer); + pool.Return(pathIdBuffer); return ret == 1; } } } - private unsafe static delegate* unmanaged _PrintSearchPaths; + private static readonly unsafe delegate* unmanaged< void > _PrintSearchPaths; public unsafe static void PrintSearchPaths() { _PrintSearchPaths(); } - private unsafe static delegate* unmanaged _ReadFile; + private static readonly unsafe delegate* unmanaged< byte*, byte*, byte*, int > _ReadFile; - public unsafe static string ReadFile(string fileName, string pathId) + public unsafe static string ReadFile( string fileName, string pathId ) { - byte[] fileNameBuffer = Encoding.UTF8.GetBytes(fileName + "\0"); - byte[] pathIdBuffer = Encoding.UTF8.GetBytes(pathId + "\0"); + var pool = ArrayPool.Shared; + var fileNameLength = Encoding.UTF8.GetByteCount(fileName); + var fileNameBuffer = pool.Rent(fileNameLength + 1); + _ = Encoding.UTF8.GetBytes(fileName, fileNameBuffer); + fileNameBuffer[fileNameLength] = 0; + var pathIdLength = Encoding.UTF8.GetByteCount(pathId); + var pathIdBuffer = pool.Rent(pathIdLength + 1); + _ = Encoding.UTF8.GetBytes(pathId, pathIdBuffer); + pathIdBuffer[pathIdLength] = 0; fixed (byte* fileNameBufferPtr = fileNameBuffer) { fixed (byte* pathIdBufferPtr = pathIdBuffer) { var ret = _ReadFile(null, fileNameBufferPtr, pathIdBufferPtr); - var retBuffer = new byte[ret + 1]; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _ReadFile(retBufferPtr, fileNameBufferPtr, pathIdBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + pool.Return(fileNameBuffer); + pool.Return(pathIdBuffer); + return retString; } } } } - private unsafe static delegate* unmanaged _WriteFile; + private static readonly unsafe delegate* unmanaged< byte*, byte*, byte*, byte > _WriteFile; - public unsafe static bool WriteFile(string fileName, string pathId, string content) + public unsafe static bool WriteFile( string fileName, string pathId, string content ) { - byte[] fileNameBuffer = Encoding.UTF8.GetBytes(fileName + "\0"); - byte[] pathIdBuffer = Encoding.UTF8.GetBytes(pathId + "\0"); - byte[] contentBuffer = Encoding.UTF8.GetBytes(content + "\0"); + var pool = ArrayPool.Shared; + var fileNameLength = Encoding.UTF8.GetByteCount(fileName); + var fileNameBuffer = pool.Rent(fileNameLength + 1); + _ = Encoding.UTF8.GetBytes(fileName, fileNameBuffer); + fileNameBuffer[fileNameLength] = 0; + var pathIdLength = Encoding.UTF8.GetByteCount(pathId); + var pathIdBuffer = pool.Rent(pathIdLength + 1); + _ = Encoding.UTF8.GetBytes(pathId, pathIdBuffer); + pathIdBuffer[pathIdLength] = 0; + var contentLength = Encoding.UTF8.GetByteCount(content); + var contentBuffer = pool.Rent(contentLength + 1); + _ = Encoding.UTF8.GetBytes(content, contentBuffer); + contentBuffer[contentLength] = 0; fixed (byte* fileNameBufferPtr = fileNameBuffer) { fixed (byte* pathIdBufferPtr = pathIdBuffer) @@ -133,71 +196,110 @@ public unsafe static bool WriteFile(string fileName, string pathId, string conte fixed (byte* contentBufferPtr = contentBuffer) { var ret = _WriteFile(fileNameBufferPtr, pathIdBufferPtr, contentBufferPtr); + pool.Return(fileNameBuffer); + pool.Return(pathIdBuffer); + pool.Return(contentBuffer); return ret == 1; } } } } - private unsafe static delegate* unmanaged _GetFileSize; + private static readonly unsafe delegate* unmanaged< byte*, byte*, uint > _GetFileSize; - public unsafe static uint GetFileSize(string fileName, string pathId) + public unsafe static uint GetFileSize( string fileName, string pathId ) { - byte[] fileNameBuffer = Encoding.UTF8.GetBytes(fileName + "\0"); - byte[] pathIdBuffer = Encoding.UTF8.GetBytes(pathId + "\0"); + var pool = ArrayPool.Shared; + var fileNameLength = Encoding.UTF8.GetByteCount(fileName); + var fileNameBuffer = pool.Rent(fileNameLength + 1); + _ = Encoding.UTF8.GetBytes(fileName, fileNameBuffer); + fileNameBuffer[fileNameLength] = 0; + var pathIdLength = Encoding.UTF8.GetByteCount(pathId); + var pathIdBuffer = pool.Rent(pathIdLength + 1); + _ = Encoding.UTF8.GetBytes(pathId, pathIdBuffer); + pathIdBuffer[pathIdLength] = 0; fixed (byte* fileNameBufferPtr = fileNameBuffer) { fixed (byte* pathIdBufferPtr = pathIdBuffer) { var ret = _GetFileSize(fileNameBufferPtr, pathIdBufferPtr); + pool.Return(fileNameBuffer); + pool.Return(pathIdBuffer); return ret; } } } - private unsafe static delegate* unmanaged _PrecacheFile; + private static readonly unsafe delegate* unmanaged< byte*, byte*, byte > _PrecacheFile; - public unsafe static bool PrecacheFile(string fileName, string pathId) + public unsafe static bool PrecacheFile( string fileName, string pathId ) { - byte[] fileNameBuffer = Encoding.UTF8.GetBytes(fileName + "\0"); - byte[] pathIdBuffer = Encoding.UTF8.GetBytes(pathId + "\0"); + var pool = ArrayPool.Shared; + var fileNameLength = Encoding.UTF8.GetByteCount(fileName); + var fileNameBuffer = pool.Rent(fileNameLength + 1); + _ = Encoding.UTF8.GetBytes(fileName, fileNameBuffer); + fileNameBuffer[fileNameLength] = 0; + var pathIdLength = Encoding.UTF8.GetByteCount(pathId); + var pathIdBuffer = pool.Rent(pathIdLength + 1); + _ = Encoding.UTF8.GetBytes(pathId, pathIdBuffer); + pathIdBuffer[pathIdLength] = 0; fixed (byte* fileNameBufferPtr = fileNameBuffer) { fixed (byte* pathIdBufferPtr = pathIdBuffer) { var ret = _PrecacheFile(fileNameBufferPtr, pathIdBufferPtr); + pool.Return(fileNameBuffer); + pool.Return(pathIdBuffer); return ret == 1; } } } - private unsafe static delegate* unmanaged _IsFileWritable; + private static readonly unsafe delegate* unmanaged< byte*, byte*, byte > _IsFileWritable; - public unsafe static bool IsFileWritable(string fileName, string pathId) + public unsafe static bool IsFileWritable( string fileName, string pathId ) { - byte[] fileNameBuffer = Encoding.UTF8.GetBytes(fileName + "\0"); - byte[] pathIdBuffer = Encoding.UTF8.GetBytes(pathId + "\0"); + var pool = ArrayPool.Shared; + var fileNameLength = Encoding.UTF8.GetByteCount(fileName); + var fileNameBuffer = pool.Rent(fileNameLength + 1); + _ = Encoding.UTF8.GetBytes(fileName, fileNameBuffer); + fileNameBuffer[fileNameLength] = 0; + var pathIdLength = Encoding.UTF8.GetByteCount(pathId); + var pathIdBuffer = pool.Rent(pathIdLength + 1); + _ = Encoding.UTF8.GetBytes(pathId, pathIdBuffer); + pathIdBuffer[pathIdLength] = 0; fixed (byte* fileNameBufferPtr = fileNameBuffer) { fixed (byte* pathIdBufferPtr = pathIdBuffer) { var ret = _IsFileWritable(fileNameBufferPtr, pathIdBufferPtr); + pool.Return(fileNameBuffer); + pool.Return(pathIdBuffer); return ret == 1; } } } - private unsafe static delegate* unmanaged _SetFileWritable; + private static readonly unsafe delegate* unmanaged< byte*, byte*, byte, byte > _SetFileWritable; - public unsafe static bool SetFileWritable(string fileName, string pathId, bool writable) + public unsafe static bool SetFileWritable( string fileName, string pathId, bool writable ) { - byte[] fileNameBuffer = Encoding.UTF8.GetBytes(fileName + "\0"); - byte[] pathIdBuffer = Encoding.UTF8.GetBytes(pathId + "\0"); + var pool = ArrayPool.Shared; + var fileNameLength = Encoding.UTF8.GetByteCount(fileName); + var fileNameBuffer = pool.Rent(fileNameLength + 1); + _ = Encoding.UTF8.GetBytes(fileName, fileNameBuffer); + fileNameBuffer[fileNameLength] = 0; + var pathIdLength = Encoding.UTF8.GetByteCount(pathId); + var pathIdBuffer = pool.Rent(pathIdLength + 1); + _ = Encoding.UTF8.GetBytes(pathId, pathIdBuffer); + pathIdBuffer[pathIdLength] = 0; fixed (byte* fileNameBufferPtr = fileNameBuffer) { fixed (byte* pathIdBufferPtr = pathIdBuffer) { var ret = _SetFileWritable(fileNameBufferPtr, pathIdBufferPtr, writable ? (byte)1 : (byte)0); + pool.Return(fileNameBuffer); + pool.Return(pathIdBuffer); return ret == 1; } } diff --git a/managed/src/SwiftlyS2.Generated/Natives/GameEvents.cs b/managed/src/SwiftlyS2.Generated/Natives/GameEvents.cs index b598fe90b..3a6f5eb9e 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/GameEvents.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/GameEvents.cs @@ -1,421 +1,561 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeGameEvents { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _GetBool; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte > _GetBool; - public unsafe static bool GetBool(nint _event, string key) + public unsafe static bool GetBool( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetBool(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _GetInt; + private static readonly unsafe delegate* unmanaged< nint, byte*, int > _GetInt; - public unsafe static int GetInt(nint _event, string key) + public unsafe static int GetInt( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetInt(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetUint64; + private static readonly unsafe delegate* unmanaged< nint, byte*, ulong > _GetUint64; - public unsafe static ulong GetUint64(nint _event, string key) + public unsafe static ulong GetUint64( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetUint64(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetFloat; + private static readonly unsafe delegate* unmanaged< nint, byte*, float > _GetFloat; - public unsafe static float GetFloat(nint _event, string key) + public unsafe static float GetFloat( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetFloat(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetString; + private static readonly unsafe delegate* unmanaged< byte*, nint, byte*, int > _GetString; - public unsafe static string GetString(nint _event, string key) + public unsafe static string GetString( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetString(null, _event, keyBufferPtr); - var retBuffer = new byte[ret + 1]; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetString(retBufferPtr, _event, keyBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + pool.Return(keyBuffer); + return retString; } } } - private unsafe static delegate* unmanaged _GetPtr; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint > _GetPtr; - public unsafe static nint GetPtr(nint _event, string key) + public unsafe static nint GetPtr( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetPtr(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetEHandle; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint > _GetEHandle; /// /// returns the pointer stored inside the handle /// - public unsafe static nint GetEHandle(nint _event, string key) + public unsafe static nint GetEHandle( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetEHandle(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetEntity; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint > _GetEntity; - public unsafe static nint GetEntity(nint _event, string key) + public unsafe static nint GetEntity( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetEntity(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetEntityIndex; + private static readonly unsafe delegate* unmanaged< nint, byte*, int > _GetEntityIndex; - public unsafe static int GetEntityIndex(nint _event, string key) + public unsafe static int GetEntityIndex( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetEntityIndex(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetPlayerSlot; + private static readonly unsafe delegate* unmanaged< nint, byte*, int > _GetPlayerSlot; - public unsafe static int GetPlayerSlot(nint _event, string key) + public unsafe static int GetPlayerSlot( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetPlayerSlot(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetPlayerController; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint > _GetPlayerController; - public unsafe static nint GetPlayerController(nint _event, string key) + public unsafe static nint GetPlayerController( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetPlayerController(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetPlayerPawn; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint > _GetPlayerPawn; - public unsafe static nint GetPlayerPawn(nint _event, string key) + public unsafe static nint GetPlayerPawn( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetPlayerPawn(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetPawnEHandle; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint > _GetPawnEHandle; /// /// returns the pointer stored inside the handle /// - public unsafe static nint GetPawnEHandle(nint _event, string key) + public unsafe static nint GetPawnEHandle( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetPawnEHandle(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetPawnEntityIndex; + private static readonly unsafe delegate* unmanaged< nint, byte*, int > _GetPawnEntityIndex; - public unsafe static int GetPawnEntityIndex(nint _event, string key) + public unsafe static int GetPawnEntityIndex( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _GetPawnEntityIndex(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetBool; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte, void > _SetBool; - public unsafe static void SetBool(nint _event, string key, bool value) + public unsafe static void SetBool( nint _event, string key, bool value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetBool(_event, keyBufferPtr, value ? (byte)1 : (byte)0); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetInt; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, void > _SetInt; - public unsafe static void SetInt(nint _event, string key, int value) + public unsafe static void SetInt( nint _event, string key, int value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetInt(_event, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetUint64; + private static readonly unsafe delegate* unmanaged< nint, byte*, ulong, void > _SetUint64; - public unsafe static void SetUint64(nint _event, string key, ulong value) + public unsafe static void SetUint64( nint _event, string key, ulong value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetUint64(_event, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetFloat; + private static readonly unsafe delegate* unmanaged< nint, byte*, float, void > _SetFloat; - public unsafe static void SetFloat(nint _event, string key, float value) + public unsafe static void SetFloat( nint _event, string key, float value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetFloat(_event, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetString; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte*, void > _SetString; - public unsafe static void SetString(nint _event, string key, string value) + public unsafe static void SetString( nint _event, string key, string value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); - byte[] valueBuffer = Encoding.UTF8.GetBytes(value + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; + var valueLength = Encoding.UTF8.GetByteCount(value); + var valueBuffer = pool.Rent(valueLength + 1); + _ = Encoding.UTF8.GetBytes(value, valueBuffer); + valueBuffer[valueLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { fixed (byte* valueBufferPtr = valueBuffer) { _SetString(_event, keyBufferPtr, valueBufferPtr); + pool.Return(keyBuffer); + pool.Return(valueBuffer); } } } - private unsafe static delegate* unmanaged _SetPtr; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, void > _SetPtr; - public unsafe static void SetPtr(nint _event, string key, nint value) + public unsafe static void SetPtr( nint _event, string key, nint value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetPtr(_event, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetEntity; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint, void > _SetEntity; - public unsafe static void SetEntity(nint _event, string key, nint value) + public unsafe static void SetEntity( nint _event, string key, nint value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetEntity(_event, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetEntityIndex; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, void > _SetEntityIndex; - public unsafe static void SetEntityIndex(nint _event, string key, int value) + public unsafe static void SetEntityIndex( nint _event, string key, int value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetEntityIndex(_event, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _SetPlayerSlot; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, void > _SetPlayerSlot; - public unsafe static void SetPlayerSlot(nint _event, string key, int value) + public unsafe static void SetPlayerSlot( nint _event, string key, int value ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { _SetPlayerSlot(_event, keyBufferPtr, value); + pool.Return(keyBuffer); } } - private unsafe static delegate* unmanaged _HasKey; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte > _HasKey; - public unsafe static bool HasKey(nint _event, string key) + public unsafe static bool HasKey( nint _event, string key ) { - byte[] keyBuffer = Encoding.UTF8.GetBytes(key + "\0"); + var pool = ArrayPool.Shared; + var keyLength = Encoding.UTF8.GetByteCount(key); + var keyBuffer = pool.Rent(keyLength + 1); + _ = Encoding.UTF8.GetBytes(key, keyBuffer); + keyBuffer[keyLength] = 0; fixed (byte* keyBufferPtr = keyBuffer) { var ret = _HasKey(_event, keyBufferPtr); + pool.Return(keyBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _IsReliable; + private static readonly unsafe delegate* unmanaged< nint, byte > _IsReliable; - public unsafe static bool IsReliable(nint _event) + public unsafe static bool IsReliable( nint _event ) { var ret = _IsReliable(_event); return ret == 1; } - private unsafe static delegate* unmanaged _IsLocal; + private static readonly unsafe delegate* unmanaged< nint, byte > _IsLocal; - public unsafe static bool IsLocal(nint _event) + public unsafe static bool IsLocal( nint _event ) { var ret = _IsLocal(_event); return ret == 1; } - private unsafe static delegate* unmanaged _RegisterListener; + private static readonly unsafe delegate* unmanaged< byte*, void > _RegisterListener; - public unsafe static void RegisterListener(string eventName) + public unsafe static void RegisterListener( string eventName ) { - byte[] eventNameBuffer = Encoding.UTF8.GetBytes(eventName + "\0"); + var pool = ArrayPool.Shared; + var eventNameLength = Encoding.UTF8.GetByteCount(eventName); + var eventNameBuffer = pool.Rent(eventNameLength + 1); + _ = Encoding.UTF8.GetBytes(eventName, eventNameBuffer); + eventNameBuffer[eventNameLength] = 0; fixed (byte* eventNameBufferPtr = eventNameBuffer) { _RegisterListener(eventNameBufferPtr); + pool.Return(eventNameBuffer); } } - private unsafe static delegate* unmanaged _AddListenerPreCallback; + private static readonly unsafe delegate* unmanaged< nint, ulong > _AddListenerPreCallback; /// /// the callback should receive the following: uint32 eventNameHash, IntPtr gameEvent, bool* dontBroadcast, return bool (true -> ignored, false -> supercede) /// - public unsafe static ulong AddListenerPreCallback(nint callback) + public unsafe static ulong AddListenerPreCallback( nint callback ) { var ret = _AddListenerPreCallback(callback); return ret; } - private unsafe static delegate* unmanaged _AddListenerPostCallback; + private static readonly unsafe delegate* unmanaged< nint, ulong > _AddListenerPostCallback; /// /// the callback should receive the following: uint32 eventNameHash, IntPtr gameEvent, bool* dontBroadcast, return bool (true -> ignored, false -> supercede) /// - public unsafe static ulong AddListenerPostCallback(nint callback) + public unsafe static ulong AddListenerPostCallback( nint callback ) { var ret = _AddListenerPostCallback(callback); return ret; } - private unsafe static delegate* unmanaged _RemoveListenerPreCallback; + private static readonly unsafe delegate* unmanaged< ulong, void > _RemoveListenerPreCallback; - public unsafe static void RemoveListenerPreCallback(ulong listenerID) + public unsafe static void RemoveListenerPreCallback( ulong listenerID ) { _RemoveListenerPreCallback(listenerID); } - private unsafe static delegate* unmanaged _RemoveListenerPostCallback; + private static readonly unsafe delegate* unmanaged< ulong, void > _RemoveListenerPostCallback; - public unsafe static void RemoveListenerPostCallback(ulong listenerID) + public unsafe static void RemoveListenerPostCallback( ulong listenerID ) { _RemoveListenerPostCallback(listenerID); } - private unsafe static delegate* unmanaged _CreateEvent; + private static readonly unsafe delegate* unmanaged< byte*, nint > _CreateEvent; - public unsafe static nint CreateEvent(string eventName) + public unsafe static nint CreateEvent( string eventName ) { - byte[] eventNameBuffer = Encoding.UTF8.GetBytes(eventName + "\0"); + var pool = ArrayPool.Shared; + var eventNameLength = Encoding.UTF8.GetByteCount(eventName); + var eventNameBuffer = pool.Rent(eventNameLength + 1); + _ = Encoding.UTF8.GetBytes(eventName, eventNameBuffer); + eventNameBuffer[eventNameLength] = 0; fixed (byte* eventNameBufferPtr = eventNameBuffer) { var ret = _CreateEvent(eventNameBufferPtr); + pool.Return(eventNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _FreeEvent; + private static readonly unsafe delegate* unmanaged< nint, void > _FreeEvent; - public unsafe static void FreeEvent(nint _event) + public unsafe static void FreeEvent( nint _event ) { _FreeEvent(_event); } - private unsafe static delegate* unmanaged _FireEvent; + private static readonly unsafe delegate* unmanaged< nint, byte, void > _FireEvent; - public unsafe static void FireEvent(nint _event, bool dontBroadcast) + public unsafe static void FireEvent( nint _event, bool dontBroadcast ) { _FireEvent(_event, dontBroadcast ? (byte)1 : (byte)0); } - private unsafe static delegate* unmanaged _FireEventToClient; + private static readonly unsafe delegate* unmanaged< nint, int, void > _FireEventToClient; - public unsafe static void FireEventToClient(nint _event, int playerid) + public unsafe static void FireEventToClient( nint _event, int playerid ) { _FireEventToClient(_event, playerid); } - private unsafe static delegate* unmanaged _IsPlayerListeningToEventName; + private static readonly unsafe delegate* unmanaged< int, byte*, byte > _IsPlayerListeningToEventName; - public unsafe static bool IsPlayerListeningToEventName(int playerid, string eventName) + public unsafe static bool IsPlayerListeningToEventName( int playerid, string eventName ) { - byte[] eventNameBuffer = Encoding.UTF8.GetBytes(eventName + "\0"); + var pool = ArrayPool.Shared; + var eventNameLength = Encoding.UTF8.GetByteCount(eventName); + var eventNameBuffer = pool.Rent(eventNameLength + 1); + _ = Encoding.UTF8.GetBytes(eventName, eventNameBuffer); + eventNameBuffer[eventNameLength] = 0; fixed (byte* eventNameBufferPtr = eventNameBuffer) { var ret = _IsPlayerListeningToEventName(playerid, eventNameBufferPtr); + pool.Return(eventNameBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _IsPlayerListeningToEvent; + private static readonly unsafe delegate* unmanaged< int, nint, byte > _IsPlayerListeningToEvent; - public unsafe static bool IsPlayerListeningToEvent(int playerid, nint _event) + public unsafe static bool IsPlayerListeningToEvent( int playerid, nint _event ) { var ret = _IsPlayerListeningToEvent(playerid, _event); return ret == 1; diff --git a/managed/src/SwiftlyS2.Generated/Natives/Hooks.cs b/managed/src/SwiftlyS2.Generated/Natives/Hooks.cs index 18db02861..56d706d3d 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Hooks.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Hooks.cs @@ -1,17 +1,11 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 -using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; - namespace SwiftlyS2.Core.Natives; internal static class NativeHooks { - private static int _MainThreadID; - - private unsafe static delegate* unmanaged _AllocateHook; + private static readonly unsafe delegate* unmanaged< nint > _AllocateHook; public unsafe static nint AllocateHook() { @@ -19,7 +13,7 @@ public unsafe static nint AllocateHook() return ret; } - private unsafe static delegate* unmanaged _AllocateVHook; + private static readonly unsafe delegate* unmanaged< nint > _AllocateVHook; public unsafe static nint AllocateVHook() { @@ -27,7 +21,7 @@ public unsafe static nint AllocateVHook() return ret; } - private unsafe static delegate* unmanaged _AllocateMHook; + private static readonly unsafe delegate* unmanaged< nint > _AllocateMHook; public unsafe static nint AllocateMHook() { @@ -35,134 +29,134 @@ public unsafe static nint AllocateMHook() return ret; } - private unsafe static delegate* unmanaged _DeallocateHook; + private static readonly unsafe delegate* unmanaged< nint, void > _DeallocateHook; - public unsafe static void DeallocateHook(nint hook) + public unsafe static void DeallocateHook( nint hook ) { _DeallocateHook(hook); } - private unsafe static delegate* unmanaged _DeallocateVHook; + private static readonly unsafe delegate* unmanaged< nint, void > _DeallocateVHook; - public unsafe static void DeallocateVHook(nint hook) + public unsafe static void DeallocateVHook( nint hook ) { _DeallocateVHook(hook); } - private unsafe static delegate* unmanaged _DeallocateMHook; + private static readonly unsafe delegate* unmanaged< nint, void > _DeallocateMHook; - public unsafe static void DeallocateMHook(nint hook) + public unsafe static void DeallocateMHook( nint hook ) { _DeallocateMHook(hook); } - private unsafe static delegate* unmanaged _SetHook; + private static readonly unsafe delegate* unmanaged< nint, nint, nint, void > _SetHook; /// /// the callback should receive the exact arguments as the function has, and to return the same amount of arguments /// - public unsafe static void SetHook(nint hook, nint func, nint callback) + public unsafe static void SetHook( nint hook, nint func, nint callback ) { _SetHook(hook, func, callback); } - private unsafe static delegate* unmanaged _SetVHook; + private static readonly unsafe delegate* unmanaged< nint, nint, int, nint, byte, void > _SetVHook; /// /// the callback should receive the exact arguments as the function has, and to return the same amount of arguments, plus the first argument needs to be the pointer to the original function /// - public unsafe static void SetVHook(nint hook, nint entityOrVTable, int index, nint callback, bool isVtable) + public unsafe static void SetVHook( nint hook, nint entityOrVTable, int index, nint callback, bool isVtable ) { _SetVHook(hook, entityOrVTable, index, callback, isVtable ? (byte)1 : (byte)0); } - private unsafe static delegate* unmanaged _SetMHook; + private static readonly unsafe delegate* unmanaged< nint, nint, nint, void > _SetMHook; /// /// the callback should receive `ref Context64` /// - public unsafe static void SetMHook(nint hook, nint addr, nint callback) + public unsafe static void SetMHook( nint hook, nint addr, nint callback ) { _SetMHook(hook, addr, callback); } - private unsafe static delegate* unmanaged _EnableHook; + private static readonly unsafe delegate* unmanaged< nint, void > _EnableHook; - public unsafe static void EnableHook(nint hook) + public unsafe static void EnableHook( nint hook ) { _EnableHook(hook); } - private unsafe static delegate* unmanaged _EnableVHook; + private static readonly unsafe delegate* unmanaged< nint, void > _EnableVHook; - public unsafe static void EnableVHook(nint hook) + public unsafe static void EnableVHook( nint hook ) { _EnableVHook(hook); } - private unsafe static delegate* unmanaged _EnableMHook; + private static readonly unsafe delegate* unmanaged< nint, void > _EnableMHook; - public unsafe static void EnableMHook(nint hook) + public unsafe static void EnableMHook( nint hook ) { _EnableMHook(hook); } - private unsafe static delegate* unmanaged _DisableHook; + private static readonly unsafe delegate* unmanaged< nint, void > _DisableHook; - public unsafe static void DisableHook(nint hook) + public unsafe static void DisableHook( nint hook ) { _DisableHook(hook); } - private unsafe static delegate* unmanaged _DisableVHook; + private static readonly unsafe delegate* unmanaged< nint, void > _DisableVHook; - public unsafe static void DisableVHook(nint hook) + public unsafe static void DisableVHook( nint hook ) { _DisableVHook(hook); } - private unsafe static delegate* unmanaged _DisableMHook; + private static readonly unsafe delegate* unmanaged< nint, void > _DisableMHook; - public unsafe static void DisableMHook(nint hook) + public unsafe static void DisableMHook( nint hook ) { _DisableMHook(hook); } - private unsafe static delegate* unmanaged _IsHookEnabled; + private static readonly unsafe delegate* unmanaged< nint, byte > _IsHookEnabled; - public unsafe static bool IsHookEnabled(nint hook) + public unsafe static bool IsHookEnabled( nint hook ) { var ret = _IsHookEnabled(hook); return ret == 1; } - private unsafe static delegate* unmanaged _IsVHookEnabled; + private static readonly unsafe delegate* unmanaged< nint, byte > _IsVHookEnabled; - public unsafe static bool IsVHookEnabled(nint hook) + public unsafe static bool IsVHookEnabled( nint hook ) { var ret = _IsVHookEnabled(hook); return ret == 1; } - private unsafe static delegate* unmanaged _IsMHookEnabled; + private static readonly unsafe delegate* unmanaged< nint, byte > _IsMHookEnabled; - public unsafe static bool IsMHookEnabled(nint hook) + public unsafe static bool IsMHookEnabled( nint hook ) { var ret = _IsMHookEnabled(hook); return ret == 1; } - private unsafe static delegate* unmanaged _GetHookOriginal; + private static readonly unsafe delegate* unmanaged< nint, nint > _GetHookOriginal; - public unsafe static nint GetHookOriginal(nint hook) + public unsafe static nint GetHookOriginal( nint hook ) { var ret = _GetHookOriginal(hook); return ret; } - private unsafe static delegate* unmanaged _GetVHookOriginal; + private static readonly unsafe delegate* unmanaged< nint, nint > _GetVHookOriginal; - public unsafe static nint GetVHookOriginal(nint hook) + public unsafe static nint GetVHookOriginal( nint hook ) { var ret = _GetVHookOriginal(hook); return ret; diff --git a/managed/src/SwiftlyS2.Generated/Natives/MemoryHelpers.cs b/managed/src/SwiftlyS2.Generated/Natives/MemoryHelpers.cs index 2f2c4fdf8..471ebc11c 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/MemoryHelpers.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/MemoryHelpers.cs @@ -1,92 +1,122 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeMemoryHelpers { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _FetchInterfaceByName; + private static readonly unsafe delegate* unmanaged< byte*, nint > _FetchInterfaceByName; /// /// supports both internal interface system, but also valve interface system /// - public unsafe static nint FetchInterfaceByName(string ifaceName) + public unsafe static nint FetchInterfaceByName( string ifaceName ) { - byte[] ifaceNameBuffer = Encoding.UTF8.GetBytes(ifaceName + "\0"); + var pool = ArrayPool.Shared; + var ifaceNameLength = Encoding.UTF8.GetByteCount(ifaceName); + var ifaceNameBuffer = pool.Rent(ifaceNameLength + 1); + _ = Encoding.UTF8.GetBytes(ifaceName, ifaceNameBuffer); + ifaceNameBuffer[ifaceNameLength] = 0; fixed (byte* ifaceNameBufferPtr = ifaceNameBuffer) { var ret = _FetchInterfaceByName(ifaceNameBufferPtr); + pool.Return(ifaceNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetVirtualTableAddress; + private static readonly unsafe delegate* unmanaged< byte*, byte*, nint > _GetVirtualTableAddress; - public unsafe static nint GetVirtualTableAddress(string library, string vtableName) + public unsafe static nint GetVirtualTableAddress( string library, string vtableName ) { - byte[] libraryBuffer = Encoding.UTF8.GetBytes(library + "\0"); - byte[] vtableNameBuffer = Encoding.UTF8.GetBytes(vtableName + "\0"); + var pool = ArrayPool.Shared; + var libraryLength = Encoding.UTF8.GetByteCount(library); + var libraryBuffer = pool.Rent(libraryLength + 1); + _ = Encoding.UTF8.GetBytes(library, libraryBuffer); + libraryBuffer[libraryLength] = 0; + var vtableNameLength = Encoding.UTF8.GetByteCount(vtableName); + var vtableNameBuffer = pool.Rent(vtableNameLength + 1); + _ = Encoding.UTF8.GetBytes(vtableName, vtableNameBuffer); + vtableNameBuffer[vtableNameLength] = 0; fixed (byte* libraryBufferPtr = libraryBuffer) { fixed (byte* vtableNameBufferPtr = vtableNameBuffer) { var ret = _GetVirtualTableAddress(libraryBufferPtr, vtableNameBufferPtr); + pool.Return(libraryBuffer); + pool.Return(vtableNameBuffer); return ret; } } } - private unsafe static delegate* unmanaged _GetAddressBySignature; + private static readonly unsafe delegate* unmanaged< byte*, byte*, int, byte, nint > _GetAddressBySignature; - public unsafe static nint GetAddressBySignature(string library, string sig, int len, bool rawBytes) + public unsafe static nint GetAddressBySignature( string library, string sig, int len, bool rawBytes ) { - byte[] libraryBuffer = Encoding.UTF8.GetBytes(library + "\0"); - byte[] sigBuffer = Encoding.UTF8.GetBytes(sig + "\0"); + var pool = ArrayPool.Shared; + var libraryLength = Encoding.UTF8.GetByteCount(library); + var libraryBuffer = pool.Rent(libraryLength + 1); + _ = Encoding.UTF8.GetBytes(library, libraryBuffer); + libraryBuffer[libraryLength] = 0; + var sigLength = Encoding.UTF8.GetByteCount(sig); + var sigBuffer = pool.Rent(sigLength + 1); + _ = Encoding.UTF8.GetBytes(sig, sigBuffer); + sigBuffer[sigLength] = 0; fixed (byte* libraryBufferPtr = libraryBuffer) { fixed (byte* sigBufferPtr = sigBuffer) { var ret = _GetAddressBySignature(libraryBufferPtr, sigBufferPtr, len, rawBytes ? (byte)1 : (byte)0); + pool.Return(libraryBuffer); + pool.Return(sigBuffer); return ret; } } } - private unsafe static delegate* unmanaged _GetObjectPtrVtableName; + private static readonly unsafe delegate* unmanaged< byte*, nint, int > _GetObjectPtrVtableName; - public unsafe static string GetObjectPtrVtableName(nint objptr) + public unsafe static string GetObjectPtrVtableName( nint objptr ) { var ret = _GetObjectPtrVtableName(null, objptr); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetObjectPtrVtableName(retBufferPtr, objptr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } - private unsafe static delegate* unmanaged _ObjectPtrHasVtable; + private static readonly unsafe delegate* unmanaged< nint, byte > _ObjectPtrHasVtable; - public unsafe static bool ObjectPtrHasVtable(nint objptr) + public unsafe static bool ObjectPtrHasVtable( nint objptr ) { var ret = _ObjectPtrHasVtable(objptr); return ret == 1; } - private unsafe static delegate* unmanaged _ObjectPtrHasBaseClass; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte > _ObjectPtrHasBaseClass; - public unsafe static bool ObjectPtrHasBaseClass(nint objptr, string baseClassName) + public unsafe static bool ObjectPtrHasBaseClass( nint objptr, string baseClassName ) { - byte[] baseClassNameBuffer = Encoding.UTF8.GetBytes(baseClassName + "\0"); + var pool = ArrayPool.Shared; + var baseClassNameLength = Encoding.UTF8.GetByteCount(baseClassName); + var baseClassNameBuffer = pool.Rent(baseClassNameLength + 1); + _ = Encoding.UTF8.GetBytes(baseClassName, baseClassNameBuffer); + baseClassNameBuffer[baseClassNameLength] = 0; fixed (byte* baseClassNameBufferPtr = baseClassNameBuffer) { var ret = _ObjectPtrHasBaseClass(objptr, baseClassNameBufferPtr); + pool.Return(baseClassNameBuffer); return ret == 1; } } diff --git a/managed/src/SwiftlyS2.Generated/Natives/NetMessages.cs b/managed/src/SwiftlyS2.Generated/Natives/NetMessages.cs index 7a8d0ba87..f216ed63d 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/NetMessages.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/NetMessages.cs @@ -1,952 +1,1330 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeNetMessages { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _AllocateNetMessageByID; + private static readonly unsafe delegate* unmanaged< int, nint > _AllocateNetMessageByID; - public unsafe static nint AllocateNetMessageByID(int msgid) + public unsafe static nint AllocateNetMessageByID( int msgid ) { var ret = _AllocateNetMessageByID(msgid); return ret; } - private unsafe static delegate* unmanaged _AllocateNetMessageByPartialName; + private static readonly unsafe delegate* unmanaged< byte*, nint > _AllocateNetMessageByPartialName; - public unsafe static nint AllocateNetMessageByPartialName(string name) + public unsafe static nint AllocateNetMessageByPartialName( string name ) { - byte[] nameBuffer = Encoding.UTF8.GetBytes(name + "\0"); + var pool = ArrayPool.Shared; + var nameLength = Encoding.UTF8.GetByteCount(name); + var nameBuffer = pool.Rent(nameLength + 1); + _ = Encoding.UTF8.GetBytes(name, nameBuffer); + nameBuffer[nameLength] = 0; fixed (byte* nameBufferPtr = nameBuffer) { var ret = _AllocateNetMessageByPartialName(nameBufferPtr); + pool.Return(nameBuffer); return ret; } } - private unsafe static delegate* unmanaged _DeallocateNetMessage; + private static readonly unsafe delegate* unmanaged< nint, void > _DeallocateNetMessage; - public unsafe static void DeallocateNetMessage(nint netmsg) + public unsafe static void DeallocateNetMessage( nint netmsg ) { _DeallocateNetMessage(netmsg); } - private unsafe static delegate* unmanaged _HasField; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte > _HasField; - public unsafe static bool HasField(nint netmsg, string fieldName) + public unsafe static bool HasField( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _HasField(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _GetInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, int > _GetInt32; - public unsafe static int GetInt32(nint netmsg, string fieldName) + public unsafe static int GetInt32( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetInt32(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetRepeatedInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, int > _GetRepeatedInt32; - public unsafe static int GetRepeatedInt32(nint netmsg, string fieldName, int index) + public unsafe static int GetRepeatedInt32( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedInt32(netmsg, fieldNameBufferPtr, index); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, void > _SetInt32; - public unsafe static void SetInt32(nint netmsg, string fieldName, int value) + public unsafe static void SetInt32( nint netmsg, string fieldName, int value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetInt32(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _SetRepeatedInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, int, void > _SetRepeatedInt32; - public unsafe static void SetRepeatedInt32(nint netmsg, string fieldName, int index, int value) + public unsafe static void SetRepeatedInt32( nint netmsg, string fieldName, int index, int value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetRepeatedInt32(netmsg, fieldNameBufferPtr, index, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _AddInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, void > _AddInt32; - public unsafe static void AddInt32(nint netmsg, string fieldName, int value) + public unsafe static void AddInt32( nint netmsg, string fieldName, int value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _AddInt32(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, long > _GetInt64; - public unsafe static long GetInt64(nint netmsg, string fieldName) + public unsafe static long GetInt64( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetInt64(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetRepeatedInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, long > _GetRepeatedInt64; - public unsafe static long GetRepeatedInt64(nint netmsg, string fieldName, int index) + public unsafe static long GetRepeatedInt64( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedInt64(netmsg, fieldNameBufferPtr, index); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, long, void > _SetInt64; - public unsafe static void SetInt64(nint netmsg, string fieldName, long value) + public unsafe static void SetInt64( nint netmsg, string fieldName, long value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetInt64(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _SetRepeatedInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, long, void > _SetRepeatedInt64; - public unsafe static void SetRepeatedInt64(nint netmsg, string fieldName, int index, long value) + public unsafe static void SetRepeatedInt64( nint netmsg, string fieldName, int index, long value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetRepeatedInt64(netmsg, fieldNameBufferPtr, index, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _AddInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, long, void > _AddInt64; - public unsafe static void AddInt64(nint netmsg, string fieldName, long value) + public unsafe static void AddInt64( nint netmsg, string fieldName, long value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _AddInt64(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetUInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, uint > _GetUInt32; - public unsafe static uint GetUInt32(nint netmsg, string fieldName) + public unsafe static uint GetUInt32( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetUInt32(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetRepeatedUInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, uint > _GetRepeatedUInt32; - public unsafe static uint GetRepeatedUInt32(nint netmsg, string fieldName, int index) + public unsafe static uint GetRepeatedUInt32( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedUInt32(netmsg, fieldNameBufferPtr, index); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetUInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, uint, void > _SetUInt32; - public unsafe static void SetUInt32(nint netmsg, string fieldName, uint value) + public unsafe static void SetUInt32( nint netmsg, string fieldName, uint value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetUInt32(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _SetRepeatedUInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, uint, void > _SetRepeatedUInt32; - public unsafe static void SetRepeatedUInt32(nint netmsg, string fieldName, int index, uint value) + public unsafe static void SetRepeatedUInt32( nint netmsg, string fieldName, int index, uint value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetRepeatedUInt32(netmsg, fieldNameBufferPtr, index, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _AddUInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, uint, void > _AddUInt32; - public unsafe static void AddUInt32(nint netmsg, string fieldName, uint value) + public unsafe static void AddUInt32( nint netmsg, string fieldName, uint value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _AddUInt32(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetUInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, ulong > _GetUInt64; - public unsafe static ulong GetUInt64(nint netmsg, string fieldName) + public unsafe static ulong GetUInt64( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetUInt64(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetRepeatedUInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, ulong > _GetRepeatedUInt64; - public unsafe static ulong GetRepeatedUInt64(nint netmsg, string fieldName, int index) + public unsafe static ulong GetRepeatedUInt64( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedUInt64(netmsg, fieldNameBufferPtr, index); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetUInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, ulong, void > _SetUInt64; - public unsafe static void SetUInt64(nint netmsg, string fieldName, ulong value) + public unsafe static void SetUInt64( nint netmsg, string fieldName, ulong value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetUInt64(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _SetRepeatedUInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, ulong, void > _SetRepeatedUInt64; - public unsafe static void SetRepeatedUInt64(nint netmsg, string fieldName, int index, ulong value) + public unsafe static void SetRepeatedUInt64( nint netmsg, string fieldName, int index, ulong value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetRepeatedUInt64(netmsg, fieldNameBufferPtr, index, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _AddUInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, ulong, void > _AddUInt64; - public unsafe static void AddUInt64(nint netmsg, string fieldName, ulong value) + public unsafe static void AddUInt64( nint netmsg, string fieldName, ulong value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _AddUInt64(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetBool; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte > _GetBool; - public unsafe static bool GetBool(nint netmsg, string fieldName) + public unsafe static bool GetBool( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetBool(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _GetRepeatedBool; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, byte > _GetRepeatedBool; - public unsafe static bool GetRepeatedBool(nint netmsg, string fieldName, int index) + public unsafe static bool GetRepeatedBool( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedBool(netmsg, fieldNameBufferPtr, index); + pool.Return(fieldNameBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _SetBool; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte, void > _SetBool; - public unsafe static void SetBool(nint netmsg, string fieldName, bool value) + public unsafe static void SetBool( nint netmsg, string fieldName, bool value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetBool(netmsg, fieldNameBufferPtr, value ? (byte)1 : (byte)0); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _SetRepeatedBool; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, byte, void > _SetRepeatedBool; - public unsafe static void SetRepeatedBool(nint netmsg, string fieldName, int index, bool value) + public unsafe static void SetRepeatedBool( nint netmsg, string fieldName, int index, bool value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetRepeatedBool(netmsg, fieldNameBufferPtr, index, value ? (byte)1 : (byte)0); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _AddBool; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte, void > _AddBool; - public unsafe static void AddBool(nint netmsg, string fieldName, bool value) + public unsafe static void AddBool( nint netmsg, string fieldName, bool value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _AddBool(netmsg, fieldNameBufferPtr, value ? (byte)1 : (byte)0); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetFloat; + private static readonly unsafe delegate* unmanaged< nint, byte*, float > _GetFloat; - public unsafe static float GetFloat(nint netmsg, string fieldName) + public unsafe static float GetFloat( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetFloat(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetRepeatedFloat; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, float > _GetRepeatedFloat; - public unsafe static float GetRepeatedFloat(nint netmsg, string fieldName, int index) + public unsafe static float GetRepeatedFloat( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedFloat(netmsg, fieldNameBufferPtr, index); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetFloat; + private static readonly unsafe delegate* unmanaged< nint, byte*, float, void > _SetFloat; - public unsafe static void SetFloat(nint netmsg, string fieldName, float value) + public unsafe static void SetFloat( nint netmsg, string fieldName, float value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetFloat(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _SetRepeatedFloat; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, float, void > _SetRepeatedFloat; - public unsafe static void SetRepeatedFloat(nint netmsg, string fieldName, int index, float value) + public unsafe static void SetRepeatedFloat( nint netmsg, string fieldName, int index, float value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetRepeatedFloat(netmsg, fieldNameBufferPtr, index, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _AddFloat; + private static readonly unsafe delegate* unmanaged< nint, byte*, float, void > _AddFloat; - public unsafe static void AddFloat(nint netmsg, string fieldName, float value) + public unsafe static void AddFloat( nint netmsg, string fieldName, float value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _AddFloat(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetDouble; + private static readonly unsafe delegate* unmanaged< nint, byte*, double > _GetDouble; - public unsafe static double GetDouble(nint netmsg, string fieldName) + public unsafe static double GetDouble( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetDouble(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetRepeatedDouble; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, double > _GetRepeatedDouble; - public unsafe static double GetRepeatedDouble(nint netmsg, string fieldName, int index) + public unsafe static double GetRepeatedDouble( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedDouble(netmsg, fieldNameBufferPtr, index); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetDouble; + private static readonly unsafe delegate* unmanaged< nint, byte*, double, void > _SetDouble; - public unsafe static void SetDouble(nint netmsg, string fieldName, double value) + public unsafe static void SetDouble( nint netmsg, string fieldName, double value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetDouble(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _SetRepeatedDouble; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, double, void > _SetRepeatedDouble; - public unsafe static void SetRepeatedDouble(nint netmsg, string fieldName, int index, double value) + public unsafe static void SetRepeatedDouble( nint netmsg, string fieldName, int index, double value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetRepeatedDouble(netmsg, fieldNameBufferPtr, index, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _AddDouble; + private static readonly unsafe delegate* unmanaged< nint, byte*, double, void > _AddDouble; - public unsafe static void AddDouble(nint netmsg, string fieldName, double value) + public unsafe static void AddDouble( nint netmsg, string fieldName, double value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _AddDouble(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetString; + private static readonly unsafe delegate* unmanaged< byte*, nint, byte*, int > _GetString; - public unsafe static string GetString(nint netmsg, string fieldName) + public unsafe static string GetString( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetString(null, netmsg, fieldNameBufferPtr); - var retBuffer = new byte[ret + 1]; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetString(retBufferPtr, netmsg, fieldNameBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + pool.Return(fieldNameBuffer); + return retString; } } } - private unsafe static delegate* unmanaged _GetRepeatedString; + private static readonly unsafe delegate* unmanaged< byte*, nint, byte*, int, int > _GetRepeatedString; - public unsafe static string GetRepeatedString(nint netmsg, string fieldName, int index) + public unsafe static string GetRepeatedString( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedString(null, netmsg, fieldNameBufferPtr, index); - var retBuffer = new byte[ret + 1]; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetRepeatedString(retBufferPtr, netmsg, fieldNameBufferPtr, index); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + pool.Return(fieldNameBuffer); + return retString; } } } - private unsafe static delegate* unmanaged _SetString; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte*, void > _SetString; - public unsafe static void SetString(nint netmsg, string fieldName, string value) + public unsafe static void SetString( nint netmsg, string fieldName, string value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); - byte[] valueBuffer = Encoding.UTF8.GetBytes(value + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; + var valueLength = Encoding.UTF8.GetByteCount(value); + var valueBuffer = pool.Rent(valueLength + 1); + _ = Encoding.UTF8.GetBytes(value, valueBuffer); + valueBuffer[valueLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { fixed (byte* valueBufferPtr = valueBuffer) { _SetString(netmsg, fieldNameBufferPtr, valueBufferPtr); + pool.Return(fieldNameBuffer); + pool.Return(valueBuffer); } } } - private unsafe static delegate* unmanaged _SetRepeatedString; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, byte*, void > _SetRepeatedString; - public unsafe static void SetRepeatedString(nint netmsg, string fieldName, int index, string value) + public unsafe static void SetRepeatedString( nint netmsg, string fieldName, int index, string value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); - byte[] valueBuffer = Encoding.UTF8.GetBytes(value + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; + var valueLength = Encoding.UTF8.GetByteCount(value); + var valueBuffer = pool.Rent(valueLength + 1); + _ = Encoding.UTF8.GetBytes(value, valueBuffer); + valueBuffer[valueLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { fixed (byte* valueBufferPtr = valueBuffer) { _SetRepeatedString(netmsg, fieldNameBufferPtr, index, valueBufferPtr); + pool.Return(fieldNameBuffer); + pool.Return(valueBuffer); } } } - private unsafe static delegate* unmanaged _AddString; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte*, void > _AddString; - public unsafe static void AddString(nint netmsg, string fieldName, string value) + public unsafe static void AddString( nint netmsg, string fieldName, string value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); - byte[] valueBuffer = Encoding.UTF8.GetBytes(value + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; + var valueLength = Encoding.UTF8.GetByteCount(value); + var valueBuffer = pool.Rent(valueLength + 1); + _ = Encoding.UTF8.GetBytes(value, valueBuffer); + valueBuffer[valueLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { fixed (byte* valueBufferPtr = valueBuffer) { _AddString(netmsg, fieldNameBufferPtr, valueBufferPtr); + pool.Return(fieldNameBuffer); + pool.Return(valueBuffer); } } } - private unsafe static delegate* unmanaged _GetVector2D; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector2D > _GetVector2D; - public unsafe static Vector2D GetVector2D(nint netmsg, string fieldName) + public unsafe static Vector2D GetVector2D( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetVector2D(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetRepeatedVector2D; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, Vector2D > _GetRepeatedVector2D; - public unsafe static Vector2D GetRepeatedVector2D(nint netmsg, string fieldName, int index) + public unsafe static Vector2D GetRepeatedVector2D( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedVector2D(netmsg, fieldNameBufferPtr, index); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetVector2D; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector2D, void > _SetVector2D; - public unsafe static void SetVector2D(nint netmsg, string fieldName, Vector2D value) + public unsafe static void SetVector2D( nint netmsg, string fieldName, Vector2D value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetVector2D(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _SetRepeatedVector2D; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, Vector2D, void > _SetRepeatedVector2D; - public unsafe static void SetRepeatedVector2D(nint netmsg, string fieldName, int index, Vector2D value) + public unsafe static void SetRepeatedVector2D( nint netmsg, string fieldName, int index, Vector2D value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetRepeatedVector2D(netmsg, fieldNameBufferPtr, index, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _AddVector2D; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector2D, void > _AddVector2D; - public unsafe static void AddVector2D(nint netmsg, string fieldName, Vector2D value) + public unsafe static void AddVector2D( nint netmsg, string fieldName, Vector2D value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _AddVector2D(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetVector; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector > _GetVector; - public unsafe static Vector GetVector(nint netmsg, string fieldName) + public unsafe static Vector GetVector( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetVector(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetRepeatedVector; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, Vector > _GetRepeatedVector; - public unsafe static Vector GetRepeatedVector(nint netmsg, string fieldName, int index) + public unsafe static Vector GetRepeatedVector( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedVector(netmsg, fieldNameBufferPtr, index); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetVector; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector, void > _SetVector; - public unsafe static void SetVector(nint netmsg, string fieldName, Vector value) + public unsafe static void SetVector( nint netmsg, string fieldName, Vector value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetVector(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _SetRepeatedVector; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, Vector, void > _SetRepeatedVector; - public unsafe static void SetRepeatedVector(nint netmsg, string fieldName, int index, Vector value) + public unsafe static void SetRepeatedVector( nint netmsg, string fieldName, int index, Vector value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetRepeatedVector(netmsg, fieldNameBufferPtr, index, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _AddVector; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector, void > _AddVector; - public unsafe static void AddVector(nint netmsg, string fieldName, Vector value) + public unsafe static void AddVector( nint netmsg, string fieldName, Vector value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _AddVector(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetColor; + private static readonly unsafe delegate* unmanaged< nint, byte*, Color > _GetColor; - public unsafe static Color GetColor(nint netmsg, string fieldName) + public unsafe static Color GetColor( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetColor(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetRepeatedColor; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, Color > _GetRepeatedColor; - public unsafe static Color GetRepeatedColor(nint netmsg, string fieldName, int index) + public unsafe static Color GetRepeatedColor( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedColor(netmsg, fieldNameBufferPtr, index); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetColor; + private static readonly unsafe delegate* unmanaged< nint, byte*, Color, void > _SetColor; - public unsafe static void SetColor(nint netmsg, string fieldName, Color value) + public unsafe static void SetColor( nint netmsg, string fieldName, Color value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetColor(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _SetRepeatedColor; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, Color, void > _SetRepeatedColor; - public unsafe static void SetRepeatedColor(nint netmsg, string fieldName, int index, Color value) + public unsafe static void SetRepeatedColor( nint netmsg, string fieldName, int index, Color value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetRepeatedColor(netmsg, fieldNameBufferPtr, index, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _AddColor; + private static readonly unsafe delegate* unmanaged< nint, byte*, Color, void > _AddColor; - public unsafe static void AddColor(nint netmsg, string fieldName, Color value) + public unsafe static void AddColor( nint netmsg, string fieldName, Color value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _AddColor(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetQAngle; + private static readonly unsafe delegate* unmanaged< nint, byte*, QAngle > _GetQAngle; - public unsafe static QAngle GetQAngle(nint netmsg, string fieldName) + public unsafe static QAngle GetQAngle( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetQAngle(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetRepeatedQAngle; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, QAngle > _GetRepeatedQAngle; - public unsafe static QAngle GetRepeatedQAngle(nint netmsg, string fieldName, int index) + public unsafe static QAngle GetRepeatedQAngle( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedQAngle(netmsg, fieldNameBufferPtr, index); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetQAngle; + private static readonly unsafe delegate* unmanaged< nint, byte*, QAngle, void > _SetQAngle; - public unsafe static void SetQAngle(nint netmsg, string fieldName, QAngle value) + public unsafe static void SetQAngle( nint netmsg, string fieldName, QAngle value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetQAngle(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _SetRepeatedQAngle; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, QAngle, void > _SetRepeatedQAngle; - public unsafe static void SetRepeatedQAngle(nint netmsg, string fieldName, int index, QAngle value) + public unsafe static void SetRepeatedQAngle( nint netmsg, string fieldName, int index, QAngle value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetRepeatedQAngle(netmsg, fieldNameBufferPtr, index, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _AddQAngle; + private static readonly unsafe delegate* unmanaged< nint, byte*, QAngle, void > _AddQAngle; - public unsafe static void AddQAngle(nint netmsg, string fieldName, QAngle value) + public unsafe static void AddQAngle( nint netmsg, string fieldName, QAngle value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _AddQAngle(netmsg, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetBytes; + private static readonly unsafe delegate* unmanaged< byte*, nint, byte*, int > _GetBytes; - public unsafe static byte[] GetBytes(nint netmsg, string fieldName) + public unsafe static byte[] GetBytes( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetBytes(null, netmsg, fieldNameBufferPtr); - var retBuffer = new byte[ret]; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetBytes(retBufferPtr, netmsg, fieldNameBufferPtr); var retBytes = new byte[ret]; - for (int i = 0; i < ret; i++) retBytes[i] = retBufferPtr[i]; + for (var i = 0; i < ret; i++) retBytes[i] = retBufferPtr[i]; + pool.Return(retBuffer); + pool.Return(fieldNameBuffer); return retBytes; } } } - private unsafe static delegate* unmanaged _GetRepeatedBytes; + private static readonly unsafe delegate* unmanaged< byte*, nint, byte*, int, int > _GetRepeatedBytes; - public unsafe static byte[] GetRepeatedBytes(nint netmsg, string fieldName, int index) + public unsafe static byte[] GetRepeatedBytes( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedBytes(null, netmsg, fieldNameBufferPtr, index); - var retBuffer = new byte[ret]; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetRepeatedBytes(retBufferPtr, netmsg, fieldNameBufferPtr, index); var retBytes = new byte[ret]; - for (int i = 0; i < ret; i++) retBytes[i] = retBufferPtr[i]; + for (var i = 0; i < ret; i++) retBytes[i] = retBufferPtr[i]; + pool.Return(retBuffer); + pool.Return(fieldNameBuffer); return retBytes; } } } - private unsafe static delegate* unmanaged _SetBytes; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte*, int, void > _SetBytes; - public unsafe static void SetBytes(nint netmsg, string fieldName, byte[] value) + public unsafe static void SetBytes( nint netmsg, string fieldName, byte[] value ) { + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; var valueLength = value.Length; - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { fixed (byte* valueBufferPtr = value) { _SetBytes(netmsg, fieldNameBufferPtr, valueBufferPtr, valueLength); + pool.Return(fieldNameBuffer); } } } - private unsafe static delegate* unmanaged _SetRepeatedBytes; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, byte*, int, void > _SetRepeatedBytes; - public unsafe static void SetRepeatedBytes(nint netmsg, string fieldName, int index, byte[] value) + public unsafe static void SetRepeatedBytes( nint netmsg, string fieldName, int index, byte[] value ) { + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; var valueLength = value.Length; - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { fixed (byte* valueBufferPtr = value) { _SetRepeatedBytes(netmsg, fieldNameBufferPtr, index, valueBufferPtr, valueLength); + pool.Return(fieldNameBuffer); } } } - private unsafe static delegate* unmanaged _AddBytes; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte*, int, void > _AddBytes; - public unsafe static void AddBytes(nint netmsg, string fieldName, byte[] value) + public unsafe static void AddBytes( nint netmsg, string fieldName, byte[] value ) { + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; var valueLength = value.Length; - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { fixed (byte* valueBufferPtr = value) { _AddBytes(netmsg, fieldNameBufferPtr, valueBufferPtr, valueLength); + pool.Return(fieldNameBuffer); } } } - private unsafe static delegate* unmanaged _GetNestedMessage; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint > _GetNestedMessage; - public unsafe static nint GetNestedMessage(nint netmsg, string fieldName) + public unsafe static nint GetNestedMessage( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetNestedMessage(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetRepeatedNestedMessage; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, nint > _GetRepeatedNestedMessage; - public unsafe static nint GetRepeatedNestedMessage(nint netmsg, string fieldName, int index) + public unsafe static nint GetRepeatedNestedMessage( nint netmsg, string fieldName, int index ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedNestedMessage(netmsg, fieldNameBufferPtr, index); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _AddNestedMessage; + private static readonly unsafe delegate* unmanaged< nint, byte*, nint > _AddNestedMessage; - public unsafe static nint AddNestedMessage(nint netmsg, string fieldName) + public unsafe static nint AddNestedMessage( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _AddNestedMessage(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetRepeatedFieldSize; + private static readonly unsafe delegate* unmanaged< nint, byte*, int > _GetRepeatedFieldSize; - public unsafe static int GetRepeatedFieldSize(nint netmsg, string fieldName) + public unsafe static int GetRepeatedFieldSize( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetRepeatedFieldSize(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _ClearRepeatedField; + private static readonly unsafe delegate* unmanaged< nint, byte*, void > _ClearRepeatedField; - public unsafe static void ClearRepeatedField(nint netmsg, string fieldName) + public unsafe static void ClearRepeatedField( nint netmsg, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _ClearRepeatedField(netmsg, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _SendMessage; + private static readonly unsafe delegate* unmanaged< nint, int, int, void > _SendMessage; - public unsafe static void SendMessage(nint netmsg, int msgid, int playerid) + public unsafe static void SendMessage( nint netmsg, int msgid, int playerid ) { _SendMessage(netmsg, msgid, playerid); } - private unsafe static delegate* unmanaged _SendMessageToPlayers; + private static readonly unsafe delegate* unmanaged< nint, int, ulong, void > _SendMessageToPlayers; /// /// each bit in player_mask represents a playerid /// - public unsafe static void SendMessageToPlayers(nint netmsg, int msgid, ulong playermask) + public unsafe static void SendMessageToPlayers( nint netmsg, int msgid, ulong playermask ) { _SendMessageToPlayers(netmsg, msgid, playermask); } - private unsafe static delegate* unmanaged _AddNetMessageServerHook; + private static readonly unsafe delegate* unmanaged< nint, ulong > _AddNetMessageServerHook; /// /// the callback should receive the following: uint64* playermask_ptr, int netmessage_id, void* netmsg, return bool (true -> ignored, false -> supercede) /// - public unsafe static ulong AddNetMessageServerHook(nint callback) + public unsafe static ulong AddNetMessageServerHook( nint callback ) { var ret = _AddNetMessageServerHook(callback); return ret; } - private unsafe static delegate* unmanaged _RemoveNetMessageServerHook; + private static readonly unsafe delegate* unmanaged< ulong, void > _RemoveNetMessageServerHook; - public unsafe static void RemoveNetMessageServerHook(ulong callbackID) + public unsafe static void RemoveNetMessageServerHook( ulong callbackID ) { _RemoveNetMessageServerHook(callbackID); } - private unsafe static delegate* unmanaged _AddNetMessageClientHook; + private static readonly unsafe delegate* unmanaged< nint, ulong > _AddNetMessageClientHook; /// /// the callback should receive the following: int32 playerid, int netmessage_id, void* netmsg, return bool (true -> ignored, false -> supercede) /// - public unsafe static ulong AddNetMessageClientHook(nint callback) + public unsafe static ulong AddNetMessageClientHook( nint callback ) { var ret = _AddNetMessageClientHook(callback); return ret; } - private unsafe static delegate* unmanaged _RemoveNetMessageClientHook; + private static readonly unsafe delegate* unmanaged< ulong, void > _RemoveNetMessageClientHook; - public unsafe static void RemoveNetMessageClientHook(ulong callbackID) + public unsafe static void RemoveNetMessageClientHook( ulong callbackID ) { _RemoveNetMessageClientHook(callbackID); } diff --git a/managed/src/SwiftlyS2.Generated/Natives/Offsets.cs b/managed/src/SwiftlyS2.Generated/Natives/Offsets.cs index 7e72b7468..6efb89837 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Offsets.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Offsets.cs @@ -1,36 +1,45 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeOffsets { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _Exists; + private static readonly unsafe delegate* unmanaged< byte*, byte > _Exists; - public unsafe static bool Exists(string name) + public unsafe static bool Exists( string name ) { - byte[] nameBuffer = Encoding.UTF8.GetBytes(name + "\0"); + var pool = ArrayPool.Shared; + var nameLength = Encoding.UTF8.GetByteCount(name); + var nameBuffer = pool.Rent(nameLength + 1); + _ = Encoding.UTF8.GetBytes(name, nameBuffer); + nameBuffer[nameLength] = 0; fixed (byte* nameBufferPtr = nameBuffer) { var ret = _Exists(nameBufferPtr); + pool.Return(nameBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _Fetch; + private static readonly unsafe delegate* unmanaged< byte*, int > _Fetch; - public unsafe static int Fetch(string name) + public unsafe static int Fetch( string name ) { - byte[] nameBuffer = Encoding.UTF8.GetBytes(name + "\0"); + var pool = ArrayPool.Shared; + var nameLength = Encoding.UTF8.GetByteCount(name); + var nameBuffer = pool.Rent(nameLength + 1); + _ = Encoding.UTF8.GetBytes(name, nameBuffer); + nameBuffer[nameLength] = 0; fixed (byte* nameBufferPtr = nameBuffer) { var ret = _Fetch(nameBufferPtr); + pool.Return(nameBuffer); return ret; } } diff --git a/managed/src/SwiftlyS2.Generated/Natives/Patches.cs b/managed/src/SwiftlyS2.Generated/Natives/Patches.cs index 4ddb60fba..d925f2850 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Patches.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Patches.cs @@ -1,46 +1,60 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativePatches { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _Apply; + private static readonly unsafe delegate* unmanaged< byte*, void > _Apply; - public unsafe static void Apply(string patchName) + public unsafe static void Apply( string patchName ) { - byte[] patchNameBuffer = Encoding.UTF8.GetBytes(patchName + "\0"); + var pool = ArrayPool.Shared; + var patchNameLength = Encoding.UTF8.GetByteCount(patchName); + var patchNameBuffer = pool.Rent(patchNameLength + 1); + _ = Encoding.UTF8.GetBytes(patchName, patchNameBuffer); + patchNameBuffer[patchNameLength] = 0; fixed (byte* patchNameBufferPtr = patchNameBuffer) { _Apply(patchNameBufferPtr); + pool.Return(patchNameBuffer); } } - private unsafe static delegate* unmanaged _Revert; + private static readonly unsafe delegate* unmanaged< byte*, void > _Revert; - public unsafe static void Revert(string patchName) + public unsafe static void Revert( string patchName ) { - byte[] patchNameBuffer = Encoding.UTF8.GetBytes(patchName + "\0"); + var pool = ArrayPool.Shared; + var patchNameLength = Encoding.UTF8.GetByteCount(patchName); + var patchNameBuffer = pool.Rent(patchNameLength + 1); + _ = Encoding.UTF8.GetBytes(patchName, patchNameBuffer); + patchNameBuffer[patchNameLength] = 0; fixed (byte* patchNameBufferPtr = patchNameBuffer) { _Revert(patchNameBufferPtr); + pool.Return(patchNameBuffer); } } - private unsafe static delegate* unmanaged _Exists; + private static readonly unsafe delegate* unmanaged< byte*, byte > _Exists; - public unsafe static bool Exists(string patchName) + public unsafe static bool Exists( string patchName ) { - byte[] patchNameBuffer = Encoding.UTF8.GetBytes(patchName + "\0"); + var pool = ArrayPool.Shared; + var patchNameLength = Encoding.UTF8.GetByteCount(patchName); + var patchNameBuffer = pool.Rent(patchNameLength + 1); + _ = Encoding.UTF8.GetBytes(patchName, patchNameBuffer); + patchNameBuffer[patchNameLength] = 0; fixed (byte* patchNameBufferPtr = patchNameBuffer) { var ret = _Exists(patchNameBufferPtr); + pool.Return(patchNameBuffer); return ret == 1; } } diff --git a/managed/src/SwiftlyS2.Generated/Natives/Player.cs b/managed/src/SwiftlyS2.Generated/Natives/Player.cs index 33c5927d3..4a11677ac 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Player.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Player.cs @@ -1,231 +1,262 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativePlayer { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _SendMessage; + private static readonly unsafe delegate* unmanaged< int, int, byte*, int, void > _SendMessage; - public unsafe static void SendMessage(int playerid, int kind, string message, int htmlDuration) + public unsafe static void SendMessage( int playerid, int kind, string message, int htmlDuration ) { - byte[] messageBuffer = Encoding.UTF8.GetBytes(message + "\0"); + var pool = ArrayPool.Shared; + var messageLength = Encoding.UTF8.GetByteCount(message); + var messageBuffer = pool.Rent(messageLength + 1); + _ = Encoding.UTF8.GetBytes(message, messageBuffer); + messageBuffer[messageLength] = 0; fixed (byte* messageBufferPtr = messageBuffer) { _SendMessage(playerid, kind, messageBufferPtr, htmlDuration); + pool.Return(messageBuffer); } } - private unsafe static delegate* unmanaged _IsFakeClient; + private static readonly unsafe delegate* unmanaged< int, byte > _IsFakeClient; - public unsafe static bool IsFakeClient(int playerid) + public unsafe static bool IsFakeClient( int playerid ) { var ret = _IsFakeClient(playerid); return ret == 1; } - private unsafe static delegate* unmanaged _IsAuthorized; + private static readonly unsafe delegate* unmanaged< int, byte > _IsAuthorized; - public unsafe static bool IsAuthorized(int playerid) + public unsafe static bool IsAuthorized( int playerid ) { var ret = _IsAuthorized(playerid); return ret == 1; } - private unsafe static delegate* unmanaged _GetConnectedTime; + private static readonly unsafe delegate* unmanaged< int, uint > _GetConnectedTime; - public unsafe static uint GetConnectedTime(int playerid) + public unsafe static uint GetConnectedTime( int playerid ) { var ret = _GetConnectedTime(playerid); return ret; } - private unsafe static delegate* unmanaged _GetUnauthorizedSteamID; + private static readonly unsafe delegate* unmanaged< int, ulong > _GetUnauthorizedSteamID; - public unsafe static ulong GetUnauthorizedSteamID(int playerid) + public unsafe static ulong GetUnauthorizedSteamID( int playerid ) { var ret = _GetUnauthorizedSteamID(playerid); return ret; } - private unsafe static delegate* unmanaged _GetSteamID; + private static readonly unsafe delegate* unmanaged< int, ulong > _GetSteamID; - public unsafe static ulong GetSteamID(int playerid) + public unsafe static ulong GetSteamID( int playerid ) { var ret = _GetSteamID(playerid); return ret; } - private unsafe static delegate* unmanaged _GetController; + private static readonly unsafe delegate* unmanaged< int, nint > _GetController; - public unsafe static nint GetController(int playerid) + public unsafe static nint GetController( int playerid ) { var ret = _GetController(playerid); return ret; } - private unsafe static delegate* unmanaged _GetPawn; + private static readonly unsafe delegate* unmanaged< int, nint > _GetPawn; - public unsafe static nint GetPawn(int playerid) + public unsafe static nint GetPawn( int playerid ) { var ret = _GetPawn(playerid); return ret; } - private unsafe static delegate* unmanaged _GetPlayerPawn; + private static readonly unsafe delegate* unmanaged< int, nint > _GetPlayerPawn; - public unsafe static nint GetPlayerPawn(int playerid) + public unsafe static nint GetPlayerPawn( int playerid ) { var ret = _GetPlayerPawn(playerid); return ret; } - private unsafe static delegate* unmanaged _GetPressedButtons; + private static readonly unsafe delegate* unmanaged< int, ulong > _GetPressedButtons; - public unsafe static ulong GetPressedButtons(int playerid) + public unsafe static ulong GetPressedButtons( int playerid ) { var ret = _GetPressedButtons(playerid); return ret; } - private unsafe static delegate* unmanaged _PerformCommand; + private static readonly unsafe delegate* unmanaged< int, byte*, void > _PerformCommand; - public unsafe static void PerformCommand(int playerid, string command) + public unsafe static void PerformCommand( int playerid, string command ) { - byte[] commandBuffer = Encoding.UTF8.GetBytes(command + "\0"); + var pool = ArrayPool.Shared; + var commandLength = Encoding.UTF8.GetByteCount(command); + var commandBuffer = pool.Rent(commandLength + 1); + _ = Encoding.UTF8.GetBytes(command, commandBuffer); + commandBuffer[commandLength] = 0; fixed (byte* commandBufferPtr = commandBuffer) { _PerformCommand(playerid, commandBufferPtr); + pool.Return(commandBuffer); } } - private unsafe static delegate* unmanaged _GetIPAddress; + private static readonly unsafe delegate* unmanaged< byte*, int, int > _GetIPAddress; - public unsafe static string GetIPAddress(int playerid) + public unsafe static string GetIPAddress( int playerid ) { var ret = _GetIPAddress(null, playerid); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetIPAddress(retBufferPtr, playerid); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } - private unsafe static delegate* unmanaged _Kick; + private static readonly unsafe delegate* unmanaged< int, byte*, int, void > _Kick; - public unsafe static void Kick(int playerid, string reason, int gamereason) + public unsafe static void Kick( int playerid, string reason, int gamereason ) { - byte[] reasonBuffer = Encoding.UTF8.GetBytes(reason + "\0"); + var pool = ArrayPool.Shared; + var reasonLength = Encoding.UTF8.GetByteCount(reason); + var reasonBuffer = pool.Rent(reasonLength + 1); + _ = Encoding.UTF8.GetBytes(reason, reasonBuffer); + reasonBuffer[reasonLength] = 0; fixed (byte* reasonBufferPtr = reasonBuffer) { _Kick(playerid, reasonBufferPtr, gamereason); + pool.Return(reasonBuffer); } } - private unsafe static delegate* unmanaged _ShouldBlockTransmitEntity; + private static readonly unsafe delegate* unmanaged< int, int, byte, void > _ShouldBlockTransmitEntity; - public unsafe static void ShouldBlockTransmitEntity(int playerid, int entityidx, bool shouldBlockTransmit) + public unsafe static void ShouldBlockTransmitEntity( int playerid, int entityidx, bool shouldBlockTransmit ) { _ShouldBlockTransmitEntity(playerid, entityidx, shouldBlockTransmit ? (byte)1 : (byte)0); } - private unsafe static delegate* unmanaged _IsTransmitEntityBlocked; + private static readonly unsafe delegate* unmanaged< int, int, byte > _IsTransmitEntityBlocked; - public unsafe static bool IsTransmitEntityBlocked(int playerid, int entityidx) + public unsafe static bool IsTransmitEntityBlocked( int playerid, int entityidx ) { var ret = _IsTransmitEntityBlocked(playerid, entityidx); return ret == 1; } - private unsafe static delegate* unmanaged _ClearTransmitEntityBlocked; + private static readonly unsafe delegate* unmanaged< int, void > _ClearTransmitEntityBlocked; - public unsafe static void ClearTransmitEntityBlocked(int playerid) + public unsafe static void ClearTransmitEntityBlocked( int playerid ) { _ClearTransmitEntityBlocked(playerid); } - private unsafe static delegate* unmanaged _ChangeTeam; + private static readonly unsafe delegate* unmanaged< int, int, void > _ChangeTeam; - public unsafe static void ChangeTeam(int playerid, int newteam) + public unsafe static void ChangeTeam( int playerid, int newteam ) { _ChangeTeam(playerid, newteam); } - private unsafe static delegate* unmanaged _SwitchTeam; + private static readonly unsafe delegate* unmanaged< int, int, void > _SwitchTeam; - public unsafe static void SwitchTeam(int playerid, int newteam) + public unsafe static void SwitchTeam( int playerid, int newteam ) { _SwitchTeam(playerid, newteam); } - private unsafe static delegate* unmanaged _TakeDamage; + private static readonly unsafe delegate* unmanaged< int, nint, void > _TakeDamage; - public unsafe static void TakeDamage(int playerid, nint dmginfo) + public unsafe static void TakeDamage( int playerid, nint dmginfo ) { _TakeDamage(playerid, dmginfo); } - private unsafe static delegate* unmanaged _Teleport; + private static readonly unsafe delegate* unmanaged< int, Vector, QAngle, Vector, void > _Teleport; - public unsafe static void Teleport(int playerid, Vector pos, QAngle angle, Vector velocity) + public unsafe static void Teleport( int playerid, Vector pos, QAngle angle, Vector velocity ) { _Teleport(playerid, pos, angle, velocity); } - private unsafe static delegate* unmanaged _GetLanguage; + private static readonly unsafe delegate* unmanaged< byte*, int, int > _GetLanguage; - public unsafe static string GetLanguage(int playerid) + public unsafe static string GetLanguage( int playerid ) { var ret = _GetLanguage(null, playerid); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetLanguage(retBufferPtr, playerid); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } - private unsafe static delegate* unmanaged _SetCenterMenuRender; + private static readonly unsafe delegate* unmanaged< int, byte*, void > _SetCenterMenuRender; - public unsafe static void SetCenterMenuRender(int playerid, string text) + public unsafe static void SetCenterMenuRender( int playerid, string text ) { - byte[] textBuffer = Encoding.UTF8.GetBytes(text + "\0"); + var pool = ArrayPool.Shared; + var textLength = Encoding.UTF8.GetByteCount(text); + var textBuffer = pool.Rent(textLength + 1); + _ = Encoding.UTF8.GetBytes(text, textBuffer); + textBuffer[textLength] = 0; fixed (byte* textBufferPtr = textBuffer) { _SetCenterMenuRender(playerid, textBufferPtr); + pool.Return(textBuffer); } } - private unsafe static delegate* unmanaged _ClearCenterMenuRender; + private static readonly unsafe delegate* unmanaged< int, void > _ClearCenterMenuRender; - public unsafe static void ClearCenterMenuRender(int playerid) + public unsafe static void ClearCenterMenuRender( int playerid ) { _ClearCenterMenuRender(playerid); } - private unsafe static delegate* unmanaged _HasMenuShown; + private static readonly unsafe delegate* unmanaged< int, byte > _HasMenuShown; - public unsafe static bool HasMenuShown(int playerid) + public unsafe static bool HasMenuShown( int playerid ) { var ret = _HasMenuShown(playerid); return ret == 1; } - private unsafe static delegate* unmanaged _ExecuteCommand; + private static readonly unsafe delegate* unmanaged< int, byte*, void > _ExecuteCommand; - public unsafe static void ExecuteCommand(int playerid, string command) + public unsafe static void ExecuteCommand( int playerid, string command ) { - byte[] commandBuffer = Encoding.UTF8.GetBytes(command + "\0"); + var pool = ArrayPool.Shared; + var commandLength = Encoding.UTF8.GetByteCount(command); + var commandBuffer = pool.Rent(commandLength + 1); + _ = Encoding.UTF8.GetBytes(command, commandBuffer); + commandBuffer[commandLength] = 0; fixed (byte* commandBufferPtr = commandBuffer) { _ExecuteCommand(playerid, commandBufferPtr); + pool.Return(commandBuffer); } } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Generated/Natives/PlayerManager.cs b/managed/src/SwiftlyS2.Generated/Natives/PlayerManager.cs index 835d9756a..6b6f8352b 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/PlayerManager.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/PlayerManager.cs @@ -1,25 +1,24 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativePlayerManager { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _IsPlayerOnline; + private static readonly unsafe delegate* unmanaged< int, byte > _IsPlayerOnline; - public unsafe static bool IsPlayerOnline(int playerid) + public unsafe static bool IsPlayerOnline( int playerid ) { var ret = _IsPlayerOnline(playerid); return ret == 1; } - private unsafe static delegate* unmanaged _GetPlayerCount; + private static readonly unsafe delegate* unmanaged< int > _GetPlayerCount; public unsafe static int GetPlayerCount() { @@ -27,7 +26,7 @@ public unsafe static int GetPlayerCount() return ret; } - private unsafe static delegate* unmanaged _GetPlayerCap; + private static readonly unsafe delegate* unmanaged< int > _GetPlayerCap; public unsafe static int GetPlayerCap() { @@ -35,25 +34,30 @@ public unsafe static int GetPlayerCap() return ret; } - private unsafe static delegate* unmanaged _SendMessage; + private static readonly unsafe delegate* unmanaged< int, byte*, int, void > _SendMessage; - public unsafe static void SendMessage(int kind, string message, int duration) + public unsafe static void SendMessage( int kind, string message, int duration ) { - byte[] messageBuffer = Encoding.UTF8.GetBytes(message + "\0"); + var pool = ArrayPool.Shared; + var messageLength = Encoding.UTF8.GetByteCount(message); + var messageBuffer = pool.Rent(messageLength + 1); + _ = Encoding.UTF8.GetBytes(message, messageBuffer); + messageBuffer[messageLength] = 0; fixed (byte* messageBufferPtr = messageBuffer) { _SendMessage(kind, messageBufferPtr, duration); + pool.Return(messageBuffer); } } - private unsafe static delegate* unmanaged _ShouldBlockTransmitEntity; + private static readonly unsafe delegate* unmanaged< int, byte, void > _ShouldBlockTransmitEntity; - public unsafe static void ShouldBlockTransmitEntity(int entityidx, bool shouldBlockTransmit) + public unsafe static void ShouldBlockTransmitEntity( int entityidx, bool shouldBlockTransmit ) { _ShouldBlockTransmitEntity(entityidx, shouldBlockTransmit ? (byte)1 : (byte)0); } - private unsafe static delegate* unmanaged _ClearAllBlockedTransmitEntity; + private static readonly unsafe delegate* unmanaged< void > _ClearAllBlockedTransmitEntity; public unsafe static void ClearAllBlockedTransmitEntity() { diff --git a/managed/src/SwiftlyS2.Generated/Natives/Schema.cs b/managed/src/SwiftlyS2.Generated/Natives/Schema.cs index de1cb5fc9..43619d076 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Schema.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Schema.cs @@ -1,85 +1,99 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeSchema { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _SetStateChanged; + private static readonly unsafe delegate* unmanaged< nint, ulong, void > _SetStateChanged; - public unsafe static void SetStateChanged(nint entity, ulong hash) + public unsafe static void SetStateChanged( nint entity, ulong hash ) { _SetStateChanged(entity, hash); } - private unsafe static delegate* unmanaged _FindChainOffset; + private static readonly unsafe delegate* unmanaged< byte*, uint > _FindChainOffset; - public unsafe static uint FindChainOffset(string className) + public unsafe static uint FindChainOffset( string className ) { - byte[] classNameBuffer = Encoding.UTF8.GetBytes(className + "\0"); + var pool = ArrayPool.Shared; + var classNameLength = Encoding.UTF8.GetByteCount(className); + var classNameBuffer = pool.Rent(classNameLength + 1); + _ = Encoding.UTF8.GetBytes(className, classNameBuffer); + classNameBuffer[classNameLength] = 0; fixed (byte* classNameBufferPtr = classNameBuffer) { var ret = _FindChainOffset(classNameBufferPtr); + pool.Return(classNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetOffset; + private static readonly unsafe delegate* unmanaged< ulong, int > _GetOffset; - public unsafe static int GetOffset(ulong hash) + public unsafe static int GetOffset( ulong hash ) { var ret = _GetOffset(hash); return ret; } - private unsafe static delegate* unmanaged _IsStruct; + private static readonly unsafe delegate* unmanaged< byte*, byte > _IsStruct; - public unsafe static bool IsStruct(string className) + public unsafe static bool IsStruct( string className ) { - byte[] classNameBuffer = Encoding.UTF8.GetBytes(className + "\0"); + var pool = ArrayPool.Shared; + var classNameLength = Encoding.UTF8.GetByteCount(className); + var classNameBuffer = pool.Rent(classNameLength + 1); + _ = Encoding.UTF8.GetBytes(className, classNameBuffer); + classNameBuffer[classNameLength] = 0; fixed (byte* classNameBufferPtr = classNameBuffer) { var ret = _IsStruct(classNameBufferPtr); + pool.Return(classNameBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _IsClassLoaded; + private static readonly unsafe delegate* unmanaged< byte*, byte > _IsClassLoaded; - public unsafe static bool IsClassLoaded(string className) + public unsafe static bool IsClassLoaded( string className ) { - byte[] classNameBuffer = Encoding.UTF8.GetBytes(className + "\0"); + var pool = ArrayPool.Shared; + var classNameLength = Encoding.UTF8.GetByteCount(className); + var classNameBuffer = pool.Rent(classNameLength + 1); + _ = Encoding.UTF8.GetBytes(className, classNameBuffer); + classNameBuffer[classNameLength] = 0; fixed (byte* classNameBufferPtr = classNameBuffer) { var ret = _IsClassLoaded(classNameBufferPtr); + pool.Return(classNameBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _GetPropPtr; + private static readonly unsafe delegate* unmanaged< nint, ulong, nint > _GetPropPtr; - public unsafe static nint GetPropPtr(nint entity, ulong hash) + public unsafe static nint GetPropPtr( nint entity, ulong hash ) { var ret = _GetPropPtr(entity, hash); return ret; } - private unsafe static delegate* unmanaged _WritePropPtr; + private static readonly unsafe delegate* unmanaged< nint, ulong, nint, uint, void > _WritePropPtr; - public unsafe static void WritePropPtr(nint entity, ulong hash, nint value, uint size) + public unsafe static void WritePropPtr( nint entity, ulong hash, nint value, uint size ) { _WritePropPtr(entity, hash, value, size); } - private unsafe static delegate* unmanaged _GetVData; + private static readonly unsafe delegate* unmanaged< nint, nint > _GetVData; - public unsafe static nint GetVData(nint entity) + public unsafe static nint GetVData( nint entity ) { var ret = _GetVData(entity); return ret; diff --git a/managed/src/SwiftlyS2.Generated/Natives/ServerHelpers.cs b/managed/src/SwiftlyS2.Generated/Natives/ServerHelpers.cs index 602373309..fc60ed696 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/ServerHelpers.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/ServerHelpers.cs @@ -1,30 +1,32 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeServerHelpers { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _GetServerLanguage; + private static readonly unsafe delegate* unmanaged< byte*, int > _GetServerLanguage; public unsafe static string GetServerLanguage() { var ret = _GetServerLanguage(null); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetServerLanguage(retBufferPtr); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } - private unsafe static delegate* unmanaged _UsePlayerLanguage; + private static readonly unsafe delegate* unmanaged< byte > _UsePlayerLanguage; public unsafe static bool UsePlayerLanguage() { @@ -32,7 +34,7 @@ public unsafe static bool UsePlayerLanguage() return ret == 1; } - private unsafe static delegate* unmanaged _IsFollowingServerGuidelines; + private static readonly unsafe delegate* unmanaged< byte > _IsFollowingServerGuidelines; public unsafe static bool IsFollowingServerGuidelines() { @@ -40,7 +42,7 @@ public unsafe static bool IsFollowingServerGuidelines() return ret == 1; } - private unsafe static delegate* unmanaged _UseAutoHotReload; + private static readonly unsafe delegate* unmanaged< byte > _UseAutoHotReload; public unsafe static bool UseAutoHotReload() { diff --git a/managed/src/SwiftlyS2.Generated/Natives/Signatures.cs b/managed/src/SwiftlyS2.Generated/Natives/Signatures.cs index b481e6a85..f0c22c23c 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Signatures.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Signatures.cs @@ -1,36 +1,45 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeSignatures { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _Exists; + private static readonly unsafe delegate* unmanaged< byte*, byte > _Exists; - public unsafe static bool Exists(string signatureName) + public unsafe static bool Exists( string signatureName ) { - byte[] signatureNameBuffer = Encoding.UTF8.GetBytes(signatureName + "\0"); + var pool = ArrayPool.Shared; + var signatureNameLength = Encoding.UTF8.GetByteCount(signatureName); + var signatureNameBuffer = pool.Rent(signatureNameLength + 1); + _ = Encoding.UTF8.GetBytes(signatureName, signatureNameBuffer); + signatureNameBuffer[signatureNameLength] = 0; fixed (byte* signatureNameBufferPtr = signatureNameBuffer) { var ret = _Exists(signatureNameBufferPtr); + pool.Return(signatureNameBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _Fetch; + private static readonly unsafe delegate* unmanaged< byte*, nint > _Fetch; - public unsafe static nint Fetch(string signatureName) + public unsafe static nint Fetch( string signatureName ) { - byte[] signatureNameBuffer = Encoding.UTF8.GetBytes(signatureName + "\0"); + var pool = ArrayPool.Shared; + var signatureNameLength = Encoding.UTF8.GetByteCount(signatureName); + var signatureNameBuffer = pool.Rent(signatureNameLength + 1); + _ = Encoding.UTF8.GetBytes(signatureName, signatureNameBuffer); + signatureNameBuffer[signatureNameLength] = 0; fixed (byte* signatureNameBufferPtr = signatureNameBuffer) { var ret = _Fetch(signatureNameBufferPtr); + pool.Return(signatureNameBuffer); return ret; } } diff --git a/managed/src/SwiftlyS2.Generated/Natives/Sounds.cs b/managed/src/SwiftlyS2.Generated/Natives/Sounds.cs index 78586db32..0e9166460 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Sounds.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Sounds.cs @@ -1,17 +1,17 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeSounds { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _CreateSoundEvent; + private static readonly unsafe delegate* unmanaged< nint > _CreateSoundEvent; public unsafe static nint CreateSoundEvent() { @@ -19,16 +19,16 @@ public unsafe static nint CreateSoundEvent() return ret; } - private unsafe static delegate* unmanaged _DestroySoundEvent; + private static readonly unsafe delegate* unmanaged< nint, void > _DestroySoundEvent; - public unsafe static void DestroySoundEvent(nint soundEvent) + public unsafe static void DestroySoundEvent( nint soundEvent ) { _DestroySoundEvent(soundEvent); } - private unsafe static delegate* unmanaged _Emit; + private static readonly unsafe delegate* unmanaged< nint, uint > _Emit; - public unsafe static uint Emit(nint soundEvent) + public unsafe static uint Emit( nint soundEvent ) { if (Thread.CurrentThread.ManagedThreadId != _MainThreadID) { @@ -38,237 +38,310 @@ public unsafe static uint Emit(nint soundEvent) return ret; } - private unsafe static delegate* unmanaged _SetName; + private static readonly unsafe delegate* unmanaged< nint, byte*, void > _SetName; - public unsafe static void SetName(nint soundEvent, string name) + public unsafe static void SetName( nint soundEvent, string name ) { - byte[] nameBuffer = Encoding.UTF8.GetBytes(name + "\0"); + var pool = ArrayPool.Shared; + var nameLength = Encoding.UTF8.GetByteCount(name); + var nameBuffer = pool.Rent(nameLength + 1); + _ = Encoding.UTF8.GetBytes(name, nameBuffer); + nameBuffer[nameLength] = 0; fixed (byte* nameBufferPtr = nameBuffer) { _SetName(soundEvent, nameBufferPtr); + pool.Return(nameBuffer); } } - private unsafe static delegate* unmanaged _GetName; + private static readonly unsafe delegate* unmanaged< byte*, nint, int > _GetName; - public unsafe static string GetName(nint soundEvent) + public unsafe static string GetName( nint soundEvent ) { var ret = _GetName(null, soundEvent); - var retBuffer = new byte[ret + 1]; + var pool = ArrayPool.Shared; + var retBuffer = pool.Rent(ret + 1); fixed (byte* retBufferPtr = retBuffer) { ret = _GetName(retBufferPtr, soundEvent); - return Encoding.UTF8.GetString(retBufferPtr, ret); + var retString = Encoding.UTF8.GetString(retBufferPtr, ret); + pool.Return(retBuffer); + return retString; } } - private unsafe static delegate* unmanaged _SetSourceEntityIndex; + private static readonly unsafe delegate* unmanaged< nint, int, void > _SetSourceEntityIndex; - public unsafe static void SetSourceEntityIndex(nint soundEvent, int index) + public unsafe static void SetSourceEntityIndex( nint soundEvent, int index ) { _SetSourceEntityIndex(soundEvent, index); } - private unsafe static delegate* unmanaged _GetSourceEntityIndex; + private static readonly unsafe delegate* unmanaged< nint, int > _GetSourceEntityIndex; - public unsafe static int GetSourceEntityIndex(nint soundEvent) + public unsafe static int GetSourceEntityIndex( nint soundEvent ) { var ret = _GetSourceEntityIndex(soundEvent); return ret; } - private unsafe static delegate* unmanaged _AddClient; + private static readonly unsafe delegate* unmanaged< nint, int, void > _AddClient; - public unsafe static void AddClient(nint soundEvent, int playerid) + public unsafe static void AddClient( nint soundEvent, int playerid ) { _AddClient(soundEvent, playerid); } - private unsafe static delegate* unmanaged _RemoveClient; + private static readonly unsafe delegate* unmanaged< nint, int, void > _RemoveClient; - public unsafe static void RemoveClient(nint soundEvent, int playerid) + public unsafe static void RemoveClient( nint soundEvent, int playerid ) { _RemoveClient(soundEvent, playerid); } - private unsafe static delegate* unmanaged _ClearClients; + private static readonly unsafe delegate* unmanaged< nint, void > _ClearClients; - public unsafe static void ClearClients(nint soundEvent) + public unsafe static void ClearClients( nint soundEvent ) { _ClearClients(soundEvent); } - private unsafe static delegate* unmanaged _AddAllClients; + private static readonly unsafe delegate* unmanaged< nint, void > _AddAllClients; - public unsafe static void AddAllClients(nint soundEvent) + public unsafe static void AddAllClients( nint soundEvent ) { _AddAllClients(soundEvent); } - private unsafe static delegate* unmanaged _HasField; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte > _HasField; - public unsafe static bool HasField(nint soundEvent, string fieldName) + public unsafe static bool HasField( nint soundEvent, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _HasField(soundEvent, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _SetBool; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte, void > _SetBool; - public unsafe static void SetBool(nint soundEvent, string fieldName, bool value) + public unsafe static void SetBool( nint soundEvent, string fieldName, bool value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetBool(soundEvent, fieldNameBufferPtr, value ? (byte)1 : (byte)0); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetBool; + private static readonly unsafe delegate* unmanaged< nint, byte*, byte > _GetBool; - public unsafe static bool GetBool(nint soundEvent, string fieldName) + public unsafe static bool GetBool( nint soundEvent, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetBool(soundEvent, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret == 1; } } - private unsafe static delegate* unmanaged _SetInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, int, void > _SetInt32; - public unsafe static void SetInt32(nint soundEvent, string fieldName, int value) + public unsafe static void SetInt32( nint soundEvent, string fieldName, int value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetInt32(soundEvent, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, int > _GetInt32; - public unsafe static int GetInt32(nint soundEvent, string fieldName) + public unsafe static int GetInt32( nint soundEvent, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetInt32(soundEvent, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetUInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, uint, void > _SetUInt32; - public unsafe static void SetUInt32(nint soundEvent, string fieldName, uint value) + public unsafe static void SetUInt32( nint soundEvent, string fieldName, uint value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetUInt32(soundEvent, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetUInt32; + private static readonly unsafe delegate* unmanaged< nint, byte*, uint > _GetUInt32; - public unsafe static uint GetUInt32(nint soundEvent, string fieldName) + public unsafe static uint GetUInt32( nint soundEvent, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetUInt32(soundEvent, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetUInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, ulong, void > _SetUInt64; - public unsafe static void SetUInt64(nint soundEvent, string fieldName, ulong value) + public unsafe static void SetUInt64( nint soundEvent, string fieldName, ulong value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetUInt64(soundEvent, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetUInt64; + private static readonly unsafe delegate* unmanaged< nint, byte*, ulong > _GetUInt64; - public unsafe static ulong GetUInt64(nint soundEvent, string fieldName) + public unsafe static ulong GetUInt64( nint soundEvent, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetUInt64(soundEvent, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetFloat; + private static readonly unsafe delegate* unmanaged< nint, byte*, float, void > _SetFloat; - public unsafe static void SetFloat(nint soundEvent, string fieldName, float value) + public unsafe static void SetFloat( nint soundEvent, string fieldName, float value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetFloat(soundEvent, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetFloat; + private static readonly unsafe delegate* unmanaged< nint, byte*, float > _GetFloat; - public unsafe static float GetFloat(nint soundEvent, string fieldName) + public unsafe static float GetFloat( nint soundEvent, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetFloat(soundEvent, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _SetFloat3; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector, void > _SetFloat3; - public unsafe static void SetFloat3(nint soundEvent, string fieldName, Vector value) + public unsafe static void SetFloat3( nint soundEvent, string fieldName, Vector value ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { _SetFloat3(soundEvent, fieldNameBufferPtr, value); + pool.Return(fieldNameBuffer); } } - private unsafe static delegate* unmanaged _GetFloat3; + private static readonly unsafe delegate* unmanaged< nint, byte*, Vector > _GetFloat3; - public unsafe static Vector GetFloat3(nint soundEvent, string fieldName) + public unsafe static Vector GetFloat3( nint soundEvent, string fieldName ) { - byte[] fieldNameBuffer = Encoding.UTF8.GetBytes(fieldName + "\0"); + var pool = ArrayPool.Shared; + var fieldNameLength = Encoding.UTF8.GetByteCount(fieldName); + var fieldNameBuffer = pool.Rent(fieldNameLength + 1); + _ = Encoding.UTF8.GetBytes(fieldName, fieldNameBuffer); + fieldNameBuffer[fieldNameLength] = 0; fixed (byte* fieldNameBufferPtr = fieldNameBuffer) { var ret = _GetFloat3(soundEvent, fieldNameBufferPtr); + pool.Return(fieldNameBuffer); return ret; } } - private unsafe static delegate* unmanaged _GetClients; + private static readonly unsafe delegate* unmanaged< nint, ulong > _GetClients; /// /// returns player mask /// - public unsafe static ulong GetClients(nint soundEvent) + public unsafe static ulong GetClients( nint soundEvent ) { var ret = _GetClients(soundEvent); return ret; } - private unsafe static delegate* unmanaged _SetClients; + private static readonly unsafe delegate* unmanaged< nint, ulong, void > _SetClients; - public unsafe static void SetClients(nint soundEvent, ulong playermask) + public unsafe static void SetClients( nint soundEvent, ulong playermask ) { _SetClients(soundEvent, playermask); } diff --git a/managed/src/SwiftlyS2.Generated/Natives/Test.cs b/managed/src/SwiftlyS2.Generated/Natives/Test.cs index f5ba662c3..0dd450a2b 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/Test.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/Test.cs @@ -1,17 +1,11 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 -using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; - namespace SwiftlyS2.Core.Natives; internal static class NativeTest { - private static int _MainThreadID; - - private unsafe static delegate* unmanaged _Test; + private static readonly unsafe delegate* unmanaged< nint > _Test; public unsafe static nint Test() { diff --git a/managed/src/SwiftlyS2.Generated/Natives/VGUI.cs b/managed/src/SwiftlyS2.Generated/Natives/VGUI.cs index ee80b1a92..18ca8e80f 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/VGUI.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/VGUI.cs @@ -1,17 +1,17 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 +using System.Buffers; using System.Text; -using System.Threading; using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Core.Natives; internal static class NativeVGUI { - private static int _MainThreadID; + private static readonly int _MainThreadID; - private unsafe static delegate* unmanaged _RegisterScreenText; + private static readonly unsafe delegate* unmanaged< ulong > _RegisterScreenText; public unsafe static ulong RegisterScreenText() { @@ -19,44 +19,49 @@ public unsafe static ulong RegisterScreenText() return ret; } - private unsafe static delegate* unmanaged _UnregisterScreenText; + private static readonly unsafe delegate* unmanaged< ulong, void > _UnregisterScreenText; - public unsafe static void UnregisterScreenText(ulong textid) + public unsafe static void UnregisterScreenText( ulong textid ) { _UnregisterScreenText(textid); } - private unsafe static delegate* unmanaged _ScreenTextCreate; + private static readonly unsafe delegate* unmanaged< ulong, Color, int, byte, byte, void > _ScreenTextCreate; - public unsafe static void ScreenTextCreate(ulong textid, Color col, int fontsize, bool drawBackground, bool isMenu) + public unsafe static void ScreenTextCreate( ulong textid, Color col, int fontsize, bool drawBackground, bool isMenu ) { _ScreenTextCreate(textid, col, fontsize, drawBackground ? (byte)1 : (byte)0, isMenu ? (byte)1 : (byte)0); } - private unsafe static delegate* unmanaged _ScreenTextSetText; + private static readonly unsafe delegate* unmanaged< ulong, byte*, void > _ScreenTextSetText; - public unsafe static void ScreenTextSetText(ulong textid, string text) + public unsafe static void ScreenTextSetText( ulong textid, string text ) { - byte[] textBuffer = Encoding.UTF8.GetBytes(text + "\0"); + var pool = ArrayPool.Shared; + var textLength = Encoding.UTF8.GetByteCount(text); + var textBuffer = pool.Rent(textLength + 1); + _ = Encoding.UTF8.GetBytes(text, textBuffer); + textBuffer[textLength] = 0; fixed (byte* textBufferPtr = textBuffer) { _ScreenTextSetText(textid, textBufferPtr); + pool.Return(textBuffer); } } - private unsafe static delegate* unmanaged _ScreenTextSetColor; + private static readonly unsafe delegate* unmanaged< ulong, Color, void > _ScreenTextSetColor; - public unsafe static void ScreenTextSetColor(ulong textid, Color col) + public unsafe static void ScreenTextSetColor( ulong textid, Color col ) { _ScreenTextSetColor(textid, col); } - private unsafe static delegate* unmanaged _ScreenTextSetPosition; + private static readonly unsafe delegate* unmanaged< ulong, float, float, void > _ScreenTextSetPosition; /// /// 0.0-1.0, where 0.0 is bottom/left, and 1.0 is top/right /// - public unsafe static void ScreenTextSetPosition(ulong textid, float x, float y) + public unsafe static void ScreenTextSetPosition( ulong textid, float x, float y ) { _ScreenTextSetPosition(textid, x, y); } diff --git a/managed/src/SwiftlyS2.Generated/Natives/VoiceManager.cs b/managed/src/SwiftlyS2.Generated/Natives/VoiceManager.cs index 674514bea..8da2570d7 100644 --- a/managed/src/SwiftlyS2.Generated/Natives/VoiceManager.cs +++ b/managed/src/SwiftlyS2.Generated/Natives/VoiceManager.cs @@ -1,41 +1,35 @@ #pragma warning disable CS0649 #pragma warning disable CS0169 -using System.Text; -using System.Threading; -using SwiftlyS2.Shared.Natives; - namespace SwiftlyS2.Core.Natives; internal static class NativeVoiceManager { - private static int _MainThreadID; - - private unsafe static delegate* unmanaged _SetClientListenOverride; + private static readonly unsafe delegate* unmanaged< int, int, int, void > _SetClientListenOverride; - public unsafe static void SetClientListenOverride(int playerid, int targetid, int listenOverride) + public unsafe static void SetClientListenOverride( int playerid, int targetid, int listenOverride ) { _SetClientListenOverride(playerid, targetid, listenOverride); } - private unsafe static delegate* unmanaged _GetClientListenOverride; + private static readonly unsafe delegate* unmanaged< int, int, int > _GetClientListenOverride; - public unsafe static int GetClientListenOverride(int playerid, int targetid) + public unsafe static int GetClientListenOverride( int playerid, int targetid ) { var ret = _GetClientListenOverride(playerid, targetid); return ret; } - private unsafe static delegate* unmanaged _SetClientVoiceFlags; + private static readonly unsafe delegate* unmanaged< int, int, void > _SetClientVoiceFlags; - public unsafe static void SetClientVoiceFlags(int playerid, int flags) + public unsafe static void SetClientVoiceFlags( int playerid, int flags ) { _SetClientVoiceFlags(playerid, flags); } - private unsafe static delegate* unmanaged _GetClientVoiceFlags; + private static readonly unsafe delegate* unmanaged< int, int > _GetClientVoiceFlags; - public unsafe static int GetClientVoiceFlags(int playerid) + public unsafe static int GetClientVoiceFlags( int playerid ) { var ret = _GetClientVoiceFlags(playerid); return ret; diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/AccountActivityImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/AccountActivityImpl.cs index 9043fe56c..b95dc6f3a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/AccountActivityImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/AccountActivityImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class AccountActivityImpl : TypedProtobuf, AccountActivity { - public AccountActivityImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public AccountActivityImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Activity - { get => Accessor.GetUInt32("activity"); set => Accessor.SetUInt32("activity", value); } + public uint Activity { get => Accessor.GetUInt32("activity"); set => Accessor.SetUInt32("activity", value); } - public uint Mode - { get => Accessor.GetUInt32("mode"); set => Accessor.SetUInt32("mode", value); } + public uint Mode { get => Accessor.GetUInt32("mode"); set => Accessor.SetUInt32("mode", value); } - public uint Map - { get => Accessor.GetUInt32("map"); set => Accessor.SetUInt32("map", value); } + public uint Map { get => Accessor.GetUInt32("map"); set => Accessor.SetUInt32("map", value); } - public ulong Matchid - { get => Accessor.GetUInt64("matchid"); set => Accessor.SetUInt64("matchid", value); } + public ulong Matchid { get => Accessor.GetUInt64("matchid"); set => Accessor.SetUInt64("matchid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/C2S_CONNECTION_MessageImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/C2S_CONNECTION_MessageImpl.cs index dbc4c467a..283bf9919 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/C2S_CONNECTION_MessageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/C2S_CONNECTION_MessageImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class C2S_CONNECTION_MessageImpl : TypedProtobuf, C2S_CONNECTION_Message { - public C2S_CONNECTION_MessageImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public C2S_CONNECTION_MessageImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string AddonName - { get => Accessor.GetString("addon_name"); set => Accessor.SetString("addon_name", value); } + public string AddonName { get => Accessor.GetString("addon_name"); set => Accessor.SetString("addon_name", value); } - public C2S_CONNECT_SameProcessCheck LocalhostSameProcessCheck - { get => new C2S_CONNECT_SameProcessCheckImpl(NativeNetMessages.GetNestedMessage(Address, "localhost_same_process_check"), false); } + public C2S_CONNECT_SameProcessCheck LocalhostSameProcessCheck { get => new C2S_CONNECT_SameProcessCheckImpl(NativeNetMessages.GetNestedMessage(Address, "localhost_same_process_check"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/C2S_CONNECT_MessageImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/C2S_CONNECT_MessageImpl.cs index 0fada18d1..9e11a1df0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/C2S_CONNECT_MessageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/C2S_CONNECT_MessageImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,48 +8,38 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class C2S_CONNECT_MessageImpl : TypedProtobuf, C2S_CONNECT_Message { - public C2S_CONNECT_MessageImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public C2S_CONNECT_MessageImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint HostVersion - { get => Accessor.GetUInt32("host_version"); set => Accessor.SetUInt32("host_version", value); } + public uint HostVersion { get => Accessor.GetUInt32("host_version"); set => Accessor.SetUInt32("host_version", value); } - public uint AuthProtocol - { get => Accessor.GetUInt32("auth_protocol"); set => Accessor.SetUInt32("auth_protocol", value); } + public uint AuthProtocol { get => Accessor.GetUInt32("auth_protocol"); set => Accessor.SetUInt32("auth_protocol", value); } - public uint ChallengeNumber - { get => Accessor.GetUInt32("challenge_number"); set => Accessor.SetUInt32("challenge_number", value); } + public uint ChallengeNumber { get => Accessor.GetUInt32("challenge_number"); set => Accessor.SetUInt32("challenge_number", value); } - public ulong ReservationCookie - { get => Accessor.GetUInt64("reservation_cookie"); set => Accessor.SetUInt64("reservation_cookie", value); } + public ulong ReservationCookie { get => Accessor.GetUInt64("reservation_cookie"); set => Accessor.SetUInt64("reservation_cookie", value); } - public bool LowViolence - { get => Accessor.GetBool("low_violence"); set => Accessor.SetBool("low_violence", value); } + public bool LowViolence { get => Accessor.GetBool("low_violence"); set => Accessor.SetBool("low_violence", value); } - public byte[] EncryptedPassword - { get => Accessor.GetBytes("encrypted_password"); set => Accessor.SetBytes("encrypted_password", value); } + public byte[] EncryptedPassword { get => Accessor.GetBytes("encrypted_password"); set => Accessor.SetBytes("encrypted_password", value); } - public IProtobufRepeatedFieldSubMessageType Splitplayers - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "splitplayers"); } + public IProtobufRepeatedFieldSubMessageType Splitplayers { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "splitplayers"); } - public byte[] AuthSteam - { get => Accessor.GetBytes("auth_steam"); set => Accessor.SetBytes("auth_steam", value); } + public byte[] AuthSteam { get => Accessor.GetBytes("auth_steam"); set => Accessor.SetBytes("auth_steam", value); } - public string ChallengeContext - { get => Accessor.GetString("challenge_context"); set => Accessor.SetString("challenge_context", value); } + public string ChallengeContext { get => Accessor.GetString("challenge_context"); set => Accessor.SetString("challenge_context", value); } - public C2S_CONNECT_SameProcessCheck LocalhostSameProcessCheck - { get => new C2S_CONNECT_SameProcessCheckImpl(NativeNetMessages.GetNestedMessage(Address, "localhost_same_process_check"), false); } + public C2S_CONNECT_SameProcessCheck LocalhostSameProcessCheck { get => new C2S_CONNECT_SameProcessCheckImpl(NativeNetMessages.GetNestedMessage(Address, "localhost_same_process_check"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/C2S_CONNECT_SameProcessCheckImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/C2S_CONNECT_SameProcessCheckImpl.cs index c1007ae71..9af4702ef 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/C2S_CONNECT_SameProcessCheckImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/C2S_CONNECT_SameProcessCheckImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class C2S_CONNECT_SameProcessCheckImpl : TypedProtobuf, C2S_CONNECT_SameProcessCheck { - public C2S_CONNECT_SameProcessCheckImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public C2S_CONNECT_SameProcessCheckImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong LocalhostProcessId - { get => Accessor.GetUInt64("localhost_process_id"); set => Accessor.SetUInt64("localhost_process_id", value); } + public ulong LocalhostProcessId { get => Accessor.GetUInt64("localhost_process_id"); set => Accessor.SetUInt64("localhost_process_id", value); } - public ulong Key - { get => Accessor.GetUInt64("key"); set => Accessor.SetUInt64("key", value); } + public ulong Key { get => Accessor.GetUInt64("key"); set => Accessor.SetUInt64("key", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CAttribute_StringImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CAttribute_StringImpl.cs index 0807ab470..a4cc386a1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CAttribute_StringImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CAttribute_StringImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CAttribute_StringImpl : TypedProtobuf, CAttribute_String { - public CAttribute_StringImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CAttribute_StringImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Value - { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } + public string Value { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBaseUserCmdPBImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBaseUserCmdPBImpl.cs index 987bb5f32..93f4e0fd9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBaseUserCmdPBImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBaseUserCmdPBImpl.cs @@ -9,80 +9,62 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CBaseUserCmdPBImpl : TypedProtobuf, CBaseUserCmdPB { - public CBaseUserCmdPBImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CBaseUserCmdPBImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int LegacyCommandNumber - { get => Accessor.GetInt32("legacy_command_number"); set => Accessor.SetInt32("legacy_command_number", value); } + public int LegacyCommandNumber { get => Accessor.GetInt32("legacy_command_number"); set => Accessor.SetInt32("legacy_command_number", value); } - public int ClientTick - { get => Accessor.GetInt32("client_tick"); set => Accessor.SetInt32("client_tick", value); } + public int ClientTick { get => Accessor.GetInt32("client_tick"); set => Accessor.SetInt32("client_tick", value); } - public uint PredictionOffsetTicksX256 - { get => Accessor.GetUInt32("prediction_offset_ticks_x256"); set => Accessor.SetUInt32("prediction_offset_ticks_x256", value); } + public uint PredictionOffsetTicksX256 { get => Accessor.GetUInt32("prediction_offset_ticks_x256"); set => Accessor.SetUInt32("prediction_offset_ticks_x256", value); } - public CInButtonStatePB ButtonsPb - { get => new CInButtonStatePBImpl(NativeNetMessages.GetNestedMessage(Address, "buttons_pb"), false); } + public CInButtonStatePB ButtonsPb { get => new CInButtonStatePBImpl(NativeNetMessages.GetNestedMessage(Address, "buttons_pb"), false); } - public QAngle Viewangles - { get => Accessor.GetQAngle("viewangles"); set => Accessor.SetQAngle("viewangles", value); } + public QAngle Viewangles { get => Accessor.GetQAngle("viewangles"); set => Accessor.SetQAngle("viewangles", value); } - public float Forwardmove - { get => Accessor.GetFloat("forwardmove"); set => Accessor.SetFloat("forwardmove", value); } + public float Forwardmove { get => Accessor.GetFloat("forwardmove"); set => Accessor.SetFloat("forwardmove", value); } - public float Leftmove - { get => Accessor.GetFloat("leftmove"); set => Accessor.SetFloat("leftmove", value); } + public float Leftmove { get => Accessor.GetFloat("leftmove"); set => Accessor.SetFloat("leftmove", value); } - public float Upmove - { get => Accessor.GetFloat("upmove"); set => Accessor.SetFloat("upmove", value); } + public float Upmove { get => Accessor.GetFloat("upmove"); set => Accessor.SetFloat("upmove", value); } - public int Impulse - { get => Accessor.GetInt32("impulse"); set => Accessor.SetInt32("impulse", value); } + public int Impulse { get => Accessor.GetInt32("impulse"); set => Accessor.SetInt32("impulse", value); } - public int Weaponselect - { get => Accessor.GetInt32("weaponselect"); set => Accessor.SetInt32("weaponselect", value); } + public int Weaponselect { get => Accessor.GetInt32("weaponselect"); set => Accessor.SetInt32("weaponselect", value); } - public int RandomSeed - { get => Accessor.GetInt32("random_seed"); set => Accessor.SetInt32("random_seed", value); } + public int RandomSeed { get => Accessor.GetInt32("random_seed"); set => Accessor.SetInt32("random_seed", value); } - public int Mousedx - { get => Accessor.GetInt32("mousedx"); set => Accessor.SetInt32("mousedx", value); } + public int Mousedx { get => Accessor.GetInt32("mousedx"); set => Accessor.SetInt32("mousedx", value); } - public int Mousedy - { get => Accessor.GetInt32("mousedy"); set => Accessor.SetInt32("mousedy", value); } + public int Mousedy { get => Accessor.GetInt32("mousedy"); set => Accessor.SetInt32("mousedy", value); } - public uint PawnEntityHandle - { get => Accessor.GetUInt32("pawn_entity_handle"); set => Accessor.SetUInt32("pawn_entity_handle", value); } + public uint PawnEntityHandle { get => Accessor.GetUInt32("pawn_entity_handle"); set => Accessor.SetUInt32("pawn_entity_handle", value); } - public IProtobufRepeatedFieldSubMessageType SubtickMoves - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "subtick_moves"); } + public IProtobufRepeatedFieldSubMessageType SubtickMoves { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "subtick_moves"); } - public byte[] MoveCrc - { get => Accessor.GetBytes("move_crc"); set => Accessor.SetBytes("move_crc", value); } + public byte[] MoveCrc { get => Accessor.GetBytes("move_crc"); set => Accessor.SetBytes("move_crc", value); } - public uint ConsumedServerAngleChanges - { get => Accessor.GetUInt32("consumed_server_angle_changes"); set => Accessor.SetUInt32("consumed_server_angle_changes", value); } + public uint ConsumedServerAngleChanges { get => Accessor.GetUInt32("consumed_server_angle_changes"); set => Accessor.SetUInt32("consumed_server_angle_changes", value); } - public int CmdFlags - { get => Accessor.GetInt32("cmd_flags"); set => Accessor.SetInt32("cmd_flags", value); } + public int CmdFlags { get => Accessor.GetInt32("cmd_flags"); set => Accessor.SetInt32("cmd_flags", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBidirMsg_PredictionEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBidirMsg_PredictionEventImpl.cs index 499d04e31..4508c8242 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBidirMsg_PredictionEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBidirMsg_PredictionEventImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CBidirMsg_PredictionEventImpl : TypedProtobuf, CBidirMsg_PredictionEvent { - public CBidirMsg_PredictionEventImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CBidirMsg_PredictionEventImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint EventId - { get => Accessor.GetUInt32("event_id"); set => Accessor.SetUInt32("event_id", value); } + public uint EventId { get => Accessor.GetUInt32("event_id"); set => Accessor.SetUInt32("event_id", value); } - public byte[] EventData - { get => Accessor.GetBytes("event_data"); set => Accessor.SetBytes("event_data", value); } + public byte[] EventData { get => Accessor.GetBytes("event_data"); set => Accessor.SetBytes("event_data", value); } - public uint SyncType - { get => Accessor.GetUInt32("sync_type"); set => Accessor.SetUInt32("sync_type", value); } + public uint SyncType { get => Accessor.GetUInt32("sync_type"); set => Accessor.SetUInt32("sync_type", value); } - public uint SyncValUint32 - { get => Accessor.GetUInt32("sync_val_uint32"); set => Accessor.SetUInt32("sync_val_uint32", value); } + public uint SyncValUint32 { get => Accessor.GetUInt32("sync_val_uint32"); set => Accessor.SetUInt32("sync_val_uint32", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBidirMsg_RebroadcastGameEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBidirMsg_RebroadcastGameEventImpl.cs index 3583ddcfc..fdca23753 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBidirMsg_RebroadcastGameEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBidirMsg_RebroadcastGameEventImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CBidirMsg_RebroadcastGameEventImpl : TypedProtobuf, CBidirMsg_RebroadcastGameEvent { - public CBidirMsg_RebroadcastGameEventImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CBidirMsg_RebroadcastGameEventImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool Posttoserver - { get => Accessor.GetBool("posttoserver"); set => Accessor.SetBool("posttoserver", value); } + public bool Posttoserver { get => Accessor.GetBool("posttoserver"); set => Accessor.SetBool("posttoserver", value); } - public int Buftype - { get => Accessor.GetInt32("buftype"); set => Accessor.SetInt32("buftype", value); } + public int Buftype { get => Accessor.GetInt32("buftype"); set => Accessor.SetInt32("buftype", value); } - public uint Clientbitcount - { get => Accessor.GetUInt32("clientbitcount"); set => Accessor.SetUInt32("clientbitcount", value); } + public uint Clientbitcount { get => Accessor.GetUInt32("clientbitcount"); set => Accessor.SetUInt32("clientbitcount", value); } - public ulong Receivingclients - { get => Accessor.GetUInt64("receivingclients"); set => Accessor.SetUInt64("receivingclients", value); } + public ulong Receivingclients { get => Accessor.GetUInt64("receivingclients"); set => Accessor.SetUInt64("receivingclients", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBidirMsg_RebroadcastSourceImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBidirMsg_RebroadcastSourceImpl.cs index b8211320e..b9da852cf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBidirMsg_RebroadcastSourceImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CBidirMsg_RebroadcastSourceImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CBidirMsg_RebroadcastSourceImpl : TypedProtobuf, CBidirMsg_RebroadcastSource { - public CBidirMsg_RebroadcastSourceImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CBidirMsg_RebroadcastSourceImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Eventsource - { get => Accessor.GetInt32("eventsource"); set => Accessor.SetInt32("eventsource", value); } + public int Eventsource { get => Accessor.GetInt32("eventsource"); set => Accessor.SetInt32("eventsource", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_BaselineAckImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_BaselineAckImpl.cs index 186ba43a7..8de0e86a7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_BaselineAckImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_BaselineAckImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_BaselineAckImpl : NetMessage, CCLCMsg_BaselineAck { - public CCLCMsg_BaselineAckImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_BaselineAckImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int BaselineTick - { get => Accessor.GetInt32("baseline_tick"); set => Accessor.SetInt32("baseline_tick", value); } + public int BaselineTick { get => Accessor.GetInt32("baseline_tick"); set => Accessor.SetInt32("baseline_tick", value); } - public int BaselineNr - { get => Accessor.GetInt32("baseline_nr"); set => Accessor.SetInt32("baseline_nr", value); } + public int BaselineNr { get => Accessor.GetInt32("baseline_nr"); set => Accessor.SetInt32("baseline_nr", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_ClientInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_ClientInfoImpl.cs index d94866974..fd76d37ef 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_ClientInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_ClientInfoImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_ClientInfoImpl : NetMessage, CCLCMsg_ClientInfo { - public CCLCMsg_ClientInfoImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_ClientInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint SendTableCrc - { get => Accessor.GetUInt32("send_table_crc"); set => Accessor.SetUInt32("send_table_crc", value); } + public uint SendTableCrc { get => Accessor.GetUInt32("send_table_crc"); set => Accessor.SetUInt32("send_table_crc", value); } - public uint ServerCount - { get => Accessor.GetUInt32("server_count"); set => Accessor.SetUInt32("server_count", value); } + public uint ServerCount { get => Accessor.GetUInt32("server_count"); set => Accessor.SetUInt32("server_count", value); } - public bool IsHltv - { get => Accessor.GetBool("is_hltv"); set => Accessor.SetBool("is_hltv", value); } + public bool IsHltv { get => Accessor.GetBool("is_hltv"); set => Accessor.SetBool("is_hltv", value); } - public uint FriendsId - { get => Accessor.GetUInt32("friends_id"); set => Accessor.SetUInt32("friends_id", value); } + public uint FriendsId { get => Accessor.GetUInt32("friends_id"); set => Accessor.SetUInt32("friends_id", value); } - public string FriendsName - { get => Accessor.GetString("friends_name"); set => Accessor.SetString("friends_name", value); } + public string FriendsName { get => Accessor.GetString("friends_name"); set => Accessor.SetString("friends_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_CmdKeyValuesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_CmdKeyValuesImpl.cs index dea65dc8f..32de053d6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_CmdKeyValuesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_CmdKeyValuesImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_CmdKeyValuesImpl : NetMessage, CCLCMsg_CmdKeyValues { - public CCLCMsg_CmdKeyValuesImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_CmdKeyValuesImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_DiagnosticImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_DiagnosticImpl.cs index 0f51dcf96..ffa54ad7e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_DiagnosticImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_DiagnosticImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,28 +8,23 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_DiagnosticImpl : NetMessage, CCLCMsg_Diagnostic { - public CCLCMsg_DiagnosticImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_DiagnosticImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CMsgSource2SystemSpecs SystemSpecs - { get => new CMsgSource2SystemSpecsImpl(NativeNetMessages.GetNestedMessage(Address, "system_specs"), false); } + public CMsgSource2SystemSpecs SystemSpecs { get => new CMsgSource2SystemSpecsImpl(NativeNetMessages.GetNestedMessage(Address, "system_specs"), false); } - public CMsgSource2VProfLiteReport VprofReport - { get => new CMsgSource2VProfLiteReportImpl(NativeNetMessages.GetNestedMessage(Address, "vprof_report"), false); } + public CMsgSource2VProfLiteReport VprofReport { get => new CMsgSource2VProfLiteReportImpl(NativeNetMessages.GetNestedMessage(Address, "vprof_report"), false); } - public CMsgSource2NetworkFlowQuality DownstreamFlow - { get => new CMsgSource2NetworkFlowQualityImpl(NativeNetMessages.GetNestedMessage(Address, "downstream_flow"), false); } + public CMsgSource2NetworkFlowQuality DownstreamFlow { get => new CMsgSource2NetworkFlowQualityImpl(NativeNetMessages.GetNestedMessage(Address, "downstream_flow"), false); } - public CMsgSource2NetworkFlowQuality UpstreamFlow - { get => new CMsgSource2NetworkFlowQualityImpl(NativeNetMessages.GetNestedMessage(Address, "upstream_flow"), false); } + public CMsgSource2NetworkFlowQuality UpstreamFlow { get => new CMsgSource2NetworkFlowQualityImpl(NativeNetMessages.GetNestedMessage(Address, "upstream_flow"), false); } - public IProtobufRepeatedFieldSubMessageType PerfSamples - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "perf_samples"); } + public IProtobufRepeatedFieldSubMessageType PerfSamples { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "perf_samples"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_HltvFixupOperatorTickImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_HltvFixupOperatorTickImpl.cs index a655afcb9..ca1d9e8e2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_HltvFixupOperatorTickImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_HltvFixupOperatorTickImpl.cs @@ -1,48 +1,37 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_HltvFixupOperatorTickImpl : TypedProtobuf, CCLCMsg_HltvFixupOperatorTick { - public CCLCMsg_HltvFixupOperatorTickImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCLCMsg_HltvFixupOperatorTickImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Tick - { get => Accessor.GetInt32("tick"); set => Accessor.SetInt32("tick", value); } + public int Tick { get => Accessor.GetInt32("tick"); set => Accessor.SetInt32("tick", value); } - public byte[] PropsData - { get => Accessor.GetBytes("props_data"); set => Accessor.SetBytes("props_data", value); } + public byte[] PropsData { get => Accessor.GetBytes("props_data"); set => Accessor.SetBytes("props_data", value); } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public QAngle EyeAngles - { get => Accessor.GetQAngle("eye_angles"); set => Accessor.SetQAngle("eye_angles", value); } + public QAngle EyeAngles { get => Accessor.GetQAngle("eye_angles"); set => Accessor.SetQAngle("eye_angles", value); } - public int ObserverMode - { get => Accessor.GetInt32("observer_mode"); set => Accessor.SetInt32("observer_mode", value); } + public int ObserverMode { get => Accessor.GetInt32("observer_mode"); set => Accessor.SetInt32("observer_mode", value); } - public bool CameramanScoreboard - { get => Accessor.GetBool("cameraman_scoreboard"); set => Accessor.SetBool("cameraman_scoreboard", value); } + public bool CameramanScoreboard { get => Accessor.GetBool("cameraman_scoreboard"); set => Accessor.SetBool("cameraman_scoreboard", value); } - public int ObserverTarget - { get => Accessor.GetInt32("observer_target"); set => Accessor.SetInt32("observer_target", value); } + public int ObserverTarget { get => Accessor.GetInt32("observer_target"); set => Accessor.SetInt32("observer_target", value); } - public Vector ViewOffset - { get => Accessor.GetVector("view_offset"); set => Accessor.SetVector("view_offset", value); } + public Vector ViewOffset { get => Accessor.GetVector("view_offset"); set => Accessor.SetVector("view_offset", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_HltvReplayImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_HltvReplayImpl.cs index d16bc153e..0bf19f954 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_HltvReplayImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_HltvReplayImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_HltvReplayImpl : NetMessage, CCLCMsg_HltvReplay { - public CCLCMsg_HltvReplayImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_HltvReplayImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Request - { get => Accessor.GetInt32("request"); set => Accessor.SetInt32("request", value); } + public int Request { get => Accessor.GetInt32("request"); set => Accessor.SetInt32("request", value); } - public float SlowdownLength - { get => Accessor.GetFloat("slowdown_length"); set => Accessor.SetFloat("slowdown_length", value); } + public float SlowdownLength { get => Accessor.GetFloat("slowdown_length"); set => Accessor.SetFloat("slowdown_length", value); } - public float SlowdownRate - { get => Accessor.GetFloat("slowdown_rate"); set => Accessor.SetFloat("slowdown_rate", value); } + public float SlowdownRate { get => Accessor.GetFloat("slowdown_rate"); set => Accessor.SetFloat("slowdown_rate", value); } - public int PrimaryTarget - { get => Accessor.GetInt32("primary_target"); set => Accessor.SetInt32("primary_target", value); } + public int PrimaryTarget { get => Accessor.GetInt32("primary_target"); set => Accessor.SetInt32("primary_target", value); } - public float EventTime - { get => Accessor.GetFloat("event_time"); set => Accessor.SetFloat("event_time", value); } + public float EventTime { get => Accessor.GetFloat("event_time"); set => Accessor.SetFloat("event_time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_ListenEventsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_ListenEventsImpl.cs index 65e75073e..e2673082e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_ListenEventsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_ListenEventsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_ListenEventsImpl : TypedProtobuf, CCLCMsg_ListenEvents { - public CCLCMsg_ListenEventsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCLCMsg_ListenEventsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldValueType EventMask - { get => new ProtobufRepeatedFieldValueType(Accessor, "event_mask"); } + public IProtobufRepeatedFieldValueType EventMask { get => new ProtobufRepeatedFieldValueType(Accessor, "event_mask"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_LoadingProgressImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_LoadingProgressImpl.cs index c3b746a76..2000f0811 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_LoadingProgressImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_LoadingProgressImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_LoadingProgressImpl : NetMessage, CCLCMsg_LoadingProgress { - public CCLCMsg_LoadingProgressImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_LoadingProgressImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Progress - { get => Accessor.GetInt32("progress"); set => Accessor.SetInt32("progress", value); } + public int Progress { get => Accessor.GetInt32("progress"); set => Accessor.SetInt32("progress", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_MoveImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_MoveImpl.cs index 9a6c4ae66..dfd3f9b07 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_MoveImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_MoveImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_MoveImpl : NetMessage, CCLCMsg_Move { - public CCLCMsg_MoveImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_MoveImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } - public uint LastCommandNumber - { get => Accessor.GetUInt32("last_command_number"); set => Accessor.SetUInt32("last_command_number", value); } + public uint LastCommandNumber { get => Accessor.GetUInt32("last_command_number"); set => Accessor.SetUInt32("last_command_number", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_RconServerDetailsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_RconServerDetailsImpl.cs index fb3637c3e..96c729d1d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_RconServerDetailsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_RconServerDetailsImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_RconServerDetailsImpl : NetMessage, CCLCMsg_RconServerDetails { - public CCLCMsg_RconServerDetailsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_RconServerDetailsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public byte[] Token - { get => Accessor.GetBytes("token"); set => Accessor.SetBytes("token", value); } + public byte[] Token { get => Accessor.GetBytes("token"); set => Accessor.SetBytes("token", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_RequestPauseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_RequestPauseImpl.cs index a924a0d61..546971aad 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_RequestPauseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_RequestPauseImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_RequestPauseImpl : NetMessage, CCLCMsg_RequestPause { - public CCLCMsg_RequestPauseImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_RequestPauseImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public RequestPause_t PauseType - { get => (RequestPause_t)Accessor.GetInt32("pause_type"); set => Accessor.SetInt32("pause_type", (int)value); } + public RequestPause_t PauseType { get => (RequestPause_t)Accessor.GetInt32("pause_type"); set => Accessor.SetInt32("pause_type", (int)value); } - public int PauseGroup - { get => Accessor.GetInt32("pause_group"); set => Accessor.SetInt32("pause_group", value); } + public int PauseGroup { get => Accessor.GetInt32("pause_group"); set => Accessor.SetInt32("pause_group", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_RespondCvarValueImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_RespondCvarValueImpl.cs index 5064063bf..cdb8a85f5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_RespondCvarValueImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_RespondCvarValueImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_RespondCvarValueImpl : NetMessage, CCLCMsg_RespondCvarValue { - public CCLCMsg_RespondCvarValueImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_RespondCvarValueImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Cookie - { get => Accessor.GetInt32("cookie"); set => Accessor.SetInt32("cookie", value); } + public int Cookie { get => Accessor.GetInt32("cookie"); set => Accessor.SetInt32("cookie", value); } - public int StatusCode - { get => Accessor.GetInt32("status_code"); set => Accessor.SetInt32("status_code", value); } + public int StatusCode { get => Accessor.GetInt32("status_code"); set => Accessor.SetInt32("status_code", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public string Value - { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } + public string Value { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_ServerStatusImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_ServerStatusImpl.cs index 6542d8915..2731a79d5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_ServerStatusImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_ServerStatusImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_ServerStatusImpl : NetMessage, CCLCMsg_ServerStatus { - public CCLCMsg_ServerStatusImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_ServerStatusImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public bool Simplified - { get => Accessor.GetBool("simplified"); set => Accessor.SetBool("simplified", value); } + public bool Simplified { get => Accessor.GetBool("simplified"); set => Accessor.SetBool("simplified", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_SplitPlayerConnectImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_SplitPlayerConnectImpl.cs index 1df0b04fd..2210a2cd5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_SplitPlayerConnectImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_SplitPlayerConnectImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_SplitPlayerConnectImpl : NetMessage, CCLCMsg_SplitPlayerConnect { - public CCLCMsg_SplitPlayerConnectImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_SplitPlayerConnectImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Playername - { get => Accessor.GetString("playername"); set => Accessor.SetString("playername", value); } + public string Playername { get => Accessor.GetString("playername"); set => Accessor.SetString("playername", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_SplitPlayerDisconnectImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_SplitPlayerDisconnectImpl.cs index 9d54c33f9..4b8952455 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_SplitPlayerDisconnectImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_SplitPlayerDisconnectImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_SplitPlayerDisconnectImpl : NetMessage, CCLCMsg_SplitPlayerDisconnect { - public CCLCMsg_SplitPlayerDisconnectImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_SplitPlayerDisconnectImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Slot - { get => Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } + public int Slot { get => Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_VoiceDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_VoiceDataImpl.cs index 91224678d..aecd176ea 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_VoiceDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCLCMsg_VoiceDataImpl.cs @@ -1,28 +1,23 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCLCMsg_VoiceDataImpl : NetMessage, CCLCMsg_VoiceData { - public CCLCMsg_VoiceDataImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCLCMsg_VoiceDataImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CMsgVoiceAudio Audio - { get => new CMsgVoiceAudioImpl(NativeNetMessages.GetNestedMessage(Address, "audio"), false); } + public CMsgVoiceAudio Audio { get => new CMsgVoiceAudioImpl(NativeNetMessages.GetNestedMessage(Address, "audio"), false); } - public ulong Xuid - { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } + public ulong Xuid { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } - public uint Tick - { get => Accessor.GetUInt32("tick"); set => Accessor.SetUInt32("tick", value); } + public uint Tick { get => Accessor.GetUInt32("tick"); set => Accessor.SetUInt32("tick", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSPredictionEvent_AddAimPunchImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSPredictionEvent_AddAimPunchImpl.cs index e113a3e4e..016f510fa 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSPredictionEvent_AddAimPunchImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSPredictionEvent_AddAimPunchImpl.cs @@ -1,28 +1,22 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSPredictionEvent_AddAimPunchImpl : TypedProtobuf, CCSPredictionEvent_AddAimPunch { - public CCSPredictionEvent_AddAimPunchImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSPredictionEvent_AddAimPunchImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public QAngle PunchAngle - { get => Accessor.GetQAngle("punch_angle"); set => Accessor.SetQAngle("punch_angle", value); } + public QAngle PunchAngle { get => Accessor.GetQAngle("punch_angle"); set => Accessor.SetQAngle("punch_angle", value); } - public uint WhenTick - { get => Accessor.GetUInt32("when_tick"); set => Accessor.SetUInt32("when_tick", value); } + public uint WhenTick { get => Accessor.GetUInt32("when_tick"); set => Accessor.SetUInt32("when_tick", value); } - public float WhenTickFrac - { get => Accessor.GetFloat("when_tick_frac"); set => Accessor.SetFloat("when_tick_frac", value); } + public float WhenTickFrac { get => Accessor.GetFloat("when_tick_frac"); set => Accessor.SetFloat("when_tick_frac", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSPredictionEvent_DamageTagImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSPredictionEvent_DamageTagImpl.cs index 97352b827..5b6f3d6fe 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSPredictionEvent_DamageTagImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSPredictionEvent_DamageTagImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSPredictionEvent_DamageTagImpl : TypedProtobuf, CCSPredictionEvent_DamageTag { - public CCSPredictionEvent_DamageTagImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSPredictionEvent_DamageTagImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float FlinchModSmall - { get => Accessor.GetFloat("flinch_mod_small"); set => Accessor.SetFloat("flinch_mod_small", value); } + public float FlinchModSmall { get => Accessor.GetFloat("flinch_mod_small"); set => Accessor.SetFloat("flinch_mod_small", value); } - public float FlinchModLarge - { get => Accessor.GetFloat("flinch_mod_large"); set => Accessor.SetFloat("flinch_mod_large", value); } + public float FlinchModLarge { get => Accessor.GetFloat("flinch_mod_large"); set => Accessor.SetFloat("flinch_mod_large", value); } - public float FriendlyFireDamageReductionRatio - { get => Accessor.GetFloat("friendly_fire_damage_reduction_ratio"); set => Accessor.SetFloat("friendly_fire_damage_reduction_ratio", value); } + public float FriendlyFireDamageReductionRatio { get => Accessor.GetFloat("friendly_fire_damage_reduction_ratio"); set => Accessor.SetFloat("friendly_fire_damage_reduction_ratio", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsgPreMatchSayTextImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsgPreMatchSayTextImpl.cs index f07806562..1de7b71a1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsgPreMatchSayTextImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsgPreMatchSayTextImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsgPreMatchSayTextImpl : TypedProtobuf, CCSUsrMsgPreMatchSayText { - public CCSUsrMsgPreMatchSayTextImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsgPreMatchSayTextImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } - public bool AllChat - { get => Accessor.GetBool("all_chat"); set => Accessor.SetBool("all_chat", value); } + public bool AllChat { get => Accessor.GetBool("all_chat"); set => Accessor.SetBool("all_chat", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_AchievementEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_AchievementEventImpl.cs index def55b51b..5684c3bfb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_AchievementEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_AchievementEventImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_AchievementEventImpl : NetMessage, CCSUsrMsg_AchievementEvent { - public CCSUsrMsg_AchievementEventImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_AchievementEventImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Achievement - { get => Accessor.GetInt32("achievement"); set => Accessor.SetInt32("achievement", value); } + public int Achievement { get => Accessor.GetInt32("achievement"); set => Accessor.SetInt32("achievement", value); } - public int Count - { get => Accessor.GetInt32("count"); set => Accessor.SetInt32("count", value); } + public int Count { get => Accessor.GetInt32("count"); set => Accessor.SetInt32("count", value); } - public int UserId - { get => Accessor.GetInt32("user_id"); set => Accessor.SetInt32("user_id", value); } + public int UserId { get => Accessor.GetInt32("user_id"); set => Accessor.SetInt32("user_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_AdjustMoneyImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_AdjustMoneyImpl.cs index 2d62485ea..5a1fd4356 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_AdjustMoneyImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_AdjustMoneyImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_AdjustMoneyImpl : NetMessage, CCSUsrMsg_AdjustMoney { - public CCSUsrMsg_AdjustMoneyImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_AdjustMoneyImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Amount - { get => Accessor.GetInt32("amount"); set => Accessor.SetInt32("amount", value); } + public int Amount { get => Accessor.GetInt32("amount"); set => Accessor.SetInt32("amount", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_AmmoDeniedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_AmmoDeniedImpl.cs index f46a0fe89..747b4d425 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_AmmoDeniedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_AmmoDeniedImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_AmmoDeniedImpl : NetMessage, CCSUsrMsg_AmmoDenied { - public CCSUsrMsg_AmmoDeniedImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_AmmoDeniedImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Ammoidx - { get => Accessor.GetInt32("ammoidx"); set => Accessor.SetInt32("ammoidx", value); } + public int Ammoidx { get => Accessor.GetInt32("ammoidx"); set => Accessor.SetInt32("ammoidx", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_BarTimeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_BarTimeImpl.cs index e7a19b464..77a9b1bdb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_BarTimeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_BarTimeImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_BarTimeImpl : NetMessage, CCSUsrMsg_BarTime { - public CCSUsrMsg_BarTimeImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_BarTimeImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Time - { get => Accessor.GetString("time"); set => Accessor.SetString("time", value); } + public string Time { get => Accessor.GetString("time"); set => Accessor.SetString("time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CallVoteFailedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CallVoteFailedImpl.cs index 5ecc0fcac..813ec5dfa 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CallVoteFailedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CallVoteFailedImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_CallVoteFailedImpl : NetMessage, CCSUsrMsg_CallVoteFailed { - public CCSUsrMsg_CallVoteFailedImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_CallVoteFailedImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Reason - { get => Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } + public int Reason { get => Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } - public int Time - { get => Accessor.GetInt32("time"); set => Accessor.SetInt32("time", value); } + public int Time { get => Accessor.GetInt32("time"); set => Accessor.SetInt32("time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ClientInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ClientInfoImpl.cs index d77501cf1..62277cde5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ClientInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ClientInfoImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ClientInfoImpl : NetMessage, CCSUsrMsg_ClientInfo { - public CCSUsrMsg_ClientInfoImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_ClientInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Dummy - { get => Accessor.GetInt32("dummy"); set => Accessor.SetInt32("dummy", value); } + public int Dummy { get => Accessor.GetInt32("dummy"); set => Accessor.SetInt32("dummy", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CloseCaptionDirectImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CloseCaptionDirectImpl.cs index 92e6319cb..ba55a6f70 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CloseCaptionDirectImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CloseCaptionDirectImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_CloseCaptionDirectImpl : NetMessage, CCSUsrMsg_CloseCaptionDirect { - public CCSUsrMsg_CloseCaptionDirectImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_CloseCaptionDirectImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Hash - { get => Accessor.GetUInt32("hash"); set => Accessor.SetUInt32("hash", value); } + public uint Hash { get => Accessor.GetUInt32("hash"); set => Accessor.SetUInt32("hash", value); } - public int Duration - { get => Accessor.GetInt32("duration"); set => Accessor.SetInt32("duration", value); } + public int Duration { get => Accessor.GetInt32("duration"); set => Accessor.SetInt32("duration", value); } - public bool FromPlayer - { get => Accessor.GetBool("from_player"); set => Accessor.SetBool("from_player", value); } + public bool FromPlayer { get => Accessor.GetBool("from_player"); set => Accessor.SetBool("from_player", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CloseCaptionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CloseCaptionImpl.cs index cfc1e1968..ec898c670 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CloseCaptionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CloseCaptionImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_CloseCaptionImpl : NetMessage, CCSUsrMsg_CloseCaption { - public CCSUsrMsg_CloseCaptionImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_CloseCaptionImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Hash - { get => Accessor.GetUInt32("hash"); set => Accessor.SetUInt32("hash", value); } + public uint Hash { get => Accessor.GetUInt32("hash"); set => Accessor.SetUInt32("hash", value); } - public int Duration - { get => Accessor.GetInt32("duration"); set => Accessor.SetInt32("duration", value); } + public int Duration { get => Accessor.GetInt32("duration"); set => Accessor.SetInt32("duration", value); } - public bool FromPlayer - { get => Accessor.GetBool("from_player"); set => Accessor.SetBool("from_player", value); } + public bool FromPlayer { get => Accessor.GetBool("from_player"); set => Accessor.SetBool("from_player", value); } - public string Cctoken - { get => Accessor.GetString("cctoken"); set => Accessor.SetString("cctoken", value); } + public string Cctoken { get => Accessor.GetString("cctoken"); set => Accessor.SetString("cctoken", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CounterStrafeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CounterStrafeImpl.cs index 073e7714f..c7544f018 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CounterStrafeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CounterStrafeImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_CounterStrafeImpl : NetMessage, CCSUsrMsg_CounterStrafe { - public CCSUsrMsg_CounterStrafeImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_CounterStrafeImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int PressToReleaseNs - { get => Accessor.GetInt32("press_to_release_ns"); set => Accessor.SetInt32("press_to_release_ns", value); } + public int PressToReleaseNs { get => Accessor.GetInt32("press_to_release_ns"); set => Accessor.SetInt32("press_to_release_ns", value); } - public int TotalKeysDown - { get => Accessor.GetInt32("total_keys_down"); set => Accessor.SetInt32("total_keys_down", value); } + public int TotalKeysDown { get => Accessor.GetInt32("total_keys_down"); set => Accessor.SetInt32("total_keys_down", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CurrentRoundOddsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CurrentRoundOddsImpl.cs index 48948e397..123bf3b40 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CurrentRoundOddsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CurrentRoundOddsImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_CurrentRoundOddsImpl : NetMessage, CCSUsrMsg_CurrentRoundOdds { - public CCSUsrMsg_CurrentRoundOddsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_CurrentRoundOddsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Odds - { get => Accessor.GetInt32("odds"); set => Accessor.SetInt32("odds", value); } + public int Odds { get => Accessor.GetInt32("odds"); set => Accessor.SetInt32("odds", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CurrentTimescaleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CurrentTimescaleImpl.cs index 3320a722a..2a5ba6520 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CurrentTimescaleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_CurrentTimescaleImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_CurrentTimescaleImpl : NetMessage, CCSUsrMsg_CurrentTimescale { - public CCSUsrMsg_CurrentTimescaleImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_CurrentTimescaleImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public float CurTimescale - { get => Accessor.GetFloat("cur_timescale"); set => Accessor.SetFloat("cur_timescale", value); } + public float CurTimescale { get => Accessor.GetFloat("cur_timescale"); set => Accessor.SetFloat("cur_timescale", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DamageImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DamageImpl.cs index 1c813538b..c47c34657 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DamageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DamageImpl.cs @@ -1,28 +1,22 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_DamageImpl : NetMessage, CCSUsrMsg_Damage { - public CCSUsrMsg_DamageImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_DamageImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Amount - { get => Accessor.GetInt32("amount"); set => Accessor.SetInt32("amount", value); } + public int Amount { get => Accessor.GetInt32("amount"); set => Accessor.SetInt32("amount", value); } - public Vector InflictorWorldPos - { get => Accessor.GetVector("inflictor_world_pos"); set => Accessor.SetVector("inflictor_world_pos", value); } + public Vector InflictorWorldPos { get => Accessor.GetVector("inflictor_world_pos"); set => Accessor.SetVector("inflictor_world_pos", value); } - public int VictimEntindex - { get => Accessor.GetInt32("victim_entindex"); set => Accessor.SetInt32("victim_entindex", value); } + public int VictimEntindex { get => Accessor.GetInt32("victim_entindex"); set => Accessor.SetInt32("victim_entindex", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DamagePredictionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DamagePredictionImpl.cs index 35e552398..032e97b16 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DamagePredictionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DamagePredictionImpl.cs @@ -1,48 +1,37 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_DamagePredictionImpl : NetMessage, CCSUsrMsg_DamagePrediction { - public CCSUsrMsg_DamagePredictionImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_DamagePredictionImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int CommandNum - { get => Accessor.GetInt32("command_num"); set => Accessor.SetInt32("command_num", value); } + public int CommandNum { get => Accessor.GetInt32("command_num"); set => Accessor.SetInt32("command_num", value); } - public int PelletIdx - { get => Accessor.GetInt32("pellet_idx"); set => Accessor.SetInt32("pellet_idx", value); } + public int PelletIdx { get => Accessor.GetInt32("pellet_idx"); set => Accessor.SetInt32("pellet_idx", value); } - public int VictimSlot - { get => Accessor.GetInt32("victim_slot"); set => Accessor.SetInt32("victim_slot", value); } + public int VictimSlot { get => Accessor.GetInt32("victim_slot"); set => Accessor.SetInt32("victim_slot", value); } - public int VictimStartingHealth - { get => Accessor.GetInt32("victim_starting_health"); set => Accessor.SetInt32("victim_starting_health", value); } + public int VictimStartingHealth { get => Accessor.GetInt32("victim_starting_health"); set => Accessor.SetInt32("victim_starting_health", value); } - public int VictimDamage - { get => Accessor.GetInt32("victim_damage"); set => Accessor.SetInt32("victim_damage", value); } + public int VictimDamage { get => Accessor.GetInt32("victim_damage"); set => Accessor.SetInt32("victim_damage", value); } - public Vector ShootPos - { get => Accessor.GetVector("shoot_pos"); set => Accessor.SetVector("shoot_pos", value); } + public Vector ShootPos { get => Accessor.GetVector("shoot_pos"); set => Accessor.SetVector("shoot_pos", value); } - public QAngle ShootDir - { get => Accessor.GetQAngle("shoot_dir"); set => Accessor.SetQAngle("shoot_dir", value); } + public QAngle ShootDir { get => Accessor.GetQAngle("shoot_dir"); set => Accessor.SetQAngle("shoot_dir", value); } - public QAngle AimPunch - { get => Accessor.GetQAngle("aim_punch"); set => Accessor.SetQAngle("aim_punch", value); } + public QAngle AimPunch { get => Accessor.GetQAngle("aim_punch"); set => Accessor.SetQAngle("aim_punch", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DeepStatsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DeepStatsImpl.cs index 852955ea9..ba30f5673 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DeepStatsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DeepStatsImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_DeepStatsImpl : NetMessage, CCSUsrMsg_DeepStats { - public CCSUsrMsg_DeepStatsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_DeepStatsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CMsgGCCStrike15_ClientDeepStats Stats - { get => new CMsgGCCStrike15_ClientDeepStatsImpl(NativeNetMessages.GetNestedMessage(Address, "stats"), false); } + public CMsgGCCStrike15_ClientDeepStats Stats { get => new CMsgGCCStrike15_ClientDeepStatsImpl(NativeNetMessages.GetNestedMessage(Address, "stats"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DesiredTimescaleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DesiredTimescaleImpl.cs index e33d8f520..afd0eedd4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DesiredTimescaleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DesiredTimescaleImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_DesiredTimescaleImpl : NetMessage, CCSUsrMsg_DesiredTimescale { - public CCSUsrMsg_DesiredTimescaleImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_DesiredTimescaleImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public float DesiredTimescale - { get => Accessor.GetFloat("desired_timescale"); set => Accessor.SetFloat("desired_timescale", value); } + public float DesiredTimescale { get => Accessor.GetFloat("desired_timescale"); set => Accessor.SetFloat("desired_timescale", value); } - public float DurationRealtimeSec - { get => Accessor.GetFloat("duration_realtime_sec"); set => Accessor.SetFloat("duration_realtime_sec", value); } + public float DurationRealtimeSec { get => Accessor.GetFloat("duration_realtime_sec"); set => Accessor.SetFloat("duration_realtime_sec", value); } - public int InterpolatorType - { get => Accessor.GetInt32("interpolator_type"); set => Accessor.SetInt32("interpolator_type", value); } + public int InterpolatorType { get => Accessor.GetInt32("interpolator_type"); set => Accessor.SetInt32("interpolator_type", value); } - public float StartBlendTime - { get => Accessor.GetFloat("start_blend_time"); set => Accessor.SetFloat("start_blend_time", value); } + public float StartBlendTime { get => Accessor.GetFloat("start_blend_time"); set => Accessor.SetFloat("start_blend_time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DisconnectToLobbyImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DisconnectToLobbyImpl.cs index 754b0a6e2..657dae61f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DisconnectToLobbyImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_DisconnectToLobbyImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_DisconnectToLobbyImpl : NetMessage, CCSUsrMsg_DisconnectToLobby { - public CCSUsrMsg_DisconnectToLobbyImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_DisconnectToLobbyImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Dummy - { get => Accessor.GetInt32("dummy"); set => Accessor.SetInt32("dummy", value); } + public int Dummy { get => Accessor.GetInt32("dummy"); set => Accessor.SetInt32("dummy", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EndOfMatchAllPlayersDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EndOfMatchAllPlayersDataImpl.cs index 0c36aaf7f..702ac6452 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EndOfMatchAllPlayersDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EndOfMatchAllPlayersDataImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_EndOfMatchAllPlayersDataImpl : NetMessage, CCSUsrMsg_EndOfMatchAllPlayersData { - public CCSUsrMsg_EndOfMatchAllPlayersDataImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_EndOfMatchAllPlayersDataImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public IProtobufRepeatedFieldSubMessageType Allplayerdata - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "allplayerdata"); } + public IProtobufRepeatedFieldSubMessageType Allplayerdata { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "allplayerdata"); } - public int Scene - { get => Accessor.GetInt32("scene"); set => Accessor.SetInt32("scene", value); } + public int Scene { get => Accessor.GetInt32("scene"); set => Accessor.SetInt32("scene", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EndOfMatchAllPlayersData_AccoladeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EndOfMatchAllPlayersData_AccoladeImpl.cs index ecf518b13..a0517759f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EndOfMatchAllPlayersData_AccoladeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EndOfMatchAllPlayersData_AccoladeImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_EndOfMatchAllPlayersData_AccoladeImpl : TypedProtobuf, CCSUsrMsg_EndOfMatchAllPlayersData_Accolade { - public CCSUsrMsg_EndOfMatchAllPlayersData_AccoladeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_EndOfMatchAllPlayersData_AccoladeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Eaccolade - { get => Accessor.GetInt32("eaccolade"); set => Accessor.SetInt32("eaccolade", value); } + public int Eaccolade { get => Accessor.GetInt32("eaccolade"); set => Accessor.SetInt32("eaccolade", value); } - public float Value - { get => Accessor.GetFloat("value"); set => Accessor.SetFloat("value", value); } + public float Value { get => Accessor.GetFloat("value"); set => Accessor.SetFloat("value", value); } - public int Position - { get => Accessor.GetInt32("position"); set => Accessor.SetInt32("position", value); } + public int Position { get => Accessor.GetInt32("position"); set => Accessor.SetInt32("position", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EndOfMatchAllPlayersData_PlayerDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EndOfMatchAllPlayersData_PlayerDataImpl.cs index 53e1e5856..e95cb069e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EndOfMatchAllPlayersData_PlayerDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EndOfMatchAllPlayersData_PlayerDataImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,40 +8,32 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_EndOfMatchAllPlayersData_PlayerDataImpl : TypedProtobuf, CCSUsrMsg_EndOfMatchAllPlayersData_PlayerData { - public CCSUsrMsg_EndOfMatchAllPlayersData_PlayerDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_EndOfMatchAllPlayersData_PlayerDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Slot - { get => Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } + public int Slot { get => Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } - public ulong Xuid - { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } + public ulong Xuid { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public int Teamnumber - { get => Accessor.GetInt32("teamnumber"); set => Accessor.SetInt32("teamnumber", value); } + public int Teamnumber { get => Accessor.GetInt32("teamnumber"); set => Accessor.SetInt32("teamnumber", value); } - public CCSUsrMsg_EndOfMatchAllPlayersData_Accolade Nomination - { get => new CCSUsrMsg_EndOfMatchAllPlayersData_AccoladeImpl(NativeNetMessages.GetNestedMessage(Address, "nomination"), false); } + public CCSUsrMsg_EndOfMatchAllPlayersData_Accolade Nomination { get => new CCSUsrMsg_EndOfMatchAllPlayersData_AccoladeImpl(NativeNetMessages.GetNestedMessage(Address, "nomination"), false); } - public IProtobufRepeatedFieldSubMessageType Items - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "items"); } + public IProtobufRepeatedFieldSubMessageType Items { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "items"); } - public int Playercolor - { get => Accessor.GetInt32("playercolor"); set => Accessor.SetInt32("playercolor", value); } + public int Playercolor { get => Accessor.GetInt32("playercolor"); set => Accessor.SetInt32("playercolor", value); } - public bool Isbot - { get => Accessor.GetBool("isbot"); set => Accessor.SetBool("isbot", value); } + public bool Isbot { get => Accessor.GetBool("isbot"); set => Accessor.SetBool("isbot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EntityOutlineHighlightImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EntityOutlineHighlightImpl.cs index 289213238..b9ed7fa06 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EntityOutlineHighlightImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_EntityOutlineHighlightImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_EntityOutlineHighlightImpl : NetMessage, CCSUsrMsg_EntityOutlineHighlight { - public CCSUsrMsg_EntityOutlineHighlightImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_EntityOutlineHighlightImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Entidx - { get => Accessor.GetInt32("entidx"); set => Accessor.SetInt32("entidx", value); } + public int Entidx { get => Accessor.GetInt32("entidx"); set => Accessor.SetInt32("entidx", value); } - public bool Removehighlight - { get => Accessor.GetBool("removehighlight"); set => Accessor.SetBool("removehighlight", value); } + public bool Removehighlight { get => Accessor.GetBool("removehighlight"); set => Accessor.SetBool("removehighlight", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_FadeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_FadeImpl.cs index b053c70d0..ce8227d0e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_FadeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_FadeImpl.cs @@ -1,32 +1,25 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_FadeImpl : NetMessage, CCSUsrMsg_Fade { - public CCSUsrMsg_FadeImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_FadeImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Duration - { get => Accessor.GetInt32("duration"); set => Accessor.SetInt32("duration", value); } + public int Duration { get => Accessor.GetInt32("duration"); set => Accessor.SetInt32("duration", value); } - public int HoldTime - { get => Accessor.GetInt32("hold_time"); set => Accessor.SetInt32("hold_time", value); } + public int HoldTime { get => Accessor.GetInt32("hold_time"); set => Accessor.SetInt32("hold_time", value); } - public int Flags - { get => Accessor.GetInt32("flags"); set => Accessor.SetInt32("flags", value); } + public int Flags { get => Accessor.GetInt32("flags"); set => Accessor.SetInt32("flags", value); } - public Color Clr - { get => Accessor.GetColor("clr"); set => Accessor.SetColor("clr", value); } + public Color Clr { get => Accessor.GetColor("clr"); set => Accessor.SetColor("clr", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_GameTitleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_GameTitleImpl.cs index 9a2c613d3..d51542dec 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_GameTitleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_GameTitleImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_GameTitleImpl : NetMessage, CCSUsrMsg_GameTitle { - public CCSUsrMsg_GameTitleImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_GameTitleImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Dummy - { get => Accessor.GetInt32("dummy"); set => Accessor.SetInt32("dummy", value); } + public int Dummy { get => Accessor.GetInt32("dummy"); set => Accessor.SetInt32("dummy", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_GeigerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_GeigerImpl.cs index b065b1d23..a3160a65b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_GeigerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_GeigerImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_GeigerImpl : NetMessage, CCSUsrMsg_Geiger { - public CCSUsrMsg_GeigerImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_GeigerImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Range - { get => Accessor.GetInt32("range"); set => Accessor.SetInt32("range", value); } + public int Range { get => Accessor.GetInt32("range"); set => Accessor.SetInt32("range", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_HintTextImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_HintTextImpl.cs index 797dfbfb4..d5d9833fe 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_HintTextImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_HintTextImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_HintTextImpl : NetMessage, CCSUsrMsg_HintText { - public CCSUsrMsg_HintTextImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_HintTextImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Message - { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } + public string Message { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_HudMsgImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_HudMsgImpl.cs index 6338a0f94..cd6a370d9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_HudMsgImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_HudMsgImpl.cs @@ -1,56 +1,43 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_HudMsgImpl : NetMessage, CCSUsrMsg_HudMsg { - public CCSUsrMsg_HudMsgImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_HudMsgImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Channel - { get => Accessor.GetInt32("channel"); set => Accessor.SetInt32("channel", value); } + public int Channel { get => Accessor.GetInt32("channel"); set => Accessor.SetInt32("channel", value); } - public Vector2D Pos - { get => Accessor.GetVector2D("pos"); set => Accessor.SetVector2D("pos", value); } + public Vector2D Pos { get => Accessor.GetVector2D("pos"); set => Accessor.SetVector2D("pos", value); } - public Color Clr1 - { get => Accessor.GetColor("clr1"); set => Accessor.SetColor("clr1", value); } + public Color Clr1 { get => Accessor.GetColor("clr1"); set => Accessor.SetColor("clr1", value); } - public Color Clr2 - { get => Accessor.GetColor("clr2"); set => Accessor.SetColor("clr2", value); } + public Color Clr2 { get => Accessor.GetColor("clr2"); set => Accessor.SetColor("clr2", value); } - public int Effect - { get => Accessor.GetInt32("effect"); set => Accessor.SetInt32("effect", value); } + public int Effect { get => Accessor.GetInt32("effect"); set => Accessor.SetInt32("effect", value); } - public float FadeInTime - { get => Accessor.GetFloat("fade_in_time"); set => Accessor.SetFloat("fade_in_time", value); } + public float FadeInTime { get => Accessor.GetFloat("fade_in_time"); set => Accessor.SetFloat("fade_in_time", value); } - public float FadeOutTime - { get => Accessor.GetFloat("fade_out_time"); set => Accessor.SetFloat("fade_out_time", value); } + public float FadeOutTime { get => Accessor.GetFloat("fade_out_time"); set => Accessor.SetFloat("fade_out_time", value); } - public float HoldTime - { get => Accessor.GetFloat("hold_time"); set => Accessor.SetFloat("hold_time", value); } + public float HoldTime { get => Accessor.GetFloat("hold_time"); set => Accessor.SetFloat("hold_time", value); } - public float FxTime - { get => Accessor.GetFloat("fx_time"); set => Accessor.SetFloat("fx_time", value); } + public float FxTime { get => Accessor.GetFloat("fx_time"); set => Accessor.SetFloat("fx_time", value); } - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_HudTextImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_HudTextImpl.cs index db07d578a..afc67f0fa 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_HudTextImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_HudTextImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_HudTextImpl : NetMessage, CCSUsrMsg_HudText { - public CCSUsrMsg_HudTextImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_HudTextImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ItemDropImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ItemDropImpl.cs index f22c48592..5eddc98c6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ItemDropImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ItemDropImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ItemDropImpl : NetMessage, CCSUsrMsg_ItemDrop { - public CCSUsrMsg_ItemDropImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_ItemDropImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public long Itemid - { get => Accessor.GetInt64("itemid"); set => Accessor.SetInt64("itemid", value); } + public long Itemid { get => Accessor.GetInt64("itemid"); set => Accessor.SetInt64("itemid", value); } - public bool Death - { get => Accessor.GetBool("death"); set => Accessor.SetBool("death", value); } + public bool Death { get => Accessor.GetBool("death"); set => Accessor.SetBool("death", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ItemPickupImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ItemPickupImpl.cs index 25c4f0cb9..85162ae14 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ItemPickupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ItemPickupImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ItemPickupImpl : NetMessage, CCSUsrMsg_ItemPickup { - public CCSUsrMsg_ItemPickupImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_ItemPickupImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Item - { get => Accessor.GetString("item"); set => Accessor.SetString("item", value); } + public string Item { get => Accessor.GetString("item"); set => Accessor.SetString("item", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_KeyHintTextImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_KeyHintTextImpl.cs index c64731999..eeca11a78 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_KeyHintTextImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_KeyHintTextImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_KeyHintTextImpl : NetMessage, CCSUsrMsg_KeyHintText { - public CCSUsrMsg_KeyHintTextImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_KeyHintTextImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public IProtobufRepeatedFieldValueType Messages - { get => new ProtobufRepeatedFieldValueType(Accessor, "messages"); } + public IProtobufRepeatedFieldValueType Messages { get => new ProtobufRepeatedFieldValueType(Accessor, "messages"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_KillCamImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_KillCamImpl.cs index 36a0c7c7e..a09db2cf7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_KillCamImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_KillCamImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_KillCamImpl : NetMessage, CCSUsrMsg_KillCam { - public CCSUsrMsg_KillCamImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_KillCamImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int ObsMode - { get => Accessor.GetInt32("obs_mode"); set => Accessor.SetInt32("obs_mode", value); } + public int ObsMode { get => Accessor.GetInt32("obs_mode"); set => Accessor.SetInt32("obs_mode", value); } - public int FirstTarget - { get => Accessor.GetInt32("first_target"); set => Accessor.SetInt32("first_target", value); } + public int FirstTarget { get => Accessor.GetInt32("first_target"); set => Accessor.SetInt32("first_target", value); } - public int SecondTarget - { get => Accessor.GetInt32("second_target"); set => Accessor.SetInt32("second_target", value); } + public int SecondTarget { get => Accessor.GetInt32("second_target"); set => Accessor.SetInt32("second_target", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_MarkAchievementImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_MarkAchievementImpl.cs index 086f5daee..36ba00c45 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_MarkAchievementImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_MarkAchievementImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_MarkAchievementImpl : NetMessage, CCSUsrMsg_MarkAchievement { - public CCSUsrMsg_MarkAchievementImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_MarkAchievementImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Achievement - { get => Accessor.GetString("achievement"); set => Accessor.SetString("achievement", value); } + public string Achievement { get => Accessor.GetString("achievement"); set => Accessor.SetString("achievement", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_MatchEndConditionsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_MatchEndConditionsImpl.cs index 88f527fc8..b27f15cf2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_MatchEndConditionsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_MatchEndConditionsImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_MatchEndConditionsImpl : NetMessage, CCSUsrMsg_MatchEndConditions { - public CCSUsrMsg_MatchEndConditionsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_MatchEndConditionsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Fraglimit - { get => Accessor.GetInt32("fraglimit"); set => Accessor.SetInt32("fraglimit", value); } + public int Fraglimit { get => Accessor.GetInt32("fraglimit"); set => Accessor.SetInt32("fraglimit", value); } - public int MpMaxrounds - { get => Accessor.GetInt32("mp_maxrounds"); set => Accessor.SetInt32("mp_maxrounds", value); } + public int MpMaxrounds { get => Accessor.GetInt32("mp_maxrounds"); set => Accessor.SetInt32("mp_maxrounds", value); } - public int MpWinlimit - { get => Accessor.GetInt32("mp_winlimit"); set => Accessor.SetInt32("mp_winlimit", value); } + public int MpWinlimit { get => Accessor.GetInt32("mp_winlimit"); set => Accessor.SetInt32("mp_winlimit", value); } - public float MpTimelimit - { get => Accessor.GetFloat("mp_timelimit"); set => Accessor.SetFloat("mp_timelimit", value); } + public float MpTimelimit { get => Accessor.GetFloat("mp_timelimit"); set => Accessor.SetFloat("mp_timelimit", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_MatchStatsUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_MatchStatsUpdateImpl.cs index d544392f9..44f92e315 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_MatchStatsUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_MatchStatsUpdateImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_MatchStatsUpdateImpl : NetMessage, CCSUsrMsg_MatchStatsUpdate { - public CCSUsrMsg_MatchStatsUpdateImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_MatchStatsUpdateImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Update - { get => Accessor.GetString("update"); set => Accessor.SetString("update", value); } + public string Update { get => Accessor.GetString("update"); set => Accessor.SetString("update", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PlayerDecalDigitalSignatureImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PlayerDecalDigitalSignatureImpl.cs index 0f6231bcf..fa8cc4775 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PlayerDecalDigitalSignatureImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PlayerDecalDigitalSignatureImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_PlayerDecalDigitalSignatureImpl : NetMessage, CCSUsrMsg_PlayerDecalDigitalSignature { - public CCSUsrMsg_PlayerDecalDigitalSignatureImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_PlayerDecalDigitalSignatureImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public PlayerDecalDigitalSignature Data - { get => new PlayerDecalDigitalSignatureImpl(NativeNetMessages.GetNestedMessage(Address, "data"), false); } + public PlayerDecalDigitalSignature Data { get => new PlayerDecalDigitalSignatureImpl(NativeNetMessages.GetNestedMessage(Address, "data"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PlayerStatsUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PlayerStatsUpdateImpl.cs index 342c4b5a3..0064123c2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PlayerStatsUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PlayerStatsUpdateImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_PlayerStatsUpdateImpl : NetMessage, CCSUsrMsg_PlayerStatsUpdate { - public CCSUsrMsg_PlayerStatsUpdateImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_PlayerStatsUpdateImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Version - { get => Accessor.GetInt32("version"); set => Accessor.SetInt32("version", value); } + public int Version { get => Accessor.GetInt32("version"); set => Accessor.SetInt32("version", value); } - public IProtobufRepeatedFieldSubMessageType Stats - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "stats"); } + public IProtobufRepeatedFieldSubMessageType Stats { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "stats"); } - public uint Ehandle - { get => Accessor.GetUInt32("ehandle"); set => Accessor.SetUInt32("ehandle", value); } + public uint Ehandle { get => Accessor.GetUInt32("ehandle"); set => Accessor.SetUInt32("ehandle", value); } - public int Crc - { get => Accessor.GetInt32("crc"); set => Accessor.SetInt32("crc", value); } + public int Crc { get => Accessor.GetInt32("crc"); set => Accessor.SetInt32("crc", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PlayerStatsUpdate_StatImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PlayerStatsUpdate_StatImpl.cs index 9b11ad08d..bfe799674 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PlayerStatsUpdate_StatImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PlayerStatsUpdate_StatImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_PlayerStatsUpdate_StatImpl : TypedProtobuf, CCSUsrMsg_PlayerStatsUpdate_Stat { - public CCSUsrMsg_PlayerStatsUpdate_StatImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_PlayerStatsUpdate_StatImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Idx - { get => Accessor.GetInt32("idx"); set => Accessor.SetInt32("idx", value); } + public int Idx { get => Accessor.GetInt32("idx"); set => Accessor.SetInt32("idx", value); } - public int Delta - { get => Accessor.GetInt32("delta"); set => Accessor.SetInt32("delta", value); } + public int Delta { get => Accessor.GetInt32("delta"); set => Accessor.SetInt32("delta", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PostRoundDamageReportImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PostRoundDamageReportImpl.cs index 3addba7fe..43de64bc3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PostRoundDamageReportImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_PostRoundDamageReportImpl.cs @@ -1,44 +1,33 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_PostRoundDamageReportImpl : NetMessage, CCSUsrMsg_PostRoundDamageReport { - public CCSUsrMsg_PostRoundDamageReportImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_PostRoundDamageReportImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public ulong OtherXuid - { get => Accessor.GetUInt64("other_xuid"); set => Accessor.SetUInt64("other_xuid", value); } + public ulong OtherXuid { get => Accessor.GetUInt64("other_xuid"); set => Accessor.SetUInt64("other_xuid", value); } - public int GivenKillType - { get => Accessor.GetInt32("given_kill_type"); set => Accessor.SetInt32("given_kill_type", value); } + public int GivenKillType { get => Accessor.GetInt32("given_kill_type"); set => Accessor.SetInt32("given_kill_type", value); } - public int GivenHealthRemoved - { get => Accessor.GetInt32("given_health_removed"); set => Accessor.SetInt32("given_health_removed", value); } + public int GivenHealthRemoved { get => Accessor.GetInt32("given_health_removed"); set => Accessor.SetInt32("given_health_removed", value); } - public int GivenNumHits - { get => Accessor.GetInt32("given_num_hits"); set => Accessor.SetInt32("given_num_hits", value); } + public int GivenNumHits { get => Accessor.GetInt32("given_num_hits"); set => Accessor.SetInt32("given_num_hits", value); } - public int TakenKillType - { get => Accessor.GetInt32("taken_kill_type"); set => Accessor.SetInt32("taken_kill_type", value); } + public int TakenKillType { get => Accessor.GetInt32("taken_kill_type"); set => Accessor.SetInt32("taken_kill_type", value); } - public int TakenHealthRemoved - { get => Accessor.GetInt32("taken_health_removed"); set => Accessor.SetInt32("taken_health_removed", value); } + public int TakenHealthRemoved { get => Accessor.GetInt32("taken_health_removed"); set => Accessor.SetInt32("taken_health_removed", value); } - public int TakenNumHits - { get => Accessor.GetInt32("taken_num_hits"); set => Accessor.SetInt32("taken_num_hits", value); } + public int TakenNumHits { get => Accessor.GetInt32("taken_num_hits"); set => Accessor.SetInt32("taken_num_hits", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ProcessSpottedEntityUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ProcessSpottedEntityUpdateImpl.cs index 0eaa4f1c0..a8eb0ad8b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ProcessSpottedEntityUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ProcessSpottedEntityUpdateImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ProcessSpottedEntityUpdateImpl : NetMessage, CCSUsrMsg_ProcessSpottedEntityUpdate { - public CCSUsrMsg_ProcessSpottedEntityUpdateImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_ProcessSpottedEntityUpdateImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public bool NewUpdate - { get => Accessor.GetBool("new_update"); set => Accessor.SetBool("new_update", value); } + public bool NewUpdate { get => Accessor.GetBool("new_update"); set => Accessor.SetBool("new_update", value); } - public IProtobufRepeatedFieldSubMessageType EntityUpdates - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entity_updates"); } + public IProtobufRepeatedFieldSubMessageType EntityUpdates { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entity_updates"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdateImpl.cs index f88b8fa77..c066a81ef 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdateImpl.cs @@ -1,52 +1,39 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdateImpl : TypedProtobuf, CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdate { - public CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int EntityIdx - { get => Accessor.GetInt32("entity_idx"); set => Accessor.SetInt32("entity_idx", value); } + public int EntityIdx { get => Accessor.GetInt32("entity_idx"); set => Accessor.SetInt32("entity_idx", value); } - public int ClassId - { get => Accessor.GetInt32("class_id"); set => Accessor.SetInt32("class_id", value); } + public int ClassId { get => Accessor.GetInt32("class_id"); set => Accessor.SetInt32("class_id", value); } - public int OriginX - { get => Accessor.GetInt32("origin_x"); set => Accessor.SetInt32("origin_x", value); } + public int OriginX { get => Accessor.GetInt32("origin_x"); set => Accessor.SetInt32("origin_x", value); } - public int OriginY - { get => Accessor.GetInt32("origin_y"); set => Accessor.SetInt32("origin_y", value); } + public int OriginY { get => Accessor.GetInt32("origin_y"); set => Accessor.SetInt32("origin_y", value); } - public int OriginZ - { get => Accessor.GetInt32("origin_z"); set => Accessor.SetInt32("origin_z", value); } + public int OriginZ { get => Accessor.GetInt32("origin_z"); set => Accessor.SetInt32("origin_z", value); } - public int AngleY - { get => Accessor.GetInt32("angle_y"); set => Accessor.SetInt32("angle_y", value); } + public int AngleY { get => Accessor.GetInt32("angle_y"); set => Accessor.SetInt32("angle_y", value); } - public bool Defuser - { get => Accessor.GetBool("defuser"); set => Accessor.SetBool("defuser", value); } + public bool Defuser { get => Accessor.GetBool("defuser"); set => Accessor.SetBool("defuser", value); } - public bool PlayerHasDefuser - { get => Accessor.GetBool("player_has_defuser"); set => Accessor.SetBool("player_has_defuser", value); } + public bool PlayerHasDefuser { get => Accessor.GetBool("player_has_defuser"); set => Accessor.SetBool("player_has_defuser", value); } - public bool PlayerHasC4 - { get => Accessor.GetBool("player_has_c4"); set => Accessor.SetBool("player_has_c4", value); } + public bool PlayerHasC4 { get => Accessor.GetBool("player_has_c4"); set => Accessor.SetBool("player_has_c4", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_QuestProgressImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_QuestProgressImpl.cs index 27faad415..5bcfc8c1e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_QuestProgressImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_QuestProgressImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_QuestProgressImpl : NetMessage, CCSUsrMsg_QuestProgress { - public CCSUsrMsg_QuestProgressImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_QuestProgressImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint QuestId - { get => Accessor.GetUInt32("quest_id"); set => Accessor.SetUInt32("quest_id", value); } + public uint QuestId { get => Accessor.GetUInt32("quest_id"); set => Accessor.SetUInt32("quest_id", value); } - public uint NormalPoints - { get => Accessor.GetUInt32("normal_points"); set => Accessor.SetUInt32("normal_points", value); } + public uint NormalPoints { get => Accessor.GetUInt32("normal_points"); set => Accessor.SetUInt32("normal_points", value); } - public uint BonusPoints - { get => Accessor.GetUInt32("bonus_points"); set => Accessor.SetUInt32("bonus_points", value); } + public uint BonusPoints { get => Accessor.GetUInt32("bonus_points"); set => Accessor.SetUInt32("bonus_points", value); } - public bool IsEventQuest - { get => Accessor.GetBool("is_event_quest"); set => Accessor.SetBool("is_event_quest", value); } + public bool IsEventQuest { get => Accessor.GetBool("is_event_quest"); set => Accessor.SetBool("is_event_quest", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RadioTextImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RadioTextImpl.cs index 876a1caeb..9ccc4aae8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RadioTextImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RadioTextImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_RadioTextImpl : NetMessage, CCSUsrMsg_RadioText { - public CCSUsrMsg_RadioTextImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_RadioTextImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int MsgDst - { get => Accessor.GetInt32("msg_dst"); set => Accessor.SetInt32("msg_dst", value); } + public int MsgDst { get => Accessor.GetInt32("msg_dst"); set => Accessor.SetInt32("msg_dst", value); } - public int Client - { get => Accessor.GetInt32("client"); set => Accessor.SetInt32("client", value); } + public int Client { get => Accessor.GetInt32("client"); set => Accessor.SetInt32("client", value); } - public string MsgName - { get => Accessor.GetString("msg_name"); set => Accessor.SetString("msg_name", value); } + public string MsgName { get => Accessor.GetString("msg_name"); set => Accessor.SetString("msg_name", value); } - public IProtobufRepeatedFieldValueType Params - { get => new ProtobufRepeatedFieldValueType(Accessor, "params"); } + public IProtobufRepeatedFieldValueType Params { get => new ProtobufRepeatedFieldValueType(Accessor, "params"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RawAudioImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RawAudioImpl.cs index 728f256ae..ea22273ed 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RawAudioImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RawAudioImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_RawAudioImpl : NetMessage, CCSUsrMsg_RawAudio { - public CCSUsrMsg_RawAudioImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_RawAudioImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Pitch - { get => Accessor.GetInt32("pitch"); set => Accessor.SetInt32("pitch", value); } + public int Pitch { get => Accessor.GetInt32("pitch"); set => Accessor.SetInt32("pitch", value); } - public int Entidx - { get => Accessor.GetInt32("entidx"); set => Accessor.SetInt32("entidx", value); } + public int Entidx { get => Accessor.GetInt32("entidx"); set => Accessor.SetInt32("entidx", value); } - public float Duration - { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } + public float Duration { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } - public string VoiceFilename - { get => Accessor.GetString("voice_filename"); set => Accessor.SetString("voice_filename", value); } + public string VoiceFilename { get => Accessor.GetString("voice_filename"); set => Accessor.SetString("voice_filename", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RecurringMissionSchemaImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RecurringMissionSchemaImpl.cs index 0c3ed2fc0..c204487b2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RecurringMissionSchemaImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RecurringMissionSchemaImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_RecurringMissionSchemaImpl : NetMessage, CCSUsrMsg_RecurringMissionSchema { - public CCSUsrMsg_RecurringMissionSchemaImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_RecurringMissionSchemaImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Period - { get => Accessor.GetUInt32("period"); set => Accessor.SetUInt32("period", value); } + public uint Period { get => Accessor.GetUInt32("period"); set => Accessor.SetUInt32("period", value); } - public byte[] MissionSchema - { get => Accessor.GetBytes("mission_schema"); set => Accessor.SetBytes("mission_schema", value); } + public byte[] MissionSchema { get => Accessor.GetBytes("mission_schema"); set => Accessor.SetBytes("mission_schema", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ReloadEffectImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ReloadEffectImpl.cs index 818aba00f..8927e6342 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ReloadEffectImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ReloadEffectImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ReloadEffectImpl : NetMessage, CCSUsrMsg_ReloadEffect { - public CCSUsrMsg_ReloadEffectImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_ReloadEffectImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Entidx - { get => Accessor.GetInt32("entidx"); set => Accessor.SetInt32("entidx", value); } + public int Entidx { get => Accessor.GetInt32("entidx"); set => Accessor.SetInt32("entidx", value); } - public int Actanim - { get => Accessor.GetInt32("actanim"); set => Accessor.SetInt32("actanim", value); } + public int Actanim { get => Accessor.GetInt32("actanim"); set => Accessor.SetInt32("actanim", value); } - public float OriginX - { get => Accessor.GetFloat("origin_x"); set => Accessor.SetFloat("origin_x", value); } + public float OriginX { get => Accessor.GetFloat("origin_x"); set => Accessor.SetFloat("origin_x", value); } - public float OriginY - { get => Accessor.GetFloat("origin_y"); set => Accessor.SetFloat("origin_y", value); } + public float OriginY { get => Accessor.GetFloat("origin_y"); set => Accessor.SetFloat("origin_y", value); } - public float OriginZ - { get => Accessor.GetFloat("origin_z"); set => Accessor.SetFloat("origin_z", value); } + public float OriginZ { get => Accessor.GetFloat("origin_z"); set => Accessor.SetFloat("origin_z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ReportHitImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ReportHitImpl.cs index 6e6566855..799cf86b7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ReportHitImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ReportHitImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ReportHitImpl : NetMessage, CCSUsrMsg_ReportHit { - public CCSUsrMsg_ReportHitImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_ReportHitImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public float PosX - { get => Accessor.GetFloat("pos_x"); set => Accessor.SetFloat("pos_x", value); } + public float PosX { get => Accessor.GetFloat("pos_x"); set => Accessor.SetFloat("pos_x", value); } - public float PosY - { get => Accessor.GetFloat("pos_y"); set => Accessor.SetFloat("pos_y", value); } + public float PosY { get => Accessor.GetFloat("pos_y"); set => Accessor.SetFloat("pos_y", value); } - public float Timestamp - { get => Accessor.GetFloat("timestamp"); set => Accessor.SetFloat("timestamp", value); } + public float Timestamp { get => Accessor.GetFloat("timestamp"); set => Accessor.SetFloat("timestamp", value); } - public float PosZ - { get => Accessor.GetFloat("pos_z"); set => Accessor.SetFloat("pos_z", value); } + public float PosZ { get => Accessor.GetFloat("pos_z"); set => Accessor.SetFloat("pos_z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RequestStateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RequestStateImpl.cs index 3abcb9af5..0ee448d83 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RequestStateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RequestStateImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_RequestStateImpl : NetMessage, CCSUsrMsg_RequestState { - public CCSUsrMsg_RequestStateImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_RequestStateImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Dummy - { get => Accessor.GetInt32("dummy"); set => Accessor.SetInt32("dummy", value); } + public int Dummy { get => Accessor.GetInt32("dummy"); set => Accessor.SetInt32("dummy", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ResetHudImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ResetHudImpl.cs index 30b88a594..4ba253092 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ResetHudImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ResetHudImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ResetHudImpl : NetMessage, CCSUsrMsg_ResetHud { - public CCSUsrMsg_ResetHudImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_ResetHudImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public bool Reset - { get => Accessor.GetBool("reset"); set => Accessor.SetBool("reset", value); } + public bool Reset { get => Accessor.GetBool("reset"); set => Accessor.SetBool("reset", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundBackupFilenamesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundBackupFilenamesImpl.cs index f1b79e209..d89752ea4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundBackupFilenamesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundBackupFilenamesImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_RoundBackupFilenamesImpl : NetMessage, CCSUsrMsg_RoundBackupFilenames { - public CCSUsrMsg_RoundBackupFilenamesImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_RoundBackupFilenamesImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Count - { get => Accessor.GetInt32("count"); set => Accessor.SetInt32("count", value); } + public int Count { get => Accessor.GetInt32("count"); set => Accessor.SetInt32("count", value); } - public int Index - { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } + public int Index { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } - public string Filename - { get => Accessor.GetString("filename"); set => Accessor.SetString("filename", value); } + public string Filename { get => Accessor.GetString("filename"); set => Accessor.SetString("filename", value); } - public string Nicename - { get => Accessor.GetString("nicename"); set => Accessor.SetString("nicename", value); } + public string Nicename { get => Accessor.GetString("nicename"); set => Accessor.SetString("nicename", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportDataImpl.cs index c83d04a03..46981be35 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportDataImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +8,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_RoundEndReportDataImpl : NetMessage, CCSUsrMsg_RoundEndReportData { - public CCSUsrMsg_RoundEndReportDataImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_RoundEndReportDataImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CCSUsrMsg_RoundEndReportData_InitialConditions InitConditions - { get => new CCSUsrMsg_RoundEndReportData_InitialConditionsImpl(NativeNetMessages.GetNestedMessage(Address, "init_conditions"), false); } + public CCSUsrMsg_RoundEndReportData_InitialConditions InitConditions { get => new CCSUsrMsg_RoundEndReportData_InitialConditionsImpl(NativeNetMessages.GetNestedMessage(Address, "init_conditions"), false); } - public IProtobufRepeatedFieldSubMessageType AllRerEventData - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "all_rer_event_data"); } + public IProtobufRepeatedFieldSubMessageType AllRerEventData { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "all_rer_event_data"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_InitialConditionsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_InitialConditionsImpl.cs index 13f27fa81..e2643c22f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_InitialConditionsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_InitialConditionsImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_RoundEndReportData_InitialConditionsImpl : TypedProtobuf, CCSUsrMsg_RoundEndReportData_InitialConditions { - public CCSUsrMsg_RoundEndReportData_InitialConditionsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_RoundEndReportData_InitialConditionsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int CtEquipValue - { get => Accessor.GetInt32("ct_equip_value"); set => Accessor.SetInt32("ct_equip_value", value); } + public int CtEquipValue { get => Accessor.GetInt32("ct_equip_value"); set => Accessor.SetInt32("ct_equip_value", value); } - public int TEquipValue - { get => Accessor.GetInt32("t_equip_value"); set => Accessor.SetInt32("t_equip_value", value); } + public int TEquipValue { get => Accessor.GetInt32("t_equip_value"); set => Accessor.SetInt32("t_equip_value", value); } - public int TerroristOdds - { get => Accessor.GetInt32("terrorist_odds"); set => Accessor.SetInt32("terrorist_odds", value); } + public int TerroristOdds { get => Accessor.GetInt32("terrorist_odds"); set => Accessor.SetInt32("terrorist_odds", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEventImpl.cs index 8fbd8bcbc..3613363b2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEventImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,36 +8,29 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_RoundEndReportData_RerEventImpl : TypedProtobuf, CCSUsrMsg_RoundEndReportData_RerEvent { - public CCSUsrMsg_RoundEndReportData_RerEventImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_RoundEndReportData_RerEventImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float Timestamp - { get => Accessor.GetFloat("timestamp"); set => Accessor.SetFloat("timestamp", value); } + public float Timestamp { get => Accessor.GetFloat("timestamp"); set => Accessor.SetFloat("timestamp", value); } - public int TerroristOdds - { get => Accessor.GetInt32("terrorist_odds"); set => Accessor.SetInt32("terrorist_odds", value); } + public int TerroristOdds { get => Accessor.GetInt32("terrorist_odds"); set => Accessor.SetInt32("terrorist_odds", value); } - public int CtAlive - { get => Accessor.GetInt32("ct_alive"); set => Accessor.SetInt32("ct_alive", value); } + public int CtAlive { get => Accessor.GetInt32("ct_alive"); set => Accessor.SetInt32("ct_alive", value); } - public int TAlive - { get => Accessor.GetInt32("t_alive"); set => Accessor.SetInt32("t_alive", value); } + public int TAlive { get => Accessor.GetInt32("t_alive"); set => Accessor.SetInt32("t_alive", value); } - public CCSUsrMsg_RoundEndReportData_RerEvent_Victim VictimData - { get => new CCSUsrMsg_RoundEndReportData_RerEvent_VictimImpl(NativeNetMessages.GetNestedMessage(Address, "victim_data"), false); } + public CCSUsrMsg_RoundEndReportData_RerEvent_Victim VictimData { get => new CCSUsrMsg_RoundEndReportData_RerEvent_VictimImpl(NativeNetMessages.GetNestedMessage(Address, "victim_data"), false); } - public CCSUsrMsg_RoundEndReportData_RerEvent_Objective ObjectiveData - { get => new CCSUsrMsg_RoundEndReportData_RerEvent_ObjectiveImpl(NativeNetMessages.GetNestedMessage(Address, "objective_data"), false); } + public CCSUsrMsg_RoundEndReportData_RerEvent_Objective ObjectiveData { get => new CCSUsrMsg_RoundEndReportData_RerEvent_ObjectiveImpl(NativeNetMessages.GetNestedMessage(Address, "objective_data"), false); } - public IProtobufRepeatedFieldSubMessageType AllDamageData - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "all_damage_data"); } + public IProtobufRepeatedFieldSubMessageType AllDamageData { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "all_damage_data"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEvent_DamageImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEvent_DamageImpl.cs index ac74eb21c..58e3383a8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEvent_DamageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEvent_DamageImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_RoundEndReportData_RerEvent_DamageImpl : TypedProtobuf, CCSUsrMsg_RoundEndReportData_RerEvent_Damage { - public CCSUsrMsg_RoundEndReportData_RerEvent_DamageImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_RoundEndReportData_RerEvent_DamageImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int OtherPlayerslot - { get => Accessor.GetInt32("other_playerslot"); set => Accessor.SetInt32("other_playerslot", value); } + public int OtherPlayerslot { get => Accessor.GetInt32("other_playerslot"); set => Accessor.SetInt32("other_playerslot", value); } - public ulong OtherXuid - { get => Accessor.GetUInt64("other_xuid"); set => Accessor.SetUInt64("other_xuid", value); } + public ulong OtherXuid { get => Accessor.GetUInt64("other_xuid"); set => Accessor.SetUInt64("other_xuid", value); } - public int HealthRemoved - { get => Accessor.GetInt32("health_removed"); set => Accessor.SetInt32("health_removed", value); } + public int HealthRemoved { get => Accessor.GetInt32("health_removed"); set => Accessor.SetInt32("health_removed", value); } - public int NumHits - { get => Accessor.GetInt32("num_hits"); set => Accessor.SetInt32("num_hits", value); } + public int NumHits { get => Accessor.GetInt32("num_hits"); set => Accessor.SetInt32("num_hits", value); } - public int ReturnHealthRemoved - { get => Accessor.GetInt32("return_health_removed"); set => Accessor.SetInt32("return_health_removed", value); } + public int ReturnHealthRemoved { get => Accessor.GetInt32("return_health_removed"); set => Accessor.SetInt32("return_health_removed", value); } - public int ReturnNumHits - { get => Accessor.GetInt32("return_num_hits"); set => Accessor.SetInt32("return_num_hits", value); } + public int ReturnNumHits { get => Accessor.GetInt32("return_num_hits"); set => Accessor.SetInt32("return_num_hits", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEvent_ObjectiveImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEvent_ObjectiveImpl.cs index 4c2e83149..4b5881e7d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEvent_ObjectiveImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEvent_ObjectiveImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_RoundEndReportData_RerEvent_ObjectiveImpl : TypedProtobuf, CCSUsrMsg_RoundEndReportData_RerEvent_Objective { - public CCSUsrMsg_RoundEndReportData_RerEvent_ObjectiveImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_RoundEndReportData_RerEvent_ObjectiveImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Type - { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + public int Type { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEvent_VictimImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEvent_VictimImpl.cs index 10d468b87..034d44f18 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEvent_VictimImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RoundEndReportData_RerEvent_VictimImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_RoundEndReportData_RerEvent_VictimImpl : TypedProtobuf, CCSUsrMsg_RoundEndReportData_RerEvent_Victim { - public CCSUsrMsg_RoundEndReportData_RerEvent_VictimImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_RoundEndReportData_RerEvent_VictimImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int TeamNumber - { get => Accessor.GetInt32("team_number"); set => Accessor.SetInt32("team_number", value); } + public int TeamNumber { get => Accessor.GetInt32("team_number"); set => Accessor.SetInt32("team_number", value); } - public int Playerslot - { get => Accessor.GetInt32("playerslot"); set => Accessor.SetInt32("playerslot", value); } + public int Playerslot { get => Accessor.GetInt32("playerslot"); set => Accessor.SetInt32("playerslot", value); } - public ulong Xuid - { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } + public ulong Xuid { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } - public int Color - { get => Accessor.GetInt32("color"); set => Accessor.SetInt32("color", value); } + public int Color { get => Accessor.GetInt32("color"); set => Accessor.SetInt32("color", value); } - public bool IsBot - { get => Accessor.GetBool("is_bot"); set => Accessor.SetBool("is_bot", value); } + public bool IsBot { get => Accessor.GetBool("is_bot"); set => Accessor.SetBool("is_bot", value); } - public bool IsDead - { get => Accessor.GetBool("is_dead"); set => Accessor.SetBool("is_dead", value); } + public bool IsDead { get => Accessor.GetBool("is_dead"); set => Accessor.SetBool("is_dead", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RumbleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RumbleImpl.cs index d0a041413..094aafebb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RumbleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_RumbleImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_RumbleImpl : NetMessage, CCSUsrMsg_Rumble { - public CCSUsrMsg_RumbleImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_RumbleImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Index - { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } + public int Index { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } - public int Data - { get => Accessor.GetInt32("data"); set => Accessor.SetInt32("data", value); } + public int Data { get => Accessor.GetInt32("data"); set => Accessor.SetInt32("data", value); } - public int Flags - { get => Accessor.GetInt32("flags"); set => Accessor.SetInt32("flags", value); } + public int Flags { get => Accessor.GetInt32("flags"); set => Accessor.SetInt32("flags", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SSUIImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SSUIImpl.cs index 17d46c821..853b066d2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SSUIImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SSUIImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_SSUIImpl : NetMessage, CCSUsrMsg_SSUI { - public CCSUsrMsg_SSUIImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_SSUIImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public bool Show - { get => Accessor.GetBool("show"); set => Accessor.SetBool("show", value); } + public bool Show { get => Accessor.GetBool("show"); set => Accessor.SetBool("show", value); } - public float StartTime - { get => Accessor.GetFloat("start_time"); set => Accessor.SetFloat("start_time", value); } + public float StartTime { get => Accessor.GetFloat("start_time"); set => Accessor.SetFloat("start_time", value); } - public float EndTime - { get => Accessor.GetFloat("end_time"); set => Accessor.SetFloat("end_time", value); } + public float EndTime { get => Accessor.GetFloat("end_time"); set => Accessor.SetFloat("end_time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ScoreLeaderboardDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ScoreLeaderboardDataImpl.cs index 3a1f6d244..5509d5412 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ScoreLeaderboardDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ScoreLeaderboardDataImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ScoreLeaderboardDataImpl : NetMessage, CCSUsrMsg_ScoreLeaderboardData { - public CCSUsrMsg_ScoreLeaderboardDataImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_ScoreLeaderboardDataImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public ScoreLeaderboardData Data - { get => new ScoreLeaderboardDataImpl(NativeNetMessages.GetNestedMessage(Address, "data"), false); } + public ScoreLeaderboardData Data { get => new ScoreLeaderboardDataImpl(NativeNetMessages.GetNestedMessage(Address, "data"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendAudioImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendAudioImpl.cs index 59e6b74a2..e8ba2f3f0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendAudioImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendAudioImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_SendAudioImpl : NetMessage, CCSUsrMsg_SendAudio { - public CCSUsrMsg_SendAudioImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_SendAudioImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string RadioSound - { get => Accessor.GetString("radio_sound"); set => Accessor.SetString("radio_sound", value); } + public string RadioSound { get => Accessor.GetString("radio_sound"); set => Accessor.SetString("radio_sound", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendLastKillerDamageToClientImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendLastKillerDamageToClientImpl.cs index f63455183..3f4bea0fd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendLastKillerDamageToClientImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendLastKillerDamageToClientImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_SendLastKillerDamageToClientImpl : NetMessage, CCSUsrMsg_SendLastKillerDamageToClient { - public CCSUsrMsg_SendLastKillerDamageToClientImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_SendLastKillerDamageToClientImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int NumHitsGiven - { get => Accessor.GetInt32("num_hits_given"); set => Accessor.SetInt32("num_hits_given", value); } + public int NumHitsGiven { get => Accessor.GetInt32("num_hits_given"); set => Accessor.SetInt32("num_hits_given", value); } - public int DamageGiven - { get => Accessor.GetInt32("damage_given"); set => Accessor.SetInt32("damage_given", value); } + public int DamageGiven { get => Accessor.GetInt32("damage_given"); set => Accessor.SetInt32("damage_given", value); } - public int NumHitsTaken - { get => Accessor.GetInt32("num_hits_taken"); set => Accessor.SetInt32("num_hits_taken", value); } + public int NumHitsTaken { get => Accessor.GetInt32("num_hits_taken"); set => Accessor.SetInt32("num_hits_taken", value); } - public int DamageTaken - { get => Accessor.GetInt32("damage_taken"); set => Accessor.SetInt32("damage_taken", value); } + public int DamageTaken { get => Accessor.GetInt32("damage_taken"); set => Accessor.SetInt32("damage_taken", value); } - public int ActualDamageGiven - { get => Accessor.GetInt32("actual_damage_given"); set => Accessor.SetInt32("actual_damage_given", value); } + public int ActualDamageGiven { get => Accessor.GetInt32("actual_damage_given"); set => Accessor.SetInt32("actual_damage_given", value); } - public int ActualDamageTaken - { get => Accessor.GetInt32("actual_damage_taken"); set => Accessor.SetInt32("actual_damage_taken", value); } + public int ActualDamageTaken { get => Accessor.GetInt32("actual_damage_taken"); set => Accessor.SetInt32("actual_damage_taken", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerItemDropsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerItemDropsImpl.cs index c82c1e398..787d8c534 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerItemDropsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerItemDropsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_SendPlayerItemDropsImpl : NetMessage, CCSUsrMsg_SendPlayerItemDrops { - public CCSUsrMsg_SendPlayerItemDropsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_SendPlayerItemDropsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public IProtobufRepeatedFieldSubMessageType EntityUpdates - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entity_updates"); } + public IProtobufRepeatedFieldSubMessageType EntityUpdates { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entity_updates"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerItemFoundImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerItemFoundImpl.cs index 170426519..550c3f109 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerItemFoundImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerItemFoundImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_SendPlayerItemFoundImpl : NetMessage, CCSUsrMsg_SendPlayerItemFound { - public CCSUsrMsg_SendPlayerItemFoundImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_SendPlayerItemFoundImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CEconItemPreviewDataBlock Iteminfo - { get => new CEconItemPreviewDataBlockImpl(NativeNetMessages.GetNestedMessage(Address, "iteminfo"), false); } + public CEconItemPreviewDataBlock Iteminfo { get => new CEconItemPreviewDataBlockImpl(NativeNetMessages.GetNestedMessage(Address, "iteminfo"), false); } - public int Playerslot - { get => Accessor.GetInt32("playerslot"); set => Accessor.SetInt32("playerslot", value); } + public int Playerslot { get => Accessor.GetInt32("playerslot"); set => Accessor.SetInt32("playerslot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerLoadoutImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerLoadoutImpl.cs index ef485f70e..17fd60384 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerLoadoutImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerLoadoutImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_SendPlayerLoadoutImpl : NetMessage, CCSUsrMsg_SendPlayerLoadout { - public CCSUsrMsg_SendPlayerLoadoutImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_SendPlayerLoadoutImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public IProtobufRepeatedFieldSubMessageType Loadout - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "loadout"); } + public IProtobufRepeatedFieldSubMessageType Loadout { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "loadout"); } - public int Playerslot - { get => Accessor.GetInt32("playerslot"); set => Accessor.SetInt32("playerslot", value); } + public int Playerslot { get => Accessor.GetInt32("playerslot"); set => Accessor.SetInt32("playerslot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerLoadout_LoadoutItemImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerLoadout_LoadoutItemImpl.cs index 23ef5e5b4..a476946ca 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerLoadout_LoadoutItemImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SendPlayerLoadout_LoadoutItemImpl.cs @@ -1,28 +1,23 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_SendPlayerLoadout_LoadoutItemImpl : TypedProtobuf, CCSUsrMsg_SendPlayerLoadout_LoadoutItem { - public CCSUsrMsg_SendPlayerLoadout_LoadoutItemImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_SendPlayerLoadout_LoadoutItemImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CEconItemPreviewDataBlock EconItem - { get => new CEconItemPreviewDataBlockImpl(NativeNetMessages.GetNestedMessage(Address, "econ_item"), false); } + public CEconItemPreviewDataBlock EconItem { get => new CEconItemPreviewDataBlockImpl(NativeNetMessages.GetNestedMessage(Address, "econ_item"), false); } - public int Team - { get => Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } + public int Team { get => Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } - public int Slot - { get => Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } + public int Slot { get => Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ServerRankRevealAllImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ServerRankRevealAllImpl.cs index 7e86c3e5d..04d81ac80 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ServerRankRevealAllImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ServerRankRevealAllImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ServerRankRevealAllImpl : NetMessage, CCSUsrMsg_ServerRankRevealAll { - public CCSUsrMsg_ServerRankRevealAllImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_ServerRankRevealAllImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int SecondsTillShutdown - { get => Accessor.GetInt32("seconds_till_shutdown"); set => Accessor.SetInt32("seconds_till_shutdown", value); } + public int SecondsTillShutdown { get => Accessor.GetInt32("seconds_till_shutdown"); set => Accessor.SetInt32("seconds_till_shutdown", value); } - public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation - { get => new CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl(NativeNetMessages.GetNestedMessage(Address, "reservation"), false); } + public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation { get => new CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl(NativeNetMessages.GetNestedMessage(Address, "reservation"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ServerRankUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ServerRankUpdateImpl.cs index 9ef4ed51d..6a14a7f46 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ServerRankUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ServerRankUpdateImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ServerRankUpdateImpl : NetMessage, CCSUsrMsg_ServerRankUpdate { - public CCSUsrMsg_ServerRankUpdateImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_ServerRankUpdateImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public IProtobufRepeatedFieldSubMessageType RankUpdate - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "rank_update"); } + public IProtobufRepeatedFieldSubMessageType RankUpdate { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "rank_update"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ServerRankUpdate_RankUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ServerRankUpdate_RankUpdateImpl.cs index 40e53f92f..0b9a99820 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ServerRankUpdate_RankUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ServerRankUpdate_RankUpdateImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ServerRankUpdate_RankUpdateImpl : TypedProtobuf, CCSUsrMsg_ServerRankUpdate_RankUpdate { - public CCSUsrMsg_ServerRankUpdate_RankUpdateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_ServerRankUpdate_RankUpdateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int AccountId - { get => Accessor.GetInt32("account_id"); set => Accessor.SetInt32("account_id", value); } + public int AccountId { get => Accessor.GetInt32("account_id"); set => Accessor.SetInt32("account_id", value); } - public int RankOld - { get => Accessor.GetInt32("rank_old"); set => Accessor.SetInt32("rank_old", value); } + public int RankOld { get => Accessor.GetInt32("rank_old"); set => Accessor.SetInt32("rank_old", value); } - public int RankNew - { get => Accessor.GetInt32("rank_new"); set => Accessor.SetInt32("rank_new", value); } + public int RankNew { get => Accessor.GetInt32("rank_new"); set => Accessor.SetInt32("rank_new", value); } - public int NumWins - { get => Accessor.GetInt32("num_wins"); set => Accessor.SetInt32("num_wins", value); } + public int NumWins { get => Accessor.GetInt32("num_wins"); set => Accessor.SetInt32("num_wins", value); } - public float RankChange - { get => Accessor.GetFloat("rank_change"); set => Accessor.SetFloat("rank_change", value); } + public float RankChange { get => Accessor.GetFloat("rank_change"); set => Accessor.SetFloat("rank_change", value); } - public int RankTypeId - { get => Accessor.GetInt32("rank_type_id"); set => Accessor.SetInt32("rank_type_id", value); } + public int RankTypeId { get => Accessor.GetInt32("rank_type_id"); set => Accessor.SetInt32("rank_type_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ShakeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ShakeImpl.cs index 24ea260d5..e441c00c6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ShakeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ShakeImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ShakeImpl : NetMessage, CCSUsrMsg_Shake { - public CCSUsrMsg_ShakeImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_ShakeImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Command - { get => Accessor.GetInt32("command"); set => Accessor.SetInt32("command", value); } + public int Command { get => Accessor.GetInt32("command"); set => Accessor.SetInt32("command", value); } - public float LocalAmplitude - { get => Accessor.GetFloat("local_amplitude"); set => Accessor.SetFloat("local_amplitude", value); } + public float LocalAmplitude { get => Accessor.GetFloat("local_amplitude"); set => Accessor.SetFloat("local_amplitude", value); } - public float Frequency - { get => Accessor.GetFloat("frequency"); set => Accessor.SetFloat("frequency", value); } + public float Frequency { get => Accessor.GetFloat("frequency"); set => Accessor.SetFloat("frequency", value); } - public float Duration - { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } + public float Duration { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ShootInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ShootInfoImpl.cs index b67afab63..c3f861640 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ShootInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ShootInfoImpl.cs @@ -1,5 +1,3 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; @@ -9,24 +7,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ShootInfoImpl : NetMessage, CCSUsrMsg_ShootInfo { - public CCSUsrMsg_ShootInfoImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_ShootInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int FrameNumber - { get => Accessor.GetInt32("frame_number"); set => Accessor.SetInt32("frame_number", value); } + public int FrameNumber { get => Accessor.GetInt32("frame_number"); set => Accessor.SetInt32("frame_number", value); } - public IProtobufRepeatedFieldSubMessageType HitboxTransforms - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "hitbox_transforms"); } + public IProtobufRepeatedFieldSubMessageType HitboxTransforms { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "hitbox_transforms"); } - public Vector ShootPos - { get => Accessor.GetVector("shoot_pos"); set => Accessor.SetVector("shoot_pos", value); } + public Vector ShootPos { get => Accessor.GetVector("shoot_pos"); set => Accessor.SetVector("shoot_pos", value); } - public QAngle ShootDir - { get => Accessor.GetQAngle("shoot_dir"); set => Accessor.SetQAngle("shoot_dir", value); } + public QAngle ShootDir { get => Accessor.GetQAngle("shoot_dir"); set => Accessor.SetQAngle("shoot_dir", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ShowMenuImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ShowMenuImpl.cs index d3085f3c0..eb343118f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ShowMenuImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_ShowMenuImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_ShowMenuImpl : NetMessage, CCSUsrMsg_ShowMenu { - public CCSUsrMsg_ShowMenuImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_ShowMenuImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int BitsValidSlots - { get => Accessor.GetInt32("bits_valid_slots"); set => Accessor.SetInt32("bits_valid_slots", value); } + public int BitsValidSlots { get => Accessor.GetInt32("bits_valid_slots"); set => Accessor.SetInt32("bits_valid_slots", value); } - public int DisplayTime - { get => Accessor.GetInt32("display_time"); set => Accessor.SetInt32("display_time", value); } + public int DisplayTime { get => Accessor.GetInt32("display_time"); set => Accessor.SetInt32("display_time", value); } - public string MenuString - { get => Accessor.GetString("menu_string"); set => Accessor.SetString("menu_string", value); } + public string MenuString { get => Accessor.GetString("menu_string"); set => Accessor.SetString("menu_string", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_StopSpectatorModeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_StopSpectatorModeImpl.cs index 43b5c591d..b41f1af0e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_StopSpectatorModeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_StopSpectatorModeImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_StopSpectatorModeImpl : NetMessage, CCSUsrMsg_StopSpectatorMode { - public CCSUsrMsg_StopSpectatorModeImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_StopSpectatorModeImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Dummy - { get => Accessor.GetInt32("dummy"); set => Accessor.SetInt32("dummy", value); } + public int Dummy { get => Accessor.GetInt32("dummy"); set => Accessor.SetInt32("dummy", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStatsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStatsImpl.cs index 27e42aade..4540a849f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStatsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStatsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,28 +6,23 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_SurvivalStatsImpl : NetMessage, CCSUsrMsg_SurvivalStats { - public CCSUsrMsg_SurvivalStatsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_SurvivalStatsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public ulong Xuid - { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } + public ulong Xuid { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } - public IProtobufRepeatedFieldSubMessageType Facts - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "facts"); } + public IProtobufRepeatedFieldSubMessageType Facts { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "facts"); } - public IProtobufRepeatedFieldSubMessageType Users - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "users"); } + public IProtobufRepeatedFieldSubMessageType Users { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "users"); } - public IProtobufRepeatedFieldSubMessageType Damages - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "damages"); } + public IProtobufRepeatedFieldSubMessageType Damages { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "damages"); } - public int Ticknumber - { get => Accessor.GetInt32("ticknumber"); set => Accessor.SetInt32("ticknumber", value); } + public int Ticknumber { get => Accessor.GetInt32("ticknumber"); set => Accessor.SetInt32("ticknumber", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStats_DamageImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStats_DamageImpl.cs index 2ec7281bd..c94844531 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStats_DamageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStats_DamageImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_SurvivalStats_DamageImpl : TypedProtobuf, CCSUsrMsg_SurvivalStats_Damage { - public CCSUsrMsg_SurvivalStats_DamageImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_SurvivalStats_DamageImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Xuid - { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } + public ulong Xuid { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } - public int To - { get => Accessor.GetInt32("to"); set => Accessor.SetInt32("to", value); } + public int To { get => Accessor.GetInt32("to"); set => Accessor.SetInt32("to", value); } - public int ToHits - { get => Accessor.GetInt32("to_hits"); set => Accessor.SetInt32("to_hits", value); } + public int ToHits { get => Accessor.GetInt32("to_hits"); set => Accessor.SetInt32("to_hits", value); } - public int From - { get => Accessor.GetInt32("from"); set => Accessor.SetInt32("from", value); } + public int From { get => Accessor.GetInt32("from"); set => Accessor.SetInt32("from", value); } - public int FromHits - { get => Accessor.GetInt32("from_hits"); set => Accessor.SetInt32("from_hits", value); } + public int FromHits { get => Accessor.GetInt32("from_hits"); set => Accessor.SetInt32("from_hits", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStats_FactImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStats_FactImpl.cs index 3b57f07c5..81224a71a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStats_FactImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStats_FactImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_SurvivalStats_FactImpl : TypedProtobuf, CCSUsrMsg_SurvivalStats_Fact { - public CCSUsrMsg_SurvivalStats_FactImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_SurvivalStats_FactImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Type - { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + public int Type { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } - public int Display - { get => Accessor.GetInt32("display"); set => Accessor.SetInt32("display", value); } + public int Display { get => Accessor.GetInt32("display"); set => Accessor.SetInt32("display", value); } - public int Value - { get => Accessor.GetInt32("value"); set => Accessor.SetInt32("value", value); } + public int Value { get => Accessor.GetInt32("value"); set => Accessor.SetInt32("value", value); } - public float Interestingness - { get => Accessor.GetFloat("interestingness"); set => Accessor.SetFloat("interestingness", value); } + public float Interestingness { get => Accessor.GetFloat("interestingness"); set => Accessor.SetFloat("interestingness", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStats_PlacementImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStats_PlacementImpl.cs index 18332b1fb..141231ad2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStats_PlacementImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_SurvivalStats_PlacementImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_SurvivalStats_PlacementImpl : TypedProtobuf, CCSUsrMsg_SurvivalStats_Placement { - public CCSUsrMsg_SurvivalStats_PlacementImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_SurvivalStats_PlacementImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Xuid - { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } + public ulong Xuid { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } - public int Teamnumber - { get => Accessor.GetInt32("teamnumber"); set => Accessor.SetInt32("teamnumber", value); } + public int Teamnumber { get => Accessor.GetInt32("teamnumber"); set => Accessor.SetInt32("teamnumber", value); } - public int Placement - { get => Accessor.GetInt32("placement"); set => Accessor.SetInt32("placement", value); } + public int Placement { get => Accessor.GetInt32("placement"); set => Accessor.SetInt32("placement", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_TrainImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_TrainImpl.cs index fd1b927a8..610f92c57 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_TrainImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_TrainImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_TrainImpl : NetMessage, CCSUsrMsg_Train { - public CCSUsrMsg_TrainImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_TrainImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Train - { get => Accessor.GetInt32("train"); set => Accessor.SetInt32("train", value); } + public int Train { get => Accessor.GetInt32("train"); set => Accessor.SetInt32("train", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_UpdateScreenHealthBarImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_UpdateScreenHealthBarImpl.cs index d13e899d3..4e4f30538 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_UpdateScreenHealthBarImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_UpdateScreenHealthBarImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_UpdateScreenHealthBarImpl : NetMessage, CCSUsrMsg_UpdateScreenHealthBar { - public CCSUsrMsg_UpdateScreenHealthBarImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_UpdateScreenHealthBarImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Entidx - { get => Accessor.GetInt32("entidx"); set => Accessor.SetInt32("entidx", value); } + public int Entidx { get => Accessor.GetInt32("entidx"); set => Accessor.SetInt32("entidx", value); } - public float HealthratioOld - { get => Accessor.GetFloat("healthratio_old"); set => Accessor.SetFloat("healthratio_old", value); } + public float HealthratioOld { get => Accessor.GetFloat("healthratio_old"); set => Accessor.SetFloat("healthratio_old", value); } - public float HealthratioNew - { get => Accessor.GetFloat("healthratio_new"); set => Accessor.SetFloat("healthratio_new", value); } + public float HealthratioNew { get => Accessor.GetFloat("healthratio_new"); set => Accessor.SetFloat("healthratio_new", value); } - public int Style - { get => Accessor.GetInt32("style"); set => Accessor.SetInt32("style", value); } + public int Style { get => Accessor.GetInt32("style"); set => Accessor.SetInt32("style", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VGUIMenuImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VGUIMenuImpl.cs index 33166b875..9ea114a0b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VGUIMenuImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VGUIMenuImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_VGUIMenuImpl : NetMessage, CCSUsrMsg_VGUIMenu { - public CCSUsrMsg_VGUIMenuImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_VGUIMenuImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public bool Show - { get => Accessor.GetBool("show"); set => Accessor.SetBool("show", value); } + public bool Show { get => Accessor.GetBool("show"); set => Accessor.SetBool("show", value); } - public IProtobufRepeatedFieldSubMessageType Keys - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "keys"); } + public IProtobufRepeatedFieldSubMessageType Keys { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "keys"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VGUIMenu_KeysImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VGUIMenu_KeysImpl.cs index 3fc991fb0..2fa44d952 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VGUIMenu_KeysImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VGUIMenu_KeysImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_VGUIMenu_KeysImpl : TypedProtobuf, CCSUsrMsg_VGUIMenu_Keys { - public CCSUsrMsg_VGUIMenu_KeysImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_VGUIMenu_KeysImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public string Value - { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } + public string Value { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoiceMaskImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoiceMaskImpl.cs index a6eb1531e..00aa583c2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoiceMaskImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoiceMaskImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_VoiceMaskImpl : NetMessage, CCSUsrMsg_VoiceMask { - public CCSUsrMsg_VoiceMaskImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_VoiceMaskImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public IProtobufRepeatedFieldSubMessageType PlayerMasks - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "player_masks"); } + public IProtobufRepeatedFieldSubMessageType PlayerMasks { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "player_masks"); } - public bool PlayerModEnable - { get => Accessor.GetBool("player_mod_enable"); set => Accessor.SetBool("player_mod_enable", value); } + public bool PlayerModEnable { get => Accessor.GetBool("player_mod_enable"); set => Accessor.SetBool("player_mod_enable", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoiceMask_PlayerMaskImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoiceMask_PlayerMaskImpl.cs index 4e9c6c2cc..3d3169161 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoiceMask_PlayerMaskImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoiceMask_PlayerMaskImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_VoiceMask_PlayerMaskImpl : TypedProtobuf, CCSUsrMsg_VoiceMask_PlayerMask { - public CCSUsrMsg_VoiceMask_PlayerMaskImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCSUsrMsg_VoiceMask_PlayerMaskImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int GameRulesMask - { get => Accessor.GetInt32("game_rules_mask"); set => Accessor.SetInt32("game_rules_mask", value); } + public int GameRulesMask { get => Accessor.GetInt32("game_rules_mask"); set => Accessor.SetInt32("game_rules_mask", value); } - public int BanMasks - { get => Accessor.GetInt32("ban_masks"); set => Accessor.SetInt32("ban_masks", value); } + public int BanMasks { get => Accessor.GetInt32("ban_masks"); set => Accessor.SetInt32("ban_masks", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoteFailedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoteFailedImpl.cs index 805db3406..95ebd0e78 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoteFailedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoteFailedImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_VoteFailedImpl : NetMessage, CCSUsrMsg_VoteFailed { - public CCSUsrMsg_VoteFailedImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_VoteFailedImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Team - { get => Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } + public int Team { get => Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } - public int Reason - { get => Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } + public int Reason { get => Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VotePassImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VotePassImpl.cs index 6cef919c6..b0e783e9f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VotePassImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VotePassImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_VotePassImpl : NetMessage, CCSUsrMsg_VotePass { - public CCSUsrMsg_VotePassImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_VotePassImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Team - { get => Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } + public int Team { get => Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } - public int VoteType - { get => Accessor.GetInt32("vote_type"); set => Accessor.SetInt32("vote_type", value); } + public int VoteType { get => Accessor.GetInt32("vote_type"); set => Accessor.SetInt32("vote_type", value); } - public string DispStr - { get => Accessor.GetString("disp_str"); set => Accessor.SetString("disp_str", value); } + public string DispStr { get => Accessor.GetString("disp_str"); set => Accessor.SetString("disp_str", value); } - public string DetailsStr - { get => Accessor.GetString("details_str"); set => Accessor.SetString("details_str", value); } + public string DetailsStr { get => Accessor.GetString("details_str"); set => Accessor.SetString("details_str", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoteSetupImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoteSetupImpl.cs index d57c53825..8d5d0e2dc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoteSetupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoteSetupImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_VoteSetupImpl : NetMessage, CCSUsrMsg_VoteSetup { - public CCSUsrMsg_VoteSetupImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_VoteSetupImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public IProtobufRepeatedFieldValueType PotentialIssues - { get => new ProtobufRepeatedFieldValueType(Accessor, "potential_issues"); } + public IProtobufRepeatedFieldValueType PotentialIssues { get => new ProtobufRepeatedFieldValueType(Accessor, "potential_issues"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoteStartImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoteStartImpl.cs index fcc4aaaba..284452297 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoteStartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_VoteStartImpl.cs @@ -1,48 +1,36 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_VoteStartImpl : NetMessage, CCSUsrMsg_VoteStart { - public CCSUsrMsg_VoteStartImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_VoteStartImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Team - { get => Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } + public int Team { get => Accessor.GetInt32("team"); set => Accessor.SetInt32("team", value); } - public int PlayerSlot - { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } + public int PlayerSlot { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } - public int VoteType - { get => Accessor.GetInt32("vote_type"); set => Accessor.SetInt32("vote_type", value); } + public int VoteType { get => Accessor.GetInt32("vote_type"); set => Accessor.SetInt32("vote_type", value); } - public string DispStr - { get => Accessor.GetString("disp_str"); set => Accessor.SetString("disp_str", value); } + public string DispStr { get => Accessor.GetString("disp_str"); set => Accessor.SetString("disp_str", value); } - public string DetailsStr - { get => Accessor.GetString("details_str"); set => Accessor.SetString("details_str", value); } + public string DetailsStr { get => Accessor.GetString("details_str"); set => Accessor.SetString("details_str", value); } - public string OtherTeamStr - { get => Accessor.GetString("other_team_str"); set => Accessor.SetString("other_team_str", value); } + public string OtherTeamStr { get => Accessor.GetString("other_team_str"); set => Accessor.SetString("other_team_str", value); } - public bool IsYesNoVote - { get => Accessor.GetBool("is_yes_no_vote"); set => Accessor.SetBool("is_yes_no_vote", value); } + public bool IsYesNoVote { get => Accessor.GetBool("is_yes_no_vote"); set => Accessor.SetBool("is_yes_no_vote", value); } - public int PlayerSlotTarget - { get => Accessor.GetInt32("player_slot_target"); set => Accessor.SetInt32("player_slot_target", value); } + public int PlayerSlotTarget { get => Accessor.GetInt32("player_slot_target"); set => Accessor.SetInt32("player_slot_target", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_WeaponSoundImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_WeaponSoundImpl.cs index d22ba8c3d..3d1582800 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_WeaponSoundImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_WeaponSoundImpl.cs @@ -1,44 +1,33 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_WeaponSoundImpl : NetMessage, CCSUsrMsg_WeaponSound { - public CCSUsrMsg_WeaponSoundImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_WeaponSoundImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Entidx - { get => Accessor.GetInt32("entidx"); set => Accessor.SetInt32("entidx", value); } + public int Entidx { get => Accessor.GetInt32("entidx"); set => Accessor.SetInt32("entidx", value); } - public float OriginX - { get => Accessor.GetFloat("origin_x"); set => Accessor.SetFloat("origin_x", value); } + public float OriginX { get => Accessor.GetFloat("origin_x"); set => Accessor.SetFloat("origin_x", value); } - public float OriginY - { get => Accessor.GetFloat("origin_y"); set => Accessor.SetFloat("origin_y", value); } + public float OriginY { get => Accessor.GetFloat("origin_y"); set => Accessor.SetFloat("origin_y", value); } - public float OriginZ - { get => Accessor.GetFloat("origin_z"); set => Accessor.SetFloat("origin_z", value); } + public float OriginZ { get => Accessor.GetFloat("origin_z"); set => Accessor.SetFloat("origin_z", value); } - public string Sound - { get => Accessor.GetString("sound"); set => Accessor.SetString("sound", value); } + public string Sound { get => Accessor.GetString("sound"); set => Accessor.SetString("sound", value); } - public float GameTimestamp - { get => Accessor.GetFloat("game_timestamp"); set => Accessor.SetFloat("game_timestamp", value); } + public float GameTimestamp { get => Accessor.GetFloat("game_timestamp"); set => Accessor.SetFloat("game_timestamp", value); } - public uint SourceSoundscapeid - { get => Accessor.GetUInt32("source_soundscapeid"); set => Accessor.SetUInt32("source_soundscapeid", value); } + public uint SourceSoundscapeid { get => Accessor.GetUInt32("source_soundscapeid"); set => Accessor.SetUInt32("source_soundscapeid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_XRankGetImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_XRankGetImpl.cs index 74cee830f..113ad8879 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_XRankGetImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_XRankGetImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_XRankGetImpl : NetMessage, CCSUsrMsg_XRankGet { - public CCSUsrMsg_XRankGetImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_XRankGetImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int ModeIdx - { get => Accessor.GetInt32("mode_idx"); set => Accessor.SetInt32("mode_idx", value); } + public int ModeIdx { get => Accessor.GetInt32("mode_idx"); set => Accessor.SetInt32("mode_idx", value); } - public int Controller - { get => Accessor.GetInt32("controller"); set => Accessor.SetInt32("controller", value); } + public int Controller { get => Accessor.GetInt32("controller"); set => Accessor.SetInt32("controller", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_XRankUpdImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_XRankUpdImpl.cs index 0b7325224..bb8cb2a9d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_XRankUpdImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_XRankUpdImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_XRankUpdImpl : NetMessage, CCSUsrMsg_XRankUpd { - public CCSUsrMsg_XRankUpdImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_XRankUpdImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int ModeIdx - { get => Accessor.GetInt32("mode_idx"); set => Accessor.SetInt32("mode_idx", value); } + public int ModeIdx { get => Accessor.GetInt32("mode_idx"); set => Accessor.SetInt32("mode_idx", value); } - public int Controller - { get => Accessor.GetInt32("controller"); set => Accessor.SetInt32("controller", value); } + public int Controller { get => Accessor.GetInt32("controller"); set => Accessor.SetInt32("controller", value); } - public int Ranking - { get => Accessor.GetInt32("ranking"); set => Accessor.SetInt32("ranking", value); } + public int Ranking { get => Accessor.GetInt32("ranking"); set => Accessor.SetInt32("ranking", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_XpUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_XpUpdateImpl.cs index 5cac1f678..da40f00b4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_XpUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCSUsrMsg_XpUpdateImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCSUsrMsg_XpUpdateImpl : NetMessage, CCSUsrMsg_XpUpdate { - public CCSUsrMsg_XpUpdateImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CCSUsrMsg_XpUpdateImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CMsgGCCstrike15_v2_GC2ServerNotifyXPRewarded Data - { get => new CMsgGCCstrike15_v2_GC2ServerNotifyXPRewardedImpl(NativeNetMessages.GetNestedMessage(Address, "data"), false); } + public CMsgGCCstrike15_v2_GC2ServerNotifyXPRewarded Data { get => new CMsgGCCstrike15_v2_GC2ServerNotifyXPRewardedImpl(NativeNetMessages.GetNestedMessage(Address, "data"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientHeaderOverwatchEvidenceImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientHeaderOverwatchEvidenceImpl.cs index 3ea419c90..c7cbfd202 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientHeaderOverwatchEvidenceImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientHeaderOverwatchEvidenceImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CClientHeaderOverwatchEvidenceImpl : TypedProtobuf, CClientHeaderOverwatchEvidence { - public CClientHeaderOverwatchEvidenceImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CClientHeaderOverwatchEvidenceImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public ulong Caseid - { get => Accessor.GetUInt64("caseid"); set => Accessor.SetUInt64("caseid", value); } + public ulong Caseid { get => Accessor.GetUInt64("caseid"); set => Accessor.SetUInt64("caseid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_ClientUIEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_ClientUIEventImpl.cs index 9b245a765..16e127887 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_ClientUIEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_ClientUIEventImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CClientMsg_ClientUIEventImpl : TypedProtobuf, CClientMsg_ClientUIEvent { - public CClientMsg_ClientUIEventImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CClientMsg_ClientUIEventImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public EClientUIEvent Event - { get => (EClientUIEvent)Accessor.GetInt32("event"); set => Accessor.SetInt32("event", (int)value); } + public EClientUIEvent Event { get => (EClientUIEvent)Accessor.GetInt32("event"); set => Accessor.SetInt32("event", (int)value); } - public uint EntEhandle - { get => Accessor.GetUInt32("ent_ehandle"); set => Accessor.SetUInt32("ent_ehandle", value); } + public uint EntEhandle { get => Accessor.GetUInt32("ent_ehandle"); set => Accessor.SetUInt32("ent_ehandle", value); } - public uint ClientEhandle - { get => Accessor.GetUInt32("client_ehandle"); set => Accessor.SetUInt32("client_ehandle", value); } + public uint ClientEhandle { get => Accessor.GetUInt32("client_ehandle"); set => Accessor.SetUInt32("client_ehandle", value); } - public string Data1 - { get => Accessor.GetString("data1"); set => Accessor.SetString("data1", value); } + public string Data1 { get => Accessor.GetString("data1"); set => Accessor.SetString("data1", value); } - public string Data2 - { get => Accessor.GetString("data2"); set => Accessor.SetString("data2", value); } + public string Data2 { get => Accessor.GetString("data2"); set => Accessor.SetString("data2", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_CustomGameEventBounceImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_CustomGameEventBounceImpl.cs index 864433f87..3a13a44e2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_CustomGameEventBounceImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_CustomGameEventBounceImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CClientMsg_CustomGameEventBounceImpl : TypedProtobuf, CClientMsg_CustomGameEventBounce { - public CClientMsg_CustomGameEventBounceImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CClientMsg_CustomGameEventBounceImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string EventName - { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } + public string EventName { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } - public int PlayerSlot - { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } + public int PlayerSlot { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_CustomGameEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_CustomGameEventImpl.cs index eb53aed49..40787bf86 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_CustomGameEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_CustomGameEventImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CClientMsg_CustomGameEventImpl : TypedProtobuf, CClientMsg_CustomGameEvent { - public CClientMsg_CustomGameEventImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CClientMsg_CustomGameEventImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string EventName - { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } + public string EventName { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_DevPaletteVisibilityChangedEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_DevPaletteVisibilityChangedEventImpl.cs index c03dbdc57..7e862b58a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_DevPaletteVisibilityChangedEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_DevPaletteVisibilityChangedEventImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CClientMsg_DevPaletteVisibilityChangedEventImpl : TypedProtobuf, CClientMsg_DevPaletteVisibilityChangedEvent { - public CClientMsg_DevPaletteVisibilityChangedEventImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CClientMsg_DevPaletteVisibilityChangedEventImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool Visible - { get => Accessor.GetBool("visible"); set => Accessor.SetBool("visible", value); } + public bool Visible { get => Accessor.GetBool("visible"); set => Accessor.SetBool("visible", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_ListenForResponseFoundImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_ListenForResponseFoundImpl.cs index 8647226e0..6a9ab8a2e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_ListenForResponseFoundImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_ListenForResponseFoundImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CClientMsg_ListenForResponseFoundImpl : TypedProtobuf, CClientMsg_ListenForResponseFound { - public CClientMsg_ListenForResponseFoundImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CClientMsg_ListenForResponseFoundImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int PlayerSlot - { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } + public int PlayerSlot { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_RotateAnchorImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_RotateAnchorImpl.cs index 632c9b2b3..9e09b6a50 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_RotateAnchorImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_RotateAnchorImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CClientMsg_RotateAnchorImpl : TypedProtobuf, CClientMsg_RotateAnchor { - public CClientMsg_RotateAnchorImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CClientMsg_RotateAnchorImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float Angle - { get => Accessor.GetFloat("angle"); set => Accessor.SetFloat("angle", value); } + public float Angle { get => Accessor.GetFloat("angle"); set => Accessor.SetFloat("angle", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_WorldUIControllerHasPanelChangedEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_WorldUIControllerHasPanelChangedEventImpl.cs index fd5dc6d83..d8b0e348b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_WorldUIControllerHasPanelChangedEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CClientMsg_WorldUIControllerHasPanelChangedEventImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CClientMsg_WorldUIControllerHasPanelChangedEventImpl : TypedProtobuf, CClientMsg_WorldUIControllerHasPanelChangedEvent { - public CClientMsg_WorldUIControllerHasPanelChangedEventImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CClientMsg_WorldUIControllerHasPanelChangedEventImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool HasPanel - { get => Accessor.GetBool("has_panel"); set => Accessor.SetBool("has_panel", value); } + public bool HasPanel { get => Accessor.GetBool("has_panel"); set => Accessor.SetBool("has_panel", value); } - public uint ClientEhandle - { get => Accessor.GetUInt32("client_ehandle"); set => Accessor.SetUInt32("client_ehandle", value); } + public uint ClientEhandle { get => Accessor.GetUInt32("client_ehandle"); set => Accessor.SetUInt32("client_ehandle", value); } - public uint LiteralHandType - { get => Accessor.GetUInt32("literal_hand_type"); set => Accessor.SetUInt32("literal_hand_type", value); } + public uint LiteralHandType { get => Accessor.GetUInt32("literal_hand_type"); set => Accessor.SetUInt32("literal_hand_type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GamePersonalDataCategoryInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GamePersonalDataCategoryInfoImpl.cs index f29c019bd..ae0993456 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GamePersonalDataCategoryInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GamePersonalDataCategoryInfoImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCommunity_GamePersonalDataCategoryInfoImpl : TypedProtobuf, CCommunity_GamePersonalDataCategoryInfo { - public CCommunity_GamePersonalDataCategoryInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCommunity_GamePersonalDataCategoryInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Type - { get => Accessor.GetString("type"); set => Accessor.SetString("type", value); } + public string Type { get => Accessor.GetString("type"); set => Accessor.SetString("type", value); } - public string LocalizationToken - { get => Accessor.GetString("localization_token"); set => Accessor.SetString("localization_token", value); } + public string LocalizationToken { get => Accessor.GetString("localization_token"); set => Accessor.SetString("localization_token", value); } - public string TemplateFile - { get => Accessor.GetString("template_file"); set => Accessor.SetString("template_file", value); } + public string TemplateFile { get => Accessor.GetString("template_file"); set => Accessor.SetString("template_file", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataCategories_RequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataCategories_RequestImpl.cs index d29977d6e..074739e9a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataCategories_RequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataCategories_RequestImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCommunity_GetGamePersonalDataCategories_RequestImpl : TypedProtobuf, CCommunity_GetGamePersonalDataCategories_Request { - public CCommunity_GetGamePersonalDataCategories_RequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCommunity_GetGamePersonalDataCategories_RequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataCategories_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataCategories_ResponseImpl.cs index aadc3d65f..135681a62 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataCategories_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataCategories_ResponseImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCommunity_GetGamePersonalDataCategories_ResponseImpl : TypedProtobuf, CCommunity_GetGamePersonalDataCategories_Response { - public CCommunity_GetGamePersonalDataCategories_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCommunity_GetGamePersonalDataCategories_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Categories - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "categories"); } + public IProtobufRepeatedFieldSubMessageType Categories { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "categories"); } - public string AppAssetsBasename - { get => Accessor.GetString("app_assets_basename"); set => Accessor.SetString("app_assets_basename", value); } + public string AppAssetsBasename { get => Accessor.GetString("app_assets_basename"); set => Accessor.SetString("app_assets_basename", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataEntries_RequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataEntries_RequestImpl.cs index f200d173d..47175e88e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataEntries_RequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataEntries_RequestImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCommunity_GetGamePersonalDataEntries_RequestImpl : TypedProtobuf, CCommunity_GetGamePersonalDataEntries_Request { - public CCommunity_GetGamePersonalDataEntries_RequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCommunity_GetGamePersonalDataEntries_RequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } - public string Type - { get => Accessor.GetString("type"); set => Accessor.SetString("type", value); } + public string Type { get => Accessor.GetString("type"); set => Accessor.SetString("type", value); } - public string ContinueToken - { get => Accessor.GetString("continue_token"); set => Accessor.SetString("continue_token", value); } + public string ContinueToken { get => Accessor.GetString("continue_token"); set => Accessor.SetString("continue_token", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataEntries_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataEntries_ResponseImpl.cs index 910ef27a3..c45ddcb83 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataEntries_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_GetGamePersonalDataEntries_ResponseImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCommunity_GetGamePersonalDataEntries_ResponseImpl : TypedProtobuf, CCommunity_GetGamePersonalDataEntries_Response { - public CCommunity_GetGamePersonalDataEntries_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCommunity_GetGamePersonalDataEntries_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Gceresult - { get => Accessor.GetUInt32("gceresult"); set => Accessor.SetUInt32("gceresult", value); } + public uint Gceresult { get => Accessor.GetUInt32("gceresult"); set => Accessor.SetUInt32("gceresult", value); } - public IProtobufRepeatedFieldValueType Entries - { get => new ProtobufRepeatedFieldValueType(Accessor, "entries"); } + public IProtobufRepeatedFieldValueType Entries { get => new ProtobufRepeatedFieldValueType(Accessor, "entries"); } - public string ContinueToken - { get => Accessor.GetString("continue_token"); set => Accessor.SetString("continue_token", value); } + public string ContinueToken { get => Accessor.GetString("continue_token"); set => Accessor.SetString("continue_token", value); } - public string ContinueText - { get => Accessor.GetString("continue_text"); set => Accessor.SetString("continue_text", value); } + public string ContinueText { get => Accessor.GetString("continue_text"); set => Accessor.SetString("continue_text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_TerminateGamePersonalDataEntries_RequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_TerminateGamePersonalDataEntries_RequestImpl.cs index 70cf65453..1294dacd2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_TerminateGamePersonalDataEntries_RequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_TerminateGamePersonalDataEntries_RequestImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCommunity_TerminateGamePersonalDataEntries_RequestImpl : TypedProtobuf, CCommunity_TerminateGamePersonalDataEntries_Request { - public CCommunity_TerminateGamePersonalDataEntries_RequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCommunity_TerminateGamePersonalDataEntries_RequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_TerminateGamePersonalDataEntries_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_TerminateGamePersonalDataEntries_ResponseImpl.cs index e3a06689a..f1e641464 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_TerminateGamePersonalDataEntries_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CCommunity_TerminateGamePersonalDataEntries_ResponseImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CCommunity_TerminateGamePersonalDataEntries_ResponseImpl : TypedProtobuf, CCommunity_TerminateGamePersonalDataEntries_Response { - public CCommunity_TerminateGamePersonalDataEntries_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CCommunity_TerminateGamePersonalDataEntries_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Gceresult - { get => Accessor.GetUInt32("gceresult"); set => Accessor.SetUInt32("gceresult", value); } + public uint Gceresult { get => Accessor.GetUInt32("gceresult"); set => Accessor.SetUInt32("gceresult", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_MatchInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_MatchInfoImpl.cs index bdbfceba6..7ece02f72 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_MatchInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_MatchInfoImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,28 +8,23 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDataGCCStrike15_v2_MatchInfoImpl : TypedProtobuf, CDataGCCStrike15_v2_MatchInfo { - public CDataGCCStrike15_v2_MatchInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDataGCCStrike15_v2_MatchInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Matchid - { get => Accessor.GetUInt64("matchid"); set => Accessor.SetUInt64("matchid", value); } + public ulong Matchid { get => Accessor.GetUInt64("matchid"); set => Accessor.SetUInt64("matchid", value); } - public uint Matchtime - { get => Accessor.GetUInt32("matchtime"); set => Accessor.SetUInt32("matchtime", value); } + public uint Matchtime { get => Accessor.GetUInt32("matchtime"); set => Accessor.SetUInt32("matchtime", value); } - public WatchableMatchInfo Watchablematchinfo - { get => new WatchableMatchInfoImpl(NativeNetMessages.GetNestedMessage(Address, "watchablematchinfo"), false); } + public WatchableMatchInfo Watchablematchinfo { get => new WatchableMatchInfoImpl(NativeNetMessages.GetNestedMessage(Address, "watchablematchinfo"), false); } - public CMsgGCCStrike15_v2_MatchmakingServerRoundStats RoundstatsLegacy - { get => new CMsgGCCStrike15_v2_MatchmakingServerRoundStatsImpl(NativeNetMessages.GetNestedMessage(Address, "roundstats_legacy"), false); } + public CMsgGCCStrike15_v2_MatchmakingServerRoundStats RoundstatsLegacy { get => new CMsgGCCStrike15_v2_MatchmakingServerRoundStatsImpl(NativeNetMessages.GetNestedMessage(Address, "roundstats_legacy"), false); } - public IProtobufRepeatedFieldSubMessageType Roundstatsall - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "roundstatsall"); } + public IProtobufRepeatedFieldSubMessageType Roundstatsall { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "roundstatsall"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentGroupImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentGroupImpl.cs index de788179f..e7c4b9af7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentGroupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentGroupImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,48 +6,38 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDataGCCStrike15_v2_TournamentGroupImpl : TypedProtobuf, CDataGCCStrike15_v2_TournamentGroup { - public CDataGCCStrike15_v2_TournamentGroupImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDataGCCStrike15_v2_TournamentGroupImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Groupid - { get => Accessor.GetUInt32("groupid"); set => Accessor.SetUInt32("groupid", value); } + public uint Groupid { get => Accessor.GetUInt32("groupid"); set => Accessor.SetUInt32("groupid", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public string Desc - { get => Accessor.GetString("desc"); set => Accessor.SetString("desc", value); } + public string Desc { get => Accessor.GetString("desc"); set => Accessor.SetString("desc", value); } - public uint PicksDeprecated - { get => Accessor.GetUInt32("picks__deprecated"); set => Accessor.SetUInt32("picks__deprecated", value); } + public uint PicksDeprecated { get => Accessor.GetUInt32("picks__deprecated"); set => Accessor.SetUInt32("picks__deprecated", value); } - public IProtobufRepeatedFieldSubMessageType Teams - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "teams"); } + public IProtobufRepeatedFieldSubMessageType Teams { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "teams"); } - public IProtobufRepeatedFieldValueType StageIds - { get => new ProtobufRepeatedFieldValueType(Accessor, "stage_ids"); } + public IProtobufRepeatedFieldValueType StageIds { get => new ProtobufRepeatedFieldValueType(Accessor, "stage_ids"); } - public uint Picklockuntiltime - { get => Accessor.GetUInt32("picklockuntiltime"); set => Accessor.SetUInt32("picklockuntiltime", value); } + public uint Picklockuntiltime { get => Accessor.GetUInt32("picklockuntiltime"); set => Accessor.SetUInt32("picklockuntiltime", value); } - public uint Pickableteams - { get => Accessor.GetUInt32("pickableteams"); set => Accessor.SetUInt32("pickableteams", value); } + public uint Pickableteams { get => Accessor.GetUInt32("pickableteams"); set => Accessor.SetUInt32("pickableteams", value); } - public uint PointsPerPick - { get => Accessor.GetUInt32("points_per_pick"); set => Accessor.SetUInt32("points_per_pick", value); } + public uint PointsPerPick { get => Accessor.GetUInt32("points_per_pick"); set => Accessor.SetUInt32("points_per_pick", value); } - public IProtobufRepeatedFieldSubMessageType Picks - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "picks"); } + public IProtobufRepeatedFieldSubMessageType Picks { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "picks"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentGroupTeamImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentGroupTeamImpl.cs index 22d2764e6..a109b21a9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentGroupTeamImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentGroupTeamImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDataGCCStrike15_v2_TournamentGroupTeamImpl : TypedProtobuf, CDataGCCStrike15_v2_TournamentGroupTeam { - public CDataGCCStrike15_v2_TournamentGroupTeamImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDataGCCStrike15_v2_TournamentGroupTeamImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int TeamId - { get => Accessor.GetInt32("team_id"); set => Accessor.SetInt32("team_id", value); } + public int TeamId { get => Accessor.GetInt32("team_id"); set => Accessor.SetInt32("team_id", value); } - public int Score - { get => Accessor.GetInt32("score"); set => Accessor.SetInt32("score", value); } + public int Score { get => Accessor.GetInt32("score"); set => Accessor.SetInt32("score", value); } - public bool Correctpick - { get => Accessor.GetBool("correctpick"); set => Accessor.SetBool("correctpick", value); } + public bool Correctpick { get => Accessor.GetBool("correctpick"); set => Accessor.SetBool("correctpick", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentGroup_PicksImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentGroup_PicksImpl.cs index 54d64c040..258e5f036 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentGroup_PicksImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentGroup_PicksImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDataGCCStrike15_v2_TournamentGroup_PicksImpl : TypedProtobuf, CDataGCCStrike15_v2_TournamentGroup_Picks { - public CDataGCCStrike15_v2_TournamentGroup_PicksImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDataGCCStrike15_v2_TournamentGroup_PicksImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldValueType Pickids - { get => new ProtobufRepeatedFieldValueType(Accessor, "pickids"); } + public IProtobufRepeatedFieldValueType Pickids { get => new ProtobufRepeatedFieldValueType(Accessor, "pickids"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentInfoImpl.cs index d85726c84..2380713d2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentInfoImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +8,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDataGCCStrike15_v2_TournamentInfoImpl : TypedProtobuf, CDataGCCStrike15_v2_TournamentInfo { - public CDataGCCStrike15_v2_TournamentInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDataGCCStrike15_v2_TournamentInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Sections - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "sections"); } + public IProtobufRepeatedFieldSubMessageType Sections { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "sections"); } - public TournamentEvent TournamentEvent - { get => new TournamentEventImpl(NativeNetMessages.GetNestedMessage(Address, "tournament_event"), false); } + public TournamentEvent TournamentEvent { get => new TournamentEventImpl(NativeNetMessages.GetNestedMessage(Address, "tournament_event"), false); } - public IProtobufRepeatedFieldSubMessageType TournamentTeams - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "tournament_teams"); } + public IProtobufRepeatedFieldSubMessageType TournamentTeams { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "tournament_teams"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentMatchDraftImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentMatchDraftImpl.cs index 661a760bc..bb5432a46 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentMatchDraftImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentMatchDraftImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,88 +6,68 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDataGCCStrike15_v2_TournamentMatchDraftImpl : TypedProtobuf, CDataGCCStrike15_v2_TournamentMatchDraft { - public CDataGCCStrike15_v2_TournamentMatchDraftImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDataGCCStrike15_v2_TournamentMatchDraftImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int EventId - { get => Accessor.GetInt32("event_id"); set => Accessor.SetInt32("event_id", value); } + public int EventId { get => Accessor.GetInt32("event_id"); set => Accessor.SetInt32("event_id", value); } - public int EventStageId - { get => Accessor.GetInt32("event_stage_id"); set => Accessor.SetInt32("event_stage_id", value); } + public int EventStageId { get => Accessor.GetInt32("event_stage_id"); set => Accessor.SetInt32("event_stage_id", value); } - public int TeamId0 - { get => Accessor.GetInt32("team_id_0"); set => Accessor.SetInt32("team_id_0", value); } + public int TeamId0 { get => Accessor.GetInt32("team_id_0"); set => Accessor.SetInt32("team_id_0", value); } - public int TeamId1 - { get => Accessor.GetInt32("team_id_1"); set => Accessor.SetInt32("team_id_1", value); } + public int TeamId1 { get => Accessor.GetInt32("team_id_1"); set => Accessor.SetInt32("team_id_1", value); } - public int MapsCount - { get => Accessor.GetInt32("maps_count"); set => Accessor.SetInt32("maps_count", value); } + public int MapsCount { get => Accessor.GetInt32("maps_count"); set => Accessor.SetInt32("maps_count", value); } - public int MapsCurrent - { get => Accessor.GetInt32("maps_current"); set => Accessor.SetInt32("maps_current", value); } + public int MapsCurrent { get => Accessor.GetInt32("maps_current"); set => Accessor.SetInt32("maps_current", value); } - public int TeamIdStart - { get => Accessor.GetInt32("team_id_start"); set => Accessor.SetInt32("team_id_start", value); } + public int TeamIdStart { get => Accessor.GetInt32("team_id_start"); set => Accessor.SetInt32("team_id_start", value); } - public int TeamIdVeto1 - { get => Accessor.GetInt32("team_id_veto1"); set => Accessor.SetInt32("team_id_veto1", value); } + public int TeamIdVeto1 { get => Accessor.GetInt32("team_id_veto1"); set => Accessor.SetInt32("team_id_veto1", value); } - public int TeamIdPickn - { get => Accessor.GetInt32("team_id_pickn"); set => Accessor.SetInt32("team_id_pickn", value); } + public int TeamIdPickn { get => Accessor.GetInt32("team_id_pickn"); set => Accessor.SetInt32("team_id_pickn", value); } - public IProtobufRepeatedFieldSubMessageType Drafts - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "drafts"); } + public IProtobufRepeatedFieldSubMessageType Drafts { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "drafts"); } - public IProtobufRepeatedFieldValueType VoteMapid0 - { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_mapid_0"); } + public IProtobufRepeatedFieldValueType VoteMapid0 { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_mapid_0"); } - public IProtobufRepeatedFieldValueType VoteMapid1 - { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_mapid_1"); } + public IProtobufRepeatedFieldValueType VoteMapid1 { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_mapid_1"); } - public IProtobufRepeatedFieldValueType VoteMapid2 - { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_mapid_2"); } + public IProtobufRepeatedFieldValueType VoteMapid2 { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_mapid_2"); } - public IProtobufRepeatedFieldValueType VoteMapid3 - { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_mapid_3"); } + public IProtobufRepeatedFieldValueType VoteMapid3 { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_mapid_3"); } - public IProtobufRepeatedFieldValueType VoteMapid4 - { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_mapid_4"); } + public IProtobufRepeatedFieldValueType VoteMapid4 { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_mapid_4"); } - public IProtobufRepeatedFieldValueType VoteMapid5 - { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_mapid_5"); } + public IProtobufRepeatedFieldValueType VoteMapid5 { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_mapid_5"); } - public IProtobufRepeatedFieldValueType VoteStartingSide - { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_starting_side"); } + public IProtobufRepeatedFieldValueType VoteStartingSide { get => new ProtobufRepeatedFieldValueType(Accessor, "vote_starting_side"); } - public int VotePhase - { get => Accessor.GetInt32("vote_phase"); set => Accessor.SetInt32("vote_phase", value); } + public int VotePhase { get => Accessor.GetInt32("vote_phase"); set => Accessor.SetInt32("vote_phase", value); } - public float VotePhaseStart - { get => Accessor.GetFloat("vote_phase_start"); set => Accessor.SetFloat("vote_phase_start", value); } + public float VotePhaseStart { get => Accessor.GetFloat("vote_phase_start"); set => Accessor.SetFloat("vote_phase_start", value); } - public float VotePhaseLength - { get => Accessor.GetFloat("vote_phase_length"); set => Accessor.SetFloat("vote_phase_length", value); } + public float VotePhaseLength { get => Accessor.GetFloat("vote_phase_length"); set => Accessor.SetFloat("vote_phase_length", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentMatchDraft_EntryImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentMatchDraft_EntryImpl.cs index 1a8bd3c43..d70d82fca 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentMatchDraft_EntryImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentMatchDraft_EntryImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDataGCCStrike15_v2_TournamentMatchDraft_EntryImpl : TypedProtobuf, CDataGCCStrike15_v2_TournamentMatchDraft_Entry { - public CDataGCCStrike15_v2_TournamentMatchDraft_EntryImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDataGCCStrike15_v2_TournamentMatchDraft_EntryImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Mapid - { get => Accessor.GetInt32("mapid"); set => Accessor.SetInt32("mapid", value); } + public int Mapid { get => Accessor.GetInt32("mapid"); set => Accessor.SetInt32("mapid", value); } - public int TeamIdCt - { get => Accessor.GetInt32("team_id_ct"); set => Accessor.SetInt32("team_id_ct", value); } + public int TeamIdCt { get => Accessor.GetInt32("team_id_ct"); set => Accessor.SetInt32("team_id_ct", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentSectionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentSectionImpl.cs index 77efc89c6..279561be6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentSectionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDataGCCStrike15_v2_TournamentSectionImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDataGCCStrike15_v2_TournamentSectionImpl : TypedProtobuf, CDataGCCStrike15_v2_TournamentSection { - public CDataGCCStrike15_v2_TournamentSectionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDataGCCStrike15_v2_TournamentSectionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Sectionid - { get => Accessor.GetUInt32("sectionid"); set => Accessor.SetUInt32("sectionid", value); } + public uint Sectionid { get => Accessor.GetUInt32("sectionid"); set => Accessor.SetUInt32("sectionid", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public string Desc - { get => Accessor.GetString("desc"); set => Accessor.SetString("desc", value); } + public string Desc { get => Accessor.GetString("desc"); set => Accessor.SetString("desc", value); } - public IProtobufRepeatedFieldSubMessageType Groups - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "groups"); } + public IProtobufRepeatedFieldSubMessageType Groups { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "groups"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoAnimationDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoAnimationDataImpl.cs index ab619dafa..3f67bac26 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoAnimationDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoAnimationDataImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoAnimationDataImpl : TypedProtobuf, CDemoAnimationData { - public CDemoAnimationDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoAnimationDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int EntityId - { get => Accessor.GetInt32("entity_id"); set => Accessor.SetInt32("entity_id", value); } + public int EntityId { get => Accessor.GetInt32("entity_id"); set => Accessor.SetInt32("entity_id", value); } - public int StartTick - { get => Accessor.GetInt32("start_tick"); set => Accessor.SetInt32("start_tick", value); } + public int StartTick { get => Accessor.GetInt32("start_tick"); set => Accessor.SetInt32("start_tick", value); } - public int EndTick - { get => Accessor.GetInt32("end_tick"); set => Accessor.SetInt32("end_tick", value); } + public int EndTick { get => Accessor.GetInt32("end_tick"); set => Accessor.SetInt32("end_tick", value); } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } - public long DataChecksum - { get => Accessor.GetInt64("data_checksum"); set => Accessor.SetInt64("data_checksum", value); } + public long DataChecksum { get => Accessor.GetInt64("data_checksum"); set => Accessor.SetInt64("data_checksum", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoAnimationHeaderImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoAnimationHeaderImpl.cs index 47e67f1ce..b9a18ccb8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoAnimationHeaderImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoAnimationHeaderImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoAnimationHeaderImpl : TypedProtobuf, CDemoAnimationHeader { - public CDemoAnimationHeaderImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoAnimationHeaderImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int EntityId - { get => Accessor.GetInt32("entity_id"); set => Accessor.SetInt32("entity_id", value); } + public int EntityId { get => Accessor.GetInt32("entity_id"); set => Accessor.SetInt32("entity_id", value); } - public int Tick - { get => Accessor.GetInt32("tick"); set => Accessor.SetInt32("tick", value); } + public int Tick { get => Accessor.GetInt32("tick"); set => Accessor.SetInt32("tick", value); } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoClassInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoClassInfoImpl.cs index b502be82d..c16f07139 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoClassInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoClassInfoImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoClassInfoImpl : TypedProtobuf, CDemoClassInfo { - public CDemoClassInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoClassInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Classes - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "classes"); } + public IProtobufRepeatedFieldSubMessageType Classes { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "classes"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoClassInfo_class_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoClassInfo_class_tImpl.cs index b14fb1179..74740dcb3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoClassInfo_class_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoClassInfo_class_tImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoClassInfo_class_tImpl : TypedProtobuf, CDemoClassInfo_class_t { - public CDemoClassInfo_class_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoClassInfo_class_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int ClassId - { get => Accessor.GetInt32("class_id"); set => Accessor.SetInt32("class_id", value); } + public int ClassId { get => Accessor.GetInt32("class_id"); set => Accessor.SetInt32("class_id", value); } - public string NetworkName - { get => Accessor.GetString("network_name"); set => Accessor.SetString("network_name", value); } + public string NetworkName { get => Accessor.GetString("network_name"); set => Accessor.SetString("network_name", value); } - public string TableName - { get => Accessor.GetString("table_name"); set => Accessor.SetString("table_name", value); } + public string TableName { get => Accessor.GetString("table_name"); set => Accessor.SetString("table_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoConsoleCmdImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoConsoleCmdImpl.cs index 607b2ba69..9a021dba4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoConsoleCmdImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoConsoleCmdImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoConsoleCmdImpl : TypedProtobuf, CDemoConsoleCmd { - public CDemoConsoleCmdImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoConsoleCmdImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Cmdstring - { get => Accessor.GetString("cmdstring"); set => Accessor.SetString("cmdstring", value); } + public string Cmdstring { get => Accessor.GetString("cmdstring"); set => Accessor.SetString("cmdstring", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoCustomDataCallbacksImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoCustomDataCallbacksImpl.cs index 3dbf90a45..f62f6bd21 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoCustomDataCallbacksImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoCustomDataCallbacksImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoCustomDataCallbacksImpl : TypedProtobuf, CDemoCustomDataCallbacks { - public CDemoCustomDataCallbacksImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoCustomDataCallbacksImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldValueType SaveId - { get => new ProtobufRepeatedFieldValueType(Accessor, "save_id"); } + public IProtobufRepeatedFieldValueType SaveId { get => new ProtobufRepeatedFieldValueType(Accessor, "save_id"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoCustomDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoCustomDataImpl.cs index 2d4d0369f..4cbff4133 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoCustomDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoCustomDataImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoCustomDataImpl : TypedProtobuf, CDemoCustomData { - public CDemoCustomDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoCustomDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int CallbackIndex - { get => Accessor.GetInt32("callback_index"); set => Accessor.SetInt32("callback_index", value); } + public int CallbackIndex { get => Accessor.GetInt32("callback_index"); set => Accessor.SetInt32("callback_index", value); } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoFileHeaderImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoFileHeaderImpl.cs index fec4a0b35..7ab9efe05 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoFileHeaderImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoFileHeaderImpl.cs @@ -1,76 +1,57 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoFileHeaderImpl : TypedProtobuf, CDemoFileHeader { - public CDemoFileHeaderImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoFileHeaderImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string DemoFileStamp - { get => Accessor.GetString("demo_file_stamp"); set => Accessor.SetString("demo_file_stamp", value); } + public string DemoFileStamp { get => Accessor.GetString("demo_file_stamp"); set => Accessor.SetString("demo_file_stamp", value); } - public int PatchVersion - { get => Accessor.GetInt32("patch_version"); set => Accessor.SetInt32("patch_version", value); } + public int PatchVersion { get => Accessor.GetInt32("patch_version"); set => Accessor.SetInt32("patch_version", value); } - public string ServerName - { get => Accessor.GetString("server_name"); set => Accessor.SetString("server_name", value); } + public string ServerName { get => Accessor.GetString("server_name"); set => Accessor.SetString("server_name", value); } - public string ClientName - { get => Accessor.GetString("client_name"); set => Accessor.SetString("client_name", value); } + public string ClientName { get => Accessor.GetString("client_name"); set => Accessor.SetString("client_name", value); } - public string MapName - { get => Accessor.GetString("map_name"); set => Accessor.SetString("map_name", value); } + public string MapName { get => Accessor.GetString("map_name"); set => Accessor.SetString("map_name", value); } - public string GameDirectory - { get => Accessor.GetString("game_directory"); set => Accessor.SetString("game_directory", value); } + public string GameDirectory { get => Accessor.GetString("game_directory"); set => Accessor.SetString("game_directory", value); } - public int FullpacketsVersion - { get => Accessor.GetInt32("fullpackets_version"); set => Accessor.SetInt32("fullpackets_version", value); } + public int FullpacketsVersion { get => Accessor.GetInt32("fullpackets_version"); set => Accessor.SetInt32("fullpackets_version", value); } - public bool AllowClientsideEntities - { get => Accessor.GetBool("allow_clientside_entities"); set => Accessor.SetBool("allow_clientside_entities", value); } + public bool AllowClientsideEntities { get => Accessor.GetBool("allow_clientside_entities"); set => Accessor.SetBool("allow_clientside_entities", value); } - public bool AllowClientsideParticles - { get => Accessor.GetBool("allow_clientside_particles"); set => Accessor.SetBool("allow_clientside_particles", value); } + public bool AllowClientsideParticles { get => Accessor.GetBool("allow_clientside_particles"); set => Accessor.SetBool("allow_clientside_particles", value); } - public string Addons - { get => Accessor.GetString("addons"); set => Accessor.SetString("addons", value); } + public string Addons { get => Accessor.GetString("addons"); set => Accessor.SetString("addons", value); } - public string DemoVersionName - { get => Accessor.GetString("demo_version_name"); set => Accessor.SetString("demo_version_name", value); } + public string DemoVersionName { get => Accessor.GetString("demo_version_name"); set => Accessor.SetString("demo_version_name", value); } - public string DemoVersionGuid - { get => Accessor.GetString("demo_version_guid"); set => Accessor.SetString("demo_version_guid", value); } + public string DemoVersionGuid { get => Accessor.GetString("demo_version_guid"); set => Accessor.SetString("demo_version_guid", value); } - public int BuildNum - { get => Accessor.GetInt32("build_num"); set => Accessor.SetInt32("build_num", value); } + public int BuildNum { get => Accessor.GetInt32("build_num"); set => Accessor.SetInt32("build_num", value); } - public string Game - { get => Accessor.GetString("game"); set => Accessor.SetString("game", value); } + public string Game { get => Accessor.GetString("game"); set => Accessor.SetString("game", value); } - public int ServerStartTick - { get => Accessor.GetInt32("server_start_tick"); set => Accessor.SetInt32("server_start_tick", value); } + public int ServerStartTick { get => Accessor.GetInt32("server_start_tick"); set => Accessor.SetInt32("server_start_tick", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoFileInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoFileInfoImpl.cs index 88ef6a71d..f3c9d5559 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoFileInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoFileInfoImpl.cs @@ -1,32 +1,26 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoFileInfoImpl : TypedProtobuf, CDemoFileInfo { - public CDemoFileInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoFileInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float PlaybackTime - { get => Accessor.GetFloat("playback_time"); set => Accessor.SetFloat("playback_time", value); } + public float PlaybackTime { get => Accessor.GetFloat("playback_time"); set => Accessor.SetFloat("playback_time", value); } - public int PlaybackTicks - { get => Accessor.GetInt32("playback_ticks"); set => Accessor.SetInt32("playback_ticks", value); } + public int PlaybackTicks { get => Accessor.GetInt32("playback_ticks"); set => Accessor.SetInt32("playback_ticks", value); } - public int PlaybackFrames - { get => Accessor.GetInt32("playback_frames"); set => Accessor.SetInt32("playback_frames", value); } + public int PlaybackFrames { get => Accessor.GetInt32("playback_frames"); set => Accessor.SetInt32("playback_frames", value); } - public CGameInfo GameInfo - { get => new CGameInfoImpl(NativeNetMessages.GetNestedMessage(Address, "game_info"), false); } + public CGameInfo GameInfo { get => new CGameInfoImpl(NativeNetMessages.GetNestedMessage(Address, "game_info"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoFullPacketImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoFullPacketImpl.cs index 5dee460d4..ca7b3766f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoFullPacketImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoFullPacketImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoFullPacketImpl : TypedProtobuf, CDemoFullPacket { - public CDemoFullPacketImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoFullPacketImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CDemoStringTables StringTable - { get => new CDemoStringTablesImpl(NativeNetMessages.GetNestedMessage(Address, "string_table"), false); } + public CDemoStringTables StringTable { get => new CDemoStringTablesImpl(NativeNetMessages.GetNestedMessage(Address, "string_table"), false); } - public CDemoPacket Packet - { get => new CDemoPacketImpl(NativeNetMessages.GetNestedMessage(Address, "packet"), false); } + public CDemoPacket Packet { get => new CDemoPacketImpl(NativeNetMessages.GetNestedMessage(Address, "packet"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoPacketImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoPacketImpl.cs index 6ddb6af42..dc2a4af99 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoPacketImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoPacketImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoPacketImpl : TypedProtobuf, CDemoPacket { - public CDemoPacketImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoPacketImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoRecoveryImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoRecoveryImpl.cs index 5e54619b4..c7d467e42 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoRecoveryImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoRecoveryImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoRecoveryImpl : TypedProtobuf, CDemoRecovery { - public CDemoRecoveryImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoRecoveryImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CDemoRecovery_DemoInitialSpawnGroupEntry InitialSpawnGroup - { get => new CDemoRecovery_DemoInitialSpawnGroupEntryImpl(NativeNetMessages.GetNestedMessage(Address, "initial_spawn_group"), false); } + public CDemoRecovery_DemoInitialSpawnGroupEntry InitialSpawnGroup { get => new CDemoRecovery_DemoInitialSpawnGroupEntryImpl(NativeNetMessages.GetNestedMessage(Address, "initial_spawn_group"), false); } - public byte[] SpawnGroupMessage - { get => Accessor.GetBytes("spawn_group_message"); set => Accessor.SetBytes("spawn_group_message", value); } + public byte[] SpawnGroupMessage { get => Accessor.GetBytes("spawn_group_message"); set => Accessor.SetBytes("spawn_group_message", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoRecovery_DemoInitialSpawnGroupEntryImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoRecovery_DemoInitialSpawnGroupEntryImpl.cs index 48cb559e8..23d191e13 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoRecovery_DemoInitialSpawnGroupEntryImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoRecovery_DemoInitialSpawnGroupEntryImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoRecovery_DemoInitialSpawnGroupEntryImpl : TypedProtobuf, CDemoRecovery_DemoInitialSpawnGroupEntry { - public CDemoRecovery_DemoInitialSpawnGroupEntryImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoRecovery_DemoInitialSpawnGroupEntryImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Spawngrouphandle - { get => Accessor.GetUInt32("spawngrouphandle"); set => Accessor.SetUInt32("spawngrouphandle", value); } + public uint Spawngrouphandle { get => Accessor.GetUInt32("spawngrouphandle"); set => Accessor.SetUInt32("spawngrouphandle", value); } - public bool WasCreated - { get => Accessor.GetBool("was_created"); set => Accessor.SetBool("was_created", value); } + public bool WasCreated { get => Accessor.GetBool("was_created"); set => Accessor.SetBool("was_created", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSaveGameImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSaveGameImpl.cs index b6887a917..b2c902666 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSaveGameImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSaveGameImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoSaveGameImpl : TypedProtobuf, CDemoSaveGame { - public CDemoSaveGameImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoSaveGameImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } - public ulong SteamId - { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } + public ulong SteamId { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } - public ulong Signature - { get => Accessor.GetUInt64("signature"); set => Accessor.SetUInt64("signature", value); } + public ulong Signature { get => Accessor.GetUInt64("signature"); set => Accessor.SetUInt64("signature", value); } - public int Version - { get => Accessor.GetInt32("version"); set => Accessor.SetInt32("version", value); } + public int Version { get => Accessor.GetInt32("version"); set => Accessor.SetInt32("version", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSendTablesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSendTablesImpl.cs index ec0c5d329..95fb9cbf6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSendTablesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSendTablesImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoSendTablesImpl : TypedProtobuf, CDemoSendTables { - public CDemoSendTablesImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoSendTablesImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSpawnGroupsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSpawnGroupsImpl.cs index e649cfa6f..16a398f8b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSpawnGroupsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSpawnGroupsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoSpawnGroupsImpl : TypedProtobuf, CDemoSpawnGroups { - public CDemoSpawnGroupsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoSpawnGroupsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldValueType Msgs - { get => new ProtobufRepeatedFieldValueType(Accessor, "msgs"); } + public IProtobufRepeatedFieldValueType Msgs { get => new ProtobufRepeatedFieldValueType(Accessor, "msgs"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStopImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStopImpl.cs index 9cf7b7dde..6023b3e30 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStopImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStopImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoStopImpl : TypedProtobuf, CDemoStop { - public CDemoStopImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoStopImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStringTablesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStringTablesImpl.cs index 7364ca609..daea899eb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStringTablesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStringTablesImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoStringTablesImpl : TypedProtobuf, CDemoStringTables { - public CDemoStringTablesImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoStringTablesImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Tables - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "tables"); } + public IProtobufRepeatedFieldSubMessageType Tables { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "tables"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStringTables_items_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStringTables_items_tImpl.cs index 5a355a5c8..beb6d4e6e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStringTables_items_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStringTables_items_tImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoStringTables_items_tImpl : TypedProtobuf, CDemoStringTables_items_t { - public CDemoStringTables_items_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoStringTables_items_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Str - { get => Accessor.GetString("str"); set => Accessor.SetString("str", value); } + public string Str { get => Accessor.GetString("str"); set => Accessor.SetString("str", value); } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStringTables_table_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStringTables_table_tImpl.cs index b3ffef42e..7c0204baa 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStringTables_table_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoStringTables_table_tImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoStringTables_table_tImpl : TypedProtobuf, CDemoStringTables_table_t { - public CDemoStringTables_table_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoStringTables_table_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string TableName - { get => Accessor.GetString("table_name"); set => Accessor.SetString("table_name", value); } + public string TableName { get => Accessor.GetString("table_name"); set => Accessor.SetString("table_name", value); } - public IProtobufRepeatedFieldSubMessageType Items - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "items"); } + public IProtobufRepeatedFieldSubMessageType Items { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "items"); } - public IProtobufRepeatedFieldSubMessageType ItemsClientside - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "items_clientside"); } + public IProtobufRepeatedFieldSubMessageType ItemsClientside { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "items_clientside"); } - public int TableFlags - { get => Accessor.GetInt32("table_flags"); set => Accessor.SetInt32("table_flags", value); } + public int TableFlags { get => Accessor.GetInt32("table_flags"); set => Accessor.SetInt32("table_flags", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSyncTickImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSyncTickImpl.cs index 1913fe56a..590637a14 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSyncTickImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoSyncTickImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoSyncTickImpl : TypedProtobuf, CDemoSyncTick { - public CDemoSyncTickImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoSyncTickImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoUserCmdImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoUserCmdImpl.cs index 7ba873d3c..a6a8f8ea1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoUserCmdImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CDemoUserCmdImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CDemoUserCmdImpl : TypedProtobuf, CDemoUserCmd { - public CDemoUserCmdImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CDemoUserCmdImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int CmdNumber - { get => Accessor.GetInt32("cmd_number"); set => Accessor.SetInt32("cmd_number", value); } + public int CmdNumber { get => Accessor.GetInt32("cmd_number"); set => Accessor.SetInt32("cmd_number", value); } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEconItemPreviewDataBlockImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEconItemPreviewDataBlockImpl.cs index 9c404ac95..d226f2fa7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEconItemPreviewDataBlockImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEconItemPreviewDataBlockImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,100 +6,77 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CEconItemPreviewDataBlockImpl : TypedProtobuf, CEconItemPreviewDataBlock { - public CEconItemPreviewDataBlockImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CEconItemPreviewDataBlockImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public ulong Itemid - { get => Accessor.GetUInt64("itemid"); set => Accessor.SetUInt64("itemid", value); } + public ulong Itemid { get => Accessor.GetUInt64("itemid"); set => Accessor.SetUInt64("itemid", value); } - public uint Defindex - { get => Accessor.GetUInt32("defindex"); set => Accessor.SetUInt32("defindex", value); } + public uint Defindex { get => Accessor.GetUInt32("defindex"); set => Accessor.SetUInt32("defindex", value); } - public uint Paintindex - { get => Accessor.GetUInt32("paintindex"); set => Accessor.SetUInt32("paintindex", value); } + public uint Paintindex { get => Accessor.GetUInt32("paintindex"); set => Accessor.SetUInt32("paintindex", value); } - public uint Rarity - { get => Accessor.GetUInt32("rarity"); set => Accessor.SetUInt32("rarity", value); } + public uint Rarity { get => Accessor.GetUInt32("rarity"); set => Accessor.SetUInt32("rarity", value); } - public uint Quality - { get => Accessor.GetUInt32("quality"); set => Accessor.SetUInt32("quality", value); } + public uint Quality { get => Accessor.GetUInt32("quality"); set => Accessor.SetUInt32("quality", value); } - public uint Paintwear - { get => Accessor.GetUInt32("paintwear"); set => Accessor.SetUInt32("paintwear", value); } + public uint Paintwear { get => Accessor.GetUInt32("paintwear"); set => Accessor.SetUInt32("paintwear", value); } - public uint Paintseed - { get => Accessor.GetUInt32("paintseed"); set => Accessor.SetUInt32("paintseed", value); } + public uint Paintseed { get => Accessor.GetUInt32("paintseed"); set => Accessor.SetUInt32("paintseed", value); } - public uint Killeaterscoretype - { get => Accessor.GetUInt32("killeaterscoretype"); set => Accessor.SetUInt32("killeaterscoretype", value); } + public uint Killeaterscoretype { get => Accessor.GetUInt32("killeaterscoretype"); set => Accessor.SetUInt32("killeaterscoretype", value); } - public uint Killeatervalue - { get => Accessor.GetUInt32("killeatervalue"); set => Accessor.SetUInt32("killeatervalue", value); } + public uint Killeatervalue { get => Accessor.GetUInt32("killeatervalue"); set => Accessor.SetUInt32("killeatervalue", value); } - public string Customname - { get => Accessor.GetString("customname"); set => Accessor.SetString("customname", value); } + public string Customname { get => Accessor.GetString("customname"); set => Accessor.SetString("customname", value); } - public IProtobufRepeatedFieldSubMessageType Stickers - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "stickers"); } + public IProtobufRepeatedFieldSubMessageType Stickers { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "stickers"); } - public uint Inventory - { get => Accessor.GetUInt32("inventory"); set => Accessor.SetUInt32("inventory", value); } + public uint Inventory { get => Accessor.GetUInt32("inventory"); set => Accessor.SetUInt32("inventory", value); } - public uint Origin - { get => Accessor.GetUInt32("origin"); set => Accessor.SetUInt32("origin", value); } + public uint Origin { get => Accessor.GetUInt32("origin"); set => Accessor.SetUInt32("origin", value); } - public uint Questid - { get => Accessor.GetUInt32("questid"); set => Accessor.SetUInt32("questid", value); } + public uint Questid { get => Accessor.GetUInt32("questid"); set => Accessor.SetUInt32("questid", value); } - public uint Dropreason - { get => Accessor.GetUInt32("dropreason"); set => Accessor.SetUInt32("dropreason", value); } + public uint Dropreason { get => Accessor.GetUInt32("dropreason"); set => Accessor.SetUInt32("dropreason", value); } - public uint Musicindex - { get => Accessor.GetUInt32("musicindex"); set => Accessor.SetUInt32("musicindex", value); } + public uint Musicindex { get => Accessor.GetUInt32("musicindex"); set => Accessor.SetUInt32("musicindex", value); } - public int Entindex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + public int Entindex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } - public uint Petindex - { get => Accessor.GetUInt32("petindex"); set => Accessor.SetUInt32("petindex", value); } + public uint Petindex { get => Accessor.GetUInt32("petindex"); set => Accessor.SetUInt32("petindex", value); } - public IProtobufRepeatedFieldSubMessageType Keychains - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "keychains"); } + public IProtobufRepeatedFieldSubMessageType Keychains { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "keychains"); } - public uint Style - { get => Accessor.GetUInt32("style"); set => Accessor.SetUInt32("style", value); } + public uint Style { get => Accessor.GetUInt32("style"); set => Accessor.SetUInt32("style", value); } - public IProtobufRepeatedFieldSubMessageType Variations - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "variations"); } + public IProtobufRepeatedFieldSubMessageType Variations { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "variations"); } - public uint UpgradeLevel - { get => Accessor.GetUInt32("upgrade_level"); set => Accessor.SetUInt32("upgrade_level", value); } + public uint UpgradeLevel { get => Accessor.GetUInt32("upgrade_level"); set => Accessor.SetUInt32("upgrade_level", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEconItemPreviewDataBlock_StickerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEconItemPreviewDataBlock_StickerImpl.cs index 378af5faa..1dccf0077 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEconItemPreviewDataBlock_StickerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEconItemPreviewDataBlock_StickerImpl.cs @@ -1,64 +1,48 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CEconItemPreviewDataBlock_StickerImpl : TypedProtobuf, CEconItemPreviewDataBlock_Sticker { - public CEconItemPreviewDataBlock_StickerImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CEconItemPreviewDataBlock_StickerImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Slot - { get => Accessor.GetUInt32("slot"); set => Accessor.SetUInt32("slot", value); } + public uint Slot { get => Accessor.GetUInt32("slot"); set => Accessor.SetUInt32("slot", value); } - public uint StickerId - { get => Accessor.GetUInt32("sticker_id"); set => Accessor.SetUInt32("sticker_id", value); } + public uint StickerId { get => Accessor.GetUInt32("sticker_id"); set => Accessor.SetUInt32("sticker_id", value); } - public float Wear - { get => Accessor.GetFloat("wear"); set => Accessor.SetFloat("wear", value); } + public float Wear { get => Accessor.GetFloat("wear"); set => Accessor.SetFloat("wear", value); } - public float Scale - { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } + public float Scale { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } - public float Rotation - { get => Accessor.GetFloat("rotation"); set => Accessor.SetFloat("rotation", value); } + public float Rotation { get => Accessor.GetFloat("rotation"); set => Accessor.SetFloat("rotation", value); } - public uint TintId - { get => Accessor.GetUInt32("tint_id"); set => Accessor.SetUInt32("tint_id", value); } + public uint TintId { get => Accessor.GetUInt32("tint_id"); set => Accessor.SetUInt32("tint_id", value); } - public float OffsetX - { get => Accessor.GetFloat("offset_x"); set => Accessor.SetFloat("offset_x", value); } + public float OffsetX { get => Accessor.GetFloat("offset_x"); set => Accessor.SetFloat("offset_x", value); } - public float OffsetY - { get => Accessor.GetFloat("offset_y"); set => Accessor.SetFloat("offset_y", value); } + public float OffsetY { get => Accessor.GetFloat("offset_y"); set => Accessor.SetFloat("offset_y", value); } - public float OffsetZ - { get => Accessor.GetFloat("offset_z"); set => Accessor.SetFloat("offset_z", value); } + public float OffsetZ { get => Accessor.GetFloat("offset_z"); set => Accessor.SetFloat("offset_z", value); } - public uint Pattern - { get => Accessor.GetUInt32("pattern"); set => Accessor.SetUInt32("pattern", value); } + public uint Pattern { get => Accessor.GetUInt32("pattern"); set => Accessor.SetUInt32("pattern", value); } - public uint HighlightReel - { get => Accessor.GetUInt32("highlight_reel"); set => Accessor.SetUInt32("highlight_reel", value); } + public uint HighlightReel { get => Accessor.GetUInt32("highlight_reel"); set => Accessor.SetUInt32("highlight_reel", value); } - public uint WrappedSticker - { get => Accessor.GetUInt32("wrapped_sticker"); set => Accessor.SetUInt32("wrapped_sticker", value); } + public uint WrappedSticker { get => Accessor.GetUInt32("wrapped_sticker"); set => Accessor.SetUInt32("wrapped_sticker", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEngineGotvSyncPacketImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEngineGotvSyncPacketImpl.cs index ad084da64..2c32cb7a8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEngineGotvSyncPacketImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEngineGotvSyncPacketImpl.cs @@ -1,56 +1,42 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CEngineGotvSyncPacketImpl : TypedProtobuf, CEngineGotvSyncPacket { - public CEngineGotvSyncPacketImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CEngineGotvSyncPacketImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong MatchId - { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } + public ulong MatchId { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } - public uint InstanceId - { get => Accessor.GetUInt32("instance_id"); set => Accessor.SetUInt32("instance_id", value); } + public uint InstanceId { get => Accessor.GetUInt32("instance_id"); set => Accessor.SetUInt32("instance_id", value); } - public uint Signupfragment - { get => Accessor.GetUInt32("signupfragment"); set => Accessor.SetUInt32("signupfragment", value); } + public uint Signupfragment { get => Accessor.GetUInt32("signupfragment"); set => Accessor.SetUInt32("signupfragment", value); } - public uint Currentfragment - { get => Accessor.GetUInt32("currentfragment"); set => Accessor.SetUInt32("currentfragment", value); } + public uint Currentfragment { get => Accessor.GetUInt32("currentfragment"); set => Accessor.SetUInt32("currentfragment", value); } - public float Tickrate - { get => Accessor.GetFloat("tickrate"); set => Accessor.SetFloat("tickrate", value); } + public float Tickrate { get => Accessor.GetFloat("tickrate"); set => Accessor.SetFloat("tickrate", value); } - public uint Tick - { get => Accessor.GetUInt32("tick"); set => Accessor.SetUInt32("tick", value); } + public uint Tick { get => Accessor.GetUInt32("tick"); set => Accessor.SetUInt32("tick", value); } - public float Rtdelay - { get => Accessor.GetFloat("rtdelay"); set => Accessor.SetFloat("rtdelay", value); } + public float Rtdelay { get => Accessor.GetFloat("rtdelay"); set => Accessor.SetFloat("rtdelay", value); } - public float Rcvage - { get => Accessor.GetFloat("rcvage"); set => Accessor.SetFloat("rcvage", value); } + public float Rcvage { get => Accessor.GetFloat("rcvage"); set => Accessor.SetFloat("rcvage", value); } - public float KeyframeInterval - { get => Accessor.GetFloat("keyframe_interval"); set => Accessor.SetFloat("keyframe_interval", value); } + public float KeyframeInterval { get => Accessor.GetFloat("keyframe_interval"); set => Accessor.SetFloat("keyframe_interval", value); } - public uint Cdndelay - { get => Accessor.GetUInt32("cdndelay"); set => Accessor.SetUInt32("cdndelay", value); } + public uint Cdndelay { get => Accessor.GetUInt32("cdndelay"); set => Accessor.SetUInt32("cdndelay", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageDoSparkImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageDoSparkImpl.cs index 1f601ea79..2bd436bdc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageDoSparkImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageDoSparkImpl.cs @@ -2,47 +2,38 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CEntityMessageDoSparkImpl : TypedProtobuf, CEntityMessageDoSpark { - public CEntityMessageDoSparkImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CEntityMessageDoSparkImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public int Entityindex - { get => Accessor.GetInt32("entityindex"); set => Accessor.SetInt32("entityindex", value); } + public int Entityindex { get => Accessor.GetInt32("entityindex"); set => Accessor.SetInt32("entityindex", value); } - public float Radius - { get => Accessor.GetFloat("radius"); set => Accessor.SetFloat("radius", value); } + public float Radius { get => Accessor.GetFloat("radius"); set => Accessor.SetFloat("radius", value); } - public uint Color - { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } + public uint Color { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } - public uint Beams - { get => Accessor.GetUInt32("beams"); set => Accessor.SetUInt32("beams", value); } + public uint Beams { get => Accessor.GetUInt32("beams"); set => Accessor.SetUInt32("beams", value); } - public float Thick - { get => Accessor.GetFloat("thick"); set => Accessor.SetFloat("thick", value); } + public float Thick { get => Accessor.GetFloat("thick"); set => Accessor.SetFloat("thick", value); } - public float Duration - { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } + public float Duration { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } - public CEntityMsg EntityMsg - { get => new CEntityMsgImpl(NativeNetMessages.GetNestedMessage(Address, "entity_msg"), false); } + public CEntityMsg EntityMsg { get => new CEntityMsgImpl(NativeNetMessages.GetNestedMessage(Address, "entity_msg"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageFixAngleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageFixAngleImpl.cs index e4503be94..cbd64c34b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageFixAngleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageFixAngleImpl.cs @@ -2,27 +2,23 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CEntityMessageFixAngleImpl : TypedProtobuf, CEntityMessageFixAngle { - public CEntityMessageFixAngleImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CEntityMessageFixAngleImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool Relative - { get => Accessor.GetBool("relative"); set => Accessor.SetBool("relative", value); } + public bool Relative { get => Accessor.GetBool("relative"); set => Accessor.SetBool("relative", value); } - public QAngle Angle - { get => Accessor.GetQAngle("angle"); set => Accessor.SetQAngle("angle", value); } + public QAngle Angle { get => Accessor.GetQAngle("angle"); set => Accessor.SetQAngle("angle", value); } - public CEntityMsg EntityMsg - { get => new CEntityMsgImpl(NativeNetMessages.GetNestedMessage(Address, "entity_msg"), false); } + public CEntityMsg EntityMsg { get => new CEntityMsgImpl(NativeNetMessages.GetNestedMessage(Address, "entity_msg"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessagePlayJingleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessagePlayJingleImpl.cs index ea3cccf73..f7c39a245 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessagePlayJingleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessagePlayJingleImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CEntityMessagePlayJingleImpl : TypedProtobuf, CEntityMessagePlayJingle { - public CEntityMessagePlayJingleImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CEntityMessagePlayJingleImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CEntityMsg EntityMsg - { get => new CEntityMsgImpl(NativeNetMessages.GetNestedMessage(Address, "entity_msg"), false); } + public CEntityMsg EntityMsg { get => new CEntityMsgImpl(NativeNetMessages.GetNestedMessage(Address, "entity_msg"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessagePropagateForceImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessagePropagateForceImpl.cs index 9a0fd002f..e4bc147da 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessagePropagateForceImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessagePropagateForceImpl.cs @@ -2,23 +2,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CEntityMessagePropagateForceImpl : TypedProtobuf, CEntityMessagePropagateForce { - public CEntityMessagePropagateForceImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CEntityMessagePropagateForceImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public Vector Impulse - { get => Accessor.GetVector("impulse"); set => Accessor.SetVector("impulse", value); } + public Vector Impulse { get => Accessor.GetVector("impulse"); set => Accessor.SetVector("impulse", value); } - public CEntityMsg EntityMsg - { get => new CEntityMsgImpl(NativeNetMessages.GetNestedMessage(Address, "entity_msg"), false); } + public CEntityMsg EntityMsg { get => new CEntityMsgImpl(NativeNetMessages.GetNestedMessage(Address, "entity_msg"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageRemoveAllDecalsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageRemoveAllDecalsImpl.cs index e65c5ef6e..85613b27c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageRemoveAllDecalsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageRemoveAllDecalsImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CEntityMessageRemoveAllDecalsImpl : TypedProtobuf, CEntityMessageRemoveAllDecals { - public CEntityMessageRemoveAllDecalsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CEntityMessageRemoveAllDecalsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool RemoveDecals - { get => Accessor.GetBool("remove_decals"); set => Accessor.SetBool("remove_decals", value); } + public bool RemoveDecals { get => Accessor.GetBool("remove_decals"); set => Accessor.SetBool("remove_decals", value); } - public CEntityMsg EntityMsg - { get => new CEntityMsgImpl(NativeNetMessages.GetNestedMessage(Address, "entity_msg"), false); } + public CEntityMsg EntityMsg { get => new CEntityMsgImpl(NativeNetMessages.GetNestedMessage(Address, "entity_msg"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageScreenOverlayImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageScreenOverlayImpl.cs index b5346d270..a9aff7680 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageScreenOverlayImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMessageScreenOverlayImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CEntityMessageScreenOverlayImpl : TypedProtobuf, CEntityMessageScreenOverlay { - public CEntityMessageScreenOverlayImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CEntityMessageScreenOverlayImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool StartEffect - { get => Accessor.GetBool("start_effect"); set => Accessor.SetBool("start_effect", value); } + public bool StartEffect { get => Accessor.GetBool("start_effect"); set => Accessor.SetBool("start_effect", value); } - public CEntityMsg EntityMsg - { get => new CEntityMsgImpl(NativeNetMessages.GetNestedMessage(Address, "entity_msg"), false); } + public CEntityMsg EntityMsg { get => new CEntityMsgImpl(NativeNetMessages.GetNestedMessage(Address, "entity_msg"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMsgImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMsgImpl.cs index 6a169873c..78d0ee92c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMsgImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CEntityMsgImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CEntityMsgImpl : TypedProtobuf, CEntityMsg { - public CEntityMsgImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CEntityMsgImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint TargetEntity - { get => Accessor.GetUInt32("target_entity"); set => Accessor.SetUInt32("target_entity", value); } + public uint TargetEntity { get => Accessor.GetUInt32("target_entity"); set => Accessor.SetUInt32("target_entity", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCStorePurchaseInit_LineItemImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCStorePurchaseInit_LineItemImpl.cs index 65bc6c7aa..f4af2fcf8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCStorePurchaseInit_LineItemImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCStorePurchaseInit_LineItemImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGCStorePurchaseInit_LineItemImpl : TypedProtobuf, CGCStorePurchaseInit_LineItem { - public CGCStorePurchaseInit_LineItemImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGCStorePurchaseInit_LineItemImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ItemDefId - { get => Accessor.GetUInt32("item_def_id"); set => Accessor.SetUInt32("item_def_id", value); } + public uint ItemDefId { get => Accessor.GetUInt32("item_def_id"); set => Accessor.SetUInt32("item_def_id", value); } - public uint Quantity - { get => Accessor.GetUInt32("quantity"); set => Accessor.SetUInt32("quantity", value); } + public uint Quantity { get => Accessor.GetUInt32("quantity"); set => Accessor.SetUInt32("quantity", value); } - public ulong CostInLocalCurrency - { get => Accessor.GetUInt64("cost_in_local_currency"); set => Accessor.SetUInt64("cost_in_local_currency", value); } + public ulong CostInLocalCurrency { get => Accessor.GetUInt64("cost_in_local_currency"); set => Accessor.SetUInt64("cost_in_local_currency", value); } - public uint PurchaseType - { get => Accessor.GetUInt32("purchase_type"); set => Accessor.SetUInt32("purchase_type", value); } + public uint PurchaseType { get => Accessor.GetUInt32("purchase_type"); set => Accessor.SetUInt32("purchase_type", value); } - public ulong SupplementalData - { get => Accessor.GetUInt64("supplemental_data"); set => Accessor.SetUInt64("supplemental_data", value); } + public ulong SupplementalData { get => Accessor.GetUInt64("supplemental_data"); set => Accessor.SetUInt64("supplemental_data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgMasterAckImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgMasterAckImpl.cs index 0ac560e23..8b7c862ab 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgMasterAckImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgMasterAckImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGCToGCMsgMasterAckImpl : TypedProtobuf, CGCToGCMsgMasterAck { - public CGCToGCMsgMasterAckImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGCToGCMsgMasterAckImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint DirIndex - { get => Accessor.GetUInt32("dir_index"); set => Accessor.SetUInt32("dir_index", value); } + public uint DirIndex { get => Accessor.GetUInt32("dir_index"); set => Accessor.SetUInt32("dir_index", value); } - public uint GcType - { get => Accessor.GetUInt32("gc_type"); set => Accessor.SetUInt32("gc_type", value); } + public uint GcType { get => Accessor.GetUInt32("gc_type"); set => Accessor.SetUInt32("gc_type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgMasterAck_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgMasterAck_ResponseImpl.cs index b99ef84d4..09f9880cd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgMasterAck_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgMasterAck_ResponseImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGCToGCMsgMasterAck_ResponseImpl : TypedProtobuf, CGCToGCMsgMasterAck_Response { - public CGCToGCMsgMasterAck_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGCToGCMsgMasterAck_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Eresult - { get => Accessor.GetInt32("eresult"); set => Accessor.SetInt32("eresult", value); } + public int Eresult { get => Accessor.GetInt32("eresult"); set => Accessor.SetInt32("eresult", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgMasterStartupCompleteImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgMasterStartupCompleteImpl.cs index f73779d82..e0ac2d515 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgMasterStartupCompleteImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgMasterStartupCompleteImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGCToGCMsgMasterStartupCompleteImpl : TypedProtobuf, CGCToGCMsgMasterStartupComplete { - public CGCToGCMsgMasterStartupCompleteImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGCToGCMsgMasterStartupCompleteImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgRoutedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgRoutedImpl.cs index 3bc35264d..065b612d7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgRoutedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgRoutedImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGCToGCMsgRoutedImpl : TypedProtobuf, CGCToGCMsgRouted { - public CGCToGCMsgRoutedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGCToGCMsgRoutedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint MsgType - { get => Accessor.GetUInt32("msg_type"); set => Accessor.SetUInt32("msg_type", value); } + public uint MsgType { get => Accessor.GetUInt32("msg_type"); set => Accessor.SetUInt32("msg_type", value); } - public ulong SenderId - { get => Accessor.GetUInt64("sender_id"); set => Accessor.SetUInt64("sender_id", value); } + public ulong SenderId { get => Accessor.GetUInt64("sender_id"); set => Accessor.SetUInt64("sender_id", value); } - public byte[] NetMessage - { get => Accessor.GetBytes("net_message"); set => Accessor.SetBytes("net_message", value); } + public byte[] NetMessage { get => Accessor.GetBytes("net_message"); set => Accessor.SetBytes("net_message", value); } - public uint Ip - { get => Accessor.GetUInt32("ip"); set => Accessor.SetUInt32("ip", value); } + public uint Ip { get => Accessor.GetUInt32("ip"); set => Accessor.SetUInt32("ip", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgRoutedReplyImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgRoutedReplyImpl.cs index 67272b579..2342c82b6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgRoutedReplyImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGCToGCMsgRoutedReplyImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGCToGCMsgRoutedReplyImpl : TypedProtobuf, CGCToGCMsgRoutedReply { - public CGCToGCMsgRoutedReplyImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGCToGCMsgRoutedReplyImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint MsgType - { get => Accessor.GetUInt32("msg_type"); set => Accessor.SetUInt32("msg_type", value); } + public uint MsgType { get => Accessor.GetUInt32("msg_type"); set => Accessor.SetUInt32("msg_type", value); } - public byte[] NetMessage - { get => Accessor.GetBytes("net_message"); set => Accessor.SetBytes("net_message", value); } + public byte[] NetMessage { get => Accessor.GetBytes("net_message"); set => Accessor.SetBytes("net_message", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfoImpl.cs index 6bca46a68..545c73592 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfoImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGameInfoImpl : TypedProtobuf, CGameInfo { - public CGameInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGameInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CGameInfo_CDotaGameInfo Dota - { get => new CGameInfo_CDotaGameInfoImpl(NativeNetMessages.GetNestedMessage(Address, "dota"), false); } + public CGameInfo_CDotaGameInfo Dota { get => new CGameInfo_CDotaGameInfoImpl(NativeNetMessages.GetNestedMessage(Address, "dota"), false); } - public CGameInfo_CCSGameInfo Cs - { get => new CGameInfo_CCSGameInfoImpl(NativeNetMessages.GetNestedMessage(Address, "cs"), false); } + public CGameInfo_CCSGameInfo Cs { get => new CGameInfo_CCSGameInfoImpl(NativeNetMessages.GetNestedMessage(Address, "cs"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CCSGameInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CCSGameInfoImpl.cs index 1ce811c7c..a29217252 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CCSGameInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CCSGameInfoImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGameInfo_CCSGameInfoImpl : TypedProtobuf, CGameInfo_CCSGameInfo { - public CGameInfo_CCSGameInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGameInfo_CCSGameInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldValueType RoundStartTicks - { get => new ProtobufRepeatedFieldValueType(Accessor, "round_start_ticks"); } + public IProtobufRepeatedFieldValueType RoundStartTicks { get => new ProtobufRepeatedFieldValueType(Accessor, "round_start_ticks"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CDotaGameInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CDotaGameInfoImpl.cs index 85510b85e..ba4de7bc5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CDotaGameInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CDotaGameInfoImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,52 +6,41 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGameInfo_CDotaGameInfoImpl : TypedProtobuf, CGameInfo_CDotaGameInfo { - public CGameInfo_CDotaGameInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGameInfo_CDotaGameInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong MatchId - { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } + public ulong MatchId { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } - public int GameMode - { get => Accessor.GetInt32("game_mode"); set => Accessor.SetInt32("game_mode", value); } + public int GameMode { get => Accessor.GetInt32("game_mode"); set => Accessor.SetInt32("game_mode", value); } - public int GameWinner - { get => Accessor.GetInt32("game_winner"); set => Accessor.SetInt32("game_winner", value); } + public int GameWinner { get => Accessor.GetInt32("game_winner"); set => Accessor.SetInt32("game_winner", value); } - public IProtobufRepeatedFieldSubMessageType PlayerInfo - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "player_info"); } + public IProtobufRepeatedFieldSubMessageType PlayerInfo { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "player_info"); } - public uint Leagueid - { get => Accessor.GetUInt32("leagueid"); set => Accessor.SetUInt32("leagueid", value); } + public uint Leagueid { get => Accessor.GetUInt32("leagueid"); set => Accessor.SetUInt32("leagueid", value); } - public IProtobufRepeatedFieldSubMessageType PicksBans - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "picks_bans"); } + public IProtobufRepeatedFieldSubMessageType PicksBans { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "picks_bans"); } - public uint RadiantTeamId - { get => Accessor.GetUInt32("radiant_team_id"); set => Accessor.SetUInt32("radiant_team_id", value); } + public uint RadiantTeamId { get => Accessor.GetUInt32("radiant_team_id"); set => Accessor.SetUInt32("radiant_team_id", value); } - public uint DireTeamId - { get => Accessor.GetUInt32("dire_team_id"); set => Accessor.SetUInt32("dire_team_id", value); } + public uint DireTeamId { get => Accessor.GetUInt32("dire_team_id"); set => Accessor.SetUInt32("dire_team_id", value); } - public string RadiantTeamTag - { get => Accessor.GetString("radiant_team_tag"); set => Accessor.SetString("radiant_team_tag", value); } + public string RadiantTeamTag { get => Accessor.GetString("radiant_team_tag"); set => Accessor.SetString("radiant_team_tag", value); } - public string DireTeamTag - { get => Accessor.GetString("dire_team_tag"); set => Accessor.SetString("dire_team_tag", value); } + public string DireTeamTag { get => Accessor.GetString("dire_team_tag"); set => Accessor.SetString("dire_team_tag", value); } - public uint EndTime - { get => Accessor.GetUInt32("end_time"); set => Accessor.SetUInt32("end_time", value); } + public uint EndTime { get => Accessor.GetUInt32("end_time"); set => Accessor.SetUInt32("end_time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CDotaGameInfo_CHeroSelectEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CDotaGameInfo_CHeroSelectEventImpl.cs index b0398e0f9..6addd63c5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CDotaGameInfo_CHeroSelectEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CDotaGameInfo_CHeroSelectEventImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGameInfo_CDotaGameInfo_CHeroSelectEventImpl : TypedProtobuf, CGameInfo_CDotaGameInfo_CHeroSelectEvent { - public CGameInfo_CDotaGameInfo_CHeroSelectEventImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGameInfo_CDotaGameInfo_CHeroSelectEventImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool IsPick - { get => Accessor.GetBool("is_pick"); set => Accessor.SetBool("is_pick", value); } + public bool IsPick { get => Accessor.GetBool("is_pick"); set => Accessor.SetBool("is_pick", value); } - public uint Team - { get => Accessor.GetUInt32("team"); set => Accessor.SetUInt32("team", value); } + public uint Team { get => Accessor.GetUInt32("team"); set => Accessor.SetUInt32("team", value); } - public int HeroId - { get => Accessor.GetInt32("hero_id"); set => Accessor.SetInt32("hero_id", value); } + public int HeroId { get => Accessor.GetInt32("hero_id"); set => Accessor.SetInt32("hero_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CDotaGameInfo_CPlayerInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CDotaGameInfo_CPlayerInfoImpl.cs index d83a7831d..bbeae8359 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CDotaGameInfo_CPlayerInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameInfo_CDotaGameInfo_CPlayerInfoImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGameInfo_CDotaGameInfo_CPlayerInfoImpl : TypedProtobuf, CGameInfo_CDotaGameInfo_CPlayerInfo { - public CGameInfo_CDotaGameInfo_CPlayerInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGameInfo_CDotaGameInfo_CPlayerInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string HeroName - { get => Accessor.GetString("hero_name"); set => Accessor.SetString("hero_name", value); } + public string HeroName { get => Accessor.GetString("hero_name"); set => Accessor.SetString("hero_name", value); } - public string PlayerName - { get => Accessor.GetString("player_name"); set => Accessor.SetString("player_name", value); } + public string PlayerName { get => Accessor.GetString("player_name"); set => Accessor.SetString("player_name", value); } - public bool IsFakeClient - { get => Accessor.GetBool("is_fake_client"); set => Accessor.SetBool("is_fake_client", value); } + public bool IsFakeClient { get => Accessor.GetBool("is_fake_client"); set => Accessor.SetBool("is_fake_client", value); } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } - public int GameTeam - { get => Accessor.GetInt32("game_team"); set => Accessor.SetInt32("game_team", value); } + public int GameTeam { get => Accessor.GetInt32("game_team"); set => Accessor.SetInt32("game_team", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameServers_AggregationQuery_RequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameServers_AggregationQuery_RequestImpl.cs index cd893ed39..2e5cf0ab7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameServers_AggregationQuery_RequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameServers_AggregationQuery_RequestImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGameServers_AggregationQuery_RequestImpl : TypedProtobuf, CGameServers_AggregationQuery_Request { - public CGameServers_AggregationQuery_RequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGameServers_AggregationQuery_RequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Filter - { get => Accessor.GetString("filter"); set => Accessor.SetString("filter", value); } + public string Filter { get => Accessor.GetString("filter"); set => Accessor.SetString("filter", value); } - public IProtobufRepeatedFieldValueType GroupFields - { get => new ProtobufRepeatedFieldValueType(Accessor, "group_fields"); } + public IProtobufRepeatedFieldValueType GroupFields { get => new ProtobufRepeatedFieldValueType(Accessor, "group_fields"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameServers_AggregationQuery_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameServers_AggregationQuery_ResponseImpl.cs index 678374c23..91bc64033 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameServers_AggregationQuery_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameServers_AggregationQuery_ResponseImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGameServers_AggregationQuery_ResponseImpl : TypedProtobuf, CGameServers_AggregationQuery_Response { - public CGameServers_AggregationQuery_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGameServers_AggregationQuery_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Groups - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "groups"); } + public IProtobufRepeatedFieldSubMessageType Groups { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "groups"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameServers_AggregationQuery_Response_GroupImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameServers_AggregationQuery_Response_GroupImpl.cs index dd1fbaa0b..d044ddd91 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameServers_AggregationQuery_Response_GroupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CGameServers_AggregationQuery_Response_GroupImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,36 +6,29 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CGameServers_AggregationQuery_Response_GroupImpl : TypedProtobuf, CGameServers_AggregationQuery_Response_Group { - public CGameServers_AggregationQuery_Response_GroupImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CGameServers_AggregationQuery_Response_GroupImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldValueType GroupValues - { get => new ProtobufRepeatedFieldValueType(Accessor, "group_values"); } + public IProtobufRepeatedFieldValueType GroupValues { get => new ProtobufRepeatedFieldValueType(Accessor, "group_values"); } - public uint ServersEmpty - { get => Accessor.GetUInt32("servers_empty"); set => Accessor.SetUInt32("servers_empty", value); } + public uint ServersEmpty { get => Accessor.GetUInt32("servers_empty"); set => Accessor.SetUInt32("servers_empty", value); } - public uint ServersFull - { get => Accessor.GetUInt32("servers_full"); set => Accessor.SetUInt32("servers_full", value); } + public uint ServersFull { get => Accessor.GetUInt32("servers_full"); set => Accessor.SetUInt32("servers_full", value); } - public uint ServersTotal - { get => Accessor.GetUInt32("servers_total"); set => Accessor.SetUInt32("servers_total", value); } + public uint ServersTotal { get => Accessor.GetUInt32("servers_total"); set => Accessor.SetUInt32("servers_total", value); } - public uint PlayersHumans - { get => Accessor.GetUInt32("players_humans"); set => Accessor.SetUInt32("players_humans", value); } + public uint PlayersHumans { get => Accessor.GetUInt32("players_humans"); set => Accessor.SetUInt32("players_humans", value); } - public uint PlayersBots - { get => Accessor.GetUInt32("players_bots"); set => Accessor.SetUInt32("players_bots", value); } + public uint PlayersBots { get => Accessor.GetUInt32("players_bots"); set => Accessor.SetUInt32("players_bots", value); } - public uint PlayerCapacity - { get => Accessor.GetUInt32("player_capacity"); set => Accessor.SetUInt32("player_capacity", value); } + public uint PlayerCapacity { get => Accessor.GetUInt32("player_capacity"); set => Accessor.SetUInt32("player_capacity", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CInButtonStatePBImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CInButtonStatePBImpl.cs index f41f04a91..73bbb1e2c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CInButtonStatePBImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CInButtonStatePBImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CInButtonStatePBImpl : TypedProtobuf, CInButtonStatePB { - public CInButtonStatePBImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CInButtonStatePBImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Buttonstate1 - { get => Accessor.GetUInt64("buttonstate1"); set => Accessor.SetUInt64("buttonstate1", value); } + public ulong Buttonstate1 { get => Accessor.GetUInt64("buttonstate1"); set => Accessor.SetUInt64("buttonstate1", value); } - public ulong Buttonstate2 - { get => Accessor.GetUInt64("buttonstate2"); set => Accessor.SetUInt64("buttonstate2", value); } + public ulong Buttonstate2 { get => Accessor.GetUInt64("buttonstate2"); set => Accessor.SetUInt64("buttonstate2", value); } - public ulong Buttonstate3 - { get => Accessor.GetUInt64("buttonstate3"); set => Accessor.SetUInt64("buttonstate3", value); } + public ulong Buttonstate3 { get => Accessor.GetUInt64("buttonstate3"); set => Accessor.SetUInt64("buttonstate3", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAccountDetailsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAccountDetailsImpl.cs index 8bc25a01c..dbde08d4c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAccountDetailsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAccountDetailsImpl.cs @@ -1,88 +1,66 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgAccountDetailsImpl : TypedProtobuf, CMsgAccountDetails { - public CMsgAccountDetailsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgAccountDetailsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool Valid - { get => Accessor.GetBool("valid"); set => Accessor.SetBool("valid", value); } + public bool Valid { get => Accessor.GetBool("valid"); set => Accessor.SetBool("valid", value); } - public string AccountName - { get => Accessor.GetString("account_name"); set => Accessor.SetString("account_name", value); } + public string AccountName { get => Accessor.GetString("account_name"); set => Accessor.SetString("account_name", value); } - public bool PublicProfile - { get => Accessor.GetBool("public_profile"); set => Accessor.SetBool("public_profile", value); } + public bool PublicProfile { get => Accessor.GetBool("public_profile"); set => Accessor.SetBool("public_profile", value); } - public bool PublicInventory - { get => Accessor.GetBool("public_inventory"); set => Accessor.SetBool("public_inventory", value); } + public bool PublicInventory { get => Accessor.GetBool("public_inventory"); set => Accessor.SetBool("public_inventory", value); } - public bool VacBanned - { get => Accessor.GetBool("vac_banned"); set => Accessor.SetBool("vac_banned", value); } + public bool VacBanned { get => Accessor.GetBool("vac_banned"); set => Accessor.SetBool("vac_banned", value); } - public bool CyberCafe - { get => Accessor.GetBool("cyber_cafe"); set => Accessor.SetBool("cyber_cafe", value); } + public bool CyberCafe { get => Accessor.GetBool("cyber_cafe"); set => Accessor.SetBool("cyber_cafe", value); } - public bool SchoolAccount - { get => Accessor.GetBool("school_account"); set => Accessor.SetBool("school_account", value); } + public bool SchoolAccount { get => Accessor.GetBool("school_account"); set => Accessor.SetBool("school_account", value); } - public bool FreeTrialAccount - { get => Accessor.GetBool("free_trial_account"); set => Accessor.SetBool("free_trial_account", value); } + public bool FreeTrialAccount { get => Accessor.GetBool("free_trial_account"); set => Accessor.SetBool("free_trial_account", value); } - public bool Subscribed - { get => Accessor.GetBool("subscribed"); set => Accessor.SetBool("subscribed", value); } + public bool Subscribed { get => Accessor.GetBool("subscribed"); set => Accessor.SetBool("subscribed", value); } - public bool LowViolence - { get => Accessor.GetBool("low_violence"); set => Accessor.SetBool("low_violence", value); } + public bool LowViolence { get => Accessor.GetBool("low_violence"); set => Accessor.SetBool("low_violence", value); } - public bool Limited - { get => Accessor.GetBool("limited"); set => Accessor.SetBool("limited", value); } + public bool Limited { get => Accessor.GetBool("limited"); set => Accessor.SetBool("limited", value); } - public bool Trusted - { get => Accessor.GetBool("trusted"); set => Accessor.SetBool("trusted", value); } + public bool Trusted { get => Accessor.GetBool("trusted"); set => Accessor.SetBool("trusted", value); } - public uint Package - { get => Accessor.GetUInt32("package"); set => Accessor.SetUInt32("package", value); } + public uint Package { get => Accessor.GetUInt32("package"); set => Accessor.SetUInt32("package", value); } - public uint TimeCached - { get => Accessor.GetUInt32("time_cached"); set => Accessor.SetUInt32("time_cached", value); } + public uint TimeCached { get => Accessor.GetUInt32("time_cached"); set => Accessor.SetUInt32("time_cached", value); } - public bool AccountLocked - { get => Accessor.GetBool("account_locked"); set => Accessor.SetBool("account_locked", value); } + public bool AccountLocked { get => Accessor.GetBool("account_locked"); set => Accessor.SetBool("account_locked", value); } - public bool CommunityBanned - { get => Accessor.GetBool("community_banned"); set => Accessor.SetBool("community_banned", value); } + public bool CommunityBanned { get => Accessor.GetBool("community_banned"); set => Accessor.SetBool("community_banned", value); } - public bool TradeBanned - { get => Accessor.GetBool("trade_banned"); set => Accessor.SetBool("trade_banned", value); } + public bool TradeBanned { get => Accessor.GetBool("trade_banned"); set => Accessor.SetBool("trade_banned", value); } - public bool EligibleForCommunityMarket - { get => Accessor.GetBool("eligible_for_community_market"); set => Accessor.SetBool("eligible_for_community_market", value); } + public bool EligibleForCommunityMarket { get => Accessor.GetBool("eligible_for_community_market"); set => Accessor.SetBool("eligible_for_community_market", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAcknowledgeRentalExpirationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAcknowledgeRentalExpirationImpl.cs index 978a1983f..c3c8078df 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAcknowledgeRentalExpirationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAcknowledgeRentalExpirationImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgAcknowledgeRentalExpirationImpl : TypedProtobuf, CMsgAcknowledgeRentalExpiration { - public CMsgAcknowledgeRentalExpirationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgAcknowledgeRentalExpirationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong CrateItemId - { get => Accessor.GetUInt64("crate_item_id"); set => Accessor.SetUInt64("crate_item_id", value); } + public ulong CrateItemId { get => Accessor.GetUInt64("crate_item_id"); set => Accessor.SetUInt64("crate_item_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustEquipSlotImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustEquipSlotImpl.cs index 5e48c0fcb..dc46f617f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustEquipSlotImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustEquipSlotImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgAdjustEquipSlotImpl : TypedProtobuf, CMsgAdjustEquipSlot { - public CMsgAdjustEquipSlotImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgAdjustEquipSlotImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ClassId - { get => Accessor.GetUInt32("class_id"); set => Accessor.SetUInt32("class_id", value); } + public uint ClassId { get => Accessor.GetUInt32("class_id"); set => Accessor.SetUInt32("class_id", value); } - public uint SlotId - { get => Accessor.GetUInt32("slot_id"); set => Accessor.SetUInt32("slot_id", value); } + public uint SlotId { get => Accessor.GetUInt32("slot_id"); set => Accessor.SetUInt32("slot_id", value); } - public ulong ItemId - { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } + public ulong ItemId { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustEquipSlotsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustEquipSlotsImpl.cs index 0cd810c14..6bba16a11 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustEquipSlotsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustEquipSlotsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgAdjustEquipSlotsImpl : TypedProtobuf, CMsgAdjustEquipSlots { - public CMsgAdjustEquipSlotsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgAdjustEquipSlotsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Slots - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "slots"); } + public IProtobufRepeatedFieldSubMessageType Slots { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "slots"); } - public uint ChangeNum - { get => Accessor.GetUInt32("change_num"); set => Accessor.SetUInt32("change_num", value); } + public uint ChangeNum { get => Accessor.GetUInt32("change_num"); set => Accessor.SetUInt32("change_num", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustItemEquippedStateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustItemEquippedStateImpl.cs index 81f171f40..3e6dbd370 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustItemEquippedStateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustItemEquippedStateImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgAdjustItemEquippedStateImpl : TypedProtobuf, CMsgAdjustItemEquippedState { - public CMsgAdjustItemEquippedStateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgAdjustItemEquippedStateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong ItemId - { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } + public ulong ItemId { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } - public uint NewClass - { get => Accessor.GetUInt32("new_class"); set => Accessor.SetUInt32("new_class", value); } + public uint NewClass { get => Accessor.GetUInt32("new_class"); set => Accessor.SetUInt32("new_class", value); } - public uint NewSlot - { get => Accessor.GetUInt32("new_slot"); set => Accessor.SetUInt32("new_slot", value); } + public uint NewSlot { get => Accessor.GetUInt32("new_slot"); set => Accessor.SetUInt32("new_slot", value); } - public bool Swap - { get => Accessor.GetBool("swap"); set => Accessor.SetBool("swap", value); } + public bool Swap { get => Accessor.GetBool("swap"); set => Accessor.SetBool("swap", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustItemEquippedStateMultiImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustItemEquippedStateMultiImpl.cs index 07d994614..82728a890 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustItemEquippedStateMultiImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgAdjustItemEquippedStateMultiImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgAdjustItemEquippedStateMultiImpl : TypedProtobuf, CMsgAdjustItemEquippedStateMulti { - public CMsgAdjustItemEquippedStateMultiImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgAdjustItemEquippedStateMultiImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldValueType TEquips - { get => new ProtobufRepeatedFieldValueType(Accessor, "t_equips"); } + public IProtobufRepeatedFieldValueType TEquips { get => new ProtobufRepeatedFieldValueType(Accessor, "t_equips"); } - public IProtobufRepeatedFieldValueType CtEquips - { get => new ProtobufRepeatedFieldValueType(Accessor, "ct_equips"); } + public IProtobufRepeatedFieldValueType CtEquips { get => new ProtobufRepeatedFieldValueType(Accessor, "ct_equips"); } - public IProtobufRepeatedFieldValueType NoteamEquips - { get => new ProtobufRepeatedFieldValueType(Accessor, "noteam_equips"); } + public IProtobufRepeatedFieldValueType NoteamEquips { get => new ProtobufRepeatedFieldValueType(Accessor, "noteam_equips"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyEggEssenceImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyEggEssenceImpl.cs index 6847df58c..8ca8e4e8f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyEggEssenceImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyEggEssenceImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgApplyEggEssenceImpl : TypedProtobuf, CMsgApplyEggEssence { - public CMsgApplyEggEssenceImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgApplyEggEssenceImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong EssenceItemId - { get => Accessor.GetUInt64("essence_item_id"); set => Accessor.SetUInt64("essence_item_id", value); } + public ulong EssenceItemId { get => Accessor.GetUInt64("essence_item_id"); set => Accessor.SetUInt64("essence_item_id", value); } - public ulong EggItemId - { get => Accessor.GetUInt64("egg_item_id"); set => Accessor.SetUInt64("egg_item_id", value); } + public ulong EggItemId { get => Accessor.GetUInt64("egg_item_id"); set => Accessor.SetUInt64("egg_item_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyPennantUpgradeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyPennantUpgradeImpl.cs index ff863854b..1e836753a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyPennantUpgradeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyPennantUpgradeImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgApplyPennantUpgradeImpl : TypedProtobuf, CMsgApplyPennantUpgrade { - public CMsgApplyPennantUpgradeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgApplyPennantUpgradeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong UpgradeItemId - { get => Accessor.GetUInt64("upgrade_item_id"); set => Accessor.SetUInt64("upgrade_item_id", value); } + public ulong UpgradeItemId { get => Accessor.GetUInt64("upgrade_item_id"); set => Accessor.SetUInt64("upgrade_item_id", value); } - public ulong PennantItemId - { get => Accessor.GetUInt64("pennant_item_id"); set => Accessor.SetUInt64("pennant_item_id", value); } + public ulong PennantItemId { get => Accessor.GetUInt64("pennant_item_id"); set => Accessor.SetUInt64("pennant_item_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyStatTrakSwapImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyStatTrakSwapImpl.cs index 6cf9b986b..606a970ca 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyStatTrakSwapImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyStatTrakSwapImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgApplyStatTrakSwapImpl : TypedProtobuf, CMsgApplyStatTrakSwap { - public CMsgApplyStatTrakSwapImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgApplyStatTrakSwapImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong ToolItemId - { get => Accessor.GetUInt64("tool_item_id"); set => Accessor.SetUInt64("tool_item_id", value); } + public ulong ToolItemId { get => Accessor.GetUInt64("tool_item_id"); set => Accessor.SetUInt64("tool_item_id", value); } - public ulong Item1ItemId - { get => Accessor.GetUInt64("item_1_item_id"); set => Accessor.SetUInt64("item_1_item_id", value); } + public ulong Item1ItemId { get => Accessor.GetUInt64("item_1_item_id"); set => Accessor.SetUInt64("item_1_item_id", value); } - public ulong Item2ItemId - { get => Accessor.GetUInt64("item_2_item_id"); set => Accessor.SetUInt64("item_2_item_id", value); } + public ulong Item2ItemId { get => Accessor.GetUInt64("item_2_item_id"); set => Accessor.SetUInt64("item_2_item_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyStickerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyStickerImpl.cs index 4ae2d8976..27d3de3a4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyStickerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyStickerImpl.cs @@ -1,60 +1,45 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgApplyStickerImpl : TypedProtobuf, CMsgApplySticker { - public CMsgApplyStickerImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgApplyStickerImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong StickerItemId - { get => Accessor.GetUInt64("sticker_item_id"); set => Accessor.SetUInt64("sticker_item_id", value); } + public ulong StickerItemId { get => Accessor.GetUInt64("sticker_item_id"); set => Accessor.SetUInt64("sticker_item_id", value); } - public ulong ItemItemId - { get => Accessor.GetUInt64("item_item_id"); set => Accessor.SetUInt64("item_item_id", value); } + public ulong ItemItemId { get => Accessor.GetUInt64("item_item_id"); set => Accessor.SetUInt64("item_item_id", value); } - public uint StickerSlot - { get => Accessor.GetUInt32("sticker_slot"); set => Accessor.SetUInt32("sticker_slot", value); } + public uint StickerSlot { get => Accessor.GetUInt32("sticker_slot"); set => Accessor.SetUInt32("sticker_slot", value); } - public uint BaseitemDefidx - { get => Accessor.GetUInt32("baseitem_defidx"); set => Accessor.SetUInt32("baseitem_defidx", value); } + public uint BaseitemDefidx { get => Accessor.GetUInt32("baseitem_defidx"); set => Accessor.SetUInt32("baseitem_defidx", value); } - public float StickerWear - { get => Accessor.GetFloat("sticker_wear"); set => Accessor.SetFloat("sticker_wear", value); } + public float StickerWear { get => Accessor.GetFloat("sticker_wear"); set => Accessor.SetFloat("sticker_wear", value); } - public float StickerRotation - { get => Accessor.GetFloat("sticker_rotation"); set => Accessor.SetFloat("sticker_rotation", value); } + public float StickerRotation { get => Accessor.GetFloat("sticker_rotation"); set => Accessor.SetFloat("sticker_rotation", value); } - public float StickerScale - { get => Accessor.GetFloat("sticker_scale"); set => Accessor.SetFloat("sticker_scale", value); } + public float StickerScale { get => Accessor.GetFloat("sticker_scale"); set => Accessor.SetFloat("sticker_scale", value); } - public float StickerOffsetX - { get => Accessor.GetFloat("sticker_offset_x"); set => Accessor.SetFloat("sticker_offset_x", value); } + public float StickerOffsetX { get => Accessor.GetFloat("sticker_offset_x"); set => Accessor.SetFloat("sticker_offset_x", value); } - public float StickerOffsetY - { get => Accessor.GetFloat("sticker_offset_y"); set => Accessor.SetFloat("sticker_offset_y", value); } + public float StickerOffsetY { get => Accessor.GetFloat("sticker_offset_y"); set => Accessor.SetFloat("sticker_offset_y", value); } - public float StickerOffsetZ - { get => Accessor.GetFloat("sticker_offset_z"); set => Accessor.SetFloat("sticker_offset_z", value); } + public float StickerOffsetZ { get => Accessor.GetFloat("sticker_offset_z"); set => Accessor.SetFloat("sticker_offset_z", value); } - public float StickerWearTarget - { get => Accessor.GetFloat("sticker_wear_target"); set => Accessor.SetFloat("sticker_wear_target", value); } + public float StickerWearTarget { get => Accessor.GetFloat("sticker_wear_target"); set => Accessor.SetFloat("sticker_wear_target", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyStrangePartImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyStrangePartImpl.cs index d674a6a68..c5d644611 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyStrangePartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgApplyStrangePartImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgApplyStrangePartImpl : TypedProtobuf, CMsgApplyStrangePart { - public CMsgApplyStrangePartImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgApplyStrangePartImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong StrangePartItemId - { get => Accessor.GetUInt64("strange_part_item_id"); set => Accessor.SetUInt64("strange_part_item_id", value); } + public ulong StrangePartItemId { get => Accessor.GetUInt64("strange_part_item_id"); set => Accessor.SetUInt64("strange_part_item_id", value); } - public ulong ItemItemId - { get => Accessor.GetUInt64("item_item_id"); set => Accessor.SetUInt64("item_item_id", value); } + public ulong ItemItemId { get => Accessor.GetUInt64("item_item_id"); set => Accessor.SetUInt64("item_item_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgCStrike15WelcomeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgCStrike15WelcomeImpl.cs index 93eb7c199..50273de82 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgCStrike15WelcomeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgCStrike15WelcomeImpl.cs @@ -1,44 +1,33 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgCStrike15WelcomeImpl : TypedProtobuf, CMsgCStrike15Welcome { - public CMsgCStrike15WelcomeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgCStrike15WelcomeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint StoreItemHash - { get => Accessor.GetUInt32("store_item_hash"); set => Accessor.SetUInt32("store_item_hash", value); } + public uint StoreItemHash { get => Accessor.GetUInt32("store_item_hash"); set => Accessor.SetUInt32("store_item_hash", value); } - public uint Timeplayedconsecutively - { get => Accessor.GetUInt32("timeplayedconsecutively"); set => Accessor.SetUInt32("timeplayedconsecutively", value); } + public uint Timeplayedconsecutively { get => Accessor.GetUInt32("timeplayedconsecutively"); set => Accessor.SetUInt32("timeplayedconsecutively", value); } - public uint TimeFirstPlayed - { get => Accessor.GetUInt32("time_first_played"); set => Accessor.SetUInt32("time_first_played", value); } + public uint TimeFirstPlayed { get => Accessor.GetUInt32("time_first_played"); set => Accessor.SetUInt32("time_first_played", value); } - public uint LastTimePlayed - { get => Accessor.GetUInt32("last_time_played"); set => Accessor.SetUInt32("last_time_played", value); } + public uint LastTimePlayed { get => Accessor.GetUInt32("last_time_played"); set => Accessor.SetUInt32("last_time_played", value); } - public uint LastIpAddress - { get => Accessor.GetUInt32("last_ip_address"); set => Accessor.SetUInt32("last_ip_address", value); } + public uint LastIpAddress { get => Accessor.GetUInt32("last_ip_address"); set => Accessor.SetUInt32("last_ip_address", value); } - public ulong Gscookieid - { get => Accessor.GetUInt64("gscookieid"); set => Accessor.SetUInt64("gscookieid", value); } + public ulong Gscookieid { get => Accessor.GetUInt64("gscookieid"); set => Accessor.SetUInt64("gscookieid", value); } - public ulong Uniqueid - { get => Accessor.GetUInt64("uniqueid"); set => Accessor.SetUInt64("uniqueid", value); } + public ulong Uniqueid { get => Accessor.GetUInt64("uniqueid"); set => Accessor.SetUInt64("uniqueid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgCasketItemImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgCasketItemImpl.cs index a710d17ce..234ec835f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgCasketItemImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgCasketItemImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgCasketItemImpl : TypedProtobuf, CMsgCasketItem { - public CMsgCasketItemImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgCasketItemImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong CasketItemId - { get => Accessor.GetUInt64("casket_item_id"); set => Accessor.SetUInt64("casket_item_id", value); } + public ulong CasketItemId { get => Accessor.GetUInt64("casket_item_id"); set => Accessor.SetUInt64("casket_item_id", value); } - public ulong ItemItemId - { get => Accessor.GetUInt64("item_item_id"); set => Accessor.SetUInt64("item_item_id", value); } + public ulong ItemItemId { get => Accessor.GetUInt64("item_item_id"); set => Accessor.SetUInt64("item_item_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClearDecalsForEntityEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClearDecalsForEntityEventImpl.cs index 5427ea632..f937b9749 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClearDecalsForEntityEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClearDecalsForEntityEventImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgClearDecalsForEntityEventImpl : NetMessage, CMsgClearDecalsForEntityEvent { - public CMsgClearDecalsForEntityEventImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgClearDecalsForEntityEventImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Flagstoclear - { get => Accessor.GetUInt32("flagstoclear"); set => Accessor.SetUInt32("flagstoclear", value); } + public uint Flagstoclear { get => Accessor.GetUInt32("flagstoclear"); set => Accessor.SetUInt32("flagstoclear", value); } - public uint Entityhandle - { get => Accessor.GetUInt32("entityhandle"); set => Accessor.SetUInt32("entityhandle", value); } + public uint Entityhandle { get => Accessor.GetUInt32("entityhandle"); set => Accessor.SetUInt32("entityhandle", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClearEntityDecalsEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClearEntityDecalsEventImpl.cs index 00fe30907..f163dca06 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClearEntityDecalsEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClearEntityDecalsEventImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgClearEntityDecalsEventImpl : NetMessage, CMsgClearEntityDecalsEvent { - public CMsgClearEntityDecalsEventImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgClearEntityDecalsEventImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Flagstoclear - { get => Accessor.GetUInt32("flagstoclear"); set => Accessor.SetUInt32("flagstoclear", value); } + public uint Flagstoclear { get => Accessor.GetUInt32("flagstoclear"); set => Accessor.SetUInt32("flagstoclear", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClearWorldDecalsEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClearWorldDecalsEventImpl.cs index 4f248c7fb..1d6bf138c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClearWorldDecalsEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClearWorldDecalsEventImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgClearWorldDecalsEventImpl : NetMessage, CMsgClearWorldDecalsEvent { - public CMsgClearWorldDecalsEventImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgClearWorldDecalsEventImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Flagstoclear - { get => Accessor.GetUInt32("flagstoclear"); set => Accessor.SetUInt32("flagstoclear", value); } + public uint Flagstoclear { get => Accessor.GetUInt32("flagstoclear"); set => Accessor.SetUInt32("flagstoclear", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClientHelloImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClientHelloImpl.cs index 9bbaaf4a1..5f180b49a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClientHelloImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClientHelloImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,44 +6,35 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgClientHelloImpl : TypedProtobuf, CMsgClientHello { - public CMsgClientHelloImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgClientHelloImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Version - { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } + public uint Version { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } - public IProtobufRepeatedFieldSubMessageType SocacheHaveVersions - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "socache_have_versions"); } + public IProtobufRepeatedFieldSubMessageType SocacheHaveVersions { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "socache_have_versions"); } - public uint ClientSessionNeed - { get => Accessor.GetUInt32("client_session_need"); set => Accessor.SetUInt32("client_session_need", value); } + public uint ClientSessionNeed { get => Accessor.GetUInt32("client_session_need"); set => Accessor.SetUInt32("client_session_need", value); } - public uint ClientLauncher - { get => Accessor.GetUInt32("client_launcher"); set => Accessor.SetUInt32("client_launcher", value); } + public uint ClientLauncher { get => Accessor.GetUInt32("client_launcher"); set => Accessor.SetUInt32("client_launcher", value); } - public uint PartnerSrcid - { get => Accessor.GetUInt32("partner_srcid"); set => Accessor.SetUInt32("partner_srcid", value); } + public uint PartnerSrcid { get => Accessor.GetUInt32("partner_srcid"); set => Accessor.SetUInt32("partner_srcid", value); } - public uint PartnerAccountid - { get => Accessor.GetUInt32("partner_accountid"); set => Accessor.SetUInt32("partner_accountid", value); } + public uint PartnerAccountid { get => Accessor.GetUInt32("partner_accountid"); set => Accessor.SetUInt32("partner_accountid", value); } - public uint PartnerAccountflags - { get => Accessor.GetUInt32("partner_accountflags"); set => Accessor.SetUInt32("partner_accountflags", value); } + public uint PartnerAccountflags { get => Accessor.GetUInt32("partner_accountflags"); set => Accessor.SetUInt32("partner_accountflags", value); } - public uint PartnerAccountbalance - { get => Accessor.GetUInt32("partner_accountbalance"); set => Accessor.SetUInt32("partner_accountbalance", value); } + public uint PartnerAccountbalance { get => Accessor.GetUInt32("partner_accountbalance"); set => Accessor.SetUInt32("partner_accountbalance", value); } - public uint SteamLauncher - { get => Accessor.GetUInt32("steam_launcher"); set => Accessor.SetUInt32("steam_launcher", value); } + public uint SteamLauncher { get => Accessor.GetUInt32("steam_launcher"); set => Accessor.SetUInt32("steam_launcher", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClientWelcomeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClientWelcomeImpl.cs index f0c4a9448..6c5d54fd3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClientWelcomeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClientWelcomeImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,52 +8,41 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgClientWelcomeImpl : TypedProtobuf, CMsgClientWelcome { - public CMsgClientWelcomeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgClientWelcomeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Version - { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } + public uint Version { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } - public byte[] GameData - { get => Accessor.GetBytes("game_data"); set => Accessor.SetBytes("game_data", value); } + public byte[] GameData { get => Accessor.GetBytes("game_data"); set => Accessor.SetBytes("game_data", value); } - public IProtobufRepeatedFieldSubMessageType OutofdateSubscribedCaches - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "outofdate_subscribed_caches"); } + public IProtobufRepeatedFieldSubMessageType OutofdateSubscribedCaches { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "outofdate_subscribed_caches"); } - public IProtobufRepeatedFieldSubMessageType UptodateSubscribedCaches - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "uptodate_subscribed_caches"); } + public IProtobufRepeatedFieldSubMessageType UptodateSubscribedCaches { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "uptodate_subscribed_caches"); } - public CMsgClientWelcome_Location Location - { get => new CMsgClientWelcome_LocationImpl(NativeNetMessages.GetNestedMessage(Address, "location"), false); } + public CMsgClientWelcome_Location Location { get => new CMsgClientWelcome_LocationImpl(NativeNetMessages.GetNestedMessage(Address, "location"), false); } - public byte[] GameData2 - { get => Accessor.GetBytes("game_data2"); set => Accessor.SetBytes("game_data2", value); } + public byte[] GameData2 { get => Accessor.GetBytes("game_data2"); set => Accessor.SetBytes("game_data2", value); } - public uint Rtime32GcWelcomeTimestamp - { get => Accessor.GetUInt32("rtime32_gc_welcome_timestamp"); set => Accessor.SetUInt32("rtime32_gc_welcome_timestamp", value); } + public uint Rtime32GcWelcomeTimestamp { get => Accessor.GetUInt32("rtime32_gc_welcome_timestamp"); set => Accessor.SetUInt32("rtime32_gc_welcome_timestamp", value); } - public uint Currency - { get => Accessor.GetUInt32("currency"); set => Accessor.SetUInt32("currency", value); } + public uint Currency { get => Accessor.GetUInt32("currency"); set => Accessor.SetUInt32("currency", value); } - public uint Balance - { get => Accessor.GetUInt32("balance"); set => Accessor.SetUInt32("balance", value); } + public uint Balance { get => Accessor.GetUInt32("balance"); set => Accessor.SetUInt32("balance", value); } - public string BalanceUrl - { get => Accessor.GetString("balance_url"); set => Accessor.SetString("balance_url", value); } + public string BalanceUrl { get => Accessor.GetString("balance_url"); set => Accessor.SetString("balance_url", value); } - public string TxnCountryCode - { get => Accessor.GetString("txn_country_code"); set => Accessor.SetString("txn_country_code", value); } + public string TxnCountryCode { get => Accessor.GetString("txn_country_code"); set => Accessor.SetString("txn_country_code", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClientWelcome_LocationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClientWelcome_LocationImpl.cs index 5f7e9cea5..0239d99ce 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClientWelcome_LocationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgClientWelcome_LocationImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgClientWelcome_LocationImpl : TypedProtobuf, CMsgClientWelcome_Location { - public CMsgClientWelcome_LocationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgClientWelcome_LocationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float Latitude - { get => Accessor.GetFloat("latitude"); set => Accessor.SetFloat("latitude", value); } + public float Latitude { get => Accessor.GetFloat("latitude"); set => Accessor.SetFloat("latitude", value); } - public float Longitude - { get => Accessor.GetFloat("longitude"); set => Accessor.SetFloat("longitude", value); } + public float Longitude { get => Accessor.GetFloat("longitude"); set => Accessor.SetFloat("longitude", value); } - public string Country - { get => Accessor.GetString("country"); set => Accessor.SetString("country", value); } + public string Country { get => Accessor.GetString("country"); set => Accessor.SetString("country", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgConVarValueImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgConVarValueImpl.cs index 0fad421d5..d969babfd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgConVarValueImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgConVarValueImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgConVarValueImpl : TypedProtobuf, CMsgConVarValue { - public CMsgConVarValueImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgConVarValueImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public string Value - { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } + public string Value { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgConnectionStatusImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgConnectionStatusImpl.cs index 5d9dd6508..8a6cfcedd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgConnectionStatusImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgConnectionStatusImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgConnectionStatusImpl : TypedProtobuf, CMsgConnectionStatus { - public CMsgConnectionStatusImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgConnectionStatusImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public GCConnectionStatus Status - { get => (GCConnectionStatus)Accessor.GetInt32("status"); set => Accessor.SetInt32("status", (int)value); } + public GCConnectionStatus Status { get => (GCConnectionStatus)Accessor.GetInt32("status"); set => Accessor.SetInt32("status", (int)value); } - public uint ClientSessionNeed - { get => Accessor.GetUInt32("client_session_need"); set => Accessor.SetUInt32("client_session_need", value); } + public uint ClientSessionNeed { get => Accessor.GetUInt32("client_session_need"); set => Accessor.SetUInt32("client_session_need", value); } - public int QueuePosition - { get => Accessor.GetInt32("queue_position"); set => Accessor.SetInt32("queue_position", value); } + public int QueuePosition { get => Accessor.GetInt32("queue_position"); set => Accessor.SetInt32("queue_position", value); } - public int QueueSize - { get => Accessor.GetInt32("queue_size"); set => Accessor.SetInt32("queue_size", value); } + public int QueueSize { get => Accessor.GetInt32("queue_size"); set => Accessor.SetInt32("queue_size", value); } - public int WaitSeconds - { get => Accessor.GetInt32("wait_seconds"); set => Accessor.SetInt32("wait_seconds", value); } + public int WaitSeconds { get => Accessor.GetInt32("wait_seconds"); set => Accessor.SetInt32("wait_seconds", value); } - public int EstimatedWaitSecondsRemaining - { get => Accessor.GetInt32("estimated_wait_seconds_remaining"); set => Accessor.SetInt32("estimated_wait_seconds_remaining", value); } + public int EstimatedWaitSecondsRemaining { get => Accessor.GetInt32("estimated_wait_seconds_remaining"); set => Accessor.SetInt32("estimated_wait_seconds_remaining", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgConsumableExhaustedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgConsumableExhaustedImpl.cs index 4da203083..9fa82bc02 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgConsumableExhaustedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgConsumableExhaustedImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgConsumableExhaustedImpl : TypedProtobuf, CMsgConsumableExhausted { - public CMsgConsumableExhaustedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgConsumableExhaustedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int ItemDefId - { get => Accessor.GetInt32("item_def_id"); set => Accessor.SetInt32("item_def_id", value); } + public int ItemDefId { get => Accessor.GetInt32("item_def_id"); set => Accessor.SetInt32("item_def_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgCsgoSteamUserStatChangeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgCsgoSteamUserStatChangeImpl.cs index d1d351951..d023dd7f2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgCsgoSteamUserStatChangeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgCsgoSteamUserStatChangeImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgCsgoSteamUserStatChangeImpl : TypedProtobuf, CMsgCsgoSteamUserStatChange { - public CMsgCsgoSteamUserStatChangeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgCsgoSteamUserStatChangeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Ecsgosteamuserstat - { get => Accessor.GetInt32("ecsgosteamuserstat"); set => Accessor.SetInt32("ecsgosteamuserstat", value); } + public int Ecsgosteamuserstat { get => Accessor.GetInt32("ecsgosteamuserstat"); set => Accessor.SetInt32("ecsgosteamuserstat", value); } - public int Delta - { get => Accessor.GetInt32("delta"); set => Accessor.SetInt32("delta", value); } + public int Delta { get => Accessor.GetInt32("delta"); set => Accessor.SetInt32("delta", value); } - public bool Absolute - { get => Accessor.GetBool("absolute"); set => Accessor.SetBool("absolute", value); } + public bool Absolute { get => Accessor.GetBool("absolute"); set => Accessor.SetBool("absolute", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgDevNewItemRequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgDevNewItemRequestImpl.cs index b00198f02..5622e561e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgDevNewItemRequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgDevNewItemRequestImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgDevNewItemRequestImpl : TypedProtobuf, CMsgDevNewItemRequest { - public CMsgDevNewItemRequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgDevNewItemRequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Receiver - { get => Accessor.GetUInt64("receiver"); set => Accessor.SetUInt64("receiver", value); } + public ulong Receiver { get => Accessor.GetUInt64("receiver"); set => Accessor.SetUInt64("receiver", value); } - public CSOItemCriteria Criteria - { get => new CSOItemCriteriaImpl(NativeNetMessages.GetNestedMessage(Address, "criteria"), false); } + public CSOItemCriteria Criteria { get => new CSOItemCriteriaImpl(NativeNetMessages.GetNestedMessage(Address, "criteria"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgEffectDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgEffectDataImpl.cs index f6cebbbc2..2cd5d48ea 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgEffectDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgEffectDataImpl.cs @@ -1,92 +1,70 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgEffectDataImpl : TypedProtobuf, CMsgEffectData { - public CMsgEffectDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgEffectDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public Vector Start - { get => Accessor.GetVector("start"); set => Accessor.SetVector("start", value); } + public Vector Start { get => Accessor.GetVector("start"); set => Accessor.SetVector("start", value); } - public Vector Normal - { get => Accessor.GetVector("normal"); set => Accessor.SetVector("normal", value); } + public Vector Normal { get => Accessor.GetVector("normal"); set => Accessor.SetVector("normal", value); } - public QAngle Angles - { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } + public QAngle Angles { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } - public uint Entity - { get => Accessor.GetUInt32("entity"); set => Accessor.SetUInt32("entity", value); } + public uint Entity { get => Accessor.GetUInt32("entity"); set => Accessor.SetUInt32("entity", value); } - public uint Otherentity - { get => Accessor.GetUInt32("otherentity"); set => Accessor.SetUInt32("otherentity", value); } + public uint Otherentity { get => Accessor.GetUInt32("otherentity"); set => Accessor.SetUInt32("otherentity", value); } - public float Scale - { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } + public float Scale { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } - public float Magnitude - { get => Accessor.GetFloat("magnitude"); set => Accessor.SetFloat("magnitude", value); } + public float Magnitude { get => Accessor.GetFloat("magnitude"); set => Accessor.SetFloat("magnitude", value); } - public float Radius - { get => Accessor.GetFloat("radius"); set => Accessor.SetFloat("radius", value); } + public float Radius { get => Accessor.GetFloat("radius"); set => Accessor.SetFloat("radius", value); } - public uint Surfaceprop - { get => Accessor.GetUInt32("surfaceprop"); set => Accessor.SetUInt32("surfaceprop", value); } + public uint Surfaceprop { get => Accessor.GetUInt32("surfaceprop"); set => Accessor.SetUInt32("surfaceprop", value); } - public ulong Effectindex - { get => Accessor.GetUInt64("effectindex"); set => Accessor.SetUInt64("effectindex", value); } + public ulong Effectindex { get => Accessor.GetUInt64("effectindex"); set => Accessor.SetUInt64("effectindex", value); } - public uint Damagetype - { get => Accessor.GetUInt32("damagetype"); set => Accessor.SetUInt32("damagetype", value); } + public uint Damagetype { get => Accessor.GetUInt32("damagetype"); set => Accessor.SetUInt32("damagetype", value); } - public uint Material - { get => Accessor.GetUInt32("material"); set => Accessor.SetUInt32("material", value); } + public uint Material { get => Accessor.GetUInt32("material"); set => Accessor.SetUInt32("material", value); } - public uint Hitbox - { get => Accessor.GetUInt32("hitbox"); set => Accessor.SetUInt32("hitbox", value); } + public uint Hitbox { get => Accessor.GetUInt32("hitbox"); set => Accessor.SetUInt32("hitbox", value); } - public uint Color - { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } + public uint Color { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } - public uint Flags - { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } + public uint Flags { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } - public int Attachmentindex - { get => Accessor.GetInt32("attachmentindex"); set => Accessor.SetInt32("attachmentindex", value); } + public int Attachmentindex { get => Accessor.GetInt32("attachmentindex"); set => Accessor.SetInt32("attachmentindex", value); } - public uint Effectname - { get => Accessor.GetUInt32("effectname"); set => Accessor.SetUInt32("effectname", value); } + public uint Effectname { get => Accessor.GetUInt32("effectname"); set => Accessor.SetUInt32("effectname", value); } - public uint Attachmentname - { get => Accessor.GetUInt32("attachmentname"); set => Accessor.SetUInt32("attachmentname", value); } + public uint Attachmentname { get => Accessor.GetUInt32("attachmentname"); set => Accessor.SetUInt32("attachmentname", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCBannedWordImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCBannedWordImpl.cs index e79e0ce77..ab32efd7d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCBannedWordImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCBannedWordImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCBannedWordImpl : TypedProtobuf, CMsgGCBannedWord { - public CMsgGCBannedWordImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCBannedWordImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint WordId - { get => Accessor.GetUInt32("word_id"); set => Accessor.SetUInt32("word_id", value); } + public uint WordId { get => Accessor.GetUInt32("word_id"); set => Accessor.SetUInt32("word_id", value); } - public GC_BannedWordType WordType - { get => (GC_BannedWordType)Accessor.GetInt32("word_type"); set => Accessor.SetInt32("word_type", (int)value); } + public GC_BannedWordType WordType { get => (GC_BannedWordType)Accessor.GetInt32("word_type"); set => Accessor.SetInt32("word_type", (int)value); } - public string Word - { get => Accessor.GetString("word"); set => Accessor.SetString("word", value); } + public string Word { get => Accessor.GetString("word"); set => Accessor.SetString("word", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCBannedWordListRequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCBannedWordListRequestImpl.cs index fdc1f86ff..390e2d127 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCBannedWordListRequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCBannedWordListRequestImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCBannedWordListRequestImpl : TypedProtobuf, CMsgGCBannedWordListRequest { - public CMsgGCBannedWordListRequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCBannedWordListRequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint BanListGroupId - { get => Accessor.GetUInt32("ban_list_group_id"); set => Accessor.SetUInt32("ban_list_group_id", value); } + public uint BanListGroupId { get => Accessor.GetUInt32("ban_list_group_id"); set => Accessor.SetUInt32("ban_list_group_id", value); } - public uint WordId - { get => Accessor.GetUInt32("word_id"); set => Accessor.SetUInt32("word_id", value); } + public uint WordId { get => Accessor.GetUInt32("word_id"); set => Accessor.SetUInt32("word_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCBannedWordListResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCBannedWordListResponseImpl.cs index a8cfcbd2d..c9c8ba1d6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCBannedWordListResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCBannedWordListResponseImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCBannedWordListResponseImpl : TypedProtobuf, CMsgGCBannedWordListResponse { - public CMsgGCBannedWordListResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCBannedWordListResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint BanListGroupId - { get => Accessor.GetUInt32("ban_list_group_id"); set => Accessor.SetUInt32("ban_list_group_id", value); } + public uint BanListGroupId { get => Accessor.GetUInt32("ban_list_group_id"); set => Accessor.SetUInt32("ban_list_group_id", value); } - public IProtobufRepeatedFieldSubMessageType WordList - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "word_list"); } + public IProtobufRepeatedFieldSubMessageType WordList { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "word_list"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_ClientDeepStatsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_ClientDeepStatsImpl.cs index 22c100795..b477c4843 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_ClientDeepStatsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_ClientDeepStatsImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +8,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_ClientDeepStatsImpl : TypedProtobuf, CMsgGCCStrike15_ClientDeepStats { - public CMsgGCCStrike15_ClientDeepStatsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_ClientDeepStatsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public CMsgGCCStrike15_ClientDeepStats_DeepStatsRange Range - { get => new CMsgGCCStrike15_ClientDeepStats_DeepStatsRangeImpl(NativeNetMessages.GetNestedMessage(Address, "range"), false); } + public CMsgGCCStrike15_ClientDeepStats_DeepStatsRange Range { get => new CMsgGCCStrike15_ClientDeepStats_DeepStatsRangeImpl(NativeNetMessages.GetNestedMessage(Address, "range"), false); } - public IProtobufRepeatedFieldSubMessageType Matches - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "matches"); } + public IProtobufRepeatedFieldSubMessageType Matches { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "matches"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_ClientDeepStats_DeepStatsMatchImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_ClientDeepStats_DeepStatsMatchImpl.cs index cc3d922b2..188cfe588 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_ClientDeepStats_DeepStatsMatchImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_ClientDeepStats_DeepStatsMatchImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +8,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_ClientDeepStats_DeepStatsMatchImpl : TypedProtobuf, CMsgGCCStrike15_ClientDeepStats_DeepStatsMatch { - public CMsgGCCStrike15_ClientDeepStats_DeepStatsMatchImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_ClientDeepStats_DeepStatsMatchImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public DeepPlayerStatsEntry Player - { get => new DeepPlayerStatsEntryImpl(NativeNetMessages.GetNestedMessage(Address, "player"), false); } + public DeepPlayerStatsEntry Player { get => new DeepPlayerStatsEntryImpl(NativeNetMessages.GetNestedMessage(Address, "player"), false); } - public IProtobufRepeatedFieldSubMessageType Events - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "events"); } + public IProtobufRepeatedFieldSubMessageType Events { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "events"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_ClientDeepStats_DeepStatsRangeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_ClientDeepStats_DeepStatsRangeImpl.cs index 1aeb7fb4e..8d29d6c03 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_ClientDeepStats_DeepStatsRangeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_ClientDeepStats_DeepStatsRangeImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_ClientDeepStats_DeepStatsRangeImpl : TypedProtobuf, CMsgGCCStrike15_ClientDeepStats_DeepStatsRange { - public CMsgGCCStrike15_ClientDeepStats_DeepStatsRangeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_ClientDeepStats_DeepStatsRangeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Begin - { get => Accessor.GetUInt32("begin"); set => Accessor.SetUInt32("begin", value); } + public uint Begin { get => Accessor.GetUInt32("begin"); set => Accessor.SetUInt32("begin", value); } - public uint End - { get => Accessor.GetUInt32("end"); set => Accessor.SetUInt32("end", value); } + public uint End { get => Accessor.GetUInt32("end"); set => Accessor.SetUInt32("end", value); } - public bool Frozen - { get => Accessor.GetBool("frozen"); set => Accessor.SetBool("frozen", value); } + public bool Frozen { get => Accessor.GetBool("frozen"); set => Accessor.SetBool("frozen", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_GotvSyncPacketImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_GotvSyncPacketImpl.cs index 6a1f5a607..86d8d855a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_GotvSyncPacketImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_GotvSyncPacketImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_GotvSyncPacketImpl : TypedProtobuf, CMsgGCCStrike15_GotvSyncPacket { - public CMsgGCCStrike15_GotvSyncPacketImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_GotvSyncPacketImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CEngineGotvSyncPacket Data - { get => new CEngineGotvSyncPacketImpl(NativeNetMessages.GetNestedMessage(Address, "data"), false); } + public CEngineGotvSyncPacket Data { get => new CEngineGotvSyncPacketImpl(NativeNetMessages.GetNestedMessage(Address, "data"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_AccountPrivacySettingsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_AccountPrivacySettingsImpl.cs index 6d642d63a..3c7e0c0e7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_AccountPrivacySettingsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_AccountPrivacySettingsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_AccountPrivacySettingsImpl : TypedProtobuf, CMsgGCCStrike15_v2_AccountPrivacySettings { - public CMsgGCCStrike15_v2_AccountPrivacySettingsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_AccountPrivacySettingsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Settings - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "settings"); } + public IProtobufRepeatedFieldSubMessageType Settings { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "settings"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_AccountPrivacySettings_SettingImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_AccountPrivacySettings_SettingImpl.cs index df6c47801..e77f675b5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_AccountPrivacySettings_SettingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_AccountPrivacySettings_SettingImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_AccountPrivacySettings_SettingImpl : TypedProtobuf, CMsgGCCStrike15_v2_AccountPrivacySettings_Setting { - public CMsgGCCStrike15_v2_AccountPrivacySettings_SettingImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_AccountPrivacySettings_SettingImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint SettingType - { get => Accessor.GetUInt32("setting_type"); set => Accessor.SetUInt32("setting_type", value); } + public uint SettingType { get => Accessor.GetUInt32("setting_type"); set => Accessor.SetUInt32("setting_type", value); } - public uint SettingValue - { get => Accessor.GetUInt32("setting_value"); set => Accessor.SetUInt32("setting_value", value); } + public uint SettingValue { get => Accessor.GetUInt32("setting_value"); set => Accessor.SetUInt32("setting_value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Account_RequestCoPlaysImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Account_RequestCoPlaysImpl.cs index 0297dad5a..452124bea 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Account_RequestCoPlaysImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Account_RequestCoPlaysImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Account_RequestCoPlaysImpl : TypedProtobuf, CMsgGCCStrike15_v2_Account_RequestCoPlays { - public CMsgGCCStrike15_v2_Account_RequestCoPlaysImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Account_RequestCoPlaysImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Players - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "players"); } + public IProtobufRepeatedFieldSubMessageType Players { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "players"); } - public uint Servertime - { get => Accessor.GetUInt32("servertime"); set => Accessor.SetUInt32("servertime", value); } + public uint Servertime { get => Accessor.GetUInt32("servertime"); set => Accessor.SetUInt32("servertime", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Account_RequestCoPlays_PlayerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Account_RequestCoPlays_PlayerImpl.cs index 2af27df67..afbed7cc7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Account_RequestCoPlays_PlayerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Account_RequestCoPlays_PlayerImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Account_RequestCoPlays_PlayerImpl : TypedProtobuf, CMsgGCCStrike15_v2_Account_RequestCoPlays_Player { - public CMsgGCCStrike15_v2_Account_RequestCoPlays_PlayerImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Account_RequestCoPlays_PlayerImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public uint Rtcoplay - { get => Accessor.GetUInt32("rtcoplay"); set => Accessor.SetUInt32("rtcoplay", value); } + public uint Rtcoplay { get => Accessor.GetUInt32("rtcoplay"); set => Accessor.SetUInt32("rtcoplay", value); } - public bool Online - { get => Accessor.GetBool("online"); set => Accessor.SetBool("online", value); } + public bool Online { get => Accessor.GetBool("online"); set => Accessor.SetBool("online", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_AcknowledgePenaltyImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_AcknowledgePenaltyImpl.cs index 9e4210296..538dafb54 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_AcknowledgePenaltyImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_AcknowledgePenaltyImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_AcknowledgePenaltyImpl : TypedProtobuf, CMsgGCCStrike15_v2_AcknowledgePenalty { - public CMsgGCCStrike15_v2_AcknowledgePenaltyImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_AcknowledgePenaltyImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Acknowledged - { get => Accessor.GetInt32("acknowledged"); set => Accessor.SetInt32("acknowledged", value); } + public int Acknowledged { get => Accessor.GetInt32("acknowledged"); set => Accessor.SetInt32("acknowledged", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_BetaEnrollmentImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_BetaEnrollmentImpl.cs index 3de5b8600..22e03af6a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_BetaEnrollmentImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_BetaEnrollmentImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_BetaEnrollmentImpl : TypedProtobuf, CMsgGCCStrike15_v2_BetaEnrollment { - public CMsgGCCStrike15_v2_BetaEnrollmentImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_BetaEnrollmentImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Eresult - { get => Accessor.GetUInt32("eresult"); set => Accessor.SetUInt32("eresult", value); } + public uint Eresult { get => Accessor.GetUInt32("eresult"); set => Accessor.SetUInt32("eresult", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequestImpl.cs index 436c7ee98..ab8f0cd70 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequestImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequestImpl : TypedProtobuf, CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequest { - public CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong ParamS - { get => Accessor.GetUInt64("param_s"); set => Accessor.SetUInt64("param_s", value); } + public ulong ParamS { get => Accessor.GetUInt64("param_s"); set => Accessor.SetUInt64("param_s", value); } - public ulong ParamA - { get => Accessor.GetUInt64("param_a"); set => Accessor.SetUInt64("param_a", value); } + public ulong ParamA { get => Accessor.GetUInt64("param_a"); set => Accessor.SetUInt64("param_a", value); } - public ulong ParamD - { get => Accessor.GetUInt64("param_d"); set => Accessor.SetUInt64("param_d", value); } + public ulong ParamD { get => Accessor.GetUInt64("param_d"); set => Accessor.SetUInt64("param_d", value); } - public ulong ParamM - { get => Accessor.GetUInt64("param_m"); set => Accessor.SetUInt64("param_m", value); } + public ulong ParamM { get => Accessor.GetUInt64("param_m"); set => Accessor.SetUInt64("param_m", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponseImpl.cs index e79936efc..1b873c477 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponseImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponseImpl : TypedProtobuf, CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponse { - public CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CEconItemPreviewDataBlock Iteminfo - { get => new CEconItemPreviewDataBlockImpl(NativeNetMessages.GetNestedMessage(Address, "iteminfo"), false); } + public CEconItemPreviewDataBlock Iteminfo { get => new CEconItemPreviewDataBlockImpl(NativeNetMessages.GetNestedMessage(Address, "iteminfo"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoinImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoinImpl.cs index 2ed71f6a9..ee29f9637 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoinImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoinImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoinImpl : TypedProtobuf, CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoin { - public CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoinImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoinImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Defindex - { get => Accessor.GetUInt32("defindex"); set => Accessor.SetUInt32("defindex", value); } + public uint Defindex { get => Accessor.GetUInt32("defindex"); set => Accessor.SetUInt32("defindex", value); } - public ulong Upgradeid - { get => Accessor.GetUInt64("upgradeid"); set => Accessor.SetUInt64("upgradeid", value); } + public ulong Upgradeid { get => Accessor.GetUInt64("upgradeid"); set => Accessor.SetUInt64("upgradeid", value); } - public uint Hours - { get => Accessor.GetUInt32("hours"); set => Accessor.SetUInt32("hours", value); } + public uint Hours { get => Accessor.GetUInt32("hours"); set => Accessor.SetUInt32("hours", value); } - public uint Prestigetime - { get => Accessor.GetUInt32("prestigetime"); set => Accessor.SetUInt32("prestigetime", value); } + public uint Prestigetime { get => Accessor.GetUInt32("prestigetime"); set => Accessor.SetUInt32("prestigetime", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCStreamUnlockImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCStreamUnlockImpl.cs index 69323373d..e93b56b2f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCStreamUnlockImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCStreamUnlockImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Client2GCStreamUnlockImpl : TypedProtobuf, CMsgGCCStrike15_v2_Client2GCStreamUnlock { - public CMsgGCCStrike15_v2_Client2GCStreamUnlockImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Client2GCStreamUnlockImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Ticket - { get => Accessor.GetUInt64("ticket"); set => Accessor.SetUInt64("ticket", value); } + public ulong Ticket { get => Accessor.GetUInt64("ticket"); set => Accessor.SetUInt64("ticket", value); } - public int Os - { get => Accessor.GetInt32("os"); set => Accessor.SetInt32("os", value); } + public int Os { get => Accessor.GetInt32("os"); set => Accessor.SetInt32("os", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCTextMsgImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCTextMsgImpl.cs index 7104ebdf4..0ddb8d0e8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCTextMsgImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GCTextMsgImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Client2GCTextMsgImpl : TypedProtobuf, CMsgGCCStrike15_v2_Client2GCTextMsg { - public CMsgGCCStrike15_v2_Client2GCTextMsgImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Client2GCTextMsgImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Id - { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } + public uint Id { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } - public IProtobufRepeatedFieldValueType Args - { get => new ProtobufRepeatedFieldValueType(Accessor, "args"); } + public IProtobufRepeatedFieldValueType Args { get => new ProtobufRepeatedFieldValueType(Accessor, "args"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GcAckXPShopTracksImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GcAckXPShopTracksImpl.cs index 4842450e6..e70832385 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GcAckXPShopTracksImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Client2GcAckXPShopTracksImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Client2GcAckXPShopTracksImpl : TypedProtobuf, CMsgGCCStrike15_v2_Client2GcAckXPShopTracks { - public CMsgGCCStrike15_v2_Client2GcAckXPShopTracksImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Client2GcAckXPShopTracksImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientAccountBalanceImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientAccountBalanceImpl.cs index 29ab810fe..4266f84b8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientAccountBalanceImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientAccountBalanceImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientAccountBalanceImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientAccountBalance { - public CMsgGCCStrike15_v2_ClientAccountBalanceImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientAccountBalanceImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Amount - { get => Accessor.GetUInt64("amount"); set => Accessor.SetUInt64("amount", value); } + public ulong Amount { get => Accessor.GetUInt64("amount"); set => Accessor.SetUInt64("amount", value); } - public string Url - { get => Accessor.GetString("url"); set => Accessor.SetString("url", value); } + public string Url { get => Accessor.GetString("url"); set => Accessor.SetString("url", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientAuthKeyCodeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientAuthKeyCodeImpl.cs index 53c48098c..690666c00 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientAuthKeyCodeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientAuthKeyCodeImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientAuthKeyCodeImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientAuthKeyCode { - public CMsgGCCStrike15_v2_ClientAuthKeyCodeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientAuthKeyCodeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Eventid - { get => Accessor.GetUInt32("eventid"); set => Accessor.SetUInt32("eventid", value); } + public uint Eventid { get => Accessor.GetUInt32("eventid"); set => Accessor.SetUInt32("eventid", value); } - public string Code - { get => Accessor.GetString("code"); set => Accessor.SetString("code", value); } + public string Code { get => Accessor.GetString("code"); set => Accessor.SetString("code", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientCommendPlayerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientCommendPlayerImpl.cs index d51201da8..55fff95bf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientCommendPlayerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientCommendPlayerImpl.cs @@ -1,32 +1,26 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientCommendPlayerImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientCommendPlayer { - public CMsgGCCStrike15_v2_ClientCommendPlayerImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientCommendPlayerImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public ulong MatchId - { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } + public ulong MatchId { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } - public PlayerCommendationInfo Commendation - { get => new PlayerCommendationInfoImpl(NativeNetMessages.GetNestedMessage(Address, "commendation"), false); } + public PlayerCommendationInfo Commendation { get => new PlayerCommendationInfoImpl(NativeNetMessages.GetNestedMessage(Address, "commendation"), false); } - public uint Tokens - { get => Accessor.GetUInt32("tokens"); set => Accessor.SetUInt32("tokens", value); } + public uint Tokens { get => Accessor.GetUInt32("tokens"); set => Accessor.SetUInt32("tokens", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientGCRankUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientGCRankUpdateImpl.cs index 328367a90..1e946c776 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientGCRankUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientGCRankUpdateImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientGCRankUpdateImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientGCRankUpdate { - public CMsgGCCStrike15_v2_ClientGCRankUpdateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientGCRankUpdateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Rankings - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "rankings"); } + public IProtobufRepeatedFieldSubMessageType Rankings { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "rankings"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientLogonFatalErrorImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientLogonFatalErrorImpl.cs index 7e216c299..fb30a0eea 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientLogonFatalErrorImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientLogonFatalErrorImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientLogonFatalErrorImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientLogonFatalError { - public CMsgGCCStrike15_v2_ClientLogonFatalErrorImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientLogonFatalErrorImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Errorcode - { get => Accessor.GetUInt32("errorcode"); set => Accessor.SetUInt32("errorcode", value); } + public uint Errorcode { get => Accessor.GetUInt32("errorcode"); set => Accessor.SetUInt32("errorcode", value); } - public string Message - { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } + public string Message { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } - public string Country - { get => Accessor.GetString("country"); set => Accessor.SetString("country", value); } + public string Country { get => Accessor.GetString("country"); set => Accessor.SetString("country", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientNetworkConfigImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientNetworkConfigImpl.cs index 6abea50c4..a792d89be 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientNetworkConfigImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientNetworkConfigImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientNetworkConfigImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientNetworkConfig { - public CMsgGCCStrike15_v2_ClientNetworkConfigImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientNetworkConfigImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPartyJoinRelayImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPartyJoinRelayImpl.cs index 1fc69e0fe..09549b930 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPartyJoinRelayImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPartyJoinRelayImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientPartyJoinRelayImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientPartyJoinRelay { - public CMsgGCCStrike15_v2_ClientPartyJoinRelayImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientPartyJoinRelayImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public ulong Lobbyid - { get => Accessor.GetUInt64("lobbyid"); set => Accessor.SetUInt64("lobbyid", value); } + public ulong Lobbyid { get => Accessor.GetUInt64("lobbyid"); set => Accessor.SetUInt64("lobbyid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPartyWarningImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPartyWarningImpl.cs index 19fab3aa0..402c78f61 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPartyWarningImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPartyWarningImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientPartyWarningImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientPartyWarning { - public CMsgGCCStrike15_v2_ClientPartyWarningImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientPartyWarningImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Entries - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entries"); } + public IProtobufRepeatedFieldSubMessageType Entries { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entries"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPartyWarning_EntryImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPartyWarning_EntryImpl.cs index 0c6fcc34b..153597133 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPartyWarning_EntryImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPartyWarning_EntryImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientPartyWarning_EntryImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientPartyWarning_Entry { - public CMsgGCCStrike15_v2_ClientPartyWarning_EntryImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientPartyWarning_EntryImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public uint Warntype - { get => Accessor.GetUInt32("warntype"); set => Accessor.SetUInt32("warntype", value); } + public uint Warntype { get => Accessor.GetUInt32("warntype"); set => Accessor.SetUInt32("warntype", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPerfReportImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPerfReportImpl.cs index 30e433651..8d0bd7199 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPerfReportImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPerfReportImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientPerfReportImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientPerfReport { - public CMsgGCCStrike15_v2_ClientPerfReportImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientPerfReportImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Entries - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entries"); } + public IProtobufRepeatedFieldSubMessageType Entries { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entries"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPerfReport_EntryImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPerfReport_EntryImpl.cs index 832de926d..291d8f2e7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPerfReport_EntryImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPerfReport_EntryImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientPerfReport_EntryImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientPerfReport_Entry { - public CMsgGCCStrike15_v2_ClientPerfReport_EntryImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientPerfReport_EntryImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Perfcounter - { get => Accessor.GetUInt32("perfcounter"); set => Accessor.SetUInt32("perfcounter", value); } + public uint Perfcounter { get => Accessor.GetUInt32("perfcounter"); set => Accessor.SetUInt32("perfcounter", value); } - public uint Length - { get => Accessor.GetUInt32("length"); set => Accessor.SetUInt32("length", value); } + public uint Length { get => Accessor.GetUInt32("length"); set => Accessor.SetUInt32("length", value); } - public byte[] Reference - { get => Accessor.GetBytes("reference"); set => Accessor.SetBytes("reference", value); } + public byte[] Reference { get => Accessor.GetBytes("reference"); set => Accessor.SetBytes("reference", value); } - public byte[] Actual - { get => Accessor.GetBytes("actual"); set => Accessor.SetBytes("actual", value); } + public byte[] Actual { get => Accessor.GetBytes("actual"); set => Accessor.SetBytes("actual", value); } - public uint Sourceid - { get => Accessor.GetUInt32("sourceid"); set => Accessor.SetUInt32("sourceid", value); } + public uint Sourceid { get => Accessor.GetUInt32("sourceid"); set => Accessor.SetUInt32("sourceid", value); } - public uint Status - { get => Accessor.GetUInt32("status"); set => Accessor.SetUInt32("status", value); } + public uint Status { get => Accessor.GetUInt32("status"); set => Accessor.SetUInt32("status", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPlayerDecalSignImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPlayerDecalSignImpl.cs index 2fc85cceb..9a2610439 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPlayerDecalSignImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPlayerDecalSignImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientPlayerDecalSignImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientPlayerDecalSign { - public CMsgGCCStrike15_v2_ClientPlayerDecalSignImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientPlayerDecalSignImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public PlayerDecalDigitalSignature Data - { get => new PlayerDecalDigitalSignatureImpl(NativeNetMessages.GetNestedMessage(Address, "data"), false); } + public PlayerDecalDigitalSignature Data { get => new PlayerDecalDigitalSignatureImpl(NativeNetMessages.GetNestedMessage(Address, "data"), false); } - public ulong Itemid - { get => Accessor.GetUInt64("itemid"); set => Accessor.SetUInt64("itemid", value); } + public ulong Itemid { get => Accessor.GetUInt64("itemid"); set => Accessor.SetUInt64("itemid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPollStateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPollStateImpl.cs index 869d32d93..41766c40f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPollStateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientPollStateImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientPollStateImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientPollState { - public CMsgGCCStrike15_v2_ClientPollStateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientPollStateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Pollid - { get => Accessor.GetUInt32("pollid"); set => Accessor.SetUInt32("pollid", value); } + public uint Pollid { get => Accessor.GetUInt32("pollid"); set => Accessor.SetUInt32("pollid", value); } - public IProtobufRepeatedFieldValueType Names - { get => new ProtobufRepeatedFieldValueType(Accessor, "names"); } + public IProtobufRepeatedFieldValueType Names { get => new ProtobufRepeatedFieldValueType(Accessor, "names"); } - public IProtobufRepeatedFieldValueType Values - { get => new ProtobufRepeatedFieldValueType(Accessor, "values"); } + public IProtobufRepeatedFieldValueType Values { get => new ProtobufRepeatedFieldValueType(Accessor, "values"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportPlayerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportPlayerImpl.cs index bf91f658e..83c1eb470 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportPlayerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportPlayerImpl.cs @@ -1,52 +1,39 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientReportPlayerImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientReportPlayer { - public CMsgGCCStrike15_v2_ClientReportPlayerImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientReportPlayerImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint RptAimbot - { get => Accessor.GetUInt32("rpt_aimbot"); set => Accessor.SetUInt32("rpt_aimbot", value); } + public uint RptAimbot { get => Accessor.GetUInt32("rpt_aimbot"); set => Accessor.SetUInt32("rpt_aimbot", value); } - public uint RptWallhack - { get => Accessor.GetUInt32("rpt_wallhack"); set => Accessor.SetUInt32("rpt_wallhack", value); } + public uint RptWallhack { get => Accessor.GetUInt32("rpt_wallhack"); set => Accessor.SetUInt32("rpt_wallhack", value); } - public uint RptSpeedhack - { get => Accessor.GetUInt32("rpt_speedhack"); set => Accessor.SetUInt32("rpt_speedhack", value); } + public uint RptSpeedhack { get => Accessor.GetUInt32("rpt_speedhack"); set => Accessor.SetUInt32("rpt_speedhack", value); } - public uint RptTeamharm - { get => Accessor.GetUInt32("rpt_teamharm"); set => Accessor.SetUInt32("rpt_teamharm", value); } + public uint RptTeamharm { get => Accessor.GetUInt32("rpt_teamharm"); set => Accessor.SetUInt32("rpt_teamharm", value); } - public uint RptTextabuse - { get => Accessor.GetUInt32("rpt_textabuse"); set => Accessor.SetUInt32("rpt_textabuse", value); } + public uint RptTextabuse { get => Accessor.GetUInt32("rpt_textabuse"); set => Accessor.SetUInt32("rpt_textabuse", value); } - public uint RptVoiceabuse - { get => Accessor.GetUInt32("rpt_voiceabuse"); set => Accessor.SetUInt32("rpt_voiceabuse", value); } + public uint RptVoiceabuse { get => Accessor.GetUInt32("rpt_voiceabuse"); set => Accessor.SetUInt32("rpt_voiceabuse", value); } - public ulong MatchId - { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } + public ulong MatchId { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } - public bool ReportFromDemo - { get => Accessor.GetBool("report_from_demo"); set => Accessor.SetBool("report_from_demo", value); } + public bool ReportFromDemo { get => Accessor.GetBool("report_from_demo"); set => Accessor.SetBool("report_from_demo", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportResponseImpl.cs index bb2a54c11..e1a6f9d72 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportResponseImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientReportResponseImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientReportResponse { - public CMsgGCCStrike15_v2_ClientReportResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientReportResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong ConfirmationId - { get => Accessor.GetUInt64("confirmation_id"); set => Accessor.SetUInt64("confirmation_id", value); } + public ulong ConfirmationId { get => Accessor.GetUInt64("confirmation_id"); set => Accessor.SetUInt64("confirmation_id", value); } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint ServerIp - { get => Accessor.GetUInt32("server_ip"); set => Accessor.SetUInt32("server_ip", value); } + public uint ServerIp { get => Accessor.GetUInt32("server_ip"); set => Accessor.SetUInt32("server_ip", value); } - public uint ResponseType - { get => Accessor.GetUInt32("response_type"); set => Accessor.SetUInt32("response_type", value); } + public uint ResponseType { get => Accessor.GetUInt32("response_type"); set => Accessor.SetUInt32("response_type", value); } - public uint ResponseResult - { get => Accessor.GetUInt32("response_result"); set => Accessor.SetUInt32("response_result", value); } + public uint ResponseResult { get => Accessor.GetUInt32("response_result"); set => Accessor.SetUInt32("response_result", value); } - public uint Tokens - { get => Accessor.GetUInt32("tokens"); set => Accessor.SetUInt32("tokens", value); } + public uint Tokens { get => Accessor.GetUInt32("tokens"); set => Accessor.SetUInt32("tokens", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportServerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportServerImpl.cs index 28fc79e47..660bcd3b2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportServerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportServerImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientReportServerImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientReportServer { - public CMsgGCCStrike15_v2_ClientReportServerImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientReportServerImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint RptPoorperf - { get => Accessor.GetUInt32("rpt_poorperf"); set => Accessor.SetUInt32("rpt_poorperf", value); } + public uint RptPoorperf { get => Accessor.GetUInt32("rpt_poorperf"); set => Accessor.SetUInt32("rpt_poorperf", value); } - public uint RptAbusivemodels - { get => Accessor.GetUInt32("rpt_abusivemodels"); set => Accessor.SetUInt32("rpt_abusivemodels", value); } + public uint RptAbusivemodels { get => Accessor.GetUInt32("rpt_abusivemodels"); set => Accessor.SetUInt32("rpt_abusivemodels", value); } - public uint RptBadmotd - { get => Accessor.GetUInt32("rpt_badmotd"); set => Accessor.SetUInt32("rpt_badmotd", value); } + public uint RptBadmotd { get => Accessor.GetUInt32("rpt_badmotd"); set => Accessor.SetUInt32("rpt_badmotd", value); } - public uint RptListingabuse - { get => Accessor.GetUInt32("rpt_listingabuse"); set => Accessor.SetUInt32("rpt_listingabuse", value); } + public uint RptListingabuse { get => Accessor.GetUInt32("rpt_listingabuse"); set => Accessor.SetUInt32("rpt_listingabuse", value); } - public uint RptInventoryabuse - { get => Accessor.GetUInt32("rpt_inventoryabuse"); set => Accessor.SetUInt32("rpt_inventoryabuse", value); } + public uint RptInventoryabuse { get => Accessor.GetUInt32("rpt_inventoryabuse"); set => Accessor.SetUInt32("rpt_inventoryabuse", value); } - public ulong MatchId - { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } + public ulong MatchId { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportValidationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportValidationImpl.cs index 1da8db999..7767b47c8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportValidationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientReportValidationImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,88 +6,68 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientReportValidationImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientReportValidation { - public CMsgGCCStrike15_v2_ClientReportValidationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientReportValidationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string FileReport - { get => Accessor.GetString("file_report"); set => Accessor.SetString("file_report", value); } + public string FileReport { get => Accessor.GetString("file_report"); set => Accessor.SetString("file_report", value); } - public string CommandLine - { get => Accessor.GetString("command_line"); set => Accessor.SetString("command_line", value); } + public string CommandLine { get => Accessor.GetString("command_line"); set => Accessor.SetString("command_line", value); } - public uint TotalFiles - { get => Accessor.GetUInt32("total_files"); set => Accessor.SetUInt32("total_files", value); } + public uint TotalFiles { get => Accessor.GetUInt32("total_files"); set => Accessor.SetUInt32("total_files", value); } - public uint InternalError - { get => Accessor.GetUInt32("internal_error"); set => Accessor.SetUInt32("internal_error", value); } + public uint InternalError { get => Accessor.GetUInt32("internal_error"); set => Accessor.SetUInt32("internal_error", value); } - public uint TrustTime - { get => Accessor.GetUInt32("trust_time"); set => Accessor.SetUInt32("trust_time", value); } + public uint TrustTime { get => Accessor.GetUInt32("trust_time"); set => Accessor.SetUInt32("trust_time", value); } - public uint CountPending - { get => Accessor.GetUInt32("count_pending"); set => Accessor.SetUInt32("count_pending", value); } + public uint CountPending { get => Accessor.GetUInt32("count_pending"); set => Accessor.SetUInt32("count_pending", value); } - public uint CountCompleted - { get => Accessor.GetUInt32("count_completed"); set => Accessor.SetUInt32("count_completed", value); } + public uint CountCompleted { get => Accessor.GetUInt32("count_completed"); set => Accessor.SetUInt32("count_completed", value); } - public uint ProcessId - { get => Accessor.GetUInt32("process_id"); set => Accessor.SetUInt32("process_id", value); } + public uint ProcessId { get => Accessor.GetUInt32("process_id"); set => Accessor.SetUInt32("process_id", value); } - public int Osversion - { get => Accessor.GetInt32("osversion"); set => Accessor.SetInt32("osversion", value); } + public int Osversion { get => Accessor.GetInt32("osversion"); set => Accessor.SetInt32("osversion", value); } - public uint Clientreportversion - { get => Accessor.GetUInt32("clientreportversion"); set => Accessor.SetUInt32("clientreportversion", value); } + public uint Clientreportversion { get => Accessor.GetUInt32("clientreportversion"); set => Accessor.SetUInt32("clientreportversion", value); } - public uint StatusId - { get => Accessor.GetUInt32("status_id"); set => Accessor.SetUInt32("status_id", value); } + public uint StatusId { get => Accessor.GetUInt32("status_id"); set => Accessor.SetUInt32("status_id", value); } - public uint Diagnostic1 - { get => Accessor.GetUInt32("diagnostic1"); set => Accessor.SetUInt32("diagnostic1", value); } + public uint Diagnostic1 { get => Accessor.GetUInt32("diagnostic1"); set => Accessor.SetUInt32("diagnostic1", value); } - public ulong Diagnostic2 - { get => Accessor.GetUInt64("diagnostic2"); set => Accessor.SetUInt64("diagnostic2", value); } + public ulong Diagnostic2 { get => Accessor.GetUInt64("diagnostic2"); set => Accessor.SetUInt64("diagnostic2", value); } - public ulong Diagnostic3 - { get => Accessor.GetUInt64("diagnostic3"); set => Accessor.SetUInt64("diagnostic3", value); } + public ulong Diagnostic3 { get => Accessor.GetUInt64("diagnostic3"); set => Accessor.SetUInt64("diagnostic3", value); } - public string LastLaunchData - { get => Accessor.GetString("last_launch_data"); set => Accessor.SetString("last_launch_data", value); } + public string LastLaunchData { get => Accessor.GetString("last_launch_data"); set => Accessor.SetString("last_launch_data", value); } - public uint ReportCount - { get => Accessor.GetUInt32("report_count"); set => Accessor.SetUInt32("report_count", value); } + public uint ReportCount { get => Accessor.GetUInt32("report_count"); set => Accessor.SetUInt32("report_count", value); } - public ulong ClientTime - { get => Accessor.GetUInt64("client_time"); set => Accessor.SetUInt64("client_time", value); } + public ulong ClientTime { get => Accessor.GetUInt64("client_time"); set => Accessor.SetUInt64("client_time", value); } - public ulong Diagnostic4 - { get => Accessor.GetUInt64("diagnostic4"); set => Accessor.SetUInt64("diagnostic4", value); } + public ulong Diagnostic4 { get => Accessor.GetUInt64("diagnostic4"); set => Accessor.SetUInt64("diagnostic4", value); } - public ulong Diagnostic5 - { get => Accessor.GetUInt64("diagnostic5"); set => Accessor.SetUInt64("diagnostic5", value); } + public ulong Diagnostic5 { get => Accessor.GetUInt64("diagnostic5"); set => Accessor.SetUInt64("diagnostic5", value); } - public IProtobufRepeatedFieldSubMessageType Diagnostics - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "diagnostics"); } + public IProtobufRepeatedFieldSubMessageType Diagnostics { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "diagnostics"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestJoinFriendDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestJoinFriendDataImpl.cs index 4848debe4..0ab00411a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestJoinFriendDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestJoinFriendDataImpl.cs @@ -1,40 +1,32 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientRequestJoinFriendDataImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientRequestJoinFriendData { - public CMsgGCCStrike15_v2_ClientRequestJoinFriendDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientRequestJoinFriendDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Version - { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } + public uint Version { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint JoinToken - { get => Accessor.GetUInt32("join_token"); set => Accessor.SetUInt32("join_token", value); } + public uint JoinToken { get => Accessor.GetUInt32("join_token"); set => Accessor.SetUInt32("join_token", value); } - public uint JoinIpp - { get => Accessor.GetUInt32("join_ipp"); set => Accessor.SetUInt32("join_ipp", value); } + public uint JoinIpp { get => Accessor.GetUInt32("join_ipp"); set => Accessor.SetUInt32("join_ipp", value); } - public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve Res - { get => new CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl(NativeNetMessages.GetNestedMessage(Address, "res"), false); } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve Res { get => new CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl(NativeNetMessages.GetNestedMessage(Address, "res"), false); } - public string Errormsg - { get => Accessor.GetString("errormsg"); set => Accessor.SetString("errormsg", value); } + public string Errormsg { get => Accessor.GetString("errormsg"); set => Accessor.SetString("errormsg", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestJoinServerDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestJoinServerDataImpl.cs index dff4153d9..8884f8d5c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestJoinServerDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestJoinServerDataImpl.cs @@ -1,44 +1,35 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientRequestJoinServerDataImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientRequestJoinServerData { - public CMsgGCCStrike15_v2_ClientRequestJoinServerDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientRequestJoinServerDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Version - { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } + public uint Version { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public ulong Serverid - { get => Accessor.GetUInt64("serverid"); set => Accessor.SetUInt64("serverid", value); } + public ulong Serverid { get => Accessor.GetUInt64("serverid"); set => Accessor.SetUInt64("serverid", value); } - public uint ServerIp - { get => Accessor.GetUInt32("server_ip"); set => Accessor.SetUInt32("server_ip", value); } + public uint ServerIp { get => Accessor.GetUInt32("server_ip"); set => Accessor.SetUInt32("server_ip", value); } - public uint ServerPort - { get => Accessor.GetUInt32("server_port"); set => Accessor.SetUInt32("server_port", value); } + public uint ServerPort { get => Accessor.GetUInt32("server_port"); set => Accessor.SetUInt32("server_port", value); } - public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve Res - { get => new CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl(NativeNetMessages.GetNestedMessage(Address, "res"), false); } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve Res { get => new CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl(NativeNetMessages.GetNestedMessage(Address, "res"), false); } - public string Errormsg - { get => Accessor.GetString("errormsg"); set => Accessor.SetString("errormsg", value); } + public string Errormsg { get => Accessor.GetString("errormsg"); set => Accessor.SetString("errormsg", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestOffersImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestOffersImpl.cs index 32b42c75f..5544fd559 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestOffersImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestOffersImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientRequestOffersImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientRequestOffers { - public CMsgGCCStrike15_v2_ClientRequestOffersImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientRequestOffersImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestPlayersProfileImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestPlayersProfileImpl.cs index 820267a41..567fe54d8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestPlayersProfileImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestPlayersProfileImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientRequestPlayersProfileImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientRequestPlayersProfile { - public CMsgGCCStrike15_v2_ClientRequestPlayersProfileImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientRequestPlayersProfileImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint RequestIdDeprecated - { get => Accessor.GetUInt32("request_id__deprecated"); set => Accessor.SetUInt32("request_id__deprecated", value); } + public uint RequestIdDeprecated { get => Accessor.GetUInt32("request_id__deprecated"); set => Accessor.SetUInt32("request_id__deprecated", value); } - public IProtobufRepeatedFieldValueType AccountIdsDeprecated - { get => new ProtobufRepeatedFieldValueType(Accessor, "account_ids__deprecated"); } + public IProtobufRepeatedFieldValueType AccountIdsDeprecated { get => new ProtobufRepeatedFieldValueType(Accessor, "account_ids__deprecated"); } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint RequestLevel - { get => Accessor.GetUInt32("request_level"); set => Accessor.SetUInt32("request_level", value); } + public uint RequestLevel { get => Accessor.GetUInt32("request_level"); set => Accessor.SetUInt32("request_level", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestSouvenirImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestSouvenirImpl.cs index 3aa68d743..31f22d923 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestSouvenirImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestSouvenirImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientRequestSouvenirImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientRequestSouvenir { - public CMsgGCCStrike15_v2_ClientRequestSouvenirImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientRequestSouvenirImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Itemid - { get => Accessor.GetUInt64("itemid"); set => Accessor.SetUInt64("itemid", value); } + public ulong Itemid { get => Accessor.GetUInt64("itemid"); set => Accessor.SetUInt64("itemid", value); } - public ulong Matchid - { get => Accessor.GetUInt64("matchid"); set => Accessor.SetUInt64("matchid", value); } + public ulong Matchid { get => Accessor.GetUInt64("matchid"); set => Accessor.SetUInt64("matchid", value); } - public int Eventid - { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } + public int Eventid { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestWatchInfoFriendsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestWatchInfoFriendsImpl.cs index 042ec5ce3..aff8aca7f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestWatchInfoFriendsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientRequestWatchInfoFriendsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,32 +6,26 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientRequestWatchInfoFriendsImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientRequestWatchInfoFriends { - public CMsgGCCStrike15_v2_ClientRequestWatchInfoFriendsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientRequestWatchInfoFriendsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint RequestId - { get => Accessor.GetUInt32("request_id"); set => Accessor.SetUInt32("request_id", value); } + public uint RequestId { get => Accessor.GetUInt32("request_id"); set => Accessor.SetUInt32("request_id", value); } - public IProtobufRepeatedFieldValueType AccountIds - { get => new ProtobufRepeatedFieldValueType(Accessor, "account_ids"); } + public IProtobufRepeatedFieldValueType AccountIds { get => new ProtobufRepeatedFieldValueType(Accessor, "account_ids"); } - public ulong Serverid - { get => Accessor.GetUInt64("serverid"); set => Accessor.SetUInt64("serverid", value); } + public ulong Serverid { get => Accessor.GetUInt64("serverid"); set => Accessor.SetUInt64("serverid", value); } - public ulong Matchid - { get => Accessor.GetUInt64("matchid"); set => Accessor.SetUInt64("matchid", value); } + public ulong Matchid { get => Accessor.GetUInt64("matchid"); set => Accessor.SetUInt64("matchid", value); } - public uint ClientLauncher - { get => Accessor.GetUInt32("client_launcher"); set => Accessor.SetUInt32("client_launcher", value); } + public uint ClientLauncher { get => Accessor.GetUInt32("client_launcher"); set => Accessor.SetUInt32("client_launcher", value); } - public IProtobufRepeatedFieldSubMessageType DataCenterPings - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "data_center_pings"); } + public IProtobufRepeatedFieldSubMessageType DataCenterPings { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "data_center_pings"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientSubmitSurveyVoteImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientSubmitSurveyVoteImpl.cs index b4050a331..6de574633 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientSubmitSurveyVoteImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientSubmitSurveyVoteImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientSubmitSurveyVoteImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientSubmitSurveyVote { - public CMsgGCCStrike15_v2_ClientSubmitSurveyVoteImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientSubmitSurveyVoteImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint SurveyId - { get => Accessor.GetUInt32("survey_id"); set => Accessor.SetUInt32("survey_id", value); } + public uint SurveyId { get => Accessor.GetUInt32("survey_id"); set => Accessor.SetUInt32("survey_id", value); } - public uint Vote - { get => Accessor.GetUInt32("vote"); set => Accessor.SetUInt32("vote", value); } + public uint Vote { get => Accessor.GetUInt32("vote"); set => Accessor.SetUInt32("vote", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientToGCChatImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientToGCChatImpl.cs index 2006dadfe..02d203dbd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientToGCChatImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientToGCChatImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientToGCChatImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientToGCChat { - public CMsgGCCStrike15_v2_ClientToGCChatImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientToGCChatImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong MatchId - { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } + public ulong MatchId { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientToGCRequestElevateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientToGCRequestElevateImpl.cs index 4af4398ae..bd3b211b8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientToGCRequestElevateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientToGCRequestElevateImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientToGCRequestElevateImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientToGCRequestElevate { - public CMsgGCCStrike15_v2_ClientToGCRequestElevateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientToGCRequestElevateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Stage - { get => Accessor.GetUInt32("stage"); set => Accessor.SetUInt32("stage", value); } + public uint Stage { get => Accessor.GetUInt32("stage"); set => Accessor.SetUInt32("stage", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientToGCRequestTicketImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientToGCRequestTicketImpl.cs index 26f6674be..e88633198 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientToGCRequestTicketImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientToGCRequestTicketImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientToGCRequestTicketImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientToGCRequestTicket { - public CMsgGCCStrike15_v2_ClientToGCRequestTicketImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientToGCRequestTicketImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong AuthorizedSteamId - { get => Accessor.GetUInt64("authorized_steam_id"); set => Accessor.SetUInt64("authorized_steam_id", value); } + public ulong AuthorizedSteamId { get => Accessor.GetUInt64("authorized_steam_id"); set => Accessor.SetUInt64("authorized_steam_id", value); } - public uint AuthorizedPublicIp - { get => Accessor.GetUInt32("authorized_public_ip"); set => Accessor.SetUInt32("authorized_public_ip", value); } + public uint AuthorizedPublicIp { get => Accessor.GetUInt32("authorized_public_ip"); set => Accessor.SetUInt32("authorized_public_ip", value); } - public ulong GameserverSteamId - { get => Accessor.GetUInt64("gameserver_steam_id"); set => Accessor.SetUInt64("gameserver_steam_id", value); } + public ulong GameserverSteamId { get => Accessor.GetUInt64("gameserver_steam_id"); set => Accessor.SetUInt64("gameserver_steam_id", value); } - public string GameserverSdrRouting - { get => Accessor.GetString("gameserver_sdr_routing"); set => Accessor.SetString("gameserver_sdr_routing", value); } + public string GameserverSdrRouting { get => Accessor.GetString("gameserver_sdr_routing"); set => Accessor.SetString("gameserver_sdr_routing", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientVarValueNotificationInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientVarValueNotificationInfoImpl.cs index 9d6b9391e..12c6cd764 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientVarValueNotificationInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ClientVarValueNotificationInfoImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,28 +6,23 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ClientVarValueNotificationInfoImpl : TypedProtobuf, CMsgGCCStrike15_v2_ClientVarValueNotificationInfo { - public CMsgGCCStrike15_v2_ClientVarValueNotificationInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ClientVarValueNotificationInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string ValueName - { get => Accessor.GetString("value_name"); set => Accessor.SetString("value_name", value); } + public string ValueName { get => Accessor.GetString("value_name"); set => Accessor.SetString("value_name", value); } - public int ValueInt - { get => Accessor.GetInt32("value_int"); set => Accessor.SetInt32("value_int", value); } + public int ValueInt { get => Accessor.GetInt32("value_int"); set => Accessor.SetInt32("value_int", value); } - public uint ServerAddr - { get => Accessor.GetUInt32("server_addr"); set => Accessor.SetUInt32("server_addr", value); } + public uint ServerAddr { get => Accessor.GetUInt32("server_addr"); set => Accessor.SetUInt32("server_addr", value); } - public uint ServerPort - { get => Accessor.GetUInt32("server_port"); set => Accessor.SetUInt32("server_port", value); } + public uint ServerPort { get => Accessor.GetUInt32("server_port"); set => Accessor.SetUInt32("server_port", value); } - public IProtobufRepeatedFieldValueType ChokedBlocks - { get => new ProtobufRepeatedFieldValueType(Accessor, "choked_blocks"); } + public IProtobufRepeatedFieldValueType ChokedBlocks { get => new ProtobufRepeatedFieldValueType(Accessor, "choked_blocks"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_FantasyImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_FantasyImpl.cs index d56f796b6..d958acddb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_FantasyImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_FantasyImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_FantasyImpl : TypedProtobuf, CMsgGCCStrike15_v2_Fantasy { - public CMsgGCCStrike15_v2_FantasyImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_FantasyImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint EventId - { get => Accessor.GetUInt32("event_id"); set => Accessor.SetUInt32("event_id", value); } + public uint EventId { get => Accessor.GetUInt32("event_id"); set => Accessor.SetUInt32("event_id", value); } - public IProtobufRepeatedFieldSubMessageType Teams - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "teams"); } + public IProtobufRepeatedFieldSubMessageType Teams { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "teams"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Fantasy_FantasySlotImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Fantasy_FantasySlotImpl.cs index 8160f046c..e7a934c9e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Fantasy_FantasySlotImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Fantasy_FantasySlotImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Fantasy_FantasySlotImpl : TypedProtobuf, CMsgGCCStrike15_v2_Fantasy_FantasySlot { - public CMsgGCCStrike15_v2_Fantasy_FantasySlotImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Fantasy_FantasySlotImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Type - { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + public int Type { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } - public int Pick - { get => Accessor.GetInt32("pick"); set => Accessor.SetInt32("pick", value); } + public int Pick { get => Accessor.GetInt32("pick"); set => Accessor.SetInt32("pick", value); } - public ulong Itemid - { get => Accessor.GetUInt64("itemid"); set => Accessor.SetUInt64("itemid", value); } + public ulong Itemid { get => Accessor.GetUInt64("itemid"); set => Accessor.SetUInt64("itemid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Fantasy_FantasyTeamImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Fantasy_FantasyTeamImpl.cs index 83fc71d77..082c01da2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Fantasy_FantasyTeamImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Fantasy_FantasyTeamImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Fantasy_FantasyTeamImpl : TypedProtobuf, CMsgGCCStrike15_v2_Fantasy_FantasyTeam { - public CMsgGCCStrike15_v2_Fantasy_FantasyTeamImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Fantasy_FantasyTeamImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Sectionid - { get => Accessor.GetInt32("sectionid"); set => Accessor.SetInt32("sectionid", value); } + public int Sectionid { get => Accessor.GetInt32("sectionid"); set => Accessor.SetInt32("sectionid", value); } - public IProtobufRepeatedFieldSubMessageType Slots - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "slots"); } + public IProtobufRepeatedFieldSubMessageType Slots { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "slots"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientInitSystemImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientInitSystemImpl.cs index 3fce23269..fafb8111e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientInitSystemImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientInitSystemImpl.cs @@ -1,52 +1,39 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GC2ClientInitSystemImpl : TypedProtobuf, CMsgGCCStrike15_v2_GC2ClientInitSystem { - public CMsgGCCStrike15_v2_GC2ClientInitSystemImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GC2ClientInitSystemImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool Load - { get => Accessor.GetBool("load"); set => Accessor.SetBool("load", value); } + public bool Load { get => Accessor.GetBool("load"); set => Accessor.SetBool("load", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public string Outputname - { get => Accessor.GetString("outputname"); set => Accessor.SetString("outputname", value); } + public string Outputname { get => Accessor.GetString("outputname"); set => Accessor.SetString("outputname", value); } - public byte[] KeyData - { get => Accessor.GetBytes("key_data"); set => Accessor.SetBytes("key_data", value); } + public byte[] KeyData { get => Accessor.GetBytes("key_data"); set => Accessor.SetBytes("key_data", value); } - public byte[] ShaHash - { get => Accessor.GetBytes("sha_hash"); set => Accessor.SetBytes("sha_hash", value); } + public byte[] ShaHash { get => Accessor.GetBytes("sha_hash"); set => Accessor.SetBytes("sha_hash", value); } - public int Cookie - { get => Accessor.GetInt32("cookie"); set => Accessor.SetInt32("cookie", value); } + public int Cookie { get => Accessor.GetInt32("cookie"); set => Accessor.SetInt32("cookie", value); } - public string Manifest - { get => Accessor.GetString("manifest"); set => Accessor.SetString("manifest", value); } + public string Manifest { get => Accessor.GetString("manifest"); set => Accessor.SetString("manifest", value); } - public byte[] SystemPackage - { get => Accessor.GetBytes("system_package"); set => Accessor.SetBytes("system_package", value); } + public byte[] SystemPackage { get => Accessor.GetBytes("system_package"); set => Accessor.SetBytes("system_package", value); } - public bool LoadSystem - { get => Accessor.GetBool("load_system"); set => Accessor.SetBool("load_system", value); } + public bool LoadSystem { get => Accessor.GetBool("load_system"); set => Accessor.SetBool("load_system", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientInitSystem_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientInitSystem_ResponseImpl.cs index 8d744e9e2..4c6137ed4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientInitSystem_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientInitSystem_ResponseImpl.cs @@ -1,56 +1,42 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GC2ClientInitSystem_ResponseImpl : TypedProtobuf, CMsgGCCStrike15_v2_GC2ClientInitSystem_Response { - public CMsgGCCStrike15_v2_GC2ClientInitSystem_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GC2ClientInitSystem_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool Success - { get => Accessor.GetBool("success"); set => Accessor.SetBool("success", value); } + public bool Success { get => Accessor.GetBool("success"); set => Accessor.SetBool("success", value); } - public string Diagnostic - { get => Accessor.GetString("diagnostic"); set => Accessor.SetString("diagnostic", value); } + public string Diagnostic { get => Accessor.GetString("diagnostic"); set => Accessor.SetString("diagnostic", value); } - public byte[] ShaHash - { get => Accessor.GetBytes("sha_hash"); set => Accessor.SetBytes("sha_hash", value); } + public byte[] ShaHash { get => Accessor.GetBytes("sha_hash"); set => Accessor.SetBytes("sha_hash", value); } - public int Response - { get => Accessor.GetInt32("response"); set => Accessor.SetInt32("response", value); } + public int Response { get => Accessor.GetInt32("response"); set => Accessor.SetInt32("response", value); } - public int ErrorCode1 - { get => Accessor.GetInt32("error_code1"); set => Accessor.SetInt32("error_code1", value); } + public int ErrorCode1 { get => Accessor.GetInt32("error_code1"); set => Accessor.SetInt32("error_code1", value); } - public int ErrorCode2 - { get => Accessor.GetInt32("error_code2"); set => Accessor.SetInt32("error_code2", value); } + public int ErrorCode2 { get => Accessor.GetInt32("error_code2"); set => Accessor.SetInt32("error_code2", value); } - public long Handle - { get => Accessor.GetInt64("handle"); set => Accessor.SetInt64("handle", value); } + public long Handle { get => Accessor.GetInt64("handle"); set => Accessor.SetInt64("handle", value); } - public EInitSystemResult EinitResult - { get => (EInitSystemResult)Accessor.GetInt32("einit_result"); set => Accessor.SetInt32("einit_result", (int)value); } + public EInitSystemResult EinitResult { get => (EInitSystemResult)Accessor.GetInt32("einit_result"); set => Accessor.SetInt32("einit_result", (int)value); } - public int AuxSystem1 - { get => Accessor.GetInt32("aux_system1"); set => Accessor.SetInt32("aux_system1", value); } + public int AuxSystem1 { get => Accessor.GetInt32("aux_system1"); set => Accessor.SetInt32("aux_system1", value); } - public int AuxSystem2 - { get => Accessor.GetInt32("aux_system2"); set => Accessor.SetInt32("aux_system2", value); } + public int AuxSystem2 { get => Accessor.GetInt32("aux_system2"); set => Accessor.SetInt32("aux_system2", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientNotifyXPShopImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientNotifyXPShopImpl.cs index 2675002bc..b6ae094c0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientNotifyXPShopImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientNotifyXPShopImpl.cs @@ -1,32 +1,26 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GC2ClientNotifyXPShopImpl : TypedProtobuf, CMsgGCCStrike15_v2_GC2ClientNotifyXPShop { - public CMsgGCCStrike15_v2_GC2ClientNotifyXPShopImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GC2ClientNotifyXPShopImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CSOAccountXpShop Prematch - { get => new CSOAccountXpShopImpl(NativeNetMessages.GetNestedMessage(Address, "prematch"), false); } + public CSOAccountXpShop Prematch { get => new CSOAccountXpShopImpl(NativeNetMessages.GetNestedMessage(Address, "prematch"), false); } - public CSOAccountXpShop Postmatch - { get => new CSOAccountXpShopImpl(NativeNetMessages.GetNestedMessage(Address, "postmatch"), false); } + public CSOAccountXpShop Postmatch { get => new CSOAccountXpShopImpl(NativeNetMessages.GetNestedMessage(Address, "postmatch"), false); } - public uint CurrentXp - { get => Accessor.GetUInt32("current_xp"); set => Accessor.SetUInt32("current_xp", value); } + public uint CurrentXp { get => Accessor.GetUInt32("current_xp"); set => Accessor.SetUInt32("current_xp", value); } - public uint CurrentLevel - { get => Accessor.GetUInt32("current_level"); set => Accessor.SetUInt32("current_level", value); } + public uint CurrentLevel { get => Accessor.GetUInt32("current_level"); set => Accessor.SetUInt32("current_level", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientRefuseSecureModeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientRefuseSecureModeImpl.cs index df315011a..18a4c9c70 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientRefuseSecureModeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientRefuseSecureModeImpl.cs @@ -1,52 +1,39 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GC2ClientRefuseSecureModeImpl : TypedProtobuf, CMsgGCCStrike15_v2_GC2ClientRefuseSecureMode { - public CMsgGCCStrike15_v2_GC2ClientRefuseSecureModeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GC2ClientRefuseSecureModeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string FileReport - { get => Accessor.GetString("file_report"); set => Accessor.SetString("file_report", value); } + public string FileReport { get => Accessor.GetString("file_report"); set => Accessor.SetString("file_report", value); } - public bool OfferInsecureMode - { get => Accessor.GetBool("offer_insecure_mode"); set => Accessor.SetBool("offer_insecure_mode", value); } + public bool OfferInsecureMode { get => Accessor.GetBool("offer_insecure_mode"); set => Accessor.SetBool("offer_insecure_mode", value); } - public bool OfferSecureMode - { get => Accessor.GetBool("offer_secure_mode"); set => Accessor.SetBool("offer_secure_mode", value); } + public bool OfferSecureMode { get => Accessor.GetBool("offer_secure_mode"); set => Accessor.SetBool("offer_secure_mode", value); } - public bool ShowUnsignedUi - { get => Accessor.GetBool("show_unsigned_ui"); set => Accessor.SetBool("show_unsigned_ui", value); } + public bool ShowUnsignedUi { get => Accessor.GetBool("show_unsigned_ui"); set => Accessor.SetBool("show_unsigned_ui", value); } - public bool KickUser - { get => Accessor.GetBool("kick_user"); set => Accessor.SetBool("kick_user", value); } + public bool KickUser { get => Accessor.GetBool("kick_user"); set => Accessor.SetBool("kick_user", value); } - public bool ShowTrustedUi - { get => Accessor.GetBool("show_trusted_ui"); set => Accessor.SetBool("show_trusted_ui", value); } + public bool ShowTrustedUi { get => Accessor.GetBool("show_trusted_ui"); set => Accessor.SetBool("show_trusted_ui", value); } - public bool ShowWarningNotTrusted - { get => Accessor.GetBool("show_warning_not_trusted"); set => Accessor.SetBool("show_warning_not_trusted", value); } + public bool ShowWarningNotTrusted { get => Accessor.GetBool("show_warning_not_trusted"); set => Accessor.SetBool("show_warning_not_trusted", value); } - public bool ShowWarningNotTrusted2 - { get => Accessor.GetBool("show_warning_not_trusted_2"); set => Accessor.SetBool("show_warning_not_trusted_2", value); } + public bool ShowWarningNotTrusted2 { get => Accessor.GetBool("show_warning_not_trusted_2"); set => Accessor.SetBool("show_warning_not_trusted_2", value); } - public string FilesPreventedTrusted - { get => Accessor.GetString("files_prevented_trusted"); set => Accessor.SetString("files_prevented_trusted", value); } + public string FilesPreventedTrusted { get => Accessor.GetString("files_prevented_trusted"); set => Accessor.SetString("files_prevented_trusted", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientRequestValidationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientRequestValidationImpl.cs index 41f462575..628d6b572 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientRequestValidationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientRequestValidationImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GC2ClientRequestValidationImpl : TypedProtobuf, CMsgGCCStrike15_v2_GC2ClientRequestValidation { - public CMsgGCCStrike15_v2_GC2ClientRequestValidationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GC2ClientRequestValidationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool FullReport - { get => Accessor.GetBool("full_report"); set => Accessor.SetBool("full_report", value); } + public bool FullReport { get => Accessor.GetBool("full_report"); set => Accessor.SetBool("full_report", value); } - public string Module - { get => Accessor.GetString("module"); set => Accessor.SetString("module", value); } + public string Module { get => Accessor.GetString("module"); set => Accessor.SetString("module", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientTextMsgImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientTextMsgImpl.cs index 4549321a5..78d6d6b81 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientTextMsgImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientTextMsgImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GC2ClientTextMsgImpl : TypedProtobuf, CMsgGCCStrike15_v2_GC2ClientTextMsg { - public CMsgGCCStrike15_v2_GC2ClientTextMsgImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GC2ClientTextMsgImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Id - { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } + public uint Id { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } - public uint Type - { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } + public uint Type { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } - public byte[] Payload - { get => Accessor.GetBytes("payload"); set => Accessor.SetBytes("payload", value); } + public byte[] Payload { get => Accessor.GetBytes("payload"); set => Accessor.SetBytes("payload", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientTournamentInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientTournamentInfoImpl.cs index 4bc26f6a1..2aa96ba8a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientTournamentInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ClientTournamentInfoImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GC2ClientTournamentInfoImpl : TypedProtobuf, CMsgGCCStrike15_v2_GC2ClientTournamentInfo { - public CMsgGCCStrike15_v2_GC2ClientTournamentInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GC2ClientTournamentInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Eventid - { get => Accessor.GetUInt32("eventid"); set => Accessor.SetUInt32("eventid", value); } + public uint Eventid { get => Accessor.GetUInt32("eventid"); set => Accessor.SetUInt32("eventid", value); } - public uint Stageid - { get => Accessor.GetUInt32("stageid"); set => Accessor.SetUInt32("stageid", value); } + public uint Stageid { get => Accessor.GetUInt32("stageid"); set => Accessor.SetUInt32("stageid", value); } - public uint GameType - { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } + public uint GameType { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } - public IProtobufRepeatedFieldValueType Teamids - { get => new ProtobufRepeatedFieldValueType(Accessor, "teamids"); } + public IProtobufRepeatedFieldValueType Teamids { get => new ProtobufRepeatedFieldValueType(Accessor, "teamids"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ServerReservationUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ServerReservationUpdateImpl.cs index 2079595c0..c24bc1550 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ServerReservationUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GC2ServerReservationUpdateImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GC2ServerReservationUpdateImpl : TypedProtobuf, CMsgGCCStrike15_v2_GC2ServerReservationUpdate { - public CMsgGCCStrike15_v2_GC2ServerReservationUpdateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GC2ServerReservationUpdateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ViewersExternalTotal - { get => Accessor.GetUInt32("viewers_external_total"); set => Accessor.SetUInt32("viewers_external_total", value); } + public uint ViewersExternalTotal { get => Accessor.GetUInt32("viewers_external_total"); set => Accessor.SetUInt32("viewers_external_total", value); } - public uint ViewersExternalSteam - { get => Accessor.GetUInt32("viewers_external_steam"); set => Accessor.SetUInt32("viewers_external_steam", value); } + public uint ViewersExternalSteam { get => Accessor.GetUInt32("viewers_external_steam"); set => Accessor.SetUInt32("viewers_external_steam", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GCToClientChatImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GCToClientChatImpl.cs index 0f6afa552..b2e5541ce 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GCToClientChatImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GCToClientChatImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GCToClientChatImpl : TypedProtobuf, CMsgGCCStrike15_v2_GCToClientChat { - public CMsgGCCStrike15_v2_GCToClientChatImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GCToClientChatImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GetEventFavorites_RequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GetEventFavorites_RequestImpl.cs index 6120b4ea5..427e69013 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GetEventFavorites_RequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GetEventFavorites_RequestImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GetEventFavorites_RequestImpl : TypedProtobuf, CMsgGCCStrike15_v2_GetEventFavorites_Request { - public CMsgGCCStrike15_v2_GetEventFavorites_RequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GetEventFavorites_RequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool AllEvents - { get => Accessor.GetBool("all_events"); set => Accessor.SetBool("all_events", value); } + public bool AllEvents { get => Accessor.GetBool("all_events"); set => Accessor.SetBool("all_events", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GetEventFavorites_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GetEventFavorites_ResponseImpl.cs index 819e3e189..10872a6e4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GetEventFavorites_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GetEventFavorites_ResponseImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GetEventFavorites_ResponseImpl : TypedProtobuf, CMsgGCCStrike15_v2_GetEventFavorites_Response { - public CMsgGCCStrike15_v2_GetEventFavorites_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GetEventFavorites_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool AllEvents - { get => Accessor.GetBool("all_events"); set => Accessor.SetBool("all_events", value); } + public bool AllEvents { get => Accessor.GetBool("all_events"); set => Accessor.SetBool("all_events", value); } - public string JsonFavorites - { get => Accessor.GetString("json_favorites"); set => Accessor.SetString("json_favorites", value); } + public string JsonFavorites { get => Accessor.GetString("json_favorites"); set => Accessor.SetString("json_favorites", value); } - public string JsonFeatured - { get => Accessor.GetString("json_featured"); set => Accessor.SetString("json_featured", value); } + public string JsonFeatured { get => Accessor.GetString("json_featured"); set => Accessor.SetString("json_featured", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GiftsLeaderboardRequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GiftsLeaderboardRequestImpl.cs index d641f1611..c7d438c0f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GiftsLeaderboardRequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GiftsLeaderboardRequestImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GiftsLeaderboardRequestImpl : TypedProtobuf, CMsgGCCStrike15_v2_GiftsLeaderboardRequest { - public CMsgGCCStrike15_v2_GiftsLeaderboardRequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GiftsLeaderboardRequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GiftsLeaderboardResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GiftsLeaderboardResponseImpl.cs index 7fd2e5305..8b10a1f7f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GiftsLeaderboardResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GiftsLeaderboardResponseImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,28 +6,23 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GiftsLeaderboardResponseImpl : TypedProtobuf, CMsgGCCStrike15_v2_GiftsLeaderboardResponse { - public CMsgGCCStrike15_v2_GiftsLeaderboardResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GiftsLeaderboardResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Servertime - { get => Accessor.GetUInt32("servertime"); set => Accessor.SetUInt32("servertime", value); } + public uint Servertime { get => Accessor.GetUInt32("servertime"); set => Accessor.SetUInt32("servertime", value); } - public uint TimePeriodSeconds - { get => Accessor.GetUInt32("time_period_seconds"); set => Accessor.SetUInt32("time_period_seconds", value); } + public uint TimePeriodSeconds { get => Accessor.GetUInt32("time_period_seconds"); set => Accessor.SetUInt32("time_period_seconds", value); } - public uint TotalGiftsGiven - { get => Accessor.GetUInt32("total_gifts_given"); set => Accessor.SetUInt32("total_gifts_given", value); } + public uint TotalGiftsGiven { get => Accessor.GetUInt32("total_gifts_given"); set => Accessor.SetUInt32("total_gifts_given", value); } - public uint TotalGivers - { get => Accessor.GetUInt32("total_givers"); set => Accessor.SetUInt32("total_givers", value); } + public uint TotalGivers { get => Accessor.GetUInt32("total_givers"); set => Accessor.SetUInt32("total_givers", value); } - public IProtobufRepeatedFieldSubMessageType Entries - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entries"); } + public IProtobufRepeatedFieldSubMessageType Entries { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entries"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntryImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntryImpl.cs index bb1d6cfaf..01a4b9c38 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntryImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntryImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntryImpl : TypedProtobuf, CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntry { - public CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntryImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntryImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public uint Gifts - { get => Accessor.GetUInt32("gifts"); set => Accessor.SetUInt32("gifts", value); } + public uint Gifts { get => Accessor.GetUInt32("gifts"); set => Accessor.SetUInt32("gifts", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchEndRewardDropsNotificationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchEndRewardDropsNotificationImpl.cs index b01e8527c..11c8d23f5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchEndRewardDropsNotificationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchEndRewardDropsNotificationImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchEndRewardDropsNotificationImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchEndRewardDropsNotification { - public CMsgGCCStrike15_v2_MatchEndRewardDropsNotificationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchEndRewardDropsNotificationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CEconItemPreviewDataBlock Iteminfo - { get => new CEconItemPreviewDataBlockImpl(NativeNetMessages.GetNestedMessage(Address, "iteminfo"), false); } + public CEconItemPreviewDataBlock Iteminfo { get => new CEconItemPreviewDataBlockImpl(NativeNetMessages.GetNestedMessage(Address, "iteminfo"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchEndRunRewardDropsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchEndRunRewardDropsImpl.cs index c375022b4..7b263eb94 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchEndRunRewardDropsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchEndRunRewardDropsImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchEndRunRewardDropsImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchEndRunRewardDrops { - public CMsgGCCStrike15_v2_MatchEndRunRewardDropsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchEndRunRewardDropsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CMsgGCCStrike15_v2_MatchmakingServerReservationResponse Serverinfo - { get => new CMsgGCCStrike15_v2_MatchmakingServerReservationResponseImpl(NativeNetMessages.GetNestedMessage(Address, "serverinfo"), false); } + public CMsgGCCStrike15_v2_MatchmakingServerReservationResponse Serverinfo { get => new CMsgGCCStrike15_v2_MatchmakingServerReservationResponseImpl(NativeNetMessages.GetNestedMessage(Address, "serverinfo"), false); } - public CMsgGC_ServerQuestUpdateData MatchEndQuestData - { get => new CMsgGC_ServerQuestUpdateDataImpl(NativeNetMessages.GetNestedMessage(Address, "match_end_quest_data"), false); } + public CMsgGC_ServerQuestUpdateData MatchEndQuestData { get => new CMsgGC_ServerQuestUpdateDataImpl(NativeNetMessages.GetNestedMessage(Address, "match_end_quest_data"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListImpl.cs index d2a404601..f933736d6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,32 +8,26 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchListImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchList { - public CMsgGCCStrike15_v2_MatchListImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchListImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Msgrequestid - { get => Accessor.GetUInt32("msgrequestid"); set => Accessor.SetUInt32("msgrequestid", value); } + public uint Msgrequestid { get => Accessor.GetUInt32("msgrequestid"); set => Accessor.SetUInt32("msgrequestid", value); } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public uint Servertime - { get => Accessor.GetUInt32("servertime"); set => Accessor.SetUInt32("servertime", value); } + public uint Servertime { get => Accessor.GetUInt32("servertime"); set => Accessor.SetUInt32("servertime", value); } - public IProtobufRepeatedFieldSubMessageType Matches - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "matches"); } + public IProtobufRepeatedFieldSubMessageType Matches { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "matches"); } - public IProtobufRepeatedFieldSubMessageType Streams - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "streams"); } + public IProtobufRepeatedFieldSubMessageType Streams { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "streams"); } - public CDataGCCStrike15_v2_TournamentInfo Tournamentinfo - { get => new CDataGCCStrike15_v2_TournamentInfoImpl(NativeNetMessages.GetNestedMessage(Address, "tournamentinfo"), false); } + public CDataGCCStrike15_v2_TournamentInfo Tournamentinfo { get => new CDataGCCStrike15_v2_TournamentInfoImpl(NativeNetMessages.GetNestedMessage(Address, "tournamentinfo"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGamesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGamesImpl.cs index ebc36356e..97318a8e6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGamesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGamesImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGamesImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGames { - public CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGamesImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGamesImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestFullGameInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestFullGameInfoImpl.cs index 2389ebe2d..7659a78f5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestFullGameInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestFullGameInfoImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchListRequestFullGameInfoImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchListRequestFullGameInfo { - public CMsgGCCStrike15_v2_MatchListRequestFullGameInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchListRequestFullGameInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Matchid - { get => Accessor.GetUInt64("matchid"); set => Accessor.SetUInt64("matchid", value); } + public ulong Matchid { get => Accessor.GetUInt64("matchid"); set => Accessor.SetUInt64("matchid", value); } - public ulong Outcomeid - { get => Accessor.GetUInt64("outcomeid"); set => Accessor.SetUInt64("outcomeid", value); } + public ulong Outcomeid { get => Accessor.GetUInt64("outcomeid"); set => Accessor.SetUInt64("outcomeid", value); } - public uint Token - { get => Accessor.GetUInt32("token"); set => Accessor.SetUInt32("token", value); } + public uint Token { get => Accessor.GetUInt32("token"); set => Accessor.SetUInt32("token", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestLiveGameForUserImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestLiveGameForUserImpl.cs index b6b480e9f..3bed161ae 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestLiveGameForUserImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestLiveGameForUserImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchListRequestLiveGameForUserImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchListRequestLiveGameForUser { - public CMsgGCCStrike15_v2_MatchListRequestLiveGameForUserImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchListRequestLiveGameForUserImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestRecentUserGamesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestRecentUserGamesImpl.cs index 761f5975d..a20cb2e53 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestRecentUserGamesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestRecentUserGamesImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchListRequestRecentUserGamesImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchListRequestRecentUserGames { - public CMsgGCCStrike15_v2_MatchListRequestRecentUserGamesImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchListRequestRecentUserGamesImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestTournamentGamesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestTournamentGamesImpl.cs index 58c35ea42..ec8c77002 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestTournamentGamesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListRequestTournamentGamesImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchListRequestTournamentGamesImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchListRequestTournamentGames { - public CMsgGCCStrike15_v2_MatchListRequestTournamentGamesImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchListRequestTournamentGamesImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Eventid - { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } + public int Eventid { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmtImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmtImpl.cs index af30d89e5..8ac57e479 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmtImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmtImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmtImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmt { - public CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmtImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmtImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Eventid - { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } + public int Eventid { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } - public IProtobufRepeatedFieldSubMessageType Matches - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "matches"); } + public IProtobufRepeatedFieldSubMessageType Matches { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "matches"); } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingClient2GCHelloImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingClient2GCHelloImpl.cs index 99db84760..14d9e8b30 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingClient2GCHelloImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingClient2GCHelloImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingClient2GCHelloImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingClient2GCHello { - public CMsgGCCStrike15_v2_MatchmakingClient2GCHelloImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingClient2GCHelloImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingClient2ServerPingImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingClient2ServerPingImpl.cs index f7c424e10..e3f2a4161 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingClient2ServerPingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingClient2ServerPingImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,44 +6,35 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingClient2ServerPingImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingClient2ServerPing { - public CMsgGCCStrike15_v2_MatchmakingClient2ServerPingImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingClient2ServerPingImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Gameserverpings - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "gameserverpings"); } + public IProtobufRepeatedFieldSubMessageType Gameserverpings { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "gameserverpings"); } - public int OffsetIndex - { get => Accessor.GetInt32("offset_index"); set => Accessor.SetInt32("offset_index", value); } + public int OffsetIndex { get => Accessor.GetInt32("offset_index"); set => Accessor.SetInt32("offset_index", value); } - public int FinalBatch - { get => Accessor.GetInt32("final_batch"); set => Accessor.SetInt32("final_batch", value); } + public int FinalBatch { get => Accessor.GetInt32("final_batch"); set => Accessor.SetInt32("final_batch", value); } - public IProtobufRepeatedFieldSubMessageType DataCenterPings - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "data_center_pings"); } + public IProtobufRepeatedFieldSubMessageType DataCenterPings { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "data_center_pings"); } - public uint MaxPing - { get => Accessor.GetUInt32("max_ping"); set => Accessor.SetUInt32("max_ping", value); } + public uint MaxPing { get => Accessor.GetUInt32("max_ping"); set => Accessor.SetUInt32("max_ping", value); } - public uint TestToken - { get => Accessor.GetUInt32("test_token"); set => Accessor.SetUInt32("test_token", value); } + public uint TestToken { get => Accessor.GetUInt32("test_token"); set => Accessor.SetUInt32("test_token", value); } - public byte[] SearchKey - { get => Accessor.GetBytes("search_key"); set => Accessor.SetBytes("search_key", value); } + public byte[] SearchKey { get => Accessor.GetBytes("search_key"); set => Accessor.SetBytes("search_key", value); } - public IProtobufRepeatedFieldSubMessageType Notes - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "notes"); } + public IProtobufRepeatedFieldSubMessageType Notes { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "notes"); } - public string DebugMessage - { get => Accessor.GetString("debug_message"); set => Accessor.SetString("debug_message", value); } + public string DebugMessage { get => Accessor.GetString("debug_message"); set => Accessor.SetString("debug_message", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandonImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandonImpl.cs index 757852544..603f7713f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandonImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandonImpl.cs @@ -1,32 +1,26 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandonImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandon { - public CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandonImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandonImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve AbandonedMatch - { get => new CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl(NativeNetMessages.GetNestedMessage(Address, "abandoned_match"), false); } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve AbandonedMatch { get => new CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl(NativeNetMessages.GetNestedMessage(Address, "abandoned_match"), false); } - public uint PenaltySeconds - { get => Accessor.GetUInt32("penalty_seconds"); set => Accessor.SetUInt32("penalty_seconds", value); } + public uint PenaltySeconds { get => Accessor.GetUInt32("penalty_seconds"); set => Accessor.SetUInt32("penalty_seconds", value); } - public uint PenaltyReason - { get => Accessor.GetUInt32("penalty_reason"); set => Accessor.SetUInt32("penalty_reason", value); } + public uint PenaltyReason { get => Accessor.GetUInt32("penalty_reason"); set => Accessor.SetUInt32("penalty_reason", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientHelloImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientHelloImpl.cs index eb8f03570..23899f6fb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientHelloImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientHelloImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,88 +8,68 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingGC2ClientHelloImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingGC2ClientHello { - public CMsgGCCStrike15_v2_MatchmakingGC2ClientHelloImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientHelloImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve Ongoingmatch - { get => new CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl(NativeNetMessages.GetNestedMessage(Address, "ongoingmatch"), false); } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve Ongoingmatch { get => new CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl(NativeNetMessages.GetNestedMessage(Address, "ongoingmatch"), false); } - public GlobalStatistics GlobalStats - { get => new GlobalStatisticsImpl(NativeNetMessages.GetNestedMessage(Address, "global_stats"), false); } + public GlobalStatistics GlobalStats { get => new GlobalStatisticsImpl(NativeNetMessages.GetNestedMessage(Address, "global_stats"), false); } - public uint PenaltySeconds - { get => Accessor.GetUInt32("penalty_seconds"); set => Accessor.SetUInt32("penalty_seconds", value); } + public uint PenaltySeconds { get => Accessor.GetUInt32("penalty_seconds"); set => Accessor.SetUInt32("penalty_seconds", value); } - public uint PenaltyReason - { get => Accessor.GetUInt32("penalty_reason"); set => Accessor.SetUInt32("penalty_reason", value); } + public uint PenaltyReason { get => Accessor.GetUInt32("penalty_reason"); set => Accessor.SetUInt32("penalty_reason", value); } - public int VacBanned - { get => Accessor.GetInt32("vac_banned"); set => Accessor.SetInt32("vac_banned", value); } + public int VacBanned { get => Accessor.GetInt32("vac_banned"); set => Accessor.SetInt32("vac_banned", value); } - public PlayerRankingInfo Ranking - { get => new PlayerRankingInfoImpl(NativeNetMessages.GetNestedMessage(Address, "ranking"), false); } + public PlayerRankingInfo Ranking { get => new PlayerRankingInfoImpl(NativeNetMessages.GetNestedMessage(Address, "ranking"), false); } - public PlayerCommendationInfo Commendation - { get => new PlayerCommendationInfoImpl(NativeNetMessages.GetNestedMessage(Address, "commendation"), false); } + public PlayerCommendationInfo Commendation { get => new PlayerCommendationInfoImpl(NativeNetMessages.GetNestedMessage(Address, "commendation"), false); } - public PlayerMedalsInfo Medals - { get => new PlayerMedalsInfoImpl(NativeNetMessages.GetNestedMessage(Address, "medals"), false); } + public PlayerMedalsInfo Medals { get => new PlayerMedalsInfoImpl(NativeNetMessages.GetNestedMessage(Address, "medals"), false); } - public TournamentEvent MyCurrentEvent - { get => new TournamentEventImpl(NativeNetMessages.GetNestedMessage(Address, "my_current_event"), false); } + public TournamentEvent MyCurrentEvent { get => new TournamentEventImpl(NativeNetMessages.GetNestedMessage(Address, "my_current_event"), false); } - public IProtobufRepeatedFieldSubMessageType MyCurrentEventTeams - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "my_current_event_teams"); } + public IProtobufRepeatedFieldSubMessageType MyCurrentEventTeams { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "my_current_event_teams"); } - public TournamentTeam MyCurrentTeam - { get => new TournamentTeamImpl(NativeNetMessages.GetNestedMessage(Address, "my_current_team"), false); } + public TournamentTeam MyCurrentTeam { get => new TournamentTeamImpl(NativeNetMessages.GetNestedMessage(Address, "my_current_team"), false); } - public IProtobufRepeatedFieldSubMessageType MyCurrentEventStages - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "my_current_event_stages"); } + public IProtobufRepeatedFieldSubMessageType MyCurrentEventStages { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "my_current_event_stages"); } - public uint SurveyVote - { get => Accessor.GetUInt32("survey_vote"); set => Accessor.SetUInt32("survey_vote", value); } + public uint SurveyVote { get => Accessor.GetUInt32("survey_vote"); set => Accessor.SetUInt32("survey_vote", value); } - public AccountActivity Activity - { get => new AccountActivityImpl(NativeNetMessages.GetNestedMessage(Address, "activity"), false); } + public AccountActivity Activity { get => new AccountActivityImpl(NativeNetMessages.GetNestedMessage(Address, "activity"), false); } - public int PlayerLevel - { get => Accessor.GetInt32("player_level"); set => Accessor.SetInt32("player_level", value); } + public int PlayerLevel { get => Accessor.GetInt32("player_level"); set => Accessor.SetInt32("player_level", value); } - public int PlayerCurXp - { get => Accessor.GetInt32("player_cur_xp"); set => Accessor.SetInt32("player_cur_xp", value); } + public int PlayerCurXp { get => Accessor.GetInt32("player_cur_xp"); set => Accessor.SetInt32("player_cur_xp", value); } - public int PlayerXpBonusFlags - { get => Accessor.GetInt32("player_xp_bonus_flags"); set => Accessor.SetInt32("player_xp_bonus_flags", value); } + public int PlayerXpBonusFlags { get => Accessor.GetInt32("player_xp_bonus_flags"); set => Accessor.SetInt32("player_xp_bonus_flags", value); } - public IProtobufRepeatedFieldSubMessageType Rankings - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "rankings"); } + public IProtobufRepeatedFieldSubMessageType Rankings { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "rankings"); } - public ulong Owcaseid - { get => Accessor.GetUInt64("owcaseid"); set => Accessor.SetUInt64("owcaseid", value); } + public ulong Owcaseid { get => Accessor.GetUInt64("owcaseid"); set => Accessor.SetUInt64("owcaseid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl.cs index 22433e896..3367ae48d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl.cs @@ -1,52 +1,41 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve { - public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Serverid - { get => Accessor.GetUInt64("serverid"); set => Accessor.SetUInt64("serverid", value); } + public ulong Serverid { get => Accessor.GetUInt64("serverid"); set => Accessor.SetUInt64("serverid", value); } - public uint DirectUdpIp - { get => Accessor.GetUInt32("direct_udp_ip"); set => Accessor.SetUInt32("direct_udp_ip", value); } + public uint DirectUdpIp { get => Accessor.GetUInt32("direct_udp_ip"); set => Accessor.SetUInt32("direct_udp_ip", value); } - public uint DirectUdpPort - { get => Accessor.GetUInt32("direct_udp_port"); set => Accessor.SetUInt32("direct_udp_port", value); } + public uint DirectUdpPort { get => Accessor.GetUInt32("direct_udp_port"); set => Accessor.SetUInt32("direct_udp_port", value); } - public ulong Reservationid - { get => Accessor.GetUInt64("reservationid"); set => Accessor.SetUInt64("reservationid", value); } + public ulong Reservationid { get => Accessor.GetUInt64("reservationid"); set => Accessor.SetUInt64("reservationid", value); } - public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation - { get => new CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl(NativeNetMessages.GetNestedMessage(Address, "reservation"), false); } + public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation { get => new CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl(NativeNetMessages.GetNestedMessage(Address, "reservation"), false); } - public string Map - { get => Accessor.GetString("map"); set => Accessor.SetString("map", value); } + public string Map { get => Accessor.GetString("map"); set => Accessor.SetString("map", value); } - public string ServerAddress - { get => Accessor.GetString("server_address"); set => Accessor.SetString("server_address", value); } + public string ServerAddress { get => Accessor.GetString("server_address"); set => Accessor.SetString("server_address", value); } - public DataCenterPing GsPing - { get => new DataCenterPingImpl(NativeNetMessages.GetNestedMessage(Address, "gs_ping"), false); } + public DataCenterPing GsPing { get => new DataCenterPingImpl(NativeNetMessages.GetNestedMessage(Address, "gs_ping"), false); } - public uint GsLocationId - { get => Accessor.GetUInt32("gs_location_id"); set => Accessor.SetUInt32("gs_location_id", value); } + public uint GsLocationId { get => Accessor.GetUInt32("gs_location_id"); set => Accessor.SetUInt32("gs_location_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStatsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStatsImpl.cs index c46920209..ec79e08fd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStatsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStatsImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStatsImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStats { - public CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStatsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStatsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint GsLocationId - { get => Accessor.GetUInt32("gs_location_id"); set => Accessor.SetUInt32("gs_location_id", value); } + public uint GsLocationId { get => Accessor.GetUInt32("gs_location_id"); set => Accessor.SetUInt32("gs_location_id", value); } - public uint DataCenterId - { get => Accessor.GetUInt32("data_center_id"); set => Accessor.SetUInt32("data_center_id", value); } + public uint DataCenterId { get => Accessor.GetUInt32("data_center_id"); set => Accessor.SetUInt32("data_center_id", value); } - public uint NumLockedIn - { get => Accessor.GetUInt32("num_locked_in"); set => Accessor.SetUInt32("num_locked_in", value); } + public uint NumLockedIn { get => Accessor.GetUInt32("num_locked_in"); set => Accessor.SetUInt32("num_locked_in", value); } - public uint NumFoundNearby - { get => Accessor.GetUInt32("num_found_nearby"); set => Accessor.SetUInt32("num_found_nearby", value); } + public uint NumFoundNearby { get => Accessor.GetUInt32("num_found_nearby"); set => Accessor.SetUInt32("num_found_nearby", value); } - public uint NoteLevel - { get => Accessor.GetUInt32("note_level"); set => Accessor.SetUInt32("note_level", value); } + public uint NoteLevel { get => Accessor.GetUInt32("note_level"); set => Accessor.SetUInt32("note_level", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdateImpl.cs index 581d32d14..0a1a32ac9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdateImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,72 +8,56 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdateImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate { - public CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Matchmaking - { get => Accessor.GetInt32("matchmaking"); set => Accessor.SetInt32("matchmaking", value); } + public int Matchmaking { get => Accessor.GetInt32("matchmaking"); set => Accessor.SetInt32("matchmaking", value); } - public IProtobufRepeatedFieldValueType WaitingAccountIdSessions - { get => new ProtobufRepeatedFieldValueType(Accessor, "waiting_account_id_sessions"); } + public IProtobufRepeatedFieldValueType WaitingAccountIdSessions { get => new ProtobufRepeatedFieldValueType(Accessor, "waiting_account_id_sessions"); } - public string Error - { get => Accessor.GetString("error"); set => Accessor.SetString("error", value); } + public string Error { get => Accessor.GetString("error"); set => Accessor.SetString("error", value); } - public IProtobufRepeatedFieldValueType OngoingmatchAccountIdSessions - { get => new ProtobufRepeatedFieldValueType(Accessor, "ongoingmatch_account_id_sessions"); } + public IProtobufRepeatedFieldValueType OngoingmatchAccountIdSessions { get => new ProtobufRepeatedFieldValueType(Accessor, "ongoingmatch_account_id_sessions"); } - public GlobalStatistics GlobalStats - { get => new GlobalStatisticsImpl(NativeNetMessages.GetNestedMessage(Address, "global_stats"), false); } + public GlobalStatistics GlobalStats { get => new GlobalStatisticsImpl(NativeNetMessages.GetNestedMessage(Address, "global_stats"), false); } - public IProtobufRepeatedFieldValueType FailpingAccountIdSessions - { get => new ProtobufRepeatedFieldValueType(Accessor, "failping_account_id_sessions"); } + public IProtobufRepeatedFieldValueType FailpingAccountIdSessions { get => new ProtobufRepeatedFieldValueType(Accessor, "failping_account_id_sessions"); } - public IProtobufRepeatedFieldValueType PenaltyAccountIdSessions - { get => new ProtobufRepeatedFieldValueType(Accessor, "penalty_account_id_sessions"); } + public IProtobufRepeatedFieldValueType PenaltyAccountIdSessions { get => new ProtobufRepeatedFieldValueType(Accessor, "penalty_account_id_sessions"); } - public IProtobufRepeatedFieldValueType FailreadyAccountIdSessions - { get => new ProtobufRepeatedFieldValueType(Accessor, "failready_account_id_sessions"); } + public IProtobufRepeatedFieldValueType FailreadyAccountIdSessions { get => new ProtobufRepeatedFieldValueType(Accessor, "failready_account_id_sessions"); } - public IProtobufRepeatedFieldValueType VacbannedAccountIdSessions - { get => new ProtobufRepeatedFieldValueType(Accessor, "vacbanned_account_id_sessions"); } + public IProtobufRepeatedFieldValueType VacbannedAccountIdSessions { get => new ProtobufRepeatedFieldValueType(Accessor, "vacbanned_account_id_sessions"); } - public IpAddressMask ServerIpaddressMask - { get => new IpAddressMaskImpl(NativeNetMessages.GetNestedMessage(Address, "server_ipaddress_mask"), false); } + public IpAddressMask ServerIpaddressMask { get => new IpAddressMaskImpl(NativeNetMessages.GetNestedMessage(Address, "server_ipaddress_mask"), false); } - public IProtobufRepeatedFieldSubMessageType Notes - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "notes"); } + public IProtobufRepeatedFieldSubMessageType Notes { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "notes"); } - public IProtobufRepeatedFieldValueType PenaltyAccountIdSessionsGreen - { get => new ProtobufRepeatedFieldValueType(Accessor, "penalty_account_id_sessions_green"); } + public IProtobufRepeatedFieldValueType PenaltyAccountIdSessionsGreen { get => new ProtobufRepeatedFieldValueType(Accessor, "penalty_account_id_sessions_green"); } - public IProtobufRepeatedFieldValueType InsufficientlevelSessions - { get => new ProtobufRepeatedFieldValueType(Accessor, "insufficientlevel_sessions"); } + public IProtobufRepeatedFieldValueType InsufficientlevelSessions { get => new ProtobufRepeatedFieldValueType(Accessor, "insufficientlevel_sessions"); } - public IProtobufRepeatedFieldValueType VsncheckAccountIdSessions - { get => new ProtobufRepeatedFieldValueType(Accessor, "vsncheck_account_id_sessions"); } + public IProtobufRepeatedFieldValueType VsncheckAccountIdSessions { get => new ProtobufRepeatedFieldValueType(Accessor, "vsncheck_account_id_sessions"); } - public IProtobufRepeatedFieldValueType LauncherMismatchSessions - { get => new ProtobufRepeatedFieldValueType(Accessor, "launcher_mismatch_sessions"); } + public IProtobufRepeatedFieldValueType LauncherMismatchSessions { get => new ProtobufRepeatedFieldValueType(Accessor, "launcher_mismatch_sessions"); } - public IProtobufRepeatedFieldValueType InsecureAccountIdSessions - { get => new ProtobufRepeatedFieldValueType(Accessor, "insecure_account_id_sessions"); } + public IProtobufRepeatedFieldValueType InsecureAccountIdSessions { get => new ProtobufRepeatedFieldValueType(Accessor, "insecure_account_id_sessions"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_NoteImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_NoteImpl.cs index 5fe9fc3e5..5bfdbd4d2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_NoteImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_NoteImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_NoteImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_Note { - public CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_NoteImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_NoteImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Type - { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + public int Type { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } - public int RegionId - { get => Accessor.GetInt32("region_id"); set => Accessor.SetInt32("region_id", value); } + public int RegionId { get => Accessor.GetInt32("region_id"); set => Accessor.SetInt32("region_id", value); } - public float RegionR - { get => Accessor.GetFloat("region_r"); set => Accessor.SetFloat("region_r", value); } + public float RegionR { get => Accessor.GetFloat("region_r"); set => Accessor.SetFloat("region_r", value); } - public float Distance - { get => Accessor.GetFloat("distance"); set => Accessor.SetFloat("distance", value); } + public float Distance { get => Accessor.GetFloat("distance"); set => Accessor.SetFloat("distance", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirmImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirmImpl.cs index b7d8e0f28..7900494ac 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirmImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirmImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirmImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirm { - public CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirmImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirmImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Token - { get => Accessor.GetUInt32("token"); set => Accessor.SetUInt32("token", value); } + public uint Token { get => Accessor.GetUInt32("token"); set => Accessor.SetUInt32("token", value); } - public uint Stamp - { get => Accessor.GetUInt32("stamp"); set => Accessor.SetUInt32("stamp", value); } + public uint Stamp { get => Accessor.GetUInt32("stamp"); set => Accessor.SetUInt32("stamp", value); } - public ulong Exchange - { get => Accessor.GetUInt64("exchange"); set => Accessor.SetUInt64("exchange", value); } + public ulong Exchange { get => Accessor.GetUInt64("exchange"); set => Accessor.SetUInt64("exchange", value); } - public uint Retry - { get => Accessor.GetUInt32("retry"); set => Accessor.SetUInt32("retry", value); } + public uint Retry { get => Accessor.GetUInt32("retry"); set => Accessor.SetUInt32("retry", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl.cs index 77bf5d5d6..2fa8f2793 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,92 +8,71 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve { - public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldValueType AccountIds - { get => new ProtobufRepeatedFieldValueType(Accessor, "account_ids"); } + public IProtobufRepeatedFieldValueType AccountIds { get => new ProtobufRepeatedFieldValueType(Accessor, "account_ids"); } - public uint GameType - { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } + public uint GameType { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } - public ulong MatchId - { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } + public ulong MatchId { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } - public uint ServerVersion - { get => Accessor.GetUInt32("server_version"); set => Accessor.SetUInt32("server_version", value); } + public uint ServerVersion { get => Accessor.GetUInt32("server_version"); set => Accessor.SetUInt32("server_version", value); } - public uint Flags - { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } + public uint Flags { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } - public IProtobufRepeatedFieldSubMessageType Rankings - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "rankings"); } + public IProtobufRepeatedFieldSubMessageType Rankings { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "rankings"); } - public ulong EncryptionKey - { get => Accessor.GetUInt64("encryption_key"); set => Accessor.SetUInt64("encryption_key", value); } + public ulong EncryptionKey { get => Accessor.GetUInt64("encryption_key"); set => Accessor.SetUInt64("encryption_key", value); } - public ulong EncryptionKeyPub - { get => Accessor.GetUInt64("encryption_key_pub"); set => Accessor.SetUInt64("encryption_key_pub", value); } + public ulong EncryptionKeyPub { get => Accessor.GetUInt64("encryption_key_pub"); set => Accessor.SetUInt64("encryption_key_pub", value); } - public IProtobufRepeatedFieldValueType PartyIds - { get => new ProtobufRepeatedFieldValueType(Accessor, "party_ids"); } + public IProtobufRepeatedFieldValueType PartyIds { get => new ProtobufRepeatedFieldValueType(Accessor, "party_ids"); } - public IProtobufRepeatedFieldSubMessageType Whitelist - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "whitelist"); } + public IProtobufRepeatedFieldSubMessageType Whitelist { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "whitelist"); } - public ulong TvMasterSteamid - { get => Accessor.GetUInt64("tv_master_steamid"); set => Accessor.SetUInt64("tv_master_steamid", value); } + public ulong TvMasterSteamid { get => Accessor.GetUInt64("tv_master_steamid"); set => Accessor.SetUInt64("tv_master_steamid", value); } - public TournamentEvent TournamentEvent - { get => new TournamentEventImpl(NativeNetMessages.GetNestedMessage(Address, "tournament_event"), false); } + public TournamentEvent TournamentEvent { get => new TournamentEventImpl(NativeNetMessages.GetNestedMessage(Address, "tournament_event"), false); } - public IProtobufRepeatedFieldSubMessageType TournamentTeams - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "tournament_teams"); } + public IProtobufRepeatedFieldSubMessageType TournamentTeams { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "tournament_teams"); } - public IProtobufRepeatedFieldValueType TournamentCastersAccountIds - { get => new ProtobufRepeatedFieldValueType(Accessor, "tournament_casters_account_ids"); } + public IProtobufRepeatedFieldValueType TournamentCastersAccountIds { get => new ProtobufRepeatedFieldValueType(Accessor, "tournament_casters_account_ids"); } - public ulong TvRelaySteamid - { get => Accessor.GetUInt64("tv_relay_steamid"); set => Accessor.SetUInt64("tv_relay_steamid", value); } + public ulong TvRelaySteamid { get => Accessor.GetUInt64("tv_relay_steamid"); set => Accessor.SetUInt64("tv_relay_steamid", value); } - public CPreMatchInfoData PreMatchData - { get => new CPreMatchInfoDataImpl(NativeNetMessages.GetNestedMessage(Address, "pre_match_data"), false); } + public CPreMatchInfoData PreMatchData { get => new CPreMatchInfoDataImpl(NativeNetMessages.GetNestedMessage(Address, "pre_match_data"), false); } - public uint TvControl - { get => Accessor.GetUInt32("tv_control"); set => Accessor.SetUInt32("tv_control", value); } + public uint TvControl { get => Accessor.GetUInt32("tv_control"); set => Accessor.SetUInt32("tv_control", value); } - public IProtobufRepeatedFieldSubMessageType OpVarValues - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "op_var_values"); } + public IProtobufRepeatedFieldSubMessageType OpVarValues { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "op_var_values"); } - public uint SocacheControl - { get => Accessor.GetUInt32("socache_control"); set => Accessor.SetUInt32("socache_control", value); } + public uint SocacheControl { get => Accessor.GetUInt32("socache_control"); set => Accessor.SetUInt32("socache_control", value); } - public IProtobufRepeatedFieldValueType TeammateColors - { get => new ProtobufRepeatedFieldValueType(Accessor, "teammate_colors"); } + public IProtobufRepeatedFieldValueType TeammateColors { get => new ProtobufRepeatedFieldValueType(Accessor, "teammate_colors"); } - public uint MatchIdAdditional - { get => Accessor.GetUInt32("match_id_additional"); set => Accessor.SetUInt32("match_id_additional", value); } + public uint MatchIdAdditional { get => Accessor.GetUInt32("match_id_additional"); set => Accessor.SetUInt32("match_id_additional", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdateImpl.cs index d2a77d570..fd8d08c9e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdateImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdateImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdate { - public CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string MainPostUrl - { get => Accessor.GetString("main_post_url"); set => Accessor.SetString("main_post_url", value); } + public string MainPostUrl { get => Accessor.GetString("main_post_url"); set => Accessor.SetString("main_post_url", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingServerReservationResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingServerReservationResponseImpl.cs index be2d5a151..e5551a4cd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingServerReservationResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingServerReservationResponseImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,84 +8,65 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingServerReservationResponseImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingServerReservationResponse { - public CMsgGCCStrike15_v2_MatchmakingServerReservationResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingServerReservationResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Reservationid - { get => Accessor.GetUInt64("reservationid"); set => Accessor.SetUInt64("reservationid", value); } + public ulong Reservationid { get => Accessor.GetUInt64("reservationid"); set => Accessor.SetUInt64("reservationid", value); } - public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation - { get => new CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl(NativeNetMessages.GetNestedMessage(Address, "reservation"), false); } + public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation { get => new CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl(NativeNetMessages.GetNestedMessage(Address, "reservation"), false); } - public string Map - { get => Accessor.GetString("map"); set => Accessor.SetString("map", value); } + public string Map { get => Accessor.GetString("map"); set => Accessor.SetString("map", value); } - public ulong GcReservationSent - { get => Accessor.GetUInt64("gc_reservation_sent"); set => Accessor.SetUInt64("gc_reservation_sent", value); } + public ulong GcReservationSent { get => Accessor.GetUInt64("gc_reservation_sent"); set => Accessor.SetUInt64("gc_reservation_sent", value); } - public uint ServerVersion - { get => Accessor.GetUInt32("server_version"); set => Accessor.SetUInt32("server_version", value); } + public uint ServerVersion { get => Accessor.GetUInt32("server_version"); set => Accessor.SetUInt32("server_version", value); } - public ServerHltvInfo TvInfo - { get => new ServerHltvInfoImpl(NativeNetMessages.GetNestedMessage(Address, "tv_info"), false); } + public ServerHltvInfo TvInfo { get => new ServerHltvInfoImpl(NativeNetMessages.GetNestedMessage(Address, "tv_info"), false); } - public IProtobufRepeatedFieldValueType RewardPlayerAccounts - { get => new ProtobufRepeatedFieldValueType(Accessor, "reward_player_accounts"); } + public IProtobufRepeatedFieldValueType RewardPlayerAccounts { get => new ProtobufRepeatedFieldValueType(Accessor, "reward_player_accounts"); } - public IProtobufRepeatedFieldValueType IdlePlayerAccounts - { get => new ProtobufRepeatedFieldValueType(Accessor, "idle_player_accounts"); } + public IProtobufRepeatedFieldValueType IdlePlayerAccounts { get => new ProtobufRepeatedFieldValueType(Accessor, "idle_player_accounts"); } - public uint RewardItemAttrDefIdx - { get => Accessor.GetUInt32("reward_item_attr_def_idx"); set => Accessor.SetUInt32("reward_item_attr_def_idx", value); } + public uint RewardItemAttrDefIdx { get => Accessor.GetUInt32("reward_item_attr_def_idx"); set => Accessor.SetUInt32("reward_item_attr_def_idx", value); } - public uint RewardItemAttrValue - { get => Accessor.GetUInt32("reward_item_attr_value"); set => Accessor.SetUInt32("reward_item_attr_value", value); } + public uint RewardItemAttrValue { get => Accessor.GetUInt32("reward_item_attr_value"); set => Accessor.SetUInt32("reward_item_attr_value", value); } - public uint RewardItemAttrRewardIdx - { get => Accessor.GetUInt32("reward_item_attr_reward_idx"); set => Accessor.SetUInt32("reward_item_attr_reward_idx", value); } + public uint RewardItemAttrRewardIdx { get => Accessor.GetUInt32("reward_item_attr_reward_idx"); set => Accessor.SetUInt32("reward_item_attr_reward_idx", value); } - public uint RewardDropList - { get => Accessor.GetUInt32("reward_drop_list"); set => Accessor.SetUInt32("reward_drop_list", value); } + public uint RewardDropList { get => Accessor.GetUInt32("reward_drop_list"); set => Accessor.SetUInt32("reward_drop_list", value); } - public string TournamentTag - { get => Accessor.GetString("tournament_tag"); set => Accessor.SetString("tournament_tag", value); } + public string TournamentTag { get => Accessor.GetString("tournament_tag"); set => Accessor.SetString("tournament_tag", value); } - public uint LegacySteamdatagramPort - { get => Accessor.GetUInt32("legacy_steamdatagram_port"); set => Accessor.SetUInt32("legacy_steamdatagram_port", value); } + public uint LegacySteamdatagramPort { get => Accessor.GetUInt32("legacy_steamdatagram_port"); set => Accessor.SetUInt32("legacy_steamdatagram_port", value); } - public uint SteamdatagramRouting - { get => Accessor.GetUInt32("steamdatagram_routing"); set => Accessor.SetUInt32("steamdatagram_routing", value); } + public uint SteamdatagramRouting { get => Accessor.GetUInt32("steamdatagram_routing"); set => Accessor.SetUInt32("steamdatagram_routing", value); } - public uint TestToken - { get => Accessor.GetUInt32("test_token"); set => Accessor.SetUInt32("test_token", value); } + public uint TestToken { get => Accessor.GetUInt32("test_token"); set => Accessor.SetUInt32("test_token", value); } - public uint Flags - { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } + public uint Flags { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } - public uint SystemLoad - { get => Accessor.GetUInt32("system_load"); set => Accessor.SetUInt32("system_load", value); } + public uint SystemLoad { get => Accessor.GetUInt32("system_load"); set => Accessor.SetUInt32("system_load", value); } - public uint CpusOnline - { get => Accessor.GetUInt32("cpus_online"); set => Accessor.SetUInt32("cpus_online", value); } + public uint CpusOnline { get => Accessor.GetUInt32("cpus_online"); set => Accessor.SetUInt32("cpus_online", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingServerRoundStatsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingServerRoundStatsImpl.cs index 3d4e3a945..e511ca789 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingServerRoundStatsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingServerRoundStatsImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,136 +8,104 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingServerRoundStatsImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingServerRoundStats { - public CMsgGCCStrike15_v2_MatchmakingServerRoundStatsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingServerRoundStatsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Reservationid - { get => Accessor.GetUInt64("reservationid"); set => Accessor.SetUInt64("reservationid", value); } + public ulong Reservationid { get => Accessor.GetUInt64("reservationid"); set => Accessor.SetUInt64("reservationid", value); } - public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation - { get => new CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl(NativeNetMessages.GetNestedMessage(Address, "reservation"), false); } + public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation { get => new CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl(NativeNetMessages.GetNestedMessage(Address, "reservation"), false); } - public string Map - { get => Accessor.GetString("map"); set => Accessor.SetString("map", value); } + public string Map { get => Accessor.GetString("map"); set => Accessor.SetString("map", value); } - public int Round - { get => Accessor.GetInt32("round"); set => Accessor.SetInt32("round", value); } + public int Round { get => Accessor.GetInt32("round"); set => Accessor.SetInt32("round", value); } - public IProtobufRepeatedFieldValueType Kills - { get => new ProtobufRepeatedFieldValueType(Accessor, "kills"); } + public IProtobufRepeatedFieldValueType Kills { get => new ProtobufRepeatedFieldValueType(Accessor, "kills"); } - public IProtobufRepeatedFieldValueType Assists - { get => new ProtobufRepeatedFieldValueType(Accessor, "assists"); } + public IProtobufRepeatedFieldValueType Assists { get => new ProtobufRepeatedFieldValueType(Accessor, "assists"); } - public IProtobufRepeatedFieldValueType Deaths - { get => new ProtobufRepeatedFieldValueType(Accessor, "deaths"); } + public IProtobufRepeatedFieldValueType Deaths { get => new ProtobufRepeatedFieldValueType(Accessor, "deaths"); } - public IProtobufRepeatedFieldValueType Scores - { get => new ProtobufRepeatedFieldValueType(Accessor, "scores"); } + public IProtobufRepeatedFieldValueType Scores { get => new ProtobufRepeatedFieldValueType(Accessor, "scores"); } - public IProtobufRepeatedFieldValueType Pings - { get => new ProtobufRepeatedFieldValueType(Accessor, "pings"); } + public IProtobufRepeatedFieldValueType Pings { get => new ProtobufRepeatedFieldValueType(Accessor, "pings"); } - public int RoundResult - { get => Accessor.GetInt32("round_result"); set => Accessor.SetInt32("round_result", value); } + public int RoundResult { get => Accessor.GetInt32("round_result"); set => Accessor.SetInt32("round_result", value); } - public int MatchResult - { get => Accessor.GetInt32("match_result"); set => Accessor.SetInt32("match_result", value); } + public int MatchResult { get => Accessor.GetInt32("match_result"); set => Accessor.SetInt32("match_result", value); } - public IProtobufRepeatedFieldValueType TeamScores - { get => new ProtobufRepeatedFieldValueType(Accessor, "team_scores"); } + public IProtobufRepeatedFieldValueType TeamScores { get => new ProtobufRepeatedFieldValueType(Accessor, "team_scores"); } - public CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirm Confirm - { get => new CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirmImpl(NativeNetMessages.GetNestedMessage(Address, "confirm"), false); } + public CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirm Confirm { get => new CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirmImpl(NativeNetMessages.GetNestedMessage(Address, "confirm"), false); } - public int ReservationStage - { get => Accessor.GetInt32("reservation_stage"); set => Accessor.SetInt32("reservation_stage", value); } + public int ReservationStage { get => Accessor.GetInt32("reservation_stage"); set => Accessor.SetInt32("reservation_stage", value); } - public int MatchDuration - { get => Accessor.GetInt32("match_duration"); set => Accessor.SetInt32("match_duration", value); } + public int MatchDuration { get => Accessor.GetInt32("match_duration"); set => Accessor.SetInt32("match_duration", value); } - public IProtobufRepeatedFieldValueType EnemyKills - { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_kills"); } + public IProtobufRepeatedFieldValueType EnemyKills { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_kills"); } - public IProtobufRepeatedFieldValueType EnemyHeadshots - { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_headshots"); } + public IProtobufRepeatedFieldValueType EnemyHeadshots { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_headshots"); } - public IProtobufRepeatedFieldValueType Enemy3ks - { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_3ks"); } + public IProtobufRepeatedFieldValueType Enemy3ks { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_3ks"); } - public IProtobufRepeatedFieldValueType Enemy4ks - { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_4ks"); } + public IProtobufRepeatedFieldValueType Enemy4ks { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_4ks"); } - public IProtobufRepeatedFieldValueType Enemy5ks - { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_5ks"); } + public IProtobufRepeatedFieldValueType Enemy5ks { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_5ks"); } - public IProtobufRepeatedFieldValueType Mvps - { get => new ProtobufRepeatedFieldValueType(Accessor, "mvps"); } + public IProtobufRepeatedFieldValueType Mvps { get => new ProtobufRepeatedFieldValueType(Accessor, "mvps"); } - public uint SpectatorsCount - { get => Accessor.GetUInt32("spectators_count"); set => Accessor.SetUInt32("spectators_count", value); } + public uint SpectatorsCount { get => Accessor.GetUInt32("spectators_count"); set => Accessor.SetUInt32("spectators_count", value); } - public uint SpectatorsCountTv - { get => Accessor.GetUInt32("spectators_count_tv"); set => Accessor.SetUInt32("spectators_count_tv", value); } + public uint SpectatorsCountTv { get => Accessor.GetUInt32("spectators_count_tv"); set => Accessor.SetUInt32("spectators_count_tv", value); } - public uint SpectatorsCountLnk - { get => Accessor.GetUInt32("spectators_count_lnk"); set => Accessor.SetUInt32("spectators_count_lnk", value); } + public uint SpectatorsCountLnk { get => Accessor.GetUInt32("spectators_count_lnk"); set => Accessor.SetUInt32("spectators_count_lnk", value); } - public IProtobufRepeatedFieldValueType EnemyKillsAgg - { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_kills_agg"); } + public IProtobufRepeatedFieldValueType EnemyKillsAgg { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_kills_agg"); } - public CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfo DropInfo - { get => new CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfoImpl(NativeNetMessages.GetNestedMessage(Address, "drop_info"), false); } + public CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfo DropInfo { get => new CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfoImpl(NativeNetMessages.GetNestedMessage(Address, "drop_info"), false); } - public bool BSwitchedTeams - { get => Accessor.GetBool("b_switched_teams"); set => Accessor.SetBool("b_switched_teams", value); } + public bool BSwitchedTeams { get => Accessor.GetBool("b_switched_teams"); set => Accessor.SetBool("b_switched_teams", value); } - public IProtobufRepeatedFieldValueType Enemy2ks - { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_2ks"); } + public IProtobufRepeatedFieldValueType Enemy2ks { get => new ProtobufRepeatedFieldValueType(Accessor, "enemy_2ks"); } - public IProtobufRepeatedFieldValueType PlayerSpawned - { get => new ProtobufRepeatedFieldValueType(Accessor, "player_spawned"); } + public IProtobufRepeatedFieldValueType PlayerSpawned { get => new ProtobufRepeatedFieldValueType(Accessor, "player_spawned"); } - public IProtobufRepeatedFieldValueType TeamSpawnCount - { get => new ProtobufRepeatedFieldValueType(Accessor, "team_spawn_count"); } + public IProtobufRepeatedFieldValueType TeamSpawnCount { get => new ProtobufRepeatedFieldValueType(Accessor, "team_spawn_count"); } - public uint MaxRounds - { get => Accessor.GetUInt32("max_rounds"); set => Accessor.SetUInt32("max_rounds", value); } + public uint MaxRounds { get => Accessor.GetUInt32("max_rounds"); set => Accessor.SetUInt32("max_rounds", value); } - public int MapId - { get => Accessor.GetInt32("map_id"); set => Accessor.SetInt32("map_id", value); } + public int MapId { get => Accessor.GetInt32("map_id"); set => Accessor.SetInt32("map_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfoImpl.cs index 584a49bc5..0bf71e309 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfoImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfoImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfo { - public CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountMvp - { get => Accessor.GetUInt32("account_mvp"); set => Accessor.SetUInt32("account_mvp", value); } + public uint AccountMvp { get => Accessor.GetUInt32("account_mvp"); set => Accessor.SetUInt32("account_mvp", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingStartImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingStartImpl.cs index 6d489e17f..f673bbb70 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingStartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingStartImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,40 +8,32 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingStartImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingStart { - public CMsgGCCStrike15_v2_MatchmakingStartImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingStartImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldValueType AccountIds - { get => new ProtobufRepeatedFieldValueType(Accessor, "account_ids"); } + public IProtobufRepeatedFieldValueType AccountIds { get => new ProtobufRepeatedFieldValueType(Accessor, "account_ids"); } - public uint GameType - { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } + public uint GameType { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } - public string TicketData - { get => Accessor.GetString("ticket_data"); set => Accessor.SetString("ticket_data", value); } + public string TicketData { get => Accessor.GetString("ticket_data"); set => Accessor.SetString("ticket_data", value); } - public uint ClientVersion - { get => Accessor.GetUInt32("client_version"); set => Accessor.SetUInt32("client_version", value); } + public uint ClientVersion { get => Accessor.GetUInt32("client_version"); set => Accessor.SetUInt32("client_version", value); } - public TournamentMatchSetup TournamentMatch - { get => new TournamentMatchSetupImpl(NativeNetMessages.GetNestedMessage(Address, "tournament_match"), false); } + public TournamentMatchSetup TournamentMatch { get => new TournamentMatchSetupImpl(NativeNetMessages.GetNestedMessage(Address, "tournament_match"), false); } - public bool PrimeOnly - { get => Accessor.GetBool("prime_only"); set => Accessor.SetBool("prime_only", value); } + public bool PrimeOnly { get => Accessor.GetBool("prime_only"); set => Accessor.SetBool("prime_only", value); } - public uint TvControl - { get => Accessor.GetUInt32("tv_control"); set => Accessor.SetUInt32("tv_control", value); } + public uint TvControl { get => Accessor.GetUInt32("tv_control"); set => Accessor.SetUInt32("tv_control", value); } - public ulong LobbyId - { get => Accessor.GetUInt64("lobby_id"); set => Accessor.SetUInt64("lobby_id", value); } + public ulong LobbyId { get => Accessor.GetUInt64("lobby_id"); set => Accessor.SetUInt64("lobby_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingStopImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingStopImpl.cs index 1d36d165e..f8d1112d2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingStopImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_MatchmakingStopImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_MatchmakingStopImpl : TypedProtobuf, CMsgGCCStrike15_v2_MatchmakingStop { - public CMsgGCCStrike15_v2_MatchmakingStopImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_MatchmakingStopImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Abandon - { get => Accessor.GetInt32("abandon"); set => Accessor.SetInt32("abandon", value); } + public int Abandon { get => Accessor.GetInt32("abandon"); set => Accessor.SetInt32("abandon", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_InviteImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_InviteImpl.cs index fbbb7d6fd..2a40de329 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_InviteImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_InviteImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Party_InviteImpl : TypedProtobuf, CMsgGCCStrike15_v2_Party_Invite { - public CMsgGCCStrike15_v2_Party_InviteImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Party_InviteImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public uint Lobbyid - { get => Accessor.GetUInt32("lobbyid"); set => Accessor.SetUInt32("lobbyid", value); } + public uint Lobbyid { get => Accessor.GetUInt32("lobbyid"); set => Accessor.SetUInt32("lobbyid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_RegisterImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_RegisterImpl.cs index d1793f10c..21ad1981e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_RegisterImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_RegisterImpl.cs @@ -1,52 +1,39 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Party_RegisterImpl : TypedProtobuf, CMsgGCCStrike15_v2_Party_Register { - public CMsgGCCStrike15_v2_Party_RegisterImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Party_RegisterImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Id - { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } + public uint Id { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } - public uint Ver - { get => Accessor.GetUInt32("ver"); set => Accessor.SetUInt32("ver", value); } + public uint Ver { get => Accessor.GetUInt32("ver"); set => Accessor.SetUInt32("ver", value); } - public uint Apr - { get => Accessor.GetUInt32("apr"); set => Accessor.SetUInt32("apr", value); } + public uint Apr { get => Accessor.GetUInt32("apr"); set => Accessor.SetUInt32("apr", value); } - public uint Ark - { get => Accessor.GetUInt32("ark"); set => Accessor.SetUInt32("ark", value); } + public uint Ark { get => Accessor.GetUInt32("ark"); set => Accessor.SetUInt32("ark", value); } - public uint Nby - { get => Accessor.GetUInt32("nby"); set => Accessor.SetUInt32("nby", value); } + public uint Nby { get => Accessor.GetUInt32("nby"); set => Accessor.SetUInt32("nby", value); } - public uint Grp - { get => Accessor.GetUInt32("grp"); set => Accessor.SetUInt32("grp", value); } + public uint Grp { get => Accessor.GetUInt32("grp"); set => Accessor.SetUInt32("grp", value); } - public uint Slots - { get => Accessor.GetUInt32("slots"); set => Accessor.SetUInt32("slots", value); } + public uint Slots { get => Accessor.GetUInt32("slots"); set => Accessor.SetUInt32("slots", value); } - public uint Launcher - { get => Accessor.GetUInt32("launcher"); set => Accessor.SetUInt32("launcher", value); } + public uint Launcher { get => Accessor.GetUInt32("launcher"); set => Accessor.SetUInt32("launcher", value); } - public uint GameType - { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } + public uint GameType { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_SearchImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_SearchImpl.cs index ef9422e3b..0086d5515 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_SearchImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_SearchImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,32 +6,26 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Party_SearchImpl : TypedProtobuf, CMsgGCCStrike15_v2_Party_Search { - public CMsgGCCStrike15_v2_Party_SearchImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Party_SearchImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Ver - { get => Accessor.GetUInt32("ver"); set => Accessor.SetUInt32("ver", value); } + public uint Ver { get => Accessor.GetUInt32("ver"); set => Accessor.SetUInt32("ver", value); } - public uint Apr - { get => Accessor.GetUInt32("apr"); set => Accessor.SetUInt32("apr", value); } + public uint Apr { get => Accessor.GetUInt32("apr"); set => Accessor.SetUInt32("apr", value); } - public uint Ark - { get => Accessor.GetUInt32("ark"); set => Accessor.SetUInt32("ark", value); } + public uint Ark { get => Accessor.GetUInt32("ark"); set => Accessor.SetUInt32("ark", value); } - public IProtobufRepeatedFieldValueType Grps - { get => new ProtobufRepeatedFieldValueType(Accessor, "grps"); } + public IProtobufRepeatedFieldValueType Grps { get => new ProtobufRepeatedFieldValueType(Accessor, "grps"); } - public uint Launcher - { get => Accessor.GetUInt32("launcher"); set => Accessor.SetUInt32("launcher", value); } + public uint Launcher { get => Accessor.GetUInt32("launcher"); set => Accessor.SetUInt32("launcher", value); } - public uint GameType - { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } + public uint GameType { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_SearchResultsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_SearchResultsImpl.cs index 845e8b913..36afa2e1c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_SearchResultsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_SearchResultsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Party_SearchResultsImpl : TypedProtobuf, CMsgGCCStrike15_v2_Party_SearchResults { - public CMsgGCCStrike15_v2_Party_SearchResultsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Party_SearchResultsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Entries - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entries"); } + public IProtobufRepeatedFieldSubMessageType Entries { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entries"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_SearchResults_EntryImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_SearchResults_EntryImpl.cs index 9981f774f..6a7490e1a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_SearchResults_EntryImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Party_SearchResults_EntryImpl.cs @@ -1,44 +1,33 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Party_SearchResults_EntryImpl : TypedProtobuf, CMsgGCCStrike15_v2_Party_SearchResults_Entry { - public CMsgGCCStrike15_v2_Party_SearchResults_EntryImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Party_SearchResults_EntryImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Id - { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } + public uint Id { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } - public uint Grp - { get => Accessor.GetUInt32("grp"); set => Accessor.SetUInt32("grp", value); } + public uint Grp { get => Accessor.GetUInt32("grp"); set => Accessor.SetUInt32("grp", value); } - public uint GameType - { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } + public uint GameType { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } - public uint Apr - { get => Accessor.GetUInt32("apr"); set => Accessor.SetUInt32("apr", value); } + public uint Apr { get => Accessor.GetUInt32("apr"); set => Accessor.SetUInt32("apr", value); } - public uint Ark - { get => Accessor.GetUInt32("ark"); set => Accessor.SetUInt32("ark", value); } + public uint Ark { get => Accessor.GetUInt32("ark"); set => Accessor.SetUInt32("ark", value); } - public uint Loc - { get => Accessor.GetUInt32("loc"); set => Accessor.SetUInt32("loc", value); } + public uint Loc { get => Accessor.GetUInt32("loc"); set => Accessor.SetUInt32("loc", value); } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignmentImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignmentImpl.cs index 5618e370a..f92ade264 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignmentImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignmentImpl.cs @@ -1,60 +1,45 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignmentImpl : TypedProtobuf, CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignment { - public CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignmentImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignmentImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Caseid - { get => Accessor.GetUInt64("caseid"); set => Accessor.SetUInt64("caseid", value); } + public ulong Caseid { get => Accessor.GetUInt64("caseid"); set => Accessor.SetUInt64("caseid", value); } - public string Caseurl - { get => Accessor.GetString("caseurl"); set => Accessor.SetString("caseurl", value); } + public string Caseurl { get => Accessor.GetString("caseurl"); set => Accessor.SetString("caseurl", value); } - public uint Verdict - { get => Accessor.GetUInt32("verdict"); set => Accessor.SetUInt32("verdict", value); } + public uint Verdict { get => Accessor.GetUInt32("verdict"); set => Accessor.SetUInt32("verdict", value); } - public uint Timestamp - { get => Accessor.GetUInt32("timestamp"); set => Accessor.SetUInt32("timestamp", value); } + public uint Timestamp { get => Accessor.GetUInt32("timestamp"); set => Accessor.SetUInt32("timestamp", value); } - public uint Throttleseconds - { get => Accessor.GetUInt32("throttleseconds"); set => Accessor.SetUInt32("throttleseconds", value); } + public uint Throttleseconds { get => Accessor.GetUInt32("throttleseconds"); set => Accessor.SetUInt32("throttleseconds", value); } - public uint Suspectid - { get => Accessor.GetUInt32("suspectid"); set => Accessor.SetUInt32("suspectid", value); } + public uint Suspectid { get => Accessor.GetUInt32("suspectid"); set => Accessor.SetUInt32("suspectid", value); } - public uint Fractionid - { get => Accessor.GetUInt32("fractionid"); set => Accessor.SetUInt32("fractionid", value); } + public uint Fractionid { get => Accessor.GetUInt32("fractionid"); set => Accessor.SetUInt32("fractionid", value); } - public uint Numrounds - { get => Accessor.GetUInt32("numrounds"); set => Accessor.SetUInt32("numrounds", value); } + public uint Numrounds { get => Accessor.GetUInt32("numrounds"); set => Accessor.SetUInt32("numrounds", value); } - public uint Fractionrounds - { get => Accessor.GetUInt32("fractionrounds"); set => Accessor.SetUInt32("fractionrounds", value); } + public uint Fractionrounds { get => Accessor.GetUInt32("fractionrounds"); set => Accessor.SetUInt32("fractionrounds", value); } - public int Streakconvictions - { get => Accessor.GetInt32("streakconvictions"); set => Accessor.SetInt32("streakconvictions", value); } + public int Streakconvictions { get => Accessor.GetInt32("streakconvictions"); set => Accessor.SetInt32("streakconvictions", value); } - public uint Reason - { get => Accessor.GetUInt32("reason"); set => Accessor.SetUInt32("reason", value); } + public uint Reason { get => Accessor.GetUInt32("reason"); set => Accessor.SetUInt32("reason", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayerOverwatchCaseStatusImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayerOverwatchCaseStatusImpl.cs index 2aa16911f..ab56ebf9f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayerOverwatchCaseStatusImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayerOverwatchCaseStatusImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_PlayerOverwatchCaseStatusImpl : TypedProtobuf, CMsgGCCStrike15_v2_PlayerOverwatchCaseStatus { - public CMsgGCCStrike15_v2_PlayerOverwatchCaseStatusImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_PlayerOverwatchCaseStatusImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Caseid - { get => Accessor.GetUInt64("caseid"); set => Accessor.SetUInt64("caseid", value); } + public ulong Caseid { get => Accessor.GetUInt64("caseid"); set => Accessor.SetUInt64("caseid", value); } - public uint Statusid - { get => Accessor.GetUInt32("statusid"); set => Accessor.SetUInt32("statusid", value); } + public uint Statusid { get => Accessor.GetUInt32("statusid"); set => Accessor.SetUInt32("statusid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdateImpl.cs index 2fdbe8959..d177a9d42 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdateImpl.cs @@ -1,48 +1,36 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdateImpl : TypedProtobuf, CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdate { - public CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Caseid - { get => Accessor.GetUInt64("caseid"); set => Accessor.SetUInt64("caseid", value); } + public ulong Caseid { get => Accessor.GetUInt64("caseid"); set => Accessor.SetUInt64("caseid", value); } - public uint Suspectid - { get => Accessor.GetUInt32("suspectid"); set => Accessor.SetUInt32("suspectid", value); } + public uint Suspectid { get => Accessor.GetUInt32("suspectid"); set => Accessor.SetUInt32("suspectid", value); } - public uint Fractionid - { get => Accessor.GetUInt32("fractionid"); set => Accessor.SetUInt32("fractionid", value); } + public uint Fractionid { get => Accessor.GetUInt32("fractionid"); set => Accessor.SetUInt32("fractionid", value); } - public uint RptAimbot - { get => Accessor.GetUInt32("rpt_aimbot"); set => Accessor.SetUInt32("rpt_aimbot", value); } + public uint RptAimbot { get => Accessor.GetUInt32("rpt_aimbot"); set => Accessor.SetUInt32("rpt_aimbot", value); } - public uint RptWallhack - { get => Accessor.GetUInt32("rpt_wallhack"); set => Accessor.SetUInt32("rpt_wallhack", value); } + public uint RptWallhack { get => Accessor.GetUInt32("rpt_wallhack"); set => Accessor.SetUInt32("rpt_wallhack", value); } - public uint RptSpeedhack - { get => Accessor.GetUInt32("rpt_speedhack"); set => Accessor.SetUInt32("rpt_speedhack", value); } + public uint RptSpeedhack { get => Accessor.GetUInt32("rpt_speedhack"); set => Accessor.SetUInt32("rpt_speedhack", value); } - public uint RptTeamharm - { get => Accessor.GetUInt32("rpt_teamharm"); set => Accessor.SetUInt32("rpt_teamharm", value); } + public uint RptTeamharm { get => Accessor.GetUInt32("rpt_teamharm"); set => Accessor.SetUInt32("rpt_teamharm", value); } - public uint Reason - { get => Accessor.GetUInt32("reason"); set => Accessor.SetUInt32("reason", value); } + public uint Reason { get => Accessor.GetUInt32("reason"); set => Accessor.SetUInt32("reason", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayersProfileImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayersProfileImpl.cs index bcee916db..183e7fbf6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayersProfileImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PlayersProfileImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_PlayersProfileImpl : TypedProtobuf, CMsgGCCStrike15_v2_PlayersProfile { - public CMsgGCCStrike15_v2_PlayersProfileImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_PlayersProfileImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint RequestId - { get => Accessor.GetUInt32("request_id"); set => Accessor.SetUInt32("request_id", value); } + public uint RequestId { get => Accessor.GetUInt32("request_id"); set => Accessor.SetUInt32("request_id", value); } - public IProtobufRepeatedFieldSubMessageType AccountProfiles - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "account_profiles"); } + public IProtobufRepeatedFieldSubMessageType AccountProfiles { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "account_profiles"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PredictionsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PredictionsImpl.cs index 327b3d4f8..6052af518 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PredictionsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PredictionsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_PredictionsImpl : TypedProtobuf, CMsgGCCStrike15_v2_Predictions { - public CMsgGCCStrike15_v2_PredictionsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_PredictionsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint EventId - { get => Accessor.GetUInt32("event_id"); set => Accessor.SetUInt32("event_id", value); } + public uint EventId { get => Accessor.GetUInt32("event_id"); set => Accessor.SetUInt32("event_id", value); } - public IProtobufRepeatedFieldSubMessageType GroupMatchTeamPicks - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "group_match_team_picks"); } + public IProtobufRepeatedFieldSubMessageType GroupMatchTeamPicks { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "group_match_team_picks"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPickImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPickImpl.cs index 20ca02fbb..75b495965 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPickImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPickImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPickImpl : TypedProtobuf, CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPick { - public CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPickImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPickImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Sectionid - { get => Accessor.GetInt32("sectionid"); set => Accessor.SetInt32("sectionid", value); } + public int Sectionid { get => Accessor.GetInt32("sectionid"); set => Accessor.SetInt32("sectionid", value); } - public int Groupid - { get => Accessor.GetInt32("groupid"); set => Accessor.SetInt32("groupid", value); } + public int Groupid { get => Accessor.GetInt32("groupid"); set => Accessor.SetInt32("groupid", value); } - public int Index - { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } + public int Index { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } - public int Teamid - { get => Accessor.GetInt32("teamid"); set => Accessor.SetInt32("teamid", value); } + public int Teamid { get => Accessor.GetInt32("teamid"); set => Accessor.SetInt32("teamid", value); } - public ulong Itemid - { get => Accessor.GetUInt64("itemid"); set => Accessor.SetUInt64("itemid", value); } + public ulong Itemid { get => Accessor.GetUInt64("itemid"); set => Accessor.SetUInt64("itemid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PremierSeasonSummaryImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PremierSeasonSummaryImpl.cs index 3431dd8bf..5853d384e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PremierSeasonSummaryImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PremierSeasonSummaryImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_PremierSeasonSummaryImpl : TypedProtobuf, CMsgGCCStrike15_v2_PremierSeasonSummary { - public CMsgGCCStrike15_v2_PremierSeasonSummaryImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_PremierSeasonSummaryImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint SeasonId - { get => Accessor.GetUInt32("season_id"); set => Accessor.SetUInt32("season_id", value); } + public uint SeasonId { get => Accessor.GetUInt32("season_id"); set => Accessor.SetUInt32("season_id", value); } - public IProtobufRepeatedFieldSubMessageType DataPerWeek - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "data_per_week"); } + public IProtobufRepeatedFieldSubMessageType DataPerWeek { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "data_per_week"); } - public IProtobufRepeatedFieldSubMessageType DataPerMap - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "data_per_map"); } + public IProtobufRepeatedFieldSubMessageType DataPerMap { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "data_per_map"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMapImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMapImpl.cs index ab6219ec9..650a9263b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMapImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMapImpl.cs @@ -1,68 +1,51 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMapImpl : TypedProtobuf, CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMap { - public CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMapImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMapImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint MapId - { get => Accessor.GetUInt32("map_id"); set => Accessor.SetUInt32("map_id", value); } + public uint MapId { get => Accessor.GetUInt32("map_id"); set => Accessor.SetUInt32("map_id", value); } - public uint Wins - { get => Accessor.GetUInt32("wins"); set => Accessor.SetUInt32("wins", value); } + public uint Wins { get => Accessor.GetUInt32("wins"); set => Accessor.SetUInt32("wins", value); } - public uint Ties - { get => Accessor.GetUInt32("ties"); set => Accessor.SetUInt32("ties", value); } + public uint Ties { get => Accessor.GetUInt32("ties"); set => Accessor.SetUInt32("ties", value); } - public uint Losses - { get => Accessor.GetUInt32("losses"); set => Accessor.SetUInt32("losses", value); } + public uint Losses { get => Accessor.GetUInt32("losses"); set => Accessor.SetUInt32("losses", value); } - public uint Rounds - { get => Accessor.GetUInt32("rounds"); set => Accessor.SetUInt32("rounds", value); } + public uint Rounds { get => Accessor.GetUInt32("rounds"); set => Accessor.SetUInt32("rounds", value); } - public uint Kills - { get => Accessor.GetUInt32("kills"); set => Accessor.SetUInt32("kills", value); } + public uint Kills { get => Accessor.GetUInt32("kills"); set => Accessor.SetUInt32("kills", value); } - public uint Headshots - { get => Accessor.GetUInt32("headshots"); set => Accessor.SetUInt32("headshots", value); } + public uint Headshots { get => Accessor.GetUInt32("headshots"); set => Accessor.SetUInt32("headshots", value); } - public uint Assists - { get => Accessor.GetUInt32("assists"); set => Accessor.SetUInt32("assists", value); } + public uint Assists { get => Accessor.GetUInt32("assists"); set => Accessor.SetUInt32("assists", value); } - public uint Deaths - { get => Accessor.GetUInt32("deaths"); set => Accessor.SetUInt32("deaths", value); } + public uint Deaths { get => Accessor.GetUInt32("deaths"); set => Accessor.SetUInt32("deaths", value); } - public uint Mvps - { get => Accessor.GetUInt32("mvps"); set => Accessor.SetUInt32("mvps", value); } + public uint Mvps { get => Accessor.GetUInt32("mvps"); set => Accessor.SetUInt32("mvps", value); } - public uint Rounds3k - { get => Accessor.GetUInt32("rounds_3k"); set => Accessor.SetUInt32("rounds_3k", value); } + public uint Rounds3k { get => Accessor.GetUInt32("rounds_3k"); set => Accessor.SetUInt32("rounds_3k", value); } - public uint Rounds4k - { get => Accessor.GetUInt32("rounds_4k"); set => Accessor.SetUInt32("rounds_4k", value); } + public uint Rounds4k { get => Accessor.GetUInt32("rounds_4k"); set => Accessor.SetUInt32("rounds_4k", value); } - public uint Rounds5k - { get => Accessor.GetUInt32("rounds_5k"); set => Accessor.SetUInt32("rounds_5k", value); } + public uint Rounds5k { get => Accessor.GetUInt32("rounds_5k"); set => Accessor.SetUInt32("rounds_5k", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeekImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeekImpl.cs index 9dcb0069f..78c8d83d6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeekImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeekImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeekImpl : TypedProtobuf, CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeek { - public CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeekImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeekImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong WeekId - { get => Accessor.GetUInt64("week_id"); set => Accessor.SetUInt64("week_id", value); } + public ulong WeekId { get => Accessor.GetUInt64("week_id"); set => Accessor.SetUInt64("week_id", value); } - public uint RankId - { get => Accessor.GetUInt32("rank_id"); set => Accessor.SetUInt32("rank_id", value); } + public uint RankId { get => Accessor.GetUInt32("rank_id"); set => Accessor.SetUInt32("rank_id", value); } - public uint MatchesPlayed - { get => Accessor.GetUInt32("matches_played"); set => Accessor.SetUInt32("matches_played", value); } + public uint MatchesPlayed { get => Accessor.GetUInt32("matches_played"); set => Accessor.SetUInt32("matches_played", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Server2GCClientValidateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Server2GCClientValidateImpl.cs index e9d2a77be..b522ec299 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Server2GCClientValidateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_Server2GCClientValidateImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_Server2GCClientValidateImpl : TypedProtobuf, CMsgGCCStrike15_v2_Server2GCClientValidate { - public CMsgGCCStrike15_v2_Server2GCClientValidateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_Server2GCClientValidateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ServerNotificationForUserPenaltyImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ServerNotificationForUserPenaltyImpl.cs index afe55e5af..ae6082b02 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ServerNotificationForUserPenaltyImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ServerNotificationForUserPenaltyImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ServerNotificationForUserPenaltyImpl : TypedProtobuf, CMsgGCCStrike15_v2_ServerNotificationForUserPenalty { - public CMsgGCCStrike15_v2_ServerNotificationForUserPenaltyImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ServerNotificationForUserPenaltyImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint Reason - { get => Accessor.GetUInt32("reason"); set => Accessor.SetUInt32("reason", value); } + public uint Reason { get => Accessor.GetUInt32("reason"); set => Accessor.SetUInt32("reason", value); } - public uint Seconds - { get => Accessor.GetUInt32("seconds"); set => Accessor.SetUInt32("seconds", value); } + public uint Seconds { get => Accessor.GetUInt32("seconds"); set => Accessor.SetUInt32("seconds", value); } - public bool CommunicationCooldown - { get => Accessor.GetBool("communication_cooldown"); set => Accessor.SetBool("communication_cooldown", value); } + public bool CommunicationCooldown { get => Accessor.GetBool("communication_cooldown"); set => Accessor.SetBool("communication_cooldown", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ServerVarValueNotificationInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ServerVarValueNotificationInfoImpl.cs index 6312d105e..bcc38320b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ServerVarValueNotificationInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_ServerVarValueNotificationInfoImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_ServerVarValueNotificationInfoImpl : TypedProtobuf, CMsgGCCStrike15_v2_ServerVarValueNotificationInfo { - public CMsgGCCStrike15_v2_ServerVarValueNotificationInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_ServerVarValueNotificationInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public IProtobufRepeatedFieldValueType Viewangles - { get => new ProtobufRepeatedFieldValueType(Accessor, "viewangles"); } + public IProtobufRepeatedFieldValueType Viewangles { get => new ProtobufRepeatedFieldValueType(Accessor, "viewangles"); } - public uint Type - { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } + public uint Type { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } - public IProtobufRepeatedFieldValueType Userdata - { get => new ProtobufRepeatedFieldValueType(Accessor, "userdata"); } + public IProtobufRepeatedFieldValueType Userdata { get => new ProtobufRepeatedFieldValueType(Accessor, "userdata"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_SetEventFavoriteImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_SetEventFavoriteImpl.cs index 6d41fa788..832d91293 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_SetEventFavoriteImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_SetEventFavoriteImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_SetEventFavoriteImpl : TypedProtobuf, CMsgGCCStrike15_v2_SetEventFavorite { - public CMsgGCCStrike15_v2_SetEventFavoriteImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_SetEventFavoriteImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Eventid - { get => Accessor.GetUInt64("eventid"); set => Accessor.SetUInt64("eventid", value); } + public ulong Eventid { get => Accessor.GetUInt64("eventid"); set => Accessor.SetUInt64("eventid", value); } - public bool IsFavorite - { get => Accessor.GetBool("is_favorite"); set => Accessor.SetBool("is_favorite", value); } + public bool IsFavorite { get => Accessor.GetBool("is_favorite"); set => Accessor.SetBool("is_favorite", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeNameImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeNameImpl.cs index 81dddbe7f..4c98ff7e3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeNameImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeNameImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeNameImpl : TypedProtobuf, CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeName { - public CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeNameImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeNameImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string LeaderboardSafeName - { get => Accessor.GetString("leaderboard_safe_name"); set => Accessor.SetString("leaderboard_safe_name", value); } + public string LeaderboardSafeName { get => Accessor.GetString("leaderboard_safe_name"); set => Accessor.SetString("leaderboard_safe_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_WatchInfoUsersImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_WatchInfoUsersImpl.cs index c870713ee..6a37283bd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_WatchInfoUsersImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCStrike15_v2_WatchInfoUsersImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCStrike15_v2_WatchInfoUsersImpl : TypedProtobuf, CMsgGCCStrike15_v2_WatchInfoUsers { - public CMsgGCCStrike15_v2_WatchInfoUsersImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCStrike15_v2_WatchInfoUsersImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint RequestId - { get => Accessor.GetUInt32("request_id"); set => Accessor.SetUInt32("request_id", value); } + public uint RequestId { get => Accessor.GetUInt32("request_id"); set => Accessor.SetUInt32("request_id", value); } - public IProtobufRepeatedFieldValueType AccountIds - { get => new ProtobufRepeatedFieldValueType(Accessor, "account_ids"); } + public IProtobufRepeatedFieldValueType AccountIds { get => new ProtobufRepeatedFieldValueType(Accessor, "account_ids"); } - public IProtobufRepeatedFieldSubMessageType WatchableMatchInfos - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "watchable_match_infos"); } + public IProtobufRepeatedFieldSubMessageType WatchableMatchInfos { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "watchable_match_infos"); } - public uint ExtendedTimeout - { get => Accessor.GetUInt32("extended_timeout"); set => Accessor.SetUInt32("extended_timeout", value); } + public uint ExtendedTimeout { get => Accessor.GetUInt32("extended_timeout"); set => Accessor.SetUInt32("extended_timeout", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCClientDisplayNotificationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCClientDisplayNotificationImpl.cs index 8896ee539..9cf2b9cec 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCClientDisplayNotificationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCClientDisplayNotificationImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCClientDisplayNotificationImpl : TypedProtobuf, CMsgGCClientDisplayNotification { - public CMsgGCClientDisplayNotificationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCClientDisplayNotificationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string NotificationTitleLocalizationKey - { get => Accessor.GetString("notification_title_localization_key"); set => Accessor.SetString("notification_title_localization_key", value); } + public string NotificationTitleLocalizationKey { get => Accessor.GetString("notification_title_localization_key"); set => Accessor.SetString("notification_title_localization_key", value); } - public string NotificationBodyLocalizationKey - { get => Accessor.GetString("notification_body_localization_key"); set => Accessor.SetString("notification_body_localization_key", value); } + public string NotificationBodyLocalizationKey { get => Accessor.GetString("notification_body_localization_key"); set => Accessor.SetString("notification_body_localization_key", value); } - public IProtobufRepeatedFieldValueType BodySubstringKeys - { get => new ProtobufRepeatedFieldValueType(Accessor, "body_substring_keys"); } + public IProtobufRepeatedFieldValueType BodySubstringKeys { get => new ProtobufRepeatedFieldValueType(Accessor, "body_substring_keys"); } - public IProtobufRepeatedFieldValueType BodySubstringValues - { get => new ProtobufRepeatedFieldValueType(Accessor, "body_substring_values"); } + public IProtobufRepeatedFieldValueType BodySubstringValues { get => new ProtobufRepeatedFieldValueType(Accessor, "body_substring_values"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCClientVersionUpdatedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCClientVersionUpdatedImpl.cs index 5be39f32e..a82467dfe 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCClientVersionUpdatedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCClientVersionUpdatedImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCClientVersionUpdatedImpl : TypedProtobuf, CMsgGCClientVersionUpdated { - public CMsgGCClientVersionUpdatedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCClientVersionUpdatedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ClientVersion - { get => Accessor.GetUInt32("client_version"); set => Accessor.SetUInt32("client_version", value); } + public uint ClientVersion { get => Accessor.GetUInt32("client_version"); set => Accessor.SetUInt32("client_version", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCollectItemImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCollectItemImpl.cs index 45765d432..a8f3a0b76 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCollectItemImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCollectItemImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCollectItemImpl : TypedProtobuf, CMsgGCCollectItem { - public CMsgGCCollectItemImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCollectItemImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong CollectionItemId - { get => Accessor.GetUInt64("collection_item_id"); set => Accessor.SetUInt64("collection_item_id", value); } + public ulong CollectionItemId { get => Accessor.GetUInt64("collection_item_id"); set => Accessor.SetUInt64("collection_item_id", value); } - public ulong SubjectItemId - { get => Accessor.GetUInt64("subject_item_id"); set => Accessor.SetUInt64("subject_item_id", value); } + public ulong SubjectItemId { get => Accessor.GetUInt64("subject_item_id"); set => Accessor.SetUInt64("subject_item_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCstrike15_v2_ClientRedeemFreeRewardImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCstrike15_v2_ClientRedeemFreeRewardImpl.cs index 91d91f36a..65d7df03d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCstrike15_v2_ClientRedeemFreeRewardImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCstrike15_v2_ClientRedeemFreeRewardImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCstrike15_v2_ClientRedeemFreeRewardImpl : TypedProtobuf, CMsgGCCstrike15_v2_ClientRedeemFreeReward { - public CMsgGCCstrike15_v2_ClientRedeemFreeRewardImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCstrike15_v2_ClientRedeemFreeRewardImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint GenerationTime - { get => Accessor.GetUInt32("generation_time"); set => Accessor.SetUInt32("generation_time", value); } + public uint GenerationTime { get => Accessor.GetUInt32("generation_time"); set => Accessor.SetUInt32("generation_time", value); } - public uint RedeemableBalance - { get => Accessor.GetUInt32("redeemable_balance"); set => Accessor.SetUInt32("redeemable_balance", value); } + public uint RedeemableBalance { get => Accessor.GetUInt32("redeemable_balance"); set => Accessor.SetUInt32("redeemable_balance", value); } - public IProtobufRepeatedFieldValueType Items - { get => new ProtobufRepeatedFieldValueType(Accessor, "items"); } + public IProtobufRepeatedFieldValueType Items { get => new ProtobufRepeatedFieldValueType(Accessor, "items"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCstrike15_v2_ClientRedeemMissionRewardImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCstrike15_v2_ClientRedeemMissionRewardImpl.cs index 2626faf53..179c990b1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCstrike15_v2_ClientRedeemMissionRewardImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCstrike15_v2_ClientRedeemMissionRewardImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCstrike15_v2_ClientRedeemMissionRewardImpl : TypedProtobuf, CMsgGCCstrike15_v2_ClientRedeemMissionReward { - public CMsgGCCstrike15_v2_ClientRedeemMissionRewardImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCstrike15_v2_ClientRedeemMissionRewardImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint CampaignId - { get => Accessor.GetUInt32("campaign_id"); set => Accessor.SetUInt32("campaign_id", value); } + public uint CampaignId { get => Accessor.GetUInt32("campaign_id"); set => Accessor.SetUInt32("campaign_id", value); } - public uint RedeemId - { get => Accessor.GetUInt32("redeem_id"); set => Accessor.SetUInt32("redeem_id", value); } + public uint RedeemId { get => Accessor.GetUInt32("redeem_id"); set => Accessor.SetUInt32("redeem_id", value); } - public uint RedeemableBalance - { get => Accessor.GetUInt32("redeemable_balance"); set => Accessor.SetUInt32("redeemable_balance", value); } + public uint RedeemableBalance { get => Accessor.GetUInt32("redeemable_balance"); set => Accessor.SetUInt32("redeemable_balance", value); } - public uint ExpectedCost - { get => Accessor.GetUInt32("expected_cost"); set => Accessor.SetUInt32("expected_cost", value); } + public uint ExpectedCost { get => Accessor.GetUInt32("expected_cost"); set => Accessor.SetUInt32("expected_cost", value); } - public int BidControl - { get => Accessor.GetInt32("bid_control"); set => Accessor.SetInt32("bid_control", value); } + public int BidControl { get => Accessor.GetInt32("bid_control"); set => Accessor.SetInt32("bid_control", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCstrike15_v2_GC2ServerNotifyXPRewardedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCstrike15_v2_GC2ServerNotifyXPRewardedImpl.cs index 38b97c6be..5120419d5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCstrike15_v2_GC2ServerNotifyXPRewardedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCCstrike15_v2_GC2ServerNotifyXPRewardedImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,48 +6,38 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCCstrike15_v2_GC2ServerNotifyXPRewardedImpl : TypedProtobuf, CMsgGCCstrike15_v2_GC2ServerNotifyXPRewarded { - public CMsgGCCstrike15_v2_GC2ServerNotifyXPRewardedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCCstrike15_v2_GC2ServerNotifyXPRewardedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType XpProgressData - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "xp_progress_data"); } + public IProtobufRepeatedFieldSubMessageType XpProgressData { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "xp_progress_data"); } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint CurrentXp - { get => Accessor.GetUInt32("current_xp"); set => Accessor.SetUInt32("current_xp", value); } + public uint CurrentXp { get => Accessor.GetUInt32("current_xp"); set => Accessor.SetUInt32("current_xp", value); } - public uint CurrentLevel - { get => Accessor.GetUInt32("current_level"); set => Accessor.SetUInt32("current_level", value); } + public uint CurrentLevel { get => Accessor.GetUInt32("current_level"); set => Accessor.SetUInt32("current_level", value); } - public uint UpgradedDefidx - { get => Accessor.GetUInt32("upgraded_defidx"); set => Accessor.SetUInt32("upgraded_defidx", value); } + public uint UpgradedDefidx { get => Accessor.GetUInt32("upgraded_defidx"); set => Accessor.SetUInt32("upgraded_defidx", value); } - public uint OperationPointsAwarded - { get => Accessor.GetUInt32("operation_points_awarded"); set => Accessor.SetUInt32("operation_points_awarded", value); } + public uint OperationPointsAwarded { get => Accessor.GetUInt32("operation_points_awarded"); set => Accessor.SetUInt32("operation_points_awarded", value); } - public uint FreeRewards - { get => Accessor.GetUInt32("free_rewards"); set => Accessor.SetUInt32("free_rewards", value); } + public uint FreeRewards { get => Accessor.GetUInt32("free_rewards"); set => Accessor.SetUInt32("free_rewards", value); } - public uint XpTrailRemaining - { get => Accessor.GetUInt32("xp_trail_remaining"); set => Accessor.SetUInt32("xp_trail_remaining", value); } + public uint XpTrailRemaining { get => Accessor.GetUInt32("xp_trail_remaining"); set => Accessor.SetUInt32("xp_trail_remaining", value); } - public int XpTrailXpNeeded - { get => Accessor.GetInt32("xp_trail_xp_needed"); set => Accessor.SetInt32("xp_trail_xp_needed", value); } + public int XpTrailXpNeeded { get => Accessor.GetInt32("xp_trail_xp_needed"); set => Accessor.SetInt32("xp_trail_xp_needed", value); } - public uint XpTrailLevel - { get => Accessor.GetUInt32("xp_trail_level"); set => Accessor.SetUInt32("xp_trail_level", value); } + public uint XpTrailLevel { get => Accessor.GetUInt32("xp_trail_level"); set => Accessor.SetUInt32("xp_trail_level", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCDev_SchemaReservationRequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCDev_SchemaReservationRequestImpl.cs index bdf50f2c8..a4e9835cc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCDev_SchemaReservationRequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCDev_SchemaReservationRequestImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCDev_SchemaReservationRequestImpl : TypedProtobuf, CMsgGCDev_SchemaReservationRequest { - public CMsgGCDev_SchemaReservationRequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCDev_SchemaReservationRequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string SchemaTypename - { get => Accessor.GetString("schema_typename"); set => Accessor.SetString("schema_typename", value); } + public string SchemaTypename { get => Accessor.GetString("schema_typename"); set => Accessor.SetString("schema_typename", value); } - public string InstanceName - { get => Accessor.GetString("instance_name"); set => Accessor.SetString("instance_name", value); } + public string InstanceName { get => Accessor.GetString("instance_name"); set => Accessor.SetString("instance_name", value); } - public ulong Context - { get => Accessor.GetUInt64("context"); set => Accessor.SetUInt64("context", value); } + public ulong Context { get => Accessor.GetUInt64("context"); set => Accessor.SetUInt64("context", value); } - public ulong Id - { get => Accessor.GetUInt64("id"); set => Accessor.SetUInt64("id", value); } + public ulong Id { get => Accessor.GetUInt64("id"); set => Accessor.SetUInt64("id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCErrorImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCErrorImpl.cs index 738d8e9b2..25b05359e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCErrorImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCErrorImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCErrorImpl : TypedProtobuf, CMsgGCError { - public CMsgGCErrorImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCErrorImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string ErrorText - { get => Accessor.GetString("error_text"); set => Accessor.SetString("error_text", value); } + public string ErrorText { get => Accessor.GetString("error_text"); set => Accessor.SetString("error_text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCGiftedItemsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCGiftedItemsImpl.cs index d0155b809..8dd0adf62 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCGiftedItemsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCGiftedItemsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,28 +6,23 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCGiftedItemsImpl : TypedProtobuf, CMsgGCGiftedItems { - public CMsgGCGiftedItemsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCGiftedItemsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public uint Giftdefindex - { get => Accessor.GetUInt32("giftdefindex"); set => Accessor.SetUInt32("giftdefindex", value); } + public uint Giftdefindex { get => Accessor.GetUInt32("giftdefindex"); set => Accessor.SetUInt32("giftdefindex", value); } - public uint MaxGiftsPossible - { get => Accessor.GetUInt32("max_gifts_possible"); set => Accessor.SetUInt32("max_gifts_possible", value); } + public uint MaxGiftsPossible { get => Accessor.GetUInt32("max_gifts_possible"); set => Accessor.SetUInt32("max_gifts_possible", value); } - public uint NumEligibleRecipients - { get => Accessor.GetUInt32("num_eligible_recipients"); set => Accessor.SetUInt32("num_eligible_recipients", value); } + public uint NumEligibleRecipients { get => Accessor.GetUInt32("num_eligible_recipients"); set => Accessor.SetUInt32("num_eligible_recipients", value); } - public IProtobufRepeatedFieldValueType RecipientsAccountids - { get => new ProtobufRepeatedFieldValueType(Accessor, "recipients_accountids"); } + public IProtobufRepeatedFieldValueType RecipientsAccountids { get => new ProtobufRepeatedFieldValueType(Accessor, "recipients_accountids"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHAccountPhoneNumberChangeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHAccountPhoneNumberChangeImpl.cs index 4f9c722ca..c9f7f46a4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHAccountPhoneNumberChangeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHAccountPhoneNumberChangeImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCHAccountPhoneNumberChangeImpl : TypedProtobuf, CMsgGCHAccountPhoneNumberChange { - public CMsgGCHAccountPhoneNumberChangeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCHAccountPhoneNumberChangeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } - public ulong PhoneId - { get => Accessor.GetUInt64("phone_id"); set => Accessor.SetUInt64("phone_id", value); } + public ulong PhoneId { get => Accessor.GetUInt64("phone_id"); set => Accessor.SetUInt64("phone_id", value); } - public bool IsVerified - { get => Accessor.GetBool("is_verified"); set => Accessor.SetBool("is_verified", value); } + public bool IsVerified { get => Accessor.GetBool("is_verified"); set => Accessor.SetBool("is_verified", value); } - public bool IsIdentifying - { get => Accessor.GetBool("is_identifying"); set => Accessor.SetBool("is_identifying", value); } + public bool IsIdentifying { get => Accessor.GetBool("is_identifying"); set => Accessor.SetBool("is_identifying", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHInviteUserToLobbyImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHInviteUserToLobbyImpl.cs index 8d70cc386..d144c4060 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHInviteUserToLobbyImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHInviteUserToLobbyImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCHInviteUserToLobbyImpl : TypedProtobuf, CMsgGCHInviteUserToLobby { - public CMsgGCHInviteUserToLobbyImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCHInviteUserToLobbyImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } - public ulong SteamidInvited - { get => Accessor.GetUInt64("steamid_invited"); set => Accessor.SetUInt64("steamid_invited", value); } + public ulong SteamidInvited { get => Accessor.GetUInt64("steamid_invited"); set => Accessor.SetUInt64("steamid_invited", value); } - public ulong SteamidLobby - { get => Accessor.GetUInt64("steamid_lobby"); set => Accessor.SetUInt64("steamid_lobby", value); } + public ulong SteamidLobby { get => Accessor.GetUInt64("steamid_lobby"); set => Accessor.SetUInt64("steamid_lobby", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHRecurringSubscriptionStatusChangeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHRecurringSubscriptionStatusChangeImpl.cs index 1f0d4da5a..fcdefb5cc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHRecurringSubscriptionStatusChangeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHRecurringSubscriptionStatusChangeImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCHRecurringSubscriptionStatusChangeImpl : TypedProtobuf, CMsgGCHRecurringSubscriptionStatusChange { - public CMsgGCHRecurringSubscriptionStatusChangeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCHRecurringSubscriptionStatusChangeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } - public ulong Agreementid - { get => Accessor.GetUInt64("agreementid"); set => Accessor.SetUInt64("agreementid", value); } + public ulong Agreementid { get => Accessor.GetUInt64("agreementid"); set => Accessor.SetUInt64("agreementid", value); } - public bool Active - { get => Accessor.GetBool("active"); set => Accessor.SetBool("active", value); } + public bool Active { get => Accessor.GetBool("active"); set => Accessor.SetBool("active", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHVacVerificationChangeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHVacVerificationChangeImpl.cs index c52906a40..5974a63ec 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHVacVerificationChangeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCHVacVerificationChangeImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCHVacVerificationChangeImpl : TypedProtobuf, CMsgGCHVacVerificationChange { - public CMsgGCHVacVerificationChangeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCHVacVerificationChangeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } - public bool IsVerified - { get => Accessor.GetBool("is_verified"); set => Accessor.SetBool("is_verified", value); } + public bool IsVerified { get => Accessor.GetBool("is_verified"); set => Accessor.SetBool("is_verified", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCIncrementKillCountResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCIncrementKillCountResponseImpl.cs index f54d8a508..bfa7f4e6a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCIncrementKillCountResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCIncrementKillCountResponseImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCIncrementKillCountResponseImpl : TypedProtobuf, CMsgGCIncrementKillCountResponse { - public CMsgGCIncrementKillCountResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCIncrementKillCountResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint KillerAccountId - { get => Accessor.GetUInt32("killer_account_id"); set => Accessor.SetUInt32("killer_account_id", value); } + public uint KillerAccountId { get => Accessor.GetUInt32("killer_account_id"); set => Accessor.SetUInt32("killer_account_id", value); } - public uint NumKills - { get => Accessor.GetUInt32("num_kills"); set => Accessor.SetUInt32("num_kills", value); } + public uint NumKills { get => Accessor.GetUInt32("num_kills"); set => Accessor.SetUInt32("num_kills", value); } - public uint ItemDef - { get => Accessor.GetUInt32("item_def"); set => Accessor.SetUInt32("item_def", value); } + public uint ItemDef { get => Accessor.GetUInt32("item_def"); set => Accessor.SetUInt32("item_def", value); } - public uint LevelType - { get => Accessor.GetUInt32("level_type"); set => Accessor.SetUInt32("level_type", value); } + public uint LevelType { get => Accessor.GetUInt32("level_type"); set => Accessor.SetUInt32("level_type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCItemCustomizationNotificationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCItemCustomizationNotificationImpl.cs index a5589033e..60642d9ef 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCItemCustomizationNotificationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCItemCustomizationNotificationImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCItemCustomizationNotificationImpl : TypedProtobuf, CMsgGCItemCustomizationNotification { - public CMsgGCItemCustomizationNotificationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCItemCustomizationNotificationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldValueType ItemId - { get => new ProtobufRepeatedFieldValueType(Accessor, "item_id"); } + public IProtobufRepeatedFieldValueType ItemId { get => new ProtobufRepeatedFieldValueType(Accessor, "item_id"); } - public uint Request - { get => Accessor.GetUInt32("request"); set => Accessor.SetUInt32("request", value); } + public uint Request { get => Accessor.GetUInt32("request"); set => Accessor.SetUInt32("request", value); } - public IProtobufRepeatedFieldValueType ExtraData - { get => new ProtobufRepeatedFieldValueType(Accessor, "extra_data"); } + public IProtobufRepeatedFieldValueType ExtraData { get => new ProtobufRepeatedFieldValueType(Accessor, "extra_data"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCItemPreviewItemBoughtNotificationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCItemPreviewItemBoughtNotificationImpl.cs index 941d793e1..ec89c9f35 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCItemPreviewItemBoughtNotificationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCItemPreviewItemBoughtNotificationImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCItemPreviewItemBoughtNotificationImpl : TypedProtobuf, CMsgGCItemPreviewItemBoughtNotification { - public CMsgGCItemPreviewItemBoughtNotificationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCItemPreviewItemBoughtNotificationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ItemDefIndex - { get => Accessor.GetUInt32("item_def_index"); set => Accessor.SetUInt32("item_def_index", value); } + public uint ItemDefIndex { get => Accessor.GetUInt32("item_def_index"); set => Accessor.SetUInt32("item_def_index", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCMultiplexMessageImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCMultiplexMessageImpl.cs index 98119d92e..4c7312a4b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCMultiplexMessageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCMultiplexMessageImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCMultiplexMessageImpl : TypedProtobuf, CMsgGCMultiplexMessage { - public CMsgGCMultiplexMessageImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCMultiplexMessageImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Msgtype - { get => Accessor.GetUInt32("msgtype"); set => Accessor.SetUInt32("msgtype", value); } + public uint Msgtype { get => Accessor.GetUInt32("msgtype"); set => Accessor.SetUInt32("msgtype", value); } - public byte[] Payload - { get => Accessor.GetBytes("payload"); set => Accessor.SetBytes("payload", value); } + public byte[] Payload { get => Accessor.GetBytes("payload"); set => Accessor.SetBytes("payload", value); } - public IProtobufRepeatedFieldValueType Steamids - { get => new ProtobufRepeatedFieldValueType(Accessor, "steamids"); } + public IProtobufRepeatedFieldValueType Steamids { get => new ProtobufRepeatedFieldValueType(Accessor, "steamids"); } - public bool Replytogc - { get => Accessor.GetBool("replytogc"); set => Accessor.SetBool("replytogc", value); } + public bool Replytogc { get => Accessor.GetBool("replytogc"); set => Accessor.SetBool("replytogc", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCMultiplexMessage_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCMultiplexMessage_ResponseImpl.cs index d8112be75..67c46adfd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCMultiplexMessage_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCMultiplexMessage_ResponseImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCMultiplexMessage_ResponseImpl : TypedProtobuf, CMsgGCMultiplexMessage_Response { - public CMsgGCMultiplexMessage_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCMultiplexMessage_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Msgtype - { get => Accessor.GetUInt32("msgtype"); set => Accessor.SetUInt32("msgtype", value); } + public uint Msgtype { get => Accessor.GetUInt32("msgtype"); set => Accessor.SetUInt32("msgtype", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCNameItemNotificationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCNameItemNotificationImpl.cs index f30c784a9..9f53401ae 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCNameItemNotificationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCNameItemNotificationImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCNameItemNotificationImpl : TypedProtobuf, CMsgGCNameItemNotification { - public CMsgGCNameItemNotificationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCNameItemNotificationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong PlayerSteamid - { get => Accessor.GetUInt64("player_steamid"); set => Accessor.SetUInt64("player_steamid", value); } + public ulong PlayerSteamid { get => Accessor.GetUInt64("player_steamid"); set => Accessor.SetUInt64("player_steamid", value); } - public uint ItemDefIndex - { get => Accessor.GetUInt32("item_def_index"); set => Accessor.SetUInt32("item_def_index", value); } + public uint ItemDefIndex { get => Accessor.GetUInt32("item_def_index"); set => Accessor.SetUInt32("item_def_index", value); } - public string ItemNameCustom - { get => Accessor.GetString("item_name_custom"); set => Accessor.SetString("item_name_custom", value); } + public string ItemNameCustom { get => Accessor.GetString("item_name_custom"); set => Accessor.SetString("item_name_custom", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCReportAbuseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCReportAbuseImpl.cs index 07d794efd..5103c164c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCReportAbuseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCReportAbuseImpl.cs @@ -1,44 +1,33 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCReportAbuseImpl : TypedProtobuf, CMsgGCReportAbuse { - public CMsgGCReportAbuseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCReportAbuseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong TargetSteamId - { get => Accessor.GetUInt64("target_steam_id"); set => Accessor.SetUInt64("target_steam_id", value); } + public ulong TargetSteamId { get => Accessor.GetUInt64("target_steam_id"); set => Accessor.SetUInt64("target_steam_id", value); } - public string Description - { get => Accessor.GetString("description"); set => Accessor.SetString("description", value); } + public string Description { get => Accessor.GetString("description"); set => Accessor.SetString("description", value); } - public ulong Gid - { get => Accessor.GetUInt64("gid"); set => Accessor.SetUInt64("gid", value); } + public ulong Gid { get => Accessor.GetUInt64("gid"); set => Accessor.SetUInt64("gid", value); } - public uint AbuseType - { get => Accessor.GetUInt32("abuse_type"); set => Accessor.SetUInt32("abuse_type", value); } + public uint AbuseType { get => Accessor.GetUInt32("abuse_type"); set => Accessor.SetUInt32("abuse_type", value); } - public uint ContentType - { get => Accessor.GetUInt32("content_type"); set => Accessor.SetUInt32("content_type", value); } + public uint ContentType { get => Accessor.GetUInt32("content_type"); set => Accessor.SetUInt32("content_type", value); } - public uint TargetGameServerIp - { get => Accessor.GetUInt32("target_game_server_ip"); set => Accessor.SetUInt32("target_game_server_ip", value); } + public uint TargetGameServerIp { get => Accessor.GetUInt32("target_game_server_ip"); set => Accessor.SetUInt32("target_game_server_ip", value); } - public uint TargetGameServerPort - { get => Accessor.GetUInt32("target_game_server_port"); set => Accessor.SetUInt32("target_game_server_port", value); } + public uint TargetGameServerPort { get => Accessor.GetUInt32("target_game_server_port"); set => Accessor.SetUInt32("target_game_server_port", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCReportAbuseResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCReportAbuseResponseImpl.cs index 1e4c42c44..cdf65148f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCReportAbuseResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCReportAbuseResponseImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCReportAbuseResponseImpl : TypedProtobuf, CMsgGCReportAbuseResponse { - public CMsgGCReportAbuseResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCReportAbuseResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong TargetSteamId - { get => Accessor.GetUInt64("target_steam_id"); set => Accessor.SetUInt64("target_steam_id", value); } + public ulong TargetSteamId { get => Accessor.GetUInt64("target_steam_id"); set => Accessor.SetUInt64("target_steam_id", value); } - public uint Result - { get => Accessor.GetUInt32("result"); set => Accessor.SetUInt32("result", value); } + public uint Result { get => Accessor.GetUInt32("result"); set => Accessor.SetUInt32("result", value); } - public string ErrorMessage - { get => Accessor.GetString("error_message"); set => Accessor.SetString("error_message", value); } + public string ErrorMessage { get => Accessor.GetString("error_message"); set => Accessor.SetString("error_message", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestAnnouncementsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestAnnouncementsImpl.cs index e9982ccce..56d787420 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestAnnouncementsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestAnnouncementsImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCRequestAnnouncementsImpl : TypedProtobuf, CMsgGCRequestAnnouncements { - public CMsgGCRequestAnnouncementsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCRequestAnnouncementsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestAnnouncementsResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestAnnouncementsResponseImpl.cs index 7d95a3e56..08e79301f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestAnnouncementsResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestAnnouncementsResponseImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCRequestAnnouncementsResponseImpl : TypedProtobuf, CMsgGCRequestAnnouncementsResponse { - public CMsgGCRequestAnnouncementsResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCRequestAnnouncementsResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string AnnouncementTitle - { get => Accessor.GetString("announcement_title"); set => Accessor.SetString("announcement_title", value); } + public string AnnouncementTitle { get => Accessor.GetString("announcement_title"); set => Accessor.SetString("announcement_title", value); } - public string Announcement - { get => Accessor.GetString("announcement"); set => Accessor.SetString("announcement", value); } + public string Announcement { get => Accessor.GetString("announcement"); set => Accessor.SetString("announcement", value); } - public string NextmatchTitle - { get => Accessor.GetString("nextmatch_title"); set => Accessor.SetString("nextmatch_title", value); } + public string NextmatchTitle { get => Accessor.GetString("nextmatch_title"); set => Accessor.SetString("nextmatch_title", value); } - public string Nextmatch - { get => Accessor.GetString("nextmatch"); set => Accessor.SetString("nextmatch", value); } + public string Nextmatch { get => Accessor.GetString("nextmatch"); set => Accessor.SetString("nextmatch", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestSessionIPImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestSessionIPImpl.cs index c6b195697..172ca83bd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestSessionIPImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestSessionIPImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCRequestSessionIPImpl : TypedProtobuf, CMsgGCRequestSessionIP { - public CMsgGCRequestSessionIPImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCRequestSessionIPImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestSessionIPResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestSessionIPResponseImpl.cs index 9f1f61ae3..29e5ac887 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestSessionIPResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCRequestSessionIPResponseImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCRequestSessionIPResponseImpl : TypedProtobuf, CMsgGCRequestSessionIPResponse { - public CMsgGCRequestSessionIPResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCRequestSessionIPResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Ip - { get => Accessor.GetUInt32("ip"); set => Accessor.SetUInt32("ip", value); } + public uint Ip { get => Accessor.GetUInt32("ip"); set => Accessor.SetUInt32("ip", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCServerVersionUpdatedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCServerVersionUpdatedImpl.cs index a1e6a07ab..e42b08dfd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCServerVersionUpdatedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCServerVersionUpdatedImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCServerVersionUpdatedImpl : TypedProtobuf, CMsgGCServerVersionUpdated { - public CMsgGCServerVersionUpdatedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCServerVersionUpdatedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ServerVersion - { get => Accessor.GetUInt32("server_version"); set => Accessor.SetUInt32("server_version", value); } + public uint ServerVersion { get => Accessor.GetUInt32("server_version"); set => Accessor.SetUInt32("server_version", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCShowItemsPickedUpImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCShowItemsPickedUpImpl.cs index 6a0599942..e6f130545 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCShowItemsPickedUpImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCShowItemsPickedUpImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCShowItemsPickedUpImpl : TypedProtobuf, CMsgGCShowItemsPickedUp { - public CMsgGCShowItemsPickedUpImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCShowItemsPickedUpImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong PlayerSteamid - { get => Accessor.GetUInt64("player_steamid"); set => Accessor.SetUInt64("player_steamid", value); } + public ulong PlayerSteamid { get => Accessor.GetUInt64("player_steamid"); set => Accessor.SetUInt64("player_steamid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseCancelImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseCancelImpl.cs index d4a3bb5ee..65bc31c7f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseCancelImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseCancelImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCStorePurchaseCancelImpl : TypedProtobuf, CMsgGCStorePurchaseCancel { - public CMsgGCStorePurchaseCancelImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCStorePurchaseCancelImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong TxnId - { get => Accessor.GetUInt64("txn_id"); set => Accessor.SetUInt64("txn_id", value); } + public ulong TxnId { get => Accessor.GetUInt64("txn_id"); set => Accessor.SetUInt64("txn_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseCancelResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseCancelResponseImpl.cs index e1fd136a4..5ea5840bc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseCancelResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseCancelResponseImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCStorePurchaseCancelResponseImpl : TypedProtobuf, CMsgGCStorePurchaseCancelResponse { - public CMsgGCStorePurchaseCancelResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCStorePurchaseCancelResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Result - { get => Accessor.GetUInt32("result"); set => Accessor.SetUInt32("result", value); } + public uint Result { get => Accessor.GetUInt32("result"); set => Accessor.SetUInt32("result", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseFinalizeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseFinalizeImpl.cs index 0997448e5..9d58b5e26 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseFinalizeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseFinalizeImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCStorePurchaseFinalizeImpl : TypedProtobuf, CMsgGCStorePurchaseFinalize { - public CMsgGCStorePurchaseFinalizeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCStorePurchaseFinalizeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong TxnId - { get => Accessor.GetUInt64("txn_id"); set => Accessor.SetUInt64("txn_id", value); } + public ulong TxnId { get => Accessor.GetUInt64("txn_id"); set => Accessor.SetUInt64("txn_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseFinalizeResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseFinalizeResponseImpl.cs index 40738ab42..81f5370a3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseFinalizeResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseFinalizeResponseImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCStorePurchaseFinalizeResponseImpl : TypedProtobuf, CMsgGCStorePurchaseFinalizeResponse { - public CMsgGCStorePurchaseFinalizeResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCStorePurchaseFinalizeResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Result - { get => Accessor.GetUInt32("result"); set => Accessor.SetUInt32("result", value); } + public uint Result { get => Accessor.GetUInt32("result"); set => Accessor.SetUInt32("result", value); } - public IProtobufRepeatedFieldValueType ItemIds - { get => new ProtobufRepeatedFieldValueType(Accessor, "item_ids"); } + public IProtobufRepeatedFieldValueType ItemIds { get => new ProtobufRepeatedFieldValueType(Accessor, "item_ids"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseInitImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseInitImpl.cs index fd58d1618..7c5147316 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseInitImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseInitImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCStorePurchaseInitImpl : TypedProtobuf, CMsgGCStorePurchaseInit { - public CMsgGCStorePurchaseInitImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCStorePurchaseInitImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Country - { get => Accessor.GetString("country"); set => Accessor.SetString("country", value); } + public string Country { get => Accessor.GetString("country"); set => Accessor.SetString("country", value); } - public int Language - { get => Accessor.GetInt32("language"); set => Accessor.SetInt32("language", value); } + public int Language { get => Accessor.GetInt32("language"); set => Accessor.SetInt32("language", value); } - public int Currency - { get => Accessor.GetInt32("currency"); set => Accessor.SetInt32("currency", value); } + public int Currency { get => Accessor.GetInt32("currency"); set => Accessor.SetInt32("currency", value); } - public IProtobufRepeatedFieldSubMessageType LineItems - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "line_items"); } + public IProtobufRepeatedFieldSubMessageType LineItems { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "line_items"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseInitResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseInitResponseImpl.cs index 62c5cdaf7..83e2bd8c5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseInitResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCStorePurchaseInitResponseImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCStorePurchaseInitResponseImpl : TypedProtobuf, CMsgGCStorePurchaseInitResponse { - public CMsgGCStorePurchaseInitResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCStorePurchaseInitResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Result - { get => Accessor.GetInt32("result"); set => Accessor.SetInt32("result", value); } + public int Result { get => Accessor.GetInt32("result"); set => Accessor.SetInt32("result", value); } - public ulong TxnId - { get => Accessor.GetUInt64("txn_id"); set => Accessor.SetUInt64("txn_id", value); } + public ulong TxnId { get => Accessor.GetUInt64("txn_id"); set => Accessor.SetUInt64("txn_id", value); } - public string Url - { get => Accessor.GetString("url"); set => Accessor.SetString("url", value); } + public string Url { get => Accessor.GetString("url"); set => Accessor.SetString("url", value); } - public IProtobufRepeatedFieldValueType ItemIds - { get => new ProtobufRepeatedFieldValueType(Accessor, "item_ids"); } + public IProtobufRepeatedFieldValueType ItemIds { get => new ProtobufRepeatedFieldValueType(Accessor, "item_ids"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToClientSteamDatagramTicketImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToClientSteamDatagramTicketImpl.cs index 6f83ae193..1b3c53509 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToClientSteamDatagramTicketImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToClientSteamDatagramTicketImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCToClientSteamDatagramTicketImpl : TypedProtobuf, CMsgGCToClientSteamDatagramTicket { - public CMsgGCToClientSteamDatagramTicketImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCToClientSteamDatagramTicketImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public byte[] SerializedTicket - { get => Accessor.GetBytes("serialized_ticket"); set => Accessor.SetBytes("serialized_ticket", value); } + public byte[] SerializedTicket { get => Accessor.GetBytes("serialized_ticket"); set => Accessor.SetBytes("serialized_ticket", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCBannedWordListBroadcastImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCBannedWordListBroadcastImpl.cs index 5848b5edb..b4ac350d4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCBannedWordListBroadcastImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCBannedWordListBroadcastImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCToGCBannedWordListBroadcastImpl : TypedProtobuf, CMsgGCToGCBannedWordListBroadcast { - public CMsgGCToGCBannedWordListBroadcastImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCToGCBannedWordListBroadcastImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CMsgGCBannedWordListResponse Broadcast - { get => new CMsgGCBannedWordListResponseImpl(NativeNetMessages.GetNestedMessage(Address, "broadcast"), false); } + public CMsgGCBannedWordListResponse Broadcast { get => new CMsgGCBannedWordListResponseImpl(NativeNetMessages.GetNestedMessage(Address, "broadcast"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCBannedWordListUpdatedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCBannedWordListUpdatedImpl.cs index 1f7200b98..a99c5d3ec 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCBannedWordListUpdatedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCBannedWordListUpdatedImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCToGCBannedWordListUpdatedImpl : TypedProtobuf, CMsgGCToGCBannedWordListUpdated { - public CMsgGCToGCBannedWordListUpdatedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCToGCBannedWordListUpdatedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint GroupId - { get => Accessor.GetUInt32("group_id"); set => Accessor.SetUInt32("group_id", value); } + public uint GroupId { get => Accessor.GetUInt32("group_id"); set => Accessor.SetUInt32("group_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCBroadcastConsoleCommandImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCBroadcastConsoleCommandImpl.cs index ee3a8c16b..60552abb8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCBroadcastConsoleCommandImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCBroadcastConsoleCommandImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCToGCBroadcastConsoleCommandImpl : TypedProtobuf, CMsgGCToGCBroadcastConsoleCommand { - public CMsgGCToGCBroadcastConsoleCommandImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCToGCBroadcastConsoleCommandImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string ConCommand - { get => Accessor.GetString("con_command"); set => Accessor.SetString("con_command", value); } + public string ConCommand { get => Accessor.GetString("con_command"); set => Accessor.SetString("con_command", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCDirtyMultipleSDOCacheImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCDirtyMultipleSDOCacheImpl.cs index 30da21ef1..e9ddb323e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCDirtyMultipleSDOCacheImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCDirtyMultipleSDOCacheImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCToGCDirtyMultipleSDOCacheImpl : TypedProtobuf, CMsgGCToGCDirtyMultipleSDOCache { - public CMsgGCToGCDirtyMultipleSDOCacheImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCToGCDirtyMultipleSDOCacheImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint SdoType - { get => Accessor.GetUInt32("sdo_type"); set => Accessor.SetUInt32("sdo_type", value); } + public uint SdoType { get => Accessor.GetUInt32("sdo_type"); set => Accessor.SetUInt32("sdo_type", value); } - public IProtobufRepeatedFieldValueType KeyUint64 - { get => new ProtobufRepeatedFieldValueType(Accessor, "key_uint64"); } + public IProtobufRepeatedFieldValueType KeyUint64 { get => new ProtobufRepeatedFieldValueType(Accessor, "key_uint64"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCDirtySDOCacheImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCDirtySDOCacheImpl.cs index 7c63c469e..1a9dc0e1e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCDirtySDOCacheImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCDirtySDOCacheImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCToGCDirtySDOCacheImpl : TypedProtobuf, CMsgGCToGCDirtySDOCache { - public CMsgGCToGCDirtySDOCacheImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCToGCDirtySDOCacheImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint SdoType - { get => Accessor.GetUInt32("sdo_type"); set => Accessor.SetUInt32("sdo_type", value); } + public uint SdoType { get => Accessor.GetUInt32("sdo_type"); set => Accessor.SetUInt32("sdo_type", value); } - public ulong KeyUint64 - { get => Accessor.GetUInt64("key_uint64"); set => Accessor.SetUInt64("key_uint64", value); } + public ulong KeyUint64 { get => Accessor.GetUInt64("key_uint64"); set => Accessor.SetUInt64("key_uint64", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCIsTrustedServerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCIsTrustedServerImpl.cs index adb242d16..e221b3119 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCIsTrustedServerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCIsTrustedServerImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCToGCIsTrustedServerImpl : TypedProtobuf, CMsgGCToGCIsTrustedServer { - public CMsgGCToGCIsTrustedServerImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCToGCIsTrustedServerImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong SteamId - { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } + public ulong SteamId { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCIsTrustedServerResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCIsTrustedServerResponseImpl.cs index 04ac989d7..9cfe309bd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCIsTrustedServerResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCIsTrustedServerResponseImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCToGCIsTrustedServerResponseImpl : TypedProtobuf, CMsgGCToGCIsTrustedServerResponse { - public CMsgGCToGCIsTrustedServerResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCToGCIsTrustedServerResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool IsTrusted - { get => Accessor.GetBool("is_trusted"); set => Accessor.SetBool("is_trusted", value); } + public bool IsTrusted { get => Accessor.GetBool("is_trusted"); set => Accessor.SetBool("is_trusted", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCRequestPassportItemGrantImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCRequestPassportItemGrantImpl.cs index 95acbb02d..0ac5a53a7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCRequestPassportItemGrantImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCRequestPassportItemGrantImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCToGCRequestPassportItemGrantImpl : TypedProtobuf, CMsgGCToGCRequestPassportItemGrant { - public CMsgGCToGCRequestPassportItemGrantImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCToGCRequestPassportItemGrantImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong SteamId - { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } + public ulong SteamId { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } - public uint LeagueId - { get => Accessor.GetUInt32("league_id"); set => Accessor.SetUInt32("league_id", value); } + public uint LeagueId { get => Accessor.GetUInt32("league_id"); set => Accessor.SetUInt32("league_id", value); } - public int RewardFlag - { get => Accessor.GetInt32("reward_flag"); set => Accessor.SetInt32("reward_flag", value); } + public int RewardFlag { get => Accessor.GetInt32("reward_flag"); set => Accessor.SetInt32("reward_flag", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCUpdateSQLKeyValueImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCUpdateSQLKeyValueImpl.cs index 0429e51f6..acd331954 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCUpdateSQLKeyValueImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCUpdateSQLKeyValueImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCToGCUpdateSQLKeyValueImpl : TypedProtobuf, CMsgGCToGCUpdateSQLKeyValue { - public CMsgGCToGCUpdateSQLKeyValueImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCToGCUpdateSQLKeyValueImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string KeyName - { get => Accessor.GetString("key_name"); set => Accessor.SetString("key_name", value); } + public string KeyName { get => Accessor.GetString("key_name"); set => Accessor.SetString("key_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCWebAPIAccountChangedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCWebAPIAccountChangedImpl.cs index cc7a4043f..9d191035f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCWebAPIAccountChangedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCToGCWebAPIAccountChangedImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCToGCWebAPIAccountChangedImpl : TypedProtobuf, CMsgGCToGCWebAPIAccountChanged { - public CMsgGCToGCWebAPIAccountChangedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCToGCWebAPIAccountChangedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCUpdateSessionIPImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCUpdateSessionIPImpl.cs index 66d681aba..8d357abff 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCUpdateSessionIPImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCUpdateSessionIPImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCUpdateSessionIPImpl : TypedProtobuf, CMsgGCUpdateSessionIP { - public CMsgGCUpdateSessionIPImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCUpdateSessionIPImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } - public uint Ip - { get => Accessor.GetUInt32("ip"); set => Accessor.SetUInt32("ip", value); } + public uint Ip { get => Accessor.GetUInt32("ip"); set => Accessor.SetUInt32("ip", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCUserTrackTimePlayedConsecutivelyImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCUserTrackTimePlayedConsecutivelyImpl.cs index 226259523..bfe0d96a6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCUserTrackTimePlayedConsecutivelyImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGCUserTrackTimePlayedConsecutivelyImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGCUserTrackTimePlayedConsecutivelyImpl : TypedProtobuf, CMsgGCUserTrackTimePlayedConsecutively { - public CMsgGCUserTrackTimePlayedConsecutivelyImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGCUserTrackTimePlayedConsecutivelyImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint State - { get => Accessor.GetUInt32("state"); set => Accessor.SetUInt32("state", value); } + public uint State { get => Accessor.GetUInt32("state"); set => Accessor.SetUInt32("state", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_GlobalGame_PlayImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_GlobalGame_PlayImpl.cs index f7e58732f..5b49ba681 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_GlobalGame_PlayImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_GlobalGame_PlayImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGC_GlobalGame_PlayImpl : TypedProtobuf, CMsgGC_GlobalGame_Play { - public CMsgGC_GlobalGame_PlayImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGC_GlobalGame_PlayImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Ticket - { get => Accessor.GetUInt64("ticket"); set => Accessor.SetUInt64("ticket", value); } + public ulong Ticket { get => Accessor.GetUInt64("ticket"); set => Accessor.SetUInt64("ticket", value); } - public uint Gametimems - { get => Accessor.GetUInt32("gametimems"); set => Accessor.SetUInt32("gametimems", value); } + public uint Gametimems { get => Accessor.GetUInt32("gametimems"); set => Accessor.SetUInt32("gametimems", value); } - public uint Msperpoint - { get => Accessor.GetUInt32("msperpoint"); set => Accessor.SetUInt32("msperpoint", value); } + public uint Msperpoint { get => Accessor.GetUInt32("msperpoint"); set => Accessor.SetUInt32("msperpoint", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_GlobalGame_SubscribeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_GlobalGame_SubscribeImpl.cs index a37fc4af6..3635a3da7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_GlobalGame_SubscribeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_GlobalGame_SubscribeImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGC_GlobalGame_SubscribeImpl : TypedProtobuf, CMsgGC_GlobalGame_Subscribe { - public CMsgGC_GlobalGame_SubscribeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGC_GlobalGame_SubscribeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Ticket - { get => Accessor.GetUInt64("ticket"); set => Accessor.SetUInt64("ticket", value); } + public ulong Ticket { get => Accessor.GetUInt64("ticket"); set => Accessor.SetUInt64("ticket", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_GlobalGame_UnsubscribeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_GlobalGame_UnsubscribeImpl.cs index 71716f3a2..b3fc0f5bf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_GlobalGame_UnsubscribeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_GlobalGame_UnsubscribeImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGC_GlobalGame_UnsubscribeImpl : TypedProtobuf, CMsgGC_GlobalGame_Unsubscribe { - public CMsgGC_GlobalGame_UnsubscribeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGC_GlobalGame_UnsubscribeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Timeleft - { get => Accessor.GetInt32("timeleft"); set => Accessor.SetInt32("timeleft", value); } + public int Timeleft { get => Accessor.GetInt32("timeleft"); set => Accessor.SetInt32("timeleft", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_ServerQuestUpdateDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_ServerQuestUpdateDataImpl.cs index b88bb124c..91e689092 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_ServerQuestUpdateDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGC_ServerQuestUpdateDataImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,28 +8,23 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGC_ServerQuestUpdateDataImpl : TypedProtobuf, CMsgGC_ServerQuestUpdateData { - public CMsgGC_ServerQuestUpdateDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGC_ServerQuestUpdateDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType PlayerQuestData - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "player_quest_data"); } + public IProtobufRepeatedFieldSubMessageType PlayerQuestData { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "player_quest_data"); } - public byte[] BinaryData - { get => Accessor.GetBytes("binary_data"); set => Accessor.SetBytes("binary_data", value); } + public byte[] BinaryData { get => Accessor.GetBytes("binary_data"); set => Accessor.SetBytes("binary_data", value); } - public uint MmGameMode - { get => Accessor.GetUInt32("mm_game_mode"); set => Accessor.SetUInt32("mm_game_mode", value); } + public uint MmGameMode { get => Accessor.GetUInt32("mm_game_mode"); set => Accessor.SetUInt32("mm_game_mode", value); } - public ScoreLeaderboardData Missionlbsdata - { get => new ScoreLeaderboardDataImpl(NativeNetMessages.GetNestedMessage(Address, "missionlbsdata"), false); } + public ScoreLeaderboardData Missionlbsdata { get => new ScoreLeaderboardDataImpl(NativeNetMessages.GetNestedMessage(Address, "missionlbsdata"), false); } - public uint Flags - { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } + public uint Flags { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGameServerInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGameServerInfoImpl.cs index 51b3a8254..b65cbc632 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGameServerInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgGameServerInfoImpl.cs @@ -1,88 +1,66 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgGameServerInfoImpl : TypedProtobuf, CMsgGameServerInfo { - public CMsgGameServerInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgGameServerInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ServerPublicIpAddr - { get => Accessor.GetUInt32("server_public_ip_addr"); set => Accessor.SetUInt32("server_public_ip_addr", value); } + public uint ServerPublicIpAddr { get => Accessor.GetUInt32("server_public_ip_addr"); set => Accessor.SetUInt32("server_public_ip_addr", value); } - public uint ServerPrivateIpAddr - { get => Accessor.GetUInt32("server_private_ip_addr"); set => Accessor.SetUInt32("server_private_ip_addr", value); } + public uint ServerPrivateIpAddr { get => Accessor.GetUInt32("server_private_ip_addr"); set => Accessor.SetUInt32("server_private_ip_addr", value); } - public uint ServerPort - { get => Accessor.GetUInt32("server_port"); set => Accessor.SetUInt32("server_port", value); } + public uint ServerPort { get => Accessor.GetUInt32("server_port"); set => Accessor.SetUInt32("server_port", value); } - public uint ServerTvPort - { get => Accessor.GetUInt32("server_tv_port"); set => Accessor.SetUInt32("server_tv_port", value); } + public uint ServerTvPort { get => Accessor.GetUInt32("server_tv_port"); set => Accessor.SetUInt32("server_tv_port", value); } - public string ServerKey - { get => Accessor.GetString("server_key"); set => Accessor.SetString("server_key", value); } + public string ServerKey { get => Accessor.GetString("server_key"); set => Accessor.SetString("server_key", value); } - public bool ServerHibernation - { get => Accessor.GetBool("server_hibernation"); set => Accessor.SetBool("server_hibernation", value); } + public bool ServerHibernation { get => Accessor.GetBool("server_hibernation"); set => Accessor.SetBool("server_hibernation", value); } - public CMsgGameServerInfo_ServerType ServerType - { get => (CMsgGameServerInfo_ServerType)Accessor.GetInt32("server_type"); set => Accessor.SetInt32("server_type", (int)value); } + public CMsgGameServerInfo_ServerType ServerType { get => (CMsgGameServerInfo_ServerType)Accessor.GetInt32("server_type"); set => Accessor.SetInt32("server_type", (int)value); } - public uint ServerRegion - { get => Accessor.GetUInt32("server_region"); set => Accessor.SetUInt32("server_region", value); } + public uint ServerRegion { get => Accessor.GetUInt32("server_region"); set => Accessor.SetUInt32("server_region", value); } - public float ServerLoadavg - { get => Accessor.GetFloat("server_loadavg"); set => Accessor.SetFloat("server_loadavg", value); } + public float ServerLoadavg { get => Accessor.GetFloat("server_loadavg"); set => Accessor.SetFloat("server_loadavg", value); } - public float ServerTvBroadcastTime - { get => Accessor.GetFloat("server_tv_broadcast_time"); set => Accessor.SetFloat("server_tv_broadcast_time", value); } + public float ServerTvBroadcastTime { get => Accessor.GetFloat("server_tv_broadcast_time"); set => Accessor.SetFloat("server_tv_broadcast_time", value); } - public float ServerGameTime - { get => Accessor.GetFloat("server_game_time"); set => Accessor.SetFloat("server_game_time", value); } + public float ServerGameTime { get => Accessor.GetFloat("server_game_time"); set => Accessor.SetFloat("server_game_time", value); } - public ulong ServerRelayConnectedSteamId - { get => Accessor.GetUInt64("server_relay_connected_steam_id"); set => Accessor.SetUInt64("server_relay_connected_steam_id", value); } + public ulong ServerRelayConnectedSteamId { get => Accessor.GetUInt64("server_relay_connected_steam_id"); set => Accessor.SetUInt64("server_relay_connected_steam_id", value); } - public uint RelaySlotsMax - { get => Accessor.GetUInt32("relay_slots_max"); set => Accessor.SetUInt32("relay_slots_max", value); } + public uint RelaySlotsMax { get => Accessor.GetUInt32("relay_slots_max"); set => Accessor.SetUInt32("relay_slots_max", value); } - public int RelaysConnected - { get => Accessor.GetInt32("relays_connected"); set => Accessor.SetInt32("relays_connected", value); } + public int RelaysConnected { get => Accessor.GetInt32("relays_connected"); set => Accessor.SetInt32("relays_connected", value); } - public int RelayClientsConnected - { get => Accessor.GetInt32("relay_clients_connected"); set => Accessor.SetInt32("relay_clients_connected", value); } + public int RelayClientsConnected { get => Accessor.GetInt32("relay_clients_connected"); set => Accessor.SetInt32("relay_clients_connected", value); } - public ulong RelayedGameServerSteamId - { get => Accessor.GetUInt64("relayed_game_server_steam_id"); set => Accessor.SetUInt64("relayed_game_server_steam_id", value); } + public ulong RelayedGameServerSteamId { get => Accessor.GetUInt64("relayed_game_server_steam_id"); set => Accessor.SetUInt64("relayed_game_server_steam_id", value); } - public uint ParentRelayCount - { get => Accessor.GetUInt32("parent_relay_count"); set => Accessor.SetUInt32("parent_relay_count", value); } + public uint ParentRelayCount { get => Accessor.GetUInt32("parent_relay_count"); set => Accessor.SetUInt32("parent_relay_count", value); } - public ulong TvSecretCode - { get => Accessor.GetUInt64("tv_secret_code"); set => Accessor.SetUInt64("tv_secret_code", value); } + public ulong TvSecretCode { get => Accessor.GetUInt64("tv_secret_code"); set => Accessor.SetUInt64("tv_secret_code", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgIPCAddressImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgIPCAddressImpl.cs index 0142ac3c8..96b3b74f1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgIPCAddressImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgIPCAddressImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgIPCAddressImpl : TypedProtobuf, CMsgIPCAddress { - public CMsgIPCAddressImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgIPCAddressImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong ComputerGuid - { get => Accessor.GetUInt64("computer_guid"); set => Accessor.SetUInt64("computer_guid", value); } + public ulong ComputerGuid { get => Accessor.GetUInt64("computer_guid"); set => Accessor.SetUInt64("computer_guid", value); } - public uint ProcessId - { get => Accessor.GetUInt32("process_id"); set => Accessor.SetUInt32("process_id", value); } + public uint ProcessId { get => Accessor.GetUInt32("process_id"); set => Accessor.SetUInt32("process_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgIncrementKillCountAttributeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgIncrementKillCountAttributeImpl.cs index aa405e87c..13753ca79 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgIncrementKillCountAttributeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgIncrementKillCountAttributeImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgIncrementKillCountAttributeImpl : TypedProtobuf, CMsgIncrementKillCountAttribute { - public CMsgIncrementKillCountAttributeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgIncrementKillCountAttributeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint KillerAccountId - { get => Accessor.GetUInt32("killer_account_id"); set => Accessor.SetUInt32("killer_account_id", value); } + public uint KillerAccountId { get => Accessor.GetUInt32("killer_account_id"); set => Accessor.SetUInt32("killer_account_id", value); } - public uint VictimAccountId - { get => Accessor.GetUInt32("victim_account_id"); set => Accessor.SetUInt32("victim_account_id", value); } + public uint VictimAccountId { get => Accessor.GetUInt32("victim_account_id"); set => Accessor.SetUInt32("victim_account_id", value); } - public ulong ItemId - { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } + public ulong ItemId { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } - public uint EventType - { get => Accessor.GetUInt32("event_type"); set => Accessor.SetUInt32("event_type", value); } + public uint EventType { get => Accessor.GetUInt32("event_type"); set => Accessor.SetUInt32("event_type", value); } - public uint Amount - { get => Accessor.GetUInt32("amount"); set => Accessor.SetUInt32("amount", value); } + public uint Amount { get => Accessor.GetUInt32("amount"); set => Accessor.SetUInt32("amount", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgInvitationCreatedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgInvitationCreatedImpl.cs index d4344d2e8..ec2c7c979 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgInvitationCreatedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgInvitationCreatedImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgInvitationCreatedImpl : TypedProtobuf, CMsgInvitationCreated { - public CMsgInvitationCreatedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgInvitationCreatedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong GroupId - { get => Accessor.GetUInt64("group_id"); set => Accessor.SetUInt64("group_id", value); } + public ulong GroupId { get => Accessor.GetUInt64("group_id"); set => Accessor.SetUInt64("group_id", value); } - public ulong SteamId - { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } + public ulong SteamId { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgInviteToPartyImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgInviteToPartyImpl.cs index a52297fff..3f49ee999 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgInviteToPartyImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgInviteToPartyImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgInviteToPartyImpl : TypedProtobuf, CMsgInviteToParty { - public CMsgInviteToPartyImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgInviteToPartyImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong SteamId - { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } + public ulong SteamId { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } - public uint ClientVersion - { get => Accessor.GetUInt32("client_version"); set => Accessor.SetUInt32("client_version", value); } + public uint ClientVersion { get => Accessor.GetUInt32("client_version"); set => Accessor.SetUInt32("client_version", value); } - public uint TeamInvite - { get => Accessor.GetUInt32("team_invite"); set => Accessor.SetUInt32("team_invite", value); } + public uint TeamInvite { get => Accessor.GetUInt32("team_invite"); set => Accessor.SetUInt32("team_invite", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgItemAcknowledgedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgItemAcknowledgedImpl.cs index b3716e759..48828fd16 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgItemAcknowledgedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgItemAcknowledgedImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgItemAcknowledgedImpl : TypedProtobuf, CMsgItemAcknowledged { - public CMsgItemAcknowledgedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgItemAcknowledgedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CEconItemPreviewDataBlock Iteminfo - { get => new CEconItemPreviewDataBlockImpl(NativeNetMessages.GetNestedMessage(Address, "iteminfo"), false); } + public CEconItemPreviewDataBlock Iteminfo { get => new CEconItemPreviewDataBlockImpl(NativeNetMessages.GetNestedMessage(Address, "iteminfo"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgItemAcknowledged__DEPRECATEDImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgItemAcknowledged__DEPRECATEDImpl.cs index efe3ecefa..2cbc24487 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgItemAcknowledged__DEPRECATEDImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgItemAcknowledged__DEPRECATEDImpl.cs @@ -1,44 +1,33 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgItemAcknowledged__DEPRECATEDImpl : TypedProtobuf, CMsgItemAcknowledged__DEPRECATED { - public CMsgItemAcknowledged__DEPRECATEDImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgItemAcknowledged__DEPRECATEDImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint Inventory - { get => Accessor.GetUInt32("inventory"); set => Accessor.SetUInt32("inventory", value); } + public uint Inventory { get => Accessor.GetUInt32("inventory"); set => Accessor.SetUInt32("inventory", value); } - public uint DefIndex - { get => Accessor.GetUInt32("def_index"); set => Accessor.SetUInt32("def_index", value); } + public uint DefIndex { get => Accessor.GetUInt32("def_index"); set => Accessor.SetUInt32("def_index", value); } - public uint Quality - { get => Accessor.GetUInt32("quality"); set => Accessor.SetUInt32("quality", value); } + public uint Quality { get => Accessor.GetUInt32("quality"); set => Accessor.SetUInt32("quality", value); } - public uint Rarity - { get => Accessor.GetUInt32("rarity"); set => Accessor.SetUInt32("rarity", value); } + public uint Rarity { get => Accessor.GetUInt32("rarity"); set => Accessor.SetUInt32("rarity", value); } - public uint Origin - { get => Accessor.GetUInt32("origin"); set => Accessor.SetUInt32("origin", value); } + public uint Origin { get => Accessor.GetUInt32("origin"); set => Accessor.SetUInt32("origin", value); } - public ulong ItemId - { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } + public ulong ItemId { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgKickFromPartyImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgKickFromPartyImpl.cs index 13ce2174c..5a66b6dd2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgKickFromPartyImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgKickFromPartyImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgKickFromPartyImpl : TypedProtobuf, CMsgKickFromParty { - public CMsgKickFromPartyImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgKickFromPartyImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong SteamId - { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } + public ulong SteamId { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLANServerAvailableImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLANServerAvailableImpl.cs index 7a0e1c0c0..c549e6425 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLANServerAvailableImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLANServerAvailableImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgLANServerAvailableImpl : TypedProtobuf, CMsgLANServerAvailable { - public CMsgLANServerAvailableImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgLANServerAvailableImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong LobbyId - { get => Accessor.GetUInt64("lobby_id"); set => Accessor.SetUInt64("lobby_id", value); } + public ulong LobbyId { get => Accessor.GetUInt64("lobby_id"); set => Accessor.SetUInt64("lobby_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLeavePartyImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLeavePartyImpl.cs index 53fa2d067..e93585d4b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLeavePartyImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLeavePartyImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgLeavePartyImpl : TypedProtobuf, CMsgLeaveParty { - public CMsgLeavePartyImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgLeavePartyImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLegacySource1ClientWelcomeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLegacySource1ClientWelcomeImpl.cs index 1afdddc8a..0edc7fa34 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLegacySource1ClientWelcomeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLegacySource1ClientWelcomeImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,52 +8,41 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgLegacySource1ClientWelcomeImpl : TypedProtobuf, CMsgLegacySource1ClientWelcome { - public CMsgLegacySource1ClientWelcomeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgLegacySource1ClientWelcomeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Version - { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } + public uint Version { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } - public byte[] GameData - { get => Accessor.GetBytes("game_data"); set => Accessor.SetBytes("game_data", value); } + public byte[] GameData { get => Accessor.GetBytes("game_data"); set => Accessor.SetBytes("game_data", value); } - public IProtobufRepeatedFieldSubMessageType OutofdateSubscribedCaches - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "outofdate_subscribed_caches"); } + public IProtobufRepeatedFieldSubMessageType OutofdateSubscribedCaches { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "outofdate_subscribed_caches"); } - public IProtobufRepeatedFieldSubMessageType UptodateSubscribedCaches - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "uptodate_subscribed_caches"); } + public IProtobufRepeatedFieldSubMessageType UptodateSubscribedCaches { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "uptodate_subscribed_caches"); } - public CMsgLegacySource1ClientWelcome_Location Location - { get => new CMsgLegacySource1ClientWelcome_LocationImpl(NativeNetMessages.GetNestedMessage(Address, "location"), false); } + public CMsgLegacySource1ClientWelcome_Location Location { get => new CMsgLegacySource1ClientWelcome_LocationImpl(NativeNetMessages.GetNestedMessage(Address, "location"), false); } - public byte[] GameData2 - { get => Accessor.GetBytes("game_data2"); set => Accessor.SetBytes("game_data2", value); } + public byte[] GameData2 { get => Accessor.GetBytes("game_data2"); set => Accessor.SetBytes("game_data2", value); } - public uint Rtime32GcWelcomeTimestamp - { get => Accessor.GetUInt32("rtime32_gc_welcome_timestamp"); set => Accessor.SetUInt32("rtime32_gc_welcome_timestamp", value); } + public uint Rtime32GcWelcomeTimestamp { get => Accessor.GetUInt32("rtime32_gc_welcome_timestamp"); set => Accessor.SetUInt32("rtime32_gc_welcome_timestamp", value); } - public uint Currency - { get => Accessor.GetUInt32("currency"); set => Accessor.SetUInt32("currency", value); } + public uint Currency { get => Accessor.GetUInt32("currency"); set => Accessor.SetUInt32("currency", value); } - public uint Balance - { get => Accessor.GetUInt32("balance"); set => Accessor.SetUInt32("balance", value); } + public uint Balance { get => Accessor.GetUInt32("balance"); set => Accessor.SetUInt32("balance", value); } - public string BalanceUrl - { get => Accessor.GetString("balance_url"); set => Accessor.SetString("balance_url", value); } + public string BalanceUrl { get => Accessor.GetString("balance_url"); set => Accessor.SetString("balance_url", value); } - public string TxnCountryCode - { get => Accessor.GetString("txn_country_code"); set => Accessor.SetString("txn_country_code", value); } + public string TxnCountryCode { get => Accessor.GetString("txn_country_code"); set => Accessor.SetString("txn_country_code", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLegacySource1ClientWelcome_LocationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLegacySource1ClientWelcome_LocationImpl.cs index 821a567d7..50e89e915 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLegacySource1ClientWelcome_LocationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgLegacySource1ClientWelcome_LocationImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgLegacySource1ClientWelcome_LocationImpl : TypedProtobuf, CMsgLegacySource1ClientWelcome_Location { - public CMsgLegacySource1ClientWelcome_LocationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgLegacySource1ClientWelcome_LocationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float Latitude - { get => Accessor.GetFloat("latitude"); set => Accessor.SetFloat("latitude", value); } + public float Latitude { get => Accessor.GetFloat("latitude"); set => Accessor.SetFloat("latitude", value); } - public float Longitude - { get => Accessor.GetFloat("longitude"); set => Accessor.SetFloat("longitude", value); } + public float Longitude { get => Accessor.GetFloat("longitude"); set => Accessor.SetFloat("longitude", value); } - public string Country - { get => Accessor.GetString("country"); set => Accessor.SetString("country", value); } + public string Country { get => Accessor.GetString("country"); set => Accessor.SetString("country", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgModifyItemAttributeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgModifyItemAttributeImpl.cs index e5abdb4f4..621399958 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgModifyItemAttributeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgModifyItemAttributeImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgModifyItemAttributeImpl : TypedProtobuf, CMsgModifyItemAttribute { - public CMsgModifyItemAttributeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgModifyItemAttributeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong ItemId - { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } + public ulong ItemId { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } - public uint AttrDefidx - { get => Accessor.GetUInt32("attr_defidx"); set => Accessor.SetUInt32("attr_defidx", value); } + public uint AttrDefidx { get => Accessor.GetUInt32("attr_defidx"); set => Accessor.SetUInt32("attr_defidx", value); } - public uint AttrValue - { get => Accessor.GetUInt32("attr_value"); set => Accessor.SetUInt32("attr_value", value); } + public uint AttrValue { get => Accessor.GetUInt32("attr_value"); set => Accessor.SetUInt32("attr_value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgOpenCrateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgOpenCrateImpl.cs index 8e3585d1c..7205a799e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgOpenCrateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgOpenCrateImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgOpenCrateImpl : TypedProtobuf, CMsgOpenCrate { - public CMsgOpenCrateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgOpenCrateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong ToolItemId - { get => Accessor.GetUInt64("tool_item_id"); set => Accessor.SetUInt64("tool_item_id", value); } + public ulong ToolItemId { get => Accessor.GetUInt64("tool_item_id"); set => Accessor.SetUInt64("tool_item_id", value); } - public ulong SubjectItemId - { get => Accessor.GetUInt64("subject_item_id"); set => Accessor.SetUInt64("subject_item_id", value); } + public ulong SubjectItemId { get => Accessor.GetUInt64("subject_item_id"); set => Accessor.SetUInt64("subject_item_id", value); } - public bool ForRental - { get => Accessor.GetBool("for_rental"); set => Accessor.SetBool("for_rental", value); } + public bool ForRental { get => Accessor.GetBool("for_rental"); set => Accessor.SetBool("for_rental", value); } - public uint PointsRemaining - { get => Accessor.GetUInt32("points_remaining"); set => Accessor.SetUInt32("points_remaining", value); } + public uint PointsRemaining { get => Accessor.GetUInt32("points_remaining"); set => Accessor.SetUInt32("points_remaining", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPartyInviteResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPartyInviteResponseImpl.cs index 4c453c3b9..1b2215b5b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPartyInviteResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPartyInviteResponseImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgPartyInviteResponseImpl : TypedProtobuf, CMsgPartyInviteResponse { - public CMsgPartyInviteResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgPartyInviteResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong PartyId - { get => Accessor.GetUInt64("party_id"); set => Accessor.SetUInt64("party_id", value); } + public ulong PartyId { get => Accessor.GetUInt64("party_id"); set => Accessor.SetUInt64("party_id", value); } - public bool Accept - { get => Accessor.GetBool("accept"); set => Accessor.SetBool("accept", value); } + public bool Accept { get => Accessor.GetBool("accept"); set => Accessor.SetBool("accept", value); } - public uint ClientVersion - { get => Accessor.GetUInt32("client_version"); set => Accessor.SetUInt32("client_version", value); } + public uint ClientVersion { get => Accessor.GetUInt32("client_version"); set => Accessor.SetUInt32("client_version", value); } - public uint TeamInvite - { get => Accessor.GetUInt32("team_invite"); set => Accessor.SetUInt32("team_invite", value); } + public uint TeamInvite { get => Accessor.GetUInt32("team_invite"); set => Accessor.SetUInt32("team_invite", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPlaceDecalEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPlaceDecalEventImpl.cs index b56ba23db..c4a58a04c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPlaceDecalEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPlaceDecalEventImpl.cs @@ -1,68 +1,52 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgPlaceDecalEventImpl : NetMessage, CMsgPlaceDecalEvent { - public CMsgPlaceDecalEventImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgPlaceDecalEventImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Position - { get => Accessor.GetVector("position"); set => Accessor.SetVector("position", value); } + public Vector Position { get => Accessor.GetVector("position"); set => Accessor.SetVector("position", value); } - public Vector Normal - { get => Accessor.GetVector("normal"); set => Accessor.SetVector("normal", value); } + public Vector Normal { get => Accessor.GetVector("normal"); set => Accessor.SetVector("normal", value); } - public Vector Saxis - { get => Accessor.GetVector("saxis"); set => Accessor.SetVector("saxis", value); } + public Vector Saxis { get => Accessor.GetVector("saxis"); set => Accessor.SetVector("saxis", value); } - public int Boneindex - { get => Accessor.GetInt32("boneindex"); set => Accessor.SetInt32("boneindex", value); } + public int Boneindex { get => Accessor.GetInt32("boneindex"); set => Accessor.SetInt32("boneindex", value); } - public int Triangleindex - { get => Accessor.GetInt32("triangleindex"); set => Accessor.SetInt32("triangleindex", value); } + public int Triangleindex { get => Accessor.GetInt32("triangleindex"); set => Accessor.SetInt32("triangleindex", value); } - public uint Flags - { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } + public uint Flags { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } - public uint Color - { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } + public uint Color { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } - public int RandomSeed - { get => Accessor.GetInt32("random_seed"); set => Accessor.SetInt32("random_seed", value); } + public int RandomSeed { get => Accessor.GetInt32("random_seed"); set => Accessor.SetInt32("random_seed", value); } - public uint DecalGroupName - { get => Accessor.GetUInt32("decal_group_name"); set => Accessor.SetUInt32("decal_group_name", value); } + public uint DecalGroupName { get => Accessor.GetUInt32("decal_group_name"); set => Accessor.SetUInt32("decal_group_name", value); } - public float SizeOverride - { get => Accessor.GetFloat("size_override"); set => Accessor.SetFloat("size_override", value); } + public float SizeOverride { get => Accessor.GetFloat("size_override"); set => Accessor.SetFloat("size_override", value); } - public uint Entityhandle - { get => Accessor.GetUInt32("entityhandle"); set => Accessor.SetUInt32("entityhandle", value); } + public uint Entityhandle { get => Accessor.GetUInt32("entityhandle"); set => Accessor.SetUInt32("entityhandle", value); } - public ulong MaterialId - { get => Accessor.GetUInt64("material_id"); set => Accessor.SetUInt64("material_id", value); } + public ulong MaterialId { get => Accessor.GetUInt64("material_id"); set => Accessor.SetUInt64("material_id", value); } - public uint SequenceName - { get => Accessor.GetUInt32("sequence_name"); set => Accessor.SetUInt32("sequence_name", value); } + public uint SequenceName { get => Accessor.GetUInt32("sequence_name"); set => Accessor.SetUInt32("sequence_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPlayerBulletHitImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPlayerBulletHitImpl.cs index f08f94236..d6a160f9f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPlayerBulletHitImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPlayerBulletHitImpl.cs @@ -1,44 +1,34 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgPlayerBulletHitImpl : TypedProtobuf, CMsgPlayerBulletHit { - public CMsgPlayerBulletHitImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgPlayerBulletHitImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int AttackerSlot - { get => Accessor.GetInt32("attacker_slot"); set => Accessor.SetInt32("attacker_slot", value); } + public int AttackerSlot { get => Accessor.GetInt32("attacker_slot"); set => Accessor.SetInt32("attacker_slot", value); } - public int VictimSlot - { get => Accessor.GetInt32("victim_slot"); set => Accessor.SetInt32("victim_slot", value); } + public int VictimSlot { get => Accessor.GetInt32("victim_slot"); set => Accessor.SetInt32("victim_slot", value); } - public Vector VictimPos - { get => Accessor.GetVector("victim_pos"); set => Accessor.SetVector("victim_pos", value); } + public Vector VictimPos { get => Accessor.GetVector("victim_pos"); set => Accessor.SetVector("victim_pos", value); } - public int HitGroup - { get => Accessor.GetInt32("hit_group"); set => Accessor.SetInt32("hit_group", value); } + public int HitGroup { get => Accessor.GetInt32("hit_group"); set => Accessor.SetInt32("hit_group", value); } - public int Damage - { get => Accessor.GetInt32("damage"); set => Accessor.SetInt32("damage", value); } + public int Damage { get => Accessor.GetInt32("damage"); set => Accessor.SetInt32("damage", value); } - public int PenetrationCount - { get => Accessor.GetInt32("penetration_count"); set => Accessor.SetInt32("penetration_count", value); } + public int PenetrationCount { get => Accessor.GetInt32("penetration_count"); set => Accessor.SetInt32("penetration_count", value); } - public bool IsKill - { get => Accessor.GetBool("is_kill"); set => Accessor.SetBool("is_kill", value); } + public bool IsKill { get => Accessor.GetBool("is_kill"); set => Accessor.SetBool("is_kill", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPlayerInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPlayerInfoImpl.cs index e7ab77d6a..0dc2c3032 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPlayerInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgPlayerInfoImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgPlayerInfoImpl : TypedProtobuf, CMsgPlayerInfo { - public CMsgPlayerInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgPlayerInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public ulong Xuid - { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } + public ulong Xuid { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } - public int Userid - { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } + public int Userid { get => Accessor.GetInt32("userid"); set => Accessor.SetInt32("userid", value); } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } - public bool Fakeplayer - { get => Accessor.GetBool("fakeplayer"); set => Accessor.SetBool("fakeplayer", value); } + public bool Fakeplayer { get => Accessor.GetBool("fakeplayer"); set => Accessor.SetBool("fakeplayer", value); } - public bool Ishltv - { get => Accessor.GetBool("ishltv"); set => Accessor.SetBool("ishltv", value); } + public bool Ishltv { get => Accessor.GetBool("ishltv"); set => Accessor.SetBool("ishltv", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgQAngleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgQAngleImpl.cs index 04ba4efef..6ba5161e8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgQAngleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgQAngleImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgQAngleImpl : TypedProtobuf, CMsgQAngle { - public CMsgQAngleImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgQAngleImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgQuaternionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgQuaternionImpl.cs index 93234ba78..ec0f2b06d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgQuaternionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgQuaternionImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgQuaternionImpl : TypedProtobuf, CMsgQuaternion { - public CMsgQuaternionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgQuaternionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } - public float W - { get => Accessor.GetFloat("w"); set => Accessor.SetFloat("w", value); } + public float W { get => Accessor.GetFloat("w"); set => Accessor.SetFloat("w", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRGBAImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRGBAImpl.cs index 4e44dbdab..e97a2f921 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRGBAImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRGBAImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgRGBAImpl : TypedProtobuf, CMsgRGBA { - public CMsgRGBAImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgRGBAImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int R - { get => Accessor.GetInt32("r"); set => Accessor.SetInt32("r", value); } + public int R { get => Accessor.GetInt32("r"); set => Accessor.SetInt32("r", value); } - public int G - { get => Accessor.GetInt32("g"); set => Accessor.SetInt32("g", value); } + public int G { get => Accessor.GetInt32("g"); set => Accessor.SetInt32("g", value); } - public int B - { get => Accessor.GetInt32("b"); set => Accessor.SetInt32("b", value); } + public int B { get => Accessor.GetInt32("b"); set => Accessor.SetInt32("b", value); } - public int A - { get => Accessor.GetInt32("a"); set => Accessor.SetInt32("a", value); } + public int A { get => Accessor.GetInt32("a"); set => Accessor.SetInt32("a", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRecurringMissionSchemaImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRecurringMissionSchemaImpl.cs index 5900f2367..268a725c3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRecurringMissionSchemaImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRecurringMissionSchemaImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgRecurringMissionSchemaImpl : TypedProtobuf, CMsgRecurringMissionSchema { - public CMsgRecurringMissionSchemaImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgRecurringMissionSchemaImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Missions - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "missions"); } + public IProtobufRepeatedFieldSubMessageType Missions { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "missions"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRecurringMissionSchema_MissionTemplateListImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRecurringMissionSchema_MissionTemplateListImpl.cs index a820166b5..bfea3ff9d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRecurringMissionSchema_MissionTemplateListImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRecurringMissionSchema_MissionTemplateListImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgRecurringMissionSchema_MissionTemplateListImpl : TypedProtobuf, CMsgRecurringMissionSchema_MissionTemplateList { - public CMsgRecurringMissionSchema_MissionTemplateListImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgRecurringMissionSchema_MissionTemplateListImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Period - { get => Accessor.GetUInt32("period"); set => Accessor.SetUInt32("period", value); } + public uint Period { get => Accessor.GetUInt32("period"); set => Accessor.SetUInt32("period", value); } - public IProtobufRepeatedFieldValueType MissionTemplates - { get => new ProtobufRepeatedFieldValueType(Accessor, "mission_templates"); } + public IProtobufRepeatedFieldValueType MissionTemplates { get => new ProtobufRepeatedFieldValueType(Accessor, "mission_templates"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgReplayUploadedToYouTubeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgReplayUploadedToYouTubeImpl.cs index 6dffc7586..a1e9310d4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgReplayUploadedToYouTubeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgReplayUploadedToYouTubeImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgReplayUploadedToYouTubeImpl : TypedProtobuf, CMsgReplayUploadedToYouTube { - public CMsgReplayUploadedToYouTubeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgReplayUploadedToYouTubeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string YoutubeUrl - { get => Accessor.GetString("youtube_url"); set => Accessor.SetString("youtube_url", value); } + public string YoutubeUrl { get => Accessor.GetString("youtube_url"); set => Accessor.SetString("youtube_url", value); } - public string YoutubeAccountName - { get => Accessor.GetString("youtube_account_name"); set => Accessor.SetString("youtube_account_name", value); } + public string YoutubeAccountName { get => Accessor.GetString("youtube_account_name"); set => Accessor.SetString("youtube_account_name", value); } - public ulong SessionId - { get => Accessor.GetUInt64("session_id"); set => Accessor.SetUInt64("session_id", value); } + public ulong SessionId { get => Accessor.GetUInt64("session_id"); set => Accessor.SetUInt64("session_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgReplicateConVarsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgReplicateConVarsImpl.cs index 6cf942ea9..5c13447a0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgReplicateConVarsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgReplicateConVarsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgReplicateConVarsImpl : TypedProtobuf, CMsgReplicateConVars { - public CMsgReplicateConVarsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgReplicateConVarsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Convars - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "convars"); } + public IProtobufRepeatedFieldSubMessageType Convars { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "convars"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRequestInventoryRefreshImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRequestInventoryRefreshImpl.cs index 831d6c71a..dc94e5d45 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRequestInventoryRefreshImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRequestInventoryRefreshImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgRequestInventoryRefreshImpl : TypedProtobuf, CMsgRequestInventoryRefresh { - public CMsgRequestInventoryRefreshImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgRequestInventoryRefreshImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRequestRecurringMissionScheduleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRequestRecurringMissionScheduleImpl.cs index a9b5c1174..b3044b17a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRequestRecurringMissionScheduleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgRequestRecurringMissionScheduleImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgRequestRecurringMissionScheduleImpl : TypedProtobuf, CMsgRequestRecurringMissionSchedule { - public CMsgRequestRecurringMissionScheduleImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgRequestRecurringMissionScheduleImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSDONoMemcachedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSDONoMemcachedImpl.cs index 6516c414a..d708afd13 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSDONoMemcachedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSDONoMemcachedImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSDONoMemcachedImpl : TypedProtobuf, CMsgSDONoMemcached { - public CMsgSDONoMemcachedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSDONoMemcachedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheHaveVersionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheHaveVersionImpl.cs index b292316e5..e8ef78e00 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheHaveVersionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheHaveVersionImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSOCacheHaveVersionImpl : TypedProtobuf, CMsgSOCacheHaveVersion { - public CMsgSOCacheHaveVersionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSOCacheHaveVersionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CMsgSOIDOwner Soid - { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "soid"), false); } + public CMsgSOIDOwner Soid { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "soid"), false); } - public ulong Version - { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } + public ulong Version { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscribedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscribedImpl.cs index 866a1e72f..37ca376bc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscribedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscribedImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +8,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSOCacheSubscribedImpl : TypedProtobuf, CMsgSOCacheSubscribed { - public CMsgSOCacheSubscribedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSOCacheSubscribedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Objects - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "objects"); } + public IProtobufRepeatedFieldSubMessageType Objects { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "objects"); } - public ulong Version - { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } + public ulong Version { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } - public CMsgSOIDOwner OwnerSoid - { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "owner_soid"), false); } + public CMsgSOIDOwner OwnerSoid { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "owner_soid"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscribed_SubscribedTypeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscribed_SubscribedTypeImpl.cs index e1ae1ef24..155cd1c76 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscribed_SubscribedTypeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscribed_SubscribedTypeImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSOCacheSubscribed_SubscribedTypeImpl : TypedProtobuf, CMsgSOCacheSubscribed_SubscribedType { - public CMsgSOCacheSubscribed_SubscribedTypeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSOCacheSubscribed_SubscribedTypeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int TypeId - { get => Accessor.GetInt32("type_id"); set => Accessor.SetInt32("type_id", value); } + public int TypeId { get => Accessor.GetInt32("type_id"); set => Accessor.SetInt32("type_id", value); } - public IProtobufRepeatedFieldValueType ObjectData - { get => new ProtobufRepeatedFieldValueType(Accessor, "object_data"); } + public IProtobufRepeatedFieldValueType ObjectData { get => new ProtobufRepeatedFieldValueType(Accessor, "object_data"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscriptionCheckImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscriptionCheckImpl.cs index 4316b1948..abd0aafe4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscriptionCheckImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscriptionCheckImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSOCacheSubscriptionCheckImpl : TypedProtobuf, CMsgSOCacheSubscriptionCheck { - public CMsgSOCacheSubscriptionCheckImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSOCacheSubscriptionCheckImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Version - { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } + public ulong Version { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } - public CMsgSOIDOwner OwnerSoid - { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "owner_soid"), false); } + public CMsgSOIDOwner OwnerSoid { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "owner_soid"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscriptionRefreshImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscriptionRefreshImpl.cs index ad35061eb..5ac41adf8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscriptionRefreshImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheSubscriptionRefreshImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSOCacheSubscriptionRefreshImpl : TypedProtobuf, CMsgSOCacheSubscriptionRefresh { - public CMsgSOCacheSubscriptionRefreshImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSOCacheSubscriptionRefreshImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CMsgSOIDOwner OwnerSoid - { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "owner_soid"), false); } + public CMsgSOIDOwner OwnerSoid { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "owner_soid"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheUnsubscribedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheUnsubscribedImpl.cs index 2bfb90d15..df1acaa66 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheUnsubscribedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheUnsubscribedImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSOCacheUnsubscribedImpl : TypedProtobuf, CMsgSOCacheUnsubscribed { - public CMsgSOCacheUnsubscribedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSOCacheUnsubscribedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CMsgSOIDOwner OwnerSoid - { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "owner_soid"), false); } + public CMsgSOIDOwner OwnerSoid { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "owner_soid"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheVersionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheVersionImpl.cs index 677a01679..b3b21f898 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheVersionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOCacheVersionImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSOCacheVersionImpl : TypedProtobuf, CMsgSOCacheVersion { - public CMsgSOCacheVersionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSOCacheVersionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Version - { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } + public ulong Version { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOIDOwnerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOIDOwnerImpl.cs index 66285b336..1d314d812 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOIDOwnerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOIDOwnerImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSOIDOwnerImpl : TypedProtobuf, CMsgSOIDOwner { - public CMsgSOIDOwnerImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSOIDOwnerImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Type - { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } + public uint Type { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } - public ulong Id - { get => Accessor.GetUInt64("id"); set => Accessor.SetUInt64("id", value); } + public ulong Id { get => Accessor.GetUInt64("id"); set => Accessor.SetUInt64("id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOMultipleObjectsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOMultipleObjectsImpl.cs index 61fd51465..0d6955846 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOMultipleObjectsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOMultipleObjectsImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +8,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSOMultipleObjectsImpl : TypedProtobuf, CMsgSOMultipleObjects { - public CMsgSOMultipleObjectsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSOMultipleObjectsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType ObjectsModified - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "objects_modified"); } + public IProtobufRepeatedFieldSubMessageType ObjectsModified { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "objects_modified"); } - public ulong Version - { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } + public ulong Version { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } - public CMsgSOIDOwner OwnerSoid - { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "owner_soid"), false); } + public CMsgSOIDOwner OwnerSoid { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "owner_soid"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOMultipleObjects_SingleObjectImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOMultipleObjects_SingleObjectImpl.cs index e0a696a7f..2954543ac 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOMultipleObjects_SingleObjectImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOMultipleObjects_SingleObjectImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSOMultipleObjects_SingleObjectImpl : TypedProtobuf, CMsgSOMultipleObjects_SingleObject { - public CMsgSOMultipleObjects_SingleObjectImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSOMultipleObjects_SingleObjectImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int TypeId - { get => Accessor.GetInt32("type_id"); set => Accessor.SetInt32("type_id", value); } + public int TypeId { get => Accessor.GetInt32("type_id"); set => Accessor.SetInt32("type_id", value); } - public byte[] ObjectData - { get => Accessor.GetBytes("object_data"); set => Accessor.SetBytes("object_data", value); } + public byte[] ObjectData { get => Accessor.GetBytes("object_data"); set => Accessor.SetBytes("object_data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOSingleObjectImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOSingleObjectImpl.cs index a96bab8f4..92913381d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOSingleObjectImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSOSingleObjectImpl.cs @@ -1,32 +1,26 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSOSingleObjectImpl : TypedProtobuf, CMsgSOSingleObject { - public CMsgSOSingleObjectImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSOSingleObjectImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int TypeId - { get => Accessor.GetInt32("type_id"); set => Accessor.SetInt32("type_id", value); } + public int TypeId { get => Accessor.GetInt32("type_id"); set => Accessor.SetInt32("type_id", value); } - public byte[] ObjectData - { get => Accessor.GetBytes("object_data"); set => Accessor.SetBytes("object_data", value); } + public byte[] ObjectData { get => Accessor.GetBytes("object_data"); set => Accessor.SetBytes("object_data", value); } - public ulong Version - { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } + public ulong Version { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } - public CMsgSOIDOwner OwnerSoid - { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "owner_soid"), false); } + public CMsgSOIDOwner OwnerSoid { get => new CMsgSOIDOwnerImpl(NativeNetMessages.GetNestedMessage(Address, "owner_soid"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCacheImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCacheImpl.cs index 73da0fb7a..5a4a0751e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCacheImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCacheImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSerializedSOCacheImpl : TypedProtobuf, CMsgSerializedSOCache { - public CMsgSerializedSOCacheImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSerializedSOCacheImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint FileVersion - { get => Accessor.GetUInt32("file_version"); set => Accessor.SetUInt32("file_version", value); } + public uint FileVersion { get => Accessor.GetUInt32("file_version"); set => Accessor.SetUInt32("file_version", value); } - public IProtobufRepeatedFieldSubMessageType Caches - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "caches"); } + public IProtobufRepeatedFieldSubMessageType Caches { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "caches"); } - public uint GcSocacheFileVersion - { get => Accessor.GetUInt32("gc_socache_file_version"); set => Accessor.SetUInt32("gc_socache_file_version", value); } + public uint GcSocacheFileVersion { get => Accessor.GetUInt32("gc_socache_file_version"); set => Accessor.SetUInt32("gc_socache_file_version", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCache_CacheImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCache_CacheImpl.cs index c012ac52e..9c2cb8828 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCache_CacheImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCache_CacheImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSerializedSOCache_CacheImpl : TypedProtobuf, CMsgSerializedSOCache_Cache { - public CMsgSerializedSOCache_CacheImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSerializedSOCache_CacheImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Type - { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } + public uint Type { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } - public ulong Id - { get => Accessor.GetUInt64("id"); set => Accessor.SetUInt64("id", value); } + public ulong Id { get => Accessor.GetUInt64("id"); set => Accessor.SetUInt64("id", value); } - public IProtobufRepeatedFieldSubMessageType Versions - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "versions"); } + public IProtobufRepeatedFieldSubMessageType Versions { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "versions"); } - public IProtobufRepeatedFieldSubMessageType TypeCaches - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "type_caches"); } + public IProtobufRepeatedFieldSubMessageType TypeCaches { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "type_caches"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCache_Cache_VersionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCache_Cache_VersionImpl.cs index 141e65a1b..4e3ecf70a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCache_Cache_VersionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCache_Cache_VersionImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSerializedSOCache_Cache_VersionImpl : TypedProtobuf, CMsgSerializedSOCache_Cache_Version { - public CMsgSerializedSOCache_Cache_VersionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSerializedSOCache_Cache_VersionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Service - { get => Accessor.GetUInt32("service"); set => Accessor.SetUInt32("service", value); } + public uint Service { get => Accessor.GetUInt32("service"); set => Accessor.SetUInt32("service", value); } - public ulong Version - { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } + public ulong Version { get => Accessor.GetUInt64("version"); set => Accessor.SetUInt64("version", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCache_TypeCacheImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCache_TypeCacheImpl.cs index e3faefbf7..fb6c341d3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCache_TypeCacheImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSerializedSOCache_TypeCacheImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSerializedSOCache_TypeCacheImpl : TypedProtobuf, CMsgSerializedSOCache_TypeCache { - public CMsgSerializedSOCache_TypeCacheImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSerializedSOCache_TypeCacheImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Type - { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } + public uint Type { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } - public IProtobufRepeatedFieldValueType Objects - { get => new ProtobufRepeatedFieldValueType(Accessor, "objects"); } + public IProtobufRepeatedFieldValueType Objects { get => new ProtobufRepeatedFieldValueType(Accessor, "objects"); } - public uint ServiceId - { get => Accessor.GetUInt32("service_id"); set => Accessor.SetUInt32("service_id", value); } + public uint ServiceId { get => Accessor.GetUInt32("service_id"); set => Accessor.SetUInt32("service_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerAvailableImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerAvailableImpl.cs index e028ea5c8..6f5ddabd4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerAvailableImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerAvailableImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgServerAvailableImpl : TypedProtobuf, CMsgServerAvailable { - public CMsgServerAvailableImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgServerAvailableImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerHelloImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerHelloImpl.cs index 285ab515d..a9fc291dc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerHelloImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerHelloImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,40 +6,32 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgServerHelloImpl : TypedProtobuf, CMsgServerHello { - public CMsgServerHelloImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgServerHelloImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Version - { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } + public uint Version { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } - public IProtobufRepeatedFieldSubMessageType SocacheHaveVersions - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "socache_have_versions"); } + public IProtobufRepeatedFieldSubMessageType SocacheHaveVersions { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "socache_have_versions"); } - public uint LegacyClientSessionNeed - { get => Accessor.GetUInt32("legacy_client_session_need"); set => Accessor.SetUInt32("legacy_client_session_need", value); } + public uint LegacyClientSessionNeed { get => Accessor.GetUInt32("legacy_client_session_need"); set => Accessor.SetUInt32("legacy_client_session_need", value); } - public uint ClientLauncher - { get => Accessor.GetUInt32("client_launcher"); set => Accessor.SetUInt32("client_launcher", value); } + public uint ClientLauncher { get => Accessor.GetUInt32("client_launcher"); set => Accessor.SetUInt32("client_launcher", value); } - public byte[] LegacySteamdatagramRouting - { get => Accessor.GetBytes("legacy_steamdatagram_routing"); set => Accessor.SetBytes("legacy_steamdatagram_routing", value); } + public byte[] LegacySteamdatagramRouting { get => Accessor.GetBytes("legacy_steamdatagram_routing"); set => Accessor.SetBytes("legacy_steamdatagram_routing", value); } - public uint RequiredInternalAddr - { get => Accessor.GetUInt32("required_internal_addr"); set => Accessor.SetUInt32("required_internal_addr", value); } + public uint RequiredInternalAddr { get => Accessor.GetUInt32("required_internal_addr"); set => Accessor.SetUInt32("required_internal_addr", value); } - public byte[] SteamdatagramLogin - { get => Accessor.GetBytes("steamdatagram_login"); set => Accessor.SetBytes("steamdatagram_login", value); } + public byte[] SteamdatagramLogin { get => Accessor.GetBytes("steamdatagram_login"); set => Accessor.SetBytes("steamdatagram_login", value); } - public uint SocacheControl - { get => Accessor.GetUInt32("socache_control"); set => Accessor.SetUInt32("socache_control", value); } + public uint SocacheControl { get => Accessor.GetUInt32("socache_control"); set => Accessor.SetUInt32("socache_control", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerNetworkStatsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerNetworkStatsImpl.cs index 0972c5584..7d162afca 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerNetworkStatsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerNetworkStatsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,108 +6,83 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgServerNetworkStatsImpl : TypedProtobuf, CMsgServerNetworkStats { - public CMsgServerNetworkStatsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgServerNetworkStatsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool Dedicated - { get => Accessor.GetBool("dedicated"); set => Accessor.SetBool("dedicated", value); } + public bool Dedicated { get => Accessor.GetBool("dedicated"); set => Accessor.SetBool("dedicated", value); } - public int CpuUsage - { get => Accessor.GetInt32("cpu_usage"); set => Accessor.SetInt32("cpu_usage", value); } + public int CpuUsage { get => Accessor.GetInt32("cpu_usage"); set => Accessor.SetInt32("cpu_usage", value); } - public int MemoryUsedMb - { get => Accessor.GetInt32("memory_used_mb"); set => Accessor.SetInt32("memory_used_mb", value); } + public int MemoryUsedMb { get => Accessor.GetInt32("memory_used_mb"); set => Accessor.SetInt32("memory_used_mb", value); } - public int MemoryFreeMb - { get => Accessor.GetInt32("memory_free_mb"); set => Accessor.SetInt32("memory_free_mb", value); } + public int MemoryFreeMb { get => Accessor.GetInt32("memory_free_mb"); set => Accessor.SetInt32("memory_free_mb", value); } - public int Uptime - { get => Accessor.GetInt32("uptime"); set => Accessor.SetInt32("uptime", value); } + public int Uptime { get => Accessor.GetInt32("uptime"); set => Accessor.SetInt32("uptime", value); } - public int SpawnCount - { get => Accessor.GetInt32("spawn_count"); set => Accessor.SetInt32("spawn_count", value); } + public int SpawnCount { get => Accessor.GetInt32("spawn_count"); set => Accessor.SetInt32("spawn_count", value); } - public int NumClients - { get => Accessor.GetInt32("num_clients"); set => Accessor.SetInt32("num_clients", value); } + public int NumClients { get => Accessor.GetInt32("num_clients"); set => Accessor.SetInt32("num_clients", value); } - public int NumBots - { get => Accessor.GetInt32("num_bots"); set => Accessor.SetInt32("num_bots", value); } + public int NumBots { get => Accessor.GetInt32("num_bots"); set => Accessor.SetInt32("num_bots", value); } - public int NumSpectators - { get => Accessor.GetInt32("num_spectators"); set => Accessor.SetInt32("num_spectators", value); } + public int NumSpectators { get => Accessor.GetInt32("num_spectators"); set => Accessor.SetInt32("num_spectators", value); } - public int NumTvRelays - { get => Accessor.GetInt32("num_tv_relays"); set => Accessor.SetInt32("num_tv_relays", value); } + public int NumTvRelays { get => Accessor.GetInt32("num_tv_relays"); set => Accessor.SetInt32("num_tv_relays", value); } - public float Fps - { get => Accessor.GetFloat("fps"); set => Accessor.SetFloat("fps", value); } + public float Fps { get => Accessor.GetFloat("fps"); set => Accessor.SetFloat("fps", value); } - public IProtobufRepeatedFieldSubMessageType Ports - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "ports"); } + public IProtobufRepeatedFieldSubMessageType Ports { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "ports"); } - public float AvgPingMs - { get => Accessor.GetFloat("avg_ping_ms"); set => Accessor.SetFloat("avg_ping_ms", value); } + public float AvgPingMs { get => Accessor.GetFloat("avg_ping_ms"); set => Accessor.SetFloat("avg_ping_ms", value); } - public float AvgEngineLatencyOut - { get => Accessor.GetFloat("avg_engine_latency_out"); set => Accessor.SetFloat("avg_engine_latency_out", value); } + public float AvgEngineLatencyOut { get => Accessor.GetFloat("avg_engine_latency_out"); set => Accessor.SetFloat("avg_engine_latency_out", value); } - public float AvgPacketsOut - { get => Accessor.GetFloat("avg_packets_out"); set => Accessor.SetFloat("avg_packets_out", value); } + public float AvgPacketsOut { get => Accessor.GetFloat("avg_packets_out"); set => Accessor.SetFloat("avg_packets_out", value); } - public float AvgPacketsIn - { get => Accessor.GetFloat("avg_packets_in"); set => Accessor.SetFloat("avg_packets_in", value); } + public float AvgPacketsIn { get => Accessor.GetFloat("avg_packets_in"); set => Accessor.SetFloat("avg_packets_in", value); } - public float AvgLossOut - { get => Accessor.GetFloat("avg_loss_out"); set => Accessor.SetFloat("avg_loss_out", value); } + public float AvgLossOut { get => Accessor.GetFloat("avg_loss_out"); set => Accessor.SetFloat("avg_loss_out", value); } - public float AvgLossIn - { get => Accessor.GetFloat("avg_loss_in"); set => Accessor.SetFloat("avg_loss_in", value); } + public float AvgLossIn { get => Accessor.GetFloat("avg_loss_in"); set => Accessor.SetFloat("avg_loss_in", value); } - public float AvgDataOut - { get => Accessor.GetFloat("avg_data_out"); set => Accessor.SetFloat("avg_data_out", value); } + public float AvgDataOut { get => Accessor.GetFloat("avg_data_out"); set => Accessor.SetFloat("avg_data_out", value); } - public float AvgDataIn - { get => Accessor.GetFloat("avg_data_in"); set => Accessor.SetFloat("avg_data_in", value); } + public float AvgDataIn { get => Accessor.GetFloat("avg_data_in"); set => Accessor.SetFloat("avg_data_in", value); } - public ulong TotalDataIn - { get => Accessor.GetUInt64("total_data_in"); set => Accessor.SetUInt64("total_data_in", value); } + public ulong TotalDataIn { get => Accessor.GetUInt64("total_data_in"); set => Accessor.SetUInt64("total_data_in", value); } - public ulong TotalPacketsIn - { get => Accessor.GetUInt64("total_packets_in"); set => Accessor.SetUInt64("total_packets_in", value); } + public ulong TotalPacketsIn { get => Accessor.GetUInt64("total_packets_in"); set => Accessor.SetUInt64("total_packets_in", value); } - public ulong TotalDataOut - { get => Accessor.GetUInt64("total_data_out"); set => Accessor.SetUInt64("total_data_out", value); } + public ulong TotalDataOut { get => Accessor.GetUInt64("total_data_out"); set => Accessor.SetUInt64("total_data_out", value); } - public ulong TotalPacketsOut - { get => Accessor.GetUInt64("total_packets_out"); set => Accessor.SetUInt64("total_packets_out", value); } + public ulong TotalPacketsOut { get => Accessor.GetUInt64("total_packets_out"); set => Accessor.SetUInt64("total_packets_out", value); } - public IProtobufRepeatedFieldSubMessageType Players - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "players"); } + public IProtobufRepeatedFieldSubMessageType Players { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "players"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerNetworkStats_PlayerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerNetworkStats_PlayerImpl.cs index cf53a193f..e43cec230 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerNetworkStats_PlayerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerNetworkStats_PlayerImpl.cs @@ -1,48 +1,36 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgServerNetworkStats_PlayerImpl : TypedProtobuf, CMsgServerNetworkStats_Player { - public CMsgServerNetworkStats_PlayerImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgServerNetworkStats_PlayerImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } - public string RemoteAddr - { get => Accessor.GetString("remote_addr"); set => Accessor.SetString("remote_addr", value); } + public string RemoteAddr { get => Accessor.GetString("remote_addr"); set => Accessor.SetString("remote_addr", value); } - public int PingAvgMs - { get => Accessor.GetInt32("ping_avg_ms"); set => Accessor.SetInt32("ping_avg_ms", value); } + public int PingAvgMs { get => Accessor.GetInt32("ping_avg_ms"); set => Accessor.SetInt32("ping_avg_ms", value); } - public float PacketLossPct - { get => Accessor.GetFloat("packet_loss_pct"); set => Accessor.SetFloat("packet_loss_pct", value); } + public float PacketLossPct { get => Accessor.GetFloat("packet_loss_pct"); set => Accessor.SetFloat("packet_loss_pct", value); } - public bool IsBot - { get => Accessor.GetBool("is_bot"); set => Accessor.SetBool("is_bot", value); } + public bool IsBot { get => Accessor.GetBool("is_bot"); set => Accessor.SetBool("is_bot", value); } - public float LossIn - { get => Accessor.GetFloat("loss_in"); set => Accessor.SetFloat("loss_in", value); } + public float LossIn { get => Accessor.GetFloat("loss_in"); set => Accessor.SetFloat("loss_in", value); } - public float LossOut - { get => Accessor.GetFloat("loss_out"); set => Accessor.SetFloat("loss_out", value); } + public float LossOut { get => Accessor.GetFloat("loss_out"); set => Accessor.SetFloat("loss_out", value); } - public int EngineLatencyMs - { get => Accessor.GetInt32("engine_latency_ms"); set => Accessor.SetInt32("engine_latency_ms", value); } + public int EngineLatencyMs { get => Accessor.GetInt32("engine_latency_ms"); set => Accessor.SetInt32("engine_latency_ms", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerNetworkStats_PortImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerNetworkStats_PortImpl.cs index 93d9d110f..f6dbfccb9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerNetworkStats_PortImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerNetworkStats_PortImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgServerNetworkStats_PortImpl : TypedProtobuf, CMsgServerNetworkStats_Port { - public CMsgServerNetworkStats_PortImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgServerNetworkStats_PortImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Port - { get => Accessor.GetInt32("port"); set => Accessor.SetInt32("port", value); } + public int Port { get => Accessor.GetInt32("port"); set => Accessor.SetInt32("port", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerPeerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerPeerImpl.cs index 20617d49e..1dec82a29 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerPeerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerPeerImpl.cs @@ -1,40 +1,32 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgServerPeerImpl : TypedProtobuf, CMsgServerPeer { - public CMsgServerPeerImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgServerPeerImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int PlayerSlot - { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } + public int PlayerSlot { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } - public CMsgIPCAddress Ipc - { get => new CMsgIPCAddressImpl(NativeNetMessages.GetNestedMessage(Address, "ipc"), false); } + public CMsgIPCAddress Ipc { get => new CMsgIPCAddressImpl(NativeNetMessages.GetNestedMessage(Address, "ipc"), false); } - public bool TheyHearYou - { get => Accessor.GetBool("they_hear_you"); set => Accessor.SetBool("they_hear_you", value); } + public bool TheyHearYou { get => Accessor.GetBool("they_hear_you"); set => Accessor.SetBool("they_hear_you", value); } - public bool YouHearThem - { get => Accessor.GetBool("you_hear_them"); set => Accessor.SetBool("you_hear_them", value); } + public bool YouHearThem { get => Accessor.GetBool("you_hear_them"); set => Accessor.SetBool("you_hear_them", value); } - public bool IsListenserverHost - { get => Accessor.GetBool("is_listenserver_host"); set => Accessor.SetBool("is_listenserver_host", value); } + public bool IsListenserverHost { get => Accessor.GetBool("is_listenserver_host"); set => Accessor.SetBool("is_listenserver_host", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerUserCmdImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerUserCmdImpl.cs index 944c9af5c..a65c822ad 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerUserCmdImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgServerUserCmdImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgServerUserCmdImpl : TypedProtobuf, CMsgServerUserCmd { - public CMsgServerUserCmdImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgServerUserCmdImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } - public int CmdNumber - { get => Accessor.GetInt32("cmd_number"); set => Accessor.SetInt32("cmd_number", value); } + public int CmdNumber { get => Accessor.GetInt32("cmd_number"); set => Accessor.SetInt32("cmd_number", value); } - public int PlayerSlot - { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } + public int PlayerSlot { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } - public int ServerTickExecuted - { get => Accessor.GetInt32("server_tick_executed"); set => Accessor.SetInt32("server_tick_executed", value); } + public int ServerTickExecuted { get => Accessor.GetInt32("server_tick_executed"); set => Accessor.SetInt32("server_tick_executed", value); } - public int ClientTick - { get => Accessor.GetInt32("client_tick"); set => Accessor.SetInt32("client_tick", value); } + public int ClientTick { get => Accessor.GetInt32("client_tick"); set => Accessor.SetInt32("client_tick", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSetItemPositionsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSetItemPositionsImpl.cs index 8a4f451a7..fc1366ce7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSetItemPositionsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSetItemPositionsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSetItemPositionsImpl : TypedProtobuf, CMsgSetItemPositions { - public CMsgSetItemPositionsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSetItemPositionsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType ItemPositions - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "item_positions"); } + public IProtobufRepeatedFieldSubMessageType ItemPositions { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "item_positions"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSetItemPositions_ItemPositionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSetItemPositions_ItemPositionImpl.cs index 9991bf8a3..127b400f6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSetItemPositions_ItemPositionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSetItemPositions_ItemPositionImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSetItemPositions_ItemPositionImpl : TypedProtobuf, CMsgSetItemPositions_ItemPosition { - public CMsgSetItemPositions_ItemPositionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSetItemPositions_ItemPositionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint LegacyItemId - { get => Accessor.GetUInt32("legacy_item_id"); set => Accessor.SetUInt32("legacy_item_id", value); } + public uint LegacyItemId { get => Accessor.GetUInt32("legacy_item_id"); set => Accessor.SetUInt32("legacy_item_id", value); } - public uint Position - { get => Accessor.GetUInt32("position"); set => Accessor.SetUInt32("position", value); } + public uint Position { get => Accessor.GetUInt32("position"); set => Accessor.SetUInt32("position", value); } - public ulong ItemId - { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } + public ulong ItemId { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSortItemsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSortItemsImpl.cs index 97dc752ae..7b1e6791e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSortItemsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSortItemsImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSortItemsImpl : TypedProtobuf, CMsgSortItems { - public CMsgSortItemsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSortItemsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint SortType - { get => Accessor.GetUInt32("sort_type"); set => Accessor.SetUInt32("sort_type", value); } + public uint SortType { get => Accessor.GetUInt32("sort_type"); set => Accessor.SetUInt32("sort_type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosSetLibraryStackFieldsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosSetLibraryStackFieldsImpl.cs index 1a6b0b224..2d185c2b5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosSetLibraryStackFieldsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosSetLibraryStackFieldsImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSosSetLibraryStackFieldsImpl : NetMessage, CMsgSosSetLibraryStackFields { - public CMsgSosSetLibraryStackFieldsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgSosSetLibraryStackFieldsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint StackHash - { get => Accessor.GetUInt32("stack_hash"); set => Accessor.SetUInt32("stack_hash", value); } + public uint StackHash { get => Accessor.GetUInt32("stack_hash"); set => Accessor.SetUInt32("stack_hash", value); } - public byte[] PackedFields - { get => Accessor.GetBytes("packed_fields"); set => Accessor.SetBytes("packed_fields", value); } + public byte[] PackedFields { get => Accessor.GetBytes("packed_fields"); set => Accessor.SetBytes("packed_fields", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosSetSoundEventParamsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosSetSoundEventParamsImpl.cs index 3a3d2b699..5797a436f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosSetSoundEventParamsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosSetSoundEventParamsImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSosSetSoundEventParamsImpl : NetMessage, CMsgSosSetSoundEventParams { - public CMsgSosSetSoundEventParamsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgSosSetSoundEventParamsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int SoundeventGuid - { get => Accessor.GetInt32("soundevent_guid"); set => Accessor.SetInt32("soundevent_guid", value); } + public int SoundeventGuid { get => Accessor.GetInt32("soundevent_guid"); set => Accessor.SetInt32("soundevent_guid", value); } - public byte[] PackedParams - { get => Accessor.GetBytes("packed_params"); set => Accessor.SetBytes("packed_params", value); } + public byte[] PackedParams { get => Accessor.GetBytes("packed_params"); set => Accessor.SetBytes("packed_params", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosStartSoundEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosStartSoundEventImpl.cs index f8822781e..bfb3ed340 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosStartSoundEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosStartSoundEventImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSosStartSoundEventImpl : NetMessage, CMsgSosStartSoundEvent { - public CMsgSosStartSoundEventImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgSosStartSoundEventImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int SoundeventGuid - { get => Accessor.GetInt32("soundevent_guid"); set => Accessor.SetInt32("soundevent_guid", value); } + public int SoundeventGuid { get => Accessor.GetInt32("soundevent_guid"); set => Accessor.SetInt32("soundevent_guid", value); } - public uint SoundeventHash - { get => Accessor.GetUInt32("soundevent_hash"); set => Accessor.SetUInt32("soundevent_hash", value); } + public uint SoundeventHash { get => Accessor.GetUInt32("soundevent_hash"); set => Accessor.SetUInt32("soundevent_hash", value); } - public int SourceEntityIndex - { get => Accessor.GetInt32("source_entity_index"); set => Accessor.SetInt32("source_entity_index", value); } + public int SourceEntityIndex { get => Accessor.GetInt32("source_entity_index"); set => Accessor.SetInt32("source_entity_index", value); } - public int Seed - { get => Accessor.GetInt32("seed"); set => Accessor.SetInt32("seed", value); } + public int Seed { get => Accessor.GetInt32("seed"); set => Accessor.SetInt32("seed", value); } - public byte[] PackedParams - { get => Accessor.GetBytes("packed_params"); set => Accessor.SetBytes("packed_params", value); } + public byte[] PackedParams { get => Accessor.GetBytes("packed_params"); set => Accessor.SetBytes("packed_params", value); } - public float StartTime - { get => Accessor.GetFloat("start_time"); set => Accessor.SetFloat("start_time", value); } + public float StartTime { get => Accessor.GetFloat("start_time"); set => Accessor.SetFloat("start_time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosStopSoundEventHashImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosStopSoundEventHashImpl.cs index 019fc231d..db85caa28 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosStopSoundEventHashImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosStopSoundEventHashImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSosStopSoundEventHashImpl : NetMessage, CMsgSosStopSoundEventHash { - public CMsgSosStopSoundEventHashImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgSosStopSoundEventHashImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint SoundeventHash - { get => Accessor.GetUInt32("soundevent_hash"); set => Accessor.SetUInt32("soundevent_hash", value); } + public uint SoundeventHash { get => Accessor.GetUInt32("soundevent_hash"); set => Accessor.SetUInt32("soundevent_hash", value); } - public int SourceEntityIndex - { get => Accessor.GetInt32("source_entity_index"); set => Accessor.SetInt32("source_entity_index", value); } + public int SourceEntityIndex { get => Accessor.GetInt32("source_entity_index"); set => Accessor.SetInt32("source_entity_index", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosStopSoundEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosStopSoundEventImpl.cs index 9f57630b2..22f2f25f7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosStopSoundEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSosStopSoundEventImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSosStopSoundEventImpl : NetMessage, CMsgSosStopSoundEvent { - public CMsgSosStopSoundEventImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgSosStopSoundEventImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int SoundeventGuid - { get => Accessor.GetInt32("soundevent_guid"); set => Accessor.SetInt32("soundevent_guid", value); } + public int SoundeventGuid { get => Accessor.GetInt32("soundevent_guid"); set => Accessor.SetInt32("soundevent_guid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventImpl.cs index 66a6b32a9..c040db1e2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,28 +6,23 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSource1LegacyGameEventImpl : NetMessage, CMsgSource1LegacyGameEvent { - public CMsgSource1LegacyGameEventImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgSource1LegacyGameEventImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string EventName - { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } + public string EventName { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } - public int Eventid - { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } + public int Eventid { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } - public IProtobufRepeatedFieldSubMessageType Keys - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "keys"); } + public IProtobufRepeatedFieldSubMessageType Keys { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "keys"); } - public int ServerTick - { get => Accessor.GetInt32("server_tick"); set => Accessor.SetInt32("server_tick", value); } + public int ServerTick { get => Accessor.GetInt32("server_tick"); set => Accessor.SetInt32("server_tick", value); } - public int Passthrough - { get => Accessor.GetInt32("passthrough"); set => Accessor.SetInt32("passthrough", value); } + public int Passthrough { get => Accessor.GetInt32("passthrough"); set => Accessor.SetInt32("passthrough", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventListImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventListImpl.cs index 34e5598d6..d97f0d1e0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventListImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventListImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSource1LegacyGameEventListImpl : NetMessage, CMsgSource1LegacyGameEventList { - public CMsgSource1LegacyGameEventListImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgSource1LegacyGameEventListImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public IProtobufRepeatedFieldSubMessageType Descriptors - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "descriptors"); } + public IProtobufRepeatedFieldSubMessageType Descriptors { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "descriptors"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventList_descriptor_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventList_descriptor_tImpl.cs index 91a48f486..fb8d149cc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventList_descriptor_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventList_descriptor_tImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSource1LegacyGameEventList_descriptor_tImpl : TypedProtobuf, CMsgSource1LegacyGameEventList_descriptor_t { - public CMsgSource1LegacyGameEventList_descriptor_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSource1LegacyGameEventList_descriptor_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Eventid - { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } + public int Eventid { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public IProtobufRepeatedFieldSubMessageType Keys - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "keys"); } + public IProtobufRepeatedFieldSubMessageType Keys { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "keys"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventList_key_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventList_key_tImpl.cs index 444b1b584..f3dfea13e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventList_key_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEventList_key_tImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSource1LegacyGameEventList_key_tImpl : TypedProtobuf, CMsgSource1LegacyGameEventList_key_t { - public CMsgSource1LegacyGameEventList_key_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSource1LegacyGameEventList_key_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Type - { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + public int Type { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEvent_key_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEvent_key_tImpl.cs index a8fc04b10..e1cf98fa7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEvent_key_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyGameEvent_key_tImpl.cs @@ -1,48 +1,36 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSource1LegacyGameEvent_key_tImpl : TypedProtobuf, CMsgSource1LegacyGameEvent_key_t { - public CMsgSource1LegacyGameEvent_key_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSource1LegacyGameEvent_key_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Type - { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + public int Type { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } - public string ValString - { get => Accessor.GetString("val_string"); set => Accessor.SetString("val_string", value); } + public string ValString { get => Accessor.GetString("val_string"); set => Accessor.SetString("val_string", value); } - public float ValFloat - { get => Accessor.GetFloat("val_float"); set => Accessor.SetFloat("val_float", value); } + public float ValFloat { get => Accessor.GetFloat("val_float"); set => Accessor.SetFloat("val_float", value); } - public int ValLong - { get => Accessor.GetInt32("val_long"); set => Accessor.SetInt32("val_long", value); } + public int ValLong { get => Accessor.GetInt32("val_long"); set => Accessor.SetInt32("val_long", value); } - public int ValShort - { get => Accessor.GetInt32("val_short"); set => Accessor.SetInt32("val_short", value); } + public int ValShort { get => Accessor.GetInt32("val_short"); set => Accessor.SetInt32("val_short", value); } - public int ValByte - { get => Accessor.GetInt32("val_byte"); set => Accessor.SetInt32("val_byte", value); } + public int ValByte { get => Accessor.GetInt32("val_byte"); set => Accessor.SetInt32("val_byte", value); } - public bool ValBool - { get => Accessor.GetBool("val_bool"); set => Accessor.SetBool("val_bool", value); } + public bool ValBool { get => Accessor.GetBool("val_bool"); set => Accessor.SetBool("val_bool", value); } - public ulong ValUint64 - { get => Accessor.GetUInt64("val_uint64"); set => Accessor.SetUInt64("val_uint64", value); } + public ulong ValUint64 { get => Accessor.GetUInt64("val_uint64"); set => Accessor.SetUInt64("val_uint64", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyListenEventsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyListenEventsImpl.cs index 6302103d4..0e5f3078f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyListenEventsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource1LegacyListenEventsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSource1LegacyListenEventsImpl : NetMessage, CMsgSource1LegacyListenEvents { - public CMsgSource1LegacyListenEventsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgSource1LegacyListenEventsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Playerslot - { get => Accessor.GetInt32("playerslot"); set => Accessor.SetInt32("playerslot", value); } + public int Playerslot { get => Accessor.GetInt32("playerslot"); set => Accessor.SetInt32("playerslot", value); } - public IProtobufRepeatedFieldValueType Eventarraybits - { get => new ProtobufRepeatedFieldValueType(Accessor, "eventarraybits"); } + public IProtobufRepeatedFieldValueType Eventarraybits { get => new ProtobufRepeatedFieldValueType(Accessor, "eventarraybits"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2NetworkFlowQualityImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2NetworkFlowQualityImpl.cs index 8c755c829..cc78845b6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2NetworkFlowQualityImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2NetworkFlowQualityImpl.cs @@ -1,192 +1,144 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSource2NetworkFlowQualityImpl : TypedProtobuf, CMsgSource2NetworkFlowQuality { - public CMsgSource2NetworkFlowQualityImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSource2NetworkFlowQualityImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Duration - { get => Accessor.GetUInt32("duration"); set => Accessor.SetUInt32("duration", value); } + public uint Duration { get => Accessor.GetUInt32("duration"); set => Accessor.SetUInt32("duration", value); } - public ulong BytesTotal - { get => Accessor.GetUInt64("bytes_total"); set => Accessor.SetUInt64("bytes_total", value); } + public ulong BytesTotal { get => Accessor.GetUInt64("bytes_total"); set => Accessor.SetUInt64("bytes_total", value); } - public ulong BytesTotalReliable - { get => Accessor.GetUInt64("bytes_total_reliable"); set => Accessor.SetUInt64("bytes_total_reliable", value); } + public ulong BytesTotalReliable { get => Accessor.GetUInt64("bytes_total_reliable"); set => Accessor.SetUInt64("bytes_total_reliable", value); } - public ulong BytesTotalVoice - { get => Accessor.GetUInt64("bytes_total_voice"); set => Accessor.SetUInt64("bytes_total_voice", value); } + public ulong BytesTotalVoice { get => Accessor.GetUInt64("bytes_total_voice"); set => Accessor.SetUInt64("bytes_total_voice", value); } - public uint BytesSecP95 - { get => Accessor.GetUInt32("bytes_sec_p95"); set => Accessor.SetUInt32("bytes_sec_p95", value); } + public uint BytesSecP95 { get => Accessor.GetUInt32("bytes_sec_p95"); set => Accessor.SetUInt32("bytes_sec_p95", value); } - public uint BytesSecP99 - { get => Accessor.GetUInt32("bytes_sec_p99"); set => Accessor.SetUInt32("bytes_sec_p99", value); } + public uint BytesSecP99 { get => Accessor.GetUInt32("bytes_sec_p99"); set => Accessor.SetUInt32("bytes_sec_p99", value); } - public uint EnginemsgsTotal - { get => Accessor.GetUInt32("enginemsgs_total"); set => Accessor.SetUInt32("enginemsgs_total", value); } + public uint EnginemsgsTotal { get => Accessor.GetUInt32("enginemsgs_total"); set => Accessor.SetUInt32("enginemsgs_total", value); } - public uint EnginemsgsSecP95 - { get => Accessor.GetUInt32("enginemsgs_sec_p95"); set => Accessor.SetUInt32("enginemsgs_sec_p95", value); } + public uint EnginemsgsSecP95 { get => Accessor.GetUInt32("enginemsgs_sec_p95"); set => Accessor.SetUInt32("enginemsgs_sec_p95", value); } - public uint EnginemsgsSecP99 - { get => Accessor.GetUInt32("enginemsgs_sec_p99"); set => Accessor.SetUInt32("enginemsgs_sec_p99", value); } + public uint EnginemsgsSecP99 { get => Accessor.GetUInt32("enginemsgs_sec_p99"); set => Accessor.SetUInt32("enginemsgs_sec_p99", value); } - public uint NetframesTotal - { get => Accessor.GetUInt32("netframes_total"); set => Accessor.SetUInt32("netframes_total", value); } + public uint NetframesTotal { get => Accessor.GetUInt32("netframes_total"); set => Accessor.SetUInt32("netframes_total", value); } - public uint NetframesDropped - { get => Accessor.GetUInt32("netframes_dropped"); set => Accessor.SetUInt32("netframes_dropped", value); } + public uint NetframesDropped { get => Accessor.GetUInt32("netframes_dropped"); set => Accessor.SetUInt32("netframes_dropped", value); } - public uint NetframesOutoforder - { get => Accessor.GetUInt32("netframes_outoforder"); set => Accessor.SetUInt32("netframes_outoforder", value); } + public uint NetframesOutoforder { get => Accessor.GetUInt32("netframes_outoforder"); set => Accessor.SetUInt32("netframes_outoforder", value); } - public uint NetframesSizeExceedsMtu - { get => Accessor.GetUInt32("netframes_size_exceeds_mtu"); set => Accessor.SetUInt32("netframes_size_exceeds_mtu", value); } + public uint NetframesSizeExceedsMtu { get => Accessor.GetUInt32("netframes_size_exceeds_mtu"); set => Accessor.SetUInt32("netframes_size_exceeds_mtu", value); } - public uint NetframesSizeP95 - { get => Accessor.GetUInt32("netframes_size_p95"); set => Accessor.SetUInt32("netframes_size_p95", value); } + public uint NetframesSizeP95 { get => Accessor.GetUInt32("netframes_size_p95"); set => Accessor.SetUInt32("netframes_size_p95", value); } - public uint NetframesSizeP99 - { get => Accessor.GetUInt32("netframes_size_p99"); set => Accessor.SetUInt32("netframes_size_p99", value); } + public uint NetframesSizeP99 { get => Accessor.GetUInt32("netframes_size_p99"); set => Accessor.SetUInt32("netframes_size_p99", value); } - public uint TicksTotal - { get => Accessor.GetUInt32("ticks_total"); set => Accessor.SetUInt32("ticks_total", value); } + public uint TicksTotal { get => Accessor.GetUInt32("ticks_total"); set => Accessor.SetUInt32("ticks_total", value); } - public uint TicksGood - { get => Accessor.GetUInt32("ticks_good"); set => Accessor.SetUInt32("ticks_good", value); } + public uint TicksGood { get => Accessor.GetUInt32("ticks_good"); set => Accessor.SetUInt32("ticks_good", value); } - public uint TicksGoodAlmostLate - { get => Accessor.GetUInt32("ticks_good_almost_late"); set => Accessor.SetUInt32("ticks_good_almost_late", value); } + public uint TicksGoodAlmostLate { get => Accessor.GetUInt32("ticks_good_almost_late"); set => Accessor.SetUInt32("ticks_good_almost_late", value); } - public uint TicksFixedDropped - { get => Accessor.GetUInt32("ticks_fixed_dropped"); set => Accessor.SetUInt32("ticks_fixed_dropped", value); } + public uint TicksFixedDropped { get => Accessor.GetUInt32("ticks_fixed_dropped"); set => Accessor.SetUInt32("ticks_fixed_dropped", value); } - public uint TicksFixedLate - { get => Accessor.GetUInt32("ticks_fixed_late"); set => Accessor.SetUInt32("ticks_fixed_late", value); } + public uint TicksFixedLate { get => Accessor.GetUInt32("ticks_fixed_late"); set => Accessor.SetUInt32("ticks_fixed_late", value); } - public uint TicksBadDropped - { get => Accessor.GetUInt32("ticks_bad_dropped"); set => Accessor.SetUInt32("ticks_bad_dropped", value); } + public uint TicksBadDropped { get => Accessor.GetUInt32("ticks_bad_dropped"); set => Accessor.SetUInt32("ticks_bad_dropped", value); } - public uint TicksBadLate - { get => Accessor.GetUInt32("ticks_bad_late"); set => Accessor.SetUInt32("ticks_bad_late", value); } + public uint TicksBadLate { get => Accessor.GetUInt32("ticks_bad_late"); set => Accessor.SetUInt32("ticks_bad_late", value); } - public uint TicksBadOther - { get => Accessor.GetUInt32("ticks_bad_other"); set => Accessor.SetUInt32("ticks_bad_other", value); } + public uint TicksBadOther { get => Accessor.GetUInt32("ticks_bad_other"); set => Accessor.SetUInt32("ticks_bad_other", value); } - public uint TickMissrateSamplesTotal - { get => Accessor.GetUInt32("tick_missrate_samples_total"); set => Accessor.SetUInt32("tick_missrate_samples_total", value); } + public uint TickMissrateSamplesTotal { get => Accessor.GetUInt32("tick_missrate_samples_total"); set => Accessor.SetUInt32("tick_missrate_samples_total", value); } - public uint TickMissrateSamplesPerfect - { get => Accessor.GetUInt32("tick_missrate_samples_perfect"); set => Accessor.SetUInt32("tick_missrate_samples_perfect", value); } + public uint TickMissrateSamplesPerfect { get => Accessor.GetUInt32("tick_missrate_samples_perfect"); set => Accessor.SetUInt32("tick_missrate_samples_perfect", value); } - public uint TickMissrateSamplesPerfectnet - { get => Accessor.GetUInt32("tick_missrate_samples_perfectnet"); set => Accessor.SetUInt32("tick_missrate_samples_perfectnet", value); } + public uint TickMissrateSamplesPerfectnet { get => Accessor.GetUInt32("tick_missrate_samples_perfectnet"); set => Accessor.SetUInt32("tick_missrate_samples_perfectnet", value); } - public uint TickMissratenetP75X10 - { get => Accessor.GetUInt32("tick_missratenet_p75_x10"); set => Accessor.SetUInt32("tick_missratenet_p75_x10", value); } + public uint TickMissratenetP75X10 { get => Accessor.GetUInt32("tick_missratenet_p75_x10"); set => Accessor.SetUInt32("tick_missratenet_p75_x10", value); } - public uint TickMissratenetP95X10 - { get => Accessor.GetUInt32("tick_missratenet_p95_x10"); set => Accessor.SetUInt32("tick_missratenet_p95_x10", value); } + public uint TickMissratenetP95X10 { get => Accessor.GetUInt32("tick_missratenet_p95_x10"); set => Accessor.SetUInt32("tick_missratenet_p95_x10", value); } - public uint TickMissratenetP99X10 - { get => Accessor.GetUInt32("tick_missratenet_p99_x10"); set => Accessor.SetUInt32("tick_missratenet_p99_x10", value); } + public uint TickMissratenetP99X10 { get => Accessor.GetUInt32("tick_missratenet_p99_x10"); set => Accessor.SetUInt32("tick_missratenet_p99_x10", value); } - public int RecvmarginP1 - { get => Accessor.GetInt32("recvmargin_p1"); set => Accessor.SetInt32("recvmargin_p1", value); } + public int RecvmarginP1 { get => Accessor.GetInt32("recvmargin_p1"); set => Accessor.SetInt32("recvmargin_p1", value); } - public int RecvmarginP5 - { get => Accessor.GetInt32("recvmargin_p5"); set => Accessor.SetInt32("recvmargin_p5", value); } + public int RecvmarginP5 { get => Accessor.GetInt32("recvmargin_p5"); set => Accessor.SetInt32("recvmargin_p5", value); } - public int RecvmarginP25 - { get => Accessor.GetInt32("recvmargin_p25"); set => Accessor.SetInt32("recvmargin_p25", value); } + public int RecvmarginP25 { get => Accessor.GetInt32("recvmargin_p25"); set => Accessor.SetInt32("recvmargin_p25", value); } - public int RecvmarginP50 - { get => Accessor.GetInt32("recvmargin_p50"); set => Accessor.SetInt32("recvmargin_p50", value); } + public int RecvmarginP50 { get => Accessor.GetInt32("recvmargin_p50"); set => Accessor.SetInt32("recvmargin_p50", value); } - public int RecvmarginP75 - { get => Accessor.GetInt32("recvmargin_p75"); set => Accessor.SetInt32("recvmargin_p75", value); } + public int RecvmarginP75 { get => Accessor.GetInt32("recvmargin_p75"); set => Accessor.SetInt32("recvmargin_p75", value); } - public int RecvmarginP95 - { get => Accessor.GetInt32("recvmargin_p95"); set => Accessor.SetInt32("recvmargin_p95", value); } + public int RecvmarginP95 { get => Accessor.GetInt32("recvmargin_p95"); set => Accessor.SetInt32("recvmargin_p95", value); } - public uint NetframeJitterP50 - { get => Accessor.GetUInt32("netframe_jitter_p50"); set => Accessor.SetUInt32("netframe_jitter_p50", value); } + public uint NetframeJitterP50 { get => Accessor.GetUInt32("netframe_jitter_p50"); set => Accessor.SetUInt32("netframe_jitter_p50", value); } - public uint NetframeJitterP99 - { get => Accessor.GetUInt32("netframe_jitter_p99"); set => Accessor.SetUInt32("netframe_jitter_p99", value); } + public uint NetframeJitterP99 { get => Accessor.GetUInt32("netframe_jitter_p99"); set => Accessor.SetUInt32("netframe_jitter_p99", value); } - public uint IntervalPeakjitterP50 - { get => Accessor.GetUInt32("interval_peakjitter_p50"); set => Accessor.SetUInt32("interval_peakjitter_p50", value); } + public uint IntervalPeakjitterP50 { get => Accessor.GetUInt32("interval_peakjitter_p50"); set => Accessor.SetUInt32("interval_peakjitter_p50", value); } - public uint IntervalPeakjitterP95 - { get => Accessor.GetUInt32("interval_peakjitter_p95"); set => Accessor.SetUInt32("interval_peakjitter_p95", value); } + public uint IntervalPeakjitterP95 { get => Accessor.GetUInt32("interval_peakjitter_p95"); set => Accessor.SetUInt32("interval_peakjitter_p95", value); } - public uint PacketMisdeliveryRateP50X4 - { get => Accessor.GetUInt32("packet_misdelivery_rate_p50_x4"); set => Accessor.SetUInt32("packet_misdelivery_rate_p50_x4", value); } + public uint PacketMisdeliveryRateP50X4 { get => Accessor.GetUInt32("packet_misdelivery_rate_p50_x4"); set => Accessor.SetUInt32("packet_misdelivery_rate_p50_x4", value); } - public uint PacketMisdeliveryRateP95X4 - { get => Accessor.GetUInt32("packet_misdelivery_rate_p95_x4"); set => Accessor.SetUInt32("packet_misdelivery_rate_p95_x4", value); } + public uint PacketMisdeliveryRateP95X4 { get => Accessor.GetUInt32("packet_misdelivery_rate_p95_x4"); set => Accessor.SetUInt32("packet_misdelivery_rate_p95_x4", value); } - public uint NetPingP5 - { get => Accessor.GetUInt32("net_ping_p5"); set => Accessor.SetUInt32("net_ping_p5", value); } + public uint NetPingP5 { get => Accessor.GetUInt32("net_ping_p5"); set => Accessor.SetUInt32("net_ping_p5", value); } - public uint NetPingP50 - { get => Accessor.GetUInt32("net_ping_p50"); set => Accessor.SetUInt32("net_ping_p50", value); } + public uint NetPingP50 { get => Accessor.GetUInt32("net_ping_p50"); set => Accessor.SetUInt32("net_ping_p50", value); } - public uint NetPingP95 - { get => Accessor.GetUInt32("net_ping_p95"); set => Accessor.SetUInt32("net_ping_p95", value); } + public uint NetPingP95 { get => Accessor.GetUInt32("net_ping_p95"); set => Accessor.SetUInt32("net_ping_p95", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2PerfIntervalSampleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2PerfIntervalSampleImpl.cs index 890680f98..8322fabb0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2PerfIntervalSampleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2PerfIntervalSampleImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,32 +6,26 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSource2PerfIntervalSampleImpl : TypedProtobuf, CMsgSource2PerfIntervalSample { - public CMsgSource2PerfIntervalSampleImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSource2PerfIntervalSampleImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float FrameTimeMaxMs - { get => Accessor.GetFloat("frame_time_max_ms"); set => Accessor.SetFloat("frame_time_max_ms", value); } + public float FrameTimeMaxMs { get => Accessor.GetFloat("frame_time_max_ms"); set => Accessor.SetFloat("frame_time_max_ms", value); } - public float FrameTimeAvgMs - { get => Accessor.GetFloat("frame_time_avg_ms"); set => Accessor.SetFloat("frame_time_avg_ms", value); } + public float FrameTimeAvgMs { get => Accessor.GetFloat("frame_time_avg_ms"); set => Accessor.SetFloat("frame_time_avg_ms", value); } - public float FrameTimeMinMs - { get => Accessor.GetFloat("frame_time_min_ms"); set => Accessor.SetFloat("frame_time_min_ms", value); } + public float FrameTimeMinMs { get => Accessor.GetFloat("frame_time_min_ms"); set => Accessor.SetFloat("frame_time_min_ms", value); } - public int FrameCount - { get => Accessor.GetInt32("frame_count"); set => Accessor.SetInt32("frame_count", value); } + public int FrameCount { get => Accessor.GetInt32("frame_count"); set => Accessor.SetInt32("frame_count", value); } - public float FrameTimeTotalMs - { get => Accessor.GetFloat("frame_time_total_ms"); set => Accessor.SetFloat("frame_time_total_ms", value); } + public float FrameTimeTotalMs { get => Accessor.GetFloat("frame_time_total_ms"); set => Accessor.SetFloat("frame_time_total_ms", value); } - public IProtobufRepeatedFieldSubMessageType Tags - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "tags"); } + public IProtobufRepeatedFieldSubMessageType Tags { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "tags"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2PerfIntervalSample_TagImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2PerfIntervalSample_TagImpl.cs index da31e326b..253583574 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2PerfIntervalSample_TagImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2PerfIntervalSample_TagImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSource2PerfIntervalSample_TagImpl : TypedProtobuf, CMsgSource2PerfIntervalSample_Tag { - public CMsgSource2PerfIntervalSample_TagImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSource2PerfIntervalSample_TagImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Tag - { get => Accessor.GetString("tag"); set => Accessor.SetString("tag", value); } + public string Tag { get => Accessor.GetString("tag"); set => Accessor.SetString("tag", value); } - public uint MaxValue - { get => Accessor.GetUInt32("max_value"); set => Accessor.SetUInt32("max_value", value); } + public uint MaxValue { get => Accessor.GetUInt32("max_value"); set => Accessor.SetUInt32("max_value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2SystemSpecsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2SystemSpecsImpl.cs index c70a0b039..e95e56316 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2SystemSpecsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2SystemSpecsImpl.cs @@ -1,72 +1,54 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSource2SystemSpecsImpl : TypedProtobuf, CMsgSource2SystemSpecs { - public CMsgSource2SystemSpecsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSource2SystemSpecsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string CpuId - { get => Accessor.GetString("cpu_id"); set => Accessor.SetString("cpu_id", value); } + public string CpuId { get => Accessor.GetString("cpu_id"); set => Accessor.SetString("cpu_id", value); } - public string CpuBrand - { get => Accessor.GetString("cpu_brand"); set => Accessor.SetString("cpu_brand", value); } + public string CpuBrand { get => Accessor.GetString("cpu_brand"); set => Accessor.SetString("cpu_brand", value); } - public uint CpuModel - { get => Accessor.GetUInt32("cpu_model"); set => Accessor.SetUInt32("cpu_model", value); } + public uint CpuModel { get => Accessor.GetUInt32("cpu_model"); set => Accessor.SetUInt32("cpu_model", value); } - public uint CpuNumPhysical - { get => Accessor.GetUInt32("cpu_num_physical"); set => Accessor.SetUInt32("cpu_num_physical", value); } + public uint CpuNumPhysical { get => Accessor.GetUInt32("cpu_num_physical"); set => Accessor.SetUInt32("cpu_num_physical", value); } - public uint RamPhysicalTotalMb - { get => Accessor.GetUInt32("ram_physical_total_mb"); set => Accessor.SetUInt32("ram_physical_total_mb", value); } + public uint RamPhysicalTotalMb { get => Accessor.GetUInt32("ram_physical_total_mb"); set => Accessor.SetUInt32("ram_physical_total_mb", value); } - public string GpuRendersystemDllName - { get => Accessor.GetString("gpu_rendersystem_dll_name"); set => Accessor.SetString("gpu_rendersystem_dll_name", value); } + public string GpuRendersystemDllName { get => Accessor.GetString("gpu_rendersystem_dll_name"); set => Accessor.SetString("gpu_rendersystem_dll_name", value); } - public uint GpuVendorId - { get => Accessor.GetUInt32("gpu_vendor_id"); set => Accessor.SetUInt32("gpu_vendor_id", value); } + public uint GpuVendorId { get => Accessor.GetUInt32("gpu_vendor_id"); set => Accessor.SetUInt32("gpu_vendor_id", value); } - public string GpuDriverName - { get => Accessor.GetString("gpu_driver_name"); set => Accessor.SetString("gpu_driver_name", value); } + public string GpuDriverName { get => Accessor.GetString("gpu_driver_name"); set => Accessor.SetString("gpu_driver_name", value); } - public uint GpuDriverVersionHigh - { get => Accessor.GetUInt32("gpu_driver_version_high"); set => Accessor.SetUInt32("gpu_driver_version_high", value); } + public uint GpuDriverVersionHigh { get => Accessor.GetUInt32("gpu_driver_version_high"); set => Accessor.SetUInt32("gpu_driver_version_high", value); } - public uint GpuDriverVersionLow - { get => Accessor.GetUInt32("gpu_driver_version_low"); set => Accessor.SetUInt32("gpu_driver_version_low", value); } + public uint GpuDriverVersionLow { get => Accessor.GetUInt32("gpu_driver_version_low"); set => Accessor.SetUInt32("gpu_driver_version_low", value); } - public uint GpuDxSupportLevel - { get => Accessor.GetUInt32("gpu_dx_support_level"); set => Accessor.SetUInt32("gpu_dx_support_level", value); } + public uint GpuDxSupportLevel { get => Accessor.GetUInt32("gpu_dx_support_level"); set => Accessor.SetUInt32("gpu_dx_support_level", value); } - public uint GpuTextureMemorySizeMb - { get => Accessor.GetUInt32("gpu_texture_memory_size_mb"); set => Accessor.SetUInt32("gpu_texture_memory_size_mb", value); } + public uint GpuTextureMemorySizeMb { get => Accessor.GetUInt32("gpu_texture_memory_size_mb"); set => Accessor.SetUInt32("gpu_texture_memory_size_mb", value); } - public uint BackbufferWidth - { get => Accessor.GetUInt32("backbuffer_width"); set => Accessor.SetUInt32("backbuffer_width", value); } + public uint BackbufferWidth { get => Accessor.GetUInt32("backbuffer_width"); set => Accessor.SetUInt32("backbuffer_width", value); } - public uint BackbufferHeight - { get => Accessor.GetUInt32("backbuffer_height"); set => Accessor.SetUInt32("backbuffer_height", value); } + public uint BackbufferHeight { get => Accessor.GetUInt32("backbuffer_height"); set => Accessor.SetUInt32("backbuffer_height", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2VProfLiteReportImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2VProfLiteReportImpl.cs index b003dc6f9..4c125c40c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2VProfLiteReportImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2VProfLiteReportImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +8,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSource2VProfLiteReportImpl : TypedProtobuf, CMsgSource2VProfLiteReport { - public CMsgSource2VProfLiteReportImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSource2VProfLiteReportImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CMsgSource2VProfLiteReportItem Total - { get => new CMsgSource2VProfLiteReportItemImpl(NativeNetMessages.GetNestedMessage(Address, "total"), false); } + public CMsgSource2VProfLiteReportItem Total { get => new CMsgSource2VProfLiteReportItemImpl(NativeNetMessages.GetNestedMessage(Address, "total"), false); } - public IProtobufRepeatedFieldSubMessageType Items - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "items"); } + public IProtobufRepeatedFieldSubMessageType Items { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "items"); } - public uint DiscardedFrames - { get => Accessor.GetUInt32("discarded_frames"); set => Accessor.SetUInt32("discarded_frames", value); } + public uint DiscardedFrames { get => Accessor.GetUInt32("discarded_frames"); set => Accessor.SetUInt32("discarded_frames", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2VProfLiteReportItemImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2VProfLiteReportItemImpl.cs index f983d05fa..67fc5fde5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2VProfLiteReportItemImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSource2VProfLiteReportItemImpl.cs @@ -1,88 +1,66 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSource2VProfLiteReportItemImpl : TypedProtobuf, CMsgSource2VProfLiteReportItem { - public CMsgSource2VProfLiteReportItemImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSource2VProfLiteReportItemImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public uint ActiveSamples - { get => Accessor.GetUInt32("active_samples"); set => Accessor.SetUInt32("active_samples", value); } + public uint ActiveSamples { get => Accessor.GetUInt32("active_samples"); set => Accessor.SetUInt32("active_samples", value); } - public uint ActiveSamples1secmax - { get => Accessor.GetUInt32("active_samples_1secmax"); set => Accessor.SetUInt32("active_samples_1secmax", value); } + public uint ActiveSamples1secmax { get => Accessor.GetUInt32("active_samples_1secmax"); set => Accessor.SetUInt32("active_samples_1secmax", value); } - public uint UsecMax - { get => Accessor.GetUInt32("usec_max"); set => Accessor.SetUInt32("usec_max", value); } + public uint UsecMax { get => Accessor.GetUInt32("usec_max"); set => Accessor.SetUInt32("usec_max", value); } - public uint UsecAvgActive - { get => Accessor.GetUInt32("usec_avg_active"); set => Accessor.SetUInt32("usec_avg_active", value); } + public uint UsecAvgActive { get => Accessor.GetUInt32("usec_avg_active"); set => Accessor.SetUInt32("usec_avg_active", value); } - public uint UsecP50Active - { get => Accessor.GetUInt32("usec_p50_active"); set => Accessor.SetUInt32("usec_p50_active", value); } + public uint UsecP50Active { get => Accessor.GetUInt32("usec_p50_active"); set => Accessor.SetUInt32("usec_p50_active", value); } - public uint UsecP99Active - { get => Accessor.GetUInt32("usec_p99_active"); set => Accessor.SetUInt32("usec_p99_active", value); } + public uint UsecP99Active { get => Accessor.GetUInt32("usec_p99_active"); set => Accessor.SetUInt32("usec_p99_active", value); } - public uint UsecAvgAll - { get => Accessor.GetUInt32("usec_avg_all"); set => Accessor.SetUInt32("usec_avg_all", value); } + public uint UsecAvgAll { get => Accessor.GetUInt32("usec_avg_all"); set => Accessor.SetUInt32("usec_avg_all", value); } - public uint UsecP50All - { get => Accessor.GetUInt32("usec_p50_all"); set => Accessor.SetUInt32("usec_p50_all", value); } + public uint UsecP50All { get => Accessor.GetUInt32("usec_p50_all"); set => Accessor.SetUInt32("usec_p50_all", value); } - public uint UsecP99All - { get => Accessor.GetUInt32("usec_p99_all"); set => Accessor.SetUInt32("usec_p99_all", value); } + public uint UsecP99All { get => Accessor.GetUInt32("usec_p99_all"); set => Accessor.SetUInt32("usec_p99_all", value); } - public uint Usec1secmaxAvgActive - { get => Accessor.GetUInt32("usec_1secmax_avg_active"); set => Accessor.SetUInt32("usec_1secmax_avg_active", value); } + public uint Usec1secmaxAvgActive { get => Accessor.GetUInt32("usec_1secmax_avg_active"); set => Accessor.SetUInt32("usec_1secmax_avg_active", value); } - public uint Usec1secmaxP50Active - { get => Accessor.GetUInt32("usec_1secmax_p50_active"); set => Accessor.SetUInt32("usec_1secmax_p50_active", value); } + public uint Usec1secmaxP50Active { get => Accessor.GetUInt32("usec_1secmax_p50_active"); set => Accessor.SetUInt32("usec_1secmax_p50_active", value); } - public uint Usec1secmaxP95Active - { get => Accessor.GetUInt32("usec_1secmax_p95_active"); set => Accessor.SetUInt32("usec_1secmax_p95_active", value); } + public uint Usec1secmaxP95Active { get => Accessor.GetUInt32("usec_1secmax_p95_active"); set => Accessor.SetUInt32("usec_1secmax_p95_active", value); } - public uint Usec1secmaxP99Active - { get => Accessor.GetUInt32("usec_1secmax_p99_active"); set => Accessor.SetUInt32("usec_1secmax_p99_active", value); } + public uint Usec1secmaxP99Active { get => Accessor.GetUInt32("usec_1secmax_p99_active"); set => Accessor.SetUInt32("usec_1secmax_p99_active", value); } - public uint Usec1secmaxAvgAll - { get => Accessor.GetUInt32("usec_1secmax_avg_all"); set => Accessor.SetUInt32("usec_1secmax_avg_all", value); } + public uint Usec1secmaxAvgAll { get => Accessor.GetUInt32("usec_1secmax_avg_all"); set => Accessor.SetUInt32("usec_1secmax_avg_all", value); } - public uint Usec1secmaxP50All - { get => Accessor.GetUInt32("usec_1secmax_p50_all"); set => Accessor.SetUInt32("usec_1secmax_p50_all", value); } + public uint Usec1secmaxP50All { get => Accessor.GetUInt32("usec_1secmax_p50_all"); set => Accessor.SetUInt32("usec_1secmax_p50_all", value); } - public uint Usec1secmaxP95All - { get => Accessor.GetUInt32("usec_1secmax_p95_all"); set => Accessor.SetUInt32("usec_1secmax_p95_all", value); } + public uint Usec1secmaxP95All { get => Accessor.GetUInt32("usec_1secmax_p95_all"); set => Accessor.SetUInt32("usec_1secmax_p95_all", value); } - public uint Usec1secmaxP99All - { get => Accessor.GetUInt32("usec_1secmax_p99_all"); set => Accessor.SetUInt32("usec_1secmax_p99_all", value); } + public uint Usec1secmaxP99All { get => Accessor.GetUInt32("usec_1secmax_p99_all"); set => Accessor.SetUInt32("usec_1secmax_p99_all", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgStoreGetUserDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgStoreGetUserDataImpl.cs index c951396a8..27019b8b6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgStoreGetUserDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgStoreGetUserDataImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgStoreGetUserDataImpl : TypedProtobuf, CMsgStoreGetUserData { - public CMsgStoreGetUserDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgStoreGetUserDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint PriceSheetVersion - { get => Accessor.GetUInt32("price_sheet_version"); set => Accessor.SetUInt32("price_sheet_version", value); } + public uint PriceSheetVersion { get => Accessor.GetUInt32("price_sheet_version"); set => Accessor.SetUInt32("price_sheet_version", value); } - public int Currency - { get => Accessor.GetInt32("currency"); set => Accessor.SetInt32("currency", value); } + public int Currency { get => Accessor.GetInt32("currency"); set => Accessor.SetInt32("currency", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgStoreGetUserDataResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgStoreGetUserDataResponseImpl.cs index 6412cdebc..d5f2b7c65 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgStoreGetUserDataResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgStoreGetUserDataResponseImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgStoreGetUserDataResponseImpl : TypedProtobuf, CMsgStoreGetUserDataResponse { - public CMsgStoreGetUserDataResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgStoreGetUserDataResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Result - { get => Accessor.GetInt32("result"); set => Accessor.SetInt32("result", value); } + public int Result { get => Accessor.GetInt32("result"); set => Accessor.SetInt32("result", value); } - public int CurrencyDeprecated - { get => Accessor.GetInt32("currency_deprecated"); set => Accessor.SetInt32("currency_deprecated", value); } + public int CurrencyDeprecated { get => Accessor.GetInt32("currency_deprecated"); set => Accessor.SetInt32("currency_deprecated", value); } - public string CountryDeprecated - { get => Accessor.GetString("country_deprecated"); set => Accessor.SetString("country_deprecated", value); } + public string CountryDeprecated { get => Accessor.GetString("country_deprecated"); set => Accessor.SetString("country_deprecated", value); } - public uint PriceSheetVersion - { get => Accessor.GetUInt32("price_sheet_version"); set => Accessor.SetUInt32("price_sheet_version", value); } + public uint PriceSheetVersion { get => Accessor.GetUInt32("price_sheet_version"); set => Accessor.SetUInt32("price_sheet_version", value); } - public byte[] PriceSheet - { get => Accessor.GetBytes("price_sheet"); set => Accessor.SetBytes("price_sheet", value); } + public byte[] PriceSheet { get => Accessor.GetBytes("price_sheet"); set => Accessor.SetBytes("price_sheet", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSystemBroadcastImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSystemBroadcastImpl.cs index 6f90c4d10..ed4d209a8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSystemBroadcastImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgSystemBroadcastImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgSystemBroadcastImpl : TypedProtobuf, CMsgSystemBroadcast { - public CMsgSystemBroadcastImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgSystemBroadcastImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Message - { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } + public string Message { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEArmorRicochetImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEArmorRicochetImpl.cs index f25c38e14..bfc8228d7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEArmorRicochetImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEArmorRicochetImpl.cs @@ -1,24 +1,19 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEArmorRicochetImpl : NetMessage, CMsgTEArmorRicochet { - public CMsgTEArmorRicochetImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEArmorRicochetImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Pos - { get => Accessor.GetVector("pos"); set => Accessor.SetVector("pos", value); } + public Vector Pos { get => Accessor.GetVector("pos"); set => Accessor.SetVector("pos", value); } - public Vector Dir - { get => Accessor.GetVector("dir"); set => Accessor.SetVector("dir", value); } + public Vector Dir { get => Accessor.GetVector("dir"); set => Accessor.SetVector("dir", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBaseBeamImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBaseBeamImpl.cs index b1a0ec6df..5d681a93e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBaseBeamImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBaseBeamImpl.cs @@ -1,64 +1,48 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEBaseBeamImpl : TypedProtobuf, CMsgTEBaseBeam { - public CMsgTEBaseBeamImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgTEBaseBeamImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Modelindex - { get => Accessor.GetUInt64("modelindex"); set => Accessor.SetUInt64("modelindex", value); } + public ulong Modelindex { get => Accessor.GetUInt64("modelindex"); set => Accessor.SetUInt64("modelindex", value); } - public ulong Haloindex - { get => Accessor.GetUInt64("haloindex"); set => Accessor.SetUInt64("haloindex", value); } + public ulong Haloindex { get => Accessor.GetUInt64("haloindex"); set => Accessor.SetUInt64("haloindex", value); } - public uint Startframe - { get => Accessor.GetUInt32("startframe"); set => Accessor.SetUInt32("startframe", value); } + public uint Startframe { get => Accessor.GetUInt32("startframe"); set => Accessor.SetUInt32("startframe", value); } - public uint Framerate - { get => Accessor.GetUInt32("framerate"); set => Accessor.SetUInt32("framerate", value); } + public uint Framerate { get => Accessor.GetUInt32("framerate"); set => Accessor.SetUInt32("framerate", value); } - public float Life - { get => Accessor.GetFloat("life"); set => Accessor.SetFloat("life", value); } + public float Life { get => Accessor.GetFloat("life"); set => Accessor.SetFloat("life", value); } - public float Width - { get => Accessor.GetFloat("width"); set => Accessor.SetFloat("width", value); } + public float Width { get => Accessor.GetFloat("width"); set => Accessor.SetFloat("width", value); } - public float Endwidth - { get => Accessor.GetFloat("endwidth"); set => Accessor.SetFloat("endwidth", value); } + public float Endwidth { get => Accessor.GetFloat("endwidth"); set => Accessor.SetFloat("endwidth", value); } - public uint Fadelength - { get => Accessor.GetUInt32("fadelength"); set => Accessor.SetUInt32("fadelength", value); } + public uint Fadelength { get => Accessor.GetUInt32("fadelength"); set => Accessor.SetUInt32("fadelength", value); } - public float Amplitude - { get => Accessor.GetFloat("amplitude"); set => Accessor.SetFloat("amplitude", value); } + public float Amplitude { get => Accessor.GetFloat("amplitude"); set => Accessor.SetFloat("amplitude", value); } - public uint Color - { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } + public uint Color { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } - public uint Speed - { get => Accessor.GetUInt32("speed"); set => Accessor.SetUInt32("speed", value); } + public uint Speed { get => Accessor.GetUInt32("speed"); set => Accessor.SetUInt32("speed", value); } - public uint Flags - { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } + public uint Flags { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamEntPointImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamEntPointImpl.cs index e522c1a92..7ea99d7df 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamEntPointImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamEntPointImpl.cs @@ -2,35 +2,29 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEBeamEntPointImpl : NetMessage, CMsgTEBeamEntPoint { - public CMsgTEBeamEntPointImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEBeamEntPointImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CMsgTEBaseBeam Base - { get => new CMsgTEBaseBeamImpl(NativeNetMessages.GetNestedMessage(Address, "base"), false); } + public CMsgTEBaseBeam Base { get => new CMsgTEBaseBeamImpl(NativeNetMessages.GetNestedMessage(Address, "base"), false); } - public uint Startentity - { get => Accessor.GetUInt32("startentity"); set => Accessor.SetUInt32("startentity", value); } + public uint Startentity { get => Accessor.GetUInt32("startentity"); set => Accessor.SetUInt32("startentity", value); } - public uint Endentity - { get => Accessor.GetUInt32("endentity"); set => Accessor.SetUInt32("endentity", value); } + public uint Endentity { get => Accessor.GetUInt32("endentity"); set => Accessor.SetUInt32("endentity", value); } - public Vector Start - { get => Accessor.GetVector("start"); set => Accessor.SetVector("start", value); } + public Vector Start { get => Accessor.GetVector("start"); set => Accessor.SetVector("start", value); } - public Vector End - { get => Accessor.GetVector("end"); set => Accessor.SetVector("end", value); } + public Vector End { get => Accessor.GetVector("end"); set => Accessor.SetVector("end", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamEntsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamEntsImpl.cs index 5d91331b5..f17e1df62 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamEntsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamEntsImpl.cs @@ -1,28 +1,23 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEBeamEntsImpl : NetMessage, CMsgTEBeamEnts { - public CMsgTEBeamEntsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEBeamEntsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CMsgTEBaseBeam Base - { get => new CMsgTEBaseBeamImpl(NativeNetMessages.GetNestedMessage(Address, "base"), false); } + public CMsgTEBaseBeam Base { get => new CMsgTEBaseBeamImpl(NativeNetMessages.GetNestedMessage(Address, "base"), false); } - public uint Startentity - { get => Accessor.GetUInt32("startentity"); set => Accessor.SetUInt32("startentity", value); } + public uint Startentity { get => Accessor.GetUInt32("startentity"); set => Accessor.SetUInt32("startentity", value); } - public uint Endentity - { get => Accessor.GetUInt32("endentity"); set => Accessor.SetUInt32("endentity", value); } + public uint Endentity { get => Accessor.GetUInt32("endentity"); set => Accessor.SetUInt32("endentity", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamPointsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamPointsImpl.cs index 1a610ad02..15354c9cd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamPointsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamPointsImpl.cs @@ -2,27 +2,23 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEBeamPointsImpl : NetMessage, CMsgTEBeamPoints { - public CMsgTEBeamPointsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEBeamPointsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CMsgTEBaseBeam Base - { get => new CMsgTEBaseBeamImpl(NativeNetMessages.GetNestedMessage(Address, "base"), false); } + public CMsgTEBaseBeam Base { get => new CMsgTEBaseBeamImpl(NativeNetMessages.GetNestedMessage(Address, "base"), false); } - public Vector Start - { get => Accessor.GetVector("start"); set => Accessor.SetVector("start", value); } + public Vector Start { get => Accessor.GetVector("start"); set => Accessor.SetVector("start", value); } - public Vector End - { get => Accessor.GetVector("end"); set => Accessor.SetVector("end", value); } + public Vector End { get => Accessor.GetVector("end"); set => Accessor.SetVector("end", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamRingImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamRingImpl.cs index 459209498..6fb61d361 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamRingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBeamRingImpl.cs @@ -1,28 +1,23 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEBeamRingImpl : NetMessage, CMsgTEBeamRing { - public CMsgTEBeamRingImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEBeamRingImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CMsgTEBaseBeam Base - { get => new CMsgTEBaseBeamImpl(NativeNetMessages.GetNestedMessage(Address, "base"), false); } + public CMsgTEBaseBeam Base { get => new CMsgTEBaseBeamImpl(NativeNetMessages.GetNestedMessage(Address, "base"), false); } - public uint Startentity - { get => Accessor.GetUInt32("startentity"); set => Accessor.SetUInt32("startentity", value); } + public uint Startentity { get => Accessor.GetUInt32("startentity"); set => Accessor.SetUInt32("startentity", value); } - public uint Endentity - { get => Accessor.GetUInt32("endentity"); set => Accessor.SetUInt32("endentity", value); } + public uint Endentity { get => Accessor.GetUInt32("endentity"); set => Accessor.SetUInt32("endentity", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBloodStreamImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBloodStreamImpl.cs index cb4e7b927..45f6c45eb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBloodStreamImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBloodStreamImpl.cs @@ -1,32 +1,25 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEBloodStreamImpl : NetMessage, CMsgTEBloodStream { - public CMsgTEBloodStreamImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEBloodStreamImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public Vector Direction - { get => Accessor.GetVector("direction"); set => Accessor.SetVector("direction", value); } + public Vector Direction { get => Accessor.GetVector("direction"); set => Accessor.SetVector("direction", value); } - public uint Color - { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } + public uint Color { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } - public uint Amount - { get => Accessor.GetUInt32("amount"); set => Accessor.SetUInt32("amount", value); } + public uint Amount { get => Accessor.GetUInt32("amount"); set => Accessor.SetUInt32("amount", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBubbleTrailImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBubbleTrailImpl.cs index be2010208..f22d9ce87 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBubbleTrailImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBubbleTrailImpl.cs @@ -1,36 +1,28 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEBubbleTrailImpl : NetMessage, CMsgTEBubbleTrail { - public CMsgTEBubbleTrailImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEBubbleTrailImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Mins - { get => Accessor.GetVector("mins"); set => Accessor.SetVector("mins", value); } + public Vector Mins { get => Accessor.GetVector("mins"); set => Accessor.SetVector("mins", value); } - public Vector Maxs - { get => Accessor.GetVector("maxs"); set => Accessor.SetVector("maxs", value); } + public Vector Maxs { get => Accessor.GetVector("maxs"); set => Accessor.SetVector("maxs", value); } - public float Waterz - { get => Accessor.GetFloat("waterz"); set => Accessor.SetFloat("waterz", value); } + public float Waterz { get => Accessor.GetFloat("waterz"); set => Accessor.SetFloat("waterz", value); } - public uint Count - { get => Accessor.GetUInt32("count"); set => Accessor.SetUInt32("count", value); } + public uint Count { get => Accessor.GetUInt32("count"); set => Accessor.SetUInt32("count", value); } - public float Speed - { get => Accessor.GetFloat("speed"); set => Accessor.SetFloat("speed", value); } + public float Speed { get => Accessor.GetFloat("speed"); set => Accessor.SetFloat("speed", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBubblesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBubblesImpl.cs index 3ea6e50e7..69738e83f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBubblesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEBubblesImpl.cs @@ -1,36 +1,28 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEBubblesImpl : NetMessage, CMsgTEBubbles { - public CMsgTEBubblesImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEBubblesImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Mins - { get => Accessor.GetVector("mins"); set => Accessor.SetVector("mins", value); } + public Vector Mins { get => Accessor.GetVector("mins"); set => Accessor.SetVector("mins", value); } - public Vector Maxs - { get => Accessor.GetVector("maxs"); set => Accessor.SetVector("maxs", value); } + public Vector Maxs { get => Accessor.GetVector("maxs"); set => Accessor.SetVector("maxs", value); } - public float Height - { get => Accessor.GetFloat("height"); set => Accessor.SetFloat("height", value); } + public float Height { get => Accessor.GetFloat("height"); set => Accessor.SetFloat("height", value); } - public uint Count - { get => Accessor.GetUInt32("count"); set => Accessor.SetUInt32("count", value); } + public uint Count { get => Accessor.GetUInt32("count"); set => Accessor.SetUInt32("count", value); } - public float Speed - { get => Accessor.GetFloat("speed"); set => Accessor.SetFloat("speed", value); } + public float Speed { get => Accessor.GetFloat("speed"); set => Accessor.SetFloat("speed", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEDecalImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEDecalImpl.cs index ce37ea80d..6daad13e0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEDecalImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEDecalImpl.cs @@ -1,36 +1,28 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEDecalImpl : NetMessage, CMsgTEDecal { - public CMsgTEDecalImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEDecalImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public Vector Start - { get => Accessor.GetVector("start"); set => Accessor.SetVector("start", value); } + public Vector Start { get => Accessor.GetVector("start"); set => Accessor.SetVector("start", value); } - public int Entity - { get => Accessor.GetInt32("entity"); set => Accessor.SetInt32("entity", value); } + public int Entity { get => Accessor.GetInt32("entity"); set => Accessor.SetInt32("entity", value); } - public uint Hitbox - { get => Accessor.GetUInt32("hitbox"); set => Accessor.SetUInt32("hitbox", value); } + public uint Hitbox { get => Accessor.GetUInt32("hitbox"); set => Accessor.SetUInt32("hitbox", value); } - public uint Index - { get => Accessor.GetUInt32("index"); set => Accessor.SetUInt32("index", value); } + public uint Index { get => Accessor.GetUInt32("index"); set => Accessor.SetUInt32("index", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEDustImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEDustImpl.cs index 10fc67f1f..281ad282f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEDustImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEDustImpl.cs @@ -1,32 +1,25 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEDustImpl : NetMessage, CMsgTEDust { - public CMsgTEDustImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEDustImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public float Size - { get => Accessor.GetFloat("size"); set => Accessor.SetFloat("size", value); } + public float Size { get => Accessor.GetFloat("size"); set => Accessor.SetFloat("size", value); } - public float Speed - { get => Accessor.GetFloat("speed"); set => Accessor.SetFloat("speed", value); } + public float Speed { get => Accessor.GetFloat("speed"); set => Accessor.SetFloat("speed", value); } - public Vector Direction - { get => Accessor.GetVector("direction"); set => Accessor.SetVector("direction", value); } + public Vector Direction { get => Accessor.GetVector("direction"); set => Accessor.SetVector("direction", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEEffectDispatchImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEEffectDispatchImpl.cs index ef33a5e57..8f0e46ff0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEEffectDispatchImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEEffectDispatchImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEEffectDispatchImpl : NetMessage, CMsgTEEffectDispatch { - public CMsgTEEffectDispatchImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEEffectDispatchImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CMsgEffectData Effectdata - { get => new CMsgEffectDataImpl(NativeNetMessages.GetNestedMessage(Address, "effectdata"), false); } + public CMsgEffectData Effectdata { get => new CMsgEffectDataImpl(NativeNetMessages.GetNestedMessage(Address, "effectdata"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEEnergySplashImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEEnergySplashImpl.cs index e1367dcc8..001b646c3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEEnergySplashImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEEnergySplashImpl.cs @@ -1,28 +1,22 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEEnergySplashImpl : NetMessage, CMsgTEEnergySplash { - public CMsgTEEnergySplashImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEEnergySplashImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Pos - { get => Accessor.GetVector("pos"); set => Accessor.SetVector("pos", value); } + public Vector Pos { get => Accessor.GetVector("pos"); set => Accessor.SetVector("pos", value); } - public Vector Dir - { get => Accessor.GetVector("dir"); set => Accessor.SetVector("dir", value); } + public Vector Dir { get => Accessor.GetVector("dir"); set => Accessor.SetVector("dir", value); } - public bool Explosive - { get => Accessor.GetBool("explosive"); set => Accessor.SetBool("explosive", value); } + public bool Explosive { get => Accessor.GetBool("explosive"); set => Accessor.SetBool("explosive", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEExplosionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEExplosionImpl.cs index 0f07d70de..648d65a74 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEExplosionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEExplosionImpl.cs @@ -1,60 +1,46 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEExplosionImpl : NetMessage, CMsgTEExplosion { - public CMsgTEExplosionImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEExplosionImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public uint Flags - { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } + public uint Flags { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } - public Vector Normal - { get => Accessor.GetVector("normal"); set => Accessor.SetVector("normal", value); } + public Vector Normal { get => Accessor.GetVector("normal"); set => Accessor.SetVector("normal", value); } - public uint Radius - { get => Accessor.GetUInt32("radius"); set => Accessor.SetUInt32("radius", value); } + public uint Radius { get => Accessor.GetUInt32("radius"); set => Accessor.SetUInt32("radius", value); } - public uint Magnitude - { get => Accessor.GetUInt32("magnitude"); set => Accessor.SetUInt32("magnitude", value); } + public uint Magnitude { get => Accessor.GetUInt32("magnitude"); set => Accessor.SetUInt32("magnitude", value); } - public bool AffectRagdolls - { get => Accessor.GetBool("affect_ragdolls"); set => Accessor.SetBool("affect_ragdolls", value); } + public bool AffectRagdolls { get => Accessor.GetBool("affect_ragdolls"); set => Accessor.SetBool("affect_ragdolls", value); } - public string SoundName - { get => Accessor.GetString("sound_name"); set => Accessor.SetString("sound_name", value); } + public string SoundName { get => Accessor.GetString("sound_name"); set => Accessor.SetString("sound_name", value); } - public uint ExplosionType - { get => Accessor.GetUInt32("explosion_type"); set => Accessor.SetUInt32("explosion_type", value); } + public uint ExplosionType { get => Accessor.GetUInt32("explosion_type"); set => Accessor.SetUInt32("explosion_type", value); } - public bool CreateDebris - { get => Accessor.GetBool("create_debris"); set => Accessor.SetBool("create_debris", value); } + public bool CreateDebris { get => Accessor.GetBool("create_debris"); set => Accessor.SetBool("create_debris", value); } - public Vector DebrisOrigin - { get => Accessor.GetVector("debris_origin"); set => Accessor.SetVector("debris_origin", value); } + public Vector DebrisOrigin { get => Accessor.GetVector("debris_origin"); set => Accessor.SetVector("debris_origin", value); } - public uint DebrisSurfaceprop - { get => Accessor.GetUInt32("debris_surfaceprop"); set => Accessor.SetUInt32("debris_surfaceprop", value); } + public uint DebrisSurfaceprop { get => Accessor.GetUInt32("debris_surfaceprop"); set => Accessor.SetUInt32("debris_surfaceprop", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEFireBulletsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEFireBulletsImpl.cs index 580f462a8..48dbed66e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEFireBulletsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEFireBulletsImpl.cs @@ -2,91 +2,71 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEFireBulletsImpl : NetMessage, CMsgTEFireBullets { - public CMsgTEFireBulletsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEFireBulletsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public QAngle Angles - { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } + public QAngle Angles { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } - public uint WeaponId - { get => Accessor.GetUInt32("weapon_id"); set => Accessor.SetUInt32("weapon_id", value); } + public uint WeaponId { get => Accessor.GetUInt32("weapon_id"); set => Accessor.SetUInt32("weapon_id", value); } - public uint Mode - { get => Accessor.GetUInt32("mode"); set => Accessor.SetUInt32("mode", value); } + public uint Mode { get => Accessor.GetUInt32("mode"); set => Accessor.SetUInt32("mode", value); } - public uint Seed - { get => Accessor.GetUInt32("seed"); set => Accessor.SetUInt32("seed", value); } + public uint Seed { get => Accessor.GetUInt32("seed"); set => Accessor.SetUInt32("seed", value); } - public uint Player - { get => Accessor.GetUInt32("player"); set => Accessor.SetUInt32("player", value); } + public uint Player { get => Accessor.GetUInt32("player"); set => Accessor.SetUInt32("player", value); } - public float Inaccuracy - { get => Accessor.GetFloat("inaccuracy"); set => Accessor.SetFloat("inaccuracy", value); } + public float Inaccuracy { get => Accessor.GetFloat("inaccuracy"); set => Accessor.SetFloat("inaccuracy", value); } - public float RecoilIndex - { get => Accessor.GetFloat("recoil_index"); set => Accessor.SetFloat("recoil_index", value); } + public float RecoilIndex { get => Accessor.GetFloat("recoil_index"); set => Accessor.SetFloat("recoil_index", value); } - public float Spread - { get => Accessor.GetFloat("spread"); set => Accessor.SetFloat("spread", value); } + public float Spread { get => Accessor.GetFloat("spread"); set => Accessor.SetFloat("spread", value); } - public int SoundType - { get => Accessor.GetInt32("sound_type"); set => Accessor.SetInt32("sound_type", value); } + public int SoundType { get => Accessor.GetInt32("sound_type"); set => Accessor.SetInt32("sound_type", value); } - public uint ItemDefIndex - { get => Accessor.GetUInt32("item_def_index"); set => Accessor.SetUInt32("item_def_index", value); } + public uint ItemDefIndex { get => Accessor.GetUInt32("item_def_index"); set => Accessor.SetUInt32("item_def_index", value); } - public uint SoundDspEffect - { get => Accessor.GetUInt32("sound_dsp_effect"); set => Accessor.SetUInt32("sound_dsp_effect", value); } + public uint SoundDspEffect { get => Accessor.GetUInt32("sound_dsp_effect"); set => Accessor.SetUInt32("sound_dsp_effect", value); } - public Vector EntOrigin - { get => Accessor.GetVector("ent_origin"); set => Accessor.SetVector("ent_origin", value); } + public Vector EntOrigin { get => Accessor.GetVector("ent_origin"); set => Accessor.SetVector("ent_origin", value); } - public uint NumBulletsRemaining - { get => Accessor.GetUInt32("num_bullets_remaining"); set => Accessor.SetUInt32("num_bullets_remaining", value); } + public uint NumBulletsRemaining { get => Accessor.GetUInt32("num_bullets_remaining"); set => Accessor.SetUInt32("num_bullets_remaining", value); } - public uint AttackType - { get => Accessor.GetUInt32("attack_type"); set => Accessor.SetUInt32("attack_type", value); } + public uint AttackType { get => Accessor.GetUInt32("attack_type"); set => Accessor.SetUInt32("attack_type", value); } - public bool PlayerInair - { get => Accessor.GetBool("player_inair"); set => Accessor.SetBool("player_inair", value); } + public bool PlayerInair { get => Accessor.GetBool("player_inair"); set => Accessor.SetBool("player_inair", value); } - public bool PlayerScoped - { get => Accessor.GetBool("player_scoped"); set => Accessor.SetBool("player_scoped", value); } + public bool PlayerScoped { get => Accessor.GetBool("player_scoped"); set => Accessor.SetBool("player_scoped", value); } - public int Tick - { get => Accessor.GetInt32("tick"); set => Accessor.SetInt32("tick", value); } + public int Tick { get => Accessor.GetInt32("tick"); set => Accessor.SetInt32("tick", value); } - public CMsgTEFireBullets_Extra Extra - { get => new CMsgTEFireBullets_ExtraImpl(NativeNetMessages.GetNestedMessage(Address, "extra"), false); } + public CMsgTEFireBullets_Extra Extra { get => new CMsgTEFireBullets_ExtraImpl(NativeNetMessages.GetNestedMessage(Address, "extra"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEFireBullets_ExtraImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEFireBullets_ExtraImpl.cs index b1f4c13ad..c741427bf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEFireBullets_ExtraImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEFireBullets_ExtraImpl.cs @@ -1,48 +1,37 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEFireBullets_ExtraImpl : TypedProtobuf, CMsgTEFireBullets_Extra { - public CMsgTEFireBullets_ExtraImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgTEFireBullets_ExtraImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public QAngle AimPunch - { get => Accessor.GetQAngle("aim_punch"); set => Accessor.SetQAngle("aim_punch", value); } + public QAngle AimPunch { get => Accessor.GetQAngle("aim_punch"); set => Accessor.SetQAngle("aim_punch", value); } - public int AttackTickCount - { get => Accessor.GetInt32("attack_tick_count"); set => Accessor.SetInt32("attack_tick_count", value); } + public int AttackTickCount { get => Accessor.GetInt32("attack_tick_count"); set => Accessor.SetInt32("attack_tick_count", value); } - public float AttackTickFrac - { get => Accessor.GetFloat("attack_tick_frac"); set => Accessor.SetFloat("attack_tick_frac", value); } + public float AttackTickFrac { get => Accessor.GetFloat("attack_tick_frac"); set => Accessor.SetFloat("attack_tick_frac", value); } - public int RenderTickCount - { get => Accessor.GetInt32("render_tick_count"); set => Accessor.SetInt32("render_tick_count", value); } + public int RenderTickCount { get => Accessor.GetInt32("render_tick_count"); set => Accessor.SetInt32("render_tick_count", value); } - public float RenderTickFrac - { get => Accessor.GetFloat("render_tick_frac"); set => Accessor.SetFloat("render_tick_frac", value); } + public float RenderTickFrac { get => Accessor.GetFloat("render_tick_frac"); set => Accessor.SetFloat("render_tick_frac", value); } - public float InaccuracyMove - { get => Accessor.GetFloat("inaccuracy_move"); set => Accessor.SetFloat("inaccuracy_move", value); } + public float InaccuracyMove { get => Accessor.GetFloat("inaccuracy_move"); set => Accessor.SetFloat("inaccuracy_move", value); } - public float InaccuracyAir - { get => Accessor.GetFloat("inaccuracy_air"); set => Accessor.SetFloat("inaccuracy_air", value); } + public float InaccuracyAir { get => Accessor.GetFloat("inaccuracy_air"); set => Accessor.SetFloat("inaccuracy_air", value); } - public int Type - { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + public int Type { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEFizzImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEFizzImpl.cs index 38b01b7f7..0fa3c55da 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEFizzImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEFizzImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEFizzImpl : NetMessage, CMsgTEFizz { - public CMsgTEFizzImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEFizzImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Entity - { get => Accessor.GetInt32("entity"); set => Accessor.SetInt32("entity", value); } + public int Entity { get => Accessor.GetInt32("entity"); set => Accessor.SetInt32("entity", value); } - public uint Density - { get => Accessor.GetUInt32("density"); set => Accessor.SetUInt32("density", value); } + public uint Density { get => Accessor.GetUInt32("density"); set => Accessor.SetUInt32("density", value); } - public int Current - { get => Accessor.GetInt32("current"); set => Accessor.SetInt32("current", value); } + public int Current { get => Accessor.GetInt32("current"); set => Accessor.SetInt32("current", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEGlowSpriteImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEGlowSpriteImpl.cs index d8a2805ad..16f2ac21c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEGlowSpriteImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEGlowSpriteImpl.cs @@ -1,32 +1,25 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEGlowSpriteImpl : NetMessage, CMsgTEGlowSprite { - public CMsgTEGlowSpriteImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEGlowSpriteImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public float Scale - { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } + public float Scale { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } - public float Life - { get => Accessor.GetFloat("life"); set => Accessor.SetFloat("life", value); } + public float Life { get => Accessor.GetFloat("life"); set => Accessor.SetFloat("life", value); } - public uint Brightness - { get => Accessor.GetUInt32("brightness"); set => Accessor.SetUInt32("brightness", value); } + public uint Brightness { get => Accessor.GetUInt32("brightness"); set => Accessor.SetUInt32("brightness", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEImpactImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEImpactImpl.cs index ab76a9008..cf2dfc14f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEImpactImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEImpactImpl.cs @@ -1,28 +1,22 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEImpactImpl : NetMessage, CMsgTEImpact { - public CMsgTEImpactImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEImpactImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public Vector Normal - { get => Accessor.GetVector("normal"); set => Accessor.SetVector("normal", value); } + public Vector Normal { get => Accessor.GetVector("normal"); set => Accessor.SetVector("normal", value); } - public uint Type - { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } + public uint Type { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTELargeFunnelImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTELargeFunnelImpl.cs index 54e2efe7d..c48251336 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTELargeFunnelImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTELargeFunnelImpl.cs @@ -1,24 +1,19 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTELargeFunnelImpl : NetMessage, CMsgTELargeFunnel { - public CMsgTELargeFunnelImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTELargeFunnelImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public uint Reversed - { get => Accessor.GetUInt32("reversed"); set => Accessor.SetUInt32("reversed", value); } + public uint Reversed { get => Accessor.GetUInt32("reversed"); set => Accessor.SetUInt32("reversed", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEMuzzleFlashImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEMuzzleFlashImpl.cs index 8d6ebde6c..3a9686602 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEMuzzleFlashImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEMuzzleFlashImpl.cs @@ -1,32 +1,25 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEMuzzleFlashImpl : NetMessage, CMsgTEMuzzleFlash { - public CMsgTEMuzzleFlashImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEMuzzleFlashImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public QAngle Angles - { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } + public QAngle Angles { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } - public float Scale - { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } + public float Scale { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } - public uint Type - { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } + public uint Type { get => Accessor.GetUInt32("type"); set => Accessor.SetUInt32("type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEPhysicsPropImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEPhysicsPropImpl.cs index db071a047..f1797e8b1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEPhysicsPropImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEPhysicsPropImpl.cs @@ -1,68 +1,52 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEPhysicsPropImpl : NetMessage, CMsgTEPhysicsProp { - public CMsgTEPhysicsPropImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEPhysicsPropImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public Vector Velocity - { get => Accessor.GetVector("velocity"); set => Accessor.SetVector("velocity", value); } + public Vector Velocity { get => Accessor.GetVector("velocity"); set => Accessor.SetVector("velocity", value); } - public QAngle Angles - { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } + public QAngle Angles { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } - public uint Skin - { get => Accessor.GetUInt32("skin"); set => Accessor.SetUInt32("skin", value); } + public uint Skin { get => Accessor.GetUInt32("skin"); set => Accessor.SetUInt32("skin", value); } - public uint Flags - { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } + public uint Flags { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } - public uint Effects - { get => Accessor.GetUInt32("effects"); set => Accessor.SetUInt32("effects", value); } + public uint Effects { get => Accessor.GetUInt32("effects"); set => Accessor.SetUInt32("effects", value); } - public uint Color - { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } + public uint Color { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } - public ulong Modelindex - { get => Accessor.GetUInt64("modelindex"); set => Accessor.SetUInt64("modelindex", value); } + public ulong Modelindex { get => Accessor.GetUInt64("modelindex"); set => Accessor.SetUInt64("modelindex", value); } - public uint UnusedBreakmodelsnottomake - { get => Accessor.GetUInt32("unused_breakmodelsnottomake"); set => Accessor.SetUInt32("unused_breakmodelsnottomake", value); } + public uint UnusedBreakmodelsnottomake { get => Accessor.GetUInt32("unused_breakmodelsnottomake"); set => Accessor.SetUInt32("unused_breakmodelsnottomake", value); } - public float Scale - { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } + public float Scale { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } - public Vector Dmgpos - { get => Accessor.GetVector("dmgpos"); set => Accessor.SetVector("dmgpos", value); } + public Vector Dmgpos { get => Accessor.GetVector("dmgpos"); set => Accessor.SetVector("dmgpos", value); } - public Vector Dmgdir - { get => Accessor.GetVector("dmgdir"); set => Accessor.SetVector("dmgdir", value); } + public Vector Dmgdir { get => Accessor.GetVector("dmgdir"); set => Accessor.SetVector("dmgdir", value); } - public int Dmgtype - { get => Accessor.GetInt32("dmgtype"); set => Accessor.SetInt32("dmgtype", value); } + public int Dmgtype { get => Accessor.GetInt32("dmgtype"); set => Accessor.SetInt32("dmgtype", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEPlayerAnimEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEPlayerAnimEventImpl.cs index 34e49c8d9..cfcaa6b8e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEPlayerAnimEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEPlayerAnimEventImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEPlayerAnimEventImpl : NetMessage, CMsgTEPlayerAnimEvent { - public CMsgTEPlayerAnimEventImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEPlayerAnimEventImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Player - { get => Accessor.GetUInt32("player"); set => Accessor.SetUInt32("player", value); } + public uint Player { get => Accessor.GetUInt32("player"); set => Accessor.SetUInt32("player", value); } - public uint Event - { get => Accessor.GetUInt32("event"); set => Accessor.SetUInt32("event", value); } + public uint Event { get => Accessor.GetUInt32("event"); set => Accessor.SetUInt32("event", value); } - public int Data - { get => Accessor.GetInt32("data"); set => Accessor.SetInt32("data", value); } + public int Data { get => Accessor.GetInt32("data"); set => Accessor.SetInt32("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTERadioIconImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTERadioIconImpl.cs index 7492171ca..0ac364cc3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTERadioIconImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTERadioIconImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTERadioIconImpl : TypedProtobuf, CMsgTERadioIcon { - public CMsgTERadioIconImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgTERadioIconImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Player - { get => Accessor.GetUInt32("player"); set => Accessor.SetUInt32("player", value); } + public uint Player { get => Accessor.GetUInt32("player"); set => Accessor.SetUInt32("player", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEShatterSurfaceImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEShatterSurfaceImpl.cs index cbc190232..97ffffba0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEShatterSurfaceImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEShatterSurfaceImpl.cs @@ -1,56 +1,43 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEShatterSurfaceImpl : NetMessage, CMsgTEShatterSurface { - public CMsgTEShatterSurfaceImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEShatterSurfaceImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public QAngle Angles - { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } + public QAngle Angles { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } - public Vector Force - { get => Accessor.GetVector("force"); set => Accessor.SetVector("force", value); } + public Vector Force { get => Accessor.GetVector("force"); set => Accessor.SetVector("force", value); } - public Vector Forcepos - { get => Accessor.GetVector("forcepos"); set => Accessor.SetVector("forcepos", value); } + public Vector Forcepos { get => Accessor.GetVector("forcepos"); set => Accessor.SetVector("forcepos", value); } - public float Width - { get => Accessor.GetFloat("width"); set => Accessor.SetFloat("width", value); } + public float Width { get => Accessor.GetFloat("width"); set => Accessor.SetFloat("width", value); } - public float Height - { get => Accessor.GetFloat("height"); set => Accessor.SetFloat("height", value); } + public float Height { get => Accessor.GetFloat("height"); set => Accessor.SetFloat("height", value); } - public float Shardsize - { get => Accessor.GetFloat("shardsize"); set => Accessor.SetFloat("shardsize", value); } + public float Shardsize { get => Accessor.GetFloat("shardsize"); set => Accessor.SetFloat("shardsize", value); } - public uint Surfacetype - { get => Accessor.GetUInt32("surfacetype"); set => Accessor.SetUInt32("surfacetype", value); } + public uint Surfacetype { get => Accessor.GetUInt32("surfacetype"); set => Accessor.SetUInt32("surfacetype", value); } - public uint Frontcolor - { get => Accessor.GetUInt32("frontcolor"); set => Accessor.SetUInt32("frontcolor", value); } + public uint Frontcolor { get => Accessor.GetUInt32("frontcolor"); set => Accessor.SetUInt32("frontcolor", value); } - public uint Backcolor - { get => Accessor.GetUInt32("backcolor"); set => Accessor.SetUInt32("backcolor", value); } + public uint Backcolor { get => Accessor.GetUInt32("backcolor"); set => Accessor.SetUInt32("backcolor", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTESmokeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTESmokeImpl.cs index d415a1572..9c693ffdc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTESmokeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTESmokeImpl.cs @@ -1,24 +1,19 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTESmokeImpl : NetMessage, CMsgTESmoke { - public CMsgTESmokeImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTESmokeImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public float Scale - { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } + public float Scale { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTESparksImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTESparksImpl.cs index 8eece8a32..a9f24e033 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTESparksImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTESparksImpl.cs @@ -1,32 +1,25 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTESparksImpl : NetMessage, CMsgTESparks { - public CMsgTESparksImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTESparksImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public uint Magnitude - { get => Accessor.GetUInt32("magnitude"); set => Accessor.SetUInt32("magnitude", value); } + public uint Magnitude { get => Accessor.GetUInt32("magnitude"); set => Accessor.SetUInt32("magnitude", value); } - public uint Length - { get => Accessor.GetUInt32("length"); set => Accessor.SetUInt32("length", value); } + public uint Length { get => Accessor.GetUInt32("length"); set => Accessor.SetUInt32("length", value); } - public Vector Direction - { get => Accessor.GetVector("direction"); set => Accessor.SetVector("direction", value); } + public Vector Direction { get => Accessor.GetVector("direction"); set => Accessor.SetVector("direction", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEWorldDecalImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEWorldDecalImpl.cs index b495f7ab8..53f62b660 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEWorldDecalImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTEWorldDecalImpl.cs @@ -1,28 +1,22 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTEWorldDecalImpl : NetMessage, CMsgTEWorldDecal { - public CMsgTEWorldDecalImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgTEWorldDecalImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public Vector Normal - { get => Accessor.GetVector("normal"); set => Accessor.SetVector("normal", value); } + public Vector Normal { get => Accessor.GetVector("normal"); set => Accessor.SetVector("normal", value); } - public uint Index - { get => Accessor.GetUInt32("index"); set => Accessor.SetUInt32("index", value); } + public uint Index { get => Accessor.GetUInt32("index"); set => Accessor.SetUInt32("index", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTransformImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTransformImpl.cs index 1490068a2..10a29d598 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTransformImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgTransformImpl.cs @@ -2,27 +2,23 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgTransformImpl : TypedProtobuf, CMsgTransform { - public CMsgTransformImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgTransformImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public Vector Position - { get => Accessor.GetVector("position"); set => Accessor.SetVector("position", value); } + public Vector Position { get => Accessor.GetVector("position"); set => Accessor.SetVector("position", value); } - public float Scale - { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } + public float Scale { get => Accessor.GetFloat("scale"); set => Accessor.SetFloat("scale", value); } - public CMsgQuaternion Orientation - { get => new CMsgQuaternionImpl(NativeNetMessages.GetNestedMessage(Address, "orientation"), false); } + public CMsgQuaternion Orientation { get => new CMsgQuaternionImpl(NativeNetMessages.GetNestedMessage(Address, "orientation"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgUpdateItemSchemaImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgUpdateItemSchemaImpl.cs index 3278bdcd1..0a8fa2457 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgUpdateItemSchemaImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgUpdateItemSchemaImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgUpdateItemSchemaImpl : TypedProtobuf, CMsgUpdateItemSchema { - public CMsgUpdateItemSchemaImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgUpdateItemSchemaImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public byte[] ItemsGame - { get => Accessor.GetBytes("items_game"); set => Accessor.SetBytes("items_game", value); } + public byte[] ItemsGame { get => Accessor.GetBytes("items_game"); set => Accessor.SetBytes("items_game", value); } - public uint ItemSchemaVersion - { get => Accessor.GetUInt32("item_schema_version"); set => Accessor.SetUInt32("item_schema_version", value); } + public uint ItemSchemaVersion { get => Accessor.GetUInt32("item_schema_version"); set => Accessor.SetUInt32("item_schema_version", value); } - public string ItemsGameUrl - { get => Accessor.GetString("items_game_url"); set => Accessor.SetString("items_game_url", value); } + public string ItemsGameUrl { get => Accessor.GetString("items_game_url"); set => Accessor.SetString("items_game_url", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgUseItemImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgUseItemImpl.cs index 1cc6b3a6b..6b686c139 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgUseItemImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgUseItemImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,28 +6,23 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgUseItemImpl : TypedProtobuf, CMsgUseItem { - public CMsgUseItemImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgUseItemImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong ItemId - { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } + public ulong ItemId { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } - public ulong TargetSteamId - { get => Accessor.GetUInt64("target_steam_id"); set => Accessor.SetUInt64("target_steam_id", value); } + public ulong TargetSteamId { get => Accessor.GetUInt64("target_steam_id"); set => Accessor.SetUInt64("target_steam_id", value); } - public IProtobufRepeatedFieldValueType GiftPotentialTargets - { get => new ProtobufRepeatedFieldValueType(Accessor, "gift__potential_targets"); } + public IProtobufRepeatedFieldValueType GiftPotentialTargets { get => new ProtobufRepeatedFieldValueType(Accessor, "gift__potential_targets"); } - public uint DuelClassLock - { get => Accessor.GetUInt32("duel__class_lock"); set => Accessor.SetUInt32("duel__class_lock", value); } + public uint DuelClassLock { get => Accessor.GetUInt32("duel__class_lock"); set => Accessor.SetUInt32("duel__class_lock", value); } - public ulong InitiatorSteamId - { get => Accessor.GetUInt64("initiator_steam_id"); set => Accessor.SetUInt64("initiator_steam_id", value); } + public ulong InitiatorSteamId { get => Accessor.GetUInt64("initiator_steam_id"); set => Accessor.SetUInt64("initiator_steam_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVDebugGameSessionIDEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVDebugGameSessionIDEventImpl.cs index 55cdf8fc0..d1d09dd3e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVDebugGameSessionIDEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVDebugGameSessionIDEventImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgVDebugGameSessionIDEventImpl : NetMessage, CMsgVDebugGameSessionIDEvent { - public CMsgVDebugGameSessionIDEventImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CMsgVDebugGameSessionIDEventImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Clientid - { get => Accessor.GetInt32("clientid"); set => Accessor.SetInt32("clientid", value); } + public int Clientid { get => Accessor.GetInt32("clientid"); set => Accessor.SetInt32("clientid", value); } - public string Gamesessionid - { get => Accessor.GetString("gamesessionid"); set => Accessor.SetString("gamesessionid", value); } + public string Gamesessionid { get => Accessor.GetString("gamesessionid"); set => Accessor.SetString("gamesessionid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVector2DImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVector2DImpl.cs index c938f7606..85ec20820 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVector2DImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVector2DImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgVector2DImpl : TypedProtobuf, CMsgVector2D { - public CMsgVector2DImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgVector2DImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVectorImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVectorImpl.cs index 8b5da9a8d..15f8da9db 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVectorImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVectorImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgVectorImpl : TypedProtobuf, CMsgVector { - public CMsgVectorImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgVectorImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public float Z - { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } + public float Z { get => Accessor.GetFloat("z"); set => Accessor.SetFloat("z", value); } - public float W - { get => Accessor.GetFloat("w"); set => Accessor.SetFloat("w", value); } + public float W { get => Accessor.GetFloat("w"); set => Accessor.SetFloat("w", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVoiceAudioImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVoiceAudioImpl.cs index b0c59ca72..9812f2e59 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVoiceAudioImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsgVoiceAudioImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,44 +6,35 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsgVoiceAudioImpl : TypedProtobuf, CMsgVoiceAudio { - public CMsgVoiceAudioImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsgVoiceAudioImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public VoiceDataFormat_t Format - { get => (VoiceDataFormat_t)Accessor.GetInt32("format"); set => Accessor.SetInt32("format", (int)value); } + public VoiceDataFormat_t Format { get => (VoiceDataFormat_t)Accessor.GetInt32("format"); set => Accessor.SetInt32("format", (int)value); } - public byte[] VoiceData - { get => Accessor.GetBytes("voice_data"); set => Accessor.SetBytes("voice_data", value); } + public byte[] VoiceData { get => Accessor.GetBytes("voice_data"); set => Accessor.SetBytes("voice_data", value); } - public int SequenceBytes - { get => Accessor.GetInt32("sequence_bytes"); set => Accessor.SetInt32("sequence_bytes", value); } + public int SequenceBytes { get => Accessor.GetInt32("sequence_bytes"); set => Accessor.SetInt32("sequence_bytes", value); } - public uint SectionNumber - { get => Accessor.GetUInt32("section_number"); set => Accessor.SetUInt32("section_number", value); } + public uint SectionNumber { get => Accessor.GetUInt32("section_number"); set => Accessor.SetUInt32("section_number", value); } - public uint SampleRate - { get => Accessor.GetUInt32("sample_rate"); set => Accessor.SetUInt32("sample_rate", value); } + public uint SampleRate { get => Accessor.GetUInt32("sample_rate"); set => Accessor.SetUInt32("sample_rate", value); } - public uint UncompressedSampleOffset - { get => Accessor.GetUInt32("uncompressed_sample_offset"); set => Accessor.SetUInt32("uncompressed_sample_offset", value); } + public uint UncompressedSampleOffset { get => Accessor.GetUInt32("uncompressed_sample_offset"); set => Accessor.SetUInt32("uncompressed_sample_offset", value); } - public uint NumPackets - { get => Accessor.GetUInt32("num_packets"); set => Accessor.SetUInt32("num_packets", value); } + public uint NumPackets { get => Accessor.GetUInt32("num_packets"); set => Accessor.SetUInt32("num_packets", value); } - public IProtobufRepeatedFieldValueType PacketOffsets - { get => new ProtobufRepeatedFieldValueType(Accessor, "packet_offsets"); } + public IProtobufRepeatedFieldValueType PacketOffsets { get => new ProtobufRepeatedFieldValueType(Accessor, "packet_offsets"); } - public float VoiceLevel - { get => Accessor.GetFloat("voice_level"); set => Accessor.SetFloat("voice_level", value); } + public float VoiceLevel { get => Accessor.GetFloat("voice_level"); set => Accessor.SetFloat("voice_level", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsg_CVarsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsg_CVarsImpl.cs index 1d43dba4b..a7fd7fee6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsg_CVarsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsg_CVarsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsg_CVarsImpl : TypedProtobuf, CMsg_CVars { - public CMsg_CVarsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsg_CVarsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Cvars - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "cvars"); } + public IProtobufRepeatedFieldSubMessageType Cvars { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "cvars"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsg_CVars_CVarImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsg_CVars_CVarImpl.cs index 0f5dd84c5..4c920dc2d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsg_CVars_CVarImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CMsg_CVars_CVarImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CMsg_CVars_CVarImpl : TypedProtobuf, CMsg_CVars_CVar { - public CMsg_CVars_CVarImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CMsg_CVars_CVarImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public string Value - { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } + public string Value { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_DebugOverlayImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_DebugOverlayImpl.cs index 9d448e74d..daadf3f55 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_DebugOverlayImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_DebugOverlayImpl.cs @@ -1,5 +1,3 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; @@ -9,40 +7,32 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CNETMsg_DebugOverlayImpl : NetMessage, CNETMsg_DebugOverlay { - public CNETMsg_DebugOverlayImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CNETMsg_DebugOverlayImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Etype - { get => Accessor.GetInt32("etype"); set => Accessor.SetInt32("etype", value); } + public int Etype { get => Accessor.GetInt32("etype"); set => Accessor.SetInt32("etype", value); } - public IProtobufRepeatedFieldValueType Vectors - { get => new ProtobufRepeatedFieldValueType(Accessor, "vectors"); } + public IProtobufRepeatedFieldValueType Vectors { get => new ProtobufRepeatedFieldValueType(Accessor, "vectors"); } - public IProtobufRepeatedFieldValueType Colors - { get => new ProtobufRepeatedFieldValueType(Accessor, "colors"); } + public IProtobufRepeatedFieldValueType Colors { get => new ProtobufRepeatedFieldValueType(Accessor, "colors"); } - public IProtobufRepeatedFieldValueType Dimensions - { get => new ProtobufRepeatedFieldValueType(Accessor, "dimensions"); } + public IProtobufRepeatedFieldValueType Dimensions { get => new ProtobufRepeatedFieldValueType(Accessor, "dimensions"); } - public IProtobufRepeatedFieldValueType Times - { get => new ProtobufRepeatedFieldValueType(Accessor, "times"); } + public IProtobufRepeatedFieldValueType Times { get => new ProtobufRepeatedFieldValueType(Accessor, "times"); } - public IProtobufRepeatedFieldValueType Bools - { get => new ProtobufRepeatedFieldValueType(Accessor, "bools"); } + public IProtobufRepeatedFieldValueType Bools { get => new ProtobufRepeatedFieldValueType(Accessor, "bools"); } - public IProtobufRepeatedFieldValueType Uint64s - { get => new ProtobufRepeatedFieldValueType(Accessor, "uint64s"); } + public IProtobufRepeatedFieldValueType Uint64s { get => new ProtobufRepeatedFieldValueType(Accessor, "uint64s"); } - public IProtobufRepeatedFieldValueType Strings - { get => new ProtobufRepeatedFieldValueType(Accessor, "strings"); } + public IProtobufRepeatedFieldValueType Strings { get => new ProtobufRepeatedFieldValueType(Accessor, "strings"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_NOPImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_NOPImpl.cs index b8138c775..cc199c7ca 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_NOPImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_NOPImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CNETMsg_NOPImpl : NetMessage, CNETMsg_NOP { - public CNETMsg_NOPImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CNETMsg_NOPImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SetConVarImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SetConVarImpl.cs index bdf732ca5..8b19ffebd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SetConVarImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SetConVarImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CNETMsg_SetConVarImpl : NetMessage, CNETMsg_SetConVar { - public CNETMsg_SetConVarImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CNETMsg_SetConVarImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CMsg_CVars Convars - { get => new CMsg_CVarsImpl(NativeNetMessages.GetNestedMessage(Address, "convars"), false); } + public CMsg_CVars Convars { get => new CMsg_CVarsImpl(NativeNetMessages.GetNestedMessage(Address, "convars"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SignonStateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SignonStateImpl.cs index dcbe95af3..b968559c1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SignonStateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SignonStateImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,32 +6,26 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CNETMsg_SignonStateImpl : NetMessage, CNETMsg_SignonState { - public CNETMsg_SignonStateImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CNETMsg_SignonStateImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public SignonState_t SignonState - { get => (SignonState_t)Accessor.GetInt32("signon_state"); set => Accessor.SetInt32("signon_state", (int)value); } + public SignonState_t SignonState { get => (SignonState_t)Accessor.GetInt32("signon_state"); set => Accessor.SetInt32("signon_state", (int)value); } - public uint SpawnCount - { get => Accessor.GetUInt32("spawn_count"); set => Accessor.SetUInt32("spawn_count", value); } + public uint SpawnCount { get => Accessor.GetUInt32("spawn_count"); set => Accessor.SetUInt32("spawn_count", value); } - public uint NumServerPlayers - { get => Accessor.GetUInt32("num_server_players"); set => Accessor.SetUInt32("num_server_players", value); } + public uint NumServerPlayers { get => Accessor.GetUInt32("num_server_players"); set => Accessor.SetUInt32("num_server_players", value); } - public IProtobufRepeatedFieldValueType PlayersNetworkids - { get => new ProtobufRepeatedFieldValueType(Accessor, "players_networkids"); } + public IProtobufRepeatedFieldValueType PlayersNetworkids { get => new ProtobufRepeatedFieldValueType(Accessor, "players_networkids"); } - public string MapName - { get => Accessor.GetString("map_name"); set => Accessor.SetString("map_name", value); } + public string MapName { get => Accessor.GetString("map_name"); set => Accessor.SetString("map_name", value); } - public string Addons - { get => Accessor.GetString("addons"); set => Accessor.SetString("addons", value); } + public string Addons { get => Accessor.GetString("addons"); set => Accessor.SetString("addons", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_LoadCompletedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_LoadCompletedImpl.cs index 812eb3f40..8cf443578 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_LoadCompletedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_LoadCompletedImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CNETMsg_SpawnGroup_LoadCompletedImpl : NetMessage, CNETMsg_SpawnGroup_LoadCompleted { - public CNETMsg_SpawnGroup_LoadCompletedImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CNETMsg_SpawnGroup_LoadCompletedImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Spawngrouphandle - { get => Accessor.GetUInt32("spawngrouphandle"); set => Accessor.SetUInt32("spawngrouphandle", value); } + public uint Spawngrouphandle { get => Accessor.GetUInt32("spawngrouphandle"); set => Accessor.SetUInt32("spawngrouphandle", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_LoadImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_LoadImpl.cs index 4f9a470d9..997a4855e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_LoadImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_LoadImpl.cs @@ -1,96 +1,73 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CNETMsg_SpawnGroup_LoadImpl : NetMessage, CNETMsg_SpawnGroup_Load { - public CNETMsg_SpawnGroup_LoadImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CNETMsg_SpawnGroup_LoadImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Worldname - { get => Accessor.GetString("worldname"); set => Accessor.SetString("worldname", value); } + public string Worldname { get => Accessor.GetString("worldname"); set => Accessor.SetString("worldname", value); } - public string Entitylumpname - { get => Accessor.GetString("entitylumpname"); set => Accessor.SetString("entitylumpname", value); } + public string Entitylumpname { get => Accessor.GetString("entitylumpname"); set => Accessor.SetString("entitylumpname", value); } - public string Entityfiltername - { get => Accessor.GetString("entityfiltername"); set => Accessor.SetString("entityfiltername", value); } + public string Entityfiltername { get => Accessor.GetString("entityfiltername"); set => Accessor.SetString("entityfiltername", value); } - public uint Spawngrouphandle - { get => Accessor.GetUInt32("spawngrouphandle"); set => Accessor.SetUInt32("spawngrouphandle", value); } + public uint Spawngrouphandle { get => Accessor.GetUInt32("spawngrouphandle"); set => Accessor.SetUInt32("spawngrouphandle", value); } - public uint Spawngroupownerhandle - { get => Accessor.GetUInt32("spawngroupownerhandle"); set => Accessor.SetUInt32("spawngroupownerhandle", value); } + public uint Spawngroupownerhandle { get => Accessor.GetUInt32("spawngroupownerhandle"); set => Accessor.SetUInt32("spawngroupownerhandle", value); } - public Vector WorldOffsetPos - { get => Accessor.GetVector("world_offset_pos"); set => Accessor.SetVector("world_offset_pos", value); } + public Vector WorldOffsetPos { get => Accessor.GetVector("world_offset_pos"); set => Accessor.SetVector("world_offset_pos", value); } - public QAngle WorldOffsetAngle - { get => Accessor.GetQAngle("world_offset_angle"); set => Accessor.SetQAngle("world_offset_angle", value); } + public QAngle WorldOffsetAngle { get => Accessor.GetQAngle("world_offset_angle"); set => Accessor.SetQAngle("world_offset_angle", value); } - public byte[] Spawngroupmanifest - { get => Accessor.GetBytes("spawngroupmanifest"); set => Accessor.SetBytes("spawngroupmanifest", value); } + public byte[] Spawngroupmanifest { get => Accessor.GetBytes("spawngroupmanifest"); set => Accessor.SetBytes("spawngroupmanifest", value); } - public uint Flags - { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } + public uint Flags { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } - public int Tickcount - { get => Accessor.GetInt32("tickcount"); set => Accessor.SetInt32("tickcount", value); } + public int Tickcount { get => Accessor.GetInt32("tickcount"); set => Accessor.SetInt32("tickcount", value); } - public bool Manifestincomplete - { get => Accessor.GetBool("manifestincomplete"); set => Accessor.SetBool("manifestincomplete", value); } + public bool Manifestincomplete { get => Accessor.GetBool("manifestincomplete"); set => Accessor.SetBool("manifestincomplete", value); } - public string Localnamefixup - { get => Accessor.GetString("localnamefixup"); set => Accessor.SetString("localnamefixup", value); } + public string Localnamefixup { get => Accessor.GetString("localnamefixup"); set => Accessor.SetString("localnamefixup", value); } - public string Parentnamefixup - { get => Accessor.GetString("parentnamefixup"); set => Accessor.SetString("parentnamefixup", value); } + public string Parentnamefixup { get => Accessor.GetString("parentnamefixup"); set => Accessor.SetString("parentnamefixup", value); } - public int Manifestloadpriority - { get => Accessor.GetInt32("manifestloadpriority"); set => Accessor.SetInt32("manifestloadpriority", value); } + public int Manifestloadpriority { get => Accessor.GetInt32("manifestloadpriority"); set => Accessor.SetInt32("manifestloadpriority", value); } - public uint Worldgroupid - { get => Accessor.GetUInt32("worldgroupid"); set => Accessor.SetUInt32("worldgroupid", value); } + public uint Worldgroupid { get => Accessor.GetUInt32("worldgroupid"); set => Accessor.SetUInt32("worldgroupid", value); } - public uint Creationsequence - { get => Accessor.GetUInt32("creationsequence"); set => Accessor.SetUInt32("creationsequence", value); } + public uint Creationsequence { get => Accessor.GetUInt32("creationsequence"); set => Accessor.SetUInt32("creationsequence", value); } - public string Savegamefilename - { get => Accessor.GetString("savegamefilename"); set => Accessor.SetString("savegamefilename", value); } + public string Savegamefilename { get => Accessor.GetString("savegamefilename"); set => Accessor.SetString("savegamefilename", value); } - public uint Spawngroupparenthandle - { get => Accessor.GetUInt32("spawngroupparenthandle"); set => Accessor.SetUInt32("spawngroupparenthandle", value); } + public uint Spawngroupparenthandle { get => Accessor.GetUInt32("spawngroupparenthandle"); set => Accessor.SetUInt32("spawngroupparenthandle", value); } - public bool Leveltransition - { get => Accessor.GetBool("leveltransition"); set => Accessor.SetBool("leveltransition", value); } + public bool Leveltransition { get => Accessor.GetBool("leveltransition"); set => Accessor.SetBool("leveltransition", value); } - public string Worldgroupname - { get => Accessor.GetString("worldgroupname"); set => Accessor.SetString("worldgroupname", value); } + public string Worldgroupname { get => Accessor.GetString("worldgroupname"); set => Accessor.SetString("worldgroupname", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_ManifestUpdateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_ManifestUpdateImpl.cs index a003108b4..031899854 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_ManifestUpdateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_ManifestUpdateImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CNETMsg_SpawnGroup_ManifestUpdateImpl : NetMessage, CNETMsg_SpawnGroup_ManifestUpdate { - public CNETMsg_SpawnGroup_ManifestUpdateImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CNETMsg_SpawnGroup_ManifestUpdateImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Spawngrouphandle - { get => Accessor.GetUInt32("spawngrouphandle"); set => Accessor.SetUInt32("spawngrouphandle", value); } + public uint Spawngrouphandle { get => Accessor.GetUInt32("spawngrouphandle"); set => Accessor.SetUInt32("spawngrouphandle", value); } - public byte[] Spawngroupmanifest - { get => Accessor.GetBytes("spawngroupmanifest"); set => Accessor.SetBytes("spawngroupmanifest", value); } + public byte[] Spawngroupmanifest { get => Accessor.GetBytes("spawngroupmanifest"); set => Accessor.SetBytes("spawngroupmanifest", value); } - public bool Manifestincomplete - { get => Accessor.GetBool("manifestincomplete"); set => Accessor.SetBool("manifestincomplete", value); } + public bool Manifestincomplete { get => Accessor.GetBool("manifestincomplete"); set => Accessor.SetBool("manifestincomplete", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_SetCreationTickImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_SetCreationTickImpl.cs index f883b852d..5aca011fe 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_SetCreationTickImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_SetCreationTickImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CNETMsg_SpawnGroup_SetCreationTickImpl : NetMessage, CNETMsg_SpawnGroup_SetCreationTick { - public CNETMsg_SpawnGroup_SetCreationTickImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CNETMsg_SpawnGroup_SetCreationTickImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Spawngrouphandle - { get => Accessor.GetUInt32("spawngrouphandle"); set => Accessor.SetUInt32("spawngrouphandle", value); } + public uint Spawngrouphandle { get => Accessor.GetUInt32("spawngrouphandle"); set => Accessor.SetUInt32("spawngrouphandle", value); } - public int Tickcount - { get => Accessor.GetInt32("tickcount"); set => Accessor.SetInt32("tickcount", value); } + public int Tickcount { get => Accessor.GetInt32("tickcount"); set => Accessor.SetInt32("tickcount", value); } - public uint Creationsequence - { get => Accessor.GetUInt32("creationsequence"); set => Accessor.SetUInt32("creationsequence", value); } + public uint Creationsequence { get => Accessor.GetUInt32("creationsequence"); set => Accessor.SetUInt32("creationsequence", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_UnloadImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_UnloadImpl.cs index eee00c994..d843047e4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_UnloadImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SpawnGroup_UnloadImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CNETMsg_SpawnGroup_UnloadImpl : NetMessage, CNETMsg_SpawnGroup_Unload { - public CNETMsg_SpawnGroup_UnloadImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CNETMsg_SpawnGroup_UnloadImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Spawngrouphandle - { get => Accessor.GetUInt32("spawngrouphandle"); set => Accessor.SetUInt32("spawngrouphandle", value); } + public uint Spawngrouphandle { get => Accessor.GetUInt32("spawngrouphandle"); set => Accessor.SetUInt32("spawngrouphandle", value); } - public uint Flags - { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } + public uint Flags { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } - public int Tickcount - { get => Accessor.GetInt32("tickcount"); set => Accessor.SetInt32("tickcount", value); } + public int Tickcount { get => Accessor.GetInt32("tickcount"); set => Accessor.SetInt32("tickcount", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SplitScreenUserImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SplitScreenUserImpl.cs index e0c40a3ef..102cce15b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SplitScreenUserImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_SplitScreenUserImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CNETMsg_SplitScreenUserImpl : NetMessage, CNETMsg_SplitScreenUser { - public CNETMsg_SplitScreenUserImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CNETMsg_SplitScreenUserImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Slot - { get => Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } + public int Slot { get => Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_StringCmdImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_StringCmdImpl.cs index de51e7afa..6d97be1f3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_StringCmdImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_StringCmdImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CNETMsg_StringCmdImpl : NetMessage, CNETMsg_StringCmd { - public CNETMsg_StringCmdImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CNETMsg_StringCmdImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Command - { get => Accessor.GetString("command"); set => Accessor.SetString("command", value); } + public string Command { get => Accessor.GetString("command"); set => Accessor.SetString("command", value); } - public uint PredictionSync - { get => Accessor.GetUInt32("prediction_sync"); set => Accessor.SetUInt32("prediction_sync", value); } + public uint PredictionSync { get => Accessor.GetUInt32("prediction_sync"); set => Accessor.SetUInt32("prediction_sync", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_TickImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_TickImpl.cs index 0ff873831..386d60028 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_TickImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CNETMsg_TickImpl.cs @@ -1,56 +1,42 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CNETMsg_TickImpl : NetMessage, CNETMsg_Tick { - public CNETMsg_TickImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CNETMsg_TickImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Tick - { get => Accessor.GetUInt32("tick"); set => Accessor.SetUInt32("tick", value); } + public uint Tick { get => Accessor.GetUInt32("tick"); set => Accessor.SetUInt32("tick", value); } - public uint HostComputationtime - { get => Accessor.GetUInt32("host_computationtime"); set => Accessor.SetUInt32("host_computationtime", value); } + public uint HostComputationtime { get => Accessor.GetUInt32("host_computationtime"); set => Accessor.SetUInt32("host_computationtime", value); } - public uint HostComputationtimeStdDeviation - { get => Accessor.GetUInt32("host_computationtime_std_deviation"); set => Accessor.SetUInt32("host_computationtime_std_deviation", value); } + public uint HostComputationtimeStdDeviation { get => Accessor.GetUInt32("host_computationtime_std_deviation"); set => Accessor.SetUInt32("host_computationtime_std_deviation", value); } - public uint LegacyHostLoss - { get => Accessor.GetUInt32("legacy_host_loss"); set => Accessor.SetUInt32("legacy_host_loss", value); } + public uint LegacyHostLoss { get => Accessor.GetUInt32("legacy_host_loss"); set => Accessor.SetUInt32("legacy_host_loss", value); } - public uint HostUnfilteredFrametime - { get => Accessor.GetUInt32("host_unfiltered_frametime"); set => Accessor.SetUInt32("host_unfiltered_frametime", value); } + public uint HostUnfilteredFrametime { get => Accessor.GetUInt32("host_unfiltered_frametime"); set => Accessor.SetUInt32("host_unfiltered_frametime", value); } - public uint HltvReplayFlags - { get => Accessor.GetUInt32("hltv_replay_flags"); set => Accessor.SetUInt32("hltv_replay_flags", value); } + public uint HltvReplayFlags { get => Accessor.GetUInt32("hltv_replay_flags"); set => Accessor.SetUInt32("hltv_replay_flags", value); } - public uint ExpectedLongTick - { get => Accessor.GetUInt32("expected_long_tick"); set => Accessor.SetUInt32("expected_long_tick", value); } + public uint ExpectedLongTick { get => Accessor.GetUInt32("expected_long_tick"); set => Accessor.SetUInt32("expected_long_tick", value); } - public string ExpectedLongTickReason - { get => Accessor.GetString("expected_long_tick_reason"); set => Accessor.SetString("expected_long_tick_reason", value); } + public string ExpectedLongTickReason { get => Accessor.GetString("expected_long_tick_reason"); set => Accessor.SetString("expected_long_tick_reason", value); } - public uint HostFrameDroppedPctX10 - { get => Accessor.GetUInt32("host_frame_dropped_pct_x10"); set => Accessor.SetUInt32("host_frame_dropped_pct_x10", value); } + public uint HostFrameDroppedPctX10 { get => Accessor.GetUInt32("host_frame_dropped_pct_x10"); set => Accessor.SetUInt32("host_frame_dropped_pct_x10", value); } - public uint HostFrameIrregularArrivalPctX10 - { get => Accessor.GetUInt32("host_frame_irregular_arrival_pct_x10"); set => Accessor.SetUInt32("host_frame_irregular_arrival_pct_x10", value); } + public uint HostFrameIrregularArrivalPctX10 { get => Accessor.GetUInt32("host_frame_irregular_arrival_pct_x10"); set => Accessor.SetUInt32("host_frame_irregular_arrival_pct_x10", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_PingImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_PingImpl.cs index 002aedc84..e9714cba6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_PingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_PingImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CP2P_PingImpl : TypedProtobuf, CP2P_Ping { - public CP2P_PingImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CP2P_PingImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong SendTime - { get => Accessor.GetUInt64("send_time"); set => Accessor.SetUInt64("send_time", value); } + public ulong SendTime { get => Accessor.GetUInt64("send_time"); set => Accessor.SetUInt64("send_time", value); } - public bool IsReply - { get => Accessor.GetBool("is_reply"); set => Accessor.SetBool("is_reply", value); } + public bool IsReply { get => Accessor.GetBool("is_reply"); set => Accessor.SetBool("is_reply", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_TextMessageImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_TextMessageImpl.cs index 77fff381c..a7be3756b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_TextMessageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_TextMessageImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CP2P_TextMessageImpl : TypedProtobuf, CP2P_TextMessage { - public CP2P_TextMessageImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CP2P_TextMessageImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public byte[] Text - { get => Accessor.GetBytes("text"); set => Accessor.SetBytes("text", value); } + public byte[] Text { get => Accessor.GetBytes("text"); set => Accessor.SetBytes("text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_VRAvatarPositionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_VRAvatarPositionImpl.cs index 7488904e8..c562a3cfc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_VRAvatarPositionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_VRAvatarPositionImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CP2P_VRAvatarPositionImpl : TypedProtobuf, CP2P_VRAvatarPosition { - public CP2P_VRAvatarPositionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CP2P_VRAvatarPositionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType BodyParts - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "body_parts"); } + public IProtobufRepeatedFieldSubMessageType BodyParts { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "body_parts"); } - public int HatId - { get => Accessor.GetInt32("hat_id"); set => Accessor.SetInt32("hat_id", value); } + public int HatId { get => Accessor.GetInt32("hat_id"); set => Accessor.SetInt32("hat_id", value); } - public int SceneId - { get => Accessor.GetInt32("scene_id"); set => Accessor.SetInt32("scene_id", value); } + public int SceneId { get => Accessor.GetInt32("scene_id"); set => Accessor.SetInt32("scene_id", value); } - public int WorldScale - { get => Accessor.GetInt32("world_scale"); set => Accessor.SetInt32("world_scale", value); } + public int WorldScale { get => Accessor.GetInt32("world_scale"); set => Accessor.SetInt32("world_scale", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_VRAvatarPosition_COrientationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_VRAvatarPosition_COrientationImpl.cs index 27e04301b..3f4ac53f3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_VRAvatarPosition_COrientationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_VRAvatarPosition_COrientationImpl.cs @@ -1,24 +1,19 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CP2P_VRAvatarPosition_COrientationImpl : TypedProtobuf, CP2P_VRAvatarPosition_COrientation { - public CP2P_VRAvatarPosition_COrientationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CP2P_VRAvatarPosition_COrientationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public Vector Pos - { get => Accessor.GetVector("pos"); set => Accessor.SetVector("pos", value); } + public Vector Pos { get => Accessor.GetVector("pos"); set => Accessor.SetVector("pos", value); } - public QAngle Ang - { get => Accessor.GetQAngle("ang"); set => Accessor.SetQAngle("ang", value); } + public QAngle Ang { get => Accessor.GetQAngle("ang"); set => Accessor.SetQAngle("ang", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_VoiceImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_VoiceImpl.cs index 836d472a1..02aebb2f8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_VoiceImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_VoiceImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CP2P_VoiceImpl : TypedProtobuf, CP2P_Voice { - public CP2P_VoiceImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CP2P_VoiceImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CMsgVoiceAudio Audio - { get => new CMsgVoiceAudioImpl(NativeNetMessages.GetNestedMessage(Address, "audio"), false); } + public CMsgVoiceAudio Audio { get => new CMsgVoiceAudioImpl(NativeNetMessages.GetNestedMessage(Address, "audio"), false); } - public uint BroadcastGroup - { get => Accessor.GetUInt32("broadcast_group"); set => Accessor.SetUInt32("broadcast_group", value); } + public uint BroadcastGroup { get => Accessor.GetUInt32("broadcast_group"); set => Accessor.SetUInt32("broadcast_group", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_WatchSynchronizationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_WatchSynchronizationImpl.cs index 09db04281..d9dc46f1e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_WatchSynchronizationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CP2P_WatchSynchronizationImpl.cs @@ -1,48 +1,36 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CP2P_WatchSynchronizationImpl : TypedProtobuf, CP2P_WatchSynchronization { - public CP2P_WatchSynchronizationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CP2P_WatchSynchronizationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int DemoTick - { get => Accessor.GetInt32("demo_tick"); set => Accessor.SetInt32("demo_tick", value); } + public int DemoTick { get => Accessor.GetInt32("demo_tick"); set => Accessor.SetInt32("demo_tick", value); } - public bool Paused - { get => Accessor.GetBool("paused"); set => Accessor.SetBool("paused", value); } + public bool Paused { get => Accessor.GetBool("paused"); set => Accessor.SetBool("paused", value); } - public ulong TvListenVoiceIndices - { get => Accessor.GetUInt64("tv_listen_voice_indices"); set => Accessor.SetUInt64("tv_listen_voice_indices", value); } + public ulong TvListenVoiceIndices { get => Accessor.GetUInt64("tv_listen_voice_indices"); set => Accessor.SetUInt64("tv_listen_voice_indices", value); } - public int DotaSpectatorMode - { get => Accessor.GetInt32("dota_spectator_mode"); set => Accessor.SetInt32("dota_spectator_mode", value); } + public int DotaSpectatorMode { get => Accessor.GetInt32("dota_spectator_mode"); set => Accessor.SetInt32("dota_spectator_mode", value); } - public bool DotaSpectatorWatchingBroadcaster - { get => Accessor.GetBool("dota_spectator_watching_broadcaster"); set => Accessor.SetBool("dota_spectator_watching_broadcaster", value); } + public bool DotaSpectatorWatchingBroadcaster { get => Accessor.GetBool("dota_spectator_watching_broadcaster"); set => Accessor.SetBool("dota_spectator_watching_broadcaster", value); } - public int DotaSpectatorHeroIndex - { get => Accessor.GetInt32("dota_spectator_hero_index"); set => Accessor.SetInt32("dota_spectator_hero_index", value); } + public int DotaSpectatorHeroIndex { get => Accessor.GetInt32("dota_spectator_hero_index"); set => Accessor.SetInt32("dota_spectator_hero_index", value); } - public int DotaSpectatorAutospeed - { get => Accessor.GetInt32("dota_spectator_autospeed"); set => Accessor.SetInt32("dota_spectator_autospeed", value); } + public int DotaSpectatorAutospeed { get => Accessor.GetInt32("dota_spectator_autospeed"); set => Accessor.SetInt32("dota_spectator_autospeed", value); } - public int DotaReplaySpeed - { get => Accessor.GetInt32("dota_replay_speed"); set => Accessor.SetInt32("dota_replay_speed", value); } + public int DotaReplaySpeed { get => Accessor.GetInt32("dota_replay_speed"); set => Accessor.SetInt32("dota_replay_speed", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPreMatchInfoDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPreMatchInfoDataImpl.cs index 2ee76f91f..f9cd8c8eb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPreMatchInfoDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPreMatchInfoDataImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +8,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CPreMatchInfoDataImpl : TypedProtobuf, CPreMatchInfoData { - public CPreMatchInfoDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CPreMatchInfoDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int PredictionsPct - { get => Accessor.GetInt32("predictions_pct"); set => Accessor.SetInt32("predictions_pct", value); } + public int PredictionsPct { get => Accessor.GetInt32("predictions_pct"); set => Accessor.SetInt32("predictions_pct", value); } - public CDataGCCStrike15_v2_TournamentMatchDraft Draft - { get => new CDataGCCStrike15_v2_TournamentMatchDraftImpl(NativeNetMessages.GetNestedMessage(Address, "draft"), false); } + public CDataGCCStrike15_v2_TournamentMatchDraft Draft { get => new CDataGCCStrike15_v2_TournamentMatchDraftImpl(NativeNetMessages.GetNestedMessage(Address, "draft"), false); } - public IProtobufRepeatedFieldSubMessageType Stats - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "stats"); } + public IProtobufRepeatedFieldSubMessageType Stats { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "stats"); } - public IProtobufRepeatedFieldValueType Wins - { get => new ProtobufRepeatedFieldValueType(Accessor, "wins"); } + public IProtobufRepeatedFieldValueType Wins { get => new ProtobufRepeatedFieldValueType(Accessor, "wins"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPreMatchInfoData_TeamStatsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPreMatchInfoData_TeamStatsImpl.cs index 0ffb6e24d..3db8554e4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPreMatchInfoData_TeamStatsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPreMatchInfoData_TeamStatsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CPreMatchInfoData_TeamStatsImpl : TypedProtobuf, CPreMatchInfoData_TeamStats { - public CPreMatchInfoData_TeamStatsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CPreMatchInfoData_TeamStatsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int MatchInfoIdxtxt - { get => Accessor.GetInt32("match_info_idxtxt"); set => Accessor.SetInt32("match_info_idxtxt", value); } + public int MatchInfoIdxtxt { get => Accessor.GetInt32("match_info_idxtxt"); set => Accessor.SetInt32("match_info_idxtxt", value); } - public string MatchInfoTxt - { get => Accessor.GetString("match_info_txt"); set => Accessor.SetString("match_info_txt", value); } + public string MatchInfoTxt { get => Accessor.GetString("match_info_txt"); set => Accessor.SetString("match_info_txt", value); } - public IProtobufRepeatedFieldValueType MatchInfoTeams - { get => new ProtobufRepeatedFieldValueType(Accessor, "match_info_teams"); } + public IProtobufRepeatedFieldValueType MatchInfoTeams { get => new ProtobufRepeatedFieldValueType(Accessor, "match_info_teams"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPredictionEvent_DiagnosticImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPredictionEvent_DiagnosticImpl.cs index 3bb868802..7ff2339d8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPredictionEvent_DiagnosticImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPredictionEvent_DiagnosticImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CPredictionEvent_DiagnosticImpl : TypedProtobuf, CPredictionEvent_Diagnostic { - public CPredictionEvent_DiagnosticImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CPredictionEvent_DiagnosticImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Id - { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } + public uint Id { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } - public uint RequestedSync - { get => Accessor.GetUInt32("requested_sync"); set => Accessor.SetUInt32("requested_sync", value); } + public uint RequestedSync { get => Accessor.GetUInt32("requested_sync"); set => Accessor.SetUInt32("requested_sync", value); } - public uint RequestedPlayerIndex - { get => Accessor.GetUInt32("requested_player_index"); set => Accessor.SetUInt32("requested_player_index", value); } + public uint RequestedPlayerIndex { get => Accessor.GetUInt32("requested_player_index"); set => Accessor.SetUInt32("requested_player_index", value); } - public IProtobufRepeatedFieldValueType ExecutionSync - { get => new ProtobufRepeatedFieldValueType(Accessor, "execution_sync"); } + public IProtobufRepeatedFieldValueType ExecutionSync { get => new ProtobufRepeatedFieldValueType(Accessor, "execution_sync"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPredictionEvent_StringCommandImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPredictionEvent_StringCommandImpl.cs index 7b2ad9ea3..0046ae7d1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPredictionEvent_StringCommandImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPredictionEvent_StringCommandImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CPredictionEvent_StringCommandImpl : TypedProtobuf, CPredictionEvent_StringCommand { - public CPredictionEvent_StringCommandImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CPredictionEvent_StringCommandImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Command - { get => Accessor.GetString("command"); set => Accessor.SetString("command", value); } + public string Command { get => Accessor.GetString("command"); set => Accessor.SetString("command", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPredictionEvent_TeleportImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPredictionEvent_TeleportImpl.cs index 2c717e4b3..a88e0b116 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPredictionEvent_TeleportImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CPredictionEvent_TeleportImpl.cs @@ -1,28 +1,22 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CPredictionEvent_TeleportImpl : TypedProtobuf, CPredictionEvent_Teleport { - public CPredictionEvent_TeleportImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CPredictionEvent_TeleportImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } - public QAngle Angles - { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } + public QAngle Angles { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } - public float DropToGroundRange - { get => Accessor.GetFloat("drop_to_ground_range"); set => Accessor.SetFloat("drop_to_ground_range", value); } + public float DropToGroundRange { get => Accessor.GetFloat("drop_to_ground_range"); set => Accessor.SetFloat("drop_to_ground_range", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_RequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_RequestImpl.cs index de773403b..9fc68808f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_RequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_RequestImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CProductInfo_SetRichPresenceLocalization_RequestImpl : TypedProtobuf, CProductInfo_SetRichPresenceLocalization_Request { - public CProductInfo_SetRichPresenceLocalization_RequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CProductInfo_SetRichPresenceLocalization_RequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } - public IProtobufRepeatedFieldSubMessageType Languages - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "languages"); } + public IProtobufRepeatedFieldSubMessageType Languages { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "languages"); } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_Request_LanguageSectionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_Request_LanguageSectionImpl.cs index ca62f8e62..0eecfab1a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_Request_LanguageSectionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_Request_LanguageSectionImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CProductInfo_SetRichPresenceLocalization_Request_LanguageSectionImpl : TypedProtobuf, CProductInfo_SetRichPresenceLocalization_Request_LanguageSection { - public CProductInfo_SetRichPresenceLocalization_Request_LanguageSectionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CProductInfo_SetRichPresenceLocalization_Request_LanguageSectionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Language - { get => Accessor.GetString("language"); set => Accessor.SetString("language", value); } + public string Language { get => Accessor.GetString("language"); set => Accessor.SetString("language", value); } - public IProtobufRepeatedFieldSubMessageType Tokens - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "tokens"); } + public IProtobufRepeatedFieldSubMessageType Tokens { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "tokens"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_Request_TokenImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_Request_TokenImpl.cs index f0c633b3f..18ec05403 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_Request_TokenImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_Request_TokenImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CProductInfo_SetRichPresenceLocalization_Request_TokenImpl : TypedProtobuf, CProductInfo_SetRichPresenceLocalization_Request_Token { - public CProductInfo_SetRichPresenceLocalization_Request_TokenImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CProductInfo_SetRichPresenceLocalization_Request_TokenImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Token - { get => Accessor.GetString("token"); set => Accessor.SetString("token", value); } + public string Token { get => Accessor.GetString("token"); set => Accessor.SetString("token", value); } - public string Value - { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } + public string Value { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_ResponseImpl.cs index 6206b4af2..0ed09ced2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CProductInfo_SetRichPresenceLocalization_ResponseImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CProductInfo_SetRichPresenceLocalization_ResponseImpl : TypedProtobuf, CProductInfo_SetRichPresenceLocalization_Response { - public CProductInfo_SetRichPresenceLocalization_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CProductInfo_SetRichPresenceLocalization_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CQuest_PublisherAddCommunityItemsToPlayer_RequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CQuest_PublisherAddCommunityItemsToPlayer_RequestImpl.cs index 21b096469..8be82d66f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CQuest_PublisherAddCommunityItemsToPlayer_RequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CQuest_PublisherAddCommunityItemsToPlayer_RequestImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,36 +6,29 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CQuest_PublisherAddCommunityItemsToPlayer_RequestImpl : TypedProtobuf, CQuest_PublisherAddCommunityItemsToPlayer_Request { - public CQuest_PublisherAddCommunityItemsToPlayer_RequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CQuest_PublisherAddCommunityItemsToPlayer_RequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } - public uint MatchItemType - { get => Accessor.GetUInt32("match_item_type"); set => Accessor.SetUInt32("match_item_type", value); } + public uint MatchItemType { get => Accessor.GetUInt32("match_item_type"); set => Accessor.SetUInt32("match_item_type", value); } - public uint MatchItemClass - { get => Accessor.GetUInt32("match_item_class"); set => Accessor.SetUInt32("match_item_class", value); } + public uint MatchItemClass { get => Accessor.GetUInt32("match_item_class"); set => Accessor.SetUInt32("match_item_class", value); } - public string PrefixItemName - { get => Accessor.GetString("prefix_item_name"); set => Accessor.SetString("prefix_item_name", value); } + public string PrefixItemName { get => Accessor.GetString("prefix_item_name"); set => Accessor.SetString("prefix_item_name", value); } - public IProtobufRepeatedFieldSubMessageType Attributes - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "attributes"); } + public IProtobufRepeatedFieldSubMessageType Attributes { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "attributes"); } - public string Note - { get => Accessor.GetString("note"); set => Accessor.SetString("note", value); } + public string Note { get => Accessor.GetString("note"); set => Accessor.SetString("note", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CQuest_PublisherAddCommunityItemsToPlayer_Request_AttributeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CQuest_PublisherAddCommunityItemsToPlayer_Request_AttributeImpl.cs index 470f90f27..2f1a78180 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CQuest_PublisherAddCommunityItemsToPlayer_Request_AttributeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CQuest_PublisherAddCommunityItemsToPlayer_Request_AttributeImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CQuest_PublisherAddCommunityItemsToPlayer_Request_AttributeImpl : TypedProtobuf, CQuest_PublisherAddCommunityItemsToPlayer_Request_Attribute { - public CQuest_PublisherAddCommunityItemsToPlayer_Request_AttributeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CQuest_PublisherAddCommunityItemsToPlayer_Request_AttributeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Attribute - { get => Accessor.GetUInt32("attribute"); set => Accessor.SetUInt32("attribute", value); } + public uint Attribute { get => Accessor.GetUInt32("attribute"); set => Accessor.SetUInt32("attribute", value); } - public ulong Value - { get => Accessor.GetUInt64("value"); set => Accessor.SetUInt64("value", value); } + public ulong Value { get => Accessor.GetUInt64("value"); set => Accessor.SetUInt64("value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CQuest_PublisherAddCommunityItemsToPlayer_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CQuest_PublisherAddCommunityItemsToPlayer_ResponseImpl.cs index f4bb4c62c..51198bc8a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CQuest_PublisherAddCommunityItemsToPlayer_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CQuest_PublisherAddCommunityItemsToPlayer_ResponseImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CQuest_PublisherAddCommunityItemsToPlayer_ResponseImpl : TypedProtobuf, CQuest_PublisherAddCommunityItemsToPlayer_Response { - public CQuest_PublisherAddCommunityItemsToPlayer_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CQuest_PublisherAddCommunityItemsToPlayer_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ItemsMatched - { get => Accessor.GetUInt32("items_matched"); set => Accessor.SetUInt32("items_matched", value); } + public uint ItemsMatched { get => Accessor.GetUInt32("items_matched"); set => Accessor.SetUInt32("items_matched", value); } - public uint ItemsGranted - { get => Accessor.GetUInt32("items_granted"); set => Accessor.SetUInt32("items_granted", value); } + public uint ItemsGranted { get => Accessor.GetUInt32("items_granted"); set => Accessor.SetUInt32("items_granted", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOInputHistoryEntryPBImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOInputHistoryEntryPBImpl.cs index 608ca6589..6d16f6e08 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOInputHistoryEntryPBImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOInputHistoryEntryPBImpl.cs @@ -2,75 +2,59 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSGOInputHistoryEntryPBImpl : TypedProtobuf, CSGOInputHistoryEntryPB { - public CSGOInputHistoryEntryPBImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSGOInputHistoryEntryPBImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public QAngle ViewAngles - { get => Accessor.GetQAngle("view_angles"); set => Accessor.SetQAngle("view_angles", value); } + public QAngle ViewAngles { get => Accessor.GetQAngle("view_angles"); set => Accessor.SetQAngle("view_angles", value); } - public int RenderTickCount - { get => Accessor.GetInt32("render_tick_count"); set => Accessor.SetInt32("render_tick_count", value); } + public int RenderTickCount { get => Accessor.GetInt32("render_tick_count"); set => Accessor.SetInt32("render_tick_count", value); } - public float RenderTickFraction - { get => Accessor.GetFloat("render_tick_fraction"); set => Accessor.SetFloat("render_tick_fraction", value); } + public float RenderTickFraction { get => Accessor.GetFloat("render_tick_fraction"); set => Accessor.SetFloat("render_tick_fraction", value); } - public int PlayerTickCount - { get => Accessor.GetInt32("player_tick_count"); set => Accessor.SetInt32("player_tick_count", value); } + public int PlayerTickCount { get => Accessor.GetInt32("player_tick_count"); set => Accessor.SetInt32("player_tick_count", value); } - public float PlayerTickFraction - { get => Accessor.GetFloat("player_tick_fraction"); set => Accessor.SetFloat("player_tick_fraction", value); } + public float PlayerTickFraction { get => Accessor.GetFloat("player_tick_fraction"); set => Accessor.SetFloat("player_tick_fraction", value); } - public CSGOInterpolationInfoPB_CL ClInterp - { get => new CSGOInterpolationInfoPB_CLImpl(NativeNetMessages.GetNestedMessage(Address, "cl_interp"), false); } + public CSGOInterpolationInfoPB_CL ClInterp { get => new CSGOInterpolationInfoPB_CLImpl(NativeNetMessages.GetNestedMessage(Address, "cl_interp"), false); } - public CSGOInterpolationInfoPB SvInterp0 - { get => new CSGOInterpolationInfoPBImpl(NativeNetMessages.GetNestedMessage(Address, "sv_interp0"), false); } + public CSGOInterpolationInfoPB SvInterp0 { get => new CSGOInterpolationInfoPBImpl(NativeNetMessages.GetNestedMessage(Address, "sv_interp0"), false); } - public CSGOInterpolationInfoPB SvInterp1 - { get => new CSGOInterpolationInfoPBImpl(NativeNetMessages.GetNestedMessage(Address, "sv_interp1"), false); } + public CSGOInterpolationInfoPB SvInterp1 { get => new CSGOInterpolationInfoPBImpl(NativeNetMessages.GetNestedMessage(Address, "sv_interp1"), false); } - public CSGOInterpolationInfoPB PlayerInterp - { get => new CSGOInterpolationInfoPBImpl(NativeNetMessages.GetNestedMessage(Address, "player_interp"), false); } + public CSGOInterpolationInfoPB PlayerInterp { get => new CSGOInterpolationInfoPBImpl(NativeNetMessages.GetNestedMessage(Address, "player_interp"), false); } - public int FrameNumber - { get => Accessor.GetInt32("frame_number"); set => Accessor.SetInt32("frame_number", value); } + public int FrameNumber { get => Accessor.GetInt32("frame_number"); set => Accessor.SetInt32("frame_number", value); } - public int TargetEntIndex - { get => Accessor.GetInt32("target_ent_index"); set => Accessor.SetInt32("target_ent_index", value); } + public int TargetEntIndex { get => Accessor.GetInt32("target_ent_index"); set => Accessor.SetInt32("target_ent_index", value); } - public Vector ShootPosition - { get => Accessor.GetVector("shoot_position"); set => Accessor.SetVector("shoot_position", value); } + public Vector ShootPosition { get => Accessor.GetVector("shoot_position"); set => Accessor.SetVector("shoot_position", value); } - public Vector TargetHeadPosCheck - { get => Accessor.GetVector("target_head_pos_check"); set => Accessor.SetVector("target_head_pos_check", value); } + public Vector TargetHeadPosCheck { get => Accessor.GetVector("target_head_pos_check"); set => Accessor.SetVector("target_head_pos_check", value); } - public Vector TargetAbsPosCheck - { get => Accessor.GetVector("target_abs_pos_check"); set => Accessor.SetVector("target_abs_pos_check", value); } + public Vector TargetAbsPosCheck { get => Accessor.GetVector("target_abs_pos_check"); set => Accessor.SetVector("target_abs_pos_check", value); } - public QAngle TargetAbsAngCheck - { get => Accessor.GetQAngle("target_abs_ang_check"); set => Accessor.SetQAngle("target_abs_ang_check", value); } + public QAngle TargetAbsAngCheck { get => Accessor.GetQAngle("target_abs_ang_check"); set => Accessor.SetQAngle("target_abs_ang_check", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOInterpolationInfoPBImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOInterpolationInfoPBImpl.cs index 8003a69bf..adfcd5467 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOInterpolationInfoPBImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOInterpolationInfoPBImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSGOInterpolationInfoPBImpl : TypedProtobuf, CSGOInterpolationInfoPB { - public CSGOInterpolationInfoPBImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSGOInterpolationInfoPBImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int SrcTick - { get => Accessor.GetInt32("src_tick"); set => Accessor.SetInt32("src_tick", value); } + public int SrcTick { get => Accessor.GetInt32("src_tick"); set => Accessor.SetInt32("src_tick", value); } - public int DstTick - { get => Accessor.GetInt32("dst_tick"); set => Accessor.SetInt32("dst_tick", value); } + public int DstTick { get => Accessor.GetInt32("dst_tick"); set => Accessor.SetInt32("dst_tick", value); } - public float Frac - { get => Accessor.GetFloat("frac"); set => Accessor.SetFloat("frac", value); } + public float Frac { get => Accessor.GetFloat("frac"); set => Accessor.SetFloat("frac", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOInterpolationInfoPB_CLImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOInterpolationInfoPB_CLImpl.cs index bcb722b37..8a3c0707b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOInterpolationInfoPB_CLImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOInterpolationInfoPB_CLImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSGOInterpolationInfoPB_CLImpl : TypedProtobuf, CSGOInterpolationInfoPB_CL { - public CSGOInterpolationInfoPB_CLImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSGOInterpolationInfoPB_CLImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float Frac - { get => Accessor.GetFloat("frac"); set => Accessor.SetFloat("frac", value); } + public float Frac { get => Accessor.GetFloat("frac"); set => Accessor.SetFloat("frac", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOUserCmdPBImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOUserCmdPBImpl.cs index 8273485b5..f2d7666ed 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOUserCmdPBImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSGOUserCmdPBImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,40 +8,32 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSGOUserCmdPBImpl : TypedProtobuf, CSGOUserCmdPB { - public CSGOUserCmdPBImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSGOUserCmdPBImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CBaseUserCmdPB Base - { get => new CBaseUserCmdPBImpl(NativeNetMessages.GetNestedMessage(Address, "base"), false); } + public CBaseUserCmdPB Base { get => new CBaseUserCmdPBImpl(NativeNetMessages.GetNestedMessage(Address, "base"), false); } - public IProtobufRepeatedFieldSubMessageType InputHistory - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "input_history"); } + public IProtobufRepeatedFieldSubMessageType InputHistory { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "input_history"); } - public int Attack1StartHistoryIndex - { get => Accessor.GetInt32("attack1_start_history_index"); set => Accessor.SetInt32("attack1_start_history_index", value); } + public int Attack1StartHistoryIndex { get => Accessor.GetInt32("attack1_start_history_index"); set => Accessor.SetInt32("attack1_start_history_index", value); } - public int Attack2StartHistoryIndex - { get => Accessor.GetInt32("attack2_start_history_index"); set => Accessor.SetInt32("attack2_start_history_index", value); } + public int Attack2StartHistoryIndex { get => Accessor.GetInt32("attack2_start_history_index"); set => Accessor.SetInt32("attack2_start_history_index", value); } - public bool LeftHandDesired - { get => Accessor.GetBool("left_hand_desired"); set => Accessor.SetBool("left_hand_desired", value); } + public bool LeftHandDesired { get => Accessor.GetBool("left_hand_desired"); set => Accessor.SetBool("left_hand_desired", value); } - public bool IsPredictingBodyShotFx - { get => Accessor.GetBool("is_predicting_body_shot_fx"); set => Accessor.SetBool("is_predicting_body_shot_fx", value); } + public bool IsPredictingBodyShotFx { get => Accessor.GetBool("is_predicting_body_shot_fx"); set => Accessor.SetBool("is_predicting_body_shot_fx", value); } - public bool IsPredictingHeadShotFx - { get => Accessor.GetBool("is_predicting_head_shot_fx"); set => Accessor.SetBool("is_predicting_head_shot_fx", value); } + public bool IsPredictingHeadShotFx { get => Accessor.GetBool("is_predicting_head_shot_fx"); set => Accessor.SetBool("is_predicting_head_shot_fx", value); } - public bool IsPredictingKillRagdolls - { get => Accessor.GetBool("is_predicting_kill_ragdolls"); set => Accessor.SetBool("is_predicting_kill_ragdolls", value); } + public bool IsPredictingKillRagdolls { get => Accessor.GetBool("is_predicting_kill_ragdolls"); set => Accessor.SetBool("is_predicting_kill_ragdolls", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountItemPersonalStoreImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountItemPersonalStoreImpl.cs index eded23438..2825895a1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountItemPersonalStoreImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountItemPersonalStoreImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOAccountItemPersonalStoreImpl : TypedProtobuf, CSOAccountItemPersonalStore { - public CSOAccountItemPersonalStoreImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOAccountItemPersonalStoreImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint GenerationTime - { get => Accessor.GetUInt32("generation_time"); set => Accessor.SetUInt32("generation_time", value); } + public uint GenerationTime { get => Accessor.GetUInt32("generation_time"); set => Accessor.SetUInt32("generation_time", value); } - public uint RedeemableBalance - { get => Accessor.GetUInt32("redeemable_balance"); set => Accessor.SetUInt32("redeemable_balance", value); } + public uint RedeemableBalance { get => Accessor.GetUInt32("redeemable_balance"); set => Accessor.SetUInt32("redeemable_balance", value); } - public IProtobufRepeatedFieldValueType Items - { get => new ProtobufRepeatedFieldValueType(Accessor, "items"); } + public IProtobufRepeatedFieldValueType Items { get => new ProtobufRepeatedFieldValueType(Accessor, "items"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountKeychainRemoveToolChargesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountKeychainRemoveToolChargesImpl.cs index 8bbaa8254..475c39f5d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountKeychainRemoveToolChargesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountKeychainRemoveToolChargesImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOAccountKeychainRemoveToolChargesImpl : TypedProtobuf, CSOAccountKeychainRemoveToolCharges { - public CSOAccountKeychainRemoveToolChargesImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOAccountKeychainRemoveToolChargesImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Charges - { get => Accessor.GetUInt32("charges"); set => Accessor.SetUInt32("charges", value); } + public uint Charges { get => Accessor.GetUInt32("charges"); set => Accessor.SetUInt32("charges", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountRecurringMissionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountRecurringMissionImpl.cs index ec0bc162b..883025f89 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountRecurringMissionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountRecurringMissionImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOAccountRecurringMissionImpl : TypedProtobuf, CSOAccountRecurringMission { - public CSOAccountRecurringMissionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOAccountRecurringMissionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint MissionId - { get => Accessor.GetUInt32("mission_id"); set => Accessor.SetUInt32("mission_id", value); } + public uint MissionId { get => Accessor.GetUInt32("mission_id"); set => Accessor.SetUInt32("mission_id", value); } - public uint Period - { get => Accessor.GetUInt32("period"); set => Accessor.SetUInt32("period", value); } + public uint Period { get => Accessor.GetUInt32("period"); set => Accessor.SetUInt32("period", value); } - public uint Progress - { get => Accessor.GetUInt32("progress"); set => Accessor.SetUInt32("progress", value); } + public uint Progress { get => Accessor.GetUInt32("progress"); set => Accessor.SetUInt32("progress", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountRecurringSubscriptionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountRecurringSubscriptionImpl.cs index 9bc9fb265..bbeaa0ffd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountRecurringSubscriptionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountRecurringSubscriptionImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOAccountRecurringSubscriptionImpl : TypedProtobuf, CSOAccountRecurringSubscription { - public CSOAccountRecurringSubscriptionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOAccountRecurringSubscriptionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint TimeNextCycle - { get => Accessor.GetUInt32("time_next_cycle"); set => Accessor.SetUInt32("time_next_cycle", value); } + public uint TimeNextCycle { get => Accessor.GetUInt32("time_next_cycle"); set => Accessor.SetUInt32("time_next_cycle", value); } - public uint TimeInitiated - { get => Accessor.GetUInt32("time_initiated"); set => Accessor.SetUInt32("time_initiated", value); } + public uint TimeInitiated { get => Accessor.GetUInt32("time_initiated"); set => Accessor.SetUInt32("time_initiated", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountSeasonalOperationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountSeasonalOperationImpl.cs index 9c6fd046a..207c39791 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountSeasonalOperationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountSeasonalOperationImpl.cs @@ -1,44 +1,33 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOAccountSeasonalOperationImpl : TypedProtobuf, CSOAccountSeasonalOperation { - public CSOAccountSeasonalOperationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOAccountSeasonalOperationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint SeasonValue - { get => Accessor.GetUInt32("season_value"); set => Accessor.SetUInt32("season_value", value); } + public uint SeasonValue { get => Accessor.GetUInt32("season_value"); set => Accessor.SetUInt32("season_value", value); } - public uint TierUnlocked - { get => Accessor.GetUInt32("tier_unlocked"); set => Accessor.SetUInt32("tier_unlocked", value); } + public uint TierUnlocked { get => Accessor.GetUInt32("tier_unlocked"); set => Accessor.SetUInt32("tier_unlocked", value); } - public uint PremiumTiers - { get => Accessor.GetUInt32("premium_tiers"); set => Accessor.SetUInt32("premium_tiers", value); } + public uint PremiumTiers { get => Accessor.GetUInt32("premium_tiers"); set => Accessor.SetUInt32("premium_tiers", value); } - public uint MissionId - { get => Accessor.GetUInt32("mission_id"); set => Accessor.SetUInt32("mission_id", value); } + public uint MissionId { get => Accessor.GetUInt32("mission_id"); set => Accessor.SetUInt32("mission_id", value); } - public uint MissionsCompleted - { get => Accessor.GetUInt32("missions_completed"); set => Accessor.SetUInt32("missions_completed", value); } + public uint MissionsCompleted { get => Accessor.GetUInt32("missions_completed"); set => Accessor.SetUInt32("missions_completed", value); } - public uint RedeemableBalance - { get => Accessor.GetUInt32("redeemable_balance"); set => Accessor.SetUInt32("redeemable_balance", value); } + public uint RedeemableBalance { get => Accessor.GetUInt32("redeemable_balance"); set => Accessor.SetUInt32("redeemable_balance", value); } - public uint SeasonPassTime - { get => Accessor.GetUInt32("season_pass_time"); set => Accessor.SetUInt32("season_pass_time", value); } + public uint SeasonPassTime { get => Accessor.GetUInt32("season_pass_time"); set => Accessor.SetUInt32("season_pass_time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountXpShopBidsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountXpShopBidsImpl.cs index 194c6cec3..dfc5c0cd6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountXpShopBidsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountXpShopBidsImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOAccountXpShopBidsImpl : TypedProtobuf, CSOAccountXpShopBids { - public CSOAccountXpShopBidsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOAccountXpShopBidsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint CampaignId - { get => Accessor.GetUInt32("campaign_id"); set => Accessor.SetUInt32("campaign_id", value); } + public uint CampaignId { get => Accessor.GetUInt32("campaign_id"); set => Accessor.SetUInt32("campaign_id", value); } - public uint RedeemId - { get => Accessor.GetUInt32("redeem_id"); set => Accessor.SetUInt32("redeem_id", value); } + public uint RedeemId { get => Accessor.GetUInt32("redeem_id"); set => Accessor.SetUInt32("redeem_id", value); } - public uint ExpectedCost - { get => Accessor.GetUInt32("expected_cost"); set => Accessor.SetUInt32("expected_cost", value); } + public uint ExpectedCost { get => Accessor.GetUInt32("expected_cost"); set => Accessor.SetUInt32("expected_cost", value); } - public uint GenerationTime - { get => Accessor.GetUInt32("generation_time"); set => Accessor.SetUInt32("generation_time", value); } + public uint GenerationTime { get => Accessor.GetUInt32("generation_time"); set => Accessor.SetUInt32("generation_time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountXpShopImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountXpShopImpl.cs index 05865b418..b6617a0b6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountXpShopImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOAccountXpShopImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOAccountXpShopImpl : TypedProtobuf, CSOAccountXpShop { - public CSOAccountXpShopImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOAccountXpShopImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint GenerationTime - { get => Accessor.GetUInt32("generation_time"); set => Accessor.SetUInt32("generation_time", value); } + public uint GenerationTime { get => Accessor.GetUInt32("generation_time"); set => Accessor.SetUInt32("generation_time", value); } - public uint RedeemableBalance - { get => Accessor.GetUInt32("redeemable_balance"); set => Accessor.SetUInt32("redeemable_balance", value); } + public uint RedeemableBalance { get => Accessor.GetUInt32("redeemable_balance"); set => Accessor.SetUInt32("redeemable_balance", value); } - public IProtobufRepeatedFieldValueType XpTracks - { get => new ProtobufRepeatedFieldValueType(Accessor, "xp_tracks"); } + public IProtobufRepeatedFieldValueType XpTracks { get => new ProtobufRepeatedFieldValueType(Accessor, "xp_tracks"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconClaimCodeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconClaimCodeImpl.cs index 280641eb8..9cab78505 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconClaimCodeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconClaimCodeImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOEconClaimCodeImpl : TypedProtobuf, CSOEconClaimCode { - public CSOEconClaimCodeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOEconClaimCodeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint CodeType - { get => Accessor.GetUInt32("code_type"); set => Accessor.SetUInt32("code_type", value); } + public uint CodeType { get => Accessor.GetUInt32("code_type"); set => Accessor.SetUInt32("code_type", value); } - public uint TimeAcquired - { get => Accessor.GetUInt32("time_acquired"); set => Accessor.SetUInt32("time_acquired", value); } + public uint TimeAcquired { get => Accessor.GetUInt32("time_acquired"); set => Accessor.SetUInt32("time_acquired", value); } - public string Code - { get => Accessor.GetString("code"); set => Accessor.SetString("code", value); } + public string Code { get => Accessor.GetString("code"); set => Accessor.SetString("code", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconCouponImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconCouponImpl.cs index 90046074b..c21767513 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconCouponImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconCouponImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOEconCouponImpl : TypedProtobuf, CSOEconCoupon { - public CSOEconCouponImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOEconCouponImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Entryid - { get => Accessor.GetUInt32("entryid"); set => Accessor.SetUInt32("entryid", value); } + public uint Entryid { get => Accessor.GetUInt32("entryid"); set => Accessor.SetUInt32("entryid", value); } - public uint Defidx - { get => Accessor.GetUInt32("defidx"); set => Accessor.SetUInt32("defidx", value); } + public uint Defidx { get => Accessor.GetUInt32("defidx"); set => Accessor.SetUInt32("defidx", value); } - public uint ExpirationDate - { get => Accessor.GetUInt32("expiration_date"); set => Accessor.SetUInt32("expiration_date", value); } + public uint ExpirationDate { get => Accessor.GetUInt32("expiration_date"); set => Accessor.SetUInt32("expiration_date", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconDefaultEquippedDefinitionInstanceClientImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconDefaultEquippedDefinitionInstanceClientImpl.cs index 0a2fcf4f2..039de2007 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconDefaultEquippedDefinitionInstanceClientImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconDefaultEquippedDefinitionInstanceClientImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOEconDefaultEquippedDefinitionInstanceClientImpl : TypedProtobuf, CSOEconDefaultEquippedDefinitionInstanceClient { - public CSOEconDefaultEquippedDefinitionInstanceClientImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOEconDefaultEquippedDefinitionInstanceClientImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint ItemDefinition - { get => Accessor.GetUInt32("item_definition"); set => Accessor.SetUInt32("item_definition", value); } + public uint ItemDefinition { get => Accessor.GetUInt32("item_definition"); set => Accessor.SetUInt32("item_definition", value); } - public uint ClassId - { get => Accessor.GetUInt32("class_id"); set => Accessor.SetUInt32("class_id", value); } + public uint ClassId { get => Accessor.GetUInt32("class_id"); set => Accessor.SetUInt32("class_id", value); } - public uint SlotId - { get => Accessor.GetUInt32("slot_id"); set => Accessor.SetUInt32("slot_id", value); } + public uint SlotId { get => Accessor.GetUInt32("slot_id"); set => Accessor.SetUInt32("slot_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconEquipSlotImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconEquipSlotImpl.cs index 8c74a0784..03df2b471 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconEquipSlotImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconEquipSlotImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOEconEquipSlotImpl : TypedProtobuf, CSOEconEquipSlot { - public CSOEconEquipSlotImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOEconEquipSlotImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint ClassId - { get => Accessor.GetUInt32("class_id"); set => Accessor.SetUInt32("class_id", value); } + public uint ClassId { get => Accessor.GetUInt32("class_id"); set => Accessor.SetUInt32("class_id", value); } - public uint SlotId - { get => Accessor.GetUInt32("slot_id"); set => Accessor.SetUInt32("slot_id", value); } + public uint SlotId { get => Accessor.GetUInt32("slot_id"); set => Accessor.SetUInt32("slot_id", value); } - public ulong ItemId - { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } + public ulong ItemId { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } - public uint ItemDefinition - { get => Accessor.GetUInt32("item_definition"); set => Accessor.SetUInt32("item_definition", value); } + public uint ItemDefinition { get => Accessor.GetUInt32("item_definition"); set => Accessor.SetUInt32("item_definition", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconGameAccountClientImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconGameAccountClientImpl.cs index 013d094fe..2c404335f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconGameAccountClientImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconGameAccountClientImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOEconGameAccountClientImpl : TypedProtobuf, CSOEconGameAccountClient { - public CSOEconGameAccountClientImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOEconGameAccountClientImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AdditionalBackpackSlots - { get => Accessor.GetUInt32("additional_backpack_slots"); set => Accessor.SetUInt32("additional_backpack_slots", value); } + public uint AdditionalBackpackSlots { get => Accessor.GetUInt32("additional_backpack_slots"); set => Accessor.SetUInt32("additional_backpack_slots", value); } - public uint TradeBanExpiration - { get => Accessor.GetUInt32("trade_ban_expiration"); set => Accessor.SetUInt32("trade_ban_expiration", value); } + public uint TradeBanExpiration { get => Accessor.GetUInt32("trade_ban_expiration"); set => Accessor.SetUInt32("trade_ban_expiration", value); } - public uint BonusXpTimestampRefresh - { get => Accessor.GetUInt32("bonus_xp_timestamp_refresh"); set => Accessor.SetUInt32("bonus_xp_timestamp_refresh", value); } + public uint BonusXpTimestampRefresh { get => Accessor.GetUInt32("bonus_xp_timestamp_refresh"); set => Accessor.SetUInt32("bonus_xp_timestamp_refresh", value); } - public uint BonusXpUsedflags - { get => Accessor.GetUInt32("bonus_xp_usedflags"); set => Accessor.SetUInt32("bonus_xp_usedflags", value); } + public uint BonusXpUsedflags { get => Accessor.GetUInt32("bonus_xp_usedflags"); set => Accessor.SetUInt32("bonus_xp_usedflags", value); } - public uint ElevatedState - { get => Accessor.GetUInt32("elevated_state"); set => Accessor.SetUInt32("elevated_state", value); } + public uint ElevatedState { get => Accessor.GetUInt32("elevated_state"); set => Accessor.SetUInt32("elevated_state", value); } - public uint ElevatedTimestamp - { get => Accessor.GetUInt32("elevated_timestamp"); set => Accessor.SetUInt32("elevated_timestamp", value); } + public uint ElevatedTimestamp { get => Accessor.GetUInt32("elevated_timestamp"); set => Accessor.SetUInt32("elevated_timestamp", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemAttributeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemAttributeImpl.cs index 772a3b316..1d5cf4e3c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemAttributeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemAttributeImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOEconItemAttributeImpl : TypedProtobuf, CSOEconItemAttribute { - public CSOEconItemAttributeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOEconItemAttributeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint DefIndex - { get => Accessor.GetUInt32("def_index"); set => Accessor.SetUInt32("def_index", value); } + public uint DefIndex { get => Accessor.GetUInt32("def_index"); set => Accessor.SetUInt32("def_index", value); } - public uint Value - { get => Accessor.GetUInt32("value"); set => Accessor.SetUInt32("value", value); } + public uint Value { get => Accessor.GetUInt32("value"); set => Accessor.SetUInt32("value", value); } - public byte[] ValueBytes - { get => Accessor.GetBytes("value_bytes"); set => Accessor.SetBytes("value_bytes", value); } + public byte[] ValueBytes { get => Accessor.GetBytes("value_bytes"); set => Accessor.SetBytes("value_bytes", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemDropRateBonusImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemDropRateBonusImpl.cs index 463995ad3..4bdf22ec1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemDropRateBonusImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemDropRateBonusImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOEconItemDropRateBonusImpl : TypedProtobuf, CSOEconItemDropRateBonus { - public CSOEconItemDropRateBonusImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOEconItemDropRateBonusImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint ExpirationDate - { get => Accessor.GetUInt32("expiration_date"); set => Accessor.SetUInt32("expiration_date", value); } + public uint ExpirationDate { get => Accessor.GetUInt32("expiration_date"); set => Accessor.SetUInt32("expiration_date", value); } - public float Bonus - { get => Accessor.GetFloat("bonus"); set => Accessor.SetFloat("bonus", value); } + public float Bonus { get => Accessor.GetFloat("bonus"); set => Accessor.SetFloat("bonus", value); } - public uint BonusCount - { get => Accessor.GetUInt32("bonus_count"); set => Accessor.SetUInt32("bonus_count", value); } + public uint BonusCount { get => Accessor.GetUInt32("bonus_count"); set => Accessor.SetUInt32("bonus_count", value); } - public ulong ItemId - { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } + public ulong ItemId { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } - public uint DefIndex - { get => Accessor.GetUInt32("def_index"); set => Accessor.SetUInt32("def_index", value); } + public uint DefIndex { get => Accessor.GetUInt32("def_index"); set => Accessor.SetUInt32("def_index", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemEquippedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemEquippedImpl.cs index 594badd0b..63c10aa81 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemEquippedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemEquippedImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOEconItemEquippedImpl : TypedProtobuf, CSOEconItemEquipped { - public CSOEconItemEquippedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOEconItemEquippedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint NewClass - { get => Accessor.GetUInt32("new_class"); set => Accessor.SetUInt32("new_class", value); } + public uint NewClass { get => Accessor.GetUInt32("new_class"); set => Accessor.SetUInt32("new_class", value); } - public uint NewSlot - { get => Accessor.GetUInt32("new_slot"); set => Accessor.SetUInt32("new_slot", value); } + public uint NewSlot { get => Accessor.GetUInt32("new_slot"); set => Accessor.SetUInt32("new_slot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemEventTicketImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemEventTicketImpl.cs index 10b4a5713..62c7adbaf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemEventTicketImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemEventTicketImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOEconItemEventTicketImpl : TypedProtobuf, CSOEconItemEventTicket { - public CSOEconItemEventTicketImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOEconItemEventTicketImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint EventId - { get => Accessor.GetUInt32("event_id"); set => Accessor.SetUInt32("event_id", value); } + public uint EventId { get => Accessor.GetUInt32("event_id"); set => Accessor.SetUInt32("event_id", value); } - public ulong ItemId - { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } + public ulong ItemId { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemImpl.cs index 25d14505c..6d61d8b6b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,80 +8,62 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOEconItemImpl : TypedProtobuf, CSOEconItem { - public CSOEconItemImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOEconItemImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Id - { get => Accessor.GetUInt64("id"); set => Accessor.SetUInt64("id", value); } + public ulong Id { get => Accessor.GetUInt64("id"); set => Accessor.SetUInt64("id", value); } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint Inventory - { get => Accessor.GetUInt32("inventory"); set => Accessor.SetUInt32("inventory", value); } + public uint Inventory { get => Accessor.GetUInt32("inventory"); set => Accessor.SetUInt32("inventory", value); } - public uint DefIndex - { get => Accessor.GetUInt32("def_index"); set => Accessor.SetUInt32("def_index", value); } + public uint DefIndex { get => Accessor.GetUInt32("def_index"); set => Accessor.SetUInt32("def_index", value); } - public uint Quantity - { get => Accessor.GetUInt32("quantity"); set => Accessor.SetUInt32("quantity", value); } + public uint Quantity { get => Accessor.GetUInt32("quantity"); set => Accessor.SetUInt32("quantity", value); } - public uint Level - { get => Accessor.GetUInt32("level"); set => Accessor.SetUInt32("level", value); } + public uint Level { get => Accessor.GetUInt32("level"); set => Accessor.SetUInt32("level", value); } - public uint Quality - { get => Accessor.GetUInt32("quality"); set => Accessor.SetUInt32("quality", value); } + public uint Quality { get => Accessor.GetUInt32("quality"); set => Accessor.SetUInt32("quality", value); } - public uint Flags - { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } + public uint Flags { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } - public uint Origin - { get => Accessor.GetUInt32("origin"); set => Accessor.SetUInt32("origin", value); } + public uint Origin { get => Accessor.GetUInt32("origin"); set => Accessor.SetUInt32("origin", value); } - public string CustomName - { get => Accessor.GetString("custom_name"); set => Accessor.SetString("custom_name", value); } + public string CustomName { get => Accessor.GetString("custom_name"); set => Accessor.SetString("custom_name", value); } - public string CustomDesc - { get => Accessor.GetString("custom_desc"); set => Accessor.SetString("custom_desc", value); } + public string CustomDesc { get => Accessor.GetString("custom_desc"); set => Accessor.SetString("custom_desc", value); } - public IProtobufRepeatedFieldSubMessageType Attribute - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "attribute"); } + public IProtobufRepeatedFieldSubMessageType Attribute { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "attribute"); } - public CSOEconItem InteriorItem - { get => new CSOEconItemImpl(NativeNetMessages.GetNestedMessage(Address, "interior_item"), false); } + public CSOEconItem InteriorItem { get => new CSOEconItemImpl(NativeNetMessages.GetNestedMessage(Address, "interior_item"), false); } - public bool InUse - { get => Accessor.GetBool("in_use"); set => Accessor.SetBool("in_use", value); } + public bool InUse { get => Accessor.GetBool("in_use"); set => Accessor.SetBool("in_use", value); } - public uint Style - { get => Accessor.GetUInt32("style"); set => Accessor.SetUInt32("style", value); } + public uint Style { get => Accessor.GetUInt32("style"); set => Accessor.SetUInt32("style", value); } - public ulong OriginalId - { get => Accessor.GetUInt64("original_id"); set => Accessor.SetUInt64("original_id", value); } + public ulong OriginalId { get => Accessor.GetUInt64("original_id"); set => Accessor.SetUInt64("original_id", value); } - public IProtobufRepeatedFieldSubMessageType EquippedState - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "equipped_state"); } + public IProtobufRepeatedFieldSubMessageType EquippedState { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "equipped_state"); } - public uint Rarity - { get => Accessor.GetUInt32("rarity"); set => Accessor.SetUInt32("rarity", value); } + public uint Rarity { get => Accessor.GetUInt32("rarity"); set => Accessor.SetUInt32("rarity", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemLeagueViewPassImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemLeagueViewPassImpl.cs index e68030c26..1172806e0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemLeagueViewPassImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconItemLeagueViewPassImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOEconItemLeagueViewPassImpl : TypedProtobuf, CSOEconItemLeagueViewPass { - public CSOEconItemLeagueViewPassImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOEconItemLeagueViewPassImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint LeagueId - { get => Accessor.GetUInt32("league_id"); set => Accessor.SetUInt32("league_id", value); } + public uint LeagueId { get => Accessor.GetUInt32("league_id"); set => Accessor.SetUInt32("league_id", value); } - public uint Admin - { get => Accessor.GetUInt32("admin"); set => Accessor.SetUInt32("admin", value); } + public uint Admin { get => Accessor.GetUInt32("admin"); set => Accessor.SetUInt32("admin", value); } - public uint Itemindex - { get => Accessor.GetUInt32("itemindex"); set => Accessor.SetUInt32("itemindex", value); } + public uint Itemindex { get => Accessor.GetUInt32("itemindex"); set => Accessor.SetUInt32("itemindex", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconRentalHistoryImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconRentalHistoryImpl.cs index 8808ad56d..90b14c32e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconRentalHistoryImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOEconRentalHistoryImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOEconRentalHistoryImpl : TypedProtobuf, CSOEconRentalHistory { - public CSOEconRentalHistoryImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOEconRentalHistoryImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public ulong CrateItemId - { get => Accessor.GetUInt64("crate_item_id"); set => Accessor.SetUInt64("crate_item_id", value); } + public ulong CrateItemId { get => Accessor.GetUInt64("crate_item_id"); set => Accessor.SetUInt64("crate_item_id", value); } - public uint CrateDefIndex - { get => Accessor.GetUInt32("crate_def_index"); set => Accessor.SetUInt32("crate_def_index", value); } + public uint CrateDefIndex { get => Accessor.GetUInt32("crate_def_index"); set => Accessor.SetUInt32("crate_def_index", value); } - public uint IssueDate - { get => Accessor.GetUInt32("issue_date"); set => Accessor.SetUInt32("issue_date", value); } + public uint IssueDate { get => Accessor.GetUInt32("issue_date"); set => Accessor.SetUInt32("issue_date", value); } - public uint ExpirationDate - { get => Accessor.GetUInt32("expiration_date"); set => Accessor.SetUInt32("expiration_date", value); } + public uint ExpirationDate { get => Accessor.GetUInt32("expiration_date"); set => Accessor.SetUInt32("expiration_date", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOGameAccountSteamChinaImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOGameAccountSteamChinaImpl.cs index 163b258c6..c8dc88584 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOGameAccountSteamChinaImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOGameAccountSteamChinaImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOGameAccountSteamChinaImpl : TypedProtobuf, CSOGameAccountSteamChina { - public CSOGameAccountSteamChinaImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOGameAccountSteamChinaImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint TimeLastUpdate - { get => Accessor.GetUInt32("time_last_update"); set => Accessor.SetUInt32("time_last_update", value); } + public uint TimeLastUpdate { get => Accessor.GetUInt32("time_last_update"); set => Accessor.SetUInt32("time_last_update", value); } - public uint TimeCommsBan - { get => Accessor.GetUInt32("time_comms_ban"); set => Accessor.SetUInt32("time_comms_ban", value); } + public uint TimeCommsBan { get => Accessor.GetUInt32("time_comms_ban"); set => Accessor.SetUInt32("time_comms_ban", value); } - public uint TimePlayBan - { get => Accessor.GetUInt32("time_play_ban"); set => Accessor.SetUInt32("time_play_ban", value); } + public uint TimePlayBan { get => Accessor.GetUInt32("time_play_ban"); set => Accessor.SetUInt32("time_play_ban", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOItemCriteriaConditionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOItemCriteriaConditionImpl.cs index 62ecf8796..6b5d466e8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOItemCriteriaConditionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOItemCriteriaConditionImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOItemCriteriaConditionImpl : TypedProtobuf, CSOItemCriteriaCondition { - public CSOItemCriteriaConditionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOItemCriteriaConditionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Op - { get => Accessor.GetInt32("op"); set => Accessor.SetInt32("op", value); } + public int Op { get => Accessor.GetInt32("op"); set => Accessor.SetInt32("op", value); } - public string Field - { get => Accessor.GetString("field"); set => Accessor.SetString("field", value); } + public string Field { get => Accessor.GetString("field"); set => Accessor.SetString("field", value); } - public bool Required - { get => Accessor.GetBool("required"); set => Accessor.SetBool("required", value); } + public bool Required { get => Accessor.GetBool("required"); set => Accessor.SetBool("required", value); } - public float FloatValue - { get => Accessor.GetFloat("float_value"); set => Accessor.SetFloat("float_value", value); } + public float FloatValue { get => Accessor.GetFloat("float_value"); set => Accessor.SetFloat("float_value", value); } - public string StringValue - { get => Accessor.GetString("string_value"); set => Accessor.SetString("string_value", value); } + public string StringValue { get => Accessor.GetString("string_value"); set => Accessor.SetString("string_value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOItemCriteriaImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOItemCriteriaImpl.cs index 858ae62c1..2fa1f059e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOItemCriteriaImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOItemCriteriaImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,52 +6,41 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOItemCriteriaImpl : TypedProtobuf, CSOItemCriteria { - public CSOItemCriteriaImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOItemCriteriaImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ItemLevel - { get => Accessor.GetUInt32("item_level"); set => Accessor.SetUInt32("item_level", value); } + public uint ItemLevel { get => Accessor.GetUInt32("item_level"); set => Accessor.SetUInt32("item_level", value); } - public int ItemQuality - { get => Accessor.GetInt32("item_quality"); set => Accessor.SetInt32("item_quality", value); } + public int ItemQuality { get => Accessor.GetInt32("item_quality"); set => Accessor.SetInt32("item_quality", value); } - public bool ItemLevelSet - { get => Accessor.GetBool("item_level_set"); set => Accessor.SetBool("item_level_set", value); } + public bool ItemLevelSet { get => Accessor.GetBool("item_level_set"); set => Accessor.SetBool("item_level_set", value); } - public bool ItemQualitySet - { get => Accessor.GetBool("item_quality_set"); set => Accessor.SetBool("item_quality_set", value); } + public bool ItemQualitySet { get => Accessor.GetBool("item_quality_set"); set => Accessor.SetBool("item_quality_set", value); } - public uint InitialInventory - { get => Accessor.GetUInt32("initial_inventory"); set => Accessor.SetUInt32("initial_inventory", value); } + public uint InitialInventory { get => Accessor.GetUInt32("initial_inventory"); set => Accessor.SetUInt32("initial_inventory", value); } - public uint InitialQuantity - { get => Accessor.GetUInt32("initial_quantity"); set => Accessor.SetUInt32("initial_quantity", value); } + public uint InitialQuantity { get => Accessor.GetUInt32("initial_quantity"); set => Accessor.SetUInt32("initial_quantity", value); } - public bool IgnoreEnabledFlag - { get => Accessor.GetBool("ignore_enabled_flag"); set => Accessor.SetBool("ignore_enabled_flag", value); } + public bool IgnoreEnabledFlag { get => Accessor.GetBool("ignore_enabled_flag"); set => Accessor.SetBool("ignore_enabled_flag", value); } - public IProtobufRepeatedFieldSubMessageType Conditions - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "conditions"); } + public IProtobufRepeatedFieldSubMessageType Conditions { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "conditions"); } - public int ItemRarity - { get => Accessor.GetInt32("item_rarity"); set => Accessor.SetInt32("item_rarity", value); } + public int ItemRarity { get => Accessor.GetInt32("item_rarity"); set => Accessor.SetInt32("item_rarity", value); } - public bool ItemRaritySet - { get => Accessor.GetBool("item_rarity_set"); set => Accessor.SetBool("item_rarity_set", value); } + public bool ItemRaritySet { get => Accessor.GetBool("item_rarity_set"); set => Accessor.SetBool("item_rarity_set", value); } - public bool RecentOnly - { get => Accessor.GetBool("recent_only"); set => Accessor.SetBool("recent_only", value); } + public bool RecentOnly { get => Accessor.GetBool("recent_only"); set => Accessor.SetBool("recent_only", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOItemRecipeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOItemRecipeImpl.cs index dfde03803..97f0f9633 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOItemRecipeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOItemRecipeImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,84 +6,65 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOItemRecipeImpl : TypedProtobuf, CSOItemRecipe { - public CSOItemRecipeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOItemRecipeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint DefIndex - { get => Accessor.GetUInt32("def_index"); set => Accessor.SetUInt32("def_index", value); } + public uint DefIndex { get => Accessor.GetUInt32("def_index"); set => Accessor.SetUInt32("def_index", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public string NA - { get => Accessor.GetString("n_a"); set => Accessor.SetString("n_a", value); } + public string NA { get => Accessor.GetString("n_a"); set => Accessor.SetString("n_a", value); } - public string DescInputs - { get => Accessor.GetString("desc_inputs"); set => Accessor.SetString("desc_inputs", value); } + public string DescInputs { get => Accessor.GetString("desc_inputs"); set => Accessor.SetString("desc_inputs", value); } - public string DescOutputs - { get => Accessor.GetString("desc_outputs"); set => Accessor.SetString("desc_outputs", value); } + public string DescOutputs { get => Accessor.GetString("desc_outputs"); set => Accessor.SetString("desc_outputs", value); } - public string DiA - { get => Accessor.GetString("di_a"); set => Accessor.SetString("di_a", value); } + public string DiA { get => Accessor.GetString("di_a"); set => Accessor.SetString("di_a", value); } - public string DiB - { get => Accessor.GetString("di_b"); set => Accessor.SetString("di_b", value); } + public string DiB { get => Accessor.GetString("di_b"); set => Accessor.SetString("di_b", value); } - public string DiC - { get => Accessor.GetString("di_c"); set => Accessor.SetString("di_c", value); } + public string DiC { get => Accessor.GetString("di_c"); set => Accessor.SetString("di_c", value); } - public string DoA - { get => Accessor.GetString("do_a"); set => Accessor.SetString("do_a", value); } + public string DoA { get => Accessor.GetString("do_a"); set => Accessor.SetString("do_a", value); } - public string DoB - { get => Accessor.GetString("do_b"); set => Accessor.SetString("do_b", value); } + public string DoB { get => Accessor.GetString("do_b"); set => Accessor.SetString("do_b", value); } - public string DoC - { get => Accessor.GetString("do_c"); set => Accessor.SetString("do_c", value); } + public string DoC { get => Accessor.GetString("do_c"); set => Accessor.SetString("do_c", value); } - public bool RequiresAllSameClass - { get => Accessor.GetBool("requires_all_same_class"); set => Accessor.SetBool("requires_all_same_class", value); } + public bool RequiresAllSameClass { get => Accessor.GetBool("requires_all_same_class"); set => Accessor.SetBool("requires_all_same_class", value); } - public bool RequiresAllSameSlot - { get => Accessor.GetBool("requires_all_same_slot"); set => Accessor.SetBool("requires_all_same_slot", value); } + public bool RequiresAllSameSlot { get => Accessor.GetBool("requires_all_same_slot"); set => Accessor.SetBool("requires_all_same_slot", value); } - public int ClassUsageForOutput - { get => Accessor.GetInt32("class_usage_for_output"); set => Accessor.SetInt32("class_usage_for_output", value); } + public int ClassUsageForOutput { get => Accessor.GetInt32("class_usage_for_output"); set => Accessor.SetInt32("class_usage_for_output", value); } - public int SlotUsageForOutput - { get => Accessor.GetInt32("slot_usage_for_output"); set => Accessor.SetInt32("slot_usage_for_output", value); } + public int SlotUsageForOutput { get => Accessor.GetInt32("slot_usage_for_output"); set => Accessor.SetInt32("slot_usage_for_output", value); } - public int SetForOutput - { get => Accessor.GetInt32("set_for_output"); set => Accessor.SetInt32("set_for_output", value); } + public int SetForOutput { get => Accessor.GetInt32("set_for_output"); set => Accessor.SetInt32("set_for_output", value); } - public IProtobufRepeatedFieldSubMessageType InputItemsCriteria - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "input_items_criteria"); } + public IProtobufRepeatedFieldSubMessageType InputItemsCriteria { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "input_items_criteria"); } - public IProtobufRepeatedFieldSubMessageType OutputItemsCriteria - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "output_items_criteria"); } + public IProtobufRepeatedFieldSubMessageType OutputItemsCriteria { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "output_items_criteria"); } - public IProtobufRepeatedFieldValueType InputItemDupeCounts - { get => new ProtobufRepeatedFieldValueType(Accessor, "input_item_dupe_counts"); } + public IProtobufRepeatedFieldValueType InputItemDupeCounts { get => new ProtobufRepeatedFieldValueType(Accessor, "input_item_dupe_counts"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOLobbyInviteImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOLobbyInviteImpl.cs index 4cc7a4540..70fd807f4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOLobbyInviteImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOLobbyInviteImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOLobbyInviteImpl : TypedProtobuf, CSOLobbyInvite { - public CSOLobbyInviteImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOLobbyInviteImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong GroupId - { get => Accessor.GetUInt64("group_id"); set => Accessor.SetUInt64("group_id", value); } + public ulong GroupId { get => Accessor.GetUInt64("group_id"); set => Accessor.SetUInt64("group_id", value); } - public ulong SenderId - { get => Accessor.GetUInt64("sender_id"); set => Accessor.SetUInt64("sender_id", value); } + public ulong SenderId { get => Accessor.GetUInt64("sender_id"); set => Accessor.SetUInt64("sender_id", value); } - public string SenderName - { get => Accessor.GetString("sender_name"); set => Accessor.SetString("sender_name", value); } + public string SenderName { get => Accessor.GetString("sender_name"); set => Accessor.SetString("sender_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOPartyInviteImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOPartyInviteImpl.cs index bf1614463..98ce74c8c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOPartyInviteImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOPartyInviteImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOPartyInviteImpl : TypedProtobuf, CSOPartyInvite { - public CSOPartyInviteImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOPartyInviteImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong GroupId - { get => Accessor.GetUInt64("group_id"); set => Accessor.SetUInt64("group_id", value); } + public ulong GroupId { get => Accessor.GetUInt64("group_id"); set => Accessor.SetUInt64("group_id", value); } - public ulong SenderId - { get => Accessor.GetUInt64("sender_id"); set => Accessor.SetUInt64("sender_id", value); } + public ulong SenderId { get => Accessor.GetUInt64("sender_id"); set => Accessor.SetUInt64("sender_id", value); } - public string SenderName - { get => Accessor.GetString("sender_name"); set => Accessor.SetString("sender_name", value); } + public string SenderName { get => Accessor.GetString("sender_name"); set => Accessor.SetString("sender_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOPersonaDataPublicImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOPersonaDataPublicImpl.cs index 2b8369525..5a0ad8192 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOPersonaDataPublicImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOPersonaDataPublicImpl.cs @@ -1,36 +1,29 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOPersonaDataPublicImpl : TypedProtobuf, CSOPersonaDataPublic { - public CSOPersonaDataPublicImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOPersonaDataPublicImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int PlayerLevel - { get => Accessor.GetInt32("player_level"); set => Accessor.SetInt32("player_level", value); } + public int PlayerLevel { get => Accessor.GetInt32("player_level"); set => Accessor.SetInt32("player_level", value); } - public PlayerCommendationInfo Commendation - { get => new PlayerCommendationInfoImpl(NativeNetMessages.GetNestedMessage(Address, "commendation"), false); } + public PlayerCommendationInfo Commendation { get => new PlayerCommendationInfoImpl(NativeNetMessages.GetNestedMessage(Address, "commendation"), false); } - public bool ElevatedState - { get => Accessor.GetBool("elevated_state"); set => Accessor.SetBool("elevated_state", value); } + public bool ElevatedState { get => Accessor.GetBool("elevated_state"); set => Accessor.SetBool("elevated_state", value); } - public uint XpTrailTimestampRefresh - { get => Accessor.GetUInt32("xp_trail_timestamp_refresh"); set => Accessor.SetUInt32("xp_trail_timestamp_refresh", value); } + public uint XpTrailTimestampRefresh { get => Accessor.GetUInt32("xp_trail_timestamp_refresh"); set => Accessor.SetUInt32("xp_trail_timestamp_refresh", value); } - public uint XpTrailLevel - { get => Accessor.GetUInt32("xp_trail_level"); set => Accessor.SetUInt32("xp_trail_level", value); } + public uint XpTrailLevel { get => Accessor.GetUInt32("xp_trail_level"); set => Accessor.SetUInt32("xp_trail_level", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOQuestProgressImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOQuestProgressImpl.cs index 152f96f10..915830786 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOQuestProgressImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOQuestProgressImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOQuestProgressImpl : TypedProtobuf, CSOQuestProgress { - public CSOQuestProgressImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOQuestProgressImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Questid - { get => Accessor.GetUInt32("questid"); set => Accessor.SetUInt32("questid", value); } + public uint Questid { get => Accessor.GetUInt32("questid"); set => Accessor.SetUInt32("questid", value); } - public uint PointsRemaining - { get => Accessor.GetUInt32("points_remaining"); set => Accessor.SetUInt32("points_remaining", value); } + public uint PointsRemaining { get => Accessor.GetUInt32("points_remaining"); set => Accessor.SetUInt32("points_remaining", value); } - public uint BonusPoints - { get => Accessor.GetUInt32("bonus_points"); set => Accessor.SetUInt32("bonus_points", value); } + public uint BonusPoints { get => Accessor.GetUInt32("bonus_points"); set => Accessor.SetUInt32("bonus_points", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOVolatileItemClaimedRewardsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOVolatileItemClaimedRewardsImpl.cs index 1c6f4f475..151479b7d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOVolatileItemClaimedRewardsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOVolatileItemClaimedRewardsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOVolatileItemClaimedRewardsImpl : TypedProtobuf, CSOVolatileItemClaimedRewards { - public CSOVolatileItemClaimedRewardsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOVolatileItemClaimedRewardsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Defidx - { get => Accessor.GetUInt32("defidx"); set => Accessor.SetUInt32("defidx", value); } + public uint Defidx { get => Accessor.GetUInt32("defidx"); set => Accessor.SetUInt32("defidx", value); } - public IProtobufRepeatedFieldValueType Reward - { get => new ProtobufRepeatedFieldValueType(Accessor, "reward"); } + public IProtobufRepeatedFieldValueType Reward { get => new ProtobufRepeatedFieldValueType(Accessor, "reward"); } - public IProtobufRepeatedFieldValueType GenerationTime - { get => new ProtobufRepeatedFieldValueType(Accessor, "generation_time"); } + public IProtobufRepeatedFieldValueType GenerationTime { get => new ProtobufRepeatedFieldValueType(Accessor, "generation_time"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOVolatileItemOfferImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOVolatileItemOfferImpl.cs index 9b8ca8d3e..dc870edd9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOVolatileItemOfferImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSOVolatileItemOfferImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSOVolatileItemOfferImpl : TypedProtobuf, CSOVolatileItemOffer { - public CSOVolatileItemOfferImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSOVolatileItemOfferImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Defidx - { get => Accessor.GetUInt32("defidx"); set => Accessor.SetUInt32("defidx", value); } + public uint Defidx { get => Accessor.GetUInt32("defidx"); set => Accessor.SetUInt32("defidx", value); } - public IProtobufRepeatedFieldValueType FauxItemid - { get => new ProtobufRepeatedFieldValueType(Accessor, "faux_itemid"); } + public IProtobufRepeatedFieldValueType FauxItemid { get => new ProtobufRepeatedFieldValueType(Accessor, "faux_itemid"); } - public IProtobufRepeatedFieldValueType GenerationTime - { get => new ProtobufRepeatedFieldValueType(Accessor, "generation_time"); } + public IProtobufRepeatedFieldValueType GenerationTime { get => new ProtobufRepeatedFieldValueType(Accessor, "generation_time"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsgList_GameEventsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsgList_GameEventsImpl.cs index 079ee1575..4f5607862 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsgList_GameEventsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsgList_GameEventsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsgList_GameEventsImpl : TypedProtobuf, CSVCMsgList_GameEvents { - public CSVCMsgList_GameEventsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsgList_GameEventsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Events - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "events"); } + public IProtobufRepeatedFieldSubMessageType Events { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "events"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsgList_GameEvents_event_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsgList_GameEvents_event_tImpl.cs index 11ce5e12a..415cdce3e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsgList_GameEvents_event_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsgList_GameEvents_event_tImpl.cs @@ -1,24 +1,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsgList_GameEvents_event_tImpl : TypedProtobuf, CSVCMsgList_GameEvents_event_t { - public CSVCMsgList_GameEvents_event_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsgList_GameEvents_event_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Tick - { get => Accessor.GetInt32("tick"); set => Accessor.SetInt32("tick", value); } + public int Tick { get => Accessor.GetInt32("tick"); set => Accessor.SetInt32("tick", value); } - public CSVCMsg_GameEvent Event - { get => new CSVCMsg_GameEventImpl(NativeNetMessages.GetNestedMessage(Address, "event"), false); } + public CSVCMsg_GameEvent Event { get => new CSVCMsg_GameEventImpl(NativeNetMessages.GetNestedMessage(Address, "event"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_BSPDecalImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_BSPDecalImpl.cs index c6d5dba7d..a8bdfab70 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_BSPDecalImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_BSPDecalImpl.cs @@ -1,36 +1,28 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_BSPDecalImpl : NetMessage, CSVCMsg_BSPDecal { - public CSVCMsg_BSPDecalImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_BSPDecalImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public Vector Pos - { get => Accessor.GetVector("pos"); set => Accessor.SetVector("pos", value); } + public Vector Pos { get => Accessor.GetVector("pos"); set => Accessor.SetVector("pos", value); } - public int DecalTextureIndex - { get => Accessor.GetInt32("decal_texture_index"); set => Accessor.SetInt32("decal_texture_index", value); } + public int DecalTextureIndex { get => Accessor.GetInt32("decal_texture_index"); set => Accessor.SetInt32("decal_texture_index", value); } - public int EntityIndex - { get => Accessor.GetInt32("entity_index"); set => Accessor.SetInt32("entity_index", value); } + public int EntityIndex { get => Accessor.GetInt32("entity_index"); set => Accessor.SetInt32("entity_index", value); } - public int ModelIndex - { get => Accessor.GetInt32("model_index"); set => Accessor.SetInt32("model_index", value); } + public int ModelIndex { get => Accessor.GetInt32("model_index"); set => Accessor.SetInt32("model_index", value); } - public bool LowPriority - { get => Accessor.GetBool("low_priority"); set => Accessor.SetBool("low_priority", value); } + public bool LowPriority { get => Accessor.GetBool("low_priority"); set => Accessor.SetBool("low_priority", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_Broadcast_CommandImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_Broadcast_CommandImpl.cs index bca775fa6..04c82e633 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_Broadcast_CommandImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_Broadcast_CommandImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_Broadcast_CommandImpl : NetMessage, CSVCMsg_Broadcast_Command { - public CSVCMsg_Broadcast_CommandImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_Broadcast_CommandImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Cmd - { get => Accessor.GetString("cmd"); set => Accessor.SetString("cmd", value); } + public string Cmd { get => Accessor.GetString("cmd"); set => Accessor.SetString("cmd", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ClassInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ClassInfoImpl.cs index ddad34ad6..c029517a9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ClassInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ClassInfoImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_ClassInfoImpl : NetMessage, CSVCMsg_ClassInfo { - public CSVCMsg_ClassInfoImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_ClassInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public bool CreateOnClient - { get => Accessor.GetBool("create_on_client"); set => Accessor.SetBool("create_on_client", value); } + public bool CreateOnClient { get => Accessor.GetBool("create_on_client"); set => Accessor.SetBool("create_on_client", value); } - public IProtobufRepeatedFieldSubMessageType Classes - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "classes"); } + public IProtobufRepeatedFieldSubMessageType Classes { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "classes"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ClassInfo_class_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ClassInfo_class_tImpl.cs index 6364d2c84..dd7187bef 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ClassInfo_class_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ClassInfo_class_tImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_ClassInfo_class_tImpl : TypedProtobuf, CSVCMsg_ClassInfo_class_t { - public CSVCMsg_ClassInfo_class_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_ClassInfo_class_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int ClassId - { get => Accessor.GetInt32("class_id"); set => Accessor.SetInt32("class_id", value); } + public int ClassId { get => Accessor.GetInt32("class_id"); set => Accessor.SetInt32("class_id", value); } - public string ClassName - { get => Accessor.GetString("class_name"); set => Accessor.SetString("class_name", value); } + public string ClassName { get => Accessor.GetString("class_name"); set => Accessor.SetString("class_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ClearAllStringTablesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ClearAllStringTablesImpl.cs index 38d3beb21..535532892 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ClearAllStringTablesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ClearAllStringTablesImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_ClearAllStringTablesImpl : NetMessage, CSVCMsg_ClearAllStringTables { - public CSVCMsg_ClearAllStringTablesImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_ClearAllStringTablesImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Mapname - { get => Accessor.GetString("mapname"); set => Accessor.SetString("mapname", value); } + public string Mapname { get => Accessor.GetString("mapname"); set => Accessor.SetString("mapname", value); } - public bool CreateTablesSkipped - { get => Accessor.GetBool("create_tables_skipped"); set => Accessor.SetBool("create_tables_skipped", value); } + public bool CreateTablesSkipped { get => Accessor.GetBool("create_tables_skipped"); set => Accessor.SetBool("create_tables_skipped", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_CmdKeyValuesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_CmdKeyValuesImpl.cs index a09547e4e..f866ba6ab 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_CmdKeyValuesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_CmdKeyValuesImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_CmdKeyValuesImpl : NetMessage, CSVCMsg_CmdKeyValues { - public CSVCMsg_CmdKeyValuesImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_CmdKeyValuesImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_CreateStringTableImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_CreateStringTableImpl.cs index 972e579f4..fba6143e1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_CreateStringTableImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_CreateStringTableImpl.cs @@ -1,56 +1,42 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_CreateStringTableImpl : NetMessage, CSVCMsg_CreateStringTable { - public CSVCMsg_CreateStringTableImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_CreateStringTableImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public int NumEntries - { get => Accessor.GetInt32("num_entries"); set => Accessor.SetInt32("num_entries", value); } + public int NumEntries { get => Accessor.GetInt32("num_entries"); set => Accessor.SetInt32("num_entries", value); } - public bool UserDataFixedSize - { get => Accessor.GetBool("user_data_fixed_size"); set => Accessor.SetBool("user_data_fixed_size", value); } + public bool UserDataFixedSize { get => Accessor.GetBool("user_data_fixed_size"); set => Accessor.SetBool("user_data_fixed_size", value); } - public int UserDataSize - { get => Accessor.GetInt32("user_data_size"); set => Accessor.SetInt32("user_data_size", value); } + public int UserDataSize { get => Accessor.GetInt32("user_data_size"); set => Accessor.SetInt32("user_data_size", value); } - public int UserDataSizeBits - { get => Accessor.GetInt32("user_data_size_bits"); set => Accessor.SetInt32("user_data_size_bits", value); } + public int UserDataSizeBits { get => Accessor.GetInt32("user_data_size_bits"); set => Accessor.SetInt32("user_data_size_bits", value); } - public int Flags - { get => Accessor.GetInt32("flags"); set => Accessor.SetInt32("flags", value); } + public int Flags { get => Accessor.GetInt32("flags"); set => Accessor.SetInt32("flags", value); } - public byte[] StringData - { get => Accessor.GetBytes("string_data"); set => Accessor.SetBytes("string_data", value); } + public byte[] StringData { get => Accessor.GetBytes("string_data"); set => Accessor.SetBytes("string_data", value); } - public int UncompressedSize - { get => Accessor.GetInt32("uncompressed_size"); set => Accessor.SetInt32("uncompressed_size", value); } + public int UncompressedSize { get => Accessor.GetInt32("uncompressed_size"); set => Accessor.SetInt32("uncompressed_size", value); } - public bool DataCompressed - { get => Accessor.GetBool("data_compressed"); set => Accessor.SetBool("data_compressed", value); } + public bool DataCompressed { get => Accessor.GetBool("data_compressed"); set => Accessor.SetBool("data_compressed", value); } - public bool UsingVarintBitcounts - { get => Accessor.GetBool("using_varint_bitcounts"); set => Accessor.SetBool("using_varint_bitcounts", value); } + public bool UsingVarintBitcounts { get => Accessor.GetBool("using_varint_bitcounts"); set => Accessor.SetBool("using_varint_bitcounts", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_CrosshairAngleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_CrosshairAngleImpl.cs index c45534b29..56a00f6b6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_CrosshairAngleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_CrosshairAngleImpl.cs @@ -1,20 +1,16 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_CrosshairAngleImpl : TypedProtobuf, CSVCMsg_CrosshairAngle { - public CSVCMsg_CrosshairAngleImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_CrosshairAngleImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public QAngle Angle - { get => Accessor.GetQAngle("angle"); set => Accessor.SetQAngle("angle", value); } + public QAngle Angle { get => Accessor.GetQAngle("angle"); set => Accessor.SetQAngle("angle", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_FixAngleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_FixAngleImpl.cs index ea1a9ff9f..3ed8acb78 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_FixAngleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_FixAngleImpl.cs @@ -1,24 +1,19 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_FixAngleImpl : TypedProtobuf, CSVCMsg_FixAngle { - public CSVCMsg_FixAngleImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_FixAngleImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool Relative - { get => Accessor.GetBool("relative"); set => Accessor.SetBool("relative", value); } + public bool Relative { get => Accessor.GetBool("relative"); set => Accessor.SetBool("relative", value); } - public QAngle Angle - { get => Accessor.GetQAngle("angle"); set => Accessor.SetQAngle("angle", value); } + public QAngle Angle { get => Accessor.GetQAngle("angle"); set => Accessor.SetQAngle("angle", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_FlattenedSerializerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_FlattenedSerializerImpl.cs index 7f1d2d0a6..80c50f98b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_FlattenedSerializerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_FlattenedSerializerImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_FlattenedSerializerImpl : NetMessage, CSVCMsg_FlattenedSerializer { - public CSVCMsg_FlattenedSerializerImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_FlattenedSerializerImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public IProtobufRepeatedFieldSubMessageType Serializers - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "serializers"); } + public IProtobufRepeatedFieldSubMessageType Serializers { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "serializers"); } - public IProtobufRepeatedFieldValueType Symbols - { get => new ProtobufRepeatedFieldValueType(Accessor, "symbols"); } + public IProtobufRepeatedFieldValueType Symbols { get => new ProtobufRepeatedFieldValueType(Accessor, "symbols"); } - public IProtobufRepeatedFieldSubMessageType Fields - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "fields"); } + public IProtobufRepeatedFieldSubMessageType Fields { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "fields"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_FullFrameSplitImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_FullFrameSplitImpl.cs index 147f88f58..e2a2192c5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_FullFrameSplitImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_FullFrameSplitImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_FullFrameSplitImpl : NetMessage, CSVCMsg_FullFrameSplit { - public CSVCMsg_FullFrameSplitImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_FullFrameSplitImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Tick - { get => Accessor.GetInt32("tick"); set => Accessor.SetInt32("tick", value); } + public int Tick { get => Accessor.GetInt32("tick"); set => Accessor.SetInt32("tick", value); } - public int Section - { get => Accessor.GetInt32("section"); set => Accessor.SetInt32("section", value); } + public int Section { get => Accessor.GetInt32("section"); set => Accessor.SetInt32("section", value); } - public int Total - { get => Accessor.GetInt32("total"); set => Accessor.SetInt32("total", value); } + public int Total { get => Accessor.GetInt32("total"); set => Accessor.SetInt32("total", value); } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventImpl.cs index c47e037f4..4085d4143 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_GameEventImpl : TypedProtobuf, CSVCMsg_GameEvent { - public CSVCMsg_GameEventImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_GameEventImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string EventName - { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } + public string EventName { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } - public int Eventid - { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } + public int Eventid { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } - public IProtobufRepeatedFieldSubMessageType Keys - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "keys"); } + public IProtobufRepeatedFieldSubMessageType Keys { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "keys"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventListImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventListImpl.cs index b822d95ee..e15779840 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventListImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventListImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_GameEventListImpl : TypedProtobuf, CSVCMsg_GameEventList { - public CSVCMsg_GameEventListImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_GameEventListImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Descriptors - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "descriptors"); } + public IProtobufRepeatedFieldSubMessageType Descriptors { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "descriptors"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventList_descriptor_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventList_descriptor_tImpl.cs index 45bd8e7e6..8365dcc66 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventList_descriptor_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventList_descriptor_tImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_GameEventList_descriptor_tImpl : TypedProtobuf, CSVCMsg_GameEventList_descriptor_t { - public CSVCMsg_GameEventList_descriptor_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_GameEventList_descriptor_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Eventid - { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } + public int Eventid { get => Accessor.GetInt32("eventid"); set => Accessor.SetInt32("eventid", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public IProtobufRepeatedFieldSubMessageType Keys - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "keys"); } + public IProtobufRepeatedFieldSubMessageType Keys { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "keys"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventList_key_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventList_key_tImpl.cs index bcc52c144..9a3d44a28 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventList_key_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEventList_key_tImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_GameEventList_key_tImpl : TypedProtobuf, CSVCMsg_GameEventList_key_t { - public CSVCMsg_GameEventList_key_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_GameEventList_key_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Type - { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + public int Type { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEvent_key_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEvent_key_tImpl.cs index 97185950d..1eb9680d2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEvent_key_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameEvent_key_tImpl.cs @@ -1,48 +1,36 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_GameEvent_key_tImpl : TypedProtobuf, CSVCMsg_GameEvent_key_t { - public CSVCMsg_GameEvent_key_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_GameEvent_key_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Type - { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + public int Type { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } - public string ValString - { get => Accessor.GetString("val_string"); set => Accessor.SetString("val_string", value); } + public string ValString { get => Accessor.GetString("val_string"); set => Accessor.SetString("val_string", value); } - public float ValFloat - { get => Accessor.GetFloat("val_float"); set => Accessor.SetFloat("val_float", value); } + public float ValFloat { get => Accessor.GetFloat("val_float"); set => Accessor.SetFloat("val_float", value); } - public int ValLong - { get => Accessor.GetInt32("val_long"); set => Accessor.SetInt32("val_long", value); } + public int ValLong { get => Accessor.GetInt32("val_long"); set => Accessor.SetInt32("val_long", value); } - public int ValShort - { get => Accessor.GetInt32("val_short"); set => Accessor.SetInt32("val_short", value); } + public int ValShort { get => Accessor.GetInt32("val_short"); set => Accessor.SetInt32("val_short", value); } - public int ValByte - { get => Accessor.GetInt32("val_byte"); set => Accessor.SetInt32("val_byte", value); } + public int ValByte { get => Accessor.GetInt32("val_byte"); set => Accessor.SetInt32("val_byte", value); } - public bool ValBool - { get => Accessor.GetBool("val_bool"); set => Accessor.SetBool("val_bool", value); } + public bool ValBool { get => Accessor.GetBool("val_bool"); set => Accessor.SetBool("val_bool", value); } - public ulong ValUint64 - { get => Accessor.GetUInt64("val_uint64"); set => Accessor.SetUInt64("val_uint64", value); } + public ulong ValUint64 { get => Accessor.GetUInt64("val_uint64"); set => Accessor.SetUInt64("val_uint64", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameSessionConfigurationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameSessionConfigurationImpl.cs index 63d03cc83..315f1ac35 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameSessionConfigurationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GameSessionConfigurationImpl.cs @@ -1,92 +1,69 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_GameSessionConfigurationImpl : TypedProtobuf, CSVCMsg_GameSessionConfiguration { - public CSVCMsg_GameSessionConfigurationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_GameSessionConfigurationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool IsMultiplayer - { get => Accessor.GetBool("is_multiplayer"); set => Accessor.SetBool("is_multiplayer", value); } + public bool IsMultiplayer { get => Accessor.GetBool("is_multiplayer"); set => Accessor.SetBool("is_multiplayer", value); } - public bool IsLoadsavegame - { get => Accessor.GetBool("is_loadsavegame"); set => Accessor.SetBool("is_loadsavegame", value); } + public bool IsLoadsavegame { get => Accessor.GetBool("is_loadsavegame"); set => Accessor.SetBool("is_loadsavegame", value); } - public bool IsBackgroundMap - { get => Accessor.GetBool("is_background_map"); set => Accessor.SetBool("is_background_map", value); } + public bool IsBackgroundMap { get => Accessor.GetBool("is_background_map"); set => Accessor.SetBool("is_background_map", value); } - public bool IsHeadless - { get => Accessor.GetBool("is_headless"); set => Accessor.SetBool("is_headless", value); } + public bool IsHeadless { get => Accessor.GetBool("is_headless"); set => Accessor.SetBool("is_headless", value); } - public uint MinClientLimit - { get => Accessor.GetUInt32("min_client_limit"); set => Accessor.SetUInt32("min_client_limit", value); } + public uint MinClientLimit { get => Accessor.GetUInt32("min_client_limit"); set => Accessor.SetUInt32("min_client_limit", value); } - public uint MaxClientLimit - { get => Accessor.GetUInt32("max_client_limit"); set => Accessor.SetUInt32("max_client_limit", value); } + public uint MaxClientLimit { get => Accessor.GetUInt32("max_client_limit"); set => Accessor.SetUInt32("max_client_limit", value); } - public uint MaxClients - { get => Accessor.GetUInt32("max_clients"); set => Accessor.SetUInt32("max_clients", value); } + public uint MaxClients { get => Accessor.GetUInt32("max_clients"); set => Accessor.SetUInt32("max_clients", value); } - public uint TickInterval - { get => Accessor.GetUInt32("tick_interval"); set => Accessor.SetUInt32("tick_interval", value); } + public uint TickInterval { get => Accessor.GetUInt32("tick_interval"); set => Accessor.SetUInt32("tick_interval", value); } - public string Hostname - { get => Accessor.GetString("hostname"); set => Accessor.SetString("hostname", value); } + public string Hostname { get => Accessor.GetString("hostname"); set => Accessor.SetString("hostname", value); } - public string Savegamename - { get => Accessor.GetString("savegamename"); set => Accessor.SetString("savegamename", value); } + public string Savegamename { get => Accessor.GetString("savegamename"); set => Accessor.SetString("savegamename", value); } - public string S1Mapname - { get => Accessor.GetString("s1_mapname"); set => Accessor.SetString("s1_mapname", value); } + public string S1Mapname { get => Accessor.GetString("s1_mapname"); set => Accessor.SetString("s1_mapname", value); } - public string Gamemode - { get => Accessor.GetString("gamemode"); set => Accessor.SetString("gamemode", value); } + public string Gamemode { get => Accessor.GetString("gamemode"); set => Accessor.SetString("gamemode", value); } - public string ServerIpAddress - { get => Accessor.GetString("server_ip_address"); set => Accessor.SetString("server_ip_address", value); } + public string ServerIpAddress { get => Accessor.GetString("server_ip_address"); set => Accessor.SetString("server_ip_address", value); } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } - public bool IsLocalonly - { get => Accessor.GetBool("is_localonly"); set => Accessor.SetBool("is_localonly", value); } + public bool IsLocalonly { get => Accessor.GetBool("is_localonly"); set => Accessor.SetBool("is_localonly", value); } - public bool NoSteamServer - { get => Accessor.GetBool("no_steam_server"); set => Accessor.SetBool("no_steam_server", value); } + public bool NoSteamServer { get => Accessor.GetBool("no_steam_server"); set => Accessor.SetBool("no_steam_server", value); } - public bool IsTransition - { get => Accessor.GetBool("is_transition"); set => Accessor.SetBool("is_transition", value); } + public bool IsTransition { get => Accessor.GetBool("is_transition"); set => Accessor.SetBool("is_transition", value); } - public string Previouslevel - { get => Accessor.GetString("previouslevel"); set => Accessor.SetString("previouslevel", value); } + public string Previouslevel { get => Accessor.GetString("previouslevel"); set => Accessor.SetString("previouslevel", value); } - public string Landmarkname - { get => Accessor.GetString("landmarkname"); set => Accessor.SetString("landmarkname", value); } + public string Landmarkname { get => Accessor.GetString("landmarkname"); set => Accessor.SetString("landmarkname", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GetCvarValueImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GetCvarValueImpl.cs index 57f61e938..f09379e0d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GetCvarValueImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_GetCvarValueImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_GetCvarValueImpl : NetMessage, CSVCMsg_GetCvarValue { - public CSVCMsg_GetCvarValueImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_GetCvarValueImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Cookie - { get => Accessor.GetInt32("cookie"); set => Accessor.SetInt32("cookie", value); } + public int Cookie { get => Accessor.GetInt32("cookie"); set => Accessor.SetInt32("cookie", value); } - public string CvarName - { get => Accessor.GetString("cvar_name"); set => Accessor.SetString("cvar_name", value); } + public string CvarName { get => Accessor.GetString("cvar_name"); set => Accessor.SetString("cvar_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_HLTVStatusImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_HLTVStatusImpl.cs index e1570cdcc..839daba0f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_HLTVStatusImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_HLTVStatusImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_HLTVStatusImpl : NetMessage, CSVCMsg_HLTVStatus { - public CSVCMsg_HLTVStatusImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_HLTVStatusImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Master - { get => Accessor.GetString("master"); set => Accessor.SetString("master", value); } + public string Master { get => Accessor.GetString("master"); set => Accessor.SetString("master", value); } - public int Clients - { get => Accessor.GetInt32("clients"); set => Accessor.SetInt32("clients", value); } + public int Clients { get => Accessor.GetInt32("clients"); set => Accessor.SetInt32("clients", value); } - public int Slots - { get => Accessor.GetInt32("slots"); set => Accessor.SetInt32("slots", value); } + public int Slots { get => Accessor.GetInt32("slots"); set => Accessor.SetInt32("slots", value); } - public int Proxies - { get => Accessor.GetInt32("proxies"); set => Accessor.SetInt32("proxies", value); } + public int Proxies { get => Accessor.GetInt32("proxies"); set => Accessor.SetInt32("proxies", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_HltvFixupOperatorStatusImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_HltvFixupOperatorStatusImpl.cs index 794701c02..7777b9588 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_HltvFixupOperatorStatusImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_HltvFixupOperatorStatusImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_HltvFixupOperatorStatusImpl : NetMessage, CSVCMsg_HltvFixupOperatorStatus { - public CSVCMsg_HltvFixupOperatorStatusImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_HltvFixupOperatorStatusImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Mode - { get => Accessor.GetUInt32("mode"); set => Accessor.SetUInt32("mode", value); } + public uint Mode { get => Accessor.GetUInt32("mode"); set => Accessor.SetUInt32("mode", value); } - public string OverrideOperatorName - { get => Accessor.GetString("override_operator_name"); set => Accessor.SetString("override_operator_name", value); } + public string OverrideOperatorName { get => Accessor.GetString("override_operator_name"); set => Accessor.SetString("override_operator_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_HltvReplayImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_HltvReplayImpl.cs index cd4e70b77..089528795 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_HltvReplayImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_HltvReplayImpl.cs @@ -1,48 +1,36 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_HltvReplayImpl : TypedProtobuf, CSVCMsg_HltvReplay { - public CSVCMsg_HltvReplayImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_HltvReplayImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Delay - { get => Accessor.GetInt32("delay"); set => Accessor.SetInt32("delay", value); } + public int Delay { get => Accessor.GetInt32("delay"); set => Accessor.SetInt32("delay", value); } - public int PrimaryTarget - { get => Accessor.GetInt32("primary_target"); set => Accessor.SetInt32("primary_target", value); } + public int PrimaryTarget { get => Accessor.GetInt32("primary_target"); set => Accessor.SetInt32("primary_target", value); } - public int ReplayStopAt - { get => Accessor.GetInt32("replay_stop_at"); set => Accessor.SetInt32("replay_stop_at", value); } + public int ReplayStopAt { get => Accessor.GetInt32("replay_stop_at"); set => Accessor.SetInt32("replay_stop_at", value); } - public int ReplayStartAt - { get => Accessor.GetInt32("replay_start_at"); set => Accessor.SetInt32("replay_start_at", value); } + public int ReplayStartAt { get => Accessor.GetInt32("replay_start_at"); set => Accessor.SetInt32("replay_start_at", value); } - public int ReplaySlowdownBegin - { get => Accessor.GetInt32("replay_slowdown_begin"); set => Accessor.SetInt32("replay_slowdown_begin", value); } + public int ReplaySlowdownBegin { get => Accessor.GetInt32("replay_slowdown_begin"); set => Accessor.SetInt32("replay_slowdown_begin", value); } - public int ReplaySlowdownEnd - { get => Accessor.GetInt32("replay_slowdown_end"); set => Accessor.SetInt32("replay_slowdown_end", value); } + public int ReplaySlowdownEnd { get => Accessor.GetInt32("replay_slowdown_end"); set => Accessor.SetInt32("replay_slowdown_end", value); } - public float ReplaySlowdownRate - { get => Accessor.GetFloat("replay_slowdown_rate"); set => Accessor.SetFloat("replay_slowdown_rate", value); } + public float ReplaySlowdownRate { get => Accessor.GetFloat("replay_slowdown_rate"); set => Accessor.SetFloat("replay_slowdown_rate", value); } - public int Reason - { get => Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } + public int Reason { get => Accessor.GetInt32("reason"); set => Accessor.SetInt32("reason", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_MenuImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_MenuImpl.cs index 4398b610d..12daffedb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_MenuImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_MenuImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_MenuImpl : NetMessage, CSVCMsg_Menu { - public CSVCMsg_MenuImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_MenuImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int DialogType - { get => Accessor.GetInt32("dialog_type"); set => Accessor.SetInt32("dialog_type", value); } + public int DialogType { get => Accessor.GetInt32("dialog_type"); set => Accessor.SetInt32("dialog_type", value); } - public byte[] MenuKeyValues - { get => Accessor.GetBytes("menu_key_values"); set => Accessor.SetBytes("menu_key_values", value); } + public byte[] MenuKeyValues { get => Accessor.GetBytes("menu_key_values"); set => Accessor.SetBytes("menu_key_values", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_NextMsgPredictedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_NextMsgPredictedImpl.cs index 7030a966d..192e737d7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_NextMsgPredictedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_NextMsgPredictedImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_NextMsgPredictedImpl : NetMessage, CSVCMsg_NextMsgPredicted { - public CSVCMsg_NextMsgPredictedImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_NextMsgPredictedImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int PredictedByPlayerSlot - { get => Accessor.GetInt32("predicted_by_player_slot"); set => Accessor.SetInt32("predicted_by_player_slot", value); } + public int PredictedByPlayerSlot { get => Accessor.GetInt32("predicted_by_player_slot"); set => Accessor.SetInt32("predicted_by_player_slot", value); } - public uint MessageTypeId - { get => Accessor.GetUInt32("message_type_id"); set => Accessor.SetUInt32("message_type_id", value); } + public uint MessageTypeId { get => Accessor.GetUInt32("message_type_id"); set => Accessor.SetUInt32("message_type_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntitiesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntitiesImpl.cs index 6fe0e53ab..61af99116 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntitiesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntitiesImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,96 +8,74 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_PacketEntitiesImpl : NetMessage, CSVCMsg_PacketEntities { - public CSVCMsg_PacketEntitiesImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_PacketEntitiesImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int MaxEntries - { get => Accessor.GetInt32("max_entries"); set => Accessor.SetInt32("max_entries", value); } + public int MaxEntries { get => Accessor.GetInt32("max_entries"); set => Accessor.SetInt32("max_entries", value); } - public int UpdatedEntries - { get => Accessor.GetInt32("updated_entries"); set => Accessor.SetInt32("updated_entries", value); } + public int UpdatedEntries { get => Accessor.GetInt32("updated_entries"); set => Accessor.SetInt32("updated_entries", value); } - public bool LegacyIsDelta - { get => Accessor.GetBool("legacy_is_delta"); set => Accessor.SetBool("legacy_is_delta", value); } + public bool LegacyIsDelta { get => Accessor.GetBool("legacy_is_delta"); set => Accessor.SetBool("legacy_is_delta", value); } - public bool UpdateBaseline - { get => Accessor.GetBool("update_baseline"); set => Accessor.SetBool("update_baseline", value); } + public bool UpdateBaseline { get => Accessor.GetBool("update_baseline"); set => Accessor.SetBool("update_baseline", value); } - public int Baseline - { get => Accessor.GetInt32("baseline"); set => Accessor.SetInt32("baseline", value); } + public int Baseline { get => Accessor.GetInt32("baseline"); set => Accessor.SetInt32("baseline", value); } - public int DeltaFrom - { get => Accessor.GetInt32("delta_from"); set => Accessor.SetInt32("delta_from", value); } + public int DeltaFrom { get => Accessor.GetInt32("delta_from"); set => Accessor.SetInt32("delta_from", value); } - public byte[] EntityData - { get => Accessor.GetBytes("entity_data"); set => Accessor.SetBytes("entity_data", value); } + public byte[] EntityData { get => Accessor.GetBytes("entity_data"); set => Accessor.SetBytes("entity_data", value); } - public bool PendingFullFrame - { get => Accessor.GetBool("pending_full_frame"); set => Accessor.SetBool("pending_full_frame", value); } + public bool PendingFullFrame { get => Accessor.GetBool("pending_full_frame"); set => Accessor.SetBool("pending_full_frame", value); } - public uint ActiveSpawngroupHandle - { get => Accessor.GetUInt32("active_spawngroup_handle"); set => Accessor.SetUInt32("active_spawngroup_handle", value); } + public uint ActiveSpawngroupHandle { get => Accessor.GetUInt32("active_spawngroup_handle"); set => Accessor.SetUInt32("active_spawngroup_handle", value); } - public uint MaxSpawngroupCreationsequence - { get => Accessor.GetUInt32("max_spawngroup_creationsequence"); set => Accessor.SetUInt32("max_spawngroup_creationsequence", value); } + public uint MaxSpawngroupCreationsequence { get => Accessor.GetUInt32("max_spawngroup_creationsequence"); set => Accessor.SetUInt32("max_spawngroup_creationsequence", value); } - public uint LastCmdNumberExecuted - { get => Accessor.GetUInt32("last_cmd_number_executed"); set => Accessor.SetUInt32("last_cmd_number_executed", value); } + public uint LastCmdNumberExecuted { get => Accessor.GetUInt32("last_cmd_number_executed"); set => Accessor.SetUInt32("last_cmd_number_executed", value); } - public int LastCmdNumberRecvDelta - { get => Accessor.GetInt32("last_cmd_number_recv_delta"); set => Accessor.SetInt32("last_cmd_number_recv_delta", value); } + public int LastCmdNumberRecvDelta { get => Accessor.GetInt32("last_cmd_number_recv_delta"); set => Accessor.SetInt32("last_cmd_number_recv_delta", value); } - public uint ServerTick - { get => Accessor.GetUInt32("server_tick"); set => Accessor.SetUInt32("server_tick", value); } + public uint ServerTick { get => Accessor.GetUInt32("server_tick"); set => Accessor.SetUInt32("server_tick", value); } - public byte[] SerializedEntities - { get => Accessor.GetBytes("serialized_entities"); set => Accessor.SetBytes("serialized_entities", value); } + public byte[] SerializedEntities { get => Accessor.GetBytes("serialized_entities"); set => Accessor.SetBytes("serialized_entities", value); } - public IProtobufRepeatedFieldSubMessageType AlternateBaselines - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "alternate_baselines"); } + public IProtobufRepeatedFieldSubMessageType AlternateBaselines { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "alternate_baselines"); } - public uint HasPvsVisBitsDeprecated - { get => Accessor.GetUInt32("has_pvs_vis_bits_deprecated"); set => Accessor.SetUInt32("has_pvs_vis_bits_deprecated", value); } + public uint HasPvsVisBitsDeprecated { get => Accessor.GetUInt32("has_pvs_vis_bits_deprecated"); set => Accessor.SetUInt32("has_pvs_vis_bits_deprecated", value); } - public IProtobufRepeatedFieldValueType CmdRecvStatus - { get => new ProtobufRepeatedFieldValueType(Accessor, "cmd_recv_status"); } + public IProtobufRepeatedFieldValueType CmdRecvStatus { get => new ProtobufRepeatedFieldValueType(Accessor, "cmd_recv_status"); } - public CSVCMsg_PacketEntities_non_transmitted_entities_t NonTransmittedEntities - { get => new CSVCMsg_PacketEntities_non_transmitted_entities_tImpl(NativeNetMessages.GetNestedMessage(Address, "non_transmitted_entities"), false); } + public CSVCMsg_PacketEntities_non_transmitted_entities_t NonTransmittedEntities { get => new CSVCMsg_PacketEntities_non_transmitted_entities_tImpl(NativeNetMessages.GetNestedMessage(Address, "non_transmitted_entities"), false); } - public uint CqStarvedCommandTicks - { get => Accessor.GetUInt32("cq_starved_command_ticks"); set => Accessor.SetUInt32("cq_starved_command_ticks", value); } + public uint CqStarvedCommandTicks { get => Accessor.GetUInt32("cq_starved_command_ticks"); set => Accessor.SetUInt32("cq_starved_command_ticks", value); } - public uint CqDiscardedCommandTicks - { get => Accessor.GetUInt32("cq_discarded_command_ticks"); set => Accessor.SetUInt32("cq_discarded_command_ticks", value); } + public uint CqDiscardedCommandTicks { get => Accessor.GetUInt32("cq_discarded_command_ticks"); set => Accessor.SetUInt32("cq_discarded_command_ticks", value); } - public CSVCMsg_PacketEntities_outofpvs_entity_updates_t OutofpvsEntityUpdates - { get => new CSVCMsg_PacketEntities_outofpvs_entity_updates_tImpl(NativeNetMessages.GetNestedMessage(Address, "outofpvs_entity_updates"), false); } + public CSVCMsg_PacketEntities_outofpvs_entity_updates_t OutofpvsEntityUpdates { get => new CSVCMsg_PacketEntities_outofpvs_entity_updates_tImpl(NativeNetMessages.GetNestedMessage(Address, "outofpvs_entity_updates"), false); } - public byte[] DevPadding - { get => Accessor.GetBytes("dev_padding"); set => Accessor.SetBytes("dev_padding", value); } + public byte[] DevPadding { get => Accessor.GetBytes("dev_padding"); set => Accessor.SetBytes("dev_padding", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntities_alternate_baseline_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntities_alternate_baseline_tImpl.cs index 11571d680..2206c2d4f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntities_alternate_baseline_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntities_alternate_baseline_tImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_PacketEntities_alternate_baseline_tImpl : TypedProtobuf, CSVCMsg_PacketEntities_alternate_baseline_t { - public CSVCMsg_PacketEntities_alternate_baseline_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_PacketEntities_alternate_baseline_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int EntityIndex - { get => Accessor.GetInt32("entity_index"); set => Accessor.SetInt32("entity_index", value); } + public int EntityIndex { get => Accessor.GetInt32("entity_index"); set => Accessor.SetInt32("entity_index", value); } - public int BaselineIndex - { get => Accessor.GetInt32("baseline_index"); set => Accessor.SetInt32("baseline_index", value); } + public int BaselineIndex { get => Accessor.GetInt32("baseline_index"); set => Accessor.SetInt32("baseline_index", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntities_non_transmitted_entities_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntities_non_transmitted_entities_tImpl.cs index 19e42684b..64fe50a46 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntities_non_transmitted_entities_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntities_non_transmitted_entities_tImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_PacketEntities_non_transmitted_entities_tImpl : TypedProtobuf, CSVCMsg_PacketEntities_non_transmitted_entities_t { - public CSVCMsg_PacketEntities_non_transmitted_entities_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_PacketEntities_non_transmitted_entities_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int HeaderCount - { get => Accessor.GetInt32("header_count"); set => Accessor.SetInt32("header_count", value); } + public int HeaderCount { get => Accessor.GetInt32("header_count"); set => Accessor.SetInt32("header_count", value); } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntities_outofpvs_entity_updates_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntities_outofpvs_entity_updates_tImpl.cs index 47901b215..539e329b2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntities_outofpvs_entity_updates_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketEntities_outofpvs_entity_updates_tImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_PacketEntities_outofpvs_entity_updates_tImpl : TypedProtobuf, CSVCMsg_PacketEntities_outofpvs_entity_updates_t { - public CSVCMsg_PacketEntities_outofpvs_entity_updates_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_PacketEntities_outofpvs_entity_updates_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Count - { get => Accessor.GetInt32("count"); set => Accessor.SetInt32("count", value); } + public int Count { get => Accessor.GetInt32("count"); set => Accessor.SetInt32("count", value); } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketReliableImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketReliableImpl.cs index 44f44632d..f910c95fc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketReliableImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PacketReliableImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_PacketReliableImpl : NetMessage, CSVCMsg_PacketReliable { - public CSVCMsg_PacketReliableImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_PacketReliableImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Tick - { get => Accessor.GetInt32("tick"); set => Accessor.SetInt32("tick", value); } + public int Tick { get => Accessor.GetInt32("tick"); set => Accessor.SetInt32("tick", value); } - public int Messagessize - { get => Accessor.GetInt32("messagessize"); set => Accessor.SetInt32("messagessize", value); } + public int Messagessize { get => Accessor.GetInt32("messagessize"); set => Accessor.SetInt32("messagessize", value); } - public bool State - { get => Accessor.GetBool("state"); set => Accessor.SetBool("state", value); } + public bool State { get => Accessor.GetBool("state"); set => Accessor.SetBool("state", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PeerListImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PeerListImpl.cs index 84a9ff7d9..01ae99746 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PeerListImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PeerListImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_PeerListImpl : NetMessage, CSVCMsg_PeerList { - public CSVCMsg_PeerListImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_PeerListImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public IProtobufRepeatedFieldSubMessageType Peer - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "peer"); } + public IProtobufRepeatedFieldSubMessageType Peer { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "peer"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PrefetchImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PrefetchImpl.cs index f3edb992b..0ceae30e3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PrefetchImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PrefetchImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_PrefetchImpl : NetMessage, CSVCMsg_Prefetch { - public CSVCMsg_PrefetchImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_PrefetchImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int SoundIndex - { get => Accessor.GetInt32("sound_index"); set => Accessor.SetInt32("sound_index", value); } + public int SoundIndex { get => Accessor.GetInt32("sound_index"); set => Accessor.SetInt32("sound_index", value); } - public PrefetchType ResourceType - { get => (PrefetchType)Accessor.GetInt32("resource_type"); set => Accessor.SetInt32("resource_type", (int)value); } + public PrefetchType ResourceType { get => (PrefetchType)Accessor.GetInt32("resource_type"); set => Accessor.SetInt32("resource_type", (int)value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PrintImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PrintImpl.cs index 90e8ee829..9921a053f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PrintImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_PrintImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_PrintImpl : NetMessage, CSVCMsg_Print { - public CSVCMsg_PrintImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_PrintImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_RconServerDetailsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_RconServerDetailsImpl.cs index 916e0d86c..4fddd8728 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_RconServerDetailsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_RconServerDetailsImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_RconServerDetailsImpl : NetMessage, CSVCMsg_RconServerDetails { - public CSVCMsg_RconServerDetailsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_RconServerDetailsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public byte[] Token - { get => Accessor.GetBytes("token"); set => Accessor.SetBytes("token", value); } + public byte[] Token { get => Accessor.GetBytes("token"); set => Accessor.SetBytes("token", value); } - public string Details - { get => Accessor.GetString("details"); set => Accessor.SetString("details", value); } + public string Details { get => Accessor.GetString("details"); set => Accessor.SetString("details", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SendTableImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SendTableImpl.cs index c19ef6357..84fdbb963 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SendTableImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SendTableImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_SendTableImpl : TypedProtobuf, CSVCMsg_SendTable { - public CSVCMsg_SendTableImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_SendTableImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool IsEnd - { get => Accessor.GetBool("is_end"); set => Accessor.SetBool("is_end", value); } + public bool IsEnd { get => Accessor.GetBool("is_end"); set => Accessor.SetBool("is_end", value); } - public string NetTableName - { get => Accessor.GetString("net_table_name"); set => Accessor.SetString("net_table_name", value); } + public string NetTableName { get => Accessor.GetString("net_table_name"); set => Accessor.SetString("net_table_name", value); } - public bool NeedsDecoder - { get => Accessor.GetBool("needs_decoder"); set => Accessor.SetBool("needs_decoder", value); } + public bool NeedsDecoder { get => Accessor.GetBool("needs_decoder"); set => Accessor.SetBool("needs_decoder", value); } - public IProtobufRepeatedFieldSubMessageType Props - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "props"); } + public IProtobufRepeatedFieldSubMessageType Props { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "props"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SendTable_sendprop_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SendTable_sendprop_tImpl.cs index 5d74800f7..f360f6610 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SendTable_sendprop_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SendTable_sendprop_tImpl.cs @@ -1,52 +1,39 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_SendTable_sendprop_tImpl : TypedProtobuf, CSVCMsg_SendTable_sendprop_t { - public CSVCMsg_SendTable_sendprop_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_SendTable_sendprop_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Type - { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + public int Type { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } - public string VarName - { get => Accessor.GetString("var_name"); set => Accessor.SetString("var_name", value); } + public string VarName { get => Accessor.GetString("var_name"); set => Accessor.SetString("var_name", value); } - public int Flags - { get => Accessor.GetInt32("flags"); set => Accessor.SetInt32("flags", value); } + public int Flags { get => Accessor.GetInt32("flags"); set => Accessor.SetInt32("flags", value); } - public int Priority - { get => Accessor.GetInt32("priority"); set => Accessor.SetInt32("priority", value); } + public int Priority { get => Accessor.GetInt32("priority"); set => Accessor.SetInt32("priority", value); } - public string DtName - { get => Accessor.GetString("dt_name"); set => Accessor.SetString("dt_name", value); } + public string DtName { get => Accessor.GetString("dt_name"); set => Accessor.SetString("dt_name", value); } - public int NumElements - { get => Accessor.GetInt32("num_elements"); set => Accessor.SetInt32("num_elements", value); } + public int NumElements { get => Accessor.GetInt32("num_elements"); set => Accessor.SetInt32("num_elements", value); } - public float LowValue - { get => Accessor.GetFloat("low_value"); set => Accessor.SetFloat("low_value", value); } + public float LowValue { get => Accessor.GetFloat("low_value"); set => Accessor.SetFloat("low_value", value); } - public float HighValue - { get => Accessor.GetFloat("high_value"); set => Accessor.SetFloat("high_value", value); } + public float HighValue { get => Accessor.GetFloat("high_value"); set => Accessor.SetFloat("high_value", value); } - public int NumBits - { get => Accessor.GetInt32("num_bits"); set => Accessor.SetInt32("num_bits", value); } + public int NumBits { get => Accessor.GetInt32("num_bits"); set => Accessor.SetInt32("num_bits", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ServerInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ServerInfoImpl.cs index 438c1db28..2b9ed899f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ServerInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ServerInfoImpl.cs @@ -1,80 +1,62 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_ServerInfoImpl : NetMessage, CSVCMsg_ServerInfo { - public CSVCMsg_ServerInfoImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_ServerInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Protocol - { get => Accessor.GetInt32("protocol"); set => Accessor.SetInt32("protocol", value); } + public int Protocol { get => Accessor.GetInt32("protocol"); set => Accessor.SetInt32("protocol", value); } - public int ServerCount - { get => Accessor.GetInt32("server_count"); set => Accessor.SetInt32("server_count", value); } + public int ServerCount { get => Accessor.GetInt32("server_count"); set => Accessor.SetInt32("server_count", value); } - public bool IsDedicated - { get => Accessor.GetBool("is_dedicated"); set => Accessor.SetBool("is_dedicated", value); } + public bool IsDedicated { get => Accessor.GetBool("is_dedicated"); set => Accessor.SetBool("is_dedicated", value); } - public bool IsHltv - { get => Accessor.GetBool("is_hltv"); set => Accessor.SetBool("is_hltv", value); } + public bool IsHltv { get => Accessor.GetBool("is_hltv"); set => Accessor.SetBool("is_hltv", value); } - public int COs - { get => Accessor.GetInt32("c_os"); set => Accessor.SetInt32("c_os", value); } + public int COs { get => Accessor.GetInt32("c_os"); set => Accessor.SetInt32("c_os", value); } - public int MaxClients - { get => Accessor.GetInt32("max_clients"); set => Accessor.SetInt32("max_clients", value); } + public int MaxClients { get => Accessor.GetInt32("max_clients"); set => Accessor.SetInt32("max_clients", value); } - public int MaxClasses - { get => Accessor.GetInt32("max_classes"); set => Accessor.SetInt32("max_classes", value); } + public int MaxClasses { get => Accessor.GetInt32("max_classes"); set => Accessor.SetInt32("max_classes", value); } - public int PlayerSlot - { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } + public int PlayerSlot { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } - public float TickInterval - { get => Accessor.GetFloat("tick_interval"); set => Accessor.SetFloat("tick_interval", value); } + public float TickInterval { get => Accessor.GetFloat("tick_interval"); set => Accessor.SetFloat("tick_interval", value); } - public string GameDir - { get => Accessor.GetString("game_dir"); set => Accessor.SetString("game_dir", value); } + public string GameDir { get => Accessor.GetString("game_dir"); set => Accessor.SetString("game_dir", value); } - public string MapName - { get => Accessor.GetString("map_name"); set => Accessor.SetString("map_name", value); } + public string MapName { get => Accessor.GetString("map_name"); set => Accessor.SetString("map_name", value); } - public string SkyName - { get => Accessor.GetString("sky_name"); set => Accessor.SetString("sky_name", value); } + public string SkyName { get => Accessor.GetString("sky_name"); set => Accessor.SetString("sky_name", value); } - public string HostName - { get => Accessor.GetString("host_name"); set => Accessor.SetString("host_name", value); } + public string HostName { get => Accessor.GetString("host_name"); set => Accessor.SetString("host_name", value); } - public string AddonName - { get => Accessor.GetString("addon_name"); set => Accessor.SetString("addon_name", value); } + public string AddonName { get => Accessor.GetString("addon_name"); set => Accessor.SetString("addon_name", value); } - public CSVCMsg_GameSessionConfiguration GameSessionConfig - { get => new CSVCMsg_GameSessionConfigurationImpl(NativeNetMessages.GetNestedMessage(Address, "game_session_config"), false); } + public CSVCMsg_GameSessionConfiguration GameSessionConfig { get => new CSVCMsg_GameSessionConfigurationImpl(NativeNetMessages.GetNestedMessage(Address, "game_session_config"), false); } - public byte[] GameSessionManifest - { get => Accessor.GetBytes("game_session_manifest"); set => Accessor.SetBytes("game_session_manifest", value); } + public byte[] GameSessionManifest { get => Accessor.GetBytes("game_session_manifest"); set => Accessor.SetBytes("game_session_manifest", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ServerSteamIDImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ServerSteamIDImpl.cs index 540a633a1..52ec1d910 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ServerSteamIDImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_ServerSteamIDImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_ServerSteamIDImpl : NetMessage, CSVCMsg_ServerSteamID { - public CSVCMsg_ServerSteamIDImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_ServerSteamIDImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public ulong SteamId - { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } + public ulong SteamId { get => Accessor.GetUInt64("steam_id"); set => Accessor.SetUInt64("steam_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SetPauseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SetPauseImpl.cs index 247de1482..027874fc7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SetPauseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SetPauseImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_SetPauseImpl : NetMessage, CSVCMsg_SetPause { - public CSVCMsg_SetPauseImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_SetPauseImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public bool Paused - { get => Accessor.GetBool("paused"); set => Accessor.SetBool("paused", value); } + public bool Paused { get => Accessor.GetBool("paused"); set => Accessor.SetBool("paused", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SetViewImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SetViewImpl.cs index 5b7319afb..2a3ae2c3e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SetViewImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SetViewImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_SetViewImpl : NetMessage, CSVCMsg_SetView { - public CSVCMsg_SetViewImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_SetViewImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int EntityIndex - { get => Accessor.GetInt32("entity_index"); set => Accessor.SetInt32("entity_index", value); } + public int EntityIndex { get => Accessor.GetInt32("entity_index"); set => Accessor.SetInt32("entity_index", value); } - public int Slot - { get => Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } + public int Slot { get => Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SoundsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SoundsImpl.cs index 462e65aa0..bcaf00dd5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SoundsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SoundsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_SoundsImpl : NetMessage, CSVCMsg_Sounds { - public CSVCMsg_SoundsImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_SoundsImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public bool ReliableSound - { get => Accessor.GetBool("reliable_sound"); set => Accessor.SetBool("reliable_sound", value); } + public bool ReliableSound { get => Accessor.GetBool("reliable_sound"); set => Accessor.SetBool("reliable_sound", value); } - public IProtobufRepeatedFieldSubMessageType Sounds - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "sounds"); } + public IProtobufRepeatedFieldSubMessageType Sounds { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "sounds"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_Sounds_sounddata_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_Sounds_sounddata_tImpl.cs index d23a7762d..8472388fc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_Sounds_sounddata_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_Sounds_sounddata_tImpl.cs @@ -1,92 +1,69 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_Sounds_sounddata_tImpl : TypedProtobuf, CSVCMsg_Sounds_sounddata_t { - public CSVCMsg_Sounds_sounddata_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_Sounds_sounddata_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int OriginX - { get => Accessor.GetInt32("origin_x"); set => Accessor.SetInt32("origin_x", value); } + public int OriginX { get => Accessor.GetInt32("origin_x"); set => Accessor.SetInt32("origin_x", value); } - public int OriginY - { get => Accessor.GetInt32("origin_y"); set => Accessor.SetInt32("origin_y", value); } + public int OriginY { get => Accessor.GetInt32("origin_y"); set => Accessor.SetInt32("origin_y", value); } - public int OriginZ - { get => Accessor.GetInt32("origin_z"); set => Accessor.SetInt32("origin_z", value); } + public int OriginZ { get => Accessor.GetInt32("origin_z"); set => Accessor.SetInt32("origin_z", value); } - public uint Volume - { get => Accessor.GetUInt32("volume"); set => Accessor.SetUInt32("volume", value); } + public uint Volume { get => Accessor.GetUInt32("volume"); set => Accessor.SetUInt32("volume", value); } - public float DelayValue - { get => Accessor.GetFloat("delay_value"); set => Accessor.SetFloat("delay_value", value); } + public float DelayValue { get => Accessor.GetFloat("delay_value"); set => Accessor.SetFloat("delay_value", value); } - public int SequenceNumber - { get => Accessor.GetInt32("sequence_number"); set => Accessor.SetInt32("sequence_number", value); } + public int SequenceNumber { get => Accessor.GetInt32("sequence_number"); set => Accessor.SetInt32("sequence_number", value); } - public int EntityIndex - { get => Accessor.GetInt32("entity_index"); set => Accessor.SetInt32("entity_index", value); } + public int EntityIndex { get => Accessor.GetInt32("entity_index"); set => Accessor.SetInt32("entity_index", value); } - public int Channel - { get => Accessor.GetInt32("channel"); set => Accessor.SetInt32("channel", value); } + public int Channel { get => Accessor.GetInt32("channel"); set => Accessor.SetInt32("channel", value); } - public int Pitch - { get => Accessor.GetInt32("pitch"); set => Accessor.SetInt32("pitch", value); } + public int Pitch { get => Accessor.GetInt32("pitch"); set => Accessor.SetInt32("pitch", value); } - public int Flags - { get => Accessor.GetInt32("flags"); set => Accessor.SetInt32("flags", value); } + public int Flags { get => Accessor.GetInt32("flags"); set => Accessor.SetInt32("flags", value); } - public uint SoundNum - { get => Accessor.GetUInt32("sound_num"); set => Accessor.SetUInt32("sound_num", value); } + public uint SoundNum { get => Accessor.GetUInt32("sound_num"); set => Accessor.SetUInt32("sound_num", value); } - public uint SoundNumHandle - { get => Accessor.GetUInt32("sound_num_handle"); set => Accessor.SetUInt32("sound_num_handle", value); } + public uint SoundNumHandle { get => Accessor.GetUInt32("sound_num_handle"); set => Accessor.SetUInt32("sound_num_handle", value); } - public int SpeakerEntity - { get => Accessor.GetInt32("speaker_entity"); set => Accessor.SetInt32("speaker_entity", value); } + public int SpeakerEntity { get => Accessor.GetInt32("speaker_entity"); set => Accessor.SetInt32("speaker_entity", value); } - public int RandomSeed - { get => Accessor.GetInt32("random_seed"); set => Accessor.SetInt32("random_seed", value); } + public int RandomSeed { get => Accessor.GetInt32("random_seed"); set => Accessor.SetInt32("random_seed", value); } - public int SoundLevel - { get => Accessor.GetInt32("sound_level"); set => Accessor.SetInt32("sound_level", value); } + public int SoundLevel { get => Accessor.GetInt32("sound_level"); set => Accessor.SetInt32("sound_level", value); } - public bool IsSentence - { get => Accessor.GetBool("is_sentence"); set => Accessor.SetBool("is_sentence", value); } + public bool IsSentence { get => Accessor.GetBool("is_sentence"); set => Accessor.SetBool("is_sentence", value); } - public bool IsAmbient - { get => Accessor.GetBool("is_ambient"); set => Accessor.SetBool("is_ambient", value); } + public bool IsAmbient { get => Accessor.GetBool("is_ambient"); set => Accessor.SetBool("is_ambient", value); } - public uint Guid - { get => Accessor.GetUInt32("guid"); set => Accessor.SetUInt32("guid", value); } + public uint Guid { get => Accessor.GetUInt32("guid"); set => Accessor.SetUInt32("guid", value); } - public ulong SoundResourceId - { get => Accessor.GetUInt64("sound_resource_id"); set => Accessor.SetUInt64("sound_resource_id", value); } + public ulong SoundResourceId { get => Accessor.GetUInt64("sound_resource_id"); set => Accessor.SetUInt64("sound_resource_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SplitScreenImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SplitScreenImpl.cs index 7ead7492b..72d91adae 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SplitScreenImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_SplitScreenImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_SplitScreenImpl : NetMessage, CSVCMsg_SplitScreen { - public CSVCMsg_SplitScreenImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_SplitScreenImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public ESplitScreenMessageType Type - { get => (ESplitScreenMessageType)Accessor.GetInt32("type"); set => Accessor.SetInt32("type", (int)value); } + public ESplitScreenMessageType Type { get => (ESplitScreenMessageType)Accessor.GetInt32("type"); set => Accessor.SetInt32("type", (int)value); } - public int Slot - { get => Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } + public int Slot { get => Accessor.GetInt32("slot"); set => Accessor.SetInt32("slot", value); } - public int PlayerIndex - { get => Accessor.GetInt32("player_index"); set => Accessor.SetInt32("player_index", value); } + public int PlayerIndex { get => Accessor.GetInt32("player_index"); set => Accessor.SetInt32("player_index", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_StopSoundImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_StopSoundImpl.cs index 9f68e4908..e07ed7e1b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_StopSoundImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_StopSoundImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_StopSoundImpl : NetMessage, CSVCMsg_StopSound { - public CSVCMsg_StopSoundImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_StopSoundImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Guid - { get => Accessor.GetUInt32("guid"); set => Accessor.SetUInt32("guid", value); } + public uint Guid { get => Accessor.GetUInt32("guid"); set => Accessor.SetUInt32("guid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_TempEntitiesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_TempEntitiesImpl.cs index 115deb6e8..9b369423d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_TempEntitiesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_TempEntitiesImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_TempEntitiesImpl : TypedProtobuf, CSVCMsg_TempEntities { - public CSVCMsg_TempEntitiesImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_TempEntitiesImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool Reliable - { get => Accessor.GetBool("reliable"); set => Accessor.SetBool("reliable", value); } + public bool Reliable { get => Accessor.GetBool("reliable"); set => Accessor.SetBool("reliable", value); } - public int NumEntries - { get => Accessor.GetInt32("num_entries"); set => Accessor.SetInt32("num_entries", value); } + public int NumEntries { get => Accessor.GetInt32("num_entries"); set => Accessor.SetInt32("num_entries", value); } - public byte[] EntityData - { get => Accessor.GetBytes("entity_data"); set => Accessor.SetBytes("entity_data", value); } + public byte[] EntityData { get => Accessor.GetBytes("entity_data"); set => Accessor.SetBytes("entity_data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_UpdateStringTableImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_UpdateStringTableImpl.cs index 80244749d..066028638 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_UpdateStringTableImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_UpdateStringTableImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_UpdateStringTableImpl : NetMessage, CSVCMsg_UpdateStringTable { - public CSVCMsg_UpdateStringTableImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_UpdateStringTableImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int TableId - { get => Accessor.GetInt32("table_id"); set => Accessor.SetInt32("table_id", value); } + public int TableId { get => Accessor.GetInt32("table_id"); set => Accessor.SetInt32("table_id", value); } - public int NumChangedEntries - { get => Accessor.GetInt32("num_changed_entries"); set => Accessor.SetInt32("num_changed_entries", value); } + public int NumChangedEntries { get => Accessor.GetInt32("num_changed_entries"); set => Accessor.SetInt32("num_changed_entries", value); } - public byte[] StringData - { get => Accessor.GetBytes("string_data"); set => Accessor.SetBytes("string_data", value); } + public byte[] StringData { get => Accessor.GetBytes("string_data"); set => Accessor.SetBytes("string_data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_UserCommandsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_UserCommandsImpl.cs index 8c7af4dc7..0f039eeb3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_UserCommandsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_UserCommandsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_UserCommandsImpl : TypedProtobuf, CSVCMsg_UserCommands { - public CSVCMsg_UserCommandsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSVCMsg_UserCommandsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Commands - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "commands"); } + public IProtobufRepeatedFieldSubMessageType Commands { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "commands"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_UserMessageImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_UserMessageImpl.cs index cdb42ead4..437ad410f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_UserMessageImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_UserMessageImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_UserMessageImpl : NetMessage, CSVCMsg_UserMessage { - public CSVCMsg_UserMessageImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_UserMessageImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int MsgType - { get => Accessor.GetInt32("msg_type"); set => Accessor.SetInt32("msg_type", value); } + public int MsgType { get => Accessor.GetInt32("msg_type"); set => Accessor.SetInt32("msg_type", value); } - public byte[] MsgData - { get => Accessor.GetBytes("msg_data"); set => Accessor.SetBytes("msg_data", value); } + public byte[] MsgData { get => Accessor.GetBytes("msg_data"); set => Accessor.SetBytes("msg_data", value); } - public int Passthrough - { get => Accessor.GetInt32("passthrough"); set => Accessor.SetInt32("passthrough", value); } + public int Passthrough { get => Accessor.GetInt32("passthrough"); set => Accessor.SetInt32("passthrough", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_VoiceDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_VoiceDataImpl.cs index 4e756f560..bc5ec0cab 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_VoiceDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_VoiceDataImpl.cs @@ -1,44 +1,35 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_VoiceDataImpl : NetMessage, CSVCMsg_VoiceData { - public CSVCMsg_VoiceDataImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_VoiceDataImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CMsgVoiceAudio Audio - { get => new CMsgVoiceAudioImpl(NativeNetMessages.GetNestedMessage(Address, "audio"), false); } + public CMsgVoiceAudio Audio { get => new CMsgVoiceAudioImpl(NativeNetMessages.GetNestedMessage(Address, "audio"), false); } - public int Client - { get => Accessor.GetInt32("client"); set => Accessor.SetInt32("client", value); } + public int Client { get => Accessor.GetInt32("client"); set => Accessor.SetInt32("client", value); } - public bool Proximity - { get => Accessor.GetBool("proximity"); set => Accessor.SetBool("proximity", value); } + public bool Proximity { get => Accessor.GetBool("proximity"); set => Accessor.SetBool("proximity", value); } - public ulong Xuid - { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } + public ulong Xuid { get => Accessor.GetUInt64("xuid"); set => Accessor.SetUInt64("xuid", value); } - public int AudibleMask - { get => Accessor.GetInt32("audible_mask"); set => Accessor.SetInt32("audible_mask", value); } + public int AudibleMask { get => Accessor.GetInt32("audible_mask"); set => Accessor.SetInt32("audible_mask", value); } - public uint Tick - { get => Accessor.GetUInt32("tick"); set => Accessor.SetUInt32("tick", value); } + public uint Tick { get => Accessor.GetUInt32("tick"); set => Accessor.SetUInt32("tick", value); } - public int Passthrough - { get => Accessor.GetInt32("passthrough"); set => Accessor.SetInt32("passthrough", value); } + public int Passthrough { get => Accessor.GetInt32("passthrough"); set => Accessor.SetInt32("passthrough", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_VoiceInitImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_VoiceInitImpl.cs index 7901ae3df..a87e2286a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_VoiceInitImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSVCMsg_VoiceInitImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSVCMsg_VoiceInitImpl : NetMessage, CSVCMsg_VoiceInit { - public CSVCMsg_VoiceInitImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CSVCMsg_VoiceInitImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Quality - { get => Accessor.GetInt32("quality"); set => Accessor.SetInt32("quality", value); } + public int Quality { get => Accessor.GetInt32("quality"); set => Accessor.SetInt32("quality", value); } - public string Codec - { get => Accessor.GetString("codec"); set => Accessor.SetString("codec", value); } + public string Codec { get => Accessor.GetString("codec"); set => Accessor.SetString("codec", value); } - public int Version - { get => Accessor.GetInt32("version"); set => Accessor.SetInt32("version", value); } + public int Version { get => Accessor.GetInt32("version"); set => Accessor.SetInt32("version", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSource2Metrics_MatchPerfSummary_NotificationImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSource2Metrics_MatchPerfSummary_NotificationImpl.cs index a50452dc1..0c8390704 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSource2Metrics_MatchPerfSummary_NotificationImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSource2Metrics_MatchPerfSummary_NotificationImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,36 +8,29 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSource2Metrics_MatchPerfSummary_NotificationImpl : TypedProtobuf, CSource2Metrics_MatchPerfSummary_Notification { - public CSource2Metrics_MatchPerfSummary_NotificationImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSource2Metrics_MatchPerfSummary_NotificationImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } - public string GameMode - { get => Accessor.GetString("game_mode"); set => Accessor.SetString("game_mode", value); } + public string GameMode { get => Accessor.GetString("game_mode"); set => Accessor.SetString("game_mode", value); } - public uint ServerBuildId - { get => Accessor.GetUInt32("server_build_id"); set => Accessor.SetUInt32("server_build_id", value); } + public uint ServerBuildId { get => Accessor.GetUInt32("server_build_id"); set => Accessor.SetUInt32("server_build_id", value); } - public uint ServerPopid - { get => Accessor.GetUInt32("server_popid"); set => Accessor.SetUInt32("server_popid", value); } + public uint ServerPopid { get => Accessor.GetUInt32("server_popid"); set => Accessor.SetUInt32("server_popid", value); } - public CMsgSource2VProfLiteReport ServerProfile - { get => new CMsgSource2VProfLiteReportImpl(NativeNetMessages.GetNestedMessage(Address, "server_profile"), false); } + public CMsgSource2VProfLiteReport ServerProfile { get => new CMsgSource2VProfLiteReportImpl(NativeNetMessages.GetNestedMessage(Address, "server_profile"), false); } - public IProtobufRepeatedFieldSubMessageType Clients - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "clients"); } + public IProtobufRepeatedFieldSubMessageType Clients { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "clients"); } - public string Map - { get => Accessor.GetString("map"); set => Accessor.SetString("map", value); } + public string Map { get => Accessor.GetString("map"); set => Accessor.SetString("map", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSource2Metrics_MatchPerfSummary_Notification_ClientImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSource2Metrics_MatchPerfSummary_Notification_ClientImpl.cs index 928f155fb..ae6142556 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSource2Metrics_MatchPerfSummary_Notification_ClientImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSource2Metrics_MatchPerfSummary_Notification_ClientImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,36 +8,29 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSource2Metrics_MatchPerfSummary_Notification_ClientImpl : TypedProtobuf, CSource2Metrics_MatchPerfSummary_Notification_Client { - public CSource2Metrics_MatchPerfSummary_Notification_ClientImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSource2Metrics_MatchPerfSummary_Notification_ClientImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CMsgSource2SystemSpecs SystemSpecs - { get => new CMsgSource2SystemSpecsImpl(NativeNetMessages.GetNestedMessage(Address, "system_specs"), false); } + public CMsgSource2SystemSpecs SystemSpecs { get => new CMsgSource2SystemSpecsImpl(NativeNetMessages.GetNestedMessage(Address, "system_specs"), false); } - public CMsgSource2VProfLiteReport Profile - { get => new CMsgSource2VProfLiteReportImpl(NativeNetMessages.GetNestedMessage(Address, "profile"), false); } + public CMsgSource2VProfLiteReport Profile { get => new CMsgSource2VProfLiteReportImpl(NativeNetMessages.GetNestedMessage(Address, "profile"), false); } - public uint BuildId - { get => Accessor.GetUInt32("build_id"); set => Accessor.SetUInt32("build_id", value); } + public uint BuildId { get => Accessor.GetUInt32("build_id"); set => Accessor.SetUInt32("build_id", value); } - public CMsgSource2NetworkFlowQuality DownstreamFlow - { get => new CMsgSource2NetworkFlowQualityImpl(NativeNetMessages.GetNestedMessage(Address, "downstream_flow"), false); } + public CMsgSource2NetworkFlowQuality DownstreamFlow { get => new CMsgSource2NetworkFlowQualityImpl(NativeNetMessages.GetNestedMessage(Address, "downstream_flow"), false); } - public CMsgSource2NetworkFlowQuality UpstreamFlow - { get => new CMsgSource2NetworkFlowQualityImpl(NativeNetMessages.GetNestedMessage(Address, "upstream_flow"), false); } + public CMsgSource2NetworkFlowQuality UpstreamFlow { get => new CMsgSource2NetworkFlowQualityImpl(NativeNetMessages.GetNestedMessage(Address, "upstream_flow"), false); } - public ulong Steamid - { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } + public ulong Steamid { get => Accessor.GetUInt64("steamid"); set => Accessor.SetUInt64("steamid", value); } - public IProtobufRepeatedFieldSubMessageType PerfSamples - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "perf_samples"); } + public IProtobufRepeatedFieldSubMessageType PerfSamples { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "perf_samples"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSteam_Voice_EncodingImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSteam_Voice_EncodingImpl.cs index d9a6ca41d..6bc684c88 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSteam_Voice_EncodingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSteam_Voice_EncodingImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSteam_Voice_EncodingImpl : TypedProtobuf, CSteam_Voice_Encoding { - public CSteam_Voice_EncodingImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSteam_Voice_EncodingImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public byte[] VoiceData - { get => Accessor.GetBytes("voice_data"); set => Accessor.SetBytes("voice_data", value); } + public byte[] VoiceData { get => Accessor.GetBytes("voice_data"); set => Accessor.SetBytes("voice_data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSubtickMoveStepImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSubtickMoveStepImpl.cs index bdca6d82c..8dfb8d301 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSubtickMoveStepImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CSubtickMoveStepImpl.cs @@ -1,44 +1,33 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CSubtickMoveStepImpl : TypedProtobuf, CSubtickMoveStep { - public CSubtickMoveStepImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CSubtickMoveStepImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong Button - { get => Accessor.GetUInt64("button"); set => Accessor.SetUInt64("button", value); } + public ulong Button { get => Accessor.GetUInt64("button"); set => Accessor.SetUInt64("button", value); } - public bool Pressed - { get => Accessor.GetBool("pressed"); set => Accessor.SetBool("pressed", value); } + public bool Pressed { get => Accessor.GetBool("pressed"); set => Accessor.SetBool("pressed", value); } - public float When - { get => Accessor.GetFloat("when"); set => Accessor.SetFloat("when", value); } + public float When { get => Accessor.GetFloat("when"); set => Accessor.SetFloat("when", value); } - public float AnalogForwardDelta - { get => Accessor.GetFloat("analog_forward_delta"); set => Accessor.SetFloat("analog_forward_delta", value); } + public float AnalogForwardDelta { get => Accessor.GetFloat("analog_forward_delta"); set => Accessor.SetFloat("analog_forward_delta", value); } - public float AnalogLeftDelta - { get => Accessor.GetFloat("analog_left_delta"); set => Accessor.SetFloat("analog_left_delta", value); } + public float AnalogLeftDelta { get => Accessor.GetFloat("analog_left_delta"); set => Accessor.SetFloat("analog_left_delta", value); } - public float PitchDelta - { get => Accessor.GetFloat("pitch_delta"); set => Accessor.SetFloat("pitch_delta", value); } + public float PitchDelta { get => Accessor.GetFloat("pitch_delta"); set => Accessor.SetFloat("pitch_delta", value); } - public float YawDelta - { get => Accessor.GetFloat("yaw_delta"); set => Accessor.SetFloat("yaw_delta", value); } + public float YawDelta { get => Accessor.GetFloat("yaw_delta"); set => Accessor.SetFloat("yaw_delta", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUIFontFilePBImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUIFontFilePBImpl.cs index 2ebd395d5..a9b988ce1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUIFontFilePBImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUIFontFilePBImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUIFontFilePBImpl : TypedProtobuf, CUIFontFilePB { - public CUIFontFilePBImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUIFontFilePBImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string FontFileName - { get => Accessor.GetString("font_file_name"); set => Accessor.SetString("font_file_name", value); } + public string FontFileName { get => Accessor.GetString("font_file_name"); set => Accessor.SetString("font_file_name", value); } - public byte[] OpentypeFontData - { get => Accessor.GetBytes("opentype_font_data"); set => Accessor.SetBytes("opentype_font_data", value); } + public byte[] OpentypeFontData { get => Accessor.GetBytes("opentype_font_data"); set => Accessor.SetBytes("opentype_font_data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUIFontFilePackagePBImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUIFontFilePackagePBImpl.cs index dfea12604..92c41d8ea 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUIFontFilePackagePBImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUIFontFilePackagePBImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUIFontFilePackagePBImpl : TypedProtobuf, CUIFontFilePackagePB { - public CUIFontFilePackagePBImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUIFontFilePackagePBImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint PackageVersion - { get => Accessor.GetUInt32("package_version"); set => Accessor.SetUInt32("package_version", value); } + public uint PackageVersion { get => Accessor.GetUInt32("package_version"); set => Accessor.SetUInt32("package_version", value); } - public IProtobufRepeatedFieldSubMessageType EncryptedFontFiles - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "encrypted_font_files"); } + public IProtobufRepeatedFieldSubMessageType EncryptedFontFiles { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "encrypted_font_files"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUIFontFilePackagePB_CUIEncryptedFontFilePBImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUIFontFilePackagePB_CUIEncryptedFontFilePBImpl.cs index 34e290650..d4ed06a02 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUIFontFilePackagePB_CUIEncryptedFontFilePBImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUIFontFilePackagePB_CUIEncryptedFontFilePBImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUIFontFilePackagePB_CUIEncryptedFontFilePBImpl : TypedProtobuf, CUIFontFilePackagePB_CUIEncryptedFontFilePB { - public CUIFontFilePackagePB_CUIEncryptedFontFilePBImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUIFontFilePackagePB_CUIEncryptedFontFilePBImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public byte[] EncryptedContents - { get => Accessor.GetBytes("encrypted_contents"); set => Accessor.SetBytes("encrypted_contents", value); } + public byte[] EncryptedContents { get => Accessor.GetBytes("encrypted_contents"); set => Accessor.SetBytes("encrypted_contents", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserCmdBasePBImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserCmdBasePBImpl.cs index c5c437f71..95a17cf0a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserCmdBasePBImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserCmdBasePBImpl.cs @@ -1,20 +1,17 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserCmdBasePBImpl : TypedProtobuf, CUserCmdBasePB { - public CUserCmdBasePBImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserCmdBasePBImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public CBaseUserCmdPB Base - { get => new CBaseUserCmdPBImpl(NativeNetMessages.GetNestedMessage(Address, "base"), false); } + public CBaseUserCmdPB Base { get => new CBaseUserCmdPBImpl(NativeNetMessages.GetNestedMessage(Address, "base"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAchievementEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAchievementEventImpl.cs index 8dec089a5..fbbd98bc1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAchievementEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAchievementEventImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageAchievementEventImpl : NetMessage, CUserMessageAchievementEvent { - public CUserMessageAchievementEventImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageAchievementEventImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Achievement - { get => Accessor.GetUInt32("achievement"); set => Accessor.SetUInt32("achievement", value); } + public uint Achievement { get => Accessor.GetUInt32("achievement"); set => Accessor.SetUInt32("achievement", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAmmoDeniedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAmmoDeniedImpl.cs index 7540111fd..32f6bd8a7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAmmoDeniedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAmmoDeniedImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageAmmoDeniedImpl : NetMessage, CUserMessageAmmoDenied { - public CUserMessageAmmoDeniedImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageAmmoDeniedImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint AmmoId - { get => Accessor.GetUInt32("ammo_id"); set => Accessor.SetUInt32("ammo_id", value); } + public uint AmmoId { get => Accessor.GetUInt32("ammo_id"); set => Accessor.SetUInt32("ammo_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAnimStateGraphStateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAnimStateGraphStateImpl.cs index 43f6654b7..2ee83d179 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAnimStateGraphStateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAnimStateGraphStateImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageAnimStateGraphStateImpl : TypedProtobuf, CUserMessageAnimStateGraphState { - public CUserMessageAnimStateGraphStateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMessageAnimStateGraphStateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int EntityIndex - { get => Accessor.GetInt32("entity_index"); set => Accessor.SetInt32("entity_index", value); } + public int EntityIndex { get => Accessor.GetInt32("entity_index"); set => Accessor.SetInt32("entity_index", value); } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAudioParameterImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAudioParameterImpl.cs index fbeabd449..a9f492ffe 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAudioParameterImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageAudioParameterImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageAudioParameterImpl : NetMessage, CUserMessageAudioParameter { - public CUserMessageAudioParameterImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageAudioParameterImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint ParameterType - { get => Accessor.GetUInt32("parameter_type"); set => Accessor.SetUInt32("parameter_type", value); } + public uint ParameterType { get => Accessor.GetUInt32("parameter_type"); set => Accessor.SetUInt32("parameter_type", value); } - public uint NameHashCode - { get => Accessor.GetUInt32("name_hash_code"); set => Accessor.SetUInt32("name_hash_code", value); } + public uint NameHashCode { get => Accessor.GetUInt32("name_hash_code"); set => Accessor.SetUInt32("name_hash_code", value); } - public float Value - { get => Accessor.GetFloat("value"); set => Accessor.SetFloat("value", value); } + public float Value { get => Accessor.GetFloat("value"); set => Accessor.SetFloat("value", value); } - public uint IntValue - { get => Accessor.GetUInt32("int_value"); set => Accessor.SetUInt32("int_value", value); } + public uint IntValue { get => Accessor.GetUInt32("int_value"); set => Accessor.SetUInt32("int_value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCameraTransitionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCameraTransitionImpl.cs index eff6c7c61..c8113add6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCameraTransitionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCameraTransitionImpl.cs @@ -1,28 +1,23 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageCameraTransitionImpl : NetMessage, CUserMessageCameraTransition { - public CUserMessageCameraTransitionImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageCameraTransitionImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint CameraType - { get => Accessor.GetUInt32("camera_type"); set => Accessor.SetUInt32("camera_type", value); } + public uint CameraType { get => Accessor.GetUInt32("camera_type"); set => Accessor.SetUInt32("camera_type", value); } - public float Duration - { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } + public float Duration { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } - public CUserMessageCameraTransition_Transition_DataDriven ParamsDataDriven - { get => new CUserMessageCameraTransition_Transition_DataDrivenImpl(NativeNetMessages.GetNestedMessage(Address, "params_data_driven"), false); } + public CUserMessageCameraTransition_Transition_DataDriven ParamsDataDriven { get => new CUserMessageCameraTransition_Transition_DataDrivenImpl(NativeNetMessages.GetNestedMessage(Address, "params_data_driven"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCameraTransition_Transition_DataDrivenImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCameraTransition_Transition_DataDrivenImpl.cs index ec0492194..8202c4a85 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCameraTransition_Transition_DataDrivenImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCameraTransition_Transition_DataDrivenImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageCameraTransition_Transition_DataDrivenImpl : TypedProtobuf, CUserMessageCameraTransition_Transition_DataDriven { - public CUserMessageCameraTransition_Transition_DataDrivenImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMessageCameraTransition_Transition_DataDrivenImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Filename - { get => Accessor.GetString("filename"); set => Accessor.SetString("filename", value); } + public string Filename { get => Accessor.GetString("filename"); set => Accessor.SetString("filename", value); } - public int AttachEntIndex - { get => Accessor.GetInt32("attach_ent_index"); set => Accessor.SetInt32("attach_ent_index", value); } + public int AttachEntIndex { get => Accessor.GetInt32("attach_ent_index"); set => Accessor.SetInt32("attach_ent_index", value); } - public float Duration - { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } + public float Duration { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCloseCaptionDirectImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCloseCaptionDirectImpl.cs index 394c2329a..3c64692fc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCloseCaptionDirectImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCloseCaptionDirectImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageCloseCaptionDirectImpl : NetMessage, CUserMessageCloseCaptionDirect { - public CUserMessageCloseCaptionDirectImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageCloseCaptionDirectImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Hash - { get => Accessor.GetUInt32("hash"); set => Accessor.SetUInt32("hash", value); } + public uint Hash { get => Accessor.GetUInt32("hash"); set => Accessor.SetUInt32("hash", value); } - public float Duration - { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } + public float Duration { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } - public bool FromPlayer - { get => Accessor.GetBool("from_player"); set => Accessor.SetBool("from_player", value); } + public bool FromPlayer { get => Accessor.GetBool("from_player"); set => Accessor.SetBool("from_player", value); } - public int EntIndex - { get => Accessor.GetInt32("ent_index"); set => Accessor.SetInt32("ent_index", value); } + public int EntIndex { get => Accessor.GetInt32("ent_index"); set => Accessor.SetInt32("ent_index", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCloseCaptionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCloseCaptionImpl.cs index 366a3b7aa..44f93fbe4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCloseCaptionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCloseCaptionImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageCloseCaptionImpl : NetMessage, CUserMessageCloseCaption { - public CUserMessageCloseCaptionImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageCloseCaptionImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Hash - { get => Accessor.GetUInt32("hash"); set => Accessor.SetUInt32("hash", value); } + public uint Hash { get => Accessor.GetUInt32("hash"); set => Accessor.SetUInt32("hash", value); } - public float Duration - { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } + public float Duration { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } - public bool FromPlayer - { get => Accessor.GetBool("from_player"); set => Accessor.SetBool("from_player", value); } + public bool FromPlayer { get => Accessor.GetBool("from_player"); set => Accessor.SetBool("from_player", value); } - public int EntIndex - { get => Accessor.GetInt32("ent_index"); set => Accessor.SetInt32("ent_index", value); } + public int EntIndex { get => Accessor.GetInt32("ent_index"); set => Accessor.SetInt32("ent_index", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCloseCaptionPlaceholderImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCloseCaptionPlaceholderImpl.cs index 46d54354d..1ce34cf0e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCloseCaptionPlaceholderImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCloseCaptionPlaceholderImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageCloseCaptionPlaceholderImpl : NetMessage, CUserMessageCloseCaptionPlaceholder { - public CUserMessageCloseCaptionPlaceholderImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageCloseCaptionPlaceholderImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string String - { get => Accessor.GetString("string"); set => Accessor.SetString("string", value); } + public string String { get => Accessor.GetString("string"); set => Accessor.SetString("string", value); } - public float Duration - { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } + public float Duration { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } - public bool FromPlayer - { get => Accessor.GetBool("from_player"); set => Accessor.SetBool("from_player", value); } + public bool FromPlayer { get => Accessor.GetBool("from_player"); set => Accessor.SetBool("from_player", value); } - public int EntIndex - { get => Accessor.GetInt32("ent_index"); set => Accessor.SetInt32("ent_index", value); } + public int EntIndex { get => Accessor.GetInt32("ent_index"); set => Accessor.SetInt32("ent_index", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageColoredTextImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageColoredTextImpl.cs index 1b4743832..dead813be 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageColoredTextImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageColoredTextImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageColoredTextImpl : NetMessage, CUserMessageColoredText { - public CUserMessageColoredTextImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageColoredTextImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Color - { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } + public uint Color { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } - public bool Reset - { get => Accessor.GetBool("reset"); set => Accessor.SetBool("reset", value); } + public bool Reset { get => Accessor.GetBool("reset"); set => Accessor.SetBool("reset", value); } - public int ContextPlayerSlot - { get => Accessor.GetInt32("context_player_slot"); set => Accessor.SetInt32("context_player_slot", value); } + public int ContextPlayerSlot { get => Accessor.GetInt32("context_player_slot"); set => Accessor.SetInt32("context_player_slot", value); } - public int ContextValue - { get => Accessor.GetInt32("context_value"); set => Accessor.SetInt32("context_value", value); } + public int ContextValue { get => Accessor.GetInt32("context_value"); set => Accessor.SetInt32("context_value", value); } - public int ContextTeamId - { get => Accessor.GetInt32("context_team_id"); set => Accessor.SetInt32("context_team_id", value); } + public int ContextTeamId { get => Accessor.GetInt32("context_team_id"); set => Accessor.SetInt32("context_team_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCreditsMsgImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCreditsMsgImpl.cs index 70e8d1c37..b169c9ba8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCreditsMsgImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCreditsMsgImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageCreditsMsgImpl : NetMessage, CUserMessageCreditsMsg { - public CUserMessageCreditsMsgImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageCreditsMsgImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public eRollType Rolltype - { get => (eRollType)Accessor.GetInt32("rolltype"); set => Accessor.SetInt32("rolltype", (int)value); } + public eRollType Rolltype { get => (eRollType)Accessor.GetInt32("rolltype"); set => Accessor.SetInt32("rolltype", (int)value); } - public float LogoLength - { get => Accessor.GetFloat("logo_length"); set => Accessor.SetFloat("logo_length", value); } + public float LogoLength { get => Accessor.GetFloat("logo_length"); set => Accessor.SetFloat("logo_length", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCurrentTimescaleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCurrentTimescaleImpl.cs index 173cc5272..b8a910515 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCurrentTimescaleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageCurrentTimescaleImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageCurrentTimescaleImpl : NetMessage, CUserMessageCurrentTimescale { - public CUserMessageCurrentTimescaleImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageCurrentTimescaleImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public float Current - { get => Accessor.GetFloat("current"); set => Accessor.SetFloat("current", value); } + public float Current { get => Accessor.GetFloat("current"); set => Accessor.SetFloat("current", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageDesiredTimescaleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageDesiredTimescaleImpl.cs index e3241c3e1..bfac3491c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageDesiredTimescaleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageDesiredTimescaleImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageDesiredTimescaleImpl : NetMessage, CUserMessageDesiredTimescale { - public CUserMessageDesiredTimescaleImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageDesiredTimescaleImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public float Desired - { get => Accessor.GetFloat("desired"); set => Accessor.SetFloat("desired", value); } + public float Desired { get => Accessor.GetFloat("desired"); set => Accessor.SetFloat("desired", value); } - public float Acceleration - { get => Accessor.GetFloat("acceleration"); set => Accessor.SetFloat("acceleration", value); } + public float Acceleration { get => Accessor.GetFloat("acceleration"); set => Accessor.SetFloat("acceleration", value); } - public float Minblendrate - { get => Accessor.GetFloat("minblendrate"); set => Accessor.SetFloat("minblendrate", value); } + public float Minblendrate { get => Accessor.GetFloat("minblendrate"); set => Accessor.SetFloat("minblendrate", value); } - public float Blenddeltamultiplier - { get => Accessor.GetFloat("blenddeltamultiplier"); set => Accessor.SetFloat("blenddeltamultiplier", value); } + public float Blenddeltamultiplier { get => Accessor.GetFloat("blenddeltamultiplier"); set => Accessor.SetFloat("blenddeltamultiplier", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageFadeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageFadeImpl.cs index 1de4f6dfc..c6d1b4bf3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageFadeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageFadeImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageFadeImpl : NetMessage, CUserMessageFade { - public CUserMessageFadeImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageFadeImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Duration - { get => Accessor.GetUInt32("duration"); set => Accessor.SetUInt32("duration", value); } + public uint Duration { get => Accessor.GetUInt32("duration"); set => Accessor.SetUInt32("duration", value); } - public uint HoldTime - { get => Accessor.GetUInt32("hold_time"); set => Accessor.SetUInt32("hold_time", value); } + public uint HoldTime { get => Accessor.GetUInt32("hold_time"); set => Accessor.SetUInt32("hold_time", value); } - public uint Flags - { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } + public uint Flags { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } - public uint Color - { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } + public uint Color { get => Accessor.GetUInt32("color"); set => Accessor.SetUInt32("color", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageGameTitleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageGameTitleImpl.cs index 0c94d52c5..c047fbaea 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageGameTitleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageGameTitleImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageGameTitleImpl : NetMessage, CUserMessageGameTitle { - public CUserMessageGameTitleImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageGameTitleImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHapticsManagerEffectImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHapticsManagerEffectImpl.cs index fd841ce32..a5e364ab1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHapticsManagerEffectImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHapticsManagerEffectImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageHapticsManagerEffectImpl : NetMessage, CUserMessageHapticsManagerEffect { - public CUserMessageHapticsManagerEffectImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageHapticsManagerEffectImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int HandId - { get => Accessor.GetInt32("hand_id"); set => Accessor.SetInt32("hand_id", value); } + public int HandId { get => Accessor.GetInt32("hand_id"); set => Accessor.SetInt32("hand_id", value); } - public uint EffectNameHashCode - { get => Accessor.GetUInt32("effect_name_hash_code"); set => Accessor.SetUInt32("effect_name_hash_code", value); } + public uint EffectNameHashCode { get => Accessor.GetUInt32("effect_name_hash_code"); set => Accessor.SetUInt32("effect_name_hash_code", value); } - public float EffectScale - { get => Accessor.GetFloat("effect_scale"); set => Accessor.SetFloat("effect_scale", value); } + public float EffectScale { get => Accessor.GetFloat("effect_scale"); set => Accessor.SetFloat("effect_scale", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHapticsManagerPulseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHapticsManagerPulseImpl.cs index f780399f9..32e3f0940 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHapticsManagerPulseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHapticsManagerPulseImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageHapticsManagerPulseImpl : NetMessage, CUserMessageHapticsManagerPulse { - public CUserMessageHapticsManagerPulseImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageHapticsManagerPulseImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int HandId - { get => Accessor.GetInt32("hand_id"); set => Accessor.SetInt32("hand_id", value); } + public int HandId { get => Accessor.GetInt32("hand_id"); set => Accessor.SetInt32("hand_id", value); } - public float EffectAmplitude - { get => Accessor.GetFloat("effect_amplitude"); set => Accessor.SetFloat("effect_amplitude", value); } + public float EffectAmplitude { get => Accessor.GetFloat("effect_amplitude"); set => Accessor.SetFloat("effect_amplitude", value); } - public float EffectFrequency - { get => Accessor.GetFloat("effect_frequency"); set => Accessor.SetFloat("effect_frequency", value); } + public float EffectFrequency { get => Accessor.GetFloat("effect_frequency"); set => Accessor.SetFloat("effect_frequency", value); } - public float EffectDuration - { get => Accessor.GetFloat("effect_duration"); set => Accessor.SetFloat("effect_duration", value); } + public float EffectDuration { get => Accessor.GetFloat("effect_duration"); set => Accessor.SetFloat("effect_duration", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHudMsgImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHudMsgImpl.cs index c3ea4b0d6..ef82959a4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHudMsgImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHudMsgImpl.cs @@ -1,44 +1,33 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageHudMsgImpl : NetMessage, CUserMessageHudMsg { - public CUserMessageHudMsgImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageHudMsgImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Channel - { get => Accessor.GetUInt32("channel"); set => Accessor.SetUInt32("channel", value); } + public uint Channel { get => Accessor.GetUInt32("channel"); set => Accessor.SetUInt32("channel", value); } - public float X - { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } + public float X { get => Accessor.GetFloat("x"); set => Accessor.SetFloat("x", value); } - public float Y - { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } + public float Y { get => Accessor.GetFloat("y"); set => Accessor.SetFloat("y", value); } - public uint Color1 - { get => Accessor.GetUInt32("color1"); set => Accessor.SetUInt32("color1", value); } + public uint Color1 { get => Accessor.GetUInt32("color1"); set => Accessor.SetUInt32("color1", value); } - public uint Color2 - { get => Accessor.GetUInt32("color2"); set => Accessor.SetUInt32("color2", value); } + public uint Color2 { get => Accessor.GetUInt32("color2"); set => Accessor.SetUInt32("color2", value); } - public uint Effect - { get => Accessor.GetUInt32("effect"); set => Accessor.SetUInt32("effect", value); } + public uint Effect { get => Accessor.GetUInt32("effect"); set => Accessor.SetUInt32("effect", value); } - public string Message - { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } + public string Message { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHudTextImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHudTextImpl.cs index 2e67fed49..23f6235b6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHudTextImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageHudTextImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageHudTextImpl : NetMessage, CUserMessageHudText { - public CUserMessageHudTextImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageHudTextImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Message - { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } + public string Message { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageItemPickupImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageItemPickupImpl.cs index 63a00f95e..894ef0c98 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageItemPickupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageItemPickupImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageItemPickupImpl : NetMessage, CUserMessageItemPickup { - public CUserMessageItemPickupImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageItemPickupImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Itemname - { get => Accessor.GetString("itemname"); set => Accessor.SetString("itemname", value); } + public string Itemname { get => Accessor.GetString("itemname"); set => Accessor.SetString("itemname", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageLagCompensationErrorImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageLagCompensationErrorImpl.cs index dd166f744..005607320 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageLagCompensationErrorImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageLagCompensationErrorImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageLagCompensationErrorImpl : NetMessage, CUserMessageLagCompensationError { - public CUserMessageLagCompensationErrorImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageLagCompensationErrorImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public float Distance - { get => Accessor.GetFloat("distance"); set => Accessor.SetFloat("distance", value); } + public float Distance { get => Accessor.GetFloat("distance"); set => Accessor.SetFloat("distance", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestDiagnosticImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestDiagnosticImpl.cs index a5710de68..1bcf48948 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestDiagnosticImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestDiagnosticImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageRequestDiagnosticImpl : NetMessage, CUserMessageRequestDiagnostic { - public CUserMessageRequestDiagnosticImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageRequestDiagnosticImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public IProtobufRepeatedFieldSubMessageType Diagnostics - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "diagnostics"); } + public IProtobufRepeatedFieldSubMessageType Diagnostics { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "diagnostics"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestDiagnostic_DiagnosticImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestDiagnostic_DiagnosticImpl.cs index aad1f6b64..a49c1a371 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestDiagnostic_DiagnosticImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestDiagnostic_DiagnosticImpl.cs @@ -1,68 +1,51 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageRequestDiagnostic_DiagnosticImpl : TypedProtobuf, CUserMessageRequestDiagnostic_Diagnostic { - public CUserMessageRequestDiagnostic_DiagnosticImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMessageRequestDiagnostic_DiagnosticImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Index - { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } + public int Index { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } - public long Offset - { get => Accessor.GetInt64("offset"); set => Accessor.SetInt64("offset", value); } + public long Offset { get => Accessor.GetInt64("offset"); set => Accessor.SetInt64("offset", value); } - public int Param - { get => Accessor.GetInt32("param"); set => Accessor.SetInt32("param", value); } + public int Param { get => Accessor.GetInt32("param"); set => Accessor.SetInt32("param", value); } - public int Length - { get => Accessor.GetInt32("length"); set => Accessor.SetInt32("length", value); } + public int Length { get => Accessor.GetInt32("length"); set => Accessor.SetInt32("length", value); } - public int Type - { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + public int Type { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } - public long Base - { get => Accessor.GetInt64("base"); set => Accessor.SetInt64("base", value); } + public long Base { get => Accessor.GetInt64("base"); set => Accessor.SetInt64("base", value); } - public long Range - { get => Accessor.GetInt64("range"); set => Accessor.SetInt64("range", value); } + public long Range { get => Accessor.GetInt64("range"); set => Accessor.SetInt64("range", value); } - public long Extent - { get => Accessor.GetInt64("extent"); set => Accessor.SetInt64("extent", value); } + public long Extent { get => Accessor.GetInt64("extent"); set => Accessor.SetInt64("extent", value); } - public long Detail - { get => Accessor.GetInt64("detail"); set => Accessor.SetInt64("detail", value); } + public long Detail { get => Accessor.GetInt64("detail"); set => Accessor.SetInt64("detail", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public string Alias - { get => Accessor.GetString("alias"); set => Accessor.SetString("alias", value); } + public string Alias { get => Accessor.GetString("alias"); set => Accessor.SetString("alias", value); } - public byte[] Vardetail - { get => Accessor.GetBytes("vardetail"); set => Accessor.SetBytes("vardetail", value); } + public byte[] Vardetail { get => Accessor.GetBytes("vardetail"); set => Accessor.SetBytes("vardetail", value); } - public int Context - { get => Accessor.GetInt32("context"); set => Accessor.SetInt32("context", value); } + public int Context { get => Accessor.GetInt32("context"); set => Accessor.SetInt32("context", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestDllStatusImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestDllStatusImpl.cs index 3d88ecc10..2ba56996c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestDllStatusImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestDllStatusImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageRequestDllStatusImpl : NetMessage, CUserMessageRequestDllStatus { - public CUserMessageRequestDllStatusImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageRequestDllStatusImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string DllAction - { get => Accessor.GetString("dll_action"); set => Accessor.SetString("dll_action", value); } + public string DllAction { get => Accessor.GetString("dll_action"); set => Accessor.SetString("dll_action", value); } - public bool FullReport - { get => Accessor.GetBool("full_report"); set => Accessor.SetBool("full_report", value); } + public bool FullReport { get => Accessor.GetBool("full_report"); set => Accessor.SetBool("full_report", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestInventoryImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestInventoryImpl.cs index 6a5d09d31..0a4e68442 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestInventoryImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestInventoryImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageRequestInventoryImpl : NetMessage, CUserMessageRequestInventory { - public CUserMessageRequestInventoryImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageRequestInventoryImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Inventory - { get => Accessor.GetInt32("inventory"); set => Accessor.SetInt32("inventory", value); } + public int Inventory { get => Accessor.GetInt32("inventory"); set => Accessor.SetInt32("inventory", value); } - public int Offset - { get => Accessor.GetInt32("offset"); set => Accessor.SetInt32("offset", value); } + public int Offset { get => Accessor.GetInt32("offset"); set => Accessor.SetInt32("offset", value); } - public int Options - { get => Accessor.GetInt32("options"); set => Accessor.SetInt32("options", value); } + public int Options { get => Accessor.GetInt32("options"); set => Accessor.SetInt32("options", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestStateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestStateImpl.cs index 05ddeca94..efe341ede 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestStateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestStateImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageRequestStateImpl : NetMessage, CUserMessageRequestState { - public CUserMessageRequestStateImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageRequestStateImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestUtilActionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestUtilActionImpl.cs index f06661415..b2aea5c27 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestUtilActionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRequestUtilActionImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageRequestUtilActionImpl : NetMessage, CUserMessageRequestUtilAction { - public CUserMessageRequestUtilActionImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageRequestUtilActionImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Util1 - { get => Accessor.GetInt32("util1"); set => Accessor.SetInt32("util1", value); } + public int Util1 { get => Accessor.GetInt32("util1"); set => Accessor.SetInt32("util1", value); } - public int Util2 - { get => Accessor.GetInt32("util2"); set => Accessor.SetInt32("util2", value); } + public int Util2 { get => Accessor.GetInt32("util2"); set => Accessor.SetInt32("util2", value); } - public int Util3 - { get => Accessor.GetInt32("util3"); set => Accessor.SetInt32("util3", value); } + public int Util3 { get => Accessor.GetInt32("util3"); set => Accessor.SetInt32("util3", value); } - public int Util4 - { get => Accessor.GetInt32("util4"); set => Accessor.SetInt32("util4", value); } + public int Util4 { get => Accessor.GetInt32("util4"); set => Accessor.SetInt32("util4", value); } - public int Util5 - { get => Accessor.GetInt32("util5"); set => Accessor.SetInt32("util5", value); } + public int Util5 { get => Accessor.GetInt32("util5"); set => Accessor.SetInt32("util5", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageResetHUDImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageResetHUDImpl.cs index cb13259f2..ae6cda67e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageResetHUDImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageResetHUDImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageResetHUDImpl : NetMessage, CUserMessageResetHUD { - public CUserMessageResetHUDImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageResetHUDImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRumbleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRumbleImpl.cs index 4e24b4e1d..c44e014f9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRumbleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageRumbleImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageRumbleImpl : NetMessage, CUserMessageRumble { - public CUserMessageRumbleImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageRumbleImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Index - { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } + public int Index { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } - public int Data - { get => Accessor.GetInt32("data"); set => Accessor.SetInt32("data", value); } + public int Data { get => Accessor.GetInt32("data"); set => Accessor.SetInt32("data", value); } - public int Flags - { get => Accessor.GetInt32("flags"); set => Accessor.SetInt32("flags", value); } + public int Flags { get => Accessor.GetInt32("flags"); set => Accessor.SetInt32("flags", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSayText2Impl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSayText2Impl.cs index f58a4ace4..663ccec13 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSayText2Impl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSayText2Impl.cs @@ -1,44 +1,33 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageSayText2Impl : NetMessage, CUserMessageSayText2 { - public CUserMessageSayText2Impl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageSayText2Impl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Entityindex - { get => Accessor.GetInt32("entityindex"); set => Accessor.SetInt32("entityindex", value); } + public int Entityindex { get => Accessor.GetInt32("entityindex"); set => Accessor.SetInt32("entityindex", value); } - public bool Chat - { get => Accessor.GetBool("chat"); set => Accessor.SetBool("chat", value); } + public bool Chat { get => Accessor.GetBool("chat"); set => Accessor.SetBool("chat", value); } - public string Messagename - { get => Accessor.GetString("messagename"); set => Accessor.SetString("messagename", value); } + public string Messagename { get => Accessor.GetString("messagename"); set => Accessor.SetString("messagename", value); } - public string Param1 - { get => Accessor.GetString("param1"); set => Accessor.SetString("param1", value); } + public string Param1 { get => Accessor.GetString("param1"); set => Accessor.SetString("param1", value); } - public string Param2 - { get => Accessor.GetString("param2"); set => Accessor.SetString("param2", value); } + public string Param2 { get => Accessor.GetString("param2"); set => Accessor.SetString("param2", value); } - public string Param3 - { get => Accessor.GetString("param3"); set => Accessor.SetString("param3", value); } + public string Param3 { get => Accessor.GetString("param3"); set => Accessor.SetString("param3", value); } - public string Param4 - { get => Accessor.GetString("param4"); set => Accessor.SetString("param4", value); } + public string Param4 { get => Accessor.GetString("param4"); set => Accessor.SetString("param4", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSayTextChannelImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSayTextChannelImpl.cs index 2a868d833..aadefd43f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSayTextChannelImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSayTextChannelImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageSayTextChannelImpl : NetMessage, CUserMessageSayTextChannel { - public CUserMessageSayTextChannelImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageSayTextChannelImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Player - { get => Accessor.GetInt32("player"); set => Accessor.SetInt32("player", value); } + public int Player { get => Accessor.GetInt32("player"); set => Accessor.SetInt32("player", value); } - public int Channel - { get => Accessor.GetInt32("channel"); set => Accessor.SetInt32("channel", value); } + public int Channel { get => Accessor.GetInt32("channel"); set => Accessor.SetInt32("channel", value); } - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSayTextImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSayTextImpl.cs index 9b7601638..078657814 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSayTextImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSayTextImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageSayTextImpl : NetMessage, CUserMessageSayText { - public CUserMessageSayTextImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageSayTextImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Playerindex - { get => Accessor.GetInt32("playerindex"); set => Accessor.SetInt32("playerindex", value); } + public int Playerindex { get => Accessor.GetInt32("playerindex"); set => Accessor.SetInt32("playerindex", value); } - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } - public bool Chat - { get => Accessor.GetBool("chat"); set => Accessor.SetBool("chat", value); } + public bool Chat { get => Accessor.GetBool("chat"); set => Accessor.SetBool("chat", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageScreenTiltImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageScreenTiltImpl.cs index 1a9846dbe..162dd3927 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageScreenTiltImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageScreenTiltImpl.cs @@ -1,36 +1,28 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageScreenTiltImpl : NetMessage, CUserMessageScreenTilt { - public CUserMessageScreenTiltImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageScreenTiltImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Command - { get => Accessor.GetUInt32("command"); set => Accessor.SetUInt32("command", value); } + public uint Command { get => Accessor.GetUInt32("command"); set => Accessor.SetUInt32("command", value); } - public bool EaseInOut - { get => Accessor.GetBool("ease_in_out"); set => Accessor.SetBool("ease_in_out", value); } + public bool EaseInOut { get => Accessor.GetBool("ease_in_out"); set => Accessor.SetBool("ease_in_out", value); } - public Vector Angle - { get => Accessor.GetVector("angle"); set => Accessor.SetVector("angle", value); } + public Vector Angle { get => Accessor.GetVector("angle"); set => Accessor.SetVector("angle", value); } - public float Duration - { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } + public float Duration { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } - public float Time - { get => Accessor.GetFloat("time"); set => Accessor.SetFloat("time", value); } + public float Time { get => Accessor.GetFloat("time"); set => Accessor.SetFloat("time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSendAudioImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSendAudioImpl.cs index 9fd248471..dbcaa4c9d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSendAudioImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageSendAudioImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageSendAudioImpl : NetMessage, CUserMessageSendAudio { - public CUserMessageSendAudioImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageSendAudioImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public string Soundname - { get => Accessor.GetString("soundname"); set => Accessor.SetString("soundname", value); } + public string Soundname { get => Accessor.GetString("soundname"); set => Accessor.SetString("soundname", value); } - public bool Stop - { get => Accessor.GetBool("stop"); set => Accessor.SetBool("stop", value); } + public bool Stop { get => Accessor.GetBool("stop"); set => Accessor.SetBool("stop", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageServerFrameTimeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageServerFrameTimeImpl.cs index 1a391fe93..fad234cc9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageServerFrameTimeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageServerFrameTimeImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageServerFrameTimeImpl : NetMessage, CUserMessageServerFrameTime { - public CUserMessageServerFrameTimeImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageServerFrameTimeImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public float FrameTime - { get => Accessor.GetFloat("frame_time"); set => Accessor.SetFloat("frame_time", value); } + public float FrameTime { get => Accessor.GetFloat("frame_time"); set => Accessor.SetFloat("frame_time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageShakeDirImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageShakeDirImpl.cs index 4a793cb83..8832ca53b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageShakeDirImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageShakeDirImpl.cs @@ -2,23 +2,20 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageShakeDirImpl : NetMessage, CUserMessageShakeDir { - public CUserMessageShakeDirImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageShakeDirImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public CUserMessageShake Shake - { get => new CUserMessageShakeImpl(NativeNetMessages.GetNestedMessage(Address, "shake"), false); } + public CUserMessageShake Shake { get => new CUserMessageShakeImpl(NativeNetMessages.GetNestedMessage(Address, "shake"), false); } - public Vector Direction - { get => Accessor.GetVector("direction"); set => Accessor.SetVector("direction", value); } + public Vector Direction { get => Accessor.GetVector("direction"); set => Accessor.SetVector("direction", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageShakeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageShakeImpl.cs index eb188e089..ff5578eba 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageShakeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageShakeImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageShakeImpl : NetMessage, CUserMessageShake { - public CUserMessageShakeImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageShakeImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Command - { get => Accessor.GetUInt32("command"); set => Accessor.SetUInt32("command", value); } + public uint Command { get => Accessor.GetUInt32("command"); set => Accessor.SetUInt32("command", value); } - public float Amplitude - { get => Accessor.GetFloat("amplitude"); set => Accessor.SetFloat("amplitude", value); } + public float Amplitude { get => Accessor.GetFloat("amplitude"); set => Accessor.SetFloat("amplitude", value); } - public float Frequency - { get => Accessor.GetFloat("frequency"); set => Accessor.SetFloat("frequency", value); } + public float Frequency { get => Accessor.GetFloat("frequency"); set => Accessor.SetFloat("frequency", value); } - public float Duration - { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } + public float Duration { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageShowMenuImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageShowMenuImpl.cs index fcb6a3e04..529bbeed5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageShowMenuImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageShowMenuImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageShowMenuImpl : NetMessage, CUserMessageShowMenu { - public CUserMessageShowMenuImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageShowMenuImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Validslots - { get => Accessor.GetUInt32("validslots"); set => Accessor.SetUInt32("validslots", value); } + public uint Validslots { get => Accessor.GetUInt32("validslots"); set => Accessor.SetUInt32("validslots", value); } - public uint Displaytime - { get => Accessor.GetUInt32("displaytime"); set => Accessor.SetUInt32("displaytime", value); } + public uint Displaytime { get => Accessor.GetUInt32("displaytime"); set => Accessor.SetUInt32("displaytime", value); } - public bool Needmore - { get => Accessor.GetBool("needmore"); set => Accessor.SetBool("needmore", value); } + public bool Needmore { get => Accessor.GetBool("needmore"); set => Accessor.SetBool("needmore", value); } - public string Menustring - { get => Accessor.GetString("menustring"); set => Accessor.SetString("menustring", value); } + public string Menustring { get => Accessor.GetString("menustring"); set => Accessor.SetString("menustring", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageTextMsgImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageTextMsgImpl.cs index 124504534..707312360 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageTextMsgImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageTextMsgImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageTextMsgImpl : NetMessage, CUserMessageTextMsg { - public CUserMessageTextMsgImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageTextMsgImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Dest - { get => Accessor.GetUInt32("dest"); set => Accessor.SetUInt32("dest", value); } + public uint Dest { get => Accessor.GetUInt32("dest"); set => Accessor.SetUInt32("dest", value); } - public IProtobufRepeatedFieldValueType Param - { get => new ProtobufRepeatedFieldValueType(Accessor, "param"); } + public IProtobufRepeatedFieldValueType Param { get => new ProtobufRepeatedFieldValueType(Accessor, "param"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageUpdateCssClassesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageUpdateCssClassesImpl.cs index 9c47b317f..7b5a72e55 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageUpdateCssClassesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageUpdateCssClassesImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageUpdateCssClassesImpl : NetMessage, CUserMessageUpdateCssClasses { - public CUserMessageUpdateCssClassesImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageUpdateCssClassesImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int TargetWorldPanel - { get => Accessor.GetInt32("target_world_panel"); set => Accessor.SetInt32("target_world_panel", value); } + public int TargetWorldPanel { get => Accessor.GetInt32("target_world_panel"); set => Accessor.SetInt32("target_world_panel", value); } - public string CssClasses - { get => Accessor.GetString("css_classes"); set => Accessor.SetString("css_classes", value); } + public string CssClasses { get => Accessor.GetString("css_classes"); set => Accessor.SetString("css_classes", value); } - public bool IsAdd - { get => Accessor.GetBool("is_add"); set => Accessor.SetBool("is_add", value); } + public bool IsAdd { get => Accessor.GetBool("is_add"); set => Accessor.SetBool("is_add", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageVoiceMaskImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageVoiceMaskImpl.cs index 4333000ba..8437e0031 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageVoiceMaskImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageVoiceMaskImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageVoiceMaskImpl : NetMessage, CUserMessageVoiceMask { - public CUserMessageVoiceMaskImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageVoiceMaskImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public IProtobufRepeatedFieldValueType GamerulesMasks - { get => new ProtobufRepeatedFieldValueType(Accessor, "gamerules_masks"); } + public IProtobufRepeatedFieldValueType GamerulesMasks { get => new ProtobufRepeatedFieldValueType(Accessor, "gamerules_masks"); } - public IProtobufRepeatedFieldValueType BanMasks - { get => new ProtobufRepeatedFieldValueType(Accessor, "ban_masks"); } + public IProtobufRepeatedFieldValueType BanMasks { get => new ProtobufRepeatedFieldValueType(Accessor, "ban_masks"); } - public bool ModEnable - { get => Accessor.GetBool("mod_enable"); set => Accessor.SetBool("mod_enable", value); } + public bool ModEnable { get => Accessor.GetBool("mod_enable"); set => Accessor.SetBool("mod_enable", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageWaterShakeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageWaterShakeImpl.cs index a99870afd..d5826a79b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageWaterShakeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessageWaterShakeImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessageWaterShakeImpl : NetMessage, CUserMessageWaterShake { - public CUserMessageWaterShakeImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessageWaterShakeImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public uint Command - { get => Accessor.GetUInt32("command"); set => Accessor.SetUInt32("command", value); } + public uint Command { get => Accessor.GetUInt32("command"); set => Accessor.SetUInt32("command", value); } - public float Amplitude - { get => Accessor.GetFloat("amplitude"); set => Accessor.SetFloat("amplitude", value); } + public float Amplitude { get => Accessor.GetFloat("amplitude"); set => Accessor.SetFloat("amplitude", value); } - public float Frequency - { get => Accessor.GetFloat("frequency"); set => Accessor.SetFloat("frequency", value); } + public float Frequency { get => Accessor.GetFloat("frequency"); set => Accessor.SetFloat("frequency", value); } - public float Duration - { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } + public float Duration { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Diagnostic_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Diagnostic_ResponseImpl.cs index b83c01849..31e6caa1d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Diagnostic_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Diagnostic_ResponseImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,32 +6,26 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessage_Diagnostic_ResponseImpl : TypedProtobuf, CUserMessage_Diagnostic_Response { - public CUserMessage_Diagnostic_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMessage_Diagnostic_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType Diagnostics - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "diagnostics"); } + public IProtobufRepeatedFieldSubMessageType Diagnostics { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "diagnostics"); } - public int BuildVersion - { get => Accessor.GetInt32("build_version"); set => Accessor.SetInt32("build_version", value); } + public int BuildVersion { get => Accessor.GetInt32("build_version"); set => Accessor.SetInt32("build_version", value); } - public int Instance - { get => Accessor.GetInt32("instance"); set => Accessor.SetInt32("instance", value); } + public int Instance { get => Accessor.GetInt32("instance"); set => Accessor.SetInt32("instance", value); } - public long StartTime - { get => Accessor.GetInt64("start_time"); set => Accessor.SetInt64("start_time", value); } + public long StartTime { get => Accessor.GetInt64("start_time"); set => Accessor.SetInt64("start_time", value); } - public int Osversion - { get => Accessor.GetInt32("osversion"); set => Accessor.SetInt32("osversion", value); } + public int Osversion { get => Accessor.GetInt32("osversion"); set => Accessor.SetInt32("osversion", value); } - public int Platform - { get => Accessor.GetInt32("platform"); set => Accessor.SetInt32("platform", value); } + public int Platform { get => Accessor.GetInt32("platform"); set => Accessor.SetInt32("platform", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Diagnostic_Response_DiagnosticImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Diagnostic_Response_DiagnosticImpl.cs index 44f5b48f0..697252a46 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Diagnostic_Response_DiagnosticImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Diagnostic_Response_DiagnosticImpl.cs @@ -1,76 +1,57 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessage_Diagnostic_Response_DiagnosticImpl : TypedProtobuf, CUserMessage_Diagnostic_Response_Diagnostic { - public CUserMessage_Diagnostic_Response_DiagnosticImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMessage_Diagnostic_Response_DiagnosticImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Index - { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } + public int Index { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } - public long Offset - { get => Accessor.GetInt64("offset"); set => Accessor.SetInt64("offset", value); } + public long Offset { get => Accessor.GetInt64("offset"); set => Accessor.SetInt64("offset", value); } - public int Param - { get => Accessor.GetInt32("param"); set => Accessor.SetInt32("param", value); } + public int Param { get => Accessor.GetInt32("param"); set => Accessor.SetInt32("param", value); } - public int Length - { get => Accessor.GetInt32("length"); set => Accessor.SetInt32("length", value); } + public int Length { get => Accessor.GetInt32("length"); set => Accessor.SetInt32("length", value); } - public byte[] Detail - { get => Accessor.GetBytes("detail"); set => Accessor.SetBytes("detail", value); } + public byte[] Detail { get => Accessor.GetBytes("detail"); set => Accessor.SetBytes("detail", value); } - public long Base - { get => Accessor.GetInt64("base"); set => Accessor.SetInt64("base", value); } + public long Base { get => Accessor.GetInt64("base"); set => Accessor.SetInt64("base", value); } - public long Range - { get => Accessor.GetInt64("range"); set => Accessor.SetInt64("range", value); } + public long Range { get => Accessor.GetInt64("range"); set => Accessor.SetInt64("range", value); } - public int Type - { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } + public int Type { get => Accessor.GetInt32("type"); set => Accessor.SetInt32("type", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public string Alias - { get => Accessor.GetString("alias"); set => Accessor.SetString("alias", value); } + public string Alias { get => Accessor.GetString("alias"); set => Accessor.SetString("alias", value); } - public byte[] Backup - { get => Accessor.GetBytes("backup"); set => Accessor.SetBytes("backup", value); } + public byte[] Backup { get => Accessor.GetBytes("backup"); set => Accessor.SetBytes("backup", value); } - public int Context - { get => Accessor.GetInt32("context"); set => Accessor.SetInt32("context", value); } + public int Context { get => Accessor.GetInt32("context"); set => Accessor.SetInt32("context", value); } - public long Control - { get => Accessor.GetInt64("control"); set => Accessor.SetInt64("control", value); } + public long Control { get => Accessor.GetInt64("control"); set => Accessor.SetInt64("control", value); } - public long Augment - { get => Accessor.GetInt64("augment"); set => Accessor.SetInt64("augment", value); } + public long Augment { get => Accessor.GetInt64("augment"); set => Accessor.SetInt64("augment", value); } - public long Placebo - { get => Accessor.GetInt64("placebo"); set => Accessor.SetInt64("placebo", value); } + public long Placebo { get => Accessor.GetInt64("placebo"); set => Accessor.SetInt64("placebo", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_DllStatusImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_DllStatusImpl.cs index b20a79b03..dcf72863f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_DllStatusImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_DllStatusImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,40 +6,32 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessage_DllStatusImpl : TypedProtobuf, CUserMessage_DllStatus { - public CUserMessage_DllStatusImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMessage_DllStatusImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string FileReport - { get => Accessor.GetString("file_report"); set => Accessor.SetString("file_report", value); } + public string FileReport { get => Accessor.GetString("file_report"); set => Accessor.SetString("file_report", value); } - public string CommandLine - { get => Accessor.GetString("command_line"); set => Accessor.SetString("command_line", value); } + public string CommandLine { get => Accessor.GetString("command_line"); set => Accessor.SetString("command_line", value); } - public uint TotalFiles - { get => Accessor.GetUInt32("total_files"); set => Accessor.SetUInt32("total_files", value); } + public uint TotalFiles { get => Accessor.GetUInt32("total_files"); set => Accessor.SetUInt32("total_files", value); } - public uint ProcessId - { get => Accessor.GetUInt32("process_id"); set => Accessor.SetUInt32("process_id", value); } + public uint ProcessId { get => Accessor.GetUInt32("process_id"); set => Accessor.SetUInt32("process_id", value); } - public int Osversion - { get => Accessor.GetInt32("osversion"); set => Accessor.SetInt32("osversion", value); } + public int Osversion { get => Accessor.GetInt32("osversion"); set => Accessor.SetInt32("osversion", value); } - public ulong ClientTime - { get => Accessor.GetUInt64("client_time"); set => Accessor.SetUInt64("client_time", value); } + public ulong ClientTime { get => Accessor.GetUInt64("client_time"); set => Accessor.SetUInt64("client_time", value); } - public IProtobufRepeatedFieldSubMessageType Diagnostics - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "diagnostics"); } + public IProtobufRepeatedFieldSubMessageType Diagnostics { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "diagnostics"); } - public IProtobufRepeatedFieldSubMessageType Modules - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "modules"); } + public IProtobufRepeatedFieldSubMessageType Modules { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "modules"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_DllStatus_CModuleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_DllStatus_CModuleImpl.cs index a3c8e8a21..2e39e444d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_DllStatus_CModuleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_DllStatus_CModuleImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessage_DllStatus_CModuleImpl : TypedProtobuf, CUserMessage_DllStatus_CModule { - public CUserMessage_DllStatus_CModuleImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMessage_DllStatus_CModuleImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong BaseAddr - { get => Accessor.GetUInt64("base_addr"); set => Accessor.SetUInt64("base_addr", value); } + public ulong BaseAddr { get => Accessor.GetUInt64("base_addr"); set => Accessor.SetUInt64("base_addr", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public uint Size - { get => Accessor.GetUInt32("size"); set => Accessor.SetUInt32("size", value); } + public uint Size { get => Accessor.GetUInt32("size"); set => Accessor.SetUInt32("size", value); } - public uint Timestamp - { get => Accessor.GetUInt32("timestamp"); set => Accessor.SetUInt32("timestamp", value); } + public uint Timestamp { get => Accessor.GetUInt32("timestamp"); set => Accessor.SetUInt32("timestamp", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_DllStatus_CVDiagnosticImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_DllStatus_CVDiagnosticImpl.cs index 589a2b91d..367bbf2b8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_DllStatus_CVDiagnosticImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_DllStatus_CVDiagnosticImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessage_DllStatus_CVDiagnosticImpl : TypedProtobuf, CUserMessage_DllStatus_CVDiagnostic { - public CUserMessage_DllStatus_CVDiagnosticImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMessage_DllStatus_CVDiagnosticImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Id - { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } + public uint Id { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } - public uint Extended - { get => Accessor.GetUInt32("extended"); set => Accessor.SetUInt32("extended", value); } + public uint Extended { get => Accessor.GetUInt32("extended"); set => Accessor.SetUInt32("extended", value); } - public ulong Value - { get => Accessor.GetUInt64("value"); set => Accessor.SetUInt64("value", value); } + public ulong Value { get => Accessor.GetUInt64("value"); set => Accessor.SetUInt64("value", value); } - public string StringValue - { get => Accessor.GetString("string_value"); set => Accessor.SetString("string_value", value); } + public string StringValue { get => Accessor.GetString("string_value"); set => Accessor.SetString("string_value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_ExtraUserDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_ExtraUserDataImpl.cs index c27ad3072..1fbc42193 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_ExtraUserDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_ExtraUserDataImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,28 +6,23 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessage_ExtraUserDataImpl : NetMessage, CUserMessage_ExtraUserData { - public CUserMessage_ExtraUserDataImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessage_ExtraUserDataImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int Item - { get => Accessor.GetInt32("item"); set => Accessor.SetInt32("item", value); } + public int Item { get => Accessor.GetInt32("item"); set => Accessor.SetInt32("item", value); } - public long Value1 - { get => Accessor.GetInt64("value1"); set => Accessor.SetInt64("value1", value); } + public long Value1 { get => Accessor.GetInt64("value1"); set => Accessor.SetInt64("value1", value); } - public long Value2 - { get => Accessor.GetInt64("value2"); set => Accessor.SetInt64("value2", value); } + public long Value2 { get => Accessor.GetInt64("value2"); set => Accessor.SetInt64("value2", value); } - public IProtobufRepeatedFieldValueType Detail1 - { get => new ProtobufRepeatedFieldValueType(Accessor, "detail1"); } + public IProtobufRepeatedFieldValueType Detail1 { get => new ProtobufRepeatedFieldValueType(Accessor, "detail1"); } - public IProtobufRepeatedFieldValueType Detail2 - { get => new ProtobufRepeatedFieldValueType(Accessor, "detail2"); } + public IProtobufRepeatedFieldValueType Detail2 { get => new ProtobufRepeatedFieldValueType(Accessor, "detail2"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Inventory_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Inventory_ResponseImpl.cs index 905bf0b3c..473cbdf66 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Inventory_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Inventory_ResponseImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,60 +6,47 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessage_Inventory_ResponseImpl : TypedProtobuf, CUserMessage_Inventory_Response { - public CUserMessage_Inventory_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMessage_Inventory_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Crc - { get => Accessor.GetUInt32("crc"); set => Accessor.SetUInt32("crc", value); } + public uint Crc { get => Accessor.GetUInt32("crc"); set => Accessor.SetUInt32("crc", value); } - public int ItemCount - { get => Accessor.GetInt32("item_count"); set => Accessor.SetInt32("item_count", value); } + public int ItemCount { get => Accessor.GetInt32("item_count"); set => Accessor.SetInt32("item_count", value); } - public int Osversion - { get => Accessor.GetInt32("osversion"); set => Accessor.SetInt32("osversion", value); } + public int Osversion { get => Accessor.GetInt32("osversion"); set => Accessor.SetInt32("osversion", value); } - public int PerfTime - { get => Accessor.GetInt32("perf_time"); set => Accessor.SetInt32("perf_time", value); } + public int PerfTime { get => Accessor.GetInt32("perf_time"); set => Accessor.SetInt32("perf_time", value); } - public int ClientTimestamp - { get => Accessor.GetInt32("client_timestamp"); set => Accessor.SetInt32("client_timestamp", value); } + public int ClientTimestamp { get => Accessor.GetInt32("client_timestamp"); set => Accessor.SetInt32("client_timestamp", value); } - public int Platform - { get => Accessor.GetInt32("platform"); set => Accessor.SetInt32("platform", value); } + public int Platform { get => Accessor.GetInt32("platform"); set => Accessor.SetInt32("platform", value); } - public IProtobufRepeatedFieldSubMessageType Inventories - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "inventories"); } + public IProtobufRepeatedFieldSubMessageType Inventories { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "inventories"); } - public IProtobufRepeatedFieldSubMessageType Inventories2 - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "inventories2"); } + public IProtobufRepeatedFieldSubMessageType Inventories2 { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "inventories2"); } - public IProtobufRepeatedFieldSubMessageType Inventories3 - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "inventories3"); } + public IProtobufRepeatedFieldSubMessageType Inventories3 { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "inventories3"); } - public int InvType - { get => Accessor.GetInt32("inv_type"); set => Accessor.SetInt32("inv_type", value); } + public int InvType { get => Accessor.GetInt32("inv_type"); set => Accessor.SetInt32("inv_type", value); } - public int BuildVersion - { get => Accessor.GetInt32("build_version"); set => Accessor.SetInt32("build_version", value); } + public int BuildVersion { get => Accessor.GetInt32("build_version"); set => Accessor.SetInt32("build_version", value); } - public int Instance - { get => Accessor.GetInt32("instance"); set => Accessor.SetInt32("instance", value); } + public int Instance { get => Accessor.GetInt32("instance"); set => Accessor.SetInt32("instance", value); } - public long StartTime - { get => Accessor.GetInt64("start_time"); set => Accessor.SetInt64("start_time", value); } + public long StartTime { get => Accessor.GetInt64("start_time"); set => Accessor.SetInt64("start_time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Inventory_Response_InventoryDetailImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Inventory_Response_InventoryDetailImpl.cs index 8eb343ea9..ef38834dd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Inventory_Response_InventoryDetailImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_Inventory_Response_InventoryDetailImpl.cs @@ -1,56 +1,42 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessage_Inventory_Response_InventoryDetailImpl : TypedProtobuf, CUserMessage_Inventory_Response_InventoryDetail { - public CUserMessage_Inventory_Response_InventoryDetailImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMessage_Inventory_Response_InventoryDetailImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Index - { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } + public int Index { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } - public long Primary - { get => Accessor.GetInt64("primary"); set => Accessor.SetInt64("primary", value); } + public long Primary { get => Accessor.GetInt64("primary"); set => Accessor.SetInt64("primary", value); } - public long Offset - { get => Accessor.GetInt64("offset"); set => Accessor.SetInt64("offset", value); } + public long Offset { get => Accessor.GetInt64("offset"); set => Accessor.SetInt64("offset", value); } - public long First - { get => Accessor.GetInt64("first"); set => Accessor.SetInt64("first", value); } + public long First { get => Accessor.GetInt64("first"); set => Accessor.SetInt64("first", value); } - public long Base - { get => Accessor.GetInt64("base"); set => Accessor.SetInt64("base", value); } + public long Base { get => Accessor.GetInt64("base"); set => Accessor.SetInt64("base", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public string BaseName - { get => Accessor.GetString("base_name"); set => Accessor.SetString("base_name", value); } + public string BaseName { get => Accessor.GetString("base_name"); set => Accessor.SetString("base_name", value); } - public int BaseDetail - { get => Accessor.GetInt32("base_detail"); set => Accessor.SetInt32("base_detail", value); } + public int BaseDetail { get => Accessor.GetInt32("base_detail"); set => Accessor.SetInt32("base_detail", value); } - public int BaseTime - { get => Accessor.GetInt32("base_time"); set => Accessor.SetInt32("base_time", value); } + public int BaseTime { get => Accessor.GetInt32("base_time"); set => Accessor.SetInt32("base_time", value); } - public int BaseHash - { get => Accessor.GetInt32("base_hash"); set => Accessor.SetInt32("base_hash", value); } + public int BaseHash { get => Accessor.GetInt32("base_hash"); set => Accessor.SetInt32("base_hash", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_NotifyResponseFoundImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_NotifyResponseFoundImpl.cs index 9a639d23e..0267b4592 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_NotifyResponseFoundImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_NotifyResponseFoundImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,56 +6,44 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessage_NotifyResponseFoundImpl : NetMessage, CUserMessage_NotifyResponseFound { - public CUserMessage_NotifyResponseFoundImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessage_NotifyResponseFoundImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int EntIndex - { get => Accessor.GetInt32("ent_index"); set => Accessor.SetInt32("ent_index", value); } + public int EntIndex { get => Accessor.GetInt32("ent_index"); set => Accessor.SetInt32("ent_index", value); } - public string RuleName - { get => Accessor.GetString("rule_name"); set => Accessor.SetString("rule_name", value); } + public string RuleName { get => Accessor.GetString("rule_name"); set => Accessor.SetString("rule_name", value); } - public string ResponseValue - { get => Accessor.GetString("response_value"); set => Accessor.SetString("response_value", value); } + public string ResponseValue { get => Accessor.GetString("response_value"); set => Accessor.SetString("response_value", value); } - public string ResponseConcept - { get => Accessor.GetString("response_concept"); set => Accessor.SetString("response_concept", value); } + public string ResponseConcept { get => Accessor.GetString("response_concept"); set => Accessor.SetString("response_concept", value); } - public IProtobufRepeatedFieldSubMessageType Criteria - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "criteria"); } + public IProtobufRepeatedFieldSubMessageType Criteria { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "criteria"); } - public IProtobufRepeatedFieldValueType IntCriteriaNames - { get => new ProtobufRepeatedFieldValueType(Accessor, "int_criteria_names"); } + public IProtobufRepeatedFieldValueType IntCriteriaNames { get => new ProtobufRepeatedFieldValueType(Accessor, "int_criteria_names"); } - public IProtobufRepeatedFieldValueType IntCriteriaValues - { get => new ProtobufRepeatedFieldValueType(Accessor, "int_criteria_values"); } + public IProtobufRepeatedFieldValueType IntCriteriaValues { get => new ProtobufRepeatedFieldValueType(Accessor, "int_criteria_values"); } - public IProtobufRepeatedFieldValueType FloatCriteriaNames - { get => new ProtobufRepeatedFieldValueType(Accessor, "float_criteria_names"); } + public IProtobufRepeatedFieldValueType FloatCriteriaNames { get => new ProtobufRepeatedFieldValueType(Accessor, "float_criteria_names"); } - public IProtobufRepeatedFieldValueType FloatCriteriaValues - { get => new ProtobufRepeatedFieldValueType(Accessor, "float_criteria_values"); } + public IProtobufRepeatedFieldValueType FloatCriteriaValues { get => new ProtobufRepeatedFieldValueType(Accessor, "float_criteria_values"); } - public IProtobufRepeatedFieldValueType SymbolCriteriaNames - { get => new ProtobufRepeatedFieldValueType(Accessor, "symbol_criteria_names"); } + public IProtobufRepeatedFieldValueType SymbolCriteriaNames { get => new ProtobufRepeatedFieldValueType(Accessor, "symbol_criteria_names"); } - public IProtobufRepeatedFieldValueType SymbolCriteriaValues - { get => new ProtobufRepeatedFieldValueType(Accessor, "symbol_criteria_values"); } + public IProtobufRepeatedFieldValueType SymbolCriteriaValues { get => new ProtobufRepeatedFieldValueType(Accessor, "symbol_criteria_values"); } - public int SpeakResult - { get => Accessor.GetInt32("speak_result"); set => Accessor.SetInt32("speak_result", value); } + public int SpeakResult { get => Accessor.GetInt32("speak_result"); set => Accessor.SetInt32("speak_result", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_NotifyResponseFound_CriteriaImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_NotifyResponseFound_CriteriaImpl.cs index c42c1fb8d..4f8f47db3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_NotifyResponseFound_CriteriaImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_NotifyResponseFound_CriteriaImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessage_NotifyResponseFound_CriteriaImpl : TypedProtobuf, CUserMessage_NotifyResponseFound_Criteria { - public CUserMessage_NotifyResponseFound_CriteriaImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMessage_NotifyResponseFound_CriteriaImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint NameSymbol - { get => Accessor.GetUInt32("name_symbol"); set => Accessor.SetUInt32("name_symbol", value); } + public uint NameSymbol { get => Accessor.GetUInt32("name_symbol"); set => Accessor.SetUInt32("name_symbol", value); } - public string Value - { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } + public string Value { get => Accessor.GetString("value"); set => Accessor.SetString("value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_PlayResponseConditionalImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_PlayResponseConditionalImpl.cs index ebbeacaab..f576882e4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_PlayResponseConditionalImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_PlayResponseConditionalImpl.cs @@ -1,5 +1,3 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; @@ -9,32 +7,26 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessage_PlayResponseConditionalImpl : NetMessage, CUserMessage_PlayResponseConditional { - public CUserMessage_PlayResponseConditionalImpl(nint handle, bool isManuallyAllocated): base(handle, isManuallyAllocated) - { - } + public CUserMessage_PlayResponseConditionalImpl( nint handle, bool isManuallyAllocated ) : base(handle, isManuallyAllocated) + { + } - public int EntIndex - { get => Accessor.GetInt32("ent_index"); set => Accessor.SetInt32("ent_index", value); } + public int EntIndex { get => Accessor.GetInt32("ent_index"); set => Accessor.SetInt32("ent_index", value); } - public IProtobufRepeatedFieldValueType PlayerSlots - { get => new ProtobufRepeatedFieldValueType(Accessor, "player_slots"); } + public IProtobufRepeatedFieldValueType PlayerSlots { get => new ProtobufRepeatedFieldValueType(Accessor, "player_slots"); } - public string Response - { get => Accessor.GetString("response"); set => Accessor.SetString("response", value); } + public string Response { get => Accessor.GetString("response"); set => Accessor.SetString("response", value); } - public Vector EntOrigin - { get => Accessor.GetVector("ent_origin"); set => Accessor.SetVector("ent_origin", value); } + public Vector EntOrigin { get => Accessor.GetVector("ent_origin"); set => Accessor.SetVector("ent_origin", value); } - public float PreDelay - { get => Accessor.GetFloat("pre_delay"); set => Accessor.SetFloat("pre_delay", value); } + public float PreDelay { get => Accessor.GetFloat("pre_delay"); set => Accessor.SetFloat("pre_delay", value); } - public int MixPriority - { get => Accessor.GetInt32("mix_priority"); set => Accessor.SetInt32("mix_priority", value); } + public int MixPriority { get => Accessor.GetInt32("mix_priority"); set => Accessor.SetInt32("mix_priority", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_UtilMsg_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_UtilMsg_ResponseImpl.cs index f3b5c822f..18f8e0ed9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_UtilMsg_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_UtilMsg_ResponseImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,56 +6,44 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessage_UtilMsg_ResponseImpl : TypedProtobuf, CUserMessage_UtilMsg_Response { - public CUserMessage_UtilMsg_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMessage_UtilMsg_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Crc - { get => Accessor.GetUInt32("crc"); set => Accessor.SetUInt32("crc", value); } + public uint Crc { get => Accessor.GetUInt32("crc"); set => Accessor.SetUInt32("crc", value); } - public int ItemCount - { get => Accessor.GetInt32("item_count"); set => Accessor.SetInt32("item_count", value); } + public int ItemCount { get => Accessor.GetInt32("item_count"); set => Accessor.SetInt32("item_count", value); } - public uint Crc2 - { get => Accessor.GetUInt32("crc2"); set => Accessor.SetUInt32("crc2", value); } + public uint Crc2 { get => Accessor.GetUInt32("crc2"); set => Accessor.SetUInt32("crc2", value); } - public int ItemCount2 - { get => Accessor.GetInt32("item_count2"); set => Accessor.SetInt32("item_count2", value); } + public int ItemCount2 { get => Accessor.GetInt32("item_count2"); set => Accessor.SetInt32("item_count2", value); } - public IProtobufRepeatedFieldValueType CrcPart - { get => new ProtobufRepeatedFieldValueType(Accessor, "crc_part"); } + public IProtobufRepeatedFieldValueType CrcPart { get => new ProtobufRepeatedFieldValueType(Accessor, "crc_part"); } - public IProtobufRepeatedFieldValueType CrcPart2 - { get => new ProtobufRepeatedFieldValueType(Accessor, "crc_part2"); } + public IProtobufRepeatedFieldValueType CrcPart2 { get => new ProtobufRepeatedFieldValueType(Accessor, "crc_part2"); } - public int ClientTimestamp - { get => Accessor.GetInt32("client_timestamp"); set => Accessor.SetInt32("client_timestamp", value); } + public int ClientTimestamp { get => Accessor.GetInt32("client_timestamp"); set => Accessor.SetInt32("client_timestamp", value); } - public int Platform - { get => Accessor.GetInt32("platform"); set => Accessor.SetInt32("platform", value); } + public int Platform { get => Accessor.GetInt32("platform"); set => Accessor.SetInt32("platform", value); } - public IProtobufRepeatedFieldSubMessageType Itemdetails - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "itemdetails"); } + public IProtobufRepeatedFieldSubMessageType Itemdetails { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "itemdetails"); } - public int Itemgroup - { get => Accessor.GetInt32("itemgroup"); set => Accessor.SetInt32("itemgroup", value); } + public int Itemgroup { get => Accessor.GetInt32("itemgroup"); set => Accessor.SetInt32("itemgroup", value); } - public int TotalCount - { get => Accessor.GetInt32("total_count"); set => Accessor.SetInt32("total_count", value); } + public int TotalCount { get => Accessor.GetInt32("total_count"); set => Accessor.SetInt32("total_count", value); } - public int TotalCount2 - { get => Accessor.GetInt32("total_count2"); set => Accessor.SetInt32("total_count2", value); } + public int TotalCount2 { get => Accessor.GetInt32("total_count2"); set => Accessor.SetInt32("total_count2", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_UtilMsg_Response_ItemDetailImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_UtilMsg_Response_ItemDetailImpl.cs index 18bbe5ad7..58b32be19 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_UtilMsg_Response_ItemDetailImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMessage_UtilMsg_Response_ItemDetailImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMessage_UtilMsg_Response_ItemDetailImpl : TypedProtobuf, CUserMessage_UtilMsg_Response_ItemDetail { - public CUserMessage_UtilMsg_Response_ItemDetailImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMessage_UtilMsg_Response_ItemDetailImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Index - { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } + public int Index { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } - public int Hash - { get => Accessor.GetInt32("hash"); set => Accessor.SetInt32("hash", value); } + public int Hash { get => Accessor.GetInt32("hash"); set => Accessor.SetInt32("hash", value); } - public int Crc - { get => Accessor.GetInt32("crc"); set => Accessor.SetInt32("crc", value); } + public int Crc { get => Accessor.GetInt32("crc"); set => Accessor.SetInt32("crc", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_CustomGameEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_CustomGameEventImpl.cs index 0d88d00a3..6b5c4980d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_CustomGameEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_CustomGameEventImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_CustomGameEventImpl : TypedProtobuf, CUserMsg_CustomGameEvent { - public CUserMsg_CustomGameEventImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_CustomGameEventImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string EventName - { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } + public string EventName { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } - public byte[] Data - { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } + public byte[] Data { get => Accessor.GetBytes("data"); set => Accessor.SetBytes("data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_HudErrorImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_HudErrorImpl.cs index 3dde78578..36996c17d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_HudErrorImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_HudErrorImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_HudErrorImpl : TypedProtobuf, CUserMsg_HudError { - public CUserMsg_HudErrorImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_HudErrorImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int OrderId - { get => Accessor.GetInt32("order_id"); set => Accessor.SetInt32("order_id", value); } + public int OrderId { get => Accessor.GetInt32("order_id"); set => Accessor.SetInt32("order_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManagerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManagerImpl.cs index 136996b38..7939161c2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManagerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManagerImpl.cs @@ -1,180 +1,137 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManagerImpl : TypedProtobuf, CUserMsg_ParticleManager { - public CUserMsg_ParticleManagerImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManagerImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public PARTICLE_MESSAGE Type - { get => (PARTICLE_MESSAGE)Accessor.GetInt32("type"); set => Accessor.SetInt32("type", (int)value); } + public PARTICLE_MESSAGE Type { get => (PARTICLE_MESSAGE)Accessor.GetInt32("type"); set => Accessor.SetInt32("type", (int)value); } - public uint Index - { get => Accessor.GetUInt32("index"); set => Accessor.SetUInt32("index", value); } + public uint Index { get => Accessor.GetUInt32("index"); set => Accessor.SetUInt32("index", value); } - public CUserMsg_ParticleManager_ReleaseParticleIndex ReleaseParticleIndex - { get => new CUserMsg_ParticleManager_ReleaseParticleIndexImpl(NativeNetMessages.GetNestedMessage(Address, "release_particle_index"), false); } + public CUserMsg_ParticleManager_ReleaseParticleIndex ReleaseParticleIndex { get => new CUserMsg_ParticleManager_ReleaseParticleIndexImpl(NativeNetMessages.GetNestedMessage(Address, "release_particle_index"), false); } - public CUserMsg_ParticleManager_CreateParticle CreateParticle - { get => new CUserMsg_ParticleManager_CreateParticleImpl(NativeNetMessages.GetNestedMessage(Address, "create_particle"), false); } + public CUserMsg_ParticleManager_CreateParticle CreateParticle { get => new CUserMsg_ParticleManager_CreateParticleImpl(NativeNetMessages.GetNestedMessage(Address, "create_particle"), false); } - public CUserMsg_ParticleManager_DestroyParticle DestroyParticle - { get => new CUserMsg_ParticleManager_DestroyParticleImpl(NativeNetMessages.GetNestedMessage(Address, "destroy_particle"), false); } + public CUserMsg_ParticleManager_DestroyParticle DestroyParticle { get => new CUserMsg_ParticleManager_DestroyParticleImpl(NativeNetMessages.GetNestedMessage(Address, "destroy_particle"), false); } - public CUserMsg_ParticleManager_DestroyParticleInvolving DestroyParticleInvolving - { get => new CUserMsg_ParticleManager_DestroyParticleInvolvingImpl(NativeNetMessages.GetNestedMessage(Address, "destroy_particle_involving"), false); } + public CUserMsg_ParticleManager_DestroyParticleInvolving DestroyParticleInvolving { get => new CUserMsg_ParticleManager_DestroyParticleInvolvingImpl(NativeNetMessages.GetNestedMessage(Address, "destroy_particle_involving"), false); } - public CUserMsg_ParticleManager_UpdateParticle_OBSOLETE UpdateParticle - { get => new CUserMsg_ParticleManager_UpdateParticle_OBSOLETEImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle"), false); } + public CUserMsg_ParticleManager_UpdateParticle_OBSOLETE UpdateParticle { get => new CUserMsg_ParticleManager_UpdateParticle_OBSOLETEImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle"), false); } - public CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETE UpdateParticleFwd - { get => new CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETEImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_fwd"), false); } + public CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETE UpdateParticleFwd { get => new CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETEImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_fwd"), false); } - public CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETE UpdateParticleOrient - { get => new CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETEImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_orient"), false); } + public CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETE UpdateParticleOrient { get => new CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETEImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_orient"), false); } - public CUserMsg_ParticleManager_UpdateParticleFallback UpdateParticleFallback - { get => new CUserMsg_ParticleManager_UpdateParticleFallbackImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_fallback"), false); } + public CUserMsg_ParticleManager_UpdateParticleFallback UpdateParticleFallback { get => new CUserMsg_ParticleManager_UpdateParticleFallbackImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_fallback"), false); } - public CUserMsg_ParticleManager_UpdateParticleOffset UpdateParticleOffset - { get => new CUserMsg_ParticleManager_UpdateParticleOffsetImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_offset"), false); } + public CUserMsg_ParticleManager_UpdateParticleOffset UpdateParticleOffset { get => new CUserMsg_ParticleManager_UpdateParticleOffsetImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_offset"), false); } - public CUserMsg_ParticleManager_UpdateParticleEnt UpdateParticleEnt - { get => new CUserMsg_ParticleManager_UpdateParticleEntImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_ent"), false); } + public CUserMsg_ParticleManager_UpdateParticleEnt UpdateParticleEnt { get => new CUserMsg_ParticleManager_UpdateParticleEntImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_ent"), false); } - public CUserMsg_ParticleManager_UpdateParticleShouldDraw UpdateParticleShouldDraw - { get => new CUserMsg_ParticleManager_UpdateParticleShouldDrawImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_should_draw"), false); } + public CUserMsg_ParticleManager_UpdateParticleShouldDraw UpdateParticleShouldDraw { get => new CUserMsg_ParticleManager_UpdateParticleShouldDrawImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_should_draw"), false); } - public CUserMsg_ParticleManager_UpdateParticleSetFrozen UpdateParticleSetFrozen - { get => new CUserMsg_ParticleManager_UpdateParticleSetFrozenImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_set_frozen"), false); } + public CUserMsg_ParticleManager_UpdateParticleSetFrozen UpdateParticleSetFrozen { get => new CUserMsg_ParticleManager_UpdateParticleSetFrozenImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_set_frozen"), false); } - public CUserMsg_ParticleManager_ChangeControlPointAttachment ChangeControlPointAttachment - { get => new CUserMsg_ParticleManager_ChangeControlPointAttachmentImpl(NativeNetMessages.GetNestedMessage(Address, "change_control_point_attachment"), false); } + public CUserMsg_ParticleManager_ChangeControlPointAttachment ChangeControlPointAttachment { get => new CUserMsg_ParticleManager_ChangeControlPointAttachmentImpl(NativeNetMessages.GetNestedMessage(Address, "change_control_point_attachment"), false); } - public CUserMsg_ParticleManager_UpdateEntityPosition UpdateEntityPosition - { get => new CUserMsg_ParticleManager_UpdateEntityPositionImpl(NativeNetMessages.GetNestedMessage(Address, "update_entity_position"), false); } + public CUserMsg_ParticleManager_UpdateEntityPosition UpdateEntityPosition { get => new CUserMsg_ParticleManager_UpdateEntityPositionImpl(NativeNetMessages.GetNestedMessage(Address, "update_entity_position"), false); } - public CUserMsg_ParticleManager_SetParticleFoWProperties SetParticleFowProperties - { get => new CUserMsg_ParticleManager_SetParticleFoWPropertiesImpl(NativeNetMessages.GetNestedMessage(Address, "set_particle_fow_properties"), false); } + public CUserMsg_ParticleManager_SetParticleFoWProperties SetParticleFowProperties { get => new CUserMsg_ParticleManager_SetParticleFoWPropertiesImpl(NativeNetMessages.GetNestedMessage(Address, "set_particle_fow_properties"), false); } - public CUserMsg_ParticleManager_SetParticleText SetParticleText - { get => new CUserMsg_ParticleManager_SetParticleTextImpl(NativeNetMessages.GetNestedMessage(Address, "set_particle_text"), false); } + public CUserMsg_ParticleManager_SetParticleText SetParticleText { get => new CUserMsg_ParticleManager_SetParticleTextImpl(NativeNetMessages.GetNestedMessage(Address, "set_particle_text"), false); } - public CUserMsg_ParticleManager_SetParticleShouldCheckFoW SetParticleShouldCheckFow - { get => new CUserMsg_ParticleManager_SetParticleShouldCheckFoWImpl(NativeNetMessages.GetNestedMessage(Address, "set_particle_should_check_fow"), false); } + public CUserMsg_ParticleManager_SetParticleShouldCheckFoW SetParticleShouldCheckFow { get => new CUserMsg_ParticleManager_SetParticleShouldCheckFoWImpl(NativeNetMessages.GetNestedMessage(Address, "set_particle_should_check_fow"), false); } - public CUserMsg_ParticleManager_SetControlPointModel SetControlPointModel - { get => new CUserMsg_ParticleManager_SetControlPointModelImpl(NativeNetMessages.GetNestedMessage(Address, "set_control_point_model"), false); } + public CUserMsg_ParticleManager_SetControlPointModel SetControlPointModel { get => new CUserMsg_ParticleManager_SetControlPointModelImpl(NativeNetMessages.GetNestedMessage(Address, "set_control_point_model"), false); } - public CUserMsg_ParticleManager_SetControlPointSnapshot SetControlPointSnapshot - { get => new CUserMsg_ParticleManager_SetControlPointSnapshotImpl(NativeNetMessages.GetNestedMessage(Address, "set_control_point_snapshot"), false); } + public CUserMsg_ParticleManager_SetControlPointSnapshot SetControlPointSnapshot { get => new CUserMsg_ParticleManager_SetControlPointSnapshotImpl(NativeNetMessages.GetNestedMessage(Address, "set_control_point_snapshot"), false); } - public CUserMsg_ParticleManager_SetTextureAttribute SetTextureAttribute - { get => new CUserMsg_ParticleManager_SetTextureAttributeImpl(NativeNetMessages.GetNestedMessage(Address, "set_texture_attribute"), false); } + public CUserMsg_ParticleManager_SetTextureAttribute SetTextureAttribute { get => new CUserMsg_ParticleManager_SetTextureAttributeImpl(NativeNetMessages.GetNestedMessage(Address, "set_texture_attribute"), false); } - public CUserMsg_ParticleManager_SetSceneObjectGenericFlag SetSceneObjectGenericFlag - { get => new CUserMsg_ParticleManager_SetSceneObjectGenericFlagImpl(NativeNetMessages.GetNestedMessage(Address, "set_scene_object_generic_flag"), false); } + public CUserMsg_ParticleManager_SetSceneObjectGenericFlag SetSceneObjectGenericFlag { get => new CUserMsg_ParticleManager_SetSceneObjectGenericFlagImpl(NativeNetMessages.GetNestedMessage(Address, "set_scene_object_generic_flag"), false); } - public CUserMsg_ParticleManager_SetSceneObjectTintAndDesat SetSceneObjectTintAndDesat - { get => new CUserMsg_ParticleManager_SetSceneObjectTintAndDesatImpl(NativeNetMessages.GetNestedMessage(Address, "set_scene_object_tint_and_desat"), false); } + public CUserMsg_ParticleManager_SetSceneObjectTintAndDesat SetSceneObjectTintAndDesat { get => new CUserMsg_ParticleManager_SetSceneObjectTintAndDesatImpl(NativeNetMessages.GetNestedMessage(Address, "set_scene_object_tint_and_desat"), false); } - public CUserMsg_ParticleManager_DestroyParticleNamed DestroyParticleNamed - { get => new CUserMsg_ParticleManager_DestroyParticleNamedImpl(NativeNetMessages.GetNestedMessage(Address, "destroy_particle_named"), false); } + public CUserMsg_ParticleManager_DestroyParticleNamed DestroyParticleNamed { get => new CUserMsg_ParticleManager_DestroyParticleNamedImpl(NativeNetMessages.GetNestedMessage(Address, "destroy_particle_named"), false); } - public CUserMsg_ParticleManager_ParticleSkipToTime ParticleSkipToTime - { get => new CUserMsg_ParticleManager_ParticleSkipToTimeImpl(NativeNetMessages.GetNestedMessage(Address, "particle_skip_to_time"), false); } + public CUserMsg_ParticleManager_ParticleSkipToTime ParticleSkipToTime { get => new CUserMsg_ParticleManager_ParticleSkipToTimeImpl(NativeNetMessages.GetNestedMessage(Address, "particle_skip_to_time"), false); } - public CUserMsg_ParticleManager_ParticleCanFreeze ParticleCanFreeze - { get => new CUserMsg_ParticleManager_ParticleCanFreezeImpl(NativeNetMessages.GetNestedMessage(Address, "particle_can_freeze"), false); } + public CUserMsg_ParticleManager_ParticleCanFreeze ParticleCanFreeze { get => new CUserMsg_ParticleManager_ParticleCanFreezeImpl(NativeNetMessages.GetNestedMessage(Address, "particle_can_freeze"), false); } - public CUserMsg_ParticleManager_SetParticleNamedValueContext SetNamedValueContext - { get => new CUserMsg_ParticleManager_SetParticleNamedValueContextImpl(NativeNetMessages.GetNestedMessage(Address, "set_named_value_context"), false); } + public CUserMsg_ParticleManager_SetParticleNamedValueContext SetNamedValueContext { get => new CUserMsg_ParticleManager_SetParticleNamedValueContextImpl(NativeNetMessages.GetNestedMessage(Address, "set_named_value_context"), false); } - public CUserMsg_ParticleManager_UpdateParticleTransform UpdateParticleTransform - { get => new CUserMsg_ParticleManager_UpdateParticleTransformImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_transform"), false); } + public CUserMsg_ParticleManager_UpdateParticleTransform UpdateParticleTransform { get => new CUserMsg_ParticleManager_UpdateParticleTransformImpl(NativeNetMessages.GetNestedMessage(Address, "update_particle_transform"), false); } - public CUserMsg_ParticleManager_ParticleFreezeTransitionOverride ParticleFreezeTransitionOverride - { get => new CUserMsg_ParticleManager_ParticleFreezeTransitionOverrideImpl(NativeNetMessages.GetNestedMessage(Address, "particle_freeze_transition_override"), false); } + public CUserMsg_ParticleManager_ParticleFreezeTransitionOverride ParticleFreezeTransitionOverride { get => new CUserMsg_ParticleManager_ParticleFreezeTransitionOverrideImpl(NativeNetMessages.GetNestedMessage(Address, "particle_freeze_transition_override"), false); } - public CUserMsg_ParticleManager_FreezeParticleInvolving FreezeParticleInvolving - { get => new CUserMsg_ParticleManager_FreezeParticleInvolvingImpl(NativeNetMessages.GetNestedMessage(Address, "freeze_particle_involving"), false); } + public CUserMsg_ParticleManager_FreezeParticleInvolving FreezeParticleInvolving { get => new CUserMsg_ParticleManager_FreezeParticleInvolvingImpl(NativeNetMessages.GetNestedMessage(Address, "freeze_particle_involving"), false); } - public CUserMsg_ParticleManager_AddModellistOverrideElement AddModellistOverrideElement - { get => new CUserMsg_ParticleManager_AddModellistOverrideElementImpl(NativeNetMessages.GetNestedMessage(Address, "add_modellist_override_element"), false); } + public CUserMsg_ParticleManager_AddModellistOverrideElement AddModellistOverrideElement { get => new CUserMsg_ParticleManager_AddModellistOverrideElementImpl(NativeNetMessages.GetNestedMessage(Address, "add_modellist_override_element"), false); } - public CUserMsg_ParticleManager_ClearModellistOverride ClearModellistOverride - { get => new CUserMsg_ParticleManager_ClearModellistOverrideImpl(NativeNetMessages.GetNestedMessage(Address, "clear_modellist_override"), false); } + public CUserMsg_ParticleManager_ClearModellistOverride ClearModellistOverride { get => new CUserMsg_ParticleManager_ClearModellistOverrideImpl(NativeNetMessages.GetNestedMessage(Address, "clear_modellist_override"), false); } - public CUserMsg_ParticleManager_CreatePhysicsSim CreatePhysicsSim - { get => new CUserMsg_ParticleManager_CreatePhysicsSimImpl(NativeNetMessages.GetNestedMessage(Address, "create_physics_sim"), false); } + public CUserMsg_ParticleManager_CreatePhysicsSim CreatePhysicsSim { get => new CUserMsg_ParticleManager_CreatePhysicsSimImpl(NativeNetMessages.GetNestedMessage(Address, "create_physics_sim"), false); } - public CUserMsg_ParticleManager_DestroyPhysicsSim DestroyPhysicsSim - { get => new CUserMsg_ParticleManager_DestroyPhysicsSimImpl(NativeNetMessages.GetNestedMessage(Address, "destroy_physics_sim"), false); } + public CUserMsg_ParticleManager_DestroyPhysicsSim DestroyPhysicsSim { get => new CUserMsg_ParticleManager_DestroyPhysicsSimImpl(NativeNetMessages.GetNestedMessage(Address, "destroy_physics_sim"), false); } - public CUserMsg_ParticleManager_SetVData SetVdata - { get => new CUserMsg_ParticleManager_SetVDataImpl(NativeNetMessages.GetNestedMessage(Address, "set_vdata"), false); } + public CUserMsg_ParticleManager_SetVData SetVdata { get => new CUserMsg_ParticleManager_SetVDataImpl(NativeNetMessages.GetNestedMessage(Address, "set_vdata"), false); } - public CUserMsg_ParticleManager_SetMaterialOverride SetMaterialOverride - { get => new CUserMsg_ParticleManager_SetMaterialOverrideImpl(NativeNetMessages.GetNestedMessage(Address, "set_material_override"), false); } + public CUserMsg_ParticleManager_SetMaterialOverride SetMaterialOverride { get => new CUserMsg_ParticleManager_SetMaterialOverrideImpl(NativeNetMessages.GetNestedMessage(Address, "set_material_override"), false); } - public CUserMsg_ParticleManager_AddFan AddFan - { get => new CUserMsg_ParticleManager_AddFanImpl(NativeNetMessages.GetNestedMessage(Address, "add_fan"), false); } + public CUserMsg_ParticleManager_AddFan AddFan { get => new CUserMsg_ParticleManager_AddFanImpl(NativeNetMessages.GetNestedMessage(Address, "add_fan"), false); } - public CUserMsg_ParticleManager_UpdateFan UpdateFan - { get => new CUserMsg_ParticleManager_UpdateFanImpl(NativeNetMessages.GetNestedMessage(Address, "update_fan"), false); } + public CUserMsg_ParticleManager_UpdateFan UpdateFan { get => new CUserMsg_ParticleManager_UpdateFanImpl(NativeNetMessages.GetNestedMessage(Address, "update_fan"), false); } - public CUserMsg_ParticleManager_SetParticleClusterGrowth SetParticleClusterGrowth - { get => new CUserMsg_ParticleManager_SetParticleClusterGrowthImpl(NativeNetMessages.GetNestedMessage(Address, "set_particle_cluster_growth"), false); } + public CUserMsg_ParticleManager_SetParticleClusterGrowth SetParticleClusterGrowth { get => new CUserMsg_ParticleManager_SetParticleClusterGrowthImpl(NativeNetMessages.GetNestedMessage(Address, "set_particle_cluster_growth"), false); } - public CUserMsg_ParticleManager_RemoveFan RemoveFan - { get => new CUserMsg_ParticleManager_RemoveFanImpl(NativeNetMessages.GetNestedMessage(Address, "remove_fan"), false); } + public CUserMsg_ParticleManager_RemoveFan RemoveFan { get => new CUserMsg_ParticleManager_RemoveFanImpl(NativeNetMessages.GetNestedMessage(Address, "remove_fan"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_AddFanImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_AddFanImpl.cs index 47c34cfc0..0f65471d7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_AddFanImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_AddFanImpl.cs @@ -1,88 +1,67 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_AddFanImpl : TypedProtobuf, CUserMsg_ParticleManager_AddFan { - public CUserMsg_ParticleManager_AddFanImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_AddFanImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool Active - { get => Accessor.GetBool("active"); set => Accessor.SetBool("active", value); } + public bool Active { get => Accessor.GetBool("active"); set => Accessor.SetBool("active", value); } - public Vector BoundsMins - { get => Accessor.GetVector("bounds_mins"); set => Accessor.SetVector("bounds_mins", value); } + public Vector BoundsMins { get => Accessor.GetVector("bounds_mins"); set => Accessor.SetVector("bounds_mins", value); } - public Vector BoundsMaxs - { get => Accessor.GetVector("bounds_maxs"); set => Accessor.SetVector("bounds_maxs", value); } + public Vector BoundsMaxs { get => Accessor.GetVector("bounds_maxs"); set => Accessor.SetVector("bounds_maxs", value); } - public Vector FanOrigin - { get => Accessor.GetVector("fan_origin"); set => Accessor.SetVector("fan_origin", value); } + public Vector FanOrigin { get => Accessor.GetVector("fan_origin"); set => Accessor.SetVector("fan_origin", value); } - public Vector FanOriginOffset - { get => Accessor.GetVector("fan_origin_offset"); set => Accessor.SetVector("fan_origin_offset", value); } + public Vector FanOriginOffset { get => Accessor.GetVector("fan_origin_offset"); set => Accessor.SetVector("fan_origin_offset", value); } - public Vector FanDirection - { get => Accessor.GetVector("fan_direction"); set => Accessor.SetVector("fan_direction", value); } + public Vector FanDirection { get => Accessor.GetVector("fan_direction"); set => Accessor.SetVector("fan_direction", value); } - public float Force - { get => Accessor.GetFloat("force"); set => Accessor.SetFloat("force", value); } + public float Force { get => Accessor.GetFloat("force"); set => Accessor.SetFloat("force", value); } - public string FanForceCurve - { get => Accessor.GetString("fan_force_curve"); set => Accessor.SetString("fan_force_curve", value); } + public string FanForceCurve { get => Accessor.GetString("fan_force_curve"); set => Accessor.SetString("fan_force_curve", value); } - public bool Falloff - { get => Accessor.GetBool("falloff"); set => Accessor.SetBool("falloff", value); } + public bool Falloff { get => Accessor.GetBool("falloff"); set => Accessor.SetBool("falloff", value); } - public bool PullTowardsPoint - { get => Accessor.GetBool("pull_towards_point"); set => Accessor.SetBool("pull_towards_point", value); } + public bool PullTowardsPoint { get => Accessor.GetBool("pull_towards_point"); set => Accessor.SetBool("pull_towards_point", value); } - public float CurveMinDist - { get => Accessor.GetFloat("curve_min_dist"); set => Accessor.SetFloat("curve_min_dist", value); } + public float CurveMinDist { get => Accessor.GetFloat("curve_min_dist"); set => Accessor.SetFloat("curve_min_dist", value); } - public float CurveMaxDist - { get => Accessor.GetFloat("curve_max_dist"); set => Accessor.SetFloat("curve_max_dist", value); } + public float CurveMaxDist { get => Accessor.GetFloat("curve_max_dist"); set => Accessor.SetFloat("curve_max_dist", value); } - public uint FanType - { get => Accessor.GetUInt32("fan_type"); set => Accessor.SetUInt32("fan_type", value); } + public uint FanType { get => Accessor.GetUInt32("fan_type"); set => Accessor.SetUInt32("fan_type", value); } - public float ConeStartRadius - { get => Accessor.GetFloat("cone_start_radius"); set => Accessor.SetFloat("cone_start_radius", value); } + public float ConeStartRadius { get => Accessor.GetFloat("cone_start_radius"); set => Accessor.SetFloat("cone_start_radius", value); } - public float ConeEndRadius - { get => Accessor.GetFloat("cone_end_radius"); set => Accessor.SetFloat("cone_end_radius", value); } + public float ConeEndRadius { get => Accessor.GetFloat("cone_end_radius"); set => Accessor.SetFloat("cone_end_radius", value); } - public float ConeLength - { get => Accessor.GetFloat("cone_length"); set => Accessor.SetFloat("cone_length", value); } + public float ConeLength { get => Accessor.GetFloat("cone_length"); set => Accessor.SetFloat("cone_length", value); } - public uint EntityHandle - { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } + public uint EntityHandle { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } - public string AttachmentName - { get => Accessor.GetString("attachment_name"); set => Accessor.SetString("attachment_name", value); } + public string AttachmentName { get => Accessor.GetString("attachment_name"); set => Accessor.SetString("attachment_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_AddModellistOverrideElementImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_AddModellistOverrideElementImpl.cs index a9b7fe9ce..35cd951d7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_AddModellistOverrideElementImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_AddModellistOverrideElementImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_AddModellistOverrideElementImpl : TypedProtobuf, CUserMsg_ParticleManager_AddModellistOverrideElement { - public CUserMsg_ParticleManager_AddModellistOverrideElementImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_AddModellistOverrideElementImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string ModelName - { get => Accessor.GetString("model_name"); set => Accessor.SetString("model_name", value); } + public string ModelName { get => Accessor.GetString("model_name"); set => Accessor.SetString("model_name", value); } - public float SpawnProbability - { get => Accessor.GetFloat("spawn_probability"); set => Accessor.SetFloat("spawn_probability", value); } + public float SpawnProbability { get => Accessor.GetFloat("spawn_probability"); set => Accessor.SetFloat("spawn_probability", value); } - public uint Groupid - { get => Accessor.GetUInt32("groupid"); set => Accessor.SetUInt32("groupid", value); } + public uint Groupid { get => Accessor.GetUInt32("groupid"); set => Accessor.SetUInt32("groupid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ChangeControlPointAttachmentImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ChangeControlPointAttachmentImpl.cs index b46299a7d..dca0fdafd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ChangeControlPointAttachmentImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ChangeControlPointAttachmentImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_ChangeControlPointAttachmentImpl : TypedProtobuf, CUserMsg_ParticleManager_ChangeControlPointAttachment { - public CUserMsg_ParticleManager_ChangeControlPointAttachmentImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_ChangeControlPointAttachmentImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int AttachmentOld - { get => Accessor.GetInt32("attachment_old"); set => Accessor.SetInt32("attachment_old", value); } + public int AttachmentOld { get => Accessor.GetInt32("attachment_old"); set => Accessor.SetInt32("attachment_old", value); } - public int AttachmentNew - { get => Accessor.GetInt32("attachment_new"); set => Accessor.SetInt32("attachment_new", value); } + public int AttachmentNew { get => Accessor.GetInt32("attachment_new"); set => Accessor.SetInt32("attachment_new", value); } - public uint EntityHandle - { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } + public uint EntityHandle { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ClearModellistOverrideImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ClearModellistOverrideImpl.cs index a13549672..ab14078b2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ClearModellistOverrideImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ClearModellistOverrideImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_ClearModellistOverrideImpl : TypedProtobuf, CUserMsg_ParticleManager_ClearModellistOverride { - public CUserMsg_ParticleManager_ClearModellistOverrideImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_ClearModellistOverrideImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Groupid - { get => Accessor.GetUInt32("groupid"); set => Accessor.SetUInt32("groupid", value); } + public uint Groupid { get => Accessor.GetUInt32("groupid"); set => Accessor.SetUInt32("groupid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_CreateParticleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_CreateParticleImpl.cs index 727d25717..47c539c8f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_CreateParticleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_CreateParticleImpl.cs @@ -1,56 +1,43 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_CreateParticleImpl : TypedProtobuf, CUserMsg_ParticleManager_CreateParticle { - public CUserMsg_ParticleManager_CreateParticleImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_CreateParticleImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong ParticleNameIndex - { get => Accessor.GetUInt64("particle_name_index"); set => Accessor.SetUInt64("particle_name_index", value); } + public ulong ParticleNameIndex { get => Accessor.GetUInt64("particle_name_index"); set => Accessor.SetUInt64("particle_name_index", value); } - public int AttachType - { get => Accessor.GetInt32("attach_type"); set => Accessor.SetInt32("attach_type", value); } + public int AttachType { get => Accessor.GetInt32("attach_type"); set => Accessor.SetInt32("attach_type", value); } - public uint EntityHandle - { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } + public uint EntityHandle { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } - public uint EntityHandleForModifiers - { get => Accessor.GetUInt32("entity_handle_for_modifiers"); set => Accessor.SetUInt32("entity_handle_for_modifiers", value); } + public uint EntityHandleForModifiers { get => Accessor.GetUInt32("entity_handle_for_modifiers"); set => Accessor.SetUInt32("entity_handle_for_modifiers", value); } - public bool ApplyVoiceBanRules - { get => Accessor.GetBool("apply_voice_ban_rules"); set => Accessor.SetBool("apply_voice_ban_rules", value); } + public bool ApplyVoiceBanRules { get => Accessor.GetBool("apply_voice_ban_rules"); set => Accessor.SetBool("apply_voice_ban_rules", value); } - public int TeamBehavior - { get => Accessor.GetInt32("team_behavior"); set => Accessor.SetInt32("team_behavior", value); } + public int TeamBehavior { get => Accessor.GetInt32("team_behavior"); set => Accessor.SetInt32("team_behavior", value); } - public string ControlPointConfiguration - { get => Accessor.GetString("control_point_configuration"); set => Accessor.SetString("control_point_configuration", value); } + public string ControlPointConfiguration { get => Accessor.GetString("control_point_configuration"); set => Accessor.SetString("control_point_configuration", value); } - public bool Cluster - { get => Accessor.GetBool("cluster"); set => Accessor.SetBool("cluster", value); } + public bool Cluster { get => Accessor.GetBool("cluster"); set => Accessor.SetBool("cluster", value); } - public float EndcapTime - { get => Accessor.GetFloat("endcap_time"); set => Accessor.SetFloat("endcap_time", value); } + public float EndcapTime { get => Accessor.GetFloat("endcap_time"); set => Accessor.SetFloat("endcap_time", value); } - public Vector AggregationPosition - { get => Accessor.GetVector("aggregation_position"); set => Accessor.SetVector("aggregation_position", value); } + public Vector AggregationPosition { get => Accessor.GetVector("aggregation_position"); set => Accessor.SetVector("aggregation_position", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_CreatePhysicsSimImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_CreatePhysicsSimImpl.cs index 1c49c3244..50bf66f4f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_CreatePhysicsSimImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_CreatePhysicsSimImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_CreatePhysicsSimImpl : TypedProtobuf, CUserMsg_ParticleManager_CreatePhysicsSim { - public CUserMsg_ParticleManager_CreatePhysicsSimImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_CreatePhysicsSimImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string PropGroupName - { get => Accessor.GetString("prop_group_name"); set => Accessor.SetString("prop_group_name", value); } + public string PropGroupName { get => Accessor.GetString("prop_group_name"); set => Accessor.SetString("prop_group_name", value); } - public bool UseHighQualitySimulation - { get => Accessor.GetBool("use_high_quality_simulation"); set => Accessor.SetBool("use_high_quality_simulation", value); } + public bool UseHighQualitySimulation { get => Accessor.GetBool("use_high_quality_simulation"); set => Accessor.SetBool("use_high_quality_simulation", value); } - public uint MaxParticleCount - { get => Accessor.GetUInt32("max_particle_count"); set => Accessor.SetUInt32("max_particle_count", value); } + public uint MaxParticleCount { get => Accessor.GetUInt32("max_particle_count"); set => Accessor.SetUInt32("max_particle_count", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyParticleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyParticleImpl.cs index 7861b5165..6122a29a8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyParticleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyParticleImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_DestroyParticleImpl : TypedProtobuf, CUserMsg_ParticleManager_DestroyParticle { - public CUserMsg_ParticleManager_DestroyParticleImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_DestroyParticleImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool DestroyImmediately - { get => Accessor.GetBool("destroy_immediately"); set => Accessor.SetBool("destroy_immediately", value); } + public bool DestroyImmediately { get => Accessor.GetBool("destroy_immediately"); set => Accessor.SetBool("destroy_immediately", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyParticleInvolvingImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyParticleInvolvingImpl.cs index b3288642c..01b354334 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyParticleInvolvingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyParticleInvolvingImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_DestroyParticleInvolvingImpl : TypedProtobuf, CUserMsg_ParticleManager_DestroyParticleInvolving { - public CUserMsg_ParticleManager_DestroyParticleInvolvingImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_DestroyParticleInvolvingImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool DestroyImmediately - { get => Accessor.GetBool("destroy_immediately"); set => Accessor.SetBool("destroy_immediately", value); } + public bool DestroyImmediately { get => Accessor.GetBool("destroy_immediately"); set => Accessor.SetBool("destroy_immediately", value); } - public uint EntityHandle - { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } + public uint EntityHandle { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyParticleNamedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyParticleNamedImpl.cs index d682cb4c5..d7ea1974f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyParticleNamedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyParticleNamedImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_DestroyParticleNamedImpl : TypedProtobuf, CUserMsg_ParticleManager_DestroyParticleNamed { - public CUserMsg_ParticleManager_DestroyParticleNamedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_DestroyParticleNamedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong ParticleNameIndex - { get => Accessor.GetUInt64("particle_name_index"); set => Accessor.SetUInt64("particle_name_index", value); } + public ulong ParticleNameIndex { get => Accessor.GetUInt64("particle_name_index"); set => Accessor.SetUInt64("particle_name_index", value); } - public uint EntityHandle - { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } + public uint EntityHandle { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } - public bool DestroyImmediately - { get => Accessor.GetBool("destroy_immediately"); set => Accessor.SetBool("destroy_immediately", value); } + public bool DestroyImmediately { get => Accessor.GetBool("destroy_immediately"); set => Accessor.SetBool("destroy_immediately", value); } - public bool PlayEndcap - { get => Accessor.GetBool("play_endcap"); set => Accessor.SetBool("play_endcap", value); } + public bool PlayEndcap { get => Accessor.GetBool("play_endcap"); set => Accessor.SetBool("play_endcap", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyPhysicsSimImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyPhysicsSimImpl.cs index eab3cf597..5af5d8815 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyPhysicsSimImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_DestroyPhysicsSimImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_DestroyPhysicsSimImpl : TypedProtobuf, CUserMsg_ParticleManager_DestroyPhysicsSim { - public CUserMsg_ParticleManager_DestroyPhysicsSimImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_DestroyPhysicsSimImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_FreezeParticleInvolvingImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_FreezeParticleInvolvingImpl.cs index 5b65f33e9..5ce06f659 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_FreezeParticleInvolvingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_FreezeParticleInvolvingImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_FreezeParticleInvolvingImpl : TypedProtobuf, CUserMsg_ParticleManager_FreezeParticleInvolving { - public CUserMsg_ParticleManager_FreezeParticleInvolvingImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_FreezeParticleInvolvingImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool SetFrozen - { get => Accessor.GetBool("set_frozen"); set => Accessor.SetBool("set_frozen", value); } + public bool SetFrozen { get => Accessor.GetBool("set_frozen"); set => Accessor.SetBool("set_frozen", value); } - public float TransitionDuration - { get => Accessor.GetFloat("transition_duration"); set => Accessor.SetFloat("transition_duration", value); } + public float TransitionDuration { get => Accessor.GetFloat("transition_duration"); set => Accessor.SetFloat("transition_duration", value); } - public uint EntityHandle - { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } + public uint EntityHandle { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ParticleCanFreezeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ParticleCanFreezeImpl.cs index 54587042f..f541818ab 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ParticleCanFreezeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ParticleCanFreezeImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_ParticleCanFreezeImpl : TypedProtobuf, CUserMsg_ParticleManager_ParticleCanFreeze { - public CUserMsg_ParticleManager_ParticleCanFreezeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_ParticleCanFreezeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool CanFreeze - { get => Accessor.GetBool("can_freeze"); set => Accessor.SetBool("can_freeze", value); } + public bool CanFreeze { get => Accessor.GetBool("can_freeze"); set => Accessor.SetBool("can_freeze", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ParticleFreezeTransitionOverrideImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ParticleFreezeTransitionOverrideImpl.cs index 31442c705..270756f58 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ParticleFreezeTransitionOverrideImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ParticleFreezeTransitionOverrideImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_ParticleFreezeTransitionOverrideImpl : TypedProtobuf, CUserMsg_ParticleManager_ParticleFreezeTransitionOverride { - public CUserMsg_ParticleManager_ParticleFreezeTransitionOverrideImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_ParticleFreezeTransitionOverrideImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float FreezeTransitionOverride - { get => Accessor.GetFloat("freeze_transition_override"); set => Accessor.SetFloat("freeze_transition_override", value); } + public float FreezeTransitionOverride { get => Accessor.GetFloat("freeze_transition_override"); set => Accessor.SetFloat("freeze_transition_override", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ParticleSkipToTimeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ParticleSkipToTimeImpl.cs index 0cd262c1e..129a57a92 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ParticleSkipToTimeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ParticleSkipToTimeImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_ParticleSkipToTimeImpl : TypedProtobuf, CUserMsg_ParticleManager_ParticleSkipToTime { - public CUserMsg_ParticleManager_ParticleSkipToTimeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_ParticleSkipToTimeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float SkipToTime - { get => Accessor.GetFloat("skip_to_time"); set => Accessor.SetFloat("skip_to_time", value); } + public float SkipToTime { get => Accessor.GetFloat("skip_to_time"); set => Accessor.SetFloat("skip_to_time", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ReleaseParticleIndexImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ReleaseParticleIndexImpl.cs index 227ae06cb..48784c334 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ReleaseParticleIndexImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_ReleaseParticleIndexImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_ReleaseParticleIndexImpl : TypedProtobuf, CUserMsg_ParticleManager_ReleaseParticleIndex { - public CUserMsg_ParticleManager_ReleaseParticleIndexImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_ReleaseParticleIndexImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_RemoveFanImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_RemoveFanImpl.cs index 726baa6b4..0b6546773 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_RemoveFanImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_RemoveFanImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_RemoveFanImpl : TypedProtobuf, CUserMsg_ParticleManager_RemoveFan { - public CUserMsg_ParticleManager_RemoveFanImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_RemoveFanImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetControlPointModelImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetControlPointModelImpl.cs index 1cc50d9ab..d92b0da82 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetControlPointModelImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetControlPointModelImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetControlPointModelImpl : TypedProtobuf, CUserMsg_ParticleManager_SetControlPointModel { - public CUserMsg_ParticleManager_SetControlPointModelImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetControlPointModelImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int ControlPoint - { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } + public int ControlPoint { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } - public string ModelName - { get => Accessor.GetString("model_name"); set => Accessor.SetString("model_name", value); } + public string ModelName { get => Accessor.GetString("model_name"); set => Accessor.SetString("model_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetControlPointSnapshotImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetControlPointSnapshotImpl.cs index f811b9145..4df8afa9e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetControlPointSnapshotImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetControlPointSnapshotImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetControlPointSnapshotImpl : TypedProtobuf, CUserMsg_ParticleManager_SetControlPointSnapshot { - public CUserMsg_ParticleManager_SetControlPointSnapshotImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetControlPointSnapshotImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int ControlPoint - { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } + public int ControlPoint { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } - public string SnapshotName - { get => Accessor.GetString("snapshot_name"); set => Accessor.SetString("snapshot_name", value); } + public string SnapshotName { get => Accessor.GetString("snapshot_name"); set => Accessor.SetString("snapshot_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetMaterialOverrideImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetMaterialOverrideImpl.cs index 52e899b70..c7198d26a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetMaterialOverrideImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetMaterialOverrideImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetMaterialOverrideImpl : TypedProtobuf, CUserMsg_ParticleManager_SetMaterialOverride { - public CUserMsg_ParticleManager_SetMaterialOverrideImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetMaterialOverrideImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string MaterialName - { get => Accessor.GetString("material_name"); set => Accessor.SetString("material_name", value); } + public string MaterialName { get => Accessor.GetString("material_name"); set => Accessor.SetString("material_name", value); } - public bool IncludeChildren - { get => Accessor.GetBool("include_children"); set => Accessor.SetBool("include_children", value); } + public bool IncludeChildren { get => Accessor.GetBool("include_children"); set => Accessor.SetBool("include_children", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleClusterGrowthImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleClusterGrowthImpl.cs index 005a26958..9f19c63b7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleClusterGrowthImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleClusterGrowthImpl.cs @@ -1,24 +1,19 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetParticleClusterGrowthImpl : TypedProtobuf, CUserMsg_ParticleManager_SetParticleClusterGrowth { - public CUserMsg_ParticleManager_SetParticleClusterGrowthImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetParticleClusterGrowthImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public float Duration - { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } + public float Duration { get => Accessor.GetFloat("duration"); set => Accessor.SetFloat("duration", value); } - public Vector Origin - { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } + public Vector Origin { get => Accessor.GetVector("origin"); set => Accessor.SetVector("origin", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleFoWPropertiesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleFoWPropertiesImpl.cs index 56d0ef26e..d481a39c0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleFoWPropertiesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleFoWPropertiesImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetParticleFoWPropertiesImpl : TypedProtobuf, CUserMsg_ParticleManager_SetParticleFoWProperties { - public CUserMsg_ParticleManager_SetParticleFoWPropertiesImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetParticleFoWPropertiesImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int FowControlPoint - { get => Accessor.GetInt32("fow_control_point"); set => Accessor.SetInt32("fow_control_point", value); } + public int FowControlPoint { get => Accessor.GetInt32("fow_control_point"); set => Accessor.SetInt32("fow_control_point", value); } - public int FowControlPoint2 - { get => Accessor.GetInt32("fow_control_point2"); set => Accessor.SetInt32("fow_control_point2", value); } + public int FowControlPoint2 { get => Accessor.GetInt32("fow_control_point2"); set => Accessor.SetInt32("fow_control_point2", value); } - public float FowRadius - { get => Accessor.GetFloat("fow_radius"); set => Accessor.SetFloat("fow_radius", value); } + public float FowRadius { get => Accessor.GetFloat("fow_radius"); set => Accessor.SetFloat("fow_radius", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContextImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContextImpl.cs index fc0021f2a..43bb6b2a3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContextImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContextImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,24 +6,20 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetParticleNamedValueContextImpl : TypedProtobuf, CUserMsg_ParticleManager_SetParticleNamedValueContext { - public CUserMsg_ParticleManager_SetParticleNamedValueContextImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetParticleNamedValueContextImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldSubMessageType FloatValues - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "float_values"); } + public IProtobufRepeatedFieldSubMessageType FloatValues { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "float_values"); } - public IProtobufRepeatedFieldSubMessageType VectorValues - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "vector_values"); } + public IProtobufRepeatedFieldSubMessageType VectorValues { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "vector_values"); } - public IProtobufRepeatedFieldSubMessageType TransformValues - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "transform_values"); } + public IProtobufRepeatedFieldSubMessageType TransformValues { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "transform_values"); } - public IProtobufRepeatedFieldSubMessageType EhandleValues - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "ehandle_values"); } + public IProtobufRepeatedFieldSubMessageType EhandleValues { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "ehandle_values"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContextImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContextImpl.cs index 5810c8385..e740b5930 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContextImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContextImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContextImpl : TypedProtobuf, CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContext { - public CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContextImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContextImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ValueNameHash - { get => Accessor.GetUInt32("value_name_hash"); set => Accessor.SetUInt32("value_name_hash", value); } + public uint ValueNameHash { get => Accessor.GetUInt32("value_name_hash"); set => Accessor.SetUInt32("value_name_hash", value); } - public uint EntIndex - { get => Accessor.GetUInt32("ent_index"); set => Accessor.SetUInt32("ent_index", value); } + public uint EntIndex { get => Accessor.GetUInt32("ent_index"); set => Accessor.SetUInt32("ent_index", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValueImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValueImpl.cs index 81ab6abfb..a092e17e8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValueImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValueImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValueImpl : TypedProtobuf, CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValue { - public CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValueImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValueImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ValueNameHash - { get => Accessor.GetUInt32("value_name_hash"); set => Accessor.SetUInt32("value_name_hash", value); } + public uint ValueNameHash { get => Accessor.GetUInt32("value_name_hash"); set => Accessor.SetUInt32("value_name_hash", value); } - public float Value - { get => Accessor.GetFloat("value"); set => Accessor.SetFloat("value", value); } + public float Value { get => Accessor.GetFloat("value"); set => Accessor.SetFloat("value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValueImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValueImpl.cs index 42c8941d9..daefa8be8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValueImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValueImpl.cs @@ -1,28 +1,22 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValueImpl : TypedProtobuf, CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValue { - public CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValueImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValueImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ValueNameHash - { get => Accessor.GetUInt32("value_name_hash"); set => Accessor.SetUInt32("value_name_hash", value); } + public uint ValueNameHash { get => Accessor.GetUInt32("value_name_hash"); set => Accessor.SetUInt32("value_name_hash", value); } - public QAngle Angles - { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } + public QAngle Angles { get => Accessor.GetQAngle("angles"); set => Accessor.SetQAngle("angles", value); } - public Vector Translation - { get => Accessor.GetVector("translation"); set => Accessor.SetVector("translation", value); } + public Vector Translation { get => Accessor.GetVector("translation"); set => Accessor.SetVector("translation", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValueImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValueImpl.cs index bf1e04a6b..a9270734a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValueImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValueImpl.cs @@ -1,24 +1,19 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValueImpl : TypedProtobuf, CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValue { - public CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValueImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValueImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ValueNameHash - { get => Accessor.GetUInt32("value_name_hash"); set => Accessor.SetUInt32("value_name_hash", value); } + public uint ValueNameHash { get => Accessor.GetUInt32("value_name_hash"); set => Accessor.SetUInt32("value_name_hash", value); } - public Vector Value - { get => Accessor.GetVector("value"); set => Accessor.SetVector("value", value); } + public Vector Value { get => Accessor.GetVector("value"); set => Accessor.SetVector("value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleShouldCheckFoWImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleShouldCheckFoWImpl.cs index 417e9e5af..21c082da7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleShouldCheckFoWImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleShouldCheckFoWImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetParticleShouldCheckFoWImpl : TypedProtobuf, CUserMsg_ParticleManager_SetParticleShouldCheckFoW { - public CUserMsg_ParticleManager_SetParticleShouldCheckFoWImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetParticleShouldCheckFoWImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool CheckFow - { get => Accessor.GetBool("check_fow"); set => Accessor.SetBool("check_fow", value); } + public bool CheckFow { get => Accessor.GetBool("check_fow"); set => Accessor.SetBool("check_fow", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleTextImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleTextImpl.cs index f8d9ec11b..dd3f8a4dc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleTextImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetParticleTextImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetParticleTextImpl : TypedProtobuf, CUserMsg_ParticleManager_SetParticleText { - public CUserMsg_ParticleManager_SetParticleTextImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetParticleTextImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Text - { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } + public string Text { get => Accessor.GetString("text"); set => Accessor.SetString("text", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetSceneObjectGenericFlagImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetSceneObjectGenericFlagImpl.cs index 651d60142..e68359ab2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetSceneObjectGenericFlagImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetSceneObjectGenericFlagImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetSceneObjectGenericFlagImpl : TypedProtobuf, CUserMsg_ParticleManager_SetSceneObjectGenericFlag { - public CUserMsg_ParticleManager_SetSceneObjectGenericFlagImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetSceneObjectGenericFlagImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool FlagValue - { get => Accessor.GetBool("flag_value"); set => Accessor.SetBool("flag_value", value); } + public bool FlagValue { get => Accessor.GetBool("flag_value"); set => Accessor.SetBool("flag_value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetSceneObjectTintAndDesatImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetSceneObjectTintAndDesatImpl.cs index 707a4b2e0..8eb168d7a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetSceneObjectTintAndDesatImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetSceneObjectTintAndDesatImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetSceneObjectTintAndDesatImpl : TypedProtobuf, CUserMsg_ParticleManager_SetSceneObjectTintAndDesat { - public CUserMsg_ParticleManager_SetSceneObjectTintAndDesatImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetSceneObjectTintAndDesatImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Tint - { get => Accessor.GetUInt32("tint"); set => Accessor.SetUInt32("tint", value); } + public uint Tint { get => Accessor.GetUInt32("tint"); set => Accessor.SetUInt32("tint", value); } - public float Desat - { get => Accessor.GetFloat("desat"); set => Accessor.SetFloat("desat", value); } + public float Desat { get => Accessor.GetFloat("desat"); set => Accessor.SetFloat("desat", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetTextureAttributeImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetTextureAttributeImpl.cs index 25532360e..b855e67f6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetTextureAttributeImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetTextureAttributeImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetTextureAttributeImpl : TypedProtobuf, CUserMsg_ParticleManager_SetTextureAttribute { - public CUserMsg_ParticleManager_SetTextureAttributeImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetTextureAttributeImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string AttributeName - { get => Accessor.GetString("attribute_name"); set => Accessor.SetString("attribute_name", value); } + public string AttributeName { get => Accessor.GetString("attribute_name"); set => Accessor.SetString("attribute_name", value); } - public string TextureName - { get => Accessor.GetString("texture_name"); set => Accessor.SetString("texture_name", value); } + public string TextureName { get => Accessor.GetString("texture_name"); set => Accessor.SetString("texture_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetVDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetVDataImpl.cs index 0ef1fe8c6..d1679a7c1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetVDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_SetVDataImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_SetVDataImpl : TypedProtobuf, CUserMsg_ParticleManager_SetVData { - public CUserMsg_ParticleManager_SetVDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_SetVDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string VdataName - { get => Accessor.GetString("vdata_name"); set => Accessor.SetString("vdata_name", value); } + public string VdataName { get => Accessor.GetString("vdata_name"); set => Accessor.SetString("vdata_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateEntityPositionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateEntityPositionImpl.cs index 85782f379..ce472a60c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateEntityPositionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateEntityPositionImpl.cs @@ -1,24 +1,19 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_UpdateEntityPositionImpl : TypedProtobuf, CUserMsg_ParticleManager_UpdateEntityPosition { - public CUserMsg_ParticleManager_UpdateEntityPositionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_UpdateEntityPositionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint EntityHandle - { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } + public uint EntityHandle { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } - public Vector Position - { get => Accessor.GetVector("position"); set => Accessor.SetVector("position", value); } + public Vector Position { get => Accessor.GetVector("position"); set => Accessor.SetVector("position", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateFanImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateFanImpl.cs index d8f7cd102..ab0da8611 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateFanImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateFanImpl.cs @@ -1,44 +1,34 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_UpdateFanImpl : TypedProtobuf, CUserMsg_ParticleManager_UpdateFan { - public CUserMsg_ParticleManager_UpdateFanImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_UpdateFanImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool Active - { get => Accessor.GetBool("active"); set => Accessor.SetBool("active", value); } + public bool Active { get => Accessor.GetBool("active"); set => Accessor.SetBool("active", value); } - public Vector FanOrigin - { get => Accessor.GetVector("fan_origin"); set => Accessor.SetVector("fan_origin", value); } + public Vector FanOrigin { get => Accessor.GetVector("fan_origin"); set => Accessor.SetVector("fan_origin", value); } - public Vector FanOriginOffset - { get => Accessor.GetVector("fan_origin_offset"); set => Accessor.SetVector("fan_origin_offset", value); } + public Vector FanOriginOffset { get => Accessor.GetVector("fan_origin_offset"); set => Accessor.SetVector("fan_origin_offset", value); } - public Vector FanDirection - { get => Accessor.GetVector("fan_direction"); set => Accessor.SetVector("fan_direction", value); } + public Vector FanDirection { get => Accessor.GetVector("fan_direction"); set => Accessor.SetVector("fan_direction", value); } - public float FanRampRatio - { get => Accessor.GetFloat("fan_ramp_ratio"); set => Accessor.SetFloat("fan_ramp_ratio", value); } + public float FanRampRatio { get => Accessor.GetFloat("fan_ramp_ratio"); set => Accessor.SetFloat("fan_ramp_ratio", value); } - public Vector BoundsMins - { get => Accessor.GetVector("bounds_mins"); set => Accessor.SetVector("bounds_mins", value); } + public Vector BoundsMins { get => Accessor.GetVector("bounds_mins"); set => Accessor.SetVector("bounds_mins", value); } - public Vector BoundsMaxs - { get => Accessor.GetVector("bounds_maxs"); set => Accessor.SetVector("bounds_maxs", value); } + public Vector BoundsMaxs { get => Accessor.GetVector("bounds_maxs"); set => Accessor.SetVector("bounds_maxs", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleEntImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleEntImpl.cs index 0626e9a66..d1b268b55 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleEntImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleEntImpl.cs @@ -1,48 +1,37 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_UpdateParticleEntImpl : TypedProtobuf, CUserMsg_ParticleManager_UpdateParticleEnt { - public CUserMsg_ParticleManager_UpdateParticleEntImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_UpdateParticleEntImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int ControlPoint - { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } + public int ControlPoint { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } - public uint EntityHandle - { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } + public uint EntityHandle { get => Accessor.GetUInt32("entity_handle"); set => Accessor.SetUInt32("entity_handle", value); } - public int AttachType - { get => Accessor.GetInt32("attach_type"); set => Accessor.SetInt32("attach_type", value); } + public int AttachType { get => Accessor.GetInt32("attach_type"); set => Accessor.SetInt32("attach_type", value); } - public int Attachment - { get => Accessor.GetInt32("attachment"); set => Accessor.SetInt32("attachment", value); } + public int Attachment { get => Accessor.GetInt32("attachment"); set => Accessor.SetInt32("attachment", value); } - public Vector FallbackPosition - { get => Accessor.GetVector("fallback_position"); set => Accessor.SetVector("fallback_position", value); } + public Vector FallbackPosition { get => Accessor.GetVector("fallback_position"); set => Accessor.SetVector("fallback_position", value); } - public bool IncludeWearables - { get => Accessor.GetBool("include_wearables"); set => Accessor.SetBool("include_wearables", value); } + public bool IncludeWearables { get => Accessor.GetBool("include_wearables"); set => Accessor.SetBool("include_wearables", value); } - public Vector OffsetPosition - { get => Accessor.GetVector("offset_position"); set => Accessor.SetVector("offset_position", value); } + public Vector OffsetPosition { get => Accessor.GetVector("offset_position"); set => Accessor.SetVector("offset_position", value); } - public QAngle OffsetAngles - { get => Accessor.GetQAngle("offset_angles"); set => Accessor.SetQAngle("offset_angles", value); } + public QAngle OffsetAngles { get => Accessor.GetQAngle("offset_angles"); set => Accessor.SetQAngle("offset_angles", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleFallbackImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleFallbackImpl.cs index 57dfdf05d..774dc4573 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleFallbackImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleFallbackImpl.cs @@ -1,24 +1,19 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_UpdateParticleFallbackImpl : TypedProtobuf, CUserMsg_ParticleManager_UpdateParticleFallback { - public CUserMsg_ParticleManager_UpdateParticleFallbackImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_UpdateParticleFallbackImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int ControlPoint - { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } + public int ControlPoint { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } - public Vector Position - { get => Accessor.GetVector("position"); set => Accessor.SetVector("position", value); } + public Vector Position { get => Accessor.GetVector("position"); set => Accessor.SetVector("position", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETEImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETEImpl.cs index a24f00b03..56733bb65 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETEImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETEImpl.cs @@ -1,24 +1,19 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETEImpl : TypedProtobuf, CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETE { - public CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETEImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETEImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int ControlPoint - { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } + public int ControlPoint { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } - public Vector Forward - { get => Accessor.GetVector("forward"); set => Accessor.SetVector("forward", value); } + public Vector Forward { get => Accessor.GetVector("forward"); set => Accessor.SetVector("forward", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleOffsetImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleOffsetImpl.cs index 4d83aad4d..ceb928686 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleOffsetImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleOffsetImpl.cs @@ -1,28 +1,22 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_UpdateParticleOffsetImpl : TypedProtobuf, CUserMsg_ParticleManager_UpdateParticleOffset { - public CUserMsg_ParticleManager_UpdateParticleOffsetImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_UpdateParticleOffsetImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int ControlPoint - { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } + public int ControlPoint { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } - public Vector OriginOffset - { get => Accessor.GetVector("origin_offset"); set => Accessor.SetVector("origin_offset", value); } + public Vector OriginOffset { get => Accessor.GetVector("origin_offset"); set => Accessor.SetVector("origin_offset", value); } - public QAngle AngleOffset - { get => Accessor.GetQAngle("angle_offset"); set => Accessor.SetQAngle("angle_offset", value); } + public QAngle AngleOffset { get => Accessor.GetQAngle("angle_offset"); set => Accessor.SetQAngle("angle_offset", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETEImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETEImpl.cs index 7a92c7d74..6c3591163 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETEImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETEImpl.cs @@ -1,36 +1,28 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETEImpl : TypedProtobuf, CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETE { - public CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETEImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETEImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int ControlPoint - { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } + public int ControlPoint { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } - public Vector Forward - { get => Accessor.GetVector("forward"); set => Accessor.SetVector("forward", value); } + public Vector Forward { get => Accessor.GetVector("forward"); set => Accessor.SetVector("forward", value); } - public Vector DeprecatedRight - { get => Accessor.GetVector("deprecated_right"); set => Accessor.SetVector("deprecated_right", value); } + public Vector DeprecatedRight { get => Accessor.GetVector("deprecated_right"); set => Accessor.SetVector("deprecated_right", value); } - public Vector Up - { get => Accessor.GetVector("up"); set => Accessor.SetVector("up", value); } + public Vector Up { get => Accessor.GetVector("up"); set => Accessor.SetVector("up", value); } - public Vector Left - { get => Accessor.GetVector("left"); set => Accessor.SetVector("left", value); } + public Vector Left { get => Accessor.GetVector("left"); set => Accessor.SetVector("left", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleSetFrozenImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleSetFrozenImpl.cs index 99a7d632c..3bf542328 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleSetFrozenImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleSetFrozenImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_UpdateParticleSetFrozenImpl : TypedProtobuf, CUserMsg_ParticleManager_UpdateParticleSetFrozen { - public CUserMsg_ParticleManager_UpdateParticleSetFrozenImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_UpdateParticleSetFrozenImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool SetFrozen - { get => Accessor.GetBool("set_frozen"); set => Accessor.SetBool("set_frozen", value); } + public bool SetFrozen { get => Accessor.GetBool("set_frozen"); set => Accessor.SetBool("set_frozen", value); } - public float TransitionDuration - { get => Accessor.GetFloat("transition_duration"); set => Accessor.SetFloat("transition_duration", value); } + public float TransitionDuration { get => Accessor.GetFloat("transition_duration"); set => Accessor.SetFloat("transition_duration", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleShouldDrawImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleShouldDrawImpl.cs index fe19e9441..899b483d9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleShouldDrawImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleShouldDrawImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_UpdateParticleShouldDrawImpl : TypedProtobuf, CUserMsg_ParticleManager_UpdateParticleShouldDraw { - public CUserMsg_ParticleManager_UpdateParticleShouldDrawImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_UpdateParticleShouldDrawImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public bool ShouldDraw - { get => Accessor.GetBool("should_draw"); set => Accessor.SetBool("should_draw", value); } + public bool ShouldDraw { get => Accessor.GetBool("should_draw"); set => Accessor.SetBool("should_draw", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleTransformImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleTransformImpl.cs index e5cc6c6ef..fe6e18f46 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleTransformImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticleTransformImpl.cs @@ -2,31 +2,26 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_UpdateParticleTransformImpl : TypedProtobuf, CUserMsg_ParticleManager_UpdateParticleTransform { - public CUserMsg_ParticleManager_UpdateParticleTransformImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_UpdateParticleTransformImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int ControlPoint - { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } + public int ControlPoint { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } - public Vector Position - { get => Accessor.GetVector("position"); set => Accessor.SetVector("position", value); } + public Vector Position { get => Accessor.GetVector("position"); set => Accessor.SetVector("position", value); } - public CMsgQuaternion Orientation - { get => new CMsgQuaternionImpl(NativeNetMessages.GetNestedMessage(Address, "orientation"), false); } + public CMsgQuaternion Orientation { get => new CMsgQuaternionImpl(NativeNetMessages.GetNestedMessage(Address, "orientation"), false); } - public float InterpolationInterval - { get => Accessor.GetFloat("interpolation_interval"); set => Accessor.SetFloat("interpolation_interval", value); } + public float InterpolationInterval { get => Accessor.GetFloat("interpolation_interval"); set => Accessor.SetFloat("interpolation_interval", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticle_OBSOLETEImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticle_OBSOLETEImpl.cs index 7bb0adc37..bc54b23fe 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticle_OBSOLETEImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CUserMsg_ParticleManager_UpdateParticle_OBSOLETEImpl.cs @@ -1,24 +1,19 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CUserMsg_ParticleManager_UpdateParticle_OBSOLETEImpl : TypedProtobuf, CUserMsg_ParticleManager_UpdateParticle_OBSOLETE { - public CUserMsg_ParticleManager_UpdateParticle_OBSOLETEImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CUserMsg_ParticleManager_UpdateParticle_OBSOLETEImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int ControlPoint - { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } + public int ControlPoint { get => Accessor.GetInt32("control_point"); set => Accessor.SetInt32("control_point", value); } - public Vector Position - { get => Accessor.GetVector("position"); set => Accessor.SetVector("position", value); } + public Vector Position { get => Accessor.GetVector("position"); set => Accessor.SetVector("position", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CVDiagnosticImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CVDiagnosticImpl.cs index 287e91401..f66c638e1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CVDiagnosticImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CVDiagnosticImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CVDiagnosticImpl : TypedProtobuf, CVDiagnostic { - public CVDiagnosticImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CVDiagnosticImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Id - { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } + public uint Id { get => Accessor.GetUInt32("id"); set => Accessor.SetUInt32("id", value); } - public uint Extended - { get => Accessor.GetUInt32("extended"); set => Accessor.SetUInt32("extended", value); } + public uint Extended { get => Accessor.GetUInt32("extended"); set => Accessor.SetUInt32("extended", value); } - public ulong Value - { get => Accessor.GetUInt64("value"); set => Accessor.SetUInt64("value", value); } + public ulong Value { get => Accessor.GetUInt64("value"); set => Accessor.SetUInt64("value", value); } - public string StringValue - { get => Accessor.GetString("string_value"); set => Accessor.SetString("string_value", value); } + public string StringValue { get => Accessor.GetString("string_value"); set => Accessor.SetString("string_value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_AddSpecialPayment_RequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_AddSpecialPayment_RequestImpl.cs index c19bfbf33..1430f852f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_AddSpecialPayment_RequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_AddSpecialPayment_RequestImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CWorkshop_AddSpecialPayment_RequestImpl : TypedProtobuf, CWorkshop_AddSpecialPayment_Request { - public CWorkshop_AddSpecialPayment_RequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CWorkshop_AddSpecialPayment_RequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } - public uint Gameitemid - { get => Accessor.GetUInt32("gameitemid"); set => Accessor.SetUInt32("gameitemid", value); } + public uint Gameitemid { get => Accessor.GetUInt32("gameitemid"); set => Accessor.SetUInt32("gameitemid", value); } - public string Date - { get => Accessor.GetString("date"); set => Accessor.SetString("date", value); } + public string Date { get => Accessor.GetString("date"); set => Accessor.SetString("date", value); } - public ulong PaymentUsUsd - { get => Accessor.GetUInt64("payment_us_usd"); set => Accessor.SetUInt64("payment_us_usd", value); } + public ulong PaymentUsUsd { get => Accessor.GetUInt64("payment_us_usd"); set => Accessor.SetUInt64("payment_us_usd", value); } - public ulong PaymentRowUsd - { get => Accessor.GetUInt64("payment_row_usd"); set => Accessor.SetUInt64("payment_row_usd", value); } + public ulong PaymentRowUsd { get => Accessor.GetUInt64("payment_row_usd"); set => Accessor.SetUInt64("payment_row_usd", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_AddSpecialPayment_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_AddSpecialPayment_ResponseImpl.cs index 540be207c..4631d0f74 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_AddSpecialPayment_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_AddSpecialPayment_ResponseImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CWorkshop_AddSpecialPayment_ResponseImpl : TypedProtobuf, CWorkshop_AddSpecialPayment_Response { - public CWorkshop_AddSpecialPayment_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CWorkshop_AddSpecialPayment_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_GetContributors_RequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_GetContributors_RequestImpl.cs index 741dabe4a..1ca32b7d0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_GetContributors_RequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_GetContributors_RequestImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CWorkshop_GetContributors_RequestImpl : TypedProtobuf, CWorkshop_GetContributors_Request { - public CWorkshop_GetContributors_RequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CWorkshop_GetContributors_RequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } - public uint Gameitemid - { get => Accessor.GetUInt32("gameitemid"); set => Accessor.SetUInt32("gameitemid", value); } + public uint Gameitemid { get => Accessor.GetUInt32("gameitemid"); set => Accessor.SetUInt32("gameitemid", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_GetContributors_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_GetContributors_ResponseImpl.cs index 9acf99960..e9bef9f72 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_GetContributors_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_GetContributors_ResponseImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,12 +6,11 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CWorkshop_GetContributors_ResponseImpl : TypedProtobuf, CWorkshop_GetContributors_Response { - public CWorkshop_GetContributors_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CWorkshop_GetContributors_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldValueType Contributors - { get => new ProtobufRepeatedFieldValueType(Accessor, "contributors"); } + public IProtobufRepeatedFieldValueType Contributors { get => new ProtobufRepeatedFieldValueType(Accessor, "contributors"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_PopulateItemDescriptions_RequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_PopulateItemDescriptions_RequestImpl.cs index 55f6f2c6f..03abfb57e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_PopulateItemDescriptions_RequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_PopulateItemDescriptions_RequestImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CWorkshop_PopulateItemDescriptions_RequestImpl : TypedProtobuf, CWorkshop_PopulateItemDescriptions_Request { - public CWorkshop_PopulateItemDescriptions_RequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CWorkshop_PopulateItemDescriptions_RequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } - public IProtobufRepeatedFieldSubMessageType Languages - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "languages"); } + public IProtobufRepeatedFieldSubMessageType Languages { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "languages"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlockImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlockImpl.cs index cc87bb622..e7536b508 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlockImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlockImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlockImpl : TypedProtobuf, CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlock { - public CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlockImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlockImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Language - { get => Accessor.GetString("language"); set => Accessor.SetString("language", value); } + public string Language { get => Accessor.GetString("language"); set => Accessor.SetString("language", value); } - public IProtobufRepeatedFieldSubMessageType Descriptions - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "descriptions"); } + public IProtobufRepeatedFieldSubMessageType Descriptions { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "descriptions"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_PopulateItemDescriptions_Request_SingleItemDescriptionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_PopulateItemDescriptions_Request_SingleItemDescriptionImpl.cs index cbe9f3538..2603aee45 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_PopulateItemDescriptions_Request_SingleItemDescriptionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_PopulateItemDescriptions_Request_SingleItemDescriptionImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CWorkshop_PopulateItemDescriptions_Request_SingleItemDescriptionImpl : TypedProtobuf, CWorkshop_PopulateItemDescriptions_Request_SingleItemDescription { - public CWorkshop_PopulateItemDescriptions_Request_SingleItemDescriptionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CWorkshop_PopulateItemDescriptions_Request_SingleItemDescriptionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Gameitemid - { get => Accessor.GetUInt32("gameitemid"); set => Accessor.SetUInt32("gameitemid", value); } + public uint Gameitemid { get => Accessor.GetUInt32("gameitemid"); set => Accessor.SetUInt32("gameitemid", value); } - public string ItemDescription - { get => Accessor.GetString("item_description"); set => Accessor.SetString("item_description", value); } + public string ItemDescription { get => Accessor.GetString("item_description"); set => Accessor.SetString("item_description", value); } - public bool OnePerAccount - { get => Accessor.GetBool("one_per_account"); set => Accessor.SetBool("one_per_account", value); } + public bool OnePerAccount { get => Accessor.GetBool("one_per_account"); set => Accessor.SetBool("one_per_account", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_RequestImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_RequestImpl.cs index 3d1660921..fb9bd8816 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_RequestImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_RequestImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,36 +8,29 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CWorkshop_SetItemPaymentRules_RequestImpl : TypedProtobuf, CWorkshop_SetItemPaymentRules_Request { - public CWorkshop_SetItemPaymentRules_RequestImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CWorkshop_SetItemPaymentRules_RequestImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Appid - { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } + public uint Appid { get => Accessor.GetUInt32("appid"); set => Accessor.SetUInt32("appid", value); } - public uint Gameitemid - { get => Accessor.GetUInt32("gameitemid"); set => Accessor.SetUInt32("gameitemid", value); } + public uint Gameitemid { get => Accessor.GetUInt32("gameitemid"); set => Accessor.SetUInt32("gameitemid", value); } - public IProtobufRepeatedFieldSubMessageType AssociatedWorkshopFiles - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "associated_workshop_files"); } + public IProtobufRepeatedFieldSubMessageType AssociatedWorkshopFiles { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "associated_workshop_files"); } - public IProtobufRepeatedFieldSubMessageType PartnerAccounts - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "partner_accounts"); } + public IProtobufRepeatedFieldSubMessageType PartnerAccounts { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "partner_accounts"); } - public bool ValidateOnly - { get => Accessor.GetBool("validate_only"); set => Accessor.SetBool("validate_only", value); } + public bool ValidateOnly { get => Accessor.GetBool("validate_only"); set => Accessor.SetBool("validate_only", value); } - public bool MakeWorkshopFilesSubscribable - { get => Accessor.GetBool("make_workshop_files_subscribable"); set => Accessor.SetBool("make_workshop_files_subscribable", value); } + public bool MakeWorkshopFilesSubscribable { get => Accessor.GetBool("make_workshop_files_subscribable"); set => Accessor.SetBool("make_workshop_files_subscribable", value); } - public CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRule AssociatedWorkshopFileForDirectPayments - { get => new CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRuleImpl(NativeNetMessages.GetNestedMessage(Address, "associated_workshop_file_for_direct_payments"), false); } + public CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRule AssociatedWorkshopFileForDirectPayments { get => new CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRuleImpl(NativeNetMessages.GetNestedMessage(Address, "associated_workshop_file_for_direct_payments"), false); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRuleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRuleImpl.cs index fabfae447..7e6856751 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRuleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRuleImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRuleImpl : TypedProtobuf, CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRule { - public CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRuleImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRuleImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public float RevenuePercentage - { get => Accessor.GetFloat("revenue_percentage"); set => Accessor.SetFloat("revenue_percentage", value); } + public float RevenuePercentage { get => Accessor.GetFloat("revenue_percentage"); set => Accessor.SetFloat("revenue_percentage", value); } - public string RuleDescription - { get => Accessor.GetString("rule_description"); set => Accessor.SetString("rule_description", value); } + public string RuleDescription { get => Accessor.GetString("rule_description"); set => Accessor.SetString("rule_description", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRuleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRuleImpl.cs index c6a447160..38c72abed 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRuleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRuleImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRuleImpl : TypedProtobuf, CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRule { - public CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRuleImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRuleImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong WorkshopFileId - { get => Accessor.GetUInt64("workshop_file_id"); set => Accessor.SetUInt64("workshop_file_id", value); } + public ulong WorkshopFileId { get => Accessor.GetUInt64("workshop_file_id"); set => Accessor.SetUInt64("workshop_file_id", value); } - public string RuleDescription - { get => Accessor.GetString("rule_description"); set => Accessor.SetString("rule_description", value); } + public string RuleDescription { get => Accessor.GetString("rule_description"); set => Accessor.SetString("rule_description", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRuleImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRuleImpl.cs index b324760db..6d382b6df 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRuleImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRuleImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRuleImpl : TypedProtobuf, CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRule { - public CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRuleImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRuleImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong WorkshopFileId - { get => Accessor.GetUInt64("workshop_file_id"); set => Accessor.SetUInt64("workshop_file_id", value); } + public ulong WorkshopFileId { get => Accessor.GetUInt64("workshop_file_id"); set => Accessor.SetUInt64("workshop_file_id", value); } - public float RevenuePercentage - { get => Accessor.GetFloat("revenue_percentage"); set => Accessor.SetFloat("revenue_percentage", value); } + public float RevenuePercentage { get => Accessor.GetFloat("revenue_percentage"); set => Accessor.SetFloat("revenue_percentage", value); } - public string RuleDescription - { get => Accessor.GetString("rule_description"); set => Accessor.SetString("rule_description", value); } + public string RuleDescription { get => Accessor.GetString("rule_description"); set => Accessor.SetString("rule_description", value); } - public uint RuleType - { get => Accessor.GetUInt32("rule_type"); set => Accessor.SetUInt32("rule_type", value); } + public uint RuleType { get => Accessor.GetUInt32("rule_type"); set => Accessor.SetUInt32("rule_type", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_ResponseImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_ResponseImpl.cs index beb1aba79..9c1fc8aca 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_ResponseImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/CWorkshop_SetItemPaymentRules_ResponseImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class CWorkshop_SetItemPaymentRules_ResponseImpl : TypedProtobuf, CWorkshop_SetItemPaymentRules_Response { - public CWorkshop_SetItemPaymentRules_ResponseImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public CWorkshop_SetItemPaymentRules_ResponseImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DataCenterPingImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DataCenterPingImpl.cs index c23679c3a..df9d1c102 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DataCenterPingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DataCenterPingImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class DataCenterPingImpl : TypedProtobuf, DataCenterPing { - public DataCenterPingImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public DataCenterPingImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint DataCenterId - { get => Accessor.GetUInt32("data_center_id"); set => Accessor.SetUInt32("data_center_id", value); } + public uint DataCenterId { get => Accessor.GetUInt32("data_center_id"); set => Accessor.SetUInt32("data_center_id", value); } - public int Ping - { get => Accessor.GetInt32("ping"); set => Accessor.SetInt32("ping", value); } + public int Ping { get => Accessor.GetInt32("ping"); set => Accessor.SetInt32("ping", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DeepPlayerMatchEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DeepPlayerMatchEventImpl.cs index ef32ca8ac..a415c5d67 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DeepPlayerMatchEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DeepPlayerMatchEventImpl.cs @@ -1,72 +1,54 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class DeepPlayerMatchEventImpl : TypedProtobuf, DeepPlayerMatchEvent { - public DeepPlayerMatchEventImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public DeepPlayerMatchEventImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public ulong MatchId - { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } + public ulong MatchId { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } - public uint EventId - { get => Accessor.GetUInt32("event_id"); set => Accessor.SetUInt32("event_id", value); } + public uint EventId { get => Accessor.GetUInt32("event_id"); set => Accessor.SetUInt32("event_id", value); } - public uint EventType - { get => Accessor.GetUInt32("event_type"); set => Accessor.SetUInt32("event_type", value); } + public uint EventType { get => Accessor.GetUInt32("event_type"); set => Accessor.SetUInt32("event_type", value); } - public bool BPlayingCt - { get => Accessor.GetBool("b_playing_ct"); set => Accessor.SetBool("b_playing_ct", value); } + public bool BPlayingCt { get => Accessor.GetBool("b_playing_ct"); set => Accessor.SetBool("b_playing_ct", value); } - public int UserPosX - { get => Accessor.GetInt32("user_pos_x"); set => Accessor.SetInt32("user_pos_x", value); } + public int UserPosX { get => Accessor.GetInt32("user_pos_x"); set => Accessor.SetInt32("user_pos_x", value); } - public int UserPosY - { get => Accessor.GetInt32("user_pos_y"); set => Accessor.SetInt32("user_pos_y", value); } + public int UserPosY { get => Accessor.GetInt32("user_pos_y"); set => Accessor.SetInt32("user_pos_y", value); } - public int UserPosZ - { get => Accessor.GetInt32("user_pos_z"); set => Accessor.SetInt32("user_pos_z", value); } + public int UserPosZ { get => Accessor.GetInt32("user_pos_z"); set => Accessor.SetInt32("user_pos_z", value); } - public uint UserDefidx - { get => Accessor.GetUInt32("user_defidx"); set => Accessor.SetUInt32("user_defidx", value); } + public uint UserDefidx { get => Accessor.GetUInt32("user_defidx"); set => Accessor.SetUInt32("user_defidx", value); } - public int OtherPosX - { get => Accessor.GetInt32("other_pos_x"); set => Accessor.SetInt32("other_pos_x", value); } + public int OtherPosX { get => Accessor.GetInt32("other_pos_x"); set => Accessor.SetInt32("other_pos_x", value); } - public int OtherPosY - { get => Accessor.GetInt32("other_pos_y"); set => Accessor.SetInt32("other_pos_y", value); } + public int OtherPosY { get => Accessor.GetInt32("other_pos_y"); set => Accessor.SetInt32("other_pos_y", value); } - public int OtherPosZ - { get => Accessor.GetInt32("other_pos_z"); set => Accessor.SetInt32("other_pos_z", value); } + public int OtherPosZ { get => Accessor.GetInt32("other_pos_z"); set => Accessor.SetInt32("other_pos_z", value); } - public uint OtherDefidx - { get => Accessor.GetUInt32("other_defidx"); set => Accessor.SetUInt32("other_defidx", value); } + public uint OtherDefidx { get => Accessor.GetUInt32("other_defidx"); set => Accessor.SetUInt32("other_defidx", value); } - public int EventData - { get => Accessor.GetInt32("event_data"); set => Accessor.SetInt32("event_data", value); } + public int EventData { get => Accessor.GetInt32("event_data"); set => Accessor.SetInt32("event_data", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DeepPlayerStatsEntryImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DeepPlayerStatsEntryImpl.cs index 86900094b..e77ec874d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DeepPlayerStatsEntryImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DeepPlayerStatsEntryImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,120 +6,92 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class DeepPlayerStatsEntryImpl : TypedProtobuf, DeepPlayerStatsEntry { - public DeepPlayerStatsEntryImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public DeepPlayerStatsEntryImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public ulong MatchId - { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } + public ulong MatchId { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } - public uint MmGameMode - { get => Accessor.GetUInt32("mm_game_mode"); set => Accessor.SetUInt32("mm_game_mode", value); } + public uint MmGameMode { get => Accessor.GetUInt32("mm_game_mode"); set => Accessor.SetUInt32("mm_game_mode", value); } - public uint Mapid - { get => Accessor.GetUInt32("mapid"); set => Accessor.SetUInt32("mapid", value); } + public uint Mapid { get => Accessor.GetUInt32("mapid"); set => Accessor.SetUInt32("mapid", value); } - public bool BStartingCt - { get => Accessor.GetBool("b_starting_ct"); set => Accessor.SetBool("b_starting_ct", value); } + public bool BStartingCt { get => Accessor.GetBool("b_starting_ct"); set => Accessor.SetBool("b_starting_ct", value); } - public uint MatchOutcome - { get => Accessor.GetUInt32("match_outcome"); set => Accessor.SetUInt32("match_outcome", value); } + public uint MatchOutcome { get => Accessor.GetUInt32("match_outcome"); set => Accessor.SetUInt32("match_outcome", value); } - public uint RoundsWon - { get => Accessor.GetUInt32("rounds_won"); set => Accessor.SetUInt32("rounds_won", value); } + public uint RoundsWon { get => Accessor.GetUInt32("rounds_won"); set => Accessor.SetUInt32("rounds_won", value); } - public uint RoundsLost - { get => Accessor.GetUInt32("rounds_lost"); set => Accessor.SetUInt32("rounds_lost", value); } + public uint RoundsLost { get => Accessor.GetUInt32("rounds_lost"); set => Accessor.SetUInt32("rounds_lost", value); } - public uint StatScore - { get => Accessor.GetUInt32("stat_score"); set => Accessor.SetUInt32("stat_score", value); } + public uint StatScore { get => Accessor.GetUInt32("stat_score"); set => Accessor.SetUInt32("stat_score", value); } - public uint StatDeaths - { get => Accessor.GetUInt32("stat_deaths"); set => Accessor.SetUInt32("stat_deaths", value); } + public uint StatDeaths { get => Accessor.GetUInt32("stat_deaths"); set => Accessor.SetUInt32("stat_deaths", value); } - public uint StatMvps - { get => Accessor.GetUInt32("stat_mvps"); set => Accessor.SetUInt32("stat_mvps", value); } + public uint StatMvps { get => Accessor.GetUInt32("stat_mvps"); set => Accessor.SetUInt32("stat_mvps", value); } - public uint EnemyKills - { get => Accessor.GetUInt32("enemy_kills"); set => Accessor.SetUInt32("enemy_kills", value); } + public uint EnemyKills { get => Accessor.GetUInt32("enemy_kills"); set => Accessor.SetUInt32("enemy_kills", value); } - public uint EnemyHeadshots - { get => Accessor.GetUInt32("enemy_headshots"); set => Accessor.SetUInt32("enemy_headshots", value); } + public uint EnemyHeadshots { get => Accessor.GetUInt32("enemy_headshots"); set => Accessor.SetUInt32("enemy_headshots", value); } - public uint Enemy2ks - { get => Accessor.GetUInt32("enemy_2ks"); set => Accessor.SetUInt32("enemy_2ks", value); } + public uint Enemy2ks { get => Accessor.GetUInt32("enemy_2ks"); set => Accessor.SetUInt32("enemy_2ks", value); } - public uint Enemy3ks - { get => Accessor.GetUInt32("enemy_3ks"); set => Accessor.SetUInt32("enemy_3ks", value); } + public uint Enemy3ks { get => Accessor.GetUInt32("enemy_3ks"); set => Accessor.SetUInt32("enemy_3ks", value); } - public uint Enemy4ks - { get => Accessor.GetUInt32("enemy_4ks"); set => Accessor.SetUInt32("enemy_4ks", value); } + public uint Enemy4ks { get => Accessor.GetUInt32("enemy_4ks"); set => Accessor.SetUInt32("enemy_4ks", value); } - public uint TotalDamage - { get => Accessor.GetUInt32("total_damage"); set => Accessor.SetUInt32("total_damage", value); } + public uint TotalDamage { get => Accessor.GetUInt32("total_damage"); set => Accessor.SetUInt32("total_damage", value); } - public uint EngagementsEntryCount - { get => Accessor.GetUInt32("engagements_entry_count"); set => Accessor.SetUInt32("engagements_entry_count", value); } + public uint EngagementsEntryCount { get => Accessor.GetUInt32("engagements_entry_count"); set => Accessor.SetUInt32("engagements_entry_count", value); } - public uint EngagementsEntryWins - { get => Accessor.GetUInt32("engagements_entry_wins"); set => Accessor.SetUInt32("engagements_entry_wins", value); } + public uint EngagementsEntryWins { get => Accessor.GetUInt32("engagements_entry_wins"); set => Accessor.SetUInt32("engagements_entry_wins", value); } - public uint Engagements1v1Count - { get => Accessor.GetUInt32("engagements_1v1_count"); set => Accessor.SetUInt32("engagements_1v1_count", value); } + public uint Engagements1v1Count { get => Accessor.GetUInt32("engagements_1v1_count"); set => Accessor.SetUInt32("engagements_1v1_count", value); } - public uint Engagements1v1Wins - { get => Accessor.GetUInt32("engagements_1v1_wins"); set => Accessor.SetUInt32("engagements_1v1_wins", value); } + public uint Engagements1v1Wins { get => Accessor.GetUInt32("engagements_1v1_wins"); set => Accessor.SetUInt32("engagements_1v1_wins", value); } - public uint Engagements1v2Count - { get => Accessor.GetUInt32("engagements_1v2_count"); set => Accessor.SetUInt32("engagements_1v2_count", value); } + public uint Engagements1v2Count { get => Accessor.GetUInt32("engagements_1v2_count"); set => Accessor.SetUInt32("engagements_1v2_count", value); } - public uint Engagements1v2Wins - { get => Accessor.GetUInt32("engagements_1v2_wins"); set => Accessor.SetUInt32("engagements_1v2_wins", value); } + public uint Engagements1v2Wins { get => Accessor.GetUInt32("engagements_1v2_wins"); set => Accessor.SetUInt32("engagements_1v2_wins", value); } - public uint UtilityCount - { get => Accessor.GetUInt32("utility_count"); set => Accessor.SetUInt32("utility_count", value); } + public uint UtilityCount { get => Accessor.GetUInt32("utility_count"); set => Accessor.SetUInt32("utility_count", value); } - public uint UtilitySuccess - { get => Accessor.GetUInt32("utility_success"); set => Accessor.SetUInt32("utility_success", value); } + public uint UtilitySuccess { get => Accessor.GetUInt32("utility_success"); set => Accessor.SetUInt32("utility_success", value); } - public uint FlashCount - { get => Accessor.GetUInt32("flash_count"); set => Accessor.SetUInt32("flash_count", value); } + public uint FlashCount { get => Accessor.GetUInt32("flash_count"); set => Accessor.SetUInt32("flash_count", value); } - public uint FlashSuccess - { get => Accessor.GetUInt32("flash_success"); set => Accessor.SetUInt32("flash_success", value); } + public uint FlashSuccess { get => Accessor.GetUInt32("flash_success"); set => Accessor.SetUInt32("flash_success", value); } - public IProtobufRepeatedFieldValueType Mates - { get => new ProtobufRepeatedFieldValueType(Accessor, "mates"); } + public IProtobufRepeatedFieldValueType Mates { get => new ProtobufRepeatedFieldValueType(Accessor, "mates"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DetailedSearchStatisticImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DetailedSearchStatisticImpl.cs index 7b6ba17dc..d2a510c95 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DetailedSearchStatisticImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/DetailedSearchStatisticImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class DetailedSearchStatisticImpl : TypedProtobuf, DetailedSearchStatistic { - public DetailedSearchStatisticImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public DetailedSearchStatisticImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint GameType - { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } + public uint GameType { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } - public uint SearchTimeAvg - { get => Accessor.GetUInt32("search_time_avg"); set => Accessor.SetUInt32("search_time_avg", value); } + public uint SearchTimeAvg { get => Accessor.GetUInt32("search_time_avg"); set => Accessor.SetUInt32("search_time_avg", value); } - public uint PlayersSearching - { get => Accessor.GetUInt32("players_searching"); set => Accessor.SetUInt32("players_searching", value); } + public uint PlayersSearching { get => Accessor.GetUInt32("players_searching"); set => Accessor.SetUInt32("players_searching", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/GameServerPingImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/GameServerPingImpl.cs index a769e4670..afe384d65 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/GameServerPingImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/GameServerPingImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class GameServerPingImpl : TypedProtobuf, GameServerPing { - public GameServerPingImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public GameServerPingImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Ping - { get => Accessor.GetInt32("ping"); set => Accessor.SetInt32("ping", value); } + public int Ping { get => Accessor.GetInt32("ping"); set => Accessor.SetInt32("ping", value); } - public uint Ip - { get => Accessor.GetUInt32("ip"); set => Accessor.SetUInt32("ip", value); } + public uint Ip { get => Accessor.GetUInt32("ip"); set => Accessor.SetUInt32("ip", value); } - public uint Instances - { get => Accessor.GetUInt32("instances"); set => Accessor.SetUInt32("instances", value); } + public uint Instances { get => Accessor.GetUInt32("instances"); set => Accessor.SetUInt32("instances", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/GlobalStatisticsImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/GlobalStatisticsImpl.cs index 71f32773b..dfc693dba 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/GlobalStatisticsImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/GlobalStatisticsImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,68 +6,53 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class GlobalStatisticsImpl : TypedProtobuf, GlobalStatistics { - public GlobalStatisticsImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public GlobalStatisticsImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint PlayersOnline - { get => Accessor.GetUInt32("players_online"); set => Accessor.SetUInt32("players_online", value); } + public uint PlayersOnline { get => Accessor.GetUInt32("players_online"); set => Accessor.SetUInt32("players_online", value); } - public uint ServersOnline - { get => Accessor.GetUInt32("servers_online"); set => Accessor.SetUInt32("servers_online", value); } + public uint ServersOnline { get => Accessor.GetUInt32("servers_online"); set => Accessor.SetUInt32("servers_online", value); } - public uint PlayersSearching - { get => Accessor.GetUInt32("players_searching"); set => Accessor.SetUInt32("players_searching", value); } + public uint PlayersSearching { get => Accessor.GetUInt32("players_searching"); set => Accessor.SetUInt32("players_searching", value); } - public uint ServersAvailable - { get => Accessor.GetUInt32("servers_available"); set => Accessor.SetUInt32("servers_available", value); } + public uint ServersAvailable { get => Accessor.GetUInt32("servers_available"); set => Accessor.SetUInt32("servers_available", value); } - public uint OngoingMatches - { get => Accessor.GetUInt32("ongoing_matches"); set => Accessor.SetUInt32("ongoing_matches", value); } + public uint OngoingMatches { get => Accessor.GetUInt32("ongoing_matches"); set => Accessor.SetUInt32("ongoing_matches", value); } - public uint SearchTimeAvg - { get => Accessor.GetUInt32("search_time_avg"); set => Accessor.SetUInt32("search_time_avg", value); } + public uint SearchTimeAvg { get => Accessor.GetUInt32("search_time_avg"); set => Accessor.SetUInt32("search_time_avg", value); } - public IProtobufRepeatedFieldSubMessageType SearchStatistics - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "search_statistics"); } + public IProtobufRepeatedFieldSubMessageType SearchStatistics { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "search_statistics"); } - public string MainPostUrl - { get => Accessor.GetString("main_post_url"); set => Accessor.SetString("main_post_url", value); } + public string MainPostUrl { get => Accessor.GetString("main_post_url"); set => Accessor.SetString("main_post_url", value); } - public uint RequiredAppidVersion - { get => Accessor.GetUInt32("required_appid_version"); set => Accessor.SetUInt32("required_appid_version", value); } + public uint RequiredAppidVersion { get => Accessor.GetUInt32("required_appid_version"); set => Accessor.SetUInt32("required_appid_version", value); } - public uint PricesheetVersion - { get => Accessor.GetUInt32("pricesheet_version"); set => Accessor.SetUInt32("pricesheet_version", value); } + public uint PricesheetVersion { get => Accessor.GetUInt32("pricesheet_version"); set => Accessor.SetUInt32("pricesheet_version", value); } - public uint TwitchStreamsVersion - { get => Accessor.GetUInt32("twitch_streams_version"); set => Accessor.SetUInt32("twitch_streams_version", value); } + public uint TwitchStreamsVersion { get => Accessor.GetUInt32("twitch_streams_version"); set => Accessor.SetUInt32("twitch_streams_version", value); } - public uint ActiveTournamentEventid - { get => Accessor.GetUInt32("active_tournament_eventid"); set => Accessor.SetUInt32("active_tournament_eventid", value); } + public uint ActiveTournamentEventid { get => Accessor.GetUInt32("active_tournament_eventid"); set => Accessor.SetUInt32("active_tournament_eventid", value); } - public uint ActiveSurveyId - { get => Accessor.GetUInt32("active_survey_id"); set => Accessor.SetUInt32("active_survey_id", value); } + public uint ActiveSurveyId { get => Accessor.GetUInt32("active_survey_id"); set => Accessor.SetUInt32("active_survey_id", value); } - public uint Rtime32Cur - { get => Accessor.GetUInt32("rtime32_cur"); set => Accessor.SetUInt32("rtime32_cur", value); } + public uint Rtime32Cur { get => Accessor.GetUInt32("rtime32_cur"); set => Accessor.SetUInt32("rtime32_cur", value); } - public uint RequiredAppidVersion2 - { get => Accessor.GetUInt32("required_appid_version2"); set => Accessor.SetUInt32("required_appid_version2", value); } + public uint RequiredAppidVersion2 { get => Accessor.GetUInt32("required_appid_version2"); set => Accessor.SetUInt32("required_appid_version2", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/IpAddressMaskImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/IpAddressMaskImpl.cs index 2a9d614ff..cda21594e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/IpAddressMaskImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/IpAddressMaskImpl.cs @@ -1,40 +1,30 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class IpAddressMaskImpl : TypedProtobuf, IpAddressMask { - public IpAddressMaskImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public IpAddressMaskImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint A - { get => Accessor.GetUInt32("a"); set => Accessor.SetUInt32("a", value); } + public uint A { get => Accessor.GetUInt32("a"); set => Accessor.SetUInt32("a", value); } - public uint B - { get => Accessor.GetUInt32("b"); set => Accessor.SetUInt32("b", value); } + public uint B { get => Accessor.GetUInt32("b"); set => Accessor.SetUInt32("b", value); } - public uint C - { get => Accessor.GetUInt32("c"); set => Accessor.SetUInt32("c", value); } + public uint C { get => Accessor.GetUInt32("c"); set => Accessor.SetUInt32("c", value); } - public uint D - { get => Accessor.GetUInt32("d"); set => Accessor.SetUInt32("d", value); } + public uint D { get => Accessor.GetUInt32("d"); set => Accessor.SetUInt32("d", value); } - public uint Bits - { get => Accessor.GetUInt32("bits"); set => Accessor.SetUInt32("bits", value); } + public uint Bits { get => Accessor.GetUInt32("bits"); set => Accessor.SetUInt32("bits", value); } - public uint Token - { get => Accessor.GetUInt32("token"); set => Accessor.SetUInt32("token", value); } + public uint Token { get => Accessor.GetUInt32("token"); set => Accessor.SetUInt32("token", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLDemoHeaderImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLDemoHeaderImpl.cs index d4b192f8b..6d69a1c72 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLDemoHeaderImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLDemoHeaderImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class MLDemoHeaderImpl : TypedProtobuf, MLDemoHeader { - public MLDemoHeaderImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public MLDemoHeaderImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string MapName - { get => Accessor.GetString("map_name"); set => Accessor.SetString("map_name", value); } + public string MapName { get => Accessor.GetString("map_name"); set => Accessor.SetString("map_name", value); } - public int TickRate - { get => Accessor.GetInt32("tick_rate"); set => Accessor.SetInt32("tick_rate", value); } + public int TickRate { get => Accessor.GetInt32("tick_rate"); set => Accessor.SetInt32("tick_rate", value); } - public uint Version - { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } + public uint Version { get => Accessor.GetUInt32("version"); set => Accessor.SetUInt32("version", value); } - public uint SteamUniverse - { get => Accessor.GetUInt32("steam_universe"); set => Accessor.SetUInt32("steam_universe", value); } + public uint SteamUniverse { get => Accessor.GetUInt32("steam_universe"); set => Accessor.SetUInt32("steam_universe", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLDictImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLDictImpl.cs index 43b195c1c..9ff965605 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLDictImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLDictImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class MLDictImpl : TypedProtobuf, MLDict { - public MLDictImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public MLDictImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Key - { get => Accessor.GetString("key"); set => Accessor.SetString("key", value); } + public string Key { get => Accessor.GetString("key"); set => Accessor.SetString("key", value); } - public string ValString - { get => Accessor.GetString("val_string"); set => Accessor.SetString("val_string", value); } + public string ValString { get => Accessor.GetString("val_string"); set => Accessor.SetString("val_string", value); } - public int ValInt - { get => Accessor.GetInt32("val_int"); set => Accessor.SetInt32("val_int", value); } + public int ValInt { get => Accessor.GetInt32("val_int"); set => Accessor.SetInt32("val_int", value); } - public float ValFloat - { get => Accessor.GetFloat("val_float"); set => Accessor.SetFloat("val_float", value); } + public float ValFloat { get => Accessor.GetFloat("val_float"); set => Accessor.SetFloat("val_float", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLEventImpl.cs index e9514530d..c7a829128 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLEventImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class MLEventImpl : TypedProtobuf, MLEvent { - public MLEventImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public MLEventImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string EventName - { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } + public string EventName { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } - public IProtobufRepeatedFieldSubMessageType Data - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "data"); } + public IProtobufRepeatedFieldSubMessageType Data { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "data"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLGameStateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLGameStateImpl.cs index cfae703b4..5f94f989e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLGameStateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLGameStateImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +8,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class MLGameStateImpl : TypedProtobuf, MLGameState { - public MLGameStateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public MLGameStateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public MLMatchState Match - { get => new MLMatchStateImpl(NativeNetMessages.GetNestedMessage(Address, "match"), false); } + public MLMatchState Match { get => new MLMatchStateImpl(NativeNetMessages.GetNestedMessage(Address, "match"), false); } - public MLRoundState Round - { get => new MLRoundStateImpl(NativeNetMessages.GetNestedMessage(Address, "round"), false); } + public MLRoundState Round { get => new MLRoundStateImpl(NativeNetMessages.GetNestedMessage(Address, "round"), false); } - public IProtobufRepeatedFieldSubMessageType Players - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "players"); } + public IProtobufRepeatedFieldSubMessageType Players { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "players"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLMatchStateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLMatchStateImpl.cs index 31801e835..259c8e8f0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLMatchStateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLMatchStateImpl.cs @@ -1,36 +1,27 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class MLMatchStateImpl : TypedProtobuf, MLMatchState { - public MLMatchStateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public MLMatchStateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string GameMode - { get => Accessor.GetString("game_mode"); set => Accessor.SetString("game_mode", value); } + public string GameMode { get => Accessor.GetString("game_mode"); set => Accessor.SetString("game_mode", value); } - public string Phase - { get => Accessor.GetString("phase"); set => Accessor.SetString("phase", value); } + public string Phase { get => Accessor.GetString("phase"); set => Accessor.SetString("phase", value); } - public int Round - { get => Accessor.GetInt32("round"); set => Accessor.SetInt32("round", value); } + public int Round { get => Accessor.GetInt32("round"); set => Accessor.SetInt32("round", value); } - public int ScoreCt - { get => Accessor.GetInt32("score_ct"); set => Accessor.SetInt32("score_ct", value); } + public int ScoreCt { get => Accessor.GetInt32("score_ct"); set => Accessor.SetInt32("score_ct", value); } - public int ScoreT - { get => Accessor.GetInt32("score_t"); set => Accessor.SetInt32("score_t", value); } + public int ScoreT { get => Accessor.GetInt32("score_t"); set => Accessor.SetInt32("score_t", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLPlayerStateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLPlayerStateImpl.cs index bc7750705..b6f6b41d9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLPlayerStateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLPlayerStateImpl.cs @@ -1,5 +1,3 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; @@ -9,88 +7,68 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class MLPlayerStateImpl : TypedProtobuf, MLPlayerState { - public MLPlayerStateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public MLPlayerStateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int AccountId - { get => Accessor.GetInt32("account_id"); set => Accessor.SetInt32("account_id", value); } + public int AccountId { get => Accessor.GetInt32("account_id"); set => Accessor.SetInt32("account_id", value); } - public int PlayerSlot - { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } + public int PlayerSlot { get => Accessor.GetInt32("player_slot"); set => Accessor.SetInt32("player_slot", value); } - public int Entindex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + public int Entindex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public string Clan - { get => Accessor.GetString("clan"); set => Accessor.SetString("clan", value); } + public string Clan { get => Accessor.GetString("clan"); set => Accessor.SetString("clan", value); } - public ETeam Team - { get => (ETeam)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", (int)value); } + public ETeam Team { get => (ETeam)Accessor.GetInt32("team"); set => Accessor.SetInt32("team", (int)value); } - public Vector Abspos - { get => Accessor.GetVector("abspos"); set => Accessor.SetVector("abspos", value); } + public Vector Abspos { get => Accessor.GetVector("abspos"); set => Accessor.SetVector("abspos", value); } - public QAngle Eyeangle - { get => Accessor.GetQAngle("eyeangle"); set => Accessor.SetQAngle("eyeangle", value); } + public QAngle Eyeangle { get => Accessor.GetQAngle("eyeangle"); set => Accessor.SetQAngle("eyeangle", value); } - public Vector EyeangleFwd - { get => Accessor.GetVector("eyeangle_fwd"); set => Accessor.SetVector("eyeangle_fwd", value); } + public Vector EyeangleFwd { get => Accessor.GetVector("eyeangle_fwd"); set => Accessor.SetVector("eyeangle_fwd", value); } - public int Health - { get => Accessor.GetInt32("health"); set => Accessor.SetInt32("health", value); } + public int Health { get => Accessor.GetInt32("health"); set => Accessor.SetInt32("health", value); } - public int Armor - { get => Accessor.GetInt32("armor"); set => Accessor.SetInt32("armor", value); } + public int Armor { get => Accessor.GetInt32("armor"); set => Accessor.SetInt32("armor", value); } - public float Flashed - { get => Accessor.GetFloat("flashed"); set => Accessor.SetFloat("flashed", value); } + public float Flashed { get => Accessor.GetFloat("flashed"); set => Accessor.SetFloat("flashed", value); } - public float Smoked - { get => Accessor.GetFloat("smoked"); set => Accessor.SetFloat("smoked", value); } + public float Smoked { get => Accessor.GetFloat("smoked"); set => Accessor.SetFloat("smoked", value); } - public int Money - { get => Accessor.GetInt32("money"); set => Accessor.SetInt32("money", value); } + public int Money { get => Accessor.GetInt32("money"); set => Accessor.SetInt32("money", value); } - public int RoundKills - { get => Accessor.GetInt32("round_kills"); set => Accessor.SetInt32("round_kills", value); } + public int RoundKills { get => Accessor.GetInt32("round_kills"); set => Accessor.SetInt32("round_kills", value); } - public int RoundKillhs - { get => Accessor.GetInt32("round_killhs"); set => Accessor.SetInt32("round_killhs", value); } + public int RoundKillhs { get => Accessor.GetInt32("round_killhs"); set => Accessor.SetInt32("round_killhs", value); } - public float Burning - { get => Accessor.GetFloat("burning"); set => Accessor.SetFloat("burning", value); } + public float Burning { get => Accessor.GetFloat("burning"); set => Accessor.SetFloat("burning", value); } - public bool Helmet - { get => Accessor.GetBool("helmet"); set => Accessor.SetBool("helmet", value); } + public bool Helmet { get => Accessor.GetBool("helmet"); set => Accessor.SetBool("helmet", value); } - public bool DefuseKit - { get => Accessor.GetBool("defuse_kit"); set => Accessor.SetBool("defuse_kit", value); } + public bool DefuseKit { get => Accessor.GetBool("defuse_kit"); set => Accessor.SetBool("defuse_kit", value); } - public IProtobufRepeatedFieldSubMessageType Weapons - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "weapons"); } + public IProtobufRepeatedFieldSubMessageType Weapons { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "weapons"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLRoundStateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLRoundStateImpl.cs index 34972d20a..601097740 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLRoundStateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLRoundStateImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class MLRoundStateImpl : TypedProtobuf, MLRoundState { - public MLRoundStateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public MLRoundStateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Phase - { get => Accessor.GetString("phase"); set => Accessor.SetString("phase", value); } + public string Phase { get => Accessor.GetString("phase"); set => Accessor.SetString("phase", value); } - public ETeam WinTeam - { get => (ETeam)Accessor.GetInt32("win_team"); set => Accessor.SetInt32("win_team", (int)value); } + public ETeam WinTeam { get => (ETeam)Accessor.GetInt32("win_team"); set => Accessor.SetInt32("win_team", (int)value); } - public string BombState - { get => Accessor.GetString("bomb_state"); set => Accessor.SetString("bomb_state", value); } + public string BombState { get => Accessor.GetString("bomb_state"); set => Accessor.SetString("bomb_state", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLTickImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLTickImpl.cs index f5f0e85ad..6d8d6db05 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLTickImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLTickImpl.cs @@ -1,7 +1,6 @@ using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +8,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class MLTickImpl : TypedProtobuf, MLTick { - public MLTickImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public MLTickImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int TickCount - { get => Accessor.GetInt32("tick_count"); set => Accessor.SetInt32("tick_count", value); } + public int TickCount { get => Accessor.GetInt32("tick_count"); set => Accessor.SetInt32("tick_count", value); } - public MLGameState State - { get => new MLGameStateImpl(NativeNetMessages.GetNestedMessage(Address, "state"), false); } + public MLGameState State { get => new MLGameStateImpl(NativeNetMessages.GetNestedMessage(Address, "state"), false); } - public IProtobufRepeatedFieldSubMessageType Events - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "events"); } + public IProtobufRepeatedFieldSubMessageType Events { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "events"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLWeaponStateImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLWeaponStateImpl.cs index 55454fc5c..bc41a0a9a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLWeaponStateImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MLWeaponStateImpl.cs @@ -1,48 +1,36 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class MLWeaponStateImpl : TypedProtobuf, MLWeaponState { - public MLWeaponStateImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public MLWeaponStateImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Index - { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } + public int Index { get => Accessor.GetInt32("index"); set => Accessor.SetInt32("index", value); } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public EWeaponType Type - { get => (EWeaponType)Accessor.GetInt32("type"); set => Accessor.SetInt32("type", (int)value); } + public EWeaponType Type { get => (EWeaponType)Accessor.GetInt32("type"); set => Accessor.SetInt32("type", (int)value); } - public int AmmoClip - { get => Accessor.GetInt32("ammo_clip"); set => Accessor.SetInt32("ammo_clip", value); } + public int AmmoClip { get => Accessor.GetInt32("ammo_clip"); set => Accessor.SetInt32("ammo_clip", value); } - public int AmmoClipMax - { get => Accessor.GetInt32("ammo_clip_max"); set => Accessor.SetInt32("ammo_clip_max", value); } + public int AmmoClipMax { get => Accessor.GetInt32("ammo_clip_max"); set => Accessor.SetInt32("ammo_clip_max", value); } - public int AmmoReserve - { get => Accessor.GetInt32("ammo_reserve"); set => Accessor.SetInt32("ammo_reserve", value); } + public int AmmoReserve { get => Accessor.GetInt32("ammo_reserve"); set => Accessor.SetInt32("ammo_reserve", value); } - public string State - { get => Accessor.GetString("state"); set => Accessor.SetString("state", value); } + public string State { get => Accessor.GetString("state"); set => Accessor.SetString("state", value); } - public float RecoilIndex - { get => Accessor.GetFloat("recoil_index"); set => Accessor.SetFloat("recoil_index", value); } + public float RecoilIndex { get => Accessor.GetFloat("recoil_index"); set => Accessor.SetFloat("recoil_index", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MatchEndItemUpdatesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MatchEndItemUpdatesImpl.cs index 77207a651..406175eaf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MatchEndItemUpdatesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/MatchEndItemUpdatesImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class MatchEndItemUpdatesImpl : TypedProtobuf, MatchEndItemUpdates { - public MatchEndItemUpdatesImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public MatchEndItemUpdatesImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong ItemId - { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } + public ulong ItemId { get => Accessor.GetUInt64("item_id"); set => Accessor.SetUInt64("item_id", value); } - public uint ItemAttrDefidx - { get => Accessor.GetUInt32("item_attr_defidx"); set => Accessor.SetUInt32("item_attr_defidx", value); } + public uint ItemAttrDefidx { get => Accessor.GetUInt32("item_attr_defidx"); set => Accessor.SetUInt32("item_attr_defidx", value); } - public uint ItemAttrDeltaValue - { get => Accessor.GetUInt32("item_attr_delta_value"); set => Accessor.SetUInt32("item_attr_delta_value", value); } + public uint ItemAttrDeltaValue { get => Accessor.GetUInt32("item_attr_delta_value"); set => Accessor.SetUInt32("item_attr_delta_value", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessageConnectionClosedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessageConnectionClosedImpl.cs index 228aad638..32d5cabc7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessageConnectionClosedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessageConnectionClosedImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class NetMessageConnectionClosedImpl : TypedProtobuf, NetMessageConnectionClosed { - public NetMessageConnectionClosedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public NetMessageConnectionClosedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Reason - { get => Accessor.GetUInt32("reason"); set => Accessor.SetUInt32("reason", value); } + public uint Reason { get => Accessor.GetUInt32("reason"); set => Accessor.SetUInt32("reason", value); } - public string Message - { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } + public string Message { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessageConnectionCrashedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessageConnectionCrashedImpl.cs index 5bed0172c..3dfb50f39 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessageConnectionCrashedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessageConnectionCrashedImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class NetMessageConnectionCrashedImpl : TypedProtobuf, NetMessageConnectionCrashed { - public NetMessageConnectionCrashedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public NetMessageConnectionCrashedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Reason - { get => Accessor.GetUInt32("reason"); set => Accessor.SetUInt32("reason", value); } + public uint Reason { get => Accessor.GetUInt32("reason"); set => Accessor.SetUInt32("reason", value); } - public string Message - { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } + public string Message { get => Accessor.GetString("message"); set => Accessor.SetString("message", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessagePacketEndImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessagePacketEndImpl.cs index 3e746a19c..01d02e0ae 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessagePacketEndImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessagePacketEndImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class NetMessagePacketEndImpl : TypedProtobuf, NetMessagePacketEnd { - public NetMessagePacketEndImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public NetMessagePacketEndImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessagePacketStartImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessagePacketStartImpl.cs index 163d40aad..25f2573d5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessagePacketStartImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessagePacketStartImpl.cs @@ -1,17 +1,13 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class NetMessagePacketStartImpl : TypedProtobuf, NetMessagePacketStart { - public NetMessagePacketStartImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public NetMessagePacketStartImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessageSplitscreenUserChangedImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessageSplitscreenUserChangedImpl.cs index 65a13e59e..090b351a2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessageSplitscreenUserChangedImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/NetMessageSplitscreenUserChangedImpl.cs @@ -1,20 +1,15 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class NetMessageSplitscreenUserChangedImpl : TypedProtobuf, NetMessageSplitscreenUserChanged { - public NetMessageSplitscreenUserChangedImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public NetMessageSplitscreenUserChangedImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Slot - { get => Accessor.GetUInt32("slot"); set => Accessor.SetUInt32("slot", value); } + public uint Slot { get => Accessor.GetUInt32("slot"); set => Accessor.SetUInt32("slot", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalStatisticDescriptionImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalStatisticDescriptionImpl.cs index 1bdc03b4d..187c04a5b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalStatisticDescriptionImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalStatisticDescriptionImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class OperationalStatisticDescriptionImpl : TypedProtobuf, OperationalStatisticDescription { - public OperationalStatisticDescriptionImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public OperationalStatisticDescriptionImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public uint Idkey - { get => Accessor.GetUInt32("idkey"); set => Accessor.SetUInt32("idkey", value); } + public uint Idkey { get => Accessor.GetUInt32("idkey"); set => Accessor.SetUInt32("idkey", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalStatisticElementImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalStatisticElementImpl.cs index 69b881cbc..1137abb44 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalStatisticElementImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalStatisticElementImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class OperationalStatisticElementImpl : TypedProtobuf, OperationalStatisticElement { - public OperationalStatisticElementImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public OperationalStatisticElementImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Idkey - { get => Accessor.GetUInt32("idkey"); set => Accessor.SetUInt32("idkey", value); } + public uint Idkey { get => Accessor.GetUInt32("idkey"); set => Accessor.SetUInt32("idkey", value); } - public IProtobufRepeatedFieldValueType Values - { get => new ProtobufRepeatedFieldValueType(Accessor, "values"); } + public IProtobufRepeatedFieldValueType Values { get => new ProtobufRepeatedFieldValueType(Accessor, "values"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalStatisticsPacketImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalStatisticsPacketImpl.cs index 0eda6548c..0b992f6f8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalStatisticsPacketImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalStatisticsPacketImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class OperationalStatisticsPacketImpl : TypedProtobuf, OperationalStatisticsPacket { - public OperationalStatisticsPacketImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public OperationalStatisticsPacketImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int Packetid - { get => Accessor.GetInt32("packetid"); set => Accessor.SetInt32("packetid", value); } + public int Packetid { get => Accessor.GetInt32("packetid"); set => Accessor.SetInt32("packetid", value); } - public int Mstimestamp - { get => Accessor.GetInt32("mstimestamp"); set => Accessor.SetInt32("mstimestamp", value); } + public int Mstimestamp { get => Accessor.GetInt32("mstimestamp"); set => Accessor.SetInt32("mstimestamp", value); } - public IProtobufRepeatedFieldSubMessageType Values - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "values"); } + public IProtobufRepeatedFieldSubMessageType Values { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "values"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalVarValueImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalVarValueImpl.cs index 132f8b3dd..bc65ed9e4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalVarValueImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/OperationalVarValueImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class OperationalVarValueImpl : TypedProtobuf, OperationalVarValue { - public OperationalVarValueImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public OperationalVarValueImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public string Name - { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } + public string Name { get => Accessor.GetString("name"); set => Accessor.SetString("name", value); } - public int Ivalue - { get => Accessor.GetInt32("ivalue"); set => Accessor.SetInt32("ivalue", value); } + public int Ivalue { get => Accessor.GetInt32("ivalue"); set => Accessor.SetInt32("ivalue", value); } - public float Fvalue - { get => Accessor.GetFloat("fvalue"); set => Accessor.SetFloat("fvalue", value); } + public float Fvalue { get => Accessor.GetFloat("fvalue"); set => Accessor.SetFloat("fvalue", value); } - public byte[] Svalue - { get => Accessor.GetBytes("svalue"); set => Accessor.SetBytes("svalue", value); } + public byte[] Svalue { get => Accessor.GetBytes("svalue"); set => Accessor.SetBytes("svalue", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerCommendationInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerCommendationInfoImpl.cs index 1eb004eb7..1e5ceffe4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerCommendationInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerCommendationInfoImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class PlayerCommendationInfoImpl : TypedProtobuf, PlayerCommendationInfo { - public PlayerCommendationInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public PlayerCommendationInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint CmdFriendly - { get => Accessor.GetUInt32("cmd_friendly"); set => Accessor.SetUInt32("cmd_friendly", value); } + public uint CmdFriendly { get => Accessor.GetUInt32("cmd_friendly"); set => Accessor.SetUInt32("cmd_friendly", value); } - public uint CmdTeaching - { get => Accessor.GetUInt32("cmd_teaching"); set => Accessor.SetUInt32("cmd_teaching", value); } + public uint CmdTeaching { get => Accessor.GetUInt32("cmd_teaching"); set => Accessor.SetUInt32("cmd_teaching", value); } - public uint CmdLeader - { get => Accessor.GetUInt32("cmd_leader"); set => Accessor.SetUInt32("cmd_leader", value); } + public uint CmdLeader { get => Accessor.GetUInt32("cmd_leader"); set => Accessor.SetUInt32("cmd_leader", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerDecalDigitalSignatureImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerDecalDigitalSignatureImpl.cs index 2cea7ab55..988a5dfbd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerDecalDigitalSignatureImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerDecalDigitalSignatureImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,64 +6,50 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class PlayerDecalDigitalSignatureImpl : TypedProtobuf, PlayerDecalDigitalSignature { - public PlayerDecalDigitalSignatureImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public PlayerDecalDigitalSignatureImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public byte[] Signature - { get => Accessor.GetBytes("signature"); set => Accessor.SetBytes("signature", value); } + public byte[] Signature { get => Accessor.GetBytes("signature"); set => Accessor.SetBytes("signature", value); } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public uint Rtime - { get => Accessor.GetUInt32("rtime"); set => Accessor.SetUInt32("rtime", value); } + public uint Rtime { get => Accessor.GetUInt32("rtime"); set => Accessor.SetUInt32("rtime", value); } - public IProtobufRepeatedFieldValueType Endpos - { get => new ProtobufRepeatedFieldValueType(Accessor, "endpos"); } + public IProtobufRepeatedFieldValueType Endpos { get => new ProtobufRepeatedFieldValueType(Accessor, "endpos"); } - public IProtobufRepeatedFieldValueType Startpos - { get => new ProtobufRepeatedFieldValueType(Accessor, "startpos"); } + public IProtobufRepeatedFieldValueType Startpos { get => new ProtobufRepeatedFieldValueType(Accessor, "startpos"); } - public IProtobufRepeatedFieldValueType Left - { get => new ProtobufRepeatedFieldValueType(Accessor, "left"); } + public IProtobufRepeatedFieldValueType Left { get => new ProtobufRepeatedFieldValueType(Accessor, "left"); } - public uint TxDefidx - { get => Accessor.GetUInt32("tx_defidx"); set => Accessor.SetUInt32("tx_defidx", value); } + public uint TxDefidx { get => Accessor.GetUInt32("tx_defidx"); set => Accessor.SetUInt32("tx_defidx", value); } - public int Entindex - { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } + public int Entindex { get => Accessor.GetInt32("entindex"); set => Accessor.SetInt32("entindex", value); } - public uint Hitbox - { get => Accessor.GetUInt32("hitbox"); set => Accessor.SetUInt32("hitbox", value); } + public uint Hitbox { get => Accessor.GetUInt32("hitbox"); set => Accessor.SetUInt32("hitbox", value); } - public float Creationtime - { get => Accessor.GetFloat("creationtime"); set => Accessor.SetFloat("creationtime", value); } + public float Creationtime { get => Accessor.GetFloat("creationtime"); set => Accessor.SetFloat("creationtime", value); } - public uint Equipslot - { get => Accessor.GetUInt32("equipslot"); set => Accessor.SetUInt32("equipslot", value); } + public uint Equipslot { get => Accessor.GetUInt32("equipslot"); set => Accessor.SetUInt32("equipslot", value); } - public uint TraceId - { get => Accessor.GetUInt32("trace_id"); set => Accessor.SetUInt32("trace_id", value); } + public uint TraceId { get => Accessor.GetUInt32("trace_id"); set => Accessor.SetUInt32("trace_id", value); } - public IProtobufRepeatedFieldValueType Normal - { get => new ProtobufRepeatedFieldValueType(Accessor, "normal"); } + public IProtobufRepeatedFieldValueType Normal { get => new ProtobufRepeatedFieldValueType(Accessor, "normal"); } - public uint TintId - { get => Accessor.GetUInt32("tint_id"); set => Accessor.SetUInt32("tint_id", value); } + public uint TintId { get => Accessor.GetUInt32("tint_id"); set => Accessor.SetUInt32("tint_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerMedalsInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerMedalsInfoImpl.cs index d386f54b2..bc64008c5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerMedalsInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerMedalsInfoImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class PlayerMedalsInfoImpl : TypedProtobuf, PlayerMedalsInfo { - public PlayerMedalsInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public PlayerMedalsInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public IProtobufRepeatedFieldValueType DisplayItemsDefidx - { get => new ProtobufRepeatedFieldValueType(Accessor, "display_items_defidx"); } + public IProtobufRepeatedFieldValueType DisplayItemsDefidx { get => new ProtobufRepeatedFieldValueType(Accessor, "display_items_defidx"); } - public uint FeaturedDisplayItemDefidx - { get => Accessor.GetUInt32("featured_display_item_defidx"); set => Accessor.SetUInt32("featured_display_item_defidx", value); } + public uint FeaturedDisplayItemDefidx { get => Accessor.GetUInt32("featured_display_item_defidx"); set => Accessor.SetUInt32("featured_display_item_defidx", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerQuestDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerQuestDataImpl.cs index 270cbbcfe..88acfd1e9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerQuestDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerQuestDataImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,40 +6,32 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class PlayerQuestDataImpl : TypedProtobuf, PlayerQuestData { - public PlayerQuestDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public PlayerQuestDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint QuesterAccountId - { get => Accessor.GetUInt32("quester_account_id"); set => Accessor.SetUInt32("quester_account_id", value); } + public uint QuesterAccountId { get => Accessor.GetUInt32("quester_account_id"); set => Accessor.SetUInt32("quester_account_id", value); } - public IProtobufRepeatedFieldSubMessageType QuestItemData - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "quest_item_data"); } + public IProtobufRepeatedFieldSubMessageType QuestItemData { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "quest_item_data"); } - public IProtobufRepeatedFieldSubMessageType XpProgressData - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "xp_progress_data"); } + public IProtobufRepeatedFieldSubMessageType XpProgressData { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "xp_progress_data"); } - public uint TimePlayed - { get => Accessor.GetUInt32("time_played"); set => Accessor.SetUInt32("time_played", value); } + public uint TimePlayed { get => Accessor.GetUInt32("time_played"); set => Accessor.SetUInt32("time_played", value); } - public uint MmGameMode - { get => Accessor.GetUInt32("mm_game_mode"); set => Accessor.SetUInt32("mm_game_mode", value); } + public uint MmGameMode { get => Accessor.GetUInt32("mm_game_mode"); set => Accessor.SetUInt32("mm_game_mode", value); } - public IProtobufRepeatedFieldSubMessageType ItemUpdates - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "item_updates"); } + public IProtobufRepeatedFieldSubMessageType ItemUpdates { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "item_updates"); } - public bool OperationPointsEligible - { get => Accessor.GetBool("operation_points_eligible"); set => Accessor.SetBool("operation_points_eligible", value); } + public bool OperationPointsEligible { get => Accessor.GetBool("operation_points_eligible"); set => Accessor.SetBool("operation_points_eligible", value); } - public IProtobufRepeatedFieldSubMessageType Userstatchanges - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "userstatchanges"); } + public IProtobufRepeatedFieldSubMessageType Userstatchanges { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "userstatchanges"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerQuestData_QuestItemDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerQuestData_QuestItemDataImpl.cs index a4277d4f0..677dc34c5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerQuestData_QuestItemDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerQuestData_QuestItemDataImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,36 +6,29 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class PlayerQuestData_QuestItemDataImpl : TypedProtobuf, PlayerQuestData_QuestItemData { - public PlayerQuestData_QuestItemDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public PlayerQuestData_QuestItemDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong QuestId - { get => Accessor.GetUInt64("quest_id"); set => Accessor.SetUInt64("quest_id", value); } + public ulong QuestId { get => Accessor.GetUInt64("quest_id"); set => Accessor.SetUInt64("quest_id", value); } - public int QuestNormalPointsEarned - { get => Accessor.GetInt32("quest_normal_points_earned"); set => Accessor.SetInt32("quest_normal_points_earned", value); } + public int QuestNormalPointsEarned { get => Accessor.GetInt32("quest_normal_points_earned"); set => Accessor.SetInt32("quest_normal_points_earned", value); } - public int QuestBonusPointsEarned - { get => Accessor.GetInt32("quest_bonus_points_earned"); set => Accessor.SetInt32("quest_bonus_points_earned", value); } + public int QuestBonusPointsEarned { get => Accessor.GetInt32("quest_bonus_points_earned"); set => Accessor.SetInt32("quest_bonus_points_earned", value); } - public IProtobufRepeatedFieldValueType QuestNormalPointsRequired - { get => new ProtobufRepeatedFieldValueType(Accessor, "quest_normal_points_required"); } + public IProtobufRepeatedFieldValueType QuestNormalPointsRequired { get => new ProtobufRepeatedFieldValueType(Accessor, "quest_normal_points_required"); } - public IProtobufRepeatedFieldValueType QuestRewardXp - { get => new ProtobufRepeatedFieldValueType(Accessor, "quest_reward_xp"); } + public IProtobufRepeatedFieldValueType QuestRewardXp { get => new ProtobufRepeatedFieldValueType(Accessor, "quest_reward_xp"); } - public int QuestPeriod - { get => Accessor.GetInt32("quest_period"); set => Accessor.SetInt32("quest_period", value); } + public int QuestPeriod { get => Accessor.GetInt32("quest_period"); set => Accessor.SetInt32("quest_period", value); } - public QuestType QuestType - { get => (QuestType)Accessor.GetInt32("quest_type"); set => Accessor.SetInt32("quest_type", (int)value); } + public QuestType QuestType { get => (QuestType)Accessor.GetInt32("quest_type"); set => Accessor.SetInt32("quest_type", (int)value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerRankingInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerRankingInfoImpl.cs index 4ae93b712..6494e9a9d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerRankingInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerRankingInfoImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,68 +6,53 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class PlayerRankingInfoImpl : TypedProtobuf, PlayerRankingInfo { - public PlayerRankingInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public PlayerRankingInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public uint RankId - { get => Accessor.GetUInt32("rank_id"); set => Accessor.SetUInt32("rank_id", value); } + public uint RankId { get => Accessor.GetUInt32("rank_id"); set => Accessor.SetUInt32("rank_id", value); } - public uint Wins - { get => Accessor.GetUInt32("wins"); set => Accessor.SetUInt32("wins", value); } + public uint Wins { get => Accessor.GetUInt32("wins"); set => Accessor.SetUInt32("wins", value); } - public float RankChange - { get => Accessor.GetFloat("rank_change"); set => Accessor.SetFloat("rank_change", value); } + public float RankChange { get => Accessor.GetFloat("rank_change"); set => Accessor.SetFloat("rank_change", value); } - public uint RankTypeId - { get => Accessor.GetUInt32("rank_type_id"); set => Accessor.SetUInt32("rank_type_id", value); } + public uint RankTypeId { get => Accessor.GetUInt32("rank_type_id"); set => Accessor.SetUInt32("rank_type_id", value); } - public uint TvControl - { get => Accessor.GetUInt32("tv_control"); set => Accessor.SetUInt32("tv_control", value); } + public uint TvControl { get => Accessor.GetUInt32("tv_control"); set => Accessor.SetUInt32("tv_control", value); } - public ulong RankWindowStats - { get => Accessor.GetUInt64("rank_window_stats"); set => Accessor.SetUInt64("rank_window_stats", value); } + public ulong RankWindowStats { get => Accessor.GetUInt64("rank_window_stats"); set => Accessor.SetUInt64("rank_window_stats", value); } - public string LeaderboardName - { get => Accessor.GetString("leaderboard_name"); set => Accessor.SetString("leaderboard_name", value); } + public string LeaderboardName { get => Accessor.GetString("leaderboard_name"); set => Accessor.SetString("leaderboard_name", value); } - public uint RankIfWin - { get => Accessor.GetUInt32("rank_if_win"); set => Accessor.SetUInt32("rank_if_win", value); } + public uint RankIfWin { get => Accessor.GetUInt32("rank_if_win"); set => Accessor.SetUInt32("rank_if_win", value); } - public uint RankIfLose - { get => Accessor.GetUInt32("rank_if_lose"); set => Accessor.SetUInt32("rank_if_lose", value); } + public uint RankIfLose { get => Accessor.GetUInt32("rank_if_lose"); set => Accessor.SetUInt32("rank_if_lose", value); } - public uint RankIfTie - { get => Accessor.GetUInt32("rank_if_tie"); set => Accessor.SetUInt32("rank_if_tie", value); } + public uint RankIfTie { get => Accessor.GetUInt32("rank_if_tie"); set => Accessor.SetUInt32("rank_if_tie", value); } - public IProtobufRepeatedFieldSubMessageType PerMapRank - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "per_map_rank"); } + public IProtobufRepeatedFieldSubMessageType PerMapRank { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "per_map_rank"); } - public uint LeaderboardNameStatus - { get => Accessor.GetUInt32("leaderboard_name_status"); set => Accessor.SetUInt32("leaderboard_name_status", value); } + public uint LeaderboardNameStatus { get => Accessor.GetUInt32("leaderboard_name_status"); set => Accessor.SetUInt32("leaderboard_name_status", value); } - public uint HighestRank - { get => Accessor.GetUInt32("highest_rank"); set => Accessor.SetUInt32("highest_rank", value); } + public uint HighestRank { get => Accessor.GetUInt32("highest_rank"); set => Accessor.SetUInt32("highest_rank", value); } - public uint RankExpiry - { get => Accessor.GetUInt32("rank_expiry"); set => Accessor.SetUInt32("rank_expiry", value); } + public uint RankExpiry { get => Accessor.GetUInt32("rank_expiry"); set => Accessor.SetUInt32("rank_expiry", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerRankingInfo_PerMapRankImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerRankingInfo_PerMapRankImpl.cs index 6a40a7bb5..b571b066f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerRankingInfo_PerMapRankImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/PlayerRankingInfo_PerMapRankImpl.cs @@ -1,28 +1,21 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class PlayerRankingInfo_PerMapRankImpl : TypedProtobuf, PlayerRankingInfo_PerMapRank { - public PlayerRankingInfo_PerMapRankImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public PlayerRankingInfo_PerMapRankImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint MapId - { get => Accessor.GetUInt32("map_id"); set => Accessor.SetUInt32("map_id", value); } + public uint MapId { get => Accessor.GetUInt32("map_id"); set => Accessor.SetUInt32("map_id", value); } - public uint RankId - { get => Accessor.GetUInt32("rank_id"); set => Accessor.SetUInt32("rank_id", value); } + public uint RankId { get => Accessor.GetUInt32("rank_id"); set => Accessor.SetUInt32("rank_id", value); } - public uint Wins - { get => Accessor.GetUInt32("wins"); set => Accessor.SetUInt32("wins", value); } + public uint Wins { get => Accessor.GetUInt32("wins"); set => Accessor.SetUInt32("wins", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ProtoFlattenedSerializerField_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ProtoFlattenedSerializerField_tImpl.cs index dc813f4c2..89a34ab5c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ProtoFlattenedSerializerField_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ProtoFlattenedSerializerField_tImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,56 +6,44 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class ProtoFlattenedSerializerField_tImpl : TypedProtobuf, ProtoFlattenedSerializerField_t { - public ProtoFlattenedSerializerField_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public ProtoFlattenedSerializerField_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int VarTypeSym - { get => Accessor.GetInt32("var_type_sym"); set => Accessor.SetInt32("var_type_sym", value); } + public int VarTypeSym { get => Accessor.GetInt32("var_type_sym"); set => Accessor.SetInt32("var_type_sym", value); } - public int VarNameSym - { get => Accessor.GetInt32("var_name_sym"); set => Accessor.SetInt32("var_name_sym", value); } + public int VarNameSym { get => Accessor.GetInt32("var_name_sym"); set => Accessor.SetInt32("var_name_sym", value); } - public int BitCount - { get => Accessor.GetInt32("bit_count"); set => Accessor.SetInt32("bit_count", value); } + public int BitCount { get => Accessor.GetInt32("bit_count"); set => Accessor.SetInt32("bit_count", value); } - public float LowValue - { get => Accessor.GetFloat("low_value"); set => Accessor.SetFloat("low_value", value); } + public float LowValue { get => Accessor.GetFloat("low_value"); set => Accessor.SetFloat("low_value", value); } - public float HighValue - { get => Accessor.GetFloat("high_value"); set => Accessor.SetFloat("high_value", value); } + public float HighValue { get => Accessor.GetFloat("high_value"); set => Accessor.SetFloat("high_value", value); } - public int EncodeFlags - { get => Accessor.GetInt32("encode_flags"); set => Accessor.SetInt32("encode_flags", value); } + public int EncodeFlags { get => Accessor.GetInt32("encode_flags"); set => Accessor.SetInt32("encode_flags", value); } - public int FieldSerializerNameSym - { get => Accessor.GetInt32("field_serializer_name_sym"); set => Accessor.SetInt32("field_serializer_name_sym", value); } + public int FieldSerializerNameSym { get => Accessor.GetInt32("field_serializer_name_sym"); set => Accessor.SetInt32("field_serializer_name_sym", value); } - public int FieldSerializerVersion - { get => Accessor.GetInt32("field_serializer_version"); set => Accessor.SetInt32("field_serializer_version", value); } + public int FieldSerializerVersion { get => Accessor.GetInt32("field_serializer_version"); set => Accessor.SetInt32("field_serializer_version", value); } - public int SendNodeSym - { get => Accessor.GetInt32("send_node_sym"); set => Accessor.SetInt32("send_node_sym", value); } + public int SendNodeSym { get => Accessor.GetInt32("send_node_sym"); set => Accessor.SetInt32("send_node_sym", value); } - public int VarEncoderSym - { get => Accessor.GetInt32("var_encoder_sym"); set => Accessor.SetInt32("var_encoder_sym", value); } + public int VarEncoderSym { get => Accessor.GetInt32("var_encoder_sym"); set => Accessor.SetInt32("var_encoder_sym", value); } - public IProtobufRepeatedFieldSubMessageType PolymorphicTypes - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "polymorphic_types"); } + public IProtobufRepeatedFieldSubMessageType PolymorphicTypes { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "polymorphic_types"); } - public int VarSerializerSym - { get => Accessor.GetInt32("var_serializer_sym"); set => Accessor.SetInt32("var_serializer_sym", value); } + public int VarSerializerSym { get => Accessor.GetInt32("var_serializer_sym"); set => Accessor.SetInt32("var_serializer_sym", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ProtoFlattenedSerializerField_t_polymorphic_field_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ProtoFlattenedSerializerField_t_polymorphic_field_tImpl.cs index 8ca7c4e55..77605d96e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ProtoFlattenedSerializerField_t_polymorphic_field_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ProtoFlattenedSerializerField_t_polymorphic_field_tImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class ProtoFlattenedSerializerField_t_polymorphic_field_tImpl : TypedProtobuf, ProtoFlattenedSerializerField_t_polymorphic_field_t { - public ProtoFlattenedSerializerField_t_polymorphic_field_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public ProtoFlattenedSerializerField_t_polymorphic_field_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int PolymorphicFieldSerializerNameSym - { get => Accessor.GetInt32("polymorphic_field_serializer_name_sym"); set => Accessor.SetInt32("polymorphic_field_serializer_name_sym", value); } + public int PolymorphicFieldSerializerNameSym { get => Accessor.GetInt32("polymorphic_field_serializer_name_sym"); set => Accessor.SetInt32("polymorphic_field_serializer_name_sym", value); } - public int PolymorphicFieldSerializerVersion - { get => Accessor.GetInt32("polymorphic_field_serializer_version"); set => Accessor.SetInt32("polymorphic_field_serializer_version", value); } + public int PolymorphicFieldSerializerVersion { get => Accessor.GetInt32("polymorphic_field_serializer_version"); set => Accessor.SetInt32("polymorphic_field_serializer_version", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ProtoFlattenedSerializer_tImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ProtoFlattenedSerializer_tImpl.cs index b33428c04..b162bf5a4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ProtoFlattenedSerializer_tImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ProtoFlattenedSerializer_tImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,20 +6,17 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class ProtoFlattenedSerializer_tImpl : TypedProtobuf, ProtoFlattenedSerializer_t { - public ProtoFlattenedSerializer_tImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public ProtoFlattenedSerializer_tImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int SerializerNameSym - { get => Accessor.GetInt32("serializer_name_sym"); set => Accessor.SetInt32("serializer_name_sym", value); } + public int SerializerNameSym { get => Accessor.GetInt32("serializer_name_sym"); set => Accessor.SetInt32("serializer_name_sym", value); } - public int SerializerVersion - { get => Accessor.GetInt32("serializer_version"); set => Accessor.SetInt32("serializer_version", value); } + public int SerializerVersion { get => Accessor.GetInt32("serializer_version"); set => Accessor.SetInt32("serializer_version", value); } - public IProtobufRepeatedFieldValueType FieldsIndex - { get => new ProtobufRepeatedFieldValueType(Accessor, "fields_index"); } + public IProtobufRepeatedFieldValueType FieldsIndex { get => new ProtobufRepeatedFieldValueType(Accessor, "fields_index"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ScoreLeaderboardDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ScoreLeaderboardDataImpl.cs index f3995749a..50ff2f40d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ScoreLeaderboardDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ScoreLeaderboardDataImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,28 +6,23 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class ScoreLeaderboardDataImpl : TypedProtobuf, ScoreLeaderboardData { - public ScoreLeaderboardDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public ScoreLeaderboardDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong QuestId - { get => Accessor.GetUInt64("quest_id"); set => Accessor.SetUInt64("quest_id", value); } + public ulong QuestId { get => Accessor.GetUInt64("quest_id"); set => Accessor.SetUInt64("quest_id", value); } - public uint Score - { get => Accessor.GetUInt32("score"); set => Accessor.SetUInt32("score", value); } + public uint Score { get => Accessor.GetUInt32("score"); set => Accessor.SetUInt32("score", value); } - public IProtobufRepeatedFieldSubMessageType Accountentries - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "accountentries"); } + public IProtobufRepeatedFieldSubMessageType Accountentries { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "accountentries"); } - public IProtobufRepeatedFieldSubMessageType Matchentries - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "matchentries"); } + public IProtobufRepeatedFieldSubMessageType Matchentries { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "matchentries"); } - public string LeaderboardName - { get => Accessor.GetString("leaderboard_name"); set => Accessor.SetString("leaderboard_name", value); } + public string LeaderboardName { get => Accessor.GetString("leaderboard_name"); set => Accessor.SetString("leaderboard_name", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ScoreLeaderboardData_AccountEntriesImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ScoreLeaderboardData_AccountEntriesImpl.cs index c9e5c9860..9d3af0629 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ScoreLeaderboardData_AccountEntriesImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ScoreLeaderboardData_AccountEntriesImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,16 +6,14 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class ScoreLeaderboardData_AccountEntriesImpl : TypedProtobuf, ScoreLeaderboardData_AccountEntries { - public ScoreLeaderboardData_AccountEntriesImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public ScoreLeaderboardData_AccountEntriesImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Accountid - { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } + public uint Accountid { get => Accessor.GetUInt32("accountid"); set => Accessor.SetUInt32("accountid", value); } - public IProtobufRepeatedFieldSubMessageType Entries - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entries"); } + public IProtobufRepeatedFieldSubMessageType Entries { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "entries"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ScoreLeaderboardData_EntryImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ScoreLeaderboardData_EntryImpl.cs index d8c1e5b38..350172278 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ScoreLeaderboardData_EntryImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ScoreLeaderboardData_EntryImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class ScoreLeaderboardData_EntryImpl : TypedProtobuf, ScoreLeaderboardData_Entry { - public ScoreLeaderboardData_EntryImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public ScoreLeaderboardData_EntryImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint Tag - { get => Accessor.GetUInt32("tag"); set => Accessor.SetUInt32("tag", value); } + public uint Tag { get => Accessor.GetUInt32("tag"); set => Accessor.SetUInt32("tag", value); } - public uint Val - { get => Accessor.GetUInt32("val"); set => Accessor.SetUInt32("val", value); } + public uint Val { get => Accessor.GetUInt32("val"); set => Accessor.SetUInt32("val", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ServerHltvInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ServerHltvInfoImpl.cs index a62a2f9ed..0b20eae39 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ServerHltvInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/ServerHltvInfoImpl.cs @@ -1,96 +1,72 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class ServerHltvInfoImpl : TypedProtobuf, ServerHltvInfo { - public ServerHltvInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public ServerHltvInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint TvUdpPort - { get => Accessor.GetUInt32("tv_udp_port"); set => Accessor.SetUInt32("tv_udp_port", value); } + public uint TvUdpPort { get => Accessor.GetUInt32("tv_udp_port"); set => Accessor.SetUInt32("tv_udp_port", value); } - public ulong TvWatchKey - { get => Accessor.GetUInt64("tv_watch_key"); set => Accessor.SetUInt64("tv_watch_key", value); } + public ulong TvWatchKey { get => Accessor.GetUInt64("tv_watch_key"); set => Accessor.SetUInt64("tv_watch_key", value); } - public uint TvSlots - { get => Accessor.GetUInt32("tv_slots"); set => Accessor.SetUInt32("tv_slots", value); } + public uint TvSlots { get => Accessor.GetUInt32("tv_slots"); set => Accessor.SetUInt32("tv_slots", value); } - public uint TvClients - { get => Accessor.GetUInt32("tv_clients"); set => Accessor.SetUInt32("tv_clients", value); } + public uint TvClients { get => Accessor.GetUInt32("tv_clients"); set => Accessor.SetUInt32("tv_clients", value); } - public uint TvProxies - { get => Accessor.GetUInt32("tv_proxies"); set => Accessor.SetUInt32("tv_proxies", value); } + public uint TvProxies { get => Accessor.GetUInt32("tv_proxies"); set => Accessor.SetUInt32("tv_proxies", value); } - public uint TvTime - { get => Accessor.GetUInt32("tv_time"); set => Accessor.SetUInt32("tv_time", value); } + public uint TvTime { get => Accessor.GetUInt32("tv_time"); set => Accessor.SetUInt32("tv_time", value); } - public uint GameType - { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } + public uint GameType { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } - public string GameMapgroup - { get => Accessor.GetString("game_mapgroup"); set => Accessor.SetString("game_mapgroup", value); } + public string GameMapgroup { get => Accessor.GetString("game_mapgroup"); set => Accessor.SetString("game_mapgroup", value); } - public string GameMap - { get => Accessor.GetString("game_map"); set => Accessor.SetString("game_map", value); } + public string GameMap { get => Accessor.GetString("game_map"); set => Accessor.SetString("game_map", value); } - public ulong TvMasterSteamid - { get => Accessor.GetUInt64("tv_master_steamid"); set => Accessor.SetUInt64("tv_master_steamid", value); } + public ulong TvMasterSteamid { get => Accessor.GetUInt64("tv_master_steamid"); set => Accessor.SetUInt64("tv_master_steamid", value); } - public uint TvLocalSlots - { get => Accessor.GetUInt32("tv_local_slots"); set => Accessor.SetUInt32("tv_local_slots", value); } + public uint TvLocalSlots { get => Accessor.GetUInt32("tv_local_slots"); set => Accessor.SetUInt32("tv_local_slots", value); } - public uint TvLocalClients - { get => Accessor.GetUInt32("tv_local_clients"); set => Accessor.SetUInt32("tv_local_clients", value); } + public uint TvLocalClients { get => Accessor.GetUInt32("tv_local_clients"); set => Accessor.SetUInt32("tv_local_clients", value); } - public uint TvLocalProxies - { get => Accessor.GetUInt32("tv_local_proxies"); set => Accessor.SetUInt32("tv_local_proxies", value); } + public uint TvLocalProxies { get => Accessor.GetUInt32("tv_local_proxies"); set => Accessor.SetUInt32("tv_local_proxies", value); } - public uint TvRelaySlots - { get => Accessor.GetUInt32("tv_relay_slots"); set => Accessor.SetUInt32("tv_relay_slots", value); } + public uint TvRelaySlots { get => Accessor.GetUInt32("tv_relay_slots"); set => Accessor.SetUInt32("tv_relay_slots", value); } - public uint TvRelayClients - { get => Accessor.GetUInt32("tv_relay_clients"); set => Accessor.SetUInt32("tv_relay_clients", value); } + public uint TvRelayClients { get => Accessor.GetUInt32("tv_relay_clients"); set => Accessor.SetUInt32("tv_relay_clients", value); } - public uint TvRelayProxies - { get => Accessor.GetUInt32("tv_relay_proxies"); set => Accessor.SetUInt32("tv_relay_proxies", value); } + public uint TvRelayProxies { get => Accessor.GetUInt32("tv_relay_proxies"); set => Accessor.SetUInt32("tv_relay_proxies", value); } - public uint TvRelayAddress - { get => Accessor.GetUInt32("tv_relay_address"); set => Accessor.SetUInt32("tv_relay_address", value); } + public uint TvRelayAddress { get => Accessor.GetUInt32("tv_relay_address"); set => Accessor.SetUInt32("tv_relay_address", value); } - public uint TvRelayPort - { get => Accessor.GetUInt32("tv_relay_port"); set => Accessor.SetUInt32("tv_relay_port", value); } + public uint TvRelayPort { get => Accessor.GetUInt32("tv_relay_port"); set => Accessor.SetUInt32("tv_relay_port", value); } - public ulong TvRelaySteamid - { get => Accessor.GetUInt64("tv_relay_steamid"); set => Accessor.SetUInt64("tv_relay_steamid", value); } + public ulong TvRelaySteamid { get => Accessor.GetUInt64("tv_relay_steamid"); set => Accessor.SetUInt64("tv_relay_steamid", value); } - public uint Flags - { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } + public uint Flags { get => Accessor.GetUInt32("flags"); set => Accessor.SetUInt32("flags", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentEventImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentEventImpl.cs index b93115dd2..d38e01f27 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentEventImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentEventImpl.cs @@ -1,52 +1,39 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class TournamentEventImpl : TypedProtobuf, TournamentEvent { - public TournamentEventImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public TournamentEventImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int EventId - { get => Accessor.GetInt32("event_id"); set => Accessor.SetInt32("event_id", value); } + public int EventId { get => Accessor.GetInt32("event_id"); set => Accessor.SetInt32("event_id", value); } - public string EventTag - { get => Accessor.GetString("event_tag"); set => Accessor.SetString("event_tag", value); } + public string EventTag { get => Accessor.GetString("event_tag"); set => Accessor.SetString("event_tag", value); } - public string EventName - { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } + public string EventName { get => Accessor.GetString("event_name"); set => Accessor.SetString("event_name", value); } - public uint EventTimeStart - { get => Accessor.GetUInt32("event_time_start"); set => Accessor.SetUInt32("event_time_start", value); } + public uint EventTimeStart { get => Accessor.GetUInt32("event_time_start"); set => Accessor.SetUInt32("event_time_start", value); } - public uint EventTimeEnd - { get => Accessor.GetUInt32("event_time_end"); set => Accessor.SetUInt32("event_time_end", value); } + public uint EventTimeEnd { get => Accessor.GetUInt32("event_time_end"); set => Accessor.SetUInt32("event_time_end", value); } - public int EventPublic - { get => Accessor.GetInt32("event_public"); set => Accessor.SetInt32("event_public", value); } + public int EventPublic { get => Accessor.GetInt32("event_public"); set => Accessor.SetInt32("event_public", value); } - public int EventStageId - { get => Accessor.GetInt32("event_stage_id"); set => Accessor.SetInt32("event_stage_id", value); } + public int EventStageId { get => Accessor.GetInt32("event_stage_id"); set => Accessor.SetInt32("event_stage_id", value); } - public string EventStageName - { get => Accessor.GetString("event_stage_name"); set => Accessor.SetString("event_stage_name", value); } + public string EventStageName { get => Accessor.GetString("event_stage_name"); set => Accessor.SetString("event_stage_name", value); } - public uint ActiveSectionId - { get => Accessor.GetUInt32("active_section_id"); set => Accessor.SetUInt32("active_section_id", value); } + public uint ActiveSectionId { get => Accessor.GetUInt32("active_section_id"); set => Accessor.SetUInt32("active_section_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentMatchSetupImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentMatchSetupImpl.cs index 3cbbfa235..d2c5d1964 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentMatchSetupImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentMatchSetupImpl.cs @@ -1,32 +1,24 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class TournamentMatchSetupImpl : TypedProtobuf, TournamentMatchSetup { - public TournamentMatchSetupImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public TournamentMatchSetupImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int EventId - { get => Accessor.GetInt32("event_id"); set => Accessor.SetInt32("event_id", value); } + public int EventId { get => Accessor.GetInt32("event_id"); set => Accessor.SetInt32("event_id", value); } - public int TeamIdCt - { get => Accessor.GetInt32("team_id_ct"); set => Accessor.SetInt32("team_id_ct", value); } + public int TeamIdCt { get => Accessor.GetInt32("team_id_ct"); set => Accessor.SetInt32("team_id_ct", value); } - public int TeamIdT - { get => Accessor.GetInt32("team_id_t"); set => Accessor.SetInt32("team_id_t", value); } + public int TeamIdT { get => Accessor.GetInt32("team_id_t"); set => Accessor.SetInt32("team_id_t", value); } - public int EventStageId - { get => Accessor.GetInt32("event_stage_id"); set => Accessor.SetInt32("event_stage_id", value); } + public int EventStageId { get => Accessor.GetInt32("event_stage_id"); set => Accessor.SetInt32("event_stage_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentPlayerImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentPlayerImpl.cs index e0af39c7f..bd36c9ae3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentPlayerImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentPlayerImpl.cs @@ -1,44 +1,33 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class TournamentPlayerImpl : TypedProtobuf, TournamentPlayer { - public TournamentPlayerImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public TournamentPlayerImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint AccountId - { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } + public uint AccountId { get => Accessor.GetUInt32("account_id"); set => Accessor.SetUInt32("account_id", value); } - public string PlayerNick - { get => Accessor.GetString("player_nick"); set => Accessor.SetString("player_nick", value); } + public string PlayerNick { get => Accessor.GetString("player_nick"); set => Accessor.SetString("player_nick", value); } - public string PlayerName - { get => Accessor.GetString("player_name"); set => Accessor.SetString("player_name", value); } + public string PlayerName { get => Accessor.GetString("player_name"); set => Accessor.SetString("player_name", value); } - public uint PlayerDob - { get => Accessor.GetUInt32("player_dob"); set => Accessor.SetUInt32("player_dob", value); } + public uint PlayerDob { get => Accessor.GetUInt32("player_dob"); set => Accessor.SetUInt32("player_dob", value); } - public string PlayerFlag - { get => Accessor.GetString("player_flag"); set => Accessor.SetString("player_flag", value); } + public string PlayerFlag { get => Accessor.GetString("player_flag"); set => Accessor.SetString("player_flag", value); } - public string PlayerLocation - { get => Accessor.GetString("player_location"); set => Accessor.SetString("player_location", value); } + public string PlayerLocation { get => Accessor.GetString("player_location"); set => Accessor.SetString("player_location", value); } - public string PlayerDesc - { get => Accessor.GetString("player_desc"); set => Accessor.SetString("player_desc", value); } + public string PlayerDesc { get => Accessor.GetString("player_desc"); set => Accessor.SetString("player_desc", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentTeamImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentTeamImpl.cs index b0d31324b..f2a634980 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentTeamImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/TournamentTeamImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,28 +6,23 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class TournamentTeamImpl : TypedProtobuf, TournamentTeam { - public TournamentTeamImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public TournamentTeamImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public int TeamId - { get => Accessor.GetInt32("team_id"); set => Accessor.SetInt32("team_id", value); } + public int TeamId { get => Accessor.GetInt32("team_id"); set => Accessor.SetInt32("team_id", value); } - public string TeamTag - { get => Accessor.GetString("team_tag"); set => Accessor.SetString("team_tag", value); } + public string TeamTag { get => Accessor.GetString("team_tag"); set => Accessor.SetString("team_tag", value); } - public string TeamFlag - { get => Accessor.GetString("team_flag"); set => Accessor.SetString("team_flag", value); } + public string TeamFlag { get => Accessor.GetString("team_flag"); set => Accessor.SetString("team_flag", value); } - public string TeamName - { get => Accessor.GetString("team_name"); set => Accessor.SetString("team_name", value); } + public string TeamName { get => Accessor.GetString("team_name"); set => Accessor.SetString("team_name", value); } - public IProtobufRepeatedFieldSubMessageType Players - { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "players"); } + public IProtobufRepeatedFieldSubMessageType Players { get => new ProtobufRepeatedFieldSubMessageType(Accessor, "players"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/VacNetShotImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/VacNetShotImpl.cs index cd3ba58b9..ad291f0b6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/VacNetShotImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/VacNetShotImpl.cs @@ -1,7 +1,4 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; @@ -9,36 +6,29 @@ namespace SwiftlyS2.Core.ProtobufDefinitions; internal class VacNetShotImpl : TypedProtobuf, VacNetShot { - public VacNetShotImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public VacNetShotImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public ulong SteamidPlayer - { get => Accessor.GetUInt64("steamid_player"); set => Accessor.SetUInt64("steamid_player", value); } + public ulong SteamidPlayer { get => Accessor.GetUInt64("steamid_player"); set => Accessor.SetUInt64("steamid_player", value); } - public int RoundNumber - { get => Accessor.GetInt32("round_number"); set => Accessor.SetInt32("round_number", value); } + public int RoundNumber { get => Accessor.GetInt32("round_number"); set => Accessor.SetInt32("round_number", value); } - public int HitType - { get => Accessor.GetInt32("hit_type"); set => Accessor.SetInt32("hit_type", value); } + public int HitType { get => Accessor.GetInt32("hit_type"); set => Accessor.SetInt32("hit_type", value); } - public int WeaponType - { get => Accessor.GetInt32("weapon_type"); set => Accessor.SetInt32("weapon_type", value); } + public int WeaponType { get => Accessor.GetInt32("weapon_type"); set => Accessor.SetInt32("weapon_type", value); } - public float DistanceToHurtTarget - { get => Accessor.GetFloat("distance_to_hurt_target"); set => Accessor.SetFloat("distance_to_hurt_target", value); } + public float DistanceToHurtTarget { get => Accessor.GetFloat("distance_to_hurt_target"); set => Accessor.SetFloat("distance_to_hurt_target", value); } - public IProtobufRepeatedFieldValueType DeltaYawWindow - { get => new ProtobufRepeatedFieldValueType(Accessor, "delta_yaw_window"); } + public IProtobufRepeatedFieldValueType DeltaYawWindow { get => new ProtobufRepeatedFieldValueType(Accessor, "delta_yaw_window"); } - public IProtobufRepeatedFieldValueType DeltaPitchWindow - { get => new ProtobufRepeatedFieldValueType(Accessor, "delta_pitch_window"); } + public IProtobufRepeatedFieldValueType DeltaPitchWindow { get => new ProtobufRepeatedFieldValueType(Accessor, "delta_pitch_window"); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/WatchableMatchInfoImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/WatchableMatchInfoImpl.cs index 69eddd3f6..6a096dfd5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/WatchableMatchInfoImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/WatchableMatchInfoImpl.cs @@ -1,68 +1,51 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class WatchableMatchInfoImpl : TypedProtobuf, WatchableMatchInfo { - public WatchableMatchInfoImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public WatchableMatchInfoImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint ServerIp - { get => Accessor.GetUInt32("server_ip"); set => Accessor.SetUInt32("server_ip", value); } + public uint ServerIp { get => Accessor.GetUInt32("server_ip"); set => Accessor.SetUInt32("server_ip", value); } - public uint TvPort - { get => Accessor.GetUInt32("tv_port"); set => Accessor.SetUInt32("tv_port", value); } + public uint TvPort { get => Accessor.GetUInt32("tv_port"); set => Accessor.SetUInt32("tv_port", value); } - public uint TvSpectators - { get => Accessor.GetUInt32("tv_spectators"); set => Accessor.SetUInt32("tv_spectators", value); } + public uint TvSpectators { get => Accessor.GetUInt32("tv_spectators"); set => Accessor.SetUInt32("tv_spectators", value); } - public uint TvTime - { get => Accessor.GetUInt32("tv_time"); set => Accessor.SetUInt32("tv_time", value); } + public uint TvTime { get => Accessor.GetUInt32("tv_time"); set => Accessor.SetUInt32("tv_time", value); } - public byte[] TvWatchPassword - { get => Accessor.GetBytes("tv_watch_password"); set => Accessor.SetBytes("tv_watch_password", value); } + public byte[] TvWatchPassword { get => Accessor.GetBytes("tv_watch_password"); set => Accessor.SetBytes("tv_watch_password", value); } - public ulong ClDecryptdataKey - { get => Accessor.GetUInt64("cl_decryptdata_key"); set => Accessor.SetUInt64("cl_decryptdata_key", value); } + public ulong ClDecryptdataKey { get => Accessor.GetUInt64("cl_decryptdata_key"); set => Accessor.SetUInt64("cl_decryptdata_key", value); } - public ulong ClDecryptdataKeyPub - { get => Accessor.GetUInt64("cl_decryptdata_key_pub"); set => Accessor.SetUInt64("cl_decryptdata_key_pub", value); } + public ulong ClDecryptdataKeyPub { get => Accessor.GetUInt64("cl_decryptdata_key_pub"); set => Accessor.SetUInt64("cl_decryptdata_key_pub", value); } - public uint GameType - { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } + public uint GameType { get => Accessor.GetUInt32("game_type"); set => Accessor.SetUInt32("game_type", value); } - public string GameMapgroup - { get => Accessor.GetString("game_mapgroup"); set => Accessor.SetString("game_mapgroup", value); } + public string GameMapgroup { get => Accessor.GetString("game_mapgroup"); set => Accessor.SetString("game_mapgroup", value); } - public string GameMap - { get => Accessor.GetString("game_map"); set => Accessor.SetString("game_map", value); } + public string GameMap { get => Accessor.GetString("game_map"); set => Accessor.SetString("game_map", value); } - public ulong ServerId - { get => Accessor.GetUInt64("server_id"); set => Accessor.SetUInt64("server_id", value); } + public ulong ServerId { get => Accessor.GetUInt64("server_id"); set => Accessor.SetUInt64("server_id", value); } - public ulong MatchId - { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } + public ulong MatchId { get => Accessor.GetUInt64("match_id"); set => Accessor.SetUInt64("match_id", value); } - public ulong ReservationId - { get => Accessor.GetUInt64("reservation_id"); set => Accessor.SetUInt64("reservation_id", value); } + public ulong ReservationId { get => Accessor.GetUInt64("reservation_id"); set => Accessor.SetUInt64("reservation_id", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/XpProgressDataImpl.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/XpProgressDataImpl.cs index 4f1dc8173..58a8d4645 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Classes/XpProgressDataImpl.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Classes/XpProgressDataImpl.cs @@ -1,24 +1,18 @@ - -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.NetMessages; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; using SwiftlyS2.Shared.ProtobufDefinitions; namespace SwiftlyS2.Core.ProtobufDefinitions; internal class XpProgressDataImpl : TypedProtobuf, XpProgressData { - public XpProgressDataImpl(nint handle, bool isManuallyAllocated): base(handle) - { - } + public XpProgressDataImpl( nint handle, bool isManuallyAllocated ) : base(handle) + { + } - public uint XpPoints - { get => Accessor.GetUInt32("xp_points"); set => Accessor.SetUInt32("xp_points", value); } + public uint XpPoints { get => Accessor.GetUInt32("xp_points"); set => Accessor.SetUInt32("xp_points", value); } - public int XpCategory - { get => Accessor.GetInt32("xp_category"); set => Accessor.SetInt32("xp_category", value); } + public int XpCategory { get => Accessor.GetInt32("xp_category"); set => Accessor.SetInt32("xp_category", value); } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/Bidirectional_Messages.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/Bidirectional_Messages.cs index b639fee82..c66720960 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/Bidirectional_Messages.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/Bidirectional_Messages.cs @@ -3,8 +3,8 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum Bidirectional_Messages { - bi_RebroadcastGameEvent = 16, - bi_RebroadcastSource = 17, - bi_GameEvent = 18, - bi_PredictionEvent = 19, + bi_RebroadcastGameEvent = 16, + bi_RebroadcastSource = 17, + bi_GameEvent = 18, + bi_PredictionEvent = 19, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/Bidirectional_Messages_LowFrequency.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/Bidirectional_Messages_LowFrequency.cs index 3a892198f..74f1f2c5e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/Bidirectional_Messages_LowFrequency.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/Bidirectional_Messages_LowFrequency.cs @@ -3,6 +3,6 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum Bidirectional_Messages_LowFrequency { - bi_RelayInfo = 700, - bi_RelayPacket = 701, + bi_RelayInfo = 700, + bi_RelayPacket = 701, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CBidirMsg_PredictionEvent_ESyncType.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CBidirMsg_PredictionEvent_ESyncType.cs index 70db759d9..2d3364f2c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CBidirMsg_PredictionEvent_ESyncType.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CBidirMsg_PredictionEvent_ESyncType.cs @@ -3,6 +3,6 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum CBidirMsg_PredictionEvent_ESyncType { - ST_Tick = 0, - ST_UserCmdNum = 1, + ST_Tick = 0, + ST_UserCmdNum = 1, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CLC_Messages.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CLC_Messages.cs index 6c0459144..f95267fd5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CLC_Messages.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CLC_Messages.cs @@ -3,18 +3,18 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum CLC_Messages { - clc_ClientInfo = 20, - clc_Move = 21, - clc_VoiceData = 22, - clc_BaselineAck = 23, - clc_RespondCvarValue = 25, - clc_LoadingProgress = 27, - clc_SplitPlayerConnect = 28, - clc_SplitPlayerDisconnect = 30, - clc_ServerStatus = 31, - clc_RequestPause = 33, - clc_CmdKeyValues = 34, - clc_RconServerDetails = 35, - clc_HltvReplay = 36, - clc_Diagnostic = 37, + clc_ClientInfo = 20, + clc_Move = 21, + clc_VoiceData = 22, + clc_BaselineAck = 23, + clc_RespondCvarValue = 25, + clc_LoadingProgress = 27, + clc_SplitPlayerConnect = 28, + clc_SplitPlayerDisconnect = 30, + clc_ServerStatus = 31, + clc_RequestPause = 33, + clc_CmdKeyValues = 34, + clc_RconServerDetails = 35, + clc_HltvReplay = 36, + clc_Diagnostic = 37, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CMsgGameServerInfo_ServerType.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CMsgGameServerInfo_ServerType.cs index 44f6a53aa..5259ee9d8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CMsgGameServerInfo_ServerType.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CMsgGameServerInfo_ServerType.cs @@ -3,7 +3,7 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum CMsgGameServerInfo_ServerType { - UNSPECIFIED = 0, - GAME = 1, - PROXY = 2, + UNSPECIFIED = 0, + GAME = 1, + PROXY = 2, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CP2P_Voice_Handler_Flags.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CP2P_Voice_Handler_Flags.cs index 150912ae3..406cb61e1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CP2P_Voice_Handler_Flags.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/CP2P_Voice_Handler_Flags.cs @@ -3,5 +3,5 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum CP2P_Voice_Handler_Flags { - Played_Audio = 1, + Played_Audio = 1, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/DIALOG_TYPE.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/DIALOG_TYPE.cs index 0d6fe878f..978a25da9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/DIALOG_TYPE.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/DIALOG_TYPE.cs @@ -3,9 +3,9 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum DIALOG_TYPE { - DIALOG_MSG = 0, - DIALOG_MENU = 1, - DIALOG_TEXT = 2, - DIALOG_ENTRY = 3, - DIALOG_ASKCONNECT = 4, + DIALOG_MSG = 0, + DIALOG_MENU = 1, + DIALOG_TEXT = 2, + DIALOG_ENTRY = 3, + DIALOG_ASKCONNECT = 4, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseClientMessages.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseClientMessages.cs index 57ca53c13..8a11386c6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseClientMessages.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseClientMessages.cs @@ -3,12 +3,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EBaseClientMessages { - CM_CustomGameEvent = 280, - CM_CustomGameEventBounce = 281, - CM_ClientUIEvent = 282, - CM_DevPaletteVisibilityChanged = 283, - CM_WorldUIControllerHasPanelChanged = 284, - CM_RotateAnchor = 285, - CM_ListenForResponseFound = 286, - CM_MAX_BASE = 300, + CM_CustomGameEvent = 280, + CM_CustomGameEventBounce = 281, + CM_ClientUIEvent = 282, + CM_DevPaletteVisibilityChanged = 283, + CM_WorldUIControllerHasPanelChanged = 284, + CM_RotateAnchor = 285, + CM_ListenForResponseFound = 286, + CM_MAX_BASE = 300, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseEntityMessages.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseEntityMessages.cs index b2a0c3da2..7bf59c4a3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseEntityMessages.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseEntityMessages.cs @@ -3,10 +3,10 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EBaseEntityMessages { - EM_PlayJingle = 136, - EM_ScreenOverlay = 137, - EM_RemoveAllDecals = 138, - EM_PropagateForce = 139, - EM_DoSpark = 140, - EM_FixAngle = 141, + EM_PlayJingle = 136, + EM_ScreenOverlay = 137, + EM_RemoveAllDecals = 138, + EM_PropagateForce = 139, + EM_DoSpark = 140, + EM_FixAngle = 141, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseGameEvents.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseGameEvents.cs index 8146de4b5..29c9f3901 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseGameEvents.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseGameEvents.cs @@ -3,17 +3,17 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EBaseGameEvents { - GE_VDebugGameSessionIDEvent = 200, - GE_PlaceDecalEvent = 201, - GE_ClearWorldDecalsEvent = 202, - GE_ClearEntityDecalsEvent = 203, - GE_ClearDecalsForEntityEvent = 204, - GE_Source1LegacyGameEventList = 205, - GE_Source1LegacyListenEvents = 206, - GE_Source1LegacyGameEvent = 207, - GE_SosStartSoundEvent = 208, - GE_SosStopSoundEvent = 209, - GE_SosSetSoundEventParams = 210, - GE_SosSetLibraryStackFields = 211, - GE_SosStopSoundEventHash = 212, + GE_VDebugGameSessionIDEvent = 200, + GE_PlaceDecalEvent = 201, + GE_ClearWorldDecalsEvent = 202, + GE_ClearEntityDecalsEvent = 203, + GE_ClearDecalsForEntityEvent = 204, + GE_Source1LegacyGameEventList = 205, + GE_Source1LegacyListenEvents = 206, + GE_Source1LegacyGameEvent = 207, + GE_SosStartSoundEvent = 208, + GE_SosStopSoundEvent = 209, + GE_SosSetSoundEventParams = 210, + GE_SosSetLibraryStackFields = 211, + GE_SosStopSoundEventHash = 212, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBasePredictionEvents.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBasePredictionEvents.cs index 1ad3d8686..17327ba58 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBasePredictionEvents.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBasePredictionEvents.cs @@ -3,7 +3,7 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EBasePredictionEvents { - BPE_StringCommand = 128, - BPE_Teleport = 130, - BPE_Diagnostic = 16384, + BPE_StringCommand = 128, + BPE_Teleport = 130, + BPE_Diagnostic = 16384, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseUserMessages.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseUserMessages.cs index b27278e05..6b0212433 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseUserMessages.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EBaseUserMessages.cs @@ -3,55 +3,55 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EBaseUserMessages { - UM_AchievementEvent = 101, - UM_CloseCaption = 102, - UM_CloseCaptionDirect = 103, - UM_CurrentTimescale = 104, - UM_DesiredTimescale = 105, - UM_Fade = 106, - UM_GameTitle = 107, - UM_HudMsg = 110, - UM_HudText = 111, - UM_ColoredText = 113, - UM_RequestState = 114, - UM_ResetHUD = 115, - UM_Rumble = 116, - UM_SayText = 117, - UM_SayText2 = 118, - UM_SayTextChannel = 119, - UM_Shake = 120, - UM_ShakeDir = 121, - UM_WaterShake = 122, - UM_TextMsg = 124, - UM_ScreenTilt = 125, - UM_VoiceMask = 128, - UM_SendAudio = 130, - UM_ItemPickup = 131, - UM_AmmoDenied = 132, - UM_ShowMenu = 134, - UM_CreditsMsg = 135, - UM_CloseCaptionPlaceholder = 142, - UM_CameraTransition = 143, - UM_AudioParameter = 144, - UM_ParticleManager = 145, - UM_HudError = 146, - UM_CustomGameEvent = 148, - UM_AnimGraphUpdate = 149, - UM_HapticsManagerPulse = 150, - UM_HapticsManagerEffect = 151, - UM_UpdateCssClasses = 153, - UM_ServerFrameTime = 154, - UM_LagCompensationError = 155, - UM_RequestDllStatus = 156, - UM_RequestUtilAction = 157, - UM_UtilActionResponse = 158, - UM_DllStatusResponse = 159, - UM_RequestInventory = 160, - UM_InventoryResponse = 161, - UM_RequestDiagnostic = 162, - UM_DiagnosticResponse = 163, - UM_ExtraUserData = 164, - UM_NotifyResponseFound = 165, - UM_PlayResponseConditional = 166, - UM_MAX_BASE = 200, + UM_AchievementEvent = 101, + UM_CloseCaption = 102, + UM_CloseCaptionDirect = 103, + UM_CurrentTimescale = 104, + UM_DesiredTimescale = 105, + UM_Fade = 106, + UM_GameTitle = 107, + UM_HudMsg = 110, + UM_HudText = 111, + UM_ColoredText = 113, + UM_RequestState = 114, + UM_ResetHUD = 115, + UM_Rumble = 116, + UM_SayText = 117, + UM_SayText2 = 118, + UM_SayTextChannel = 119, + UM_Shake = 120, + UM_ShakeDir = 121, + UM_WaterShake = 122, + UM_TextMsg = 124, + UM_ScreenTilt = 125, + UM_VoiceMask = 128, + UM_SendAudio = 130, + UM_ItemPickup = 131, + UM_AmmoDenied = 132, + UM_ShowMenu = 134, + UM_CreditsMsg = 135, + UM_CloseCaptionPlaceholder = 142, + UM_CameraTransition = 143, + UM_AudioParameter = 144, + UM_ParticleManager = 145, + UM_HudError = 146, + UM_CustomGameEvent = 148, + UM_AnimGraphUpdate = 149, + UM_HapticsManagerPulse = 150, + UM_HapticsManagerEffect = 151, + UM_UpdateCssClasses = 153, + UM_ServerFrameTime = 154, + UM_LagCompensationError = 155, + UM_RequestDllStatus = 156, + UM_RequestUtilAction = 157, + UM_UtilActionResponse = 158, + UM_DllStatusResponse = 159, + UM_RequestInventory = 160, + UM_InventoryResponse = 161, + UM_RequestDiagnostic = 162, + UM_DiagnosticResponse = 163, + UM_ExtraUserData = 164, + UM_NotifyResponseFound = 165, + UM_PlayResponseConditional = 166, + UM_MAX_BASE = 200, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECSPredictionEvents.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECSPredictionEvents.cs index 72b5ceff7..13883e2bc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECSPredictionEvents.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECSPredictionEvents.cs @@ -3,6 +3,6 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ECSPredictionEvents { - CSPE_DamageTag = 1, - CSPE_AddAimPunch = 3, + CSPE_DamageTag = 1, + CSPE_AddAimPunch = 3, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECSUsrMsg_DisconnectToLobby_Action.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECSUsrMsg_DisconnectToLobby_Action.cs index afab65841..ae16d0280 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECSUsrMsg_DisconnectToLobby_Action.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECSUsrMsg_DisconnectToLobby_Action.cs @@ -3,6 +3,6 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ECSUsrMsg_DisconnectToLobby_Action { - k_ECSUsrMsg_DisconnectToLobby_Action_Default = 0, - k_ECSUsrMsg_DisconnectToLobby_Action_GoQueue = 1, + k_ECSUsrMsg_DisconnectToLobby_Action_Default = 0, + k_ECSUsrMsg_DisconnectToLobby_Action_GoQueue = 1, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EClientPersonaStateFlag.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EClientPersonaStateFlag.cs index f778a89ef..09b9e2576 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EClientPersonaStateFlag.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EClientPersonaStateFlag.cs @@ -3,18 +3,18 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EClientPersonaStateFlag { - k_EClientPersonaStateFlagStatus = 1, - k_EClientPersonaStateFlagPlayerName = 2, - k_EClientPersonaStateFlagQueryPort = 4, - k_EClientPersonaStateFlagSourceID = 8, - k_EClientPersonaStateFlagPresence = 16, - k_EClientPersonaStateFlagLastSeen = 64, - k_EClientPersonaStateFlagUserClanRank = 128, - k_EClientPersonaStateGameExtraInfo = 256, - k_EClientPersonaStateGameDataBlob = 512, - k_EClientPersonaStateFlagClanData = 1024, - k_EClientPersonaStateFlagFacebook = 2048, - k_EClientPersonaStateFlagRichPresence = 4096, - k_EClientPersonaStateFlagBroadcast = 8192, - k_EClientPersonaStateFlagWatching = 16384, + k_EClientPersonaStateFlagStatus = 1, + k_EClientPersonaStateFlagPlayerName = 2, + k_EClientPersonaStateFlagQueryPort = 4, + k_EClientPersonaStateFlagSourceID = 8, + k_EClientPersonaStateFlagPresence = 16, + k_EClientPersonaStateFlagLastSeen = 64, + k_EClientPersonaStateFlagUserClanRank = 128, + k_EClientPersonaStateGameExtraInfo = 256, + k_EClientPersonaStateGameDataBlob = 512, + k_EClientPersonaStateFlagClanData = 1024, + k_EClientPersonaStateFlagFacebook = 2048, + k_EClientPersonaStateFlagRichPresence = 4096, + k_EClientPersonaStateFlagBroadcast = 8192, + k_EClientPersonaStateFlagWatching = 16384, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EClientReportingVersion.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EClientReportingVersion.cs index 9e7dc445e..b52954b51 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EClientReportingVersion.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EClientReportingVersion.cs @@ -3,7 +3,7 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EClientReportingVersion { - k_EClientReportingVersion_OldVersion = 0, - k_EClientReportingVersion_BetaVersion = 1, - k_EClientReportingVersion_SupportsTrustedMode = 2, + k_EClientReportingVersion_OldVersion = 0, + k_EClientReportingVersion_BetaVersion = 1, + k_EClientReportingVersion_SupportsTrustedMode = 2, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EClientUIEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EClientUIEvent.cs index 0e6d5a49b..aa1c8512a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EClientUIEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EClientUIEvent.cs @@ -3,7 +3,7 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EClientUIEvent { - EClientUIEvent_Invalid = 0, - EClientUIEvent_DialogFinished = 1, - EClientUIEvent_FireOutput = 2, + EClientUIEvent_Invalid = 0, + EClientUIEvent_DialogFinished = 1, + EClientUIEvent_FireOutput = 2, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECodecUsagePlatform.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECodecUsagePlatform.cs index c76ce4dfe..7061e1aae 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECodecUsagePlatform.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECodecUsagePlatform.cs @@ -3,9 +3,9 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ECodecUsagePlatform { - k_ECodecUsagePlatformUnknown = 0, - k_ECodecUsagePlatformWindows = 1, - k_ECodecUsagePlatformMacOS = 2, - k_ECodecUsagePlatformLinux = 3, - k_ECodecUsagePlatformSteamDeck = 4, + k_ECodecUsagePlatformUnknown = 0, + k_ECodecUsagePlatformWindows = 1, + k_ECodecUsagePlatformMacOS = 2, + k_ECodecUsagePlatformLinux = 3, + k_ECodecUsagePlatformSteamDeck = 4, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECodecUsageReason.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECodecUsageReason.cs index aab7a16d2..338405991 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECodecUsageReason.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECodecUsageReason.cs @@ -3,8 +3,8 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ECodecUsageReason { - k_ECodecUsageReasonUnknown = 0, - k_ECodecUsageReasonRemotePlay = 1, - k_ECodecUsageReasonBroadcasting = 2, - k_ECodecUsageReasonGameVideo = 3, + k_ECodecUsageReasonUnknown = 0, + k_ECodecUsageReasonRemotePlay = 1, + k_ECodecUsageReasonBroadcasting = 2, + k_ECodecUsageReasonGameVideo = 3, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECommunityItemAttribute.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECommunityItemAttribute.cs index 4d1c3b45f..b36f0ce0b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECommunityItemAttribute.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECommunityItemAttribute.cs @@ -3,14 +3,14 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ECommunityItemAttribute { - k_ECommunityItemAttribute_Invalid = 0, - k_ECommunityItemAttribute_CardBorder = 1, - k_ECommunityItemAttribute_Level = 2, - k_ECommunityItemAttribute_IssueNumber = 3, - k_ECommunityItemAttribute_TradableTime = 4, - k_ECommunityItemAttribute_StorePackageID = 5, - k_ECommunityItemAttribute_CommunityItemAppID = 6, - k_ECommunityItemAttribute_CommunityItemType = 7, - k_ECommunityItemAttribute_ProfileModiferEnabled = 8, - k_ECommunityItemAttribute_ExpiryTime = 9, + k_ECommunityItemAttribute_Invalid = 0, + k_ECommunityItemAttribute_CardBorder = 1, + k_ECommunityItemAttribute_Level = 2, + k_ECommunityItemAttribute_IssueNumber = 3, + k_ECommunityItemAttribute_TradableTime = 4, + k_ECommunityItemAttribute_StorePackageID = 5, + k_ECommunityItemAttribute_CommunityItemAppID = 6, + k_ECommunityItemAttribute_CommunityItemType = 7, + k_ECommunityItemAttribute_ProfileModiferEnabled = 8, + k_ECommunityItemAttribute_ExpiryTime = 9, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECommunityItemClass.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECommunityItemClass.cs index da009a519..f1288b250 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECommunityItemClass.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECommunityItemClass.cs @@ -3,15 +3,15 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ECommunityItemClass { - k_ECommunityItemClass_Invalid = 0, - k_ECommunityItemClass_Badge = 1, - k_ECommunityItemClass_GameCard = 2, - k_ECommunityItemClass_ProfileBackground = 3, - k_ECommunityItemClass_Emoticon = 4, - k_ECommunityItemClass_BoosterPack = 5, - k_ECommunityItemClass_Consumable = 6, - k_ECommunityItemClass_GameGoo = 7, - k_ECommunityItemClass_ProfileModifier = 8, - k_ECommunityItemClass_Scene = 9, - k_ECommunityItemClass_SalienItem = 10, + k_ECommunityItemClass_Invalid = 0, + k_ECommunityItemClass_Badge = 1, + k_ECommunityItemClass_GameCard = 2, + k_ECommunityItemClass_ProfileBackground = 3, + k_ECommunityItemClass_Emoticon = 4, + k_ECommunityItemClass_BoosterPack = 5, + k_ECommunityItemClass_Consumable = 6, + k_ECommunityItemClass_GameGoo = 7, + k_ECommunityItemClass_ProfileModifier = 8, + k_ECommunityItemClass_Scene = 9, + k_ECommunityItemClass_SalienItem = 10, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECsgoGCMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECsgoGCMsg.cs index 003f942d8..b544f993a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECsgoGCMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECsgoGCMsg.cs @@ -3,112 +3,112 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ECsgoGCMsg { - k_EMsgGCCStrike15_v2_Base = 9100, - k_EMsgGCCStrike15_v2_MatchmakingStart = 9101, - k_EMsgGCCStrike15_v2_MatchmakingStop = 9102, - k_EMsgGCCStrike15_v2_MatchmakingClient2ServerPing = 9103, - k_EMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate = 9104, - k_EMsgGCCStrike15_v2_MatchmakingServerReservationResponse = 9106, - k_EMsgGCCStrike15_v2_MatchmakingGC2ClientReserve = 9107, - k_EMsgGCCStrike15_v2_MatchmakingClient2GCHello = 9109, - k_EMsgGCCStrike15_v2_MatchmakingGC2ClientHello = 9110, - k_EMsgGCCStrike15_v2_MatchmakingGC2ClientAbandon = 9112, - k_EMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdate = 9117, - k_EMsgGCCStrike15_v2_ServerNotificationForUserPenalty = 9118, - k_EMsgGCCStrike15_v2_ClientReportPlayer = 9119, - k_EMsgGCCStrike15_v2_ClientReportServer = 9120, - k_EMsgGCCStrike15_v2_ClientCommendPlayer = 9121, - k_EMsgGCCStrike15_v2_ClientReportResponse = 9122, - k_EMsgGCCStrike15_v2_ClientCommendPlayerQuery = 9123, - k_EMsgGCCStrike15_v2_ClientCommendPlayerQueryResponse = 9124, - k_EMsgGCCStrike15_v2_WatchInfoUsers = 9126, - k_EMsgGCCStrike15_v2_ClientRequestPlayersProfile = 9127, - k_EMsgGCCStrike15_v2_PlayersProfile = 9128, - k_EMsgGCCStrike15_v2_PlayerOverwatchCaseUpdate = 9131, - k_EMsgGCCStrike15_v2_PlayerOverwatchCaseAssignment = 9132, - k_EMsgGCCStrike15_v2_PlayerOverwatchCaseStatus = 9133, - k_EMsgGCCStrike15_v2_GC2ClientTextMsg = 9134, - k_EMsgGCCStrike15_v2_Client2GCTextMsg = 9135, - k_EMsgGCCStrike15_v2_MatchEndRunRewardDrops = 9136, - k_EMsgGCCStrike15_v2_MatchEndRewardDropsNotification = 9137, - k_EMsgGCCStrike15_v2_ClientRequestWatchInfoFriends2 = 9138, - k_EMsgGCCStrike15_v2_MatchList = 9139, - k_EMsgGCCStrike15_v2_MatchListRequestCurrentLiveGames = 9140, - k_EMsgGCCStrike15_v2_MatchListRequestRecentUserGames = 9141, - k_EMsgGCCStrike15_v2_GC2ServerReservationUpdate = 9142, - k_EMsgGCCStrike15_v2_ClientVarValueNotificationInfo = 9144, - k_EMsgGCCStrike15_v2_MatchListRequestTournamentGames = 9146, - k_EMsgGCCStrike15_v2_MatchListRequestFullGameInfo = 9147, - k_EMsgGCCStrike15_v2_GiftsLeaderboardRequest = 9148, - k_EMsgGCCStrike15_v2_GiftsLeaderboardResponse = 9149, - k_EMsgGCCStrike15_v2_ServerVarValueNotificationInfo = 9150, - k_EMsgGCCStrike15_v2_ClientSubmitSurveyVote = 9152, - k_EMsgGCCStrike15_v2_Server2GCClientValidate = 9153, - k_EMsgGCCStrike15_v2_MatchListRequestLiveGameForUser = 9154, - k_EMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequest = 9156, - k_EMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponse = 9157, - k_EMsgGCCStrike15_v2_AccountPrivacySettings = 9158, - k_EMsgGCCStrike15_v2_SetMyActivityInfo = 9159, - k_EMsgGCCStrike15_v2_MatchListRequestTournamentPredictions = 9160, - k_EMsgGCCStrike15_v2_MatchListUploadTournamentPredictions = 9161, - k_EMsgGCCStrike15_v2_DraftSummary = 9162, - k_EMsgGCCStrike15_v2_ClientRequestJoinFriendData = 9163, - k_EMsgGCCStrike15_v2_ClientRequestJoinServerData = 9164, - k_EMsgGCCStrike15_v2_GC2ClientTournamentInfo = 9167, - k_EMsgGC_GlobalGame_Subscribe = 9168, - k_EMsgGC_GlobalGame_Unsubscribe = 9169, - k_EMsgGC_GlobalGame_Play = 9170, - k_EMsgGCCStrike15_v2_AcknowledgePenalty = 9171, - k_EMsgGCCStrike15_v2_Client2GCRequestPrestigeCoin = 9172, - k_EMsgGCCStrike15_v2_GC2ClientGlobalStats = 9173, - k_EMsgGCCStrike15_v2_Client2GCStreamUnlock = 9174, - k_EMsgGCCStrike15_v2_FantasyRequestClientData = 9175, - k_EMsgGCCStrike15_v2_FantasyUpdateClientData = 9176, - k_EMsgGCCStrike15_v2_GCToClientSteamdatagramTicket = 9177, - k_EMsgGCCStrike15_v2_ClientToGCRequestTicket = 9178, - k_EMsgGCCStrike15_v2_ClientToGCRequestElevate = 9179, - k_EMsgGCCStrike15_v2_GlobalChat = 9180, - k_EMsgGCCStrike15_v2_GlobalChat_Subscribe = 9181, - k_EMsgGCCStrike15_v2_GlobalChat_Unsubscribe = 9182, - k_EMsgGCCStrike15_v2_ClientAuthKeyCode = 9183, - k_EMsgGCCStrike15_v2_GotvSyncPacket = 9184, - k_EMsgGCCStrike15_v2_ClientPlayerDecalSign = 9185, - k_EMsgGCCStrike15_v2_ClientLogonFatalError = 9187, - k_EMsgGCCStrike15_v2_ClientPollState = 9188, - k_EMsgGCCStrike15_v2_Party_Register = 9189, - k_EMsgGCCStrike15_v2_Party_Unregister = 9190, - k_EMsgGCCStrike15_v2_Party_Search = 9191, - k_EMsgGCCStrike15_v2_Party_Invite = 9192, - k_EMsgGCCStrike15_v2_Account_RequestCoPlays = 9193, - k_EMsgGCCStrike15_v2_ClientGCRankUpdate = 9194, - k_EMsgGCCStrike15_v2_ClientRequestOffers = 9195, - k_EMsgGCCStrike15_v2_ClientAccountBalance = 9196, - k_EMsgGCCStrike15_v2_ClientPartyJoinRelay = 9197, - k_EMsgGCCStrike15_v2_ClientPartyWarning = 9198, - k_EMsgGCCStrike15_v2_SetEventFavorite = 9200, - k_EMsgGCCStrike15_v2_GetEventFavorites_Request = 9201, - k_EMsgGCCStrike15_v2_ClientPerfReport = 9202, - k_EMsgGCCStrike15_v2_GetEventFavorites_Response = 9203, - k_EMsgGCCStrike15_v2_ClientRequestSouvenir = 9204, - k_EMsgGCCStrike15_v2_ClientReportValidation = 9205, - k_EMsgGCCStrike15_v2_GC2ClientRefuseSecureMode = 9206, - k_EMsgGCCStrike15_v2_GC2ClientRequestValidation = 9207, - k_EMsgGCCStrike15_v2_ClientRedeemMissionReward = 9209, - k_EMsgGCCStrike15_ClientDeepStats = 9210, - k_EMsgGCCStrike15_StartAgreementSessionInGame = 9211, - k_EMsgGCCStrike15_v2_GC2ClientInitSystem = 9212, - k_EMsgGCCStrike15_v2_GC2ClientInitSystem_Response = 9213, - k_EMsgGCCStrike15_v2_PrivateQueues = 9214, - k_EMsgGCCStrike15_v2_MatchListTournamentOperatorMgmt = 9215, - k_EMsgGCCStrike15_v2_BetaEnrollment = 9217, - k_EMsgGCCStrike15_v2_SetPlayerLeaderboardSafeName = 9218, - k_EMsgGCCStrike15_v2_ClientRedeemFreeReward = 9219, - k_EMsgGCCStrike15_v2_ClientNetworkConfig = 9220, - k_EMsgGCCStrike15_v2_GC2ClientNotifyXPShop = 9221, - k_EMsgGCCStrike15_v2_Client2GcAckXPShopTracks = 9222, - k_EMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStats = 9223, - k_EMsgGCCStrike15_v2_PremierSeasonSummary = 9224, - k_EMsgGCCStrike15_v2_RequestRecurringMissionSchedule = 9225, - k_EMsgGCCStrike15_v2_RecurringMissionSchema = 9226, - k_EMsgGCCStrike15_v2_VolatileItemClaimReward = 9227, + k_EMsgGCCStrike15_v2_Base = 9100, + k_EMsgGCCStrike15_v2_MatchmakingStart = 9101, + k_EMsgGCCStrike15_v2_MatchmakingStop = 9102, + k_EMsgGCCStrike15_v2_MatchmakingClient2ServerPing = 9103, + k_EMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate = 9104, + k_EMsgGCCStrike15_v2_MatchmakingServerReservationResponse = 9106, + k_EMsgGCCStrike15_v2_MatchmakingGC2ClientReserve = 9107, + k_EMsgGCCStrike15_v2_MatchmakingClient2GCHello = 9109, + k_EMsgGCCStrike15_v2_MatchmakingGC2ClientHello = 9110, + k_EMsgGCCStrike15_v2_MatchmakingGC2ClientAbandon = 9112, + k_EMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdate = 9117, + k_EMsgGCCStrike15_v2_ServerNotificationForUserPenalty = 9118, + k_EMsgGCCStrike15_v2_ClientReportPlayer = 9119, + k_EMsgGCCStrike15_v2_ClientReportServer = 9120, + k_EMsgGCCStrike15_v2_ClientCommendPlayer = 9121, + k_EMsgGCCStrike15_v2_ClientReportResponse = 9122, + k_EMsgGCCStrike15_v2_ClientCommendPlayerQuery = 9123, + k_EMsgGCCStrike15_v2_ClientCommendPlayerQueryResponse = 9124, + k_EMsgGCCStrike15_v2_WatchInfoUsers = 9126, + k_EMsgGCCStrike15_v2_ClientRequestPlayersProfile = 9127, + k_EMsgGCCStrike15_v2_PlayersProfile = 9128, + k_EMsgGCCStrike15_v2_PlayerOverwatchCaseUpdate = 9131, + k_EMsgGCCStrike15_v2_PlayerOverwatchCaseAssignment = 9132, + k_EMsgGCCStrike15_v2_PlayerOverwatchCaseStatus = 9133, + k_EMsgGCCStrike15_v2_GC2ClientTextMsg = 9134, + k_EMsgGCCStrike15_v2_Client2GCTextMsg = 9135, + k_EMsgGCCStrike15_v2_MatchEndRunRewardDrops = 9136, + k_EMsgGCCStrike15_v2_MatchEndRewardDropsNotification = 9137, + k_EMsgGCCStrike15_v2_ClientRequestWatchInfoFriends2 = 9138, + k_EMsgGCCStrike15_v2_MatchList = 9139, + k_EMsgGCCStrike15_v2_MatchListRequestCurrentLiveGames = 9140, + k_EMsgGCCStrike15_v2_MatchListRequestRecentUserGames = 9141, + k_EMsgGCCStrike15_v2_GC2ServerReservationUpdate = 9142, + k_EMsgGCCStrike15_v2_ClientVarValueNotificationInfo = 9144, + k_EMsgGCCStrike15_v2_MatchListRequestTournamentGames = 9146, + k_EMsgGCCStrike15_v2_MatchListRequestFullGameInfo = 9147, + k_EMsgGCCStrike15_v2_GiftsLeaderboardRequest = 9148, + k_EMsgGCCStrike15_v2_GiftsLeaderboardResponse = 9149, + k_EMsgGCCStrike15_v2_ServerVarValueNotificationInfo = 9150, + k_EMsgGCCStrike15_v2_ClientSubmitSurveyVote = 9152, + k_EMsgGCCStrike15_v2_Server2GCClientValidate = 9153, + k_EMsgGCCStrike15_v2_MatchListRequestLiveGameForUser = 9154, + k_EMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequest = 9156, + k_EMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponse = 9157, + k_EMsgGCCStrike15_v2_AccountPrivacySettings = 9158, + k_EMsgGCCStrike15_v2_SetMyActivityInfo = 9159, + k_EMsgGCCStrike15_v2_MatchListRequestTournamentPredictions = 9160, + k_EMsgGCCStrike15_v2_MatchListUploadTournamentPredictions = 9161, + k_EMsgGCCStrike15_v2_DraftSummary = 9162, + k_EMsgGCCStrike15_v2_ClientRequestJoinFriendData = 9163, + k_EMsgGCCStrike15_v2_ClientRequestJoinServerData = 9164, + k_EMsgGCCStrike15_v2_GC2ClientTournamentInfo = 9167, + k_EMsgGC_GlobalGame_Subscribe = 9168, + k_EMsgGC_GlobalGame_Unsubscribe = 9169, + k_EMsgGC_GlobalGame_Play = 9170, + k_EMsgGCCStrike15_v2_AcknowledgePenalty = 9171, + k_EMsgGCCStrike15_v2_Client2GCRequestPrestigeCoin = 9172, + k_EMsgGCCStrike15_v2_GC2ClientGlobalStats = 9173, + k_EMsgGCCStrike15_v2_Client2GCStreamUnlock = 9174, + k_EMsgGCCStrike15_v2_FantasyRequestClientData = 9175, + k_EMsgGCCStrike15_v2_FantasyUpdateClientData = 9176, + k_EMsgGCCStrike15_v2_GCToClientSteamdatagramTicket = 9177, + k_EMsgGCCStrike15_v2_ClientToGCRequestTicket = 9178, + k_EMsgGCCStrike15_v2_ClientToGCRequestElevate = 9179, + k_EMsgGCCStrike15_v2_GlobalChat = 9180, + k_EMsgGCCStrike15_v2_GlobalChat_Subscribe = 9181, + k_EMsgGCCStrike15_v2_GlobalChat_Unsubscribe = 9182, + k_EMsgGCCStrike15_v2_ClientAuthKeyCode = 9183, + k_EMsgGCCStrike15_v2_GotvSyncPacket = 9184, + k_EMsgGCCStrike15_v2_ClientPlayerDecalSign = 9185, + k_EMsgGCCStrike15_v2_ClientLogonFatalError = 9187, + k_EMsgGCCStrike15_v2_ClientPollState = 9188, + k_EMsgGCCStrike15_v2_Party_Register = 9189, + k_EMsgGCCStrike15_v2_Party_Unregister = 9190, + k_EMsgGCCStrike15_v2_Party_Search = 9191, + k_EMsgGCCStrike15_v2_Party_Invite = 9192, + k_EMsgGCCStrike15_v2_Account_RequestCoPlays = 9193, + k_EMsgGCCStrike15_v2_ClientGCRankUpdate = 9194, + k_EMsgGCCStrike15_v2_ClientRequestOffers = 9195, + k_EMsgGCCStrike15_v2_ClientAccountBalance = 9196, + k_EMsgGCCStrike15_v2_ClientPartyJoinRelay = 9197, + k_EMsgGCCStrike15_v2_ClientPartyWarning = 9198, + k_EMsgGCCStrike15_v2_SetEventFavorite = 9200, + k_EMsgGCCStrike15_v2_GetEventFavorites_Request = 9201, + k_EMsgGCCStrike15_v2_ClientPerfReport = 9202, + k_EMsgGCCStrike15_v2_GetEventFavorites_Response = 9203, + k_EMsgGCCStrike15_v2_ClientRequestSouvenir = 9204, + k_EMsgGCCStrike15_v2_ClientReportValidation = 9205, + k_EMsgGCCStrike15_v2_GC2ClientRefuseSecureMode = 9206, + k_EMsgGCCStrike15_v2_GC2ClientRequestValidation = 9207, + k_EMsgGCCStrike15_v2_ClientRedeemMissionReward = 9209, + k_EMsgGCCStrike15_ClientDeepStats = 9210, + k_EMsgGCCStrike15_StartAgreementSessionInGame = 9211, + k_EMsgGCCStrike15_v2_GC2ClientInitSystem = 9212, + k_EMsgGCCStrike15_v2_GC2ClientInitSystem_Response = 9213, + k_EMsgGCCStrike15_v2_PrivateQueues = 9214, + k_EMsgGCCStrike15_v2_MatchListTournamentOperatorMgmt = 9215, + k_EMsgGCCStrike15_v2_BetaEnrollment = 9217, + k_EMsgGCCStrike15_v2_SetPlayerLeaderboardSafeName = 9218, + k_EMsgGCCStrike15_v2_ClientRedeemFreeReward = 9219, + k_EMsgGCCStrike15_v2_ClientNetworkConfig = 9220, + k_EMsgGCCStrike15_v2_GC2ClientNotifyXPShop = 9221, + k_EMsgGCCStrike15_v2_Client2GcAckXPShopTracks = 9222, + k_EMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStats = 9223, + k_EMsgGCCStrike15_v2_PremierSeasonSummary = 9224, + k_EMsgGCCStrike15_v2_RequestRecurringMissionSchedule = 9225, + k_EMsgGCCStrike15_v2_RecurringMissionSchema = 9226, + k_EMsgGCCStrike15_v2_VolatileItemClaimReward = 9227, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECsgoGameEvents.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECsgoGameEvents.cs index 4c59195fb..4e10469f7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECsgoGameEvents.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECsgoGameEvents.cs @@ -3,8 +3,8 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ECsgoGameEvents { - GE_PlayerAnimEventId = 450, - GE_RadioIconEventId = 451, - GE_FireBulletsId = 452, - GE_PlayerBulletHitId = 453, + GE_PlayerAnimEventId = 450, + GE_RadioIconEventId = 451, + GE_FireBulletsId = 452, + GE_PlayerBulletHitId = 453, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECsgoSteamUserStat.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECsgoSteamUserStat.cs index 2f84878b3..69e1dcc60 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECsgoSteamUserStat.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECsgoSteamUserStat.cs @@ -3,7 +3,7 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ECsgoSteamUserStat { - k_ECsgoSteamUserStat_XpEarnedGames = 1, - k_ECsgoSteamUserStat_MatchWinsCompetitive = 2, - k_ECsgoSteamUserStat_SurvivedDangerZone = 3, + k_ECsgoSteamUserStat_XpEarnedGames = 1, + k_ECsgoSteamUserStat_MatchWinsCompetitive = 2, + k_ECsgoSteamUserStat_SurvivedDangerZone = 3, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECstrike15UserMessages.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECstrike15UserMessages.cs index 38f3224e2..51132d79c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECstrike15UserMessages.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ECstrike15UserMessages.cs @@ -3,81 +3,81 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ECstrike15UserMessages { - CS_UM_VGUIMenu = 301, - CS_UM_Geiger = 302, - CS_UM_Train = 303, - CS_UM_HudText = 304, - CS_UM_SayText = 305, - CS_UM_SayText2 = 306, - CS_UM_TextMsg = 307, - CS_UM_HudMsg = 308, - CS_UM_ResetHud = 309, - CS_UM_GameTitle = 310, - CS_UM_Shake = 312, - CS_UM_Fade = 313, - CS_UM_Rumble = 314, - CS_UM_CloseCaption = 315, - CS_UM_CloseCaptionDirect = 316, - CS_UM_SendAudio = 317, - CS_UM_RawAudio = 318, - CS_UM_VoiceMask = 319, - CS_UM_RequestState = 320, - CS_UM_Damage = 321, - CS_UM_RadioText = 322, - CS_UM_HintText = 323, - CS_UM_KeyHintText = 324, - CS_UM_ProcessSpottedEntityUpdate = 325, - CS_UM_ReloadEffect = 326, - CS_UM_AdjustMoney = 327, - CS_UM_UpdateTeamMoney = 328, - CS_UM_StopSpectatorMode = 329, - CS_UM_KillCam = 330, - CS_UM_DesiredTimescale = 331, - CS_UM_CurrentTimescale = 332, - CS_UM_AchievementEvent = 333, - CS_UM_MatchEndConditions = 334, - CS_UM_DisconnectToLobby = 335, - CS_UM_PlayerStatsUpdate = 336, - CS_UM_ClientInfo = 339, - CS_UM_XRankGet = 340, - CS_UM_XRankUpd = 341, - CS_UM_CallVoteFailed = 345, - CS_UM_VoteStart = 346, - CS_UM_VotePass = 347, - CS_UM_VoteFailed = 348, - CS_UM_VoteSetup = 349, - CS_UM_ServerRankRevealAll = 350, - CS_UM_SendLastKillerDamageToClient = 351, - CS_UM_ServerRankUpdate = 352, - CS_UM_ItemPickup = 353, - CS_UM_ShowMenu = 354, - CS_UM_BarTime = 355, - CS_UM_AmmoDenied = 356, - CS_UM_MarkAchievement = 357, - CS_UM_MatchStatsUpdate = 358, - CS_UM_ItemDrop = 359, - CS_UM_SendPlayerItemDrops = 361, - CS_UM_RoundBackupFilenames = 362, - CS_UM_SendPlayerItemFound = 363, - CS_UM_ReportHit = 364, - CS_UM_XpUpdate = 365, - CS_UM_QuestProgress = 366, - CS_UM_ScoreLeaderboardData = 367, - CS_UM_PlayerDecalDigitalSignature = 368, - CS_UM_WeaponSound = 369, - CS_UM_UpdateScreenHealthBar = 370, - CS_UM_EntityOutlineHighlight = 371, - CS_UM_SSUI = 372, - CS_UM_SurvivalStats = 373, - CS_UM_DisconnectToLobby2 = 374, - CS_UM_EndOfMatchAllPlayersData = 375, - CS_UM_PostRoundDamageReport = 376, - CS_UM_RoundEndReportData = 379, - CS_UM_CurrentRoundOdds = 380, - CS_UM_DeepStats = 381, - CS_UM_ShootInfo = 383, - CS_UM_CounterStrafe = 385, - CS_UM_DamagePrediction = 386, - CS_UM_RecurringMissionSchema = 387, - CS_UM_SendPlayerLoadout = 388, + CS_UM_VGUIMenu = 301, + CS_UM_Geiger = 302, + CS_UM_Train = 303, + CS_UM_HudText = 304, + CS_UM_SayText = 305, + CS_UM_SayText2 = 306, + CS_UM_TextMsg = 307, + CS_UM_HudMsg = 308, + CS_UM_ResetHud = 309, + CS_UM_GameTitle = 310, + CS_UM_Shake = 312, + CS_UM_Fade = 313, + CS_UM_Rumble = 314, + CS_UM_CloseCaption = 315, + CS_UM_CloseCaptionDirect = 316, + CS_UM_SendAudio = 317, + CS_UM_RawAudio = 318, + CS_UM_VoiceMask = 319, + CS_UM_RequestState = 320, + CS_UM_Damage = 321, + CS_UM_RadioText = 322, + CS_UM_HintText = 323, + CS_UM_KeyHintText = 324, + CS_UM_ProcessSpottedEntityUpdate = 325, + CS_UM_ReloadEffect = 326, + CS_UM_AdjustMoney = 327, + CS_UM_UpdateTeamMoney = 328, + CS_UM_StopSpectatorMode = 329, + CS_UM_KillCam = 330, + CS_UM_DesiredTimescale = 331, + CS_UM_CurrentTimescale = 332, + CS_UM_AchievementEvent = 333, + CS_UM_MatchEndConditions = 334, + CS_UM_DisconnectToLobby = 335, + CS_UM_PlayerStatsUpdate = 336, + CS_UM_ClientInfo = 339, + CS_UM_XRankGet = 340, + CS_UM_XRankUpd = 341, + CS_UM_CallVoteFailed = 345, + CS_UM_VoteStart = 346, + CS_UM_VotePass = 347, + CS_UM_VoteFailed = 348, + CS_UM_VoteSetup = 349, + CS_UM_ServerRankRevealAll = 350, + CS_UM_SendLastKillerDamageToClient = 351, + CS_UM_ServerRankUpdate = 352, + CS_UM_ItemPickup = 353, + CS_UM_ShowMenu = 354, + CS_UM_BarTime = 355, + CS_UM_AmmoDenied = 356, + CS_UM_MarkAchievement = 357, + CS_UM_MatchStatsUpdate = 358, + CS_UM_ItemDrop = 359, + CS_UM_SendPlayerItemDrops = 361, + CS_UM_RoundBackupFilenames = 362, + CS_UM_SendPlayerItemFound = 363, + CS_UM_ReportHit = 364, + CS_UM_XpUpdate = 365, + CS_UM_QuestProgress = 366, + CS_UM_ScoreLeaderboardData = 367, + CS_UM_PlayerDecalDigitalSignature = 368, + CS_UM_WeaponSound = 369, + CS_UM_UpdateScreenHealthBar = 370, + CS_UM_EntityOutlineHighlight = 371, + CS_UM_SSUI = 372, + CS_UM_SurvivalStats = 373, + CS_UM_DisconnectToLobby2 = 374, + CS_UM_EndOfMatchAllPlayersData = 375, + CS_UM_PostRoundDamageReport = 376, + CS_UM_RoundEndReportData = 379, + CS_UM_CurrentRoundOdds = 380, + CS_UM_DeepStats = 381, + CS_UM_ShootInfo = 383, + CS_UM_CounterStrafe = 385, + CS_UM_DamagePrediction = 386, + CS_UM_RecurringMissionSchema = 387, + CS_UM_SendPlayerLoadout = 388, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EDemoCommands.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EDemoCommands.cs index d18af444e..e0ba6ac8a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EDemoCommands.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EDemoCommands.cs @@ -3,26 +3,26 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EDemoCommands { - DEM_Error = -1, - DEM_Stop = 0, - DEM_FileHeader = 1, - DEM_FileInfo = 2, - DEM_SyncTick = 3, - DEM_SendTables = 4, - DEM_ClassInfo = 5, - DEM_StringTables = 6, - DEM_Packet = 7, - DEM_SignonPacket = 8, - DEM_ConsoleCmd = 9, - DEM_CustomData = 10, - DEM_CustomDataCallbacks = 11, - DEM_UserCmd = 12, - DEM_FullPacket = 13, - DEM_SaveGame = 14, - DEM_SpawnGroups = 15, - DEM_AnimationData = 16, - DEM_AnimationHeader = 17, - DEM_Recovery = 18, - DEM_Max = 19, - DEM_IsCompressed = 64, + DEM_Error = -1, + DEM_Stop = 0, + DEM_FileHeader = 1, + DEM_FileInfo = 2, + DEM_SyncTick = 3, + DEM_SendTables = 4, + DEM_ClassInfo = 5, + DEM_StringTables = 6, + DEM_Packet = 7, + DEM_SignonPacket = 8, + DEM_ConsoleCmd = 9, + DEM_CustomData = 10, + DEM_CustomDataCallbacks = 11, + DEM_UserCmd = 12, + DEM_FullPacket = 13, + DEM_SaveGame = 14, + DEM_SpawnGroups = 15, + DEM_AnimationData = 16, + DEM_AnimationHeader = 17, + DEM_Recovery = 18, + DEM_Max = 19, + DEM_IsCompressed = 64, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCBaseClientMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCBaseClientMsg.cs index ddd760986..47412cc76 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCBaseClientMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCBaseClientMsg.cs @@ -3,15 +3,15 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EGCBaseClientMsg { - k_EMsgGCClientWelcome = 4004, - k_EMsgGCServerWelcome = 4005, - k_EMsgGCClientHello = 4006, - k_EMsgGCServerHello = 4007, - k_EMsgGCClientConnectionStatus = 4009, - k_EMsgGCServerConnectionStatus = 4010, - k_EMsgGCClientHelloPartner = 4011, - k_EMsgGCClientHelloPW = 4012, - k_EMsgGCClientHelloR2 = 4013, - k_EMsgGCClientHelloR3 = 4014, - k_EMsgGCClientHelloR4 = 4015, + k_EMsgGCClientWelcome = 4004, + k_EMsgGCServerWelcome = 4005, + k_EMsgGCClientHello = 4006, + k_EMsgGCServerHello = 4007, + k_EMsgGCClientConnectionStatus = 4009, + k_EMsgGCServerConnectionStatus = 4010, + k_EMsgGCClientHelloPartner = 4011, + k_EMsgGCClientHelloPW = 4012, + k_EMsgGCClientHelloR2 = 4013, + k_EMsgGCClientHelloR3 = 4014, + k_EMsgGCClientHelloR4 = 4015, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCBaseMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCBaseMsg.cs index ab431164a..7e6a9d7b8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCBaseMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCBaseMsg.cs @@ -3,19 +3,19 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EGCBaseMsg { - k_EMsgGCSystemMessage = 4001, - k_EMsgGCReplicateConVars = 4002, - k_EMsgGCConVarUpdated = 4003, - k_EMsgGCInQueue = 4008, - k_EMsgGCInviteToParty = 4501, - k_EMsgGCInvitationCreated = 4502, - k_EMsgGCPartyInviteResponse = 4503, - k_EMsgGCKickFromParty = 4504, - k_EMsgGCLeaveParty = 4505, - k_EMsgGCServerAvailable = 4506, - k_EMsgGCClientConnectToServer = 4507, - k_EMsgGCGameServerInfo = 4508, - k_EMsgGCError = 4509, - k_EMsgGCReplay_UploadedToYouTube = 4510, - k_EMsgGCLANServerAvailable = 4511, + k_EMsgGCSystemMessage = 4001, + k_EMsgGCReplicateConVars = 4002, + k_EMsgGCConVarUpdated = 4003, + k_EMsgGCInQueue = 4008, + k_EMsgGCInviteToParty = 4501, + k_EMsgGCInvitationCreated = 4502, + k_EMsgGCPartyInviteResponse = 4503, + k_EMsgGCKickFromParty = 4504, + k_EMsgGCLeaveParty = 4505, + k_EMsgGCServerAvailable = 4506, + k_EMsgGCClientConnectToServer = 4507, + k_EMsgGCGameServerInfo = 4508, + k_EMsgGCError = 4509, + k_EMsgGCReplay_UploadedToYouTube = 4510, + k_EMsgGCLANServerAvailable = 4511, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCBaseProtoObjectTypes.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCBaseProtoObjectTypes.cs index 5b1d0bb5a..fd6939f99 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCBaseProtoObjectTypes.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCBaseProtoObjectTypes.cs @@ -3,6 +3,6 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EGCBaseProtoObjectTypes { - k_EProtoObjectPartyInvite = 1001, - k_EProtoObjectLobbyInvite = 1002, + k_EProtoObjectPartyInvite = 1001, + k_EProtoObjectLobbyInvite = 1002, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCItemCustomizationNotification.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCItemCustomizationNotification.cs index 4a571698f..c5eef12de 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCItemCustomizationNotification.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCItemCustomizationNotification.cs @@ -3,32 +3,32 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EGCItemCustomizationNotification { - k_EGCItemCustomizationNotification_NameItem = 1006, - k_EGCItemCustomizationNotification_UnlockCrate = 1007, - k_EGCItemCustomizationNotification_XRayItemReveal = 1008, - k_EGCItemCustomizationNotification_XRayItemClaim = 1009, - k_EGCItemCustomizationNotification_CasketTooFull = 1011, - k_EGCItemCustomizationNotification_CasketContents = 1012, - k_EGCItemCustomizationNotification_CasketAdded = 1013, - k_EGCItemCustomizationNotification_CasketRemoved = 1014, - k_EGCItemCustomizationNotification_CasketInvFull = 1015, - k_EGCItemCustomizationNotification_NameBaseItem = 1019, - k_EGCItemCustomizationNotification_RemoveItemName = 1030, - k_EGCItemCustomizationNotification_RemoveSticker = 1053, - k_EGCItemCustomizationNotification_ExtractSticker = 1054, - k_EGCItemCustomizationNotification_EncapsulateSticker = 1055, - k_EGCItemCustomizationNotification_ApplySticker = 1086, - k_EGCItemCustomizationNotification_StatTrakSwap = 1088, - k_EGCItemCustomizationNotification_RemovePatch = 1089, - k_EGCItemCustomizationNotification_ApplyPatch = 1090, - k_EGCItemCustomizationNotification_ApplyKeychain = 1091, - k_EGCItemCustomizationNotification_RemoveKeychain = 1092, - k_EGCItemCustomizationNotification_ActivateFanToken = 9178, - k_EGCItemCustomizationNotification_ActivateOperationCoin = 9179, - k_EGCItemCustomizationNotification_GraffitiUnseal = 9185, - k_EGCItemCustomizationNotification_GenerateSouvenir = 9204, - k_EGCItemCustomizationNotification_ClientRedeemMissionReward = 9209, - k_EGCItemCustomizationNotification_ClientRedeemFreeReward = 9219, - k_EGCItemCustomizationNotification_XpShopUseTicket = 9221, - k_EGCItemCustomizationNotification_XpShopAckTracks = 9222, + k_EGCItemCustomizationNotification_NameItem = 1006, + k_EGCItemCustomizationNotification_UnlockCrate = 1007, + k_EGCItemCustomizationNotification_XRayItemReveal = 1008, + k_EGCItemCustomizationNotification_XRayItemClaim = 1009, + k_EGCItemCustomizationNotification_CasketTooFull = 1011, + k_EGCItemCustomizationNotification_CasketContents = 1012, + k_EGCItemCustomizationNotification_CasketAdded = 1013, + k_EGCItemCustomizationNotification_CasketRemoved = 1014, + k_EGCItemCustomizationNotification_CasketInvFull = 1015, + k_EGCItemCustomizationNotification_NameBaseItem = 1019, + k_EGCItemCustomizationNotification_RemoveItemName = 1030, + k_EGCItemCustomizationNotification_RemoveSticker = 1053, + k_EGCItemCustomizationNotification_ExtractSticker = 1054, + k_EGCItemCustomizationNotification_EncapsulateSticker = 1055, + k_EGCItemCustomizationNotification_ApplySticker = 1086, + k_EGCItemCustomizationNotification_StatTrakSwap = 1088, + k_EGCItemCustomizationNotification_RemovePatch = 1089, + k_EGCItemCustomizationNotification_ApplyPatch = 1090, + k_EGCItemCustomizationNotification_ApplyKeychain = 1091, + k_EGCItemCustomizationNotification_RemoveKeychain = 1092, + k_EGCItemCustomizationNotification_ActivateFanToken = 9178, + k_EGCItemCustomizationNotification_ActivateOperationCoin = 9179, + k_EGCItemCustomizationNotification_GraffitiUnseal = 9185, + k_EGCItemCustomizationNotification_GenerateSouvenir = 9204, + k_EGCItemCustomizationNotification_ClientRedeemMissionReward = 9209, + k_EGCItemCustomizationNotification_ClientRedeemFreeReward = 9219, + k_EGCItemCustomizationNotification_XpShopUseTicket = 9221, + k_EGCItemCustomizationNotification_XpShopAckTracks = 9222, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCItemMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCItemMsg.cs index 9b2c2b480..d2ac1f657 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCItemMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCItemMsg.cs @@ -3,151 +3,151 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EGCItemMsg { - k_EMsgGCBase = 1000, - k_EMsgGCSetItemPosition = 1001, - k_EMsgGCCraft = 1002, - k_EMsgGCCraftResponse = 1003, - k_EMsgGCDelete = 1004, - k_EMsgGCVerifyCacheSubscription = 1005, - k_EMsgGCNameItem = 1006, - k_EMsgGCUnlockCrate_DEPRECATED = 1007, - k_EMsgGCUnlockCrateResponse = 1008, - k_EMsgGCPaintItem = 1009, - k_EMsgGCPaintItemResponse = 1010, - k_EMsgGCGoldenWrenchBroadcast = 1011, - k_EMsgGCMOTDRequest = 1012, - k_EMsgGCMOTDRequestResponse = 1013, - k_EMsgGCAddItemToSocket_DEPRECATED = 1014, - k_EMsgGCAddItemToSocketResponse_DEPRECATED = 1015, - k_EMsgGCAddSocketToBaseItem_DEPRECATED = 1016, - k_EMsgGCAddSocketToItem_DEPRECATED = 1017, - k_EMsgGCAddSocketToItemResponse_DEPRECATED = 1018, - k_EMsgGCNameBaseItem = 1019, - k_EMsgGCNameBaseItemResponse = 1020, - k_EMsgGCRemoveSocketItem_DEPRECATED = 1021, - k_EMsgGCRemoveSocketItemResponse_DEPRECATED = 1022, - k_EMsgGCCustomizeItemTexture = 1023, - k_EMsgGCCustomizeItemTextureResponse = 1024, - k_EMsgGCUseItemRequest = 1025, - k_EMsgGCUseItemResponse = 1026, - k_EMsgGCGiftedItems_DEPRECATED = 1027, - k_EMsgGCRemoveItemName = 1030, - k_EMsgGCRemoveItemPaint = 1031, - k_EMsgGCGiftWrapItem = 1032, - k_EMsgGCGiftWrapItemResponse = 1033, - k_EMsgGCDeliverGift = 1034, - k_EMsgGCDeliverGiftResponseGiver = 1035, - k_EMsgGCDeliverGiftResponseReceiver = 1036, - k_EMsgGCUnwrapGiftRequest = 1037, - k_EMsgGCUnwrapGiftResponse = 1038, - k_EMsgGCSetItemStyle = 1039, - k_EMsgGCUsedClaimCodeItem = 1040, - k_EMsgGCSortItems = 1041, - k_EMsgGC_RevolvingLootList_DEPRECATED = 1042, - k_EMsgGCLookupAccount = 1043, - k_EMsgGCLookupAccountResponse = 1044, - k_EMsgGCLookupAccountName = 1045, - k_EMsgGCLookupAccountNameResponse = 1046, - k_EMsgGCUpdateItemSchema = 1049, - k_EMsgGCRemoveCustomTexture = 1051, - k_EMsgGCRemoveCustomTextureResponse = 1052, - k_EMsgGCRemoveMakersMark = 1053, - k_EMsgGCRemoveMakersMarkResponse = 1054, - k_EMsgGCRemoveUniqueCraftIndex = 1055, - k_EMsgGCRemoveUniqueCraftIndexResponse = 1056, - k_EMsgGCSaxxyBroadcast = 1057, - k_EMsgGCBackpackSortFinished = 1058, - k_EMsgGCCollectItem = 1061, - k_EMsgGCItemAcknowledged__DEPRECATED = 1062, - k_EMsgGC_ReportAbuse = 1065, - k_EMsgGC_ReportAbuseResponse = 1066, - k_EMsgGCNameItemNotification = 1068, - k_EMsgGCApplyConsumableEffects = 1069, - k_EMsgGCConsumableExhausted = 1070, - k_EMsgGCShowItemsPickedUp = 1071, - k_EMsgGCClientDisplayNotification = 1072, - k_EMsgGCApplyStrangePart = 1073, - k_EMsgGC_IncrementKillCountAttribute = 1074, - k_EMsgGC_IncrementKillCountResponse = 1075, - k_EMsgGCApplyPennantUpgrade = 1076, - k_EMsgGCSetItemPositions = 1077, - k_EMsgGCApplyEggEssence = 1078, - k_EMsgGCNameEggEssenceResponse = 1079, - k_EMsgGCPaintKitItem = 1080, - k_EMsgGCPaintKitBaseItem = 1081, - k_EMsgGCPaintKitItemResponse = 1082, - k_EMsgGCGiftedItems = 1083, - k_EMsgGCUnlockItemStyle = 1084, - k_EMsgGCUnlockItemStyleResponse = 1085, - k_EMsgGCApplySticker = 1086, - k_EMsgGCItemAcknowledged = 1087, - k_EMsgGCStatTrakSwap = 1088, - k_EMsgGCUserTrackTimePlayedConsecutively = 1089, - k_EMsgGCItemCustomizationNotification = 1090, - k_EMsgGCModifyItemAttribute = 1091, - k_EMsgGCCasketItemAdd = 1092, - k_EMsgGCCasketItemExtract = 1093, - k_EMsgGCCasketItemLoadContents = 1094, - k_EMsgGCTradingBase = 1500, - k_EMsgGCTrading_InitiateTradeRequest = 1501, - k_EMsgGCTrading_InitiateTradeResponse = 1502, - k_EMsgGCTrading_StartSession = 1503, - k_EMsgGCTrading_SetItem = 1504, - k_EMsgGCTrading_RemoveItem = 1505, - k_EMsgGCTrading_UpdateTradeInfo = 1506, - k_EMsgGCTrading_SetReadiness = 1507, - k_EMsgGCTrading_ReadinessResponse = 1508, - k_EMsgGCTrading_SessionClosed = 1509, - k_EMsgGCTrading_CancelSession = 1510, - k_EMsgGCTrading_TradeChatMsg = 1511, - k_EMsgGCTrading_ConfirmOffer = 1512, - k_EMsgGCTrading_TradeTypingChatMsg = 1513, - k_EMsgGCServerBrowser_FavoriteServer = 1601, - k_EMsgGCServerBrowser_BlacklistServer = 1602, - k_EMsgGCServerRentalsBase = 1700, - k_EMsgGCItemPreviewCheckStatus = 1701, - k_EMsgGCItemPreviewStatusResponse = 1702, - k_EMsgGCItemPreviewRequest = 1703, - k_EMsgGCItemPreviewRequestResponse = 1704, - k_EMsgGCItemPreviewExpire = 1705, - k_EMsgGCItemPreviewExpireNotification = 1706, - k_EMsgGCItemPreviewItemBoughtNotification = 1707, - k_EMsgGCDev_NewItemRequest = 2001, - k_EMsgGCDev_NewItemRequestResponse = 2002, - k_EMsgGCDev_PaintKitDropItem = 2003, - k_EMsgGCDev_SchemaReservationRequest = 2004, - k_EMsgGCStoreGetUserData = 2500, - k_EMsgGCStoreGetUserDataResponse = 2501, - k_EMsgGCStorePurchaseInit_DEPRECATED = 2502, - k_EMsgGCStorePurchaseInitResponse_DEPRECATED = 2503, - k_EMsgGCStorePurchaseFinalize = 2504, - k_EMsgGCStorePurchaseFinalizeResponse = 2505, - k_EMsgGCStorePurchaseCancel = 2506, - k_EMsgGCStorePurchaseCancelResponse = 2507, - k_EMsgGCStorePurchaseQueryTxn = 2508, - k_EMsgGCStorePurchaseQueryTxnResponse = 2509, - k_EMsgGCStorePurchaseInit = 2510, - k_EMsgGCStorePurchaseInitResponse = 2511, - k_EMsgGCBannedWordListRequest = 2512, - k_EMsgGCBannedWordListResponse = 2513, - k_EMsgGCToGCBannedWordListBroadcast = 2514, - k_EMsgGCToGCBannedWordListUpdated = 2515, - k_EMsgGCToGCDirtySDOCache = 2516, - k_EMsgGCToGCDirtyMultipleSDOCache = 2517, - k_EMsgGCToGCUpdateSQLKeyValue = 2518, - k_EMsgGCToGCIsTrustedServer = 2519, - k_EMsgGCToGCIsTrustedServerResponse = 2520, - k_EMsgGCToGCBroadcastConsoleCommand = 2521, - k_EMsgGCServerVersionUpdated = 2522, - k_EMsgGCToGCWebAPIAccountChanged = 2524, - k_EMsgGCRequestAnnouncements = 2525, - k_EMsgGCRequestAnnouncementsResponse = 2526, - k_EMsgGCRequestPassportItemGrant = 2527, - k_EMsgGCClientVersionUpdated = 2528, - k_EMsgGCRecurringSubscriptionStatus = 2530, - k_EMsgGCAdjustEquipSlotsManual = 2531, - k_EMsgGCAdjustEquipSlotsShuffle = 2532, - k_EMsgGCOpenCrate = 2534, - k_EMsgGCAcknowledgeRentalExpiration = 2535, - k_EMsgGCVolatileItemLoadContents = 2536, + k_EMsgGCBase = 1000, + k_EMsgGCSetItemPosition = 1001, + k_EMsgGCCraft = 1002, + k_EMsgGCCraftResponse = 1003, + k_EMsgGCDelete = 1004, + k_EMsgGCVerifyCacheSubscription = 1005, + k_EMsgGCNameItem = 1006, + k_EMsgGCUnlockCrate_DEPRECATED = 1007, + k_EMsgGCUnlockCrateResponse = 1008, + k_EMsgGCPaintItem = 1009, + k_EMsgGCPaintItemResponse = 1010, + k_EMsgGCGoldenWrenchBroadcast = 1011, + k_EMsgGCMOTDRequest = 1012, + k_EMsgGCMOTDRequestResponse = 1013, + k_EMsgGCAddItemToSocket_DEPRECATED = 1014, + k_EMsgGCAddItemToSocketResponse_DEPRECATED = 1015, + k_EMsgGCAddSocketToBaseItem_DEPRECATED = 1016, + k_EMsgGCAddSocketToItem_DEPRECATED = 1017, + k_EMsgGCAddSocketToItemResponse_DEPRECATED = 1018, + k_EMsgGCNameBaseItem = 1019, + k_EMsgGCNameBaseItemResponse = 1020, + k_EMsgGCRemoveSocketItem_DEPRECATED = 1021, + k_EMsgGCRemoveSocketItemResponse_DEPRECATED = 1022, + k_EMsgGCCustomizeItemTexture = 1023, + k_EMsgGCCustomizeItemTextureResponse = 1024, + k_EMsgGCUseItemRequest = 1025, + k_EMsgGCUseItemResponse = 1026, + k_EMsgGCGiftedItems_DEPRECATED = 1027, + k_EMsgGCRemoveItemName = 1030, + k_EMsgGCRemoveItemPaint = 1031, + k_EMsgGCGiftWrapItem = 1032, + k_EMsgGCGiftWrapItemResponse = 1033, + k_EMsgGCDeliverGift = 1034, + k_EMsgGCDeliverGiftResponseGiver = 1035, + k_EMsgGCDeliverGiftResponseReceiver = 1036, + k_EMsgGCUnwrapGiftRequest = 1037, + k_EMsgGCUnwrapGiftResponse = 1038, + k_EMsgGCSetItemStyle = 1039, + k_EMsgGCUsedClaimCodeItem = 1040, + k_EMsgGCSortItems = 1041, + k_EMsgGC_RevolvingLootList_DEPRECATED = 1042, + k_EMsgGCLookupAccount = 1043, + k_EMsgGCLookupAccountResponse = 1044, + k_EMsgGCLookupAccountName = 1045, + k_EMsgGCLookupAccountNameResponse = 1046, + k_EMsgGCUpdateItemSchema = 1049, + k_EMsgGCRemoveCustomTexture = 1051, + k_EMsgGCRemoveCustomTextureResponse = 1052, + k_EMsgGCRemoveMakersMark = 1053, + k_EMsgGCRemoveMakersMarkResponse = 1054, + k_EMsgGCRemoveUniqueCraftIndex = 1055, + k_EMsgGCRemoveUniqueCraftIndexResponse = 1056, + k_EMsgGCSaxxyBroadcast = 1057, + k_EMsgGCBackpackSortFinished = 1058, + k_EMsgGCCollectItem = 1061, + k_EMsgGCItemAcknowledged__DEPRECATED = 1062, + k_EMsgGC_ReportAbuse = 1065, + k_EMsgGC_ReportAbuseResponse = 1066, + k_EMsgGCNameItemNotification = 1068, + k_EMsgGCApplyConsumableEffects = 1069, + k_EMsgGCConsumableExhausted = 1070, + k_EMsgGCShowItemsPickedUp = 1071, + k_EMsgGCClientDisplayNotification = 1072, + k_EMsgGCApplyStrangePart = 1073, + k_EMsgGC_IncrementKillCountAttribute = 1074, + k_EMsgGC_IncrementKillCountResponse = 1075, + k_EMsgGCApplyPennantUpgrade = 1076, + k_EMsgGCSetItemPositions = 1077, + k_EMsgGCApplyEggEssence = 1078, + k_EMsgGCNameEggEssenceResponse = 1079, + k_EMsgGCPaintKitItem = 1080, + k_EMsgGCPaintKitBaseItem = 1081, + k_EMsgGCPaintKitItemResponse = 1082, + k_EMsgGCGiftedItems = 1083, + k_EMsgGCUnlockItemStyle = 1084, + k_EMsgGCUnlockItemStyleResponse = 1085, + k_EMsgGCApplySticker = 1086, + k_EMsgGCItemAcknowledged = 1087, + k_EMsgGCStatTrakSwap = 1088, + k_EMsgGCUserTrackTimePlayedConsecutively = 1089, + k_EMsgGCItemCustomizationNotification = 1090, + k_EMsgGCModifyItemAttribute = 1091, + k_EMsgGCCasketItemAdd = 1092, + k_EMsgGCCasketItemExtract = 1093, + k_EMsgGCCasketItemLoadContents = 1094, + k_EMsgGCTradingBase = 1500, + k_EMsgGCTrading_InitiateTradeRequest = 1501, + k_EMsgGCTrading_InitiateTradeResponse = 1502, + k_EMsgGCTrading_StartSession = 1503, + k_EMsgGCTrading_SetItem = 1504, + k_EMsgGCTrading_RemoveItem = 1505, + k_EMsgGCTrading_UpdateTradeInfo = 1506, + k_EMsgGCTrading_SetReadiness = 1507, + k_EMsgGCTrading_ReadinessResponse = 1508, + k_EMsgGCTrading_SessionClosed = 1509, + k_EMsgGCTrading_CancelSession = 1510, + k_EMsgGCTrading_TradeChatMsg = 1511, + k_EMsgGCTrading_ConfirmOffer = 1512, + k_EMsgGCTrading_TradeTypingChatMsg = 1513, + k_EMsgGCServerBrowser_FavoriteServer = 1601, + k_EMsgGCServerBrowser_BlacklistServer = 1602, + k_EMsgGCServerRentalsBase = 1700, + k_EMsgGCItemPreviewCheckStatus = 1701, + k_EMsgGCItemPreviewStatusResponse = 1702, + k_EMsgGCItemPreviewRequest = 1703, + k_EMsgGCItemPreviewRequestResponse = 1704, + k_EMsgGCItemPreviewExpire = 1705, + k_EMsgGCItemPreviewExpireNotification = 1706, + k_EMsgGCItemPreviewItemBoughtNotification = 1707, + k_EMsgGCDev_NewItemRequest = 2001, + k_EMsgGCDev_NewItemRequestResponse = 2002, + k_EMsgGCDev_PaintKitDropItem = 2003, + k_EMsgGCDev_SchemaReservationRequest = 2004, + k_EMsgGCStoreGetUserData = 2500, + k_EMsgGCStoreGetUserDataResponse = 2501, + k_EMsgGCStorePurchaseInit_DEPRECATED = 2502, + k_EMsgGCStorePurchaseInitResponse_DEPRECATED = 2503, + k_EMsgGCStorePurchaseFinalize = 2504, + k_EMsgGCStorePurchaseFinalizeResponse = 2505, + k_EMsgGCStorePurchaseCancel = 2506, + k_EMsgGCStorePurchaseCancelResponse = 2507, + k_EMsgGCStorePurchaseQueryTxn = 2508, + k_EMsgGCStorePurchaseQueryTxnResponse = 2509, + k_EMsgGCStorePurchaseInit = 2510, + k_EMsgGCStorePurchaseInitResponse = 2511, + k_EMsgGCBannedWordListRequest = 2512, + k_EMsgGCBannedWordListResponse = 2513, + k_EMsgGCToGCBannedWordListBroadcast = 2514, + k_EMsgGCToGCBannedWordListUpdated = 2515, + k_EMsgGCToGCDirtySDOCache = 2516, + k_EMsgGCToGCDirtyMultipleSDOCache = 2517, + k_EMsgGCToGCUpdateSQLKeyValue = 2518, + k_EMsgGCToGCIsTrustedServer = 2519, + k_EMsgGCToGCIsTrustedServerResponse = 2520, + k_EMsgGCToGCBroadcastConsoleCommand = 2521, + k_EMsgGCServerVersionUpdated = 2522, + k_EMsgGCToGCWebAPIAccountChanged = 2524, + k_EMsgGCRequestAnnouncements = 2525, + k_EMsgGCRequestAnnouncementsResponse = 2526, + k_EMsgGCRequestPassportItemGrant = 2527, + k_EMsgGCClientVersionUpdated = 2528, + k_EMsgGCRecurringSubscriptionStatus = 2530, + k_EMsgGCAdjustEquipSlotsManual = 2531, + k_EMsgGCAdjustEquipSlotsShuffle = 2532, + k_EMsgGCOpenCrate = 2534, + k_EMsgGCAcknowledgeRentalExpiration = 2535, + k_EMsgGCVolatileItemLoadContents = 2536, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCMsgResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCMsgResponse.cs index d1254c0f2..5ac8c5a35 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCMsgResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCMsgResponse.cs @@ -3,15 +3,15 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EGCMsgResponse { - k_EGCMsgResponseOK = 0, - k_EGCMsgResponseDenied = 1, - k_EGCMsgResponseServerError = 2, - k_EGCMsgResponseTimeout = 3, - k_EGCMsgResponseInvalid = 4, - k_EGCMsgResponseNoMatch = 5, - k_EGCMsgResponseUnknownError = 6, - k_EGCMsgResponseNotLoggedOn = 7, - k_EGCMsgFailedToCreate = 8, - k_EGCMsgLimitExceeded = 9, - k_EGCMsgCommitUnfinalized = 10, + k_EGCMsgResponseOK = 0, + k_EGCMsgResponseDenied = 1, + k_EGCMsgResponseServerError = 2, + k_EGCMsgResponseTimeout = 3, + k_EGCMsgResponseInvalid = 4, + k_EGCMsgResponseNoMatch = 5, + k_EGCMsgResponseUnknownError = 6, + k_EGCMsgResponseNotLoggedOn = 7, + k_EGCMsgFailedToCreate = 8, + k_EGCMsgLimitExceeded = 9, + k_EGCMsgCommitUnfinalized = 10, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCSystemMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCSystemMsg.cs index 61edf68d8..404bb1992 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCSystemMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCSystemMsg.cs @@ -3,96 +3,96 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EGCSystemMsg { - k_EGCMsgInvalid = 0, - k_EGCMsgMulti = 1, - k_EGCMsgGenericReply = 10, - k_EGCMsgSystemBase = 50, - k_EGCMsgAchievementAwarded = 51, - k_EGCMsgConCommand = 52, - k_EGCMsgStartPlaying = 53, - k_EGCMsgStopPlaying = 54, - k_EGCMsgStartGameserver = 55, - k_EGCMsgStopGameserver = 56, - k_EGCMsgWGRequest = 57, - k_EGCMsgWGResponse = 58, - k_EGCMsgGetUserGameStatsSchema = 59, - k_EGCMsgGetUserGameStatsSchemaResponse = 60, - k_EGCMsgGetUserStatsDEPRECATED = 61, - k_EGCMsgGetUserStatsResponse = 62, - k_EGCMsgAppInfoUpdated = 63, - k_EGCMsgValidateSession = 64, - k_EGCMsgValidateSessionResponse = 65, - k_EGCMsgLookupAccountFromInput = 66, - k_EGCMsgSendHTTPRequest = 67, - k_EGCMsgSendHTTPRequestResponse = 68, - k_EGCMsgPreTestSetup = 69, - k_EGCMsgRecordSupportAction = 70, - k_EGCMsgGetAccountDetails_DEPRECATED = 71, - k_EGCMsgReceiveInterAppMessage = 73, - k_EGCMsgFindAccounts = 74, - k_EGCMsgPostAlert = 75, - k_EGCMsgGetLicenses = 76, - k_EGCMsgGetUserStats = 77, - k_EGCMsgGetCommands = 78, - k_EGCMsgGetCommandsResponse = 79, - k_EGCMsgAddFreeLicense = 80, - k_EGCMsgAddFreeLicenseResponse = 81, - k_EGCMsgGetIPLocation = 82, - k_EGCMsgGetIPLocationResponse = 83, - k_EGCMsgSystemStatsSchema = 84, - k_EGCMsgGetSystemStats = 85, - k_EGCMsgGetSystemStatsResponse = 86, - k_EGCMsgSendEmail = 87, - k_EGCMsgSendEmailResponse = 88, - k_EGCMsgGetEmailTemplate = 89, - k_EGCMsgGetEmailTemplateResponse = 90, - k_EGCMsgGrantGuestPass = 91, - k_EGCMsgGrantGuestPassResponse = 92, - k_EGCMsgGetAccountDetails = 93, - k_EGCMsgGetAccountDetailsResponse = 94, - k_EGCMsgGetPersonaNames = 95, - k_EGCMsgGetPersonaNamesResponse = 96, - k_EGCMsgMultiplexMsg = 97, - k_EGCMsgMultiplexMsgResponse = 98, - k_EGCMsgWebAPIRegisterInterfaces = 101, - k_EGCMsgWebAPIJobRequest = 102, - k_EGCMsgWebAPIJobRequestHttpResponse = 104, - k_EGCMsgWebAPIJobRequestForwardResponse = 105, - k_EGCMsgMemCachedGet = 200, - k_EGCMsgMemCachedGetResponse = 201, - k_EGCMsgMemCachedSet = 202, - k_EGCMsgMemCachedDelete = 203, - k_EGCMsgMemCachedStats = 204, - k_EGCMsgMemCachedStatsResponse = 205, - k_EGCMsgMasterSetDirectory = 220, - k_EGCMsgMasterSetDirectoryResponse = 221, - k_EGCMsgMasterSetWebAPIRouting = 222, - k_EGCMsgMasterSetWebAPIRoutingResponse = 223, - k_EGCMsgMasterSetClientMsgRouting = 224, - k_EGCMsgMasterSetClientMsgRoutingResponse = 225, - k_EGCMsgSetOptions = 226, - k_EGCMsgSetOptionsResponse = 227, - k_EGCMsgSystemBase2 = 500, - k_EGCMsgGetPurchaseTrustStatus = 501, - k_EGCMsgGetPurchaseTrustStatusResponse = 502, - k_EGCMsgUpdateSession = 503, - k_EGCMsgGCAccountVacStatusChange = 504, - k_EGCMsgCheckFriendship = 505, - k_EGCMsgCheckFriendshipResponse = 506, - k_EGCMsgGetPartnerAccountLink = 507, - k_EGCMsgGetPartnerAccountLinkResponse = 508, - k_EGCMsgDPPartnerMicroTxns = 512, - k_EGCMsgDPPartnerMicroTxnsResponse = 513, - k_EGCMsgVacVerificationChange = 518, - k_EGCMsgAccountPhoneNumberChange = 519, - k_EGCMsgInviteUserToLobby = 523, - k_EGCMsgGetGamePersonalDataCategoriesRequest = 524, - k_EGCMsgGetGamePersonalDataCategoriesResponse = 525, - k_EGCMsgGetGamePersonalDataEntriesRequest = 526, - k_EGCMsgGetGamePersonalDataEntriesResponse = 527, - k_EGCMsgTerminateGamePersonalDataEntriesRequest = 528, - k_EGCMsgTerminateGamePersonalDataEntriesResponse = 529, - k_EGCMsgRecurringSubscriptionStatusChange = 530, - k_EGCMsgDirectServiceMethod = 531, - k_EGCMsgDirectServiceMethodResponse = 532, + k_EGCMsgInvalid = 0, + k_EGCMsgMulti = 1, + k_EGCMsgGenericReply = 10, + k_EGCMsgSystemBase = 50, + k_EGCMsgAchievementAwarded = 51, + k_EGCMsgConCommand = 52, + k_EGCMsgStartPlaying = 53, + k_EGCMsgStopPlaying = 54, + k_EGCMsgStartGameserver = 55, + k_EGCMsgStopGameserver = 56, + k_EGCMsgWGRequest = 57, + k_EGCMsgWGResponse = 58, + k_EGCMsgGetUserGameStatsSchema = 59, + k_EGCMsgGetUserGameStatsSchemaResponse = 60, + k_EGCMsgGetUserStatsDEPRECATED = 61, + k_EGCMsgGetUserStatsResponse = 62, + k_EGCMsgAppInfoUpdated = 63, + k_EGCMsgValidateSession = 64, + k_EGCMsgValidateSessionResponse = 65, + k_EGCMsgLookupAccountFromInput = 66, + k_EGCMsgSendHTTPRequest = 67, + k_EGCMsgSendHTTPRequestResponse = 68, + k_EGCMsgPreTestSetup = 69, + k_EGCMsgRecordSupportAction = 70, + k_EGCMsgGetAccountDetails_DEPRECATED = 71, + k_EGCMsgReceiveInterAppMessage = 73, + k_EGCMsgFindAccounts = 74, + k_EGCMsgPostAlert = 75, + k_EGCMsgGetLicenses = 76, + k_EGCMsgGetUserStats = 77, + k_EGCMsgGetCommands = 78, + k_EGCMsgGetCommandsResponse = 79, + k_EGCMsgAddFreeLicense = 80, + k_EGCMsgAddFreeLicenseResponse = 81, + k_EGCMsgGetIPLocation = 82, + k_EGCMsgGetIPLocationResponse = 83, + k_EGCMsgSystemStatsSchema = 84, + k_EGCMsgGetSystemStats = 85, + k_EGCMsgGetSystemStatsResponse = 86, + k_EGCMsgSendEmail = 87, + k_EGCMsgSendEmailResponse = 88, + k_EGCMsgGetEmailTemplate = 89, + k_EGCMsgGetEmailTemplateResponse = 90, + k_EGCMsgGrantGuestPass = 91, + k_EGCMsgGrantGuestPassResponse = 92, + k_EGCMsgGetAccountDetails = 93, + k_EGCMsgGetAccountDetailsResponse = 94, + k_EGCMsgGetPersonaNames = 95, + k_EGCMsgGetPersonaNamesResponse = 96, + k_EGCMsgMultiplexMsg = 97, + k_EGCMsgMultiplexMsgResponse = 98, + k_EGCMsgWebAPIRegisterInterfaces = 101, + k_EGCMsgWebAPIJobRequest = 102, + k_EGCMsgWebAPIJobRequestHttpResponse = 104, + k_EGCMsgWebAPIJobRequestForwardResponse = 105, + k_EGCMsgMemCachedGet = 200, + k_EGCMsgMemCachedGetResponse = 201, + k_EGCMsgMemCachedSet = 202, + k_EGCMsgMemCachedDelete = 203, + k_EGCMsgMemCachedStats = 204, + k_EGCMsgMemCachedStatsResponse = 205, + k_EGCMsgMasterSetDirectory = 220, + k_EGCMsgMasterSetDirectoryResponse = 221, + k_EGCMsgMasterSetWebAPIRouting = 222, + k_EGCMsgMasterSetWebAPIRoutingResponse = 223, + k_EGCMsgMasterSetClientMsgRouting = 224, + k_EGCMsgMasterSetClientMsgRoutingResponse = 225, + k_EGCMsgSetOptions = 226, + k_EGCMsgSetOptionsResponse = 227, + k_EGCMsgSystemBase2 = 500, + k_EGCMsgGetPurchaseTrustStatus = 501, + k_EGCMsgGetPurchaseTrustStatusResponse = 502, + k_EGCMsgUpdateSession = 503, + k_EGCMsgGCAccountVacStatusChange = 504, + k_EGCMsgCheckFriendship = 505, + k_EGCMsgCheckFriendshipResponse = 506, + k_EGCMsgGetPartnerAccountLink = 507, + k_EGCMsgGetPartnerAccountLinkResponse = 508, + k_EGCMsgDPPartnerMicroTxns = 512, + k_EGCMsgDPPartnerMicroTxnsResponse = 513, + k_EGCMsgVacVerificationChange = 518, + k_EGCMsgAccountPhoneNumberChange = 519, + k_EGCMsgInviteUserToLobby = 523, + k_EGCMsgGetGamePersonalDataCategoriesRequest = 524, + k_EGCMsgGetGamePersonalDataCategoriesResponse = 525, + k_EGCMsgGetGamePersonalDataEntriesRequest = 526, + k_EGCMsgGetGamePersonalDataEntriesResponse = 527, + k_EGCMsgTerminateGamePersonalDataEntriesRequest = 528, + k_EGCMsgTerminateGamePersonalDataEntriesResponse = 529, + k_EGCMsgRecurringSubscriptionStatusChange = 530, + k_EGCMsgDirectServiceMethod = 531, + k_EGCMsgDirectServiceMethodResponse = 532, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCToGCMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCToGCMsg.cs index 0cfed0db7..4c3b16f20 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCToGCMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EGCToGCMsg.cs @@ -3,12 +3,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EGCToGCMsg { - k_EGCToGCMsgMasterAck = 150, - k_EGCToGCMsgMasterAckResponse = 151, - k_EGCToGCMsgRouted = 152, - k_EGCToGCMsgRoutedReply = 153, - k_EMsgUpdateSessionIP = 154, - k_EMsgRequestSessionIP = 155, - k_EMsgRequestSessionIPResponse = 156, - k_EGCToGCMsgMasterStartupComplete = 157, + k_EGCToGCMsgMasterAck = 150, + k_EGCToGCMsgMasterAckResponse = 151, + k_EGCToGCMsgRouted = 152, + k_EGCToGCMsgRoutedReply = 153, + k_EMsgUpdateSessionIP = 154, + k_EMsgRequestSessionIP = 155, + k_EMsgRequestSessionIPResponse = 156, + k_EGCToGCMsgMasterStartupComplete = 157, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EHapticPulseType.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EHapticPulseType.cs index b480cebab..244a02534 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EHapticPulseType.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EHapticPulseType.cs @@ -3,7 +3,7 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EHapticPulseType { - VR_HAND_HAPTIC_PULSE_LIGHT = 0, - VR_HAND_HAPTIC_PULSE_MEDIUM = 1, - VR_HAND_HAPTIC_PULSE_STRONG = 2, + VR_HAND_HAPTIC_PULSE_LIGHT = 0, + VR_HAND_HAPTIC_PULSE_MEDIUM = 1, + VR_HAND_HAPTIC_PULSE_STRONG = 2, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EHitGroup.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EHitGroup.cs index d2dfcbc48..3f888f527 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EHitGroup.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EHitGroup.cs @@ -3,14 +3,14 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EHitGroup { - EHG_Generic = 0, - EHG_Head = 1, - EHG_Chest = 2, - EHG_Stomach = 3, - EHG_LeftArm = 4, - EHG_RightArm = 5, - EHG_LeftLeg = 6, - EHG_RightLeg = 7, - EHG_Gear = 8, - EHG_Miss = 9, + EHG_Generic = 0, + EHG_Head = 1, + EHG_Chest = 2, + EHG_Stomach = 3, + EHG_LeftArm = 4, + EHG_RightArm = 5, + EHG_LeftLeg = 6, + EHG_RightLeg = 7, + EHG_Gear = 8, + EHG_Miss = 9, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EInitSystemResult.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EInitSystemResult.cs index 0ab8e69b6..a8fa77366 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EInitSystemResult.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EInitSystemResult.cs @@ -3,13 +3,13 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EInitSystemResult { - k_EInitSystemResult_Invalid = 0, - k_EInitSystemResult_Success = 1, - k_EInitSystemResult_None = 2, - k_EInitSystemResult_NotFound = 3, - k_EInitSystemResult_Existing = 4, - k_EInitSystemResult_FailedOpen = 5, - k_EInitSystemResult_Mismatch = 6, - k_EInitSystemResult_FailedInit = 7, - k_EInitSystemResult_Max = 8, + k_EInitSystemResult_Invalid = 0, + k_EInitSystemResult_Success = 1, + k_EInitSystemResult_None = 2, + k_EInitSystemResult_NotFound = 3, + k_EInitSystemResult_Existing = 4, + k_EInitSystemResult_FailedOpen = 5, + k_EInitSystemResult_Mismatch = 6, + k_EInitSystemResult_FailedInit = 7, + k_EInitSystemResult_Max = 8, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EMsg.cs index dbce349de..180cd038b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EMsg.cs @@ -4,1492 +4,1492 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EMsg { - k_EMsgInvalid = 0, - k_EMsgMulti = 1, - k_EMsgProtobufWrapped = 2, - k_EMsgBaseGeneral = 100, - k_EMsgGenericReply = 100, - k_EMsgDestJobFailed = 113, - k_EMsgAlert = 115, - k_EMsgSCIDRequest = 120, - k_EMsgSCIDResponse = 121, - k_EMsgJobHeartbeat = 123, - k_EMsgHubConnect = 124, - k_EMsgSubscribe = 126, - k_EMRouteMessage = 127, - k_EMsgWGRequest = 130, - k_EMsgWGResponse = 131, - k_EMsgKeepAlive = 132, - k_EMsgWebAPIJobRequest = 133, - k_EMsgWebAPIJobResponse = 134, - k_EMsgClientSessionStart = 135, - k_EMsgClientSessionEnd = 136, - k_EMsgClientSessionUpdate = 137, - k_EMsgStatsDeprecated = 138, - k_EMsgPing = 139, - k_EMsgPingResponse = 140, - k_EMsgStats = 141, - k_EMsgRequestFullStatsBlock = 142, - k_EMsgLoadDBOCacheItem = 143, - k_EMsgLoadDBOCacheItemResponse = 144, - k_EMsgInvalidateDBOCacheItems = 145, - k_EMsgServiceMethod = 146, - k_EMsgServiceMethodResponse = 147, - k_EMsgClientPackageVersions = 148, - k_EMsgTimestampRequest = 149, - k_EMsgTimestampResponse = 150, - k_EMsgServiceMethodCallFromClient = 151, - k_EMsgServiceMethodSendToClient = 152, - k_EMsgBaseShell = 200, - k_EMsgAssignSysID = 200, - k_EMsgExit = 201, - k_EMsgDirRequest = 202, - k_EMsgDirResponse = 203, - k_EMsgZipRequest = 204, - k_EMsgZipResponse = 205, - k_EMsgUpdateRecordResponse = 215, - k_EMsgUpdateCreditCardRequest = 221, - k_EMsgUpdateUserBanResponse = 225, - k_EMsgPrepareToExit = 226, - k_EMsgContentDescriptionUpdate = 227, - k_EMsgTestResetServer = 228, - k_EMsgUniverseChanged = 229, - k_EMsgShellConfigInfoUpdate = 230, - k_EMsgRequestWindowsEventLogEntries = 233, - k_EMsgProvideWindowsEventLogEntries = 234, - k_EMsgShellSearchLogs = 235, - k_EMsgShellSearchLogsResponse = 236, - k_EMsgShellCheckWindowsUpdates = 237, - k_EMsgShellCheckWindowsUpdatesResponse = 238, - k_EMsgTestFlushDelayedSQL = 240, - k_EMsgTestFlushDelayedSQLResponse = 241, - k_EMsgEnsureExecuteScheduledTask_TEST = 242, - k_EMsgEnsureExecuteScheduledTaskResponse_TEST = 243, - k_EMsgUpdateScheduledTaskEnableState_TEST = 244, - k_EMsgUpdateScheduledTaskEnableStateResponse_TEST = 245, - k_EMsgContentDescriptionDeltaUpdate = 246, - k_EMsgGMShellAndServerAddressUpdates = 247, - k_EMsgBaseGM = 300, - k_EMsgHeartbeat = 300, - k_EMsgShellFailed = 301, - k_EMsgExitShells = 307, - k_EMsgExitShell = 308, - k_EMsgGracefulExitShell = 309, - k_EMsgLicenseProcessingComplete = 316, - k_EMsgSetTestFlag = 317, - k_EMsgQueuedEmailsComplete = 318, - k_EMsgGMDRMSync = 320, - k_EMsgPhysicalBoxInventory = 321, - k_EMsgUpdateConfigFile = 322, - k_EMsgTestInitDB = 323, - k_EMsgGMWriteConfigToSQL = 324, - k_EMsgGMLoadActivationCodes = 325, - k_EMsgGMQueueForFBS = 326, - k_EMsgGMSchemaConversionResults = 327, - k_EMsgGMWriteShellFailureToSQL = 329, - k_EMsgGMWriteStatsToSOS = 330, - k_EMsgGMGetServiceMethodRouting = 331, - k_EMsgGMGetServiceMethodRoutingResponse = 332, - k_EMsgGMTestNextBuildSchemaConversion = 334, - k_EMsgGMTestNextBuildSchemaConversionResponse = 335, - k_EMsgExpectShellRestart = 336, - k_EMsgHotFixProgress = 337, - k_EMsgGMStatsForwardToAdminConnections = 338, - k_EMsgGMGetModifiedConVars = 339, - k_EMsgGMGetModifiedConVarsResponse = 340, - k_EMsgBaseAIS = 400, - k_EMsgAISRequestContentDescription = 402, - k_EMsgAISUpdateAppInfo = 403, - k_EMsgAISGetPackageChangeNumber = 405, - k_EMsgAISGetPackageChangeNumberResponse = 406, - k_EMsgAIGetAppGCFlags = 423, - k_EMsgAIGetAppGCFlagsResponse = 424, - k_EMsgAIGetAppList = 425, - k_EMsgAIGetAppListResponse = 426, - k_EMsgAISGetCouponDefinition = 429, - k_EMsgAISGetCouponDefinitionResponse = 430, - k_EMsgAISUpdateSubordinateContentDescription = 431, - k_EMsgAISUpdateSubordinateContentDescriptionResponse = 432, - k_EMsgAISTestEnableGC = 433, - k_EMsgBaseAM = 500, - k_EMsgAMUpdateUserBanRequest = 504, - k_EMsgAMAddLicense = 505, - k_EMsgAMSendSystemIMToUser = 508, - k_EMsgAMExtendLicense = 509, - k_EMsgAMAddMinutesToLicense = 510, - k_EMsgAMCancelLicense = 511, - k_EMsgAMInitPurchase = 512, - k_EMsgAMPurchaseResponse = 513, - k_EMsgAMGetFinalPrice = 514, - k_EMsgAMGetFinalPriceResponse = 515, - k_EMsgAMGetLegacyGameKey = 516, - k_EMsgAMGetLegacyGameKeyResponse = 517, - k_EMsgAMFindHungTransactions = 518, - k_EMsgAMSetAccountTrustedRequest = 519, - k_EMsgAMCancelPurchase = 522, - k_EMsgAMNewChallenge = 523, - k_EMsgAMLoadOEMTickets = 524, - k_EMsgAMFixPendingPurchase = 525, - k_EMsgAMFixPendingPurchaseResponse = 526, - k_EMsgAMIsUserBanned = 527, - k_EMsgAMRegisterKey = 528, - k_EMsgAMLoadActivationCodes = 529, - k_EMsgAMLoadActivationCodesResponse = 530, - k_EMsgAMLookupKeyResponse = 531, - k_EMsgAMLookupKey = 532, - k_EMsgAMChatCleanup = 533, - k_EMsgAMClanCleanup = 534, - k_EMsgAMFixPendingRefund = 535, - k_EMsgAMReverseChargeback = 536, - k_EMsgAMReverseChargebackResponse = 537, - k_EMsgAMClanCleanupList = 538, - k_EMsgAMGetLicenses = 539, - k_EMsgAMGetLicensesResponse = 540, - k_EMsgAMSendCartRepurchase = 541, - k_EMsgAMSendCartRepurchaseResponse = 542, - k_EMsgAllowUserToPlayQuery = 550, - k_EMsgAllowUserToPlayResponse = 551, - k_EMsgAMVerfiyUser = 552, - k_EMsgAMClientNotPlaying = 553, - k_EMsgAMClientRequestFriendship = 554, - k_EMsgAMRelayPublishStatus = 555, - k_EMsgAMInitPurchaseResponse = 560, - k_EMsgAMRevokePurchaseResponse = 561, - k_EMsgAMRefreshGuestPasses = 563, - k_EMsgAMGrantGuestPasses = 566, - k_EMsgAMClanDataUpdated = 567, - k_EMsgAMReloadAccount = 568, - k_EMsgAMClientChatMsgRelay = 569, - k_EMsgAMChatMulti = 570, - k_EMsgAMClientChatInviteRelay = 571, - k_EMsgAMChatInvite = 572, - k_EMsgAMClientJoinChatRelay = 573, - k_EMsgAMClientChatMemberInfoRelay = 574, - k_EMsgAMPublishChatMemberInfo = 575, - k_EMsgAMClientAcceptFriendInvite = 576, - k_EMsgAMChatEnter = 577, - k_EMsgAMClientPublishRemovalFromSource = 578, - k_EMsgAMChatActionResult = 579, - k_EMsgAMFindAccounts = 580, - k_EMsgAMFindAccountsResponse = 581, - k_EMsgAMIsAccountNameInUse = 582, - k_EMsgAMIsAccountNameInUseResponse = 583, - k_EMsgAMSetAccountFlags = 584, - k_EMsgAMCreateClan = 586, - k_EMsgAMCreateClanResponse = 587, - k_EMsgAMGetClanDetails = 588, - k_EMsgAMGetClanDetailsResponse = 589, - k_EMsgAMSetPersonaName = 590, - k_EMsgAMSetAvatar = 591, - k_EMsgAMAuthenticateUser = 592, - k_EMsgAMAuthenticateUserResponse = 593, - k_EMsgAMP2PIntroducerMessage = 596, - k_EMsgClientChatAction = 597, - k_EMsgAMClientChatActionRelay = 598, - k_EMsgBaseVS = 600, - k_EMsgReqChallenge = 600, - k_EMsgVACResponse = 601, - k_EMsgReqChallengeTest = 602, - k_EMsgVSMarkCheat = 604, - k_EMsgVSAddCheat = 605, - k_EMsgVSPurgeCodeModDB = 606, - k_EMsgVSGetChallengeResults = 607, - k_EMsgVSChallengeResultText = 608, - k_EMsgVSReportLingerer = 609, - k_EMsgVSRequestManagedChallenge = 610, - k_EMsgVSLoadDBFinished = 611, - k_EMsgBaseDRMS = 625, - k_EMsgDRMBuildBlobRequest = 628, - k_EMsgDRMBuildBlobResponse = 629, - k_EMsgDRMResolveGuidRequest = 630, - k_EMsgDRMResolveGuidResponse = 631, - k_EMsgDRMVariabilityReport = 633, - k_EMsgDRMVariabilityReportResponse = 634, - k_EMsgDRMStabilityReport = 635, - k_EMsgDRMStabilityReportResponse = 636, - k_EMsgDRMDetailsReportRequest = 637, - k_EMsgDRMDetailsReportResponse = 638, - k_EMsgDRMProcessFile = 639, - k_EMsgDRMAdminUpdate = 640, - k_EMsgDRMAdminUpdateResponse = 641, - k_EMsgDRMSync = 642, - k_EMsgDRMSyncResponse = 643, - k_EMsgDRMProcessFileResponse = 644, - k_EMsgDRMEmptyGuidCache = 645, - k_EMsgDRMEmptyGuidCacheResponse = 646, - k_EMsgBaseCS = 650, - k_EMsgBaseClient = 700, - k_EMsgClientLogOn_Deprecated = 701, - k_EMsgClientAnonLogOn_Deprecated = 702, - k_EMsgClientHeartBeat = 703, - k_EMsgClientVACResponse = 704, - k_EMsgClientGamesPlayed_obsolete = 705, - k_EMsgClientLogOff = 706, - k_EMsgClientNoUDPConnectivity = 707, - k_EMsgClientConnectionStats = 710, - k_EMsgClientPingResponse = 712, - k_EMsgClientRemoveFriend = 714, - k_EMsgClientGamesPlayedNoDataBlob = 715, - k_EMsgClientChangeStatus = 716, - k_EMsgClientVacStatusResponse = 717, - k_EMsgClientFriendMsg = 718, - k_EMsgClientGameConnect_obsolete = 719, - k_EMsgClientGamesPlayed2_obsolete = 720, - k_EMsgClientGameEnded_obsolete = 721, - k_EMsgClientSystemIM = 726, - k_EMsgClientSystemIMAck = 727, - k_EMsgClientGetLicenses = 728, - k_EMsgClientGetLegacyGameKey = 730, - k_EMsgClientContentServerLogOn_Deprecated = 731, - k_EMsgClientAckVACBan2 = 732, - k_EMsgClientGetPurchaseReceipts = 736, - k_EMsgClientGamesPlayed3_obsolete = 738, - k_EMsgClientAckGuestPass = 740, - k_EMsgClientRedeemGuestPass = 741, - k_EMsgClientGamesPlayed = 742, - k_EMsgClientRegisterKey = 743, - k_EMsgClientInviteUserToClan = 744, - k_EMsgClientAcknowledgeClanInvite = 745, - k_EMsgClientPurchaseWithMachineID = 746, - k_EMsgClientAppUsageEvent = 747, - k_EMsgClientLogOnResponse = 751, - k_EMsgClientSetHeartbeatRate = 755, - k_EMsgClientNotLoggedOnDeprecated = 756, - k_EMsgClientLoggedOff = 757, - k_EMsgGSApprove = 758, - k_EMsgGSDeny = 759, - k_EMsgGSKick = 760, - k_EMsgClientPurchaseResponse = 763, - k_EMsgClientPing = 764, - k_EMsgClientNOP = 765, - k_EMsgClientPersonaState = 766, - k_EMsgClientFriendsList = 767, - k_EMsgClientAccountInfo = 768, - k_EMsgClientNewsUpdate = 771, - k_EMsgClientGameConnectDeny = 773, - k_EMsgGSStatusReply = 774, - k_EMsgClientGameConnectTokens = 779, - k_EMsgClientLicenseList = 780, - k_EMsgClientVACBanStatus = 782, - k_EMsgClientCMList = 783, - k_EMsgClientEncryptPct = 784, - k_EMsgClientGetLegacyGameKeyResponse = 785, - k_EMsgClientAddFriend = 791, - k_EMsgClientAddFriendResponse = 792, - k_EMsgClientAckGuestPassResponse = 796, - k_EMsgClientRedeemGuestPassResponse = 797, - k_EMsgClientUpdateGuestPassesList = 798, - k_EMsgClientChatMsg = 799, - k_EMsgClientChatInvite = 800, - k_EMsgClientJoinChat = 801, - k_EMsgClientChatMemberInfo = 802, - k_EMsgClientLogOnWithCredentials_Deprecated = 803, - k_EMsgClientPasswordChangeResponse = 805, - k_EMsgClientChatEnter = 807, - k_EMsgClientFriendRemovedFromSource = 808, - k_EMsgClientCreateChat = 809, - k_EMsgClientCreateChatResponse = 810, - k_EMsgClientP2PIntroducerMessage = 813, - k_EMsgClientChatActionResult = 814, - k_EMsgClientRequestFriendData = 815, - k_EMsgClientGetUserStats = 818, - k_EMsgClientGetUserStatsResponse = 819, - k_EMsgClientStoreUserStats = 820, - k_EMsgClientStoreUserStatsResponse = 821, - k_EMsgClientClanState = 822, - k_EMsgClientServiceModule = 830, - k_EMsgClientServiceCall = 831, - k_EMsgClientServiceCallResponse = 832, - k_EMsgClientNatTraversalStatEvent = 839, - k_EMsgClientSteamUsageEvent = 842, - k_EMsgClientCheckPassword = 845, - k_EMsgClientResetPassword = 846, - k_EMsgClientCheckPasswordResponse = 848, - k_EMsgClientResetPasswordResponse = 849, - k_EMsgClientSessionToken = 850, - k_EMsgClientDRMProblemReport = 851, - k_EMsgClientSetIgnoreFriend = 855, - k_EMsgClientSetIgnoreFriendResponse = 856, - k_EMsgClientGetAppOwnershipTicket = 857, - k_EMsgClientGetAppOwnershipTicketResponse = 858, - k_EMsgClientGetLobbyListResponse = 860, - k_EMsgClientServerList = 880, - k_EMsgClientDRMBlobRequest = 896, - k_EMsgClientDRMBlobResponse = 897, - k_EMsgBaseGameServer = 900, - k_EMsgGSDisconnectNotice = 901, - k_EMsgGSStatus = 903, - k_EMsgGSUserPlaying = 905, - k_EMsgGSStatus2 = 906, - k_EMsgGSStatusUpdate_Unused = 907, - k_EMsgGSServerType = 908, - k_EMsgGSPlayerList = 909, - k_EMsgGSGetUserAchievementStatus = 910, - k_EMsgGSGetUserAchievementStatusResponse = 911, - k_EMsgGSGetPlayStats = 918, - k_EMsgGSGetPlayStatsResponse = 919, - k_EMsgGSGetUserGroupStatus = 920, - k_EMsgAMGetUserGroupStatus = 921, - k_EMsgAMGetUserGroupStatusResponse = 922, - k_EMsgGSGetUserGroupStatusResponse = 923, - k_EMsgGSGetReputation = 936, - k_EMsgGSGetReputationResponse = 937, - k_EMsgGSAssociateWithClan = 938, - k_EMsgGSAssociateWithClanResponse = 939, - k_EMsgGSComputeNewPlayerCompatibility = 940, - k_EMsgGSComputeNewPlayerCompatibilityResponse = 941, - k_EMsgBaseAdmin = 1000, - k_EMsgAdminCmd = 1000, - k_EMsgAdminCmdResponse = 1004, - k_EMsgAdminLogListenRequest = 1005, - k_EMsgAdminLogEvent = 1006, - k_EMsgUniverseData = 1010, - k_EMsgAdminSpew = 1019, - k_EMsgAdminConsoleTitle = 1020, - k_EMsgAdminGCSpew = 1023, - k_EMsgAdminGCCommand = 1024, - k_EMsgAdminGCGetCommandList = 1025, - k_EMsgAdminGCGetCommandListResponse = 1026, - k_EMsgFBSConnectionData = 1027, - k_EMsgAdminMsgSpew = 1028, - k_EMsgBaseFBS = 1100, - k_EMsgFBSReqVersion = 1100, - k_EMsgFBSVersionInfo = 1101, - k_EMsgFBSForceRefresh = 1102, - k_EMsgFBSForceBounce = 1103, - k_EMsgFBSDeployPackage = 1104, - k_EMsgFBSDeployResponse = 1105, - k_EMsgFBSUpdateBootstrapper = 1106, - k_EMsgFBSSetState = 1107, - k_EMsgFBSApplyOSUpdates = 1108, - k_EMsgFBSRunCMDScript = 1109, - k_EMsgFBSRebootBox = 1110, - k_EMsgFBSSetBigBrotherMode = 1111, - k_EMsgFBSMinidumpServer = 1112, - k_EMsgFBSDeployHotFixPackage = 1114, - k_EMsgFBSDeployHotFixResponse = 1115, - k_EMsgFBSDownloadHotFix = 1116, - k_EMsgFBSDownloadHotFixResponse = 1117, - k_EMsgFBSUpdateTargetConfigFile = 1118, - k_EMsgFBSApplyAccountCred = 1119, - k_EMsgFBSApplyAccountCredResponse = 1120, - k_EMsgFBSSetShellCount = 1121, - k_EMsgFBSTerminateShell = 1122, - k_EMsgFBSQueryGMForRequest = 1123, - k_EMsgFBSQueryGMResponse = 1124, - k_EMsgFBSTerminateZombies = 1125, - k_EMsgFBSInfoFromBootstrapper = 1126, - k_EMsgFBSRebootBoxResponse = 1127, - k_EMsgFBSBootstrapperPackageRequest = 1128, - k_EMsgFBSBootstrapperPackageResponse = 1129, - k_EMsgFBSBootstrapperGetPackageChunk = 1130, - k_EMsgFBSBootstrapperGetPackageChunkResponse = 1131, - k_EMsgFBSBootstrapperPackageTransferProgress = 1132, - k_EMsgFBSRestartBootstrapper = 1133, - k_EMsgFBSPauseFrozenDumps = 1134, - k_EMsgBaseFileXfer = 1200, - k_EMsgFileXferRequest = 1200, - k_EMsgFileXferResponse = 1201, - k_EMsgFileXferData = 1202, - k_EMsgFileXferEnd = 1203, - k_EMsgFileXferDataAck = 1204, - k_EMsgBaseChannelAuth = 1300, - k_EMsgChannelAuthChallenge = 1300, - k_EMsgChannelAuthResponse = 1301, - k_EMsgChannelAuthResult = 1302, - k_EMsgChannelEncryptRequest = 1303, - k_EMsgChannelEncryptResponse = 1304, - k_EMsgChannelEncryptResult = 1305, - k_EMsgBaseBS = 1400, - k_EMsgBSPurchaseStart = 1401, - k_EMsgBSPurchaseResponse = 1402, - k_EMsgBSAuthenticateCCTrans = 1403, - k_EMsgBSAuthenticateCCTransResponse = 1404, - k_EMsgBSSettleComplete = 1406, - k_EMsgBSInitPayPalTxn = 1408, - k_EMsgBSInitPayPalTxnResponse = 1409, - k_EMsgBSGetPayPalUserInfo = 1410, - k_EMsgBSGetPayPalUserInfoResponse = 1411, - k_EMsgBSPaymentInstrBan = 1417, - k_EMsgBSPaymentInstrBanResponse = 1418, - k_EMsgBSInitGCBankXferTxn = 1421, - k_EMsgBSInitGCBankXferTxnResponse = 1422, - k_EMsgBSCommitGCTxn = 1425, - k_EMsgBSQueryTransactionStatus = 1426, - k_EMsgBSQueryTransactionStatusResponse = 1427, - k_EMsgBSQueryTxnExtendedInfo = 1433, - k_EMsgBSQueryTxnExtendedInfoResponse = 1434, - k_EMsgBSUpdateConversionRates = 1435, - k_EMsgBSPurchaseRunFraudChecks = 1437, - k_EMsgBSPurchaseRunFraudChecksResponse = 1438, - k_EMsgBSQueryBankInformation = 1440, - k_EMsgBSQueryBankInformationResponse = 1441, - k_EMsgBSValidateXsollaSignature = 1445, - k_EMsgBSValidateXsollaSignatureResponse = 1446, - k_EMsgBSQiwiWalletInvoice = 1448, - k_EMsgBSQiwiWalletInvoiceResponse = 1449, - k_EMsgBSUpdateInventoryFromProPack = 1450, - k_EMsgBSUpdateInventoryFromProPackResponse = 1451, - k_EMsgBSSendShippingRequest = 1452, - k_EMsgBSSendShippingRequestResponse = 1453, - k_EMsgBSGetProPackOrderStatus = 1454, - k_EMsgBSGetProPackOrderStatusResponse = 1455, - k_EMsgBSCheckJobRunning = 1456, - k_EMsgBSCheckJobRunningResponse = 1457, - k_EMsgBSResetPackagePurchaseRateLimit = 1458, - k_EMsgBSResetPackagePurchaseRateLimitResponse = 1459, - k_EMsgBSUpdatePaymentData = 1460, - k_EMsgBSUpdatePaymentDataResponse = 1461, - k_EMsgBSGetBillingAddress = 1462, - k_EMsgBSGetBillingAddressResponse = 1463, - k_EMsgBSGetCreditCardInfo = 1464, - k_EMsgBSGetCreditCardInfoResponse = 1465, - k_EMsgBSRemoveExpiredPaymentData = 1468, - k_EMsgBSRemoveExpiredPaymentDataResponse = 1469, - k_EMsgBSConvertToCurrentKeys = 1470, - k_EMsgBSConvertToCurrentKeysResponse = 1471, - k_EMsgBSInitPurchase = 1472, - k_EMsgBSInitPurchaseResponse = 1473, - k_EMsgBSCompletePurchase = 1474, - k_EMsgBSCompletePurchaseResponse = 1475, - k_EMsgBSPruneCardUsageStats = 1476, - k_EMsgBSPruneCardUsageStatsResponse = 1477, - k_EMsgBSStoreBankInformation = 1478, - k_EMsgBSStoreBankInformationResponse = 1479, - k_EMsgBSVerifyPOSAKey = 1480, - k_EMsgBSVerifyPOSAKeyResponse = 1481, - k_EMsgBSReverseRedeemPOSAKey = 1482, - k_EMsgBSReverseRedeemPOSAKeyResponse = 1483, - k_EMsgBSQueryFindCreditCard = 1484, - k_EMsgBSQueryFindCreditCardResponse = 1485, - k_EMsgBSStatusInquiryPOSAKey = 1486, - k_EMsgBSStatusInquiryPOSAKeyResponse = 1487, - k_EMsgBSBoaCompraConfirmProductDelivery = 1494, - k_EMsgBSBoaCompraConfirmProductDeliveryResponse = 1495, - k_EMsgBSGenerateBoaCompraMD5 = 1496, - k_EMsgBSGenerateBoaCompraMD5Response = 1497, - k_EMsgBSCommitWPTxn = 1498, - k_EMsgBSCommitAdyenTxn = 1499, - k_EMsgBaseATS = 1500, - k_EMsgATSStartStressTest = 1501, - k_EMsgATSStopStressTest = 1502, - k_EMsgATSRunFailServerTest = 1503, - k_EMsgATSUFSPerfTestTask = 1504, - k_EMsgATSUFSPerfTestResponse = 1505, - k_EMsgATSCycleTCM = 1506, - k_EMsgATSInitDRMSStressTest = 1507, - k_EMsgATSCallTest = 1508, - k_EMsgATSCallTestReply = 1509, - k_EMsgATSStartExternalStress = 1510, - k_EMsgATSExternalStressJobStart = 1511, - k_EMsgATSExternalStressJobQueued = 1512, - k_EMsgATSExternalStressJobRunning = 1513, - k_EMsgATSExternalStressJobStopped = 1514, - k_EMsgATSExternalStressJobStopAll = 1515, - k_EMsgATSExternalStressActionResult = 1516, - k_EMsgATSStarted = 1517, - k_EMsgATSCSPerfTestTask = 1518, - k_EMsgATSCSPerfTestResponse = 1519, - k_EMsgBaseDP = 1600, - k_EMsgDPSetPublishingState = 1601, - k_EMsgDPUniquePlayersStat = 1603, - k_EMsgDPStreamingUniquePlayersStat = 1604, - k_EMsgDPBlockingStats = 1607, - k_EMsgDPNatTraversalStats = 1608, - k_EMsgDPCloudStats = 1612, - k_EMsgDPGetPlayerCount = 1615, - k_EMsgDPGetPlayerCountResponse = 1616, - k_EMsgDPGameServersPlayersStats = 1617, - k_EMsgClientDPCheckSpecialSurvey = 1620, - k_EMsgClientDPCheckSpecialSurveyResponse = 1621, - k_EMsgClientDPSendSpecialSurveyResponse = 1622, - k_EMsgClientDPSendSpecialSurveyResponseReply = 1623, - k_EMsgDPStoreSaleStatistics = 1624, - k_EMsgDPPartnerMicroTxns = 1628, - k_EMsgDPPartnerMicroTxnsResponse = 1629, - k_EMsgDPVRUniquePlayersStat = 1631, - k_EMsgBaseCM = 1700, - k_EMsgCMSetAllowState = 1701, - k_EMsgCMSpewAllowState = 1702, - k_EMsgCMSessionRejected = 1703, - k_EMsgCMSetSecrets = 1704, - k_EMsgCMGetSecrets = 1705, - k_EMsgBaseGC = 2200, - k_EMsgGCCmdRevive = 2203, - k_EMsgGCCmdDown = 2206, - k_EMsgGCCmdDeploy = 2207, - k_EMsgGCCmdDeployResponse = 2208, - k_EMsgGCCmdSwitch = 2209, - k_EMsgAMRefreshSessions = 2210, - k_EMsgGCAchievementAwarded = 2212, - k_EMsgGCSystemMessage = 2213, - k_EMsgGCCmdStatus = 2216, - k_EMsgGCRegisterWebInterfaces_Deprecated = 2217, - k_EMsgGCGetAccountDetails_DEPRECATED = 2218, - k_EMsgGCInterAppMessage = 2219, - k_EMsgGCGetEmailTemplate = 2220, - k_EMsgGCGetEmailTemplateResponse = 2221, - k_EMsgGCHRelay = 2222, - k_EMsgGCHRelayToClient = 2223, - k_EMsgGCHUpdateSession = 2224, - k_EMsgGCHRequestUpdateSession = 2225, - k_EMsgGCHRequestStatus = 2226, - k_EMsgGCHRequestStatusResponse = 2227, - k_EMsgGCHAccountVacStatusChange = 2228, - k_EMsgGCHSpawnGC = 2229, - k_EMsgGCHSpawnGCResponse = 2230, - k_EMsgGCHKillGC = 2231, - k_EMsgGCHKillGCResponse = 2232, - k_EMsgGCHAccountTradeBanStatusChange = 2233, - k_EMsgGCHAccountLockStatusChange = 2234, - k_EMsgGCHVacVerificationChange = 2235, - k_EMsgGCHAccountPhoneNumberChange = 2236, - k_EMsgGCHAccountTwoFactorChange = 2237, - k_EMsgGCHInviteUserToLobby = 2238, - k_EMsgGCHUpdateMultipleSessions = 2239, - k_EMsgGCHMarkAppSessionsAuthoritative = 2240, - k_EMsgGCHRecurringSubscriptionStatusChange = 2241, - k_EMsgGCHAppCheersReceived = 2242, - k_EMsgGCHAppCheersGetAllowedTypes = 2243, - k_EMsgGCHAppCheersGetAllowedTypesResponse = 2244, - k_EMsgGCHRoutingRulesFromGCHtoGM = 2245, - k_EMsgGCHRoutingRulesToGCHfromGM = 2246, - k_EMsgUpdateCMMessageRateRules = 2247, - k_EMsgBaseP2P = 2500, - k_EMsgP2PIntroducerMessage = 2502, - k_EMsgBaseSM = 2900, - k_EMsgSMExpensiveReport = 2902, - k_EMsgSMHourlyReport = 2903, - k_EMsgSMPartitionRenames = 2905, - k_EMsgSMMonitorSpace = 2906, - k_EMsgSMTestNextBuildSchemaConversion = 2907, - k_EMsgSMTestNextBuildSchemaConversionResponse = 2908, - k_EMsgBaseTest = 3000, - k_EMsgFailServer = 3000, - k_EMsgJobHeartbeatTest = 3001, - k_EMsgJobHeartbeatTestResponse = 3002, - k_EMsgBaseFTSRange = 3100, - k_EMsgBaseCCSRange = 3150, - k_EMsgCCSDeleteAllCommentsByAuthor = 3161, - k_EMsgCCSDeleteAllCommentsByAuthorResponse = 3162, - k_EMsgBaseLBSRange = 3200, - k_EMsgLBSSetScore = 3201, - k_EMsgLBSSetScoreResponse = 3202, - k_EMsgLBSFindOrCreateLB = 3203, - k_EMsgLBSFindOrCreateLBResponse = 3204, - k_EMsgLBSGetLBEntries = 3205, - k_EMsgLBSGetLBEntriesResponse = 3206, - k_EMsgLBSGetLBList = 3207, - k_EMsgLBSGetLBListResponse = 3208, - k_EMsgLBSSetLBDetails = 3209, - k_EMsgLBSDeleteLB = 3210, - k_EMsgLBSDeleteLBEntry = 3211, - k_EMsgLBSResetLB = 3212, - k_EMsgLBSResetLBResponse = 3213, - k_EMsgLBSDeleteLBResponse = 3214, - k_EMsgBaseOGS = 3400, - k_EMsgOGSBeginSession = 3401, - k_EMsgOGSBeginSessionResponse = 3402, - k_EMsgOGSEndSession = 3403, - k_EMsgOGSEndSessionResponse = 3404, - k_EMsgOGSWriteAppSessionRow = 3406, - k_EMsgBaseBRP = 3600, - k_EMsgBRPPostTransactionTax = 3629, - k_EMsgBRPPostTransactionTaxResponse = 3630, - k_EMsgBaseAMRange2 = 4000, - k_EMsgAMCreateChat = 4001, - k_EMsgAMCreateChatResponse = 4002, - k_EMsgAMSetProfileURL = 4005, - k_EMsgAMGetAccountEmailAddress = 4006, - k_EMsgAMGetAccountEmailAddressResponse = 4007, - k_EMsgAMRequestClanData = 4008, - k_EMsgAMRouteToClients = 4009, - k_EMsgAMLeaveClan = 4010, - k_EMsgAMClanPermissions = 4011, - k_EMsgAMClanPermissionsResponse = 4012, - k_EMsgAMCreateClanEventDummyForRateLimiting = 4013, - k_EMsgAMUpdateClanEventDummyForRateLimiting = 4015, - k_EMsgAMSetClanPermissionSettings = 4021, - k_EMsgAMSetClanPermissionSettingsResponse = 4022, - k_EMsgAMGetClanPermissionSettings = 4023, - k_EMsgAMGetClanPermissionSettingsResponse = 4024, - k_EMsgAMPublishChatRoomInfo = 4025, - k_EMsgClientChatRoomInfo = 4026, - k_EMsgAMGetClanHistory = 4039, - k_EMsgAMGetClanHistoryResponse = 4040, - k_EMsgAMGetClanPermissionBits = 4041, - k_EMsgAMGetClanPermissionBitsResponse = 4042, - k_EMsgAMSetClanPermissionBits = 4043, - k_EMsgAMSetClanPermissionBitsResponse = 4044, - k_EMsgAMSessionInfoRequest = 4045, - k_EMsgAMSessionInfoResponse = 4046, - k_EMsgAMValidateWGToken = 4047, - k_EMsgAMGetClanRank = 4050, - k_EMsgAMGetClanRankResponse = 4051, - k_EMsgAMSetClanRank = 4052, - k_EMsgAMSetClanRankResponse = 4053, - k_EMsgAMGetClanPOTW = 4054, - k_EMsgAMGetClanPOTWResponse = 4055, - k_EMsgAMSetClanPOTW = 4056, - k_EMsgAMSetClanPOTWResponse = 4057, - k_EMsgAMDumpUser = 4059, - k_EMsgAMKickUserFromClan = 4060, - k_EMsgAMAddFounderToClan = 4061, - k_EMsgAMValidateWGTokenResponse = 4062, - k_EMsgAMSetAccountDetails = 4064, - k_EMsgAMGetChatBanList = 4065, - k_EMsgAMGetChatBanListResponse = 4066, - k_EMsgAMUnBanFromChat = 4067, - k_EMsgAMSetClanDetails = 4068, - k_EMsgUGSGetUserGameStats = 4073, - k_EMsgUGSGetUserGameStatsResponse = 4074, - k_EMsgAMCheckClanMembership = 4075, - k_EMsgAMGetClanMembers = 4076, - k_EMsgAMGetClanMembersResponse = 4077, - k_EMsgAMNotifyChatOfClanChange = 4079, - k_EMsgAMResubmitPurchase = 4080, - k_EMsgAMAddFriend = 4081, - k_EMsgAMAddFriendResponse = 4082, - k_EMsgAMRemoveFriend = 4083, - k_EMsgAMDumpClan = 4084, - k_EMsgAMChangeClanOwner = 4085, - k_EMsgAMCancelEasyCollect = 4086, - k_EMsgAMCancelEasyCollectResponse = 4087, - k_EMsgAMClansInCommon = 4090, - k_EMsgAMClansInCommonResponse = 4091, - k_EMsgAMIsValidAccountID = 4092, - k_EMsgAMWipeFriendsList = 4095, - k_EMsgAMSetIgnored = 4096, - k_EMsgAMClansInCommonCountResponse = 4097, - k_EMsgAMFriendsList = 4098, - k_EMsgAMFriendsListResponse = 4099, - k_EMsgAMFriendsInCommon = 4100, - k_EMsgAMFriendsInCommonResponse = 4101, - k_EMsgAMFriendsInCommonCountResponse = 4102, - k_EMsgAMClansInCommonCount = 4103, - k_EMsgAMChallengeVerdict = 4104, - k_EMsgAMChallengeNotification = 4105, - k_EMsgAMFindGSByIP = 4106, - k_EMsgAMFoundGSByIP = 4107, - k_EMsgAMGiftRevoked = 4108, - k_EMsgAMUserClanList = 4110, - k_EMsgAMUserClanListResponse = 4111, - k_EMsgAMGetAccountDetails2 = 4112, - k_EMsgAMGetAccountDetailsResponse2 = 4113, - k_EMsgAMSetCommunityProfileSettings = 4114, - k_EMsgAMSetCommunityProfileSettingsResponse = 4115, - k_EMsgAMGetCommunityPrivacyState = 4116, - k_EMsgAMGetCommunityPrivacyStateResponse = 4117, - k_EMsgAMCheckClanInviteRateLimiting = 4118, - k_EMsgUGSGetUserAchievementStatus = 4119, - k_EMsgAMGetIgnored = 4120, - k_EMsgAMGetIgnoredResponse = 4121, - k_EMsgAMSetIgnoredResponse = 4122, - k_EMsgAMSetFriendRelationshipNone = 4123, - k_EMsgAMGetFriendRelationship = 4124, - k_EMsgAMGetFriendRelationshipResponse = 4125, - k_EMsgAMServiceModulesCache = 4126, - k_EMsgAMServiceModulesCall = 4127, - k_EMsgAMServiceModulesCallResponse = 4128, - k_EMsgCommunityAddFriendNews = 4140, - k_EMsgAMFindClanUser = 4143, - k_EMsgAMFindClanUserResponse = 4144, - k_EMsgAMBanFromChat = 4145, - k_EMsgAMGetUserNewsSubscriptions = 4147, - k_EMsgAMGetUserNewsSubscriptionsResponse = 4148, - k_EMsgAMSetUserNewsSubscriptions = 4149, - k_EMsgAMSendQueuedEmails = 4152, - k_EMsgAMSetLicenseFlags = 4153, - k_EMsgCommunityDeleteUserNews = 4155, - k_EMsgAMGetAccountStatus = 4158, - k_EMsgAMGetAccountStatusResponse = 4159, - k_EMsgAMEditBanReason = 4160, - k_EMsgAMCheckClanMembershipResponse = 4161, - k_EMsgAMProbeClanMembershipList = 4162, - k_EMsgAMProbeClanMembershipListResponse = 4163, - k_EMsgUGSGetUserAchievementStatusResponse = 4164, - k_EMsgAMGetFriendsLobbies = 4165, - k_EMsgAMGetFriendsLobbiesResponse = 4166, - k_EMsgAMGetUserFriendNewsResponse = 4172, - k_EMsgCommunityGetUserFriendNews = 4173, - k_EMsgAMGetUserClansNewsResponse = 4174, - k_EMsgAMGetUserClansNews = 4175, - k_EMsgAMGetPreviousCBAccount = 4184, - k_EMsgAMGetPreviousCBAccountResponse = 4185, - k_EMsgAMGetUserLicenseHistory = 4190, - k_EMsgAMGetUserLicenseHistoryResponse = 4191, - k_EMsgAMSupportChangePassword = 4194, - k_EMsgAMSupportChangeEmail = 4195, - k_EMsgAMResetUserVerificationGSByIP = 4197, - k_EMsgAMUpdateGSPlayStats = 4198, - k_EMsgAMSupportEnableOrDisable = 4199, - k_EMsgAMGetPurchaseStatus = 4206, - k_EMsgAMSupportIsAccountEnabled = 4209, - k_EMsgAMSupportIsAccountEnabledResponse = 4210, - k_EMsgUGSGetUserStats = 4211, - k_EMsgAMGSSearch = 4213, - k_EMsgChatServerRouteFriendMsg = 4219, - k_EMsgAMTicketAuthRequestOrResponse = 4220, - k_EMsgAMAddFreeLicense = 4224, - k_EMsgAMValidateEmailLink = 4231, - k_EMsgAMValidateEmailLinkResponse = 4232, - k_EMsgUGSStoreUserStats = 4236, - k_EMsgAMDeleteStoredCard = 4241, - k_EMsgAMRevokeLegacyGameKeys = 4242, - k_EMsgAMGetWalletDetails = 4244, - k_EMsgAMGetWalletDetailsResponse = 4245, - k_EMsgAMDeleteStoredPaymentInfo = 4246, - k_EMsgAMGetStoredPaymentSummary = 4247, - k_EMsgAMGetStoredPaymentSummaryResponse = 4248, - k_EMsgAMGetWalletConversionRate = 4249, - k_EMsgAMGetWalletConversionRateResponse = 4250, - k_EMsgAMConvertWallet = 4251, - k_EMsgAMConvertWalletResponse = 4252, - k_EMsgAMSetPreApproval = 4255, - k_EMsgAMSetPreApprovalResponse = 4256, - k_EMsgAMCreateRefund = 4258, - k_EMsgAMCreateChargeback = 4260, - k_EMsgAMCreateDispute = 4262, - k_EMsgAMClearDispute = 4264, - k_EMsgAMCreateFinancialAdjustment = 4265, - k_EMsgAMPlayerNicknameList = 4266, - k_EMsgAMPlayerNicknameListResponse = 4267, - k_EMsgAMGetUserCurrentGameInfo = 4269, - k_EMsgAMGetUserCurrentGameInfoResponse = 4270, - k_EMsgAMGetGSPlayerList = 4271, - k_EMsgAMGetGSPlayerListResponse = 4272, - k_EMsgAMGetSteamIDForMicroTxn = 4278, - k_EMsgAMGetSteamIDForMicroTxnResponse = 4279, - k_EMsgAMSetPartnerMember = 4280, - k_EMsgAMRemovePublisherUser = 4281, - k_EMsgAMGetUserLicenseList = 4282, - k_EMsgAMGetUserLicenseListResponse = 4283, - k_EMsgAMReloadGameGroupPolicy = 4284, - k_EMsgAMAddFreeLicenseResponse = 4285, - k_EMsgAMVACStatusUpdate = 4286, - k_EMsgAMGetAccountDetails = 4287, - k_EMsgAMGetAccountDetailsResponse = 4288, - k_EMsgAMGetPlayerLinkDetails = 4289, - k_EMsgAMGetPlayerLinkDetailsResponse = 4290, - k_EMsgAMGetAccountFlagsForWGSpoofing = 4294, - k_EMsgAMGetAccountFlagsForWGSpoofingResponse = 4295, - k_EMsgAMGetClanOfficers = 4298, - k_EMsgAMGetClanOfficersResponse = 4299, - k_EMsgAMNameChange = 4300, - k_EMsgAMGetNameHistory = 4301, - k_EMsgAMGetNameHistoryResponse = 4302, - k_EMsgAMUpdateProviderStatus = 4305, - k_EMsgAMSupportRemoveAccountSecurity = 4307, - k_EMsgAMIsAccountInCaptchaGracePeriod = 4308, - k_EMsgAMIsAccountInCaptchaGracePeriodResponse = 4309, - k_EMsgAMAccountPS3Unlink = 4310, - k_EMsgAMAccountPS3UnlinkResponse = 4311, - k_EMsgUGSStoreUserStatsResponse = 4312, - k_EMsgAMGetAccountPSNInfo = 4313, - k_EMsgAMGetAccountPSNInfoResponse = 4314, - k_EMsgAMAuthenticatedPlayerList = 4315, - k_EMsgAMGetUserGifts = 4316, - k_EMsgAMGetUserGiftsResponse = 4317, - k_EMsgAMTransferLockedGifts = 4320, - k_EMsgAMTransferLockedGiftsResponse = 4321, - k_EMsgAMPlayerHostedOnGameServer = 4322, - k_EMsgAMGetAccountBanInfo = 4323, - k_EMsgAMGetAccountBanInfoResponse = 4324, - k_EMsgAMRecordBanEnforcement = 4325, - k_EMsgAMRollbackGiftTransfer = 4326, - k_EMsgAMRollbackGiftTransferResponse = 4327, - k_EMsgAMHandlePendingTransaction = 4328, - k_EMsgAMRequestClanDetails = 4329, - k_EMsgAMDeleteStoredPaypalAgreement = 4330, - k_EMsgAMGameServerUpdate = 4331, - k_EMsgAMGameServerRemove = 4332, - k_EMsgAMGetPaypalAgreements = 4333, - k_EMsgAMGetPaypalAgreementsResponse = 4334, - k_EMsgAMGameServerPlayerCompatibilityCheck = 4335, - k_EMsgAMGameServerPlayerCompatibilityCheckResponse = 4336, - k_EMsgAMRenewLicense = 4337, - k_EMsgAMGetAccountCommunityBanInfo = 4338, - k_EMsgAMGetAccountCommunityBanInfoResponse = 4339, - k_EMsgAMGameServerAccountChangePassword = 4340, - k_EMsgAMGameServerAccountDeleteAccount = 4341, - k_EMsgAMRenewAgreement = 4342, - k_EMsgAMXsollaPayment = 4344, - k_EMsgAMXsollaPaymentResponse = 4345, - k_EMsgAMAcctAllowedToPurchase = 4346, - k_EMsgAMAcctAllowedToPurchaseResponse = 4347, - k_EMsgAMSwapKioskDeposit = 4348, - k_EMsgAMSwapKioskDepositResponse = 4349, - k_EMsgAMSetUserGiftUnowned = 4350, - k_EMsgAMSetUserGiftUnownedResponse = 4351, - k_EMsgAMClaimUnownedUserGift = 4352, - k_EMsgAMClaimUnownedUserGiftResponse = 4353, - k_EMsgAMSetClanName = 4354, - k_EMsgAMSetClanNameResponse = 4355, - k_EMsgAMGrantCoupon = 4356, - k_EMsgAMGrantCouponResponse = 4357, - k_EMsgAMIsPackageRestrictedInUserCountry = 4358, - k_EMsgAMIsPackageRestrictedInUserCountryResponse = 4359, - k_EMsgAMHandlePendingTransactionResponse = 4360, - k_EMsgAMGrantGuestPasses2 = 4361, - k_EMsgAMGrantGuestPasses2Response = 4362, - k_EMsgAMGetPlayerBanDetails = 4365, - k_EMsgAMGetPlayerBanDetailsResponse = 4366, - k_EMsgAMFinalizePurchase = 4367, - k_EMsgAMFinalizePurchaseResponse = 4368, - k_EMsgAMPersonaChangeResponse = 4372, - k_EMsgAMGetClanDetailsForForumCreation = 4373, - k_EMsgAMGetClanDetailsForForumCreationResponse = 4374, - k_EMsgAMGetPendingNotificationCount = 4375, - k_EMsgAMGetPendingNotificationCountResponse = 4376, - k_EMsgAMPasswordHashUpgrade = 4377, - k_EMsgAMBoaCompraPayment = 4380, - k_EMsgAMBoaCompraPaymentResponse = 4381, - k_EMsgAMCompleteExternalPurchase = 4383, - k_EMsgAMCompleteExternalPurchaseResponse = 4384, - k_EMsgAMResolveNegativeWalletCredits = 4385, - k_EMsgAMResolveNegativeWalletCreditsResponse = 4386, - k_EMsgAMPlayerGetClanBasicDetails = 4389, - k_EMsgAMPlayerGetClanBasicDetailsResponse = 4390, - k_EMsgAMMOLPayment = 4391, - k_EMsgAMMOLPaymentResponse = 4392, - k_EMsgGetUserIPCountry = 4393, - k_EMsgGetUserIPCountryResponse = 4394, - k_EMsgNotificationOfSuspiciousActivity = 4395, - k_EMsgAMDegicaPayment = 4396, - k_EMsgAMDegicaPaymentResponse = 4397, - k_EMsgAMEClubPayment = 4398, - k_EMsgAMEClubPaymentResponse = 4399, - k_EMsgAMPayPalPaymentsHubPayment = 4400, - k_EMsgAMPayPalPaymentsHubPaymentResponse = 4401, - k_EMsgAMTwoFactorRecoverAuthenticatorRequest = 4402, - k_EMsgAMTwoFactorRecoverAuthenticatorResponse = 4403, - k_EMsgAMSmart2PayPayment = 4404, - k_EMsgAMSmart2PayPaymentResponse = 4405, - k_EMsgAMValidatePasswordResetCodeAndSendSmsRequest = 4406, - k_EMsgAMValidatePasswordResetCodeAndSendSmsResponse = 4407, - k_EMsgAMGetAccountResetDetailsRequest = 4408, - k_EMsgAMGetAccountResetDetailsResponse = 4409, - k_EMsgAMBitPayPayment = 4410, - k_EMsgAMBitPayPaymentResponse = 4411, - k_EMsgAMSendAccountInfoUpdate = 4412, - k_EMsgAMSendScheduledGift = 4413, - k_EMsgAMNodwinPayment = 4414, - k_EMsgAMNodwinPaymentResponse = 4415, - k_EMsgAMResolveWalletRevoke = 4416, - k_EMsgAMResolveWalletReverseRevoke = 4417, - k_EMsgAMFundedPayment = 4418, - k_EMsgAMFundedPaymentResponse = 4419, - k_EMsgAMRequestPersonaUpdateForChatServer = 4420, - k_EMsgAMPerfectWorldPayment = 4421, - k_EMsgAMPerfectWorldPaymentResponse = 4422, - k_EMsgAMECommPayPayment = 4423, - k_EMsgAMECommPayPaymentResponse = 4424, - k_EMsgAMSetRemoteClientID = 4425, - k_EMsgBasePSRange = 5000, - k_EMsgPSCreateShoppingCart = 5001, - k_EMsgPSCreateShoppingCartResponse = 5002, - k_EMsgPSIsValidShoppingCart = 5003, - k_EMsgPSIsValidShoppingCartResponse = 5004, - k_EMsgPSRemoveLineItemFromShoppingCart = 5007, - k_EMsgPSRemoveLineItemFromShoppingCartResponse = 5008, - k_EMsgPSGetShoppingCartContents = 5009, - k_EMsgPSGetShoppingCartContentsResponse = 5010, - k_EMsgPSAddWalletCreditToShoppingCart = 5011, - k_EMsgPSAddWalletCreditToShoppingCartResponse = 5012, - k_EMsgBaseUFSRange = 5200, - k_EMsgClientUFSUploadFileRequest = 5202, - k_EMsgClientUFSUploadFileResponse = 5203, - k_EMsgClientUFSUploadFileChunk = 5204, - k_EMsgClientUFSUploadFileFinished = 5205, - k_EMsgClientUFSGetFileListForApp = 5206, - k_EMsgClientUFSGetFileListForAppResponse = 5207, - k_EMsgClientUFSDownloadRequest = 5210, - k_EMsgClientUFSDownloadResponse = 5211, - k_EMsgClientUFSDownloadChunk = 5212, - k_EMsgClientUFSLoginRequest = 5213, - k_EMsgClientUFSLoginResponse = 5214, - k_EMsgUFSReloadPartitionInfo = 5215, - k_EMsgClientUFSTransferHeartbeat = 5216, - k_EMsgUFSSynchronizeFile = 5217, - k_EMsgUFSSynchronizeFileResponse = 5218, - k_EMsgClientUFSDeleteFileRequest = 5219, - k_EMsgClientUFSDeleteFileResponse = 5220, - k_EMsgClientUFSGetUGCDetails = 5226, - k_EMsgClientUFSGetUGCDetailsResponse = 5227, - k_EMsgUFSUpdateFileFlags = 5228, - k_EMsgUFSUpdateFileFlagsResponse = 5229, - k_EMsgClientUFSGetSingleFileInfo = 5230, - k_EMsgClientUFSGetSingleFileInfoResponse = 5231, - k_EMsgClientUFSShareFile = 5232, - k_EMsgClientUFSShareFileResponse = 5233, - k_EMsgUFSReloadAccount = 5234, - k_EMsgUFSReloadAccountResponse = 5235, - k_EMsgUFSUpdateRecordBatched = 5236, - k_EMsgUFSUpdateRecordBatchedResponse = 5237, - k_EMsgUFSMigrateFile = 5238, - k_EMsgUFSMigrateFileResponse = 5239, - k_EMsgUFSGetUGCURLs = 5240, - k_EMsgUFSGetUGCURLsResponse = 5241, - k_EMsgUFSHttpUploadFileFinishRequest = 5242, - k_EMsgUFSHttpUploadFileFinishResponse = 5243, - k_EMsgUFSDownloadStartRequest = 5244, - k_EMsgUFSDownloadStartResponse = 5245, - k_EMsgUFSDownloadChunkRequest = 5246, - k_EMsgUFSDownloadChunkResponse = 5247, - k_EMsgUFSDownloadFinishRequest = 5248, - k_EMsgUFSDownloadFinishResponse = 5249, - k_EMsgUFSFlushURLCache = 5250, - k_EMsgClientUFSUploadCommit = 5251, - k_EMsgClientUFSUploadCommitResponse = 5252, - k_EMsgUFSMigrateFileAppID = 5253, - k_EMsgUFSMigrateFileAppIDResponse = 5254, - k_EMsgBaseClient2 = 5400, - k_EMsgClientRequestForgottenPasswordEmail = 5401, - k_EMsgClientRequestForgottenPasswordEmailResponse = 5402, - k_EMsgClientCreateAccountResponse = 5403, - k_EMsgClientResetForgottenPassword = 5404, - k_EMsgClientResetForgottenPasswordResponse = 5405, - k_EMsgClientInformOfResetForgottenPassword = 5407, - k_EMsgClientInformOfResetForgottenPasswordResponse = 5408, - k_EMsgClientAnonUserLogOn_Deprecated = 5409, - k_EMsgClientGamesPlayedWithDataBlob = 5410, - k_EMsgClientUpdateUserGameInfo = 5411, - k_EMsgClientFileToDownload = 5412, - k_EMsgClientFileToDownloadResponse = 5413, - k_EMsgClientLBSSetScore = 5414, - k_EMsgClientLBSSetScoreResponse = 5415, - k_EMsgClientLBSFindOrCreateLB = 5416, - k_EMsgClientLBSFindOrCreateLBResponse = 5417, - k_EMsgClientLBSGetLBEntries = 5418, - k_EMsgClientLBSGetLBEntriesResponse = 5419, - k_EMsgClientChatDeclined = 5426, - k_EMsgClientFriendMsgIncoming = 5427, - k_EMsgClientAuthList_Deprecated = 5428, - k_EMsgClientTicketAuthComplete = 5429, - k_EMsgClientIsLimitedAccount = 5430, - k_EMsgClientRequestAuthList = 5431, - k_EMsgClientAuthList = 5432, - k_EMsgClientStat = 5433, - k_EMsgClientP2PConnectionInfo = 5434, - k_EMsgClientP2PConnectionFailInfo = 5435, - k_EMsgClientGetDepotDecryptionKey = 5438, - k_EMsgClientGetDepotDecryptionKeyResponse = 5439, - k_EMsgClientEnableTestLicense = 5443, - k_EMsgClientEnableTestLicenseResponse = 5444, - k_EMsgClientDisableTestLicense = 5445, - k_EMsgClientDisableTestLicenseResponse = 5446, - k_EMsgClientRequestValidationMail = 5448, - k_EMsgClientRequestValidationMailResponse = 5449, - k_EMsgClientCheckAppBetaPassword = 5450, - k_EMsgClientCheckAppBetaPasswordResponse = 5451, - k_EMsgClientToGC = 5452, - k_EMsgClientFromGC = 5453, - k_EMsgClientEmailAddrInfo = 5456, - k_EMsgClientPasswordChange3 = 5457, - k_EMsgClientEmailChange3 = 5458, - k_EMsgClientPersonalQAChange3 = 5459, - k_EMsgClientResetForgottenPassword3 = 5460, - k_EMsgClientRequestForgottenPasswordEmail3 = 5461, - k_EMsgClientNewLoginKey = 5463, - k_EMsgClientNewLoginKeyAccepted = 5464, - k_EMsgClientLogOnWithHash_Deprecated = 5465, - k_EMsgClientStoreUserStats2 = 5466, - k_EMsgClientStatsUpdated = 5467, - k_EMsgClientActivateOEMLicense = 5468, - k_EMsgClientRegisterOEMMachine = 5469, - k_EMsgClientRegisterOEMMachineResponse = 5470, - k_EMsgClientRequestedClientStats = 5480, - k_EMsgClientStat2Int32 = 5481, - k_EMsgClientStat2 = 5482, - k_EMsgClientVerifyPassword = 5483, - k_EMsgClientVerifyPasswordResponse = 5484, - k_EMsgClientDRMDownloadRequest = 5485, - k_EMsgClientDRMDownloadResponse = 5486, - k_EMsgClientDRMFinalResult = 5487, - k_EMsgClientGetFriendsWhoPlayGame = 5488, - k_EMsgClientGetFriendsWhoPlayGameResponse = 5489, - k_EMsgClientOGSBeginSession = 5490, - k_EMsgClientOGSBeginSessionResponse = 5491, - k_EMsgClientOGSEndSession = 5492, - k_EMsgClientOGSEndSessionResponse = 5493, - k_EMsgClientOGSWriteRow = 5494, - k_EMsgClientGetPeerContentInfo = 5495, - k_EMsgClientGetPeerContentInfoResponse = 5496, - k_EMsgClientStartPeerContentServer = 5497, - k_EMsgClientStartPeerContentServerResponse = 5498, - k_EMsgClientServerUnavailable = 5500, - k_EMsgClientServersAvailable = 5501, - k_EMsgClientRegisterAuthTicketWithCM = 5502, - k_EMsgClientGCMsgFailed = 5503, - k_EMsgClientMicroTxnAuthRequest = 5504, - k_EMsgClientMicroTxnAuthorize = 5505, - k_EMsgClientMicroTxnAuthorizeResponse = 5506, - k_EMsgClientGetMicroTxnInfo = 5508, - k_EMsgClientGetMicroTxnInfoResponse = 5509, - k_EMsgClientDeregisterWithServer = 5511, - k_EMsgClientSubscribeToPersonaFeed = 5512, - k_EMsgClientLogon = 5514, - k_EMsgClientGetClientDetails = 5515, - k_EMsgClientGetClientDetailsResponse = 5516, - k_EMsgClientReportOverlayDetourFailure = 5517, - k_EMsgClientGetClientAppList = 5518, - k_EMsgClientGetClientAppListResponse = 5519, - k_EMsgClientInstallClientApp = 5520, - k_EMsgClientInstallClientAppResponse = 5521, - k_EMsgClientUninstallClientApp = 5522, - k_EMsgClientUninstallClientAppResponse = 5523, - k_EMsgClientSetClientAppUpdateState = 5524, - k_EMsgClientSetClientAppUpdateStateResponse = 5525, - k_EMsgClientRequestEncryptedAppTicket = 5526, - k_EMsgClientRequestEncryptedAppTicketResponse = 5527, - k_EMsgClientWalletInfoUpdate = 5528, - k_EMsgClientLBSSetUGC = 5529, - k_EMsgClientLBSSetUGCResponse = 5530, - k_EMsgClientAMGetClanOfficers = 5531, - k_EMsgClientAMGetClanOfficersResponse = 5532, - k_EMsgClientFriendProfileInfo = 5535, - k_EMsgClientFriendProfileInfoResponse = 5536, - k_EMsgClientUpdateMachineAuth = 5537, - k_EMsgClientUpdateMachineAuthResponse = 5538, - k_EMsgClientReadMachineAuth = 5539, - k_EMsgClientReadMachineAuthResponse = 5540, - k_EMsgClientRequestMachineAuth = 5541, - k_EMsgClientRequestMachineAuthResponse = 5542, - k_EMsgClientScreenshotsChanged = 5543, - k_EMsgClientGetCDNAuthToken = 5546, - k_EMsgClientGetCDNAuthTokenResponse = 5547, - k_EMsgClientDownloadRateStatistics = 5548, - k_EMsgClientRequestAccountData = 5549, - k_EMsgClientRequestAccountDataResponse = 5550, - k_EMsgClientResetForgottenPassword4 = 5551, - k_EMsgClientHideFriend = 5552, - k_EMsgClientFriendsGroupsList = 5553, - k_EMsgClientGetClanActivityCounts = 5554, - k_EMsgClientGetClanActivityCountsResponse = 5555, - k_EMsgClientOGSReportString = 5556, - k_EMsgClientOGSReportBug = 5557, - k_EMsgClientSentLogs = 5558, - k_EMsgClientLogonGameServer = 5559, - k_EMsgAMClientCreateFriendsGroup = 5560, - k_EMsgAMClientCreateFriendsGroupResponse = 5561, - k_EMsgAMClientDeleteFriendsGroup = 5562, - k_EMsgAMClientDeleteFriendsGroupResponse = 5563, - k_EMsgAMClientManageFriendsGroup = 5564, - k_EMsgAMClientManageFriendsGroupResponse = 5565, - k_EMsgAMClientAddFriendToGroup = 5566, - k_EMsgAMClientAddFriendToGroupResponse = 5567, - k_EMsgAMClientRemoveFriendFromGroup = 5568, - k_EMsgAMClientRemoveFriendFromGroupResponse = 5569, - k_EMsgClientAMGetPersonaNameHistory = 5570, - k_EMsgClientAMGetPersonaNameHistoryResponse = 5571, - k_EMsgClientRequestFreeLicense = 5572, - k_EMsgClientRequestFreeLicenseResponse = 5573, - k_EMsgClientDRMDownloadRequestWithCrashData = 5574, - k_EMsgClientAuthListAck = 5575, - k_EMsgClientItemAnnouncements = 5576, - k_EMsgClientRequestItemAnnouncements = 5577, - k_EMsgClientFriendMsgEchoToSender = 5578, - k_EMsgClientCommentNotifications = 5582, - k_EMsgClientRequestCommentNotifications = 5583, - k_EMsgClientPersonaChangeResponse = 5584, - k_EMsgClientRequestWebAPIAuthenticateUserNonce = 5585, - k_EMsgClientRequestWebAPIAuthenticateUserNonceResponse = 5586, - k_EMsgClientPlayerNicknameList = 5587, - k_EMsgAMClientSetPlayerNickname = 5588, - k_EMsgAMClientSetPlayerNicknameResponse = 5589, - k_EMsgClientGetNumberOfCurrentPlayersDP = 5592, - k_EMsgClientGetNumberOfCurrentPlayersDPResponse = 5593, - k_EMsgClientServiceMethodLegacy = 5594, - k_EMsgClientServiceMethodLegacyResponse = 5595, - k_EMsgClientFriendUserStatusPublished = 5596, - k_EMsgClientCurrentUIMode = 5597, - k_EMsgClientVanityURLChangedNotification = 5598, - k_EMsgClientUserNotifications = 5599, - k_EMsgBaseDFS = 5600, - k_EMsgDFSGetFile = 5601, - k_EMsgDFSInstallLocalFile = 5602, - k_EMsgDFSConnection = 5603, - k_EMsgDFSConnectionReply = 5604, - k_EMsgClientDFSAuthenticateRequest = 5605, - k_EMsgClientDFSAuthenticateResponse = 5606, - k_EMsgClientDFSEndSession = 5607, - k_EMsgDFSPurgeFile = 5608, - k_EMsgDFSRouteFile = 5609, - k_EMsgDFSGetFileFromServer = 5610, - k_EMsgDFSAcceptedResponse = 5611, - k_EMsgDFSRequestPingback = 5612, - k_EMsgDFSRecvTransmitFile = 5613, - k_EMsgDFSSendTransmitFile = 5614, - k_EMsgDFSRequestPingback2 = 5615, - k_EMsgDFSResponsePingback2 = 5616, - k_EMsgClientDFSDownloadStatus = 5617, - k_EMsgDFSStartTransfer = 5618, - k_EMsgDFSTransferComplete = 5619, - k_EMsgDFSRouteFileResponse = 5620, - k_EMsgClientNetworkingCertRequest = 5621, - k_EMsgClientNetworkingCertRequestResponse = 5622, - k_EMsgClientChallengeRequest = 5623, - k_EMsgClientChallengeResponse = 5624, - k_EMsgBadgeCraftedNotification = 5625, - k_EMsgClientNetworkingMobileCertRequest = 5626, - k_EMsgClientNetworkingMobileCertRequestResponse = 5627, - k_EMsgBaseMDS = 5800, - k_EMsgMDSGetDepotDecryptionKey = 5812, - k_EMsgMDSGetDepotDecryptionKeyResponse = 5813, - k_EMsgMDSContentServerConfigRequest = 5827, - k_EMsgMDSContentServerConfig = 5828, - k_EMsgMDSGetDepotManifest = 5829, - k_EMsgMDSGetDepotManifestResponse = 5830, - k_EMsgMDSGetDepotManifestChunk = 5831, - k_EMsgMDSGetDepotChunk = 5832, - k_EMsgMDSGetDepotChunkResponse = 5833, - k_EMsgMDSGetDepotChunkChunk = 5834, - k_EMsgMDSToCSFlushChunk = 5844, - k_EMsgMDSMigrateChunk = 5847, - k_EMsgMDSMigrateChunkResponse = 5848, - k_EMsgMDSToCSFlushManifest = 5849, - k_EMsgCSBase = 6200, - k_EMsgCSPing = 6201, - k_EMsgCSPingResponse = 6202, - k_EMsgGMSBase = 6400, - k_EMsgGMSGameServerReplicate = 6401, - k_EMsgClientGMSServerQuery = 6403, - k_EMsgGMSClientServerQueryResponse = 6404, - k_EMsgAMGMSGameServerUpdate = 6405, - k_EMsgAMGMSGameServerRemove = 6406, - k_EMsgGameServerOutOfDate = 6407, - k_EMsgDeviceAuthorizationBase = 6500, - k_EMsgClientAuthorizeLocalDeviceRequest = 6501, - k_EMsgClientAuthorizeLocalDeviceResponse = 6502, - k_EMsgClientDeauthorizeDeviceRequest = 6503, - k_EMsgClientDeauthorizeDevice = 6504, - k_EMsgClientUseLocalDeviceAuthorizations = 6505, - k_EMsgClientGetAuthorizedDevices = 6506, - k_EMsgClientGetAuthorizedDevicesResponse = 6507, - k_EMsgAMNotifySessionDeviceAuthorized = 6508, - k_EMsgClientAuthorizeLocalDeviceNotification = 6509, - k_EMsgMMSBase = 6600, - k_EMsgClientMMSCreateLobby = 6601, - k_EMsgClientMMSCreateLobbyResponse = 6602, - k_EMsgClientMMSJoinLobby = 6603, - k_EMsgClientMMSJoinLobbyResponse = 6604, - k_EMsgClientMMSLeaveLobby = 6605, - k_EMsgClientMMSLeaveLobbyResponse = 6606, - k_EMsgClientMMSGetLobbyList = 6607, - k_EMsgClientMMSGetLobbyListResponse = 6608, - k_EMsgClientMMSSetLobbyData = 6609, - k_EMsgClientMMSSetLobbyDataResponse = 6610, - k_EMsgClientMMSGetLobbyData = 6611, - k_EMsgClientMMSLobbyData = 6612, - k_EMsgClientMMSSendLobbyChatMsg = 6613, - k_EMsgClientMMSLobbyChatMsg = 6614, - k_EMsgClientMMSSetLobbyOwner = 6615, - k_EMsgClientMMSSetLobbyOwnerResponse = 6616, - k_EMsgClientMMSSetLobbyGameServer = 6617, - k_EMsgClientMMSLobbyGameServerSet = 6618, - k_EMsgClientMMSUserJoinedLobby = 6619, - k_EMsgClientMMSUserLeftLobby = 6620, - k_EMsgClientMMSInviteToLobby = 6621, - k_EMsgClientMMSFlushFrenemyListCache = 6622, - k_EMsgClientMMSFlushFrenemyListCacheResponse = 6623, - k_EMsgClientMMSSetLobbyLinked = 6624, - k_EMsgClientMMSSetRatelimitPolicyOnClient = 6625, - k_EMsgClientMMSGetLobbyStatus = 6626, - k_EMsgClientMMSGetLobbyStatusResponse = 6627, - k_EMsgMMSGetLobbyList = 6628, - k_EMsgMMSGetLobbyListResponse = 6629, - k_EMsgNonStdMsgBase = 6800, - k_EMsgNonStdMsgMemcached = 6801, - k_EMsgNonStdMsgHTTPServer = 6802, - k_EMsgNonStdMsgHTTPClient = 6803, - k_EMsgNonStdMsgWGResponse = 6804, - k_EMsgNonStdMsgPHPSimulator = 6805, - k_EMsgNonStdMsgChase = 6806, - k_EMsgNonStdMsgDFSTransfer = 6807, - k_EMsgNonStdMsgTests = 6808, - k_EMsgNonStdMsgUMQpipeAAPL = 6809, - k_EMSgNonStdMsgSyslog = 6810, - k_EMsgNonStdMsgLogsink = 6811, - k_EMsgNonStdMsgSteam2Emulator = 6812, - k_EMsgNonStdMsgRTMPServer = 6813, - k_EMsgNonStdMsgWebSocket = 6814, - k_EMsgNonStdMsgRedis = 6815, - k_EMsgUDSBase = 7000, - k_EMsgClientUDSP2PSessionStarted = 7001, - k_EMsgClientUDSP2PSessionEnded = 7002, - k_EMsgUDSRenderUserAuth = 7003, - k_EMsgUDSRenderUserAuthResponse = 7004, - k_EMsgClientInviteToGame = 7005, - k_EMsgUDSHasSession = 7006, - k_EMsgUDSHasSessionResponse = 7007, - k_EMsgMPASBase = 7100, - k_EMsgMPASVacBanReset = 7101, - k_EMsgKGSBase = 7200, - k_EMsgUCMBase = 7300, - k_EMsgClientUCMAddScreenshot = 7301, - k_EMsgClientUCMAddScreenshotResponse = 7302, - k_EMsgUCMResetCommunityContent = 7307, - k_EMsgUCMResetCommunityContentResponse = 7308, - k_EMsgClientUCMDeleteScreenshot = 7309, - k_EMsgClientUCMDeleteScreenshotResponse = 7310, - k_EMsgClientUCMPublishFile = 7311, - k_EMsgClientUCMPublishFileResponse = 7312, - k_EMsgClientUCMDeletePublishedFile = 7315, - k_EMsgClientUCMDeletePublishedFileResponse = 7316, - k_EMsgClientUCMUpdatePublishedFile = 7325, - k_EMsgClientUCMUpdatePublishedFileResponse = 7326, - k_EMsgUCMUpdatePublishedFile = 7327, - k_EMsgUCMUpdatePublishedFileResponse = 7328, - k_EMsgUCMUpdatePublishedFileStat = 7331, - k_EMsgUCMReloadPublishedFile = 7337, - k_EMsgUCMReloadUserFileListCaches = 7338, - k_EMsgUCMPublishedFileReported = 7339, - k_EMsgUCMPublishedFilePreviewAdd = 7341, - k_EMsgUCMPublishedFilePreviewAddResponse = 7342, - k_EMsgUCMPublishedFilePreviewRemove = 7343, - k_EMsgUCMPublishedFilePreviewRemoveResponse = 7344, - k_EMsgUCMPublishedFileSubscribed = 7349, - k_EMsgUCMPublishedFileUnsubscribed = 7350, - k_EMsgUCMPublishFile = 7351, - k_EMsgUCMPublishFileResponse = 7352, - k_EMsgUCMPublishedFileChildAdd = 7353, - k_EMsgUCMPublishedFileChildAddResponse = 7354, - k_EMsgUCMPublishedFileChildRemove = 7355, - k_EMsgUCMPublishedFileChildRemoveResponse = 7356, - k_EMsgUCMPublishedFileParentChanged = 7359, - k_EMsgClientUCMSetUserPublishedFileAction = 7364, - k_EMsgClientUCMSetUserPublishedFileActionResponse = 7365, - k_EMsgClientUCMEnumeratePublishedFilesByUserAction = 7366, - k_EMsgClientUCMEnumeratePublishedFilesByUserActionResponse = 7367, - k_EMsgUCMGetUserSubscribedFiles = 7369, - k_EMsgUCMGetUserSubscribedFilesResponse = 7370, - k_EMsgUCMFixStatsPublishedFile = 7371, - k_EMsgClientUCMEnumerateUserSubscribedFilesWithUpdates = 7378, - k_EMsgClientUCMEnumerateUserSubscribedFilesWithUpdatesResponse = 7379, - k_EMsgUCMPublishedFileContentUpdated = 7380, - k_EMsgClientUCMPublishedFileUpdated = 7381, - k_EMsgFSBase = 7500, - k_EMsgClientRichPresenceUpload = 7501, - k_EMsgClientRichPresenceRequest = 7502, - k_EMsgClientRichPresenceInfo = 7503, - k_EMsgFSRichPresenceRequest = 7504, - k_EMsgFSRichPresenceResponse = 7505, - k_EMsgFSComputeFrenematrix = 7506, - k_EMsgFSComputeFrenematrixResponse = 7507, - k_EMsgFSPlayStatusNotification = 7508, - k_EMsgFSAddOrRemoveFollower = 7510, - k_EMsgFSAddOrRemoveFollowerResponse = 7511, - k_EMsgFSUpdateFollowingList = 7512, - k_EMsgFSCommentNotification = 7513, - k_EMsgFSCommentNotificationViewed = 7514, - k_EMsgClientFSGetFollowerCount = 7515, - k_EMsgClientFSGetFollowerCountResponse = 7516, - k_EMsgClientFSGetIsFollowing = 7517, - k_EMsgClientFSGetIsFollowingResponse = 7518, - k_EMsgClientFSEnumerateFollowingList = 7519, - k_EMsgClientFSEnumerateFollowingListResponse = 7520, - k_EMsgFSGetPendingNotificationCount = 7521, - k_EMsgFSGetPendingNotificationCountResponse = 7522, - k_EMsgClientChatOfflineMessageNotification = 7523, - k_EMsgClientChatRequestOfflineMessageCount = 7524, - k_EMsgClientChatGetFriendMessageHistory = 7525, - k_EMsgClientChatGetFriendMessageHistoryResponse = 7526, - k_EMsgClientChatGetFriendMessageHistoryForOfflineMessages = 7527, - k_EMsgClientFSGetFriendsSteamLevels = 7528, - k_EMsgClientFSGetFriendsSteamLevelsResponse = 7529, - k_EMsgAMRequestFriendData = 7530, - k_EMsgDRMRange2 = 7600, - k_EMsgCEGVersionSetEnableDisableRequest = 7600, - k_EMsgCEGVersionSetEnableDisableResponse = 7601, - k_EMsgCEGPropStatusDRMSRequest = 7602, - k_EMsgCEGPropStatusDRMSResponse = 7603, - k_EMsgCEGWhackFailureReportRequest = 7604, - k_EMsgCEGWhackFailureReportResponse = 7605, - k_EMsgDRMSFetchVersionSet = 7606, - k_EMsgDRMSFetchVersionSetResponse = 7607, - k_EMsgEconBase = 7700, - k_EMsgEconTrading_InitiateTradeRequest = 7701, - k_EMsgEconTrading_InitiateTradeProposed = 7702, - k_EMsgEconTrading_InitiateTradeResponse = 7703, - k_EMsgEconTrading_InitiateTradeResult = 7704, - k_EMsgEconTrading_StartSession = 7705, - k_EMsgEconTrading_CancelTradeRequest = 7706, - k_EMsgEconFlushInventoryCache = 7707, - k_EMsgEconFlushInventoryCacheResponse = 7708, - k_EMsgEconCDKeyProcessTransaction = 7711, - k_EMsgEconCDKeyProcessTransactionResponse = 7712, - k_EMsgEconGetErrorLogs = 7713, - k_EMsgEconGetErrorLogsResponse = 7714, - k_EMsgRMRange = 7800, - k_EMsgRMTestVerisignOTP = 7800, - k_EMsgRMTestVerisignOTPResponse = 7801, - k_EMsgRMDeleteMemcachedKeys = 7803, - k_EMsgRMRemoteInvoke = 7804, - k_EMsgBadLoginIPList = 7805, - k_EMsgRMMsgTraceAddTrigger = 7806, - k_EMsgRMMsgTraceRemoveTrigger = 7807, - k_EMsgRMMsgTraceEvent = 7808, - k_EMsgUGSBase = 7900, - k_EMsgUGSUpdateGlobalStats = 7900, - k_EMsgClientUGSGetGlobalStats = 7901, - k_EMsgClientUGSGetGlobalStatsResponse = 7902, - k_EMsgStoreBase = 8000, - k_EMsgUMQBase = 8100, - k_EMsgUMQLogonRequest = 8100, - k_EMsgUMQLogonResponse = 8101, - k_EMsgUMQLogoffRequest = 8102, - k_EMsgUMQLogoffResponse = 8103, - k_EMsgUMQSendChatMessage = 8104, - k_EMsgUMQIncomingChatMessage = 8105, - k_EMsgUMQPoll = 8106, - k_EMsgUMQPollResults = 8107, - k_EMsgUMQ2AM_ClientMsgBatch = 8108, - k_EMsgWorkshopBase = 8200, - k_EMsgWebAPIBase = 8300, - k_EMsgWebAPIValidateOAuth2Token = 8300, - k_EMsgWebAPIValidateOAuth2TokenResponse = 8301, - k_EMsgWebAPIRegisterGCInterfaces = 8303, - k_EMsgWebAPIInvalidateOAuthClientCache = 8304, - k_EMsgWebAPIInvalidateOAuthTokenCache = 8305, - k_EMsgWebAPISetSecrets = 8306, - k_EMsgBackpackBase = 8400, - k_EMsgBackpackAddToCurrency = 8401, - k_EMsgBackpackAddToCurrencyResponse = 8402, - k_EMsgCREBase = 8500, - k_EMsgCREItemVoteSummary = 8503, - k_EMsgCREItemVoteSummaryResponse = 8504, - k_EMsgCREUpdateUserPublishedItemVote = 8507, - k_EMsgCREUpdateUserPublishedItemVoteResponse = 8508, - k_EMsgCREGetUserPublishedItemVoteDetails = 8509, - k_EMsgCREGetUserPublishedItemVoteDetailsResponse = 8510, - k_EMsgSecretsBase = 8600, - k_EMsgSecretsRequestCredentialPair = 8600, - k_EMsgSecretsCredentialPairResponse = 8601, - k_EMsgBoxMonitorBase = 8700, - k_EMsgBoxMonitorReportRequest = 8700, - k_EMsgBoxMonitorReportResponse = 8701, - k_EMsgLogsinkBase = 8800, - k_EMsgLogsinkWriteReport = 8800, - k_EMsgPICSBase = 8900, - k_EMsgClientPICSChangesSinceRequest = 8901, - k_EMsgClientPICSChangesSinceResponse = 8902, - k_EMsgClientPICSProductInfoRequest = 8903, - k_EMsgClientPICSProductInfoResponse = 8904, - k_EMsgClientPICSAccessTokenRequest = 8905, - k_EMsgClientPICSAccessTokenResponse = 8906, - k_EMsgWorkerProcess = 9000, - k_EMsgWorkerProcessPingRequest = 9000, - k_EMsgWorkerProcessPingResponse = 9001, - k_EMsgWorkerProcessShutdown = 9002, - k_EMsgDRMWorkerProcess = 9100, - k_EMsgDRMWorkerProcessDRMAndSign = 9100, - k_EMsgDRMWorkerProcessDRMAndSignResponse = 9101, - k_EMsgDRMWorkerProcessSteamworksInfoRequest = 9102, - k_EMsgDRMWorkerProcessSteamworksInfoResponse = 9103, - k_EMsgDRMWorkerProcessInstallDRMDLLRequest = 9104, - k_EMsgDRMWorkerProcessInstallDRMDLLResponse = 9105, - k_EMsgDRMWorkerProcessSecretIdStringRequest = 9106, - k_EMsgDRMWorkerProcessSecretIdStringResponse = 9107, - k_EMsgDRMWorkerProcessInstallProcessedFilesRequest = 9110, - k_EMsgDRMWorkerProcessInstallProcessedFilesResponse = 9111, - k_EMsgDRMWorkerProcessExamineBlobRequest = 9112, - k_EMsgDRMWorkerProcessExamineBlobResponse = 9113, - k_EMsgDRMWorkerProcessDescribeSecretRequest = 9114, - k_EMsgDRMWorkerProcessDescribeSecretResponse = 9115, - k_EMsgDRMWorkerProcessBackfillOriginalRequest = 9116, - k_EMsgDRMWorkerProcessBackfillOriginalResponse = 9117, - k_EMsgDRMWorkerProcessValidateDRMDLLRequest = 9118, - k_EMsgDRMWorkerProcessValidateDRMDLLResponse = 9119, - k_EMsgDRMWorkerProcessValidateFileRequest = 9120, - k_EMsgDRMWorkerProcessValidateFileResponse = 9121, - k_EMsgDRMWorkerProcessSplitAndInstallRequest = 9122, - k_EMsgDRMWorkerProcessSplitAndInstallResponse = 9123, - k_EMsgDRMWorkerProcessGetBlobRequest = 9124, - k_EMsgDRMWorkerProcessGetBlobResponse = 9125, - k_EMsgDRMWorkerProcessEvaluateCrashRequest = 9126, - k_EMsgDRMWorkerProcessEvaluateCrashResponse = 9127, - k_EMsgDRMWorkerProcessAnalyzeFileRequest = 9128, - k_EMsgDRMWorkerProcessAnalyzeFileResponse = 9129, - k_EMsgDRMWorkerProcessUnpackBlobRequest = 9130, - k_EMsgDRMWorkerProcessUnpackBlobResponse = 9131, - k_EMsgDRMWorkerProcessInstallAllRequest = 9132, - k_EMsgDRMWorkerProcessInstallAllResponse = 9133, - k_EMsgTestWorkerProcess = 9200, - k_EMsgTestWorkerProcessLoadUnloadModuleRequest = 9200, - k_EMsgTestWorkerProcessLoadUnloadModuleResponse = 9201, - k_EMsgTestWorkerProcessServiceModuleCallRequest = 9202, - k_EMsgTestWorkerProcessServiceModuleCallResponse = 9203, - k_EMsgQuestServerBase = 9300, - k_EMsgClientGetEmoticonList = 9330, - k_EMsgClientEmoticonList = 9331, - k_EMsgSLCBase = 9400, - k_EMsgSLCUserSessionStatus = 9400, - k_EMsgSLCRequestUserSessionStatus = 9401, - k_EMsgSLCSharedLicensesLockStatus = 9402, - k_EMsgClientSharedLibraryLockStatus = 9405, - k_EMsgClientSharedLibraryStopPlaying = 9406, - k_EMsgSLCOwnerLibraryChanged = 9407, - k_EMsgSLCSharedLibraryChanged = 9408, - k_EMsgRemoteClientBase = 9500, - k_EMsgRemoteClientAuth_OBSOLETE = 9500, - k_EMsgRemoteClientAuthResponse_OBSOLETE = 9501, - k_EMsgRemoteClientAppStatus = 9502, - k_EMsgRemoteClientStartStream = 9503, - k_EMsgRemoteClientStartStreamResponse = 9504, - k_EMsgRemoteClientPing = 9505, - k_EMsgRemoteClientPingResponse = 9506, - k_EMsgClientUnlockH264 = 9507, - k_EMsgClientUnlockH264Response = 9508, - k_EMsgRemoteClientAcceptEULA = 9509, - k_EMsgRemoteClientGetControllerConfig = 9510, - k_EMsgRemoteClientGetControllerConfigResponse = 9511, - k_EMsgRemoteClientStreamingEnabled = 9512, - k_EMsgClientUnlockHEVC_OBSOLETE = 9513, - k_EMsgClientUnlockHEVCResponse_OBSOLETE = 9514, - k_EMsgRemoteClientStatusRequest = 9515, - k_EMsgRemoteClientStatusResponse = 9516, - k_EMsgClientConcurrentSessionsBase = 9600, - k_EMsgClientPlayingSessionState = 9600, - k_EMsgClientKickPlayingSession = 9601, - k_EMsgClientBroadcastBase = 9700, - k_EMsgClientBroadcastInit = 9700, - k_EMsgClientBroadcastFrames = 9701, - k_EMsgClientBroadcastDisconnect = 9702, - k_EMsgClientBroadcastUploadConfig = 9704, - k_EMsgBaseClient3 = 9800, - k_EMsgClientVoiceCallPreAuthorize = 9800, - k_EMsgClientVoiceCallPreAuthorizeResponse = 9801, - k_EMsgClientServerTimestampRequest = 9802, - k_EMsgClientServerTimestampResponse = 9803, - k_EMsgServiceMethodCallFromClientNonAuthed = 9804, - k_EMsgClientHello = 9805, - k_EMsgClientEnableOrDisableDownloads = 9806, - k_EMsgClientEnableOrDisableDownloadsResponse = 9807, - k_EMsgClientLANP2PBase = 9900, - k_EMsgClientLANP2PRequestChunk = 9900, - k_EMsgClientLANP2PRequestChunkResponse = 9901, - k_EMsgClientPeerChunkRequest = 9902, - k_EMsgClientPeerChunkResponse = 9903, - k_EMsgClientLANP2PMax = 9999, - k_EMsgBaseWatchdogServer = 10000, - k_EMsgNotifyWatchdog = 10000, - k_EMsgClientSiteLicenseBase = 10100, - k_EMsgClientSiteLicenseSiteInfoNotification = 10100, - k_EMsgClientSiteLicenseCheckout = 10101, - k_EMsgClientSiteLicenseCheckoutResponse = 10102, - k_EMsgClientSiteLicenseGetAvailableSeats = 10103, - k_EMsgClientSiteLicenseGetAvailableSeatsResponse = 10104, - k_EMsgClientSiteLicenseGetContentCacheInfo = 10105, - k_EMsgClientSiteLicenseGetContentCacheInfoResponse = 10106, - k_EMsgBaseChatServer = 12000, - k_EMsgChatServerGetPendingNotificationCount = 12000, - k_EMsgChatServerGetPendingNotificationCountResponse = 12001, - k_EMsgBaseSecretServer = 12100, - k_EMsgServerSecretChanged = 12100, - k_EMsgBaseWG = 12200, - k_EMsgWGConnectionProtocolError = 12200, - k_EMsgWGConnectionValidateUserToken = 12201, - k_EMsgWGConnectionValidateUserTokenResponse = 12202, - k_EMsgWGConnectionLegacyWGRequest = 12203, - k_EMsgWGConnectionLegacyWGResponse = 12204, + k_EMsgInvalid = 0, + k_EMsgMulti = 1, + k_EMsgProtobufWrapped = 2, + k_EMsgBaseGeneral = 100, + k_EMsgGenericReply = 100, + k_EMsgDestJobFailed = 113, + k_EMsgAlert = 115, + k_EMsgSCIDRequest = 120, + k_EMsgSCIDResponse = 121, + k_EMsgJobHeartbeat = 123, + k_EMsgHubConnect = 124, + k_EMsgSubscribe = 126, + k_EMRouteMessage = 127, + k_EMsgWGRequest = 130, + k_EMsgWGResponse = 131, + k_EMsgKeepAlive = 132, + k_EMsgWebAPIJobRequest = 133, + k_EMsgWebAPIJobResponse = 134, + k_EMsgClientSessionStart = 135, + k_EMsgClientSessionEnd = 136, + k_EMsgClientSessionUpdate = 137, + k_EMsgStatsDeprecated = 138, + k_EMsgPing = 139, + k_EMsgPingResponse = 140, + k_EMsgStats = 141, + k_EMsgRequestFullStatsBlock = 142, + k_EMsgLoadDBOCacheItem = 143, + k_EMsgLoadDBOCacheItemResponse = 144, + k_EMsgInvalidateDBOCacheItems = 145, + k_EMsgServiceMethod = 146, + k_EMsgServiceMethodResponse = 147, + k_EMsgClientPackageVersions = 148, + k_EMsgTimestampRequest = 149, + k_EMsgTimestampResponse = 150, + k_EMsgServiceMethodCallFromClient = 151, + k_EMsgServiceMethodSendToClient = 152, + k_EMsgBaseShell = 200, + k_EMsgAssignSysID = 200, + k_EMsgExit = 201, + k_EMsgDirRequest = 202, + k_EMsgDirResponse = 203, + k_EMsgZipRequest = 204, + k_EMsgZipResponse = 205, + k_EMsgUpdateRecordResponse = 215, + k_EMsgUpdateCreditCardRequest = 221, + k_EMsgUpdateUserBanResponse = 225, + k_EMsgPrepareToExit = 226, + k_EMsgContentDescriptionUpdate = 227, + k_EMsgTestResetServer = 228, + k_EMsgUniverseChanged = 229, + k_EMsgShellConfigInfoUpdate = 230, + k_EMsgRequestWindowsEventLogEntries = 233, + k_EMsgProvideWindowsEventLogEntries = 234, + k_EMsgShellSearchLogs = 235, + k_EMsgShellSearchLogsResponse = 236, + k_EMsgShellCheckWindowsUpdates = 237, + k_EMsgShellCheckWindowsUpdatesResponse = 238, + k_EMsgTestFlushDelayedSQL = 240, + k_EMsgTestFlushDelayedSQLResponse = 241, + k_EMsgEnsureExecuteScheduledTask_TEST = 242, + k_EMsgEnsureExecuteScheduledTaskResponse_TEST = 243, + k_EMsgUpdateScheduledTaskEnableState_TEST = 244, + k_EMsgUpdateScheduledTaskEnableStateResponse_TEST = 245, + k_EMsgContentDescriptionDeltaUpdate = 246, + k_EMsgGMShellAndServerAddressUpdates = 247, + k_EMsgBaseGM = 300, + k_EMsgHeartbeat = 300, + k_EMsgShellFailed = 301, + k_EMsgExitShells = 307, + k_EMsgExitShell = 308, + k_EMsgGracefulExitShell = 309, + k_EMsgLicenseProcessingComplete = 316, + k_EMsgSetTestFlag = 317, + k_EMsgQueuedEmailsComplete = 318, + k_EMsgGMDRMSync = 320, + k_EMsgPhysicalBoxInventory = 321, + k_EMsgUpdateConfigFile = 322, + k_EMsgTestInitDB = 323, + k_EMsgGMWriteConfigToSQL = 324, + k_EMsgGMLoadActivationCodes = 325, + k_EMsgGMQueueForFBS = 326, + k_EMsgGMSchemaConversionResults = 327, + k_EMsgGMWriteShellFailureToSQL = 329, + k_EMsgGMWriteStatsToSOS = 330, + k_EMsgGMGetServiceMethodRouting = 331, + k_EMsgGMGetServiceMethodRoutingResponse = 332, + k_EMsgGMTestNextBuildSchemaConversion = 334, + k_EMsgGMTestNextBuildSchemaConversionResponse = 335, + k_EMsgExpectShellRestart = 336, + k_EMsgHotFixProgress = 337, + k_EMsgGMStatsForwardToAdminConnections = 338, + k_EMsgGMGetModifiedConVars = 339, + k_EMsgGMGetModifiedConVarsResponse = 340, + k_EMsgBaseAIS = 400, + k_EMsgAISRequestContentDescription = 402, + k_EMsgAISUpdateAppInfo = 403, + k_EMsgAISGetPackageChangeNumber = 405, + k_EMsgAISGetPackageChangeNumberResponse = 406, + k_EMsgAIGetAppGCFlags = 423, + k_EMsgAIGetAppGCFlagsResponse = 424, + k_EMsgAIGetAppList = 425, + k_EMsgAIGetAppListResponse = 426, + k_EMsgAISGetCouponDefinition = 429, + k_EMsgAISGetCouponDefinitionResponse = 430, + k_EMsgAISUpdateSubordinateContentDescription = 431, + k_EMsgAISUpdateSubordinateContentDescriptionResponse = 432, + k_EMsgAISTestEnableGC = 433, + k_EMsgBaseAM = 500, + k_EMsgAMUpdateUserBanRequest = 504, + k_EMsgAMAddLicense = 505, + k_EMsgAMSendSystemIMToUser = 508, + k_EMsgAMExtendLicense = 509, + k_EMsgAMAddMinutesToLicense = 510, + k_EMsgAMCancelLicense = 511, + k_EMsgAMInitPurchase = 512, + k_EMsgAMPurchaseResponse = 513, + k_EMsgAMGetFinalPrice = 514, + k_EMsgAMGetFinalPriceResponse = 515, + k_EMsgAMGetLegacyGameKey = 516, + k_EMsgAMGetLegacyGameKeyResponse = 517, + k_EMsgAMFindHungTransactions = 518, + k_EMsgAMSetAccountTrustedRequest = 519, + k_EMsgAMCancelPurchase = 522, + k_EMsgAMNewChallenge = 523, + k_EMsgAMLoadOEMTickets = 524, + k_EMsgAMFixPendingPurchase = 525, + k_EMsgAMFixPendingPurchaseResponse = 526, + k_EMsgAMIsUserBanned = 527, + k_EMsgAMRegisterKey = 528, + k_EMsgAMLoadActivationCodes = 529, + k_EMsgAMLoadActivationCodesResponse = 530, + k_EMsgAMLookupKeyResponse = 531, + k_EMsgAMLookupKey = 532, + k_EMsgAMChatCleanup = 533, + k_EMsgAMClanCleanup = 534, + k_EMsgAMFixPendingRefund = 535, + k_EMsgAMReverseChargeback = 536, + k_EMsgAMReverseChargebackResponse = 537, + k_EMsgAMClanCleanupList = 538, + k_EMsgAMGetLicenses = 539, + k_EMsgAMGetLicensesResponse = 540, + k_EMsgAMSendCartRepurchase = 541, + k_EMsgAMSendCartRepurchaseResponse = 542, + k_EMsgAllowUserToPlayQuery = 550, + k_EMsgAllowUserToPlayResponse = 551, + k_EMsgAMVerfiyUser = 552, + k_EMsgAMClientNotPlaying = 553, + k_EMsgAMClientRequestFriendship = 554, + k_EMsgAMRelayPublishStatus = 555, + k_EMsgAMInitPurchaseResponse = 560, + k_EMsgAMRevokePurchaseResponse = 561, + k_EMsgAMRefreshGuestPasses = 563, + k_EMsgAMGrantGuestPasses = 566, + k_EMsgAMClanDataUpdated = 567, + k_EMsgAMReloadAccount = 568, + k_EMsgAMClientChatMsgRelay = 569, + k_EMsgAMChatMulti = 570, + k_EMsgAMClientChatInviteRelay = 571, + k_EMsgAMChatInvite = 572, + k_EMsgAMClientJoinChatRelay = 573, + k_EMsgAMClientChatMemberInfoRelay = 574, + k_EMsgAMPublishChatMemberInfo = 575, + k_EMsgAMClientAcceptFriendInvite = 576, + k_EMsgAMChatEnter = 577, + k_EMsgAMClientPublishRemovalFromSource = 578, + k_EMsgAMChatActionResult = 579, + k_EMsgAMFindAccounts = 580, + k_EMsgAMFindAccountsResponse = 581, + k_EMsgAMIsAccountNameInUse = 582, + k_EMsgAMIsAccountNameInUseResponse = 583, + k_EMsgAMSetAccountFlags = 584, + k_EMsgAMCreateClan = 586, + k_EMsgAMCreateClanResponse = 587, + k_EMsgAMGetClanDetails = 588, + k_EMsgAMGetClanDetailsResponse = 589, + k_EMsgAMSetPersonaName = 590, + k_EMsgAMSetAvatar = 591, + k_EMsgAMAuthenticateUser = 592, + k_EMsgAMAuthenticateUserResponse = 593, + k_EMsgAMP2PIntroducerMessage = 596, + k_EMsgClientChatAction = 597, + k_EMsgAMClientChatActionRelay = 598, + k_EMsgBaseVS = 600, + k_EMsgReqChallenge = 600, + k_EMsgVACResponse = 601, + k_EMsgReqChallengeTest = 602, + k_EMsgVSMarkCheat = 604, + k_EMsgVSAddCheat = 605, + k_EMsgVSPurgeCodeModDB = 606, + k_EMsgVSGetChallengeResults = 607, + k_EMsgVSChallengeResultText = 608, + k_EMsgVSReportLingerer = 609, + k_EMsgVSRequestManagedChallenge = 610, + k_EMsgVSLoadDBFinished = 611, + k_EMsgBaseDRMS = 625, + k_EMsgDRMBuildBlobRequest = 628, + k_EMsgDRMBuildBlobResponse = 629, + k_EMsgDRMResolveGuidRequest = 630, + k_EMsgDRMResolveGuidResponse = 631, + k_EMsgDRMVariabilityReport = 633, + k_EMsgDRMVariabilityReportResponse = 634, + k_EMsgDRMStabilityReport = 635, + k_EMsgDRMStabilityReportResponse = 636, + k_EMsgDRMDetailsReportRequest = 637, + k_EMsgDRMDetailsReportResponse = 638, + k_EMsgDRMProcessFile = 639, + k_EMsgDRMAdminUpdate = 640, + k_EMsgDRMAdminUpdateResponse = 641, + k_EMsgDRMSync = 642, + k_EMsgDRMSyncResponse = 643, + k_EMsgDRMProcessFileResponse = 644, + k_EMsgDRMEmptyGuidCache = 645, + k_EMsgDRMEmptyGuidCacheResponse = 646, + k_EMsgBaseCS = 650, + k_EMsgBaseClient = 700, + k_EMsgClientLogOn_Deprecated = 701, + k_EMsgClientAnonLogOn_Deprecated = 702, + k_EMsgClientHeartBeat = 703, + k_EMsgClientVACResponse = 704, + k_EMsgClientGamesPlayed_obsolete = 705, + k_EMsgClientLogOff = 706, + k_EMsgClientNoUDPConnectivity = 707, + k_EMsgClientConnectionStats = 710, + k_EMsgClientPingResponse = 712, + k_EMsgClientRemoveFriend = 714, + k_EMsgClientGamesPlayedNoDataBlob = 715, + k_EMsgClientChangeStatus = 716, + k_EMsgClientVacStatusResponse = 717, + k_EMsgClientFriendMsg = 718, + k_EMsgClientGameConnect_obsolete = 719, + k_EMsgClientGamesPlayed2_obsolete = 720, + k_EMsgClientGameEnded_obsolete = 721, + k_EMsgClientSystemIM = 726, + k_EMsgClientSystemIMAck = 727, + k_EMsgClientGetLicenses = 728, + k_EMsgClientGetLegacyGameKey = 730, + k_EMsgClientContentServerLogOn_Deprecated = 731, + k_EMsgClientAckVACBan2 = 732, + k_EMsgClientGetPurchaseReceipts = 736, + k_EMsgClientGamesPlayed3_obsolete = 738, + k_EMsgClientAckGuestPass = 740, + k_EMsgClientRedeemGuestPass = 741, + k_EMsgClientGamesPlayed = 742, + k_EMsgClientRegisterKey = 743, + k_EMsgClientInviteUserToClan = 744, + k_EMsgClientAcknowledgeClanInvite = 745, + k_EMsgClientPurchaseWithMachineID = 746, + k_EMsgClientAppUsageEvent = 747, + k_EMsgClientLogOnResponse = 751, + k_EMsgClientSetHeartbeatRate = 755, + k_EMsgClientNotLoggedOnDeprecated = 756, + k_EMsgClientLoggedOff = 757, + k_EMsgGSApprove = 758, + k_EMsgGSDeny = 759, + k_EMsgGSKick = 760, + k_EMsgClientPurchaseResponse = 763, + k_EMsgClientPing = 764, + k_EMsgClientNOP = 765, + k_EMsgClientPersonaState = 766, + k_EMsgClientFriendsList = 767, + k_EMsgClientAccountInfo = 768, + k_EMsgClientNewsUpdate = 771, + k_EMsgClientGameConnectDeny = 773, + k_EMsgGSStatusReply = 774, + k_EMsgClientGameConnectTokens = 779, + k_EMsgClientLicenseList = 780, + k_EMsgClientVACBanStatus = 782, + k_EMsgClientCMList = 783, + k_EMsgClientEncryptPct = 784, + k_EMsgClientGetLegacyGameKeyResponse = 785, + k_EMsgClientAddFriend = 791, + k_EMsgClientAddFriendResponse = 792, + k_EMsgClientAckGuestPassResponse = 796, + k_EMsgClientRedeemGuestPassResponse = 797, + k_EMsgClientUpdateGuestPassesList = 798, + k_EMsgClientChatMsg = 799, + k_EMsgClientChatInvite = 800, + k_EMsgClientJoinChat = 801, + k_EMsgClientChatMemberInfo = 802, + k_EMsgClientLogOnWithCredentials_Deprecated = 803, + k_EMsgClientPasswordChangeResponse = 805, + k_EMsgClientChatEnter = 807, + k_EMsgClientFriendRemovedFromSource = 808, + k_EMsgClientCreateChat = 809, + k_EMsgClientCreateChatResponse = 810, + k_EMsgClientP2PIntroducerMessage = 813, + k_EMsgClientChatActionResult = 814, + k_EMsgClientRequestFriendData = 815, + k_EMsgClientGetUserStats = 818, + k_EMsgClientGetUserStatsResponse = 819, + k_EMsgClientStoreUserStats = 820, + k_EMsgClientStoreUserStatsResponse = 821, + k_EMsgClientClanState = 822, + k_EMsgClientServiceModule = 830, + k_EMsgClientServiceCall = 831, + k_EMsgClientServiceCallResponse = 832, + k_EMsgClientNatTraversalStatEvent = 839, + k_EMsgClientSteamUsageEvent = 842, + k_EMsgClientCheckPassword = 845, + k_EMsgClientResetPassword = 846, + k_EMsgClientCheckPasswordResponse = 848, + k_EMsgClientResetPasswordResponse = 849, + k_EMsgClientSessionToken = 850, + k_EMsgClientDRMProblemReport = 851, + k_EMsgClientSetIgnoreFriend = 855, + k_EMsgClientSetIgnoreFriendResponse = 856, + k_EMsgClientGetAppOwnershipTicket = 857, + k_EMsgClientGetAppOwnershipTicketResponse = 858, + k_EMsgClientGetLobbyListResponse = 860, + k_EMsgClientServerList = 880, + k_EMsgClientDRMBlobRequest = 896, + k_EMsgClientDRMBlobResponse = 897, + k_EMsgBaseGameServer = 900, + k_EMsgGSDisconnectNotice = 901, + k_EMsgGSStatus = 903, + k_EMsgGSUserPlaying = 905, + k_EMsgGSStatus2 = 906, + k_EMsgGSStatusUpdate_Unused = 907, + k_EMsgGSServerType = 908, + k_EMsgGSPlayerList = 909, + k_EMsgGSGetUserAchievementStatus = 910, + k_EMsgGSGetUserAchievementStatusResponse = 911, + k_EMsgGSGetPlayStats = 918, + k_EMsgGSGetPlayStatsResponse = 919, + k_EMsgGSGetUserGroupStatus = 920, + k_EMsgAMGetUserGroupStatus = 921, + k_EMsgAMGetUserGroupStatusResponse = 922, + k_EMsgGSGetUserGroupStatusResponse = 923, + k_EMsgGSGetReputation = 936, + k_EMsgGSGetReputationResponse = 937, + k_EMsgGSAssociateWithClan = 938, + k_EMsgGSAssociateWithClanResponse = 939, + k_EMsgGSComputeNewPlayerCompatibility = 940, + k_EMsgGSComputeNewPlayerCompatibilityResponse = 941, + k_EMsgBaseAdmin = 1000, + k_EMsgAdminCmd = 1000, + k_EMsgAdminCmdResponse = 1004, + k_EMsgAdminLogListenRequest = 1005, + k_EMsgAdminLogEvent = 1006, + k_EMsgUniverseData = 1010, + k_EMsgAdminSpew = 1019, + k_EMsgAdminConsoleTitle = 1020, + k_EMsgAdminGCSpew = 1023, + k_EMsgAdminGCCommand = 1024, + k_EMsgAdminGCGetCommandList = 1025, + k_EMsgAdminGCGetCommandListResponse = 1026, + k_EMsgFBSConnectionData = 1027, + k_EMsgAdminMsgSpew = 1028, + k_EMsgBaseFBS = 1100, + k_EMsgFBSReqVersion = 1100, + k_EMsgFBSVersionInfo = 1101, + k_EMsgFBSForceRefresh = 1102, + k_EMsgFBSForceBounce = 1103, + k_EMsgFBSDeployPackage = 1104, + k_EMsgFBSDeployResponse = 1105, + k_EMsgFBSUpdateBootstrapper = 1106, + k_EMsgFBSSetState = 1107, + k_EMsgFBSApplyOSUpdates = 1108, + k_EMsgFBSRunCMDScript = 1109, + k_EMsgFBSRebootBox = 1110, + k_EMsgFBSSetBigBrotherMode = 1111, + k_EMsgFBSMinidumpServer = 1112, + k_EMsgFBSDeployHotFixPackage = 1114, + k_EMsgFBSDeployHotFixResponse = 1115, + k_EMsgFBSDownloadHotFix = 1116, + k_EMsgFBSDownloadHotFixResponse = 1117, + k_EMsgFBSUpdateTargetConfigFile = 1118, + k_EMsgFBSApplyAccountCred = 1119, + k_EMsgFBSApplyAccountCredResponse = 1120, + k_EMsgFBSSetShellCount = 1121, + k_EMsgFBSTerminateShell = 1122, + k_EMsgFBSQueryGMForRequest = 1123, + k_EMsgFBSQueryGMResponse = 1124, + k_EMsgFBSTerminateZombies = 1125, + k_EMsgFBSInfoFromBootstrapper = 1126, + k_EMsgFBSRebootBoxResponse = 1127, + k_EMsgFBSBootstrapperPackageRequest = 1128, + k_EMsgFBSBootstrapperPackageResponse = 1129, + k_EMsgFBSBootstrapperGetPackageChunk = 1130, + k_EMsgFBSBootstrapperGetPackageChunkResponse = 1131, + k_EMsgFBSBootstrapperPackageTransferProgress = 1132, + k_EMsgFBSRestartBootstrapper = 1133, + k_EMsgFBSPauseFrozenDumps = 1134, + k_EMsgBaseFileXfer = 1200, + k_EMsgFileXferRequest = 1200, + k_EMsgFileXferResponse = 1201, + k_EMsgFileXferData = 1202, + k_EMsgFileXferEnd = 1203, + k_EMsgFileXferDataAck = 1204, + k_EMsgBaseChannelAuth = 1300, + k_EMsgChannelAuthChallenge = 1300, + k_EMsgChannelAuthResponse = 1301, + k_EMsgChannelAuthResult = 1302, + k_EMsgChannelEncryptRequest = 1303, + k_EMsgChannelEncryptResponse = 1304, + k_EMsgChannelEncryptResult = 1305, + k_EMsgBaseBS = 1400, + k_EMsgBSPurchaseStart = 1401, + k_EMsgBSPurchaseResponse = 1402, + k_EMsgBSAuthenticateCCTrans = 1403, + k_EMsgBSAuthenticateCCTransResponse = 1404, + k_EMsgBSSettleComplete = 1406, + k_EMsgBSInitPayPalTxn = 1408, + k_EMsgBSInitPayPalTxnResponse = 1409, + k_EMsgBSGetPayPalUserInfo = 1410, + k_EMsgBSGetPayPalUserInfoResponse = 1411, + k_EMsgBSPaymentInstrBan = 1417, + k_EMsgBSPaymentInstrBanResponse = 1418, + k_EMsgBSInitGCBankXferTxn = 1421, + k_EMsgBSInitGCBankXferTxnResponse = 1422, + k_EMsgBSCommitGCTxn = 1425, + k_EMsgBSQueryTransactionStatus = 1426, + k_EMsgBSQueryTransactionStatusResponse = 1427, + k_EMsgBSQueryTxnExtendedInfo = 1433, + k_EMsgBSQueryTxnExtendedInfoResponse = 1434, + k_EMsgBSUpdateConversionRates = 1435, + k_EMsgBSPurchaseRunFraudChecks = 1437, + k_EMsgBSPurchaseRunFraudChecksResponse = 1438, + k_EMsgBSQueryBankInformation = 1440, + k_EMsgBSQueryBankInformationResponse = 1441, + k_EMsgBSValidateXsollaSignature = 1445, + k_EMsgBSValidateXsollaSignatureResponse = 1446, + k_EMsgBSQiwiWalletInvoice = 1448, + k_EMsgBSQiwiWalletInvoiceResponse = 1449, + k_EMsgBSUpdateInventoryFromProPack = 1450, + k_EMsgBSUpdateInventoryFromProPackResponse = 1451, + k_EMsgBSSendShippingRequest = 1452, + k_EMsgBSSendShippingRequestResponse = 1453, + k_EMsgBSGetProPackOrderStatus = 1454, + k_EMsgBSGetProPackOrderStatusResponse = 1455, + k_EMsgBSCheckJobRunning = 1456, + k_EMsgBSCheckJobRunningResponse = 1457, + k_EMsgBSResetPackagePurchaseRateLimit = 1458, + k_EMsgBSResetPackagePurchaseRateLimitResponse = 1459, + k_EMsgBSUpdatePaymentData = 1460, + k_EMsgBSUpdatePaymentDataResponse = 1461, + k_EMsgBSGetBillingAddress = 1462, + k_EMsgBSGetBillingAddressResponse = 1463, + k_EMsgBSGetCreditCardInfo = 1464, + k_EMsgBSGetCreditCardInfoResponse = 1465, + k_EMsgBSRemoveExpiredPaymentData = 1468, + k_EMsgBSRemoveExpiredPaymentDataResponse = 1469, + k_EMsgBSConvertToCurrentKeys = 1470, + k_EMsgBSConvertToCurrentKeysResponse = 1471, + k_EMsgBSInitPurchase = 1472, + k_EMsgBSInitPurchaseResponse = 1473, + k_EMsgBSCompletePurchase = 1474, + k_EMsgBSCompletePurchaseResponse = 1475, + k_EMsgBSPruneCardUsageStats = 1476, + k_EMsgBSPruneCardUsageStatsResponse = 1477, + k_EMsgBSStoreBankInformation = 1478, + k_EMsgBSStoreBankInformationResponse = 1479, + k_EMsgBSVerifyPOSAKey = 1480, + k_EMsgBSVerifyPOSAKeyResponse = 1481, + k_EMsgBSReverseRedeemPOSAKey = 1482, + k_EMsgBSReverseRedeemPOSAKeyResponse = 1483, + k_EMsgBSQueryFindCreditCard = 1484, + k_EMsgBSQueryFindCreditCardResponse = 1485, + k_EMsgBSStatusInquiryPOSAKey = 1486, + k_EMsgBSStatusInquiryPOSAKeyResponse = 1487, + k_EMsgBSBoaCompraConfirmProductDelivery = 1494, + k_EMsgBSBoaCompraConfirmProductDeliveryResponse = 1495, + k_EMsgBSGenerateBoaCompraMD5 = 1496, + k_EMsgBSGenerateBoaCompraMD5Response = 1497, + k_EMsgBSCommitWPTxn = 1498, + k_EMsgBSCommitAdyenTxn = 1499, + k_EMsgBaseATS = 1500, + k_EMsgATSStartStressTest = 1501, + k_EMsgATSStopStressTest = 1502, + k_EMsgATSRunFailServerTest = 1503, + k_EMsgATSUFSPerfTestTask = 1504, + k_EMsgATSUFSPerfTestResponse = 1505, + k_EMsgATSCycleTCM = 1506, + k_EMsgATSInitDRMSStressTest = 1507, + k_EMsgATSCallTest = 1508, + k_EMsgATSCallTestReply = 1509, + k_EMsgATSStartExternalStress = 1510, + k_EMsgATSExternalStressJobStart = 1511, + k_EMsgATSExternalStressJobQueued = 1512, + k_EMsgATSExternalStressJobRunning = 1513, + k_EMsgATSExternalStressJobStopped = 1514, + k_EMsgATSExternalStressJobStopAll = 1515, + k_EMsgATSExternalStressActionResult = 1516, + k_EMsgATSStarted = 1517, + k_EMsgATSCSPerfTestTask = 1518, + k_EMsgATSCSPerfTestResponse = 1519, + k_EMsgBaseDP = 1600, + k_EMsgDPSetPublishingState = 1601, + k_EMsgDPUniquePlayersStat = 1603, + k_EMsgDPStreamingUniquePlayersStat = 1604, + k_EMsgDPBlockingStats = 1607, + k_EMsgDPNatTraversalStats = 1608, + k_EMsgDPCloudStats = 1612, + k_EMsgDPGetPlayerCount = 1615, + k_EMsgDPGetPlayerCountResponse = 1616, + k_EMsgDPGameServersPlayersStats = 1617, + k_EMsgClientDPCheckSpecialSurvey = 1620, + k_EMsgClientDPCheckSpecialSurveyResponse = 1621, + k_EMsgClientDPSendSpecialSurveyResponse = 1622, + k_EMsgClientDPSendSpecialSurveyResponseReply = 1623, + k_EMsgDPStoreSaleStatistics = 1624, + k_EMsgDPPartnerMicroTxns = 1628, + k_EMsgDPPartnerMicroTxnsResponse = 1629, + k_EMsgDPVRUniquePlayersStat = 1631, + k_EMsgBaseCM = 1700, + k_EMsgCMSetAllowState = 1701, + k_EMsgCMSpewAllowState = 1702, + k_EMsgCMSessionRejected = 1703, + k_EMsgCMSetSecrets = 1704, + k_EMsgCMGetSecrets = 1705, + k_EMsgBaseGC = 2200, + k_EMsgGCCmdRevive = 2203, + k_EMsgGCCmdDown = 2206, + k_EMsgGCCmdDeploy = 2207, + k_EMsgGCCmdDeployResponse = 2208, + k_EMsgGCCmdSwitch = 2209, + k_EMsgAMRefreshSessions = 2210, + k_EMsgGCAchievementAwarded = 2212, + k_EMsgGCSystemMessage = 2213, + k_EMsgGCCmdStatus = 2216, + k_EMsgGCRegisterWebInterfaces_Deprecated = 2217, + k_EMsgGCGetAccountDetails_DEPRECATED = 2218, + k_EMsgGCInterAppMessage = 2219, + k_EMsgGCGetEmailTemplate = 2220, + k_EMsgGCGetEmailTemplateResponse = 2221, + k_EMsgGCHRelay = 2222, + k_EMsgGCHRelayToClient = 2223, + k_EMsgGCHUpdateSession = 2224, + k_EMsgGCHRequestUpdateSession = 2225, + k_EMsgGCHRequestStatus = 2226, + k_EMsgGCHRequestStatusResponse = 2227, + k_EMsgGCHAccountVacStatusChange = 2228, + k_EMsgGCHSpawnGC = 2229, + k_EMsgGCHSpawnGCResponse = 2230, + k_EMsgGCHKillGC = 2231, + k_EMsgGCHKillGCResponse = 2232, + k_EMsgGCHAccountTradeBanStatusChange = 2233, + k_EMsgGCHAccountLockStatusChange = 2234, + k_EMsgGCHVacVerificationChange = 2235, + k_EMsgGCHAccountPhoneNumberChange = 2236, + k_EMsgGCHAccountTwoFactorChange = 2237, + k_EMsgGCHInviteUserToLobby = 2238, + k_EMsgGCHUpdateMultipleSessions = 2239, + k_EMsgGCHMarkAppSessionsAuthoritative = 2240, + k_EMsgGCHRecurringSubscriptionStatusChange = 2241, + k_EMsgGCHAppCheersReceived = 2242, + k_EMsgGCHAppCheersGetAllowedTypes = 2243, + k_EMsgGCHAppCheersGetAllowedTypesResponse = 2244, + k_EMsgGCHRoutingRulesFromGCHtoGM = 2245, + k_EMsgGCHRoutingRulesToGCHfromGM = 2246, + k_EMsgUpdateCMMessageRateRules = 2247, + k_EMsgBaseP2P = 2500, + k_EMsgP2PIntroducerMessage = 2502, + k_EMsgBaseSM = 2900, + k_EMsgSMExpensiveReport = 2902, + k_EMsgSMHourlyReport = 2903, + k_EMsgSMPartitionRenames = 2905, + k_EMsgSMMonitorSpace = 2906, + k_EMsgSMTestNextBuildSchemaConversion = 2907, + k_EMsgSMTestNextBuildSchemaConversionResponse = 2908, + k_EMsgBaseTest = 3000, + k_EMsgFailServer = 3000, + k_EMsgJobHeartbeatTest = 3001, + k_EMsgJobHeartbeatTestResponse = 3002, + k_EMsgBaseFTSRange = 3100, + k_EMsgBaseCCSRange = 3150, + k_EMsgCCSDeleteAllCommentsByAuthor = 3161, + k_EMsgCCSDeleteAllCommentsByAuthorResponse = 3162, + k_EMsgBaseLBSRange = 3200, + k_EMsgLBSSetScore = 3201, + k_EMsgLBSSetScoreResponse = 3202, + k_EMsgLBSFindOrCreateLB = 3203, + k_EMsgLBSFindOrCreateLBResponse = 3204, + k_EMsgLBSGetLBEntries = 3205, + k_EMsgLBSGetLBEntriesResponse = 3206, + k_EMsgLBSGetLBList = 3207, + k_EMsgLBSGetLBListResponse = 3208, + k_EMsgLBSSetLBDetails = 3209, + k_EMsgLBSDeleteLB = 3210, + k_EMsgLBSDeleteLBEntry = 3211, + k_EMsgLBSResetLB = 3212, + k_EMsgLBSResetLBResponse = 3213, + k_EMsgLBSDeleteLBResponse = 3214, + k_EMsgBaseOGS = 3400, + k_EMsgOGSBeginSession = 3401, + k_EMsgOGSBeginSessionResponse = 3402, + k_EMsgOGSEndSession = 3403, + k_EMsgOGSEndSessionResponse = 3404, + k_EMsgOGSWriteAppSessionRow = 3406, + k_EMsgBaseBRP = 3600, + k_EMsgBRPPostTransactionTax = 3629, + k_EMsgBRPPostTransactionTaxResponse = 3630, + k_EMsgBaseAMRange2 = 4000, + k_EMsgAMCreateChat = 4001, + k_EMsgAMCreateChatResponse = 4002, + k_EMsgAMSetProfileURL = 4005, + k_EMsgAMGetAccountEmailAddress = 4006, + k_EMsgAMGetAccountEmailAddressResponse = 4007, + k_EMsgAMRequestClanData = 4008, + k_EMsgAMRouteToClients = 4009, + k_EMsgAMLeaveClan = 4010, + k_EMsgAMClanPermissions = 4011, + k_EMsgAMClanPermissionsResponse = 4012, + k_EMsgAMCreateClanEventDummyForRateLimiting = 4013, + k_EMsgAMUpdateClanEventDummyForRateLimiting = 4015, + k_EMsgAMSetClanPermissionSettings = 4021, + k_EMsgAMSetClanPermissionSettingsResponse = 4022, + k_EMsgAMGetClanPermissionSettings = 4023, + k_EMsgAMGetClanPermissionSettingsResponse = 4024, + k_EMsgAMPublishChatRoomInfo = 4025, + k_EMsgClientChatRoomInfo = 4026, + k_EMsgAMGetClanHistory = 4039, + k_EMsgAMGetClanHistoryResponse = 4040, + k_EMsgAMGetClanPermissionBits = 4041, + k_EMsgAMGetClanPermissionBitsResponse = 4042, + k_EMsgAMSetClanPermissionBits = 4043, + k_EMsgAMSetClanPermissionBitsResponse = 4044, + k_EMsgAMSessionInfoRequest = 4045, + k_EMsgAMSessionInfoResponse = 4046, + k_EMsgAMValidateWGToken = 4047, + k_EMsgAMGetClanRank = 4050, + k_EMsgAMGetClanRankResponse = 4051, + k_EMsgAMSetClanRank = 4052, + k_EMsgAMSetClanRankResponse = 4053, + k_EMsgAMGetClanPOTW = 4054, + k_EMsgAMGetClanPOTWResponse = 4055, + k_EMsgAMSetClanPOTW = 4056, + k_EMsgAMSetClanPOTWResponse = 4057, + k_EMsgAMDumpUser = 4059, + k_EMsgAMKickUserFromClan = 4060, + k_EMsgAMAddFounderToClan = 4061, + k_EMsgAMValidateWGTokenResponse = 4062, + k_EMsgAMSetAccountDetails = 4064, + k_EMsgAMGetChatBanList = 4065, + k_EMsgAMGetChatBanListResponse = 4066, + k_EMsgAMUnBanFromChat = 4067, + k_EMsgAMSetClanDetails = 4068, + k_EMsgUGSGetUserGameStats = 4073, + k_EMsgUGSGetUserGameStatsResponse = 4074, + k_EMsgAMCheckClanMembership = 4075, + k_EMsgAMGetClanMembers = 4076, + k_EMsgAMGetClanMembersResponse = 4077, + k_EMsgAMNotifyChatOfClanChange = 4079, + k_EMsgAMResubmitPurchase = 4080, + k_EMsgAMAddFriend = 4081, + k_EMsgAMAddFriendResponse = 4082, + k_EMsgAMRemoveFriend = 4083, + k_EMsgAMDumpClan = 4084, + k_EMsgAMChangeClanOwner = 4085, + k_EMsgAMCancelEasyCollect = 4086, + k_EMsgAMCancelEasyCollectResponse = 4087, + k_EMsgAMClansInCommon = 4090, + k_EMsgAMClansInCommonResponse = 4091, + k_EMsgAMIsValidAccountID = 4092, + k_EMsgAMWipeFriendsList = 4095, + k_EMsgAMSetIgnored = 4096, + k_EMsgAMClansInCommonCountResponse = 4097, + k_EMsgAMFriendsList = 4098, + k_EMsgAMFriendsListResponse = 4099, + k_EMsgAMFriendsInCommon = 4100, + k_EMsgAMFriendsInCommonResponse = 4101, + k_EMsgAMFriendsInCommonCountResponse = 4102, + k_EMsgAMClansInCommonCount = 4103, + k_EMsgAMChallengeVerdict = 4104, + k_EMsgAMChallengeNotification = 4105, + k_EMsgAMFindGSByIP = 4106, + k_EMsgAMFoundGSByIP = 4107, + k_EMsgAMGiftRevoked = 4108, + k_EMsgAMUserClanList = 4110, + k_EMsgAMUserClanListResponse = 4111, + k_EMsgAMGetAccountDetails2 = 4112, + k_EMsgAMGetAccountDetailsResponse2 = 4113, + k_EMsgAMSetCommunityProfileSettings = 4114, + k_EMsgAMSetCommunityProfileSettingsResponse = 4115, + k_EMsgAMGetCommunityPrivacyState = 4116, + k_EMsgAMGetCommunityPrivacyStateResponse = 4117, + k_EMsgAMCheckClanInviteRateLimiting = 4118, + k_EMsgUGSGetUserAchievementStatus = 4119, + k_EMsgAMGetIgnored = 4120, + k_EMsgAMGetIgnoredResponse = 4121, + k_EMsgAMSetIgnoredResponse = 4122, + k_EMsgAMSetFriendRelationshipNone = 4123, + k_EMsgAMGetFriendRelationship = 4124, + k_EMsgAMGetFriendRelationshipResponse = 4125, + k_EMsgAMServiceModulesCache = 4126, + k_EMsgAMServiceModulesCall = 4127, + k_EMsgAMServiceModulesCallResponse = 4128, + k_EMsgCommunityAddFriendNews = 4140, + k_EMsgAMFindClanUser = 4143, + k_EMsgAMFindClanUserResponse = 4144, + k_EMsgAMBanFromChat = 4145, + k_EMsgAMGetUserNewsSubscriptions = 4147, + k_EMsgAMGetUserNewsSubscriptionsResponse = 4148, + k_EMsgAMSetUserNewsSubscriptions = 4149, + k_EMsgAMSendQueuedEmails = 4152, + k_EMsgAMSetLicenseFlags = 4153, + k_EMsgCommunityDeleteUserNews = 4155, + k_EMsgAMGetAccountStatus = 4158, + k_EMsgAMGetAccountStatusResponse = 4159, + k_EMsgAMEditBanReason = 4160, + k_EMsgAMCheckClanMembershipResponse = 4161, + k_EMsgAMProbeClanMembershipList = 4162, + k_EMsgAMProbeClanMembershipListResponse = 4163, + k_EMsgUGSGetUserAchievementStatusResponse = 4164, + k_EMsgAMGetFriendsLobbies = 4165, + k_EMsgAMGetFriendsLobbiesResponse = 4166, + k_EMsgAMGetUserFriendNewsResponse = 4172, + k_EMsgCommunityGetUserFriendNews = 4173, + k_EMsgAMGetUserClansNewsResponse = 4174, + k_EMsgAMGetUserClansNews = 4175, + k_EMsgAMGetPreviousCBAccount = 4184, + k_EMsgAMGetPreviousCBAccountResponse = 4185, + k_EMsgAMGetUserLicenseHistory = 4190, + k_EMsgAMGetUserLicenseHistoryResponse = 4191, + k_EMsgAMSupportChangePassword = 4194, + k_EMsgAMSupportChangeEmail = 4195, + k_EMsgAMResetUserVerificationGSByIP = 4197, + k_EMsgAMUpdateGSPlayStats = 4198, + k_EMsgAMSupportEnableOrDisable = 4199, + k_EMsgAMGetPurchaseStatus = 4206, + k_EMsgAMSupportIsAccountEnabled = 4209, + k_EMsgAMSupportIsAccountEnabledResponse = 4210, + k_EMsgUGSGetUserStats = 4211, + k_EMsgAMGSSearch = 4213, + k_EMsgChatServerRouteFriendMsg = 4219, + k_EMsgAMTicketAuthRequestOrResponse = 4220, + k_EMsgAMAddFreeLicense = 4224, + k_EMsgAMValidateEmailLink = 4231, + k_EMsgAMValidateEmailLinkResponse = 4232, + k_EMsgUGSStoreUserStats = 4236, + k_EMsgAMDeleteStoredCard = 4241, + k_EMsgAMRevokeLegacyGameKeys = 4242, + k_EMsgAMGetWalletDetails = 4244, + k_EMsgAMGetWalletDetailsResponse = 4245, + k_EMsgAMDeleteStoredPaymentInfo = 4246, + k_EMsgAMGetStoredPaymentSummary = 4247, + k_EMsgAMGetStoredPaymentSummaryResponse = 4248, + k_EMsgAMGetWalletConversionRate = 4249, + k_EMsgAMGetWalletConversionRateResponse = 4250, + k_EMsgAMConvertWallet = 4251, + k_EMsgAMConvertWalletResponse = 4252, + k_EMsgAMSetPreApproval = 4255, + k_EMsgAMSetPreApprovalResponse = 4256, + k_EMsgAMCreateRefund = 4258, + k_EMsgAMCreateChargeback = 4260, + k_EMsgAMCreateDispute = 4262, + k_EMsgAMClearDispute = 4264, + k_EMsgAMCreateFinancialAdjustment = 4265, + k_EMsgAMPlayerNicknameList = 4266, + k_EMsgAMPlayerNicknameListResponse = 4267, + k_EMsgAMGetUserCurrentGameInfo = 4269, + k_EMsgAMGetUserCurrentGameInfoResponse = 4270, + k_EMsgAMGetGSPlayerList = 4271, + k_EMsgAMGetGSPlayerListResponse = 4272, + k_EMsgAMGetSteamIDForMicroTxn = 4278, + k_EMsgAMGetSteamIDForMicroTxnResponse = 4279, + k_EMsgAMSetPartnerMember = 4280, + k_EMsgAMRemovePublisherUser = 4281, + k_EMsgAMGetUserLicenseList = 4282, + k_EMsgAMGetUserLicenseListResponse = 4283, + k_EMsgAMReloadGameGroupPolicy = 4284, + k_EMsgAMAddFreeLicenseResponse = 4285, + k_EMsgAMVACStatusUpdate = 4286, + k_EMsgAMGetAccountDetails = 4287, + k_EMsgAMGetAccountDetailsResponse = 4288, + k_EMsgAMGetPlayerLinkDetails = 4289, + k_EMsgAMGetPlayerLinkDetailsResponse = 4290, + k_EMsgAMGetAccountFlagsForWGSpoofing = 4294, + k_EMsgAMGetAccountFlagsForWGSpoofingResponse = 4295, + k_EMsgAMGetClanOfficers = 4298, + k_EMsgAMGetClanOfficersResponse = 4299, + k_EMsgAMNameChange = 4300, + k_EMsgAMGetNameHistory = 4301, + k_EMsgAMGetNameHistoryResponse = 4302, + k_EMsgAMUpdateProviderStatus = 4305, + k_EMsgAMSupportRemoveAccountSecurity = 4307, + k_EMsgAMIsAccountInCaptchaGracePeriod = 4308, + k_EMsgAMIsAccountInCaptchaGracePeriodResponse = 4309, + k_EMsgAMAccountPS3Unlink = 4310, + k_EMsgAMAccountPS3UnlinkResponse = 4311, + k_EMsgUGSStoreUserStatsResponse = 4312, + k_EMsgAMGetAccountPSNInfo = 4313, + k_EMsgAMGetAccountPSNInfoResponse = 4314, + k_EMsgAMAuthenticatedPlayerList = 4315, + k_EMsgAMGetUserGifts = 4316, + k_EMsgAMGetUserGiftsResponse = 4317, + k_EMsgAMTransferLockedGifts = 4320, + k_EMsgAMTransferLockedGiftsResponse = 4321, + k_EMsgAMPlayerHostedOnGameServer = 4322, + k_EMsgAMGetAccountBanInfo = 4323, + k_EMsgAMGetAccountBanInfoResponse = 4324, + k_EMsgAMRecordBanEnforcement = 4325, + k_EMsgAMRollbackGiftTransfer = 4326, + k_EMsgAMRollbackGiftTransferResponse = 4327, + k_EMsgAMHandlePendingTransaction = 4328, + k_EMsgAMRequestClanDetails = 4329, + k_EMsgAMDeleteStoredPaypalAgreement = 4330, + k_EMsgAMGameServerUpdate = 4331, + k_EMsgAMGameServerRemove = 4332, + k_EMsgAMGetPaypalAgreements = 4333, + k_EMsgAMGetPaypalAgreementsResponse = 4334, + k_EMsgAMGameServerPlayerCompatibilityCheck = 4335, + k_EMsgAMGameServerPlayerCompatibilityCheckResponse = 4336, + k_EMsgAMRenewLicense = 4337, + k_EMsgAMGetAccountCommunityBanInfo = 4338, + k_EMsgAMGetAccountCommunityBanInfoResponse = 4339, + k_EMsgAMGameServerAccountChangePassword = 4340, + k_EMsgAMGameServerAccountDeleteAccount = 4341, + k_EMsgAMRenewAgreement = 4342, + k_EMsgAMXsollaPayment = 4344, + k_EMsgAMXsollaPaymentResponse = 4345, + k_EMsgAMAcctAllowedToPurchase = 4346, + k_EMsgAMAcctAllowedToPurchaseResponse = 4347, + k_EMsgAMSwapKioskDeposit = 4348, + k_EMsgAMSwapKioskDepositResponse = 4349, + k_EMsgAMSetUserGiftUnowned = 4350, + k_EMsgAMSetUserGiftUnownedResponse = 4351, + k_EMsgAMClaimUnownedUserGift = 4352, + k_EMsgAMClaimUnownedUserGiftResponse = 4353, + k_EMsgAMSetClanName = 4354, + k_EMsgAMSetClanNameResponse = 4355, + k_EMsgAMGrantCoupon = 4356, + k_EMsgAMGrantCouponResponse = 4357, + k_EMsgAMIsPackageRestrictedInUserCountry = 4358, + k_EMsgAMIsPackageRestrictedInUserCountryResponse = 4359, + k_EMsgAMHandlePendingTransactionResponse = 4360, + k_EMsgAMGrantGuestPasses2 = 4361, + k_EMsgAMGrantGuestPasses2Response = 4362, + k_EMsgAMGetPlayerBanDetails = 4365, + k_EMsgAMGetPlayerBanDetailsResponse = 4366, + k_EMsgAMFinalizePurchase = 4367, + k_EMsgAMFinalizePurchaseResponse = 4368, + k_EMsgAMPersonaChangeResponse = 4372, + k_EMsgAMGetClanDetailsForForumCreation = 4373, + k_EMsgAMGetClanDetailsForForumCreationResponse = 4374, + k_EMsgAMGetPendingNotificationCount = 4375, + k_EMsgAMGetPendingNotificationCountResponse = 4376, + k_EMsgAMPasswordHashUpgrade = 4377, + k_EMsgAMBoaCompraPayment = 4380, + k_EMsgAMBoaCompraPaymentResponse = 4381, + k_EMsgAMCompleteExternalPurchase = 4383, + k_EMsgAMCompleteExternalPurchaseResponse = 4384, + k_EMsgAMResolveNegativeWalletCredits = 4385, + k_EMsgAMResolveNegativeWalletCreditsResponse = 4386, + k_EMsgAMPlayerGetClanBasicDetails = 4389, + k_EMsgAMPlayerGetClanBasicDetailsResponse = 4390, + k_EMsgAMMOLPayment = 4391, + k_EMsgAMMOLPaymentResponse = 4392, + k_EMsgGetUserIPCountry = 4393, + k_EMsgGetUserIPCountryResponse = 4394, + k_EMsgNotificationOfSuspiciousActivity = 4395, + k_EMsgAMDegicaPayment = 4396, + k_EMsgAMDegicaPaymentResponse = 4397, + k_EMsgAMEClubPayment = 4398, + k_EMsgAMEClubPaymentResponse = 4399, + k_EMsgAMPayPalPaymentsHubPayment = 4400, + k_EMsgAMPayPalPaymentsHubPaymentResponse = 4401, + k_EMsgAMTwoFactorRecoverAuthenticatorRequest = 4402, + k_EMsgAMTwoFactorRecoverAuthenticatorResponse = 4403, + k_EMsgAMSmart2PayPayment = 4404, + k_EMsgAMSmart2PayPaymentResponse = 4405, + k_EMsgAMValidatePasswordResetCodeAndSendSmsRequest = 4406, + k_EMsgAMValidatePasswordResetCodeAndSendSmsResponse = 4407, + k_EMsgAMGetAccountResetDetailsRequest = 4408, + k_EMsgAMGetAccountResetDetailsResponse = 4409, + k_EMsgAMBitPayPayment = 4410, + k_EMsgAMBitPayPaymentResponse = 4411, + k_EMsgAMSendAccountInfoUpdate = 4412, + k_EMsgAMSendScheduledGift = 4413, + k_EMsgAMNodwinPayment = 4414, + k_EMsgAMNodwinPaymentResponse = 4415, + k_EMsgAMResolveWalletRevoke = 4416, + k_EMsgAMResolveWalletReverseRevoke = 4417, + k_EMsgAMFundedPayment = 4418, + k_EMsgAMFundedPaymentResponse = 4419, + k_EMsgAMRequestPersonaUpdateForChatServer = 4420, + k_EMsgAMPerfectWorldPayment = 4421, + k_EMsgAMPerfectWorldPaymentResponse = 4422, + k_EMsgAMECommPayPayment = 4423, + k_EMsgAMECommPayPaymentResponse = 4424, + k_EMsgAMSetRemoteClientID = 4425, + k_EMsgBasePSRange = 5000, + k_EMsgPSCreateShoppingCart = 5001, + k_EMsgPSCreateShoppingCartResponse = 5002, + k_EMsgPSIsValidShoppingCart = 5003, + k_EMsgPSIsValidShoppingCartResponse = 5004, + k_EMsgPSRemoveLineItemFromShoppingCart = 5007, + k_EMsgPSRemoveLineItemFromShoppingCartResponse = 5008, + k_EMsgPSGetShoppingCartContents = 5009, + k_EMsgPSGetShoppingCartContentsResponse = 5010, + k_EMsgPSAddWalletCreditToShoppingCart = 5011, + k_EMsgPSAddWalletCreditToShoppingCartResponse = 5012, + k_EMsgBaseUFSRange = 5200, + k_EMsgClientUFSUploadFileRequest = 5202, + k_EMsgClientUFSUploadFileResponse = 5203, + k_EMsgClientUFSUploadFileChunk = 5204, + k_EMsgClientUFSUploadFileFinished = 5205, + k_EMsgClientUFSGetFileListForApp = 5206, + k_EMsgClientUFSGetFileListForAppResponse = 5207, + k_EMsgClientUFSDownloadRequest = 5210, + k_EMsgClientUFSDownloadResponse = 5211, + k_EMsgClientUFSDownloadChunk = 5212, + k_EMsgClientUFSLoginRequest = 5213, + k_EMsgClientUFSLoginResponse = 5214, + k_EMsgUFSReloadPartitionInfo = 5215, + k_EMsgClientUFSTransferHeartbeat = 5216, + k_EMsgUFSSynchronizeFile = 5217, + k_EMsgUFSSynchronizeFileResponse = 5218, + k_EMsgClientUFSDeleteFileRequest = 5219, + k_EMsgClientUFSDeleteFileResponse = 5220, + k_EMsgClientUFSGetUGCDetails = 5226, + k_EMsgClientUFSGetUGCDetailsResponse = 5227, + k_EMsgUFSUpdateFileFlags = 5228, + k_EMsgUFSUpdateFileFlagsResponse = 5229, + k_EMsgClientUFSGetSingleFileInfo = 5230, + k_EMsgClientUFSGetSingleFileInfoResponse = 5231, + k_EMsgClientUFSShareFile = 5232, + k_EMsgClientUFSShareFileResponse = 5233, + k_EMsgUFSReloadAccount = 5234, + k_EMsgUFSReloadAccountResponse = 5235, + k_EMsgUFSUpdateRecordBatched = 5236, + k_EMsgUFSUpdateRecordBatchedResponse = 5237, + k_EMsgUFSMigrateFile = 5238, + k_EMsgUFSMigrateFileResponse = 5239, + k_EMsgUFSGetUGCURLs = 5240, + k_EMsgUFSGetUGCURLsResponse = 5241, + k_EMsgUFSHttpUploadFileFinishRequest = 5242, + k_EMsgUFSHttpUploadFileFinishResponse = 5243, + k_EMsgUFSDownloadStartRequest = 5244, + k_EMsgUFSDownloadStartResponse = 5245, + k_EMsgUFSDownloadChunkRequest = 5246, + k_EMsgUFSDownloadChunkResponse = 5247, + k_EMsgUFSDownloadFinishRequest = 5248, + k_EMsgUFSDownloadFinishResponse = 5249, + k_EMsgUFSFlushURLCache = 5250, + k_EMsgClientUFSUploadCommit = 5251, + k_EMsgClientUFSUploadCommitResponse = 5252, + k_EMsgUFSMigrateFileAppID = 5253, + k_EMsgUFSMigrateFileAppIDResponse = 5254, + k_EMsgBaseClient2 = 5400, + k_EMsgClientRequestForgottenPasswordEmail = 5401, + k_EMsgClientRequestForgottenPasswordEmailResponse = 5402, + k_EMsgClientCreateAccountResponse = 5403, + k_EMsgClientResetForgottenPassword = 5404, + k_EMsgClientResetForgottenPasswordResponse = 5405, + k_EMsgClientInformOfResetForgottenPassword = 5407, + k_EMsgClientInformOfResetForgottenPasswordResponse = 5408, + k_EMsgClientAnonUserLogOn_Deprecated = 5409, + k_EMsgClientGamesPlayedWithDataBlob = 5410, + k_EMsgClientUpdateUserGameInfo = 5411, + k_EMsgClientFileToDownload = 5412, + k_EMsgClientFileToDownloadResponse = 5413, + k_EMsgClientLBSSetScore = 5414, + k_EMsgClientLBSSetScoreResponse = 5415, + k_EMsgClientLBSFindOrCreateLB = 5416, + k_EMsgClientLBSFindOrCreateLBResponse = 5417, + k_EMsgClientLBSGetLBEntries = 5418, + k_EMsgClientLBSGetLBEntriesResponse = 5419, + k_EMsgClientChatDeclined = 5426, + k_EMsgClientFriendMsgIncoming = 5427, + k_EMsgClientAuthList_Deprecated = 5428, + k_EMsgClientTicketAuthComplete = 5429, + k_EMsgClientIsLimitedAccount = 5430, + k_EMsgClientRequestAuthList = 5431, + k_EMsgClientAuthList = 5432, + k_EMsgClientStat = 5433, + k_EMsgClientP2PConnectionInfo = 5434, + k_EMsgClientP2PConnectionFailInfo = 5435, + k_EMsgClientGetDepotDecryptionKey = 5438, + k_EMsgClientGetDepotDecryptionKeyResponse = 5439, + k_EMsgClientEnableTestLicense = 5443, + k_EMsgClientEnableTestLicenseResponse = 5444, + k_EMsgClientDisableTestLicense = 5445, + k_EMsgClientDisableTestLicenseResponse = 5446, + k_EMsgClientRequestValidationMail = 5448, + k_EMsgClientRequestValidationMailResponse = 5449, + k_EMsgClientCheckAppBetaPassword = 5450, + k_EMsgClientCheckAppBetaPasswordResponse = 5451, + k_EMsgClientToGC = 5452, + k_EMsgClientFromGC = 5453, + k_EMsgClientEmailAddrInfo = 5456, + k_EMsgClientPasswordChange3 = 5457, + k_EMsgClientEmailChange3 = 5458, + k_EMsgClientPersonalQAChange3 = 5459, + k_EMsgClientResetForgottenPassword3 = 5460, + k_EMsgClientRequestForgottenPasswordEmail3 = 5461, + k_EMsgClientNewLoginKey = 5463, + k_EMsgClientNewLoginKeyAccepted = 5464, + k_EMsgClientLogOnWithHash_Deprecated = 5465, + k_EMsgClientStoreUserStats2 = 5466, + k_EMsgClientStatsUpdated = 5467, + k_EMsgClientActivateOEMLicense = 5468, + k_EMsgClientRegisterOEMMachine = 5469, + k_EMsgClientRegisterOEMMachineResponse = 5470, + k_EMsgClientRequestedClientStats = 5480, + k_EMsgClientStat2Int32 = 5481, + k_EMsgClientStat2 = 5482, + k_EMsgClientVerifyPassword = 5483, + k_EMsgClientVerifyPasswordResponse = 5484, + k_EMsgClientDRMDownloadRequest = 5485, + k_EMsgClientDRMDownloadResponse = 5486, + k_EMsgClientDRMFinalResult = 5487, + k_EMsgClientGetFriendsWhoPlayGame = 5488, + k_EMsgClientGetFriendsWhoPlayGameResponse = 5489, + k_EMsgClientOGSBeginSession = 5490, + k_EMsgClientOGSBeginSessionResponse = 5491, + k_EMsgClientOGSEndSession = 5492, + k_EMsgClientOGSEndSessionResponse = 5493, + k_EMsgClientOGSWriteRow = 5494, + k_EMsgClientGetPeerContentInfo = 5495, + k_EMsgClientGetPeerContentInfoResponse = 5496, + k_EMsgClientStartPeerContentServer = 5497, + k_EMsgClientStartPeerContentServerResponse = 5498, + k_EMsgClientServerUnavailable = 5500, + k_EMsgClientServersAvailable = 5501, + k_EMsgClientRegisterAuthTicketWithCM = 5502, + k_EMsgClientGCMsgFailed = 5503, + k_EMsgClientMicroTxnAuthRequest = 5504, + k_EMsgClientMicroTxnAuthorize = 5505, + k_EMsgClientMicroTxnAuthorizeResponse = 5506, + k_EMsgClientGetMicroTxnInfo = 5508, + k_EMsgClientGetMicroTxnInfoResponse = 5509, + k_EMsgClientDeregisterWithServer = 5511, + k_EMsgClientSubscribeToPersonaFeed = 5512, + k_EMsgClientLogon = 5514, + k_EMsgClientGetClientDetails = 5515, + k_EMsgClientGetClientDetailsResponse = 5516, + k_EMsgClientReportOverlayDetourFailure = 5517, + k_EMsgClientGetClientAppList = 5518, + k_EMsgClientGetClientAppListResponse = 5519, + k_EMsgClientInstallClientApp = 5520, + k_EMsgClientInstallClientAppResponse = 5521, + k_EMsgClientUninstallClientApp = 5522, + k_EMsgClientUninstallClientAppResponse = 5523, + k_EMsgClientSetClientAppUpdateState = 5524, + k_EMsgClientSetClientAppUpdateStateResponse = 5525, + k_EMsgClientRequestEncryptedAppTicket = 5526, + k_EMsgClientRequestEncryptedAppTicketResponse = 5527, + k_EMsgClientWalletInfoUpdate = 5528, + k_EMsgClientLBSSetUGC = 5529, + k_EMsgClientLBSSetUGCResponse = 5530, + k_EMsgClientAMGetClanOfficers = 5531, + k_EMsgClientAMGetClanOfficersResponse = 5532, + k_EMsgClientFriendProfileInfo = 5535, + k_EMsgClientFriendProfileInfoResponse = 5536, + k_EMsgClientUpdateMachineAuth = 5537, + k_EMsgClientUpdateMachineAuthResponse = 5538, + k_EMsgClientReadMachineAuth = 5539, + k_EMsgClientReadMachineAuthResponse = 5540, + k_EMsgClientRequestMachineAuth = 5541, + k_EMsgClientRequestMachineAuthResponse = 5542, + k_EMsgClientScreenshotsChanged = 5543, + k_EMsgClientGetCDNAuthToken = 5546, + k_EMsgClientGetCDNAuthTokenResponse = 5547, + k_EMsgClientDownloadRateStatistics = 5548, + k_EMsgClientRequestAccountData = 5549, + k_EMsgClientRequestAccountDataResponse = 5550, + k_EMsgClientResetForgottenPassword4 = 5551, + k_EMsgClientHideFriend = 5552, + k_EMsgClientFriendsGroupsList = 5553, + k_EMsgClientGetClanActivityCounts = 5554, + k_EMsgClientGetClanActivityCountsResponse = 5555, + k_EMsgClientOGSReportString = 5556, + k_EMsgClientOGSReportBug = 5557, + k_EMsgClientSentLogs = 5558, + k_EMsgClientLogonGameServer = 5559, + k_EMsgAMClientCreateFriendsGroup = 5560, + k_EMsgAMClientCreateFriendsGroupResponse = 5561, + k_EMsgAMClientDeleteFriendsGroup = 5562, + k_EMsgAMClientDeleteFriendsGroupResponse = 5563, + k_EMsgAMClientManageFriendsGroup = 5564, + k_EMsgAMClientManageFriendsGroupResponse = 5565, + k_EMsgAMClientAddFriendToGroup = 5566, + k_EMsgAMClientAddFriendToGroupResponse = 5567, + k_EMsgAMClientRemoveFriendFromGroup = 5568, + k_EMsgAMClientRemoveFriendFromGroupResponse = 5569, + k_EMsgClientAMGetPersonaNameHistory = 5570, + k_EMsgClientAMGetPersonaNameHistoryResponse = 5571, + k_EMsgClientRequestFreeLicense = 5572, + k_EMsgClientRequestFreeLicenseResponse = 5573, + k_EMsgClientDRMDownloadRequestWithCrashData = 5574, + k_EMsgClientAuthListAck = 5575, + k_EMsgClientItemAnnouncements = 5576, + k_EMsgClientRequestItemAnnouncements = 5577, + k_EMsgClientFriendMsgEchoToSender = 5578, + k_EMsgClientCommentNotifications = 5582, + k_EMsgClientRequestCommentNotifications = 5583, + k_EMsgClientPersonaChangeResponse = 5584, + k_EMsgClientRequestWebAPIAuthenticateUserNonce = 5585, + k_EMsgClientRequestWebAPIAuthenticateUserNonceResponse = 5586, + k_EMsgClientPlayerNicknameList = 5587, + k_EMsgAMClientSetPlayerNickname = 5588, + k_EMsgAMClientSetPlayerNicknameResponse = 5589, + k_EMsgClientGetNumberOfCurrentPlayersDP = 5592, + k_EMsgClientGetNumberOfCurrentPlayersDPResponse = 5593, + k_EMsgClientServiceMethodLegacy = 5594, + k_EMsgClientServiceMethodLegacyResponse = 5595, + k_EMsgClientFriendUserStatusPublished = 5596, + k_EMsgClientCurrentUIMode = 5597, + k_EMsgClientVanityURLChangedNotification = 5598, + k_EMsgClientUserNotifications = 5599, + k_EMsgBaseDFS = 5600, + k_EMsgDFSGetFile = 5601, + k_EMsgDFSInstallLocalFile = 5602, + k_EMsgDFSConnection = 5603, + k_EMsgDFSConnectionReply = 5604, + k_EMsgClientDFSAuthenticateRequest = 5605, + k_EMsgClientDFSAuthenticateResponse = 5606, + k_EMsgClientDFSEndSession = 5607, + k_EMsgDFSPurgeFile = 5608, + k_EMsgDFSRouteFile = 5609, + k_EMsgDFSGetFileFromServer = 5610, + k_EMsgDFSAcceptedResponse = 5611, + k_EMsgDFSRequestPingback = 5612, + k_EMsgDFSRecvTransmitFile = 5613, + k_EMsgDFSSendTransmitFile = 5614, + k_EMsgDFSRequestPingback2 = 5615, + k_EMsgDFSResponsePingback2 = 5616, + k_EMsgClientDFSDownloadStatus = 5617, + k_EMsgDFSStartTransfer = 5618, + k_EMsgDFSTransferComplete = 5619, + k_EMsgDFSRouteFileResponse = 5620, + k_EMsgClientNetworkingCertRequest = 5621, + k_EMsgClientNetworkingCertRequestResponse = 5622, + k_EMsgClientChallengeRequest = 5623, + k_EMsgClientChallengeResponse = 5624, + k_EMsgBadgeCraftedNotification = 5625, + k_EMsgClientNetworkingMobileCertRequest = 5626, + k_EMsgClientNetworkingMobileCertRequestResponse = 5627, + k_EMsgBaseMDS = 5800, + k_EMsgMDSGetDepotDecryptionKey = 5812, + k_EMsgMDSGetDepotDecryptionKeyResponse = 5813, + k_EMsgMDSContentServerConfigRequest = 5827, + k_EMsgMDSContentServerConfig = 5828, + k_EMsgMDSGetDepotManifest = 5829, + k_EMsgMDSGetDepotManifestResponse = 5830, + k_EMsgMDSGetDepotManifestChunk = 5831, + k_EMsgMDSGetDepotChunk = 5832, + k_EMsgMDSGetDepotChunkResponse = 5833, + k_EMsgMDSGetDepotChunkChunk = 5834, + k_EMsgMDSToCSFlushChunk = 5844, + k_EMsgMDSMigrateChunk = 5847, + k_EMsgMDSMigrateChunkResponse = 5848, + k_EMsgMDSToCSFlushManifest = 5849, + k_EMsgCSBase = 6200, + k_EMsgCSPing = 6201, + k_EMsgCSPingResponse = 6202, + k_EMsgGMSBase = 6400, + k_EMsgGMSGameServerReplicate = 6401, + k_EMsgClientGMSServerQuery = 6403, + k_EMsgGMSClientServerQueryResponse = 6404, + k_EMsgAMGMSGameServerUpdate = 6405, + k_EMsgAMGMSGameServerRemove = 6406, + k_EMsgGameServerOutOfDate = 6407, + k_EMsgDeviceAuthorizationBase = 6500, + k_EMsgClientAuthorizeLocalDeviceRequest = 6501, + k_EMsgClientAuthorizeLocalDeviceResponse = 6502, + k_EMsgClientDeauthorizeDeviceRequest = 6503, + k_EMsgClientDeauthorizeDevice = 6504, + k_EMsgClientUseLocalDeviceAuthorizations = 6505, + k_EMsgClientGetAuthorizedDevices = 6506, + k_EMsgClientGetAuthorizedDevicesResponse = 6507, + k_EMsgAMNotifySessionDeviceAuthorized = 6508, + k_EMsgClientAuthorizeLocalDeviceNotification = 6509, + k_EMsgMMSBase = 6600, + k_EMsgClientMMSCreateLobby = 6601, + k_EMsgClientMMSCreateLobbyResponse = 6602, + k_EMsgClientMMSJoinLobby = 6603, + k_EMsgClientMMSJoinLobbyResponse = 6604, + k_EMsgClientMMSLeaveLobby = 6605, + k_EMsgClientMMSLeaveLobbyResponse = 6606, + k_EMsgClientMMSGetLobbyList = 6607, + k_EMsgClientMMSGetLobbyListResponse = 6608, + k_EMsgClientMMSSetLobbyData = 6609, + k_EMsgClientMMSSetLobbyDataResponse = 6610, + k_EMsgClientMMSGetLobbyData = 6611, + k_EMsgClientMMSLobbyData = 6612, + k_EMsgClientMMSSendLobbyChatMsg = 6613, + k_EMsgClientMMSLobbyChatMsg = 6614, + k_EMsgClientMMSSetLobbyOwner = 6615, + k_EMsgClientMMSSetLobbyOwnerResponse = 6616, + k_EMsgClientMMSSetLobbyGameServer = 6617, + k_EMsgClientMMSLobbyGameServerSet = 6618, + k_EMsgClientMMSUserJoinedLobby = 6619, + k_EMsgClientMMSUserLeftLobby = 6620, + k_EMsgClientMMSInviteToLobby = 6621, + k_EMsgClientMMSFlushFrenemyListCache = 6622, + k_EMsgClientMMSFlushFrenemyListCacheResponse = 6623, + k_EMsgClientMMSSetLobbyLinked = 6624, + k_EMsgClientMMSSetRatelimitPolicyOnClient = 6625, + k_EMsgClientMMSGetLobbyStatus = 6626, + k_EMsgClientMMSGetLobbyStatusResponse = 6627, + k_EMsgMMSGetLobbyList = 6628, + k_EMsgMMSGetLobbyListResponse = 6629, + k_EMsgNonStdMsgBase = 6800, + k_EMsgNonStdMsgMemcached = 6801, + k_EMsgNonStdMsgHTTPServer = 6802, + k_EMsgNonStdMsgHTTPClient = 6803, + k_EMsgNonStdMsgWGResponse = 6804, + k_EMsgNonStdMsgPHPSimulator = 6805, + k_EMsgNonStdMsgChase = 6806, + k_EMsgNonStdMsgDFSTransfer = 6807, + k_EMsgNonStdMsgTests = 6808, + k_EMsgNonStdMsgUMQpipeAAPL = 6809, + k_EMSgNonStdMsgSyslog = 6810, + k_EMsgNonStdMsgLogsink = 6811, + k_EMsgNonStdMsgSteam2Emulator = 6812, + k_EMsgNonStdMsgRTMPServer = 6813, + k_EMsgNonStdMsgWebSocket = 6814, + k_EMsgNonStdMsgRedis = 6815, + k_EMsgUDSBase = 7000, + k_EMsgClientUDSP2PSessionStarted = 7001, + k_EMsgClientUDSP2PSessionEnded = 7002, + k_EMsgUDSRenderUserAuth = 7003, + k_EMsgUDSRenderUserAuthResponse = 7004, + k_EMsgClientInviteToGame = 7005, + k_EMsgUDSHasSession = 7006, + k_EMsgUDSHasSessionResponse = 7007, + k_EMsgMPASBase = 7100, + k_EMsgMPASVacBanReset = 7101, + k_EMsgKGSBase = 7200, + k_EMsgUCMBase = 7300, + k_EMsgClientUCMAddScreenshot = 7301, + k_EMsgClientUCMAddScreenshotResponse = 7302, + k_EMsgUCMResetCommunityContent = 7307, + k_EMsgUCMResetCommunityContentResponse = 7308, + k_EMsgClientUCMDeleteScreenshot = 7309, + k_EMsgClientUCMDeleteScreenshotResponse = 7310, + k_EMsgClientUCMPublishFile = 7311, + k_EMsgClientUCMPublishFileResponse = 7312, + k_EMsgClientUCMDeletePublishedFile = 7315, + k_EMsgClientUCMDeletePublishedFileResponse = 7316, + k_EMsgClientUCMUpdatePublishedFile = 7325, + k_EMsgClientUCMUpdatePublishedFileResponse = 7326, + k_EMsgUCMUpdatePublishedFile = 7327, + k_EMsgUCMUpdatePublishedFileResponse = 7328, + k_EMsgUCMUpdatePublishedFileStat = 7331, + k_EMsgUCMReloadPublishedFile = 7337, + k_EMsgUCMReloadUserFileListCaches = 7338, + k_EMsgUCMPublishedFileReported = 7339, + k_EMsgUCMPublishedFilePreviewAdd = 7341, + k_EMsgUCMPublishedFilePreviewAddResponse = 7342, + k_EMsgUCMPublishedFilePreviewRemove = 7343, + k_EMsgUCMPublishedFilePreviewRemoveResponse = 7344, + k_EMsgUCMPublishedFileSubscribed = 7349, + k_EMsgUCMPublishedFileUnsubscribed = 7350, + k_EMsgUCMPublishFile = 7351, + k_EMsgUCMPublishFileResponse = 7352, + k_EMsgUCMPublishedFileChildAdd = 7353, + k_EMsgUCMPublishedFileChildAddResponse = 7354, + k_EMsgUCMPublishedFileChildRemove = 7355, + k_EMsgUCMPublishedFileChildRemoveResponse = 7356, + k_EMsgUCMPublishedFileParentChanged = 7359, + k_EMsgClientUCMSetUserPublishedFileAction = 7364, + k_EMsgClientUCMSetUserPublishedFileActionResponse = 7365, + k_EMsgClientUCMEnumeratePublishedFilesByUserAction = 7366, + k_EMsgClientUCMEnumeratePublishedFilesByUserActionResponse = 7367, + k_EMsgUCMGetUserSubscribedFiles = 7369, + k_EMsgUCMGetUserSubscribedFilesResponse = 7370, + k_EMsgUCMFixStatsPublishedFile = 7371, + k_EMsgClientUCMEnumerateUserSubscribedFilesWithUpdates = 7378, + k_EMsgClientUCMEnumerateUserSubscribedFilesWithUpdatesResponse = 7379, + k_EMsgUCMPublishedFileContentUpdated = 7380, + k_EMsgClientUCMPublishedFileUpdated = 7381, + k_EMsgFSBase = 7500, + k_EMsgClientRichPresenceUpload = 7501, + k_EMsgClientRichPresenceRequest = 7502, + k_EMsgClientRichPresenceInfo = 7503, + k_EMsgFSRichPresenceRequest = 7504, + k_EMsgFSRichPresenceResponse = 7505, + k_EMsgFSComputeFrenematrix = 7506, + k_EMsgFSComputeFrenematrixResponse = 7507, + k_EMsgFSPlayStatusNotification = 7508, + k_EMsgFSAddOrRemoveFollower = 7510, + k_EMsgFSAddOrRemoveFollowerResponse = 7511, + k_EMsgFSUpdateFollowingList = 7512, + k_EMsgFSCommentNotification = 7513, + k_EMsgFSCommentNotificationViewed = 7514, + k_EMsgClientFSGetFollowerCount = 7515, + k_EMsgClientFSGetFollowerCountResponse = 7516, + k_EMsgClientFSGetIsFollowing = 7517, + k_EMsgClientFSGetIsFollowingResponse = 7518, + k_EMsgClientFSEnumerateFollowingList = 7519, + k_EMsgClientFSEnumerateFollowingListResponse = 7520, + k_EMsgFSGetPendingNotificationCount = 7521, + k_EMsgFSGetPendingNotificationCountResponse = 7522, + k_EMsgClientChatOfflineMessageNotification = 7523, + k_EMsgClientChatRequestOfflineMessageCount = 7524, + k_EMsgClientChatGetFriendMessageHistory = 7525, + k_EMsgClientChatGetFriendMessageHistoryResponse = 7526, + k_EMsgClientChatGetFriendMessageHistoryForOfflineMessages = 7527, + k_EMsgClientFSGetFriendsSteamLevels = 7528, + k_EMsgClientFSGetFriendsSteamLevelsResponse = 7529, + k_EMsgAMRequestFriendData = 7530, + k_EMsgDRMRange2 = 7600, + k_EMsgCEGVersionSetEnableDisableRequest = 7600, + k_EMsgCEGVersionSetEnableDisableResponse = 7601, + k_EMsgCEGPropStatusDRMSRequest = 7602, + k_EMsgCEGPropStatusDRMSResponse = 7603, + k_EMsgCEGWhackFailureReportRequest = 7604, + k_EMsgCEGWhackFailureReportResponse = 7605, + k_EMsgDRMSFetchVersionSet = 7606, + k_EMsgDRMSFetchVersionSetResponse = 7607, + k_EMsgEconBase = 7700, + k_EMsgEconTrading_InitiateTradeRequest = 7701, + k_EMsgEconTrading_InitiateTradeProposed = 7702, + k_EMsgEconTrading_InitiateTradeResponse = 7703, + k_EMsgEconTrading_InitiateTradeResult = 7704, + k_EMsgEconTrading_StartSession = 7705, + k_EMsgEconTrading_CancelTradeRequest = 7706, + k_EMsgEconFlushInventoryCache = 7707, + k_EMsgEconFlushInventoryCacheResponse = 7708, + k_EMsgEconCDKeyProcessTransaction = 7711, + k_EMsgEconCDKeyProcessTransactionResponse = 7712, + k_EMsgEconGetErrorLogs = 7713, + k_EMsgEconGetErrorLogsResponse = 7714, + k_EMsgRMRange = 7800, + k_EMsgRMTestVerisignOTP = 7800, + k_EMsgRMTestVerisignOTPResponse = 7801, + k_EMsgRMDeleteMemcachedKeys = 7803, + k_EMsgRMRemoteInvoke = 7804, + k_EMsgBadLoginIPList = 7805, + k_EMsgRMMsgTraceAddTrigger = 7806, + k_EMsgRMMsgTraceRemoveTrigger = 7807, + k_EMsgRMMsgTraceEvent = 7808, + k_EMsgUGSBase = 7900, + k_EMsgUGSUpdateGlobalStats = 7900, + k_EMsgClientUGSGetGlobalStats = 7901, + k_EMsgClientUGSGetGlobalStatsResponse = 7902, + k_EMsgStoreBase = 8000, + k_EMsgUMQBase = 8100, + k_EMsgUMQLogonRequest = 8100, + k_EMsgUMQLogonResponse = 8101, + k_EMsgUMQLogoffRequest = 8102, + k_EMsgUMQLogoffResponse = 8103, + k_EMsgUMQSendChatMessage = 8104, + k_EMsgUMQIncomingChatMessage = 8105, + k_EMsgUMQPoll = 8106, + k_EMsgUMQPollResults = 8107, + k_EMsgUMQ2AM_ClientMsgBatch = 8108, + k_EMsgWorkshopBase = 8200, + k_EMsgWebAPIBase = 8300, + k_EMsgWebAPIValidateOAuth2Token = 8300, + k_EMsgWebAPIValidateOAuth2TokenResponse = 8301, + k_EMsgWebAPIRegisterGCInterfaces = 8303, + k_EMsgWebAPIInvalidateOAuthClientCache = 8304, + k_EMsgWebAPIInvalidateOAuthTokenCache = 8305, + k_EMsgWebAPISetSecrets = 8306, + k_EMsgBackpackBase = 8400, + k_EMsgBackpackAddToCurrency = 8401, + k_EMsgBackpackAddToCurrencyResponse = 8402, + k_EMsgCREBase = 8500, + k_EMsgCREItemVoteSummary = 8503, + k_EMsgCREItemVoteSummaryResponse = 8504, + k_EMsgCREUpdateUserPublishedItemVote = 8507, + k_EMsgCREUpdateUserPublishedItemVoteResponse = 8508, + k_EMsgCREGetUserPublishedItemVoteDetails = 8509, + k_EMsgCREGetUserPublishedItemVoteDetailsResponse = 8510, + k_EMsgSecretsBase = 8600, + k_EMsgSecretsRequestCredentialPair = 8600, + k_EMsgSecretsCredentialPairResponse = 8601, + k_EMsgBoxMonitorBase = 8700, + k_EMsgBoxMonitorReportRequest = 8700, + k_EMsgBoxMonitorReportResponse = 8701, + k_EMsgLogsinkBase = 8800, + k_EMsgLogsinkWriteReport = 8800, + k_EMsgPICSBase = 8900, + k_EMsgClientPICSChangesSinceRequest = 8901, + k_EMsgClientPICSChangesSinceResponse = 8902, + k_EMsgClientPICSProductInfoRequest = 8903, + k_EMsgClientPICSProductInfoResponse = 8904, + k_EMsgClientPICSAccessTokenRequest = 8905, + k_EMsgClientPICSAccessTokenResponse = 8906, + k_EMsgWorkerProcess = 9000, + k_EMsgWorkerProcessPingRequest = 9000, + k_EMsgWorkerProcessPingResponse = 9001, + k_EMsgWorkerProcessShutdown = 9002, + k_EMsgDRMWorkerProcess = 9100, + k_EMsgDRMWorkerProcessDRMAndSign = 9100, + k_EMsgDRMWorkerProcessDRMAndSignResponse = 9101, + k_EMsgDRMWorkerProcessSteamworksInfoRequest = 9102, + k_EMsgDRMWorkerProcessSteamworksInfoResponse = 9103, + k_EMsgDRMWorkerProcessInstallDRMDLLRequest = 9104, + k_EMsgDRMWorkerProcessInstallDRMDLLResponse = 9105, + k_EMsgDRMWorkerProcessSecretIdStringRequest = 9106, + k_EMsgDRMWorkerProcessSecretIdStringResponse = 9107, + k_EMsgDRMWorkerProcessInstallProcessedFilesRequest = 9110, + k_EMsgDRMWorkerProcessInstallProcessedFilesResponse = 9111, + k_EMsgDRMWorkerProcessExamineBlobRequest = 9112, + k_EMsgDRMWorkerProcessExamineBlobResponse = 9113, + k_EMsgDRMWorkerProcessDescribeSecretRequest = 9114, + k_EMsgDRMWorkerProcessDescribeSecretResponse = 9115, + k_EMsgDRMWorkerProcessBackfillOriginalRequest = 9116, + k_EMsgDRMWorkerProcessBackfillOriginalResponse = 9117, + k_EMsgDRMWorkerProcessValidateDRMDLLRequest = 9118, + k_EMsgDRMWorkerProcessValidateDRMDLLResponse = 9119, + k_EMsgDRMWorkerProcessValidateFileRequest = 9120, + k_EMsgDRMWorkerProcessValidateFileResponse = 9121, + k_EMsgDRMWorkerProcessSplitAndInstallRequest = 9122, + k_EMsgDRMWorkerProcessSplitAndInstallResponse = 9123, + k_EMsgDRMWorkerProcessGetBlobRequest = 9124, + k_EMsgDRMWorkerProcessGetBlobResponse = 9125, + k_EMsgDRMWorkerProcessEvaluateCrashRequest = 9126, + k_EMsgDRMWorkerProcessEvaluateCrashResponse = 9127, + k_EMsgDRMWorkerProcessAnalyzeFileRequest = 9128, + k_EMsgDRMWorkerProcessAnalyzeFileResponse = 9129, + k_EMsgDRMWorkerProcessUnpackBlobRequest = 9130, + k_EMsgDRMWorkerProcessUnpackBlobResponse = 9131, + k_EMsgDRMWorkerProcessInstallAllRequest = 9132, + k_EMsgDRMWorkerProcessInstallAllResponse = 9133, + k_EMsgTestWorkerProcess = 9200, + k_EMsgTestWorkerProcessLoadUnloadModuleRequest = 9200, + k_EMsgTestWorkerProcessLoadUnloadModuleResponse = 9201, + k_EMsgTestWorkerProcessServiceModuleCallRequest = 9202, + k_EMsgTestWorkerProcessServiceModuleCallResponse = 9203, + k_EMsgQuestServerBase = 9300, + k_EMsgClientGetEmoticonList = 9330, + k_EMsgClientEmoticonList = 9331, + k_EMsgSLCBase = 9400, + k_EMsgSLCUserSessionStatus = 9400, + k_EMsgSLCRequestUserSessionStatus = 9401, + k_EMsgSLCSharedLicensesLockStatus = 9402, + k_EMsgClientSharedLibraryLockStatus = 9405, + k_EMsgClientSharedLibraryStopPlaying = 9406, + k_EMsgSLCOwnerLibraryChanged = 9407, + k_EMsgSLCSharedLibraryChanged = 9408, + k_EMsgRemoteClientBase = 9500, + k_EMsgRemoteClientAuth_OBSOLETE = 9500, + k_EMsgRemoteClientAuthResponse_OBSOLETE = 9501, + k_EMsgRemoteClientAppStatus = 9502, + k_EMsgRemoteClientStartStream = 9503, + k_EMsgRemoteClientStartStreamResponse = 9504, + k_EMsgRemoteClientPing = 9505, + k_EMsgRemoteClientPingResponse = 9506, + k_EMsgClientUnlockH264 = 9507, + k_EMsgClientUnlockH264Response = 9508, + k_EMsgRemoteClientAcceptEULA = 9509, + k_EMsgRemoteClientGetControllerConfig = 9510, + k_EMsgRemoteClientGetControllerConfigResponse = 9511, + k_EMsgRemoteClientStreamingEnabled = 9512, + k_EMsgClientUnlockHEVC_OBSOLETE = 9513, + k_EMsgClientUnlockHEVCResponse_OBSOLETE = 9514, + k_EMsgRemoteClientStatusRequest = 9515, + k_EMsgRemoteClientStatusResponse = 9516, + k_EMsgClientConcurrentSessionsBase = 9600, + k_EMsgClientPlayingSessionState = 9600, + k_EMsgClientKickPlayingSession = 9601, + k_EMsgClientBroadcastBase = 9700, + k_EMsgClientBroadcastInit = 9700, + k_EMsgClientBroadcastFrames = 9701, + k_EMsgClientBroadcastDisconnect = 9702, + k_EMsgClientBroadcastUploadConfig = 9704, + k_EMsgBaseClient3 = 9800, + k_EMsgClientVoiceCallPreAuthorize = 9800, + k_EMsgClientVoiceCallPreAuthorizeResponse = 9801, + k_EMsgClientServerTimestampRequest = 9802, + k_EMsgClientServerTimestampResponse = 9803, + k_EMsgServiceMethodCallFromClientNonAuthed = 9804, + k_EMsgClientHello = 9805, + k_EMsgClientEnableOrDisableDownloads = 9806, + k_EMsgClientEnableOrDisableDownloadsResponse = 9807, + k_EMsgClientLANP2PBase = 9900, + k_EMsgClientLANP2PRequestChunk = 9900, + k_EMsgClientLANP2PRequestChunkResponse = 9901, + k_EMsgClientPeerChunkRequest = 9902, + k_EMsgClientPeerChunkResponse = 9903, + k_EMsgClientLANP2PMax = 9999, + k_EMsgBaseWatchdogServer = 10000, + k_EMsgNotifyWatchdog = 10000, + k_EMsgClientSiteLicenseBase = 10100, + k_EMsgClientSiteLicenseSiteInfoNotification = 10100, + k_EMsgClientSiteLicenseCheckout = 10101, + k_EMsgClientSiteLicenseCheckoutResponse = 10102, + k_EMsgClientSiteLicenseGetAvailableSeats = 10103, + k_EMsgClientSiteLicenseGetAvailableSeatsResponse = 10104, + k_EMsgClientSiteLicenseGetContentCacheInfo = 10105, + k_EMsgClientSiteLicenseGetContentCacheInfoResponse = 10106, + k_EMsgBaseChatServer = 12000, + k_EMsgChatServerGetPendingNotificationCount = 12000, + k_EMsgChatServerGetPendingNotificationCountResponse = 12001, + k_EMsgBaseSecretServer = 12100, + k_EMsgServerSecretChanged = 12100, + k_EMsgBaseWG = 12200, + k_EMsgWGConnectionProtocolError = 12200, + k_EMsgWGConnectionValidateUserToken = 12201, + k_EMsgWGConnectionValidateUserTokenResponse = 12202, + k_EMsgWGConnectionLegacyWGRequest = 12203, + k_EMsgWGConnectionLegacyWGResponse = 12204, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EMsgClanAccountFlags.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EMsgClanAccountFlags.cs index ff6b60596..116aed7de 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EMsgClanAccountFlags.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EMsgClanAccountFlags.cs @@ -3,9 +3,9 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EMsgClanAccountFlags { - k_EMsgClanAccountFlagPublic = 1, - k_EMsgClanAccountFlagLarge = 2, - k_EMsgClanAccountFlagLocked = 4, - k_EMsgClanAccountFlagDisabled = 8, - k_EMsgClanAccountFlagOGG = 16, + k_EMsgClanAccountFlagPublic = 1, + k_EMsgClanAccountFlagLarge = 2, + k_EMsgClanAccountFlagLocked = 4, + k_EMsgClanAccountFlagDisabled = 8, + k_EMsgClanAccountFlagOGG = 16, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ENetworkDisconnectionReason.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ENetworkDisconnectionReason.cs index ac37722ee..e0349baeb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ENetworkDisconnectionReason.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ENetworkDisconnectionReason.cs @@ -3,125 +3,125 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ENetworkDisconnectionReason { - NETWORK_DISCONNECT_INVALID = 0, - NETWORK_DISCONNECT_SHUTDOWN = 1, - NETWORK_DISCONNECT_DISCONNECT_BY_USER = 2, - NETWORK_DISCONNECT_DISCONNECT_BY_SERVER = 3, - NETWORK_DISCONNECT_LOST = 4, - NETWORK_DISCONNECT_OVERFLOW = 5, - NETWORK_DISCONNECT_STEAM_BANNED = 6, - NETWORK_DISCONNECT_STEAM_INUSE = 7, - NETWORK_DISCONNECT_STEAM_TICKET = 8, - NETWORK_DISCONNECT_STEAM_LOGON = 9, - NETWORK_DISCONNECT_STEAM_AUTHCANCELLED = 10, - NETWORK_DISCONNECT_STEAM_AUTHALREADYUSED = 11, - NETWORK_DISCONNECT_STEAM_AUTHINVALID = 12, - NETWORK_DISCONNECT_STEAM_VACBANSTATE = 13, - NETWORK_DISCONNECT_STEAM_LOGGED_IN_ELSEWHERE = 14, - NETWORK_DISCONNECT_STEAM_VAC_CHECK_TIMEDOUT = 15, - NETWORK_DISCONNECT_STEAM_DROPPED = 16, - NETWORK_DISCONNECT_STEAM_OWNERSHIP = 17, - NETWORK_DISCONNECT_SERVERINFO_OVERFLOW = 18, - NETWORK_DISCONNECT_TICKMSG_OVERFLOW = 19, - NETWORK_DISCONNECT_STRINGTABLEMSG_OVERFLOW = 20, - NETWORK_DISCONNECT_DELTAENTMSG_OVERFLOW = 21, - NETWORK_DISCONNECT_TEMPENTMSG_OVERFLOW = 22, - NETWORK_DISCONNECT_SOUNDSMSG_OVERFLOW = 23, - NETWORK_DISCONNECT_SNAPSHOTOVERFLOW = 24, - NETWORK_DISCONNECT_SNAPSHOTERROR = 25, - NETWORK_DISCONNECT_RELIABLEOVERFLOW = 26, - NETWORK_DISCONNECT_BADDELTATICK = 27, - NETWORK_DISCONNECT_NOMORESPLITS = 28, - NETWORK_DISCONNECT_TIMEDOUT = 29, - NETWORK_DISCONNECT_DISCONNECTED = 30, - NETWORK_DISCONNECT_LEAVINGSPLIT = 31, - NETWORK_DISCONNECT_DIFFERENTCLASSTABLES = 32, - NETWORK_DISCONNECT_BADRELAYPASSWORD = 33, - NETWORK_DISCONNECT_BADSPECTATORPASSWORD = 34, - NETWORK_DISCONNECT_HLTVRESTRICTED = 35, - NETWORK_DISCONNECT_NOSPECTATORS = 36, - NETWORK_DISCONNECT_HLTVUNAVAILABLE = 37, - NETWORK_DISCONNECT_HLTVSTOP = 38, - NETWORK_DISCONNECT_KICKED = 39, - NETWORK_DISCONNECT_BANADDED = 40, - NETWORK_DISCONNECT_KICKBANADDED = 41, - NETWORK_DISCONNECT_HLTVDIRECT = 42, - NETWORK_DISCONNECT_PURESERVER_CLIENTEXTRA = 43, - NETWORK_DISCONNECT_PURESERVER_MISMATCH = 44, - NETWORK_DISCONNECT_USERCMD = 45, - NETWORK_DISCONNECT_REJECTED_BY_GAME = 46, - NETWORK_DISCONNECT_MESSAGE_PARSE_ERROR = 47, - NETWORK_DISCONNECT_INVALID_MESSAGE_ERROR = 48, - NETWORK_DISCONNECT_BAD_SERVER_PASSWORD = 49, - NETWORK_DISCONNECT_DIRECT_CONNECT_RESERVATION = 50, - NETWORK_DISCONNECT_CONNECTION_FAILURE = 51, - NETWORK_DISCONNECT_NO_PEER_GROUP_HANDLERS = 52, - NETWORK_DISCONNECT_RECONNECTION = 53, - NETWORK_DISCONNECT_LOOPSHUTDOWN = 54, - NETWORK_DISCONNECT_LOOPDEACTIVATE = 55, - NETWORK_DISCONNECT_HOST_ENDGAME = 56, - NETWORK_DISCONNECT_LOOP_LEVELLOAD_ACTIVATE = 57, - NETWORK_DISCONNECT_CREATE_SERVER_FAILED = 58, - NETWORK_DISCONNECT_EXITING = 59, - NETWORK_DISCONNECT_REQUEST_HOSTSTATE_IDLE = 60, - NETWORK_DISCONNECT_REQUEST_HOSTSTATE_HLTVRELAY = 61, - NETWORK_DISCONNECT_CLIENT_CONSISTENCY_FAIL = 62, - NETWORK_DISCONNECT_CLIENT_UNABLE_TO_CRC_MAP = 63, - NETWORK_DISCONNECT_CLIENT_NO_MAP = 64, - NETWORK_DISCONNECT_CLIENT_DIFFERENT_MAP = 65, - NETWORK_DISCONNECT_SERVER_REQUIRES_STEAM = 66, - NETWORK_DISCONNECT_STEAM_DENY_MISC = 67, - NETWORK_DISCONNECT_STEAM_DENY_BAD_ANTI_CHEAT = 68, - NETWORK_DISCONNECT_SERVER_SHUTDOWN = 69, - NETWORK_DISCONNECT_REPLAY_INCOMPATIBLE = 71, - NETWORK_DISCONNECT_CONNECT_REQUEST_TIMEDOUT = 72, - NETWORK_DISCONNECT_SERVER_INCOMPATIBLE = 73, - NETWORK_DISCONNECT_LOCALPROBLEM_MANYRELAYS = 74, - NETWORK_DISCONNECT_LOCALPROBLEM_HOSTEDSERVERPRIMARYRELAY = 75, - NETWORK_DISCONNECT_LOCALPROBLEM_NETWORKCONFIG = 76, - NETWORK_DISCONNECT_LOCALPROBLEM_OTHER = 77, - NETWORK_DISCONNECT_REMOTE_TIMEOUT = 79, - NETWORK_DISCONNECT_REMOTE_TIMEOUT_CONNECTING = 80, - NETWORK_DISCONNECT_REMOTE_OTHER = 81, - NETWORK_DISCONNECT_REMOTE_BADCRYPT = 82, - NETWORK_DISCONNECT_REMOTE_CERTNOTTRUSTED = 83, - NETWORK_DISCONNECT_UNUSUAL = 84, - NETWORK_DISCONNECT_INTERNAL_ERROR = 85, - NETWORK_DISCONNECT_REJECT_BADCHALLENGE = 128, - NETWORK_DISCONNECT_REJECT_NOLOBBY = 129, - NETWORK_DISCONNECT_REJECT_BACKGROUND_MAP = 130, - NETWORK_DISCONNECT_REJECT_SINGLE_PLAYER = 131, - NETWORK_DISCONNECT_REJECT_HIDDEN_GAME = 132, - NETWORK_DISCONNECT_REJECT_LANRESTRICT = 133, - NETWORK_DISCONNECT_REJECT_BADPASSWORD = 134, - NETWORK_DISCONNECT_REJECT_SERVERFULL = 135, - NETWORK_DISCONNECT_REJECT_INVALIDRESERVATION = 136, - NETWORK_DISCONNECT_REJECT_FAILEDCHANNEL = 137, - NETWORK_DISCONNECT_REJECT_CONNECT_FROM_LOBBY = 138, - NETWORK_DISCONNECT_REJECT_RESERVED_FOR_LOBBY = 139, - NETWORK_DISCONNECT_REJECT_INVALIDKEYLENGTH = 140, - NETWORK_DISCONNECT_REJECT_OLDPROTOCOL = 141, - NETWORK_DISCONNECT_REJECT_NEWPROTOCOL = 142, - NETWORK_DISCONNECT_REJECT_INVALIDCONNECTION = 143, - NETWORK_DISCONNECT_REJECT_INVALIDCERTLEN = 144, - NETWORK_DISCONNECT_REJECT_INVALIDSTEAMCERTLEN = 145, - NETWORK_DISCONNECT_REJECT_STEAM = 146, - NETWORK_DISCONNECT_REJECT_SERVERAUTHDISABLED = 147, - NETWORK_DISCONNECT_REJECT_SERVERCDKEYAUTHINVALID = 148, - NETWORK_DISCONNECT_REJECT_BANNED = 149, - NETWORK_DISCONNECT_KICKED_TEAMKILLING = 150, - NETWORK_DISCONNECT_KICKED_TK_START = 151, - NETWORK_DISCONNECT_KICKED_UNTRUSTEDACCOUNT = 152, - NETWORK_DISCONNECT_KICKED_CONVICTEDACCOUNT = 153, - NETWORK_DISCONNECT_KICKED_COMPETITIVECOOLDOWN = 154, - NETWORK_DISCONNECT_KICKED_TEAMHURTING = 155, - NETWORK_DISCONNECT_KICKED_HOSTAGEKILLING = 156, - NETWORK_DISCONNECT_KICKED_VOTEDOFF = 157, - NETWORK_DISCONNECT_KICKED_IDLE = 158, - NETWORK_DISCONNECT_KICKED_SUICIDE = 159, - NETWORK_DISCONNECT_KICKED_NOSTEAMLOGIN = 160, - NETWORK_DISCONNECT_KICKED_NOSTEAMTICKET = 161, - NETWORK_DISCONNECT_KICKED_INPUTAUTOMATION = 162, - NETWORK_DISCONNECT_KICKED_VACNETABNORMALBEHAVIOR = 163, - NETWORK_DISCONNECT_KICKED_INSECURECLIENT = 164, + NETWORK_DISCONNECT_INVALID = 0, + NETWORK_DISCONNECT_SHUTDOWN = 1, + NETWORK_DISCONNECT_DISCONNECT_BY_USER = 2, + NETWORK_DISCONNECT_DISCONNECT_BY_SERVER = 3, + NETWORK_DISCONNECT_LOST = 4, + NETWORK_DISCONNECT_OVERFLOW = 5, + NETWORK_DISCONNECT_STEAM_BANNED = 6, + NETWORK_DISCONNECT_STEAM_INUSE = 7, + NETWORK_DISCONNECT_STEAM_TICKET = 8, + NETWORK_DISCONNECT_STEAM_LOGON = 9, + NETWORK_DISCONNECT_STEAM_AUTHCANCELLED = 10, + NETWORK_DISCONNECT_STEAM_AUTHALREADYUSED = 11, + NETWORK_DISCONNECT_STEAM_AUTHINVALID = 12, + NETWORK_DISCONNECT_STEAM_VACBANSTATE = 13, + NETWORK_DISCONNECT_STEAM_LOGGED_IN_ELSEWHERE = 14, + NETWORK_DISCONNECT_STEAM_VAC_CHECK_TIMEDOUT = 15, + NETWORK_DISCONNECT_STEAM_DROPPED = 16, + NETWORK_DISCONNECT_STEAM_OWNERSHIP = 17, + NETWORK_DISCONNECT_SERVERINFO_OVERFLOW = 18, + NETWORK_DISCONNECT_TICKMSG_OVERFLOW = 19, + NETWORK_DISCONNECT_STRINGTABLEMSG_OVERFLOW = 20, + NETWORK_DISCONNECT_DELTAENTMSG_OVERFLOW = 21, + NETWORK_DISCONNECT_TEMPENTMSG_OVERFLOW = 22, + NETWORK_DISCONNECT_SOUNDSMSG_OVERFLOW = 23, + NETWORK_DISCONNECT_SNAPSHOTOVERFLOW = 24, + NETWORK_DISCONNECT_SNAPSHOTERROR = 25, + NETWORK_DISCONNECT_RELIABLEOVERFLOW = 26, + NETWORK_DISCONNECT_BADDELTATICK = 27, + NETWORK_DISCONNECT_NOMORESPLITS = 28, + NETWORK_DISCONNECT_TIMEDOUT = 29, + NETWORK_DISCONNECT_DISCONNECTED = 30, + NETWORK_DISCONNECT_LEAVINGSPLIT = 31, + NETWORK_DISCONNECT_DIFFERENTCLASSTABLES = 32, + NETWORK_DISCONNECT_BADRELAYPASSWORD = 33, + NETWORK_DISCONNECT_BADSPECTATORPASSWORD = 34, + NETWORK_DISCONNECT_HLTVRESTRICTED = 35, + NETWORK_DISCONNECT_NOSPECTATORS = 36, + NETWORK_DISCONNECT_HLTVUNAVAILABLE = 37, + NETWORK_DISCONNECT_HLTVSTOP = 38, + NETWORK_DISCONNECT_KICKED = 39, + NETWORK_DISCONNECT_BANADDED = 40, + NETWORK_DISCONNECT_KICKBANADDED = 41, + NETWORK_DISCONNECT_HLTVDIRECT = 42, + NETWORK_DISCONNECT_PURESERVER_CLIENTEXTRA = 43, + NETWORK_DISCONNECT_PURESERVER_MISMATCH = 44, + NETWORK_DISCONNECT_USERCMD = 45, + NETWORK_DISCONNECT_REJECTED_BY_GAME = 46, + NETWORK_DISCONNECT_MESSAGE_PARSE_ERROR = 47, + NETWORK_DISCONNECT_INVALID_MESSAGE_ERROR = 48, + NETWORK_DISCONNECT_BAD_SERVER_PASSWORD = 49, + NETWORK_DISCONNECT_DIRECT_CONNECT_RESERVATION = 50, + NETWORK_DISCONNECT_CONNECTION_FAILURE = 51, + NETWORK_DISCONNECT_NO_PEER_GROUP_HANDLERS = 52, + NETWORK_DISCONNECT_RECONNECTION = 53, + NETWORK_DISCONNECT_LOOPSHUTDOWN = 54, + NETWORK_DISCONNECT_LOOPDEACTIVATE = 55, + NETWORK_DISCONNECT_HOST_ENDGAME = 56, + NETWORK_DISCONNECT_LOOP_LEVELLOAD_ACTIVATE = 57, + NETWORK_DISCONNECT_CREATE_SERVER_FAILED = 58, + NETWORK_DISCONNECT_EXITING = 59, + NETWORK_DISCONNECT_REQUEST_HOSTSTATE_IDLE = 60, + NETWORK_DISCONNECT_REQUEST_HOSTSTATE_HLTVRELAY = 61, + NETWORK_DISCONNECT_CLIENT_CONSISTENCY_FAIL = 62, + NETWORK_DISCONNECT_CLIENT_UNABLE_TO_CRC_MAP = 63, + NETWORK_DISCONNECT_CLIENT_NO_MAP = 64, + NETWORK_DISCONNECT_CLIENT_DIFFERENT_MAP = 65, + NETWORK_DISCONNECT_SERVER_REQUIRES_STEAM = 66, + NETWORK_DISCONNECT_STEAM_DENY_MISC = 67, + NETWORK_DISCONNECT_STEAM_DENY_BAD_ANTI_CHEAT = 68, + NETWORK_DISCONNECT_SERVER_SHUTDOWN = 69, + NETWORK_DISCONNECT_REPLAY_INCOMPATIBLE = 71, + NETWORK_DISCONNECT_CONNECT_REQUEST_TIMEDOUT = 72, + NETWORK_DISCONNECT_SERVER_INCOMPATIBLE = 73, + NETWORK_DISCONNECT_LOCALPROBLEM_MANYRELAYS = 74, + NETWORK_DISCONNECT_LOCALPROBLEM_HOSTEDSERVERPRIMARYRELAY = 75, + NETWORK_DISCONNECT_LOCALPROBLEM_NETWORKCONFIG = 76, + NETWORK_DISCONNECT_LOCALPROBLEM_OTHER = 77, + NETWORK_DISCONNECT_REMOTE_TIMEOUT = 79, + NETWORK_DISCONNECT_REMOTE_TIMEOUT_CONNECTING = 80, + NETWORK_DISCONNECT_REMOTE_OTHER = 81, + NETWORK_DISCONNECT_REMOTE_BADCRYPT = 82, + NETWORK_DISCONNECT_REMOTE_CERTNOTTRUSTED = 83, + NETWORK_DISCONNECT_UNUSUAL = 84, + NETWORK_DISCONNECT_INTERNAL_ERROR = 85, + NETWORK_DISCONNECT_REJECT_BADCHALLENGE = 128, + NETWORK_DISCONNECT_REJECT_NOLOBBY = 129, + NETWORK_DISCONNECT_REJECT_BACKGROUND_MAP = 130, + NETWORK_DISCONNECT_REJECT_SINGLE_PLAYER = 131, + NETWORK_DISCONNECT_REJECT_HIDDEN_GAME = 132, + NETWORK_DISCONNECT_REJECT_LANRESTRICT = 133, + NETWORK_DISCONNECT_REJECT_BADPASSWORD = 134, + NETWORK_DISCONNECT_REJECT_SERVERFULL = 135, + NETWORK_DISCONNECT_REJECT_INVALIDRESERVATION = 136, + NETWORK_DISCONNECT_REJECT_FAILEDCHANNEL = 137, + NETWORK_DISCONNECT_REJECT_CONNECT_FROM_LOBBY = 138, + NETWORK_DISCONNECT_REJECT_RESERVED_FOR_LOBBY = 139, + NETWORK_DISCONNECT_REJECT_INVALIDKEYLENGTH = 140, + NETWORK_DISCONNECT_REJECT_OLDPROTOCOL = 141, + NETWORK_DISCONNECT_REJECT_NEWPROTOCOL = 142, + NETWORK_DISCONNECT_REJECT_INVALIDCONNECTION = 143, + NETWORK_DISCONNECT_REJECT_INVALIDCERTLEN = 144, + NETWORK_DISCONNECT_REJECT_INVALIDSTEAMCERTLEN = 145, + NETWORK_DISCONNECT_REJECT_STEAM = 146, + NETWORK_DISCONNECT_REJECT_SERVERAUTHDISABLED = 147, + NETWORK_DISCONNECT_REJECT_SERVERCDKEYAUTHINVALID = 148, + NETWORK_DISCONNECT_REJECT_BANNED = 149, + NETWORK_DISCONNECT_KICKED_TEAMKILLING = 150, + NETWORK_DISCONNECT_KICKED_TK_START = 151, + NETWORK_DISCONNECT_KICKED_UNTRUSTEDACCOUNT = 152, + NETWORK_DISCONNECT_KICKED_CONVICTEDACCOUNT = 153, + NETWORK_DISCONNECT_KICKED_COMPETITIVECOOLDOWN = 154, + NETWORK_DISCONNECT_KICKED_TEAMHURTING = 155, + NETWORK_DISCONNECT_KICKED_HOSTAGEKILLING = 156, + NETWORK_DISCONNECT_KICKED_VOTEDOFF = 157, + NETWORK_DISCONNECT_KICKED_IDLE = 158, + NETWORK_DISCONNECT_KICKED_SUICIDE = 159, + NETWORK_DISCONNECT_KICKED_NOSTEAMLOGIN = 160, + NETWORK_DISCONNECT_KICKED_NOSTEAMTICKET = 161, + NETWORK_DISCONNECT_KICKED_INPUTAUTOMATION = 162, + NETWORK_DISCONNECT_KICKED_VACNETABNORMALBEHAVIOR = 163, + NETWORK_DISCONNECT_KICKED_INSECURECLIENT = 164, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EProtoDebugVisiblity.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EProtoDebugVisiblity.cs index 8aeef563b..716660099 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EProtoDebugVisiblity.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EProtoDebugVisiblity.cs @@ -3,9 +3,9 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EProtoDebugVisiblity { - k_EProtoDebugVisibility_Always = 0, - k_EProtoDebugVisibility_Server = 70, - k_EProtoDebugVisibility_ValveServer = 80, - k_EProtoDebugVisibility_GC = 90, - k_EProtoDebugVisibility_Never = 100, + k_EProtoDebugVisibility_Always = 0, + k_EProtoDebugVisibility_Server = 70, + k_EProtoDebugVisibility_ValveServer = 80, + k_EProtoDebugVisibility_GC = 90, + k_EProtoDebugVisibility_Never = 100, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EQueryCvarValueStatus.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EQueryCvarValueStatus.cs index cf68a5eae..7039362fb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EQueryCvarValueStatus.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EQueryCvarValueStatus.cs @@ -3,8 +3,8 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EQueryCvarValueStatus { - eQueryCvarValueStatus_ValueIntact = 0, - eQueryCvarValueStatus_CvarNotFound = 1, - eQueryCvarValueStatus_NotACvar = 2, - eQueryCvarValueStatus_CvarProtected = 3, + eQueryCvarValueStatus_ValueIntact = 0, + eQueryCvarValueStatus_CvarNotFound = 1, + eQueryCvarValueStatus_NotACvar = 2, + eQueryCvarValueStatus_CvarProtected = 3, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ESOMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ESOMsg.cs index cf28caadc..0524ce02b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ESOMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ESOMsg.cs @@ -3,12 +3,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ESOMsg { - k_ESOMsg_Create = 21, - k_ESOMsg_Update = 22, - k_ESOMsg_Destroy = 23, - k_ESOMsg_CacheSubscribed = 24, - k_ESOMsg_CacheUnsubscribed = 25, - k_ESOMsg_UpdateMultiple = 26, - k_ESOMsg_CacheSubscriptionCheck = 27, - k_ESOMsg_CacheSubscriptionRefresh = 28, + k_ESOMsg_Create = 21, + k_ESOMsg_Update = 22, + k_ESOMsg_Destroy = 23, + k_ESOMsg_CacheSubscribed = 24, + k_ESOMsg_CacheUnsubscribed = 25, + k_ESOMsg_UpdateMultiple = 26, + k_ESOMsg_CacheSubscriptionCheck = 27, + k_ESOMsg_CacheSubscriptionRefresh = 28, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ESplitScreenMessageType.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ESplitScreenMessageType.cs index bf9ffd899..f86c4e12c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ESplitScreenMessageType.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ESplitScreenMessageType.cs @@ -3,6 +3,6 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ESplitScreenMessageType { - MSG_SPLITSCREEN_ADDUSER = 0, - MSG_SPLITSCREEN_REMOVEUSER = 1, + MSG_SPLITSCREEN_ADDUSER = 0, + MSG_SPLITSCREEN_REMOVEUSER = 1, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ESteamReviewScore.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ESteamReviewScore.cs index 9f5c357dd..44d5523d9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ESteamReviewScore.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ESteamReviewScore.cs @@ -3,14 +3,14 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ESteamReviewScore { - k_ESteamReviewScore_OverwhelminglyPositive = 9, - k_ESteamReviewScore_VeryPositive = 8, - k_ESteamReviewScore_Positive = 7, - k_ESteamReviewScore_MostlyPositive = 6, - k_ESteamReviewScore_Mixed = 5, - k_ESteamReviewScore_MostlyNegative = 4, - k_ESteamReviewScore_Negative = 3, - k_ESteamReviewScore_VeryNegative = 2, - k_ESteamReviewScore_OverwhelminglyNegative = 1, - k_ESteamReviewScore_None = 0, + k_ESteamReviewScore_OverwhelminglyPositive = 9, + k_ESteamReviewScore_VeryPositive = 8, + k_ESteamReviewScore_Positive = 7, + k_ESteamReviewScore_MostlyPositive = 6, + k_ESteamReviewScore_Mixed = 5, + k_ESteamReviewScore_MostlyNegative = 4, + k_ESteamReviewScore_Negative = 3, + k_ESteamReviewScore_VeryNegative = 2, + k_ESteamReviewScore_OverwhelminglyNegative = 1, + k_ESteamReviewScore_None = 0, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ETEProtobufIds.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ETEProtobufIds.cs index 13494fc03..1a72223b2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ETEProtobufIds.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ETEProtobufIds.cs @@ -3,27 +3,27 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ETEProtobufIds { - TE_EffectDispatchId = 400, - TE_ArmorRicochetId = 401, - TE_BeamEntPointId = 402, - TE_BeamEntsId = 403, - TE_BeamPointsId = 404, - TE_BeamRingId = 405, - TE_BubblesId = 408, - TE_BubbleTrailId = 409, - TE_DecalId = 410, - TE_WorldDecalId = 411, - TE_EnergySplashId = 412, - TE_FizzId = 413, - TE_ShatterSurfaceId = 414, - TE_GlowSpriteId = 415, - TE_ImpactId = 416, - TE_MuzzleFlashId = 417, - TE_BloodStreamId = 418, - TE_ExplosionId = 419, - TE_DustId = 420, - TE_LargeFunnelId = 421, - TE_SparksId = 422, - TE_PhysicsPropId = 423, - TE_SmokeId = 426, + TE_EffectDispatchId = 400, + TE_ArmorRicochetId = 401, + TE_BeamEntPointId = 402, + TE_BeamEntsId = 403, + TE_BeamPointsId = 404, + TE_BeamRingId = 405, + TE_BubblesId = 408, + TE_BubbleTrailId = 409, + TE_DecalId = 410, + TE_WorldDecalId = 411, + TE_EnergySplashId = 412, + TE_FizzId = 413, + TE_ShatterSurfaceId = 414, + TE_GlowSpriteId = 415, + TE_ImpactId = 416, + TE_MuzzleFlashId = 417, + TE_BloodStreamId = 418, + TE_ExplosionId = 419, + TE_DustId = 420, + TE_LargeFunnelId = 421, + TE_SparksId = 422, + TE_PhysicsPropId = 423, + TE_SmokeId = 426, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ETeam.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ETeam.cs index fd6603c77..dce786561 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ETeam.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ETeam.cs @@ -3,8 +3,8 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ETeam { - ET_Unknown = 0, - ET_Spectator = 1, - ET_Terrorist = 2, - ET_CT = 3, + ET_Unknown = 0, + ET_Spectator = 1, + ET_Terrorist = 2, + ET_CT = 3, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EUnlockStyle.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EUnlockStyle.cs index 149c2f6bd..7ddee002a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EUnlockStyle.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EUnlockStyle.cs @@ -3,10 +3,10 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EUnlockStyle { - k_UnlockStyle_Succeeded = 0, - k_UnlockStyle_Failed_PreReq = 1, - k_UnlockStyle_Failed_CantAfford = 2, - k_UnlockStyle_Failed_CantCommit = 3, - k_UnlockStyle_Failed_CantLockCache = 4, - k_UnlockStyle_Failed_CantAffordAttrib = 5, + k_UnlockStyle_Succeeded = 0, + k_UnlockStyle_Failed_PreReq = 1, + k_UnlockStyle_Failed_CantAfford = 2, + k_UnlockStyle_Failed_CantCommit = 3, + k_UnlockStyle_Failed_CantLockCache = 4, + k_UnlockStyle_Failed_CantAffordAttrib = 5, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EWeaponType.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EWeaponType.cs index badfdad8f..b8a183acc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EWeaponType.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/EWeaponType.cs @@ -3,16 +3,16 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum EWeaponType { - EWT_Knife = 0, - EWT_Pistol = 1, - EWT_SubMachineGun = 2, - EWT_Rifle = 3, - EWT_Shotgun = 4, - EWT_SniperRifle = 5, - EWT_MachineGun = 6, - EWT_C4 = 7, - EWT_Grenade = 8, - EWT_Equipment = 9, - EWT_StackableItem = 10, - EWT_Unknown = 11, + EWT_Knife = 0, + EWT_Pistol = 1, + EWT_SubMachineGun = 2, + EWT_Rifle = 3, + EWT_Shotgun = 4, + EWT_SniperRifle = 5, + EWT_MachineGun = 6, + EWT_C4 = 7, + EWT_Grenade = 8, + EWT_Equipment = 9, + EWT_StackableItem = 10, + EWT_Unknown = 11, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/GCClientLauncherType.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/GCClientLauncherType.cs index 99374187c..4c081f735 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/GCClientLauncherType.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/GCClientLauncherType.cs @@ -3,8 +3,8 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum GCClientLauncherType { - GCClientLauncherType_DEFAULT = 0, - GCClientLauncherType_PERFECTWORLD = 1, - GCClientLauncherType_STEAMCHINA = 2, - GCClientLauncherType_SOURCE2 = 3, + GCClientLauncherType_DEFAULT = 0, + GCClientLauncherType_PERFECTWORLD = 1, + GCClientLauncherType_STEAMCHINA = 2, + GCClientLauncherType_SOURCE2 = 3, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/GCConnectionStatus.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/GCConnectionStatus.cs index 7cee1b913..6740732f3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/GCConnectionStatus.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/GCConnectionStatus.cs @@ -3,9 +3,9 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum GCConnectionStatus { - GCConnectionStatus_HAVE_SESSION = 0, - GCConnectionStatus_GC_GOING_DOWN = 1, - GCConnectionStatus_NO_SESSION = 2, - GCConnectionStatus_NO_SESSION_IN_LOGON_QUEUE = 3, - GCConnectionStatus_NO_STEAM = 4, + GCConnectionStatus_HAVE_SESSION = 0, + GCConnectionStatus_GC_GOING_DOWN = 1, + GCConnectionStatus_NO_SESSION = 2, + GCConnectionStatus_NO_SESSION_IN_LOGON_QUEUE = 3, + GCConnectionStatus_NO_STEAM = 4, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/GC_BannedWordType.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/GC_BannedWordType.cs index 435212b1c..9d79a1e17 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/GC_BannedWordType.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/GC_BannedWordType.cs @@ -3,6 +3,6 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum GC_BannedWordType { - GC_BANNED_WORD_DISABLE_WORD = 0, - GC_BANNED_WORD_ENABLE_WORD = 1, + GC_BANNED_WORD_DISABLE_WORD = 0, + GC_BANNED_WORD_ENABLE_WORD = 1, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/NET_Messages.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/NET_Messages.cs index 8625df9ac..91bd9164b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/NET_Messages.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/NET_Messages.cs @@ -3,17 +3,17 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum NET_Messages { - net_NOP = 0, - net_Disconnect_Legacy = 1, - net_SplitScreenUser = 3, - net_Tick = 4, - net_StringCmd = 5, - net_SetConVar = 6, - net_SignonState = 7, - net_SpawnGroup_Load = 8, - net_SpawnGroup_ManifestUpdate = 9, - net_SpawnGroup_SetCreationTick = 11, - net_SpawnGroup_Unload = 12, - net_SpawnGroup_LoadCompleted = 13, - net_DebugOverlay = 15, + net_NOP = 0, + net_Disconnect_Legacy = 1, + net_SplitScreenUser = 3, + net_Tick = 4, + net_StringCmd = 5, + net_SetConVar = 6, + net_SignonState = 7, + net_SpawnGroup_Load = 8, + net_SpawnGroup_ManifestUpdate = 9, + net_SpawnGroup_SetCreationTick = 11, + net_SpawnGroup_Unload = 12, + net_SpawnGroup_LoadCompleted = 13, + net_DebugOverlay = 15, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/P2P_Messages.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/P2P_Messages.cs index 1559d7b5d..62b43d64b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/P2P_Messages.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/P2P_Messages.cs @@ -3,11 +3,11 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum P2P_Messages { - p2p_TextMessage = 256, - p2p_Voice = 257, - p2p_Ping = 258, - p2p_VRAvatarPosition = 259, - p2p_WatchSynchronization = 260, - p2p_FightingGame_GameData = 261, - p2p_FightingGame_Connection = 262, + p2p_TextMessage = 256, + p2p_Voice = 257, + p2p_Ping = 258, + p2p_VRAvatarPosition = 259, + p2p_WatchSynchronization = 260, + p2p_FightingGame_GameData = 261, + p2p_FightingGame_Connection = 262, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/PARTICLE_MESSAGE.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/PARTICLE_MESSAGE.cs index 8f9edc7da..15a226714 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/PARTICLE_MESSAGE.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/PARTICLE_MESSAGE.cs @@ -3,44 +3,44 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum PARTICLE_MESSAGE { - GAME_PARTICLE_MANAGER_EVENT_CREATE = 0, - GAME_PARTICLE_MANAGER_EVENT_UPDATE = 1, - GAME_PARTICLE_MANAGER_EVENT_UPDATE_FORWARD = 2, - GAME_PARTICLE_MANAGER_EVENT_UPDATE_ORIENTATION = 3, - GAME_PARTICLE_MANAGER_EVENT_UPDATE_FALLBACK = 4, - GAME_PARTICLE_MANAGER_EVENT_UPDATE_ENT = 5, - GAME_PARTICLE_MANAGER_EVENT_UPDATE_OFFSET = 6, - GAME_PARTICLE_MANAGER_EVENT_DESTROY = 7, - GAME_PARTICLE_MANAGER_EVENT_DESTROY_INVOLVING = 8, - GAME_PARTICLE_MANAGER_EVENT_RELEASE = 9, - GAME_PARTICLE_MANAGER_EVENT_LATENCY = 10, - GAME_PARTICLE_MANAGER_EVENT_SHOULD_DRAW = 11, - GAME_PARTICLE_MANAGER_EVENT_FROZEN = 12, - GAME_PARTICLE_MANAGER_EVENT_CHANGE_CONTROL_POINT_ATTACHMENT = 13, - GAME_PARTICLE_MANAGER_EVENT_UPDATE_ENTITY_POSITION = 14, - GAME_PARTICLE_MANAGER_EVENT_SET_FOW_PROPERTIES = 15, - GAME_PARTICLE_MANAGER_EVENT_SET_TEXT = 16, - GAME_PARTICLE_MANAGER_EVENT_SET_SHOULD_CHECK_FOW = 17, - GAME_PARTICLE_MANAGER_EVENT_SET_CONTROL_POINT_MODEL = 18, - GAME_PARTICLE_MANAGER_EVENT_SET_CONTROL_POINT_SNAPSHOT = 19, - GAME_PARTICLE_MANAGER_EVENT_SET_TEXTURE_ATTRIBUTE = 20, - GAME_PARTICLE_MANAGER_EVENT_SET_SCENE_OBJECT_GENERIC_FLAG = 21, - GAME_PARTICLE_MANAGER_EVENT_SET_SCENE_OBJECT_TINT_AND_DESAT = 22, - GAME_PARTICLE_MANAGER_EVENT_DESTROY_NAMED = 23, - GAME_PARTICLE_MANAGER_EVENT_SKIP_TO_TIME = 24, - GAME_PARTICLE_MANAGER_EVENT_CAN_FREEZE = 25, - GAME_PARTICLE_MANAGER_EVENT_SET_NAMED_VALUE_CONTEXT = 26, - GAME_PARTICLE_MANAGER_EVENT_UPDATE_TRANSFORM = 27, - GAME_PARTICLE_MANAGER_EVENT_FREEZE_TRANSITION_OVERRIDE = 28, - GAME_PARTICLE_MANAGER_EVENT_FREEZE_INVOLVING = 29, - GAME_PARTICLE_MANAGER_EVENT_ADD_MODELLIST_OVERRIDE_ELEMENT = 30, - GAME_PARTICLE_MANAGER_EVENT_CLEAR_MODELLIST_OVERRIDE = 31, - GAME_PARTICLE_MANAGER_EVENT_CREATE_PHYSICS_SIM = 32, - GAME_PARTICLE_MANAGER_EVENT_DESTROY_PHYSICS_SIM = 33, - GAME_PARTICLE_MANAGER_EVENT_SET_VDATA = 34, - GAME_PARTICLE_MANAGER_EVENT_SET_MATERIAL_OVERRIDE = 35, - GAME_PARTICLE_MANAGER_EVENT_ADD_FAN = 36, - GAME_PARTICLE_MANAGER_EVENT_UPDATE_FAN = 37, - GAME_PARTICLE_MANAGER_EVENT_SET_CLUSTER_GROWTH = 38, - GAME_PARTICLE_MANAGER_EVENT_REMOVE_FAN = 39, + GAME_PARTICLE_MANAGER_EVENT_CREATE = 0, + GAME_PARTICLE_MANAGER_EVENT_UPDATE = 1, + GAME_PARTICLE_MANAGER_EVENT_UPDATE_FORWARD = 2, + GAME_PARTICLE_MANAGER_EVENT_UPDATE_ORIENTATION = 3, + GAME_PARTICLE_MANAGER_EVENT_UPDATE_FALLBACK = 4, + GAME_PARTICLE_MANAGER_EVENT_UPDATE_ENT = 5, + GAME_PARTICLE_MANAGER_EVENT_UPDATE_OFFSET = 6, + GAME_PARTICLE_MANAGER_EVENT_DESTROY = 7, + GAME_PARTICLE_MANAGER_EVENT_DESTROY_INVOLVING = 8, + GAME_PARTICLE_MANAGER_EVENT_RELEASE = 9, + GAME_PARTICLE_MANAGER_EVENT_LATENCY = 10, + GAME_PARTICLE_MANAGER_EVENT_SHOULD_DRAW = 11, + GAME_PARTICLE_MANAGER_EVENT_FROZEN = 12, + GAME_PARTICLE_MANAGER_EVENT_CHANGE_CONTROL_POINT_ATTACHMENT = 13, + GAME_PARTICLE_MANAGER_EVENT_UPDATE_ENTITY_POSITION = 14, + GAME_PARTICLE_MANAGER_EVENT_SET_FOW_PROPERTIES = 15, + GAME_PARTICLE_MANAGER_EVENT_SET_TEXT = 16, + GAME_PARTICLE_MANAGER_EVENT_SET_SHOULD_CHECK_FOW = 17, + GAME_PARTICLE_MANAGER_EVENT_SET_CONTROL_POINT_MODEL = 18, + GAME_PARTICLE_MANAGER_EVENT_SET_CONTROL_POINT_SNAPSHOT = 19, + GAME_PARTICLE_MANAGER_EVENT_SET_TEXTURE_ATTRIBUTE = 20, + GAME_PARTICLE_MANAGER_EVENT_SET_SCENE_OBJECT_GENERIC_FLAG = 21, + GAME_PARTICLE_MANAGER_EVENT_SET_SCENE_OBJECT_TINT_AND_DESAT = 22, + GAME_PARTICLE_MANAGER_EVENT_DESTROY_NAMED = 23, + GAME_PARTICLE_MANAGER_EVENT_SKIP_TO_TIME = 24, + GAME_PARTICLE_MANAGER_EVENT_CAN_FREEZE = 25, + GAME_PARTICLE_MANAGER_EVENT_SET_NAMED_VALUE_CONTEXT = 26, + GAME_PARTICLE_MANAGER_EVENT_UPDATE_TRANSFORM = 27, + GAME_PARTICLE_MANAGER_EVENT_FREEZE_TRANSITION_OVERRIDE = 28, + GAME_PARTICLE_MANAGER_EVENT_FREEZE_INVOLVING = 29, + GAME_PARTICLE_MANAGER_EVENT_ADD_MODELLIST_OVERRIDE_ELEMENT = 30, + GAME_PARTICLE_MANAGER_EVENT_CLEAR_MODELLIST_OVERRIDE = 31, + GAME_PARTICLE_MANAGER_EVENT_CREATE_PHYSICS_SIM = 32, + GAME_PARTICLE_MANAGER_EVENT_DESTROY_PHYSICS_SIM = 33, + GAME_PARTICLE_MANAGER_EVENT_SET_VDATA = 34, + GAME_PARTICLE_MANAGER_EVENT_SET_MATERIAL_OVERRIDE = 35, + GAME_PARTICLE_MANAGER_EVENT_ADD_FAN = 36, + GAME_PARTICLE_MANAGER_EVENT_UPDATE_FAN = 37, + GAME_PARTICLE_MANAGER_EVENT_SET_CLUSTER_GROWTH = 38, + GAME_PARTICLE_MANAGER_EVENT_REMOVE_FAN = 39, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/PrefetchType.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/PrefetchType.cs index 5a2db47be..f336dae1f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/PrefetchType.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/PrefetchType.cs @@ -3,5 +3,5 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum PrefetchType { - PFT_SOUND = 0, + PFT_SOUND = 0, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/QuestType.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/QuestType.cs index a985cbc51..1e834dd18 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/QuestType.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/QuestType.cs @@ -3,6 +3,6 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum QuestType { - k_EQuestType_Operation = 1, - k_EQuestType_RecurringMission = 2, + k_EQuestType_Operation = 1, + k_EQuestType_RecurringMission = 2, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ReplayEventType_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ReplayEventType_t.cs index c8c015faa..3dee97a1b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ReplayEventType_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/ReplayEventType_t.cs @@ -3,9 +3,9 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum ReplayEventType_t { - REPLAY_EVENT_CANCEL = 0, - REPLAY_EVENT_DEATH = 1, - REPLAY_EVENT_GENERIC = 2, - REPLAY_EVENT_STUCK_NEED_FULL_UPDATE = 3, - REPLAY_EVENT_VICTORY = 4, + REPLAY_EVENT_CANCEL = 0, + REPLAY_EVENT_DEATH = 1, + REPLAY_EVENT_GENERIC = 2, + REPLAY_EVENT_STUCK_NEED_FULL_UPDATE = 3, + REPLAY_EVENT_VICTORY = 4, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/RequestPause_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/RequestPause_t.cs index 9a82173ee..f3ec18435 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/RequestPause_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/RequestPause_t.cs @@ -3,7 +3,7 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum RequestPause_t { - RP_PAUSE = 0, - RP_UNPAUSE = 1, - RP_TOGGLEPAUSE = 2, + RP_PAUSE = 0, + RP_UNPAUSE = 1, + RP_TOGGLEPAUSE = 2, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SVC_Messages.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SVC_Messages.cs index 345c8b175..6af653015 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SVC_Messages.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SVC_Messages.cs @@ -3,35 +3,35 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum SVC_Messages { - svc_ServerInfo = 40, - svc_FlattenedSerializer = 41, - svc_ClassInfo = 42, - svc_SetPause = 43, - svc_CreateStringTable = 44, - svc_UpdateStringTable = 45, - svc_VoiceInit = 46, - svc_VoiceData = 47, - svc_Print = 48, - svc_Sounds = 49, - svc_SetView = 50, - svc_ClearAllStringTables = 51, - svc_CmdKeyValues = 52, - svc_BSPDecal = 53, - svc_SplitScreen = 54, - svc_PacketEntities = 55, - svc_Prefetch = 56, - svc_Menu = 57, - svc_GetCvarValue = 58, - svc_StopSound = 59, - svc_PeerList = 60, - svc_PacketReliable = 61, - svc_HLTVStatus = 62, - svc_ServerSteamID = 63, - svc_FullFrameSplit = 70, - svc_RconServerDetails = 71, - svc_UserMessage = 72, - svc_Broadcast_Command = 74, - svc_HltvFixupOperatorStatus = 75, - svc_UserCmds = 76, - svc_NextMsgPredicted = 77, + svc_ServerInfo = 40, + svc_FlattenedSerializer = 41, + svc_ClassInfo = 42, + svc_SetPause = 43, + svc_CreateStringTable = 44, + svc_UpdateStringTable = 45, + svc_VoiceInit = 46, + svc_VoiceData = 47, + svc_Print = 48, + svc_Sounds = 49, + svc_SetView = 50, + svc_ClearAllStringTables = 51, + svc_CmdKeyValues = 52, + svc_BSPDecal = 53, + svc_SplitScreen = 54, + svc_PacketEntities = 55, + svc_Prefetch = 56, + svc_Menu = 57, + svc_GetCvarValue = 58, + svc_StopSound = 59, + svc_PeerList = 60, + svc_PacketReliable = 61, + svc_HLTVStatus = 62, + svc_ServerSteamID = 63, + svc_FullFrameSplit = 70, + svc_RconServerDetails = 71, + svc_UserMessage = 72, + svc_Broadcast_Command = 74, + svc_HltvFixupOperatorStatus = 75, + svc_UserCmds = 76, + svc_NextMsgPredicted = 77, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SVC_Messages_LowFrequency.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SVC_Messages_LowFrequency.cs index 9a0da7051..a812a2b6a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SVC_Messages_LowFrequency.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SVC_Messages_LowFrequency.cs @@ -3,5 +3,5 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum SVC_Messages_LowFrequency { - svc_dummy = 600, + svc_dummy = 600, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SignonState_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SignonState_t.cs index be799d0fb..2b8bb5f3c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SignonState_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SignonState_t.cs @@ -3,12 +3,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum SignonState_t { - SIGNONSTATE_NONE = 0, - SIGNONSTATE_CHALLENGE = 1, - SIGNONSTATE_CONNECTED = 2, - SIGNONSTATE_NEW = 3, - SIGNONSTATE_PRESPAWN = 4, - SIGNONSTATE_SPAWN = 5, - SIGNONSTATE_FULL = 6, - SIGNONSTATE_CHANGELEVEL = 7, + SIGNONSTATE_NONE = 0, + SIGNONSTATE_CHALLENGE = 1, + SIGNONSTATE_CONNECTED = 2, + SIGNONSTATE_NEW = 3, + SIGNONSTATE_PRESPAWN = 4, + SIGNONSTATE_SPAWN = 5, + SIGNONSTATE_FULL = 6, + SIGNONSTATE_CHANGELEVEL = 7, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SpawnGroupFlags_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SpawnGroupFlags_t.cs index 07aae3425..e84cdad11 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SpawnGroupFlags_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/SpawnGroupFlags_t.cs @@ -3,12 +3,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum SpawnGroupFlags_t { - SPAWN_GROUP_LOAD_ENTITIES_FROM_SAVE = 1, - SPAWN_GROUP_DONT_SPAWN_ENTITIES = 2, - SPAWN_GROUP_SYNCHRONOUS_SPAWN = 4, - SPAWN_GROUP_IS_INITIAL_SPAWN_GROUP = 8, - SPAWN_GROUP_CREATE_CLIENT_ONLY_ENTITIES = 16, - SPAWN_GROUP_BLOCK_UNTIL_LOADED = 64, - SPAWN_GROUP_LOAD_STREAMING_DATA = 128, - SPAWN_GROUP_CREATE_NEW_SCENE_WORLD = 256, + SPAWN_GROUP_LOAD_ENTITIES_FROM_SAVE = 1, + SPAWN_GROUP_DONT_SPAWN_ENTITIES = 2, + SPAWN_GROUP_SYNCHRONOUS_SPAWN = 4, + SPAWN_GROUP_IS_INITIAL_SPAWN_GROUP = 8, + SPAWN_GROUP_CREATE_CLIENT_ONLY_ENTITIES = 16, + SPAWN_GROUP_BLOCK_UNTIL_LOADED = 64, + SPAWN_GROUP_LOAD_STREAMING_DATA = 128, + SPAWN_GROUP_CREATE_NEW_SCENE_WORLD = 256, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/VoiceDataFormat_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/VoiceDataFormat_t.cs index 1a33a6705..7b52f5a5a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/VoiceDataFormat_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/VoiceDataFormat_t.cs @@ -3,7 +3,7 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum VoiceDataFormat_t { - VOICEDATA_FORMAT_STEAM = 0, - VOICEDATA_FORMAT_ENGINE = 1, - VOICEDATA_FORMAT_OPUS = 2, + VOICEDATA_FORMAT_STEAM = 0, + VOICEDATA_FORMAT_ENGINE = 1, + VOICEDATA_FORMAT_OPUS = 2, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/eRollType.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/eRollType.cs index e093d3150..682e8e210 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Enums/eRollType.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Enums/eRollType.cs @@ -3,9 +3,9 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public enum eRollType { - ROLL_NONE = -1, - ROLL_STATS = 0, - ROLL_CREDITS = 1, - ROLL_LATE_JOIN_LOGO = 2, - ROLL_OUTTRO = 3, + ROLL_NONE = -1, + ROLL_STATS = 0, + ROLL_CREDITS = 1, + ROLL_LATE_JOIN_LOGO = 2, + ROLL_OUTTRO = 3, } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/AccountActivity.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/AccountActivity.cs index 5ed1fd5d9..1fb4db68a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/AccountActivity.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/AccountActivity.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface AccountActivity : ITypedProtobuf { - static AccountActivity ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new AccountActivityImpl(handle, isManuallyAllocated); + static AccountActivity ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new AccountActivityImpl(handle, isManuallyAllocated); - public uint Activity { get; set; } + public uint Activity { get; set; } - public uint Mode { get; set; } + public uint Mode { get; set; } - public uint Map { get; set; } + public uint Map { get; set; } - public ulong Matchid { get; set; } + public ulong Matchid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/C2S_CONNECTION_Message.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/C2S_CONNECTION_Message.cs index 5ade5b4f9..2181abe69 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/C2S_CONNECTION_Message.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/C2S_CONNECTION_Message.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface C2S_CONNECTION_Message : ITypedProtobuf { - static C2S_CONNECTION_Message ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new C2S_CONNECTION_MessageImpl(handle, isManuallyAllocated); + static C2S_CONNECTION_Message ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new C2S_CONNECTION_MessageImpl(handle, isManuallyAllocated); - public string AddonName { get; set; } + public string AddonName { get; set; } - public C2S_CONNECT_SameProcessCheck LocalhostSameProcessCheck { get; } + public C2S_CONNECT_SameProcessCheck LocalhostSameProcessCheck { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/C2S_CONNECT_Message.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/C2S_CONNECT_Message.cs index 4c90cbf85..7cde67a14 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/C2S_CONNECT_Message.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/C2S_CONNECT_Message.cs @@ -1,42 +1,41 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface C2S_CONNECT_Message : ITypedProtobuf { - static C2S_CONNECT_Message ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new C2S_CONNECT_MessageImpl(handle, isManuallyAllocated); + static C2S_CONNECT_Message ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new C2S_CONNECT_MessageImpl(handle, isManuallyAllocated); - public uint HostVersion { get; set; } + public uint HostVersion { get; set; } - public uint AuthProtocol { get; set; } + public uint AuthProtocol { get; set; } - public uint ChallengeNumber { get; set; } + public uint ChallengeNumber { get; set; } - public ulong ReservationCookie { get; set; } + public ulong ReservationCookie { get; set; } - public bool LowViolence { get; set; } + public bool LowViolence { get; set; } - public byte[] EncryptedPassword { get; set; } + public byte[] EncryptedPassword { get; set; } - public IProtobufRepeatedFieldSubMessageType Splitplayers { get; } + public IProtobufRepeatedFieldSubMessageType Splitplayers { get; } - public byte[] AuthSteam { get; set; } + public byte[] AuthSteam { get; set; } - public string ChallengeContext { get; set; } + public string ChallengeContext { get; set; } - public C2S_CONNECT_SameProcessCheck LocalhostSameProcessCheck { get; } + public C2S_CONNECT_SameProcessCheck LocalhostSameProcessCheck { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/C2S_CONNECT_SameProcessCheck.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/C2S_CONNECT_SameProcessCheck.cs index 9b87d9c08..753d6f35b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/C2S_CONNECT_SameProcessCheck.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/C2S_CONNECT_SameProcessCheck.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface C2S_CONNECT_SameProcessCheck : ITypedProtobuf { - static C2S_CONNECT_SameProcessCheck ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new C2S_CONNECT_SameProcessCheckImpl(handle, isManuallyAllocated); + static C2S_CONNECT_SameProcessCheck ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new C2S_CONNECT_SameProcessCheckImpl(handle, isManuallyAllocated); - public ulong LocalhostProcessId { get; set; } + public ulong LocalhostProcessId { get; set; } - public ulong Key { get; set; } + public ulong Key { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CAttribute_String.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CAttribute_String.cs index a31a7b446..8dd41cfce 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CAttribute_String.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CAttribute_String.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CAttribute_String : ITypedProtobuf { - static CAttribute_String ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CAttribute_StringImpl(handle, isManuallyAllocated); + static CAttribute_String ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CAttribute_StringImpl(handle, isManuallyAllocated); - public string Value { get; set; } + public string Value { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBaseUserCmdPB.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBaseUserCmdPB.cs index 8756bd2d7..7e9d30bfd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBaseUserCmdPB.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBaseUserCmdPB.cs @@ -7,60 +7,60 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CBaseUserCmdPB : ITypedProtobuf { - static CBaseUserCmdPB ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CBaseUserCmdPBImpl(handle, isManuallyAllocated); + static CBaseUserCmdPB ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CBaseUserCmdPBImpl(handle, isManuallyAllocated); - public int LegacyCommandNumber { get; set; } + public int LegacyCommandNumber { get; set; } - public int ClientTick { get; set; } + public int ClientTick { get; set; } - public uint PredictionOffsetTicksX256 { get; set; } + public uint PredictionOffsetTicksX256 { get; set; } - public CInButtonStatePB ButtonsPb { get; } + public CInButtonStatePB ButtonsPb { get; } - public QAngle Viewangles { get; set; } + public QAngle Viewangles { get; set; } - public float Forwardmove { get; set; } + public float Forwardmove { get; set; } - public float Leftmove { get; set; } + public float Leftmove { get; set; } - public float Upmove { get; set; } + public float Upmove { get; set; } - public int Impulse { get; set; } + public int Impulse { get; set; } - public int Weaponselect { get; set; } + public int Weaponselect { get; set; } - public int RandomSeed { get; set; } + public int RandomSeed { get; set; } - public int Mousedx { get; set; } + public int Mousedx { get; set; } - public int Mousedy { get; set; } + public int Mousedy { get; set; } - public uint PawnEntityHandle { get; set; } + public uint PawnEntityHandle { get; set; } - public IProtobufRepeatedFieldSubMessageType SubtickMoves { get; } + public IProtobufRepeatedFieldSubMessageType SubtickMoves { get; } - public byte[] MoveCrc { get; set; } + public byte[] MoveCrc { get; set; } - public uint ConsumedServerAngleChanges { get; set; } + public uint ConsumedServerAngleChanges { get; set; } - public int CmdFlags { get; set; } + public int CmdFlags { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBidirMsg_PredictionEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBidirMsg_PredictionEvent.cs index 98d323e68..5de3426d5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBidirMsg_PredictionEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBidirMsg_PredictionEvent.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CBidirMsg_PredictionEvent : ITypedProtobuf { - static CBidirMsg_PredictionEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CBidirMsg_PredictionEventImpl(handle, isManuallyAllocated); + static CBidirMsg_PredictionEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CBidirMsg_PredictionEventImpl(handle, isManuallyAllocated); - public uint EventId { get; set; } + public uint EventId { get; set; } - public byte[] EventData { get; set; } + public byte[] EventData { get; set; } - public uint SyncType { get; set; } + public uint SyncType { get; set; } - public uint SyncValUint32 { get; set; } + public uint SyncValUint32 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBidirMsg_RebroadcastGameEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBidirMsg_RebroadcastGameEvent.cs index e1031464b..f14e3b88e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBidirMsg_RebroadcastGameEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBidirMsg_RebroadcastGameEvent.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CBidirMsg_RebroadcastGameEvent : ITypedProtobuf { - static CBidirMsg_RebroadcastGameEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CBidirMsg_RebroadcastGameEventImpl(handle, isManuallyAllocated); + static CBidirMsg_RebroadcastGameEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CBidirMsg_RebroadcastGameEventImpl(handle, isManuallyAllocated); - public bool Posttoserver { get; set; } + public bool Posttoserver { get; set; } - public int Buftype { get; set; } + public int Buftype { get; set; } - public uint Clientbitcount { get; set; } + public uint Clientbitcount { get; set; } - public ulong Receivingclients { get; set; } + public ulong Receivingclients { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBidirMsg_RebroadcastSource.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBidirMsg_RebroadcastSource.cs index 72670c2f7..8619e8431 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBidirMsg_RebroadcastSource.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CBidirMsg_RebroadcastSource.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CBidirMsg_RebroadcastSource : ITypedProtobuf { - static CBidirMsg_RebroadcastSource ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CBidirMsg_RebroadcastSourceImpl(handle, isManuallyAllocated); + static CBidirMsg_RebroadcastSource ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CBidirMsg_RebroadcastSourceImpl(handle, isManuallyAllocated); - public int Eventsource { get; set; } + public int Eventsource { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_BaselineAck.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_BaselineAck.cs index 326898404..a0cda98fc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_BaselineAck.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_BaselineAck.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_BaselineAck : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 23; - - static string INetMessage.MessageName => "CCLCMsg_BaselineAck"; + static int INetMessage.MessageId => 23; + + static string INetMessage.MessageName => "CCLCMsg_BaselineAck"; - static CCLCMsg_BaselineAck ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_BaselineAckImpl(handle, isManuallyAllocated); + static CCLCMsg_BaselineAck ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_BaselineAckImpl(handle, isManuallyAllocated); - public int BaselineTick { get; set; } + public int BaselineTick { get; set; } - public int BaselineNr { get; set; } + public int BaselineNr { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_ClientInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_ClientInfo.cs index 38c5b9b6a..7bf775db7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_ClientInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_ClientInfo.cs @@ -1,32 +1,31 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_ClientInfo : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 20; - - static string INetMessage.MessageName => "CCLCMsg_ClientInfo"; + static int INetMessage.MessageId => 20; + + static string INetMessage.MessageName => "CCLCMsg_ClientInfo"; - static CCLCMsg_ClientInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_ClientInfoImpl(handle, isManuallyAllocated); + static CCLCMsg_ClientInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_ClientInfoImpl(handle, isManuallyAllocated); - public uint SendTableCrc { get; set; } + public uint SendTableCrc { get; set; } - public uint ServerCount { get; set; } + public uint ServerCount { get; set; } - public bool IsHltv { get; set; } + public bool IsHltv { get; set; } - public uint FriendsId { get; set; } + public uint FriendsId { get; set; } - public string FriendsName { get; set; } + public string FriendsName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_CmdKeyValues.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_CmdKeyValues.cs index 0f950df15..a28a7e4eb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_CmdKeyValues.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_CmdKeyValues.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_CmdKeyValues : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 34; - - static string INetMessage.MessageName => "CCLCMsg_CmdKeyValues"; + static int INetMessage.MessageId => 34; + + static string INetMessage.MessageName => "CCLCMsg_CmdKeyValues"; - static CCLCMsg_CmdKeyValues ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_CmdKeyValuesImpl(handle, isManuallyAllocated); + static CCLCMsg_CmdKeyValues ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_CmdKeyValuesImpl(handle, isManuallyAllocated); - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_Diagnostic.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_Diagnostic.cs index 8a8861de4..71a7f2633 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_Diagnostic.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_Diagnostic.cs @@ -1,32 +1,31 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_Diagnostic : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 37; - - static string INetMessage.MessageName => "CCLCMsg_Diagnostic"; + static int INetMessage.MessageId => 37; + + static string INetMessage.MessageName => "CCLCMsg_Diagnostic"; - static CCLCMsg_Diagnostic ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_DiagnosticImpl(handle, isManuallyAllocated); + static CCLCMsg_Diagnostic ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_DiagnosticImpl(handle, isManuallyAllocated); - public CMsgSource2SystemSpecs SystemSpecs { get; } + public CMsgSource2SystemSpecs SystemSpecs { get; } - public CMsgSource2VProfLiteReport VprofReport { get; } + public CMsgSource2VProfLiteReport VprofReport { get; } - public CMsgSource2NetworkFlowQuality DownstreamFlow { get; } + public CMsgSource2NetworkFlowQuality DownstreamFlow { get; } - public CMsgSource2NetworkFlowQuality UpstreamFlow { get; } + public CMsgSource2NetworkFlowQuality UpstreamFlow { get; } - public IProtobufRepeatedFieldSubMessageType PerfSamples { get; } + public IProtobufRepeatedFieldSubMessageType PerfSamples { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_HltvFixupOperatorTick.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_HltvFixupOperatorTick.cs index 5f7e8cca7..6b08ea94c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_HltvFixupOperatorTick.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_HltvFixupOperatorTick.cs @@ -7,30 +7,30 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCLCMsg_HltvFixupOperatorTick : ITypedProtobuf { - static CCLCMsg_HltvFixupOperatorTick ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_HltvFixupOperatorTickImpl(handle, isManuallyAllocated); + static CCLCMsg_HltvFixupOperatorTick ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_HltvFixupOperatorTickImpl(handle, isManuallyAllocated); - public int Tick { get; set; } + public int Tick { get; set; } - public byte[] PropsData { get; set; } + public byte[] PropsData { get; set; } - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public QAngle EyeAngles { get; set; } + public QAngle EyeAngles { get; set; } - public int ObserverMode { get; set; } + public int ObserverMode { get; set; } - public bool CameramanScoreboard { get; set; } + public bool CameramanScoreboard { get; set; } - public int ObserverTarget { get; set; } + public int ObserverTarget { get; set; } - public Vector ViewOffset { get; set; } + public Vector ViewOffset { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_HltvReplay.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_HltvReplay.cs index 52616395d..8b7a4fd80 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_HltvReplay.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_HltvReplay.cs @@ -1,32 +1,31 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_HltvReplay : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 36; - - static string INetMessage.MessageName => "CCLCMsg_HltvReplay"; + static int INetMessage.MessageId => 36; + + static string INetMessage.MessageName => "CCLCMsg_HltvReplay"; - static CCLCMsg_HltvReplay ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_HltvReplayImpl(handle, isManuallyAllocated); + static CCLCMsg_HltvReplay ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_HltvReplayImpl(handle, isManuallyAllocated); - public int Request { get; set; } + public int Request { get; set; } - public float SlowdownLength { get; set; } + public float SlowdownLength { get; set; } - public float SlowdownRate { get; set; } + public float SlowdownRate { get; set; } - public int PrimaryTarget { get; set; } + public int PrimaryTarget { get; set; } - public float EventTime { get; set; } + public float EventTime { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_ListenEvents.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_ListenEvents.cs index 005b393aa..5f4300f05 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_ListenEvents.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_ListenEvents.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCLCMsg_ListenEvents : ITypedProtobuf { - static CCLCMsg_ListenEvents ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_ListenEventsImpl(handle, isManuallyAllocated); + static CCLCMsg_ListenEvents ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_ListenEventsImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType EventMask { get; } + public IProtobufRepeatedFieldValueType EventMask { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_LoadingProgress.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_LoadingProgress.cs index 2d33d3b73..51c866e48 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_LoadingProgress.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_LoadingProgress.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_LoadingProgress : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 27; - - static string INetMessage.MessageName => "CCLCMsg_LoadingProgress"; + static int INetMessage.MessageId => 27; + + static string INetMessage.MessageName => "CCLCMsg_LoadingProgress"; - static CCLCMsg_LoadingProgress ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_LoadingProgressImpl(handle, isManuallyAllocated); + static CCLCMsg_LoadingProgress ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_LoadingProgressImpl(handle, isManuallyAllocated); - public int Progress { get; set; } + public int Progress { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_Move.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_Move.cs index ce557b299..039b44d24 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_Move.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_Move.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_Move : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 21; - - static string INetMessage.MessageName => "CCLCMsg_Move"; + static int INetMessage.MessageId => 21; + + static string INetMessage.MessageName => "CCLCMsg_Move"; - static CCLCMsg_Move ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_MoveImpl(handle, isManuallyAllocated); + static CCLCMsg_Move ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_MoveImpl(handle, isManuallyAllocated); - public byte[] Data { get; set; } + public byte[] Data { get; set; } - public uint LastCommandNumber { get; set; } + public uint LastCommandNumber { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_RconServerDetails.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_RconServerDetails.cs index f826cc112..f99a2bd48 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_RconServerDetails.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_RconServerDetails.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_RconServerDetails : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 35; - - static string INetMessage.MessageName => "CCLCMsg_RconServerDetails"; + static int INetMessage.MessageId => 35; + + static string INetMessage.MessageName => "CCLCMsg_RconServerDetails"; - static CCLCMsg_RconServerDetails ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_RconServerDetailsImpl(handle, isManuallyAllocated); + static CCLCMsg_RconServerDetails ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_RconServerDetailsImpl(handle, isManuallyAllocated); - public byte[] Token { get; set; } + public byte[] Token { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_RequestPause.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_RequestPause.cs index 2bada1f9d..12b631531 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_RequestPause.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_RequestPause.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_RequestPause : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 33; - - static string INetMessage.MessageName => "CCLCMsg_RequestPause"; + static int INetMessage.MessageId => 33; + + static string INetMessage.MessageName => "CCLCMsg_RequestPause"; - static CCLCMsg_RequestPause ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_RequestPauseImpl(handle, isManuallyAllocated); + static CCLCMsg_RequestPause ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_RequestPauseImpl(handle, isManuallyAllocated); - public RequestPause_t PauseType { get; set; } + public RequestPause_t PauseType { get; set; } - public int PauseGroup { get; set; } + public int PauseGroup { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_RespondCvarValue.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_RespondCvarValue.cs index a90fb43f5..421053b14 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_RespondCvarValue.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_RespondCvarValue.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_RespondCvarValue : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 25; - - static string INetMessage.MessageName => "CCLCMsg_RespondCvarValue"; + static int INetMessage.MessageId => 25; + + static string INetMessage.MessageName => "CCLCMsg_RespondCvarValue"; - static CCLCMsg_RespondCvarValue ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_RespondCvarValueImpl(handle, isManuallyAllocated); + static CCLCMsg_RespondCvarValue ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_RespondCvarValueImpl(handle, isManuallyAllocated); - public int Cookie { get; set; } + public int Cookie { get; set; } - public int StatusCode { get; set; } + public int StatusCode { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public string Value { get; set; } + public string Value { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_ServerStatus.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_ServerStatus.cs index 0beb45bba..6a8c5bf2b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_ServerStatus.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_ServerStatus.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_ServerStatus : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 31; - - static string INetMessage.MessageName => "CCLCMsg_ServerStatus"; + static int INetMessage.MessageId => 31; + + static string INetMessage.MessageName => "CCLCMsg_ServerStatus"; - static CCLCMsg_ServerStatus ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_ServerStatusImpl(handle, isManuallyAllocated); + static CCLCMsg_ServerStatus ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_ServerStatusImpl(handle, isManuallyAllocated); - public bool Simplified { get; set; } + public bool Simplified { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_SplitPlayerConnect.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_SplitPlayerConnect.cs index 8d75b7769..988c7441e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_SplitPlayerConnect.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_SplitPlayerConnect.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_SplitPlayerConnect : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 28; - - static string INetMessage.MessageName => "CCLCMsg_SplitPlayerConnect"; + static int INetMessage.MessageId => 28; + + static string INetMessage.MessageName => "CCLCMsg_SplitPlayerConnect"; - static CCLCMsg_SplitPlayerConnect ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_SplitPlayerConnectImpl(handle, isManuallyAllocated); + static CCLCMsg_SplitPlayerConnect ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_SplitPlayerConnectImpl(handle, isManuallyAllocated); - public string Playername { get; set; } + public string Playername { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_SplitPlayerDisconnect.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_SplitPlayerDisconnect.cs index 92d033d0f..3ad77a3a9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_SplitPlayerDisconnect.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_SplitPlayerDisconnect.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_SplitPlayerDisconnect : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 30; - - static string INetMessage.MessageName => "CCLCMsg_SplitPlayerDisconnect"; + static int INetMessage.MessageId => 30; + + static string INetMessage.MessageName => "CCLCMsg_SplitPlayerDisconnect"; - static CCLCMsg_SplitPlayerDisconnect ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_SplitPlayerDisconnectImpl(handle, isManuallyAllocated); + static CCLCMsg_SplitPlayerDisconnect ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_SplitPlayerDisconnectImpl(handle, isManuallyAllocated); - public int Slot { get; set; } + public int Slot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_VoiceData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_VoiceData.cs index bc2ab9c4e..636676a82 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_VoiceData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCLCMsg_VoiceData.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCLCMsg_VoiceData : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 22; - - static string INetMessage.MessageName => "CCLCMsg_VoiceData"; + static int INetMessage.MessageId => 22; + + static string INetMessage.MessageName => "CCLCMsg_VoiceData"; - static CCLCMsg_VoiceData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCLCMsg_VoiceDataImpl(handle, isManuallyAllocated); + static CCLCMsg_VoiceData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCLCMsg_VoiceDataImpl(handle, isManuallyAllocated); - public CMsgVoiceAudio Audio { get; } + public CMsgVoiceAudio Audio { get; } - public ulong Xuid { get; set; } + public ulong Xuid { get; set; } - public uint Tick { get; set; } + public uint Tick { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSPredictionEvent_AddAimPunch.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSPredictionEvent_AddAimPunch.cs index bdb730996..ff050b2aa 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSPredictionEvent_AddAimPunch.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSPredictionEvent_AddAimPunch.cs @@ -7,15 +7,15 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSPredictionEvent_AddAimPunch : ITypedProtobuf { - static CCSPredictionEvent_AddAimPunch ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSPredictionEvent_AddAimPunchImpl(handle, isManuallyAllocated); + static CCSPredictionEvent_AddAimPunch ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSPredictionEvent_AddAimPunchImpl(handle, isManuallyAllocated); - public QAngle PunchAngle { get; set; } + public QAngle PunchAngle { get; set; } - public uint WhenTick { get; set; } + public uint WhenTick { get; set; } - public float WhenTickFrac { get; set; } + public float WhenTickFrac { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSPredictionEvent_DamageTag.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSPredictionEvent_DamageTag.cs index 7ac598d5f..afb229f85 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSPredictionEvent_DamageTag.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSPredictionEvent_DamageTag.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSPredictionEvent_DamageTag : ITypedProtobuf { - static CCSPredictionEvent_DamageTag ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSPredictionEvent_DamageTagImpl(handle, isManuallyAllocated); + static CCSPredictionEvent_DamageTag ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSPredictionEvent_DamageTagImpl(handle, isManuallyAllocated); - public float FlinchModSmall { get; set; } + public float FlinchModSmall { get; set; } - public float FlinchModLarge { get; set; } + public float FlinchModLarge { get; set; } - public float FriendlyFireDamageReductionRatio { get; set; } + public float FriendlyFireDamageReductionRatio { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsgPreMatchSayText.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsgPreMatchSayText.cs index 5889357e3..d1d0291b3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsgPreMatchSayText.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsgPreMatchSayText.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsgPreMatchSayText : ITypedProtobuf { - static CCSUsrMsgPreMatchSayText ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsgPreMatchSayTextImpl(handle, isManuallyAllocated); + static CCSUsrMsgPreMatchSayText ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsgPreMatchSayTextImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public string Text { get; set; } + public string Text { get; set; } - public bool AllChat { get; set; } + public bool AllChat { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_AchievementEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_AchievementEvent.cs index f9e7050b1..697aead7b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_AchievementEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_AchievementEvent.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_AchievementEvent : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 333; - - static string INetMessage.MessageName => "CCSUsrMsg_AchievementEvent"; + static int INetMessage.MessageId => 333; + + static string INetMessage.MessageName => "CCSUsrMsg_AchievementEvent"; - static CCSUsrMsg_AchievementEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_AchievementEventImpl(handle, isManuallyAllocated); + static CCSUsrMsg_AchievementEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_AchievementEventImpl(handle, isManuallyAllocated); - public int Achievement { get; set; } + public int Achievement { get; set; } - public int Count { get; set; } + public int Count { get; set; } - public int UserId { get; set; } + public int UserId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_AdjustMoney.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_AdjustMoney.cs index dfca193e8..3ae73e685 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_AdjustMoney.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_AdjustMoney.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_AdjustMoney : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 327; - - static string INetMessage.MessageName => "CCSUsrMsg_AdjustMoney"; + static int INetMessage.MessageId => 327; + + static string INetMessage.MessageName => "CCSUsrMsg_AdjustMoney"; - static CCSUsrMsg_AdjustMoney ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_AdjustMoneyImpl(handle, isManuallyAllocated); + static CCSUsrMsg_AdjustMoney ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_AdjustMoneyImpl(handle, isManuallyAllocated); - public int Amount { get; set; } + public int Amount { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_AmmoDenied.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_AmmoDenied.cs index 62ebf2957..4ea33dac5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_AmmoDenied.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_AmmoDenied.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_AmmoDenied : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 356; - - static string INetMessage.MessageName => "CCSUsrMsg_AmmoDenied"; + static int INetMessage.MessageId => 356; + + static string INetMessage.MessageName => "CCSUsrMsg_AmmoDenied"; - static CCSUsrMsg_AmmoDenied ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_AmmoDeniedImpl(handle, isManuallyAllocated); + static CCSUsrMsg_AmmoDenied ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_AmmoDeniedImpl(handle, isManuallyAllocated); - public int Ammoidx { get; set; } + public int Ammoidx { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_BarTime.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_BarTime.cs index ac4c676ce..8a5ac9303 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_BarTime.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_BarTime.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_BarTime : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 355; - - static string INetMessage.MessageName => "CCSUsrMsg_BarTime"; + static int INetMessage.MessageId => 355; + + static string INetMessage.MessageName => "CCSUsrMsg_BarTime"; - static CCSUsrMsg_BarTime ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_BarTimeImpl(handle, isManuallyAllocated); + static CCSUsrMsg_BarTime ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_BarTimeImpl(handle, isManuallyAllocated); - public string Time { get; set; } + public string Time { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CallVoteFailed.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CallVoteFailed.cs index 9dbb27629..8625f49ef 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CallVoteFailed.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CallVoteFailed.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_CallVoteFailed : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 348; - - static string INetMessage.MessageName => "CCSUsrMsg_CallVoteFailed"; + static int INetMessage.MessageId => 348; + + static string INetMessage.MessageName => "CCSUsrMsg_CallVoteFailed"; - static CCSUsrMsg_CallVoteFailed ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_CallVoteFailedImpl(handle, isManuallyAllocated); + static CCSUsrMsg_CallVoteFailed ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_CallVoteFailedImpl(handle, isManuallyAllocated); - public int Reason { get; set; } + public int Reason { get; set; } - public int Time { get; set; } + public int Time { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ClientInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ClientInfo.cs index b2a0de179..7cf8a062e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ClientInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ClientInfo.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_ClientInfo : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 339; - - static string INetMessage.MessageName => "CCSUsrMsg_ClientInfo"; + static int INetMessage.MessageId => 339; + + static string INetMessage.MessageName => "CCSUsrMsg_ClientInfo"; - static CCSUsrMsg_ClientInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ClientInfoImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ClientInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ClientInfoImpl(handle, isManuallyAllocated); - public int Dummy { get; set; } + public int Dummy { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CloseCaption.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CloseCaption.cs index 70d6a8640..9802d5686 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CloseCaption.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CloseCaption.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_CloseCaption : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 315; - - static string INetMessage.MessageName => "CCSUsrMsg_CloseCaption"; + static int INetMessage.MessageId => 315; + + static string INetMessage.MessageName => "CCSUsrMsg_CloseCaption"; - static CCSUsrMsg_CloseCaption ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_CloseCaptionImpl(handle, isManuallyAllocated); + static CCSUsrMsg_CloseCaption ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_CloseCaptionImpl(handle, isManuallyAllocated); - public uint Hash { get; set; } + public uint Hash { get; set; } - public int Duration { get; set; } + public int Duration { get; set; } - public bool FromPlayer { get; set; } + public bool FromPlayer { get; set; } - public string Cctoken { get; set; } + public string Cctoken { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CloseCaptionDirect.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CloseCaptionDirect.cs index 878829a90..32f042edd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CloseCaptionDirect.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CloseCaptionDirect.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_CloseCaptionDirect : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 316; - - static string INetMessage.MessageName => "CCSUsrMsg_CloseCaptionDirect"; + static int INetMessage.MessageId => 316; + + static string INetMessage.MessageName => "CCSUsrMsg_CloseCaptionDirect"; - static CCSUsrMsg_CloseCaptionDirect ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_CloseCaptionDirectImpl(handle, isManuallyAllocated); + static CCSUsrMsg_CloseCaptionDirect ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_CloseCaptionDirectImpl(handle, isManuallyAllocated); - public uint Hash { get; set; } + public uint Hash { get; set; } - public int Duration { get; set; } + public int Duration { get; set; } - public bool FromPlayer { get; set; } + public bool FromPlayer { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CounterStrafe.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CounterStrafe.cs index e29c52a6a..d052bff17 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CounterStrafe.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CounterStrafe.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_CounterStrafe : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 385; - - static string INetMessage.MessageName => "CCSUsrMsg_CounterStrafe"; + static int INetMessage.MessageId => 385; + + static string INetMessage.MessageName => "CCSUsrMsg_CounterStrafe"; - static CCSUsrMsg_CounterStrafe ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_CounterStrafeImpl(handle, isManuallyAllocated); + static CCSUsrMsg_CounterStrafe ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_CounterStrafeImpl(handle, isManuallyAllocated); - public int PressToReleaseNs { get; set; } + public int PressToReleaseNs { get; set; } - public int TotalKeysDown { get; set; } + public int TotalKeysDown { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CurrentRoundOdds.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CurrentRoundOdds.cs index 0a1515055..3764ecb6c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CurrentRoundOdds.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CurrentRoundOdds.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_CurrentRoundOdds : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 380; - - static string INetMessage.MessageName => "CCSUsrMsg_CurrentRoundOdds"; + static int INetMessage.MessageId => 380; + + static string INetMessage.MessageName => "CCSUsrMsg_CurrentRoundOdds"; - static CCSUsrMsg_CurrentRoundOdds ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_CurrentRoundOddsImpl(handle, isManuallyAllocated); + static CCSUsrMsg_CurrentRoundOdds ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_CurrentRoundOddsImpl(handle, isManuallyAllocated); - public int Odds { get; set; } + public int Odds { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CurrentTimescale.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CurrentTimescale.cs index 454414e5c..d6a5997c6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CurrentTimescale.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_CurrentTimescale.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_CurrentTimescale : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 332; - - static string INetMessage.MessageName => "CCSUsrMsg_CurrentTimescale"; + static int INetMessage.MessageId => 332; + + static string INetMessage.MessageName => "CCSUsrMsg_CurrentTimescale"; - static CCSUsrMsg_CurrentTimescale ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_CurrentTimescaleImpl(handle, isManuallyAllocated); + static CCSUsrMsg_CurrentTimescale ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_CurrentTimescaleImpl(handle, isManuallyAllocated); - public float CurTimescale { get; set; } + public float CurTimescale { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Damage.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Damage.cs index 2667952cd..0efd0c77e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Damage.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Damage.cs @@ -1,26 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_Damage : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 321; - - static string INetMessage.MessageName => "CCSUsrMsg_Damage"; + static int INetMessage.MessageId => 321; + + static string INetMessage.MessageName => "CCSUsrMsg_Damage"; - static CCSUsrMsg_Damage ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_DamageImpl(handle, isManuallyAllocated); + static CCSUsrMsg_Damage ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_DamageImpl(handle, isManuallyAllocated); - public int Amount { get; set; } + public int Amount { get; set; } - public Vector InflictorWorldPos { get; set; } + public Vector InflictorWorldPos { get; set; } - public int VictimEntindex { get; set; } + public int VictimEntindex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DamagePrediction.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DamagePrediction.cs index 0293c00a0..71e4c9fbf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DamagePrediction.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DamagePrediction.cs @@ -1,41 +1,41 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_DamagePrediction : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 386; - - static string INetMessage.MessageName => "CCSUsrMsg_DamagePrediction"; + static int INetMessage.MessageId => 386; + + static string INetMessage.MessageName => "CCSUsrMsg_DamagePrediction"; - static CCSUsrMsg_DamagePrediction ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_DamagePredictionImpl(handle, isManuallyAllocated); + static CCSUsrMsg_DamagePrediction ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_DamagePredictionImpl(handle, isManuallyAllocated); - public int CommandNum { get; set; } + public int CommandNum { get; set; } - public int PelletIdx { get; set; } + public int PelletIdx { get; set; } - public int VictimSlot { get; set; } + public int VictimSlot { get; set; } - public int VictimStartingHealth { get; set; } + public int VictimStartingHealth { get; set; } - public int VictimDamage { get; set; } + public int VictimDamage { get; set; } - public Vector ShootPos { get; set; } + public Vector ShootPos { get; set; } - public QAngle ShootDir { get; set; } + public QAngle ShootDir { get; set; } - public QAngle AimPunch { get; set; } + public QAngle AimPunch { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DeepStats.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DeepStats.cs index e63aab20a..e1e00195f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DeepStats.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DeepStats.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_DeepStats : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 381; - - static string INetMessage.MessageName => "CCSUsrMsg_DeepStats"; + static int INetMessage.MessageId => 381; + + static string INetMessage.MessageName => "CCSUsrMsg_DeepStats"; - static CCSUsrMsg_DeepStats ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_DeepStatsImpl(handle, isManuallyAllocated); + static CCSUsrMsg_DeepStats ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_DeepStatsImpl(handle, isManuallyAllocated); - public CMsgGCCStrike15_ClientDeepStats Stats { get; } + public CMsgGCCStrike15_ClientDeepStats Stats { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DesiredTimescale.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DesiredTimescale.cs index 7088a007e..5581fc822 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DesiredTimescale.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DesiredTimescale.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_DesiredTimescale : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 331; - - static string INetMessage.MessageName => "CCSUsrMsg_DesiredTimescale"; + static int INetMessage.MessageId => 331; + + static string INetMessage.MessageName => "CCSUsrMsg_DesiredTimescale"; - static CCSUsrMsg_DesiredTimescale ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_DesiredTimescaleImpl(handle, isManuallyAllocated); + static CCSUsrMsg_DesiredTimescale ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_DesiredTimescaleImpl(handle, isManuallyAllocated); - public float DesiredTimescale { get; set; } + public float DesiredTimescale { get; set; } - public float DurationRealtimeSec { get; set; } + public float DurationRealtimeSec { get; set; } - public int InterpolatorType { get; set; } + public int InterpolatorType { get; set; } - public float StartBlendTime { get; set; } + public float StartBlendTime { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DisconnectToLobby.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DisconnectToLobby.cs index fee7ec0f2..25d7d5f47 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DisconnectToLobby.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_DisconnectToLobby.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_DisconnectToLobby : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 335; - - static string INetMessage.MessageName => "CCSUsrMsg_DisconnectToLobby"; + static int INetMessage.MessageId => 335; + + static string INetMessage.MessageName => "CCSUsrMsg_DisconnectToLobby"; - static CCSUsrMsg_DisconnectToLobby ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_DisconnectToLobbyImpl(handle, isManuallyAllocated); + static CCSUsrMsg_DisconnectToLobby ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_DisconnectToLobbyImpl(handle, isManuallyAllocated); - public int Dummy { get; set; } + public int Dummy { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EndOfMatchAllPlayersData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EndOfMatchAllPlayersData.cs index d68ade09d..d607550b1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EndOfMatchAllPlayersData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EndOfMatchAllPlayersData.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_EndOfMatchAllPlayersData : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 375; - - static string INetMessage.MessageName => "CCSUsrMsg_EndOfMatchAllPlayersData"; + static int INetMessage.MessageId => 375; + + static string INetMessage.MessageName => "CCSUsrMsg_EndOfMatchAllPlayersData"; - static CCSUsrMsg_EndOfMatchAllPlayersData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_EndOfMatchAllPlayersDataImpl(handle, isManuallyAllocated); + static CCSUsrMsg_EndOfMatchAllPlayersData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_EndOfMatchAllPlayersDataImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Allplayerdata { get; } + public IProtobufRepeatedFieldSubMessageType Allplayerdata { get; } - public int Scene { get; set; } + public int Scene { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EndOfMatchAllPlayersData_Accolade.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EndOfMatchAllPlayersData_Accolade.cs index 5ec5f33c3..07c354718 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EndOfMatchAllPlayersData_Accolade.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EndOfMatchAllPlayersData_Accolade.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_EndOfMatchAllPlayersData_Accolade : ITypedProtobuf { - static CCSUsrMsg_EndOfMatchAllPlayersData_Accolade ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_EndOfMatchAllPlayersData_AccoladeImpl(handle, isManuallyAllocated); + static CCSUsrMsg_EndOfMatchAllPlayersData_Accolade ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_EndOfMatchAllPlayersData_AccoladeImpl(handle, isManuallyAllocated); - public int Eaccolade { get; set; } + public int Eaccolade { get; set; } - public float Value { get; set; } + public float Value { get; set; } - public int Position { get; set; } + public int Position { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EndOfMatchAllPlayersData_PlayerData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EndOfMatchAllPlayersData_PlayerData.cs index 689715a9c..15598239d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EndOfMatchAllPlayersData_PlayerData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EndOfMatchAllPlayersData_PlayerData.cs @@ -1,36 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_EndOfMatchAllPlayersData_PlayerData : ITypedProtobuf { - static CCSUsrMsg_EndOfMatchAllPlayersData_PlayerData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_EndOfMatchAllPlayersData_PlayerDataImpl(handle, isManuallyAllocated); + static CCSUsrMsg_EndOfMatchAllPlayersData_PlayerData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_EndOfMatchAllPlayersData_PlayerDataImpl(handle, isManuallyAllocated); - public int Slot { get; set; } + public int Slot { get; set; } - public ulong Xuid { get; set; } + public ulong Xuid { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public int Teamnumber { get; set; } + public int Teamnumber { get; set; } - public CCSUsrMsg_EndOfMatchAllPlayersData_Accolade Nomination { get; } + public CCSUsrMsg_EndOfMatchAllPlayersData_Accolade Nomination { get; } - public IProtobufRepeatedFieldSubMessageType Items { get; } + public IProtobufRepeatedFieldSubMessageType Items { get; } - public int Playercolor { get; set; } + public int Playercolor { get; set; } - public bool Isbot { get; set; } + public bool Isbot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EntityOutlineHighlight.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EntityOutlineHighlight.cs index 94eb547af..782f5aa95 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EntityOutlineHighlight.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_EntityOutlineHighlight.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_EntityOutlineHighlight : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 371; - - static string INetMessage.MessageName => "CCSUsrMsg_EntityOutlineHighlight"; + static int INetMessage.MessageId => 371; + + static string INetMessage.MessageName => "CCSUsrMsg_EntityOutlineHighlight"; - static CCSUsrMsg_EntityOutlineHighlight ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_EntityOutlineHighlightImpl(handle, isManuallyAllocated); + static CCSUsrMsg_EntityOutlineHighlight ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_EntityOutlineHighlightImpl(handle, isManuallyAllocated); - public int Entidx { get; set; } + public int Entidx { get; set; } - public bool Removehighlight { get; set; } + public bool Removehighlight { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Fade.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Fade.cs index 56aeb7dbb..408432d3b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Fade.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Fade.cs @@ -1,29 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_Fade : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 313; - - static string INetMessage.MessageName => "CCSUsrMsg_Fade"; + static int INetMessage.MessageId => 313; + + static string INetMessage.MessageName => "CCSUsrMsg_Fade"; - static CCSUsrMsg_Fade ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_FadeImpl(handle, isManuallyAllocated); + static CCSUsrMsg_Fade ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_FadeImpl(handle, isManuallyAllocated); - public int Duration { get; set; } + public int Duration { get; set; } - public int HoldTime { get; set; } + public int HoldTime { get; set; } - public int Flags { get; set; } + public int Flags { get; set; } - public Color Clr { get; set; } + public Color Clr { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_GameTitle.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_GameTitle.cs index 8bae3c927..4fcdf639a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_GameTitle.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_GameTitle.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_GameTitle : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 310; - - static string INetMessage.MessageName => "CCSUsrMsg_GameTitle"; + static int INetMessage.MessageId => 310; + + static string INetMessage.MessageName => "CCSUsrMsg_GameTitle"; - static CCSUsrMsg_GameTitle ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_GameTitleImpl(handle, isManuallyAllocated); + static CCSUsrMsg_GameTitle ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_GameTitleImpl(handle, isManuallyAllocated); - public int Dummy { get; set; } + public int Dummy { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Geiger.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Geiger.cs index 9f362ee25..f19ac3eae 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Geiger.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Geiger.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_Geiger : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 302; - - static string INetMessage.MessageName => "CCSUsrMsg_Geiger"; + static int INetMessage.MessageId => 302; + + static string INetMessage.MessageName => "CCSUsrMsg_Geiger"; - static CCSUsrMsg_Geiger ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_GeigerImpl(handle, isManuallyAllocated); + static CCSUsrMsg_Geiger ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_GeigerImpl(handle, isManuallyAllocated); - public int Range { get; set; } + public int Range { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_HintText.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_HintText.cs index 580ea451a..4b506fa17 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_HintText.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_HintText.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_HintText : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 323; - - static string INetMessage.MessageName => "CCSUsrMsg_HintText"; + static int INetMessage.MessageId => 323; + + static string INetMessage.MessageName => "CCSUsrMsg_HintText"; - static CCSUsrMsg_HintText ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_HintTextImpl(handle, isManuallyAllocated); + static CCSUsrMsg_HintText ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_HintTextImpl(handle, isManuallyAllocated); - public string Message { get; set; } + public string Message { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_HudMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_HudMsg.cs index 7d9630f3e..79e550e92 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_HudMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_HudMsg.cs @@ -1,47 +1,47 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_HudMsg : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 308; - - static string INetMessage.MessageName => "CCSUsrMsg_HudMsg"; + static int INetMessage.MessageId => 308; + + static string INetMessage.MessageName => "CCSUsrMsg_HudMsg"; - static CCSUsrMsg_HudMsg ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_HudMsgImpl(handle, isManuallyAllocated); + static CCSUsrMsg_HudMsg ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_HudMsgImpl(handle, isManuallyAllocated); - public int Channel { get; set; } + public int Channel { get; set; } - public Vector2D Pos { get; set; } + public Vector2D Pos { get; set; } - public Color Clr1 { get; set; } + public Color Clr1 { get; set; } - public Color Clr2 { get; set; } + public Color Clr2 { get; set; } - public int Effect { get; set; } + public int Effect { get; set; } - public float FadeInTime { get; set; } + public float FadeInTime { get; set; } - public float FadeOutTime { get; set; } + public float FadeOutTime { get; set; } - public float HoldTime { get; set; } + public float HoldTime { get; set; } - public float FxTime { get; set; } + public float FxTime { get; set; } - public string Text { get; set; } + public string Text { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_HudText.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_HudText.cs index a49bc11d2..c7cee7b77 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_HudText.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_HudText.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_HudText : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 304; - - static string INetMessage.MessageName => "CCSUsrMsg_HudText"; + static int INetMessage.MessageId => 304; + + static string INetMessage.MessageName => "CCSUsrMsg_HudText"; - static CCSUsrMsg_HudText ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_HudTextImpl(handle, isManuallyAllocated); + static CCSUsrMsg_HudText ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_HudTextImpl(handle, isManuallyAllocated); - public string Text { get; set; } + public string Text { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ItemDrop.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ItemDrop.cs index 05ba73ff7..7e8eb716c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ItemDrop.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ItemDrop.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_ItemDrop : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 359; - - static string INetMessage.MessageName => "CCSUsrMsg_ItemDrop"; + static int INetMessage.MessageId => 359; + + static string INetMessage.MessageName => "CCSUsrMsg_ItemDrop"; - static CCSUsrMsg_ItemDrop ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ItemDropImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ItemDrop ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ItemDropImpl(handle, isManuallyAllocated); - public long Itemid { get; set; } + public long Itemid { get; set; } - public bool Death { get; set; } + public bool Death { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ItemPickup.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ItemPickup.cs index eb4a16966..15717bbf7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ItemPickup.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ItemPickup.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_ItemPickup : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 353; - - static string INetMessage.MessageName => "CCSUsrMsg_ItemPickup"; + static int INetMessage.MessageId => 353; + + static string INetMessage.MessageName => "CCSUsrMsg_ItemPickup"; - static CCSUsrMsg_ItemPickup ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ItemPickupImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ItemPickup ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ItemPickupImpl(handle, isManuallyAllocated); - public string Item { get; set; } + public string Item { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_KeyHintText.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_KeyHintText.cs index dae01a2ac..0b139a1c3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_KeyHintText.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_KeyHintText.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_KeyHintText : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 324; - - static string INetMessage.MessageName => "CCSUsrMsg_KeyHintText"; + static int INetMessage.MessageId => 324; + + static string INetMessage.MessageName => "CCSUsrMsg_KeyHintText"; - static CCSUsrMsg_KeyHintText ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_KeyHintTextImpl(handle, isManuallyAllocated); + static CCSUsrMsg_KeyHintText ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_KeyHintTextImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType Messages { get; } + public IProtobufRepeatedFieldValueType Messages { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_KillCam.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_KillCam.cs index dab7811c0..51fe55df6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_KillCam.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_KillCam.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_KillCam : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 330; - - static string INetMessage.MessageName => "CCSUsrMsg_KillCam"; + static int INetMessage.MessageId => 330; + + static string INetMessage.MessageName => "CCSUsrMsg_KillCam"; - static CCSUsrMsg_KillCam ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_KillCamImpl(handle, isManuallyAllocated); + static CCSUsrMsg_KillCam ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_KillCamImpl(handle, isManuallyAllocated); - public int ObsMode { get; set; } + public int ObsMode { get; set; } - public int FirstTarget { get; set; } + public int FirstTarget { get; set; } - public int SecondTarget { get; set; } + public int SecondTarget { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_MarkAchievement.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_MarkAchievement.cs index 20df3da43..c14dda5ae 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_MarkAchievement.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_MarkAchievement.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_MarkAchievement : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 357; - - static string INetMessage.MessageName => "CCSUsrMsg_MarkAchievement"; + static int INetMessage.MessageId => 357; + + static string INetMessage.MessageName => "CCSUsrMsg_MarkAchievement"; - static CCSUsrMsg_MarkAchievement ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_MarkAchievementImpl(handle, isManuallyAllocated); + static CCSUsrMsg_MarkAchievement ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_MarkAchievementImpl(handle, isManuallyAllocated); - public string Achievement { get; set; } + public string Achievement { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_MatchEndConditions.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_MatchEndConditions.cs index ec74ce38d..5d9c4173a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_MatchEndConditions.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_MatchEndConditions.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_MatchEndConditions : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 334; - - static string INetMessage.MessageName => "CCSUsrMsg_MatchEndConditions"; + static int INetMessage.MessageId => 334; + + static string INetMessage.MessageName => "CCSUsrMsg_MatchEndConditions"; - static CCSUsrMsg_MatchEndConditions ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_MatchEndConditionsImpl(handle, isManuallyAllocated); + static CCSUsrMsg_MatchEndConditions ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_MatchEndConditionsImpl(handle, isManuallyAllocated); - public int Fraglimit { get; set; } + public int Fraglimit { get; set; } - public int MpMaxrounds { get; set; } + public int MpMaxrounds { get; set; } - public int MpWinlimit { get; set; } + public int MpWinlimit { get; set; } - public float MpTimelimit { get; set; } + public float MpTimelimit { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_MatchStatsUpdate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_MatchStatsUpdate.cs index d66edb87d..b77270f15 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_MatchStatsUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_MatchStatsUpdate.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_MatchStatsUpdate : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 358; - - static string INetMessage.MessageName => "CCSUsrMsg_MatchStatsUpdate"; + static int INetMessage.MessageId => 358; + + static string INetMessage.MessageName => "CCSUsrMsg_MatchStatsUpdate"; - static CCSUsrMsg_MatchStatsUpdate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_MatchStatsUpdateImpl(handle, isManuallyAllocated); + static CCSUsrMsg_MatchStatsUpdate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_MatchStatsUpdateImpl(handle, isManuallyAllocated); - public string Update { get; set; } + public string Update { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PlayerDecalDigitalSignature.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PlayerDecalDigitalSignature.cs index 671726637..8a947503b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PlayerDecalDigitalSignature.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PlayerDecalDigitalSignature.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_PlayerDecalDigitalSignature : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 368; - - static string INetMessage.MessageName => "CCSUsrMsg_PlayerDecalDigitalSignature"; + static int INetMessage.MessageId => 368; + + static string INetMessage.MessageName => "CCSUsrMsg_PlayerDecalDigitalSignature"; - static CCSUsrMsg_PlayerDecalDigitalSignature ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_PlayerDecalDigitalSignatureImpl(handle, isManuallyAllocated); + static CCSUsrMsg_PlayerDecalDigitalSignature ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_PlayerDecalDigitalSignatureImpl(handle, isManuallyAllocated); - public PlayerDecalDigitalSignature Data { get; } + public PlayerDecalDigitalSignature Data { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PlayerStatsUpdate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PlayerStatsUpdate.cs index 30e6d9f55..62217504c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PlayerStatsUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PlayerStatsUpdate.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_PlayerStatsUpdate : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 336; - - static string INetMessage.MessageName => "CCSUsrMsg_PlayerStatsUpdate"; + static int INetMessage.MessageId => 336; + + static string INetMessage.MessageName => "CCSUsrMsg_PlayerStatsUpdate"; - static CCSUsrMsg_PlayerStatsUpdate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_PlayerStatsUpdateImpl(handle, isManuallyAllocated); + static CCSUsrMsg_PlayerStatsUpdate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_PlayerStatsUpdateImpl(handle, isManuallyAllocated); - public int Version { get; set; } + public int Version { get; set; } - public IProtobufRepeatedFieldSubMessageType Stats { get; } + public IProtobufRepeatedFieldSubMessageType Stats { get; } - public uint Ehandle { get; set; } + public uint Ehandle { get; set; } - public int Crc { get; set; } + public int Crc { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PlayerStatsUpdate_Stat.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PlayerStatsUpdate_Stat.cs index 429f76b43..e32830492 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PlayerStatsUpdate_Stat.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PlayerStatsUpdate_Stat.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_PlayerStatsUpdate_Stat : ITypedProtobuf { - static CCSUsrMsg_PlayerStatsUpdate_Stat ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_PlayerStatsUpdate_StatImpl(handle, isManuallyAllocated); + static CCSUsrMsg_PlayerStatsUpdate_Stat ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_PlayerStatsUpdate_StatImpl(handle, isManuallyAllocated); - public int Idx { get; set; } + public int Idx { get; set; } - public int Delta { get; set; } + public int Delta { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PostRoundDamageReport.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PostRoundDamageReport.cs index 26dcd21ba..a6585ab5e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PostRoundDamageReport.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_PostRoundDamageReport.cs @@ -1,38 +1,37 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_PostRoundDamageReport : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 376; - - static string INetMessage.MessageName => "CCSUsrMsg_PostRoundDamageReport"; + static int INetMessage.MessageId => 376; + + static string INetMessage.MessageName => "CCSUsrMsg_PostRoundDamageReport"; - static CCSUsrMsg_PostRoundDamageReport ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_PostRoundDamageReportImpl(handle, isManuallyAllocated); + static CCSUsrMsg_PostRoundDamageReport ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_PostRoundDamageReportImpl(handle, isManuallyAllocated); - public ulong OtherXuid { get; set; } + public ulong OtherXuid { get; set; } - public int GivenKillType { get; set; } + public int GivenKillType { get; set; } - public int GivenHealthRemoved { get; set; } + public int GivenHealthRemoved { get; set; } - public int GivenNumHits { get; set; } + public int GivenNumHits { get; set; } - public int TakenKillType { get; set; } + public int TakenKillType { get; set; } - public int TakenHealthRemoved { get; set; } + public int TakenHealthRemoved { get; set; } - public int TakenNumHits { get; set; } + public int TakenNumHits { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ProcessSpottedEntityUpdate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ProcessSpottedEntityUpdate.cs index 91a0e6953..72e29e0af 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ProcessSpottedEntityUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ProcessSpottedEntityUpdate.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_ProcessSpottedEntityUpdate : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 325; - - static string INetMessage.MessageName => "CCSUsrMsg_ProcessSpottedEntityUpdate"; + static int INetMessage.MessageId => 325; + + static string INetMessage.MessageName => "CCSUsrMsg_ProcessSpottedEntityUpdate"; - static CCSUsrMsg_ProcessSpottedEntityUpdate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ProcessSpottedEntityUpdateImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ProcessSpottedEntityUpdate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ProcessSpottedEntityUpdateImpl(handle, isManuallyAllocated); - public bool NewUpdate { get; set; } + public bool NewUpdate { get; set; } - public IProtobufRepeatedFieldSubMessageType EntityUpdates { get; } + public IProtobufRepeatedFieldSubMessageType EntityUpdates { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdate.cs index b32887b47..e5ff7886d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdate.cs @@ -1,39 +1,38 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdate : ITypedProtobuf { - static CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdateImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ProcessSpottedEntityUpdate_SpottedEntityUpdateImpl(handle, isManuallyAllocated); - public int EntityIdx { get; set; } + public int EntityIdx { get; set; } - public int ClassId { get; set; } + public int ClassId { get; set; } - public int OriginX { get; set; } + public int OriginX { get; set; } - public int OriginY { get; set; } + public int OriginY { get; set; } - public int OriginZ { get; set; } + public int OriginZ { get; set; } - public int AngleY { get; set; } + public int AngleY { get; set; } - public bool Defuser { get; set; } + public bool Defuser { get; set; } - public bool PlayerHasDefuser { get; set; } + public bool PlayerHasDefuser { get; set; } - public bool PlayerHasC4 { get; set; } + public bool PlayerHasC4 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_QuestProgress.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_QuestProgress.cs index 80f2dc85e..68c5a1c75 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_QuestProgress.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_QuestProgress.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_QuestProgress : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 366; - - static string INetMessage.MessageName => "CCSUsrMsg_QuestProgress"; + static int INetMessage.MessageId => 366; + + static string INetMessage.MessageName => "CCSUsrMsg_QuestProgress"; - static CCSUsrMsg_QuestProgress ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_QuestProgressImpl(handle, isManuallyAllocated); + static CCSUsrMsg_QuestProgress ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_QuestProgressImpl(handle, isManuallyAllocated); - public uint QuestId { get; set; } + public uint QuestId { get; set; } - public uint NormalPoints { get; set; } + public uint NormalPoints { get; set; } - public uint BonusPoints { get; set; } + public uint BonusPoints { get; set; } - public bool IsEventQuest { get; set; } + public bool IsEventQuest { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RadioText.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RadioText.cs index 4b1529d76..0fa79396b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RadioText.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RadioText.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_RadioText : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 322; - - static string INetMessage.MessageName => "CCSUsrMsg_RadioText"; + static int INetMessage.MessageId => 322; + + static string INetMessage.MessageName => "CCSUsrMsg_RadioText"; - static CCSUsrMsg_RadioText ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_RadioTextImpl(handle, isManuallyAllocated); + static CCSUsrMsg_RadioText ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_RadioTextImpl(handle, isManuallyAllocated); - public int MsgDst { get; set; } + public int MsgDst { get; set; } - public int Client { get; set; } + public int Client { get; set; } - public string MsgName { get; set; } + public string MsgName { get; set; } - public IProtobufRepeatedFieldValueType Params { get; } + public IProtobufRepeatedFieldValueType Params { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RawAudio.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RawAudio.cs index f48631b0c..dafe6e66b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RawAudio.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RawAudio.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_RawAudio : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 318; - - static string INetMessage.MessageName => "CCSUsrMsg_RawAudio"; + static int INetMessage.MessageId => 318; + + static string INetMessage.MessageName => "CCSUsrMsg_RawAudio"; - static CCSUsrMsg_RawAudio ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_RawAudioImpl(handle, isManuallyAllocated); + static CCSUsrMsg_RawAudio ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_RawAudioImpl(handle, isManuallyAllocated); - public int Pitch { get; set; } + public int Pitch { get; set; } - public int Entidx { get; set; } + public int Entidx { get; set; } - public float Duration { get; set; } + public float Duration { get; set; } - public string VoiceFilename { get; set; } + public string VoiceFilename { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RecurringMissionSchema.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RecurringMissionSchema.cs index 2e304984e..b80d3b0ad 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RecurringMissionSchema.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RecurringMissionSchema.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_RecurringMissionSchema : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 387; - - static string INetMessage.MessageName => "CCSUsrMsg_RecurringMissionSchema"; + static int INetMessage.MessageId => 387; + + static string INetMessage.MessageName => "CCSUsrMsg_RecurringMissionSchema"; - static CCSUsrMsg_RecurringMissionSchema ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_RecurringMissionSchemaImpl(handle, isManuallyAllocated); + static CCSUsrMsg_RecurringMissionSchema ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_RecurringMissionSchemaImpl(handle, isManuallyAllocated); - public uint Period { get; set; } + public uint Period { get; set; } - public byte[] MissionSchema { get; set; } + public byte[] MissionSchema { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ReloadEffect.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ReloadEffect.cs index c9d90f232..26b42c324 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ReloadEffect.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ReloadEffect.cs @@ -1,32 +1,31 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_ReloadEffect : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 326; - - static string INetMessage.MessageName => "CCSUsrMsg_ReloadEffect"; + static int INetMessage.MessageId => 326; + + static string INetMessage.MessageName => "CCSUsrMsg_ReloadEffect"; - static CCSUsrMsg_ReloadEffect ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ReloadEffectImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ReloadEffect ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ReloadEffectImpl(handle, isManuallyAllocated); - public int Entidx { get; set; } + public int Entidx { get; set; } - public int Actanim { get; set; } + public int Actanim { get; set; } - public float OriginX { get; set; } + public float OriginX { get; set; } - public float OriginY { get; set; } + public float OriginY { get; set; } - public float OriginZ { get; set; } + public float OriginZ { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ReportHit.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ReportHit.cs index 250f0e250..a3071ca57 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ReportHit.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ReportHit.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_ReportHit : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 364; - - static string INetMessage.MessageName => "CCSUsrMsg_ReportHit"; + static int INetMessage.MessageId => 364; + + static string INetMessage.MessageName => "CCSUsrMsg_ReportHit"; - static CCSUsrMsg_ReportHit ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ReportHitImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ReportHit ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ReportHitImpl(handle, isManuallyAllocated); - public float PosX { get; set; } + public float PosX { get; set; } - public float PosY { get; set; } + public float PosY { get; set; } - public float Timestamp { get; set; } + public float Timestamp { get; set; } - public float PosZ { get; set; } + public float PosZ { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RequestState.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RequestState.cs index f46b27241..7ea636d7b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RequestState.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RequestState.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_RequestState : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 320; - - static string INetMessage.MessageName => "CCSUsrMsg_RequestState"; + static int INetMessage.MessageId => 320; + + static string INetMessage.MessageName => "CCSUsrMsg_RequestState"; - static CCSUsrMsg_RequestState ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_RequestStateImpl(handle, isManuallyAllocated); + static CCSUsrMsg_RequestState ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_RequestStateImpl(handle, isManuallyAllocated); - public int Dummy { get; set; } + public int Dummy { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ResetHud.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ResetHud.cs index 0913d892d..a7b4a0c88 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ResetHud.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ResetHud.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_ResetHud : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 309; - - static string INetMessage.MessageName => "CCSUsrMsg_ResetHud"; + static int INetMessage.MessageId => 309; + + static string INetMessage.MessageName => "CCSUsrMsg_ResetHud"; - static CCSUsrMsg_ResetHud ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ResetHudImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ResetHud ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ResetHudImpl(handle, isManuallyAllocated); - public bool Reset { get; set; } + public bool Reset { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundBackupFilenames.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundBackupFilenames.cs index 2f8798f80..2c0d165fe 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundBackupFilenames.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundBackupFilenames.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_RoundBackupFilenames : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 362; - - static string INetMessage.MessageName => "CCSUsrMsg_RoundBackupFilenames"; + static int INetMessage.MessageId => 362; + + static string INetMessage.MessageName => "CCSUsrMsg_RoundBackupFilenames"; - static CCSUsrMsg_RoundBackupFilenames ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_RoundBackupFilenamesImpl(handle, isManuallyAllocated); + static CCSUsrMsg_RoundBackupFilenames ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_RoundBackupFilenamesImpl(handle, isManuallyAllocated); - public int Count { get; set; } + public int Count { get; set; } - public int Index { get; set; } + public int Index { get; set; } - public string Filename { get; set; } + public string Filename { get; set; } - public string Nicename { get; set; } + public string Nicename { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData.cs index 4667c45fc..2fbf3c839 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_RoundEndReportData : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 379; - - static string INetMessage.MessageName => "CCSUsrMsg_RoundEndReportData"; + static int INetMessage.MessageId => 379; + + static string INetMessage.MessageName => "CCSUsrMsg_RoundEndReportData"; - static CCSUsrMsg_RoundEndReportData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_RoundEndReportDataImpl(handle, isManuallyAllocated); + static CCSUsrMsg_RoundEndReportData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_RoundEndReportDataImpl(handle, isManuallyAllocated); - public CCSUsrMsg_RoundEndReportData_InitialConditions InitConditions { get; } + public CCSUsrMsg_RoundEndReportData_InitialConditions InitConditions { get; } - public IProtobufRepeatedFieldSubMessageType AllRerEventData { get; } + public IProtobufRepeatedFieldSubMessageType AllRerEventData { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_InitialConditions.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_InitialConditions.cs index 57f9f4514..d67346e69 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_InitialConditions.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_InitialConditions.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_RoundEndReportData_InitialConditions : ITypedProtobuf { - static CCSUsrMsg_RoundEndReportData_InitialConditions ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_RoundEndReportData_InitialConditionsImpl(handle, isManuallyAllocated); + static CCSUsrMsg_RoundEndReportData_InitialConditions ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_RoundEndReportData_InitialConditionsImpl(handle, isManuallyAllocated); - public int CtEquipValue { get; set; } + public int CtEquipValue { get; set; } - public int TEquipValue { get; set; } + public int TEquipValue { get; set; } - public int TerroristOdds { get; set; } + public int TerroristOdds { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent.cs index 86593fdef..57ee1c6ea 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_RoundEndReportData_RerEvent : ITypedProtobuf { - static CCSUsrMsg_RoundEndReportData_RerEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_RoundEndReportData_RerEventImpl(handle, isManuallyAllocated); + static CCSUsrMsg_RoundEndReportData_RerEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_RoundEndReportData_RerEventImpl(handle, isManuallyAllocated); - public float Timestamp { get; set; } + public float Timestamp { get; set; } - public int TerroristOdds { get; set; } + public int TerroristOdds { get; set; } - public int CtAlive { get; set; } + public int CtAlive { get; set; } - public int TAlive { get; set; } + public int TAlive { get; set; } - public CCSUsrMsg_RoundEndReportData_RerEvent_Victim VictimData { get; } + public CCSUsrMsg_RoundEndReportData_RerEvent_Victim VictimData { get; } - public CCSUsrMsg_RoundEndReportData_RerEvent_Objective ObjectiveData { get; } + public CCSUsrMsg_RoundEndReportData_RerEvent_Objective ObjectiveData { get; } - public IProtobufRepeatedFieldSubMessageType AllDamageData { get; } + public IProtobufRepeatedFieldSubMessageType AllDamageData { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent_Damage.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent_Damage.cs index 4c966b0b9..8885d7b7c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent_Damage.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent_Damage.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_RoundEndReportData_RerEvent_Damage : ITypedProtobuf { - static CCSUsrMsg_RoundEndReportData_RerEvent_Damage ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_RoundEndReportData_RerEvent_DamageImpl(handle, isManuallyAllocated); + static CCSUsrMsg_RoundEndReportData_RerEvent_Damage ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_RoundEndReportData_RerEvent_DamageImpl(handle, isManuallyAllocated); - public int OtherPlayerslot { get; set; } + public int OtherPlayerslot { get; set; } - public ulong OtherXuid { get; set; } + public ulong OtherXuid { get; set; } - public int HealthRemoved { get; set; } + public int HealthRemoved { get; set; } - public int NumHits { get; set; } + public int NumHits { get; set; } - public int ReturnHealthRemoved { get; set; } + public int ReturnHealthRemoved { get; set; } - public int ReturnNumHits { get; set; } + public int ReturnNumHits { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent_Objective.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent_Objective.cs index 3e07e0344..589864538 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent_Objective.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent_Objective.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_RoundEndReportData_RerEvent_Objective : ITypedProtobuf { - static CCSUsrMsg_RoundEndReportData_RerEvent_Objective ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_RoundEndReportData_RerEvent_ObjectiveImpl(handle, isManuallyAllocated); + static CCSUsrMsg_RoundEndReportData_RerEvent_Objective ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_RoundEndReportData_RerEvent_ObjectiveImpl(handle, isManuallyAllocated); - public int Type { get; set; } + public int Type { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent_Victim.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent_Victim.cs index 9004455c9..864f0bfbc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent_Victim.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_RoundEndReportData_RerEvent_Victim.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_RoundEndReportData_RerEvent_Victim : ITypedProtobuf { - static CCSUsrMsg_RoundEndReportData_RerEvent_Victim ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_RoundEndReportData_RerEvent_VictimImpl(handle, isManuallyAllocated); + static CCSUsrMsg_RoundEndReportData_RerEvent_Victim ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_RoundEndReportData_RerEvent_VictimImpl(handle, isManuallyAllocated); - public int TeamNumber { get; set; } + public int TeamNumber { get; set; } - public int Playerslot { get; set; } + public int Playerslot { get; set; } - public ulong Xuid { get; set; } + public ulong Xuid { get; set; } - public int Color { get; set; } + public int Color { get; set; } - public bool IsBot { get; set; } + public bool IsBot { get; set; } - public bool IsDead { get; set; } + public bool IsDead { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Rumble.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Rumble.cs index f142b9bb1..fb2f359f4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Rumble.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Rumble.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_Rumble : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 314; - - static string INetMessage.MessageName => "CCSUsrMsg_Rumble"; + static int INetMessage.MessageId => 314; + + static string INetMessage.MessageName => "CCSUsrMsg_Rumble"; - static CCSUsrMsg_Rumble ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_RumbleImpl(handle, isManuallyAllocated); + static CCSUsrMsg_Rumble ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_RumbleImpl(handle, isManuallyAllocated); - public int Index { get; set; } + public int Index { get; set; } - public int Data { get; set; } + public int Data { get; set; } - public int Flags { get; set; } + public int Flags { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SSUI.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SSUI.cs index ea5c7f81c..c70d67b77 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SSUI.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SSUI.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_SSUI : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 372; - - static string INetMessage.MessageName => "CCSUsrMsg_SSUI"; + static int INetMessage.MessageId => 372; + + static string INetMessage.MessageName => "CCSUsrMsg_SSUI"; - static CCSUsrMsg_SSUI ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_SSUIImpl(handle, isManuallyAllocated); + static CCSUsrMsg_SSUI ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_SSUIImpl(handle, isManuallyAllocated); - public bool Show { get; set; } + public bool Show { get; set; } - public float StartTime { get; set; } + public float StartTime { get; set; } - public float EndTime { get; set; } + public float EndTime { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ScoreLeaderboardData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ScoreLeaderboardData.cs index 18e7ef36a..95c61227d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ScoreLeaderboardData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ScoreLeaderboardData.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_ScoreLeaderboardData : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 367; - - static string INetMessage.MessageName => "CCSUsrMsg_ScoreLeaderboardData"; + static int INetMessage.MessageId => 367; + + static string INetMessage.MessageName => "CCSUsrMsg_ScoreLeaderboardData"; - static CCSUsrMsg_ScoreLeaderboardData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ScoreLeaderboardDataImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ScoreLeaderboardData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ScoreLeaderboardDataImpl(handle, isManuallyAllocated); - public ScoreLeaderboardData Data { get; } + public ScoreLeaderboardData Data { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendAudio.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendAudio.cs index fece7f53b..297aef9b0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendAudio.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendAudio.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_SendAudio : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 317; - - static string INetMessage.MessageName => "CCSUsrMsg_SendAudio"; + static int INetMessage.MessageId => 317; + + static string INetMessage.MessageName => "CCSUsrMsg_SendAudio"; - static CCSUsrMsg_SendAudio ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_SendAudioImpl(handle, isManuallyAllocated); + static CCSUsrMsg_SendAudio ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_SendAudioImpl(handle, isManuallyAllocated); - public string RadioSound { get; set; } + public string RadioSound { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendLastKillerDamageToClient.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendLastKillerDamageToClient.cs index 54728e1c1..f205d0bc9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendLastKillerDamageToClient.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendLastKillerDamageToClient.cs @@ -1,35 +1,34 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_SendLastKillerDamageToClient : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 351; - - static string INetMessage.MessageName => "CCSUsrMsg_SendLastKillerDamageToClient"; + static int INetMessage.MessageId => 351; + + static string INetMessage.MessageName => "CCSUsrMsg_SendLastKillerDamageToClient"; - static CCSUsrMsg_SendLastKillerDamageToClient ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_SendLastKillerDamageToClientImpl(handle, isManuallyAllocated); + static CCSUsrMsg_SendLastKillerDamageToClient ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_SendLastKillerDamageToClientImpl(handle, isManuallyAllocated); - public int NumHitsGiven { get; set; } + public int NumHitsGiven { get; set; } - public int DamageGiven { get; set; } + public int DamageGiven { get; set; } - public int NumHitsTaken { get; set; } + public int NumHitsTaken { get; set; } - public int DamageTaken { get; set; } + public int DamageTaken { get; set; } - public int ActualDamageGiven { get; set; } + public int ActualDamageGiven { get; set; } - public int ActualDamageTaken { get; set; } + public int ActualDamageTaken { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerItemDrops.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerItemDrops.cs index dba68e72c..b9ca2ca91 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerItemDrops.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerItemDrops.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_SendPlayerItemDrops : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 361; - - static string INetMessage.MessageName => "CCSUsrMsg_SendPlayerItemDrops"; + static int INetMessage.MessageId => 361; + + static string INetMessage.MessageName => "CCSUsrMsg_SendPlayerItemDrops"; - static CCSUsrMsg_SendPlayerItemDrops ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_SendPlayerItemDropsImpl(handle, isManuallyAllocated); + static CCSUsrMsg_SendPlayerItemDrops ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_SendPlayerItemDropsImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType EntityUpdates { get; } + public IProtobufRepeatedFieldSubMessageType EntityUpdates { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerItemFound.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerItemFound.cs index a93293748..7fced4551 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerItemFound.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerItemFound.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_SendPlayerItemFound : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 363; - - static string INetMessage.MessageName => "CCSUsrMsg_SendPlayerItemFound"; + static int INetMessage.MessageId => 363; + + static string INetMessage.MessageName => "CCSUsrMsg_SendPlayerItemFound"; - static CCSUsrMsg_SendPlayerItemFound ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_SendPlayerItemFoundImpl(handle, isManuallyAllocated); + static CCSUsrMsg_SendPlayerItemFound ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_SendPlayerItemFoundImpl(handle, isManuallyAllocated); - public CEconItemPreviewDataBlock Iteminfo { get; } + public CEconItemPreviewDataBlock Iteminfo { get; } - public int Playerslot { get; set; } + public int Playerslot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerLoadout.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerLoadout.cs index 45a1418db..1127a3bd3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerLoadout.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerLoadout.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_SendPlayerLoadout : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 388; - - static string INetMessage.MessageName => "CCSUsrMsg_SendPlayerLoadout"; + static int INetMessage.MessageId => 388; + + static string INetMessage.MessageName => "CCSUsrMsg_SendPlayerLoadout"; - static CCSUsrMsg_SendPlayerLoadout ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_SendPlayerLoadoutImpl(handle, isManuallyAllocated); + static CCSUsrMsg_SendPlayerLoadout ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_SendPlayerLoadoutImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Loadout { get; } + public IProtobufRepeatedFieldSubMessageType Loadout { get; } - public int Playerslot { get; set; } + public int Playerslot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerLoadout_LoadoutItem.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerLoadout_LoadoutItem.cs index d3e0e867a..9d079c530 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerLoadout_LoadoutItem.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SendPlayerLoadout_LoadoutItem.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_SendPlayerLoadout_LoadoutItem : ITypedProtobuf { - static CCSUsrMsg_SendPlayerLoadout_LoadoutItem ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_SendPlayerLoadout_LoadoutItemImpl(handle, isManuallyAllocated); + static CCSUsrMsg_SendPlayerLoadout_LoadoutItem ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_SendPlayerLoadout_LoadoutItemImpl(handle, isManuallyAllocated); - public CEconItemPreviewDataBlock EconItem { get; } + public CEconItemPreviewDataBlock EconItem { get; } - public int Team { get; set; } + public int Team { get; set; } - public int Slot { get; set; } + public int Slot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ServerRankRevealAll.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ServerRankRevealAll.cs index 4ecf90542..4e92c3276 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ServerRankRevealAll.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ServerRankRevealAll.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_ServerRankRevealAll : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 350; - - static string INetMessage.MessageName => "CCSUsrMsg_ServerRankRevealAll"; + static int INetMessage.MessageId => 350; + + static string INetMessage.MessageName => "CCSUsrMsg_ServerRankRevealAll"; - static CCSUsrMsg_ServerRankRevealAll ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ServerRankRevealAllImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ServerRankRevealAll ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ServerRankRevealAllImpl(handle, isManuallyAllocated); - public int SecondsTillShutdown { get; set; } + public int SecondsTillShutdown { get; set; } - public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation { get; } + public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ServerRankUpdate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ServerRankUpdate.cs index 920f9922e..a6d57948c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ServerRankUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ServerRankUpdate.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_ServerRankUpdate : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 352; - - static string INetMessage.MessageName => "CCSUsrMsg_ServerRankUpdate"; + static int INetMessage.MessageId => 352; + + static string INetMessage.MessageName => "CCSUsrMsg_ServerRankUpdate"; - static CCSUsrMsg_ServerRankUpdate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ServerRankUpdateImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ServerRankUpdate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ServerRankUpdateImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType RankUpdate { get; } + public IProtobufRepeatedFieldSubMessageType RankUpdate { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ServerRankUpdate_RankUpdate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ServerRankUpdate_RankUpdate.cs index 354aebf69..b89c4309a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ServerRankUpdate_RankUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ServerRankUpdate_RankUpdate.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_ServerRankUpdate_RankUpdate : ITypedProtobuf { - static CCSUsrMsg_ServerRankUpdate_RankUpdate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ServerRankUpdate_RankUpdateImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ServerRankUpdate_RankUpdate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ServerRankUpdate_RankUpdateImpl(handle, isManuallyAllocated); - public int AccountId { get; set; } + public int AccountId { get; set; } - public int RankOld { get; set; } + public int RankOld { get; set; } - public int RankNew { get; set; } + public int RankNew { get; set; } - public int NumWins { get; set; } + public int NumWins { get; set; } - public float RankChange { get; set; } + public float RankChange { get; set; } - public int RankTypeId { get; set; } + public int RankTypeId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Shake.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Shake.cs index 4e0630caa..bb4a89381 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Shake.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Shake.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_Shake : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 312; - - static string INetMessage.MessageName => "CCSUsrMsg_Shake"; + static int INetMessage.MessageId => 312; + + static string INetMessage.MessageName => "CCSUsrMsg_Shake"; - static CCSUsrMsg_Shake ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ShakeImpl(handle, isManuallyAllocated); + static CCSUsrMsg_Shake ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ShakeImpl(handle, isManuallyAllocated); - public int Command { get; set; } + public int Command { get; set; } - public float LocalAmplitude { get; set; } + public float LocalAmplitude { get; set; } - public float Frequency { get; set; } + public float Frequency { get; set; } - public float Duration { get; set; } + public float Duration { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ShootInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ShootInfo.cs index fe271daad..1d2b8b983 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ShootInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ShootInfo.cs @@ -1,29 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_ShootInfo : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 383; - - static string INetMessage.MessageName => "CCSUsrMsg_ShootInfo"; + static int INetMessage.MessageId => 383; + + static string INetMessage.MessageName => "CCSUsrMsg_ShootInfo"; - static CCSUsrMsg_ShootInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ShootInfoImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ShootInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ShootInfoImpl(handle, isManuallyAllocated); - public int FrameNumber { get; set; } + public int FrameNumber { get; set; } - public IProtobufRepeatedFieldSubMessageType HitboxTransforms { get; } + public IProtobufRepeatedFieldSubMessageType HitboxTransforms { get; } - public Vector ShootPos { get; set; } + public Vector ShootPos { get; set; } - public QAngle ShootDir { get; set; } + public QAngle ShootDir { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ShowMenu.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ShowMenu.cs index 52d9ab7a3..6769950ad 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ShowMenu.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_ShowMenu.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_ShowMenu : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 354; - - static string INetMessage.MessageName => "CCSUsrMsg_ShowMenu"; + static int INetMessage.MessageId => 354; + + static string INetMessage.MessageName => "CCSUsrMsg_ShowMenu"; - static CCSUsrMsg_ShowMenu ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_ShowMenuImpl(handle, isManuallyAllocated); + static CCSUsrMsg_ShowMenu ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_ShowMenuImpl(handle, isManuallyAllocated); - public int BitsValidSlots { get; set; } + public int BitsValidSlots { get; set; } - public int DisplayTime { get; set; } + public int DisplayTime { get; set; } - public string MenuString { get; set; } + public string MenuString { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_StopSpectatorMode.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_StopSpectatorMode.cs index 9ff0650cd..1edbc7973 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_StopSpectatorMode.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_StopSpectatorMode.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_StopSpectatorMode : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 329; - - static string INetMessage.MessageName => "CCSUsrMsg_StopSpectatorMode"; + static int INetMessage.MessageId => 329; + + static string INetMessage.MessageName => "CCSUsrMsg_StopSpectatorMode"; - static CCSUsrMsg_StopSpectatorMode ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_StopSpectatorModeImpl(handle, isManuallyAllocated); + static CCSUsrMsg_StopSpectatorMode ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_StopSpectatorModeImpl(handle, isManuallyAllocated); - public int Dummy { get; set; } + public int Dummy { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats.cs index 35cd8b4c7..bc1fff3a5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats.cs @@ -1,32 +1,31 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_SurvivalStats : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 373; - - static string INetMessage.MessageName => "CCSUsrMsg_SurvivalStats"; + static int INetMessage.MessageId => 373; + + static string INetMessage.MessageName => "CCSUsrMsg_SurvivalStats"; - static CCSUsrMsg_SurvivalStats ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_SurvivalStatsImpl(handle, isManuallyAllocated); + static CCSUsrMsg_SurvivalStats ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_SurvivalStatsImpl(handle, isManuallyAllocated); - public ulong Xuid { get; set; } + public ulong Xuid { get; set; } - public IProtobufRepeatedFieldSubMessageType Facts { get; } + public IProtobufRepeatedFieldSubMessageType Facts { get; } - public IProtobufRepeatedFieldSubMessageType Users { get; } + public IProtobufRepeatedFieldSubMessageType Users { get; } - public IProtobufRepeatedFieldSubMessageType Damages { get; } + public IProtobufRepeatedFieldSubMessageType Damages { get; } - public int Ticknumber { get; set; } + public int Ticknumber { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats_Damage.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats_Damage.cs index 80902c784..a9909594b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats_Damage.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats_Damage.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_SurvivalStats_Damage : ITypedProtobuf { - static CCSUsrMsg_SurvivalStats_Damage ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_SurvivalStats_DamageImpl(handle, isManuallyAllocated); + static CCSUsrMsg_SurvivalStats_Damage ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_SurvivalStats_DamageImpl(handle, isManuallyAllocated); - public ulong Xuid { get; set; } + public ulong Xuid { get; set; } - public int To { get; set; } + public int To { get; set; } - public int ToHits { get; set; } + public int ToHits { get; set; } - public int From { get; set; } + public int From { get; set; } - public int FromHits { get; set; } + public int FromHits { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats_Fact.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats_Fact.cs index ad7cc10b6..a0aaa75f9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats_Fact.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats_Fact.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_SurvivalStats_Fact : ITypedProtobuf { - static CCSUsrMsg_SurvivalStats_Fact ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_SurvivalStats_FactImpl(handle, isManuallyAllocated); + static CCSUsrMsg_SurvivalStats_Fact ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_SurvivalStats_FactImpl(handle, isManuallyAllocated); - public int Type { get; set; } + public int Type { get; set; } - public int Display { get; set; } + public int Display { get; set; } - public int Value { get; set; } + public int Value { get; set; } - public float Interestingness { get; set; } + public float Interestingness { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats_Placement.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats_Placement.cs index 849fbe917..dc4a42d81 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats_Placement.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_SurvivalStats_Placement.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_SurvivalStats_Placement : ITypedProtobuf { - static CCSUsrMsg_SurvivalStats_Placement ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_SurvivalStats_PlacementImpl(handle, isManuallyAllocated); + static CCSUsrMsg_SurvivalStats_Placement ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_SurvivalStats_PlacementImpl(handle, isManuallyAllocated); - public ulong Xuid { get; set; } + public ulong Xuid { get; set; } - public int Teamnumber { get; set; } + public int Teamnumber { get; set; } - public int Placement { get; set; } + public int Placement { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Train.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Train.cs index 756890ebe..8e9a2c636 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Train.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_Train.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_Train : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 303; - - static string INetMessage.MessageName => "CCSUsrMsg_Train"; + static int INetMessage.MessageId => 303; + + static string INetMessage.MessageName => "CCSUsrMsg_Train"; - static CCSUsrMsg_Train ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_TrainImpl(handle, isManuallyAllocated); + static CCSUsrMsg_Train ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_TrainImpl(handle, isManuallyAllocated); - public int Train { get; set; } + public int Train { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_UpdateScreenHealthBar.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_UpdateScreenHealthBar.cs index f205208f2..5ec4da21c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_UpdateScreenHealthBar.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_UpdateScreenHealthBar.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_UpdateScreenHealthBar : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 370; - - static string INetMessage.MessageName => "CCSUsrMsg_UpdateScreenHealthBar"; + static int INetMessage.MessageId => 370; + + static string INetMessage.MessageName => "CCSUsrMsg_UpdateScreenHealthBar"; - static CCSUsrMsg_UpdateScreenHealthBar ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_UpdateScreenHealthBarImpl(handle, isManuallyAllocated); + static CCSUsrMsg_UpdateScreenHealthBar ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_UpdateScreenHealthBarImpl(handle, isManuallyAllocated); - public int Entidx { get; set; } + public int Entidx { get; set; } - public float HealthratioOld { get; set; } + public float HealthratioOld { get; set; } - public float HealthratioNew { get; set; } + public float HealthratioNew { get; set; } - public int Style { get; set; } + public int Style { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VGUIMenu.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VGUIMenu.cs index b6a7fb153..baa9d8a4f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VGUIMenu.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VGUIMenu.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_VGUIMenu : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 301; - - static string INetMessage.MessageName => "CCSUsrMsg_VGUIMenu"; + static int INetMessage.MessageId => 301; + + static string INetMessage.MessageName => "CCSUsrMsg_VGUIMenu"; - static CCSUsrMsg_VGUIMenu ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_VGUIMenuImpl(handle, isManuallyAllocated); + static CCSUsrMsg_VGUIMenu ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_VGUIMenuImpl(handle, isManuallyAllocated); - public string Name { get; set; } + public string Name { get; set; } - public bool Show { get; set; } + public bool Show { get; set; } - public IProtobufRepeatedFieldSubMessageType Keys { get; } + public IProtobufRepeatedFieldSubMessageType Keys { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VGUIMenu_Keys.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VGUIMenu_Keys.cs index 45942ec94..6af01feac 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VGUIMenu_Keys.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VGUIMenu_Keys.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_VGUIMenu_Keys : ITypedProtobuf { - static CCSUsrMsg_VGUIMenu_Keys ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_VGUIMenu_KeysImpl(handle, isManuallyAllocated); + static CCSUsrMsg_VGUIMenu_Keys ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_VGUIMenu_KeysImpl(handle, isManuallyAllocated); - public string Name { get; set; } + public string Name { get; set; } - public string Value { get; set; } + public string Value { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoiceMask.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoiceMask.cs index 9ace7b857..9fee52dc3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoiceMask.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoiceMask.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_VoiceMask : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 319; - - static string INetMessage.MessageName => "CCSUsrMsg_VoiceMask"; + static int INetMessage.MessageId => 319; + + static string INetMessage.MessageName => "CCSUsrMsg_VoiceMask"; - static CCSUsrMsg_VoiceMask ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_VoiceMaskImpl(handle, isManuallyAllocated); + static CCSUsrMsg_VoiceMask ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_VoiceMaskImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType PlayerMasks { get; } + public IProtobufRepeatedFieldSubMessageType PlayerMasks { get; } - public bool PlayerModEnable { get; set; } + public bool PlayerModEnable { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoiceMask_PlayerMask.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoiceMask_PlayerMask.cs index 0560779c3..9c280eaf5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoiceMask_PlayerMask.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoiceMask_PlayerMask.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCSUsrMsg_VoiceMask_PlayerMask : ITypedProtobuf { - static CCSUsrMsg_VoiceMask_PlayerMask ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_VoiceMask_PlayerMaskImpl(handle, isManuallyAllocated); + static CCSUsrMsg_VoiceMask_PlayerMask ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_VoiceMask_PlayerMaskImpl(handle, isManuallyAllocated); - public int GameRulesMask { get; set; } + public int GameRulesMask { get; set; } - public int BanMasks { get; set; } + public int BanMasks { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoteFailed.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoteFailed.cs index cab52356b..a1aace93d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoteFailed.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoteFailed.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_VoteFailed : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 348; - - static string INetMessage.MessageName => "CCSUsrMsg_VoteFailed"; + static int INetMessage.MessageId => 348; + + static string INetMessage.MessageName => "CCSUsrMsg_VoteFailed"; - static CCSUsrMsg_VoteFailed ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_VoteFailedImpl(handle, isManuallyAllocated); + static CCSUsrMsg_VoteFailed ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_VoteFailedImpl(handle, isManuallyAllocated); - public int Team { get; set; } + public int Team { get; set; } - public int Reason { get; set; } + public int Reason { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VotePass.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VotePass.cs index 156d05d2a..00952638d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VotePass.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VotePass.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_VotePass : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 347; - - static string INetMessage.MessageName => "CCSUsrMsg_VotePass"; + static int INetMessage.MessageId => 347; + + static string INetMessage.MessageName => "CCSUsrMsg_VotePass"; - static CCSUsrMsg_VotePass ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_VotePassImpl(handle, isManuallyAllocated); + static CCSUsrMsg_VotePass ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_VotePassImpl(handle, isManuallyAllocated); - public int Team { get; set; } + public int Team { get; set; } - public int VoteType { get; set; } + public int VoteType { get; set; } - public string DispStr { get; set; } + public string DispStr { get; set; } - public string DetailsStr { get; set; } + public string DetailsStr { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoteSetup.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoteSetup.cs index 321ffe609..37ae9a407 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoteSetup.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoteSetup.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_VoteSetup : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 349; - - static string INetMessage.MessageName => "CCSUsrMsg_VoteSetup"; + static int INetMessage.MessageId => 349; + + static string INetMessage.MessageName => "CCSUsrMsg_VoteSetup"; - static CCSUsrMsg_VoteSetup ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_VoteSetupImpl(handle, isManuallyAllocated); + static CCSUsrMsg_VoteSetup ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_VoteSetupImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType PotentialIssues { get; } + public IProtobufRepeatedFieldValueType PotentialIssues { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoteStart.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoteStart.cs index 240efd63c..2548472a3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoteStart.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_VoteStart.cs @@ -1,41 +1,40 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_VoteStart : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 346; - - static string INetMessage.MessageName => "CCSUsrMsg_VoteStart"; + static int INetMessage.MessageId => 346; + + static string INetMessage.MessageName => "CCSUsrMsg_VoteStart"; - static CCSUsrMsg_VoteStart ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_VoteStartImpl(handle, isManuallyAllocated); + static CCSUsrMsg_VoteStart ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_VoteStartImpl(handle, isManuallyAllocated); - public int Team { get; set; } + public int Team { get; set; } - public int PlayerSlot { get; set; } + public int PlayerSlot { get; set; } - public int VoteType { get; set; } + public int VoteType { get; set; } - public string DispStr { get; set; } + public string DispStr { get; set; } - public string DetailsStr { get; set; } + public string DetailsStr { get; set; } - public string OtherTeamStr { get; set; } + public string OtherTeamStr { get; set; } - public bool IsYesNoVote { get; set; } + public bool IsYesNoVote { get; set; } - public int PlayerSlotTarget { get; set; } + public int PlayerSlotTarget { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_WeaponSound.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_WeaponSound.cs index 904bcb208..f3174a715 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_WeaponSound.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_WeaponSound.cs @@ -1,38 +1,37 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_WeaponSound : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 369; - - static string INetMessage.MessageName => "CCSUsrMsg_WeaponSound"; + static int INetMessage.MessageId => 369; + + static string INetMessage.MessageName => "CCSUsrMsg_WeaponSound"; - static CCSUsrMsg_WeaponSound ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_WeaponSoundImpl(handle, isManuallyAllocated); + static CCSUsrMsg_WeaponSound ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_WeaponSoundImpl(handle, isManuallyAllocated); - public int Entidx { get; set; } + public int Entidx { get; set; } - public float OriginX { get; set; } + public float OriginX { get; set; } - public float OriginY { get; set; } + public float OriginY { get; set; } - public float OriginZ { get; set; } + public float OriginZ { get; set; } - public string Sound { get; set; } + public string Sound { get; set; } - public float GameTimestamp { get; set; } + public float GameTimestamp { get; set; } - public uint SourceSoundscapeid { get; set; } + public uint SourceSoundscapeid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_XRankGet.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_XRankGet.cs index 06880a972..121d79d27 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_XRankGet.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_XRankGet.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_XRankGet : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 340; - - static string INetMessage.MessageName => "CCSUsrMsg_XRankGet"; + static int INetMessage.MessageId => 340; + + static string INetMessage.MessageName => "CCSUsrMsg_XRankGet"; - static CCSUsrMsg_XRankGet ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_XRankGetImpl(handle, isManuallyAllocated); + static CCSUsrMsg_XRankGet ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_XRankGetImpl(handle, isManuallyAllocated); - public int ModeIdx { get; set; } + public int ModeIdx { get; set; } - public int Controller { get; set; } + public int Controller { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_XRankUpd.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_XRankUpd.cs index 1b8fd1c95..1cd35d615 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_XRankUpd.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_XRankUpd.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_XRankUpd : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 341; - - static string INetMessage.MessageName => "CCSUsrMsg_XRankUpd"; + static int INetMessage.MessageId => 341; + + static string INetMessage.MessageName => "CCSUsrMsg_XRankUpd"; - static CCSUsrMsg_XRankUpd ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_XRankUpdImpl(handle, isManuallyAllocated); + static CCSUsrMsg_XRankUpd ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_XRankUpdImpl(handle, isManuallyAllocated); - public int ModeIdx { get; set; } + public int ModeIdx { get; set; } - public int Controller { get; set; } + public int Controller { get; set; } - public int Ranking { get; set; } + public int Ranking { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_XpUpdate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_XpUpdate.cs index 7b51fa81d..5830979fd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_XpUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCSUsrMsg_XpUpdate.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CCSUsrMsg_XpUpdate : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 365; - - static string INetMessage.MessageName => "CCSUsrMsg_XpUpdate"; + static int INetMessage.MessageId => 365; + + static string INetMessage.MessageName => "CCSUsrMsg_XpUpdate"; - static CCSUsrMsg_XpUpdate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCSUsrMsg_XpUpdateImpl(handle, isManuallyAllocated); + static CCSUsrMsg_XpUpdate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCSUsrMsg_XpUpdateImpl(handle, isManuallyAllocated); - public CMsgGCCstrike15_v2_GC2ServerNotifyXPRewarded Data { get; } + public CMsgGCCstrike15_v2_GC2ServerNotifyXPRewarded Data { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientHeaderOverwatchEvidence.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientHeaderOverwatchEvidence.cs index c6e3e6f49..d74742c64 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientHeaderOverwatchEvidence.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientHeaderOverwatchEvidence.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CClientHeaderOverwatchEvidence : ITypedProtobuf { - static CClientHeaderOverwatchEvidence ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CClientHeaderOverwatchEvidenceImpl(handle, isManuallyAllocated); + static CClientHeaderOverwatchEvidence ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CClientHeaderOverwatchEvidenceImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public ulong Caseid { get; set; } + public ulong Caseid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_ClientUIEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_ClientUIEvent.cs index 406f937e7..e8ac7eac2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_ClientUIEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_ClientUIEvent.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CClientMsg_ClientUIEvent : ITypedProtobuf { - static CClientMsg_ClientUIEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CClientMsg_ClientUIEventImpl(handle, isManuallyAllocated); + static CClientMsg_ClientUIEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CClientMsg_ClientUIEventImpl(handle, isManuallyAllocated); - public EClientUIEvent Event { get; set; } + public EClientUIEvent Event { get; set; } - public uint EntEhandle { get; set; } + public uint EntEhandle { get; set; } - public uint ClientEhandle { get; set; } + public uint ClientEhandle { get; set; } - public string Data1 { get; set; } + public string Data1 { get; set; } - public string Data2 { get; set; } + public string Data2 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_CustomGameEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_CustomGameEvent.cs index eaf56ee54..604db1c7b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_CustomGameEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_CustomGameEvent.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CClientMsg_CustomGameEvent : ITypedProtobuf { - static CClientMsg_CustomGameEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CClientMsg_CustomGameEventImpl(handle, isManuallyAllocated); + static CClientMsg_CustomGameEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CClientMsg_CustomGameEventImpl(handle, isManuallyAllocated); - public string EventName { get; set; } + public string EventName { get; set; } - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_CustomGameEventBounce.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_CustomGameEventBounce.cs index 07d7f71c8..783167f55 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_CustomGameEventBounce.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_CustomGameEventBounce.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CClientMsg_CustomGameEventBounce : ITypedProtobuf { - static CClientMsg_CustomGameEventBounce ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CClientMsg_CustomGameEventBounceImpl(handle, isManuallyAllocated); + static CClientMsg_CustomGameEventBounce ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CClientMsg_CustomGameEventBounceImpl(handle, isManuallyAllocated); - public string EventName { get; set; } + public string EventName { get; set; } - public byte[] Data { get; set; } + public byte[] Data { get; set; } - public int PlayerSlot { get; set; } + public int PlayerSlot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_DevPaletteVisibilityChangedEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_DevPaletteVisibilityChangedEvent.cs index 9dde893fc..96fb16d7b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_DevPaletteVisibilityChangedEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_DevPaletteVisibilityChangedEvent.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CClientMsg_DevPaletteVisibilityChangedEvent : ITypedProtobuf { - static CClientMsg_DevPaletteVisibilityChangedEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CClientMsg_DevPaletteVisibilityChangedEventImpl(handle, isManuallyAllocated); + static CClientMsg_DevPaletteVisibilityChangedEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CClientMsg_DevPaletteVisibilityChangedEventImpl(handle, isManuallyAllocated); - public bool Visible { get; set; } + public bool Visible { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_ListenForResponseFound.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_ListenForResponseFound.cs index 72a3de62b..59ab7fbc7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_ListenForResponseFound.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_ListenForResponseFound.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CClientMsg_ListenForResponseFound : ITypedProtobuf { - static CClientMsg_ListenForResponseFound ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CClientMsg_ListenForResponseFoundImpl(handle, isManuallyAllocated); + static CClientMsg_ListenForResponseFound ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CClientMsg_ListenForResponseFoundImpl(handle, isManuallyAllocated); - public int PlayerSlot { get; set; } + public int PlayerSlot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_RotateAnchor.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_RotateAnchor.cs index f8e10150b..f036c7cab 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_RotateAnchor.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_RotateAnchor.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CClientMsg_RotateAnchor : ITypedProtobuf { - static CClientMsg_RotateAnchor ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CClientMsg_RotateAnchorImpl(handle, isManuallyAllocated); + static CClientMsg_RotateAnchor ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CClientMsg_RotateAnchorImpl(handle, isManuallyAllocated); - public float Angle { get; set; } + public float Angle { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_WorldUIControllerHasPanelChangedEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_WorldUIControllerHasPanelChangedEvent.cs index 5f4d1efa0..ec4571b8d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_WorldUIControllerHasPanelChangedEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CClientMsg_WorldUIControllerHasPanelChangedEvent.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CClientMsg_WorldUIControllerHasPanelChangedEvent : ITypedProtobuf { - static CClientMsg_WorldUIControllerHasPanelChangedEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CClientMsg_WorldUIControllerHasPanelChangedEventImpl(handle, isManuallyAllocated); + static CClientMsg_WorldUIControllerHasPanelChangedEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CClientMsg_WorldUIControllerHasPanelChangedEventImpl(handle, isManuallyAllocated); - public bool HasPanel { get; set; } + public bool HasPanel { get; set; } - public uint ClientEhandle { get; set; } + public uint ClientEhandle { get; set; } - public uint LiteralHandType { get; set; } + public uint LiteralHandType { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GamePersonalDataCategoryInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GamePersonalDataCategoryInfo.cs index 4c170175c..5eb3a03bc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GamePersonalDataCategoryInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GamePersonalDataCategoryInfo.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCommunity_GamePersonalDataCategoryInfo : ITypedProtobuf { - static CCommunity_GamePersonalDataCategoryInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCommunity_GamePersonalDataCategoryInfoImpl(handle, isManuallyAllocated); + static CCommunity_GamePersonalDataCategoryInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCommunity_GamePersonalDataCategoryInfoImpl(handle, isManuallyAllocated); - public string Type { get; set; } + public string Type { get; set; } - public string LocalizationToken { get; set; } + public string LocalizationToken { get; set; } - public string TemplateFile { get; set; } + public string TemplateFile { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataCategories_Request.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataCategories_Request.cs index e61016a53..6038f024f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataCategories_Request.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataCategories_Request.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCommunity_GetGamePersonalDataCategories_Request : ITypedProtobuf { - static CCommunity_GetGamePersonalDataCategories_Request ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCommunity_GetGamePersonalDataCategories_RequestImpl(handle, isManuallyAllocated); + static CCommunity_GetGamePersonalDataCategories_Request ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCommunity_GetGamePersonalDataCategories_RequestImpl(handle, isManuallyAllocated); - public uint Appid { get; set; } + public uint Appid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataCategories_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataCategories_Response.cs index e91725a1d..4761c87dc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataCategories_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataCategories_Response.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCommunity_GetGamePersonalDataCategories_Response : ITypedProtobuf { - static CCommunity_GetGamePersonalDataCategories_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCommunity_GetGamePersonalDataCategories_ResponseImpl(handle, isManuallyAllocated); + static CCommunity_GetGamePersonalDataCategories_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCommunity_GetGamePersonalDataCategories_ResponseImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Categories { get; } + public IProtobufRepeatedFieldSubMessageType Categories { get; } - public string AppAssetsBasename { get; set; } + public string AppAssetsBasename { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataEntries_Request.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataEntries_Request.cs index 39f488b34..f00b76e3a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataEntries_Request.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataEntries_Request.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCommunity_GetGamePersonalDataEntries_Request : ITypedProtobuf { - static CCommunity_GetGamePersonalDataEntries_Request ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCommunity_GetGamePersonalDataEntries_RequestImpl(handle, isManuallyAllocated); + static CCommunity_GetGamePersonalDataEntries_Request ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCommunity_GetGamePersonalDataEntries_RequestImpl(handle, isManuallyAllocated); - public uint Appid { get; set; } + public uint Appid { get; set; } - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } - public string Type { get; set; } + public string Type { get; set; } - public string ContinueToken { get; set; } + public string ContinueToken { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataEntries_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataEntries_Response.cs index 43bfee06d..d0ef3cf75 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataEntries_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_GetGamePersonalDataEntries_Response.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCommunity_GetGamePersonalDataEntries_Response : ITypedProtobuf { - static CCommunity_GetGamePersonalDataEntries_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCommunity_GetGamePersonalDataEntries_ResponseImpl(handle, isManuallyAllocated); + static CCommunity_GetGamePersonalDataEntries_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCommunity_GetGamePersonalDataEntries_ResponseImpl(handle, isManuallyAllocated); - public uint Gceresult { get; set; } + public uint Gceresult { get; set; } - public IProtobufRepeatedFieldValueType Entries { get; } + public IProtobufRepeatedFieldValueType Entries { get; } - public string ContinueToken { get; set; } + public string ContinueToken { get; set; } - public string ContinueText { get; set; } + public string ContinueText { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_TerminateGamePersonalDataEntries_Request.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_TerminateGamePersonalDataEntries_Request.cs index bf55dd7e8..436b9f824 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_TerminateGamePersonalDataEntries_Request.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_TerminateGamePersonalDataEntries_Request.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCommunity_TerminateGamePersonalDataEntries_Request : ITypedProtobuf { - static CCommunity_TerminateGamePersonalDataEntries_Request ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCommunity_TerminateGamePersonalDataEntries_RequestImpl(handle, isManuallyAllocated); + static CCommunity_TerminateGamePersonalDataEntries_Request ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCommunity_TerminateGamePersonalDataEntries_RequestImpl(handle, isManuallyAllocated); - public uint Appid { get; set; } + public uint Appid { get; set; } - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_TerminateGamePersonalDataEntries_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_TerminateGamePersonalDataEntries_Response.cs index 63095b85d..c5ead45f1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_TerminateGamePersonalDataEntries_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CCommunity_TerminateGamePersonalDataEntries_Response.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CCommunity_TerminateGamePersonalDataEntries_Response : ITypedProtobuf { - static CCommunity_TerminateGamePersonalDataEntries_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CCommunity_TerminateGamePersonalDataEntries_ResponseImpl(handle, isManuallyAllocated); + static CCommunity_TerminateGamePersonalDataEntries_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CCommunity_TerminateGamePersonalDataEntries_ResponseImpl(handle, isManuallyAllocated); - public uint Gceresult { get; set; } + public uint Gceresult { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_MatchInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_MatchInfo.cs index dab71d15a..f31fdc01d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_MatchInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_MatchInfo.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDataGCCStrike15_v2_MatchInfo : ITypedProtobuf { - static CDataGCCStrike15_v2_MatchInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDataGCCStrike15_v2_MatchInfoImpl(handle, isManuallyAllocated); + static CDataGCCStrike15_v2_MatchInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDataGCCStrike15_v2_MatchInfoImpl(handle, isManuallyAllocated); - public ulong Matchid { get; set; } + public ulong Matchid { get; set; } - public uint Matchtime { get; set; } + public uint Matchtime { get; set; } - public WatchableMatchInfo Watchablematchinfo { get; } + public WatchableMatchInfo Watchablematchinfo { get; } - public CMsgGCCStrike15_v2_MatchmakingServerRoundStats RoundstatsLegacy { get; } + public CMsgGCCStrike15_v2_MatchmakingServerRoundStats RoundstatsLegacy { get; } - public IProtobufRepeatedFieldSubMessageType Roundstatsall { get; } + public IProtobufRepeatedFieldSubMessageType Roundstatsall { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentGroup.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentGroup.cs index 77cce448c..9fef4ed1e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentGroup.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentGroup.cs @@ -1,42 +1,41 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDataGCCStrike15_v2_TournamentGroup : ITypedProtobuf { - static CDataGCCStrike15_v2_TournamentGroup ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDataGCCStrike15_v2_TournamentGroupImpl(handle, isManuallyAllocated); + static CDataGCCStrike15_v2_TournamentGroup ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDataGCCStrike15_v2_TournamentGroupImpl(handle, isManuallyAllocated); - public uint Groupid { get; set; } + public uint Groupid { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public string Desc { get; set; } + public string Desc { get; set; } - public uint PicksDeprecated { get; set; } + public uint PicksDeprecated { get; set; } - public IProtobufRepeatedFieldSubMessageType Teams { get; } + public IProtobufRepeatedFieldSubMessageType Teams { get; } - public IProtobufRepeatedFieldValueType StageIds { get; } + public IProtobufRepeatedFieldValueType StageIds { get; } - public uint Picklockuntiltime { get; set; } + public uint Picklockuntiltime { get; set; } - public uint Pickableteams { get; set; } + public uint Pickableteams { get; set; } - public uint PointsPerPick { get; set; } + public uint PointsPerPick { get; set; } - public IProtobufRepeatedFieldSubMessageType Picks { get; } + public IProtobufRepeatedFieldSubMessageType Picks { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentGroupTeam.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentGroupTeam.cs index 947f2b55a..f95d46a31 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentGroupTeam.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentGroupTeam.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDataGCCStrike15_v2_TournamentGroupTeam : ITypedProtobuf { - static CDataGCCStrike15_v2_TournamentGroupTeam ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDataGCCStrike15_v2_TournamentGroupTeamImpl(handle, isManuallyAllocated); + static CDataGCCStrike15_v2_TournamentGroupTeam ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDataGCCStrike15_v2_TournamentGroupTeamImpl(handle, isManuallyAllocated); - public int TeamId { get; set; } + public int TeamId { get; set; } - public int Score { get; set; } + public int Score { get; set; } - public bool Correctpick { get; set; } + public bool Correctpick { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentGroup_Picks.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentGroup_Picks.cs index e8fc4d420..f3cf78b78 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentGroup_Picks.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentGroup_Picks.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDataGCCStrike15_v2_TournamentGroup_Picks : ITypedProtobuf { - static CDataGCCStrike15_v2_TournamentGroup_Picks ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDataGCCStrike15_v2_TournamentGroup_PicksImpl(handle, isManuallyAllocated); + static CDataGCCStrike15_v2_TournamentGroup_Picks ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDataGCCStrike15_v2_TournamentGroup_PicksImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType Pickids { get; } + public IProtobufRepeatedFieldValueType Pickids { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentInfo.cs index 648d8a56e..c0d21c0d9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentInfo.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDataGCCStrike15_v2_TournamentInfo : ITypedProtobuf { - static CDataGCCStrike15_v2_TournamentInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDataGCCStrike15_v2_TournamentInfoImpl(handle, isManuallyAllocated); + static CDataGCCStrike15_v2_TournamentInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDataGCCStrike15_v2_TournamentInfoImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Sections { get; } + public IProtobufRepeatedFieldSubMessageType Sections { get; } - public TournamentEvent TournamentEvent { get; } + public TournamentEvent TournamentEvent { get; } - public IProtobufRepeatedFieldSubMessageType TournamentTeams { get; } + public IProtobufRepeatedFieldSubMessageType TournamentTeams { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentMatchDraft.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentMatchDraft.cs index bf1078254..4c598c033 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentMatchDraft.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentMatchDraft.cs @@ -1,72 +1,71 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDataGCCStrike15_v2_TournamentMatchDraft : ITypedProtobuf { - static CDataGCCStrike15_v2_TournamentMatchDraft ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDataGCCStrike15_v2_TournamentMatchDraftImpl(handle, isManuallyAllocated); + static CDataGCCStrike15_v2_TournamentMatchDraft ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDataGCCStrike15_v2_TournamentMatchDraftImpl(handle, isManuallyAllocated); - public int EventId { get; set; } + public int EventId { get; set; } - public int EventStageId { get; set; } + public int EventStageId { get; set; } - public int TeamId0 { get; set; } + public int TeamId0 { get; set; } - public int TeamId1 { get; set; } + public int TeamId1 { get; set; } - public int MapsCount { get; set; } + public int MapsCount { get; set; } - public int MapsCurrent { get; set; } + public int MapsCurrent { get; set; } - public int TeamIdStart { get; set; } + public int TeamIdStart { get; set; } - public int TeamIdVeto1 { get; set; } + public int TeamIdVeto1 { get; set; } - public int TeamIdPickn { get; set; } + public int TeamIdPickn { get; set; } - public IProtobufRepeatedFieldSubMessageType Drafts { get; } + public IProtobufRepeatedFieldSubMessageType Drafts { get; } - public IProtobufRepeatedFieldValueType VoteMapid0 { get; } + public IProtobufRepeatedFieldValueType VoteMapid0 { get; } - public IProtobufRepeatedFieldValueType VoteMapid1 { get; } + public IProtobufRepeatedFieldValueType VoteMapid1 { get; } - public IProtobufRepeatedFieldValueType VoteMapid2 { get; } + public IProtobufRepeatedFieldValueType VoteMapid2 { get; } - public IProtobufRepeatedFieldValueType VoteMapid3 { get; } + public IProtobufRepeatedFieldValueType VoteMapid3 { get; } - public IProtobufRepeatedFieldValueType VoteMapid4 { get; } + public IProtobufRepeatedFieldValueType VoteMapid4 { get; } - public IProtobufRepeatedFieldValueType VoteMapid5 { get; } + public IProtobufRepeatedFieldValueType VoteMapid5 { get; } - public IProtobufRepeatedFieldValueType VoteStartingSide { get; } + public IProtobufRepeatedFieldValueType VoteStartingSide { get; } - public int VotePhase { get; set; } + public int VotePhase { get; set; } - public float VotePhaseStart { get; set; } + public float VotePhaseStart { get; set; } - public float VotePhaseLength { get; set; } + public float VotePhaseLength { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentMatchDraft_Entry.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentMatchDraft_Entry.cs index 9008d5a22..753dee126 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentMatchDraft_Entry.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentMatchDraft_Entry.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDataGCCStrike15_v2_TournamentMatchDraft_Entry : ITypedProtobuf { - static CDataGCCStrike15_v2_TournamentMatchDraft_Entry ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDataGCCStrike15_v2_TournamentMatchDraft_EntryImpl(handle, isManuallyAllocated); + static CDataGCCStrike15_v2_TournamentMatchDraft_Entry ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDataGCCStrike15_v2_TournamentMatchDraft_EntryImpl(handle, isManuallyAllocated); - public int Mapid { get; set; } + public int Mapid { get; set; } - public int TeamIdCt { get; set; } + public int TeamIdCt { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentSection.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentSection.cs index 145ffdb49..c647526e7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentSection.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDataGCCStrike15_v2_TournamentSection.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDataGCCStrike15_v2_TournamentSection : ITypedProtobuf { - static CDataGCCStrike15_v2_TournamentSection ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDataGCCStrike15_v2_TournamentSectionImpl(handle, isManuallyAllocated); + static CDataGCCStrike15_v2_TournamentSection ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDataGCCStrike15_v2_TournamentSectionImpl(handle, isManuallyAllocated); - public uint Sectionid { get; set; } + public uint Sectionid { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public string Desc { get; set; } + public string Desc { get; set; } - public IProtobufRepeatedFieldSubMessageType Groups { get; } + public IProtobufRepeatedFieldSubMessageType Groups { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoAnimationData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoAnimationData.cs index c28381b85..c41abafdf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoAnimationData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoAnimationData.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoAnimationData : ITypedProtobuf { - static CDemoAnimationData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoAnimationDataImpl(handle, isManuallyAllocated); + static CDemoAnimationData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoAnimationDataImpl(handle, isManuallyAllocated); - public int EntityId { get; set; } + public int EntityId { get; set; } - public int StartTick { get; set; } + public int StartTick { get; set; } - public int EndTick { get; set; } + public int EndTick { get; set; } - public byte[] Data { get; set; } + public byte[] Data { get; set; } - public long DataChecksum { get; set; } + public long DataChecksum { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoAnimationHeader.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoAnimationHeader.cs index 722f23999..005555514 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoAnimationHeader.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoAnimationHeader.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoAnimationHeader : ITypedProtobuf { - static CDemoAnimationHeader ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoAnimationHeaderImpl(handle, isManuallyAllocated); + static CDemoAnimationHeader ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoAnimationHeaderImpl(handle, isManuallyAllocated); - public int EntityId { get; set; } + public int EntityId { get; set; } - public int Tick { get; set; } + public int Tick { get; set; } - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoClassInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoClassInfo.cs index a4748f045..dde902517 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoClassInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoClassInfo.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoClassInfo : ITypedProtobuf { - static CDemoClassInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoClassInfoImpl(handle, isManuallyAllocated); + static CDemoClassInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoClassInfoImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Classes { get; } + public IProtobufRepeatedFieldSubMessageType Classes { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoClassInfo_class_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoClassInfo_class_t.cs index de515c914..0b903b6cc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoClassInfo_class_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoClassInfo_class_t.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoClassInfo_class_t : ITypedProtobuf { - static CDemoClassInfo_class_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoClassInfo_class_tImpl(handle, isManuallyAllocated); + static CDemoClassInfo_class_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoClassInfo_class_tImpl(handle, isManuallyAllocated); - public int ClassId { get; set; } + public int ClassId { get; set; } - public string NetworkName { get; set; } + public string NetworkName { get; set; } - public string TableName { get; set; } + public string TableName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoConsoleCmd.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoConsoleCmd.cs index cd5afe2a5..a91a55c81 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoConsoleCmd.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoConsoleCmd.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoConsoleCmd : ITypedProtobuf { - static CDemoConsoleCmd ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoConsoleCmdImpl(handle, isManuallyAllocated); + static CDemoConsoleCmd ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoConsoleCmdImpl(handle, isManuallyAllocated); - public string Cmdstring { get; set; } + public string Cmdstring { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoCustomData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoCustomData.cs index 04dddff9a..3c5e4b3b6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoCustomData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoCustomData.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoCustomData : ITypedProtobuf { - static CDemoCustomData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoCustomDataImpl(handle, isManuallyAllocated); + static CDemoCustomData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoCustomDataImpl(handle, isManuallyAllocated); - public int CallbackIndex { get; set; } + public int CallbackIndex { get; set; } - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoCustomDataCallbacks.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoCustomDataCallbacks.cs index cf93bd09e..9d917c7cb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoCustomDataCallbacks.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoCustomDataCallbacks.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoCustomDataCallbacks : ITypedProtobuf { - static CDemoCustomDataCallbacks ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoCustomDataCallbacksImpl(handle, isManuallyAllocated); + static CDemoCustomDataCallbacks ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoCustomDataCallbacksImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType SaveId { get; } + public IProtobufRepeatedFieldValueType SaveId { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoFileHeader.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoFileHeader.cs index 8151007d2..402c0742e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoFileHeader.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoFileHeader.cs @@ -1,57 +1,56 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoFileHeader : ITypedProtobuf { - static CDemoFileHeader ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoFileHeaderImpl(handle, isManuallyAllocated); + static CDemoFileHeader ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoFileHeaderImpl(handle, isManuallyAllocated); - public string DemoFileStamp { get; set; } + public string DemoFileStamp { get; set; } - public int PatchVersion { get; set; } + public int PatchVersion { get; set; } - public string ServerName { get; set; } + public string ServerName { get; set; } - public string ClientName { get; set; } + public string ClientName { get; set; } - public string MapName { get; set; } + public string MapName { get; set; } - public string GameDirectory { get; set; } + public string GameDirectory { get; set; } - public int FullpacketsVersion { get; set; } + public int FullpacketsVersion { get; set; } - public bool AllowClientsideEntities { get; set; } + public bool AllowClientsideEntities { get; set; } - public bool AllowClientsideParticles { get; set; } + public bool AllowClientsideParticles { get; set; } - public string Addons { get; set; } + public string Addons { get; set; } - public string DemoVersionName { get; set; } + public string DemoVersionName { get; set; } - public string DemoVersionGuid { get; set; } + public string DemoVersionGuid { get; set; } - public int BuildNum { get; set; } + public int BuildNum { get; set; } - public string Game { get; set; } + public string Game { get; set; } - public int ServerStartTick { get; set; } + public int ServerStartTick { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoFileInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoFileInfo.cs index c52a7ec5e..01656901f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoFileInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoFileInfo.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoFileInfo : ITypedProtobuf { - static CDemoFileInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoFileInfoImpl(handle, isManuallyAllocated); + static CDemoFileInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoFileInfoImpl(handle, isManuallyAllocated); - public float PlaybackTime { get; set; } + public float PlaybackTime { get; set; } - public int PlaybackTicks { get; set; } + public int PlaybackTicks { get; set; } - public int PlaybackFrames { get; set; } + public int PlaybackFrames { get; set; } - public CGameInfo GameInfo { get; } + public CGameInfo GameInfo { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoFullPacket.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoFullPacket.cs index ca8962ac1..78e3299b2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoFullPacket.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoFullPacket.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoFullPacket : ITypedProtobuf { - static CDemoFullPacket ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoFullPacketImpl(handle, isManuallyAllocated); + static CDemoFullPacket ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoFullPacketImpl(handle, isManuallyAllocated); - public CDemoStringTables StringTable { get; } + public CDemoStringTables StringTable { get; } - public CDemoPacket Packet { get; } + public CDemoPacket Packet { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoPacket.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoPacket.cs index 85441ee5c..b418ee3ae 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoPacket.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoPacket.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoPacket : ITypedProtobuf { - static CDemoPacket ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoPacketImpl(handle, isManuallyAllocated); + static CDemoPacket ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoPacketImpl(handle, isManuallyAllocated); - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoRecovery.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoRecovery.cs index 5402898dd..c267e615c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoRecovery.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoRecovery.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoRecovery : ITypedProtobuf { - static CDemoRecovery ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoRecoveryImpl(handle, isManuallyAllocated); + static CDemoRecovery ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoRecoveryImpl(handle, isManuallyAllocated); - public CDemoRecovery_DemoInitialSpawnGroupEntry InitialSpawnGroup { get; } + public CDemoRecovery_DemoInitialSpawnGroupEntry InitialSpawnGroup { get; } - public byte[] SpawnGroupMessage { get; set; } + public byte[] SpawnGroupMessage { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoRecovery_DemoInitialSpawnGroupEntry.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoRecovery_DemoInitialSpawnGroupEntry.cs index 100296314..820b4c5b3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoRecovery_DemoInitialSpawnGroupEntry.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoRecovery_DemoInitialSpawnGroupEntry.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoRecovery_DemoInitialSpawnGroupEntry : ITypedProtobuf { - static CDemoRecovery_DemoInitialSpawnGroupEntry ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoRecovery_DemoInitialSpawnGroupEntryImpl(handle, isManuallyAllocated); + static CDemoRecovery_DemoInitialSpawnGroupEntry ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoRecovery_DemoInitialSpawnGroupEntryImpl(handle, isManuallyAllocated); - public uint Spawngrouphandle { get; set; } + public uint Spawngrouphandle { get; set; } - public bool WasCreated { get; set; } + public bool WasCreated { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSaveGame.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSaveGame.cs index 5eff379b3..8d629f094 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSaveGame.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSaveGame.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoSaveGame : ITypedProtobuf { - static CDemoSaveGame ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoSaveGameImpl(handle, isManuallyAllocated); + static CDemoSaveGame ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoSaveGameImpl(handle, isManuallyAllocated); - public byte[] Data { get; set; } + public byte[] Data { get; set; } - public ulong SteamId { get; set; } + public ulong SteamId { get; set; } - public ulong Signature { get; set; } + public ulong Signature { get; set; } - public int Version { get; set; } + public int Version { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSendTables.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSendTables.cs index 115daf431..ef5dbde7a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSendTables.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSendTables.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoSendTables : ITypedProtobuf { - static CDemoSendTables ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoSendTablesImpl(handle, isManuallyAllocated); + static CDemoSendTables ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoSendTablesImpl(handle, isManuallyAllocated); - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSpawnGroups.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSpawnGroups.cs index ebe9fa5f0..9d5e178c5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSpawnGroups.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSpawnGroups.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoSpawnGroups : ITypedProtobuf { - static CDemoSpawnGroups ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoSpawnGroupsImpl(handle, isManuallyAllocated); + static CDemoSpawnGroups ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoSpawnGroupsImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType Msgs { get; } + public IProtobufRepeatedFieldValueType Msgs { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStop.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStop.cs index c8b0c4a2b..98d37cf55 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStop.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStop.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoStop : ITypedProtobuf { - static CDemoStop ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoStopImpl(handle, isManuallyAllocated); + static CDemoStop ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoStopImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStringTables.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStringTables.cs index 14e05281d..ceffe0fd9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStringTables.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStringTables.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoStringTables : ITypedProtobuf { - static CDemoStringTables ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoStringTablesImpl(handle, isManuallyAllocated); + static CDemoStringTables ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoStringTablesImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Tables { get; } + public IProtobufRepeatedFieldSubMessageType Tables { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStringTables_items_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStringTables_items_t.cs index 4ddcf5683..bbdd574b3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStringTables_items_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStringTables_items_t.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoStringTables_items_t : ITypedProtobuf { - static CDemoStringTables_items_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoStringTables_items_tImpl(handle, isManuallyAllocated); + static CDemoStringTables_items_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoStringTables_items_tImpl(handle, isManuallyAllocated); - public string Str { get; set; } + public string Str { get; set; } - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStringTables_table_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStringTables_table_t.cs index fb1e25a6e..f33c64add 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStringTables_table_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoStringTables_table_t.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoStringTables_table_t : ITypedProtobuf { - static CDemoStringTables_table_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoStringTables_table_tImpl(handle, isManuallyAllocated); + static CDemoStringTables_table_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoStringTables_table_tImpl(handle, isManuallyAllocated); - public string TableName { get; set; } + public string TableName { get; set; } - public IProtobufRepeatedFieldSubMessageType Items { get; } + public IProtobufRepeatedFieldSubMessageType Items { get; } - public IProtobufRepeatedFieldSubMessageType ItemsClientside { get; } + public IProtobufRepeatedFieldSubMessageType ItemsClientside { get; } - public int TableFlags { get; set; } + public int TableFlags { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSyncTick.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSyncTick.cs index ec2fe3898..59678db33 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSyncTick.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoSyncTick.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoSyncTick : ITypedProtobuf { - static CDemoSyncTick ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoSyncTickImpl(handle, isManuallyAllocated); + static CDemoSyncTick ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoSyncTickImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoUserCmd.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoUserCmd.cs index 06c6ea48e..db1f26f53 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoUserCmd.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CDemoUserCmd.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CDemoUserCmd : ITypedProtobuf { - static CDemoUserCmd ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CDemoUserCmdImpl(handle, isManuallyAllocated); + static CDemoUserCmd ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CDemoUserCmdImpl(handle, isManuallyAllocated); - public int CmdNumber { get; set; } + public int CmdNumber { get; set; } - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEconItemPreviewDataBlock.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEconItemPreviewDataBlock.cs index 716a3aee1..4fb377b5a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEconItemPreviewDataBlock.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEconItemPreviewDataBlock.cs @@ -1,81 +1,80 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CEconItemPreviewDataBlock : ITypedProtobuf { - static CEconItemPreviewDataBlock ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CEconItemPreviewDataBlockImpl(handle, isManuallyAllocated); + static CEconItemPreviewDataBlock ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CEconItemPreviewDataBlockImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public ulong Itemid { get; set; } + public ulong Itemid { get; set; } - public uint Defindex { get; set; } + public uint Defindex { get; set; } - public uint Paintindex { get; set; } + public uint Paintindex { get; set; } - public uint Rarity { get; set; } + public uint Rarity { get; set; } - public uint Quality { get; set; } + public uint Quality { get; set; } - public uint Paintwear { get; set; } + public uint Paintwear { get; set; } - public uint Paintseed { get; set; } + public uint Paintseed { get; set; } - public uint Killeaterscoretype { get; set; } + public uint Killeaterscoretype { get; set; } - public uint Killeatervalue { get; set; } + public uint Killeatervalue { get; set; } - public string Customname { get; set; } + public string Customname { get; set; } - public IProtobufRepeatedFieldSubMessageType Stickers { get; } + public IProtobufRepeatedFieldSubMessageType Stickers { get; } - public uint Inventory { get; set; } + public uint Inventory { get; set; } - public uint Origin { get; set; } + public uint Origin { get; set; } - public uint Questid { get; set; } + public uint Questid { get; set; } - public uint Dropreason { get; set; } + public uint Dropreason { get; set; } - public uint Musicindex { get; set; } + public uint Musicindex { get; set; } - public int Entindex { get; set; } + public int Entindex { get; set; } - public uint Petindex { get; set; } + public uint Petindex { get; set; } - public IProtobufRepeatedFieldSubMessageType Keychains { get; } + public IProtobufRepeatedFieldSubMessageType Keychains { get; } - public uint Style { get; set; } + public uint Style { get; set; } - public IProtobufRepeatedFieldSubMessageType Variations { get; } + public IProtobufRepeatedFieldSubMessageType Variations { get; } - public uint UpgradeLevel { get; set; } + public uint UpgradeLevel { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEconItemPreviewDataBlock_Sticker.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEconItemPreviewDataBlock_Sticker.cs index dd44d61a5..fb15b5613 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEconItemPreviewDataBlock_Sticker.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEconItemPreviewDataBlock_Sticker.cs @@ -1,48 +1,47 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CEconItemPreviewDataBlock_Sticker : ITypedProtobuf { - static CEconItemPreviewDataBlock_Sticker ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CEconItemPreviewDataBlock_StickerImpl(handle, isManuallyAllocated); + static CEconItemPreviewDataBlock_Sticker ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CEconItemPreviewDataBlock_StickerImpl(handle, isManuallyAllocated); - public uint Slot { get; set; } + public uint Slot { get; set; } - public uint StickerId { get; set; } + public uint StickerId { get; set; } - public float Wear { get; set; } + public float Wear { get; set; } - public float Scale { get; set; } + public float Scale { get; set; } - public float Rotation { get; set; } + public float Rotation { get; set; } - public uint TintId { get; set; } + public uint TintId { get; set; } - public float OffsetX { get; set; } + public float OffsetX { get; set; } - public float OffsetY { get; set; } + public float OffsetY { get; set; } - public float OffsetZ { get; set; } + public float OffsetZ { get; set; } - public uint Pattern { get; set; } + public uint Pattern { get; set; } - public uint HighlightReel { get; set; } + public uint HighlightReel { get; set; } - public uint WrappedSticker { get; set; } + public uint WrappedSticker { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEngineGotvSyncPacket.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEngineGotvSyncPacket.cs index 58b441e48..257bfbaf9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEngineGotvSyncPacket.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEngineGotvSyncPacket.cs @@ -1,42 +1,41 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CEngineGotvSyncPacket : ITypedProtobuf { - static CEngineGotvSyncPacket ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CEngineGotvSyncPacketImpl(handle, isManuallyAllocated); + static CEngineGotvSyncPacket ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CEngineGotvSyncPacketImpl(handle, isManuallyAllocated); - public ulong MatchId { get; set; } + public ulong MatchId { get; set; } - public uint InstanceId { get; set; } + public uint InstanceId { get; set; } - public uint Signupfragment { get; set; } + public uint Signupfragment { get; set; } - public uint Currentfragment { get; set; } + public uint Currentfragment { get; set; } - public float Tickrate { get; set; } + public float Tickrate { get; set; } - public uint Tick { get; set; } + public uint Tick { get; set; } - public float Rtdelay { get; set; } + public float Rtdelay { get; set; } - public float Rcvage { get; set; } + public float Rcvage { get; set; } - public float KeyframeInterval { get; set; } + public float KeyframeInterval { get; set; } - public uint Cdndelay { get; set; } + public uint Cdndelay { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageDoSpark.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageDoSpark.cs index 403d3d6fc..45adf51df 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageDoSpark.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageDoSpark.cs @@ -7,30 +7,30 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CEntityMessageDoSpark : ITypedProtobuf { - static CEntityMessageDoSpark ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CEntityMessageDoSparkImpl(handle, isManuallyAllocated); + static CEntityMessageDoSpark ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CEntityMessageDoSparkImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public int Entityindex { get; set; } + public int Entityindex { get; set; } - public float Radius { get; set; } + public float Radius { get; set; } - public uint Color { get; set; } + public uint Color { get; set; } - public uint Beams { get; set; } + public uint Beams { get; set; } - public float Thick { get; set; } + public float Thick { get; set; } - public float Duration { get; set; } + public float Duration { get; set; } - public CEntityMsg EntityMsg { get; } + public CEntityMsg EntityMsg { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageFixAngle.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageFixAngle.cs index fb47c4143..45fbb84ab 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageFixAngle.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageFixAngle.cs @@ -7,15 +7,15 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CEntityMessageFixAngle : ITypedProtobuf { - static CEntityMessageFixAngle ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CEntityMessageFixAngleImpl(handle, isManuallyAllocated); + static CEntityMessageFixAngle ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CEntityMessageFixAngleImpl(handle, isManuallyAllocated); - public bool Relative { get; set; } + public bool Relative { get; set; } - public QAngle Angle { get; set; } + public QAngle Angle { get; set; } - public CEntityMsg EntityMsg { get; } + public CEntityMsg EntityMsg { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessagePlayJingle.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessagePlayJingle.cs index de0f87575..c6efca699 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessagePlayJingle.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessagePlayJingle.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CEntityMessagePlayJingle : ITypedProtobuf { - static CEntityMessagePlayJingle ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CEntityMessagePlayJingleImpl(handle, isManuallyAllocated); + static CEntityMessagePlayJingle ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CEntityMessagePlayJingleImpl(handle, isManuallyAllocated); - public CEntityMsg EntityMsg { get; } + public CEntityMsg EntityMsg { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessagePropagateForce.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessagePropagateForce.cs index e1fff519b..05cdca1cd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessagePropagateForce.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessagePropagateForce.cs @@ -7,12 +7,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CEntityMessagePropagateForce : ITypedProtobuf { - static CEntityMessagePropagateForce ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CEntityMessagePropagateForceImpl(handle, isManuallyAllocated); + static CEntityMessagePropagateForce ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CEntityMessagePropagateForceImpl(handle, isManuallyAllocated); - public Vector Impulse { get; set; } + public Vector Impulse { get; set; } - public CEntityMsg EntityMsg { get; } + public CEntityMsg EntityMsg { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageRemoveAllDecals.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageRemoveAllDecals.cs index 007421bc4..4adccafef 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageRemoveAllDecals.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageRemoveAllDecals.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CEntityMessageRemoveAllDecals : ITypedProtobuf { - static CEntityMessageRemoveAllDecals ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CEntityMessageRemoveAllDecalsImpl(handle, isManuallyAllocated); + static CEntityMessageRemoveAllDecals ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CEntityMessageRemoveAllDecalsImpl(handle, isManuallyAllocated); - public bool RemoveDecals { get; set; } + public bool RemoveDecals { get; set; } - public CEntityMsg EntityMsg { get; } + public CEntityMsg EntityMsg { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageScreenOverlay.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageScreenOverlay.cs index f5f345b75..712bf468c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageScreenOverlay.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMessageScreenOverlay.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CEntityMessageScreenOverlay : ITypedProtobuf { - static CEntityMessageScreenOverlay ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CEntityMessageScreenOverlayImpl(handle, isManuallyAllocated); + static CEntityMessageScreenOverlay ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CEntityMessageScreenOverlayImpl(handle, isManuallyAllocated); - public bool StartEffect { get; set; } + public bool StartEffect { get; set; } - public CEntityMsg EntityMsg { get; } + public CEntityMsg EntityMsg { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMsg.cs index b6560f908..57ebc6e25 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CEntityMsg.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CEntityMsg : ITypedProtobuf { - static CEntityMsg ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CEntityMsgImpl(handle, isManuallyAllocated); + static CEntityMsg ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CEntityMsgImpl(handle, isManuallyAllocated); - public uint TargetEntity { get; set; } + public uint TargetEntity { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCStorePurchaseInit_LineItem.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCStorePurchaseInit_LineItem.cs index 573e4a2b6..33e9e0073 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCStorePurchaseInit_LineItem.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCStorePurchaseInit_LineItem.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGCStorePurchaseInit_LineItem : ITypedProtobuf { - static CGCStorePurchaseInit_LineItem ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGCStorePurchaseInit_LineItemImpl(handle, isManuallyAllocated); + static CGCStorePurchaseInit_LineItem ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGCStorePurchaseInit_LineItemImpl(handle, isManuallyAllocated); - public uint ItemDefId { get; set; } + public uint ItemDefId { get; set; } - public uint Quantity { get; set; } + public uint Quantity { get; set; } - public ulong CostInLocalCurrency { get; set; } + public ulong CostInLocalCurrency { get; set; } - public uint PurchaseType { get; set; } + public uint PurchaseType { get; set; } - public ulong SupplementalData { get; set; } + public ulong SupplementalData { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgMasterAck.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgMasterAck.cs index bd1c91add..bc4f0d87c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgMasterAck.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgMasterAck.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGCToGCMsgMasterAck : ITypedProtobuf { - static CGCToGCMsgMasterAck ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGCToGCMsgMasterAckImpl(handle, isManuallyAllocated); + static CGCToGCMsgMasterAck ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGCToGCMsgMasterAckImpl(handle, isManuallyAllocated); - public uint DirIndex { get; set; } + public uint DirIndex { get; set; } - public uint GcType { get; set; } + public uint GcType { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgMasterAck_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgMasterAck_Response.cs index 5e94a2795..09b5b53ed 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgMasterAck_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgMasterAck_Response.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGCToGCMsgMasterAck_Response : ITypedProtobuf { - static CGCToGCMsgMasterAck_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGCToGCMsgMasterAck_ResponseImpl(handle, isManuallyAllocated); + static CGCToGCMsgMasterAck_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGCToGCMsgMasterAck_ResponseImpl(handle, isManuallyAllocated); - public int Eresult { get; set; } + public int Eresult { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgMasterStartupComplete.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgMasterStartupComplete.cs index 057b50f9b..58c65642d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgMasterStartupComplete.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgMasterStartupComplete.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGCToGCMsgMasterStartupComplete : ITypedProtobuf { - static CGCToGCMsgMasterStartupComplete ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGCToGCMsgMasterStartupCompleteImpl(handle, isManuallyAllocated); + static CGCToGCMsgMasterStartupComplete ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGCToGCMsgMasterStartupCompleteImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgRouted.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgRouted.cs index 200b52f36..af3f169a4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgRouted.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgRouted.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGCToGCMsgRouted : ITypedProtobuf { - static CGCToGCMsgRouted ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGCToGCMsgRoutedImpl(handle, isManuallyAllocated); + static CGCToGCMsgRouted ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGCToGCMsgRoutedImpl(handle, isManuallyAllocated); - public uint MsgType { get; set; } + public uint MsgType { get; set; } - public ulong SenderId { get; set; } + public ulong SenderId { get; set; } - public byte[] NetMessage { get; set; } + public byte[] NetMessage { get; set; } - public uint Ip { get; set; } + public uint Ip { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgRoutedReply.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgRoutedReply.cs index 7b92aa436..172c8ab6c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgRoutedReply.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGCToGCMsgRoutedReply.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGCToGCMsgRoutedReply : ITypedProtobuf { - static CGCToGCMsgRoutedReply ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGCToGCMsgRoutedReplyImpl(handle, isManuallyAllocated); + static CGCToGCMsgRoutedReply ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGCToGCMsgRoutedReplyImpl(handle, isManuallyAllocated); - public uint MsgType { get; set; } + public uint MsgType { get; set; } - public byte[] NetMessage { get; set; } + public byte[] NetMessage { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo.cs index d68a6196c..794a8bd4b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGameInfo : ITypedProtobuf { - static CGameInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGameInfoImpl(handle, isManuallyAllocated); + static CGameInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGameInfoImpl(handle, isManuallyAllocated); - public CGameInfo_CDotaGameInfo Dota { get; } + public CGameInfo_CDotaGameInfo Dota { get; } - public CGameInfo_CCSGameInfo Cs { get; } + public CGameInfo_CCSGameInfo Cs { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CCSGameInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CCSGameInfo.cs index 8a0941f00..3464fc0f1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CCSGameInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CCSGameInfo.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGameInfo_CCSGameInfo : ITypedProtobuf { - static CGameInfo_CCSGameInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGameInfo_CCSGameInfoImpl(handle, isManuallyAllocated); + static CGameInfo_CCSGameInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGameInfo_CCSGameInfoImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType RoundStartTicks { get; } + public IProtobufRepeatedFieldValueType RoundStartTicks { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CDotaGameInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CDotaGameInfo.cs index a383676ed..d11b3e00a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CDotaGameInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CDotaGameInfo.cs @@ -1,45 +1,44 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGameInfo_CDotaGameInfo : ITypedProtobuf { - static CGameInfo_CDotaGameInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGameInfo_CDotaGameInfoImpl(handle, isManuallyAllocated); + static CGameInfo_CDotaGameInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGameInfo_CDotaGameInfoImpl(handle, isManuallyAllocated); - public ulong MatchId { get; set; } + public ulong MatchId { get; set; } - public int GameMode { get; set; } + public int GameMode { get; set; } - public int GameWinner { get; set; } + public int GameWinner { get; set; } - public IProtobufRepeatedFieldSubMessageType PlayerInfo { get; } + public IProtobufRepeatedFieldSubMessageType PlayerInfo { get; } - public uint Leagueid { get; set; } + public uint Leagueid { get; set; } - public IProtobufRepeatedFieldSubMessageType PicksBans { get; } + public IProtobufRepeatedFieldSubMessageType PicksBans { get; } - public uint RadiantTeamId { get; set; } + public uint RadiantTeamId { get; set; } - public uint DireTeamId { get; set; } + public uint DireTeamId { get; set; } - public string RadiantTeamTag { get; set; } + public string RadiantTeamTag { get; set; } - public string DireTeamTag { get; set; } + public string DireTeamTag { get; set; } - public uint EndTime { get; set; } + public uint EndTime { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CDotaGameInfo_CHeroSelectEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CDotaGameInfo_CHeroSelectEvent.cs index 9ac761fc6..e82c6043e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CDotaGameInfo_CHeroSelectEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CDotaGameInfo_CHeroSelectEvent.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGameInfo_CDotaGameInfo_CHeroSelectEvent : ITypedProtobuf { - static CGameInfo_CDotaGameInfo_CHeroSelectEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGameInfo_CDotaGameInfo_CHeroSelectEventImpl(handle, isManuallyAllocated); + static CGameInfo_CDotaGameInfo_CHeroSelectEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGameInfo_CDotaGameInfo_CHeroSelectEventImpl(handle, isManuallyAllocated); - public bool IsPick { get; set; } + public bool IsPick { get; set; } - public uint Team { get; set; } + public uint Team { get; set; } - public int HeroId { get; set; } + public int HeroId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CDotaGameInfo_CPlayerInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CDotaGameInfo_CPlayerInfo.cs index 6798fa75a..69ad35acf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CDotaGameInfo_CPlayerInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameInfo_CDotaGameInfo_CPlayerInfo.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGameInfo_CDotaGameInfo_CPlayerInfo : ITypedProtobuf { - static CGameInfo_CDotaGameInfo_CPlayerInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGameInfo_CDotaGameInfo_CPlayerInfoImpl(handle, isManuallyAllocated); + static CGameInfo_CDotaGameInfo_CPlayerInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGameInfo_CDotaGameInfo_CPlayerInfoImpl(handle, isManuallyAllocated); - public string HeroName { get; set; } + public string HeroName { get; set; } - public string PlayerName { get; set; } + public string PlayerName { get; set; } - public bool IsFakeClient { get; set; } + public bool IsFakeClient { get; set; } - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } - public int GameTeam { get; set; } + public int GameTeam { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameServers_AggregationQuery_Request.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameServers_AggregationQuery_Request.cs index cf1f2de05..68fc8edfc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameServers_AggregationQuery_Request.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameServers_AggregationQuery_Request.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGameServers_AggregationQuery_Request : ITypedProtobuf { - static CGameServers_AggregationQuery_Request ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGameServers_AggregationQuery_RequestImpl(handle, isManuallyAllocated); + static CGameServers_AggregationQuery_Request ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGameServers_AggregationQuery_RequestImpl(handle, isManuallyAllocated); - public string Filter { get; set; } + public string Filter { get; set; } - public IProtobufRepeatedFieldValueType GroupFields { get; } + public IProtobufRepeatedFieldValueType GroupFields { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameServers_AggregationQuery_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameServers_AggregationQuery_Response.cs index 1dd803659..53ac24bc0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameServers_AggregationQuery_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameServers_AggregationQuery_Response.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGameServers_AggregationQuery_Response : ITypedProtobuf { - static CGameServers_AggregationQuery_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGameServers_AggregationQuery_ResponseImpl(handle, isManuallyAllocated); + static CGameServers_AggregationQuery_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGameServers_AggregationQuery_ResponseImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Groups { get; } + public IProtobufRepeatedFieldSubMessageType Groups { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameServers_AggregationQuery_Response_Group.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameServers_AggregationQuery_Response_Group.cs index a32c20757..563dfeed0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameServers_AggregationQuery_Response_Group.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CGameServers_AggregationQuery_Response_Group.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CGameServers_AggregationQuery_Response_Group : ITypedProtobuf { - static CGameServers_AggregationQuery_Response_Group ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CGameServers_AggregationQuery_Response_GroupImpl(handle, isManuallyAllocated); + static CGameServers_AggregationQuery_Response_Group ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CGameServers_AggregationQuery_Response_GroupImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType GroupValues { get; } + public IProtobufRepeatedFieldValueType GroupValues { get; } - public uint ServersEmpty { get; set; } + public uint ServersEmpty { get; set; } - public uint ServersFull { get; set; } + public uint ServersFull { get; set; } - public uint ServersTotal { get; set; } + public uint ServersTotal { get; set; } - public uint PlayersHumans { get; set; } + public uint PlayersHumans { get; set; } - public uint PlayersBots { get; set; } + public uint PlayersBots { get; set; } - public uint PlayerCapacity { get; set; } + public uint PlayerCapacity { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CInButtonStatePB.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CInButtonStatePB.cs index b71d337d0..a5ecd029a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CInButtonStatePB.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CInButtonStatePB.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CInButtonStatePB : ITypedProtobuf { - static CInButtonStatePB ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CInButtonStatePBImpl(handle, isManuallyAllocated); + static CInButtonStatePB ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CInButtonStatePBImpl(handle, isManuallyAllocated); - public ulong Buttonstate1 { get; set; } + public ulong Buttonstate1 { get; set; } - public ulong Buttonstate2 { get; set; } + public ulong Buttonstate2 { get; set; } - public ulong Buttonstate3 { get; set; } + public ulong Buttonstate3 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAccountDetails.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAccountDetails.cs index 6d7bf30cc..54bbe38de 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAccountDetails.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAccountDetails.cs @@ -1,66 +1,65 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgAccountDetails : ITypedProtobuf { - static CMsgAccountDetails ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgAccountDetailsImpl(handle, isManuallyAllocated); + static CMsgAccountDetails ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgAccountDetailsImpl(handle, isManuallyAllocated); - public bool Valid { get; set; } + public bool Valid { get; set; } - public string AccountName { get; set; } + public string AccountName { get; set; } - public bool PublicProfile { get; set; } + public bool PublicProfile { get; set; } - public bool PublicInventory { get; set; } + public bool PublicInventory { get; set; } - public bool VacBanned { get; set; } + public bool VacBanned { get; set; } - public bool CyberCafe { get; set; } + public bool CyberCafe { get; set; } - public bool SchoolAccount { get; set; } + public bool SchoolAccount { get; set; } - public bool FreeTrialAccount { get; set; } + public bool FreeTrialAccount { get; set; } - public bool Subscribed { get; set; } + public bool Subscribed { get; set; } - public bool LowViolence { get; set; } + public bool LowViolence { get; set; } - public bool Limited { get; set; } + public bool Limited { get; set; } - public bool Trusted { get; set; } + public bool Trusted { get; set; } - public uint Package { get; set; } + public uint Package { get; set; } - public uint TimeCached { get; set; } + public uint TimeCached { get; set; } - public bool AccountLocked { get; set; } + public bool AccountLocked { get; set; } - public bool CommunityBanned { get; set; } + public bool CommunityBanned { get; set; } - public bool TradeBanned { get; set; } + public bool TradeBanned { get; set; } - public bool EligibleForCommunityMarket { get; set; } + public bool EligibleForCommunityMarket { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAcknowledgeRentalExpiration.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAcknowledgeRentalExpiration.cs index 002b4ea8d..6354d220b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAcknowledgeRentalExpiration.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAcknowledgeRentalExpiration.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgAcknowledgeRentalExpiration : ITypedProtobuf { - static CMsgAcknowledgeRentalExpiration ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgAcknowledgeRentalExpirationImpl(handle, isManuallyAllocated); + static CMsgAcknowledgeRentalExpiration ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgAcknowledgeRentalExpirationImpl(handle, isManuallyAllocated); - public ulong CrateItemId { get; set; } + public ulong CrateItemId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustEquipSlot.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustEquipSlot.cs index 83f53008c..8dc439ab1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustEquipSlot.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustEquipSlot.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgAdjustEquipSlot : ITypedProtobuf { - static CMsgAdjustEquipSlot ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgAdjustEquipSlotImpl(handle, isManuallyAllocated); + static CMsgAdjustEquipSlot ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgAdjustEquipSlotImpl(handle, isManuallyAllocated); - public uint ClassId { get; set; } + public uint ClassId { get; set; } - public uint SlotId { get; set; } + public uint SlotId { get; set; } - public ulong ItemId { get; set; } + public ulong ItemId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustEquipSlots.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustEquipSlots.cs index 6fa0da2c8..5bcdb85c3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustEquipSlots.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustEquipSlots.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgAdjustEquipSlots : ITypedProtobuf { - static CMsgAdjustEquipSlots ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgAdjustEquipSlotsImpl(handle, isManuallyAllocated); + static CMsgAdjustEquipSlots ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgAdjustEquipSlotsImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Slots { get; } + public IProtobufRepeatedFieldSubMessageType Slots { get; } - public uint ChangeNum { get; set; } + public uint ChangeNum { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustItemEquippedState.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustItemEquippedState.cs index c8f2b528a..13853c2bc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustItemEquippedState.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustItemEquippedState.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgAdjustItemEquippedState : ITypedProtobuf { - static CMsgAdjustItemEquippedState ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgAdjustItemEquippedStateImpl(handle, isManuallyAllocated); + static CMsgAdjustItemEquippedState ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgAdjustItemEquippedStateImpl(handle, isManuallyAllocated); - public ulong ItemId { get; set; } + public ulong ItemId { get; set; } - public uint NewClass { get; set; } + public uint NewClass { get; set; } - public uint NewSlot { get; set; } + public uint NewSlot { get; set; } - public bool Swap { get; set; } + public bool Swap { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustItemEquippedStateMulti.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustItemEquippedStateMulti.cs index 26ccc2d03..5b0885fb1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustItemEquippedStateMulti.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgAdjustItemEquippedStateMulti.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgAdjustItemEquippedStateMulti : ITypedProtobuf { - static CMsgAdjustItemEquippedStateMulti ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgAdjustItemEquippedStateMultiImpl(handle, isManuallyAllocated); + static CMsgAdjustItemEquippedStateMulti ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgAdjustItemEquippedStateMultiImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType TEquips { get; } + public IProtobufRepeatedFieldValueType TEquips { get; } - public IProtobufRepeatedFieldValueType CtEquips { get; } + public IProtobufRepeatedFieldValueType CtEquips { get; } - public IProtobufRepeatedFieldValueType NoteamEquips { get; } + public IProtobufRepeatedFieldValueType NoteamEquips { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyEggEssence.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyEggEssence.cs index 4e248e136..4129baf27 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyEggEssence.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyEggEssence.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgApplyEggEssence : ITypedProtobuf { - static CMsgApplyEggEssence ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgApplyEggEssenceImpl(handle, isManuallyAllocated); + static CMsgApplyEggEssence ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgApplyEggEssenceImpl(handle, isManuallyAllocated); - public ulong EssenceItemId { get; set; } + public ulong EssenceItemId { get; set; } - public ulong EggItemId { get; set; } + public ulong EggItemId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyPennantUpgrade.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyPennantUpgrade.cs index 3c422f31b..d9b3cff22 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyPennantUpgrade.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyPennantUpgrade.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgApplyPennantUpgrade : ITypedProtobuf { - static CMsgApplyPennantUpgrade ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgApplyPennantUpgradeImpl(handle, isManuallyAllocated); + static CMsgApplyPennantUpgrade ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgApplyPennantUpgradeImpl(handle, isManuallyAllocated); - public ulong UpgradeItemId { get; set; } + public ulong UpgradeItemId { get; set; } - public ulong PennantItemId { get; set; } + public ulong PennantItemId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyStatTrakSwap.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyStatTrakSwap.cs index c4b958cbf..bddea67cb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyStatTrakSwap.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyStatTrakSwap.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgApplyStatTrakSwap : ITypedProtobuf { - static CMsgApplyStatTrakSwap ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgApplyStatTrakSwapImpl(handle, isManuallyAllocated); + static CMsgApplyStatTrakSwap ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgApplyStatTrakSwapImpl(handle, isManuallyAllocated); - public ulong ToolItemId { get; set; } + public ulong ToolItemId { get; set; } - public ulong Item1ItemId { get; set; } + public ulong Item1ItemId { get; set; } - public ulong Item2ItemId { get; set; } + public ulong Item2ItemId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplySticker.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplySticker.cs index 902a62166..51aeb55e0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplySticker.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplySticker.cs @@ -1,45 +1,44 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgApplySticker : ITypedProtobuf { - static CMsgApplySticker ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgApplyStickerImpl(handle, isManuallyAllocated); + static CMsgApplySticker ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgApplyStickerImpl(handle, isManuallyAllocated); - public ulong StickerItemId { get; set; } + public ulong StickerItemId { get; set; } - public ulong ItemItemId { get; set; } + public ulong ItemItemId { get; set; } - public uint StickerSlot { get; set; } + public uint StickerSlot { get; set; } - public uint BaseitemDefidx { get; set; } + public uint BaseitemDefidx { get; set; } - public float StickerWear { get; set; } + public float StickerWear { get; set; } - public float StickerRotation { get; set; } + public float StickerRotation { get; set; } - public float StickerScale { get; set; } + public float StickerScale { get; set; } - public float StickerOffsetX { get; set; } + public float StickerOffsetX { get; set; } - public float StickerOffsetY { get; set; } + public float StickerOffsetY { get; set; } - public float StickerOffsetZ { get; set; } + public float StickerOffsetZ { get; set; } - public float StickerWearTarget { get; set; } + public float StickerWearTarget { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyStrangePart.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyStrangePart.cs index 2da5b7046..0f459a686 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyStrangePart.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgApplyStrangePart.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgApplyStrangePart : ITypedProtobuf { - static CMsgApplyStrangePart ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgApplyStrangePartImpl(handle, isManuallyAllocated); + static CMsgApplyStrangePart ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgApplyStrangePartImpl(handle, isManuallyAllocated); - public ulong StrangePartItemId { get; set; } + public ulong StrangePartItemId { get; set; } - public ulong ItemItemId { get; set; } + public ulong ItemItemId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgCStrike15Welcome.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgCStrike15Welcome.cs index aaf2f943d..b170ed1a5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgCStrike15Welcome.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgCStrike15Welcome.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgCStrike15Welcome : ITypedProtobuf { - static CMsgCStrike15Welcome ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgCStrike15WelcomeImpl(handle, isManuallyAllocated); + static CMsgCStrike15Welcome ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgCStrike15WelcomeImpl(handle, isManuallyAllocated); - public uint StoreItemHash { get; set; } + public uint StoreItemHash { get; set; } - public uint Timeplayedconsecutively { get; set; } + public uint Timeplayedconsecutively { get; set; } - public uint TimeFirstPlayed { get; set; } + public uint TimeFirstPlayed { get; set; } - public uint LastTimePlayed { get; set; } + public uint LastTimePlayed { get; set; } - public uint LastIpAddress { get; set; } + public uint LastIpAddress { get; set; } - public ulong Gscookieid { get; set; } + public ulong Gscookieid { get; set; } - public ulong Uniqueid { get; set; } + public ulong Uniqueid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgCasketItem.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgCasketItem.cs index 724e6f7fe..f00a3e50c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgCasketItem.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgCasketItem.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgCasketItem : ITypedProtobuf { - static CMsgCasketItem ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgCasketItemImpl(handle, isManuallyAllocated); + static CMsgCasketItem ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgCasketItemImpl(handle, isManuallyAllocated); - public ulong CasketItemId { get; set; } + public ulong CasketItemId { get; set; } - public ulong ItemItemId { get; set; } + public ulong ItemItemId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClearDecalsForEntityEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClearDecalsForEntityEvent.cs index fb889656f..3cb1c5bbd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClearDecalsForEntityEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClearDecalsForEntityEvent.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgClearDecalsForEntityEvent : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 204; - - static string INetMessage.MessageName => "CMsgClearDecalsForEntityEvent"; + static int INetMessage.MessageId => 204; + + static string INetMessage.MessageName => "CMsgClearDecalsForEntityEvent"; - static CMsgClearDecalsForEntityEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgClearDecalsForEntityEventImpl(handle, isManuallyAllocated); + static CMsgClearDecalsForEntityEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgClearDecalsForEntityEventImpl(handle, isManuallyAllocated); - public uint Flagstoclear { get; set; } + public uint Flagstoclear { get; set; } - public uint Entityhandle { get; set; } + public uint Entityhandle { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClearEntityDecalsEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClearEntityDecalsEvent.cs index 9bbfa72b9..3bd2f0643 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClearEntityDecalsEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClearEntityDecalsEvent.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgClearEntityDecalsEvent : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 203; - - static string INetMessage.MessageName => "CMsgClearEntityDecalsEvent"; + static int INetMessage.MessageId => 203; + + static string INetMessage.MessageName => "CMsgClearEntityDecalsEvent"; - static CMsgClearEntityDecalsEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgClearEntityDecalsEventImpl(handle, isManuallyAllocated); + static CMsgClearEntityDecalsEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgClearEntityDecalsEventImpl(handle, isManuallyAllocated); - public uint Flagstoclear { get; set; } + public uint Flagstoclear { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClearWorldDecalsEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClearWorldDecalsEvent.cs index 8e9a3dc54..ca7d563b0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClearWorldDecalsEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClearWorldDecalsEvent.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgClearWorldDecalsEvent : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 202; - - static string INetMessage.MessageName => "CMsgClearWorldDecalsEvent"; + static int INetMessage.MessageId => 202; + + static string INetMessage.MessageName => "CMsgClearWorldDecalsEvent"; - static CMsgClearWorldDecalsEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgClearWorldDecalsEventImpl(handle, isManuallyAllocated); + static CMsgClearWorldDecalsEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgClearWorldDecalsEventImpl(handle, isManuallyAllocated); - public uint Flagstoclear { get; set; } + public uint Flagstoclear { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClientHello.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClientHello.cs index 170a41a73..45e1db01a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClientHello.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClientHello.cs @@ -1,39 +1,38 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgClientHello : ITypedProtobuf { - static CMsgClientHello ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgClientHelloImpl(handle, isManuallyAllocated); + static CMsgClientHello ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgClientHelloImpl(handle, isManuallyAllocated); - public uint Version { get; set; } + public uint Version { get; set; } - public IProtobufRepeatedFieldSubMessageType SocacheHaveVersions { get; } + public IProtobufRepeatedFieldSubMessageType SocacheHaveVersions { get; } - public uint ClientSessionNeed { get; set; } + public uint ClientSessionNeed { get; set; } - public uint ClientLauncher { get; set; } + public uint ClientLauncher { get; set; } - public uint PartnerSrcid { get; set; } + public uint PartnerSrcid { get; set; } - public uint PartnerAccountid { get; set; } + public uint PartnerAccountid { get; set; } - public uint PartnerAccountflags { get; set; } + public uint PartnerAccountflags { get; set; } - public uint PartnerAccountbalance { get; set; } + public uint PartnerAccountbalance { get; set; } - public uint SteamLauncher { get; set; } + public uint SteamLauncher { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClientWelcome.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClientWelcome.cs index 5ebece246..dbb5eb41e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClientWelcome.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClientWelcome.cs @@ -1,45 +1,44 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgClientWelcome : ITypedProtobuf { - static CMsgClientWelcome ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgClientWelcomeImpl(handle, isManuallyAllocated); + static CMsgClientWelcome ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgClientWelcomeImpl(handle, isManuallyAllocated); - public uint Version { get; set; } + public uint Version { get; set; } - public byte[] GameData { get; set; } + public byte[] GameData { get; set; } - public IProtobufRepeatedFieldSubMessageType OutofdateSubscribedCaches { get; } + public IProtobufRepeatedFieldSubMessageType OutofdateSubscribedCaches { get; } - public IProtobufRepeatedFieldSubMessageType UptodateSubscribedCaches { get; } + public IProtobufRepeatedFieldSubMessageType UptodateSubscribedCaches { get; } - public CMsgClientWelcome_Location Location { get; } + public CMsgClientWelcome_Location Location { get; } - public byte[] GameData2 { get; set; } + public byte[] GameData2 { get; set; } - public uint Rtime32GcWelcomeTimestamp { get; set; } + public uint Rtime32GcWelcomeTimestamp { get; set; } - public uint Currency { get; set; } + public uint Currency { get; set; } - public uint Balance { get; set; } + public uint Balance { get; set; } - public string BalanceUrl { get; set; } + public string BalanceUrl { get; set; } - public string TxnCountryCode { get; set; } + public string TxnCountryCode { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClientWelcome_Location.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClientWelcome_Location.cs index 87190ef8d..85f2a34b3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClientWelcome_Location.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgClientWelcome_Location.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgClientWelcome_Location : ITypedProtobuf { - static CMsgClientWelcome_Location ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgClientWelcome_LocationImpl(handle, isManuallyAllocated); + static CMsgClientWelcome_Location ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgClientWelcome_LocationImpl(handle, isManuallyAllocated); - public float Latitude { get; set; } + public float Latitude { get; set; } - public float Longitude { get; set; } + public float Longitude { get; set; } - public string Country { get; set; } + public string Country { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgConVarValue.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgConVarValue.cs index a54638894..e9d470da2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgConVarValue.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgConVarValue.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgConVarValue : ITypedProtobuf { - static CMsgConVarValue ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgConVarValueImpl(handle, isManuallyAllocated); + static CMsgConVarValue ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgConVarValueImpl(handle, isManuallyAllocated); - public string Name { get; set; } + public string Name { get; set; } - public string Value { get; set; } + public string Value { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgConnectionStatus.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgConnectionStatus.cs index 0ca001a35..ad04f3035 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgConnectionStatus.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgConnectionStatus.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgConnectionStatus : ITypedProtobuf { - static CMsgConnectionStatus ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgConnectionStatusImpl(handle, isManuallyAllocated); + static CMsgConnectionStatus ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgConnectionStatusImpl(handle, isManuallyAllocated); - public GCConnectionStatus Status { get; set; } + public GCConnectionStatus Status { get; set; } - public uint ClientSessionNeed { get; set; } + public uint ClientSessionNeed { get; set; } - public int QueuePosition { get; set; } + public int QueuePosition { get; set; } - public int QueueSize { get; set; } + public int QueueSize { get; set; } - public int WaitSeconds { get; set; } + public int WaitSeconds { get; set; } - public int EstimatedWaitSecondsRemaining { get; set; } + public int EstimatedWaitSecondsRemaining { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgConsumableExhausted.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgConsumableExhausted.cs index 2743fa836..84db31ac6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgConsumableExhausted.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgConsumableExhausted.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgConsumableExhausted : ITypedProtobuf { - static CMsgConsumableExhausted ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgConsumableExhaustedImpl(handle, isManuallyAllocated); + static CMsgConsumableExhausted ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgConsumableExhaustedImpl(handle, isManuallyAllocated); - public int ItemDefId { get; set; } + public int ItemDefId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgCsgoSteamUserStatChange.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgCsgoSteamUserStatChange.cs index ccff722df..792c60e01 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgCsgoSteamUserStatChange.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgCsgoSteamUserStatChange.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgCsgoSteamUserStatChange : ITypedProtobuf { - static CMsgCsgoSteamUserStatChange ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgCsgoSteamUserStatChangeImpl(handle, isManuallyAllocated); + static CMsgCsgoSteamUserStatChange ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgCsgoSteamUserStatChangeImpl(handle, isManuallyAllocated); - public int Ecsgosteamuserstat { get; set; } + public int Ecsgosteamuserstat { get; set; } - public int Delta { get; set; } + public int Delta { get; set; } - public bool Absolute { get; set; } + public bool Absolute { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgDevNewItemRequest.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgDevNewItemRequest.cs index c9e1f3d1f..6dcfe7c7d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgDevNewItemRequest.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgDevNewItemRequest.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgDevNewItemRequest : ITypedProtobuf { - static CMsgDevNewItemRequest ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgDevNewItemRequestImpl(handle, isManuallyAllocated); + static CMsgDevNewItemRequest ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgDevNewItemRequestImpl(handle, isManuallyAllocated); - public ulong Receiver { get; set; } + public ulong Receiver { get; set; } - public CSOItemCriteria Criteria { get; } + public CSOItemCriteria Criteria { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgEffectData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgEffectData.cs index 7e4bca316..f0f91836a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgEffectData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgEffectData.cs @@ -7,63 +7,63 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgEffectData : ITypedProtobuf { - static CMsgEffectData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgEffectDataImpl(handle, isManuallyAllocated); + static CMsgEffectData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgEffectDataImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public Vector Start { get; set; } + public Vector Start { get; set; } - public Vector Normal { get; set; } + public Vector Normal { get; set; } - public QAngle Angles { get; set; } + public QAngle Angles { get; set; } - public uint Entity { get; set; } + public uint Entity { get; set; } - public uint Otherentity { get; set; } + public uint Otherentity { get; set; } - public float Scale { get; set; } + public float Scale { get; set; } - public float Magnitude { get; set; } + public float Magnitude { get; set; } - public float Radius { get; set; } + public float Radius { get; set; } - public uint Surfaceprop { get; set; } + public uint Surfaceprop { get; set; } - public ulong Effectindex { get; set; } + public ulong Effectindex { get; set; } - public uint Damagetype { get; set; } + public uint Damagetype { get; set; } - public uint Material { get; set; } + public uint Material { get; set; } - public uint Hitbox { get; set; } + public uint Hitbox { get; set; } - public uint Color { get; set; } + public uint Color { get; set; } - public uint Flags { get; set; } + public uint Flags { get; set; } - public int Attachmentindex { get; set; } + public int Attachmentindex { get; set; } - public uint Effectname { get; set; } + public uint Effectname { get; set; } - public uint Attachmentname { get; set; } + public uint Attachmentname { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCBannedWord.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCBannedWord.cs index 90f6db55d..546341a91 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCBannedWord.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCBannedWord.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCBannedWord : ITypedProtobuf { - static CMsgGCBannedWord ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCBannedWordImpl(handle, isManuallyAllocated); + static CMsgGCBannedWord ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCBannedWordImpl(handle, isManuallyAllocated); - public uint WordId { get; set; } + public uint WordId { get; set; } - public GC_BannedWordType WordType { get; set; } + public GC_BannedWordType WordType { get; set; } - public string Word { get; set; } + public string Word { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCBannedWordListRequest.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCBannedWordListRequest.cs index 55d522045..a0fa00e1d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCBannedWordListRequest.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCBannedWordListRequest.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCBannedWordListRequest : ITypedProtobuf { - static CMsgGCBannedWordListRequest ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCBannedWordListRequestImpl(handle, isManuallyAllocated); + static CMsgGCBannedWordListRequest ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCBannedWordListRequestImpl(handle, isManuallyAllocated); - public uint BanListGroupId { get; set; } + public uint BanListGroupId { get; set; } - public uint WordId { get; set; } + public uint WordId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCBannedWordListResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCBannedWordListResponse.cs index 952cb9d12..bcd6c8c50 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCBannedWordListResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCBannedWordListResponse.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCBannedWordListResponse : ITypedProtobuf { - static CMsgGCBannedWordListResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCBannedWordListResponseImpl(handle, isManuallyAllocated); + static CMsgGCBannedWordListResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCBannedWordListResponseImpl(handle, isManuallyAllocated); - public uint BanListGroupId { get; set; } + public uint BanListGroupId { get; set; } - public IProtobufRepeatedFieldSubMessageType WordList { get; } + public IProtobufRepeatedFieldSubMessageType WordList { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_ClientDeepStats.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_ClientDeepStats.cs index 057875279..a4d2eb1da 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_ClientDeepStats.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_ClientDeepStats.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_ClientDeepStats : ITypedProtobuf { - static CMsgGCCStrike15_ClientDeepStats ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_ClientDeepStatsImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_ClientDeepStats ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_ClientDeepStatsImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public CMsgGCCStrike15_ClientDeepStats_DeepStatsRange Range { get; } + public CMsgGCCStrike15_ClientDeepStats_DeepStatsRange Range { get; } - public IProtobufRepeatedFieldSubMessageType Matches { get; } + public IProtobufRepeatedFieldSubMessageType Matches { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_ClientDeepStats_DeepStatsMatch.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_ClientDeepStats_DeepStatsMatch.cs index 7061371af..b4f3c2dc0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_ClientDeepStats_DeepStatsMatch.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_ClientDeepStats_DeepStatsMatch.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_ClientDeepStats_DeepStatsMatch : ITypedProtobuf { - static CMsgGCCStrike15_ClientDeepStats_DeepStatsMatch ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_ClientDeepStats_DeepStatsMatchImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_ClientDeepStats_DeepStatsMatch ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_ClientDeepStats_DeepStatsMatchImpl(handle, isManuallyAllocated); - public DeepPlayerStatsEntry Player { get; } + public DeepPlayerStatsEntry Player { get; } - public IProtobufRepeatedFieldSubMessageType Events { get; } + public IProtobufRepeatedFieldSubMessageType Events { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_ClientDeepStats_DeepStatsRange.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_ClientDeepStats_DeepStatsRange.cs index c9d3123be..6046f24b7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_ClientDeepStats_DeepStatsRange.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_ClientDeepStats_DeepStatsRange.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_ClientDeepStats_DeepStatsRange : ITypedProtobuf { - static CMsgGCCStrike15_ClientDeepStats_DeepStatsRange ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_ClientDeepStats_DeepStatsRangeImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_ClientDeepStats_DeepStatsRange ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_ClientDeepStats_DeepStatsRangeImpl(handle, isManuallyAllocated); - public uint Begin { get; set; } + public uint Begin { get; set; } - public uint End { get; set; } + public uint End { get; set; } - public bool Frozen { get; set; } + public bool Frozen { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_GotvSyncPacket.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_GotvSyncPacket.cs index 78d191411..fa40ce2f0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_GotvSyncPacket.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_GotvSyncPacket.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_GotvSyncPacket : ITypedProtobuf { - static CMsgGCCStrike15_GotvSyncPacket ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_GotvSyncPacketImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_GotvSyncPacket ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_GotvSyncPacketImpl(handle, isManuallyAllocated); - public CEngineGotvSyncPacket Data { get; } + public CEngineGotvSyncPacket Data { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_AccountPrivacySettings.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_AccountPrivacySettings.cs index 10af663e4..b7a164b4a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_AccountPrivacySettings.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_AccountPrivacySettings.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_AccountPrivacySettings : ITypedProtobuf { - static CMsgGCCStrike15_v2_AccountPrivacySettings ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_AccountPrivacySettingsImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_AccountPrivacySettings ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_AccountPrivacySettingsImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Settings { get; } + public IProtobufRepeatedFieldSubMessageType Settings { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_AccountPrivacySettings_Setting.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_AccountPrivacySettings_Setting.cs index 38d682b7a..cec60707c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_AccountPrivacySettings_Setting.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_AccountPrivacySettings_Setting.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_AccountPrivacySettings_Setting : ITypedProtobuf { - static CMsgGCCStrike15_v2_AccountPrivacySettings_Setting ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_AccountPrivacySettings_SettingImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_AccountPrivacySettings_Setting ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_AccountPrivacySettings_SettingImpl(handle, isManuallyAllocated); - public uint SettingType { get; set; } + public uint SettingType { get; set; } - public uint SettingValue { get; set; } + public uint SettingValue { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Account_RequestCoPlays.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Account_RequestCoPlays.cs index 85a29e44a..9771843ba 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Account_RequestCoPlays.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Account_RequestCoPlays.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Account_RequestCoPlays : ITypedProtobuf { - static CMsgGCCStrike15_v2_Account_RequestCoPlays ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Account_RequestCoPlaysImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Account_RequestCoPlays ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Account_RequestCoPlaysImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Players { get; } + public IProtobufRepeatedFieldSubMessageType Players { get; } - public uint Servertime { get; set; } + public uint Servertime { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Account_RequestCoPlays_Player.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Account_RequestCoPlays_Player.cs index 428798b81..b78721862 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Account_RequestCoPlays_Player.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Account_RequestCoPlays_Player.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Account_RequestCoPlays_Player : ITypedProtobuf { - static CMsgGCCStrike15_v2_Account_RequestCoPlays_Player ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Account_RequestCoPlays_PlayerImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Account_RequestCoPlays_Player ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Account_RequestCoPlays_PlayerImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public uint Rtcoplay { get; set; } + public uint Rtcoplay { get; set; } - public bool Online { get; set; } + public bool Online { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_AcknowledgePenalty.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_AcknowledgePenalty.cs index e80902b03..7b39706e0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_AcknowledgePenalty.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_AcknowledgePenalty.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_AcknowledgePenalty : ITypedProtobuf { - static CMsgGCCStrike15_v2_AcknowledgePenalty ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_AcknowledgePenaltyImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_AcknowledgePenalty ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_AcknowledgePenaltyImpl(handle, isManuallyAllocated); - public int Acknowledged { get; set; } + public int Acknowledged { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_BetaEnrollment.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_BetaEnrollment.cs index e22eff4e3..e3ef1920a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_BetaEnrollment.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_BetaEnrollment.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_BetaEnrollment : ITypedProtobuf { - static CMsgGCCStrike15_v2_BetaEnrollment ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_BetaEnrollmentImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_BetaEnrollment ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_BetaEnrollmentImpl(handle, isManuallyAllocated); - public uint Eresult { get; set; } + public uint Eresult { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequest.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequest.cs index c1581e9af..6cf902320 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequest.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequest.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequest : ITypedProtobuf { - static CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequest ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequestImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequest ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequestImpl(handle, isManuallyAllocated); - public ulong ParamS { get; set; } + public ulong ParamS { get; set; } - public ulong ParamA { get; set; } + public ulong ParamA { get; set; } - public ulong ParamD { get; set; } + public ulong ParamD { get; set; } - public ulong ParamM { get; set; } + public ulong ParamM { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponse.cs index ba09a8687..ef0617ae5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponse.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponse : ITypedProtobuf { - static CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponseImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponseImpl(handle, isManuallyAllocated); - public CEconItemPreviewDataBlock Iteminfo { get; } + public CEconItemPreviewDataBlock Iteminfo { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoin.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoin.cs index 23f9fbe15..44a4be715 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoin.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoin.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoin : ITypedProtobuf { - static CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoin ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoinImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoin ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoinImpl(handle, isManuallyAllocated); - public uint Defindex { get; set; } + public uint Defindex { get; set; } - public ulong Upgradeid { get; set; } + public ulong Upgradeid { get; set; } - public uint Hours { get; set; } + public uint Hours { get; set; } - public uint Prestigetime { get; set; } + public uint Prestigetime { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCStreamUnlock.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCStreamUnlock.cs index 4c11482eb..b98e99782 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCStreamUnlock.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCStreamUnlock.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Client2GCStreamUnlock : ITypedProtobuf { - static CMsgGCCStrike15_v2_Client2GCStreamUnlock ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Client2GCStreamUnlockImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Client2GCStreamUnlock ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Client2GCStreamUnlockImpl(handle, isManuallyAllocated); - public ulong Ticket { get; set; } + public ulong Ticket { get; set; } - public int Os { get; set; } + public int Os { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCTextMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCTextMsg.cs index 9955773d3..2c6437c46 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCTextMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GCTextMsg.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Client2GCTextMsg : ITypedProtobuf { - static CMsgGCCStrike15_v2_Client2GCTextMsg ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Client2GCTextMsgImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Client2GCTextMsg ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Client2GCTextMsgImpl(handle, isManuallyAllocated); - public uint Id { get; set; } + public uint Id { get; set; } - public IProtobufRepeatedFieldValueType Args { get; } + public IProtobufRepeatedFieldValueType Args { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GcAckXPShopTracks.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GcAckXPShopTracks.cs index 563a2b8f3..a3a397f20 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GcAckXPShopTracks.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Client2GcAckXPShopTracks.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Client2GcAckXPShopTracks : ITypedProtobuf { - static CMsgGCCStrike15_v2_Client2GcAckXPShopTracks ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Client2GcAckXPShopTracksImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Client2GcAckXPShopTracks ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Client2GcAckXPShopTracksImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientAccountBalance.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientAccountBalance.cs index 197a7ad3c..260838d6d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientAccountBalance.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientAccountBalance.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientAccountBalance : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientAccountBalance ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientAccountBalanceImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientAccountBalance ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientAccountBalanceImpl(handle, isManuallyAllocated); - public ulong Amount { get; set; } + public ulong Amount { get; set; } - public string Url { get; set; } + public string Url { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientAuthKeyCode.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientAuthKeyCode.cs index 4294416f3..0c3dc144c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientAuthKeyCode.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientAuthKeyCode.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientAuthKeyCode : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientAuthKeyCode ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientAuthKeyCodeImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientAuthKeyCode ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientAuthKeyCodeImpl(handle, isManuallyAllocated); - public uint Eventid { get; set; } + public uint Eventid { get; set; } - public string Code { get; set; } + public string Code { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientCommendPlayer.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientCommendPlayer.cs index 6164a7c06..c42669e0f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientCommendPlayer.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientCommendPlayer.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientCommendPlayer : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientCommendPlayer ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientCommendPlayerImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientCommendPlayer ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientCommendPlayerImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public ulong MatchId { get; set; } + public ulong MatchId { get; set; } - public PlayerCommendationInfo Commendation { get; } + public PlayerCommendationInfo Commendation { get; } - public uint Tokens { get; set; } + public uint Tokens { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientGCRankUpdate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientGCRankUpdate.cs index 014c8caaf..196c045a5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientGCRankUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientGCRankUpdate.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientGCRankUpdate : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientGCRankUpdate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientGCRankUpdateImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientGCRankUpdate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientGCRankUpdateImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Rankings { get; } + public IProtobufRepeatedFieldSubMessageType Rankings { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientLogonFatalError.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientLogonFatalError.cs index 79cd116b7..415fa5fb3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientLogonFatalError.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientLogonFatalError.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientLogonFatalError : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientLogonFatalError ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientLogonFatalErrorImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientLogonFatalError ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientLogonFatalErrorImpl(handle, isManuallyAllocated); - public uint Errorcode { get; set; } + public uint Errorcode { get; set; } - public string Message { get; set; } + public string Message { get; set; } - public string Country { get; set; } + public string Country { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientNetworkConfig.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientNetworkConfig.cs index 528e3e395..b46e49a8a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientNetworkConfig.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientNetworkConfig.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientNetworkConfig : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientNetworkConfig ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientNetworkConfigImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientNetworkConfig ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientNetworkConfigImpl(handle, isManuallyAllocated); - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPartyJoinRelay.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPartyJoinRelay.cs index 022c2a1ae..ac899b6bc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPartyJoinRelay.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPartyJoinRelay.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientPartyJoinRelay : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientPartyJoinRelay ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientPartyJoinRelayImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientPartyJoinRelay ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientPartyJoinRelayImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public ulong Lobbyid { get; set; } + public ulong Lobbyid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPartyWarning.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPartyWarning.cs index ad33c4f6c..97224e19d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPartyWarning.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPartyWarning.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientPartyWarning : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientPartyWarning ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientPartyWarningImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientPartyWarning ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientPartyWarningImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Entries { get; } + public IProtobufRepeatedFieldSubMessageType Entries { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPartyWarning_Entry.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPartyWarning_Entry.cs index b32351fde..102c15292 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPartyWarning_Entry.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPartyWarning_Entry.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientPartyWarning_Entry : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientPartyWarning_Entry ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientPartyWarning_EntryImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientPartyWarning_Entry ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientPartyWarning_EntryImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public uint Warntype { get; set; } + public uint Warntype { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPerfReport.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPerfReport.cs index 0f1ef2354..4cf51843d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPerfReport.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPerfReport.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientPerfReport : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientPerfReport ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientPerfReportImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientPerfReport ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientPerfReportImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Entries { get; } + public IProtobufRepeatedFieldSubMessageType Entries { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPerfReport_Entry.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPerfReport_Entry.cs index 102c102d5..3d0b43c85 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPerfReport_Entry.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPerfReport_Entry.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientPerfReport_Entry : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientPerfReport_Entry ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientPerfReport_EntryImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientPerfReport_Entry ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientPerfReport_EntryImpl(handle, isManuallyAllocated); - public uint Perfcounter { get; set; } + public uint Perfcounter { get; set; } - public uint Length { get; set; } + public uint Length { get; set; } - public byte[] Reference { get; set; } + public byte[] Reference { get; set; } - public byte[] Actual { get; set; } + public byte[] Actual { get; set; } - public uint Sourceid { get; set; } + public uint Sourceid { get; set; } - public uint Status { get; set; } + public uint Status { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPlayerDecalSign.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPlayerDecalSign.cs index 716c170e2..cf24626bb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPlayerDecalSign.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPlayerDecalSign.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientPlayerDecalSign : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientPlayerDecalSign ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientPlayerDecalSignImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientPlayerDecalSign ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientPlayerDecalSignImpl(handle, isManuallyAllocated); - public PlayerDecalDigitalSignature Data { get; } + public PlayerDecalDigitalSignature Data { get; } - public ulong Itemid { get; set; } + public ulong Itemid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPollState.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPollState.cs index daa6492fe..b4f79e4e7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPollState.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientPollState.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientPollState : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientPollState ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientPollStateImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientPollState ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientPollStateImpl(handle, isManuallyAllocated); - public uint Pollid { get; set; } + public uint Pollid { get; set; } - public IProtobufRepeatedFieldValueType Names { get; } + public IProtobufRepeatedFieldValueType Names { get; } - public IProtobufRepeatedFieldValueType Values { get; } + public IProtobufRepeatedFieldValueType Values { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportPlayer.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportPlayer.cs index a024141c0..1ee599102 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportPlayer.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportPlayer.cs @@ -1,39 +1,38 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientReportPlayer : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientReportPlayer ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientReportPlayerImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientReportPlayer ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientReportPlayerImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint RptAimbot { get; set; } + public uint RptAimbot { get; set; } - public uint RptWallhack { get; set; } + public uint RptWallhack { get; set; } - public uint RptSpeedhack { get; set; } + public uint RptSpeedhack { get; set; } - public uint RptTeamharm { get; set; } + public uint RptTeamharm { get; set; } - public uint RptTextabuse { get; set; } + public uint RptTextabuse { get; set; } - public uint RptVoiceabuse { get; set; } + public uint RptVoiceabuse { get; set; } - public ulong MatchId { get; set; } + public ulong MatchId { get; set; } - public bool ReportFromDemo { get; set; } + public bool ReportFromDemo { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportResponse.cs index 67aa5c024..a0f58f4eb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportResponse.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientReportResponse : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientReportResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientReportResponseImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientReportResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientReportResponseImpl(handle, isManuallyAllocated); - public ulong ConfirmationId { get; set; } + public ulong ConfirmationId { get; set; } - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint ServerIp { get; set; } + public uint ServerIp { get; set; } - public uint ResponseType { get; set; } + public uint ResponseType { get; set; } - public uint ResponseResult { get; set; } + public uint ResponseResult { get; set; } - public uint Tokens { get; set; } + public uint Tokens { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportServer.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportServer.cs index c3871f4d5..ad3a84b45 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportServer.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportServer.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientReportServer : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientReportServer ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientReportServerImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientReportServer ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientReportServerImpl(handle, isManuallyAllocated); - public uint RptPoorperf { get; set; } + public uint RptPoorperf { get; set; } - public uint RptAbusivemodels { get; set; } + public uint RptAbusivemodels { get; set; } - public uint RptBadmotd { get; set; } + public uint RptBadmotd { get; set; } - public uint RptListingabuse { get; set; } + public uint RptListingabuse { get; set; } - public uint RptInventoryabuse { get; set; } + public uint RptInventoryabuse { get; set; } - public ulong MatchId { get; set; } + public ulong MatchId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportValidation.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportValidation.cs index a53d4d070..f044e2bc5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportValidation.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientReportValidation.cs @@ -1,72 +1,71 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientReportValidation : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientReportValidation ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientReportValidationImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientReportValidation ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientReportValidationImpl(handle, isManuallyAllocated); - public string FileReport { get; set; } + public string FileReport { get; set; } - public string CommandLine { get; set; } + public string CommandLine { get; set; } - public uint TotalFiles { get; set; } + public uint TotalFiles { get; set; } - public uint InternalError { get; set; } + public uint InternalError { get; set; } - public uint TrustTime { get; set; } + public uint TrustTime { get; set; } - public uint CountPending { get; set; } + public uint CountPending { get; set; } - public uint CountCompleted { get; set; } + public uint CountCompleted { get; set; } - public uint ProcessId { get; set; } + public uint ProcessId { get; set; } - public int Osversion { get; set; } + public int Osversion { get; set; } - public uint Clientreportversion { get; set; } + public uint Clientreportversion { get; set; } - public uint StatusId { get; set; } + public uint StatusId { get; set; } - public uint Diagnostic1 { get; set; } + public uint Diagnostic1 { get; set; } - public ulong Diagnostic2 { get; set; } + public ulong Diagnostic2 { get; set; } - public ulong Diagnostic3 { get; set; } + public ulong Diagnostic3 { get; set; } - public string LastLaunchData { get; set; } + public string LastLaunchData { get; set; } - public uint ReportCount { get; set; } + public uint ReportCount { get; set; } - public ulong ClientTime { get; set; } + public ulong ClientTime { get; set; } - public ulong Diagnostic4 { get; set; } + public ulong Diagnostic4 { get; set; } - public ulong Diagnostic5 { get; set; } + public ulong Diagnostic5 { get; set; } - public IProtobufRepeatedFieldSubMessageType Diagnostics { get; } + public IProtobufRepeatedFieldSubMessageType Diagnostics { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestJoinFriendData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestJoinFriendData.cs index 40694386c..a9adfa70e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestJoinFriendData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestJoinFriendData.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientRequestJoinFriendData : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientRequestJoinFriendData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientRequestJoinFriendDataImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientRequestJoinFriendData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientRequestJoinFriendDataImpl(handle, isManuallyAllocated); - public uint Version { get; set; } + public uint Version { get; set; } - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint JoinToken { get; set; } + public uint JoinToken { get; set; } - public uint JoinIpp { get; set; } + public uint JoinIpp { get; set; } - public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve Res { get; } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve Res { get; } - public string Errormsg { get; set; } + public string Errormsg { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestJoinServerData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestJoinServerData.cs index 04c9507c7..56f0a3587 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestJoinServerData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestJoinServerData.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientRequestJoinServerData : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientRequestJoinServerData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientRequestJoinServerDataImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientRequestJoinServerData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientRequestJoinServerDataImpl(handle, isManuallyAllocated); - public uint Version { get; set; } + public uint Version { get; set; } - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public ulong Serverid { get; set; } + public ulong Serverid { get; set; } - public uint ServerIp { get; set; } + public uint ServerIp { get; set; } - public uint ServerPort { get; set; } + public uint ServerPort { get; set; } - public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve Res { get; } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve Res { get; } - public string Errormsg { get; set; } + public string Errormsg { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestOffers.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestOffers.cs index 8959d3e73..5e116f0ec 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestOffers.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestOffers.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientRequestOffers : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientRequestOffers ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientRequestOffersImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientRequestOffers ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientRequestOffersImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestPlayersProfile.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestPlayersProfile.cs index 3dbd1bd29..4200c58c0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestPlayersProfile.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestPlayersProfile.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientRequestPlayersProfile : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientRequestPlayersProfile ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientRequestPlayersProfileImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientRequestPlayersProfile ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientRequestPlayersProfileImpl(handle, isManuallyAllocated); - public uint RequestIdDeprecated { get; set; } + public uint RequestIdDeprecated { get; set; } - public IProtobufRepeatedFieldValueType AccountIdsDeprecated { get; } + public IProtobufRepeatedFieldValueType AccountIdsDeprecated { get; } - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint RequestLevel { get; set; } + public uint RequestLevel { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestSouvenir.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestSouvenir.cs index ab5f303f6..149597a9f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestSouvenir.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestSouvenir.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientRequestSouvenir : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientRequestSouvenir ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientRequestSouvenirImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientRequestSouvenir ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientRequestSouvenirImpl(handle, isManuallyAllocated); - public ulong Itemid { get; set; } + public ulong Itemid { get; set; } - public ulong Matchid { get; set; } + public ulong Matchid { get; set; } - public int Eventid { get; set; } + public int Eventid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestWatchInfoFriends.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestWatchInfoFriends.cs index 31bdc1b34..582f9ada6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestWatchInfoFriends.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientRequestWatchInfoFriends.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientRequestWatchInfoFriends : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientRequestWatchInfoFriends ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientRequestWatchInfoFriendsImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientRequestWatchInfoFriends ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientRequestWatchInfoFriendsImpl(handle, isManuallyAllocated); - public uint RequestId { get; set; } + public uint RequestId { get; set; } - public IProtobufRepeatedFieldValueType AccountIds { get; } + public IProtobufRepeatedFieldValueType AccountIds { get; } - public ulong Serverid { get; set; } + public ulong Serverid { get; set; } - public ulong Matchid { get; set; } + public ulong Matchid { get; set; } - public uint ClientLauncher { get; set; } + public uint ClientLauncher { get; set; } - public IProtobufRepeatedFieldSubMessageType DataCenterPings { get; } + public IProtobufRepeatedFieldSubMessageType DataCenterPings { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientSubmitSurveyVote.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientSubmitSurveyVote.cs index a26c4b389..4b2233cf5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientSubmitSurveyVote.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientSubmitSurveyVote.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientSubmitSurveyVote : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientSubmitSurveyVote ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientSubmitSurveyVoteImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientSubmitSurveyVote ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientSubmitSurveyVoteImpl(handle, isManuallyAllocated); - public uint SurveyId { get; set; } + public uint SurveyId { get; set; } - public uint Vote { get; set; } + public uint Vote { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientToGCChat.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientToGCChat.cs index 7337fa9b0..d2ebb5e20 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientToGCChat.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientToGCChat.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientToGCChat : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientToGCChat ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientToGCChatImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientToGCChat ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientToGCChatImpl(handle, isManuallyAllocated); - public ulong MatchId { get; set; } + public ulong MatchId { get; set; } - public string Text { get; set; } + public string Text { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientToGCRequestElevate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientToGCRequestElevate.cs index 118d19706..39ef591ae 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientToGCRequestElevate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientToGCRequestElevate.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientToGCRequestElevate : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientToGCRequestElevate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientToGCRequestElevateImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientToGCRequestElevate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientToGCRequestElevateImpl(handle, isManuallyAllocated); - public uint Stage { get; set; } + public uint Stage { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientToGCRequestTicket.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientToGCRequestTicket.cs index 56c1e7ddf..bfda8ecc0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientToGCRequestTicket.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientToGCRequestTicket.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientToGCRequestTicket : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientToGCRequestTicket ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientToGCRequestTicketImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientToGCRequestTicket ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientToGCRequestTicketImpl(handle, isManuallyAllocated); - public ulong AuthorizedSteamId { get; set; } + public ulong AuthorizedSteamId { get; set; } - public uint AuthorizedPublicIp { get; set; } + public uint AuthorizedPublicIp { get; set; } - public ulong GameserverSteamId { get; set; } + public ulong GameserverSteamId { get; set; } - public string GameserverSdrRouting { get; set; } + public string GameserverSdrRouting { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientVarValueNotificationInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientVarValueNotificationInfo.cs index dbc89d610..bcc3bfa69 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientVarValueNotificationInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ClientVarValueNotificationInfo.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ClientVarValueNotificationInfo : ITypedProtobuf { - static CMsgGCCStrike15_v2_ClientVarValueNotificationInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ClientVarValueNotificationInfoImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ClientVarValueNotificationInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ClientVarValueNotificationInfoImpl(handle, isManuallyAllocated); - public string ValueName { get; set; } + public string ValueName { get; set; } - public int ValueInt { get; set; } + public int ValueInt { get; set; } - public uint ServerAddr { get; set; } + public uint ServerAddr { get; set; } - public uint ServerPort { get; set; } + public uint ServerPort { get; set; } - public IProtobufRepeatedFieldValueType ChokedBlocks { get; } + public IProtobufRepeatedFieldValueType ChokedBlocks { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Fantasy.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Fantasy.cs index a1100d0df..d460c0622 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Fantasy.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Fantasy.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Fantasy : ITypedProtobuf { - static CMsgGCCStrike15_v2_Fantasy ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_FantasyImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Fantasy ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_FantasyImpl(handle, isManuallyAllocated); - public uint EventId { get; set; } + public uint EventId { get; set; } - public IProtobufRepeatedFieldSubMessageType Teams { get; } + public IProtobufRepeatedFieldSubMessageType Teams { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Fantasy_FantasySlot.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Fantasy_FantasySlot.cs index 638a67331..e66b0b111 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Fantasy_FantasySlot.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Fantasy_FantasySlot.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Fantasy_FantasySlot : ITypedProtobuf { - static CMsgGCCStrike15_v2_Fantasy_FantasySlot ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Fantasy_FantasySlotImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Fantasy_FantasySlot ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Fantasy_FantasySlotImpl(handle, isManuallyAllocated); - public int Type { get; set; } + public int Type { get; set; } - public int Pick { get; set; } + public int Pick { get; set; } - public ulong Itemid { get; set; } + public ulong Itemid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Fantasy_FantasyTeam.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Fantasy_FantasyTeam.cs index 1a72f9821..6f643c84a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Fantasy_FantasyTeam.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Fantasy_FantasyTeam.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Fantasy_FantasyTeam : ITypedProtobuf { - static CMsgGCCStrike15_v2_Fantasy_FantasyTeam ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Fantasy_FantasyTeamImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Fantasy_FantasyTeam ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Fantasy_FantasyTeamImpl(handle, isManuallyAllocated); - public int Sectionid { get; set; } + public int Sectionid { get; set; } - public IProtobufRepeatedFieldSubMessageType Slots { get; } + public IProtobufRepeatedFieldSubMessageType Slots { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientInitSystem.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientInitSystem.cs index 972806808..f4d798dc9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientInitSystem.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientInitSystem.cs @@ -1,39 +1,38 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GC2ClientInitSystem : ITypedProtobuf { - static CMsgGCCStrike15_v2_GC2ClientInitSystem ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GC2ClientInitSystemImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GC2ClientInitSystem ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GC2ClientInitSystemImpl(handle, isManuallyAllocated); - public bool Load { get; set; } + public bool Load { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public string Outputname { get; set; } + public string Outputname { get; set; } - public byte[] KeyData { get; set; } + public byte[] KeyData { get; set; } - public byte[] ShaHash { get; set; } + public byte[] ShaHash { get; set; } - public int Cookie { get; set; } + public int Cookie { get; set; } - public string Manifest { get; set; } + public string Manifest { get; set; } - public byte[] SystemPackage { get; set; } + public byte[] SystemPackage { get; set; } - public bool LoadSystem { get; set; } + public bool LoadSystem { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientInitSystem_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientInitSystem_Response.cs index d9251bbb6..5e80605d3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientInitSystem_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientInitSystem_Response.cs @@ -1,42 +1,41 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GC2ClientInitSystem_Response : ITypedProtobuf { - static CMsgGCCStrike15_v2_GC2ClientInitSystem_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GC2ClientInitSystem_ResponseImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GC2ClientInitSystem_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GC2ClientInitSystem_ResponseImpl(handle, isManuallyAllocated); - public bool Success { get; set; } + public bool Success { get; set; } - public string Diagnostic { get; set; } + public string Diagnostic { get; set; } - public byte[] ShaHash { get; set; } + public byte[] ShaHash { get; set; } - public int Response { get; set; } + public int Response { get; set; } - public int ErrorCode1 { get; set; } + public int ErrorCode1 { get; set; } - public int ErrorCode2 { get; set; } + public int ErrorCode2 { get; set; } - public long Handle { get; set; } + public long Handle { get; set; } - public EInitSystemResult EinitResult { get; set; } + public EInitSystemResult EinitResult { get; set; } - public int AuxSystem1 { get; set; } + public int AuxSystem1 { get; set; } - public int AuxSystem2 { get; set; } + public int AuxSystem2 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientNotifyXPShop.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientNotifyXPShop.cs index ce576dfe8..3ca181705 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientNotifyXPShop.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientNotifyXPShop.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GC2ClientNotifyXPShop : ITypedProtobuf { - static CMsgGCCStrike15_v2_GC2ClientNotifyXPShop ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GC2ClientNotifyXPShopImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GC2ClientNotifyXPShop ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GC2ClientNotifyXPShopImpl(handle, isManuallyAllocated); - public CSOAccountXpShop Prematch { get; } + public CSOAccountXpShop Prematch { get; } - public CSOAccountXpShop Postmatch { get; } + public CSOAccountXpShop Postmatch { get; } - public uint CurrentXp { get; set; } + public uint CurrentXp { get; set; } - public uint CurrentLevel { get; set; } + public uint CurrentLevel { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientRefuseSecureMode.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientRefuseSecureMode.cs index 92c1bd50f..7a72ee287 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientRefuseSecureMode.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientRefuseSecureMode.cs @@ -1,39 +1,38 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GC2ClientRefuseSecureMode : ITypedProtobuf { - static CMsgGCCStrike15_v2_GC2ClientRefuseSecureMode ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GC2ClientRefuseSecureModeImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GC2ClientRefuseSecureMode ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GC2ClientRefuseSecureModeImpl(handle, isManuallyAllocated); - public string FileReport { get; set; } + public string FileReport { get; set; } - public bool OfferInsecureMode { get; set; } + public bool OfferInsecureMode { get; set; } - public bool OfferSecureMode { get; set; } + public bool OfferSecureMode { get; set; } - public bool ShowUnsignedUi { get; set; } + public bool ShowUnsignedUi { get; set; } - public bool KickUser { get; set; } + public bool KickUser { get; set; } - public bool ShowTrustedUi { get; set; } + public bool ShowTrustedUi { get; set; } - public bool ShowWarningNotTrusted { get; set; } + public bool ShowWarningNotTrusted { get; set; } - public bool ShowWarningNotTrusted2 { get; set; } + public bool ShowWarningNotTrusted2 { get; set; } - public string FilesPreventedTrusted { get; set; } + public string FilesPreventedTrusted { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientRequestValidation.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientRequestValidation.cs index 54c648a5c..ef3212d04 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientRequestValidation.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientRequestValidation.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GC2ClientRequestValidation : ITypedProtobuf { - static CMsgGCCStrike15_v2_GC2ClientRequestValidation ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GC2ClientRequestValidationImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GC2ClientRequestValidation ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GC2ClientRequestValidationImpl(handle, isManuallyAllocated); - public bool FullReport { get; set; } + public bool FullReport { get; set; } - public string Module { get; set; } + public string Module { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientTextMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientTextMsg.cs index d98d60fae..cedf8871d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientTextMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientTextMsg.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GC2ClientTextMsg : ITypedProtobuf { - static CMsgGCCStrike15_v2_GC2ClientTextMsg ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GC2ClientTextMsgImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GC2ClientTextMsg ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GC2ClientTextMsgImpl(handle, isManuallyAllocated); - public uint Id { get; set; } + public uint Id { get; set; } - public uint Type { get; set; } + public uint Type { get; set; } - public byte[] Payload { get; set; } + public byte[] Payload { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientTournamentInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientTournamentInfo.cs index 958677be0..82cb7d4b7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientTournamentInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ClientTournamentInfo.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GC2ClientTournamentInfo : ITypedProtobuf { - static CMsgGCCStrike15_v2_GC2ClientTournamentInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GC2ClientTournamentInfoImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GC2ClientTournamentInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GC2ClientTournamentInfoImpl(handle, isManuallyAllocated); - public uint Eventid { get; set; } + public uint Eventid { get; set; } - public uint Stageid { get; set; } + public uint Stageid { get; set; } - public uint GameType { get; set; } + public uint GameType { get; set; } - public IProtobufRepeatedFieldValueType Teamids { get; } + public IProtobufRepeatedFieldValueType Teamids { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ServerReservationUpdate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ServerReservationUpdate.cs index 923226710..c83e1e030 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ServerReservationUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GC2ServerReservationUpdate.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GC2ServerReservationUpdate : ITypedProtobuf { - static CMsgGCCStrike15_v2_GC2ServerReservationUpdate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GC2ServerReservationUpdateImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GC2ServerReservationUpdate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GC2ServerReservationUpdateImpl(handle, isManuallyAllocated); - public uint ViewersExternalTotal { get; set; } + public uint ViewersExternalTotal { get; set; } - public uint ViewersExternalSteam { get; set; } + public uint ViewersExternalSteam { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GCToClientChat.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GCToClientChat.cs index cc64131df..fca974ae7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GCToClientChat.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GCToClientChat.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GCToClientChat : ITypedProtobuf { - static CMsgGCCStrike15_v2_GCToClientChat ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GCToClientChatImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GCToClientChat ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GCToClientChatImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public string Text { get; set; } + public string Text { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GetEventFavorites_Request.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GetEventFavorites_Request.cs index 7ada62d7a..78e984044 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GetEventFavorites_Request.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GetEventFavorites_Request.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GetEventFavorites_Request : ITypedProtobuf { - static CMsgGCCStrike15_v2_GetEventFavorites_Request ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GetEventFavorites_RequestImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GetEventFavorites_Request ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GetEventFavorites_RequestImpl(handle, isManuallyAllocated); - public bool AllEvents { get; set; } + public bool AllEvents { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GetEventFavorites_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GetEventFavorites_Response.cs index e5fed13fc..10857faf6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GetEventFavorites_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GetEventFavorites_Response.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GetEventFavorites_Response : ITypedProtobuf { - static CMsgGCCStrike15_v2_GetEventFavorites_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GetEventFavorites_ResponseImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GetEventFavorites_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GetEventFavorites_ResponseImpl(handle, isManuallyAllocated); - public bool AllEvents { get; set; } + public bool AllEvents { get; set; } - public string JsonFavorites { get; set; } + public string JsonFavorites { get; set; } - public string JsonFeatured { get; set; } + public string JsonFeatured { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GiftsLeaderboardRequest.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GiftsLeaderboardRequest.cs index 969e45004..9dd2274dc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GiftsLeaderboardRequest.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GiftsLeaderboardRequest.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GiftsLeaderboardRequest : ITypedProtobuf { - static CMsgGCCStrike15_v2_GiftsLeaderboardRequest ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GiftsLeaderboardRequestImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GiftsLeaderboardRequest ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GiftsLeaderboardRequestImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GiftsLeaderboardResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GiftsLeaderboardResponse.cs index 3d6c49120..289f1b1ab 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GiftsLeaderboardResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GiftsLeaderboardResponse.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GiftsLeaderboardResponse : ITypedProtobuf { - static CMsgGCCStrike15_v2_GiftsLeaderboardResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GiftsLeaderboardResponseImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GiftsLeaderboardResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GiftsLeaderboardResponseImpl(handle, isManuallyAllocated); - public uint Servertime { get; set; } + public uint Servertime { get; set; } - public uint TimePeriodSeconds { get; set; } + public uint TimePeriodSeconds { get; set; } - public uint TotalGiftsGiven { get; set; } + public uint TotalGiftsGiven { get; set; } - public uint TotalGivers { get; set; } + public uint TotalGivers { get; set; } - public IProtobufRepeatedFieldSubMessageType Entries { get; } + public IProtobufRepeatedFieldSubMessageType Entries { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntry.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntry.cs index 27c0e08e4..9e90e1128 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntry.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntry.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntry : ITypedProtobuf { - static CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntry ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntryImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntry ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_GiftsLeaderboardResponse_GiftLeaderboardEntryImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public uint Gifts { get; set; } + public uint Gifts { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchEndRewardDropsNotification.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchEndRewardDropsNotification.cs index 0ab6d5d63..c1024f9c2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchEndRewardDropsNotification.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchEndRewardDropsNotification.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchEndRewardDropsNotification : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchEndRewardDropsNotification ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchEndRewardDropsNotificationImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchEndRewardDropsNotification ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchEndRewardDropsNotificationImpl(handle, isManuallyAllocated); - public CEconItemPreviewDataBlock Iteminfo { get; } + public CEconItemPreviewDataBlock Iteminfo { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchEndRunRewardDrops.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchEndRunRewardDrops.cs index 1d5116b7c..749bb8353 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchEndRunRewardDrops.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchEndRunRewardDrops.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchEndRunRewardDrops : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchEndRunRewardDrops ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchEndRunRewardDropsImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchEndRunRewardDrops ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchEndRunRewardDropsImpl(handle, isManuallyAllocated); - public CMsgGCCStrike15_v2_MatchmakingServerReservationResponse Serverinfo { get; } + public CMsgGCCStrike15_v2_MatchmakingServerReservationResponse Serverinfo { get; } - public CMsgGC_ServerQuestUpdateData MatchEndQuestData { get; } + public CMsgGC_ServerQuestUpdateData MatchEndQuestData { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchList.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchList.cs index 1b629dde7..c31ece5a7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchList.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchList.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchList : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchList ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchListImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchList ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchListImpl(handle, isManuallyAllocated); - public uint Msgrequestid { get; set; } + public uint Msgrequestid { get; set; } - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public uint Servertime { get; set; } + public uint Servertime { get; set; } - public IProtobufRepeatedFieldSubMessageType Matches { get; } + public IProtobufRepeatedFieldSubMessageType Matches { get; } - public IProtobufRepeatedFieldSubMessageType Streams { get; } + public IProtobufRepeatedFieldSubMessageType Streams { get; } - public CDataGCCStrike15_v2_TournamentInfo Tournamentinfo { get; } + public CDataGCCStrike15_v2_TournamentInfo Tournamentinfo { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGames.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGames.cs index 33383b69c..1c2e6a59c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGames.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGames.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGames : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGames ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGamesImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGames ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchListRequestCurrentLiveGamesImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestFullGameInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestFullGameInfo.cs index 376b97ba4..d63008a3a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestFullGameInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestFullGameInfo.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchListRequestFullGameInfo : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchListRequestFullGameInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchListRequestFullGameInfoImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchListRequestFullGameInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchListRequestFullGameInfoImpl(handle, isManuallyAllocated); - public ulong Matchid { get; set; } + public ulong Matchid { get; set; } - public ulong Outcomeid { get; set; } + public ulong Outcomeid { get; set; } - public uint Token { get; set; } + public uint Token { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestLiveGameForUser.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestLiveGameForUser.cs index 7c623825f..6bfccd6ad 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestLiveGameForUser.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestLiveGameForUser.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchListRequestLiveGameForUser : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchListRequestLiveGameForUser ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchListRequestLiveGameForUserImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchListRequestLiveGameForUser ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchListRequestLiveGameForUserImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestRecentUserGames.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestRecentUserGames.cs index b3079e36a..204f538eb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestRecentUserGames.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestRecentUserGames.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchListRequestRecentUserGames : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchListRequestRecentUserGames ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchListRequestRecentUserGamesImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchListRequestRecentUserGames ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchListRequestRecentUserGamesImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestTournamentGames.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestTournamentGames.cs index f7d860bf2..33fc13b3d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestTournamentGames.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListRequestTournamentGames.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchListRequestTournamentGames : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchListRequestTournamentGames ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchListRequestTournamentGamesImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchListRequestTournamentGames ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchListRequestTournamentGamesImpl(handle, isManuallyAllocated); - public int Eventid { get; set; } + public int Eventid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmt.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmt.cs index 3a8c84ab7..8b346302a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmt.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmt.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmt : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmt ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmtImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmt ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchListTournamentOperatorMgmtImpl(handle, isManuallyAllocated); - public int Eventid { get; set; } + public int Eventid { get; set; } - public IProtobufRepeatedFieldSubMessageType Matches { get; } + public IProtobufRepeatedFieldSubMessageType Matches { get; } - public uint Accountid { get; set; } + public uint Accountid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingClient2GCHello.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingClient2GCHello.cs index 9f731aef1..89895aa44 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingClient2GCHello.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingClient2GCHello.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingClient2GCHello : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingClient2GCHello ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingClient2GCHelloImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingClient2GCHello ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingClient2GCHelloImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingClient2ServerPing.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingClient2ServerPing.cs index 651a14d38..2c64b1aa7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingClient2ServerPing.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingClient2ServerPing.cs @@ -1,39 +1,38 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingClient2ServerPing : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingClient2ServerPing ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingClient2ServerPingImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingClient2ServerPing ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingClient2ServerPingImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Gameserverpings { get; } + public IProtobufRepeatedFieldSubMessageType Gameserverpings { get; } - public int OffsetIndex { get; set; } + public int OffsetIndex { get; set; } - public int FinalBatch { get; set; } + public int FinalBatch { get; set; } - public IProtobufRepeatedFieldSubMessageType DataCenterPings { get; } + public IProtobufRepeatedFieldSubMessageType DataCenterPings { get; } - public uint MaxPing { get; set; } + public uint MaxPing { get; set; } - public uint TestToken { get; set; } + public uint TestToken { get; set; } - public byte[] SearchKey { get; set; } + public byte[] SearchKey { get; set; } - public IProtobufRepeatedFieldSubMessageType Notes { get; } + public IProtobufRepeatedFieldSubMessageType Notes { get; } - public string DebugMessage { get; set; } + public string DebugMessage { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandon.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandon.cs index fdea75201..fb8a39ca0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandon.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandon.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandon : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandon ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandonImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandon ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingGC2ClientAbandonImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve AbandonedMatch { get; } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve AbandonedMatch { get; } - public uint PenaltySeconds { get; set; } + public uint PenaltySeconds { get; set; } - public uint PenaltyReason { get; set; } + public uint PenaltyReason { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientHello.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientHello.cs index 4e56644c1..3ae9f5342 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientHello.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientHello.cs @@ -1,72 +1,71 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingGC2ClientHello : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingGC2ClientHello ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingGC2ClientHelloImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingGC2ClientHello ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingGC2ClientHelloImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve Ongoingmatch { get; } + public CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve Ongoingmatch { get; } - public GlobalStatistics GlobalStats { get; } + public GlobalStatistics GlobalStats { get; } - public uint PenaltySeconds { get; set; } + public uint PenaltySeconds { get; set; } - public uint PenaltyReason { get; set; } + public uint PenaltyReason { get; set; } - public int VacBanned { get; set; } + public int VacBanned { get; set; } - public PlayerRankingInfo Ranking { get; } + public PlayerRankingInfo Ranking { get; } - public PlayerCommendationInfo Commendation { get; } + public PlayerCommendationInfo Commendation { get; } - public PlayerMedalsInfo Medals { get; } + public PlayerMedalsInfo Medals { get; } - public TournamentEvent MyCurrentEvent { get; } + public TournamentEvent MyCurrentEvent { get; } - public IProtobufRepeatedFieldSubMessageType MyCurrentEventTeams { get; } + public IProtobufRepeatedFieldSubMessageType MyCurrentEventTeams { get; } - public TournamentTeam MyCurrentTeam { get; } + public TournamentTeam MyCurrentTeam { get; } - public IProtobufRepeatedFieldSubMessageType MyCurrentEventStages { get; } + public IProtobufRepeatedFieldSubMessageType MyCurrentEventStages { get; } - public uint SurveyVote { get; set; } + public uint SurveyVote { get; set; } - public AccountActivity Activity { get; } + public AccountActivity Activity { get; } - public int PlayerLevel { get; set; } + public int PlayerLevel { get; set; } - public int PlayerCurXp { get; set; } + public int PlayerCurXp { get; set; } - public int PlayerXpBonusFlags { get; set; } + public int PlayerXpBonusFlags { get; set; } - public IProtobufRepeatedFieldSubMessageType Rankings { get; } + public IProtobufRepeatedFieldSubMessageType Rankings { get; } - public ulong Owcaseid { get; set; } + public ulong Owcaseid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve.cs index eb2e85a09..ea34381f0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve.cs @@ -1,39 +1,38 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveImpl(handle, isManuallyAllocated); - public ulong Serverid { get; set; } + public ulong Serverid { get; set; } - public uint DirectUdpIp { get; set; } + public uint DirectUdpIp { get; set; } - public uint DirectUdpPort { get; set; } + public uint DirectUdpPort { get; set; } - public ulong Reservationid { get; set; } + public ulong Reservationid { get; set; } - public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation { get; } + public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation { get; } - public string Map { get; set; } + public string Map { get; set; } - public string ServerAddress { get; set; } + public string ServerAddress { get; set; } - public DataCenterPing GsPing { get; } + public DataCenterPing GsPing { get; } - public uint GsLocationId { get; set; } + public uint GsLocationId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStats.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStats.cs index c56b087a7..e4a2ae6b4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStats.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStats.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStats : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStats ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStatsImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStats ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStatsImpl(handle, isManuallyAllocated); - public uint GsLocationId { get; set; } + public uint GsLocationId { get; set; } - public uint DataCenterId { get; set; } + public uint DataCenterId { get; set; } - public uint NumLockedIn { get; set; } + public uint NumLockedIn { get; set; } - public uint NumFoundNearby { get; set; } + public uint NumFoundNearby { get; set; } - public uint NoteLevel { get; set; } + public uint NoteLevel { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate.cs index 77caec4a6..97b3d0600 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate.cs @@ -1,60 +1,59 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdateImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdateImpl(handle, isManuallyAllocated); - public int Matchmaking { get; set; } + public int Matchmaking { get; set; } - public IProtobufRepeatedFieldValueType WaitingAccountIdSessions { get; } + public IProtobufRepeatedFieldValueType WaitingAccountIdSessions { get; } - public string Error { get; set; } + public string Error { get; set; } - public IProtobufRepeatedFieldValueType OngoingmatchAccountIdSessions { get; } + public IProtobufRepeatedFieldValueType OngoingmatchAccountIdSessions { get; } - public GlobalStatistics GlobalStats { get; } + public GlobalStatistics GlobalStats { get; } - public IProtobufRepeatedFieldValueType FailpingAccountIdSessions { get; } + public IProtobufRepeatedFieldValueType FailpingAccountIdSessions { get; } - public IProtobufRepeatedFieldValueType PenaltyAccountIdSessions { get; } + public IProtobufRepeatedFieldValueType PenaltyAccountIdSessions { get; } - public IProtobufRepeatedFieldValueType FailreadyAccountIdSessions { get; } + public IProtobufRepeatedFieldValueType FailreadyAccountIdSessions { get; } - public IProtobufRepeatedFieldValueType VacbannedAccountIdSessions { get; } + public IProtobufRepeatedFieldValueType VacbannedAccountIdSessions { get; } - public IpAddressMask ServerIpaddressMask { get; } + public IpAddressMask ServerIpaddressMask { get; } - public IProtobufRepeatedFieldSubMessageType Notes { get; } + public IProtobufRepeatedFieldSubMessageType Notes { get; } - public IProtobufRepeatedFieldValueType PenaltyAccountIdSessionsGreen { get; } + public IProtobufRepeatedFieldValueType PenaltyAccountIdSessionsGreen { get; } - public IProtobufRepeatedFieldValueType InsufficientlevelSessions { get; } + public IProtobufRepeatedFieldValueType InsufficientlevelSessions { get; } - public IProtobufRepeatedFieldValueType VsncheckAccountIdSessions { get; } + public IProtobufRepeatedFieldValueType VsncheckAccountIdSessions { get; } - public IProtobufRepeatedFieldValueType LauncherMismatchSessions { get; } + public IProtobufRepeatedFieldValueType LauncherMismatchSessions { get; } - public IProtobufRepeatedFieldValueType InsecureAccountIdSessions { get; } + public IProtobufRepeatedFieldValueType InsecureAccountIdSessions { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_Note.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_Note.cs index 5cae3d44a..1b66d5eff 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_Note.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_Note.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_Note : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_Note ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_NoteImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_Note ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate_NoteImpl(handle, isManuallyAllocated); - public int Type { get; set; } + public int Type { get; set; } - public int RegionId { get; set; } + public int RegionId { get; set; } - public float RegionR { get; set; } + public float RegionR { get; set; } - public float Distance { get; set; } + public float Distance { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirm.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirm.cs index cd01b8cc0..11b8369b6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirm.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirm.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirm : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirm ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirmImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirm ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirmImpl(handle, isManuallyAllocated); - public uint Token { get; set; } + public uint Token { get; set; } - public uint Stamp { get; set; } + public uint Stamp { get; set; } - public ulong Exchange { get; set; } + public ulong Exchange { get; set; } - public uint Retry { get; set; } + public uint Retry { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve.cs index d713d43db..28e1f3ae1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve.cs @@ -1,75 +1,74 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingGC2ServerReserveImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType AccountIds { get; } + public IProtobufRepeatedFieldValueType AccountIds { get; } - public uint GameType { get; set; } + public uint GameType { get; set; } - public ulong MatchId { get; set; } + public ulong MatchId { get; set; } - public uint ServerVersion { get; set; } + public uint ServerVersion { get; set; } - public uint Flags { get; set; } + public uint Flags { get; set; } - public IProtobufRepeatedFieldSubMessageType Rankings { get; } + public IProtobufRepeatedFieldSubMessageType Rankings { get; } - public ulong EncryptionKey { get; set; } + public ulong EncryptionKey { get; set; } - public ulong EncryptionKeyPub { get; set; } + public ulong EncryptionKeyPub { get; set; } - public IProtobufRepeatedFieldValueType PartyIds { get; } + public IProtobufRepeatedFieldValueType PartyIds { get; } - public IProtobufRepeatedFieldSubMessageType Whitelist { get; } + public IProtobufRepeatedFieldSubMessageType Whitelist { get; } - public ulong TvMasterSteamid { get; set; } + public ulong TvMasterSteamid { get; set; } - public TournamentEvent TournamentEvent { get; } + public TournamentEvent TournamentEvent { get; } - public IProtobufRepeatedFieldSubMessageType TournamentTeams { get; } + public IProtobufRepeatedFieldSubMessageType TournamentTeams { get; } - public IProtobufRepeatedFieldValueType TournamentCastersAccountIds { get; } + public IProtobufRepeatedFieldValueType TournamentCastersAccountIds { get; } - public ulong TvRelaySteamid { get; set; } + public ulong TvRelaySteamid { get; set; } - public CPreMatchInfoData PreMatchData { get; } + public CPreMatchInfoData PreMatchData { get; } - public uint TvControl { get; set; } + public uint TvControl { get; set; } - public IProtobufRepeatedFieldSubMessageType OpVarValues { get; } + public IProtobufRepeatedFieldSubMessageType OpVarValues { get; } - public uint SocacheControl { get; set; } + public uint SocacheControl { get; set; } - public IProtobufRepeatedFieldValueType TeammateColors { get; } + public IProtobufRepeatedFieldValueType TeammateColors { get; } - public uint MatchIdAdditional { get; set; } + public uint MatchIdAdditional { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdate.cs index 2270a36aa..e923a6468 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdate.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdate : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdateImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingOperator2GCBlogUpdateImpl(handle, isManuallyAllocated); - public string MainPostUrl { get; set; } + public string MainPostUrl { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingServerReservationResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingServerReservationResponse.cs index d4ca799ac..00f2ad5a5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingServerReservationResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingServerReservationResponse.cs @@ -1,69 +1,68 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingServerReservationResponse : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingServerReservationResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingServerReservationResponseImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingServerReservationResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingServerReservationResponseImpl(handle, isManuallyAllocated); - public ulong Reservationid { get; set; } + public ulong Reservationid { get; set; } - public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation { get; } + public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation { get; } - public string Map { get; set; } + public string Map { get; set; } - public ulong GcReservationSent { get; set; } + public ulong GcReservationSent { get; set; } - public uint ServerVersion { get; set; } + public uint ServerVersion { get; set; } - public ServerHltvInfo TvInfo { get; } + public ServerHltvInfo TvInfo { get; } - public IProtobufRepeatedFieldValueType RewardPlayerAccounts { get; } + public IProtobufRepeatedFieldValueType RewardPlayerAccounts { get; } - public IProtobufRepeatedFieldValueType IdlePlayerAccounts { get; } + public IProtobufRepeatedFieldValueType IdlePlayerAccounts { get; } - public uint RewardItemAttrDefIdx { get; set; } + public uint RewardItemAttrDefIdx { get; set; } - public uint RewardItemAttrValue { get; set; } + public uint RewardItemAttrValue { get; set; } - public uint RewardItemAttrRewardIdx { get; set; } + public uint RewardItemAttrRewardIdx { get; set; } - public uint RewardDropList { get; set; } + public uint RewardDropList { get; set; } - public string TournamentTag { get; set; } + public string TournamentTag { get; set; } - public uint LegacySteamdatagramPort { get; set; } + public uint LegacySteamdatagramPort { get; set; } - public uint SteamdatagramRouting { get; set; } + public uint SteamdatagramRouting { get; set; } - public uint TestToken { get; set; } + public uint TestToken { get; set; } - public uint Flags { get; set; } + public uint Flags { get; set; } - public uint SystemLoad { get; set; } + public uint SystemLoad { get; set; } - public uint CpusOnline { get; set; } + public uint CpusOnline { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingServerRoundStats.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingServerRoundStats.cs index d0f1ab307..d5ba69333 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingServerRoundStats.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingServerRoundStats.cs @@ -1,108 +1,107 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingServerRoundStats : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingServerRoundStats ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingServerRoundStatsImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingServerRoundStats ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingServerRoundStatsImpl(handle, isManuallyAllocated); - public ulong Reservationid { get; set; } + public ulong Reservationid { get; set; } - public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation { get; } + public CMsgGCCStrike15_v2_MatchmakingGC2ServerReserve Reservation { get; } - public string Map { get; set; } + public string Map { get; set; } - public int Round { get; set; } + public int Round { get; set; } - public IProtobufRepeatedFieldValueType Kills { get; } + public IProtobufRepeatedFieldValueType Kills { get; } - public IProtobufRepeatedFieldValueType Assists { get; } + public IProtobufRepeatedFieldValueType Assists { get; } - public IProtobufRepeatedFieldValueType Deaths { get; } + public IProtobufRepeatedFieldValueType Deaths { get; } - public IProtobufRepeatedFieldValueType Scores { get; } + public IProtobufRepeatedFieldValueType Scores { get; } - public IProtobufRepeatedFieldValueType Pings { get; } + public IProtobufRepeatedFieldValueType Pings { get; } - public int RoundResult { get; set; } + public int RoundResult { get; set; } - public int MatchResult { get; set; } + public int MatchResult { get; set; } - public IProtobufRepeatedFieldValueType TeamScores { get; } + public IProtobufRepeatedFieldValueType TeamScores { get; } - public CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirm Confirm { get; } + public CMsgGCCStrike15_v2_MatchmakingGC2ServerConfirm Confirm { get; } - public int ReservationStage { get; set; } + public int ReservationStage { get; set; } - public int MatchDuration { get; set; } + public int MatchDuration { get; set; } - public IProtobufRepeatedFieldValueType EnemyKills { get; } + public IProtobufRepeatedFieldValueType EnemyKills { get; } - public IProtobufRepeatedFieldValueType EnemyHeadshots { get; } + public IProtobufRepeatedFieldValueType EnemyHeadshots { get; } - public IProtobufRepeatedFieldValueType Enemy3ks { get; } + public IProtobufRepeatedFieldValueType Enemy3ks { get; } - public IProtobufRepeatedFieldValueType Enemy4ks { get; } + public IProtobufRepeatedFieldValueType Enemy4ks { get; } - public IProtobufRepeatedFieldValueType Enemy5ks { get; } + public IProtobufRepeatedFieldValueType Enemy5ks { get; } - public IProtobufRepeatedFieldValueType Mvps { get; } + public IProtobufRepeatedFieldValueType Mvps { get; } - public uint SpectatorsCount { get; set; } + public uint SpectatorsCount { get; set; } - public uint SpectatorsCountTv { get; set; } + public uint SpectatorsCountTv { get; set; } - public uint SpectatorsCountLnk { get; set; } + public uint SpectatorsCountLnk { get; set; } - public IProtobufRepeatedFieldValueType EnemyKillsAgg { get; } + public IProtobufRepeatedFieldValueType EnemyKillsAgg { get; } - public CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfo DropInfo { get; } + public CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfo DropInfo { get; } - public bool BSwitchedTeams { get; set; } + public bool BSwitchedTeams { get; set; } - public IProtobufRepeatedFieldValueType Enemy2ks { get; } + public IProtobufRepeatedFieldValueType Enemy2ks { get; } - public IProtobufRepeatedFieldValueType PlayerSpawned { get; } + public IProtobufRepeatedFieldValueType PlayerSpawned { get; } - public IProtobufRepeatedFieldValueType TeamSpawnCount { get; } + public IProtobufRepeatedFieldValueType TeamSpawnCount { get; } - public uint MaxRounds { get; set; } + public uint MaxRounds { get; set; } - public int MapId { get; set; } + public int MapId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfo.cs index afd4dda3f..da3ceb4ee 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfo.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfo : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfoImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingServerRoundStats_DropInfoImpl(handle, isManuallyAllocated); - public uint AccountMvp { get; set; } + public uint AccountMvp { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingStart.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingStart.cs index edf1a10cf..a2674949e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingStart.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingStart.cs @@ -1,36 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingStart : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingStart ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingStartImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingStart ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingStartImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType AccountIds { get; } + public IProtobufRepeatedFieldValueType AccountIds { get; } - public uint GameType { get; set; } + public uint GameType { get; set; } - public string TicketData { get; set; } + public string TicketData { get; set; } - public uint ClientVersion { get; set; } + public uint ClientVersion { get; set; } - public TournamentMatchSetup TournamentMatch { get; } + public TournamentMatchSetup TournamentMatch { get; } - public bool PrimeOnly { get; set; } + public bool PrimeOnly { get; set; } - public uint TvControl { get; set; } + public uint TvControl { get; set; } - public ulong LobbyId { get; set; } + public ulong LobbyId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingStop.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingStop.cs index 36d5f148d..c63fbedc5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingStop.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_MatchmakingStop.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_MatchmakingStop : ITypedProtobuf { - static CMsgGCCStrike15_v2_MatchmakingStop ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_MatchmakingStopImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_MatchmakingStop ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_MatchmakingStopImpl(handle, isManuallyAllocated); - public int Abandon { get; set; } + public int Abandon { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_Invite.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_Invite.cs index cd72bc6c6..2a9f5b14b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_Invite.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_Invite.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Party_Invite : ITypedProtobuf { - static CMsgGCCStrike15_v2_Party_Invite ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Party_InviteImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Party_Invite ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Party_InviteImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public uint Lobbyid { get; set; } + public uint Lobbyid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_Register.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_Register.cs index 739d908d1..3f25301fd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_Register.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_Register.cs @@ -1,39 +1,38 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Party_Register : ITypedProtobuf { - static CMsgGCCStrike15_v2_Party_Register ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Party_RegisterImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Party_Register ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Party_RegisterImpl(handle, isManuallyAllocated); - public uint Id { get; set; } + public uint Id { get; set; } - public uint Ver { get; set; } + public uint Ver { get; set; } - public uint Apr { get; set; } + public uint Apr { get; set; } - public uint Ark { get; set; } + public uint Ark { get; set; } - public uint Nby { get; set; } + public uint Nby { get; set; } - public uint Grp { get; set; } + public uint Grp { get; set; } - public uint Slots { get; set; } + public uint Slots { get; set; } - public uint Launcher { get; set; } + public uint Launcher { get; set; } - public uint GameType { get; set; } + public uint GameType { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_Search.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_Search.cs index d9ef2d5aa..4f271cc13 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_Search.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_Search.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Party_Search : ITypedProtobuf { - static CMsgGCCStrike15_v2_Party_Search ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Party_SearchImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Party_Search ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Party_SearchImpl(handle, isManuallyAllocated); - public uint Ver { get; set; } + public uint Ver { get; set; } - public uint Apr { get; set; } + public uint Apr { get; set; } - public uint Ark { get; set; } + public uint Ark { get; set; } - public IProtobufRepeatedFieldValueType Grps { get; } + public IProtobufRepeatedFieldValueType Grps { get; } - public uint Launcher { get; set; } + public uint Launcher { get; set; } - public uint GameType { get; set; } + public uint GameType { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_SearchResults.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_SearchResults.cs index 2c962cd75..9251f10a4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_SearchResults.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_SearchResults.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Party_SearchResults : ITypedProtobuf { - static CMsgGCCStrike15_v2_Party_SearchResults ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Party_SearchResultsImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Party_SearchResults ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Party_SearchResultsImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Entries { get; } + public IProtobufRepeatedFieldSubMessageType Entries { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_SearchResults_Entry.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_SearchResults_Entry.cs index 4c101398f..24613efbf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_SearchResults_Entry.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Party_SearchResults_Entry.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Party_SearchResults_Entry : ITypedProtobuf { - static CMsgGCCStrike15_v2_Party_SearchResults_Entry ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Party_SearchResults_EntryImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Party_SearchResults_Entry ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Party_SearchResults_EntryImpl(handle, isManuallyAllocated); - public uint Id { get; set; } + public uint Id { get; set; } - public uint Grp { get; set; } + public uint Grp { get; set; } - public uint GameType { get; set; } + public uint GameType { get; set; } - public uint Apr { get; set; } + public uint Apr { get; set; } - public uint Ark { get; set; } + public uint Ark { get; set; } - public uint Loc { get; set; } + public uint Loc { get; set; } - public uint Accountid { get; set; } + public uint Accountid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignment.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignment.cs index 645189f99..6f0093da9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignment.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignment.cs @@ -1,45 +1,44 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignment : ITypedProtobuf { - static CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignment ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignmentImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignment ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_PlayerOverwatchCaseAssignmentImpl(handle, isManuallyAllocated); - public ulong Caseid { get; set; } + public ulong Caseid { get; set; } - public string Caseurl { get; set; } + public string Caseurl { get; set; } - public uint Verdict { get; set; } + public uint Verdict { get; set; } - public uint Timestamp { get; set; } + public uint Timestamp { get; set; } - public uint Throttleseconds { get; set; } + public uint Throttleseconds { get; set; } - public uint Suspectid { get; set; } + public uint Suspectid { get; set; } - public uint Fractionid { get; set; } + public uint Fractionid { get; set; } - public uint Numrounds { get; set; } + public uint Numrounds { get; set; } - public uint Fractionrounds { get; set; } + public uint Fractionrounds { get; set; } - public int Streakconvictions { get; set; } + public int Streakconvictions { get; set; } - public uint Reason { get; set; } + public uint Reason { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayerOverwatchCaseStatus.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayerOverwatchCaseStatus.cs index 910f6d4dc..32fbb0a95 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayerOverwatchCaseStatus.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayerOverwatchCaseStatus.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_PlayerOverwatchCaseStatus : ITypedProtobuf { - static CMsgGCCStrike15_v2_PlayerOverwatchCaseStatus ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_PlayerOverwatchCaseStatusImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_PlayerOverwatchCaseStatus ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_PlayerOverwatchCaseStatusImpl(handle, isManuallyAllocated); - public ulong Caseid { get; set; } + public ulong Caseid { get; set; } - public uint Statusid { get; set; } + public uint Statusid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdate.cs index 66637ded7..19a7afb57 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdate.cs @@ -1,36 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdate : ITypedProtobuf { - static CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdateImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_PlayerOverwatchCaseUpdateImpl(handle, isManuallyAllocated); - public ulong Caseid { get; set; } + public ulong Caseid { get; set; } - public uint Suspectid { get; set; } + public uint Suspectid { get; set; } - public uint Fractionid { get; set; } + public uint Fractionid { get; set; } - public uint RptAimbot { get; set; } + public uint RptAimbot { get; set; } - public uint RptWallhack { get; set; } + public uint RptWallhack { get; set; } - public uint RptSpeedhack { get; set; } + public uint RptSpeedhack { get; set; } - public uint RptTeamharm { get; set; } + public uint RptTeamharm { get; set; } - public uint Reason { get; set; } + public uint Reason { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayersProfile.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayersProfile.cs index bcb140d8e..593c091e6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayersProfile.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PlayersProfile.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_PlayersProfile : ITypedProtobuf { - static CMsgGCCStrike15_v2_PlayersProfile ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_PlayersProfileImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_PlayersProfile ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_PlayersProfileImpl(handle, isManuallyAllocated); - public uint RequestId { get; set; } + public uint RequestId { get; set; } - public IProtobufRepeatedFieldSubMessageType AccountProfiles { get; } + public IProtobufRepeatedFieldSubMessageType AccountProfiles { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Predictions.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Predictions.cs index 3eb97971f..fb0713075 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Predictions.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Predictions.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Predictions : ITypedProtobuf { - static CMsgGCCStrike15_v2_Predictions ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_PredictionsImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Predictions ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_PredictionsImpl(handle, isManuallyAllocated); - public uint EventId { get; set; } + public uint EventId { get; set; } - public IProtobufRepeatedFieldSubMessageType GroupMatchTeamPicks { get; } + public IProtobufRepeatedFieldSubMessageType GroupMatchTeamPicks { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPick.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPick.cs index 6a694f919..cfab3d3f4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPick.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPick.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPick : ITypedProtobuf { - static CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPick ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPickImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPick ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Predictions_GroupMatchTeamPickImpl(handle, isManuallyAllocated); - public int Sectionid { get; set; } + public int Sectionid { get; set; } - public int Groupid { get; set; } + public int Groupid { get; set; } - public int Index { get; set; } + public int Index { get; set; } - public int Teamid { get; set; } + public int Teamid { get; set; } - public ulong Itemid { get; set; } + public ulong Itemid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PremierSeasonSummary.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PremierSeasonSummary.cs index f70ef6441..09f697858 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PremierSeasonSummary.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PremierSeasonSummary.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_PremierSeasonSummary : ITypedProtobuf { - static CMsgGCCStrike15_v2_PremierSeasonSummary ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_PremierSeasonSummaryImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_PremierSeasonSummary ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_PremierSeasonSummaryImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint SeasonId { get; set; } + public uint SeasonId { get; set; } - public IProtobufRepeatedFieldSubMessageType DataPerWeek { get; } + public IProtobufRepeatedFieldSubMessageType DataPerWeek { get; } - public IProtobufRepeatedFieldSubMessageType DataPerMap { get; } + public IProtobufRepeatedFieldSubMessageType DataPerMap { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMap.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMap.cs index b0e1f749f..7a38011d5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMap.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMap.cs @@ -1,51 +1,50 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMap : ITypedProtobuf { - static CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMap ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMapImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMap ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerMapImpl(handle, isManuallyAllocated); - public uint MapId { get; set; } + public uint MapId { get; set; } - public uint Wins { get; set; } + public uint Wins { get; set; } - public uint Ties { get; set; } + public uint Ties { get; set; } - public uint Losses { get; set; } + public uint Losses { get; set; } - public uint Rounds { get; set; } + public uint Rounds { get; set; } - public uint Kills { get; set; } + public uint Kills { get; set; } - public uint Headshots { get; set; } + public uint Headshots { get; set; } - public uint Assists { get; set; } + public uint Assists { get; set; } - public uint Deaths { get; set; } + public uint Deaths { get; set; } - public uint Mvps { get; set; } + public uint Mvps { get; set; } - public uint Rounds3k { get; set; } + public uint Rounds3k { get; set; } - public uint Rounds4k { get; set; } + public uint Rounds4k { get; set; } - public uint Rounds5k { get; set; } + public uint Rounds5k { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeek.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeek.cs index b771e0de5..9e6d7253c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeek.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeek.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeek : ITypedProtobuf { - static CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeek ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeekImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeek ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_PremierSeasonSummary_DataPerWeekImpl(handle, isManuallyAllocated); - public ulong WeekId { get; set; } + public ulong WeekId { get; set; } - public uint RankId { get; set; } + public uint RankId { get; set; } - public uint MatchesPlayed { get; set; } + public uint MatchesPlayed { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Server2GCClientValidate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Server2GCClientValidate.cs index 1c1451953..59806d640 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Server2GCClientValidate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_Server2GCClientValidate.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_Server2GCClientValidate : ITypedProtobuf { - static CMsgGCCStrike15_v2_Server2GCClientValidate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_Server2GCClientValidateImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_Server2GCClientValidate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_Server2GCClientValidateImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ServerNotificationForUserPenalty.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ServerNotificationForUserPenalty.cs index 4bbae187e..f7e9216cf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ServerNotificationForUserPenalty.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ServerNotificationForUserPenalty.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ServerNotificationForUserPenalty : ITypedProtobuf { - static CMsgGCCStrike15_v2_ServerNotificationForUserPenalty ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ServerNotificationForUserPenaltyImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ServerNotificationForUserPenalty ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ServerNotificationForUserPenaltyImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint Reason { get; set; } + public uint Reason { get; set; } - public uint Seconds { get; set; } + public uint Seconds { get; set; } - public bool CommunicationCooldown { get; set; } + public bool CommunicationCooldown { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ServerVarValueNotificationInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ServerVarValueNotificationInfo.cs index 1f8dc1002..9fb3ba4cf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ServerVarValueNotificationInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_ServerVarValueNotificationInfo.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_ServerVarValueNotificationInfo : ITypedProtobuf { - static CMsgGCCStrike15_v2_ServerVarValueNotificationInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_ServerVarValueNotificationInfoImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_ServerVarValueNotificationInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_ServerVarValueNotificationInfoImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public IProtobufRepeatedFieldValueType Viewangles { get; } + public IProtobufRepeatedFieldValueType Viewangles { get; } - public uint Type { get; set; } + public uint Type { get; set; } - public IProtobufRepeatedFieldValueType Userdata { get; } + public IProtobufRepeatedFieldValueType Userdata { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_SetEventFavorite.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_SetEventFavorite.cs index aa5ef11e9..25eb164d3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_SetEventFavorite.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_SetEventFavorite.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_SetEventFavorite : ITypedProtobuf { - static CMsgGCCStrike15_v2_SetEventFavorite ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_SetEventFavoriteImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_SetEventFavorite ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_SetEventFavoriteImpl(handle, isManuallyAllocated); - public ulong Eventid { get; set; } + public ulong Eventid { get; set; } - public bool IsFavorite { get; set; } + public bool IsFavorite { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeName.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeName.cs index 896d7752c..27970c94f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeName.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeName.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeName : ITypedProtobuf { - static CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeName ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeNameImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeName ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_SetPlayerLeaderboardSafeNameImpl(handle, isManuallyAllocated); - public string LeaderboardSafeName { get; set; } + public string LeaderboardSafeName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_WatchInfoUsers.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_WatchInfoUsers.cs index a945a0426..2ec6d4df8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_WatchInfoUsers.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCStrike15_v2_WatchInfoUsers.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCStrike15_v2_WatchInfoUsers : ITypedProtobuf { - static CMsgGCCStrike15_v2_WatchInfoUsers ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCStrike15_v2_WatchInfoUsersImpl(handle, isManuallyAllocated); + static CMsgGCCStrike15_v2_WatchInfoUsers ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCStrike15_v2_WatchInfoUsersImpl(handle, isManuallyAllocated); - public uint RequestId { get; set; } + public uint RequestId { get; set; } - public IProtobufRepeatedFieldValueType AccountIds { get; } + public IProtobufRepeatedFieldValueType AccountIds { get; } - public IProtobufRepeatedFieldSubMessageType WatchableMatchInfos { get; } + public IProtobufRepeatedFieldSubMessageType WatchableMatchInfos { get; } - public uint ExtendedTimeout { get; set; } + public uint ExtendedTimeout { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCClientDisplayNotification.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCClientDisplayNotification.cs index 15270a915..73b571a3a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCClientDisplayNotification.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCClientDisplayNotification.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCClientDisplayNotification : ITypedProtobuf { - static CMsgGCClientDisplayNotification ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCClientDisplayNotificationImpl(handle, isManuallyAllocated); + static CMsgGCClientDisplayNotification ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCClientDisplayNotificationImpl(handle, isManuallyAllocated); - public string NotificationTitleLocalizationKey { get; set; } + public string NotificationTitleLocalizationKey { get; set; } - public string NotificationBodyLocalizationKey { get; set; } + public string NotificationBodyLocalizationKey { get; set; } - public IProtobufRepeatedFieldValueType BodySubstringKeys { get; } + public IProtobufRepeatedFieldValueType BodySubstringKeys { get; } - public IProtobufRepeatedFieldValueType BodySubstringValues { get; } + public IProtobufRepeatedFieldValueType BodySubstringValues { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCClientVersionUpdated.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCClientVersionUpdated.cs index bdcf1684f..1ffcde837 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCClientVersionUpdated.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCClientVersionUpdated.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCClientVersionUpdated : ITypedProtobuf { - static CMsgGCClientVersionUpdated ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCClientVersionUpdatedImpl(handle, isManuallyAllocated); + static CMsgGCClientVersionUpdated ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCClientVersionUpdatedImpl(handle, isManuallyAllocated); - public uint ClientVersion { get; set; } + public uint ClientVersion { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCollectItem.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCollectItem.cs index 9ac3528eb..381374071 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCollectItem.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCollectItem.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCollectItem : ITypedProtobuf { - static CMsgGCCollectItem ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCollectItemImpl(handle, isManuallyAllocated); + static CMsgGCCollectItem ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCollectItemImpl(handle, isManuallyAllocated); - public ulong CollectionItemId { get; set; } + public ulong CollectionItemId { get; set; } - public ulong SubjectItemId { get; set; } + public ulong SubjectItemId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCstrike15_v2_ClientRedeemFreeReward.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCstrike15_v2_ClientRedeemFreeReward.cs index 61a81b3ec..cda298e7d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCstrike15_v2_ClientRedeemFreeReward.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCstrike15_v2_ClientRedeemFreeReward.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCstrike15_v2_ClientRedeemFreeReward : ITypedProtobuf { - static CMsgGCCstrike15_v2_ClientRedeemFreeReward ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCstrike15_v2_ClientRedeemFreeRewardImpl(handle, isManuallyAllocated); + static CMsgGCCstrike15_v2_ClientRedeemFreeReward ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCstrike15_v2_ClientRedeemFreeRewardImpl(handle, isManuallyAllocated); - public uint GenerationTime { get; set; } + public uint GenerationTime { get; set; } - public uint RedeemableBalance { get; set; } + public uint RedeemableBalance { get; set; } - public IProtobufRepeatedFieldValueType Items { get; } + public IProtobufRepeatedFieldValueType Items { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCstrike15_v2_ClientRedeemMissionReward.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCstrike15_v2_ClientRedeemMissionReward.cs index 3cd62eea3..8d46da43d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCstrike15_v2_ClientRedeemMissionReward.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCstrike15_v2_ClientRedeemMissionReward.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCstrike15_v2_ClientRedeemMissionReward : ITypedProtobuf { - static CMsgGCCstrike15_v2_ClientRedeemMissionReward ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCstrike15_v2_ClientRedeemMissionRewardImpl(handle, isManuallyAllocated); + static CMsgGCCstrike15_v2_ClientRedeemMissionReward ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCstrike15_v2_ClientRedeemMissionRewardImpl(handle, isManuallyAllocated); - public uint CampaignId { get; set; } + public uint CampaignId { get; set; } - public uint RedeemId { get; set; } + public uint RedeemId { get; set; } - public uint RedeemableBalance { get; set; } + public uint RedeemableBalance { get; set; } - public uint ExpectedCost { get; set; } + public uint ExpectedCost { get; set; } - public int BidControl { get; set; } + public int BidControl { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCstrike15_v2_GC2ServerNotifyXPRewarded.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCstrike15_v2_GC2ServerNotifyXPRewarded.cs index 96f6c3ab5..27dd9b5f9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCstrike15_v2_GC2ServerNotifyXPRewarded.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCCstrike15_v2_GC2ServerNotifyXPRewarded.cs @@ -1,42 +1,41 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCCstrike15_v2_GC2ServerNotifyXPRewarded : ITypedProtobuf { - static CMsgGCCstrike15_v2_GC2ServerNotifyXPRewarded ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCCstrike15_v2_GC2ServerNotifyXPRewardedImpl(handle, isManuallyAllocated); + static CMsgGCCstrike15_v2_GC2ServerNotifyXPRewarded ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCCstrike15_v2_GC2ServerNotifyXPRewardedImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType XpProgressData { get; } + public IProtobufRepeatedFieldSubMessageType XpProgressData { get; } - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint CurrentXp { get; set; } + public uint CurrentXp { get; set; } - public uint CurrentLevel { get; set; } + public uint CurrentLevel { get; set; } - public uint UpgradedDefidx { get; set; } + public uint UpgradedDefidx { get; set; } - public uint OperationPointsAwarded { get; set; } + public uint OperationPointsAwarded { get; set; } - public uint FreeRewards { get; set; } + public uint FreeRewards { get; set; } - public uint XpTrailRemaining { get; set; } + public uint XpTrailRemaining { get; set; } - public int XpTrailXpNeeded { get; set; } + public int XpTrailXpNeeded { get; set; } - public uint XpTrailLevel { get; set; } + public uint XpTrailLevel { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCDev_SchemaReservationRequest.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCDev_SchemaReservationRequest.cs index 37a11a443..0be624b48 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCDev_SchemaReservationRequest.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCDev_SchemaReservationRequest.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCDev_SchemaReservationRequest : ITypedProtobuf { - static CMsgGCDev_SchemaReservationRequest ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCDev_SchemaReservationRequestImpl(handle, isManuallyAllocated); + static CMsgGCDev_SchemaReservationRequest ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCDev_SchemaReservationRequestImpl(handle, isManuallyAllocated); - public string SchemaTypename { get; set; } + public string SchemaTypename { get; set; } - public string InstanceName { get; set; } + public string InstanceName { get; set; } - public ulong Context { get; set; } + public ulong Context { get; set; } - public ulong Id { get; set; } + public ulong Id { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCError.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCError.cs index 9929f7aa8..a67d86d55 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCError.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCError.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCError : ITypedProtobuf { - static CMsgGCError ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCErrorImpl(handle, isManuallyAllocated); + static CMsgGCError ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCErrorImpl(handle, isManuallyAllocated); - public string ErrorText { get; set; } + public string ErrorText { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCGiftedItems.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCGiftedItems.cs index d14216e88..d9760fedf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCGiftedItems.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCGiftedItems.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCGiftedItems : ITypedProtobuf { - static CMsgGCGiftedItems ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCGiftedItemsImpl(handle, isManuallyAllocated); + static CMsgGCGiftedItems ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCGiftedItemsImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public uint Giftdefindex { get; set; } + public uint Giftdefindex { get; set; } - public uint MaxGiftsPossible { get; set; } + public uint MaxGiftsPossible { get; set; } - public uint NumEligibleRecipients { get; set; } + public uint NumEligibleRecipients { get; set; } - public IProtobufRepeatedFieldValueType RecipientsAccountids { get; } + public IProtobufRepeatedFieldValueType RecipientsAccountids { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHAccountPhoneNumberChange.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHAccountPhoneNumberChange.cs index 99b55cd4d..649ccd7b6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHAccountPhoneNumberChange.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHAccountPhoneNumberChange.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCHAccountPhoneNumberChange : ITypedProtobuf { - static CMsgGCHAccountPhoneNumberChange ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCHAccountPhoneNumberChangeImpl(handle, isManuallyAllocated); + static CMsgGCHAccountPhoneNumberChange ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCHAccountPhoneNumberChangeImpl(handle, isManuallyAllocated); - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } - public uint Appid { get; set; } + public uint Appid { get; set; } - public ulong PhoneId { get; set; } + public ulong PhoneId { get; set; } - public bool IsVerified { get; set; } + public bool IsVerified { get; set; } - public bool IsIdentifying { get; set; } + public bool IsIdentifying { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHInviteUserToLobby.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHInviteUserToLobby.cs index 760991ccb..07a3fba74 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHInviteUserToLobby.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHInviteUserToLobby.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCHInviteUserToLobby : ITypedProtobuf { - static CMsgGCHInviteUserToLobby ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCHInviteUserToLobbyImpl(handle, isManuallyAllocated); + static CMsgGCHInviteUserToLobby ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCHInviteUserToLobbyImpl(handle, isManuallyAllocated); - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } - public uint Appid { get; set; } + public uint Appid { get; set; } - public ulong SteamidInvited { get; set; } + public ulong SteamidInvited { get; set; } - public ulong SteamidLobby { get; set; } + public ulong SteamidLobby { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHRecurringSubscriptionStatusChange.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHRecurringSubscriptionStatusChange.cs index 6309d7883..58f153db4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHRecurringSubscriptionStatusChange.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHRecurringSubscriptionStatusChange.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCHRecurringSubscriptionStatusChange : ITypedProtobuf { - static CMsgGCHRecurringSubscriptionStatusChange ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCHRecurringSubscriptionStatusChangeImpl(handle, isManuallyAllocated); + static CMsgGCHRecurringSubscriptionStatusChange ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCHRecurringSubscriptionStatusChangeImpl(handle, isManuallyAllocated); - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } - public uint Appid { get; set; } + public uint Appid { get; set; } - public ulong Agreementid { get; set; } + public ulong Agreementid { get; set; } - public bool Active { get; set; } + public bool Active { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHVacVerificationChange.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHVacVerificationChange.cs index 83b222de7..d1ab4c704 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHVacVerificationChange.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCHVacVerificationChange.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCHVacVerificationChange : ITypedProtobuf { - static CMsgGCHVacVerificationChange ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCHVacVerificationChangeImpl(handle, isManuallyAllocated); + static CMsgGCHVacVerificationChange ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCHVacVerificationChangeImpl(handle, isManuallyAllocated); - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } - public uint Appid { get; set; } + public uint Appid { get; set; } - public bool IsVerified { get; set; } + public bool IsVerified { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCIncrementKillCountResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCIncrementKillCountResponse.cs index 17a49158a..bb9a21dd4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCIncrementKillCountResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCIncrementKillCountResponse.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCIncrementKillCountResponse : ITypedProtobuf { - static CMsgGCIncrementKillCountResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCIncrementKillCountResponseImpl(handle, isManuallyAllocated); + static CMsgGCIncrementKillCountResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCIncrementKillCountResponseImpl(handle, isManuallyAllocated); - public uint KillerAccountId { get; set; } + public uint KillerAccountId { get; set; } - public uint NumKills { get; set; } + public uint NumKills { get; set; } - public uint ItemDef { get; set; } + public uint ItemDef { get; set; } - public uint LevelType { get; set; } + public uint LevelType { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCItemCustomizationNotification.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCItemCustomizationNotification.cs index dd2b565f0..7d49b3423 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCItemCustomizationNotification.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCItemCustomizationNotification.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCItemCustomizationNotification : ITypedProtobuf { - static CMsgGCItemCustomizationNotification ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCItemCustomizationNotificationImpl(handle, isManuallyAllocated); + static CMsgGCItemCustomizationNotification ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCItemCustomizationNotificationImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType ItemId { get; } + public IProtobufRepeatedFieldValueType ItemId { get; } - public uint Request { get; set; } + public uint Request { get; set; } - public IProtobufRepeatedFieldValueType ExtraData { get; } + public IProtobufRepeatedFieldValueType ExtraData { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCItemPreviewItemBoughtNotification.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCItemPreviewItemBoughtNotification.cs index 64a150867..ee4ef9c2f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCItemPreviewItemBoughtNotification.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCItemPreviewItemBoughtNotification.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCItemPreviewItemBoughtNotification : ITypedProtobuf { - static CMsgGCItemPreviewItemBoughtNotification ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCItemPreviewItemBoughtNotificationImpl(handle, isManuallyAllocated); + static CMsgGCItemPreviewItemBoughtNotification ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCItemPreviewItemBoughtNotificationImpl(handle, isManuallyAllocated); - public uint ItemDefIndex { get; set; } + public uint ItemDefIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCMultiplexMessage.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCMultiplexMessage.cs index ed267edca..06e265f47 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCMultiplexMessage.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCMultiplexMessage.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCMultiplexMessage : ITypedProtobuf { - static CMsgGCMultiplexMessage ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCMultiplexMessageImpl(handle, isManuallyAllocated); + static CMsgGCMultiplexMessage ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCMultiplexMessageImpl(handle, isManuallyAllocated); - public uint Msgtype { get; set; } + public uint Msgtype { get; set; } - public byte[] Payload { get; set; } + public byte[] Payload { get; set; } - public IProtobufRepeatedFieldValueType Steamids { get; } + public IProtobufRepeatedFieldValueType Steamids { get; } - public bool Replytogc { get; set; } + public bool Replytogc { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCMultiplexMessage_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCMultiplexMessage_Response.cs index ca6a8c4ee..29d8f10ff 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCMultiplexMessage_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCMultiplexMessage_Response.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCMultiplexMessage_Response : ITypedProtobuf { - static CMsgGCMultiplexMessage_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCMultiplexMessage_ResponseImpl(handle, isManuallyAllocated); + static CMsgGCMultiplexMessage_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCMultiplexMessage_ResponseImpl(handle, isManuallyAllocated); - public uint Msgtype { get; set; } + public uint Msgtype { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCNameItemNotification.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCNameItemNotification.cs index d9972a64a..eb19fcdbd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCNameItemNotification.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCNameItemNotification.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCNameItemNotification : ITypedProtobuf { - static CMsgGCNameItemNotification ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCNameItemNotificationImpl(handle, isManuallyAllocated); + static CMsgGCNameItemNotification ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCNameItemNotificationImpl(handle, isManuallyAllocated); - public ulong PlayerSteamid { get; set; } + public ulong PlayerSteamid { get; set; } - public uint ItemDefIndex { get; set; } + public uint ItemDefIndex { get; set; } - public string ItemNameCustom { get; set; } + public string ItemNameCustom { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCReportAbuse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCReportAbuse.cs index 7f23f7fa7..b2def3977 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCReportAbuse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCReportAbuse.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCReportAbuse : ITypedProtobuf { - static CMsgGCReportAbuse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCReportAbuseImpl(handle, isManuallyAllocated); + static CMsgGCReportAbuse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCReportAbuseImpl(handle, isManuallyAllocated); - public ulong TargetSteamId { get; set; } + public ulong TargetSteamId { get; set; } - public string Description { get; set; } + public string Description { get; set; } - public ulong Gid { get; set; } + public ulong Gid { get; set; } - public uint AbuseType { get; set; } + public uint AbuseType { get; set; } - public uint ContentType { get; set; } + public uint ContentType { get; set; } - public uint TargetGameServerIp { get; set; } + public uint TargetGameServerIp { get; set; } - public uint TargetGameServerPort { get; set; } + public uint TargetGameServerPort { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCReportAbuseResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCReportAbuseResponse.cs index 8be601e6a..dc0b0ebbc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCReportAbuseResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCReportAbuseResponse.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCReportAbuseResponse : ITypedProtobuf { - static CMsgGCReportAbuseResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCReportAbuseResponseImpl(handle, isManuallyAllocated); + static CMsgGCReportAbuseResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCReportAbuseResponseImpl(handle, isManuallyAllocated); - public ulong TargetSteamId { get; set; } + public ulong TargetSteamId { get; set; } - public uint Result { get; set; } + public uint Result { get; set; } - public string ErrorMessage { get; set; } + public string ErrorMessage { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestAnnouncements.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestAnnouncements.cs index fc792bdcb..117090899 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestAnnouncements.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestAnnouncements.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCRequestAnnouncements : ITypedProtobuf { - static CMsgGCRequestAnnouncements ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCRequestAnnouncementsImpl(handle, isManuallyAllocated); + static CMsgGCRequestAnnouncements ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCRequestAnnouncementsImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestAnnouncementsResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestAnnouncementsResponse.cs index 30c1d8e91..6132e8206 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestAnnouncementsResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestAnnouncementsResponse.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCRequestAnnouncementsResponse : ITypedProtobuf { - static CMsgGCRequestAnnouncementsResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCRequestAnnouncementsResponseImpl(handle, isManuallyAllocated); + static CMsgGCRequestAnnouncementsResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCRequestAnnouncementsResponseImpl(handle, isManuallyAllocated); - public string AnnouncementTitle { get; set; } + public string AnnouncementTitle { get; set; } - public string Announcement { get; set; } + public string Announcement { get; set; } - public string NextmatchTitle { get; set; } + public string NextmatchTitle { get; set; } - public string Nextmatch { get; set; } + public string Nextmatch { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestSessionIP.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestSessionIP.cs index 784a871bd..ff8c02eb2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestSessionIP.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestSessionIP.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCRequestSessionIP : ITypedProtobuf { - static CMsgGCRequestSessionIP ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCRequestSessionIPImpl(handle, isManuallyAllocated); + static CMsgGCRequestSessionIP ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCRequestSessionIPImpl(handle, isManuallyAllocated); - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestSessionIPResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestSessionIPResponse.cs index 4a04ce9df..60a26b443 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestSessionIPResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCRequestSessionIPResponse.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCRequestSessionIPResponse : ITypedProtobuf { - static CMsgGCRequestSessionIPResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCRequestSessionIPResponseImpl(handle, isManuallyAllocated); + static CMsgGCRequestSessionIPResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCRequestSessionIPResponseImpl(handle, isManuallyAllocated); - public uint Ip { get; set; } + public uint Ip { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCServerVersionUpdated.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCServerVersionUpdated.cs index 67992147a..891089263 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCServerVersionUpdated.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCServerVersionUpdated.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCServerVersionUpdated : ITypedProtobuf { - static CMsgGCServerVersionUpdated ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCServerVersionUpdatedImpl(handle, isManuallyAllocated); + static CMsgGCServerVersionUpdated ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCServerVersionUpdatedImpl(handle, isManuallyAllocated); - public uint ServerVersion { get; set; } + public uint ServerVersion { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCShowItemsPickedUp.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCShowItemsPickedUp.cs index eee6d73b6..c3e2d3809 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCShowItemsPickedUp.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCShowItemsPickedUp.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCShowItemsPickedUp : ITypedProtobuf { - static CMsgGCShowItemsPickedUp ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCShowItemsPickedUpImpl(handle, isManuallyAllocated); + static CMsgGCShowItemsPickedUp ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCShowItemsPickedUpImpl(handle, isManuallyAllocated); - public ulong PlayerSteamid { get; set; } + public ulong PlayerSteamid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseCancel.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseCancel.cs index d0ae13a4a..2333e6abf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseCancel.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseCancel.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCStorePurchaseCancel : ITypedProtobuf { - static CMsgGCStorePurchaseCancel ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCStorePurchaseCancelImpl(handle, isManuallyAllocated); + static CMsgGCStorePurchaseCancel ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCStorePurchaseCancelImpl(handle, isManuallyAllocated); - public ulong TxnId { get; set; } + public ulong TxnId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseCancelResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseCancelResponse.cs index 67a7f9f42..aab16e1df 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseCancelResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseCancelResponse.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCStorePurchaseCancelResponse : ITypedProtobuf { - static CMsgGCStorePurchaseCancelResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCStorePurchaseCancelResponseImpl(handle, isManuallyAllocated); + static CMsgGCStorePurchaseCancelResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCStorePurchaseCancelResponseImpl(handle, isManuallyAllocated); - public uint Result { get; set; } + public uint Result { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseFinalize.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseFinalize.cs index 18f7ff491..c14e5d324 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseFinalize.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseFinalize.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCStorePurchaseFinalize : ITypedProtobuf { - static CMsgGCStorePurchaseFinalize ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCStorePurchaseFinalizeImpl(handle, isManuallyAllocated); + static CMsgGCStorePurchaseFinalize ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCStorePurchaseFinalizeImpl(handle, isManuallyAllocated); - public ulong TxnId { get; set; } + public ulong TxnId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseFinalizeResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseFinalizeResponse.cs index d309a5574..1ea0b0f70 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseFinalizeResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseFinalizeResponse.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCStorePurchaseFinalizeResponse : ITypedProtobuf { - static CMsgGCStorePurchaseFinalizeResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCStorePurchaseFinalizeResponseImpl(handle, isManuallyAllocated); + static CMsgGCStorePurchaseFinalizeResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCStorePurchaseFinalizeResponseImpl(handle, isManuallyAllocated); - public uint Result { get; set; } + public uint Result { get; set; } - public IProtobufRepeatedFieldValueType ItemIds { get; } + public IProtobufRepeatedFieldValueType ItemIds { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseInit.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseInit.cs index bda884571..df95f22a2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseInit.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseInit.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCStorePurchaseInit : ITypedProtobuf { - static CMsgGCStorePurchaseInit ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCStorePurchaseInitImpl(handle, isManuallyAllocated); + static CMsgGCStorePurchaseInit ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCStorePurchaseInitImpl(handle, isManuallyAllocated); - public string Country { get; set; } + public string Country { get; set; } - public int Language { get; set; } + public int Language { get; set; } - public int Currency { get; set; } + public int Currency { get; set; } - public IProtobufRepeatedFieldSubMessageType LineItems { get; } + public IProtobufRepeatedFieldSubMessageType LineItems { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseInitResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseInitResponse.cs index 1c682a1cb..18079fe1e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseInitResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCStorePurchaseInitResponse.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCStorePurchaseInitResponse : ITypedProtobuf { - static CMsgGCStorePurchaseInitResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCStorePurchaseInitResponseImpl(handle, isManuallyAllocated); + static CMsgGCStorePurchaseInitResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCStorePurchaseInitResponseImpl(handle, isManuallyAllocated); - public int Result { get; set; } + public int Result { get; set; } - public ulong TxnId { get; set; } + public ulong TxnId { get; set; } - public string Url { get; set; } + public string Url { get; set; } - public IProtobufRepeatedFieldValueType ItemIds { get; } + public IProtobufRepeatedFieldValueType ItemIds { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToClientSteamDatagramTicket.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToClientSteamDatagramTicket.cs index 150ed7c09..156aca42e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToClientSteamDatagramTicket.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToClientSteamDatagramTicket.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCToClientSteamDatagramTicket : ITypedProtobuf { - static CMsgGCToClientSteamDatagramTicket ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCToClientSteamDatagramTicketImpl(handle, isManuallyAllocated); + static CMsgGCToClientSteamDatagramTicket ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCToClientSteamDatagramTicketImpl(handle, isManuallyAllocated); - public byte[] SerializedTicket { get; set; } + public byte[] SerializedTicket { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCBannedWordListBroadcast.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCBannedWordListBroadcast.cs index c95541b34..8fe0ed47f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCBannedWordListBroadcast.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCBannedWordListBroadcast.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCToGCBannedWordListBroadcast : ITypedProtobuf { - static CMsgGCToGCBannedWordListBroadcast ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCToGCBannedWordListBroadcastImpl(handle, isManuallyAllocated); + static CMsgGCToGCBannedWordListBroadcast ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCToGCBannedWordListBroadcastImpl(handle, isManuallyAllocated); - public CMsgGCBannedWordListResponse Broadcast { get; } + public CMsgGCBannedWordListResponse Broadcast { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCBannedWordListUpdated.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCBannedWordListUpdated.cs index b068b1a01..53271124d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCBannedWordListUpdated.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCBannedWordListUpdated.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCToGCBannedWordListUpdated : ITypedProtobuf { - static CMsgGCToGCBannedWordListUpdated ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCToGCBannedWordListUpdatedImpl(handle, isManuallyAllocated); + static CMsgGCToGCBannedWordListUpdated ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCToGCBannedWordListUpdatedImpl(handle, isManuallyAllocated); - public uint GroupId { get; set; } + public uint GroupId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCBroadcastConsoleCommand.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCBroadcastConsoleCommand.cs index a548a4332..c06852af9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCBroadcastConsoleCommand.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCBroadcastConsoleCommand.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCToGCBroadcastConsoleCommand : ITypedProtobuf { - static CMsgGCToGCBroadcastConsoleCommand ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCToGCBroadcastConsoleCommandImpl(handle, isManuallyAllocated); + static CMsgGCToGCBroadcastConsoleCommand ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCToGCBroadcastConsoleCommandImpl(handle, isManuallyAllocated); - public string ConCommand { get; set; } + public string ConCommand { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCDirtyMultipleSDOCache.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCDirtyMultipleSDOCache.cs index f9ee92bcb..cd211f487 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCDirtyMultipleSDOCache.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCDirtyMultipleSDOCache.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCToGCDirtyMultipleSDOCache : ITypedProtobuf { - static CMsgGCToGCDirtyMultipleSDOCache ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCToGCDirtyMultipleSDOCacheImpl(handle, isManuallyAllocated); + static CMsgGCToGCDirtyMultipleSDOCache ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCToGCDirtyMultipleSDOCacheImpl(handle, isManuallyAllocated); - public uint SdoType { get; set; } + public uint SdoType { get; set; } - public IProtobufRepeatedFieldValueType KeyUint64 { get; } + public IProtobufRepeatedFieldValueType KeyUint64 { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCDirtySDOCache.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCDirtySDOCache.cs index eb38082ab..762f2e5e1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCDirtySDOCache.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCDirtySDOCache.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCToGCDirtySDOCache : ITypedProtobuf { - static CMsgGCToGCDirtySDOCache ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCToGCDirtySDOCacheImpl(handle, isManuallyAllocated); + static CMsgGCToGCDirtySDOCache ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCToGCDirtySDOCacheImpl(handle, isManuallyAllocated); - public uint SdoType { get; set; } + public uint SdoType { get; set; } - public ulong KeyUint64 { get; set; } + public ulong KeyUint64 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCIsTrustedServer.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCIsTrustedServer.cs index 61d7df4ad..43faed7aa 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCIsTrustedServer.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCIsTrustedServer.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCToGCIsTrustedServer : ITypedProtobuf { - static CMsgGCToGCIsTrustedServer ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCToGCIsTrustedServerImpl(handle, isManuallyAllocated); + static CMsgGCToGCIsTrustedServer ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCToGCIsTrustedServerImpl(handle, isManuallyAllocated); - public ulong SteamId { get; set; } + public ulong SteamId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCIsTrustedServerResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCIsTrustedServerResponse.cs index c71591fdb..87d0068a8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCIsTrustedServerResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCIsTrustedServerResponse.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCToGCIsTrustedServerResponse : ITypedProtobuf { - static CMsgGCToGCIsTrustedServerResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCToGCIsTrustedServerResponseImpl(handle, isManuallyAllocated); + static CMsgGCToGCIsTrustedServerResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCToGCIsTrustedServerResponseImpl(handle, isManuallyAllocated); - public bool IsTrusted { get; set; } + public bool IsTrusted { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCRequestPassportItemGrant.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCRequestPassportItemGrant.cs index 32e532256..1952cd1bd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCRequestPassportItemGrant.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCRequestPassportItemGrant.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCToGCRequestPassportItemGrant : ITypedProtobuf { - static CMsgGCToGCRequestPassportItemGrant ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCToGCRequestPassportItemGrantImpl(handle, isManuallyAllocated); + static CMsgGCToGCRequestPassportItemGrant ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCToGCRequestPassportItemGrantImpl(handle, isManuallyAllocated); - public ulong SteamId { get; set; } + public ulong SteamId { get; set; } - public uint LeagueId { get; set; } + public uint LeagueId { get; set; } - public int RewardFlag { get; set; } + public int RewardFlag { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCUpdateSQLKeyValue.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCUpdateSQLKeyValue.cs index 5ca3bbd16..20b548ce3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCUpdateSQLKeyValue.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCUpdateSQLKeyValue.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCToGCUpdateSQLKeyValue : ITypedProtobuf { - static CMsgGCToGCUpdateSQLKeyValue ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCToGCUpdateSQLKeyValueImpl(handle, isManuallyAllocated); + static CMsgGCToGCUpdateSQLKeyValue ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCToGCUpdateSQLKeyValueImpl(handle, isManuallyAllocated); - public string KeyName { get; set; } + public string KeyName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCWebAPIAccountChanged.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCWebAPIAccountChanged.cs index 35389d8b2..8461fe2fc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCWebAPIAccountChanged.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCToGCWebAPIAccountChanged.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCToGCWebAPIAccountChanged : ITypedProtobuf { - static CMsgGCToGCWebAPIAccountChanged ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCToGCWebAPIAccountChangedImpl(handle, isManuallyAllocated); + static CMsgGCToGCWebAPIAccountChanged ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCToGCWebAPIAccountChangedImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCUpdateSessionIP.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCUpdateSessionIP.cs index 7fb13058a..c7079d869 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCUpdateSessionIP.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCUpdateSessionIP.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCUpdateSessionIP : ITypedProtobuf { - static CMsgGCUpdateSessionIP ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCUpdateSessionIPImpl(handle, isManuallyAllocated); + static CMsgGCUpdateSessionIP ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCUpdateSessionIPImpl(handle, isManuallyAllocated); - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } - public uint Ip { get; set; } + public uint Ip { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCUserTrackTimePlayedConsecutively.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCUserTrackTimePlayedConsecutively.cs index 0b057c9c3..958908763 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCUserTrackTimePlayedConsecutively.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGCUserTrackTimePlayedConsecutively.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGCUserTrackTimePlayedConsecutively : ITypedProtobuf { - static CMsgGCUserTrackTimePlayedConsecutively ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGCUserTrackTimePlayedConsecutivelyImpl(handle, isManuallyAllocated); + static CMsgGCUserTrackTimePlayedConsecutively ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGCUserTrackTimePlayedConsecutivelyImpl(handle, isManuallyAllocated); - public uint State { get; set; } + public uint State { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_GlobalGame_Play.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_GlobalGame_Play.cs index 5e4ef0e6d..68bd70245 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_GlobalGame_Play.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_GlobalGame_Play.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGC_GlobalGame_Play : ITypedProtobuf { - static CMsgGC_GlobalGame_Play ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGC_GlobalGame_PlayImpl(handle, isManuallyAllocated); + static CMsgGC_GlobalGame_Play ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGC_GlobalGame_PlayImpl(handle, isManuallyAllocated); - public ulong Ticket { get; set; } + public ulong Ticket { get; set; } - public uint Gametimems { get; set; } + public uint Gametimems { get; set; } - public uint Msperpoint { get; set; } + public uint Msperpoint { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_GlobalGame_Subscribe.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_GlobalGame_Subscribe.cs index 8f50712a4..f939b7953 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_GlobalGame_Subscribe.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_GlobalGame_Subscribe.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGC_GlobalGame_Subscribe : ITypedProtobuf { - static CMsgGC_GlobalGame_Subscribe ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGC_GlobalGame_SubscribeImpl(handle, isManuallyAllocated); + static CMsgGC_GlobalGame_Subscribe ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGC_GlobalGame_SubscribeImpl(handle, isManuallyAllocated); - public ulong Ticket { get; set; } + public ulong Ticket { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_GlobalGame_Unsubscribe.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_GlobalGame_Unsubscribe.cs index 86bf261e4..4dbb74b19 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_GlobalGame_Unsubscribe.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_GlobalGame_Unsubscribe.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGC_GlobalGame_Unsubscribe : ITypedProtobuf { - static CMsgGC_GlobalGame_Unsubscribe ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGC_GlobalGame_UnsubscribeImpl(handle, isManuallyAllocated); + static CMsgGC_GlobalGame_Unsubscribe ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGC_GlobalGame_UnsubscribeImpl(handle, isManuallyAllocated); - public int Timeleft { get; set; } + public int Timeleft { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_ServerQuestUpdateData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_ServerQuestUpdateData.cs index df0f6763a..2be30960d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_ServerQuestUpdateData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGC_ServerQuestUpdateData.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGC_ServerQuestUpdateData : ITypedProtobuf { - static CMsgGC_ServerQuestUpdateData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGC_ServerQuestUpdateDataImpl(handle, isManuallyAllocated); + static CMsgGC_ServerQuestUpdateData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGC_ServerQuestUpdateDataImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType PlayerQuestData { get; } + public IProtobufRepeatedFieldSubMessageType PlayerQuestData { get; } - public byte[] BinaryData { get; set; } + public byte[] BinaryData { get; set; } - public uint MmGameMode { get; set; } + public uint MmGameMode { get; set; } - public ScoreLeaderboardData Missionlbsdata { get; } + public ScoreLeaderboardData Missionlbsdata { get; } - public uint Flags { get; set; } + public uint Flags { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGameServerInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGameServerInfo.cs index bac4384d4..3392de85d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGameServerInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgGameServerInfo.cs @@ -1,66 +1,65 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgGameServerInfo : ITypedProtobuf { - static CMsgGameServerInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgGameServerInfoImpl(handle, isManuallyAllocated); + static CMsgGameServerInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgGameServerInfoImpl(handle, isManuallyAllocated); - public uint ServerPublicIpAddr { get; set; } + public uint ServerPublicIpAddr { get; set; } - public uint ServerPrivateIpAddr { get; set; } + public uint ServerPrivateIpAddr { get; set; } - public uint ServerPort { get; set; } + public uint ServerPort { get; set; } - public uint ServerTvPort { get; set; } + public uint ServerTvPort { get; set; } - public string ServerKey { get; set; } + public string ServerKey { get; set; } - public bool ServerHibernation { get; set; } + public bool ServerHibernation { get; set; } - public CMsgGameServerInfo_ServerType ServerType { get; set; } + public CMsgGameServerInfo_ServerType ServerType { get; set; } - public uint ServerRegion { get; set; } + public uint ServerRegion { get; set; } - public float ServerLoadavg { get; set; } + public float ServerLoadavg { get; set; } - public float ServerTvBroadcastTime { get; set; } + public float ServerTvBroadcastTime { get; set; } - public float ServerGameTime { get; set; } + public float ServerGameTime { get; set; } - public ulong ServerRelayConnectedSteamId { get; set; } + public ulong ServerRelayConnectedSteamId { get; set; } - public uint RelaySlotsMax { get; set; } + public uint RelaySlotsMax { get; set; } - public int RelaysConnected { get; set; } + public int RelaysConnected { get; set; } - public int RelayClientsConnected { get; set; } + public int RelayClientsConnected { get; set; } - public ulong RelayedGameServerSteamId { get; set; } + public ulong RelayedGameServerSteamId { get; set; } - public uint ParentRelayCount { get; set; } + public uint ParentRelayCount { get; set; } - public ulong TvSecretCode { get; set; } + public ulong TvSecretCode { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgIPCAddress.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgIPCAddress.cs index a0fff32f5..06617fedb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgIPCAddress.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgIPCAddress.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgIPCAddress : ITypedProtobuf { - static CMsgIPCAddress ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgIPCAddressImpl(handle, isManuallyAllocated); + static CMsgIPCAddress ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgIPCAddressImpl(handle, isManuallyAllocated); - public ulong ComputerGuid { get; set; } + public ulong ComputerGuid { get; set; } - public uint ProcessId { get; set; } + public uint ProcessId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgIncrementKillCountAttribute.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgIncrementKillCountAttribute.cs index 8156d7c2f..eb95c474b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgIncrementKillCountAttribute.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgIncrementKillCountAttribute.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgIncrementKillCountAttribute : ITypedProtobuf { - static CMsgIncrementKillCountAttribute ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgIncrementKillCountAttributeImpl(handle, isManuallyAllocated); + static CMsgIncrementKillCountAttribute ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgIncrementKillCountAttributeImpl(handle, isManuallyAllocated); - public uint KillerAccountId { get; set; } + public uint KillerAccountId { get; set; } - public uint VictimAccountId { get; set; } + public uint VictimAccountId { get; set; } - public ulong ItemId { get; set; } + public ulong ItemId { get; set; } - public uint EventType { get; set; } + public uint EventType { get; set; } - public uint Amount { get; set; } + public uint Amount { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgInvitationCreated.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgInvitationCreated.cs index f67035c43..e29617d68 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgInvitationCreated.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgInvitationCreated.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgInvitationCreated : ITypedProtobuf { - static CMsgInvitationCreated ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgInvitationCreatedImpl(handle, isManuallyAllocated); + static CMsgInvitationCreated ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgInvitationCreatedImpl(handle, isManuallyAllocated); - public ulong GroupId { get; set; } + public ulong GroupId { get; set; } - public ulong SteamId { get; set; } + public ulong SteamId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgInviteToParty.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgInviteToParty.cs index 3b04c6063..388bc1555 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgInviteToParty.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgInviteToParty.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgInviteToParty : ITypedProtobuf { - static CMsgInviteToParty ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgInviteToPartyImpl(handle, isManuallyAllocated); + static CMsgInviteToParty ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgInviteToPartyImpl(handle, isManuallyAllocated); - public ulong SteamId { get; set; } + public ulong SteamId { get; set; } - public uint ClientVersion { get; set; } + public uint ClientVersion { get; set; } - public uint TeamInvite { get; set; } + public uint TeamInvite { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgItemAcknowledged.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgItemAcknowledged.cs index e60d26c85..02b69d1ae 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgItemAcknowledged.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgItemAcknowledged.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgItemAcknowledged : ITypedProtobuf { - static CMsgItemAcknowledged ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgItemAcknowledgedImpl(handle, isManuallyAllocated); + static CMsgItemAcknowledged ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgItemAcknowledgedImpl(handle, isManuallyAllocated); - public CEconItemPreviewDataBlock Iteminfo { get; } + public CEconItemPreviewDataBlock Iteminfo { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgItemAcknowledged__DEPRECATED.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgItemAcknowledged__DEPRECATED.cs index e064a4a29..db7b48025 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgItemAcknowledged__DEPRECATED.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgItemAcknowledged__DEPRECATED.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgItemAcknowledged__DEPRECATED : ITypedProtobuf { - static CMsgItemAcknowledged__DEPRECATED ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgItemAcknowledged__DEPRECATEDImpl(handle, isManuallyAllocated); + static CMsgItemAcknowledged__DEPRECATED ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgItemAcknowledged__DEPRECATEDImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint Inventory { get; set; } + public uint Inventory { get; set; } - public uint DefIndex { get; set; } + public uint DefIndex { get; set; } - public uint Quality { get; set; } + public uint Quality { get; set; } - public uint Rarity { get; set; } + public uint Rarity { get; set; } - public uint Origin { get; set; } + public uint Origin { get; set; } - public ulong ItemId { get; set; } + public ulong ItemId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgKickFromParty.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgKickFromParty.cs index 29062c90f..4ce60fa50 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgKickFromParty.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgKickFromParty.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgKickFromParty : ITypedProtobuf { - static CMsgKickFromParty ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgKickFromPartyImpl(handle, isManuallyAllocated); + static CMsgKickFromParty ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgKickFromPartyImpl(handle, isManuallyAllocated); - public ulong SteamId { get; set; } + public ulong SteamId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLANServerAvailable.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLANServerAvailable.cs index 79a3a80fa..d442cf016 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLANServerAvailable.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLANServerAvailable.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgLANServerAvailable : ITypedProtobuf { - static CMsgLANServerAvailable ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgLANServerAvailableImpl(handle, isManuallyAllocated); + static CMsgLANServerAvailable ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgLANServerAvailableImpl(handle, isManuallyAllocated); - public ulong LobbyId { get; set; } + public ulong LobbyId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLeaveParty.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLeaveParty.cs index e8658dbb0..79ee2e095 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLeaveParty.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLeaveParty.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgLeaveParty : ITypedProtobuf { - static CMsgLeaveParty ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgLeavePartyImpl(handle, isManuallyAllocated); + static CMsgLeaveParty ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgLeavePartyImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLegacySource1ClientWelcome.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLegacySource1ClientWelcome.cs index 95adc5a98..980fd0e2b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLegacySource1ClientWelcome.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLegacySource1ClientWelcome.cs @@ -1,45 +1,44 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgLegacySource1ClientWelcome : ITypedProtobuf { - static CMsgLegacySource1ClientWelcome ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgLegacySource1ClientWelcomeImpl(handle, isManuallyAllocated); + static CMsgLegacySource1ClientWelcome ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgLegacySource1ClientWelcomeImpl(handle, isManuallyAllocated); - public uint Version { get; set; } + public uint Version { get; set; } - public byte[] GameData { get; set; } + public byte[] GameData { get; set; } - public IProtobufRepeatedFieldSubMessageType OutofdateSubscribedCaches { get; } + public IProtobufRepeatedFieldSubMessageType OutofdateSubscribedCaches { get; } - public IProtobufRepeatedFieldSubMessageType UptodateSubscribedCaches { get; } + public IProtobufRepeatedFieldSubMessageType UptodateSubscribedCaches { get; } - public CMsgLegacySource1ClientWelcome_Location Location { get; } + public CMsgLegacySource1ClientWelcome_Location Location { get; } - public byte[] GameData2 { get; set; } + public byte[] GameData2 { get; set; } - public uint Rtime32GcWelcomeTimestamp { get; set; } + public uint Rtime32GcWelcomeTimestamp { get; set; } - public uint Currency { get; set; } + public uint Currency { get; set; } - public uint Balance { get; set; } + public uint Balance { get; set; } - public string BalanceUrl { get; set; } + public string BalanceUrl { get; set; } - public string TxnCountryCode { get; set; } + public string TxnCountryCode { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLegacySource1ClientWelcome_Location.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLegacySource1ClientWelcome_Location.cs index 028ea422d..31b6fd922 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLegacySource1ClientWelcome_Location.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgLegacySource1ClientWelcome_Location.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgLegacySource1ClientWelcome_Location : ITypedProtobuf { - static CMsgLegacySource1ClientWelcome_Location ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgLegacySource1ClientWelcome_LocationImpl(handle, isManuallyAllocated); + static CMsgLegacySource1ClientWelcome_Location ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgLegacySource1ClientWelcome_LocationImpl(handle, isManuallyAllocated); - public float Latitude { get; set; } + public float Latitude { get; set; } - public float Longitude { get; set; } + public float Longitude { get; set; } - public string Country { get; set; } + public string Country { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgModifyItemAttribute.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgModifyItemAttribute.cs index b5c5b1134..f473aa244 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgModifyItemAttribute.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgModifyItemAttribute.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgModifyItemAttribute : ITypedProtobuf { - static CMsgModifyItemAttribute ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgModifyItemAttributeImpl(handle, isManuallyAllocated); + static CMsgModifyItemAttribute ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgModifyItemAttributeImpl(handle, isManuallyAllocated); - public ulong ItemId { get; set; } + public ulong ItemId { get; set; } - public uint AttrDefidx { get; set; } + public uint AttrDefidx { get; set; } - public uint AttrValue { get; set; } + public uint AttrValue { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgOpenCrate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgOpenCrate.cs index d557d217d..66f35d5e3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgOpenCrate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgOpenCrate.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgOpenCrate : ITypedProtobuf { - static CMsgOpenCrate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgOpenCrateImpl(handle, isManuallyAllocated); + static CMsgOpenCrate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgOpenCrateImpl(handle, isManuallyAllocated); - public ulong ToolItemId { get; set; } + public ulong ToolItemId { get; set; } - public ulong SubjectItemId { get; set; } + public ulong SubjectItemId { get; set; } - public bool ForRental { get; set; } + public bool ForRental { get; set; } - public uint PointsRemaining { get; set; } + public uint PointsRemaining { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPartyInviteResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPartyInviteResponse.cs index 7a52b4422..4548afc20 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPartyInviteResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPartyInviteResponse.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgPartyInviteResponse : ITypedProtobuf { - static CMsgPartyInviteResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgPartyInviteResponseImpl(handle, isManuallyAllocated); + static CMsgPartyInviteResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgPartyInviteResponseImpl(handle, isManuallyAllocated); - public ulong PartyId { get; set; } + public ulong PartyId { get; set; } - public bool Accept { get; set; } + public bool Accept { get; set; } - public uint ClientVersion { get; set; } + public uint ClientVersion { get; set; } - public uint TeamInvite { get; set; } + public uint TeamInvite { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPlaceDecalEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPlaceDecalEvent.cs index 9869f6b31..67b4deb89 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPlaceDecalEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPlaceDecalEvent.cs @@ -1,56 +1,56 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgPlaceDecalEvent : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 201; - - static string INetMessage.MessageName => "CMsgPlaceDecalEvent"; + static int INetMessage.MessageId => 201; + + static string INetMessage.MessageName => "CMsgPlaceDecalEvent"; - static CMsgPlaceDecalEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgPlaceDecalEventImpl(handle, isManuallyAllocated); + static CMsgPlaceDecalEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgPlaceDecalEventImpl(handle, isManuallyAllocated); - public Vector Position { get; set; } + public Vector Position { get; set; } - public Vector Normal { get; set; } + public Vector Normal { get; set; } - public Vector Saxis { get; set; } + public Vector Saxis { get; set; } - public int Boneindex { get; set; } + public int Boneindex { get; set; } - public int Triangleindex { get; set; } + public int Triangleindex { get; set; } - public uint Flags { get; set; } + public uint Flags { get; set; } - public uint Color { get; set; } + public uint Color { get; set; } - public int RandomSeed { get; set; } + public int RandomSeed { get; set; } - public uint DecalGroupName { get; set; } + public uint DecalGroupName { get; set; } - public float SizeOverride { get; set; } + public float SizeOverride { get; set; } - public uint Entityhandle { get; set; } + public uint Entityhandle { get; set; } - public ulong MaterialId { get; set; } + public ulong MaterialId { get; set; } - public uint SequenceName { get; set; } + public uint SequenceName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPlayerBulletHit.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPlayerBulletHit.cs index 4bea242ab..309613a7a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPlayerBulletHit.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPlayerBulletHit.cs @@ -7,27 +7,27 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgPlayerBulletHit : ITypedProtobuf { - static CMsgPlayerBulletHit ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgPlayerBulletHitImpl(handle, isManuallyAllocated); + static CMsgPlayerBulletHit ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgPlayerBulletHitImpl(handle, isManuallyAllocated); - public int AttackerSlot { get; set; } + public int AttackerSlot { get; set; } - public int VictimSlot { get; set; } + public int VictimSlot { get; set; } - public Vector VictimPos { get; set; } + public Vector VictimPos { get; set; } - public int HitGroup { get; set; } + public int HitGroup { get; set; } - public int Damage { get; set; } + public int Damage { get; set; } - public int PenetrationCount { get; set; } + public int PenetrationCount { get; set; } - public bool IsKill { get; set; } + public bool IsKill { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPlayerInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPlayerInfo.cs index a43ac229e..c57de61dc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPlayerInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgPlayerInfo.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgPlayerInfo : ITypedProtobuf { - static CMsgPlayerInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgPlayerInfoImpl(handle, isManuallyAllocated); + static CMsgPlayerInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgPlayerInfoImpl(handle, isManuallyAllocated); - public string Name { get; set; } + public string Name { get; set; } - public ulong Xuid { get; set; } + public ulong Xuid { get; set; } - public int Userid { get; set; } + public int Userid { get; set; } - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } - public bool Fakeplayer { get; set; } + public bool Fakeplayer { get; set; } - public bool Ishltv { get; set; } + public bool Ishltv { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgQAngle.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgQAngle.cs index 02dd9afc0..324a31255 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgQAngle.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgQAngle.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgQAngle : ITypedProtobuf { - static CMsgQAngle ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgQAngleImpl(handle, isManuallyAllocated); + static CMsgQAngle ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgQAngleImpl(handle, isManuallyAllocated); - public float X { get; set; } + public float X { get; set; } - public float Y { get; set; } + public float Y { get; set; } - public float Z { get; set; } + public float Z { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgQuaternion.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgQuaternion.cs index 31ec39718..feef029dc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgQuaternion.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgQuaternion.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgQuaternion : ITypedProtobuf { - static CMsgQuaternion ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgQuaternionImpl(handle, isManuallyAllocated); + static CMsgQuaternion ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgQuaternionImpl(handle, isManuallyAllocated); - public float X { get; set; } + public float X { get; set; } - public float Y { get; set; } + public float Y { get; set; } - public float Z { get; set; } + public float Z { get; set; } - public float W { get; set; } + public float W { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRGBA.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRGBA.cs index 344af3209..22593d549 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRGBA.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRGBA.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgRGBA : ITypedProtobuf { - static CMsgRGBA ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgRGBAImpl(handle, isManuallyAllocated); + static CMsgRGBA ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgRGBAImpl(handle, isManuallyAllocated); - public int R { get; set; } + public int R { get; set; } - public int G { get; set; } + public int G { get; set; } - public int B { get; set; } + public int B { get; set; } - public int A { get; set; } + public int A { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRecurringMissionSchema.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRecurringMissionSchema.cs index e04657895..cdf6377ef 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRecurringMissionSchema.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRecurringMissionSchema.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgRecurringMissionSchema : ITypedProtobuf { - static CMsgRecurringMissionSchema ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgRecurringMissionSchemaImpl(handle, isManuallyAllocated); + static CMsgRecurringMissionSchema ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgRecurringMissionSchemaImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Missions { get; } + public IProtobufRepeatedFieldSubMessageType Missions { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRecurringMissionSchema_MissionTemplateList.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRecurringMissionSchema_MissionTemplateList.cs index b7dc81205..ad43c826b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRecurringMissionSchema_MissionTemplateList.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRecurringMissionSchema_MissionTemplateList.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgRecurringMissionSchema_MissionTemplateList : ITypedProtobuf { - static CMsgRecurringMissionSchema_MissionTemplateList ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgRecurringMissionSchema_MissionTemplateListImpl(handle, isManuallyAllocated); + static CMsgRecurringMissionSchema_MissionTemplateList ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgRecurringMissionSchema_MissionTemplateListImpl(handle, isManuallyAllocated); - public uint Period { get; set; } + public uint Period { get; set; } - public IProtobufRepeatedFieldValueType MissionTemplates { get; } + public IProtobufRepeatedFieldValueType MissionTemplates { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgReplayUploadedToYouTube.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgReplayUploadedToYouTube.cs index 1b4fce9ba..57532045c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgReplayUploadedToYouTube.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgReplayUploadedToYouTube.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgReplayUploadedToYouTube : ITypedProtobuf { - static CMsgReplayUploadedToYouTube ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgReplayUploadedToYouTubeImpl(handle, isManuallyAllocated); + static CMsgReplayUploadedToYouTube ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgReplayUploadedToYouTubeImpl(handle, isManuallyAllocated); - public string YoutubeUrl { get; set; } + public string YoutubeUrl { get; set; } - public string YoutubeAccountName { get; set; } + public string YoutubeAccountName { get; set; } - public ulong SessionId { get; set; } + public ulong SessionId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgReplicateConVars.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgReplicateConVars.cs index 02a5ef8da..f403e5d7b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgReplicateConVars.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgReplicateConVars.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgReplicateConVars : ITypedProtobuf { - static CMsgReplicateConVars ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgReplicateConVarsImpl(handle, isManuallyAllocated); + static CMsgReplicateConVars ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgReplicateConVarsImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Convars { get; } + public IProtobufRepeatedFieldSubMessageType Convars { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRequestInventoryRefresh.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRequestInventoryRefresh.cs index f2d303768..afc5f63cc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRequestInventoryRefresh.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRequestInventoryRefresh.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgRequestInventoryRefresh : ITypedProtobuf { - static CMsgRequestInventoryRefresh ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgRequestInventoryRefreshImpl(handle, isManuallyAllocated); + static CMsgRequestInventoryRefresh ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgRequestInventoryRefreshImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRequestRecurringMissionSchedule.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRequestRecurringMissionSchedule.cs index 450a7c68a..3c83d7221 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRequestRecurringMissionSchedule.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgRequestRecurringMissionSchedule.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgRequestRecurringMissionSchedule : ITypedProtobuf { - static CMsgRequestRecurringMissionSchedule ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgRequestRecurringMissionScheduleImpl(handle, isManuallyAllocated); + static CMsgRequestRecurringMissionSchedule ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgRequestRecurringMissionScheduleImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSDONoMemcached.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSDONoMemcached.cs index cf00f6b23..2959cc071 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSDONoMemcached.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSDONoMemcached.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSDONoMemcached : ITypedProtobuf { - static CMsgSDONoMemcached ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSDONoMemcachedImpl(handle, isManuallyAllocated); + static CMsgSDONoMemcached ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSDONoMemcachedImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheHaveVersion.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheHaveVersion.cs index d5ee484cb..885eeccfd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheHaveVersion.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheHaveVersion.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSOCacheHaveVersion : ITypedProtobuf { - static CMsgSOCacheHaveVersion ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSOCacheHaveVersionImpl(handle, isManuallyAllocated); + static CMsgSOCacheHaveVersion ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSOCacheHaveVersionImpl(handle, isManuallyAllocated); - public CMsgSOIDOwner Soid { get; } + public CMsgSOIDOwner Soid { get; } - public ulong Version { get; set; } + public ulong Version { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscribed.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscribed.cs index 4953bb427..8a0e11580 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscribed.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscribed.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSOCacheSubscribed : ITypedProtobuf { - static CMsgSOCacheSubscribed ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSOCacheSubscribedImpl(handle, isManuallyAllocated); + static CMsgSOCacheSubscribed ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSOCacheSubscribedImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Objects { get; } + public IProtobufRepeatedFieldSubMessageType Objects { get; } - public ulong Version { get; set; } + public ulong Version { get; set; } - public CMsgSOIDOwner OwnerSoid { get; } + public CMsgSOIDOwner OwnerSoid { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscribed_SubscribedType.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscribed_SubscribedType.cs index 1b76dfa40..603f1f8e9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscribed_SubscribedType.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscribed_SubscribedType.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSOCacheSubscribed_SubscribedType : ITypedProtobuf { - static CMsgSOCacheSubscribed_SubscribedType ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSOCacheSubscribed_SubscribedTypeImpl(handle, isManuallyAllocated); + static CMsgSOCacheSubscribed_SubscribedType ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSOCacheSubscribed_SubscribedTypeImpl(handle, isManuallyAllocated); - public int TypeId { get; set; } + public int TypeId { get; set; } - public IProtobufRepeatedFieldValueType ObjectData { get; } + public IProtobufRepeatedFieldValueType ObjectData { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscriptionCheck.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscriptionCheck.cs index f711f8c5d..646a245ca 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscriptionCheck.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscriptionCheck.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSOCacheSubscriptionCheck : ITypedProtobuf { - static CMsgSOCacheSubscriptionCheck ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSOCacheSubscriptionCheckImpl(handle, isManuallyAllocated); + static CMsgSOCacheSubscriptionCheck ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSOCacheSubscriptionCheckImpl(handle, isManuallyAllocated); - public ulong Version { get; set; } + public ulong Version { get; set; } - public CMsgSOIDOwner OwnerSoid { get; } + public CMsgSOIDOwner OwnerSoid { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscriptionRefresh.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscriptionRefresh.cs index e4088308d..989d902d7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscriptionRefresh.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheSubscriptionRefresh.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSOCacheSubscriptionRefresh : ITypedProtobuf { - static CMsgSOCacheSubscriptionRefresh ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSOCacheSubscriptionRefreshImpl(handle, isManuallyAllocated); + static CMsgSOCacheSubscriptionRefresh ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSOCacheSubscriptionRefreshImpl(handle, isManuallyAllocated); - public CMsgSOIDOwner OwnerSoid { get; } + public CMsgSOIDOwner OwnerSoid { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheUnsubscribed.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheUnsubscribed.cs index 1de858b1d..887cfd919 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheUnsubscribed.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheUnsubscribed.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSOCacheUnsubscribed : ITypedProtobuf { - static CMsgSOCacheUnsubscribed ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSOCacheUnsubscribedImpl(handle, isManuallyAllocated); + static CMsgSOCacheUnsubscribed ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSOCacheUnsubscribedImpl(handle, isManuallyAllocated); - public CMsgSOIDOwner OwnerSoid { get; } + public CMsgSOIDOwner OwnerSoid { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheVersion.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheVersion.cs index 5d052be91..3ad78e753 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheVersion.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOCacheVersion.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSOCacheVersion : ITypedProtobuf { - static CMsgSOCacheVersion ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSOCacheVersionImpl(handle, isManuallyAllocated); + static CMsgSOCacheVersion ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSOCacheVersionImpl(handle, isManuallyAllocated); - public ulong Version { get; set; } + public ulong Version { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOIDOwner.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOIDOwner.cs index 8cea128af..70e0dff9c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOIDOwner.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOIDOwner.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSOIDOwner : ITypedProtobuf { - static CMsgSOIDOwner ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSOIDOwnerImpl(handle, isManuallyAllocated); + static CMsgSOIDOwner ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSOIDOwnerImpl(handle, isManuallyAllocated); - public uint Type { get; set; } + public uint Type { get; set; } - public ulong Id { get; set; } + public ulong Id { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOMultipleObjects.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOMultipleObjects.cs index 074e56a5c..210571fa1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOMultipleObjects.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOMultipleObjects.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSOMultipleObjects : ITypedProtobuf { - static CMsgSOMultipleObjects ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSOMultipleObjectsImpl(handle, isManuallyAllocated); + static CMsgSOMultipleObjects ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSOMultipleObjectsImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType ObjectsModified { get; } + public IProtobufRepeatedFieldSubMessageType ObjectsModified { get; } - public ulong Version { get; set; } + public ulong Version { get; set; } - public CMsgSOIDOwner OwnerSoid { get; } + public CMsgSOIDOwner OwnerSoid { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOMultipleObjects_SingleObject.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOMultipleObjects_SingleObject.cs index bb674ea16..a75b8488e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOMultipleObjects_SingleObject.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOMultipleObjects_SingleObject.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSOMultipleObjects_SingleObject : ITypedProtobuf { - static CMsgSOMultipleObjects_SingleObject ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSOMultipleObjects_SingleObjectImpl(handle, isManuallyAllocated); + static CMsgSOMultipleObjects_SingleObject ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSOMultipleObjects_SingleObjectImpl(handle, isManuallyAllocated); - public int TypeId { get; set; } + public int TypeId { get; set; } - public byte[] ObjectData { get; set; } + public byte[] ObjectData { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOSingleObject.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOSingleObject.cs index 9e5571c48..a5e0811ee 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOSingleObject.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSOSingleObject.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSOSingleObject : ITypedProtobuf { - static CMsgSOSingleObject ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSOSingleObjectImpl(handle, isManuallyAllocated); + static CMsgSOSingleObject ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSOSingleObjectImpl(handle, isManuallyAllocated); - public int TypeId { get; set; } + public int TypeId { get; set; } - public byte[] ObjectData { get; set; } + public byte[] ObjectData { get; set; } - public ulong Version { get; set; } + public ulong Version { get; set; } - public CMsgSOIDOwner OwnerSoid { get; } + public CMsgSOIDOwner OwnerSoid { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache.cs index 884bc01e2..41a15cb13 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSerializedSOCache : ITypedProtobuf { - static CMsgSerializedSOCache ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSerializedSOCacheImpl(handle, isManuallyAllocated); + static CMsgSerializedSOCache ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSerializedSOCacheImpl(handle, isManuallyAllocated); - public uint FileVersion { get; set; } + public uint FileVersion { get; set; } - public IProtobufRepeatedFieldSubMessageType Caches { get; } + public IProtobufRepeatedFieldSubMessageType Caches { get; } - public uint GcSocacheFileVersion { get; set; } + public uint GcSocacheFileVersion { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache_Cache.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache_Cache.cs index 6319cd5cd..e82a04566 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache_Cache.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache_Cache.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSerializedSOCache_Cache : ITypedProtobuf { - static CMsgSerializedSOCache_Cache ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSerializedSOCache_CacheImpl(handle, isManuallyAllocated); + static CMsgSerializedSOCache_Cache ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSerializedSOCache_CacheImpl(handle, isManuallyAllocated); - public uint Type { get; set; } + public uint Type { get; set; } - public ulong Id { get; set; } + public ulong Id { get; set; } - public IProtobufRepeatedFieldSubMessageType Versions { get; } + public IProtobufRepeatedFieldSubMessageType Versions { get; } - public IProtobufRepeatedFieldSubMessageType TypeCaches { get; } + public IProtobufRepeatedFieldSubMessageType TypeCaches { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache_Cache_Version.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache_Cache_Version.cs index bd4e4d28a..5063a6dc7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache_Cache_Version.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache_Cache_Version.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSerializedSOCache_Cache_Version : ITypedProtobuf { - static CMsgSerializedSOCache_Cache_Version ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSerializedSOCache_Cache_VersionImpl(handle, isManuallyAllocated); + static CMsgSerializedSOCache_Cache_Version ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSerializedSOCache_Cache_VersionImpl(handle, isManuallyAllocated); - public uint Service { get; set; } + public uint Service { get; set; } - public ulong Version { get; set; } + public ulong Version { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache_TypeCache.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache_TypeCache.cs index e7ecf69c9..dc2cc1223 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache_TypeCache.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSerializedSOCache_TypeCache.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSerializedSOCache_TypeCache : ITypedProtobuf { - static CMsgSerializedSOCache_TypeCache ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSerializedSOCache_TypeCacheImpl(handle, isManuallyAllocated); + static CMsgSerializedSOCache_TypeCache ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSerializedSOCache_TypeCacheImpl(handle, isManuallyAllocated); - public uint Type { get; set; } + public uint Type { get; set; } - public IProtobufRepeatedFieldValueType Objects { get; } + public IProtobufRepeatedFieldValueType Objects { get; } - public uint ServiceId { get; set; } + public uint ServiceId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerAvailable.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerAvailable.cs index e683874cb..602b01ca3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerAvailable.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerAvailable.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgServerAvailable : ITypedProtobuf { - static CMsgServerAvailable ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgServerAvailableImpl(handle, isManuallyAllocated); + static CMsgServerAvailable ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgServerAvailableImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerHello.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerHello.cs index 3ed51f8c3..e22963d07 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerHello.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerHello.cs @@ -1,36 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgServerHello : ITypedProtobuf { - static CMsgServerHello ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgServerHelloImpl(handle, isManuallyAllocated); + static CMsgServerHello ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgServerHelloImpl(handle, isManuallyAllocated); - public uint Version { get; set; } + public uint Version { get; set; } - public IProtobufRepeatedFieldSubMessageType SocacheHaveVersions { get; } + public IProtobufRepeatedFieldSubMessageType SocacheHaveVersions { get; } - public uint LegacyClientSessionNeed { get; set; } + public uint LegacyClientSessionNeed { get; set; } - public uint ClientLauncher { get; set; } + public uint ClientLauncher { get; set; } - public byte[] LegacySteamdatagramRouting { get; set; } + public byte[] LegacySteamdatagramRouting { get; set; } - public uint RequiredInternalAddr { get; set; } + public uint RequiredInternalAddr { get; set; } - public byte[] SteamdatagramLogin { get; set; } + public byte[] SteamdatagramLogin { get; set; } - public uint SocacheControl { get; set; } + public uint SocacheControl { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerNetworkStats.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerNetworkStats.cs index cb2e5e1f2..693649bfa 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerNetworkStats.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerNetworkStats.cs @@ -1,87 +1,86 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgServerNetworkStats : ITypedProtobuf { - static CMsgServerNetworkStats ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgServerNetworkStatsImpl(handle, isManuallyAllocated); + static CMsgServerNetworkStats ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgServerNetworkStatsImpl(handle, isManuallyAllocated); - public bool Dedicated { get; set; } + public bool Dedicated { get; set; } - public int CpuUsage { get; set; } + public int CpuUsage { get; set; } - public int MemoryUsedMb { get; set; } + public int MemoryUsedMb { get; set; } - public int MemoryFreeMb { get; set; } + public int MemoryFreeMb { get; set; } - public int Uptime { get; set; } + public int Uptime { get; set; } - public int SpawnCount { get; set; } + public int SpawnCount { get; set; } - public int NumClients { get; set; } + public int NumClients { get; set; } - public int NumBots { get; set; } + public int NumBots { get; set; } - public int NumSpectators { get; set; } + public int NumSpectators { get; set; } - public int NumTvRelays { get; set; } + public int NumTvRelays { get; set; } - public float Fps { get; set; } + public float Fps { get; set; } - public IProtobufRepeatedFieldSubMessageType Ports { get; } + public IProtobufRepeatedFieldSubMessageType Ports { get; } - public float AvgPingMs { get; set; } + public float AvgPingMs { get; set; } - public float AvgEngineLatencyOut { get; set; } + public float AvgEngineLatencyOut { get; set; } - public float AvgPacketsOut { get; set; } + public float AvgPacketsOut { get; set; } - public float AvgPacketsIn { get; set; } + public float AvgPacketsIn { get; set; } - public float AvgLossOut { get; set; } + public float AvgLossOut { get; set; } - public float AvgLossIn { get; set; } + public float AvgLossIn { get; set; } - public float AvgDataOut { get; set; } + public float AvgDataOut { get; set; } - public float AvgDataIn { get; set; } + public float AvgDataIn { get; set; } - public ulong TotalDataIn { get; set; } + public ulong TotalDataIn { get; set; } - public ulong TotalPacketsIn { get; set; } + public ulong TotalPacketsIn { get; set; } - public ulong TotalDataOut { get; set; } + public ulong TotalDataOut { get; set; } - public ulong TotalPacketsOut { get; set; } + public ulong TotalPacketsOut { get; set; } - public IProtobufRepeatedFieldSubMessageType Players { get; } + public IProtobufRepeatedFieldSubMessageType Players { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerNetworkStats_Player.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerNetworkStats_Player.cs index e6e0ccab1..8dc36748e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerNetworkStats_Player.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerNetworkStats_Player.cs @@ -1,36 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgServerNetworkStats_Player : ITypedProtobuf { - static CMsgServerNetworkStats_Player ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgServerNetworkStats_PlayerImpl(handle, isManuallyAllocated); + static CMsgServerNetworkStats_Player ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgServerNetworkStats_PlayerImpl(handle, isManuallyAllocated); - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } - public string RemoteAddr { get; set; } + public string RemoteAddr { get; set; } - public int PingAvgMs { get; set; } + public int PingAvgMs { get; set; } - public float PacketLossPct { get; set; } + public float PacketLossPct { get; set; } - public bool IsBot { get; set; } + public bool IsBot { get; set; } - public float LossIn { get; set; } + public float LossIn { get; set; } - public float LossOut { get; set; } + public float LossOut { get; set; } - public int EngineLatencyMs { get; set; } + public int EngineLatencyMs { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerNetworkStats_Port.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerNetworkStats_Port.cs index e039bb38d..542bd1aaa 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerNetworkStats_Port.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerNetworkStats_Port.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgServerNetworkStats_Port : ITypedProtobuf { - static CMsgServerNetworkStats_Port ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgServerNetworkStats_PortImpl(handle, isManuallyAllocated); + static CMsgServerNetworkStats_Port ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgServerNetworkStats_PortImpl(handle, isManuallyAllocated); - public int Port { get; set; } + public int Port { get; set; } - public string Name { get; set; } + public string Name { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerPeer.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerPeer.cs index 054f1f83b..f526f6603 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerPeer.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerPeer.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgServerPeer : ITypedProtobuf { - static CMsgServerPeer ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgServerPeerImpl(handle, isManuallyAllocated); + static CMsgServerPeer ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgServerPeerImpl(handle, isManuallyAllocated); - public int PlayerSlot { get; set; } + public int PlayerSlot { get; set; } - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } - public CMsgIPCAddress Ipc { get; } + public CMsgIPCAddress Ipc { get; } - public bool TheyHearYou { get; set; } + public bool TheyHearYou { get; set; } - public bool YouHearThem { get; set; } + public bool YouHearThem { get; set; } - public bool IsListenserverHost { get; set; } + public bool IsListenserverHost { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerUserCmd.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerUserCmd.cs index f5d459666..9aeccdaaa 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerUserCmd.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgServerUserCmd.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgServerUserCmd : ITypedProtobuf { - static CMsgServerUserCmd ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgServerUserCmdImpl(handle, isManuallyAllocated); + static CMsgServerUserCmd ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgServerUserCmdImpl(handle, isManuallyAllocated); - public byte[] Data { get; set; } + public byte[] Data { get; set; } - public int CmdNumber { get; set; } + public int CmdNumber { get; set; } - public int PlayerSlot { get; set; } + public int PlayerSlot { get; set; } - public int ServerTickExecuted { get; set; } + public int ServerTickExecuted { get; set; } - public int ClientTick { get; set; } + public int ClientTick { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSetItemPositions.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSetItemPositions.cs index 068475267..ee3616f1c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSetItemPositions.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSetItemPositions.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSetItemPositions : ITypedProtobuf { - static CMsgSetItemPositions ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSetItemPositionsImpl(handle, isManuallyAllocated); + static CMsgSetItemPositions ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSetItemPositionsImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType ItemPositions { get; } + public IProtobufRepeatedFieldSubMessageType ItemPositions { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSetItemPositions_ItemPosition.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSetItemPositions_ItemPosition.cs index b58c94f2e..f9af5ea87 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSetItemPositions_ItemPosition.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSetItemPositions_ItemPosition.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSetItemPositions_ItemPosition : ITypedProtobuf { - static CMsgSetItemPositions_ItemPosition ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSetItemPositions_ItemPositionImpl(handle, isManuallyAllocated); + static CMsgSetItemPositions_ItemPosition ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSetItemPositions_ItemPositionImpl(handle, isManuallyAllocated); - public uint LegacyItemId { get; set; } + public uint LegacyItemId { get; set; } - public uint Position { get; set; } + public uint Position { get; set; } - public ulong ItemId { get; set; } + public ulong ItemId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSortItems.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSortItems.cs index 9dfaef80e..35a0ed505 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSortItems.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSortItems.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSortItems : ITypedProtobuf { - static CMsgSortItems ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSortItemsImpl(handle, isManuallyAllocated); + static CMsgSortItems ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSortItemsImpl(handle, isManuallyAllocated); - public uint SortType { get; set; } + public uint SortType { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosSetLibraryStackFields.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosSetLibraryStackFields.cs index f7b1e5fde..f8c554034 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosSetLibraryStackFields.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosSetLibraryStackFields.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgSosSetLibraryStackFields : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 211; - - static string INetMessage.MessageName => "CMsgSosSetLibraryStackFields"; + static int INetMessage.MessageId => 211; + + static string INetMessage.MessageName => "CMsgSosSetLibraryStackFields"; - static CMsgSosSetLibraryStackFields ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSosSetLibraryStackFieldsImpl(handle, isManuallyAllocated); + static CMsgSosSetLibraryStackFields ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSosSetLibraryStackFieldsImpl(handle, isManuallyAllocated); - public uint StackHash { get; set; } + public uint StackHash { get; set; } - public byte[] PackedFields { get; set; } + public byte[] PackedFields { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosSetSoundEventParams.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosSetSoundEventParams.cs index 5967b82a9..1f593a7d2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosSetSoundEventParams.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosSetSoundEventParams.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgSosSetSoundEventParams : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 210; - - static string INetMessage.MessageName => "CMsgSosSetSoundEventParams"; + static int INetMessage.MessageId => 210; + + static string INetMessage.MessageName => "CMsgSosSetSoundEventParams"; - static CMsgSosSetSoundEventParams ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSosSetSoundEventParamsImpl(handle, isManuallyAllocated); + static CMsgSosSetSoundEventParams ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSosSetSoundEventParamsImpl(handle, isManuallyAllocated); - public int SoundeventGuid { get; set; } + public int SoundeventGuid { get; set; } - public byte[] PackedParams { get; set; } + public byte[] PackedParams { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosStartSoundEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosStartSoundEvent.cs index 224f58db6..251173f90 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosStartSoundEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosStartSoundEvent.cs @@ -1,35 +1,34 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgSosStartSoundEvent : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 208; - - static string INetMessage.MessageName => "CMsgSosStartSoundEvent"; + static int INetMessage.MessageId => 208; + + static string INetMessage.MessageName => "CMsgSosStartSoundEvent"; - static CMsgSosStartSoundEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSosStartSoundEventImpl(handle, isManuallyAllocated); + static CMsgSosStartSoundEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSosStartSoundEventImpl(handle, isManuallyAllocated); - public int SoundeventGuid { get; set; } + public int SoundeventGuid { get; set; } - public uint SoundeventHash { get; set; } + public uint SoundeventHash { get; set; } - public int SourceEntityIndex { get; set; } + public int SourceEntityIndex { get; set; } - public int Seed { get; set; } + public int Seed { get; set; } - public byte[] PackedParams { get; set; } + public byte[] PackedParams { get; set; } - public float StartTime { get; set; } + public float StartTime { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosStopSoundEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosStopSoundEvent.cs index 2a68f3bc3..fddd706c0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosStopSoundEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosStopSoundEvent.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgSosStopSoundEvent : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 209; - - static string INetMessage.MessageName => "CMsgSosStopSoundEvent"; + static int INetMessage.MessageId => 209; + + static string INetMessage.MessageName => "CMsgSosStopSoundEvent"; - static CMsgSosStopSoundEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSosStopSoundEventImpl(handle, isManuallyAllocated); + static CMsgSosStopSoundEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSosStopSoundEventImpl(handle, isManuallyAllocated); - public int SoundeventGuid { get; set; } + public int SoundeventGuid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosStopSoundEventHash.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosStopSoundEventHash.cs index 93d2fe142..44f2a4b91 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosStopSoundEventHash.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSosStopSoundEventHash.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgSosStopSoundEventHash : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 212; - - static string INetMessage.MessageName => "CMsgSosStopSoundEventHash"; + static int INetMessage.MessageId => 212; + + static string INetMessage.MessageName => "CMsgSosStopSoundEventHash"; - static CMsgSosStopSoundEventHash ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSosStopSoundEventHashImpl(handle, isManuallyAllocated); + static CMsgSosStopSoundEventHash ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSosStopSoundEventHashImpl(handle, isManuallyAllocated); - public uint SoundeventHash { get; set; } + public uint SoundeventHash { get; set; } - public int SourceEntityIndex { get; set; } + public int SourceEntityIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEvent.cs index 22e99295e..c46b231b0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEvent.cs @@ -1,32 +1,31 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgSource1LegacyGameEvent : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 207; - - static string INetMessage.MessageName => "CMsgSource1LegacyGameEvent"; + static int INetMessage.MessageId => 207; + + static string INetMessage.MessageName => "CMsgSource1LegacyGameEvent"; - static CMsgSource1LegacyGameEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSource1LegacyGameEventImpl(handle, isManuallyAllocated); + static CMsgSource1LegacyGameEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSource1LegacyGameEventImpl(handle, isManuallyAllocated); - public string EventName { get; set; } + public string EventName { get; set; } - public int Eventid { get; set; } + public int Eventid { get; set; } - public IProtobufRepeatedFieldSubMessageType Keys { get; } + public IProtobufRepeatedFieldSubMessageType Keys { get; } - public int ServerTick { get; set; } + public int ServerTick { get; set; } - public int Passthrough { get; set; } + public int Passthrough { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEventList.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEventList.cs index 563344f1a..12d665529 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEventList.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEventList.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgSource1LegacyGameEventList : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 207; - - static string INetMessage.MessageName => "CMsgSource1LegacyGameEventList"; + static int INetMessage.MessageId => 207; + + static string INetMessage.MessageName => "CMsgSource1LegacyGameEventList"; - static CMsgSource1LegacyGameEventList ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSource1LegacyGameEventListImpl(handle, isManuallyAllocated); + static CMsgSource1LegacyGameEventList ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSource1LegacyGameEventListImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Descriptors { get; } + public IProtobufRepeatedFieldSubMessageType Descriptors { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEventList_descriptor_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEventList_descriptor_t.cs index 48f57103d..1b58e675b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEventList_descriptor_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEventList_descriptor_t.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSource1LegacyGameEventList_descriptor_t : ITypedProtobuf { - static CMsgSource1LegacyGameEventList_descriptor_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSource1LegacyGameEventList_descriptor_tImpl(handle, isManuallyAllocated); + static CMsgSource1LegacyGameEventList_descriptor_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSource1LegacyGameEventList_descriptor_tImpl(handle, isManuallyAllocated); - public int Eventid { get; set; } + public int Eventid { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public IProtobufRepeatedFieldSubMessageType Keys { get; } + public IProtobufRepeatedFieldSubMessageType Keys { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEventList_key_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEventList_key_t.cs index 130eb5a9c..7cb003aec 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEventList_key_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEventList_key_t.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSource1LegacyGameEventList_key_t : ITypedProtobuf { - static CMsgSource1LegacyGameEventList_key_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSource1LegacyGameEventList_key_tImpl(handle, isManuallyAllocated); + static CMsgSource1LegacyGameEventList_key_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSource1LegacyGameEventList_key_tImpl(handle, isManuallyAllocated); - public int Type { get; set; } + public int Type { get; set; } - public string Name { get; set; } + public string Name { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEvent_key_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEvent_key_t.cs index c69fe19ef..610811eb8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEvent_key_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyGameEvent_key_t.cs @@ -1,36 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSource1LegacyGameEvent_key_t : ITypedProtobuf { - static CMsgSource1LegacyGameEvent_key_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSource1LegacyGameEvent_key_tImpl(handle, isManuallyAllocated); + static CMsgSource1LegacyGameEvent_key_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSource1LegacyGameEvent_key_tImpl(handle, isManuallyAllocated); - public int Type { get; set; } + public int Type { get; set; } - public string ValString { get; set; } + public string ValString { get; set; } - public float ValFloat { get; set; } + public float ValFloat { get; set; } - public int ValLong { get; set; } + public int ValLong { get; set; } - public int ValShort { get; set; } + public int ValShort { get; set; } - public int ValByte { get; set; } + public int ValByte { get; set; } - public bool ValBool { get; set; } + public bool ValBool { get; set; } - public ulong ValUint64 { get; set; } + public ulong ValUint64 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyListenEvents.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyListenEvents.cs index ae369b6d2..f4d35db16 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyListenEvents.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource1LegacyListenEvents.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgSource1LegacyListenEvents : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 206; - - static string INetMessage.MessageName => "CMsgSource1LegacyListenEvents"; + static int INetMessage.MessageId => 206; + + static string INetMessage.MessageName => "CMsgSource1LegacyListenEvents"; - static CMsgSource1LegacyListenEvents ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSource1LegacyListenEventsImpl(handle, isManuallyAllocated); + static CMsgSource1LegacyListenEvents ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSource1LegacyListenEventsImpl(handle, isManuallyAllocated); - public int Playerslot { get; set; } + public int Playerslot { get; set; } - public IProtobufRepeatedFieldValueType Eventarraybits { get; } + public IProtobufRepeatedFieldValueType Eventarraybits { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2NetworkFlowQuality.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2NetworkFlowQuality.cs index c49a7dce5..097da3e3a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2NetworkFlowQuality.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2NetworkFlowQuality.cs @@ -1,144 +1,143 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSource2NetworkFlowQuality : ITypedProtobuf { - static CMsgSource2NetworkFlowQuality ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSource2NetworkFlowQualityImpl(handle, isManuallyAllocated); + static CMsgSource2NetworkFlowQuality ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSource2NetworkFlowQualityImpl(handle, isManuallyAllocated); - public uint Duration { get; set; } + public uint Duration { get; set; } - public ulong BytesTotal { get; set; } + public ulong BytesTotal { get; set; } - public ulong BytesTotalReliable { get; set; } + public ulong BytesTotalReliable { get; set; } - public ulong BytesTotalVoice { get; set; } + public ulong BytesTotalVoice { get; set; } - public uint BytesSecP95 { get; set; } + public uint BytesSecP95 { get; set; } - public uint BytesSecP99 { get; set; } + public uint BytesSecP99 { get; set; } - public uint EnginemsgsTotal { get; set; } + public uint EnginemsgsTotal { get; set; } - public uint EnginemsgsSecP95 { get; set; } + public uint EnginemsgsSecP95 { get; set; } - public uint EnginemsgsSecP99 { get; set; } + public uint EnginemsgsSecP99 { get; set; } - public uint NetframesTotal { get; set; } + public uint NetframesTotal { get; set; } - public uint NetframesDropped { get; set; } + public uint NetframesDropped { get; set; } - public uint NetframesOutoforder { get; set; } + public uint NetframesOutoforder { get; set; } - public uint NetframesSizeExceedsMtu { get; set; } + public uint NetframesSizeExceedsMtu { get; set; } - public uint NetframesSizeP95 { get; set; } + public uint NetframesSizeP95 { get; set; } - public uint NetframesSizeP99 { get; set; } + public uint NetframesSizeP99 { get; set; } - public uint TicksTotal { get; set; } + public uint TicksTotal { get; set; } - public uint TicksGood { get; set; } + public uint TicksGood { get; set; } - public uint TicksGoodAlmostLate { get; set; } + public uint TicksGoodAlmostLate { get; set; } - public uint TicksFixedDropped { get; set; } + public uint TicksFixedDropped { get; set; } - public uint TicksFixedLate { get; set; } + public uint TicksFixedLate { get; set; } - public uint TicksBadDropped { get; set; } + public uint TicksBadDropped { get; set; } - public uint TicksBadLate { get; set; } + public uint TicksBadLate { get; set; } - public uint TicksBadOther { get; set; } + public uint TicksBadOther { get; set; } - public uint TickMissrateSamplesTotal { get; set; } + public uint TickMissrateSamplesTotal { get; set; } - public uint TickMissrateSamplesPerfect { get; set; } + public uint TickMissrateSamplesPerfect { get; set; } - public uint TickMissrateSamplesPerfectnet { get; set; } + public uint TickMissrateSamplesPerfectnet { get; set; } - public uint TickMissratenetP75X10 { get; set; } + public uint TickMissratenetP75X10 { get; set; } - public uint TickMissratenetP95X10 { get; set; } + public uint TickMissratenetP95X10 { get; set; } - public uint TickMissratenetP99X10 { get; set; } + public uint TickMissratenetP99X10 { get; set; } - public int RecvmarginP1 { get; set; } + public int RecvmarginP1 { get; set; } - public int RecvmarginP5 { get; set; } + public int RecvmarginP5 { get; set; } - public int RecvmarginP25 { get; set; } + public int RecvmarginP25 { get; set; } - public int RecvmarginP50 { get; set; } + public int RecvmarginP50 { get; set; } - public int RecvmarginP75 { get; set; } + public int RecvmarginP75 { get; set; } - public int RecvmarginP95 { get; set; } + public int RecvmarginP95 { get; set; } - public uint NetframeJitterP50 { get; set; } + public uint NetframeJitterP50 { get; set; } - public uint NetframeJitterP99 { get; set; } + public uint NetframeJitterP99 { get; set; } - public uint IntervalPeakjitterP50 { get; set; } + public uint IntervalPeakjitterP50 { get; set; } - public uint IntervalPeakjitterP95 { get; set; } + public uint IntervalPeakjitterP95 { get; set; } - public uint PacketMisdeliveryRateP50X4 { get; set; } + public uint PacketMisdeliveryRateP50X4 { get; set; } - public uint PacketMisdeliveryRateP95X4 { get; set; } + public uint PacketMisdeliveryRateP95X4 { get; set; } - public uint NetPingP5 { get; set; } + public uint NetPingP5 { get; set; } - public uint NetPingP50 { get; set; } + public uint NetPingP50 { get; set; } - public uint NetPingP95 { get; set; } + public uint NetPingP95 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2PerfIntervalSample.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2PerfIntervalSample.cs index bf9532ddd..63dff9e06 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2PerfIntervalSample.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2PerfIntervalSample.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSource2PerfIntervalSample : ITypedProtobuf { - static CMsgSource2PerfIntervalSample ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSource2PerfIntervalSampleImpl(handle, isManuallyAllocated); + static CMsgSource2PerfIntervalSample ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSource2PerfIntervalSampleImpl(handle, isManuallyAllocated); - public float FrameTimeMaxMs { get; set; } + public float FrameTimeMaxMs { get; set; } - public float FrameTimeAvgMs { get; set; } + public float FrameTimeAvgMs { get; set; } - public float FrameTimeMinMs { get; set; } + public float FrameTimeMinMs { get; set; } - public int FrameCount { get; set; } + public int FrameCount { get; set; } - public float FrameTimeTotalMs { get; set; } + public float FrameTimeTotalMs { get; set; } - public IProtobufRepeatedFieldSubMessageType Tags { get; } + public IProtobufRepeatedFieldSubMessageType Tags { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2PerfIntervalSample_Tag.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2PerfIntervalSample_Tag.cs index 507602fbb..737503c12 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2PerfIntervalSample_Tag.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2PerfIntervalSample_Tag.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSource2PerfIntervalSample_Tag : ITypedProtobuf { - static CMsgSource2PerfIntervalSample_Tag ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSource2PerfIntervalSample_TagImpl(handle, isManuallyAllocated); + static CMsgSource2PerfIntervalSample_Tag ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSource2PerfIntervalSample_TagImpl(handle, isManuallyAllocated); - public string Tag { get; set; } + public string Tag { get; set; } - public uint MaxValue { get; set; } + public uint MaxValue { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2SystemSpecs.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2SystemSpecs.cs index f92f6b18c..d51e4585f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2SystemSpecs.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2SystemSpecs.cs @@ -1,54 +1,53 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSource2SystemSpecs : ITypedProtobuf { - static CMsgSource2SystemSpecs ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSource2SystemSpecsImpl(handle, isManuallyAllocated); + static CMsgSource2SystemSpecs ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSource2SystemSpecsImpl(handle, isManuallyAllocated); - public string CpuId { get; set; } + public string CpuId { get; set; } - public string CpuBrand { get; set; } + public string CpuBrand { get; set; } - public uint CpuModel { get; set; } + public uint CpuModel { get; set; } - public uint CpuNumPhysical { get; set; } + public uint CpuNumPhysical { get; set; } - public uint RamPhysicalTotalMb { get; set; } + public uint RamPhysicalTotalMb { get; set; } - public string GpuRendersystemDllName { get; set; } + public string GpuRendersystemDllName { get; set; } - public uint GpuVendorId { get; set; } + public uint GpuVendorId { get; set; } - public string GpuDriverName { get; set; } + public string GpuDriverName { get; set; } - public uint GpuDriverVersionHigh { get; set; } + public uint GpuDriverVersionHigh { get; set; } - public uint GpuDriverVersionLow { get; set; } + public uint GpuDriverVersionLow { get; set; } - public uint GpuDxSupportLevel { get; set; } + public uint GpuDxSupportLevel { get; set; } - public uint GpuTextureMemorySizeMb { get; set; } + public uint GpuTextureMemorySizeMb { get; set; } - public uint BackbufferWidth { get; set; } + public uint BackbufferWidth { get; set; } - public uint BackbufferHeight { get; set; } + public uint BackbufferHeight { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2VProfLiteReport.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2VProfLiteReport.cs index a6378d766..e6e075f3f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2VProfLiteReport.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2VProfLiteReport.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSource2VProfLiteReport : ITypedProtobuf { - static CMsgSource2VProfLiteReport ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSource2VProfLiteReportImpl(handle, isManuallyAllocated); + static CMsgSource2VProfLiteReport ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSource2VProfLiteReportImpl(handle, isManuallyAllocated); - public CMsgSource2VProfLiteReportItem Total { get; } + public CMsgSource2VProfLiteReportItem Total { get; } - public IProtobufRepeatedFieldSubMessageType Items { get; } + public IProtobufRepeatedFieldSubMessageType Items { get; } - public uint DiscardedFrames { get; set; } + public uint DiscardedFrames { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2VProfLiteReportItem.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2VProfLiteReportItem.cs index 6563b976f..5066bbbbd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2VProfLiteReportItem.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSource2VProfLiteReportItem.cs @@ -1,66 +1,65 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSource2VProfLiteReportItem : ITypedProtobuf { - static CMsgSource2VProfLiteReportItem ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSource2VProfLiteReportItemImpl(handle, isManuallyAllocated); + static CMsgSource2VProfLiteReportItem ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSource2VProfLiteReportItemImpl(handle, isManuallyAllocated); - public string Name { get; set; } + public string Name { get; set; } - public uint ActiveSamples { get; set; } + public uint ActiveSamples { get; set; } - public uint ActiveSamples1secmax { get; set; } + public uint ActiveSamples1secmax { get; set; } - public uint UsecMax { get; set; } + public uint UsecMax { get; set; } - public uint UsecAvgActive { get; set; } + public uint UsecAvgActive { get; set; } - public uint UsecP50Active { get; set; } + public uint UsecP50Active { get; set; } - public uint UsecP99Active { get; set; } + public uint UsecP99Active { get; set; } - public uint UsecAvgAll { get; set; } + public uint UsecAvgAll { get; set; } - public uint UsecP50All { get; set; } + public uint UsecP50All { get; set; } - public uint UsecP99All { get; set; } + public uint UsecP99All { get; set; } - public uint Usec1secmaxAvgActive { get; set; } + public uint Usec1secmaxAvgActive { get; set; } - public uint Usec1secmaxP50Active { get; set; } + public uint Usec1secmaxP50Active { get; set; } - public uint Usec1secmaxP95Active { get; set; } + public uint Usec1secmaxP95Active { get; set; } - public uint Usec1secmaxP99Active { get; set; } + public uint Usec1secmaxP99Active { get; set; } - public uint Usec1secmaxAvgAll { get; set; } + public uint Usec1secmaxAvgAll { get; set; } - public uint Usec1secmaxP50All { get; set; } + public uint Usec1secmaxP50All { get; set; } - public uint Usec1secmaxP95All { get; set; } + public uint Usec1secmaxP95All { get; set; } - public uint Usec1secmaxP99All { get; set; } + public uint Usec1secmaxP99All { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgStoreGetUserData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgStoreGetUserData.cs index da9c465ed..258fca5b5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgStoreGetUserData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgStoreGetUserData.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgStoreGetUserData : ITypedProtobuf { - static CMsgStoreGetUserData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgStoreGetUserDataImpl(handle, isManuallyAllocated); + static CMsgStoreGetUserData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgStoreGetUserDataImpl(handle, isManuallyAllocated); - public uint PriceSheetVersion { get; set; } + public uint PriceSheetVersion { get; set; } - public int Currency { get; set; } + public int Currency { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgStoreGetUserDataResponse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgStoreGetUserDataResponse.cs index 25d66c8d9..ba6138b9f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgStoreGetUserDataResponse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgStoreGetUserDataResponse.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgStoreGetUserDataResponse : ITypedProtobuf { - static CMsgStoreGetUserDataResponse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgStoreGetUserDataResponseImpl(handle, isManuallyAllocated); + static CMsgStoreGetUserDataResponse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgStoreGetUserDataResponseImpl(handle, isManuallyAllocated); - public int Result { get; set; } + public int Result { get; set; } - public int CurrencyDeprecated { get; set; } + public int CurrencyDeprecated { get; set; } - public string CountryDeprecated { get; set; } + public string CountryDeprecated { get; set; } - public uint PriceSheetVersion { get; set; } + public uint PriceSheetVersion { get; set; } - public byte[] PriceSheet { get; set; } + public byte[] PriceSheet { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSystemBroadcast.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSystemBroadcast.cs index ffa080be0..1bb05d47d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSystemBroadcast.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgSystemBroadcast.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgSystemBroadcast : ITypedProtobuf { - static CMsgSystemBroadcast ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgSystemBroadcastImpl(handle, isManuallyAllocated); + static CMsgSystemBroadcast ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgSystemBroadcastImpl(handle, isManuallyAllocated); - public string Message { get; set; } + public string Message { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEArmorRicochet.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEArmorRicochet.cs index 3c1b340f2..ba61b7be5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEArmorRicochet.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEArmorRicochet.cs @@ -1,23 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEArmorRicochet : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 401; - - static string INetMessage.MessageName => "CMsgTEArmorRicochet"; + static int INetMessage.MessageId => 401; + + static string INetMessage.MessageName => "CMsgTEArmorRicochet"; - static CMsgTEArmorRicochet ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEArmorRicochetImpl(handle, isManuallyAllocated); + static CMsgTEArmorRicochet ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEArmorRicochetImpl(handle, isManuallyAllocated); - public Vector Pos { get; set; } + public Vector Pos { get; set; } - public Vector Dir { get; set; } + public Vector Dir { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBaseBeam.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBaseBeam.cs index 5188b66f1..cf445eb75 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBaseBeam.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBaseBeam.cs @@ -1,48 +1,47 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgTEBaseBeam : ITypedProtobuf { - static CMsgTEBaseBeam ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEBaseBeamImpl(handle, isManuallyAllocated); + static CMsgTEBaseBeam ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEBaseBeamImpl(handle, isManuallyAllocated); - public ulong Modelindex { get; set; } + public ulong Modelindex { get; set; } - public ulong Haloindex { get; set; } + public ulong Haloindex { get; set; } - public uint Startframe { get; set; } + public uint Startframe { get; set; } - public uint Framerate { get; set; } + public uint Framerate { get; set; } - public float Life { get; set; } + public float Life { get; set; } - public float Width { get; set; } + public float Width { get; set; } - public float Endwidth { get; set; } + public float Endwidth { get; set; } - public uint Fadelength { get; set; } + public uint Fadelength { get; set; } - public float Amplitude { get; set; } + public float Amplitude { get; set; } - public uint Color { get; set; } + public uint Color { get; set; } - public uint Speed { get; set; } + public uint Speed { get; set; } - public uint Flags { get; set; } + public uint Flags { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamEntPoint.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamEntPoint.cs index d56922425..f5e18f1b3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamEntPoint.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamEntPoint.cs @@ -1,32 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEBeamEntPoint : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 402; - - static string INetMessage.MessageName => "CMsgTEBeamEntPoint"; + static int INetMessage.MessageId => 402; + + static string INetMessage.MessageName => "CMsgTEBeamEntPoint"; - static CMsgTEBeamEntPoint ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEBeamEntPointImpl(handle, isManuallyAllocated); + static CMsgTEBeamEntPoint ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEBeamEntPointImpl(handle, isManuallyAllocated); - public CMsgTEBaseBeam Base { get; } + public CMsgTEBaseBeam Base { get; } - public uint Startentity { get; set; } + public uint Startentity { get; set; } - public uint Endentity { get; set; } + public uint Endentity { get; set; } - public Vector Start { get; set; } + public Vector Start { get; set; } - public Vector End { get; set; } + public Vector End { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamEnts.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamEnts.cs index 106599b98..249650336 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamEnts.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamEnts.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEBeamEnts : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 403; - - static string INetMessage.MessageName => "CMsgTEBeamEnts"; + static int INetMessage.MessageId => 403; + + static string INetMessage.MessageName => "CMsgTEBeamEnts"; - static CMsgTEBeamEnts ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEBeamEntsImpl(handle, isManuallyAllocated); + static CMsgTEBeamEnts ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEBeamEntsImpl(handle, isManuallyAllocated); - public CMsgTEBaseBeam Base { get; } + public CMsgTEBaseBeam Base { get; } - public uint Startentity { get; set; } + public uint Startentity { get; set; } - public uint Endentity { get; set; } + public uint Endentity { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamPoints.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamPoints.cs index e365cd628..98326e0d1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamPoints.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamPoints.cs @@ -1,26 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEBeamPoints : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 404; - - static string INetMessage.MessageName => "CMsgTEBeamPoints"; + static int INetMessage.MessageId => 404; + + static string INetMessage.MessageName => "CMsgTEBeamPoints"; - static CMsgTEBeamPoints ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEBeamPointsImpl(handle, isManuallyAllocated); + static CMsgTEBeamPoints ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEBeamPointsImpl(handle, isManuallyAllocated); - public CMsgTEBaseBeam Base { get; } + public CMsgTEBaseBeam Base { get; } - public Vector Start { get; set; } + public Vector Start { get; set; } - public Vector End { get; set; } + public Vector End { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamRing.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamRing.cs index 57b0e93f6..ecce41b0f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamRing.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBeamRing.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEBeamRing : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 405; - - static string INetMessage.MessageName => "CMsgTEBeamRing"; + static int INetMessage.MessageId => 405; + + static string INetMessage.MessageName => "CMsgTEBeamRing"; - static CMsgTEBeamRing ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEBeamRingImpl(handle, isManuallyAllocated); + static CMsgTEBeamRing ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEBeamRingImpl(handle, isManuallyAllocated); - public CMsgTEBaseBeam Base { get; } + public CMsgTEBaseBeam Base { get; } - public uint Startentity { get; set; } + public uint Startentity { get; set; } - public uint Endentity { get; set; } + public uint Endentity { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBloodStream.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBloodStream.cs index ae1e6d149..da7a40eea 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBloodStream.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBloodStream.cs @@ -1,29 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEBloodStream : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 418; - - static string INetMessage.MessageName => "CMsgTEBloodStream"; + static int INetMessage.MessageId => 418; + + static string INetMessage.MessageName => "CMsgTEBloodStream"; - static CMsgTEBloodStream ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEBloodStreamImpl(handle, isManuallyAllocated); + static CMsgTEBloodStream ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEBloodStreamImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public Vector Direction { get; set; } + public Vector Direction { get; set; } - public uint Color { get; set; } + public uint Color { get; set; } - public uint Amount { get; set; } + public uint Amount { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBubbleTrail.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBubbleTrail.cs index 86eadc772..72dfb40a7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBubbleTrail.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBubbleTrail.cs @@ -1,32 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEBubbleTrail : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 409; - - static string INetMessage.MessageName => "CMsgTEBubbleTrail"; + static int INetMessage.MessageId => 409; + + static string INetMessage.MessageName => "CMsgTEBubbleTrail"; - static CMsgTEBubbleTrail ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEBubbleTrailImpl(handle, isManuallyAllocated); + static CMsgTEBubbleTrail ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEBubbleTrailImpl(handle, isManuallyAllocated); - public Vector Mins { get; set; } + public Vector Mins { get; set; } - public Vector Maxs { get; set; } + public Vector Maxs { get; set; } - public float Waterz { get; set; } + public float Waterz { get; set; } - public uint Count { get; set; } + public uint Count { get; set; } - public float Speed { get; set; } + public float Speed { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBubbles.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBubbles.cs index 4fcb52adb..06fe8e754 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBubbles.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEBubbles.cs @@ -1,32 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEBubbles : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 408; - - static string INetMessage.MessageName => "CMsgTEBubbles"; + static int INetMessage.MessageId => 408; + + static string INetMessage.MessageName => "CMsgTEBubbles"; - static CMsgTEBubbles ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEBubblesImpl(handle, isManuallyAllocated); + static CMsgTEBubbles ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEBubblesImpl(handle, isManuallyAllocated); - public Vector Mins { get; set; } + public Vector Mins { get; set; } - public Vector Maxs { get; set; } + public Vector Maxs { get; set; } - public float Height { get; set; } + public float Height { get; set; } - public uint Count { get; set; } + public uint Count { get; set; } - public float Speed { get; set; } + public float Speed { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEDecal.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEDecal.cs index 568ac6699..7afa2457d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEDecal.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEDecal.cs @@ -1,32 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEDecal : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 410; - - static string INetMessage.MessageName => "CMsgTEDecal"; + static int INetMessage.MessageId => 410; + + static string INetMessage.MessageName => "CMsgTEDecal"; - static CMsgTEDecal ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEDecalImpl(handle, isManuallyAllocated); + static CMsgTEDecal ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEDecalImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public Vector Start { get; set; } + public Vector Start { get; set; } - public int Entity { get; set; } + public int Entity { get; set; } - public uint Hitbox { get; set; } + public uint Hitbox { get; set; } - public uint Index { get; set; } + public uint Index { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEDust.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEDust.cs index c27ebe0e3..b4f3e972f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEDust.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEDust.cs @@ -1,29 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEDust : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 420; - - static string INetMessage.MessageName => "CMsgTEDust"; + static int INetMessage.MessageId => 420; + + static string INetMessage.MessageName => "CMsgTEDust"; - static CMsgTEDust ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEDustImpl(handle, isManuallyAllocated); + static CMsgTEDust ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEDustImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public float Size { get; set; } + public float Size { get; set; } - public float Speed { get; set; } + public float Speed { get; set; } - public Vector Direction { get; set; } + public Vector Direction { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEEffectDispatch.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEEffectDispatch.cs index 5fa3d142d..9f206cfd8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEEffectDispatch.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEEffectDispatch.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEEffectDispatch : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 400; - - static string INetMessage.MessageName => "CMsgTEEffectDispatch"; + static int INetMessage.MessageId => 400; + + static string INetMessage.MessageName => "CMsgTEEffectDispatch"; - static CMsgTEEffectDispatch ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEEffectDispatchImpl(handle, isManuallyAllocated); + static CMsgTEEffectDispatch ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEEffectDispatchImpl(handle, isManuallyAllocated); - public CMsgEffectData Effectdata { get; } + public CMsgEffectData Effectdata { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEEnergySplash.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEEnergySplash.cs index eb298658c..a4679ee95 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEEnergySplash.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEEnergySplash.cs @@ -1,26 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEEnergySplash : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 412; - - static string INetMessage.MessageName => "CMsgTEEnergySplash"; + static int INetMessage.MessageId => 412; + + static string INetMessage.MessageName => "CMsgTEEnergySplash"; - static CMsgTEEnergySplash ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEEnergySplashImpl(handle, isManuallyAllocated); + static CMsgTEEnergySplash ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEEnergySplashImpl(handle, isManuallyAllocated); - public Vector Pos { get; set; } + public Vector Pos { get; set; } - public Vector Dir { get; set; } + public Vector Dir { get; set; } - public bool Explosive { get; set; } + public bool Explosive { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEExplosion.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEExplosion.cs index 76198a80b..d66880a83 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEExplosion.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEExplosion.cs @@ -1,50 +1,50 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEExplosion : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 419; - - static string INetMessage.MessageName => "CMsgTEExplosion"; + static int INetMessage.MessageId => 419; + + static string INetMessage.MessageName => "CMsgTEExplosion"; - static CMsgTEExplosion ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEExplosionImpl(handle, isManuallyAllocated); + static CMsgTEExplosion ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEExplosionImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public uint Flags { get; set; } + public uint Flags { get; set; } - public Vector Normal { get; set; } + public Vector Normal { get; set; } - public uint Radius { get; set; } + public uint Radius { get; set; } - public uint Magnitude { get; set; } + public uint Magnitude { get; set; } - public bool AffectRagdolls { get; set; } + public bool AffectRagdolls { get; set; } - public string SoundName { get; set; } + public string SoundName { get; set; } - public uint ExplosionType { get; set; } + public uint ExplosionType { get; set; } - public bool CreateDebris { get; set; } + public bool CreateDebris { get; set; } - public Vector DebrisOrigin { get; set; } + public Vector DebrisOrigin { get; set; } - public uint DebrisSurfaceprop { get; set; } + public uint DebrisSurfaceprop { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEFireBullets.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEFireBullets.cs index f839e9848..0a98a19cc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEFireBullets.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEFireBullets.cs @@ -1,74 +1,74 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEFireBullets : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 452; - - static string INetMessage.MessageName => "CMsgTEFireBullets"; + static int INetMessage.MessageId => 452; + + static string INetMessage.MessageName => "CMsgTEFireBullets"; - static CMsgTEFireBullets ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEFireBulletsImpl(handle, isManuallyAllocated); + static CMsgTEFireBullets ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEFireBulletsImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public QAngle Angles { get; set; } + public QAngle Angles { get; set; } - public uint WeaponId { get; set; } + public uint WeaponId { get; set; } - public uint Mode { get; set; } + public uint Mode { get; set; } - public uint Seed { get; set; } + public uint Seed { get; set; } - public uint Player { get; set; } + public uint Player { get; set; } - public float Inaccuracy { get; set; } + public float Inaccuracy { get; set; } - public float RecoilIndex { get; set; } + public float RecoilIndex { get; set; } - public float Spread { get; set; } + public float Spread { get; set; } - public int SoundType { get; set; } + public int SoundType { get; set; } - public uint ItemDefIndex { get; set; } + public uint ItemDefIndex { get; set; } - public uint SoundDspEffect { get; set; } + public uint SoundDspEffect { get; set; } - public Vector EntOrigin { get; set; } + public Vector EntOrigin { get; set; } - public uint NumBulletsRemaining { get; set; } + public uint NumBulletsRemaining { get; set; } - public uint AttackType { get; set; } + public uint AttackType { get; set; } - public bool PlayerInair { get; set; } + public bool PlayerInair { get; set; } - public bool PlayerScoped { get; set; } + public bool PlayerScoped { get; set; } - public int Tick { get; set; } + public int Tick { get; set; } - public CMsgTEFireBullets_Extra Extra { get; } + public CMsgTEFireBullets_Extra Extra { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEFireBullets_Extra.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEFireBullets_Extra.cs index a841454db..0c0b7e07c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEFireBullets_Extra.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEFireBullets_Extra.cs @@ -7,30 +7,30 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgTEFireBullets_Extra : ITypedProtobuf { - static CMsgTEFireBullets_Extra ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEFireBullets_ExtraImpl(handle, isManuallyAllocated); + static CMsgTEFireBullets_Extra ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEFireBullets_ExtraImpl(handle, isManuallyAllocated); - public QAngle AimPunch { get; set; } + public QAngle AimPunch { get; set; } - public int AttackTickCount { get; set; } + public int AttackTickCount { get; set; } - public float AttackTickFrac { get; set; } + public float AttackTickFrac { get; set; } - public int RenderTickCount { get; set; } + public int RenderTickCount { get; set; } - public float RenderTickFrac { get; set; } + public float RenderTickFrac { get; set; } - public float InaccuracyMove { get; set; } + public float InaccuracyMove { get; set; } - public float InaccuracyAir { get; set; } + public float InaccuracyAir { get; set; } - public int Type { get; set; } + public int Type { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEFizz.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEFizz.cs index 729acdc48..e4517fd7c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEFizz.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEFizz.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEFizz : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 413; - - static string INetMessage.MessageName => "CMsgTEFizz"; + static int INetMessage.MessageId => 413; + + static string INetMessage.MessageName => "CMsgTEFizz"; - static CMsgTEFizz ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEFizzImpl(handle, isManuallyAllocated); + static CMsgTEFizz ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEFizzImpl(handle, isManuallyAllocated); - public int Entity { get; set; } + public int Entity { get; set; } - public uint Density { get; set; } + public uint Density { get; set; } - public int Current { get; set; } + public int Current { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEGlowSprite.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEGlowSprite.cs index d9436e943..41c52716b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEGlowSprite.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEGlowSprite.cs @@ -1,29 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEGlowSprite : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 415; - - static string INetMessage.MessageName => "CMsgTEGlowSprite"; + static int INetMessage.MessageId => 415; + + static string INetMessage.MessageName => "CMsgTEGlowSprite"; - static CMsgTEGlowSprite ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEGlowSpriteImpl(handle, isManuallyAllocated); + static CMsgTEGlowSprite ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEGlowSpriteImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public float Scale { get; set; } + public float Scale { get; set; } - public float Life { get; set; } + public float Life { get; set; } - public uint Brightness { get; set; } + public uint Brightness { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEImpact.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEImpact.cs index d29095ae4..4ac32a3a8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEImpact.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEImpact.cs @@ -1,26 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEImpact : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 416; - - static string INetMessage.MessageName => "CMsgTEImpact"; + static int INetMessage.MessageId => 416; + + static string INetMessage.MessageName => "CMsgTEImpact"; - static CMsgTEImpact ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEImpactImpl(handle, isManuallyAllocated); + static CMsgTEImpact ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEImpactImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public Vector Normal { get; set; } + public Vector Normal { get; set; } - public uint Type { get; set; } + public uint Type { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTELargeFunnel.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTELargeFunnel.cs index 4111ed6f2..37329bcbc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTELargeFunnel.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTELargeFunnel.cs @@ -1,23 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTELargeFunnel : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 421; - - static string INetMessage.MessageName => "CMsgTELargeFunnel"; + static int INetMessage.MessageId => 421; + + static string INetMessage.MessageName => "CMsgTELargeFunnel"; - static CMsgTELargeFunnel ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTELargeFunnelImpl(handle, isManuallyAllocated); + static CMsgTELargeFunnel ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTELargeFunnelImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public uint Reversed { get; set; } + public uint Reversed { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEMuzzleFlash.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEMuzzleFlash.cs index ece92fc8f..9a2df1a90 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEMuzzleFlash.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEMuzzleFlash.cs @@ -1,29 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEMuzzleFlash : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 417; - - static string INetMessage.MessageName => "CMsgTEMuzzleFlash"; + static int INetMessage.MessageId => 417; + + static string INetMessage.MessageName => "CMsgTEMuzzleFlash"; - static CMsgTEMuzzleFlash ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEMuzzleFlashImpl(handle, isManuallyAllocated); + static CMsgTEMuzzleFlash ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEMuzzleFlashImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public QAngle Angles { get; set; } + public QAngle Angles { get; set; } - public float Scale { get; set; } + public float Scale { get; set; } - public uint Type { get; set; } + public uint Type { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEPhysicsProp.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEPhysicsProp.cs index d98abd93f..8a8814b80 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEPhysicsProp.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEPhysicsProp.cs @@ -1,56 +1,56 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEPhysicsProp : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 423; - - static string INetMessage.MessageName => "CMsgTEPhysicsProp"; + static int INetMessage.MessageId => 423; + + static string INetMessage.MessageName => "CMsgTEPhysicsProp"; - static CMsgTEPhysicsProp ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEPhysicsPropImpl(handle, isManuallyAllocated); + static CMsgTEPhysicsProp ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEPhysicsPropImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public Vector Velocity { get; set; } + public Vector Velocity { get; set; } - public QAngle Angles { get; set; } + public QAngle Angles { get; set; } - public uint Skin { get; set; } + public uint Skin { get; set; } - public uint Flags { get; set; } + public uint Flags { get; set; } - public uint Effects { get; set; } + public uint Effects { get; set; } - public uint Color { get; set; } + public uint Color { get; set; } - public ulong Modelindex { get; set; } + public ulong Modelindex { get; set; } - public uint UnusedBreakmodelsnottomake { get; set; } + public uint UnusedBreakmodelsnottomake { get; set; } - public float Scale { get; set; } + public float Scale { get; set; } - public Vector Dmgpos { get; set; } + public Vector Dmgpos { get; set; } - public Vector Dmgdir { get; set; } + public Vector Dmgdir { get; set; } - public int Dmgtype { get; set; } + public int Dmgtype { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEPlayerAnimEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEPlayerAnimEvent.cs index f0d8fc7ac..7e75473f5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEPlayerAnimEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEPlayerAnimEvent.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEPlayerAnimEvent : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 450; - - static string INetMessage.MessageName => "CMsgTEPlayerAnimEvent"; + static int INetMessage.MessageId => 450; + + static string INetMessage.MessageName => "CMsgTEPlayerAnimEvent"; - static CMsgTEPlayerAnimEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEPlayerAnimEventImpl(handle, isManuallyAllocated); + static CMsgTEPlayerAnimEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEPlayerAnimEventImpl(handle, isManuallyAllocated); - public uint Player { get; set; } + public uint Player { get; set; } - public uint Event { get; set; } + public uint Event { get; set; } - public int Data { get; set; } + public int Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTERadioIcon.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTERadioIcon.cs index 13ed37512..e99f33339 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTERadioIcon.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTERadioIcon.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgTERadioIcon : ITypedProtobuf { - static CMsgTERadioIcon ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTERadioIconImpl(handle, isManuallyAllocated); + static CMsgTERadioIcon ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTERadioIconImpl(handle, isManuallyAllocated); - public uint Player { get; set; } + public uint Player { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEShatterSurface.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEShatterSurface.cs index 305165985..498e453cb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEShatterSurface.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEShatterSurface.cs @@ -1,47 +1,47 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEShatterSurface : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 414; - - static string INetMessage.MessageName => "CMsgTEShatterSurface"; + static int INetMessage.MessageId => 414; + + static string INetMessage.MessageName => "CMsgTEShatterSurface"; - static CMsgTEShatterSurface ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEShatterSurfaceImpl(handle, isManuallyAllocated); + static CMsgTEShatterSurface ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEShatterSurfaceImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public QAngle Angles { get; set; } + public QAngle Angles { get; set; } - public Vector Force { get; set; } + public Vector Force { get; set; } - public Vector Forcepos { get; set; } + public Vector Forcepos { get; set; } - public float Width { get; set; } + public float Width { get; set; } - public float Height { get; set; } + public float Height { get; set; } - public float Shardsize { get; set; } + public float Shardsize { get; set; } - public uint Surfacetype { get; set; } + public uint Surfacetype { get; set; } - public uint Frontcolor { get; set; } + public uint Frontcolor { get; set; } - public uint Backcolor { get; set; } + public uint Backcolor { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTESmoke.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTESmoke.cs index 8ba443f4c..ca29aa11b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTESmoke.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTESmoke.cs @@ -1,23 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTESmoke : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 426; - - static string INetMessage.MessageName => "CMsgTESmoke"; + static int INetMessage.MessageId => 426; + + static string INetMessage.MessageName => "CMsgTESmoke"; - static CMsgTESmoke ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTESmokeImpl(handle, isManuallyAllocated); + static CMsgTESmoke ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTESmokeImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public float Scale { get; set; } + public float Scale { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTESparks.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTESparks.cs index 58f389497..12614ee22 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTESparks.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTESparks.cs @@ -1,29 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTESparks : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 422; - - static string INetMessage.MessageName => "CMsgTESparks"; + static int INetMessage.MessageId => 422; + + static string INetMessage.MessageName => "CMsgTESparks"; - static CMsgTESparks ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTESparksImpl(handle, isManuallyAllocated); + static CMsgTESparks ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTESparksImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public uint Magnitude { get; set; } + public uint Magnitude { get; set; } - public uint Length { get; set; } + public uint Length { get; set; } - public Vector Direction { get; set; } + public Vector Direction { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEWorldDecal.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEWorldDecal.cs index 646be3b6b..e1e84614a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEWorldDecal.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTEWorldDecal.cs @@ -1,26 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgTEWorldDecal : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 411; - - static string INetMessage.MessageName => "CMsgTEWorldDecal"; + static int INetMessage.MessageId => 411; + + static string INetMessage.MessageName => "CMsgTEWorldDecal"; - static CMsgTEWorldDecal ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTEWorldDecalImpl(handle, isManuallyAllocated); + static CMsgTEWorldDecal ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTEWorldDecalImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public Vector Normal { get; set; } + public Vector Normal { get; set; } - public uint Index { get; set; } + public uint Index { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTransform.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTransform.cs index 57138f29f..9b586d7d6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTransform.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgTransform.cs @@ -7,15 +7,15 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgTransform : ITypedProtobuf { - static CMsgTransform ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgTransformImpl(handle, isManuallyAllocated); + static CMsgTransform ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgTransformImpl(handle, isManuallyAllocated); - public Vector Position { get; set; } + public Vector Position { get; set; } - public float Scale { get; set; } + public float Scale { get; set; } - public CMsgQuaternion Orientation { get; } + public CMsgQuaternion Orientation { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgUpdateItemSchema.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgUpdateItemSchema.cs index a77b75d3a..77a8a287a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgUpdateItemSchema.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgUpdateItemSchema.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgUpdateItemSchema : ITypedProtobuf { - static CMsgUpdateItemSchema ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgUpdateItemSchemaImpl(handle, isManuallyAllocated); + static CMsgUpdateItemSchema ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgUpdateItemSchemaImpl(handle, isManuallyAllocated); - public byte[] ItemsGame { get; set; } + public byte[] ItemsGame { get; set; } - public uint ItemSchemaVersion { get; set; } + public uint ItemSchemaVersion { get; set; } - public string ItemsGameUrl { get; set; } + public string ItemsGameUrl { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgUseItem.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgUseItem.cs index fd32e3ce1..26c420544 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgUseItem.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgUseItem.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgUseItem : ITypedProtobuf { - static CMsgUseItem ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgUseItemImpl(handle, isManuallyAllocated); + static CMsgUseItem ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgUseItemImpl(handle, isManuallyAllocated); - public ulong ItemId { get; set; } + public ulong ItemId { get; set; } - public ulong TargetSteamId { get; set; } + public ulong TargetSteamId { get; set; } - public IProtobufRepeatedFieldValueType GiftPotentialTargets { get; } + public IProtobufRepeatedFieldValueType GiftPotentialTargets { get; } - public uint DuelClassLock { get; set; } + public uint DuelClassLock { get; set; } - public ulong InitiatorSteamId { get; set; } + public ulong InitiatorSteamId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVDebugGameSessionIDEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVDebugGameSessionIDEvent.cs index f954555ce..5b03bdbb2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVDebugGameSessionIDEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVDebugGameSessionIDEvent.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CMsgVDebugGameSessionIDEvent : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 200; - - static string INetMessage.MessageName => "CMsgVDebugGameSessionIDEvent"; + static int INetMessage.MessageId => 200; + + static string INetMessage.MessageName => "CMsgVDebugGameSessionIDEvent"; - static CMsgVDebugGameSessionIDEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgVDebugGameSessionIDEventImpl(handle, isManuallyAllocated); + static CMsgVDebugGameSessionIDEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgVDebugGameSessionIDEventImpl(handle, isManuallyAllocated); - public int Clientid { get; set; } + public int Clientid { get; set; } - public string Gamesessionid { get; set; } + public string Gamesessionid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVector.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVector.cs index 160f62d1d..fd923acf8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVector.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVector.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgVector : ITypedProtobuf { - static CMsgVector ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgVectorImpl(handle, isManuallyAllocated); + static CMsgVector ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgVectorImpl(handle, isManuallyAllocated); - public float X { get; set; } + public float X { get; set; } - public float Y { get; set; } + public float Y { get; set; } - public float Z { get; set; } + public float Z { get; set; } - public float W { get; set; } + public float W { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVector2D.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVector2D.cs index 08ef9ccf6..4e7c5fe34 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVector2D.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVector2D.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgVector2D : ITypedProtobuf { - static CMsgVector2D ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgVector2DImpl(handle, isManuallyAllocated); + static CMsgVector2D ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgVector2DImpl(handle, isManuallyAllocated); - public float X { get; set; } + public float X { get; set; } - public float Y { get; set; } + public float Y { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVoiceAudio.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVoiceAudio.cs index f123b8042..6873a6bfa 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVoiceAudio.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsgVoiceAudio.cs @@ -1,39 +1,38 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsgVoiceAudio : ITypedProtobuf { - static CMsgVoiceAudio ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsgVoiceAudioImpl(handle, isManuallyAllocated); + static CMsgVoiceAudio ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsgVoiceAudioImpl(handle, isManuallyAllocated); - public VoiceDataFormat_t Format { get; set; } + public VoiceDataFormat_t Format { get; set; } - public byte[] VoiceData { get; set; } + public byte[] VoiceData { get; set; } - public int SequenceBytes { get; set; } + public int SequenceBytes { get; set; } - public uint SectionNumber { get; set; } + public uint SectionNumber { get; set; } - public uint SampleRate { get; set; } + public uint SampleRate { get; set; } - public uint UncompressedSampleOffset { get; set; } + public uint UncompressedSampleOffset { get; set; } - public uint NumPackets { get; set; } + public uint NumPackets { get; set; } - public IProtobufRepeatedFieldValueType PacketOffsets { get; } + public IProtobufRepeatedFieldValueType PacketOffsets { get; } - public float VoiceLevel { get; set; } + public float VoiceLevel { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsg_CVars.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsg_CVars.cs index b887064e5..c5dfeabf5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsg_CVars.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsg_CVars.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsg_CVars : ITypedProtobuf { - static CMsg_CVars ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsg_CVarsImpl(handle, isManuallyAllocated); + static CMsg_CVars ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsg_CVarsImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Cvars { get; } + public IProtobufRepeatedFieldSubMessageType Cvars { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsg_CVars_CVar.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsg_CVars_CVar.cs index 63afb1d81..c31268ea7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsg_CVars_CVar.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CMsg_CVars_CVar.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CMsg_CVars_CVar : ITypedProtobuf { - static CMsg_CVars_CVar ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CMsg_CVars_CVarImpl(handle, isManuallyAllocated); + static CMsg_CVars_CVar ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CMsg_CVars_CVarImpl(handle, isManuallyAllocated); - public string Name { get; set; } + public string Name { get; set; } - public string Value { get; set; } + public string Value { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_DebugOverlay.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_DebugOverlay.cs index a677e5986..d0f2fc063 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_DebugOverlay.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_DebugOverlay.cs @@ -1,41 +1,41 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CNETMsg_DebugOverlay : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 15; - - static string INetMessage.MessageName => "CNETMsg_DebugOverlay"; + static int INetMessage.MessageId => 15; + + static string INetMessage.MessageName => "CNETMsg_DebugOverlay"; - static CNETMsg_DebugOverlay ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CNETMsg_DebugOverlayImpl(handle, isManuallyAllocated); + static CNETMsg_DebugOverlay ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CNETMsg_DebugOverlayImpl(handle, isManuallyAllocated); - public int Etype { get; set; } + public int Etype { get; set; } - public IProtobufRepeatedFieldValueType Vectors { get; } + public IProtobufRepeatedFieldValueType Vectors { get; } - public IProtobufRepeatedFieldValueType Colors { get; } + public IProtobufRepeatedFieldValueType Colors { get; } - public IProtobufRepeatedFieldValueType Dimensions { get; } + public IProtobufRepeatedFieldValueType Dimensions { get; } - public IProtobufRepeatedFieldValueType Times { get; } + public IProtobufRepeatedFieldValueType Times { get; } - public IProtobufRepeatedFieldValueType Bools { get; } + public IProtobufRepeatedFieldValueType Bools { get; } - public IProtobufRepeatedFieldValueType Uint64s { get; } + public IProtobufRepeatedFieldValueType Uint64s { get; } - public IProtobufRepeatedFieldValueType Strings { get; } + public IProtobufRepeatedFieldValueType Strings { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_NOP.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_NOP.cs index 4e6a27bba..69abadd59 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_NOP.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_NOP.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CNETMsg_NOP : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 0; - - static string INetMessage.MessageName => "CNETMsg_NOP"; + static int INetMessage.MessageId => 0; + + static string INetMessage.MessageName => "CNETMsg_NOP"; - static CNETMsg_NOP ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CNETMsg_NOPImpl(handle, isManuallyAllocated); + static CNETMsg_NOP ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CNETMsg_NOPImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SetConVar.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SetConVar.cs index c07da653b..cc66910a9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SetConVar.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SetConVar.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CNETMsg_SetConVar : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 6; - - static string INetMessage.MessageName => "CNETMsg_SetConVar"; + static int INetMessage.MessageId => 6; + + static string INetMessage.MessageName => "CNETMsg_SetConVar"; - static CNETMsg_SetConVar ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CNETMsg_SetConVarImpl(handle, isManuallyAllocated); + static CNETMsg_SetConVar ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CNETMsg_SetConVarImpl(handle, isManuallyAllocated); - public CMsg_CVars Convars { get; } + public CMsg_CVars Convars { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SignonState.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SignonState.cs index 91071c516..a8e993e2b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SignonState.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SignonState.cs @@ -1,35 +1,34 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CNETMsg_SignonState : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 7; - - static string INetMessage.MessageName => "CNETMsg_SignonState"; + static int INetMessage.MessageId => 7; + + static string INetMessage.MessageName => "CNETMsg_SignonState"; - static CNETMsg_SignonState ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CNETMsg_SignonStateImpl(handle, isManuallyAllocated); + static CNETMsg_SignonState ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CNETMsg_SignonStateImpl(handle, isManuallyAllocated); - public SignonState_t SignonState { get; set; } + public SignonState_t SignonState { get; set; } - public uint SpawnCount { get; set; } + public uint SpawnCount { get; set; } - public uint NumServerPlayers { get; set; } + public uint NumServerPlayers { get; set; } - public IProtobufRepeatedFieldValueType PlayersNetworkids { get; } + public IProtobufRepeatedFieldValueType PlayersNetworkids { get; } - public string MapName { get; set; } + public string MapName { get; set; } - public string Addons { get; set; } + public string Addons { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_Load.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_Load.cs index 45e57dc79..1c735708c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_Load.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_Load.cs @@ -1,77 +1,77 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CNETMsg_SpawnGroup_Load : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 8; - - static string INetMessage.MessageName => "CNETMsg_SpawnGroup_Load"; + static int INetMessage.MessageId => 8; + + static string INetMessage.MessageName => "CNETMsg_SpawnGroup_Load"; - static CNETMsg_SpawnGroup_Load ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CNETMsg_SpawnGroup_LoadImpl(handle, isManuallyAllocated); + static CNETMsg_SpawnGroup_Load ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CNETMsg_SpawnGroup_LoadImpl(handle, isManuallyAllocated); - public string Worldname { get; set; } + public string Worldname { get; set; } - public string Entitylumpname { get; set; } + public string Entitylumpname { get; set; } - public string Entityfiltername { get; set; } + public string Entityfiltername { get; set; } - public uint Spawngrouphandle { get; set; } + public uint Spawngrouphandle { get; set; } - public uint Spawngroupownerhandle { get; set; } + public uint Spawngroupownerhandle { get; set; } - public Vector WorldOffsetPos { get; set; } + public Vector WorldOffsetPos { get; set; } - public QAngle WorldOffsetAngle { get; set; } + public QAngle WorldOffsetAngle { get; set; } - public byte[] Spawngroupmanifest { get; set; } + public byte[] Spawngroupmanifest { get; set; } - public uint Flags { get; set; } + public uint Flags { get; set; } - public int Tickcount { get; set; } + public int Tickcount { get; set; } - public bool Manifestincomplete { get; set; } + public bool Manifestincomplete { get; set; } - public string Localnamefixup { get; set; } + public string Localnamefixup { get; set; } - public string Parentnamefixup { get; set; } + public string Parentnamefixup { get; set; } - public int Manifestloadpriority { get; set; } + public int Manifestloadpriority { get; set; } - public uint Worldgroupid { get; set; } + public uint Worldgroupid { get; set; } - public uint Creationsequence { get; set; } + public uint Creationsequence { get; set; } - public string Savegamefilename { get; set; } + public string Savegamefilename { get; set; } - public uint Spawngroupparenthandle { get; set; } + public uint Spawngroupparenthandle { get; set; } - public bool Leveltransition { get; set; } + public bool Leveltransition { get; set; } - public string Worldgroupname { get; set; } + public string Worldgroupname { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_LoadCompleted.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_LoadCompleted.cs index 80eec1eb8..26bbe17b8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_LoadCompleted.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_LoadCompleted.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CNETMsg_SpawnGroup_LoadCompleted : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 13; - - static string INetMessage.MessageName => "CNETMsg_SpawnGroup_LoadCompleted"; + static int INetMessage.MessageId => 13; + + static string INetMessage.MessageName => "CNETMsg_SpawnGroup_LoadCompleted"; - static CNETMsg_SpawnGroup_LoadCompleted ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CNETMsg_SpawnGroup_LoadCompletedImpl(handle, isManuallyAllocated); + static CNETMsg_SpawnGroup_LoadCompleted ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CNETMsg_SpawnGroup_LoadCompletedImpl(handle, isManuallyAllocated); - public uint Spawngrouphandle { get; set; } + public uint Spawngrouphandle { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_ManifestUpdate.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_ManifestUpdate.cs index 6215c6e2f..d2d866007 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_ManifestUpdate.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_ManifestUpdate.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CNETMsg_SpawnGroup_ManifestUpdate : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 9; - - static string INetMessage.MessageName => "CNETMsg_SpawnGroup_ManifestUpdate"; + static int INetMessage.MessageId => 9; + + static string INetMessage.MessageName => "CNETMsg_SpawnGroup_ManifestUpdate"; - static CNETMsg_SpawnGroup_ManifestUpdate ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CNETMsg_SpawnGroup_ManifestUpdateImpl(handle, isManuallyAllocated); + static CNETMsg_SpawnGroup_ManifestUpdate ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CNETMsg_SpawnGroup_ManifestUpdateImpl(handle, isManuallyAllocated); - public uint Spawngrouphandle { get; set; } + public uint Spawngrouphandle { get; set; } - public byte[] Spawngroupmanifest { get; set; } + public byte[] Spawngroupmanifest { get; set; } - public bool Manifestincomplete { get; set; } + public bool Manifestincomplete { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_SetCreationTick.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_SetCreationTick.cs index 160ceb725..06afdf57c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_SetCreationTick.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_SetCreationTick.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CNETMsg_SpawnGroup_SetCreationTick : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 11; - - static string INetMessage.MessageName => "CNETMsg_SpawnGroup_SetCreationTick"; + static int INetMessage.MessageId => 11; + + static string INetMessage.MessageName => "CNETMsg_SpawnGroup_SetCreationTick"; - static CNETMsg_SpawnGroup_SetCreationTick ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CNETMsg_SpawnGroup_SetCreationTickImpl(handle, isManuallyAllocated); + static CNETMsg_SpawnGroup_SetCreationTick ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CNETMsg_SpawnGroup_SetCreationTickImpl(handle, isManuallyAllocated); - public uint Spawngrouphandle { get; set; } + public uint Spawngrouphandle { get; set; } - public int Tickcount { get; set; } + public int Tickcount { get; set; } - public uint Creationsequence { get; set; } + public uint Creationsequence { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_Unload.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_Unload.cs index 34d552c51..3b54d3d49 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_Unload.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SpawnGroup_Unload.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CNETMsg_SpawnGroup_Unload : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 12; - - static string INetMessage.MessageName => "CNETMsg_SpawnGroup_Unload"; + static int INetMessage.MessageId => 12; + + static string INetMessage.MessageName => "CNETMsg_SpawnGroup_Unload"; - static CNETMsg_SpawnGroup_Unload ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CNETMsg_SpawnGroup_UnloadImpl(handle, isManuallyAllocated); + static CNETMsg_SpawnGroup_Unload ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CNETMsg_SpawnGroup_UnloadImpl(handle, isManuallyAllocated); - public uint Spawngrouphandle { get; set; } + public uint Spawngrouphandle { get; set; } - public uint Flags { get; set; } + public uint Flags { get; set; } - public int Tickcount { get; set; } + public int Tickcount { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SplitScreenUser.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SplitScreenUser.cs index ef67ca5ea..bbf859839 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SplitScreenUser.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_SplitScreenUser.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CNETMsg_SplitScreenUser : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 3; - - static string INetMessage.MessageName => "CNETMsg_SplitScreenUser"; + static int INetMessage.MessageId => 3; + + static string INetMessage.MessageName => "CNETMsg_SplitScreenUser"; - static CNETMsg_SplitScreenUser ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CNETMsg_SplitScreenUserImpl(handle, isManuallyAllocated); + static CNETMsg_SplitScreenUser ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CNETMsg_SplitScreenUserImpl(handle, isManuallyAllocated); - public int Slot { get; set; } + public int Slot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_StringCmd.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_StringCmd.cs index 2ea45e2ea..f0ab8a224 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_StringCmd.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_StringCmd.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CNETMsg_StringCmd : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 5; - - static string INetMessage.MessageName => "CNETMsg_StringCmd"; + static int INetMessage.MessageId => 5; + + static string INetMessage.MessageName => "CNETMsg_StringCmd"; - static CNETMsg_StringCmd ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CNETMsg_StringCmdImpl(handle, isManuallyAllocated); + static CNETMsg_StringCmd ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CNETMsg_StringCmdImpl(handle, isManuallyAllocated); - public string Command { get; set; } + public string Command { get; set; } - public uint PredictionSync { get; set; } + public uint PredictionSync { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_Tick.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_Tick.cs index 8e19f8030..0cef00906 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_Tick.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CNETMsg_Tick.cs @@ -1,47 +1,46 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CNETMsg_Tick : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 4; - - static string INetMessage.MessageName => "CNETMsg_Tick"; + static int INetMessage.MessageId => 4; + + static string INetMessage.MessageName => "CNETMsg_Tick"; - static CNETMsg_Tick ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CNETMsg_TickImpl(handle, isManuallyAllocated); + static CNETMsg_Tick ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CNETMsg_TickImpl(handle, isManuallyAllocated); - public uint Tick { get; set; } + public uint Tick { get; set; } - public uint HostComputationtime { get; set; } + public uint HostComputationtime { get; set; } - public uint HostComputationtimeStdDeviation { get; set; } + public uint HostComputationtimeStdDeviation { get; set; } - public uint LegacyHostLoss { get; set; } + public uint LegacyHostLoss { get; set; } - public uint HostUnfilteredFrametime { get; set; } + public uint HostUnfilteredFrametime { get; set; } - public uint HltvReplayFlags { get; set; } + public uint HltvReplayFlags { get; set; } - public uint ExpectedLongTick { get; set; } + public uint ExpectedLongTick { get; set; } - public string ExpectedLongTickReason { get; set; } + public string ExpectedLongTickReason { get; set; } - public uint HostFrameDroppedPctX10 { get; set; } + public uint HostFrameDroppedPctX10 { get; set; } - public uint HostFrameIrregularArrivalPctX10 { get; set; } + public uint HostFrameIrregularArrivalPctX10 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_Ping.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_Ping.cs index 805e4d0f4..85123509d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_Ping.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_Ping.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CP2P_Ping : ITypedProtobuf { - static CP2P_Ping ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CP2P_PingImpl(handle, isManuallyAllocated); + static CP2P_Ping ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CP2P_PingImpl(handle, isManuallyAllocated); - public ulong SendTime { get; set; } + public ulong SendTime { get; set; } - public bool IsReply { get; set; } + public bool IsReply { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_TextMessage.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_TextMessage.cs index a7a8b5db9..47e597260 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_TextMessage.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_TextMessage.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CP2P_TextMessage : ITypedProtobuf { - static CP2P_TextMessage ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CP2P_TextMessageImpl(handle, isManuallyAllocated); + static CP2P_TextMessage ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CP2P_TextMessageImpl(handle, isManuallyAllocated); - public byte[] Text { get; set; } + public byte[] Text { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_VRAvatarPosition.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_VRAvatarPosition.cs index 5495b8341..04bb035ef 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_VRAvatarPosition.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_VRAvatarPosition.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CP2P_VRAvatarPosition : ITypedProtobuf { - static CP2P_VRAvatarPosition ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CP2P_VRAvatarPositionImpl(handle, isManuallyAllocated); + static CP2P_VRAvatarPosition ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CP2P_VRAvatarPositionImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType BodyParts { get; } + public IProtobufRepeatedFieldSubMessageType BodyParts { get; } - public int HatId { get; set; } + public int HatId { get; set; } - public int SceneId { get; set; } + public int SceneId { get; set; } - public int WorldScale { get; set; } + public int WorldScale { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_VRAvatarPosition_COrientation.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_VRAvatarPosition_COrientation.cs index 100f4f397..4dd75917a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_VRAvatarPosition_COrientation.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_VRAvatarPosition_COrientation.cs @@ -7,12 +7,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CP2P_VRAvatarPosition_COrientation : ITypedProtobuf { - static CP2P_VRAvatarPosition_COrientation ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CP2P_VRAvatarPosition_COrientationImpl(handle, isManuallyAllocated); + static CP2P_VRAvatarPosition_COrientation ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CP2P_VRAvatarPosition_COrientationImpl(handle, isManuallyAllocated); - public Vector Pos { get; set; } + public Vector Pos { get; set; } - public QAngle Ang { get; set; } + public QAngle Ang { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_Voice.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_Voice.cs index 9e5f6f807..207272666 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_Voice.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_Voice.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CP2P_Voice : ITypedProtobuf { - static CP2P_Voice ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CP2P_VoiceImpl(handle, isManuallyAllocated); + static CP2P_Voice ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CP2P_VoiceImpl(handle, isManuallyAllocated); - public CMsgVoiceAudio Audio { get; } + public CMsgVoiceAudio Audio { get; } - public uint BroadcastGroup { get; set; } + public uint BroadcastGroup { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_WatchSynchronization.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_WatchSynchronization.cs index 8d15a2570..3e0bbd49a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_WatchSynchronization.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CP2P_WatchSynchronization.cs @@ -1,36 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CP2P_WatchSynchronization : ITypedProtobuf { - static CP2P_WatchSynchronization ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CP2P_WatchSynchronizationImpl(handle, isManuallyAllocated); + static CP2P_WatchSynchronization ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CP2P_WatchSynchronizationImpl(handle, isManuallyAllocated); - public int DemoTick { get; set; } + public int DemoTick { get; set; } - public bool Paused { get; set; } + public bool Paused { get; set; } - public ulong TvListenVoiceIndices { get; set; } + public ulong TvListenVoiceIndices { get; set; } - public int DotaSpectatorMode { get; set; } + public int DotaSpectatorMode { get; set; } - public bool DotaSpectatorWatchingBroadcaster { get; set; } + public bool DotaSpectatorWatchingBroadcaster { get; set; } - public int DotaSpectatorHeroIndex { get; set; } + public int DotaSpectatorHeroIndex { get; set; } - public int DotaSpectatorAutospeed { get; set; } + public int DotaSpectatorAutospeed { get; set; } - public int DotaReplaySpeed { get; set; } + public int DotaReplaySpeed { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPreMatchInfoData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPreMatchInfoData.cs index c85040ce1..d62091778 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPreMatchInfoData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPreMatchInfoData.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CPreMatchInfoData : ITypedProtobuf { - static CPreMatchInfoData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CPreMatchInfoDataImpl(handle, isManuallyAllocated); + static CPreMatchInfoData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CPreMatchInfoDataImpl(handle, isManuallyAllocated); - public int PredictionsPct { get; set; } + public int PredictionsPct { get; set; } - public CDataGCCStrike15_v2_TournamentMatchDraft Draft { get; } + public CDataGCCStrike15_v2_TournamentMatchDraft Draft { get; } - public IProtobufRepeatedFieldSubMessageType Stats { get; } + public IProtobufRepeatedFieldSubMessageType Stats { get; } - public IProtobufRepeatedFieldValueType Wins { get; } + public IProtobufRepeatedFieldValueType Wins { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPreMatchInfoData_TeamStats.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPreMatchInfoData_TeamStats.cs index 1d96a5504..01bee8058 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPreMatchInfoData_TeamStats.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPreMatchInfoData_TeamStats.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CPreMatchInfoData_TeamStats : ITypedProtobuf { - static CPreMatchInfoData_TeamStats ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CPreMatchInfoData_TeamStatsImpl(handle, isManuallyAllocated); + static CPreMatchInfoData_TeamStats ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CPreMatchInfoData_TeamStatsImpl(handle, isManuallyAllocated); - public int MatchInfoIdxtxt { get; set; } + public int MatchInfoIdxtxt { get; set; } - public string MatchInfoTxt { get; set; } + public string MatchInfoTxt { get; set; } - public IProtobufRepeatedFieldValueType MatchInfoTeams { get; } + public IProtobufRepeatedFieldValueType MatchInfoTeams { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPredictionEvent_Diagnostic.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPredictionEvent_Diagnostic.cs index d3cb4d73e..b2e5f3d97 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPredictionEvent_Diagnostic.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPredictionEvent_Diagnostic.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CPredictionEvent_Diagnostic : ITypedProtobuf { - static CPredictionEvent_Diagnostic ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CPredictionEvent_DiagnosticImpl(handle, isManuallyAllocated); + static CPredictionEvent_Diagnostic ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CPredictionEvent_DiagnosticImpl(handle, isManuallyAllocated); - public uint Id { get; set; } + public uint Id { get; set; } - public uint RequestedSync { get; set; } + public uint RequestedSync { get; set; } - public uint RequestedPlayerIndex { get; set; } + public uint RequestedPlayerIndex { get; set; } - public IProtobufRepeatedFieldValueType ExecutionSync { get; } + public IProtobufRepeatedFieldValueType ExecutionSync { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPredictionEvent_StringCommand.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPredictionEvent_StringCommand.cs index 587438dec..d9e011ced 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPredictionEvent_StringCommand.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPredictionEvent_StringCommand.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CPredictionEvent_StringCommand : ITypedProtobuf { - static CPredictionEvent_StringCommand ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CPredictionEvent_StringCommandImpl(handle, isManuallyAllocated); + static CPredictionEvent_StringCommand ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CPredictionEvent_StringCommandImpl(handle, isManuallyAllocated); - public string Command { get; set; } + public string Command { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPredictionEvent_Teleport.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPredictionEvent_Teleport.cs index 0c8eee6a6..0ac40c2c7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPredictionEvent_Teleport.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CPredictionEvent_Teleport.cs @@ -7,15 +7,15 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CPredictionEvent_Teleport : ITypedProtobuf { - static CPredictionEvent_Teleport ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CPredictionEvent_TeleportImpl(handle, isManuallyAllocated); + static CPredictionEvent_Teleport ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CPredictionEvent_TeleportImpl(handle, isManuallyAllocated); - public Vector Origin { get; set; } + public Vector Origin { get; set; } - public QAngle Angles { get; set; } + public QAngle Angles { get; set; } - public float DropToGroundRange { get; set; } + public float DropToGroundRange { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Request.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Request.cs index 015ff1d60..59781aa85 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Request.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Request.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CProductInfo_SetRichPresenceLocalization_Request : ITypedProtobuf { - static CProductInfo_SetRichPresenceLocalization_Request ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CProductInfo_SetRichPresenceLocalization_RequestImpl(handle, isManuallyAllocated); + static CProductInfo_SetRichPresenceLocalization_Request ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CProductInfo_SetRichPresenceLocalization_RequestImpl(handle, isManuallyAllocated); - public uint Appid { get; set; } + public uint Appid { get; set; } - public IProtobufRepeatedFieldSubMessageType Languages { get; } + public IProtobufRepeatedFieldSubMessageType Languages { get; } - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Request_LanguageSection.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Request_LanguageSection.cs index 3f708d2f8..c223c6708 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Request_LanguageSection.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Request_LanguageSection.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CProductInfo_SetRichPresenceLocalization_Request_LanguageSection : ITypedProtobuf { - static CProductInfo_SetRichPresenceLocalization_Request_LanguageSection ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CProductInfo_SetRichPresenceLocalization_Request_LanguageSectionImpl(handle, isManuallyAllocated); + static CProductInfo_SetRichPresenceLocalization_Request_LanguageSection ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CProductInfo_SetRichPresenceLocalization_Request_LanguageSectionImpl(handle, isManuallyAllocated); - public string Language { get; set; } + public string Language { get; set; } - public IProtobufRepeatedFieldSubMessageType Tokens { get; } + public IProtobufRepeatedFieldSubMessageType Tokens { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Request_Token.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Request_Token.cs index 0fa9a6ae3..95cc45652 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Request_Token.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Request_Token.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CProductInfo_SetRichPresenceLocalization_Request_Token : ITypedProtobuf { - static CProductInfo_SetRichPresenceLocalization_Request_Token ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CProductInfo_SetRichPresenceLocalization_Request_TokenImpl(handle, isManuallyAllocated); + static CProductInfo_SetRichPresenceLocalization_Request_Token ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CProductInfo_SetRichPresenceLocalization_Request_TokenImpl(handle, isManuallyAllocated); - public string Token { get; set; } + public string Token { get; set; } - public string Value { get; set; } + public string Value { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Response.cs index 19ac13dea..8b5fad2d3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CProductInfo_SetRichPresenceLocalization_Response.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CProductInfo_SetRichPresenceLocalization_Response : ITypedProtobuf { - static CProductInfo_SetRichPresenceLocalization_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CProductInfo_SetRichPresenceLocalization_ResponseImpl(handle, isManuallyAllocated); + static CProductInfo_SetRichPresenceLocalization_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CProductInfo_SetRichPresenceLocalization_ResponseImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CQuest_PublisherAddCommunityItemsToPlayer_Request.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CQuest_PublisherAddCommunityItemsToPlayer_Request.cs index 790ec2043..c07b23694 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CQuest_PublisherAddCommunityItemsToPlayer_Request.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CQuest_PublisherAddCommunityItemsToPlayer_Request.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CQuest_PublisherAddCommunityItemsToPlayer_Request : ITypedProtobuf { - static CQuest_PublisherAddCommunityItemsToPlayer_Request ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CQuest_PublisherAddCommunityItemsToPlayer_RequestImpl(handle, isManuallyAllocated); + static CQuest_PublisherAddCommunityItemsToPlayer_Request ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CQuest_PublisherAddCommunityItemsToPlayer_RequestImpl(handle, isManuallyAllocated); - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } - public uint Appid { get; set; } + public uint Appid { get; set; } - public uint MatchItemType { get; set; } + public uint MatchItemType { get; set; } - public uint MatchItemClass { get; set; } + public uint MatchItemClass { get; set; } - public string PrefixItemName { get; set; } + public string PrefixItemName { get; set; } - public IProtobufRepeatedFieldSubMessageType Attributes { get; } + public IProtobufRepeatedFieldSubMessageType Attributes { get; } - public string Note { get; set; } + public string Note { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CQuest_PublisherAddCommunityItemsToPlayer_Request_Attribute.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CQuest_PublisherAddCommunityItemsToPlayer_Request_Attribute.cs index 6e53f65a3..beaa08563 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CQuest_PublisherAddCommunityItemsToPlayer_Request_Attribute.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CQuest_PublisherAddCommunityItemsToPlayer_Request_Attribute.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CQuest_PublisherAddCommunityItemsToPlayer_Request_Attribute : ITypedProtobuf { - static CQuest_PublisherAddCommunityItemsToPlayer_Request_Attribute ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CQuest_PublisherAddCommunityItemsToPlayer_Request_AttributeImpl(handle, isManuallyAllocated); + static CQuest_PublisherAddCommunityItemsToPlayer_Request_Attribute ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CQuest_PublisherAddCommunityItemsToPlayer_Request_AttributeImpl(handle, isManuallyAllocated); - public uint Attribute { get; set; } + public uint Attribute { get; set; } - public ulong Value { get; set; } + public ulong Value { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CQuest_PublisherAddCommunityItemsToPlayer_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CQuest_PublisherAddCommunityItemsToPlayer_Response.cs index 15f15a2ab..4a63ee790 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CQuest_PublisherAddCommunityItemsToPlayer_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CQuest_PublisherAddCommunityItemsToPlayer_Response.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CQuest_PublisherAddCommunityItemsToPlayer_Response : ITypedProtobuf { - static CQuest_PublisherAddCommunityItemsToPlayer_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CQuest_PublisherAddCommunityItemsToPlayer_ResponseImpl(handle, isManuallyAllocated); + static CQuest_PublisherAddCommunityItemsToPlayer_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CQuest_PublisherAddCommunityItemsToPlayer_ResponseImpl(handle, isManuallyAllocated); - public uint ItemsMatched { get; set; } + public uint ItemsMatched { get; set; } - public uint ItemsGranted { get; set; } + public uint ItemsGranted { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOInputHistoryEntryPB.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOInputHistoryEntryPB.cs index 95636f1fb..a2e5a8ede 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOInputHistoryEntryPB.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOInputHistoryEntryPB.cs @@ -7,51 +7,51 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSGOInputHistoryEntryPB : ITypedProtobuf { - static CSGOInputHistoryEntryPB ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSGOInputHistoryEntryPBImpl(handle, isManuallyAllocated); + static CSGOInputHistoryEntryPB ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSGOInputHistoryEntryPBImpl(handle, isManuallyAllocated); - public QAngle ViewAngles { get; set; } + public QAngle ViewAngles { get; set; } - public int RenderTickCount { get; set; } + public int RenderTickCount { get; set; } - public float RenderTickFraction { get; set; } + public float RenderTickFraction { get; set; } - public int PlayerTickCount { get; set; } + public int PlayerTickCount { get; set; } - public float PlayerTickFraction { get; set; } + public float PlayerTickFraction { get; set; } - public CSGOInterpolationInfoPB_CL ClInterp { get; } + public CSGOInterpolationInfoPB_CL ClInterp { get; } - public CSGOInterpolationInfoPB SvInterp0 { get; } + public CSGOInterpolationInfoPB SvInterp0 { get; } - public CSGOInterpolationInfoPB SvInterp1 { get; } + public CSGOInterpolationInfoPB SvInterp1 { get; } - public CSGOInterpolationInfoPB PlayerInterp { get; } + public CSGOInterpolationInfoPB PlayerInterp { get; } - public int FrameNumber { get; set; } + public int FrameNumber { get; set; } - public int TargetEntIndex { get; set; } + public int TargetEntIndex { get; set; } - public Vector ShootPosition { get; set; } + public Vector ShootPosition { get; set; } - public Vector TargetHeadPosCheck { get; set; } + public Vector TargetHeadPosCheck { get; set; } - public Vector TargetAbsPosCheck { get; set; } + public Vector TargetAbsPosCheck { get; set; } - public QAngle TargetAbsAngCheck { get; set; } + public QAngle TargetAbsAngCheck { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOInterpolationInfoPB.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOInterpolationInfoPB.cs index 4cb01902e..f84d69980 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOInterpolationInfoPB.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOInterpolationInfoPB.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSGOInterpolationInfoPB : ITypedProtobuf { - static CSGOInterpolationInfoPB ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSGOInterpolationInfoPBImpl(handle, isManuallyAllocated); + static CSGOInterpolationInfoPB ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSGOInterpolationInfoPBImpl(handle, isManuallyAllocated); - public int SrcTick { get; set; } + public int SrcTick { get; set; } - public int DstTick { get; set; } + public int DstTick { get; set; } - public float Frac { get; set; } + public float Frac { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOInterpolationInfoPB_CL.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOInterpolationInfoPB_CL.cs index c6a2dd2b4..fd3301a80 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOInterpolationInfoPB_CL.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOInterpolationInfoPB_CL.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSGOInterpolationInfoPB_CL : ITypedProtobuf { - static CSGOInterpolationInfoPB_CL ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSGOInterpolationInfoPB_CLImpl(handle, isManuallyAllocated); + static CSGOInterpolationInfoPB_CL ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSGOInterpolationInfoPB_CLImpl(handle, isManuallyAllocated); - public float Frac { get; set; } + public float Frac { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOUserCmdPB.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOUserCmdPB.cs index 3f8fd1dab..62e03d648 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOUserCmdPB.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSGOUserCmdPB.cs @@ -1,36 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSGOUserCmdPB : ITypedProtobuf { - static CSGOUserCmdPB ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSGOUserCmdPBImpl(handle, isManuallyAllocated); + static CSGOUserCmdPB ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSGOUserCmdPBImpl(handle, isManuallyAllocated); - public CBaseUserCmdPB Base { get; } + public CBaseUserCmdPB Base { get; } - public IProtobufRepeatedFieldSubMessageType InputHistory { get; } + public IProtobufRepeatedFieldSubMessageType InputHistory { get; } - public int Attack1StartHistoryIndex { get; set; } + public int Attack1StartHistoryIndex { get; set; } - public int Attack2StartHistoryIndex { get; set; } + public int Attack2StartHistoryIndex { get; set; } - public bool LeftHandDesired { get; set; } + public bool LeftHandDesired { get; set; } - public bool IsPredictingBodyShotFx { get; set; } + public bool IsPredictingBodyShotFx { get; set; } - public bool IsPredictingHeadShotFx { get; set; } + public bool IsPredictingHeadShotFx { get; set; } - public bool IsPredictingKillRagdolls { get; set; } + public bool IsPredictingKillRagdolls { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountItemPersonalStore.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountItemPersonalStore.cs index 77c21b1c5..c7d5930d3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountItemPersonalStore.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountItemPersonalStore.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOAccountItemPersonalStore : ITypedProtobuf { - static CSOAccountItemPersonalStore ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOAccountItemPersonalStoreImpl(handle, isManuallyAllocated); + static CSOAccountItemPersonalStore ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOAccountItemPersonalStoreImpl(handle, isManuallyAllocated); - public uint GenerationTime { get; set; } + public uint GenerationTime { get; set; } - public uint RedeemableBalance { get; set; } + public uint RedeemableBalance { get; set; } - public IProtobufRepeatedFieldValueType Items { get; } + public IProtobufRepeatedFieldValueType Items { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountKeychainRemoveToolCharges.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountKeychainRemoveToolCharges.cs index 1dd086902..6c8dd0fc3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountKeychainRemoveToolCharges.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountKeychainRemoveToolCharges.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOAccountKeychainRemoveToolCharges : ITypedProtobuf { - static CSOAccountKeychainRemoveToolCharges ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOAccountKeychainRemoveToolChargesImpl(handle, isManuallyAllocated); + static CSOAccountKeychainRemoveToolCharges ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOAccountKeychainRemoveToolChargesImpl(handle, isManuallyAllocated); - public uint Charges { get; set; } + public uint Charges { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountRecurringMission.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountRecurringMission.cs index 8e2c940be..6d40bb631 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountRecurringMission.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountRecurringMission.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOAccountRecurringMission : ITypedProtobuf { - static CSOAccountRecurringMission ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOAccountRecurringMissionImpl(handle, isManuallyAllocated); + static CSOAccountRecurringMission ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOAccountRecurringMissionImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint MissionId { get; set; } + public uint MissionId { get; set; } - public uint Period { get; set; } + public uint Period { get; set; } - public uint Progress { get; set; } + public uint Progress { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountRecurringSubscription.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountRecurringSubscription.cs index 7514e6dc9..925b73675 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountRecurringSubscription.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountRecurringSubscription.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOAccountRecurringSubscription : ITypedProtobuf { - static CSOAccountRecurringSubscription ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOAccountRecurringSubscriptionImpl(handle, isManuallyAllocated); + static CSOAccountRecurringSubscription ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOAccountRecurringSubscriptionImpl(handle, isManuallyAllocated); - public uint TimeNextCycle { get; set; } + public uint TimeNextCycle { get; set; } - public uint TimeInitiated { get; set; } + public uint TimeInitiated { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountSeasonalOperation.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountSeasonalOperation.cs index 65f9e6b69..2500e2edc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountSeasonalOperation.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountSeasonalOperation.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOAccountSeasonalOperation : ITypedProtobuf { - static CSOAccountSeasonalOperation ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOAccountSeasonalOperationImpl(handle, isManuallyAllocated); + static CSOAccountSeasonalOperation ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOAccountSeasonalOperationImpl(handle, isManuallyAllocated); - public uint SeasonValue { get; set; } + public uint SeasonValue { get; set; } - public uint TierUnlocked { get; set; } + public uint TierUnlocked { get; set; } - public uint PremiumTiers { get; set; } + public uint PremiumTiers { get; set; } - public uint MissionId { get; set; } + public uint MissionId { get; set; } - public uint MissionsCompleted { get; set; } + public uint MissionsCompleted { get; set; } - public uint RedeemableBalance { get; set; } + public uint RedeemableBalance { get; set; } - public uint SeasonPassTime { get; set; } + public uint SeasonPassTime { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountXpShop.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountXpShop.cs index 1888e6b5d..e08efb488 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountXpShop.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountXpShop.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOAccountXpShop : ITypedProtobuf { - static CSOAccountXpShop ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOAccountXpShopImpl(handle, isManuallyAllocated); + static CSOAccountXpShop ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOAccountXpShopImpl(handle, isManuallyAllocated); - public uint GenerationTime { get; set; } + public uint GenerationTime { get; set; } - public uint RedeemableBalance { get; set; } + public uint RedeemableBalance { get; set; } - public IProtobufRepeatedFieldValueType XpTracks { get; } + public IProtobufRepeatedFieldValueType XpTracks { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountXpShopBids.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountXpShopBids.cs index 3e83afbc3..f558ac36e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountXpShopBids.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOAccountXpShopBids.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOAccountXpShopBids : ITypedProtobuf { - static CSOAccountXpShopBids ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOAccountXpShopBidsImpl(handle, isManuallyAllocated); + static CSOAccountXpShopBids ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOAccountXpShopBidsImpl(handle, isManuallyAllocated); - public uint CampaignId { get; set; } + public uint CampaignId { get; set; } - public uint RedeemId { get; set; } + public uint RedeemId { get; set; } - public uint ExpectedCost { get; set; } + public uint ExpectedCost { get; set; } - public uint GenerationTime { get; set; } + public uint GenerationTime { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconClaimCode.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconClaimCode.cs index e091c0d16..553fefee5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconClaimCode.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconClaimCode.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOEconClaimCode : ITypedProtobuf { - static CSOEconClaimCode ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOEconClaimCodeImpl(handle, isManuallyAllocated); + static CSOEconClaimCode ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOEconClaimCodeImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint CodeType { get; set; } + public uint CodeType { get; set; } - public uint TimeAcquired { get; set; } + public uint TimeAcquired { get; set; } - public string Code { get; set; } + public string Code { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconCoupon.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconCoupon.cs index 2a10c16df..e7bf4ed4e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconCoupon.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconCoupon.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOEconCoupon : ITypedProtobuf { - static CSOEconCoupon ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOEconCouponImpl(handle, isManuallyAllocated); + static CSOEconCoupon ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOEconCouponImpl(handle, isManuallyAllocated); - public uint Entryid { get; set; } + public uint Entryid { get; set; } - public uint Defidx { get; set; } + public uint Defidx { get; set; } - public uint ExpirationDate { get; set; } + public uint ExpirationDate { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconDefaultEquippedDefinitionInstanceClient.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconDefaultEquippedDefinitionInstanceClient.cs index 09eee9729..576a529d1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconDefaultEquippedDefinitionInstanceClient.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconDefaultEquippedDefinitionInstanceClient.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOEconDefaultEquippedDefinitionInstanceClient : ITypedProtobuf { - static CSOEconDefaultEquippedDefinitionInstanceClient ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOEconDefaultEquippedDefinitionInstanceClientImpl(handle, isManuallyAllocated); + static CSOEconDefaultEquippedDefinitionInstanceClient ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOEconDefaultEquippedDefinitionInstanceClientImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint ItemDefinition { get; set; } + public uint ItemDefinition { get; set; } - public uint ClassId { get; set; } + public uint ClassId { get; set; } - public uint SlotId { get; set; } + public uint SlotId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconEquipSlot.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconEquipSlot.cs index d9b19a40f..2f04e16fe 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconEquipSlot.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconEquipSlot.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOEconEquipSlot : ITypedProtobuf { - static CSOEconEquipSlot ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOEconEquipSlotImpl(handle, isManuallyAllocated); + static CSOEconEquipSlot ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOEconEquipSlotImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint ClassId { get; set; } + public uint ClassId { get; set; } - public uint SlotId { get; set; } + public uint SlotId { get; set; } - public ulong ItemId { get; set; } + public ulong ItemId { get; set; } - public uint ItemDefinition { get; set; } + public uint ItemDefinition { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconGameAccountClient.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconGameAccountClient.cs index 44442e7db..c81c57988 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconGameAccountClient.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconGameAccountClient.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOEconGameAccountClient : ITypedProtobuf { - static CSOEconGameAccountClient ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOEconGameAccountClientImpl(handle, isManuallyAllocated); + static CSOEconGameAccountClient ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOEconGameAccountClientImpl(handle, isManuallyAllocated); - public uint AdditionalBackpackSlots { get; set; } + public uint AdditionalBackpackSlots { get; set; } - public uint TradeBanExpiration { get; set; } + public uint TradeBanExpiration { get; set; } - public uint BonusXpTimestampRefresh { get; set; } + public uint BonusXpTimestampRefresh { get; set; } - public uint BonusXpUsedflags { get; set; } + public uint BonusXpUsedflags { get; set; } - public uint ElevatedState { get; set; } + public uint ElevatedState { get; set; } - public uint ElevatedTimestamp { get; set; } + public uint ElevatedTimestamp { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItem.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItem.cs index f444e1bc4..59a2d68e3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItem.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItem.cs @@ -1,66 +1,65 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOEconItem : ITypedProtobuf { - static CSOEconItem ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOEconItemImpl(handle, isManuallyAllocated); + static CSOEconItem ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOEconItemImpl(handle, isManuallyAllocated); - public ulong Id { get; set; } + public ulong Id { get; set; } - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint Inventory { get; set; } + public uint Inventory { get; set; } - public uint DefIndex { get; set; } + public uint DefIndex { get; set; } - public uint Quantity { get; set; } + public uint Quantity { get; set; } - public uint Level { get; set; } + public uint Level { get; set; } - public uint Quality { get; set; } + public uint Quality { get; set; } - public uint Flags { get; set; } + public uint Flags { get; set; } - public uint Origin { get; set; } + public uint Origin { get; set; } - public string CustomName { get; set; } + public string CustomName { get; set; } - public string CustomDesc { get; set; } + public string CustomDesc { get; set; } - public IProtobufRepeatedFieldSubMessageType Attribute { get; } + public IProtobufRepeatedFieldSubMessageType Attribute { get; } - public CSOEconItem InteriorItem { get; } + public CSOEconItem InteriorItem { get; } - public bool InUse { get; set; } + public bool InUse { get; set; } - public uint Style { get; set; } + public uint Style { get; set; } - public ulong OriginalId { get; set; } + public ulong OriginalId { get; set; } - public IProtobufRepeatedFieldSubMessageType EquippedState { get; } + public IProtobufRepeatedFieldSubMessageType EquippedState { get; } - public uint Rarity { get; set; } + public uint Rarity { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemAttribute.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemAttribute.cs index df26c48ae..23f3b643f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemAttribute.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemAttribute.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOEconItemAttribute : ITypedProtobuf { - static CSOEconItemAttribute ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOEconItemAttributeImpl(handle, isManuallyAllocated); + static CSOEconItemAttribute ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOEconItemAttributeImpl(handle, isManuallyAllocated); - public uint DefIndex { get; set; } + public uint DefIndex { get; set; } - public uint Value { get; set; } + public uint Value { get; set; } - public byte[] ValueBytes { get; set; } + public byte[] ValueBytes { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemDropRateBonus.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemDropRateBonus.cs index 933a3bf84..37b1aa7a6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemDropRateBonus.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemDropRateBonus.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOEconItemDropRateBonus : ITypedProtobuf { - static CSOEconItemDropRateBonus ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOEconItemDropRateBonusImpl(handle, isManuallyAllocated); + static CSOEconItemDropRateBonus ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOEconItemDropRateBonusImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint ExpirationDate { get; set; } + public uint ExpirationDate { get; set; } - public float Bonus { get; set; } + public float Bonus { get; set; } - public uint BonusCount { get; set; } + public uint BonusCount { get; set; } - public ulong ItemId { get; set; } + public ulong ItemId { get; set; } - public uint DefIndex { get; set; } + public uint DefIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemEquipped.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemEquipped.cs index 1ae7ee49c..681efb499 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemEquipped.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemEquipped.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOEconItemEquipped : ITypedProtobuf { - static CSOEconItemEquipped ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOEconItemEquippedImpl(handle, isManuallyAllocated); + static CSOEconItemEquipped ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOEconItemEquippedImpl(handle, isManuallyAllocated); - public uint NewClass { get; set; } + public uint NewClass { get; set; } - public uint NewSlot { get; set; } + public uint NewSlot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemEventTicket.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemEventTicket.cs index 707c1be6c..80c44c13b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemEventTicket.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemEventTicket.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOEconItemEventTicket : ITypedProtobuf { - static CSOEconItemEventTicket ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOEconItemEventTicketImpl(handle, isManuallyAllocated); + static CSOEconItemEventTicket ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOEconItemEventTicketImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint EventId { get; set; } + public uint EventId { get; set; } - public ulong ItemId { get; set; } + public ulong ItemId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemLeagueViewPass.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemLeagueViewPass.cs index c1b4f0a18..f29bf3e22 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemLeagueViewPass.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconItemLeagueViewPass.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOEconItemLeagueViewPass : ITypedProtobuf { - static CSOEconItemLeagueViewPass ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOEconItemLeagueViewPassImpl(handle, isManuallyAllocated); + static CSOEconItemLeagueViewPass ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOEconItemLeagueViewPassImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint LeagueId { get; set; } + public uint LeagueId { get; set; } - public uint Admin { get; set; } + public uint Admin { get; set; } - public uint Itemindex { get; set; } + public uint Itemindex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconRentalHistory.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconRentalHistory.cs index 9e1768f17..51013fae8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconRentalHistory.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOEconRentalHistory.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOEconRentalHistory : ITypedProtobuf { - static CSOEconRentalHistory ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOEconRentalHistoryImpl(handle, isManuallyAllocated); + static CSOEconRentalHistory ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOEconRentalHistoryImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public ulong CrateItemId { get; set; } + public ulong CrateItemId { get; set; } - public uint CrateDefIndex { get; set; } + public uint CrateDefIndex { get; set; } - public uint IssueDate { get; set; } + public uint IssueDate { get; set; } - public uint ExpirationDate { get; set; } + public uint ExpirationDate { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOGameAccountSteamChina.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOGameAccountSteamChina.cs index dff8b1d8b..80bf42f46 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOGameAccountSteamChina.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOGameAccountSteamChina.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOGameAccountSteamChina : ITypedProtobuf { - static CSOGameAccountSteamChina ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOGameAccountSteamChinaImpl(handle, isManuallyAllocated); + static CSOGameAccountSteamChina ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOGameAccountSteamChinaImpl(handle, isManuallyAllocated); - public uint TimeLastUpdate { get; set; } + public uint TimeLastUpdate { get; set; } - public uint TimeCommsBan { get; set; } + public uint TimeCommsBan { get; set; } - public uint TimePlayBan { get; set; } + public uint TimePlayBan { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOItemCriteria.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOItemCriteria.cs index ed2875866..56808ef17 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOItemCriteria.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOItemCriteria.cs @@ -1,45 +1,44 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOItemCriteria : ITypedProtobuf { - static CSOItemCriteria ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOItemCriteriaImpl(handle, isManuallyAllocated); + static CSOItemCriteria ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOItemCriteriaImpl(handle, isManuallyAllocated); - public uint ItemLevel { get; set; } + public uint ItemLevel { get; set; } - public int ItemQuality { get; set; } + public int ItemQuality { get; set; } - public bool ItemLevelSet { get; set; } + public bool ItemLevelSet { get; set; } - public bool ItemQualitySet { get; set; } + public bool ItemQualitySet { get; set; } - public uint InitialInventory { get; set; } + public uint InitialInventory { get; set; } - public uint InitialQuantity { get; set; } + public uint InitialQuantity { get; set; } - public bool IgnoreEnabledFlag { get; set; } + public bool IgnoreEnabledFlag { get; set; } - public IProtobufRepeatedFieldSubMessageType Conditions { get; } + public IProtobufRepeatedFieldSubMessageType Conditions { get; } - public int ItemRarity { get; set; } + public int ItemRarity { get; set; } - public bool ItemRaritySet { get; set; } + public bool ItemRaritySet { get; set; } - public bool RecentOnly { get; set; } + public bool RecentOnly { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOItemCriteriaCondition.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOItemCriteriaCondition.cs index b595b39d0..5d99521d2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOItemCriteriaCondition.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOItemCriteriaCondition.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOItemCriteriaCondition : ITypedProtobuf { - static CSOItemCriteriaCondition ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOItemCriteriaConditionImpl(handle, isManuallyAllocated); + static CSOItemCriteriaCondition ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOItemCriteriaConditionImpl(handle, isManuallyAllocated); - public int Op { get; set; } + public int Op { get; set; } - public string Field { get; set; } + public string Field { get; set; } - public bool Required { get; set; } + public bool Required { get; set; } - public float FloatValue { get; set; } + public float FloatValue { get; set; } - public string StringValue { get; set; } + public string StringValue { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOItemRecipe.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOItemRecipe.cs index 1cc425984..fd0db0119 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOItemRecipe.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOItemRecipe.cs @@ -1,69 +1,68 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOItemRecipe : ITypedProtobuf { - static CSOItemRecipe ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOItemRecipeImpl(handle, isManuallyAllocated); + static CSOItemRecipe ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOItemRecipeImpl(handle, isManuallyAllocated); - public uint DefIndex { get; set; } + public uint DefIndex { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public string NA { get; set; } + public string NA { get; set; } - public string DescInputs { get; set; } + public string DescInputs { get; set; } - public string DescOutputs { get; set; } + public string DescOutputs { get; set; } - public string DiA { get; set; } + public string DiA { get; set; } - public string DiB { get; set; } + public string DiB { get; set; } - public string DiC { get; set; } + public string DiC { get; set; } - public string DoA { get; set; } + public string DoA { get; set; } - public string DoB { get; set; } + public string DoB { get; set; } - public string DoC { get; set; } + public string DoC { get; set; } - public bool RequiresAllSameClass { get; set; } + public bool RequiresAllSameClass { get; set; } - public bool RequiresAllSameSlot { get; set; } + public bool RequiresAllSameSlot { get; set; } - public int ClassUsageForOutput { get; set; } + public int ClassUsageForOutput { get; set; } - public int SlotUsageForOutput { get; set; } + public int SlotUsageForOutput { get; set; } - public int SetForOutput { get; set; } + public int SetForOutput { get; set; } - public IProtobufRepeatedFieldSubMessageType InputItemsCriteria { get; } + public IProtobufRepeatedFieldSubMessageType InputItemsCriteria { get; } - public IProtobufRepeatedFieldSubMessageType OutputItemsCriteria { get; } + public IProtobufRepeatedFieldSubMessageType OutputItemsCriteria { get; } - public IProtobufRepeatedFieldValueType InputItemDupeCounts { get; } + public IProtobufRepeatedFieldValueType InputItemDupeCounts { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOLobbyInvite.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOLobbyInvite.cs index affa932fa..3a38b4421 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOLobbyInvite.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOLobbyInvite.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOLobbyInvite : ITypedProtobuf { - static CSOLobbyInvite ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOLobbyInviteImpl(handle, isManuallyAllocated); + static CSOLobbyInvite ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOLobbyInviteImpl(handle, isManuallyAllocated); - public ulong GroupId { get; set; } + public ulong GroupId { get; set; } - public ulong SenderId { get; set; } + public ulong SenderId { get; set; } - public string SenderName { get; set; } + public string SenderName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOPartyInvite.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOPartyInvite.cs index a687d02ee..9bbf03f07 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOPartyInvite.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOPartyInvite.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOPartyInvite : ITypedProtobuf { - static CSOPartyInvite ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOPartyInviteImpl(handle, isManuallyAllocated); + static CSOPartyInvite ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOPartyInviteImpl(handle, isManuallyAllocated); - public ulong GroupId { get; set; } + public ulong GroupId { get; set; } - public ulong SenderId { get; set; } + public ulong SenderId { get; set; } - public string SenderName { get; set; } + public string SenderName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOPersonaDataPublic.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOPersonaDataPublic.cs index 78c650fc5..ade735d5a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOPersonaDataPublic.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOPersonaDataPublic.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOPersonaDataPublic : ITypedProtobuf { - static CSOPersonaDataPublic ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOPersonaDataPublicImpl(handle, isManuallyAllocated); + static CSOPersonaDataPublic ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOPersonaDataPublicImpl(handle, isManuallyAllocated); - public int PlayerLevel { get; set; } + public int PlayerLevel { get; set; } - public PlayerCommendationInfo Commendation { get; } + public PlayerCommendationInfo Commendation { get; } - public bool ElevatedState { get; set; } + public bool ElevatedState { get; set; } - public uint XpTrailTimestampRefresh { get; set; } + public uint XpTrailTimestampRefresh { get; set; } - public uint XpTrailLevel { get; set; } + public uint XpTrailLevel { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOQuestProgress.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOQuestProgress.cs index e8113f228..c247240f1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOQuestProgress.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOQuestProgress.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOQuestProgress : ITypedProtobuf { - static CSOQuestProgress ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOQuestProgressImpl(handle, isManuallyAllocated); + static CSOQuestProgress ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOQuestProgressImpl(handle, isManuallyAllocated); - public uint Questid { get; set; } + public uint Questid { get; set; } - public uint PointsRemaining { get; set; } + public uint PointsRemaining { get; set; } - public uint BonusPoints { get; set; } + public uint BonusPoints { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOVolatileItemClaimedRewards.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOVolatileItemClaimedRewards.cs index 30df21ea4..3783bc973 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOVolatileItemClaimedRewards.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOVolatileItemClaimedRewards.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOVolatileItemClaimedRewards : ITypedProtobuf { - static CSOVolatileItemClaimedRewards ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOVolatileItemClaimedRewardsImpl(handle, isManuallyAllocated); + static CSOVolatileItemClaimedRewards ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOVolatileItemClaimedRewardsImpl(handle, isManuallyAllocated); - public uint Defidx { get; set; } + public uint Defidx { get; set; } - public IProtobufRepeatedFieldValueType Reward { get; } + public IProtobufRepeatedFieldValueType Reward { get; } - public IProtobufRepeatedFieldValueType GenerationTime { get; } + public IProtobufRepeatedFieldValueType GenerationTime { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOVolatileItemOffer.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOVolatileItemOffer.cs index 274ee1366..5118a7569 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOVolatileItemOffer.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSOVolatileItemOffer.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSOVolatileItemOffer : ITypedProtobuf { - static CSOVolatileItemOffer ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSOVolatileItemOfferImpl(handle, isManuallyAllocated); + static CSOVolatileItemOffer ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSOVolatileItemOfferImpl(handle, isManuallyAllocated); - public uint Defidx { get; set; } + public uint Defidx { get; set; } - public IProtobufRepeatedFieldValueType FauxItemid { get; } + public IProtobufRepeatedFieldValueType FauxItemid { get; } - public IProtobufRepeatedFieldValueType GenerationTime { get; } + public IProtobufRepeatedFieldValueType GenerationTime { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsgList_GameEvents.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsgList_GameEvents.cs index 1b0780f2a..2f0f72ca5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsgList_GameEvents.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsgList_GameEvents.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsgList_GameEvents : ITypedProtobuf { - static CSVCMsgList_GameEvents ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsgList_GameEventsImpl(handle, isManuallyAllocated); + static CSVCMsgList_GameEvents ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsgList_GameEventsImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Events { get; } + public IProtobufRepeatedFieldSubMessageType Events { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsgList_GameEvents_event_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsgList_GameEvents_event_t.cs index 21090f2ce..c9c86c7bd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsgList_GameEvents_event_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsgList_GameEvents_event_t.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsgList_GameEvents_event_t : ITypedProtobuf { - static CSVCMsgList_GameEvents_event_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsgList_GameEvents_event_tImpl(handle, isManuallyAllocated); + static CSVCMsgList_GameEvents_event_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsgList_GameEvents_event_tImpl(handle, isManuallyAllocated); - public int Tick { get; set; } + public int Tick { get; set; } - public CSVCMsg_GameEvent Event { get; } + public CSVCMsg_GameEvent Event { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_BSPDecal.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_BSPDecal.cs index 948eaebd8..0d05c921e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_BSPDecal.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_BSPDecal.cs @@ -1,32 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_BSPDecal : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 53; - - static string INetMessage.MessageName => "CSVCMsg_BSPDecal"; + static int INetMessage.MessageId => 53; + + static string INetMessage.MessageName => "CSVCMsg_BSPDecal"; - static CSVCMsg_BSPDecal ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_BSPDecalImpl(handle, isManuallyAllocated); + static CSVCMsg_BSPDecal ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_BSPDecalImpl(handle, isManuallyAllocated); - public Vector Pos { get; set; } + public Vector Pos { get; set; } - public int DecalTextureIndex { get; set; } + public int DecalTextureIndex { get; set; } - public int EntityIndex { get; set; } + public int EntityIndex { get; set; } - public int ModelIndex { get; set; } + public int ModelIndex { get; set; } - public bool LowPriority { get; set; } + public bool LowPriority { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Broadcast_Command.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Broadcast_Command.cs index bf549c7d2..6c68a861c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Broadcast_Command.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Broadcast_Command.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_Broadcast_Command : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 74; - - static string INetMessage.MessageName => "CSVCMsg_Broadcast_Command"; + static int INetMessage.MessageId => 74; + + static string INetMessage.MessageName => "CSVCMsg_Broadcast_Command"; - static CSVCMsg_Broadcast_Command ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_Broadcast_CommandImpl(handle, isManuallyAllocated); + static CSVCMsg_Broadcast_Command ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_Broadcast_CommandImpl(handle, isManuallyAllocated); - public string Cmd { get; set; } + public string Cmd { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ClassInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ClassInfo.cs index 9bab2c4be..1a2fffa03 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ClassInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ClassInfo.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_ClassInfo : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 42; - - static string INetMessage.MessageName => "CSVCMsg_ClassInfo"; + static int INetMessage.MessageId => 42; + + static string INetMessage.MessageName => "CSVCMsg_ClassInfo"; - static CSVCMsg_ClassInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_ClassInfoImpl(handle, isManuallyAllocated); + static CSVCMsg_ClassInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_ClassInfoImpl(handle, isManuallyAllocated); - public bool CreateOnClient { get; set; } + public bool CreateOnClient { get; set; } - public IProtobufRepeatedFieldSubMessageType Classes { get; } + public IProtobufRepeatedFieldSubMessageType Classes { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ClassInfo_class_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ClassInfo_class_t.cs index 34b883e8d..03ad13e40 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ClassInfo_class_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ClassInfo_class_t.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_ClassInfo_class_t : ITypedProtobuf { - static CSVCMsg_ClassInfo_class_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_ClassInfo_class_tImpl(handle, isManuallyAllocated); + static CSVCMsg_ClassInfo_class_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_ClassInfo_class_tImpl(handle, isManuallyAllocated); - public int ClassId { get; set; } + public int ClassId { get; set; } - public string ClassName { get; set; } + public string ClassName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ClearAllStringTables.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ClearAllStringTables.cs index 8e846f746..e88cf46b0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ClearAllStringTables.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ClearAllStringTables.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_ClearAllStringTables : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 51; - - static string INetMessage.MessageName => "CSVCMsg_ClearAllStringTables"; + static int INetMessage.MessageId => 51; + + static string INetMessage.MessageName => "CSVCMsg_ClearAllStringTables"; - static CSVCMsg_ClearAllStringTables ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_ClearAllStringTablesImpl(handle, isManuallyAllocated); + static CSVCMsg_ClearAllStringTables ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_ClearAllStringTablesImpl(handle, isManuallyAllocated); - public string Mapname { get; set; } + public string Mapname { get; set; } - public bool CreateTablesSkipped { get; set; } + public bool CreateTablesSkipped { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_CmdKeyValues.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_CmdKeyValues.cs index 351cf29c1..7d597b4ac 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_CmdKeyValues.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_CmdKeyValues.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_CmdKeyValues : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 52; - - static string INetMessage.MessageName => "CSVCMsg_CmdKeyValues"; + static int INetMessage.MessageId => 52; + + static string INetMessage.MessageName => "CSVCMsg_CmdKeyValues"; - static CSVCMsg_CmdKeyValues ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_CmdKeyValuesImpl(handle, isManuallyAllocated); + static CSVCMsg_CmdKeyValues ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_CmdKeyValuesImpl(handle, isManuallyAllocated); - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_CreateStringTable.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_CreateStringTable.cs index 4510a2485..95daab47e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_CreateStringTable.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_CreateStringTable.cs @@ -1,47 +1,46 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_CreateStringTable : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 44; - - static string INetMessage.MessageName => "CSVCMsg_CreateStringTable"; + static int INetMessage.MessageId => 44; + + static string INetMessage.MessageName => "CSVCMsg_CreateStringTable"; - static CSVCMsg_CreateStringTable ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_CreateStringTableImpl(handle, isManuallyAllocated); + static CSVCMsg_CreateStringTable ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_CreateStringTableImpl(handle, isManuallyAllocated); - public string Name { get; set; } + public string Name { get; set; } - public int NumEntries { get; set; } + public int NumEntries { get; set; } - public bool UserDataFixedSize { get; set; } + public bool UserDataFixedSize { get; set; } - public int UserDataSize { get; set; } + public int UserDataSize { get; set; } - public int UserDataSizeBits { get; set; } + public int UserDataSizeBits { get; set; } - public int Flags { get; set; } + public int Flags { get; set; } - public byte[] StringData { get; set; } + public byte[] StringData { get; set; } - public int UncompressedSize { get; set; } + public int UncompressedSize { get; set; } - public bool DataCompressed { get; set; } + public bool DataCompressed { get; set; } - public bool UsingVarintBitcounts { get; set; } + public bool UsingVarintBitcounts { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_CrosshairAngle.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_CrosshairAngle.cs index a8b5c641a..25956396d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_CrosshairAngle.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_CrosshairAngle.cs @@ -7,9 +7,9 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_CrosshairAngle : ITypedProtobuf { - static CSVCMsg_CrosshairAngle ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_CrosshairAngleImpl(handle, isManuallyAllocated); + static CSVCMsg_CrosshairAngle ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_CrosshairAngleImpl(handle, isManuallyAllocated); - public QAngle Angle { get; set; } + public QAngle Angle { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_FixAngle.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_FixAngle.cs index 2bc3e84b5..e115a281f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_FixAngle.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_FixAngle.cs @@ -7,12 +7,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_FixAngle : ITypedProtobuf { - static CSVCMsg_FixAngle ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_FixAngleImpl(handle, isManuallyAllocated); + static CSVCMsg_FixAngle ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_FixAngleImpl(handle, isManuallyAllocated); - public bool Relative { get; set; } + public bool Relative { get; set; } - public QAngle Angle { get; set; } + public QAngle Angle { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_FlattenedSerializer.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_FlattenedSerializer.cs index b73f9cd54..b7f12769e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_FlattenedSerializer.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_FlattenedSerializer.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_FlattenedSerializer : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 41; - - static string INetMessage.MessageName => "CSVCMsg_FlattenedSerializer"; + static int INetMessage.MessageId => 41; + + static string INetMessage.MessageName => "CSVCMsg_FlattenedSerializer"; - static CSVCMsg_FlattenedSerializer ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_FlattenedSerializerImpl(handle, isManuallyAllocated); + static CSVCMsg_FlattenedSerializer ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_FlattenedSerializerImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Serializers { get; } + public IProtobufRepeatedFieldSubMessageType Serializers { get; } - public IProtobufRepeatedFieldValueType Symbols { get; } + public IProtobufRepeatedFieldValueType Symbols { get; } - public IProtobufRepeatedFieldSubMessageType Fields { get; } + public IProtobufRepeatedFieldSubMessageType Fields { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_FullFrameSplit.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_FullFrameSplit.cs index b0d04536c..b854cb065 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_FullFrameSplit.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_FullFrameSplit.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_FullFrameSplit : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 70; - - static string INetMessage.MessageName => "CSVCMsg_FullFrameSplit"; + static int INetMessage.MessageId => 70; + + static string INetMessage.MessageName => "CSVCMsg_FullFrameSplit"; - static CSVCMsg_FullFrameSplit ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_FullFrameSplitImpl(handle, isManuallyAllocated); + static CSVCMsg_FullFrameSplit ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_FullFrameSplitImpl(handle, isManuallyAllocated); - public int Tick { get; set; } + public int Tick { get; set; } - public int Section { get; set; } + public int Section { get; set; } - public int Total { get; set; } + public int Total { get; set; } - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEvent.cs index d63bdeadc..b9704bf4a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEvent.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_GameEvent : ITypedProtobuf { - static CSVCMsg_GameEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_GameEventImpl(handle, isManuallyAllocated); + static CSVCMsg_GameEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_GameEventImpl(handle, isManuallyAllocated); - public string EventName { get; set; } + public string EventName { get; set; } - public int Eventid { get; set; } + public int Eventid { get; set; } - public IProtobufRepeatedFieldSubMessageType Keys { get; } + public IProtobufRepeatedFieldSubMessageType Keys { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEventList.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEventList.cs index 546503889..cfe5cd7bc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEventList.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEventList.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_GameEventList : ITypedProtobuf { - static CSVCMsg_GameEventList ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_GameEventListImpl(handle, isManuallyAllocated); + static CSVCMsg_GameEventList ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_GameEventListImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Descriptors { get; } + public IProtobufRepeatedFieldSubMessageType Descriptors { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEventList_descriptor_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEventList_descriptor_t.cs index 5054b2592..4f7e3edb9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEventList_descriptor_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEventList_descriptor_t.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_GameEventList_descriptor_t : ITypedProtobuf { - static CSVCMsg_GameEventList_descriptor_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_GameEventList_descriptor_tImpl(handle, isManuallyAllocated); + static CSVCMsg_GameEventList_descriptor_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_GameEventList_descriptor_tImpl(handle, isManuallyAllocated); - public int Eventid { get; set; } + public int Eventid { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public IProtobufRepeatedFieldSubMessageType Keys { get; } + public IProtobufRepeatedFieldSubMessageType Keys { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEventList_key_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEventList_key_t.cs index 69b583a57..149baf860 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEventList_key_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEventList_key_t.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_GameEventList_key_t : ITypedProtobuf { - static CSVCMsg_GameEventList_key_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_GameEventList_key_tImpl(handle, isManuallyAllocated); + static CSVCMsg_GameEventList_key_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_GameEventList_key_tImpl(handle, isManuallyAllocated); - public int Type { get; set; } + public int Type { get; set; } - public string Name { get; set; } + public string Name { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEvent_key_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEvent_key_t.cs index 8eee09ee8..54bccf51f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEvent_key_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameEvent_key_t.cs @@ -1,36 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_GameEvent_key_t : ITypedProtobuf { - static CSVCMsg_GameEvent_key_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_GameEvent_key_tImpl(handle, isManuallyAllocated); + static CSVCMsg_GameEvent_key_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_GameEvent_key_tImpl(handle, isManuallyAllocated); - public int Type { get; set; } + public int Type { get; set; } - public string ValString { get; set; } + public string ValString { get; set; } - public float ValFloat { get; set; } + public float ValFloat { get; set; } - public int ValLong { get; set; } + public int ValLong { get; set; } - public int ValShort { get; set; } + public int ValShort { get; set; } - public int ValByte { get; set; } + public int ValByte { get; set; } - public bool ValBool { get; set; } + public bool ValBool { get; set; } - public ulong ValUint64 { get; set; } + public ulong ValUint64 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameSessionConfiguration.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameSessionConfiguration.cs index 91ea4cef1..2ef4e598c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameSessionConfiguration.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GameSessionConfiguration.cs @@ -1,69 +1,68 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_GameSessionConfiguration : ITypedProtobuf { - static CSVCMsg_GameSessionConfiguration ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_GameSessionConfigurationImpl(handle, isManuallyAllocated); + static CSVCMsg_GameSessionConfiguration ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_GameSessionConfigurationImpl(handle, isManuallyAllocated); - public bool IsMultiplayer { get; set; } + public bool IsMultiplayer { get; set; } - public bool IsLoadsavegame { get; set; } + public bool IsLoadsavegame { get; set; } - public bool IsBackgroundMap { get; set; } + public bool IsBackgroundMap { get; set; } - public bool IsHeadless { get; set; } + public bool IsHeadless { get; set; } - public uint MinClientLimit { get; set; } + public uint MinClientLimit { get; set; } - public uint MaxClientLimit { get; set; } + public uint MaxClientLimit { get; set; } - public uint MaxClients { get; set; } + public uint MaxClients { get; set; } - public uint TickInterval { get; set; } + public uint TickInterval { get; set; } - public string Hostname { get; set; } + public string Hostname { get; set; } - public string Savegamename { get; set; } + public string Savegamename { get; set; } - public string S1Mapname { get; set; } + public string S1Mapname { get; set; } - public string Gamemode { get; set; } + public string Gamemode { get; set; } - public string ServerIpAddress { get; set; } + public string ServerIpAddress { get; set; } - public byte[] Data { get; set; } + public byte[] Data { get; set; } - public bool IsLocalonly { get; set; } + public bool IsLocalonly { get; set; } - public bool NoSteamServer { get; set; } + public bool NoSteamServer { get; set; } - public bool IsTransition { get; set; } + public bool IsTransition { get; set; } - public string Previouslevel { get; set; } + public string Previouslevel { get; set; } - public string Landmarkname { get; set; } + public string Landmarkname { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GetCvarValue.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GetCvarValue.cs index d70a27850..32ebf6047 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GetCvarValue.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_GetCvarValue.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_GetCvarValue : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 58; - - static string INetMessage.MessageName => "CSVCMsg_GetCvarValue"; + static int INetMessage.MessageId => 58; + + static string INetMessage.MessageName => "CSVCMsg_GetCvarValue"; - static CSVCMsg_GetCvarValue ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_GetCvarValueImpl(handle, isManuallyAllocated); + static CSVCMsg_GetCvarValue ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_GetCvarValueImpl(handle, isManuallyAllocated); - public int Cookie { get; set; } + public int Cookie { get; set; } - public string CvarName { get; set; } + public string CvarName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_HLTVStatus.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_HLTVStatus.cs index 2a136bde4..2d831f67b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_HLTVStatus.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_HLTVStatus.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_HLTVStatus : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 62; - - static string INetMessage.MessageName => "CSVCMsg_HLTVStatus"; + static int INetMessage.MessageId => 62; + + static string INetMessage.MessageName => "CSVCMsg_HLTVStatus"; - static CSVCMsg_HLTVStatus ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_HLTVStatusImpl(handle, isManuallyAllocated); + static CSVCMsg_HLTVStatus ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_HLTVStatusImpl(handle, isManuallyAllocated); - public string Master { get; set; } + public string Master { get; set; } - public int Clients { get; set; } + public int Clients { get; set; } - public int Slots { get; set; } + public int Slots { get; set; } - public int Proxies { get; set; } + public int Proxies { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_HltvFixupOperatorStatus.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_HltvFixupOperatorStatus.cs index 93f84d1cb..05f11dad1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_HltvFixupOperatorStatus.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_HltvFixupOperatorStatus.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_HltvFixupOperatorStatus : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 75; - - static string INetMessage.MessageName => "CSVCMsg_HltvFixupOperatorStatus"; + static int INetMessage.MessageId => 75; + + static string INetMessage.MessageName => "CSVCMsg_HltvFixupOperatorStatus"; - static CSVCMsg_HltvFixupOperatorStatus ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_HltvFixupOperatorStatusImpl(handle, isManuallyAllocated); + static CSVCMsg_HltvFixupOperatorStatus ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_HltvFixupOperatorStatusImpl(handle, isManuallyAllocated); - public uint Mode { get; set; } + public uint Mode { get; set; } - public string OverrideOperatorName { get; set; } + public string OverrideOperatorName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_HltvReplay.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_HltvReplay.cs index c97f9ad83..279fd3e15 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_HltvReplay.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_HltvReplay.cs @@ -1,36 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_HltvReplay : ITypedProtobuf { - static CSVCMsg_HltvReplay ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_HltvReplayImpl(handle, isManuallyAllocated); + static CSVCMsg_HltvReplay ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_HltvReplayImpl(handle, isManuallyAllocated); - public int Delay { get; set; } + public int Delay { get; set; } - public int PrimaryTarget { get; set; } + public int PrimaryTarget { get; set; } - public int ReplayStopAt { get; set; } + public int ReplayStopAt { get; set; } - public int ReplayStartAt { get; set; } + public int ReplayStartAt { get; set; } - public int ReplaySlowdownBegin { get; set; } + public int ReplaySlowdownBegin { get; set; } - public int ReplaySlowdownEnd { get; set; } + public int ReplaySlowdownEnd { get; set; } - public float ReplaySlowdownRate { get; set; } + public float ReplaySlowdownRate { get; set; } - public int Reason { get; set; } + public int Reason { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Menu.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Menu.cs index e6099d9fa..1a768dcee 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Menu.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Menu.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_Menu : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 57; - - static string INetMessage.MessageName => "CSVCMsg_Menu"; + static int INetMessage.MessageId => 57; + + static string INetMessage.MessageName => "CSVCMsg_Menu"; - static CSVCMsg_Menu ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_MenuImpl(handle, isManuallyAllocated); + static CSVCMsg_Menu ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_MenuImpl(handle, isManuallyAllocated); - public int DialogType { get; set; } + public int DialogType { get; set; } - public byte[] MenuKeyValues { get; set; } + public byte[] MenuKeyValues { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_NextMsgPredicted.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_NextMsgPredicted.cs index 6f4bfc3f9..d1daf26dc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_NextMsgPredicted.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_NextMsgPredicted.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_NextMsgPredicted : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 77; - - static string INetMessage.MessageName => "CSVCMsg_NextMsgPredicted"; + static int INetMessage.MessageId => 77; + + static string INetMessage.MessageName => "CSVCMsg_NextMsgPredicted"; - static CSVCMsg_NextMsgPredicted ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_NextMsgPredictedImpl(handle, isManuallyAllocated); + static CSVCMsg_NextMsgPredicted ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_NextMsgPredictedImpl(handle, isManuallyAllocated); - public int PredictedByPlayerSlot { get; set; } + public int PredictedByPlayerSlot { get; set; } - public uint MessageTypeId { get; set; } + public uint MessageTypeId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities.cs index 8cccfa843..24d24a978 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities.cs @@ -1,83 +1,82 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_PacketEntities : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 55; - - static string INetMessage.MessageName => "CSVCMsg_PacketEntities"; + static int INetMessage.MessageId => 55; + + static string INetMessage.MessageName => "CSVCMsg_PacketEntities"; - static CSVCMsg_PacketEntities ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_PacketEntitiesImpl(handle, isManuallyAllocated); + static CSVCMsg_PacketEntities ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_PacketEntitiesImpl(handle, isManuallyAllocated); - public int MaxEntries { get; set; } + public int MaxEntries { get; set; } - public int UpdatedEntries { get; set; } + public int UpdatedEntries { get; set; } - public bool LegacyIsDelta { get; set; } + public bool LegacyIsDelta { get; set; } - public bool UpdateBaseline { get; set; } + public bool UpdateBaseline { get; set; } - public int Baseline { get; set; } + public int Baseline { get; set; } - public int DeltaFrom { get; set; } + public int DeltaFrom { get; set; } - public byte[] EntityData { get; set; } + public byte[] EntityData { get; set; } - public bool PendingFullFrame { get; set; } + public bool PendingFullFrame { get; set; } - public uint ActiveSpawngroupHandle { get; set; } + public uint ActiveSpawngroupHandle { get; set; } - public uint MaxSpawngroupCreationsequence { get; set; } + public uint MaxSpawngroupCreationsequence { get; set; } - public uint LastCmdNumberExecuted { get; set; } + public uint LastCmdNumberExecuted { get; set; } - public int LastCmdNumberRecvDelta { get; set; } + public int LastCmdNumberRecvDelta { get; set; } - public uint ServerTick { get; set; } + public uint ServerTick { get; set; } - public byte[] SerializedEntities { get; set; } + public byte[] SerializedEntities { get; set; } - public IProtobufRepeatedFieldSubMessageType AlternateBaselines { get; } + public IProtobufRepeatedFieldSubMessageType AlternateBaselines { get; } - public uint HasPvsVisBitsDeprecated { get; set; } + public uint HasPvsVisBitsDeprecated { get; set; } - public IProtobufRepeatedFieldValueType CmdRecvStatus { get; } + public IProtobufRepeatedFieldValueType CmdRecvStatus { get; } - public CSVCMsg_PacketEntities_non_transmitted_entities_t NonTransmittedEntities { get; } + public CSVCMsg_PacketEntities_non_transmitted_entities_t NonTransmittedEntities { get; } - public uint CqStarvedCommandTicks { get; set; } + public uint CqStarvedCommandTicks { get; set; } - public uint CqDiscardedCommandTicks { get; set; } + public uint CqDiscardedCommandTicks { get; set; } - public CSVCMsg_PacketEntities_outofpvs_entity_updates_t OutofpvsEntityUpdates { get; } + public CSVCMsg_PacketEntities_outofpvs_entity_updates_t OutofpvsEntityUpdates { get; } - public byte[] DevPadding { get; set; } + public byte[] DevPadding { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities_alternate_baseline_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities_alternate_baseline_t.cs index 2cdf800e4..8875b336f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities_alternate_baseline_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities_alternate_baseline_t.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_PacketEntities_alternate_baseline_t : ITypedProtobuf { - static CSVCMsg_PacketEntities_alternate_baseline_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_PacketEntities_alternate_baseline_tImpl(handle, isManuallyAllocated); + static CSVCMsg_PacketEntities_alternate_baseline_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_PacketEntities_alternate_baseline_tImpl(handle, isManuallyAllocated); - public int EntityIndex { get; set; } + public int EntityIndex { get; set; } - public int BaselineIndex { get; set; } + public int BaselineIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities_non_transmitted_entities_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities_non_transmitted_entities_t.cs index 7f70604fd..469984bfe 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities_non_transmitted_entities_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities_non_transmitted_entities_t.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_PacketEntities_non_transmitted_entities_t : ITypedProtobuf { - static CSVCMsg_PacketEntities_non_transmitted_entities_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_PacketEntities_non_transmitted_entities_tImpl(handle, isManuallyAllocated); + static CSVCMsg_PacketEntities_non_transmitted_entities_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_PacketEntities_non_transmitted_entities_tImpl(handle, isManuallyAllocated); - public int HeaderCount { get; set; } + public int HeaderCount { get; set; } - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities_outofpvs_entity_updates_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities_outofpvs_entity_updates_t.cs index ae0a34b9f..4e0d82a79 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities_outofpvs_entity_updates_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketEntities_outofpvs_entity_updates_t.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_PacketEntities_outofpvs_entity_updates_t : ITypedProtobuf { - static CSVCMsg_PacketEntities_outofpvs_entity_updates_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_PacketEntities_outofpvs_entity_updates_tImpl(handle, isManuallyAllocated); + static CSVCMsg_PacketEntities_outofpvs_entity_updates_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_PacketEntities_outofpvs_entity_updates_tImpl(handle, isManuallyAllocated); - public int Count { get; set; } + public int Count { get; set; } - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketReliable.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketReliable.cs index cd6c4340b..56b61d565 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketReliable.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PacketReliable.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_PacketReliable : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 61; - - static string INetMessage.MessageName => "CSVCMsg_PacketReliable"; + static int INetMessage.MessageId => 61; + + static string INetMessage.MessageName => "CSVCMsg_PacketReliable"; - static CSVCMsg_PacketReliable ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_PacketReliableImpl(handle, isManuallyAllocated); + static CSVCMsg_PacketReliable ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_PacketReliableImpl(handle, isManuallyAllocated); - public int Tick { get; set; } + public int Tick { get; set; } - public int Messagessize { get; set; } + public int Messagessize { get; set; } - public bool State { get; set; } + public bool State { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PeerList.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PeerList.cs index cd674225b..976bc0174 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PeerList.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_PeerList.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_PeerList : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 60; - - static string INetMessage.MessageName => "CSVCMsg_PeerList"; + static int INetMessage.MessageId => 60; + + static string INetMessage.MessageName => "CSVCMsg_PeerList"; - static CSVCMsg_PeerList ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_PeerListImpl(handle, isManuallyAllocated); + static CSVCMsg_PeerList ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_PeerListImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Peer { get; } + public IProtobufRepeatedFieldSubMessageType Peer { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Prefetch.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Prefetch.cs index dd8a66035..efd54abe7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Prefetch.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Prefetch.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_Prefetch : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 56; - - static string INetMessage.MessageName => "CSVCMsg_Prefetch"; + static int INetMessage.MessageId => 56; + + static string INetMessage.MessageName => "CSVCMsg_Prefetch"; - static CSVCMsg_Prefetch ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_PrefetchImpl(handle, isManuallyAllocated); + static CSVCMsg_Prefetch ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_PrefetchImpl(handle, isManuallyAllocated); - public int SoundIndex { get; set; } + public int SoundIndex { get; set; } - public PrefetchType ResourceType { get; set; } + public PrefetchType ResourceType { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Print.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Print.cs index d45830889..b197e4619 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Print.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Print.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_Print : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 48; - - static string INetMessage.MessageName => "CSVCMsg_Print"; + static int INetMessage.MessageId => 48; + + static string INetMessage.MessageName => "CSVCMsg_Print"; - static CSVCMsg_Print ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_PrintImpl(handle, isManuallyAllocated); + static CSVCMsg_Print ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_PrintImpl(handle, isManuallyAllocated); - public string Text { get; set; } + public string Text { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_RconServerDetails.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_RconServerDetails.cs index 5a3795823..4f7f50829 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_RconServerDetails.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_RconServerDetails.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_RconServerDetails : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 71; - - static string INetMessage.MessageName => "CSVCMsg_RconServerDetails"; + static int INetMessage.MessageId => 71; + + static string INetMessage.MessageName => "CSVCMsg_RconServerDetails"; - static CSVCMsg_RconServerDetails ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_RconServerDetailsImpl(handle, isManuallyAllocated); + static CSVCMsg_RconServerDetails ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_RconServerDetailsImpl(handle, isManuallyAllocated); - public byte[] Token { get; set; } + public byte[] Token { get; set; } - public string Details { get; set; } + public string Details { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SendTable.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SendTable.cs index f799f81b3..cab7c55f5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SendTable.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SendTable.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_SendTable : ITypedProtobuf { - static CSVCMsg_SendTable ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_SendTableImpl(handle, isManuallyAllocated); + static CSVCMsg_SendTable ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_SendTableImpl(handle, isManuallyAllocated); - public bool IsEnd { get; set; } + public bool IsEnd { get; set; } - public string NetTableName { get; set; } + public string NetTableName { get; set; } - public bool NeedsDecoder { get; set; } + public bool NeedsDecoder { get; set; } - public IProtobufRepeatedFieldSubMessageType Props { get; } + public IProtobufRepeatedFieldSubMessageType Props { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SendTable_sendprop_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SendTable_sendprop_t.cs index 0da8778d6..2c99fa7c4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SendTable_sendprop_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SendTable_sendprop_t.cs @@ -1,39 +1,38 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_SendTable_sendprop_t : ITypedProtobuf { - static CSVCMsg_SendTable_sendprop_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_SendTable_sendprop_tImpl(handle, isManuallyAllocated); + static CSVCMsg_SendTable_sendprop_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_SendTable_sendprop_tImpl(handle, isManuallyAllocated); - public int Type { get; set; } + public int Type { get; set; } - public string VarName { get; set; } + public string VarName { get; set; } - public int Flags { get; set; } + public int Flags { get; set; } - public int Priority { get; set; } + public int Priority { get; set; } - public string DtName { get; set; } + public string DtName { get; set; } - public int NumElements { get; set; } + public int NumElements { get; set; } - public float LowValue { get; set; } + public float LowValue { get; set; } - public float HighValue { get; set; } + public float HighValue { get; set; } - public int NumBits { get; set; } + public int NumBits { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ServerInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ServerInfo.cs index d85adf76f..7da36201a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ServerInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ServerInfo.cs @@ -1,65 +1,64 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_ServerInfo : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 40; - - static string INetMessage.MessageName => "CSVCMsg_ServerInfo"; + static int INetMessage.MessageId => 40; + + static string INetMessage.MessageName => "CSVCMsg_ServerInfo"; - static CSVCMsg_ServerInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_ServerInfoImpl(handle, isManuallyAllocated); + static CSVCMsg_ServerInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_ServerInfoImpl(handle, isManuallyAllocated); - public int Protocol { get; set; } + public int Protocol { get; set; } - public int ServerCount { get; set; } + public int ServerCount { get; set; } - public bool IsDedicated { get; set; } + public bool IsDedicated { get; set; } - public bool IsHltv { get; set; } + public bool IsHltv { get; set; } - public int COs { get; set; } + public int COs { get; set; } - public int MaxClients { get; set; } + public int MaxClients { get; set; } - public int MaxClasses { get; set; } + public int MaxClasses { get; set; } - public int PlayerSlot { get; set; } + public int PlayerSlot { get; set; } - public float TickInterval { get; set; } + public float TickInterval { get; set; } - public string GameDir { get; set; } + public string GameDir { get; set; } - public string MapName { get; set; } + public string MapName { get; set; } - public string SkyName { get; set; } + public string SkyName { get; set; } - public string HostName { get; set; } + public string HostName { get; set; } - public string AddonName { get; set; } + public string AddonName { get; set; } - public CSVCMsg_GameSessionConfiguration GameSessionConfig { get; } + public CSVCMsg_GameSessionConfiguration GameSessionConfig { get; } - public byte[] GameSessionManifest { get; set; } + public byte[] GameSessionManifest { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ServerSteamID.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ServerSteamID.cs index 19a75dfed..8426aac1b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ServerSteamID.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_ServerSteamID.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_ServerSteamID : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 63; - - static string INetMessage.MessageName => "CSVCMsg_ServerSteamID"; + static int INetMessage.MessageId => 63; + + static string INetMessage.MessageName => "CSVCMsg_ServerSteamID"; - static CSVCMsg_ServerSteamID ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_ServerSteamIDImpl(handle, isManuallyAllocated); + static CSVCMsg_ServerSteamID ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_ServerSteamIDImpl(handle, isManuallyAllocated); - public ulong SteamId { get; set; } + public ulong SteamId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SetPause.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SetPause.cs index 348048151..70787c412 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SetPause.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SetPause.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_SetPause : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 43; - - static string INetMessage.MessageName => "CSVCMsg_SetPause"; + static int INetMessage.MessageId => 43; + + static string INetMessage.MessageName => "CSVCMsg_SetPause"; - static CSVCMsg_SetPause ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_SetPauseImpl(handle, isManuallyAllocated); + static CSVCMsg_SetPause ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_SetPauseImpl(handle, isManuallyAllocated); - public bool Paused { get; set; } + public bool Paused { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SetView.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SetView.cs index 3721ee3b0..8e22b7544 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SetView.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SetView.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_SetView : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 50; - - static string INetMessage.MessageName => "CSVCMsg_SetView"; + static int INetMessage.MessageId => 50; + + static string INetMessage.MessageName => "CSVCMsg_SetView"; - static CSVCMsg_SetView ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_SetViewImpl(handle, isManuallyAllocated); + static CSVCMsg_SetView ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_SetViewImpl(handle, isManuallyAllocated); - public int EntityIndex { get; set; } + public int EntityIndex { get; set; } - public int Slot { get; set; } + public int Slot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Sounds.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Sounds.cs index cf255f51f..a4185ea16 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Sounds.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Sounds.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_Sounds : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 49; - - static string INetMessage.MessageName => "CSVCMsg_Sounds"; + static int INetMessage.MessageId => 49; + + static string INetMessage.MessageName => "CSVCMsg_Sounds"; - static CSVCMsg_Sounds ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_SoundsImpl(handle, isManuallyAllocated); + static CSVCMsg_Sounds ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_SoundsImpl(handle, isManuallyAllocated); - public bool ReliableSound { get; set; } + public bool ReliableSound { get; set; } - public IProtobufRepeatedFieldSubMessageType Sounds { get; } + public IProtobufRepeatedFieldSubMessageType Sounds { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Sounds_sounddata_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Sounds_sounddata_t.cs index c09da31d1..b2b46624f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Sounds_sounddata_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_Sounds_sounddata_t.cs @@ -1,69 +1,68 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_Sounds_sounddata_t : ITypedProtobuf { - static CSVCMsg_Sounds_sounddata_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_Sounds_sounddata_tImpl(handle, isManuallyAllocated); + static CSVCMsg_Sounds_sounddata_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_Sounds_sounddata_tImpl(handle, isManuallyAllocated); - public int OriginX { get; set; } + public int OriginX { get; set; } - public int OriginY { get; set; } + public int OriginY { get; set; } - public int OriginZ { get; set; } + public int OriginZ { get; set; } - public uint Volume { get; set; } + public uint Volume { get; set; } - public float DelayValue { get; set; } + public float DelayValue { get; set; } - public int SequenceNumber { get; set; } + public int SequenceNumber { get; set; } - public int EntityIndex { get; set; } + public int EntityIndex { get; set; } - public int Channel { get; set; } + public int Channel { get; set; } - public int Pitch { get; set; } + public int Pitch { get; set; } - public int Flags { get; set; } + public int Flags { get; set; } - public uint SoundNum { get; set; } + public uint SoundNum { get; set; } - public uint SoundNumHandle { get; set; } + public uint SoundNumHandle { get; set; } - public int SpeakerEntity { get; set; } + public int SpeakerEntity { get; set; } - public int RandomSeed { get; set; } + public int RandomSeed { get; set; } - public int SoundLevel { get; set; } + public int SoundLevel { get; set; } - public bool IsSentence { get; set; } + public bool IsSentence { get; set; } - public bool IsAmbient { get; set; } + public bool IsAmbient { get; set; } - public uint Guid { get; set; } + public uint Guid { get; set; } - public ulong SoundResourceId { get; set; } + public ulong SoundResourceId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SplitScreen.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SplitScreen.cs index 7d19c0af9..793844dd4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SplitScreen.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_SplitScreen.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_SplitScreen : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 54; - - static string INetMessage.MessageName => "CSVCMsg_SplitScreen"; + static int INetMessage.MessageId => 54; + + static string INetMessage.MessageName => "CSVCMsg_SplitScreen"; - static CSVCMsg_SplitScreen ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_SplitScreenImpl(handle, isManuallyAllocated); + static CSVCMsg_SplitScreen ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_SplitScreenImpl(handle, isManuallyAllocated); - public ESplitScreenMessageType Type { get; set; } + public ESplitScreenMessageType Type { get; set; } - public int Slot { get; set; } + public int Slot { get; set; } - public int PlayerIndex { get; set; } + public int PlayerIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_StopSound.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_StopSound.cs index 69a39b49b..f5e06c953 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_StopSound.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_StopSound.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_StopSound : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 59; - - static string INetMessage.MessageName => "CSVCMsg_StopSound"; + static int INetMessage.MessageId => 59; + + static string INetMessage.MessageName => "CSVCMsg_StopSound"; - static CSVCMsg_StopSound ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_StopSoundImpl(handle, isManuallyAllocated); + static CSVCMsg_StopSound ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_StopSoundImpl(handle, isManuallyAllocated); - public uint Guid { get; set; } + public uint Guid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_TempEntities.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_TempEntities.cs index 3ee91ed57..6358ba563 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_TempEntities.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_TempEntities.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_TempEntities : ITypedProtobuf { - static CSVCMsg_TempEntities ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_TempEntitiesImpl(handle, isManuallyAllocated); + static CSVCMsg_TempEntities ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_TempEntitiesImpl(handle, isManuallyAllocated); - public bool Reliable { get; set; } + public bool Reliable { get; set; } - public int NumEntries { get; set; } + public int NumEntries { get; set; } - public byte[] EntityData { get; set; } + public byte[] EntityData { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_UpdateStringTable.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_UpdateStringTable.cs index f49c0ac56..b0c606a2e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_UpdateStringTable.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_UpdateStringTable.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_UpdateStringTable : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 45; - - static string INetMessage.MessageName => "CSVCMsg_UpdateStringTable"; + static int INetMessage.MessageId => 45; + + static string INetMessage.MessageName => "CSVCMsg_UpdateStringTable"; - static CSVCMsg_UpdateStringTable ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_UpdateStringTableImpl(handle, isManuallyAllocated); + static CSVCMsg_UpdateStringTable ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_UpdateStringTableImpl(handle, isManuallyAllocated); - public int TableId { get; set; } + public int TableId { get; set; } - public int NumChangedEntries { get; set; } + public int NumChangedEntries { get; set; } - public byte[] StringData { get; set; } + public byte[] StringData { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_UserCommands.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_UserCommands.cs index a9c68f74a..86518a5d8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_UserCommands.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_UserCommands.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSVCMsg_UserCommands : ITypedProtobuf { - static CSVCMsg_UserCommands ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_UserCommandsImpl(handle, isManuallyAllocated); + static CSVCMsg_UserCommands ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_UserCommandsImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Commands { get; } + public IProtobufRepeatedFieldSubMessageType Commands { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_UserMessage.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_UserMessage.cs index e6ef18625..674602cfd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_UserMessage.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_UserMessage.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_UserMessage : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 72; - - static string INetMessage.MessageName => "CSVCMsg_UserMessage"; + static int INetMessage.MessageId => 72; + + static string INetMessage.MessageName => "CSVCMsg_UserMessage"; - static CSVCMsg_UserMessage ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_UserMessageImpl(handle, isManuallyAllocated); + static CSVCMsg_UserMessage ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_UserMessageImpl(handle, isManuallyAllocated); - public int MsgType { get; set; } + public int MsgType { get; set; } - public byte[] MsgData { get; set; } + public byte[] MsgData { get; set; } - public int Passthrough { get; set; } + public int Passthrough { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_VoiceData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_VoiceData.cs index c879c5a49..fbafd4ad7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_VoiceData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_VoiceData.cs @@ -1,38 +1,37 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_VoiceData : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 47; - - static string INetMessage.MessageName => "CSVCMsg_VoiceData"; + static int INetMessage.MessageId => 47; + + static string INetMessage.MessageName => "CSVCMsg_VoiceData"; - static CSVCMsg_VoiceData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_VoiceDataImpl(handle, isManuallyAllocated); + static CSVCMsg_VoiceData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_VoiceDataImpl(handle, isManuallyAllocated); - public CMsgVoiceAudio Audio { get; } + public CMsgVoiceAudio Audio { get; } - public int Client { get; set; } + public int Client { get; set; } - public bool Proximity { get; set; } + public bool Proximity { get; set; } - public ulong Xuid { get; set; } + public ulong Xuid { get; set; } - public int AudibleMask { get; set; } + public int AudibleMask { get; set; } - public uint Tick { get; set; } + public uint Tick { get; set; } - public int Passthrough { get; set; } + public int Passthrough { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_VoiceInit.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_VoiceInit.cs index 11393ea02..ef1875c9f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_VoiceInit.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSVCMsg_VoiceInit.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CSVCMsg_VoiceInit : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 46; - - static string INetMessage.MessageName => "CSVCMsg_VoiceInit"; + static int INetMessage.MessageId => 46; + + static string INetMessage.MessageName => "CSVCMsg_VoiceInit"; - static CSVCMsg_VoiceInit ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSVCMsg_VoiceInitImpl(handle, isManuallyAllocated); + static CSVCMsg_VoiceInit ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSVCMsg_VoiceInitImpl(handle, isManuallyAllocated); - public int Quality { get; set; } + public int Quality { get; set; } - public string Codec { get; set; } + public string Codec { get; set; } - public int Version { get; set; } + public int Version { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSource2Metrics_MatchPerfSummary_Notification.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSource2Metrics_MatchPerfSummary_Notification.cs index a775fd0c1..a4e67df0b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSource2Metrics_MatchPerfSummary_Notification.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSource2Metrics_MatchPerfSummary_Notification.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSource2Metrics_MatchPerfSummary_Notification : ITypedProtobuf { - static CSource2Metrics_MatchPerfSummary_Notification ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSource2Metrics_MatchPerfSummary_NotificationImpl(handle, isManuallyAllocated); + static CSource2Metrics_MatchPerfSummary_Notification ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSource2Metrics_MatchPerfSummary_NotificationImpl(handle, isManuallyAllocated); - public uint Appid { get; set; } + public uint Appid { get; set; } - public string GameMode { get; set; } + public string GameMode { get; set; } - public uint ServerBuildId { get; set; } + public uint ServerBuildId { get; set; } - public uint ServerPopid { get; set; } + public uint ServerPopid { get; set; } - public CMsgSource2VProfLiteReport ServerProfile { get; } + public CMsgSource2VProfLiteReport ServerProfile { get; } - public IProtobufRepeatedFieldSubMessageType Clients { get; } + public IProtobufRepeatedFieldSubMessageType Clients { get; } - public string Map { get; set; } + public string Map { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSource2Metrics_MatchPerfSummary_Notification_Client.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSource2Metrics_MatchPerfSummary_Notification_Client.cs index c8013aff0..e4b042123 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSource2Metrics_MatchPerfSummary_Notification_Client.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSource2Metrics_MatchPerfSummary_Notification_Client.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSource2Metrics_MatchPerfSummary_Notification_Client : ITypedProtobuf { - static CSource2Metrics_MatchPerfSummary_Notification_Client ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSource2Metrics_MatchPerfSummary_Notification_ClientImpl(handle, isManuallyAllocated); + static CSource2Metrics_MatchPerfSummary_Notification_Client ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSource2Metrics_MatchPerfSummary_Notification_ClientImpl(handle, isManuallyAllocated); - public CMsgSource2SystemSpecs SystemSpecs { get; } + public CMsgSource2SystemSpecs SystemSpecs { get; } - public CMsgSource2VProfLiteReport Profile { get; } + public CMsgSource2VProfLiteReport Profile { get; } - public uint BuildId { get; set; } + public uint BuildId { get; set; } - public CMsgSource2NetworkFlowQuality DownstreamFlow { get; } + public CMsgSource2NetworkFlowQuality DownstreamFlow { get; } - public CMsgSource2NetworkFlowQuality UpstreamFlow { get; } + public CMsgSource2NetworkFlowQuality UpstreamFlow { get; } - public ulong Steamid { get; set; } + public ulong Steamid { get; set; } - public IProtobufRepeatedFieldSubMessageType PerfSamples { get; } + public IProtobufRepeatedFieldSubMessageType PerfSamples { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSteam_Voice_Encoding.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSteam_Voice_Encoding.cs index 1e767e94c..9a5a5a2e3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSteam_Voice_Encoding.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSteam_Voice_Encoding.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSteam_Voice_Encoding : ITypedProtobuf { - static CSteam_Voice_Encoding ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSteam_Voice_EncodingImpl(handle, isManuallyAllocated); + static CSteam_Voice_Encoding ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSteam_Voice_EncodingImpl(handle, isManuallyAllocated); - public byte[] VoiceData { get; set; } + public byte[] VoiceData { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSubtickMoveStep.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSubtickMoveStep.cs index bcba1502f..ae0d0568f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSubtickMoveStep.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CSubtickMoveStep.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CSubtickMoveStep : ITypedProtobuf { - static CSubtickMoveStep ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CSubtickMoveStepImpl(handle, isManuallyAllocated); + static CSubtickMoveStep ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CSubtickMoveStepImpl(handle, isManuallyAllocated); - public ulong Button { get; set; } + public ulong Button { get; set; } - public bool Pressed { get; set; } + public bool Pressed { get; set; } - public float When { get; set; } + public float When { get; set; } - public float AnalogForwardDelta { get; set; } + public float AnalogForwardDelta { get; set; } - public float AnalogLeftDelta { get; set; } + public float AnalogLeftDelta { get; set; } - public float PitchDelta { get; set; } + public float PitchDelta { get; set; } - public float YawDelta { get; set; } + public float YawDelta { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUIFontFilePB.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUIFontFilePB.cs index 5bc065800..4b68a2b7e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUIFontFilePB.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUIFontFilePB.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUIFontFilePB : ITypedProtobuf { - static CUIFontFilePB ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUIFontFilePBImpl(handle, isManuallyAllocated); + static CUIFontFilePB ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUIFontFilePBImpl(handle, isManuallyAllocated); - public string FontFileName { get; set; } + public string FontFileName { get; set; } - public byte[] OpentypeFontData { get; set; } + public byte[] OpentypeFontData { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUIFontFilePackagePB.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUIFontFilePackagePB.cs index 19b5755d2..4825eb1cd 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUIFontFilePackagePB.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUIFontFilePackagePB.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUIFontFilePackagePB : ITypedProtobuf { - static CUIFontFilePackagePB ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUIFontFilePackagePBImpl(handle, isManuallyAllocated); + static CUIFontFilePackagePB ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUIFontFilePackagePBImpl(handle, isManuallyAllocated); - public uint PackageVersion { get; set; } + public uint PackageVersion { get; set; } - public IProtobufRepeatedFieldSubMessageType EncryptedFontFiles { get; } + public IProtobufRepeatedFieldSubMessageType EncryptedFontFiles { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUIFontFilePackagePB_CUIEncryptedFontFilePB.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUIFontFilePackagePB_CUIEncryptedFontFilePB.cs index 55687345a..1e254bd93 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUIFontFilePackagePB_CUIEncryptedFontFilePB.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUIFontFilePackagePB_CUIEncryptedFontFilePB.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUIFontFilePackagePB_CUIEncryptedFontFilePB : ITypedProtobuf { - static CUIFontFilePackagePB_CUIEncryptedFontFilePB ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUIFontFilePackagePB_CUIEncryptedFontFilePBImpl(handle, isManuallyAllocated); + static CUIFontFilePackagePB_CUIEncryptedFontFilePB ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUIFontFilePackagePB_CUIEncryptedFontFilePBImpl(handle, isManuallyAllocated); - public byte[] EncryptedContents { get; set; } + public byte[] EncryptedContents { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserCmdBasePB.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserCmdBasePB.cs index 2269ddb71..463340270 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserCmdBasePB.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserCmdBasePB.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserCmdBasePB : ITypedProtobuf { - static CUserCmdBasePB ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserCmdBasePBImpl(handle, isManuallyAllocated); + static CUserCmdBasePB ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserCmdBasePBImpl(handle, isManuallyAllocated); - public CBaseUserCmdPB Base { get; } + public CBaseUserCmdPB Base { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAchievementEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAchievementEvent.cs index 4dfd235ed..114cf7b6e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAchievementEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAchievementEvent.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageAchievementEvent : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 101; - - static string INetMessage.MessageName => "CUserMessageAchievementEvent"; + static int INetMessage.MessageId => 101; + + static string INetMessage.MessageName => "CUserMessageAchievementEvent"; - static CUserMessageAchievementEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageAchievementEventImpl(handle, isManuallyAllocated); + static CUserMessageAchievementEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageAchievementEventImpl(handle, isManuallyAllocated); - public uint Achievement { get; set; } + public uint Achievement { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAmmoDenied.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAmmoDenied.cs index 2f867c763..54c1a23f7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAmmoDenied.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAmmoDenied.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageAmmoDenied : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 132; - - static string INetMessage.MessageName => "CUserMessageAmmoDenied"; + static int INetMessage.MessageId => 132; + + static string INetMessage.MessageName => "CUserMessageAmmoDenied"; - static CUserMessageAmmoDenied ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageAmmoDeniedImpl(handle, isManuallyAllocated); + static CUserMessageAmmoDenied ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageAmmoDeniedImpl(handle, isManuallyAllocated); - public uint AmmoId { get; set; } + public uint AmmoId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAnimStateGraphState.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAnimStateGraphState.cs index a56295e6b..187407eb4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAnimStateGraphState.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAnimStateGraphState.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMessageAnimStateGraphState : ITypedProtobuf { - static CUserMessageAnimStateGraphState ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageAnimStateGraphStateImpl(handle, isManuallyAllocated); + static CUserMessageAnimStateGraphState ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageAnimStateGraphStateImpl(handle, isManuallyAllocated); - public int EntityIndex { get; set; } + public int EntityIndex { get; set; } - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAudioParameter.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAudioParameter.cs index 9758f4b32..3e30dcd71 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAudioParameter.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageAudioParameter.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageAudioParameter : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 144; - - static string INetMessage.MessageName => "CUserMessageAudioParameter"; + static int INetMessage.MessageId => 144; + + static string INetMessage.MessageName => "CUserMessageAudioParameter"; - static CUserMessageAudioParameter ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageAudioParameterImpl(handle, isManuallyAllocated); + static CUserMessageAudioParameter ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageAudioParameterImpl(handle, isManuallyAllocated); - public uint ParameterType { get; set; } + public uint ParameterType { get; set; } - public uint NameHashCode { get; set; } + public uint NameHashCode { get; set; } - public float Value { get; set; } + public float Value { get; set; } - public uint IntValue { get; set; } + public uint IntValue { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCameraTransition.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCameraTransition.cs index 0bf5b7ecb..374e222a1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCameraTransition.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCameraTransition.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageCameraTransition : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 143; - - static string INetMessage.MessageName => "CUserMessageCameraTransition"; + static int INetMessage.MessageId => 143; + + static string INetMessage.MessageName => "CUserMessageCameraTransition"; - static CUserMessageCameraTransition ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageCameraTransitionImpl(handle, isManuallyAllocated); + static CUserMessageCameraTransition ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageCameraTransitionImpl(handle, isManuallyAllocated); - public uint CameraType { get; set; } + public uint CameraType { get; set; } - public float Duration { get; set; } + public float Duration { get; set; } - public CUserMessageCameraTransition_Transition_DataDriven ParamsDataDriven { get; } + public CUserMessageCameraTransition_Transition_DataDriven ParamsDataDriven { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCameraTransition_Transition_DataDriven.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCameraTransition_Transition_DataDriven.cs index 944a4e191..2a8e3cc58 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCameraTransition_Transition_DataDriven.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCameraTransition_Transition_DataDriven.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMessageCameraTransition_Transition_DataDriven : ITypedProtobuf { - static CUserMessageCameraTransition_Transition_DataDriven ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageCameraTransition_Transition_DataDrivenImpl(handle, isManuallyAllocated); + static CUserMessageCameraTransition_Transition_DataDriven ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageCameraTransition_Transition_DataDrivenImpl(handle, isManuallyAllocated); - public string Filename { get; set; } + public string Filename { get; set; } - public int AttachEntIndex { get; set; } + public int AttachEntIndex { get; set; } - public float Duration { get; set; } + public float Duration { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCloseCaption.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCloseCaption.cs index 35fc1fea7..1b413eb68 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCloseCaption.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCloseCaption.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageCloseCaption : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 102; - - static string INetMessage.MessageName => "CUserMessageCloseCaption"; + static int INetMessage.MessageId => 102; + + static string INetMessage.MessageName => "CUserMessageCloseCaption"; - static CUserMessageCloseCaption ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageCloseCaptionImpl(handle, isManuallyAllocated); + static CUserMessageCloseCaption ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageCloseCaptionImpl(handle, isManuallyAllocated); - public uint Hash { get; set; } + public uint Hash { get; set; } - public float Duration { get; set; } + public float Duration { get; set; } - public bool FromPlayer { get; set; } + public bool FromPlayer { get; set; } - public int EntIndex { get; set; } + public int EntIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCloseCaptionDirect.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCloseCaptionDirect.cs index 8e42fb5c4..05bdd74c7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCloseCaptionDirect.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCloseCaptionDirect.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageCloseCaptionDirect : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 103; - - static string INetMessage.MessageName => "CUserMessageCloseCaptionDirect"; + static int INetMessage.MessageId => 103; + + static string INetMessage.MessageName => "CUserMessageCloseCaptionDirect"; - static CUserMessageCloseCaptionDirect ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageCloseCaptionDirectImpl(handle, isManuallyAllocated); + static CUserMessageCloseCaptionDirect ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageCloseCaptionDirectImpl(handle, isManuallyAllocated); - public uint Hash { get; set; } + public uint Hash { get; set; } - public float Duration { get; set; } + public float Duration { get; set; } - public bool FromPlayer { get; set; } + public bool FromPlayer { get; set; } - public int EntIndex { get; set; } + public int EntIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCloseCaptionPlaceholder.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCloseCaptionPlaceholder.cs index 6c9454657..6fd949b01 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCloseCaptionPlaceholder.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCloseCaptionPlaceholder.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageCloseCaptionPlaceholder : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 142; - - static string INetMessage.MessageName => "CUserMessageCloseCaptionPlaceholder"; + static int INetMessage.MessageId => 142; + + static string INetMessage.MessageName => "CUserMessageCloseCaptionPlaceholder"; - static CUserMessageCloseCaptionPlaceholder ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageCloseCaptionPlaceholderImpl(handle, isManuallyAllocated); + static CUserMessageCloseCaptionPlaceholder ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageCloseCaptionPlaceholderImpl(handle, isManuallyAllocated); - public string String { get; set; } + public string String { get; set; } - public float Duration { get; set; } + public float Duration { get; set; } - public bool FromPlayer { get; set; } + public bool FromPlayer { get; set; } - public int EntIndex { get; set; } + public int EntIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageColoredText.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageColoredText.cs index 5e9d4694f..7f0bbf03f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageColoredText.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageColoredText.cs @@ -1,35 +1,34 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageColoredText : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 113; - - static string INetMessage.MessageName => "CUserMessageColoredText"; + static int INetMessage.MessageId => 113; + + static string INetMessage.MessageName => "CUserMessageColoredText"; - static CUserMessageColoredText ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageColoredTextImpl(handle, isManuallyAllocated); + static CUserMessageColoredText ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageColoredTextImpl(handle, isManuallyAllocated); - public uint Color { get; set; } + public uint Color { get; set; } - public string Text { get; set; } + public string Text { get; set; } - public bool Reset { get; set; } + public bool Reset { get; set; } - public int ContextPlayerSlot { get; set; } + public int ContextPlayerSlot { get; set; } - public int ContextValue { get; set; } + public int ContextValue { get; set; } - public int ContextTeamId { get; set; } + public int ContextTeamId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCreditsMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCreditsMsg.cs index 0b180e9a2..eb756ebb6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCreditsMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCreditsMsg.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageCreditsMsg : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 135; - - static string INetMessage.MessageName => "CUserMessageCreditsMsg"; + static int INetMessage.MessageId => 135; + + static string INetMessage.MessageName => "CUserMessageCreditsMsg"; - static CUserMessageCreditsMsg ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageCreditsMsgImpl(handle, isManuallyAllocated); + static CUserMessageCreditsMsg ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageCreditsMsgImpl(handle, isManuallyAllocated); - public eRollType Rolltype { get; set; } + public eRollType Rolltype { get; set; } - public float LogoLength { get; set; } + public float LogoLength { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCurrentTimescale.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCurrentTimescale.cs index 954a4016e..d2f1da38e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCurrentTimescale.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageCurrentTimescale.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageCurrentTimescale : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 104; - - static string INetMessage.MessageName => "CUserMessageCurrentTimescale"; + static int INetMessage.MessageId => 104; + + static string INetMessage.MessageName => "CUserMessageCurrentTimescale"; - static CUserMessageCurrentTimescale ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageCurrentTimescaleImpl(handle, isManuallyAllocated); + static CUserMessageCurrentTimescale ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageCurrentTimescaleImpl(handle, isManuallyAllocated); - public float Current { get; set; } + public float Current { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageDesiredTimescale.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageDesiredTimescale.cs index 849442e5d..094ad49fb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageDesiredTimescale.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageDesiredTimescale.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageDesiredTimescale : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 105; - - static string INetMessage.MessageName => "CUserMessageDesiredTimescale"; + static int INetMessage.MessageId => 105; + + static string INetMessage.MessageName => "CUserMessageDesiredTimescale"; - static CUserMessageDesiredTimescale ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageDesiredTimescaleImpl(handle, isManuallyAllocated); + static CUserMessageDesiredTimescale ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageDesiredTimescaleImpl(handle, isManuallyAllocated); - public float Desired { get; set; } + public float Desired { get; set; } - public float Acceleration { get; set; } + public float Acceleration { get; set; } - public float Minblendrate { get; set; } + public float Minblendrate { get; set; } - public float Blenddeltamultiplier { get; set; } + public float Blenddeltamultiplier { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageFade.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageFade.cs index 1019a3982..4b5c851a3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageFade.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageFade.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageFade : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 106; - - static string INetMessage.MessageName => "CUserMessageFade"; + static int INetMessage.MessageId => 106; + + static string INetMessage.MessageName => "CUserMessageFade"; - static CUserMessageFade ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageFadeImpl(handle, isManuallyAllocated); + static CUserMessageFade ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageFadeImpl(handle, isManuallyAllocated); - public uint Duration { get; set; } + public uint Duration { get; set; } - public uint HoldTime { get; set; } + public uint HoldTime { get; set; } - public uint Flags { get; set; } + public uint Flags { get; set; } - public uint Color { get; set; } + public uint Color { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageGameTitle.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageGameTitle.cs index 901f1a6f3..3f8dc80e6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageGameTitle.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageGameTitle.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageGameTitle : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 107; - - static string INetMessage.MessageName => "CUserMessageGameTitle"; + static int INetMessage.MessageId => 107; + + static string INetMessage.MessageName => "CUserMessageGameTitle"; - static CUserMessageGameTitle ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageGameTitleImpl(handle, isManuallyAllocated); + static CUserMessageGameTitle ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageGameTitleImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHapticsManagerEffect.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHapticsManagerEffect.cs index 503116c76..473671c60 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHapticsManagerEffect.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHapticsManagerEffect.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageHapticsManagerEffect : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 151; - - static string INetMessage.MessageName => "CUserMessageHapticsManagerEffect"; + static int INetMessage.MessageId => 151; + + static string INetMessage.MessageName => "CUserMessageHapticsManagerEffect"; - static CUserMessageHapticsManagerEffect ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageHapticsManagerEffectImpl(handle, isManuallyAllocated); + static CUserMessageHapticsManagerEffect ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageHapticsManagerEffectImpl(handle, isManuallyAllocated); - public int HandId { get; set; } + public int HandId { get; set; } - public uint EffectNameHashCode { get; set; } + public uint EffectNameHashCode { get; set; } - public float EffectScale { get; set; } + public float EffectScale { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHapticsManagerPulse.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHapticsManagerPulse.cs index ef67d3dea..1a5626ec0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHapticsManagerPulse.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHapticsManagerPulse.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageHapticsManagerPulse : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 150; - - static string INetMessage.MessageName => "CUserMessageHapticsManagerPulse"; + static int INetMessage.MessageId => 150; + + static string INetMessage.MessageName => "CUserMessageHapticsManagerPulse"; - static CUserMessageHapticsManagerPulse ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageHapticsManagerPulseImpl(handle, isManuallyAllocated); + static CUserMessageHapticsManagerPulse ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageHapticsManagerPulseImpl(handle, isManuallyAllocated); - public int HandId { get; set; } + public int HandId { get; set; } - public float EffectAmplitude { get; set; } + public float EffectAmplitude { get; set; } - public float EffectFrequency { get; set; } + public float EffectFrequency { get; set; } - public float EffectDuration { get; set; } + public float EffectDuration { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHudMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHudMsg.cs index 9732c23f1..f50805601 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHudMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHudMsg.cs @@ -1,38 +1,37 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageHudMsg : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 110; - - static string INetMessage.MessageName => "CUserMessageHudMsg"; + static int INetMessage.MessageId => 110; + + static string INetMessage.MessageName => "CUserMessageHudMsg"; - static CUserMessageHudMsg ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageHudMsgImpl(handle, isManuallyAllocated); + static CUserMessageHudMsg ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageHudMsgImpl(handle, isManuallyAllocated); - public uint Channel { get; set; } + public uint Channel { get; set; } - public float X { get; set; } + public float X { get; set; } - public float Y { get; set; } + public float Y { get; set; } - public uint Color1 { get; set; } + public uint Color1 { get; set; } - public uint Color2 { get; set; } + public uint Color2 { get; set; } - public uint Effect { get; set; } + public uint Effect { get; set; } - public string Message { get; set; } + public string Message { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHudText.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHudText.cs index d3842db33..18f140cf5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHudText.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageHudText.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageHudText : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 111; - - static string INetMessage.MessageName => "CUserMessageHudText"; + static int INetMessage.MessageId => 111; + + static string INetMessage.MessageName => "CUserMessageHudText"; - static CUserMessageHudText ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageHudTextImpl(handle, isManuallyAllocated); + static CUserMessageHudText ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageHudTextImpl(handle, isManuallyAllocated); - public string Message { get; set; } + public string Message { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageItemPickup.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageItemPickup.cs index 669961927..0459cda4e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageItemPickup.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageItemPickup.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageItemPickup : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 131; - - static string INetMessage.MessageName => "CUserMessageItemPickup"; + static int INetMessage.MessageId => 131; + + static string INetMessage.MessageName => "CUserMessageItemPickup"; - static CUserMessageItemPickup ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageItemPickupImpl(handle, isManuallyAllocated); + static CUserMessageItemPickup ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageItemPickupImpl(handle, isManuallyAllocated); - public string Itemname { get; set; } + public string Itemname { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageLagCompensationError.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageLagCompensationError.cs index 5ef01c9c4..dc35dbb96 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageLagCompensationError.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageLagCompensationError.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageLagCompensationError : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 155; - - static string INetMessage.MessageName => "CUserMessageLagCompensationError"; + static int INetMessage.MessageId => 155; + + static string INetMessage.MessageName => "CUserMessageLagCompensationError"; - static CUserMessageLagCompensationError ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageLagCompensationErrorImpl(handle, isManuallyAllocated); + static CUserMessageLagCompensationError ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageLagCompensationErrorImpl(handle, isManuallyAllocated); - public float Distance { get; set; } + public float Distance { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestDiagnostic.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestDiagnostic.cs index 012920e16..a334d5d09 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestDiagnostic.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestDiagnostic.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageRequestDiagnostic : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 162; - - static string INetMessage.MessageName => "CUserMessageRequestDiagnostic"; + static int INetMessage.MessageId => 162; + + static string INetMessage.MessageName => "CUserMessageRequestDiagnostic"; - static CUserMessageRequestDiagnostic ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageRequestDiagnosticImpl(handle, isManuallyAllocated); + static CUserMessageRequestDiagnostic ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageRequestDiagnosticImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Diagnostics { get; } + public IProtobufRepeatedFieldSubMessageType Diagnostics { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestDiagnostic_Diagnostic.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestDiagnostic_Diagnostic.cs index 3770bc2b7..7ba7f92d7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestDiagnostic_Diagnostic.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestDiagnostic_Diagnostic.cs @@ -1,51 +1,50 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMessageRequestDiagnostic_Diagnostic : ITypedProtobuf { - static CUserMessageRequestDiagnostic_Diagnostic ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageRequestDiagnostic_DiagnosticImpl(handle, isManuallyAllocated); + static CUserMessageRequestDiagnostic_Diagnostic ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageRequestDiagnostic_DiagnosticImpl(handle, isManuallyAllocated); - public int Index { get; set; } + public int Index { get; set; } - public long Offset { get; set; } + public long Offset { get; set; } - public int Param { get; set; } + public int Param { get; set; } - public int Length { get; set; } + public int Length { get; set; } - public int Type { get; set; } + public int Type { get; set; } - public long Base { get; set; } + public long Base { get; set; } - public long Range { get; set; } + public long Range { get; set; } - public long Extent { get; set; } + public long Extent { get; set; } - public long Detail { get; set; } + public long Detail { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public string Alias { get; set; } + public string Alias { get; set; } - public byte[] Vardetail { get; set; } + public byte[] Vardetail { get; set; } - public int Context { get; set; } + public int Context { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestDllStatus.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestDllStatus.cs index b404b6e9a..076a098f6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestDllStatus.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestDllStatus.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageRequestDllStatus : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 156; - - static string INetMessage.MessageName => "CUserMessageRequestDllStatus"; + static int INetMessage.MessageId => 156; + + static string INetMessage.MessageName => "CUserMessageRequestDllStatus"; - static CUserMessageRequestDllStatus ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageRequestDllStatusImpl(handle, isManuallyAllocated); + static CUserMessageRequestDllStatus ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageRequestDllStatusImpl(handle, isManuallyAllocated); - public string DllAction { get; set; } + public string DllAction { get; set; } - public bool FullReport { get; set; } + public bool FullReport { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestInventory.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestInventory.cs index ac0b93925..49e2c838a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestInventory.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestInventory.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageRequestInventory : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 160; - - static string INetMessage.MessageName => "CUserMessageRequestInventory"; + static int INetMessage.MessageId => 160; + + static string INetMessage.MessageName => "CUserMessageRequestInventory"; - static CUserMessageRequestInventory ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageRequestInventoryImpl(handle, isManuallyAllocated); + static CUserMessageRequestInventory ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageRequestInventoryImpl(handle, isManuallyAllocated); - public int Inventory { get; set; } + public int Inventory { get; set; } - public int Offset { get; set; } + public int Offset { get; set; } - public int Options { get; set; } + public int Options { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestState.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestState.cs index c9fad0b5e..9a8b03ec5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestState.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestState.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageRequestState : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 114; - - static string INetMessage.MessageName => "CUserMessageRequestState"; + static int INetMessage.MessageId => 114; + + static string INetMessage.MessageName => "CUserMessageRequestState"; - static CUserMessageRequestState ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageRequestStateImpl(handle, isManuallyAllocated); + static CUserMessageRequestState ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageRequestStateImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestUtilAction.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestUtilAction.cs index 2b155ab44..52285c74e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestUtilAction.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRequestUtilAction.cs @@ -1,32 +1,31 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageRequestUtilAction : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 157; - - static string INetMessage.MessageName => "CUserMessageRequestUtilAction"; + static int INetMessage.MessageId => 157; + + static string INetMessage.MessageName => "CUserMessageRequestUtilAction"; - static CUserMessageRequestUtilAction ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageRequestUtilActionImpl(handle, isManuallyAllocated); + static CUserMessageRequestUtilAction ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageRequestUtilActionImpl(handle, isManuallyAllocated); - public int Util1 { get; set; } + public int Util1 { get; set; } - public int Util2 { get; set; } + public int Util2 { get; set; } - public int Util3 { get; set; } + public int Util3 { get; set; } - public int Util4 { get; set; } + public int Util4 { get; set; } - public int Util5 { get; set; } + public int Util5 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageResetHUD.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageResetHUD.cs index f40ff4df6..d414c410b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageResetHUD.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageResetHUD.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageResetHUD : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 115; - - static string INetMessage.MessageName => "CUserMessageResetHUD"; + static int INetMessage.MessageId => 115; + + static string INetMessage.MessageName => "CUserMessageResetHUD"; - static CUserMessageResetHUD ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageResetHUDImpl(handle, isManuallyAllocated); + static CUserMessageResetHUD ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageResetHUDImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRumble.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRumble.cs index 9ac464346..88f814de4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRumble.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageRumble.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageRumble : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 116; - - static string INetMessage.MessageName => "CUserMessageRumble"; + static int INetMessage.MessageId => 116; + + static string INetMessage.MessageName => "CUserMessageRumble"; - static CUserMessageRumble ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageRumbleImpl(handle, isManuallyAllocated); + static CUserMessageRumble ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageRumbleImpl(handle, isManuallyAllocated); - public int Index { get; set; } + public int Index { get; set; } - public int Data { get; set; } + public int Data { get; set; } - public int Flags { get; set; } + public int Flags { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSayText.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSayText.cs index 1cff45d1d..ba6ae3ab1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSayText.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSayText.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageSayText : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 117; - - static string INetMessage.MessageName => "CUserMessageSayText"; + static int INetMessage.MessageId => 117; + + static string INetMessage.MessageName => "CUserMessageSayText"; - static CUserMessageSayText ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageSayTextImpl(handle, isManuallyAllocated); + static CUserMessageSayText ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageSayTextImpl(handle, isManuallyAllocated); - public int Playerindex { get; set; } + public int Playerindex { get; set; } - public string Text { get; set; } + public string Text { get; set; } - public bool Chat { get; set; } + public bool Chat { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSayText2.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSayText2.cs index 92979be16..af4ac5366 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSayText2.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSayText2.cs @@ -1,38 +1,37 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageSayText2 : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 118; - - static string INetMessage.MessageName => "CUserMessageSayText2"; + static int INetMessage.MessageId => 118; + + static string INetMessage.MessageName => "CUserMessageSayText2"; - static CUserMessageSayText2 ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageSayText2Impl(handle, isManuallyAllocated); + static CUserMessageSayText2 ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageSayText2Impl(handle, isManuallyAllocated); - public int Entityindex { get; set; } + public int Entityindex { get; set; } - public bool Chat { get; set; } + public bool Chat { get; set; } - public string Messagename { get; set; } + public string Messagename { get; set; } - public string Param1 { get; set; } + public string Param1 { get; set; } - public string Param2 { get; set; } + public string Param2 { get; set; } - public string Param3 { get; set; } + public string Param3 { get; set; } - public string Param4 { get; set; } + public string Param4 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSayTextChannel.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSayTextChannel.cs index 906acb279..152e9ad2b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSayTextChannel.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSayTextChannel.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageSayTextChannel : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 119; - - static string INetMessage.MessageName => "CUserMessageSayTextChannel"; + static int INetMessage.MessageId => 119; + + static string INetMessage.MessageName => "CUserMessageSayTextChannel"; - static CUserMessageSayTextChannel ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageSayTextChannelImpl(handle, isManuallyAllocated); + static CUserMessageSayTextChannel ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageSayTextChannelImpl(handle, isManuallyAllocated); - public int Player { get; set; } + public int Player { get; set; } - public int Channel { get; set; } + public int Channel { get; set; } - public string Text { get; set; } + public string Text { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageScreenTilt.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageScreenTilt.cs index 9a76a52dd..0020918cf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageScreenTilt.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageScreenTilt.cs @@ -1,32 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageScreenTilt : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 125; - - static string INetMessage.MessageName => "CUserMessageScreenTilt"; + static int INetMessage.MessageId => 125; + + static string INetMessage.MessageName => "CUserMessageScreenTilt"; - static CUserMessageScreenTilt ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageScreenTiltImpl(handle, isManuallyAllocated); + static CUserMessageScreenTilt ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageScreenTiltImpl(handle, isManuallyAllocated); - public uint Command { get; set; } + public uint Command { get; set; } - public bool EaseInOut { get; set; } + public bool EaseInOut { get; set; } - public Vector Angle { get; set; } + public Vector Angle { get; set; } - public float Duration { get; set; } + public float Duration { get; set; } - public float Time { get; set; } + public float Time { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSendAudio.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSendAudio.cs index 52bedb914..05c7b269c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSendAudio.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageSendAudio.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageSendAudio : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 130; - - static string INetMessage.MessageName => "CUserMessageSendAudio"; + static int INetMessage.MessageId => 130; + + static string INetMessage.MessageName => "CUserMessageSendAudio"; - static CUserMessageSendAudio ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageSendAudioImpl(handle, isManuallyAllocated); + static CUserMessageSendAudio ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageSendAudioImpl(handle, isManuallyAllocated); - public string Soundname { get; set; } + public string Soundname { get; set; } - public bool Stop { get; set; } + public bool Stop { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageServerFrameTime.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageServerFrameTime.cs index 7dfd5d495..b8d872e18 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageServerFrameTime.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageServerFrameTime.cs @@ -1,20 +1,19 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageServerFrameTime : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 154; - - static string INetMessage.MessageName => "CUserMessageServerFrameTime"; + static int INetMessage.MessageId => 154; + + static string INetMessage.MessageName => "CUserMessageServerFrameTime"; - static CUserMessageServerFrameTime ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageServerFrameTimeImpl(handle, isManuallyAllocated); + static CUserMessageServerFrameTime ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageServerFrameTimeImpl(handle, isManuallyAllocated); - public float FrameTime { get; set; } + public float FrameTime { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageShake.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageShake.cs index e89e9923d..b6bee33b6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageShake.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageShake.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageShake : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 120; - - static string INetMessage.MessageName => "CUserMessageShake"; + static int INetMessage.MessageId => 120; + + static string INetMessage.MessageName => "CUserMessageShake"; - static CUserMessageShake ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageShakeImpl(handle, isManuallyAllocated); + static CUserMessageShake ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageShakeImpl(handle, isManuallyAllocated); - public uint Command { get; set; } + public uint Command { get; set; } - public float Amplitude { get; set; } + public float Amplitude { get; set; } - public float Frequency { get; set; } + public float Frequency { get; set; } - public float Duration { get; set; } + public float Duration { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageShakeDir.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageShakeDir.cs index 2eb1245dc..b5fdd18ce 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageShakeDir.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageShakeDir.cs @@ -1,23 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageShakeDir : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 121; - - static string INetMessage.MessageName => "CUserMessageShakeDir"; + static int INetMessage.MessageId => 121; + + static string INetMessage.MessageName => "CUserMessageShakeDir"; - static CUserMessageShakeDir ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageShakeDirImpl(handle, isManuallyAllocated); + static CUserMessageShakeDir ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageShakeDirImpl(handle, isManuallyAllocated); - public CUserMessageShake Shake { get; } + public CUserMessageShake Shake { get; } - public Vector Direction { get; set; } + public Vector Direction { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageShowMenu.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageShowMenu.cs index 26287bc8e..32d6f5409 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageShowMenu.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageShowMenu.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageShowMenu : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 134; - - static string INetMessage.MessageName => "CUserMessageShowMenu"; + static int INetMessage.MessageId => 134; + + static string INetMessage.MessageName => "CUserMessageShowMenu"; - static CUserMessageShowMenu ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageShowMenuImpl(handle, isManuallyAllocated); + static CUserMessageShowMenu ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageShowMenuImpl(handle, isManuallyAllocated); - public uint Validslots { get; set; } + public uint Validslots { get; set; } - public uint Displaytime { get; set; } + public uint Displaytime { get; set; } - public bool Needmore { get; set; } + public bool Needmore { get; set; } - public string Menustring { get; set; } + public string Menustring { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageTextMsg.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageTextMsg.cs index 09a88fa17..95be69476 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageTextMsg.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageTextMsg.cs @@ -1,23 +1,22 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageTextMsg : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 124; - - static string INetMessage.MessageName => "CUserMessageTextMsg"; + static int INetMessage.MessageId => 124; + + static string INetMessage.MessageName => "CUserMessageTextMsg"; - static CUserMessageTextMsg ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageTextMsgImpl(handle, isManuallyAllocated); + static CUserMessageTextMsg ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageTextMsgImpl(handle, isManuallyAllocated); - public uint Dest { get; set; } + public uint Dest { get; set; } - public IProtobufRepeatedFieldValueType Param { get; } + public IProtobufRepeatedFieldValueType Param { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageUpdateCssClasses.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageUpdateCssClasses.cs index ecba86b5a..9424e1bd6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageUpdateCssClasses.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageUpdateCssClasses.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageUpdateCssClasses : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 153; - - static string INetMessage.MessageName => "CUserMessageUpdateCssClasses"; + static int INetMessage.MessageId => 153; + + static string INetMessage.MessageName => "CUserMessageUpdateCssClasses"; - static CUserMessageUpdateCssClasses ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageUpdateCssClassesImpl(handle, isManuallyAllocated); + static CUserMessageUpdateCssClasses ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageUpdateCssClassesImpl(handle, isManuallyAllocated); - public int TargetWorldPanel { get; set; } + public int TargetWorldPanel { get; set; } - public string CssClasses { get; set; } + public string CssClasses { get; set; } - public bool IsAdd { get; set; } + public bool IsAdd { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageVoiceMask.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageVoiceMask.cs index 46e17d1e2..c1d18b4f0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageVoiceMask.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageVoiceMask.cs @@ -1,26 +1,25 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageVoiceMask : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 128; - - static string INetMessage.MessageName => "CUserMessageVoiceMask"; + static int INetMessage.MessageId => 128; + + static string INetMessage.MessageName => "CUserMessageVoiceMask"; - static CUserMessageVoiceMask ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageVoiceMaskImpl(handle, isManuallyAllocated); + static CUserMessageVoiceMask ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageVoiceMaskImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType GamerulesMasks { get; } + public IProtobufRepeatedFieldValueType GamerulesMasks { get; } - public IProtobufRepeatedFieldValueType BanMasks { get; } + public IProtobufRepeatedFieldValueType BanMasks { get; } - public bool ModEnable { get; set; } + public bool ModEnable { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageWaterShake.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageWaterShake.cs index 8eb86e135..780184177 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageWaterShake.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessageWaterShake.cs @@ -1,29 +1,28 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessageWaterShake : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 122; - - static string INetMessage.MessageName => "CUserMessageWaterShake"; + static int INetMessage.MessageId => 122; + + static string INetMessage.MessageName => "CUserMessageWaterShake"; - static CUserMessageWaterShake ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessageWaterShakeImpl(handle, isManuallyAllocated); + static CUserMessageWaterShake ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessageWaterShakeImpl(handle, isManuallyAllocated); - public uint Command { get; set; } + public uint Command { get; set; } - public float Amplitude { get; set; } + public float Amplitude { get; set; } - public float Frequency { get; set; } + public float Frequency { get; set; } - public float Duration { get; set; } + public float Duration { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Diagnostic_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Diagnostic_Response.cs index f89be9805..7302a3d17 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Diagnostic_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Diagnostic_Response.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMessage_Diagnostic_Response : ITypedProtobuf { - static CUserMessage_Diagnostic_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessage_Diagnostic_ResponseImpl(handle, isManuallyAllocated); + static CUserMessage_Diagnostic_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessage_Diagnostic_ResponseImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType Diagnostics { get; } + public IProtobufRepeatedFieldSubMessageType Diagnostics { get; } - public int BuildVersion { get; set; } + public int BuildVersion { get; set; } - public int Instance { get; set; } + public int Instance { get; set; } - public long StartTime { get; set; } + public long StartTime { get; set; } - public int Osversion { get; set; } + public int Osversion { get; set; } - public int Platform { get; set; } + public int Platform { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Diagnostic_Response_Diagnostic.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Diagnostic_Response_Diagnostic.cs index 0b2b95395..f740a7b2b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Diagnostic_Response_Diagnostic.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Diagnostic_Response_Diagnostic.cs @@ -1,57 +1,56 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMessage_Diagnostic_Response_Diagnostic : ITypedProtobuf { - static CUserMessage_Diagnostic_Response_Diagnostic ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessage_Diagnostic_Response_DiagnosticImpl(handle, isManuallyAllocated); + static CUserMessage_Diagnostic_Response_Diagnostic ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessage_Diagnostic_Response_DiagnosticImpl(handle, isManuallyAllocated); - public int Index { get; set; } + public int Index { get; set; } - public long Offset { get; set; } + public long Offset { get; set; } - public int Param { get; set; } + public int Param { get; set; } - public int Length { get; set; } + public int Length { get; set; } - public byte[] Detail { get; set; } + public byte[] Detail { get; set; } - public long Base { get; set; } + public long Base { get; set; } - public long Range { get; set; } + public long Range { get; set; } - public int Type { get; set; } + public int Type { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public string Alias { get; set; } + public string Alias { get; set; } - public byte[] Backup { get; set; } + public byte[] Backup { get; set; } - public int Context { get; set; } + public int Context { get; set; } - public long Control { get; set; } + public long Control { get; set; } - public long Augment { get; set; } + public long Augment { get; set; } - public long Placebo { get; set; } + public long Placebo { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_DllStatus.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_DllStatus.cs index f46867705..6d464ef76 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_DllStatus.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_DllStatus.cs @@ -1,36 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMessage_DllStatus : ITypedProtobuf { - static CUserMessage_DllStatus ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessage_DllStatusImpl(handle, isManuallyAllocated); + static CUserMessage_DllStatus ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessage_DllStatusImpl(handle, isManuallyAllocated); - public string FileReport { get; set; } + public string FileReport { get; set; } - public string CommandLine { get; set; } + public string CommandLine { get; set; } - public uint TotalFiles { get; set; } + public uint TotalFiles { get; set; } - public uint ProcessId { get; set; } + public uint ProcessId { get; set; } - public int Osversion { get; set; } + public int Osversion { get; set; } - public ulong ClientTime { get; set; } + public ulong ClientTime { get; set; } - public IProtobufRepeatedFieldSubMessageType Diagnostics { get; } + public IProtobufRepeatedFieldSubMessageType Diagnostics { get; } - public IProtobufRepeatedFieldSubMessageType Modules { get; } + public IProtobufRepeatedFieldSubMessageType Modules { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_DllStatus_CModule.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_DllStatus_CModule.cs index ac44a4c98..057a681df 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_DllStatus_CModule.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_DllStatus_CModule.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMessage_DllStatus_CModule : ITypedProtobuf { - static CUserMessage_DllStatus_CModule ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessage_DllStatus_CModuleImpl(handle, isManuallyAllocated); + static CUserMessage_DllStatus_CModule ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessage_DllStatus_CModuleImpl(handle, isManuallyAllocated); - public ulong BaseAddr { get; set; } + public ulong BaseAddr { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public uint Size { get; set; } + public uint Size { get; set; } - public uint Timestamp { get; set; } + public uint Timestamp { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_DllStatus_CVDiagnostic.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_DllStatus_CVDiagnostic.cs index 39ec06f17..67678f944 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_DllStatus_CVDiagnostic.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_DllStatus_CVDiagnostic.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMessage_DllStatus_CVDiagnostic : ITypedProtobuf { - static CUserMessage_DllStatus_CVDiagnostic ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessage_DllStatus_CVDiagnosticImpl(handle, isManuallyAllocated); + static CUserMessage_DllStatus_CVDiagnostic ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessage_DllStatus_CVDiagnosticImpl(handle, isManuallyAllocated); - public uint Id { get; set; } + public uint Id { get; set; } - public uint Extended { get; set; } + public uint Extended { get; set; } - public ulong Value { get; set; } + public ulong Value { get; set; } - public string StringValue { get; set; } + public string StringValue { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_ExtraUserData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_ExtraUserData.cs index ae55d5ab6..4c3cc8030 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_ExtraUserData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_ExtraUserData.cs @@ -1,32 +1,31 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessage_ExtraUserData : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 164; - - static string INetMessage.MessageName => "CUserMessage_ExtraUserData"; + static int INetMessage.MessageId => 164; + + static string INetMessage.MessageName => "CUserMessage_ExtraUserData"; - static CUserMessage_ExtraUserData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessage_ExtraUserDataImpl(handle, isManuallyAllocated); + static CUserMessage_ExtraUserData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessage_ExtraUserDataImpl(handle, isManuallyAllocated); - public int Item { get; set; } + public int Item { get; set; } - public long Value1 { get; set; } + public long Value1 { get; set; } - public long Value2 { get; set; } + public long Value2 { get; set; } - public IProtobufRepeatedFieldValueType Detail1 { get; } + public IProtobufRepeatedFieldValueType Detail1 { get; } - public IProtobufRepeatedFieldValueType Detail2 { get; } + public IProtobufRepeatedFieldValueType Detail2 { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Inventory_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Inventory_Response.cs index d79ab28e9..eb2c015e7 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Inventory_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Inventory_Response.cs @@ -1,51 +1,50 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMessage_Inventory_Response : ITypedProtobuf { - static CUserMessage_Inventory_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessage_Inventory_ResponseImpl(handle, isManuallyAllocated); + static CUserMessage_Inventory_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessage_Inventory_ResponseImpl(handle, isManuallyAllocated); - public uint Crc { get; set; } + public uint Crc { get; set; } - public int ItemCount { get; set; } + public int ItemCount { get; set; } - public int Osversion { get; set; } + public int Osversion { get; set; } - public int PerfTime { get; set; } + public int PerfTime { get; set; } - public int ClientTimestamp { get; set; } + public int ClientTimestamp { get; set; } - public int Platform { get; set; } + public int Platform { get; set; } - public IProtobufRepeatedFieldSubMessageType Inventories { get; } + public IProtobufRepeatedFieldSubMessageType Inventories { get; } - public IProtobufRepeatedFieldSubMessageType Inventories2 { get; } + public IProtobufRepeatedFieldSubMessageType Inventories2 { get; } - public IProtobufRepeatedFieldSubMessageType Inventories3 { get; } + public IProtobufRepeatedFieldSubMessageType Inventories3 { get; } - public int InvType { get; set; } + public int InvType { get; set; } - public int BuildVersion { get; set; } + public int BuildVersion { get; set; } - public int Instance { get; set; } + public int Instance { get; set; } - public long StartTime { get; set; } + public long StartTime { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Inventory_Response_InventoryDetail.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Inventory_Response_InventoryDetail.cs index bc7ba2c1a..5e7c3252e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Inventory_Response_InventoryDetail.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_Inventory_Response_InventoryDetail.cs @@ -1,42 +1,41 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMessage_Inventory_Response_InventoryDetail : ITypedProtobuf { - static CUserMessage_Inventory_Response_InventoryDetail ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessage_Inventory_Response_InventoryDetailImpl(handle, isManuallyAllocated); + static CUserMessage_Inventory_Response_InventoryDetail ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessage_Inventory_Response_InventoryDetailImpl(handle, isManuallyAllocated); - public int Index { get; set; } + public int Index { get; set; } - public long Primary { get; set; } + public long Primary { get; set; } - public long Offset { get; set; } + public long Offset { get; set; } - public long First { get; set; } + public long First { get; set; } - public long Base { get; set; } + public long Base { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public string BaseName { get; set; } + public string BaseName { get; set; } - public int BaseDetail { get; set; } + public int BaseDetail { get; set; } - public int BaseTime { get; set; } + public int BaseTime { get; set; } - public int BaseHash { get; set; } + public int BaseHash { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_NotifyResponseFound.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_NotifyResponseFound.cs index 3afbaa82e..9c71177d4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_NotifyResponseFound.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_NotifyResponseFound.cs @@ -1,53 +1,52 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessage_NotifyResponseFound : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 165; - - static string INetMessage.MessageName => "CUserMessage_NotifyResponseFound"; + static int INetMessage.MessageId => 165; + + static string INetMessage.MessageName => "CUserMessage_NotifyResponseFound"; - static CUserMessage_NotifyResponseFound ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessage_NotifyResponseFoundImpl(handle, isManuallyAllocated); + static CUserMessage_NotifyResponseFound ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessage_NotifyResponseFoundImpl(handle, isManuallyAllocated); - public int EntIndex { get; set; } + public int EntIndex { get; set; } - public string RuleName { get; set; } + public string RuleName { get; set; } - public string ResponseValue { get; set; } + public string ResponseValue { get; set; } - public string ResponseConcept { get; set; } + public string ResponseConcept { get; set; } - public IProtobufRepeatedFieldSubMessageType Criteria { get; } + public IProtobufRepeatedFieldSubMessageType Criteria { get; } - public IProtobufRepeatedFieldValueType IntCriteriaNames { get; } + public IProtobufRepeatedFieldValueType IntCriteriaNames { get; } - public IProtobufRepeatedFieldValueType IntCriteriaValues { get; } + public IProtobufRepeatedFieldValueType IntCriteriaValues { get; } - public IProtobufRepeatedFieldValueType FloatCriteriaNames { get; } + public IProtobufRepeatedFieldValueType FloatCriteriaNames { get; } - public IProtobufRepeatedFieldValueType FloatCriteriaValues { get; } + public IProtobufRepeatedFieldValueType FloatCriteriaValues { get; } - public IProtobufRepeatedFieldValueType SymbolCriteriaNames { get; } + public IProtobufRepeatedFieldValueType SymbolCriteriaNames { get; } - public IProtobufRepeatedFieldValueType SymbolCriteriaValues { get; } + public IProtobufRepeatedFieldValueType SymbolCriteriaValues { get; } - public int SpeakResult { get; set; } + public int SpeakResult { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_NotifyResponseFound_Criteria.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_NotifyResponseFound_Criteria.cs index 753a677f9..cf28253fc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_NotifyResponseFound_Criteria.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_NotifyResponseFound_Criteria.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMessage_NotifyResponseFound_Criteria : ITypedProtobuf { - static CUserMessage_NotifyResponseFound_Criteria ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessage_NotifyResponseFound_CriteriaImpl(handle, isManuallyAllocated); + static CUserMessage_NotifyResponseFound_Criteria ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessage_NotifyResponseFound_CriteriaImpl(handle, isManuallyAllocated); - public uint NameSymbol { get; set; } + public uint NameSymbol { get; set; } - public string Value { get; set; } + public string Value { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_PlayResponseConditional.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_PlayResponseConditional.cs index 50ee72a9e..b3b0cc1db 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_PlayResponseConditional.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_PlayResponseConditional.cs @@ -1,35 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; using SwiftlyS2.Shared.Natives; -using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; + using SwiftlyS2.Shared.NetMessages; public interface CUserMessage_PlayResponseConditional : ITypedProtobuf, INetMessage, IDisposable { - static int INetMessage.MessageId => 166; - - static string INetMessage.MessageName => "CUserMessage_PlayResponseConditional"; + static int INetMessage.MessageId => 166; + + static string INetMessage.MessageName => "CUserMessage_PlayResponseConditional"; - static CUserMessage_PlayResponseConditional ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessage_PlayResponseConditionalImpl(handle, isManuallyAllocated); + static CUserMessage_PlayResponseConditional ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessage_PlayResponseConditionalImpl(handle, isManuallyAllocated); - public int EntIndex { get; set; } + public int EntIndex { get; set; } - public IProtobufRepeatedFieldValueType PlayerSlots { get; } + public IProtobufRepeatedFieldValueType PlayerSlots { get; } - public string Response { get; set; } + public string Response { get; set; } - public Vector EntOrigin { get; set; } + public Vector EntOrigin { get; set; } - public float PreDelay { get; set; } + public float PreDelay { get; set; } - public int MixPriority { get; set; } + public int MixPriority { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_UtilMsg_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_UtilMsg_Response.cs index 16b8abdc0..7b16ed316 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_UtilMsg_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_UtilMsg_Response.cs @@ -1,48 +1,47 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMessage_UtilMsg_Response : ITypedProtobuf { - static CUserMessage_UtilMsg_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessage_UtilMsg_ResponseImpl(handle, isManuallyAllocated); + static CUserMessage_UtilMsg_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessage_UtilMsg_ResponseImpl(handle, isManuallyAllocated); - public uint Crc { get; set; } + public uint Crc { get; set; } - public int ItemCount { get; set; } + public int ItemCount { get; set; } - public uint Crc2 { get; set; } + public uint Crc2 { get; set; } - public int ItemCount2 { get; set; } + public int ItemCount2 { get; set; } - public IProtobufRepeatedFieldValueType CrcPart { get; } + public IProtobufRepeatedFieldValueType CrcPart { get; } - public IProtobufRepeatedFieldValueType CrcPart2 { get; } + public IProtobufRepeatedFieldValueType CrcPart2 { get; } - public int ClientTimestamp { get; set; } + public int ClientTimestamp { get; set; } - public int Platform { get; set; } + public int Platform { get; set; } - public IProtobufRepeatedFieldSubMessageType Itemdetails { get; } + public IProtobufRepeatedFieldSubMessageType Itemdetails { get; } - public int Itemgroup { get; set; } + public int Itemgroup { get; set; } - public int TotalCount { get; set; } + public int TotalCount { get; set; } - public int TotalCount2 { get; set; } + public int TotalCount2 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_UtilMsg_Response_ItemDetail.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_UtilMsg_Response_ItemDetail.cs index ae94fef0a..c74c02a76 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_UtilMsg_Response_ItemDetail.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMessage_UtilMsg_Response_ItemDetail.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMessage_UtilMsg_Response_ItemDetail : ITypedProtobuf { - static CUserMessage_UtilMsg_Response_ItemDetail ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMessage_UtilMsg_Response_ItemDetailImpl(handle, isManuallyAllocated); + static CUserMessage_UtilMsg_Response_ItemDetail ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMessage_UtilMsg_Response_ItemDetailImpl(handle, isManuallyAllocated); - public int Index { get; set; } + public int Index { get; set; } - public int Hash { get; set; } + public int Hash { get; set; } - public int Crc { get; set; } + public int Crc { get; set; } - public string Name { get; set; } + public string Name { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_CustomGameEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_CustomGameEvent.cs index d83b1d6dd..55db860d6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_CustomGameEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_CustomGameEvent.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_CustomGameEvent : ITypedProtobuf { - static CUserMsg_CustomGameEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_CustomGameEventImpl(handle, isManuallyAllocated); + static CUserMsg_CustomGameEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_CustomGameEventImpl(handle, isManuallyAllocated); - public string EventName { get; set; } + public string EventName { get; set; } - public byte[] Data { get; set; } + public byte[] Data { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_HudError.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_HudError.cs index d5a2bbd88..b79c60ec5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_HudError.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_HudError.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_HudError : ITypedProtobuf { - static CUserMsg_HudError ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_HudErrorImpl(handle, isManuallyAllocated); + static CUserMsg_HudError ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_HudErrorImpl(handle, isManuallyAllocated); - public int OrderId { get; set; } + public int OrderId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager.cs index 5640064da..63025cae1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager.cs @@ -1,135 +1,134 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager : ITypedProtobuf { - static CUserMsg_ParticleManager ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManagerImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManagerImpl(handle, isManuallyAllocated); - public PARTICLE_MESSAGE Type { get; set; } + public PARTICLE_MESSAGE Type { get; set; } - public uint Index { get; set; } + public uint Index { get; set; } - public CUserMsg_ParticleManager_ReleaseParticleIndex ReleaseParticleIndex { get; } + public CUserMsg_ParticleManager_ReleaseParticleIndex ReleaseParticleIndex { get; } - public CUserMsg_ParticleManager_CreateParticle CreateParticle { get; } + public CUserMsg_ParticleManager_CreateParticle CreateParticle { get; } - public CUserMsg_ParticleManager_DestroyParticle DestroyParticle { get; } + public CUserMsg_ParticleManager_DestroyParticle DestroyParticle { get; } - public CUserMsg_ParticleManager_DestroyParticleInvolving DestroyParticleInvolving { get; } + public CUserMsg_ParticleManager_DestroyParticleInvolving DestroyParticleInvolving { get; } - public CUserMsg_ParticleManager_UpdateParticle_OBSOLETE UpdateParticle { get; } + public CUserMsg_ParticleManager_UpdateParticle_OBSOLETE UpdateParticle { get; } - public CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETE UpdateParticleFwd { get; } + public CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETE UpdateParticleFwd { get; } - public CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETE UpdateParticleOrient { get; } + public CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETE UpdateParticleOrient { get; } - public CUserMsg_ParticleManager_UpdateParticleFallback UpdateParticleFallback { get; } + public CUserMsg_ParticleManager_UpdateParticleFallback UpdateParticleFallback { get; } - public CUserMsg_ParticleManager_UpdateParticleOffset UpdateParticleOffset { get; } + public CUserMsg_ParticleManager_UpdateParticleOffset UpdateParticleOffset { get; } - public CUserMsg_ParticleManager_UpdateParticleEnt UpdateParticleEnt { get; } + public CUserMsg_ParticleManager_UpdateParticleEnt UpdateParticleEnt { get; } - public CUserMsg_ParticleManager_UpdateParticleShouldDraw UpdateParticleShouldDraw { get; } + public CUserMsg_ParticleManager_UpdateParticleShouldDraw UpdateParticleShouldDraw { get; } - public CUserMsg_ParticleManager_UpdateParticleSetFrozen UpdateParticleSetFrozen { get; } + public CUserMsg_ParticleManager_UpdateParticleSetFrozen UpdateParticleSetFrozen { get; } - public CUserMsg_ParticleManager_ChangeControlPointAttachment ChangeControlPointAttachment { get; } + public CUserMsg_ParticleManager_ChangeControlPointAttachment ChangeControlPointAttachment { get; } - public CUserMsg_ParticleManager_UpdateEntityPosition UpdateEntityPosition { get; } + public CUserMsg_ParticleManager_UpdateEntityPosition UpdateEntityPosition { get; } - public CUserMsg_ParticleManager_SetParticleFoWProperties SetParticleFowProperties { get; } + public CUserMsg_ParticleManager_SetParticleFoWProperties SetParticleFowProperties { get; } - public CUserMsg_ParticleManager_SetParticleText SetParticleText { get; } + public CUserMsg_ParticleManager_SetParticleText SetParticleText { get; } - public CUserMsg_ParticleManager_SetParticleShouldCheckFoW SetParticleShouldCheckFow { get; } + public CUserMsg_ParticleManager_SetParticleShouldCheckFoW SetParticleShouldCheckFow { get; } - public CUserMsg_ParticleManager_SetControlPointModel SetControlPointModel { get; } + public CUserMsg_ParticleManager_SetControlPointModel SetControlPointModel { get; } - public CUserMsg_ParticleManager_SetControlPointSnapshot SetControlPointSnapshot { get; } + public CUserMsg_ParticleManager_SetControlPointSnapshot SetControlPointSnapshot { get; } - public CUserMsg_ParticleManager_SetTextureAttribute SetTextureAttribute { get; } + public CUserMsg_ParticleManager_SetTextureAttribute SetTextureAttribute { get; } - public CUserMsg_ParticleManager_SetSceneObjectGenericFlag SetSceneObjectGenericFlag { get; } + public CUserMsg_ParticleManager_SetSceneObjectGenericFlag SetSceneObjectGenericFlag { get; } - public CUserMsg_ParticleManager_SetSceneObjectTintAndDesat SetSceneObjectTintAndDesat { get; } + public CUserMsg_ParticleManager_SetSceneObjectTintAndDesat SetSceneObjectTintAndDesat { get; } - public CUserMsg_ParticleManager_DestroyParticleNamed DestroyParticleNamed { get; } + public CUserMsg_ParticleManager_DestroyParticleNamed DestroyParticleNamed { get; } - public CUserMsg_ParticleManager_ParticleSkipToTime ParticleSkipToTime { get; } + public CUserMsg_ParticleManager_ParticleSkipToTime ParticleSkipToTime { get; } - public CUserMsg_ParticleManager_ParticleCanFreeze ParticleCanFreeze { get; } + public CUserMsg_ParticleManager_ParticleCanFreeze ParticleCanFreeze { get; } - public CUserMsg_ParticleManager_SetParticleNamedValueContext SetNamedValueContext { get; } + public CUserMsg_ParticleManager_SetParticleNamedValueContext SetNamedValueContext { get; } - public CUserMsg_ParticleManager_UpdateParticleTransform UpdateParticleTransform { get; } + public CUserMsg_ParticleManager_UpdateParticleTransform UpdateParticleTransform { get; } - public CUserMsg_ParticleManager_ParticleFreezeTransitionOverride ParticleFreezeTransitionOverride { get; } + public CUserMsg_ParticleManager_ParticleFreezeTransitionOverride ParticleFreezeTransitionOverride { get; } - public CUserMsg_ParticleManager_FreezeParticleInvolving FreezeParticleInvolving { get; } + public CUserMsg_ParticleManager_FreezeParticleInvolving FreezeParticleInvolving { get; } - public CUserMsg_ParticleManager_AddModellistOverrideElement AddModellistOverrideElement { get; } + public CUserMsg_ParticleManager_AddModellistOverrideElement AddModellistOverrideElement { get; } - public CUserMsg_ParticleManager_ClearModellistOverride ClearModellistOverride { get; } + public CUserMsg_ParticleManager_ClearModellistOverride ClearModellistOverride { get; } - public CUserMsg_ParticleManager_CreatePhysicsSim CreatePhysicsSim { get; } + public CUserMsg_ParticleManager_CreatePhysicsSim CreatePhysicsSim { get; } - public CUserMsg_ParticleManager_DestroyPhysicsSim DestroyPhysicsSim { get; } + public CUserMsg_ParticleManager_DestroyPhysicsSim DestroyPhysicsSim { get; } - public CUserMsg_ParticleManager_SetVData SetVdata { get; } + public CUserMsg_ParticleManager_SetVData SetVdata { get; } - public CUserMsg_ParticleManager_SetMaterialOverride SetMaterialOverride { get; } + public CUserMsg_ParticleManager_SetMaterialOverride SetMaterialOverride { get; } - public CUserMsg_ParticleManager_AddFan AddFan { get; } + public CUserMsg_ParticleManager_AddFan AddFan { get; } - public CUserMsg_ParticleManager_UpdateFan UpdateFan { get; } + public CUserMsg_ParticleManager_UpdateFan UpdateFan { get; } - public CUserMsg_ParticleManager_SetParticleClusterGrowth SetParticleClusterGrowth { get; } + public CUserMsg_ParticleManager_SetParticleClusterGrowth SetParticleClusterGrowth { get; } - public CUserMsg_ParticleManager_RemoveFan RemoveFan { get; } + public CUserMsg_ParticleManager_RemoveFan RemoveFan { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_AddFan.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_AddFan.cs index 1c8f3eeb9..d18846509 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_AddFan.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_AddFan.cs @@ -7,60 +7,60 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_AddFan : ITypedProtobuf { - static CUserMsg_ParticleManager_AddFan ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_AddFanImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_AddFan ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_AddFanImpl(handle, isManuallyAllocated); - public bool Active { get; set; } + public bool Active { get; set; } - public Vector BoundsMins { get; set; } + public Vector BoundsMins { get; set; } - public Vector BoundsMaxs { get; set; } + public Vector BoundsMaxs { get; set; } - public Vector FanOrigin { get; set; } + public Vector FanOrigin { get; set; } - public Vector FanOriginOffset { get; set; } + public Vector FanOriginOffset { get; set; } - public Vector FanDirection { get; set; } + public Vector FanDirection { get; set; } - public float Force { get; set; } + public float Force { get; set; } - public string FanForceCurve { get; set; } + public string FanForceCurve { get; set; } - public bool Falloff { get; set; } + public bool Falloff { get; set; } - public bool PullTowardsPoint { get; set; } + public bool PullTowardsPoint { get; set; } - public float CurveMinDist { get; set; } + public float CurveMinDist { get; set; } - public float CurveMaxDist { get; set; } + public float CurveMaxDist { get; set; } - public uint FanType { get; set; } + public uint FanType { get; set; } - public float ConeStartRadius { get; set; } + public float ConeStartRadius { get; set; } - public float ConeEndRadius { get; set; } + public float ConeEndRadius { get; set; } - public float ConeLength { get; set; } + public float ConeLength { get; set; } - public uint EntityHandle { get; set; } + public uint EntityHandle { get; set; } - public string AttachmentName { get; set; } + public string AttachmentName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_AddModellistOverrideElement.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_AddModellistOverrideElement.cs index f60183209..4980c98ed 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_AddModellistOverrideElement.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_AddModellistOverrideElement.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_AddModellistOverrideElement : ITypedProtobuf { - static CUserMsg_ParticleManager_AddModellistOverrideElement ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_AddModellistOverrideElementImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_AddModellistOverrideElement ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_AddModellistOverrideElementImpl(handle, isManuallyAllocated); - public string ModelName { get; set; } + public string ModelName { get; set; } - public float SpawnProbability { get; set; } + public float SpawnProbability { get; set; } - public uint Groupid { get; set; } + public uint Groupid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ChangeControlPointAttachment.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ChangeControlPointAttachment.cs index b59afb3a2..6ce5fba34 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ChangeControlPointAttachment.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ChangeControlPointAttachment.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_ChangeControlPointAttachment : ITypedProtobuf { - static CUserMsg_ParticleManager_ChangeControlPointAttachment ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_ChangeControlPointAttachmentImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_ChangeControlPointAttachment ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_ChangeControlPointAttachmentImpl(handle, isManuallyAllocated); - public int AttachmentOld { get; set; } + public int AttachmentOld { get; set; } - public int AttachmentNew { get; set; } + public int AttachmentNew { get; set; } - public uint EntityHandle { get; set; } + public uint EntityHandle { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ClearModellistOverride.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ClearModellistOverride.cs index 1ba0cf48c..6b8db7f1c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ClearModellistOverride.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ClearModellistOverride.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_ClearModellistOverride : ITypedProtobuf { - static CUserMsg_ParticleManager_ClearModellistOverride ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_ClearModellistOverrideImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_ClearModellistOverride ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_ClearModellistOverrideImpl(handle, isManuallyAllocated); - public uint Groupid { get; set; } + public uint Groupid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_CreateParticle.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_CreateParticle.cs index 1d96aa2d3..d58fe7deb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_CreateParticle.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_CreateParticle.cs @@ -7,36 +7,36 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_CreateParticle : ITypedProtobuf { - static CUserMsg_ParticleManager_CreateParticle ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_CreateParticleImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_CreateParticle ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_CreateParticleImpl(handle, isManuallyAllocated); - public ulong ParticleNameIndex { get; set; } + public ulong ParticleNameIndex { get; set; } - public int AttachType { get; set; } + public int AttachType { get; set; } - public uint EntityHandle { get; set; } + public uint EntityHandle { get; set; } - public uint EntityHandleForModifiers { get; set; } + public uint EntityHandleForModifiers { get; set; } - public bool ApplyVoiceBanRules { get; set; } + public bool ApplyVoiceBanRules { get; set; } - public int TeamBehavior { get; set; } + public int TeamBehavior { get; set; } - public string ControlPointConfiguration { get; set; } + public string ControlPointConfiguration { get; set; } - public bool Cluster { get; set; } + public bool Cluster { get; set; } - public float EndcapTime { get; set; } + public float EndcapTime { get; set; } - public Vector AggregationPosition { get; set; } + public Vector AggregationPosition { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_CreatePhysicsSim.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_CreatePhysicsSim.cs index 7c842e684..305737f3d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_CreatePhysicsSim.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_CreatePhysicsSim.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_CreatePhysicsSim : ITypedProtobuf { - static CUserMsg_ParticleManager_CreatePhysicsSim ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_CreatePhysicsSimImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_CreatePhysicsSim ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_CreatePhysicsSimImpl(handle, isManuallyAllocated); - public string PropGroupName { get; set; } + public string PropGroupName { get; set; } - public bool UseHighQualitySimulation { get; set; } + public bool UseHighQualitySimulation { get; set; } - public uint MaxParticleCount { get; set; } + public uint MaxParticleCount { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyParticle.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyParticle.cs index 8f40b853e..e9eecd09e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyParticle.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyParticle.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_DestroyParticle : ITypedProtobuf { - static CUserMsg_ParticleManager_DestroyParticle ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_DestroyParticleImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_DestroyParticle ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_DestroyParticleImpl(handle, isManuallyAllocated); - public bool DestroyImmediately { get; set; } + public bool DestroyImmediately { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyParticleInvolving.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyParticleInvolving.cs index 68bad1b70..174208e54 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyParticleInvolving.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyParticleInvolving.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_DestroyParticleInvolving : ITypedProtobuf { - static CUserMsg_ParticleManager_DestroyParticleInvolving ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_DestroyParticleInvolvingImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_DestroyParticleInvolving ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_DestroyParticleInvolvingImpl(handle, isManuallyAllocated); - public bool DestroyImmediately { get; set; } + public bool DestroyImmediately { get; set; } - public uint EntityHandle { get; set; } + public uint EntityHandle { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyParticleNamed.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyParticleNamed.cs index 44d8fd345..71252515f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyParticleNamed.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyParticleNamed.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_DestroyParticleNamed : ITypedProtobuf { - static CUserMsg_ParticleManager_DestroyParticleNamed ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_DestroyParticleNamedImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_DestroyParticleNamed ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_DestroyParticleNamedImpl(handle, isManuallyAllocated); - public ulong ParticleNameIndex { get; set; } + public ulong ParticleNameIndex { get; set; } - public uint EntityHandle { get; set; } + public uint EntityHandle { get; set; } - public bool DestroyImmediately { get; set; } + public bool DestroyImmediately { get; set; } - public bool PlayEndcap { get; set; } + public bool PlayEndcap { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyPhysicsSim.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyPhysicsSim.cs index 2593d429e..b320091f5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyPhysicsSim.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_DestroyPhysicsSim.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_DestroyPhysicsSim : ITypedProtobuf { - static CUserMsg_ParticleManager_DestroyPhysicsSim ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_DestroyPhysicsSimImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_DestroyPhysicsSim ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_DestroyPhysicsSimImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_FreezeParticleInvolving.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_FreezeParticleInvolving.cs index 1d37863e2..dace752af 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_FreezeParticleInvolving.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_FreezeParticleInvolving.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_FreezeParticleInvolving : ITypedProtobuf { - static CUserMsg_ParticleManager_FreezeParticleInvolving ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_FreezeParticleInvolvingImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_FreezeParticleInvolving ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_FreezeParticleInvolvingImpl(handle, isManuallyAllocated); - public bool SetFrozen { get; set; } + public bool SetFrozen { get; set; } - public float TransitionDuration { get; set; } + public float TransitionDuration { get; set; } - public uint EntityHandle { get; set; } + public uint EntityHandle { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ParticleCanFreeze.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ParticleCanFreeze.cs index 3b2c19831..89fd773e3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ParticleCanFreeze.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ParticleCanFreeze.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_ParticleCanFreeze : ITypedProtobuf { - static CUserMsg_ParticleManager_ParticleCanFreeze ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_ParticleCanFreezeImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_ParticleCanFreeze ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_ParticleCanFreezeImpl(handle, isManuallyAllocated); - public bool CanFreeze { get; set; } + public bool CanFreeze { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ParticleFreezeTransitionOverride.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ParticleFreezeTransitionOverride.cs index ebd524260..78b1a10e5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ParticleFreezeTransitionOverride.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ParticleFreezeTransitionOverride.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_ParticleFreezeTransitionOverride : ITypedProtobuf { - static CUserMsg_ParticleManager_ParticleFreezeTransitionOverride ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_ParticleFreezeTransitionOverrideImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_ParticleFreezeTransitionOverride ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_ParticleFreezeTransitionOverrideImpl(handle, isManuallyAllocated); - public float FreezeTransitionOverride { get; set; } + public float FreezeTransitionOverride { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ParticleSkipToTime.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ParticleSkipToTime.cs index 9c7b13349..82a125066 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ParticleSkipToTime.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ParticleSkipToTime.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_ParticleSkipToTime : ITypedProtobuf { - static CUserMsg_ParticleManager_ParticleSkipToTime ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_ParticleSkipToTimeImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_ParticleSkipToTime ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_ParticleSkipToTimeImpl(handle, isManuallyAllocated); - public float SkipToTime { get; set; } + public float SkipToTime { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ReleaseParticleIndex.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ReleaseParticleIndex.cs index 6fb4c7381..b1a8ee094 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ReleaseParticleIndex.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_ReleaseParticleIndex.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_ReleaseParticleIndex : ITypedProtobuf { - static CUserMsg_ParticleManager_ReleaseParticleIndex ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_ReleaseParticleIndexImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_ReleaseParticleIndex ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_ReleaseParticleIndexImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_RemoveFan.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_RemoveFan.cs index f4bd1d666..8f859ded0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_RemoveFan.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_RemoveFan.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_RemoveFan : ITypedProtobuf { - static CUserMsg_ParticleManager_RemoveFan ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_RemoveFanImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_RemoveFan ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_RemoveFanImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetControlPointModel.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetControlPointModel.cs index bf3bd5ba8..f739aedeb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetControlPointModel.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetControlPointModel.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetControlPointModel : ITypedProtobuf { - static CUserMsg_ParticleManager_SetControlPointModel ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetControlPointModelImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetControlPointModel ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetControlPointModelImpl(handle, isManuallyAllocated); - public int ControlPoint { get; set; } + public int ControlPoint { get; set; } - public string ModelName { get; set; } + public string ModelName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetControlPointSnapshot.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetControlPointSnapshot.cs index 49d141a3f..ebd7aa1cf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetControlPointSnapshot.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetControlPointSnapshot.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetControlPointSnapshot : ITypedProtobuf { - static CUserMsg_ParticleManager_SetControlPointSnapshot ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetControlPointSnapshotImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetControlPointSnapshot ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetControlPointSnapshotImpl(handle, isManuallyAllocated); - public int ControlPoint { get; set; } + public int ControlPoint { get; set; } - public string SnapshotName { get; set; } + public string SnapshotName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetMaterialOverride.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetMaterialOverride.cs index 2af1e213b..0e80d143f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetMaterialOverride.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetMaterialOverride.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetMaterialOverride : ITypedProtobuf { - static CUserMsg_ParticleManager_SetMaterialOverride ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetMaterialOverrideImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetMaterialOverride ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetMaterialOverrideImpl(handle, isManuallyAllocated); - public string MaterialName { get; set; } + public string MaterialName { get; set; } - public bool IncludeChildren { get; set; } + public bool IncludeChildren { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleClusterGrowth.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleClusterGrowth.cs index b918f664f..75824c936 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleClusterGrowth.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleClusterGrowth.cs @@ -7,12 +7,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetParticleClusterGrowth : ITypedProtobuf { - static CUserMsg_ParticleManager_SetParticleClusterGrowth ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetParticleClusterGrowthImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetParticleClusterGrowth ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetParticleClusterGrowthImpl(handle, isManuallyAllocated); - public float Duration { get; set; } + public float Duration { get; set; } - public Vector Origin { get; set; } + public Vector Origin { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleFoWProperties.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleFoWProperties.cs index 64cd5f669..7e8d6c58d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleFoWProperties.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleFoWProperties.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetParticleFoWProperties : ITypedProtobuf { - static CUserMsg_ParticleManager_SetParticleFoWProperties ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetParticleFoWPropertiesImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetParticleFoWProperties ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetParticleFoWPropertiesImpl(handle, isManuallyAllocated); - public int FowControlPoint { get; set; } + public int FowControlPoint { get; set; } - public int FowControlPoint2 { get; set; } + public int FowControlPoint2 { get; set; } - public float FowRadius { get; set; } + public float FowRadius { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext.cs index 8d0fff8d5..9a45a761e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetParticleNamedValueContext : ITypedProtobuf { - static CUserMsg_ParticleManager_SetParticleNamedValueContext ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetParticleNamedValueContextImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetParticleNamedValueContext ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetParticleNamedValueContextImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldSubMessageType FloatValues { get; } + public IProtobufRepeatedFieldSubMessageType FloatValues { get; } - public IProtobufRepeatedFieldSubMessageType VectorValues { get; } + public IProtobufRepeatedFieldSubMessageType VectorValues { get; } - public IProtobufRepeatedFieldSubMessageType TransformValues { get; } + public IProtobufRepeatedFieldSubMessageType TransformValues { get; } - public IProtobufRepeatedFieldSubMessageType EhandleValues { get; } + public IProtobufRepeatedFieldSubMessageType EhandleValues { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContext.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContext.cs index 7179997e3..f65e2b3c9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContext.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContext.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContext : ITypedProtobuf { - static CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContext ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContextImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContext ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetParticleNamedValueContext_EHandleContextImpl(handle, isManuallyAllocated); - public uint ValueNameHash { get; set; } + public uint ValueNameHash { get; set; } - public uint EntIndex { get; set; } + public uint EntIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValue.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValue.cs index 825ca4363..225426ef9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValue.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValue.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValue : ITypedProtobuf { - static CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValue ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValueImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValue ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetParticleNamedValueContext_FloatContextValueImpl(handle, isManuallyAllocated); - public uint ValueNameHash { get; set; } + public uint ValueNameHash { get; set; } - public float Value { get; set; } + public float Value { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValue.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValue.cs index bfef60300..88daa54a0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValue.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValue.cs @@ -7,15 +7,15 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValue : ITypedProtobuf { - static CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValue ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValueImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValue ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetParticleNamedValueContext_TransformContextValueImpl(handle, isManuallyAllocated); - public uint ValueNameHash { get; set; } + public uint ValueNameHash { get; set; } - public QAngle Angles { get; set; } + public QAngle Angles { get; set; } - public Vector Translation { get; set; } + public Vector Translation { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValue.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValue.cs index b909a5f32..edec09be2 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValue.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValue.cs @@ -7,12 +7,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValue : ITypedProtobuf { - static CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValue ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValueImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValue ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetParticleNamedValueContext_VectorContextValueImpl(handle, isManuallyAllocated); - public uint ValueNameHash { get; set; } + public uint ValueNameHash { get; set; } - public Vector Value { get; set; } + public Vector Value { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleShouldCheckFoW.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleShouldCheckFoW.cs index 6fd936e66..cac0251e4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleShouldCheckFoW.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleShouldCheckFoW.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetParticleShouldCheckFoW : ITypedProtobuf { - static CUserMsg_ParticleManager_SetParticleShouldCheckFoW ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetParticleShouldCheckFoWImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetParticleShouldCheckFoW ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetParticleShouldCheckFoWImpl(handle, isManuallyAllocated); - public bool CheckFow { get; set; } + public bool CheckFow { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleText.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleText.cs index a12d09193..921cf8a56 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleText.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetParticleText.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetParticleText : ITypedProtobuf { - static CUserMsg_ParticleManager_SetParticleText ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetParticleTextImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetParticleText ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetParticleTextImpl(handle, isManuallyAllocated); - public string Text { get; set; } + public string Text { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetSceneObjectGenericFlag.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetSceneObjectGenericFlag.cs index 7114f11a6..b0f9f48a3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetSceneObjectGenericFlag.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetSceneObjectGenericFlag.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetSceneObjectGenericFlag : ITypedProtobuf { - static CUserMsg_ParticleManager_SetSceneObjectGenericFlag ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetSceneObjectGenericFlagImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetSceneObjectGenericFlag ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetSceneObjectGenericFlagImpl(handle, isManuallyAllocated); - public bool FlagValue { get; set; } + public bool FlagValue { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetSceneObjectTintAndDesat.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetSceneObjectTintAndDesat.cs index d608d34ea..2ead893e4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetSceneObjectTintAndDesat.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetSceneObjectTintAndDesat.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetSceneObjectTintAndDesat : ITypedProtobuf { - static CUserMsg_ParticleManager_SetSceneObjectTintAndDesat ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetSceneObjectTintAndDesatImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetSceneObjectTintAndDesat ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetSceneObjectTintAndDesatImpl(handle, isManuallyAllocated); - public uint Tint { get; set; } + public uint Tint { get; set; } - public float Desat { get; set; } + public float Desat { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetTextureAttribute.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetTextureAttribute.cs index 40e3a1901..06ad8fddf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetTextureAttribute.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetTextureAttribute.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetTextureAttribute : ITypedProtobuf { - static CUserMsg_ParticleManager_SetTextureAttribute ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetTextureAttributeImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetTextureAttribute ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetTextureAttributeImpl(handle, isManuallyAllocated); - public string AttributeName { get; set; } + public string AttributeName { get; set; } - public string TextureName { get; set; } + public string TextureName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetVData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetVData.cs index 647aeb777..32da764a8 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetVData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_SetVData.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_SetVData : ITypedProtobuf { - static CUserMsg_ParticleManager_SetVData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_SetVDataImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_SetVData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_SetVDataImpl(handle, isManuallyAllocated); - public string VdataName { get; set; } + public string VdataName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateEntityPosition.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateEntityPosition.cs index 47e81e490..1ba943f35 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateEntityPosition.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateEntityPosition.cs @@ -7,12 +7,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_UpdateEntityPosition : ITypedProtobuf { - static CUserMsg_ParticleManager_UpdateEntityPosition ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_UpdateEntityPositionImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_UpdateEntityPosition ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_UpdateEntityPositionImpl(handle, isManuallyAllocated); - public uint EntityHandle { get; set; } + public uint EntityHandle { get; set; } - public Vector Position { get; set; } + public Vector Position { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateFan.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateFan.cs index d60363ca9..69275823e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateFan.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateFan.cs @@ -7,27 +7,27 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_UpdateFan : ITypedProtobuf { - static CUserMsg_ParticleManager_UpdateFan ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_UpdateFanImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_UpdateFan ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_UpdateFanImpl(handle, isManuallyAllocated); - public bool Active { get; set; } + public bool Active { get; set; } - public Vector FanOrigin { get; set; } + public Vector FanOrigin { get; set; } - public Vector FanOriginOffset { get; set; } + public Vector FanOriginOffset { get; set; } - public Vector FanDirection { get; set; } + public Vector FanDirection { get; set; } - public float FanRampRatio { get; set; } + public float FanRampRatio { get; set; } - public Vector BoundsMins { get; set; } + public Vector BoundsMins { get; set; } - public Vector BoundsMaxs { get; set; } + public Vector BoundsMaxs { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleEnt.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleEnt.cs index 7971c9819..b342e9f53 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleEnt.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleEnt.cs @@ -7,30 +7,30 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_UpdateParticleEnt : ITypedProtobuf { - static CUserMsg_ParticleManager_UpdateParticleEnt ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_UpdateParticleEntImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_UpdateParticleEnt ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_UpdateParticleEntImpl(handle, isManuallyAllocated); - public int ControlPoint { get; set; } + public int ControlPoint { get; set; } - public uint EntityHandle { get; set; } + public uint EntityHandle { get; set; } - public int AttachType { get; set; } + public int AttachType { get; set; } - public int Attachment { get; set; } + public int Attachment { get; set; } - public Vector FallbackPosition { get; set; } + public Vector FallbackPosition { get; set; } - public bool IncludeWearables { get; set; } + public bool IncludeWearables { get; set; } - public Vector OffsetPosition { get; set; } + public Vector OffsetPosition { get; set; } - public QAngle OffsetAngles { get; set; } + public QAngle OffsetAngles { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleFallback.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleFallback.cs index 72171bad8..c58cfb27b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleFallback.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleFallback.cs @@ -7,12 +7,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_UpdateParticleFallback : ITypedProtobuf { - static CUserMsg_ParticleManager_UpdateParticleFallback ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_UpdateParticleFallbackImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_UpdateParticleFallback ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_UpdateParticleFallbackImpl(handle, isManuallyAllocated); - public int ControlPoint { get; set; } + public int ControlPoint { get; set; } - public Vector Position { get; set; } + public Vector Position { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETE.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETE.cs index e4c138596..c37f90f84 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETE.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETE.cs @@ -7,12 +7,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETE : ITypedProtobuf { - static CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETE ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETEImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETE ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_UpdateParticleFwd_OBSOLETEImpl(handle, isManuallyAllocated); - public int ControlPoint { get; set; } + public int ControlPoint { get; set; } - public Vector Forward { get; set; } + public Vector Forward { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleOffset.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleOffset.cs index cce902fce..30493d5e3 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleOffset.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleOffset.cs @@ -7,15 +7,15 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_UpdateParticleOffset : ITypedProtobuf { - static CUserMsg_ParticleManager_UpdateParticleOffset ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_UpdateParticleOffsetImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_UpdateParticleOffset ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_UpdateParticleOffsetImpl(handle, isManuallyAllocated); - public int ControlPoint { get; set; } + public int ControlPoint { get; set; } - public Vector OriginOffset { get; set; } + public Vector OriginOffset { get; set; } - public QAngle AngleOffset { get; set; } + public QAngle AngleOffset { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETE.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETE.cs index fbbb8562d..454c07bd4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETE.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETE.cs @@ -7,21 +7,21 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETE : ITypedProtobuf { - static CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETE ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETEImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETE ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_UpdateParticleOrient_OBSOLETEImpl(handle, isManuallyAllocated); - public int ControlPoint { get; set; } + public int ControlPoint { get; set; } - public Vector Forward { get; set; } + public Vector Forward { get; set; } - public Vector DeprecatedRight { get; set; } + public Vector DeprecatedRight { get; set; } - public Vector Up { get; set; } + public Vector Up { get; set; } - public Vector Left { get; set; } + public Vector Left { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleSetFrozen.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleSetFrozen.cs index e999e7aa0..d64751572 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleSetFrozen.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleSetFrozen.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_UpdateParticleSetFrozen : ITypedProtobuf { - static CUserMsg_ParticleManager_UpdateParticleSetFrozen ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_UpdateParticleSetFrozenImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_UpdateParticleSetFrozen ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_UpdateParticleSetFrozenImpl(handle, isManuallyAllocated); - public bool SetFrozen { get; set; } + public bool SetFrozen { get; set; } - public float TransitionDuration { get; set; } + public float TransitionDuration { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleShouldDraw.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleShouldDraw.cs index e93509dd0..d0fdd683e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleShouldDraw.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleShouldDraw.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_UpdateParticleShouldDraw : ITypedProtobuf { - static CUserMsg_ParticleManager_UpdateParticleShouldDraw ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_UpdateParticleShouldDrawImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_UpdateParticleShouldDraw ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_UpdateParticleShouldDrawImpl(handle, isManuallyAllocated); - public bool ShouldDraw { get; set; } + public bool ShouldDraw { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleTransform.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleTransform.cs index eda7a43ce..3e8f57037 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleTransform.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticleTransform.cs @@ -7,18 +7,18 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_UpdateParticleTransform : ITypedProtobuf { - static CUserMsg_ParticleManager_UpdateParticleTransform ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_UpdateParticleTransformImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_UpdateParticleTransform ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_UpdateParticleTransformImpl(handle, isManuallyAllocated); - public int ControlPoint { get; set; } + public int ControlPoint { get; set; } - public Vector Position { get; set; } + public Vector Position { get; set; } - public CMsgQuaternion Orientation { get; } + public CMsgQuaternion Orientation { get; } - public float InterpolationInterval { get; set; } + public float InterpolationInterval { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticle_OBSOLETE.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticle_OBSOLETE.cs index 8610e1b8e..e2aebb384 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticle_OBSOLETE.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CUserMsg_ParticleManager_UpdateParticle_OBSOLETE.cs @@ -7,12 +7,12 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CUserMsg_ParticleManager_UpdateParticle_OBSOLETE : ITypedProtobuf { - static CUserMsg_ParticleManager_UpdateParticle_OBSOLETE ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CUserMsg_ParticleManager_UpdateParticle_OBSOLETEImpl(handle, isManuallyAllocated); + static CUserMsg_ParticleManager_UpdateParticle_OBSOLETE ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CUserMsg_ParticleManager_UpdateParticle_OBSOLETEImpl(handle, isManuallyAllocated); - public int ControlPoint { get; set; } + public int ControlPoint { get; set; } - public Vector Position { get; set; } + public Vector Position { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CVDiagnostic.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CVDiagnostic.cs index 22e3353f0..a9a52a31d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CVDiagnostic.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CVDiagnostic.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CVDiagnostic : ITypedProtobuf { - static CVDiagnostic ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CVDiagnosticImpl(handle, isManuallyAllocated); + static CVDiagnostic ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CVDiagnosticImpl(handle, isManuallyAllocated); - public uint Id { get; set; } + public uint Id { get; set; } - public uint Extended { get; set; } + public uint Extended { get; set; } - public ulong Value { get; set; } + public ulong Value { get; set; } - public string StringValue { get; set; } + public string StringValue { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_AddSpecialPayment_Request.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_AddSpecialPayment_Request.cs index 1884eb332..f88d1cc55 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_AddSpecialPayment_Request.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_AddSpecialPayment_Request.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CWorkshop_AddSpecialPayment_Request : ITypedProtobuf { - static CWorkshop_AddSpecialPayment_Request ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CWorkshop_AddSpecialPayment_RequestImpl(handle, isManuallyAllocated); + static CWorkshop_AddSpecialPayment_Request ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CWorkshop_AddSpecialPayment_RequestImpl(handle, isManuallyAllocated); - public uint Appid { get; set; } + public uint Appid { get; set; } - public uint Gameitemid { get; set; } + public uint Gameitemid { get; set; } - public string Date { get; set; } + public string Date { get; set; } - public ulong PaymentUsUsd { get; set; } + public ulong PaymentUsUsd { get; set; } - public ulong PaymentRowUsd { get; set; } + public ulong PaymentRowUsd { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_AddSpecialPayment_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_AddSpecialPayment_Response.cs index b9300d9f5..40721f3c6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_AddSpecialPayment_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_AddSpecialPayment_Response.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CWorkshop_AddSpecialPayment_Response : ITypedProtobuf { - static CWorkshop_AddSpecialPayment_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CWorkshop_AddSpecialPayment_ResponseImpl(handle, isManuallyAllocated); + static CWorkshop_AddSpecialPayment_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CWorkshop_AddSpecialPayment_ResponseImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_GetContributors_Request.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_GetContributors_Request.cs index 3aa87799a..603ae23c0 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_GetContributors_Request.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_GetContributors_Request.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CWorkshop_GetContributors_Request : ITypedProtobuf { - static CWorkshop_GetContributors_Request ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CWorkshop_GetContributors_RequestImpl(handle, isManuallyAllocated); + static CWorkshop_GetContributors_Request ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CWorkshop_GetContributors_RequestImpl(handle, isManuallyAllocated); - public uint Appid { get; set; } + public uint Appid { get; set; } - public uint Gameitemid { get; set; } + public uint Gameitemid { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_GetContributors_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_GetContributors_Response.cs index 866e61474..c6dd12b72 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_GetContributors_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_GetContributors_Response.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CWorkshop_GetContributors_Response : ITypedProtobuf { - static CWorkshop_GetContributors_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CWorkshop_GetContributors_ResponseImpl(handle, isManuallyAllocated); + static CWorkshop_GetContributors_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CWorkshop_GetContributors_ResponseImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType Contributors { get; } + public IProtobufRepeatedFieldValueType Contributors { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_PopulateItemDescriptions_Request.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_PopulateItemDescriptions_Request.cs index a3c3d3b08..5daa6a3ff 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_PopulateItemDescriptions_Request.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_PopulateItemDescriptions_Request.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CWorkshop_PopulateItemDescriptions_Request : ITypedProtobuf { - static CWorkshop_PopulateItemDescriptions_Request ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CWorkshop_PopulateItemDescriptions_RequestImpl(handle, isManuallyAllocated); + static CWorkshop_PopulateItemDescriptions_Request ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CWorkshop_PopulateItemDescriptions_RequestImpl(handle, isManuallyAllocated); - public uint Appid { get; set; } + public uint Appid { get; set; } - public IProtobufRepeatedFieldSubMessageType Languages { get; } + public IProtobufRepeatedFieldSubMessageType Languages { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlock.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlock.cs index 4f2200e15..722c2bfcc 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlock.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlock.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlock : ITypedProtobuf { - static CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlock ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlockImpl(handle, isManuallyAllocated); + static CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlock ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CWorkshop_PopulateItemDescriptions_Request_ItemDescriptionsLanguageBlockImpl(handle, isManuallyAllocated); - public string Language { get; set; } + public string Language { get; set; } - public IProtobufRepeatedFieldSubMessageType Descriptions { get; } + public IProtobufRepeatedFieldSubMessageType Descriptions { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_PopulateItemDescriptions_Request_SingleItemDescription.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_PopulateItemDescriptions_Request_SingleItemDescription.cs index f65845000..791b0a783 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_PopulateItemDescriptions_Request_SingleItemDescription.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_PopulateItemDescriptions_Request_SingleItemDescription.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CWorkshop_PopulateItemDescriptions_Request_SingleItemDescription : ITypedProtobuf { - static CWorkshop_PopulateItemDescriptions_Request_SingleItemDescription ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CWorkshop_PopulateItemDescriptions_Request_SingleItemDescriptionImpl(handle, isManuallyAllocated); + static CWorkshop_PopulateItemDescriptions_Request_SingleItemDescription ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CWorkshop_PopulateItemDescriptions_Request_SingleItemDescriptionImpl(handle, isManuallyAllocated); - public uint Gameitemid { get; set; } + public uint Gameitemid { get; set; } - public string ItemDescription { get; set; } + public string ItemDescription { get; set; } - public bool OnePerAccount { get; set; } + public bool OnePerAccount { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request.cs index e50679b77..9b9b2caca 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CWorkshop_SetItemPaymentRules_Request : ITypedProtobuf { - static CWorkshop_SetItemPaymentRules_Request ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CWorkshop_SetItemPaymentRules_RequestImpl(handle, isManuallyAllocated); + static CWorkshop_SetItemPaymentRules_Request ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CWorkshop_SetItemPaymentRules_RequestImpl(handle, isManuallyAllocated); - public uint Appid { get; set; } + public uint Appid { get; set; } - public uint Gameitemid { get; set; } + public uint Gameitemid { get; set; } - public IProtobufRepeatedFieldSubMessageType AssociatedWorkshopFiles { get; } + public IProtobufRepeatedFieldSubMessageType AssociatedWorkshopFiles { get; } - public IProtobufRepeatedFieldSubMessageType PartnerAccounts { get; } + public IProtobufRepeatedFieldSubMessageType PartnerAccounts { get; } - public bool ValidateOnly { get; set; } + public bool ValidateOnly { get; set; } - public bool MakeWorkshopFilesSubscribable { get; set; } + public bool MakeWorkshopFilesSubscribable { get; set; } - public CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRule AssociatedWorkshopFileForDirectPayments { get; } + public CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRule AssociatedWorkshopFileForDirectPayments { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRule.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRule.cs index 3259d9bef..8c252a744 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRule.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRule.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRule : ITypedProtobuf { - static CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRule ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRuleImpl(handle, isManuallyAllocated); + static CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRule ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CWorkshop_SetItemPaymentRules_Request_PartnerItemPaymentRuleImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public float RevenuePercentage { get; set; } + public float RevenuePercentage { get; set; } - public string RuleDescription { get; set; } + public string RuleDescription { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRule.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRule.cs index 04681f273..554855a5a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRule.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRule.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRule : ITypedProtobuf { - static CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRule ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRuleImpl(handle, isManuallyAllocated); + static CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRule ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CWorkshop_SetItemPaymentRules_Request_WorkshopDirectPaymentRuleImpl(handle, isManuallyAllocated); - public ulong WorkshopFileId { get; set; } + public ulong WorkshopFileId { get; set; } - public string RuleDescription { get; set; } + public string RuleDescription { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRule.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRule.cs index 10b61fd2d..d11672bdb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRule.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRule.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRule : ITypedProtobuf { - static CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRule ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRuleImpl(handle, isManuallyAllocated); + static CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRule ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CWorkshop_SetItemPaymentRules_Request_WorkshopItemPaymentRuleImpl(handle, isManuallyAllocated); - public ulong WorkshopFileId { get; set; } + public ulong WorkshopFileId { get; set; } - public float RevenuePercentage { get; set; } + public float RevenuePercentage { get; set; } - public string RuleDescription { get; set; } + public string RuleDescription { get; set; } - public uint RuleType { get; set; } + public uint RuleType { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Response.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Response.cs index 1393743a7..f84df9af5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Response.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/CWorkshop_SetItemPaymentRules_Response.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface CWorkshop_SetItemPaymentRules_Response : ITypedProtobuf { - static CWorkshop_SetItemPaymentRules_Response ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new CWorkshop_SetItemPaymentRules_ResponseImpl(handle, isManuallyAllocated); + static CWorkshop_SetItemPaymentRules_Response ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new CWorkshop_SetItemPaymentRules_ResponseImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DataCenterPing.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DataCenterPing.cs index 211977942..9105b5f46 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DataCenterPing.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DataCenterPing.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface DataCenterPing : ITypedProtobuf { - static DataCenterPing ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new DataCenterPingImpl(handle, isManuallyAllocated); + static DataCenterPing ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new DataCenterPingImpl(handle, isManuallyAllocated); - public uint DataCenterId { get; set; } + public uint DataCenterId { get; set; } - public int Ping { get; set; } + public int Ping { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DeepPlayerMatchEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DeepPlayerMatchEvent.cs index 6d84d0ccc..4d145099f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DeepPlayerMatchEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DeepPlayerMatchEvent.cs @@ -1,54 +1,53 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface DeepPlayerMatchEvent : ITypedProtobuf { - static DeepPlayerMatchEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new DeepPlayerMatchEventImpl(handle, isManuallyAllocated); + static DeepPlayerMatchEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new DeepPlayerMatchEventImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public ulong MatchId { get; set; } + public ulong MatchId { get; set; } - public uint EventId { get; set; } + public uint EventId { get; set; } - public uint EventType { get; set; } + public uint EventType { get; set; } - public bool BPlayingCt { get; set; } + public bool BPlayingCt { get; set; } - public int UserPosX { get; set; } + public int UserPosX { get; set; } - public int UserPosY { get; set; } + public int UserPosY { get; set; } - public int UserPosZ { get; set; } + public int UserPosZ { get; set; } - public uint UserDefidx { get; set; } + public uint UserDefidx { get; set; } - public int OtherPosX { get; set; } + public int OtherPosX { get; set; } - public int OtherPosY { get; set; } + public int OtherPosY { get; set; } - public int OtherPosZ { get; set; } + public int OtherPosZ { get; set; } - public uint OtherDefidx { get; set; } + public uint OtherDefidx { get; set; } - public int EventData { get; set; } + public int EventData { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DeepPlayerStatsEntry.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DeepPlayerStatsEntry.cs index d290abcd5..ff0cd0d17 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DeepPlayerStatsEntry.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DeepPlayerStatsEntry.cs @@ -1,96 +1,95 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface DeepPlayerStatsEntry : ITypedProtobuf { - static DeepPlayerStatsEntry ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new DeepPlayerStatsEntryImpl(handle, isManuallyAllocated); + static DeepPlayerStatsEntry ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new DeepPlayerStatsEntryImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public ulong MatchId { get; set; } + public ulong MatchId { get; set; } - public uint MmGameMode { get; set; } + public uint MmGameMode { get; set; } - public uint Mapid { get; set; } + public uint Mapid { get; set; } - public bool BStartingCt { get; set; } + public bool BStartingCt { get; set; } - public uint MatchOutcome { get; set; } + public uint MatchOutcome { get; set; } - public uint RoundsWon { get; set; } + public uint RoundsWon { get; set; } - public uint RoundsLost { get; set; } + public uint RoundsLost { get; set; } - public uint StatScore { get; set; } + public uint StatScore { get; set; } - public uint StatDeaths { get; set; } + public uint StatDeaths { get; set; } - public uint StatMvps { get; set; } + public uint StatMvps { get; set; } - public uint EnemyKills { get; set; } + public uint EnemyKills { get; set; } - public uint EnemyHeadshots { get; set; } + public uint EnemyHeadshots { get; set; } - public uint Enemy2ks { get; set; } + public uint Enemy2ks { get; set; } - public uint Enemy3ks { get; set; } + public uint Enemy3ks { get; set; } - public uint Enemy4ks { get; set; } + public uint Enemy4ks { get; set; } - public uint TotalDamage { get; set; } + public uint TotalDamage { get; set; } - public uint EngagementsEntryCount { get; set; } + public uint EngagementsEntryCount { get; set; } - public uint EngagementsEntryWins { get; set; } + public uint EngagementsEntryWins { get; set; } - public uint Engagements1v1Count { get; set; } + public uint Engagements1v1Count { get; set; } - public uint Engagements1v1Wins { get; set; } + public uint Engagements1v1Wins { get; set; } - public uint Engagements1v2Count { get; set; } + public uint Engagements1v2Count { get; set; } - public uint Engagements1v2Wins { get; set; } + public uint Engagements1v2Wins { get; set; } - public uint UtilityCount { get; set; } + public uint UtilityCount { get; set; } - public uint UtilitySuccess { get; set; } + public uint UtilitySuccess { get; set; } - public uint FlashCount { get; set; } + public uint FlashCount { get; set; } - public uint FlashSuccess { get; set; } + public uint FlashSuccess { get; set; } - public IProtobufRepeatedFieldValueType Mates { get; } + public IProtobufRepeatedFieldValueType Mates { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DetailedSearchStatistic.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DetailedSearchStatistic.cs index f3d929dd6..191c22a26 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DetailedSearchStatistic.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/DetailedSearchStatistic.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface DetailedSearchStatistic : ITypedProtobuf { - static DetailedSearchStatistic ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new DetailedSearchStatisticImpl(handle, isManuallyAllocated); + static DetailedSearchStatistic ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new DetailedSearchStatisticImpl(handle, isManuallyAllocated); - public uint GameType { get; set; } + public uint GameType { get; set; } - public uint SearchTimeAvg { get; set; } + public uint SearchTimeAvg { get; set; } - public uint PlayersSearching { get; set; } + public uint PlayersSearching { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/GameServerPing.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/GameServerPing.cs index 7bbc84dec..412915725 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/GameServerPing.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/GameServerPing.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface GameServerPing : ITypedProtobuf { - static GameServerPing ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new GameServerPingImpl(handle, isManuallyAllocated); + static GameServerPing ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new GameServerPingImpl(handle, isManuallyAllocated); - public int Ping { get; set; } + public int Ping { get; set; } - public uint Ip { get; set; } + public uint Ip { get; set; } - public uint Instances { get; set; } + public uint Instances { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/GlobalStatistics.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/GlobalStatistics.cs index 2e5c33ccf..8c1df65db 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/GlobalStatistics.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/GlobalStatistics.cs @@ -1,57 +1,56 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface GlobalStatistics : ITypedProtobuf { - static GlobalStatistics ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new GlobalStatisticsImpl(handle, isManuallyAllocated); + static GlobalStatistics ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new GlobalStatisticsImpl(handle, isManuallyAllocated); - public uint PlayersOnline { get; set; } + public uint PlayersOnline { get; set; } - public uint ServersOnline { get; set; } + public uint ServersOnline { get; set; } - public uint PlayersSearching { get; set; } + public uint PlayersSearching { get; set; } - public uint ServersAvailable { get; set; } + public uint ServersAvailable { get; set; } - public uint OngoingMatches { get; set; } + public uint OngoingMatches { get; set; } - public uint SearchTimeAvg { get; set; } + public uint SearchTimeAvg { get; set; } - public IProtobufRepeatedFieldSubMessageType SearchStatistics { get; } + public IProtobufRepeatedFieldSubMessageType SearchStatistics { get; } - public string MainPostUrl { get; set; } + public string MainPostUrl { get; set; } - public uint RequiredAppidVersion { get; set; } + public uint RequiredAppidVersion { get; set; } - public uint PricesheetVersion { get; set; } + public uint PricesheetVersion { get; set; } - public uint TwitchStreamsVersion { get; set; } + public uint TwitchStreamsVersion { get; set; } - public uint ActiveTournamentEventid { get; set; } + public uint ActiveTournamentEventid { get; set; } - public uint ActiveSurveyId { get; set; } + public uint ActiveSurveyId { get; set; } - public uint Rtime32Cur { get; set; } + public uint Rtime32Cur { get; set; } - public uint RequiredAppidVersion2 { get; set; } + public uint RequiredAppidVersion2 { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/IpAddressMask.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/IpAddressMask.cs index e0bce4d38..3121cd6db 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/IpAddressMask.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/IpAddressMask.cs @@ -1,30 +1,29 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface IpAddressMask : ITypedProtobuf { - static IpAddressMask ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new IpAddressMaskImpl(handle, isManuallyAllocated); + static IpAddressMask ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new IpAddressMaskImpl(handle, isManuallyAllocated); - public uint A { get; set; } + public uint A { get; set; } - public uint B { get; set; } + public uint B { get; set; } - public uint C { get; set; } + public uint C { get; set; } - public uint D { get; set; } + public uint D { get; set; } - public uint Bits { get; set; } + public uint Bits { get; set; } - public uint Token { get; set; } + public uint Token { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLDemoHeader.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLDemoHeader.cs index abe97e335..af54fd68c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLDemoHeader.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLDemoHeader.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface MLDemoHeader : ITypedProtobuf { - static MLDemoHeader ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new MLDemoHeaderImpl(handle, isManuallyAllocated); + static MLDemoHeader ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new MLDemoHeaderImpl(handle, isManuallyAllocated); - public string MapName { get; set; } + public string MapName { get; set; } - public int TickRate { get; set; } + public int TickRate { get; set; } - public uint Version { get; set; } + public uint Version { get; set; } - public uint SteamUniverse { get; set; } + public uint SteamUniverse { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLDict.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLDict.cs index 872111354..efcfbbf3c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLDict.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLDict.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface MLDict : ITypedProtobuf { - static MLDict ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new MLDictImpl(handle, isManuallyAllocated); + static MLDict ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new MLDictImpl(handle, isManuallyAllocated); - public string Key { get; set; } + public string Key { get; set; } - public string ValString { get; set; } + public string ValString { get; set; } - public int ValInt { get; set; } + public int ValInt { get; set; } - public float ValFloat { get; set; } + public float ValFloat { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLEvent.cs index 50dca08f3..346f2532b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLEvent.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface MLEvent : ITypedProtobuf { - static MLEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new MLEventImpl(handle, isManuallyAllocated); + static MLEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new MLEventImpl(handle, isManuallyAllocated); - public string EventName { get; set; } + public string EventName { get; set; } - public IProtobufRepeatedFieldSubMessageType Data { get; } + public IProtobufRepeatedFieldSubMessageType Data { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLGameState.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLGameState.cs index 657c7fb7d..957911881 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLGameState.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLGameState.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface MLGameState : ITypedProtobuf { - static MLGameState ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new MLGameStateImpl(handle, isManuallyAllocated); + static MLGameState ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new MLGameStateImpl(handle, isManuallyAllocated); - public MLMatchState Match { get; } + public MLMatchState Match { get; } - public MLRoundState Round { get; } + public MLRoundState Round { get; } - public IProtobufRepeatedFieldSubMessageType Players { get; } + public IProtobufRepeatedFieldSubMessageType Players { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLMatchState.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLMatchState.cs index f86d5c46c..f42b4fd8b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLMatchState.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLMatchState.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface MLMatchState : ITypedProtobuf { - static MLMatchState ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new MLMatchStateImpl(handle, isManuallyAllocated); + static MLMatchState ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new MLMatchStateImpl(handle, isManuallyAllocated); - public string GameMode { get; set; } + public string GameMode { get; set; } - public string Phase { get; set; } + public string Phase { get; set; } - public int Round { get; set; } + public int Round { get; set; } - public int ScoreCt { get; set; } + public int ScoreCt { get; set; } - public int ScoreT { get; set; } + public int ScoreT { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLPlayerState.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLPlayerState.cs index 1ed2643df..81f75bbeb 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLPlayerState.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLPlayerState.cs @@ -7,66 +7,66 @@ namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface MLPlayerState : ITypedProtobuf { - static MLPlayerState ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new MLPlayerStateImpl(handle, isManuallyAllocated); + static MLPlayerState ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new MLPlayerStateImpl(handle, isManuallyAllocated); - public int AccountId { get; set; } + public int AccountId { get; set; } - public int PlayerSlot { get; set; } + public int PlayerSlot { get; set; } - public int Entindex { get; set; } + public int Entindex { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public string Clan { get; set; } + public string Clan { get; set; } - public ETeam Team { get; set; } + public ETeam Team { get; set; } - public Vector Abspos { get; set; } + public Vector Abspos { get; set; } - public QAngle Eyeangle { get; set; } + public QAngle Eyeangle { get; set; } - public Vector EyeangleFwd { get; set; } + public Vector EyeangleFwd { get; set; } - public int Health { get; set; } + public int Health { get; set; } - public int Armor { get; set; } + public int Armor { get; set; } - public float Flashed { get; set; } + public float Flashed { get; set; } - public float Smoked { get; set; } + public float Smoked { get; set; } - public int Money { get; set; } + public int Money { get; set; } - public int RoundKills { get; set; } + public int RoundKills { get; set; } - public int RoundKillhs { get; set; } + public int RoundKillhs { get; set; } - public float Burning { get; set; } + public float Burning { get; set; } - public bool Helmet { get; set; } + public bool Helmet { get; set; } - public bool DefuseKit { get; set; } + public bool DefuseKit { get; set; } - public IProtobufRepeatedFieldSubMessageType Weapons { get; } + public IProtobufRepeatedFieldSubMessageType Weapons { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLRoundState.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLRoundState.cs index 8e5ad0c6c..6bf0c5822 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLRoundState.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLRoundState.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface MLRoundState : ITypedProtobuf { - static MLRoundState ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new MLRoundStateImpl(handle, isManuallyAllocated); + static MLRoundState ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new MLRoundStateImpl(handle, isManuallyAllocated); - public string Phase { get; set; } + public string Phase { get; set; } - public ETeam WinTeam { get; set; } + public ETeam WinTeam { get; set; } - public string BombState { get; set; } + public string BombState { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLTick.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLTick.cs index d9ced5570..cd15ac781 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLTick.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLTick.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface MLTick : ITypedProtobuf { - static MLTick ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new MLTickImpl(handle, isManuallyAllocated); + static MLTick ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new MLTickImpl(handle, isManuallyAllocated); - public int TickCount { get; set; } + public int TickCount { get; set; } - public MLGameState State { get; } + public MLGameState State { get; } - public IProtobufRepeatedFieldSubMessageType Events { get; } + public IProtobufRepeatedFieldSubMessageType Events { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLWeaponState.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLWeaponState.cs index 04664f231..3a7f94d83 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLWeaponState.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MLWeaponState.cs @@ -1,36 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface MLWeaponState : ITypedProtobuf { - static MLWeaponState ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new MLWeaponStateImpl(handle, isManuallyAllocated); + static MLWeaponState ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new MLWeaponStateImpl(handle, isManuallyAllocated); - public int Index { get; set; } + public int Index { get; set; } - public string Name { get; set; } + public string Name { get; set; } - public EWeaponType Type { get; set; } + public EWeaponType Type { get; set; } - public int AmmoClip { get; set; } + public int AmmoClip { get; set; } - public int AmmoClipMax { get; set; } + public int AmmoClipMax { get; set; } - public int AmmoReserve { get; set; } + public int AmmoReserve { get; set; } - public string State { get; set; } + public string State { get; set; } - public float RecoilIndex { get; set; } + public float RecoilIndex { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MatchEndItemUpdates.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MatchEndItemUpdates.cs index 813ffea2d..64023ab33 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MatchEndItemUpdates.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/MatchEndItemUpdates.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface MatchEndItemUpdates : ITypedProtobuf { - static MatchEndItemUpdates ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new MatchEndItemUpdatesImpl(handle, isManuallyAllocated); + static MatchEndItemUpdates ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new MatchEndItemUpdatesImpl(handle, isManuallyAllocated); - public ulong ItemId { get; set; } + public ulong ItemId { get; set; } - public uint ItemAttrDefidx { get; set; } + public uint ItemAttrDefidx { get; set; } - public uint ItemAttrDeltaValue { get; set; } + public uint ItemAttrDeltaValue { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessageConnectionClosed.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessageConnectionClosed.cs index c9dc934d1..203f6db66 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessageConnectionClosed.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessageConnectionClosed.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface NetMessageConnectionClosed : ITypedProtobuf { - static NetMessageConnectionClosed ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new NetMessageConnectionClosedImpl(handle, isManuallyAllocated); + static NetMessageConnectionClosed ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new NetMessageConnectionClosedImpl(handle, isManuallyAllocated); - public uint Reason { get; set; } + public uint Reason { get; set; } - public string Message { get; set; } + public string Message { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessageConnectionCrashed.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessageConnectionCrashed.cs index b4275fd66..a0b7afba1 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessageConnectionCrashed.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessageConnectionCrashed.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface NetMessageConnectionCrashed : ITypedProtobuf { - static NetMessageConnectionCrashed ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new NetMessageConnectionCrashedImpl(handle, isManuallyAllocated); + static NetMessageConnectionCrashed ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new NetMessageConnectionCrashedImpl(handle, isManuallyAllocated); - public uint Reason { get; set; } + public uint Reason { get; set; } - public string Message { get; set; } + public string Message { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessagePacketEnd.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessagePacketEnd.cs index 127c2649d..48b54af42 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessagePacketEnd.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessagePacketEnd.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface NetMessagePacketEnd : ITypedProtobuf { - static NetMessagePacketEnd ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new NetMessagePacketEndImpl(handle, isManuallyAllocated); + static NetMessagePacketEnd ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new NetMessagePacketEndImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessagePacketStart.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessagePacketStart.cs index f32e1cf63..7506b33b6 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessagePacketStart.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessagePacketStart.cs @@ -1,13 +1,12 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface NetMessagePacketStart : ITypedProtobuf { - static NetMessagePacketStart ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new NetMessagePacketStartImpl(handle, isManuallyAllocated); + static NetMessagePacketStart ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new NetMessagePacketStartImpl(handle, isManuallyAllocated); } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessageSplitscreenUserChanged.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessageSplitscreenUserChanged.cs index 5db16e750..e1b20eb23 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessageSplitscreenUserChanged.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/NetMessageSplitscreenUserChanged.cs @@ -1,15 +1,14 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface NetMessageSplitscreenUserChanged : ITypedProtobuf { - static NetMessageSplitscreenUserChanged ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new NetMessageSplitscreenUserChangedImpl(handle, isManuallyAllocated); + static NetMessageSplitscreenUserChanged ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new NetMessageSplitscreenUserChangedImpl(handle, isManuallyAllocated); - public uint Slot { get; set; } + public uint Slot { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalStatisticDescription.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalStatisticDescription.cs index 3d3936fd5..a92062b9a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalStatisticDescription.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalStatisticDescription.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface OperationalStatisticDescription : ITypedProtobuf { - static OperationalStatisticDescription ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new OperationalStatisticDescriptionImpl(handle, isManuallyAllocated); + static OperationalStatisticDescription ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new OperationalStatisticDescriptionImpl(handle, isManuallyAllocated); - public string Name { get; set; } + public string Name { get; set; } - public uint Idkey { get; set; } + public uint Idkey { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalStatisticElement.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalStatisticElement.cs index 4885146aa..1470a6126 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalStatisticElement.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalStatisticElement.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface OperationalStatisticElement : ITypedProtobuf { - static OperationalStatisticElement ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new OperationalStatisticElementImpl(handle, isManuallyAllocated); + static OperationalStatisticElement ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new OperationalStatisticElementImpl(handle, isManuallyAllocated); - public uint Idkey { get; set; } + public uint Idkey { get; set; } - public IProtobufRepeatedFieldValueType Values { get; } + public IProtobufRepeatedFieldValueType Values { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalStatisticsPacket.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalStatisticsPacket.cs index 926807eb0..09450169f 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalStatisticsPacket.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalStatisticsPacket.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface OperationalStatisticsPacket : ITypedProtobuf { - static OperationalStatisticsPacket ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new OperationalStatisticsPacketImpl(handle, isManuallyAllocated); + static OperationalStatisticsPacket ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new OperationalStatisticsPacketImpl(handle, isManuallyAllocated); - public int Packetid { get; set; } + public int Packetid { get; set; } - public int Mstimestamp { get; set; } + public int Mstimestamp { get; set; } - public IProtobufRepeatedFieldSubMessageType Values { get; } + public IProtobufRepeatedFieldSubMessageType Values { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalVarValue.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalVarValue.cs index 853c42328..c632f9cea 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalVarValue.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/OperationalVarValue.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface OperationalVarValue : ITypedProtobuf { - static OperationalVarValue ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new OperationalVarValueImpl(handle, isManuallyAllocated); + static OperationalVarValue ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new OperationalVarValueImpl(handle, isManuallyAllocated); - public string Name { get; set; } + public string Name { get; set; } - public int Ivalue { get; set; } + public int Ivalue { get; set; } - public float Fvalue { get; set; } + public float Fvalue { get; set; } - public byte[] Svalue { get; set; } + public byte[] Svalue { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerCommendationInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerCommendationInfo.cs index e7325b286..342584bbf 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerCommendationInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerCommendationInfo.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface PlayerCommendationInfo : ITypedProtobuf { - static PlayerCommendationInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new PlayerCommendationInfoImpl(handle, isManuallyAllocated); + static PlayerCommendationInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new PlayerCommendationInfoImpl(handle, isManuallyAllocated); - public uint CmdFriendly { get; set; } + public uint CmdFriendly { get; set; } - public uint CmdTeaching { get; set; } + public uint CmdTeaching { get; set; } - public uint CmdLeader { get; set; } + public uint CmdLeader { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerDecalDigitalSignature.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerDecalDigitalSignature.cs index 4ce826f03..50ed7ade9 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerDecalDigitalSignature.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerDecalDigitalSignature.cs @@ -1,54 +1,53 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface PlayerDecalDigitalSignature : ITypedProtobuf { - static PlayerDecalDigitalSignature ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new PlayerDecalDigitalSignatureImpl(handle, isManuallyAllocated); + static PlayerDecalDigitalSignature ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new PlayerDecalDigitalSignatureImpl(handle, isManuallyAllocated); - public byte[] Signature { get; set; } + public byte[] Signature { get; set; } - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public uint Rtime { get; set; } + public uint Rtime { get; set; } - public IProtobufRepeatedFieldValueType Endpos { get; } + public IProtobufRepeatedFieldValueType Endpos { get; } - public IProtobufRepeatedFieldValueType Startpos { get; } + public IProtobufRepeatedFieldValueType Startpos { get; } - public IProtobufRepeatedFieldValueType Left { get; } + public IProtobufRepeatedFieldValueType Left { get; } - public uint TxDefidx { get; set; } + public uint TxDefidx { get; set; } - public int Entindex { get; set; } + public int Entindex { get; set; } - public uint Hitbox { get; set; } + public uint Hitbox { get; set; } - public float Creationtime { get; set; } + public float Creationtime { get; set; } - public uint Equipslot { get; set; } + public uint Equipslot { get; set; } - public uint TraceId { get; set; } + public uint TraceId { get; set; } - public IProtobufRepeatedFieldValueType Normal { get; } + public IProtobufRepeatedFieldValueType Normal { get; } - public uint TintId { get; set; } + public uint TintId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerMedalsInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerMedalsInfo.cs index 584873a1c..f6e600114 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerMedalsInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerMedalsInfo.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface PlayerMedalsInfo : ITypedProtobuf { - static PlayerMedalsInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new PlayerMedalsInfoImpl(handle, isManuallyAllocated); + static PlayerMedalsInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new PlayerMedalsInfoImpl(handle, isManuallyAllocated); - public IProtobufRepeatedFieldValueType DisplayItemsDefidx { get; } + public IProtobufRepeatedFieldValueType DisplayItemsDefidx { get; } - public uint FeaturedDisplayItemDefidx { get; set; } + public uint FeaturedDisplayItemDefidx { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerQuestData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerQuestData.cs index 5c4460281..da631fbef 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerQuestData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerQuestData.cs @@ -1,36 +1,35 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface PlayerQuestData : ITypedProtobuf { - static PlayerQuestData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new PlayerQuestDataImpl(handle, isManuallyAllocated); + static PlayerQuestData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new PlayerQuestDataImpl(handle, isManuallyAllocated); - public uint QuesterAccountId { get; set; } + public uint QuesterAccountId { get; set; } - public IProtobufRepeatedFieldSubMessageType QuestItemData { get; } + public IProtobufRepeatedFieldSubMessageType QuestItemData { get; } - public IProtobufRepeatedFieldSubMessageType XpProgressData { get; } + public IProtobufRepeatedFieldSubMessageType XpProgressData { get; } - public uint TimePlayed { get; set; } + public uint TimePlayed { get; set; } - public uint MmGameMode { get; set; } + public uint MmGameMode { get; set; } - public IProtobufRepeatedFieldSubMessageType ItemUpdates { get; } + public IProtobufRepeatedFieldSubMessageType ItemUpdates { get; } - public bool OperationPointsEligible { get; set; } + public bool OperationPointsEligible { get; set; } - public IProtobufRepeatedFieldSubMessageType Userstatchanges { get; } + public IProtobufRepeatedFieldSubMessageType Userstatchanges { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerQuestData_QuestItemData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerQuestData_QuestItemData.cs index 01f6941b6..92c2fba36 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerQuestData_QuestItemData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerQuestData_QuestItemData.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface PlayerQuestData_QuestItemData : ITypedProtobuf { - static PlayerQuestData_QuestItemData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new PlayerQuestData_QuestItemDataImpl(handle, isManuallyAllocated); + static PlayerQuestData_QuestItemData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new PlayerQuestData_QuestItemDataImpl(handle, isManuallyAllocated); - public ulong QuestId { get; set; } + public ulong QuestId { get; set; } - public int QuestNormalPointsEarned { get; set; } + public int QuestNormalPointsEarned { get; set; } - public int QuestBonusPointsEarned { get; set; } + public int QuestBonusPointsEarned { get; set; } - public IProtobufRepeatedFieldValueType QuestNormalPointsRequired { get; } + public IProtobufRepeatedFieldValueType QuestNormalPointsRequired { get; } - public IProtobufRepeatedFieldValueType QuestRewardXp { get; } + public IProtobufRepeatedFieldValueType QuestRewardXp { get; } - public int QuestPeriod { get; set; } + public int QuestPeriod { get; set; } - public QuestType QuestType { get; set; } + public QuestType QuestType { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerRankingInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerRankingInfo.cs index 4d5c7ef4e..d6b889dd4 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerRankingInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerRankingInfo.cs @@ -1,57 +1,56 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface PlayerRankingInfo : ITypedProtobuf { - static PlayerRankingInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new PlayerRankingInfoImpl(handle, isManuallyAllocated); + static PlayerRankingInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new PlayerRankingInfoImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public uint RankId { get; set; } + public uint RankId { get; set; } - public uint Wins { get; set; } + public uint Wins { get; set; } - public float RankChange { get; set; } + public float RankChange { get; set; } - public uint RankTypeId { get; set; } + public uint RankTypeId { get; set; } - public uint TvControl { get; set; } + public uint TvControl { get; set; } - public ulong RankWindowStats { get; set; } + public ulong RankWindowStats { get; set; } - public string LeaderboardName { get; set; } + public string LeaderboardName { get; set; } - public uint RankIfWin { get; set; } + public uint RankIfWin { get; set; } - public uint RankIfLose { get; set; } + public uint RankIfLose { get; set; } - public uint RankIfTie { get; set; } + public uint RankIfTie { get; set; } - public IProtobufRepeatedFieldSubMessageType PerMapRank { get; } + public IProtobufRepeatedFieldSubMessageType PerMapRank { get; } - public uint LeaderboardNameStatus { get; set; } + public uint LeaderboardNameStatus { get; set; } - public uint HighestRank { get; set; } + public uint HighestRank { get; set; } - public uint RankExpiry { get; set; } + public uint RankExpiry { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerRankingInfo_PerMapRank.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerRankingInfo_PerMapRank.cs index 1fe51c335..8823d981a 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerRankingInfo_PerMapRank.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/PlayerRankingInfo_PerMapRank.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface PlayerRankingInfo_PerMapRank : ITypedProtobuf { - static PlayerRankingInfo_PerMapRank ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new PlayerRankingInfo_PerMapRankImpl(handle, isManuallyAllocated); + static PlayerRankingInfo_PerMapRank ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new PlayerRankingInfo_PerMapRankImpl(handle, isManuallyAllocated); - public uint MapId { get; set; } + public uint MapId { get; set; } - public uint RankId { get; set; } + public uint RankId { get; set; } - public uint Wins { get; set; } + public uint Wins { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ProtoFlattenedSerializerField_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ProtoFlattenedSerializerField_t.cs index 2ff4250a1..305531d3d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ProtoFlattenedSerializerField_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ProtoFlattenedSerializerField_t.cs @@ -1,48 +1,47 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface ProtoFlattenedSerializerField_t : ITypedProtobuf { - static ProtoFlattenedSerializerField_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new ProtoFlattenedSerializerField_tImpl(handle, isManuallyAllocated); + static ProtoFlattenedSerializerField_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new ProtoFlattenedSerializerField_tImpl(handle, isManuallyAllocated); - public int VarTypeSym { get; set; } + public int VarTypeSym { get; set; } - public int VarNameSym { get; set; } + public int VarNameSym { get; set; } - public int BitCount { get; set; } + public int BitCount { get; set; } - public float LowValue { get; set; } + public float LowValue { get; set; } - public float HighValue { get; set; } + public float HighValue { get; set; } - public int EncodeFlags { get; set; } + public int EncodeFlags { get; set; } - public int FieldSerializerNameSym { get; set; } + public int FieldSerializerNameSym { get; set; } - public int FieldSerializerVersion { get; set; } + public int FieldSerializerVersion { get; set; } - public int SendNodeSym { get; set; } + public int SendNodeSym { get; set; } - public int VarEncoderSym { get; set; } + public int VarEncoderSym { get; set; } - public IProtobufRepeatedFieldSubMessageType PolymorphicTypes { get; } + public IProtobufRepeatedFieldSubMessageType PolymorphicTypes { get; } - public int VarSerializerSym { get; set; } + public int VarSerializerSym { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ProtoFlattenedSerializerField_t_polymorphic_field_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ProtoFlattenedSerializerField_t_polymorphic_field_t.cs index 77aa55c54..1fc73929c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ProtoFlattenedSerializerField_t_polymorphic_field_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ProtoFlattenedSerializerField_t_polymorphic_field_t.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface ProtoFlattenedSerializerField_t_polymorphic_field_t : ITypedProtobuf { - static ProtoFlattenedSerializerField_t_polymorphic_field_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new ProtoFlattenedSerializerField_t_polymorphic_field_tImpl(handle, isManuallyAllocated); + static ProtoFlattenedSerializerField_t_polymorphic_field_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new ProtoFlattenedSerializerField_t_polymorphic_field_tImpl(handle, isManuallyAllocated); - public int PolymorphicFieldSerializerNameSym { get; set; } + public int PolymorphicFieldSerializerNameSym { get; set; } - public int PolymorphicFieldSerializerVersion { get; set; } + public int PolymorphicFieldSerializerVersion { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ProtoFlattenedSerializer_t.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ProtoFlattenedSerializer_t.cs index f70ee9016..a31d4c37c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ProtoFlattenedSerializer_t.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ProtoFlattenedSerializer_t.cs @@ -1,21 +1,20 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface ProtoFlattenedSerializer_t : ITypedProtobuf { - static ProtoFlattenedSerializer_t ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new ProtoFlattenedSerializer_tImpl(handle, isManuallyAllocated); + static ProtoFlattenedSerializer_t ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new ProtoFlattenedSerializer_tImpl(handle, isManuallyAllocated); - public int SerializerNameSym { get; set; } + public int SerializerNameSym { get; set; } - public int SerializerVersion { get; set; } + public int SerializerVersion { get; set; } - public IProtobufRepeatedFieldValueType FieldsIndex { get; } + public IProtobufRepeatedFieldValueType FieldsIndex { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ScoreLeaderboardData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ScoreLeaderboardData.cs index 6d4883bba..971557e5d 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ScoreLeaderboardData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ScoreLeaderboardData.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface ScoreLeaderboardData : ITypedProtobuf { - static ScoreLeaderboardData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new ScoreLeaderboardDataImpl(handle, isManuallyAllocated); + static ScoreLeaderboardData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new ScoreLeaderboardDataImpl(handle, isManuallyAllocated); - public ulong QuestId { get; set; } + public ulong QuestId { get; set; } - public uint Score { get; set; } + public uint Score { get; set; } - public IProtobufRepeatedFieldSubMessageType Accountentries { get; } + public IProtobufRepeatedFieldSubMessageType Accountentries { get; } - public IProtobufRepeatedFieldSubMessageType Matchentries { get; } + public IProtobufRepeatedFieldSubMessageType Matchentries { get; } - public string LeaderboardName { get; set; } + public string LeaderboardName { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ScoreLeaderboardData_AccountEntries.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ScoreLeaderboardData_AccountEntries.cs index 7f21508b6..9ca10a85c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ScoreLeaderboardData_AccountEntries.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ScoreLeaderboardData_AccountEntries.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface ScoreLeaderboardData_AccountEntries : ITypedProtobuf { - static ScoreLeaderboardData_AccountEntries ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new ScoreLeaderboardData_AccountEntriesImpl(handle, isManuallyAllocated); + static ScoreLeaderboardData_AccountEntries ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new ScoreLeaderboardData_AccountEntriesImpl(handle, isManuallyAllocated); - public uint Accountid { get; set; } + public uint Accountid { get; set; } - public IProtobufRepeatedFieldSubMessageType Entries { get; } + public IProtobufRepeatedFieldSubMessageType Entries { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ScoreLeaderboardData_Entry.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ScoreLeaderboardData_Entry.cs index 86a79384f..b50004199 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ScoreLeaderboardData_Entry.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ScoreLeaderboardData_Entry.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface ScoreLeaderboardData_Entry : ITypedProtobuf { - static ScoreLeaderboardData_Entry ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new ScoreLeaderboardData_EntryImpl(handle, isManuallyAllocated); + static ScoreLeaderboardData_Entry ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new ScoreLeaderboardData_EntryImpl(handle, isManuallyAllocated); - public uint Tag { get; set; } + public uint Tag { get; set; } - public uint Val { get; set; } + public uint Val { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ServerHltvInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ServerHltvInfo.cs index d71d424b9..d34bb49d5 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ServerHltvInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/ServerHltvInfo.cs @@ -1,72 +1,71 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface ServerHltvInfo : ITypedProtobuf { - static ServerHltvInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new ServerHltvInfoImpl(handle, isManuallyAllocated); + static ServerHltvInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new ServerHltvInfoImpl(handle, isManuallyAllocated); - public uint TvUdpPort { get; set; } + public uint TvUdpPort { get; set; } - public ulong TvWatchKey { get; set; } + public ulong TvWatchKey { get; set; } - public uint TvSlots { get; set; } + public uint TvSlots { get; set; } - public uint TvClients { get; set; } + public uint TvClients { get; set; } - public uint TvProxies { get; set; } + public uint TvProxies { get; set; } - public uint TvTime { get; set; } + public uint TvTime { get; set; } - public uint GameType { get; set; } + public uint GameType { get; set; } - public string GameMapgroup { get; set; } + public string GameMapgroup { get; set; } - public string GameMap { get; set; } + public string GameMap { get; set; } - public ulong TvMasterSteamid { get; set; } + public ulong TvMasterSteamid { get; set; } - public uint TvLocalSlots { get; set; } + public uint TvLocalSlots { get; set; } - public uint TvLocalClients { get; set; } + public uint TvLocalClients { get; set; } - public uint TvLocalProxies { get; set; } + public uint TvLocalProxies { get; set; } - public uint TvRelaySlots { get; set; } + public uint TvRelaySlots { get; set; } - public uint TvRelayClients { get; set; } + public uint TvRelayClients { get; set; } - public uint TvRelayProxies { get; set; } + public uint TvRelayProxies { get; set; } - public uint TvRelayAddress { get; set; } + public uint TvRelayAddress { get; set; } - public uint TvRelayPort { get; set; } + public uint TvRelayPort { get; set; } - public ulong TvRelaySteamid { get; set; } + public ulong TvRelaySteamid { get; set; } - public uint Flags { get; set; } + public uint Flags { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentEvent.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentEvent.cs index dbcb1831b..6aabfd52b 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentEvent.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentEvent.cs @@ -1,39 +1,38 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface TournamentEvent : ITypedProtobuf { - static TournamentEvent ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new TournamentEventImpl(handle, isManuallyAllocated); + static TournamentEvent ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new TournamentEventImpl(handle, isManuallyAllocated); - public int EventId { get; set; } + public int EventId { get; set; } - public string EventTag { get; set; } + public string EventTag { get; set; } - public string EventName { get; set; } + public string EventName { get; set; } - public uint EventTimeStart { get; set; } + public uint EventTimeStart { get; set; } - public uint EventTimeEnd { get; set; } + public uint EventTimeEnd { get; set; } - public int EventPublic { get; set; } + public int EventPublic { get; set; } - public int EventStageId { get; set; } + public int EventStageId { get; set; } - public string EventStageName { get; set; } + public string EventStageName { get; set; } - public uint ActiveSectionId { get; set; } + public uint ActiveSectionId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentMatchSetup.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentMatchSetup.cs index 91f27ebb1..f6ab27f1c 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentMatchSetup.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentMatchSetup.cs @@ -1,24 +1,23 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface TournamentMatchSetup : ITypedProtobuf { - static TournamentMatchSetup ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new TournamentMatchSetupImpl(handle, isManuallyAllocated); + static TournamentMatchSetup ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new TournamentMatchSetupImpl(handle, isManuallyAllocated); - public int EventId { get; set; } + public int EventId { get; set; } - public int TeamIdCt { get; set; } + public int TeamIdCt { get; set; } - public int TeamIdT { get; set; } + public int TeamIdT { get; set; } - public int EventStageId { get; set; } + public int EventStageId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentPlayer.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentPlayer.cs index fbfcc4bde..3c41b3f48 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentPlayer.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentPlayer.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface TournamentPlayer : ITypedProtobuf { - static TournamentPlayer ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new TournamentPlayerImpl(handle, isManuallyAllocated); + static TournamentPlayer ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new TournamentPlayerImpl(handle, isManuallyAllocated); - public uint AccountId { get; set; } + public uint AccountId { get; set; } - public string PlayerNick { get; set; } + public string PlayerNick { get; set; } - public string PlayerName { get; set; } + public string PlayerName { get; set; } - public uint PlayerDob { get; set; } + public uint PlayerDob { get; set; } - public string PlayerFlag { get; set; } + public string PlayerFlag { get; set; } - public string PlayerLocation { get; set; } + public string PlayerLocation { get; set; } - public string PlayerDesc { get; set; } + public string PlayerDesc { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentTeam.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentTeam.cs index 34ec2b91e..46b5e4dde 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentTeam.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/TournamentTeam.cs @@ -1,27 +1,26 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface TournamentTeam : ITypedProtobuf { - static TournamentTeam ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new TournamentTeamImpl(handle, isManuallyAllocated); + static TournamentTeam ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new TournamentTeamImpl(handle, isManuallyAllocated); - public int TeamId { get; set; } + public int TeamId { get; set; } - public string TeamTag { get; set; } + public string TeamTag { get; set; } - public string TeamFlag { get; set; } + public string TeamFlag { get; set; } - public string TeamName { get; set; } + public string TeamName { get; set; } - public IProtobufRepeatedFieldSubMessageType Players { get; } + public IProtobufRepeatedFieldSubMessageType Players { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/VacNetShot.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/VacNetShot.cs index 8b98a16ff..58f66805e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/VacNetShot.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/VacNetShot.cs @@ -1,33 +1,32 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface VacNetShot : ITypedProtobuf { - static VacNetShot ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new VacNetShotImpl(handle, isManuallyAllocated); + static VacNetShot ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new VacNetShotImpl(handle, isManuallyAllocated); - public ulong SteamidPlayer { get; set; } + public ulong SteamidPlayer { get; set; } - public int RoundNumber { get; set; } + public int RoundNumber { get; set; } - public int HitType { get; set; } + public int HitType { get; set; } - public int WeaponType { get; set; } + public int WeaponType { get; set; } - public float DistanceToHurtTarget { get; set; } + public float DistanceToHurtTarget { get; set; } - public IProtobufRepeatedFieldValueType DeltaYawWindow { get; } + public IProtobufRepeatedFieldValueType DeltaYawWindow { get; } - public IProtobufRepeatedFieldValueType DeltaPitchWindow { get; } + public IProtobufRepeatedFieldValueType DeltaPitchWindow { get; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/WatchableMatchInfo.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/WatchableMatchInfo.cs index 3cc4ea7e1..ecf9d4a44 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/WatchableMatchInfo.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/WatchableMatchInfo.cs @@ -1,51 +1,50 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface WatchableMatchInfo : ITypedProtobuf { - static WatchableMatchInfo ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new WatchableMatchInfoImpl(handle, isManuallyAllocated); + static WatchableMatchInfo ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new WatchableMatchInfoImpl(handle, isManuallyAllocated); - public uint ServerIp { get; set; } + public uint ServerIp { get; set; } - public uint TvPort { get; set; } + public uint TvPort { get; set; } - public uint TvSpectators { get; set; } + public uint TvSpectators { get; set; } - public uint TvTime { get; set; } + public uint TvTime { get; set; } - public byte[] TvWatchPassword { get; set; } + public byte[] TvWatchPassword { get; set; } - public ulong ClDecryptdataKey { get; set; } + public ulong ClDecryptdataKey { get; set; } - public ulong ClDecryptdataKeyPub { get; set; } + public ulong ClDecryptdataKeyPub { get; set; } - public uint GameType { get; set; } + public uint GameType { get; set; } - public string GameMapgroup { get; set; } + public string GameMapgroup { get; set; } - public string GameMap { get; set; } + public string GameMap { get; set; } - public ulong ServerId { get; set; } + public ulong ServerId { get; set; } - public ulong MatchId { get; set; } + public ulong MatchId { get; set; } - public ulong ReservationId { get; set; } + public ulong ReservationId { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/XpProgressData.cs b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/XpProgressData.cs index 42a0cba43..bf2b8f39e 100644 --- a/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/XpProgressData.cs +++ b/managed/src/SwiftlyS2.Generated/Protobufs/Interfaces/XpProgressData.cs @@ -1,18 +1,17 @@ using SwiftlyS2.Core.ProtobufDefinitions; -using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.NetMessages; namespace SwiftlyS2.Shared.ProtobufDefinitions; public interface XpProgressData : ITypedProtobuf { - static XpProgressData ITypedProtobuf.Wrap(nint handle, bool isManuallyAllocated) => new XpProgressDataImpl(handle, isManuallyAllocated); + static XpProgressData ITypedProtobuf.Wrap( nint handle, bool isManuallyAllocated ) => new XpProgressDataImpl(handle, isManuallyAllocated); - public uint XpPoints { get; set; } + public uint XpPoints { get; set; } - public int XpCategory { get; set; } + public int XpCategory { get; set; } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/NativeMethods.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/NativeMethods.cs index afe449ac9..57e9bb2fb 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/NativeMethods.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/NativeMethods.cs @@ -1,3388 +1,3387 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; +using IntPtr = nint; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +[System.Security.SuppressUnmanagedCodeSecurity()] +internal static class NativeMethods { - [System.Security.SuppressUnmanagedCodeSecurity()] - internal static class NativeMethods - { - internal const string NativeLibraryName = "steam_api"; - internal const string NativeLibrary_SDKEncryptedAppTicket = "sdkencryptedappticket"; + internal const string NativeLibraryName = "steam_api"; + internal const string NativeLibrary_SDKEncryptedAppTicket = "sdkencryptedappticket"; - #region steam_api.h - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_Init", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_Init(); + #region steam_api.h + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_Init", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_Init(); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_Shutdown", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_Shutdown(); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_Shutdown", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_Shutdown(); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_RestartAppIfNecessary", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_RestartAppIfNecessary( AppId_t unOwnAppID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_RestartAppIfNecessary", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_RestartAppIfNecessary( AppId_t unOwnAppID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ReleaseCurrentThreadMemory", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_ReleaseCurrentThreadMemory(); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ReleaseCurrentThreadMemory", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_ReleaseCurrentThreadMemory(); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_WriteMiniDump", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_WriteMiniDump( uint uStructuredExceptionCode, IntPtr pvExceptionInfo, uint uBuildID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_WriteMiniDump", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_WriteMiniDump( uint uStructuredExceptionCode, IntPtr pvExceptionInfo, uint uBuildID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SetMiniDumpComment", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SetMiniDumpComment( InteropHelp.UTF8StringHandle pchMsg ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SetMiniDumpComment", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SetMiniDumpComment( InteropHelp.UTF8StringHandle pchMsg ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_RunCallbacks", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_RunCallbacks(); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_RunCallbacks", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_RunCallbacks(); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_RegisterCallback", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_RegisterCallback( IntPtr pCallback, int iCallback ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_RegisterCallback", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_RegisterCallback( IntPtr pCallback, int iCallback ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_UnregisterCallback", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_UnregisterCallback( IntPtr pCallback ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_UnregisterCallback", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_UnregisterCallback( IntPtr pCallback ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_RegisterCallResult", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_RegisterCallResult( IntPtr pCallback, ulong hAPICall ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_RegisterCallResult", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_RegisterCallResult( IntPtr pCallback, ulong hAPICall ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_UnregisterCallResult", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_UnregisterCallResult( IntPtr pCallback, ulong hAPICall ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_UnregisterCallResult", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_UnregisterCallResult( IntPtr pCallback, ulong hAPICall ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_IsSteamRunning", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_IsSteamRunning(); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_IsSteamRunning", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_IsSteamRunning(); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_GetSteamInstallPath", CallingConvention = CallingConvention.Cdecl)] - public static extern int SteamAPI_GetSteamInstallPath(); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_GetSteamInstallPath", CallingConvention = CallingConvention.Cdecl)] + public static extern int SteamAPI_GetSteamInstallPath(); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_GetHSteamPipe", CallingConvention = CallingConvention.Cdecl)] - public static extern int SteamAPI_GetHSteamPipe(); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_GetHSteamPipe", CallingConvention = CallingConvention.Cdecl)] + public static extern int SteamAPI_GetHSteamPipe(); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SetTryCatchCallbacks", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SetTryCatchCallbacks( [MarshalAs(UnmanagedType.I1)] bool bTryCatchCallbacks ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SetTryCatchCallbacks", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SetTryCatchCallbacks( [MarshalAs(UnmanagedType.I1)] bool bTryCatchCallbacks ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_GetHSteamUser", CallingConvention = CallingConvention.Cdecl)] - public static extern int SteamAPI_GetHSteamUser(); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_GetHSteamUser", CallingConvention = CallingConvention.Cdecl)] + public static extern int SteamAPI_GetHSteamUser(); - [DllImport(NativeLibraryName, EntryPoint = "SteamInternal_ContextInit", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamInternal_ContextInit( IntPtr pContextInitData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamInternal_ContextInit", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SteamInternal_ContextInit( IntPtr pContextInitData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamInternal_CreateInterface", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamInternal_CreateInterface( InteropHelp.UTF8StringHandle ver ); + [DllImport(NativeLibraryName, EntryPoint = "SteamInternal_CreateInterface", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SteamInternal_CreateInterface( InteropHelp.UTF8StringHandle ver ); - [DllImport(NativeLibraryName, EntryPoint = "SteamInternal_FindOrCreateUserInterface", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamInternal_FindOrCreateUserInterface( HSteamUser hSteamUser, InteropHelp.UTF8StringHandle pszVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamInternal_FindOrCreateUserInterface", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SteamInternal_FindOrCreateUserInterface( HSteamUser hSteamUser, InteropHelp.UTF8StringHandle pszVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamInternal_FindOrCreateGameServerInterface", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamInternal_FindOrCreateGameServerInterface( HSteamUser hSteamUser, InteropHelp.UTF8StringHandle pszVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamInternal_FindOrCreateGameServerInterface", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SteamInternal_FindOrCreateGameServerInterface( HSteamUser hSteamUser, InteropHelp.UTF8StringHandle pszVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_UseBreakpadCrashHandler", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_UseBreakpadCrashHandler( InteropHelp.UTF8StringHandle pchVersion, InteropHelp.UTF8StringHandle pchDate, InteropHelp.UTF8StringHandle pchTime, [MarshalAs(UnmanagedType.I1)] bool bFullMemoryDumps, IntPtr pvContext, IntPtr m_pfnPreMinidumpCallback ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_UseBreakpadCrashHandler", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_UseBreakpadCrashHandler( InteropHelp.UTF8StringHandle pchVersion, InteropHelp.UTF8StringHandle pchDate, InteropHelp.UTF8StringHandle pchTime, [MarshalAs(UnmanagedType.I1)] bool bFullMemoryDumps, IntPtr pvContext, IntPtr m_pfnPreMinidumpCallback ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SetBreakpadAppID", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SetBreakpadAppID( uint unAppID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SetBreakpadAppID", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SetBreakpadAppID( uint unAppID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ManualDispatch_Init", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_ManualDispatch_Init(); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ManualDispatch_Init", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_ManualDispatch_Init(); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ManualDispatch_RunFrame", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_ManualDispatch_RunFrame( HSteamPipe hSteamPipe ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ManualDispatch_RunFrame", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_ManualDispatch_RunFrame( HSteamPipe hSteamPipe ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ManualDispatch_GetNextCallback", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_ManualDispatch_GetNextCallback( HSteamPipe hSteamPipe, IntPtr pCallbackMsg ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ManualDispatch_GetNextCallback", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_ManualDispatch_GetNextCallback( HSteamPipe hSteamPipe, IntPtr pCallbackMsg ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ManualDispatch_FreeLastCallback", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_ManualDispatch_FreeLastCallback( HSteamPipe hSteamPipe ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ManualDispatch_FreeLastCallback", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_ManualDispatch_FreeLastCallback( HSteamPipe hSteamPipe ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ManualDispatch_GetAPICallResult", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_ManualDispatch_GetAPICallResult( HSteamPipe hSteamPipe, SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, out bool pbFailed ); - #endregion - #region steam_gameserver.h - [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_Shutdown", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamGameServer_Shutdown(); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ManualDispatch_GetAPICallResult", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_ManualDispatch_GetAPICallResult( HSteamPipe hSteamPipe, SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, out bool pbFailed ); + #endregion + #region steam_gameserver.h + [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_Shutdown", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamGameServer_Shutdown(); - [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_RunCallbacks", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamGameServer_RunCallbacks(); + [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_RunCallbacks", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamGameServer_RunCallbacks(); - [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_ReleaseCurrentThreadMemory", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamGameServer_ReleaseCurrentThreadMemory(); + [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_ReleaseCurrentThreadMemory", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamGameServer_ReleaseCurrentThreadMemory(); - [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_BSecure", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamGameServer_BSecure(); + [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_BSecure", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamGameServer_BSecure(); - [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_GetSteamID", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong SteamGameServer_GetSteamID(); + [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_GetSteamID", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong SteamGameServer_GetSteamID(); - [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_GetHSteamPipe", CallingConvention = CallingConvention.Cdecl)] - public static extern int SteamGameServer_GetHSteamPipe(); + [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_GetHSteamPipe", CallingConvention = CallingConvention.Cdecl)] + public static extern int SteamGameServer_GetHSteamPipe(); - [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_GetHSteamUser", CallingConvention = CallingConvention.Cdecl)] - public static extern int SteamGameServer_GetHSteamUser(); + [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_GetHSteamUser", CallingConvention = CallingConvention.Cdecl)] + public static extern int SteamGameServer_GetHSteamUser(); - [DllImport(NativeLibraryName, EntryPoint = "SteamInternal_GameServer_Init", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamInternal_GameServer_Init( uint unIP, ushort usPort, ushort usGamePort, ushort usQueryPort, EServerMode eServerMode, InteropHelp.UTF8StringHandle pchVersionString ); - #endregion - #region SteamAPI Accessors - [DllImport(NativeLibraryName, EntryPoint = "SteamClient", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamClient(); + [DllImport(NativeLibraryName, EntryPoint = "SteamInternal_GameServer_Init", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamInternal_GameServer_Init( uint unIP, ushort usPort, ushort usGamePort, ushort usQueryPort, EServerMode eServerMode, InteropHelp.UTF8StringHandle pchVersionString ); + #endregion + #region SteamAPI Accessors + [DllImport(NativeLibraryName, EntryPoint = "SteamClient", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SteamClient(); - [DllImport(NativeLibraryName, EntryPoint = "SteamGameServerClient", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamGameServerClient(); - #endregion - #region SteamNetworkingIPAddr Accessors - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_Clear", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingIPAddr_Clear( ref SteamNetworkingIPAddr self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamGameServerClient", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SteamGameServerClient(); + #endregion + #region SteamNetworkingIPAddr Accessors + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_Clear", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingIPAddr_Clear( ref SteamNetworkingIPAddr self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_IsIPv6AllZeros", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIPAddr_IsIPv6AllZeros( ref SteamNetworkingIPAddr self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_IsIPv6AllZeros", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIPAddr_IsIPv6AllZeros( ref SteamNetworkingIPAddr self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_SetIPv6", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingIPAddr_SetIPv6( ref SteamNetworkingIPAddr self, [In, Out] byte[] ipv6, ushort nPort ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_SetIPv6", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingIPAddr_SetIPv6( ref SteamNetworkingIPAddr self, [In, Out] byte[] ipv6, ushort nPort ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_SetIPv4", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingIPAddr_SetIPv4( ref SteamNetworkingIPAddr self, uint nIP, ushort nPort ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_SetIPv4", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingIPAddr_SetIPv4( ref SteamNetworkingIPAddr self, uint nIP, ushort nPort ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_IsIPv4", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIPAddr_IsIPv4( ref SteamNetworkingIPAddr self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_IsIPv4", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIPAddr_IsIPv4( ref SteamNetworkingIPAddr self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_GetIPv4", CallingConvention = CallingConvention.Cdecl)] - public static extern uint SteamAPI_SteamNetworkingIPAddr_GetIPv4( ref SteamNetworkingIPAddr self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_GetIPv4", CallingConvention = CallingConvention.Cdecl)] + public static extern uint SteamAPI_SteamNetworkingIPAddr_GetIPv4( ref SteamNetworkingIPAddr self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_SetIPv6LocalHost", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingIPAddr_SetIPv6LocalHost( ref SteamNetworkingIPAddr self, ushort nPort ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_SetIPv6LocalHost", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingIPAddr_SetIPv6LocalHost( ref SteamNetworkingIPAddr self, ushort nPort ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_IsLocalHost", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIPAddr_IsLocalHost( ref SteamNetworkingIPAddr self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_IsLocalHost", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIPAddr_IsLocalHost( ref SteamNetworkingIPAddr self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_ToString", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingIPAddr_ToString( ref SteamNetworkingIPAddr self, IntPtr buf, uint cbBuf, [MarshalAs(UnmanagedType.I1)] bool bWithPort ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_ToString", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingIPAddr_ToString( ref SteamNetworkingIPAddr self, IntPtr buf, uint cbBuf, [MarshalAs(UnmanagedType.I1)] bool bWithPort ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_ParseString", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIPAddr_ParseString( ref SteamNetworkingIPAddr self, InteropHelp.UTF8StringHandle pszStr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_ParseString", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIPAddr_ParseString( ref SteamNetworkingIPAddr self, InteropHelp.UTF8StringHandle pszStr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_IsEqualTo", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIPAddr_IsEqualTo( ref SteamNetworkingIPAddr self, ref SteamNetworkingIPAddr x ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_IsEqualTo", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIPAddr_IsEqualTo( ref SteamNetworkingIPAddr self, ref SteamNetworkingIPAddr x ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_GetFakeIPType", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamNetworkingFakeIPType SteamAPI_SteamNetworkingIPAddr_GetFakeIPType( ref SteamNetworkingIPAddr self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_GetFakeIPType", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamNetworkingFakeIPType SteamAPI_SteamNetworkingIPAddr_GetFakeIPType( ref SteamNetworkingIPAddr self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_IsFakeIP", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIPAddr_IsFakeIP( ref SteamNetworkingIPAddr self ); - #endregion - #region SteamNetworkingIdentity Accessors - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_Clear", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingIdentity_Clear( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_IsFakeIP", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIPAddr_IsFakeIP( ref SteamNetworkingIPAddr self ); + #endregion + #region SteamNetworkingIdentity Accessors + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_Clear", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingIdentity_Clear( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_IsInvalid", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIdentity_IsInvalid( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_IsInvalid", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIdentity_IsInvalid( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetSteamID", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingIdentity_SetSteamID( ref SteamNetworkingIdentity self, ulong steamID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetSteamID", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingIdentity_SetSteamID( ref SteamNetworkingIdentity self, ulong steamID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetSteamID", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong SteamAPI_SteamNetworkingIdentity_GetSteamID( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetSteamID", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong SteamAPI_SteamNetworkingIdentity_GetSteamID( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetSteamID64", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingIdentity_SetSteamID64( ref SteamNetworkingIdentity self, ulong steamID ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetSteamID64", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong SteamAPI_SteamNetworkingIdentity_GetSteamID64( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetSteamID64", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingIdentity_SetSteamID64( ref SteamNetworkingIdentity self, ulong steamID ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetSteamID64", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong SteamAPI_SteamNetworkingIdentity_GetSteamID64( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetXboxPairwiseID", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIdentity_SetXboxPairwiseID( ref SteamNetworkingIdentity self, InteropHelp.UTF8StringHandle pszString ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetXboxPairwiseID", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIdentity_SetXboxPairwiseID( ref SteamNetworkingIdentity self, InteropHelp.UTF8StringHandle pszString ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetXboxPairwiseID", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamAPI_SteamNetworkingIdentity_GetXboxPairwiseID( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetXboxPairwiseID", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SteamAPI_SteamNetworkingIdentity_GetXboxPairwiseID( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetPSNID", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingIdentity_SetPSNID( ref SteamNetworkingIdentity self, ulong id ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetPSNID", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingIdentity_SetPSNID( ref SteamNetworkingIdentity self, ulong id ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetPSNID", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong SteamAPI_SteamNetworkingIdentity_GetPSNID( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetPSNID", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong SteamAPI_SteamNetworkingIdentity_GetPSNID( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetStadiaID", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingIdentity_SetStadiaID( ref SteamNetworkingIdentity self, ulong id ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetStadiaID", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingIdentity_SetStadiaID( ref SteamNetworkingIdentity self, ulong id ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetStadiaID", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong SteamAPI_SteamNetworkingIdentity_GetStadiaID( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetStadiaID", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong SteamAPI_SteamNetworkingIdentity_GetStadiaID( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetIPAddr", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamAPI_SteamNetworkingIdentity_SetIPAddr( ref SteamNetworkingIdentity self, ref SteamNetworkingIPAddr addr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetIPAddr", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SteamAPI_SteamNetworkingIdentity_SetIPAddr( ref SteamNetworkingIdentity self, ref SteamNetworkingIPAddr addr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetIPAddr", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamAPI_SteamNetworkingIdentity_GetIPAddr( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetIPAddr", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SteamAPI_SteamNetworkingIdentity_GetIPAddr( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetIPv4Addr", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingIdentity_SetIPv4Addr( ref SteamNetworkingIdentity self, uint nIPv4, ushort nPort ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetIPv4Addr", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingIdentity_SetIPv4Addr( ref SteamNetworkingIdentity self, uint nIPv4, ushort nPort ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetIPv4", CallingConvention = CallingConvention.Cdecl)] - public static extern uint SteamAPI_SteamNetworkingIdentity_GetIPv4( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetIPv4", CallingConvention = CallingConvention.Cdecl)] + public static extern uint SteamAPI_SteamNetworkingIdentity_GetIPv4( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetFakeIPType", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamNetworkingFakeIPType SteamAPI_SteamNetworkingIdentity_GetFakeIPType( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetFakeIPType", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamNetworkingFakeIPType SteamAPI_SteamNetworkingIdentity_GetFakeIPType( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_IsFakeIP", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIdentity_IsFakeIP( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_IsFakeIP", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIdentity_IsFakeIP( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetLocalHost", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingIdentity_SetLocalHost( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetLocalHost", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingIdentity_SetLocalHost( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_IsLocalHost", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIdentity_IsLocalHost( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_IsLocalHost", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIdentity_IsLocalHost( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetGenericString", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIdentity_SetGenericString( ref SteamNetworkingIdentity self, InteropHelp.UTF8StringHandle pszString ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetGenericString", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIdentity_SetGenericString( ref SteamNetworkingIdentity self, InteropHelp.UTF8StringHandle pszString ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetGenericString", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamAPI_SteamNetworkingIdentity_GetGenericString( ref SteamNetworkingIdentity self ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetGenericString", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SteamAPI_SteamNetworkingIdentity_GetGenericString( ref SteamNetworkingIdentity self ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetGenericBytes", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIdentity_SetGenericBytes( ref SteamNetworkingIdentity self, [In, Out] byte[] data, uint cbLen ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetGenericBytes", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIdentity_SetGenericBytes( ref SteamNetworkingIdentity self, [In, Out] byte[] data, uint cbLen ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetGenericBytes", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamAPI_SteamNetworkingIdentity_GetGenericBytes( ref SteamNetworkingIdentity self, out int cbLen ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetGenericBytes", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SteamAPI_SteamNetworkingIdentity_GetGenericBytes( ref SteamNetworkingIdentity self, out int cbLen ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_IsEqualTo", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIdentity_IsEqualTo( ref SteamNetworkingIdentity self, ref SteamNetworkingIdentity x ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_IsEqualTo", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIdentity_IsEqualTo( ref SteamNetworkingIdentity self, ref SteamNetworkingIdentity x ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_ToString", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingIdentity_ToString( ref SteamNetworkingIdentity self, IntPtr buf, uint cbBuf ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_ToString", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingIdentity_ToString( ref SteamNetworkingIdentity self, IntPtr buf, uint cbBuf ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_ParseString", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_SteamNetworkingIdentity_ParseString( ref SteamNetworkingIdentity self, InteropHelp.UTF8StringHandle pszStr ); - #endregion - #region SteamNetworkingMessage_t Accessors - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingMessage_t_Release", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SteamNetworkingMessage_t_Release( IntPtr self ); - #endregion - #region ISteamNetworkingConnectionSignaling Accessors - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingConnectionSignaling_SendSignal", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_ISteamNetworkingConnectionSignaling_SendSignal( ref ISteamNetworkingConnectionSignaling self, HSteamNetConnection hConn, ref SteamNetConnectionInfo_t info, IntPtr pMsg, int cbMsg ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_ParseString", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_SteamNetworkingIdentity_ParseString( ref SteamNetworkingIdentity self, InteropHelp.UTF8StringHandle pszStr ); + #endregion + #region SteamNetworkingMessage_t Accessors + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_SteamNetworkingMessage_t_Release", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_SteamNetworkingMessage_t_Release( IntPtr self ); + #endregion + #region ISteamNetworkingConnectionSignaling Accessors + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingConnectionSignaling_SendSignal", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamAPI_ISteamNetworkingConnectionSignaling_SendSignal( ref ISteamNetworkingConnectionSignaling self, HSteamNetConnection hConn, ref SteamNetConnectionInfo_t info, IntPtr pMsg, int cbMsg ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingConnectionSignaling_Release", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_ISteamNetworkingConnectionSignaling_Release( ref ISteamNetworkingConnectionSignaling self ); - #endregion - #region ISteamNetworkingSignalingRecvContext Accessors - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSignalingRecvContext_OnConnectRequest", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamAPI_ISteamNetworkingSignalingRecvContext_OnConnectRequest( ref ISteamNetworkingSignalingRecvContext self, HSteamNetConnection hConn, ref SteamNetworkingIdentity identityPeer, int nLocalVirtualPort ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingConnectionSignaling_Release", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_ISteamNetworkingConnectionSignaling_Release( ref ISteamNetworkingConnectionSignaling self ); + #endregion + #region ISteamNetworkingSignalingRecvContext Accessors + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSignalingRecvContext_OnConnectRequest", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SteamAPI_ISteamNetworkingSignalingRecvContext_OnConnectRequest( ref ISteamNetworkingSignalingRecvContext self, HSteamNetConnection hConn, ref SteamNetworkingIdentity identityPeer, int nLocalVirtualPort ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSignalingRecvContext_SendRejectionSignal", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_ISteamNetworkingSignalingRecvContext_SendRejectionSignal( ref ISteamNetworkingSignalingRecvContext self, ref SteamNetworkingIdentity identityPeer, IntPtr pMsg, int cbMsg ); - #endregion - #region steamencryptedappticket.h - [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamEncryptedAppTicket_BDecryptTicket( [In, Out] byte[] rgubTicketEncrypted, uint cubTicketEncrypted, [In, Out] byte[] rgubTicketDecrypted, ref uint pcubTicketDecrypted, [MarshalAs(UnmanagedType.LPArray, SizeConst = Constants.k_nSteamEncryptedAppTicketSymmetricKeyLen)] byte[] rgubKey, int cubKey ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSignalingRecvContext_SendRejectionSignal", CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamAPI_ISteamNetworkingSignalingRecvContext_SendRejectionSignal( ref ISteamNetworkingSignalingRecvContext self, ref SteamNetworkingIdentity identityPeer, IntPtr pMsg, int cbMsg ); + #endregion + #region steamencryptedappticket.h + [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamEncryptedAppTicket_BDecryptTicket( [In, Out] byte[] rgubTicketEncrypted, uint cubTicketEncrypted, [In, Out] byte[] rgubTicketDecrypted, ref uint pcubTicketDecrypted, [MarshalAs(UnmanagedType.LPArray, SizeConst = Constants.k_nSteamEncryptedAppTicketSymmetricKeyLen)] byte[] rgubKey, int cubKey ); - [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamEncryptedAppTicket_BIsTicketForApp( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID ); + [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamEncryptedAppTicket_BIsTicketForApp( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID ); - [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] - public static extern uint SteamEncryptedAppTicket_GetTicketIssueTime( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted ); + [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] + public static extern uint SteamEncryptedAppTicket_GetTicketIssueTime( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted ); - [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamEncryptedAppTicket_GetTicketSteamID( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, out CSteamID psteamID ); + [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] + public static extern void SteamEncryptedAppTicket_GetTicketSteamID( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, out CSteamID psteamID ); - [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] - public static extern uint SteamEncryptedAppTicket_GetTicketAppID( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted ); + [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] + public static extern uint SteamEncryptedAppTicket_GetTicketAppID( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted ); - [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamEncryptedAppTicket_BUserOwnsAppInTicket( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID ); + [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamEncryptedAppTicket_BUserOwnsAppInTicket( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID ); - [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamEncryptedAppTicket_BUserIsVacBanned( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted ); + [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamEncryptedAppTicket_BUserIsVacBanned( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted ); - [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamEncryptedAppTicket_GetUserVariableData( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, out uint pcubUserData ); + [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr SteamEncryptedAppTicket_GetUserVariableData( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, out uint pcubUserData ); - [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamEncryptedAppTicket_BIsTicketSigned( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, [In, Out] byte[] pubRSAKey, uint cubRSAKey ); + [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamEncryptedAppTicket_BIsTicketSigned( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, [In, Out] byte[] pubRSAKey, uint cubRSAKey ); - [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamEncryptedAppTicket_BIsLicenseBorrowed( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted ); + [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamEncryptedAppTicket_BIsLicenseBorrowed( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted ); - [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamEncryptedAppTicket_BIsLicenseTemporary( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted ); - #endregion - #region SteamApps - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsSubscribed", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsSubscribed( IntPtr instancePtr ); + [DllImport(NativeLibrary_SDKEncryptedAppTicket, CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool SteamEncryptedAppTicket_BIsLicenseTemporary( [In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted ); + #endregion + #region SteamApps + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsSubscribed", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_BIsSubscribed( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsLowViolence", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsLowViolence( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsLowViolence", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_BIsLowViolence( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsCybercafe", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsCybercafe( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsCybercafe", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_BIsCybercafe( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsVACBanned", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsVACBanned( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsVACBanned", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_BIsVACBanned( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetCurrentGameLanguage", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamApps_GetCurrentGameLanguage( IntPtr instancePtr ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetAvailableGameLanguages", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamApps_GetAvailableGameLanguages( IntPtr instancePtr ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedApp", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsSubscribedApp( IntPtr instancePtr, AppId_t appID ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsDlcInstalled", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsDlcInstalled( IntPtr instancePtr, AppId_t appID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetCurrentGameLanguage", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamApps_GetCurrentGameLanguage( IntPtr instancePtr ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetAvailableGameLanguages", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamApps_GetAvailableGameLanguages( IntPtr instancePtr ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedApp", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_BIsSubscribedApp( IntPtr instancePtr, AppId_t appID ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsDlcInstalled", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_BIsDlcInstalled( IntPtr instancePtr, AppId_t appID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamApps_GetEarliestPurchaseUnixTime( IntPtr instancePtr, AppId_t nAppID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamApps_GetEarliestPurchaseUnixTime( IntPtr instancePtr, AppId_t nAppID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsSubscribedFromFreeWeekend( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_BIsSubscribedFromFreeWeekend( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetDLCCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamApps_GetDLCCount( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetDLCCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamApps_GetDLCCount( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BGetDLCDataByIndex( IntPtr instancePtr, int iDLC, out AppId_t pAppID, out bool pbAvailable, IntPtr pchName, int cchNameBufferSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_BGetDLCDataByIndex( IntPtr instancePtr, int iDLC, out AppId_t pAppID, out bool pbAvailable, IntPtr pchName, int cchNameBufferSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_InstallDLC", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamApps_InstallDLC( IntPtr instancePtr, AppId_t nAppID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_InstallDLC", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamApps_InstallDLC( IntPtr instancePtr, AppId_t nAppID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_UninstallDLC", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamApps_UninstallDLC( IntPtr instancePtr, AppId_t nAppID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_UninstallDLC", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamApps_UninstallDLC( IntPtr instancePtr, AppId_t nAppID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamApps_RequestAppProofOfPurchaseKey( IntPtr instancePtr, AppId_t nAppID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamApps_RequestAppProofOfPurchaseKey( IntPtr instancePtr, AppId_t nAppID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetCurrentBetaName", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_GetCurrentBetaName( IntPtr instancePtr, IntPtr pchName, int cchNameBufferSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetCurrentBetaName", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_GetCurrentBetaName( IntPtr instancePtr, IntPtr pchName, int cchNameBufferSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_MarkContentCorrupt", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_MarkContentCorrupt( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bMissingFilesOnly ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_MarkContentCorrupt", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_MarkContentCorrupt( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bMissingFilesOnly ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetInstalledDepots", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamApps_GetInstalledDepots( IntPtr instancePtr, AppId_t appID, [In, Out] DepotId_t[] pvecDepots, uint cMaxDepots ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetInstalledDepots", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamApps_GetInstalledDepots( IntPtr instancePtr, AppId_t appID, [In, Out] DepotId_t[] pvecDepots, uint cMaxDepots ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetAppInstallDir", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamApps_GetAppInstallDir( IntPtr instancePtr, AppId_t appID, IntPtr pchFolder, uint cchFolderBufferSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetAppInstallDir", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamApps_GetAppInstallDir( IntPtr instancePtr, AppId_t appID, IntPtr pchFolder, uint cchFolderBufferSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsAppInstalled", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsAppInstalled( IntPtr instancePtr, AppId_t appID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsAppInstalled", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_BIsAppInstalled( IntPtr instancePtr, AppId_t appID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetAppOwner", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamApps_GetAppOwner( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetAppOwner", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamApps_GetAppOwner( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetLaunchQueryParam", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamApps_GetLaunchQueryParam( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKey ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetLaunchQueryParam", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamApps_GetLaunchQueryParam( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKey ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetDlcDownloadProgress", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_GetDlcDownloadProgress( IntPtr instancePtr, AppId_t nAppID, out ulong punBytesDownloaded, out ulong punBytesTotal ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetDlcDownloadProgress", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_GetDlcDownloadProgress( IntPtr instancePtr, AppId_t nAppID, out ulong punBytesDownloaded, out ulong punBytesTotal ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetAppBuildId", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamApps_GetAppBuildId( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetAppBuildId", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamApps_GetAppBuildId( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamApps_RequestAllProofOfPurchaseKeys( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamApps_RequestAllProofOfPurchaseKeys( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetFileDetails", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamApps_GetFileDetails( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszFileName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetFileDetails", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamApps_GetFileDetails( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszFileName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetLaunchCommandLine", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamApps_GetLaunchCommandLine( IntPtr instancePtr, IntPtr pszCommandLine, int cubCommandLine ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetLaunchCommandLine", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamApps_GetLaunchCommandLine( IntPtr instancePtr, IntPtr pszCommandLine, int cubCommandLine ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFamilySharing", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsSubscribedFromFamilySharing( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFamilySharing", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_BIsSubscribedFromFamilySharing( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsTimedTrial", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsTimedTrial( IntPtr instancePtr, out uint punSecondsAllowed, out uint punSecondsPlayed ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsTimedTrial", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_BIsTimedTrial( IntPtr instancePtr, out uint punSecondsAllowed, out uint punSecondsPlayed ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_SetDlcContext", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_SetDlcContext( IntPtr instancePtr, AppId_t nAppID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_SetDlcContext", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_SetDlcContext( IntPtr instancePtr, AppId_t nAppID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetNumBetas", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamApps_GetNumBetas( IntPtr instancePtr, out int pnAvailable, out int pnPrivate ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetNumBetas", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamApps_GetNumBetas( IntPtr instancePtr, out int pnAvailable, out int pnPrivate ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetBetaInfo", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_GetBetaInfo( IntPtr instancePtr, int iBetaIndex, out uint punFlags, out uint punBuildID, IntPtr pchBetaName, int cchBetaName, IntPtr pchDescription, int cchDescription ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_GetBetaInfo", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_GetBetaInfo( IntPtr instancePtr, int iBetaIndex, out uint punFlags, out uint punBuildID, IntPtr pchBetaName, int cchBetaName, IntPtr pchDescription, int cchDescription ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_SetActiveBeta", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_SetActiveBeta( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchBetaName ); - #endregion - #region SteamClient - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_CreateSteamPipe", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamClient_CreateSteamPipe( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamApps_SetActiveBeta", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamApps_SetActiveBeta( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchBetaName ); + #endregion + #region SteamClient + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_CreateSteamPipe", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamClient_CreateSteamPipe( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_BReleaseSteamPipe", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamClient_BReleaseSteamPipe( IntPtr instancePtr, HSteamPipe hSteamPipe ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_BReleaseSteamPipe", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamClient_BReleaseSteamPipe( IntPtr instancePtr, HSteamPipe hSteamPipe ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_ConnectToGlobalUser", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamClient_ConnectToGlobalUser( IntPtr instancePtr, HSteamPipe hSteamPipe ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_ConnectToGlobalUser", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamClient_ConnectToGlobalUser( IntPtr instancePtr, HSteamPipe hSteamPipe ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_CreateLocalUser", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamClient_CreateLocalUser( IntPtr instancePtr, out HSteamPipe phSteamPipe, EAccountType eAccountType ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_CreateLocalUser", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamClient_CreateLocalUser( IntPtr instancePtr, out HSteamPipe phSteamPipe, EAccountType eAccountType ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_ReleaseUser", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamClient_ReleaseUser( IntPtr instancePtr, HSteamPipe hSteamPipe, HSteamUser hUser ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_ReleaseUser", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamClient_ReleaseUser( IntPtr instancePtr, HSteamPipe hSteamPipe, HSteamUser hUser ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamUser", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamUser( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamUser", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamUser( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamGameServer", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamGameServer( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamGameServer", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamGameServer( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_SetLocalIPBinding", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamClient_SetLocalIPBinding( IntPtr instancePtr, ref SteamIPAddress_t unIP, ushort usPort ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_SetLocalIPBinding", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamClient_SetLocalIPBinding( IntPtr instancePtr, ref SteamIPAddress_t unIP, ushort usPort ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamFriends", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamFriends( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamFriends", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamFriends( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamUtils", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamUtils( IntPtr instancePtr, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamUtils", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamUtils( IntPtr instancePtr, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamMatchmaking", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamMatchmaking( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamMatchmaking", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamMatchmaking( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamMatchmakingServers", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamMatchmakingServers( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamMatchmakingServers", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamMatchmakingServers( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamGenericInterface", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamGenericInterface( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamGenericInterface", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamGenericInterface( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamUserStats", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamUserStats( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamUserStats", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamUserStats( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamGameServerStats", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamGameServerStats( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamGameServerStats", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamGameServerStats( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamApps", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamApps( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamApps", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamApps( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamNetworking", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamNetworking( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamNetworking", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamNetworking( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamRemoteStorage", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamRemoteStorage( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamRemoteStorage", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamRemoteStorage( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamScreenshots", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamScreenshots( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamScreenshots", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamScreenshots( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamGameSearch", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamGameSearch( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamGameSearch", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamGameSearch( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetIPCCallCount", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamClient_GetIPCCallCount( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetIPCCallCount", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamClient_GetIPCCallCount( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_SetWarningMessageHook", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamClient_SetWarningMessageHook( IntPtr instancePtr, SteamAPIWarningMessageHook_t pFunction ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_SetWarningMessageHook", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamClient_SetWarningMessageHook( IntPtr instancePtr, SteamAPIWarningMessageHook_t pFunction ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_BShutdownIfAllPipesClosed", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamClient_BShutdownIfAllPipesClosed( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_BShutdownIfAllPipesClosed", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamClient_BShutdownIfAllPipesClosed( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamHTTP", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamHTTP( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamHTTP", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamHTTP( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamController", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamController( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamController", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamController( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamUGC", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamUGC( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamUGC", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamUGC( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamMusic", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamMusic( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamMusic", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamMusic( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamMusicRemote", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamMusicRemote( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamMusicRemote", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamMusicRemote( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamHTMLSurface", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamHTMLSurface( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamHTMLSurface", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamHTMLSurface( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamInventory", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamInventory( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamInventory", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamInventory( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamVideo", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamVideo( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamVideo", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamVideo( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamParentalSettings", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamParentalSettings( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamParentalSettings", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamParentalSettings( IntPtr instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamInput", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamInput( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamInput", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamInput( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamParties", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamParties( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamParties", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamParties( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamRemotePlay", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamRemotePlay( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); - #endregion - #region SteamFriends - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetPersonaName", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetPersonaName( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamClient_GetISteamRemotePlay", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamClient_GetISteamRemotePlay( IntPtr instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion ); + #endregion + #region SteamFriends + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetPersonaName", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamFriends_GetPersonaName( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetPersonaState", CallingConvention = CallingConvention.Cdecl)] - public static extern EPersonaState ISteamFriends_GetPersonaState( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetPersonaState", CallingConvention = CallingConvention.Cdecl)] + public static extern EPersonaState ISteamFriends_GetPersonaState( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendCount( IntPtr instancePtr, EFriendFlags iFriendFlags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetFriendCount( IntPtr instancePtr, EFriendFlags iFriendFlags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendByIndex", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetFriendByIndex( IntPtr instancePtr, int iFriend, EFriendFlags iFriendFlags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendByIndex", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_GetFriendByIndex( IntPtr instancePtr, int iFriend, EFriendFlags iFriendFlags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendRelationship", CallingConvention = CallingConvention.Cdecl)] - public static extern EFriendRelationship ISteamFriends_GetFriendRelationship( IntPtr instancePtr, CSteamID steamIDFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendRelationship", CallingConvention = CallingConvention.Cdecl)] + public static extern EFriendRelationship ISteamFriends_GetFriendRelationship( IntPtr instancePtr, CSteamID steamIDFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendPersonaState", CallingConvention = CallingConvention.Cdecl)] - public static extern EPersonaState ISteamFriends_GetFriendPersonaState( IntPtr instancePtr, CSteamID steamIDFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendPersonaState", CallingConvention = CallingConvention.Cdecl)] + public static extern EPersonaState ISteamFriends_GetFriendPersonaState( IntPtr instancePtr, CSteamID steamIDFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendPersonaName", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetFriendPersonaName( IntPtr instancePtr, CSteamID steamIDFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendPersonaName", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamFriends_GetFriendPersonaName( IntPtr instancePtr, CSteamID steamIDFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendGamePlayed", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_GetFriendGamePlayed( IntPtr instancePtr, CSteamID steamIDFriend, out FriendGameInfo_t pFriendGameInfo ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendGamePlayed", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_GetFriendGamePlayed( IntPtr instancePtr, CSteamID steamIDFriend, out FriendGameInfo_t pFriendGameInfo ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendPersonaNameHistory", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetFriendPersonaNameHistory( IntPtr instancePtr, CSteamID steamIDFriend, int iPersonaName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendPersonaNameHistory", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamFriends_GetFriendPersonaNameHistory( IntPtr instancePtr, CSteamID steamIDFriend, int iPersonaName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendSteamLevel", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendSteamLevel( IntPtr instancePtr, CSteamID steamIDFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendSteamLevel", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetFriendSteamLevel( IntPtr instancePtr, CSteamID steamIDFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetPlayerNickname", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetPlayerNickname( IntPtr instancePtr, CSteamID steamIDPlayer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetPlayerNickname", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamFriends_GetPlayerNickname( IntPtr instancePtr, CSteamID steamIDPlayer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendsGroupCount( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetFriendsGroupCount( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex", CallingConvention = CallingConvention.Cdecl)] - public static extern short ISteamFriends_GetFriendsGroupIDByIndex( IntPtr instancePtr, int iFG ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex", CallingConvention = CallingConvention.Cdecl)] + public static extern short ISteamFriends_GetFriendsGroupIDByIndex( IntPtr instancePtr, int iFG ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupName", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetFriendsGroupName( IntPtr instancePtr, FriendsGroupID_t friendsGroupID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupName", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamFriends_GetFriendsGroupName( IntPtr instancePtr, FriendsGroupID_t friendsGroupID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupMembersCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendsGroupMembersCount( IntPtr instancePtr, FriendsGroupID_t friendsGroupID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupMembersCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetFriendsGroupMembersCount( IntPtr instancePtr, FriendsGroupID_t friendsGroupID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupMembersList", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_GetFriendsGroupMembersList( IntPtr instancePtr, FriendsGroupID_t friendsGroupID, [In, Out] CSteamID[] pOutSteamIDMembers, int nMembersCount ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupMembersList", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamFriends_GetFriendsGroupMembersList( IntPtr instancePtr, FriendsGroupID_t friendsGroupID, [In, Out] CSteamID[] pOutSteamIDMembers, int nMembersCount ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_HasFriend", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_HasFriend( IntPtr instancePtr, CSteamID steamIDFriend, EFriendFlags iFriendFlags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_HasFriend", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_HasFriend( IntPtr instancePtr, CSteamID steamIDFriend, EFriendFlags iFriendFlags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetClanCount( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetClanCount( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanByIndex", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetClanByIndex( IntPtr instancePtr, int iClan ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanByIndex", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_GetClanByIndex( IntPtr instancePtr, int iClan ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanName", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetClanName( IntPtr instancePtr, CSteamID steamIDClan ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanName", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamFriends_GetClanName( IntPtr instancePtr, CSteamID steamIDClan ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanTag", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetClanTag( IntPtr instancePtr, CSteamID steamIDClan ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanTag", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamFriends_GetClanTag( IntPtr instancePtr, CSteamID steamIDClan ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanActivityCounts", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_GetClanActivityCounts( IntPtr instancePtr, CSteamID steamIDClan, out int pnOnline, out int pnInGame, out int pnChatting ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanActivityCounts", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_GetClanActivityCounts( IntPtr instancePtr, CSteamID steamIDClan, out int pnOnline, out int pnInGame, out int pnChatting ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_DownloadClanActivityCounts", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_DownloadClanActivityCounts( IntPtr instancePtr, [In, Out] CSteamID[] psteamIDClans, int cClansToRequest ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_DownloadClanActivityCounts", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_DownloadClanActivityCounts( IntPtr instancePtr, [In, Out] CSteamID[] psteamIDClans, int cClansToRequest ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendCountFromSource", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendCountFromSource( IntPtr instancePtr, CSteamID steamIDSource ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendCountFromSource", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetFriendCountFromSource( IntPtr instancePtr, CSteamID steamIDSource ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendFromSourceByIndex", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetFriendFromSourceByIndex( IntPtr instancePtr, CSteamID steamIDSource, int iFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendFromSourceByIndex", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_GetFriendFromSourceByIndex( IntPtr instancePtr, CSteamID steamIDSource, int iFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_IsUserInSource", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_IsUserInSource( IntPtr instancePtr, CSteamID steamIDUser, CSteamID steamIDSource ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_IsUserInSource", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_IsUserInSource( IntPtr instancePtr, CSteamID steamIDUser, CSteamID steamIDSource ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_SetInGameVoiceSpeaking", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_SetInGameVoiceSpeaking( IntPtr instancePtr, CSteamID steamIDUser, [MarshalAs(UnmanagedType.I1)] bool bSpeaking ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_SetInGameVoiceSpeaking", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamFriends_SetInGameVoiceSpeaking( IntPtr instancePtr, CSteamID steamIDUser, [MarshalAs(UnmanagedType.I1)] bool bSpeaking ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlay", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ActivateGameOverlay( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchDialog ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlay", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamFriends_ActivateGameOverlay( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchDialog ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayToUser", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ActivateGameOverlayToUser( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchDialog, CSteamID steamID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayToUser", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamFriends_ActivateGameOverlayToUser( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchDialog, CSteamID steamID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ActivateGameOverlayToWebPage( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchURL, EActivateGameOverlayToWebPageMode eMode ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamFriends_ActivateGameOverlayToWebPage( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchURL, EActivateGameOverlayToWebPageMode eMode ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayToStore", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ActivateGameOverlayToStore( IntPtr instancePtr, AppId_t nAppID, EOverlayToStoreFlag eFlag ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayToStore", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamFriends_ActivateGameOverlayToStore( IntPtr instancePtr, AppId_t nAppID, EOverlayToStoreFlag eFlag ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_SetPlayedWith", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_SetPlayedWith( IntPtr instancePtr, CSteamID steamIDUserPlayedWith ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_SetPlayedWith", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamFriends_SetPlayedWith( IntPtr instancePtr, CSteamID steamIDUserPlayedWith ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ActivateGameOverlayInviteDialog( IntPtr instancePtr, CSteamID steamIDLobby ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamFriends_ActivateGameOverlayInviteDialog( IntPtr instancePtr, CSteamID steamIDLobby ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetSmallFriendAvatar", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetSmallFriendAvatar( IntPtr instancePtr, CSteamID steamIDFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetSmallFriendAvatar", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetSmallFriendAvatar( IntPtr instancePtr, CSteamID steamIDFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetMediumFriendAvatar", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetMediumFriendAvatar( IntPtr instancePtr, CSteamID steamIDFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetMediumFriendAvatar", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetMediumFriendAvatar( IntPtr instancePtr, CSteamID steamIDFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetLargeFriendAvatar", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetLargeFriendAvatar( IntPtr instancePtr, CSteamID steamIDFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetLargeFriendAvatar", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetLargeFriendAvatar( IntPtr instancePtr, CSteamID steamIDFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_RequestUserInformation", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_RequestUserInformation( IntPtr instancePtr, CSteamID steamIDUser, [MarshalAs(UnmanagedType.I1)] bool bRequireNameOnly ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_RequestUserInformation", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_RequestUserInformation( IntPtr instancePtr, CSteamID steamIDUser, [MarshalAs(UnmanagedType.I1)] bool bRequireNameOnly ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_RequestClanOfficerList", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_RequestClanOfficerList( IntPtr instancePtr, CSteamID steamIDClan ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_RequestClanOfficerList", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_RequestClanOfficerList( IntPtr instancePtr, CSteamID steamIDClan ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanOwner", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetClanOwner( IntPtr instancePtr, CSteamID steamIDClan ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanOwner", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_GetClanOwner( IntPtr instancePtr, CSteamID steamIDClan ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanOfficerCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetClanOfficerCount( IntPtr instancePtr, CSteamID steamIDClan ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanOfficerCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetClanOfficerCount( IntPtr instancePtr, CSteamID steamIDClan ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanOfficerByIndex", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetClanOfficerByIndex( IntPtr instancePtr, CSteamID steamIDClan, int iOfficer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanOfficerByIndex", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_GetClanOfficerByIndex( IntPtr instancePtr, CSteamID steamIDClan, int iOfficer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_SetRichPresence", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_SetRichPresence( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_SetRichPresence", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_SetRichPresence( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ClearRichPresence", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ClearRichPresence( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ClearRichPresence", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamFriends_ClearRichPresence( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendRichPresence", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetFriendRichPresence( IntPtr instancePtr, CSteamID steamIDFriend, InteropHelp.UTF8StringHandle pchKey ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendRichPresence", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamFriends_GetFriendRichPresence( IntPtr instancePtr, CSteamID steamIDFriend, InteropHelp.UTF8StringHandle pchKey ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendRichPresenceKeyCount( IntPtr instancePtr, CSteamID steamIDFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetFriendRichPresenceKeyCount( IntPtr instancePtr, CSteamID steamIDFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetFriendRichPresenceKeyByIndex( IntPtr instancePtr, CSteamID steamIDFriend, int iKey ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamFriends_GetFriendRichPresenceKeyByIndex( IntPtr instancePtr, CSteamID steamIDFriend, int iKey ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_RequestFriendRichPresence", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_RequestFriendRichPresence( IntPtr instancePtr, CSteamID steamIDFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_RequestFriendRichPresence", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamFriends_RequestFriendRichPresence( IntPtr instancePtr, CSteamID steamIDFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_InviteUserToGame", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_InviteUserToGame( IntPtr instancePtr, CSteamID steamIDFriend, InteropHelp.UTF8StringHandle pchConnectString ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_InviteUserToGame", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_InviteUserToGame( IntPtr instancePtr, CSteamID steamIDFriend, InteropHelp.UTF8StringHandle pchConnectString ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetCoplayFriendCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetCoplayFriendCount( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetCoplayFriendCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetCoplayFriendCount( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetCoplayFriend", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetCoplayFriend( IntPtr instancePtr, int iCoplayFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetCoplayFriend", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_GetCoplayFriend( IntPtr instancePtr, int iCoplayFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendCoplayTime", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendCoplayTime( IntPtr instancePtr, CSteamID steamIDFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendCoplayTime", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetFriendCoplayTime( IntPtr instancePtr, CSteamID steamIDFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendCoplayGame", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamFriends_GetFriendCoplayGame( IntPtr instancePtr, CSteamID steamIDFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendCoplayGame", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamFriends_GetFriendCoplayGame( IntPtr instancePtr, CSteamID steamIDFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_JoinClanChatRoom", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_JoinClanChatRoom( IntPtr instancePtr, CSteamID steamIDClan ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_JoinClanChatRoom", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_JoinClanChatRoom( IntPtr instancePtr, CSteamID steamIDClan ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_LeaveClanChatRoom", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_LeaveClanChatRoom( IntPtr instancePtr, CSteamID steamIDClan ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_LeaveClanChatRoom", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_LeaveClanChatRoom( IntPtr instancePtr, CSteamID steamIDClan ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanChatMemberCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetClanChatMemberCount( IntPtr instancePtr, CSteamID steamIDClan ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanChatMemberCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetClanChatMemberCount( IntPtr instancePtr, CSteamID steamIDClan ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetChatMemberByIndex", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetChatMemberByIndex( IntPtr instancePtr, CSteamID steamIDClan, int iUser ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetChatMemberByIndex", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_GetChatMemberByIndex( IntPtr instancePtr, CSteamID steamIDClan, int iUser ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_SendClanChatMessage", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_SendClanChatMessage( IntPtr instancePtr, CSteamID steamIDClanChat, InteropHelp.UTF8StringHandle pchText ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_SendClanChatMessage", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_SendClanChatMessage( IntPtr instancePtr, CSteamID steamIDClanChat, InteropHelp.UTF8StringHandle pchText ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanChatMessage", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetClanChatMessage( IntPtr instancePtr, CSteamID steamIDClanChat, int iMessage, IntPtr prgchText, int cchTextMax, out EChatEntryType peChatEntryType, out CSteamID psteamidChatter ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetClanChatMessage", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetClanChatMessage( IntPtr instancePtr, CSteamID steamIDClanChat, int iMessage, IntPtr prgchText, int cchTextMax, out EChatEntryType peChatEntryType, out CSteamID psteamidChatter ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_IsClanChatAdmin", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_IsClanChatAdmin( IntPtr instancePtr, CSteamID steamIDClanChat, CSteamID steamIDUser ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_IsClanChatAdmin", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_IsClanChatAdmin( IntPtr instancePtr, CSteamID steamIDClanChat, CSteamID steamIDUser ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_IsClanChatWindowOpenInSteam( IntPtr instancePtr, CSteamID steamIDClanChat ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_IsClanChatWindowOpenInSteam( IntPtr instancePtr, CSteamID steamIDClanChat ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_OpenClanChatWindowInSteam", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_OpenClanChatWindowInSteam( IntPtr instancePtr, CSteamID steamIDClanChat ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_OpenClanChatWindowInSteam", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_OpenClanChatWindowInSteam( IntPtr instancePtr, CSteamID steamIDClanChat ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_CloseClanChatWindowInSteam", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_CloseClanChatWindowInSteam( IntPtr instancePtr, CSteamID steamIDClanChat ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_CloseClanChatWindowInSteam", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_CloseClanChatWindowInSteam( IntPtr instancePtr, CSteamID steamIDClanChat ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_SetListenForFriendsMessages", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_SetListenForFriendsMessages( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bInterceptEnabled ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_SetListenForFriendsMessages", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_SetListenForFriendsMessages( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bInterceptEnabled ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ReplyToFriendMessage", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_ReplyToFriendMessage( IntPtr instancePtr, CSteamID steamIDFriend, InteropHelp.UTF8StringHandle pchMsgToSend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ReplyToFriendMessage", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_ReplyToFriendMessage( IntPtr instancePtr, CSteamID steamIDFriend, InteropHelp.UTF8StringHandle pchMsgToSend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendMessage", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendMessage( IntPtr instancePtr, CSteamID steamIDFriend, int iMessageID, IntPtr pvData, int cubData, out EChatEntryType peChatEntryType ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFriendMessage", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetFriendMessage( IntPtr instancePtr, CSteamID steamIDFriend, int iMessageID, IntPtr pvData, int cubData, out EChatEntryType peChatEntryType ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFollowerCount", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetFollowerCount( IntPtr instancePtr, CSteamID steamID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetFollowerCount", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_GetFollowerCount( IntPtr instancePtr, CSteamID steamID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_IsFollowing", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_IsFollowing( IntPtr instancePtr, CSteamID steamID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_IsFollowing", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_IsFollowing( IntPtr instancePtr, CSteamID steamID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_EnumerateFollowingList", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_EnumerateFollowingList( IntPtr instancePtr, uint unStartIndex ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_EnumerateFollowingList", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_EnumerateFollowingList( IntPtr instancePtr, uint unStartIndex ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_IsClanPublic", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_IsClanPublic( IntPtr instancePtr, CSteamID steamIDClan ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_IsClanPublic", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_IsClanPublic( IntPtr instancePtr, CSteamID steamIDClan ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_IsClanOfficialGameGroup", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_IsClanOfficialGameGroup( IntPtr instancePtr, CSteamID steamIDClan ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_IsClanOfficialGameGroup", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_IsClanOfficialGameGroup( IntPtr instancePtr, CSteamID steamIDClan ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetNumChatsWithUnreadPriorityMessages", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetNumChatsWithUnreadPriorityMessages( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetNumChatsWithUnreadPriorityMessages", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamFriends_GetNumChatsWithUnreadPriorityMessages( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayRemotePlayTogetherInviteDialog", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ActivateGameOverlayRemotePlayTogetherInviteDialog( IntPtr instancePtr, CSteamID steamIDLobby ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayRemotePlayTogetherInviteDialog", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamFriends_ActivateGameOverlayRemotePlayTogetherInviteDialog( IntPtr instancePtr, CSteamID steamIDLobby ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_RegisterProtocolInOverlayBrowser", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_RegisterProtocolInOverlayBrowser( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchProtocol ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_RegisterProtocolInOverlayBrowser", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_RegisterProtocolInOverlayBrowser( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchProtocol ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialogConnectString", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ActivateGameOverlayInviteDialogConnectString( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchConnectString ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialogConnectString", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamFriends_ActivateGameOverlayInviteDialogConnectString( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchConnectString ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_RequestEquippedProfileItems", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_RequestEquippedProfileItems( IntPtr instancePtr, CSteamID steamID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_RequestEquippedProfileItems", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamFriends_RequestEquippedProfileItems( IntPtr instancePtr, CSteamID steamID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_BHasEquippedProfileItem", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_BHasEquippedProfileItem( IntPtr instancePtr, CSteamID steamID, ECommunityProfileItemType itemType ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_BHasEquippedProfileItem", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamFriends_BHasEquippedProfileItem( IntPtr instancePtr, CSteamID steamID, ECommunityProfileItemType itemType ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetProfileItemPropertyString", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetProfileItemPropertyString( IntPtr instancePtr, CSteamID steamID, ECommunityProfileItemType itemType, ECommunityProfileItemProperty prop ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetProfileItemPropertyString", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamFriends_GetProfileItemPropertyString( IntPtr instancePtr, CSteamID steamID, ECommunityProfileItemType itemType, ECommunityProfileItemProperty prop ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetProfileItemPropertyUint", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamFriends_GetProfileItemPropertyUint( IntPtr instancePtr, CSteamID steamID, ECommunityProfileItemType itemType, ECommunityProfileItemProperty prop ); - #endregion - #region SteamGameServer - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetProduct", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetProduct( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszProduct ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetProfileItemPropertyUint", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamFriends_GetProfileItemPropertyUint( IntPtr instancePtr, CSteamID steamID, ECommunityProfileItemType itemType, ECommunityProfileItemProperty prop ); + #endregion + #region SteamGameServer + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetProduct", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetProduct( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszProduct ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetGameDescription", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetGameDescription( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszGameDescription ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetGameDescription", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetGameDescription( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszGameDescription ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetModDir", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetModDir( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszModDir ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetModDir", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetModDir( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszModDir ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetDedicatedServer", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetDedicatedServer( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bDedicated ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetDedicatedServer", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetDedicatedServer( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bDedicated ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_LogOn", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_LogOn( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszToken ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_LogOn", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_LogOn( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszToken ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_LogOnAnonymous", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_LogOnAnonymous( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_LogOnAnonymous", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_LogOnAnonymous( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_LogOff", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_LogOff( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_LogOff", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_LogOff( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_BLoggedOn", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_BLoggedOn( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_BLoggedOn", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServer_BLoggedOn( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_BSecure", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_BSecure( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_BSecure", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServer_BSecure( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_GetSteamID", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServer_GetSteamID( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_GetSteamID", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamGameServer_GetSteamID( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_WasRestartRequested", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_WasRestartRequested( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_WasRestartRequested", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServer_WasRestartRequested( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetMaxPlayerCount", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetMaxPlayerCount( IntPtr instancePtr, int cPlayersMax ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetMaxPlayerCount", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetMaxPlayerCount( IntPtr instancePtr, int cPlayersMax ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetBotPlayerCount", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetBotPlayerCount( IntPtr instancePtr, int cBotplayers ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetBotPlayerCount", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetBotPlayerCount( IntPtr instancePtr, int cBotplayers ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetServerName", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetServerName( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszServerName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetServerName", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetServerName( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszServerName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetMapName", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetMapName( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszMapName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetMapName", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetMapName( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszMapName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetPasswordProtected", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetPasswordProtected( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bPasswordProtected ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetPasswordProtected", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetPasswordProtected( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bPasswordProtected ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetSpectatorPort", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetSpectatorPort( IntPtr instancePtr, ushort unSpectatorPort ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetSpectatorPort", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetSpectatorPort( IntPtr instancePtr, ushort unSpectatorPort ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetSpectatorServerName", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetSpectatorServerName( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszSpectatorServerName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetSpectatorServerName", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetSpectatorServerName( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszSpectatorServerName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_ClearAllKeyValues", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_ClearAllKeyValues( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_ClearAllKeyValues", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_ClearAllKeyValues( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetKeyValue", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetKeyValue( IntPtr instancePtr, InteropHelp.UTF8StringHandle pKey, InteropHelp.UTF8StringHandle pValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetKeyValue", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetKeyValue( IntPtr instancePtr, InteropHelp.UTF8StringHandle pKey, InteropHelp.UTF8StringHandle pValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetGameTags", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetGameTags( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchGameTags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetGameTags", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetGameTags( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchGameTags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetGameData", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetGameData( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchGameData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetGameData", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetGameData( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchGameData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetRegion", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetRegion( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszRegion ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetRegion", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetRegion( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszRegion ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetAdvertiseServerActive", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetAdvertiseServerActive( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bActive ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetAdvertiseServerActive", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SetAdvertiseServerActive( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bActive ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_GetAuthSessionTicket", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServer_GetAuthSessionTicket( IntPtr instancePtr, byte[] pTicket, int cbMaxTicket, out uint pcbTicket, ref SteamNetworkingIdentity pSnid ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_GetAuthSessionTicket", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamGameServer_GetAuthSessionTicket( IntPtr instancePtr, byte[] pTicket, int cbMaxTicket, out uint pcbTicket, ref SteamNetworkingIdentity pSnid ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_BeginAuthSession", CallingConvention = CallingConvention.Cdecl)] - public static extern EBeginAuthSessionResult ISteamGameServer_BeginAuthSession( IntPtr instancePtr, byte[] pAuthTicket, int cbAuthTicket, CSteamID steamID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_BeginAuthSession", CallingConvention = CallingConvention.Cdecl)] + public static extern EBeginAuthSessionResult ISteamGameServer_BeginAuthSession( IntPtr instancePtr, byte[] pAuthTicket, int cbAuthTicket, CSteamID steamID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_EndAuthSession", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_EndAuthSession( IntPtr instancePtr, CSteamID steamID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_EndAuthSession", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_EndAuthSession( IntPtr instancePtr, CSteamID steamID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_CancelAuthTicket", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_CancelAuthTicket( IntPtr instancePtr, HAuthTicket hAuthTicket ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_CancelAuthTicket", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_CancelAuthTicket( IntPtr instancePtr, HAuthTicket hAuthTicket ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_UserHasLicenseForApp", CallingConvention = CallingConvention.Cdecl)] - public static extern EUserHasLicenseForAppResult ISteamGameServer_UserHasLicenseForApp( IntPtr instancePtr, CSteamID steamID, AppId_t appID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_UserHasLicenseForApp", CallingConvention = CallingConvention.Cdecl)] + public static extern EUserHasLicenseForAppResult ISteamGameServer_UserHasLicenseForApp( IntPtr instancePtr, CSteamID steamID, AppId_t appID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_RequestUserGroupStatus", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_RequestUserGroupStatus( IntPtr instancePtr, CSteamID steamIDUser, CSteamID steamIDGroup ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_RequestUserGroupStatus", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServer_RequestUserGroupStatus( IntPtr instancePtr, CSteamID steamIDUser, CSteamID steamIDGroup ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_GetGameplayStats", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_GetGameplayStats( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_GetGameplayStats", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_GetGameplayStats( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_GetServerReputation", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServer_GetServerReputation( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_GetServerReputation", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamGameServer_GetServerReputation( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_GetPublicIP", CallingConvention = CallingConvention.Cdecl)] - public static extern SteamIPAddress_t ISteamGameServer_GetPublicIP( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_GetPublicIP", CallingConvention = CallingConvention.Cdecl)] + public static extern SteamIPAddress_t ISteamGameServer_GetPublicIP( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_HandleIncomingPacket", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_HandleIncomingPacket( IntPtr instancePtr, byte[] pData, int cbData, uint srcIP, ushort srcPort ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_HandleIncomingPacket", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServer_HandleIncomingPacket( IntPtr instancePtr, byte[] pData, int cbData, uint srcIP, ushort srcPort ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_GetNextOutgoingPacket", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamGameServer_GetNextOutgoingPacket( IntPtr instancePtr, byte[] pOut, int cbMaxOut, out uint pNetAdr, out ushort pPort ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_GetNextOutgoingPacket", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamGameServer_GetNextOutgoingPacket( IntPtr instancePtr, byte[] pOut, int cbMaxOut, out uint pNetAdr, out ushort pPort ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_AssociateWithClan", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServer_AssociateWithClan( IntPtr instancePtr, CSteamID steamIDClan ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_AssociateWithClan", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamGameServer_AssociateWithClan( IntPtr instancePtr, CSteamID steamIDClan ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServer_ComputeNewPlayerCompatibility( IntPtr instancePtr, CSteamID steamIDNewPlayer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamGameServer_ComputeNewPlayerCompatibility( IntPtr instancePtr, CSteamID steamIDNewPlayer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate_DEPRECATED", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_SendUserConnectAndAuthenticate_DEPRECATED( IntPtr instancePtr, uint unIPClient, byte[] pvAuthBlob, uint cubAuthBlobSize, out CSteamID pSteamIDUser ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate_DEPRECATED", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServer_SendUserConnectAndAuthenticate_DEPRECATED( IntPtr instancePtr, uint unIPClient, byte[] pvAuthBlob, uint cubAuthBlobSize, out CSteamID pSteamIDUser ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServer_CreateUnauthenticatedUserConnection( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamGameServer_CreateUnauthenticatedUserConnection( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SendUserDisconnect_DEPRECATED", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SendUserDisconnect_DEPRECATED( IntPtr instancePtr, CSteamID steamIDUser ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SendUserDisconnect_DEPRECATED", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamGameServer_SendUserDisconnect_DEPRECATED( IntPtr instancePtr, CSteamID steamIDUser ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_BUpdateUserData", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_BUpdateUserData( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchPlayerName, uint uScore ); - #endregion - #region SteamGameServerStats - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_RequestUserStats", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerStats_RequestUserStats( IntPtr instancePtr, CSteamID steamIDUser ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServer_BUpdateUserData", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServer_BUpdateUserData( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchPlayerName, uint uScore ); + #endregion + #region SteamGameServerStats + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_RequestUserStats", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamGameServerStats_RequestUserStats( IntPtr instancePtr, CSteamID steamIDUser ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStatInt32", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_GetUserStatInt32( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out int pData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStatInt32", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServerStats_GetUserStatInt32( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out int pData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStatFloat", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_GetUserStatFloat( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out float pData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStatFloat", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServerStats_GetUserStatFloat( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out float pData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_GetUserAchievement( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out bool pbAchieved ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServerStats_GetUserAchievement( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out bool pbAchieved ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStatInt32", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_SetUserStatInt32( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, int nData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStatInt32", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServerStats_SetUserStatInt32( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, int nData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStatFloat", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_SetUserStatFloat( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, float fData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStatFloat", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServerStats_SetUserStatFloat( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, float fData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_UpdateUserAvgRateStat( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, float flCountThisSession, double dSessionLength ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServerStats_UpdateUserAvgRateStat( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, float flCountThisSession, double dSessionLength ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserAchievement", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_SetUserAchievement( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserAchievement", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServerStats_SetUserAchievement( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_ClearUserAchievement", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_ClearUserAchievement( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_ClearUserAchievement", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamGameServerStats_ClearUserAchievement( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_StoreUserStats", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerStats_StoreUserStats( IntPtr instancePtr, CSteamID steamIDUser ); - #endregion - #region SteamHTMLSurface - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_Init", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTMLSurface_Init( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_StoreUserStats", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamGameServerStats_StoreUserStats( IntPtr instancePtr, CSteamID steamIDUser ); + #endregion + #region SteamHTMLSurface + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_Init", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTMLSurface_Init( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_Shutdown", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTMLSurface_Shutdown( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_Shutdown", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTMLSurface_Shutdown( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_CreateBrowser", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamHTMLSurface_CreateBrowser( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchUserAgent, InteropHelp.UTF8StringHandle pchUserCSS ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_CreateBrowser", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamHTMLSurface_CreateBrowser( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchUserAgent, InteropHelp.UTF8StringHandle pchUserCSS ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_RemoveBrowser", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_RemoveBrowser( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_RemoveBrowser", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_RemoveBrowser( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_LoadURL", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_LoadURL( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, InteropHelp.UTF8StringHandle pchURL, InteropHelp.UTF8StringHandle pchPostData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_LoadURL", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_LoadURL( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, InteropHelp.UTF8StringHandle pchURL, InteropHelp.UTF8StringHandle pchPostData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetSize", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetSize( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, uint unWidth, uint unHeight ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetSize", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_SetSize( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, uint unWidth, uint unHeight ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_StopLoad", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_StopLoad( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_StopLoad", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_StopLoad( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_Reload", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_Reload( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_Reload", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_Reload( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_GoBack", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_GoBack( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_GoBack", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_GoBack( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_GoForward", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_GoForward( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_GoForward", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_GoForward( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_AddHeader", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_AddHeader( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_AddHeader", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_AddHeader( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_ExecuteJavascript", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_ExecuteJavascript( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, InteropHelp.UTF8StringHandle pchScript ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_ExecuteJavascript", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_ExecuteJavascript( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, InteropHelp.UTF8StringHandle pchScript ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseUp", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_MouseUp( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseUp", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_MouseUp( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseDown", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_MouseDown( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseDown", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_MouseDown( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseDoubleClick", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_MouseDoubleClick( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseDoubleClick", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_MouseDoubleClick( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseMove", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_MouseMove( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, int x, int y ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseMove", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_MouseMove( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, int x, int y ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseWheel", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_MouseWheel( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, int nDelta ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseWheel", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_MouseWheel( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, int nDelta ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_KeyDown", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_KeyDown( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, uint nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers, [MarshalAs(UnmanagedType.I1)] bool bIsSystemKey ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_KeyDown", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_KeyDown( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, uint nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers, [MarshalAs(UnmanagedType.I1)] bool bIsSystemKey ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_KeyUp", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_KeyUp( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, uint nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_KeyUp", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_KeyUp( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, uint nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_KeyChar", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_KeyChar( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, uint cUnicodeChar, EHTMLKeyModifiers eHTMLKeyModifiers ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_KeyChar", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_KeyChar( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, uint cUnicodeChar, EHTMLKeyModifiers eHTMLKeyModifiers ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetHorizontalScroll", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetHorizontalScroll( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, uint nAbsolutePixelScroll ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetHorizontalScroll", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_SetHorizontalScroll( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, uint nAbsolutePixelScroll ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetVerticalScroll", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetVerticalScroll( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, uint nAbsolutePixelScroll ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetVerticalScroll", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_SetVerticalScroll( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, uint nAbsolutePixelScroll ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetKeyFocus", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetKeyFocus( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, [MarshalAs(UnmanagedType.I1)] bool bHasKeyFocus ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetKeyFocus", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_SetKeyFocus( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, [MarshalAs(UnmanagedType.I1)] bool bHasKeyFocus ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_ViewSource", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_ViewSource( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_ViewSource", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_ViewSource( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_CopyToClipboard", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_CopyToClipboard( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_CopyToClipboard", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_CopyToClipboard( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_PasteFromClipboard", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_PasteFromClipboard( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_PasteFromClipboard", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_PasteFromClipboard( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_Find", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_Find( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, InteropHelp.UTF8StringHandle pchSearchStr, [MarshalAs(UnmanagedType.I1)] bool bCurrentlyInFind, [MarshalAs(UnmanagedType.I1)] bool bReverse ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_Find", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_Find( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, InteropHelp.UTF8StringHandle pchSearchStr, [MarshalAs(UnmanagedType.I1)] bool bCurrentlyInFind, [MarshalAs(UnmanagedType.I1)] bool bReverse ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_StopFind", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_StopFind( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_StopFind", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_StopFind( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_GetLinkAtPosition", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_GetLinkAtPosition( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, int x, int y ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_GetLinkAtPosition", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_GetLinkAtPosition( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, int x, int y ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetCookie", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetCookie( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchHostname, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue, InteropHelp.UTF8StringHandle pchPath, uint nExpires, [MarshalAs(UnmanagedType.I1)] bool bSecure, [MarshalAs(UnmanagedType.I1)] bool bHTTPOnly ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetCookie", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_SetCookie( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchHostname, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue, InteropHelp.UTF8StringHandle pchPath, uint nExpires, [MarshalAs(UnmanagedType.I1)] bool bSecure, [MarshalAs(UnmanagedType.I1)] bool bHTTPOnly ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetPageScaleFactor", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetPageScaleFactor( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetPageScaleFactor", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_SetPageScaleFactor( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetBackgroundMode", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetBackgroundMode( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, [MarshalAs(UnmanagedType.I1)] bool bBackgroundMode ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetBackgroundMode", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_SetBackgroundMode( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, [MarshalAs(UnmanagedType.I1)] bool bBackgroundMode ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetDPIScalingFactor( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, float flDPIScaling ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_SetDPIScalingFactor( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, float flDPIScaling ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_OpenDeveloperTools", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_OpenDeveloperTools( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_OpenDeveloperTools", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_OpenDeveloperTools( IntPtr instancePtr, HHTMLBrowser unBrowserHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_AllowStartRequest", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_AllowStartRequest( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, [MarshalAs(UnmanagedType.I1)] bool bAllowed ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_AllowStartRequest", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_AllowStartRequest( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, [MarshalAs(UnmanagedType.I1)] bool bAllowed ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_JSDialogResponse", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_JSDialogResponse( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, [MarshalAs(UnmanagedType.I1)] bool bResult ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_JSDialogResponse", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_JSDialogResponse( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, [MarshalAs(UnmanagedType.I1)] bool bResult ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_FileLoadDialogResponse", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_FileLoadDialogResponse( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, IntPtr pchSelectedFiles ); - #endregion - #region SteamHTTP - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_CreateHTTPRequest", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamHTTP_CreateHTTPRequest( IntPtr instancePtr, EHTTPMethod eHTTPRequestMethod, InteropHelp.UTF8StringHandle pchAbsoluteURL ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTMLSurface_FileLoadDialogResponse", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamHTMLSurface_FileLoadDialogResponse( IntPtr instancePtr, HHTMLBrowser unBrowserHandle, IntPtr pchSelectedFiles ); + #endregion + #region SteamHTTP + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_CreateHTTPRequest", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamHTTP_CreateHTTPRequest( IntPtr instancePtr, EHTTPMethod eHTTPRequestMethod, InteropHelp.UTF8StringHandle pchAbsoluteURL ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestContextValue", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestContextValue( IntPtr instancePtr, HTTPRequestHandle hRequest, ulong ulContextValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestContextValue", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_SetHTTPRequestContextValue( IntPtr instancePtr, HTTPRequestHandle hRequest, ulong ulContextValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( IntPtr instancePtr, HTTPRequestHandle hRequest, uint unTimeoutSeconds ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( IntPtr instancePtr, HTTPRequestHandle hRequest, uint unTimeoutSeconds ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestHeaderValue( IntPtr instancePtr, HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchHeaderName, InteropHelp.UTF8StringHandle pchHeaderValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_SetHTTPRequestHeaderValue( IntPtr instancePtr, HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchHeaderName, InteropHelp.UTF8StringHandle pchHeaderValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestGetOrPostParameter( IntPtr instancePtr, HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchParamName, InteropHelp.UTF8StringHandle pchParamValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_SetHTTPRequestGetOrPostParameter( IntPtr instancePtr, HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchParamName, InteropHelp.UTF8StringHandle pchParamValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SendHTTPRequest", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SendHTTPRequest( IntPtr instancePtr, HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SendHTTPRequest", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_SendHTTPRequest( IntPtr instancePtr, HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SendHTTPRequestAndStreamResponse( IntPtr instancePtr, HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_SendHTTPRequestAndStreamResponse( IntPtr instancePtr, HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_DeferHTTPRequest", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_DeferHTTPRequest( IntPtr instancePtr, HTTPRequestHandle hRequest ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_DeferHTTPRequest", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_DeferHTTPRequest( IntPtr instancePtr, HTTPRequestHandle hRequest ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_PrioritizeHTTPRequest", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_PrioritizeHTTPRequest( IntPtr instancePtr, HTTPRequestHandle hRequest ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_PrioritizeHTTPRequest", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_PrioritizeHTTPRequest( IntPtr instancePtr, HTTPRequestHandle hRequest ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPResponseHeaderSize( IntPtr instancePtr, HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchHeaderName, out uint unResponseHeaderSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_GetHTTPResponseHeaderSize( IntPtr instancePtr, HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchHeaderName, out uint unResponseHeaderSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPResponseHeaderValue( IntPtr instancePtr, HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchHeaderName, byte[] pHeaderValueBuffer, uint unBufferSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_GetHTTPResponseHeaderValue( IntPtr instancePtr, HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchHeaderName, byte[] pHeaderValueBuffer, uint unBufferSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseBodySize", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPResponseBodySize( IntPtr instancePtr, HTTPRequestHandle hRequest, out uint unBodySize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseBodySize", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_GetHTTPResponseBodySize( IntPtr instancePtr, HTTPRequestHandle hRequest, out uint unBodySize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseBodyData", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPResponseBodyData( IntPtr instancePtr, HTTPRequestHandle hRequest, byte[] pBodyDataBuffer, uint unBufferSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseBodyData", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_GetHTTPResponseBodyData( IntPtr instancePtr, HTTPRequestHandle hRequest, byte[] pBodyDataBuffer, uint unBufferSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPStreamingResponseBodyData( IntPtr instancePtr, HTTPRequestHandle hRequest, uint cOffset, byte[] pBodyDataBuffer, uint unBufferSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_GetHTTPStreamingResponseBodyData( IntPtr instancePtr, HTTPRequestHandle hRequest, uint cOffset, byte[] pBodyDataBuffer, uint unBufferSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_ReleaseHTTPRequest", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_ReleaseHTTPRequest( IntPtr instancePtr, HTTPRequestHandle hRequest ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_ReleaseHTTPRequest", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_ReleaseHTTPRequest( IntPtr instancePtr, HTTPRequestHandle hRequest ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPDownloadProgressPct( IntPtr instancePtr, HTTPRequestHandle hRequest, out float pflPercentOut ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_GetHTTPDownloadProgressPct( IntPtr instancePtr, HTTPRequestHandle hRequest, out float pflPercentOut ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestRawPostBody( IntPtr instancePtr, HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchContentType, byte[] pubBody, uint unBodyLen ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_SetHTTPRequestRawPostBody( IntPtr instancePtr, HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchContentType, byte[] pubBody, uint unBodyLen ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_CreateCookieContainer", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamHTTP_CreateCookieContainer( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bAllowResponsesToModify ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_CreateCookieContainer", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamHTTP_CreateCookieContainer( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bAllowResponsesToModify ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_ReleaseCookieContainer", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_ReleaseCookieContainer( IntPtr instancePtr, HTTPCookieContainerHandle hCookieContainer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_ReleaseCookieContainer", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_ReleaseCookieContainer( IntPtr instancePtr, HTTPCookieContainerHandle hCookieContainer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetCookie", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetCookie( IntPtr instancePtr, HTTPCookieContainerHandle hCookieContainer, InteropHelp.UTF8StringHandle pchHost, InteropHelp.UTF8StringHandle pchUrl, InteropHelp.UTF8StringHandle pchCookie ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetCookie", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_SetCookie( IntPtr instancePtr, HTTPCookieContainerHandle hCookieContainer, InteropHelp.UTF8StringHandle pchHost, InteropHelp.UTF8StringHandle pchUrl, InteropHelp.UTF8StringHandle pchCookie ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestCookieContainer( IntPtr instancePtr, HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_SetHTTPRequestCookieContainer( IntPtr instancePtr, HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestUserAgentInfo( IntPtr instancePtr, HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchUserAgentInfo ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_SetHTTPRequestUserAgentInfo( IntPtr instancePtr, HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchUserAgentInfo ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( IntPtr instancePtr, HTTPRequestHandle hRequest, [MarshalAs(UnmanagedType.I1)] bool bRequireVerifiedCertificate ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( IntPtr instancePtr, HTTPRequestHandle hRequest, [MarshalAs(UnmanagedType.I1)] bool bRequireVerifiedCertificate ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( IntPtr instancePtr, HTTPRequestHandle hRequest, uint unMilliseconds ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( IntPtr instancePtr, HTTPRequestHandle hRequest, uint unMilliseconds ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPRequestWasTimedOut( IntPtr instancePtr, HTTPRequestHandle hRequest, out bool pbWasTimedOut ); - #endregion - #region SteamInput - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_Init", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInput_Init( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bExplicitlyCallRunFrame ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamHTTP_GetHTTPRequestWasTimedOut( IntPtr instancePtr, HTTPRequestHandle hRequest, out bool pbWasTimedOut ); + #endregion + #region SteamInput + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_Init", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInput_Init( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bExplicitlyCallRunFrame ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_Shutdown", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInput_Shutdown( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_Shutdown", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInput_Shutdown( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_SetInputActionManifestFilePath", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInput_SetInputActionManifestFilePath( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchInputActionManifestAbsolutePath ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_SetInputActionManifestFilePath", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInput_SetInputActionManifestFilePath( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchInputActionManifestAbsolutePath ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_RunFrame", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_RunFrame( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bReservedValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_RunFrame", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_RunFrame( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bReservedValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_BWaitForData", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInput_BWaitForData( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bWaitForever, uint unTimeout ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_BWaitForData", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInput_BWaitForData( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bWaitForever, uint unTimeout ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_BNewDataAvailable", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInput_BNewDataAvailable( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_BNewDataAvailable", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInput_BNewDataAvailable( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetConnectedControllers", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamInput_GetConnectedControllers( IntPtr instancePtr, [In, Out] InputHandle_t[] handlesOut ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetConnectedControllers", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamInput_GetConnectedControllers( IntPtr instancePtr, [In, Out] InputHandle_t[] handlesOut ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_EnableDeviceCallbacks", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_EnableDeviceCallbacks( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_EnableDeviceCallbacks", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_EnableDeviceCallbacks( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_EnableActionEventCallbacks", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_EnableActionEventCallbacks( IntPtr instancePtr, SteamInputActionEventCallbackPointer pCallback ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_EnableActionEventCallbacks", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_EnableActionEventCallbacks( IntPtr instancePtr, SteamInputActionEventCallbackPointer pCallback ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetActionSetHandle", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamInput_GetActionSetHandle( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszActionSetName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetActionSetHandle", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamInput_GetActionSetHandle( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszActionSetName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_ActivateActionSet", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_ActivateActionSet( IntPtr instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_ActivateActionSet", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_ActivateActionSet( IntPtr instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetCurrentActionSet", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamInput_GetCurrentActionSet( IntPtr instancePtr, InputHandle_t inputHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetCurrentActionSet", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamInput_GetCurrentActionSet( IntPtr instancePtr, InputHandle_t inputHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_ActivateActionSetLayer", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_ActivateActionSetLayer( IntPtr instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetLayerHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_ActivateActionSetLayer", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_ActivateActionSetLayer( IntPtr instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetLayerHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_DeactivateActionSetLayer", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_DeactivateActionSetLayer( IntPtr instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetLayerHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_DeactivateActionSetLayer", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_DeactivateActionSetLayer( IntPtr instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetLayerHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_DeactivateAllActionSetLayers", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_DeactivateAllActionSetLayers( IntPtr instancePtr, InputHandle_t inputHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_DeactivateAllActionSetLayers", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_DeactivateAllActionSetLayers( IntPtr instancePtr, InputHandle_t inputHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetActiveActionSetLayers", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamInput_GetActiveActionSetLayers( IntPtr instancePtr, InputHandle_t inputHandle, [In, Out] InputActionSetHandle_t[] handlesOut ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetActiveActionSetLayers", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamInput_GetActiveActionSetLayers( IntPtr instancePtr, InputHandle_t inputHandle, [In, Out] InputActionSetHandle_t[] handlesOut ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetDigitalActionHandle", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamInput_GetDigitalActionHandle( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszActionName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetDigitalActionHandle", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamInput_GetDigitalActionHandle( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszActionName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetDigitalActionData", CallingConvention = CallingConvention.Cdecl)] - public static extern InputDigitalActionData_t ISteamInput_GetDigitalActionData( IntPtr instancePtr, InputHandle_t inputHandle, InputDigitalActionHandle_t digitalActionHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetDigitalActionData", CallingConvention = CallingConvention.Cdecl)] + public static extern InputDigitalActionData_t ISteamInput_GetDigitalActionData( IntPtr instancePtr, InputHandle_t inputHandle, InputDigitalActionHandle_t digitalActionHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetDigitalActionOrigins", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamInput_GetDigitalActionOrigins( IntPtr instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputDigitalActionHandle_t digitalActionHandle, [In, Out] EInputActionOrigin[] originsOut ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetDigitalActionOrigins", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamInput_GetDigitalActionOrigins( IntPtr instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputDigitalActionHandle_t digitalActionHandle, [In, Out] EInputActionOrigin[] originsOut ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetStringForDigitalActionName", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamInput_GetStringForDigitalActionName( IntPtr instancePtr, InputDigitalActionHandle_t eActionHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetStringForDigitalActionName", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamInput_GetStringForDigitalActionName( IntPtr instancePtr, InputDigitalActionHandle_t eActionHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetAnalogActionHandle", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamInput_GetAnalogActionHandle( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszActionName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetAnalogActionHandle", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamInput_GetAnalogActionHandle( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszActionName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetAnalogActionData", CallingConvention = CallingConvention.Cdecl)] - public static extern InputAnalogActionData_t ISteamInput_GetAnalogActionData( IntPtr instancePtr, InputHandle_t inputHandle, InputAnalogActionHandle_t analogActionHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetAnalogActionData", CallingConvention = CallingConvention.Cdecl)] + public static extern InputAnalogActionData_t ISteamInput_GetAnalogActionData( IntPtr instancePtr, InputHandle_t inputHandle, InputAnalogActionHandle_t analogActionHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetAnalogActionOrigins", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamInput_GetAnalogActionOrigins( IntPtr instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputAnalogActionHandle_t analogActionHandle, [In, Out] EInputActionOrigin[] originsOut ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetAnalogActionOrigins", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamInput_GetAnalogActionOrigins( IntPtr instancePtr, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputAnalogActionHandle_t analogActionHandle, [In, Out] EInputActionOrigin[] originsOut ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGlyphPNGForActionOrigin", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamInput_GetGlyphPNGForActionOrigin( IntPtr instancePtr, EInputActionOrigin eOrigin, ESteamInputGlyphSize eSize, uint unFlags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGlyphPNGForActionOrigin", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamInput_GetGlyphPNGForActionOrigin( IntPtr instancePtr, EInputActionOrigin eOrigin, ESteamInputGlyphSize eSize, uint unFlags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGlyphSVGForActionOrigin", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamInput_GetGlyphSVGForActionOrigin( IntPtr instancePtr, EInputActionOrigin eOrigin, uint unFlags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGlyphSVGForActionOrigin", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamInput_GetGlyphSVGForActionOrigin( IntPtr instancePtr, EInputActionOrigin eOrigin, uint unFlags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGlyphForActionOrigin_Legacy", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamInput_GetGlyphForActionOrigin_Legacy( IntPtr instancePtr, EInputActionOrigin eOrigin ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGlyphForActionOrigin_Legacy", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamInput_GetGlyphForActionOrigin_Legacy( IntPtr instancePtr, EInputActionOrigin eOrigin ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetStringForActionOrigin", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamInput_GetStringForActionOrigin( IntPtr instancePtr, EInputActionOrigin eOrigin ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetStringForActionOrigin", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamInput_GetStringForActionOrigin( IntPtr instancePtr, EInputActionOrigin eOrigin ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetStringForAnalogActionName", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamInput_GetStringForAnalogActionName( IntPtr instancePtr, InputAnalogActionHandle_t eActionHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetStringForAnalogActionName", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamInput_GetStringForAnalogActionName( IntPtr instancePtr, InputAnalogActionHandle_t eActionHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_StopAnalogActionMomentum", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_StopAnalogActionMomentum( IntPtr instancePtr, InputHandle_t inputHandle, InputAnalogActionHandle_t eAction ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_StopAnalogActionMomentum", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_StopAnalogActionMomentum( IntPtr instancePtr, InputHandle_t inputHandle, InputAnalogActionHandle_t eAction ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetMotionData", CallingConvention = CallingConvention.Cdecl)] - public static extern InputMotionData_t ISteamInput_GetMotionData( IntPtr instancePtr, InputHandle_t inputHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetMotionData", CallingConvention = CallingConvention.Cdecl)] + public static extern InputMotionData_t ISteamInput_GetMotionData( IntPtr instancePtr, InputHandle_t inputHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_TriggerVibration", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_TriggerVibration( IntPtr instancePtr, InputHandle_t inputHandle, ushort usLeftSpeed, ushort usRightSpeed ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_TriggerVibration", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_TriggerVibration( IntPtr instancePtr, InputHandle_t inputHandle, ushort usLeftSpeed, ushort usRightSpeed ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_TriggerVibrationExtended", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_TriggerVibrationExtended( IntPtr instancePtr, InputHandle_t inputHandle, ushort usLeftSpeed, ushort usRightSpeed, ushort usLeftTriggerSpeed, ushort usRightTriggerSpeed ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_TriggerVibrationExtended", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_TriggerVibrationExtended( IntPtr instancePtr, InputHandle_t inputHandle, ushort usLeftSpeed, ushort usRightSpeed, ushort usLeftTriggerSpeed, ushort usRightTriggerSpeed ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_TriggerSimpleHapticEvent", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_TriggerSimpleHapticEvent( IntPtr instancePtr, InputHandle_t inputHandle, EControllerHapticLocation eHapticLocation, byte nIntensity, char nGainDB, byte nOtherIntensity, char nOtherGainDB ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_TriggerSimpleHapticEvent", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_TriggerSimpleHapticEvent( IntPtr instancePtr, InputHandle_t inputHandle, EControllerHapticLocation eHapticLocation, byte nIntensity, char nGainDB, byte nOtherIntensity, char nOtherGainDB ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_SetLEDColor", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_SetLEDColor( IntPtr instancePtr, InputHandle_t inputHandle, byte nColorR, byte nColorG, byte nColorB, uint nFlags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_SetLEDColor", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_SetLEDColor( IntPtr instancePtr, InputHandle_t inputHandle, byte nColorR, byte nColorG, byte nColorB, uint nFlags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_Legacy_TriggerHapticPulse", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_Legacy_TriggerHapticPulse( IntPtr instancePtr, InputHandle_t inputHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_Legacy_TriggerHapticPulse", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_Legacy_TriggerHapticPulse( IntPtr instancePtr, InputHandle_t inputHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_Legacy_TriggerRepeatedHapticPulse", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_Legacy_TriggerRepeatedHapticPulse( IntPtr instancePtr, InputHandle_t inputHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec, ushort usOffMicroSec, ushort unRepeat, uint nFlags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_Legacy_TriggerRepeatedHapticPulse", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_Legacy_TriggerRepeatedHapticPulse( IntPtr instancePtr, InputHandle_t inputHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec, ushort usOffMicroSec, ushort unRepeat, uint nFlags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_ShowBindingPanel", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInput_ShowBindingPanel( IntPtr instancePtr, InputHandle_t inputHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_ShowBindingPanel", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInput_ShowBindingPanel( IntPtr instancePtr, InputHandle_t inputHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetInputTypeForHandle", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamInputType ISteamInput_GetInputTypeForHandle( IntPtr instancePtr, InputHandle_t inputHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetInputTypeForHandle", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamInputType ISteamInput_GetInputTypeForHandle( IntPtr instancePtr, InputHandle_t inputHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetControllerForGamepadIndex", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamInput_GetControllerForGamepadIndex( IntPtr instancePtr, int nIndex ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetControllerForGamepadIndex", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamInput_GetControllerForGamepadIndex( IntPtr instancePtr, int nIndex ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGamepadIndexForController", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamInput_GetGamepadIndexForController( IntPtr instancePtr, InputHandle_t ulinputHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGamepadIndexForController", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamInput_GetGamepadIndexForController( IntPtr instancePtr, InputHandle_t ulinputHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetStringForXboxOrigin", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamInput_GetStringForXboxOrigin( IntPtr instancePtr, EXboxOrigin eOrigin ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetStringForXboxOrigin", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamInput_GetStringForXboxOrigin( IntPtr instancePtr, EXboxOrigin eOrigin ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGlyphForXboxOrigin", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamInput_GetGlyphForXboxOrigin( IntPtr instancePtr, EXboxOrigin eOrigin ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGlyphForXboxOrigin", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamInput_GetGlyphForXboxOrigin( IntPtr instancePtr, EXboxOrigin eOrigin ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetActionOriginFromXboxOrigin", CallingConvention = CallingConvention.Cdecl)] - public static extern EInputActionOrigin ISteamInput_GetActionOriginFromXboxOrigin( IntPtr instancePtr, InputHandle_t inputHandle, EXboxOrigin eOrigin ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetActionOriginFromXboxOrigin", CallingConvention = CallingConvention.Cdecl)] + public static extern EInputActionOrigin ISteamInput_GetActionOriginFromXboxOrigin( IntPtr instancePtr, InputHandle_t inputHandle, EXboxOrigin eOrigin ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_TranslateActionOrigin", CallingConvention = CallingConvention.Cdecl)] - public static extern EInputActionOrigin ISteamInput_TranslateActionOrigin( IntPtr instancePtr, ESteamInputType eDestinationInputType, EInputActionOrigin eSourceOrigin ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_TranslateActionOrigin", CallingConvention = CallingConvention.Cdecl)] + public static extern EInputActionOrigin ISteamInput_TranslateActionOrigin( IntPtr instancePtr, ESteamInputType eDestinationInputType, EInputActionOrigin eSourceOrigin ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetDeviceBindingRevision", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInput_GetDeviceBindingRevision( IntPtr instancePtr, InputHandle_t inputHandle, out int pMajor, out int pMinor ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetDeviceBindingRevision", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInput_GetDeviceBindingRevision( IntPtr instancePtr, InputHandle_t inputHandle, out int pMajor, out int pMinor ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetRemotePlaySessionID", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamInput_GetRemotePlaySessionID( IntPtr instancePtr, InputHandle_t inputHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetRemotePlaySessionID", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamInput_GetRemotePlaySessionID( IntPtr instancePtr, InputHandle_t inputHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetSessionInputConfigurationSettings", CallingConvention = CallingConvention.Cdecl)] - public static extern ushort ISteamInput_GetSessionInputConfigurationSettings( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_GetSessionInputConfigurationSettings", CallingConvention = CallingConvention.Cdecl)] + public static extern ushort ISteamInput_GetSessionInputConfigurationSettings( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_SetDualSenseTriggerEffect", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInput_SetDualSenseTriggerEffect( IntPtr instancePtr, InputHandle_t inputHandle, IntPtr pParam ); - #endregion - #region SteamInventory - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetResultStatus", CallingConvention = CallingConvention.Cdecl)] - public static extern EResult ISteamInventory_GetResultStatus( IntPtr instancePtr, SteamInventoryResult_t resultHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInput_SetDualSenseTriggerEffect", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInput_SetDualSenseTriggerEffect( IntPtr instancePtr, InputHandle_t inputHandle, IntPtr pParam ); + #endregion + #region SteamInventory + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetResultStatus", CallingConvention = CallingConvention.Cdecl)] + public static extern EResult ISteamInventory_GetResultStatus( IntPtr instancePtr, SteamInventoryResult_t resultHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetResultItems", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetResultItems( IntPtr instancePtr, SteamInventoryResult_t resultHandle, [In, Out] SteamItemDetails_t[] pOutItemsArray, ref uint punOutItemsArraySize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetResultItems", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_GetResultItems( IntPtr instancePtr, SteamInventoryResult_t resultHandle, [In, Out] SteamItemDetails_t[] pOutItemsArray, ref uint punOutItemsArraySize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetResultItemProperty", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetResultItemProperty( IntPtr instancePtr, SteamInventoryResult_t resultHandle, uint unItemIndex, InteropHelp.UTF8StringHandle pchPropertyName, IntPtr pchValueBuffer, ref uint punValueBufferSizeOut ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetResultItemProperty", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_GetResultItemProperty( IntPtr instancePtr, SteamInventoryResult_t resultHandle, uint unItemIndex, InteropHelp.UTF8StringHandle pchPropertyName, IntPtr pchValueBuffer, ref uint punValueBufferSizeOut ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetResultTimestamp", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamInventory_GetResultTimestamp( IntPtr instancePtr, SteamInventoryResult_t resultHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetResultTimestamp", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamInventory_GetResultTimestamp( IntPtr instancePtr, SteamInventoryResult_t resultHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_CheckResultSteamID", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_CheckResultSteamID( IntPtr instancePtr, SteamInventoryResult_t resultHandle, CSteamID steamIDExpected ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_CheckResultSteamID", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_CheckResultSteamID( IntPtr instancePtr, SteamInventoryResult_t resultHandle, CSteamID steamIDExpected ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_DestroyResult", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInventory_DestroyResult( IntPtr instancePtr, SteamInventoryResult_t resultHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_DestroyResult", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInventory_DestroyResult( IntPtr instancePtr, SteamInventoryResult_t resultHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetAllItems", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetAllItems( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetAllItems", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_GetAllItems( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetItemsByID", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetItemsByID( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemInstanceID_t[] pInstanceIDs, uint unCountInstanceIDs ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetItemsByID", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_GetItemsByID( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemInstanceID_t[] pInstanceIDs, uint unCountInstanceIDs ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SerializeResult", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_SerializeResult( IntPtr instancePtr, SteamInventoryResult_t resultHandle, byte[] pOutBuffer, out uint punOutBufferSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SerializeResult", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_SerializeResult( IntPtr instancePtr, SteamInventoryResult_t resultHandle, byte[] pOutBuffer, out uint punOutBufferSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_DeserializeResult", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_DeserializeResult( IntPtr instancePtr, out SteamInventoryResult_t pOutResultHandle, byte[] pBuffer, uint unBufferSize, [MarshalAs(UnmanagedType.I1)] bool bRESERVED_MUST_BE_FALSE ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_DeserializeResult", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_DeserializeResult( IntPtr instancePtr, out SteamInventoryResult_t pOutResultHandle, byte[] pBuffer, uint unBufferSize, [MarshalAs(UnmanagedType.I1)] bool bRESERVED_MUST_BE_FALSE ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GenerateItems", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GenerateItems( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemDef_t[] pArrayItemDefs, [In, Out] uint[] punArrayQuantity, uint unArrayLength ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GenerateItems", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_GenerateItems( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemDef_t[] pArrayItemDefs, [In, Out] uint[] punArrayQuantity, uint unArrayLength ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GrantPromoItems", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GrantPromoItems( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GrantPromoItems", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_GrantPromoItems( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_AddPromoItem", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_AddPromoItem( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, SteamItemDef_t itemDef ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_AddPromoItem", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_AddPromoItem( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, SteamItemDef_t itemDef ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_AddPromoItems", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_AddPromoItems( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemDef_t[] pArrayItemDefs, uint unArrayLength ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_AddPromoItems", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_AddPromoItems( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemDef_t[] pArrayItemDefs, uint unArrayLength ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_ConsumeItem", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_ConsumeItem( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemConsume, uint unQuantity ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_ConsumeItem", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_ConsumeItem( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemConsume, uint unQuantity ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_ExchangeItems", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_ExchangeItems( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemDef_t[] pArrayGenerate, [In, Out] uint[] punArrayGenerateQuantity, uint unArrayGenerateLength, [In, Out] SteamItemInstanceID_t[] pArrayDestroy, [In, Out] uint[] punArrayDestroyQuantity, uint unArrayDestroyLength ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_ExchangeItems", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_ExchangeItems( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemDef_t[] pArrayGenerate, [In, Out] uint[] punArrayGenerateQuantity, uint unArrayGenerateLength, [In, Out] SteamItemInstanceID_t[] pArrayDestroy, [In, Out] uint[] punArrayDestroyQuantity, uint unArrayDestroyLength ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_TransferItemQuantity", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_TransferItemQuantity( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemIdSource, uint unQuantity, SteamItemInstanceID_t itemIdDest ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_TransferItemQuantity", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_TransferItemQuantity( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemIdSource, uint unQuantity, SteamItemInstanceID_t itemIdDest ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SendItemDropHeartbeat", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInventory_SendItemDropHeartbeat( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SendItemDropHeartbeat", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamInventory_SendItemDropHeartbeat( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_TriggerItemDrop", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_TriggerItemDrop( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, SteamItemDef_t dropListDefinition ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_TriggerItemDrop", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_TriggerItemDrop( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, SteamItemDef_t dropListDefinition ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_TradeItems", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_TradeItems( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, CSteamID steamIDTradePartner, [In, Out] SteamItemInstanceID_t[] pArrayGive, [In, Out] uint[] pArrayGiveQuantity, uint nArrayGiveLength, [In, Out] SteamItemInstanceID_t[] pArrayGet, [In, Out] uint[] pArrayGetQuantity, uint nArrayGetLength ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_TradeItems", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_TradeItems( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, CSteamID steamIDTradePartner, [In, Out] SteamItemInstanceID_t[] pArrayGive, [In, Out] uint[] pArrayGiveQuantity, uint nArrayGiveLength, [In, Out] SteamItemInstanceID_t[] pArrayGet, [In, Out] uint[] pArrayGetQuantity, uint nArrayGetLength ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_LoadItemDefinitions", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_LoadItemDefinitions( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_LoadItemDefinitions", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_LoadItemDefinitions( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionIDs", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetItemDefinitionIDs( IntPtr instancePtr, [In, Out] SteamItemDef_t[] pItemDefIDs, ref uint punItemDefIDsArraySize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionIDs", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_GetItemDefinitionIDs( IntPtr instancePtr, [In, Out] SteamItemDef_t[] pItemDefIDs, ref uint punItemDefIDsArraySize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionProperty", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetItemDefinitionProperty( IntPtr instancePtr, SteamItemDef_t iDefinition, InteropHelp.UTF8StringHandle pchPropertyName, IntPtr pchValueBuffer, ref uint punValueBufferSizeOut ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionProperty", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_GetItemDefinitionProperty( IntPtr instancePtr, SteamItemDef_t iDefinition, InteropHelp.UTF8StringHandle pchPropertyName, IntPtr pchValueBuffer, ref uint punValueBufferSizeOut ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( IntPtr instancePtr, CSteamID steamID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( IntPtr instancePtr, CSteamID steamID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetEligiblePromoItemDefinitionIDs( IntPtr instancePtr, CSteamID steamID, [In, Out] SteamItemDef_t[] pItemDefIDs, ref uint punItemDefIDsArraySize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_GetEligiblePromoItemDefinitionIDs( IntPtr instancePtr, CSteamID steamID, [In, Out] SteamItemDef_t[] pItemDefIDs, ref uint punItemDefIDsArraySize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_StartPurchase", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamInventory_StartPurchase( IntPtr instancePtr, [In, Out] SteamItemDef_t[] pArrayItemDefs, [In, Out] uint[] punArrayQuantity, uint unArrayLength ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_StartPurchase", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamInventory_StartPurchase( IntPtr instancePtr, [In, Out] SteamItemDef_t[] pArrayItemDefs, [In, Out] uint[] punArrayQuantity, uint unArrayLength ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_RequestPrices", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamInventory_RequestPrices( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_RequestPrices", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamInventory_RequestPrices( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetNumItemsWithPrices", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamInventory_GetNumItemsWithPrices( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetNumItemsWithPrices", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamInventory_GetNumItemsWithPrices( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetItemsWithPrices", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetItemsWithPrices( IntPtr instancePtr, [In, Out] SteamItemDef_t[] pArrayItemDefs, [In, Out] ulong[] pCurrentPrices, [In, Out] ulong[] pBasePrices, uint unArrayLength ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetItemsWithPrices", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_GetItemsWithPrices( IntPtr instancePtr, [In, Out] SteamItemDef_t[] pArrayItemDefs, [In, Out] ulong[] pCurrentPrices, [In, Out] ulong[] pBasePrices, uint unArrayLength ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetItemPrice", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetItemPrice( IntPtr instancePtr, SteamItemDef_t iDefinition, out ulong pCurrentPrice, out ulong pBasePrice ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_GetItemPrice", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_GetItemPrice( IntPtr instancePtr, SteamItemDef_t iDefinition, out ulong pCurrentPrice, out ulong pBasePrice ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_StartUpdateProperties", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamInventory_StartUpdateProperties( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_StartUpdateProperties", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamInventory_StartUpdateProperties( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_RemoveProperty", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_RemoveProperty( IntPtr instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, InteropHelp.UTF8StringHandle pchPropertyName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_RemoveProperty", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_RemoveProperty( IntPtr instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, InteropHelp.UTF8StringHandle pchPropertyName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetPropertyString", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_SetPropertyString( IntPtr instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, InteropHelp.UTF8StringHandle pchPropertyName, InteropHelp.UTF8StringHandle pchPropertyValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetPropertyString", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_SetPropertyString( IntPtr instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, InteropHelp.UTF8StringHandle pchPropertyName, InteropHelp.UTF8StringHandle pchPropertyValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetPropertyBool", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_SetPropertyBool( IntPtr instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, InteropHelp.UTF8StringHandle pchPropertyName, [MarshalAs(UnmanagedType.I1)] bool bValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetPropertyBool", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_SetPropertyBool( IntPtr instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, InteropHelp.UTF8StringHandle pchPropertyName, [MarshalAs(UnmanagedType.I1)] bool bValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetPropertyInt64", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_SetPropertyInt64( IntPtr instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, InteropHelp.UTF8StringHandle pchPropertyName, long nValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetPropertyInt64", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_SetPropertyInt64( IntPtr instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, InteropHelp.UTF8StringHandle pchPropertyName, long nValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetPropertyFloat", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_SetPropertyFloat( IntPtr instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, InteropHelp.UTF8StringHandle pchPropertyName, float flValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetPropertyFloat", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_SetPropertyFloat( IntPtr instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, InteropHelp.UTF8StringHandle pchPropertyName, float flValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SubmitUpdateProperties", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_SubmitUpdateProperties( IntPtr instancePtr, SteamInventoryUpdateHandle_t handle, out SteamInventoryResult_t pResultHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_SubmitUpdateProperties", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_SubmitUpdateProperties( IntPtr instancePtr, SteamInventoryUpdateHandle_t handle, out SteamInventoryResult_t pResultHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_InspectItem", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_InspectItem( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, InteropHelp.UTF8StringHandle pchItemToken ); - #endregion - #region SteamMatchmaking - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetFavoriteGameCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmaking_GetFavoriteGameCount( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamInventory_InspectItem", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamInventory_InspectItem( IntPtr instancePtr, out SteamInventoryResult_t pResultHandle, InteropHelp.UTF8StringHandle pchItemToken ); + #endregion + #region SteamMatchmaking + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetFavoriteGameCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamMatchmaking_GetFavoriteGameCount( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetFavoriteGame", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_GetFavoriteGame( IntPtr instancePtr, int iGame, out AppId_t pnAppID, out uint pnIP, out ushort pnConnPort, out ushort pnQueryPort, out uint punFlags, out uint pRTime32LastPlayedOnServer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetFavoriteGame", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_GetFavoriteGame( IntPtr instancePtr, int iGame, out AppId_t pnAppID, out uint pnIP, out ushort pnConnPort, out ushort pnQueryPort, out uint punFlags, out uint pRTime32LastPlayedOnServer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddFavoriteGame", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmaking_AddFavoriteGame( IntPtr instancePtr, AppId_t nAppID, uint nIP, ushort nConnPort, ushort nQueryPort, uint unFlags, uint rTime32LastPlayedOnServer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddFavoriteGame", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamMatchmaking_AddFavoriteGame( IntPtr instancePtr, AppId_t nAppID, uint nIP, ushort nConnPort, ushort nQueryPort, uint unFlags, uint rTime32LastPlayedOnServer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_RemoveFavoriteGame", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_RemoveFavoriteGame( IntPtr instancePtr, AppId_t nAppID, uint nIP, ushort nConnPort, ushort nQueryPort, uint unFlags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_RemoveFavoriteGame", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_RemoveFavoriteGame( IntPtr instancePtr, AppId_t nAppID, uint nIP, ushort nConnPort, ushort nQueryPort, uint unFlags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_RequestLobbyList", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamMatchmaking_RequestLobbyList( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_RequestLobbyList", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamMatchmaking_RequestLobbyList( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListStringFilter( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKeyToMatch, InteropHelp.UTF8StringHandle pchValueToMatch, ELobbyComparison eComparisonType ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmaking_AddRequestLobbyListStringFilter( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKeyToMatch, InteropHelp.UTF8StringHandle pchValueToMatch, ELobbyComparison eComparisonType ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListNumericalFilter( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKeyToMatch, int nValueToMatch, ELobbyComparison eComparisonType ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmaking_AddRequestLobbyListNumericalFilter( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKeyToMatch, int nValueToMatch, ELobbyComparison eComparisonType ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListNearValueFilter( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKeyToMatch, int nValueToBeCloseTo ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmaking_AddRequestLobbyListNearValueFilter( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKeyToMatch, int nValueToBeCloseTo ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( IntPtr instancePtr, int nSlotsAvailable ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( IntPtr instancePtr, int nSlotsAvailable ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListDistanceFilter( IntPtr instancePtr, ELobbyDistanceFilter eLobbyDistanceFilter ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmaking_AddRequestLobbyListDistanceFilter( IntPtr instancePtr, ELobbyDistanceFilter eLobbyDistanceFilter ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListResultCountFilter( IntPtr instancePtr, int cMaxResults ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmaking_AddRequestLobbyListResultCountFilter( IntPtr instancePtr, int cMaxResults ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( IntPtr instancePtr, CSteamID steamIDLobby ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( IntPtr instancePtr, CSteamID steamIDLobby ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyByIndex", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamMatchmaking_GetLobbyByIndex( IntPtr instancePtr, int iLobby ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyByIndex", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamMatchmaking_GetLobbyByIndex( IntPtr instancePtr, int iLobby ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_CreateLobby", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamMatchmaking_CreateLobby( IntPtr instancePtr, ELobbyType eLobbyType, int cMaxMembers ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_CreateLobby", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamMatchmaking_CreateLobby( IntPtr instancePtr, ELobbyType eLobbyType, int cMaxMembers ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_JoinLobby", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamMatchmaking_JoinLobby( IntPtr instancePtr, CSteamID steamIDLobby ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_JoinLobby", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamMatchmaking_JoinLobby( IntPtr instancePtr, CSteamID steamIDLobby ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_LeaveLobby", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_LeaveLobby( IntPtr instancePtr, CSteamID steamIDLobby ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_LeaveLobby", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmaking_LeaveLobby( IntPtr instancePtr, CSteamID steamIDLobby ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_InviteUserToLobby", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_InviteUserToLobby( IntPtr instancePtr, CSteamID steamIDLobby, CSteamID steamIDInvitee ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_InviteUserToLobby", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_InviteUserToLobby( IntPtr instancePtr, CSteamID steamIDLobby, CSteamID steamIDInvitee ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetNumLobbyMembers", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmaking_GetNumLobbyMembers( IntPtr instancePtr, CSteamID steamIDLobby ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetNumLobbyMembers", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamMatchmaking_GetNumLobbyMembers( IntPtr instancePtr, CSteamID steamIDLobby ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamMatchmaking_GetLobbyMemberByIndex( IntPtr instancePtr, CSteamID steamIDLobby, int iMember ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamMatchmaking_GetLobbyMemberByIndex( IntPtr instancePtr, CSteamID steamIDLobby, int iMember ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyData", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmaking_GetLobbyData( IntPtr instancePtr, CSteamID steamIDLobby, InteropHelp.UTF8StringHandle pchKey ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyData", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamMatchmaking_GetLobbyData( IntPtr instancePtr, CSteamID steamIDLobby, InteropHelp.UTF8StringHandle pchKey ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyData", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SetLobbyData( IntPtr instancePtr, CSteamID steamIDLobby, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyData", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_SetLobbyData( IntPtr instancePtr, CSteamID steamIDLobby, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmaking_GetLobbyDataCount( IntPtr instancePtr, CSteamID steamIDLobby ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamMatchmaking_GetLobbyDataCount( IntPtr instancePtr, CSteamID steamIDLobby ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_GetLobbyDataByIndex( IntPtr instancePtr, CSteamID steamIDLobby, int iLobbyData, IntPtr pchKey, int cchKeyBufferSize, IntPtr pchValue, int cchValueBufferSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_GetLobbyDataByIndex( IntPtr instancePtr, CSteamID steamIDLobby, int iLobbyData, IntPtr pchKey, int cchKeyBufferSize, IntPtr pchValue, int cchValueBufferSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_DeleteLobbyData", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_DeleteLobbyData( IntPtr instancePtr, CSteamID steamIDLobby, InteropHelp.UTF8StringHandle pchKey ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_DeleteLobbyData", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_DeleteLobbyData( IntPtr instancePtr, CSteamID steamIDLobby, InteropHelp.UTF8StringHandle pchKey ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberData", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmaking_GetLobbyMemberData( IntPtr instancePtr, CSteamID steamIDLobby, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchKey ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberData", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamMatchmaking_GetLobbyMemberData( IntPtr instancePtr, CSteamID steamIDLobby, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchKey ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyMemberData", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_SetLobbyMemberData( IntPtr instancePtr, CSteamID steamIDLobby, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyMemberData", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmaking_SetLobbyMemberData( IntPtr instancePtr, CSteamID steamIDLobby, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SendLobbyChatMsg", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SendLobbyChatMsg( IntPtr instancePtr, CSteamID steamIDLobby, byte[] pvMsgBody, int cubMsgBody ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SendLobbyChatMsg", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_SendLobbyChatMsg( IntPtr instancePtr, CSteamID steamIDLobby, byte[] pvMsgBody, int cubMsgBody ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyChatEntry", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmaking_GetLobbyChatEntry( IntPtr instancePtr, CSteamID steamIDLobby, int iChatID, out CSteamID pSteamIDUser, byte[] pvData, int cubData, out EChatEntryType peChatEntryType ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyChatEntry", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamMatchmaking_GetLobbyChatEntry( IntPtr instancePtr, CSteamID steamIDLobby, int iChatID, out CSteamID pSteamIDUser, byte[] pvData, int cubData, out EChatEntryType peChatEntryType ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_RequestLobbyData", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_RequestLobbyData( IntPtr instancePtr, CSteamID steamIDLobby ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_RequestLobbyData", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_RequestLobbyData( IntPtr instancePtr, CSteamID steamIDLobby ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyGameServer", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_SetLobbyGameServer( IntPtr instancePtr, CSteamID steamIDLobby, uint unGameServerIP, ushort unGameServerPort, CSteamID steamIDGameServer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyGameServer", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmaking_SetLobbyGameServer( IntPtr instancePtr, CSteamID steamIDLobby, uint unGameServerIP, ushort unGameServerPort, CSteamID steamIDGameServer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyGameServer", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_GetLobbyGameServer( IntPtr instancePtr, CSteamID steamIDLobby, out uint punGameServerIP, out ushort punGameServerPort, out CSteamID psteamIDGameServer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyGameServer", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_GetLobbyGameServer( IntPtr instancePtr, CSteamID steamIDLobby, out uint punGameServerIP, out ushort punGameServerPort, out CSteamID psteamIDGameServer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SetLobbyMemberLimit( IntPtr instancePtr, CSteamID steamIDLobby, int cMaxMembers ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_SetLobbyMemberLimit( IntPtr instancePtr, CSteamID steamIDLobby, int cMaxMembers ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmaking_GetLobbyMemberLimit( IntPtr instancePtr, CSteamID steamIDLobby ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamMatchmaking_GetLobbyMemberLimit( IntPtr instancePtr, CSteamID steamIDLobby ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyType", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SetLobbyType( IntPtr instancePtr, CSteamID steamIDLobby, ELobbyType eLobbyType ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyType", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_SetLobbyType( IntPtr instancePtr, CSteamID steamIDLobby, ELobbyType eLobbyType ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyJoinable", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SetLobbyJoinable( IntPtr instancePtr, CSteamID steamIDLobby, [MarshalAs(UnmanagedType.I1)] bool bLobbyJoinable ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyJoinable", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_SetLobbyJoinable( IntPtr instancePtr, CSteamID steamIDLobby, [MarshalAs(UnmanagedType.I1)] bool bLobbyJoinable ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyOwner", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamMatchmaking_GetLobbyOwner( IntPtr instancePtr, CSteamID steamIDLobby ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyOwner", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamMatchmaking_GetLobbyOwner( IntPtr instancePtr, CSteamID steamIDLobby ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyOwner", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SetLobbyOwner( IntPtr instancePtr, CSteamID steamIDLobby, CSteamID steamIDNewOwner ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyOwner", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_SetLobbyOwner( IntPtr instancePtr, CSteamID steamIDLobby, CSteamID steamIDNewOwner ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLinkedLobby", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SetLinkedLobby( IntPtr instancePtr, CSteamID steamIDLobby, CSteamID steamIDLobbyDependent ); - #endregion - #region SteamMatchmakingServers - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestInternetServerList", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_RequestInternetServerList( IntPtr instancePtr, AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmaking_SetLinkedLobby", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmaking_SetLinkedLobby( IntPtr instancePtr, CSteamID steamIDLobby, CSteamID steamIDLobbyDependent ); + #endregion + #region SteamMatchmakingServers + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestInternetServerList", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamMatchmakingServers_RequestInternetServerList( IntPtr instancePtr, AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestLANServerList", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_RequestLANServerList( IntPtr instancePtr, AppId_t iApp, IntPtr pRequestServersResponse ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestLANServerList", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamMatchmakingServers_RequestLANServerList( IntPtr instancePtr, AppId_t iApp, IntPtr pRequestServersResponse ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_RequestFriendsServerList( IntPtr instancePtr, AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamMatchmakingServers_RequestFriendsServerList( IntPtr instancePtr, AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_RequestFavoritesServerList( IntPtr instancePtr, AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamMatchmakingServers_RequestFavoritesServerList( IntPtr instancePtr, AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_RequestHistoryServerList( IntPtr instancePtr, AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamMatchmakingServers_RequestHistoryServerList( IntPtr instancePtr, AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_RequestSpectatorServerList( IntPtr instancePtr, AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamMatchmakingServers_RequestSpectatorServerList( IntPtr instancePtr, AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_ReleaseRequest", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmakingServers_ReleaseRequest( IntPtr instancePtr, HServerListRequest hServerListRequest ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_ReleaseRequest", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmakingServers_ReleaseRequest( IntPtr instancePtr, HServerListRequest hServerListRequest ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_GetServerDetails", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_GetServerDetails( IntPtr instancePtr, HServerListRequest hRequest, int iServer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_GetServerDetails", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamMatchmakingServers_GetServerDetails( IntPtr instancePtr, HServerListRequest hRequest, int iServer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_CancelQuery", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmakingServers_CancelQuery( IntPtr instancePtr, HServerListRequest hRequest ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_CancelQuery", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmakingServers_CancelQuery( IntPtr instancePtr, HServerListRequest hRequest ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RefreshQuery", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmakingServers_RefreshQuery( IntPtr instancePtr, HServerListRequest hRequest ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RefreshQuery", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmakingServers_RefreshQuery( IntPtr instancePtr, HServerListRequest hRequest ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_IsRefreshing", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmakingServers_IsRefreshing( IntPtr instancePtr, HServerListRequest hRequest ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_IsRefreshing", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMatchmakingServers_IsRefreshing( IntPtr instancePtr, HServerListRequest hRequest ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_GetServerCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmakingServers_GetServerCount( IntPtr instancePtr, HServerListRequest hRequest ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_GetServerCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamMatchmakingServers_GetServerCount( IntPtr instancePtr, HServerListRequest hRequest ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RefreshServer", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmakingServers_RefreshServer( IntPtr instancePtr, HServerListRequest hRequest, int iServer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_RefreshServer", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmakingServers_RefreshServer( IntPtr instancePtr, HServerListRequest hRequest, int iServer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_PingServer", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmakingServers_PingServer( IntPtr instancePtr, uint unIP, ushort usPort, IntPtr pRequestServersResponse ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_PingServer", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamMatchmakingServers_PingServer( IntPtr instancePtr, uint unIP, ushort usPort, IntPtr pRequestServersResponse ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_PlayerDetails", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmakingServers_PlayerDetails( IntPtr instancePtr, uint unIP, ushort usPort, IntPtr pRequestServersResponse ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_PlayerDetails", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamMatchmakingServers_PlayerDetails( IntPtr instancePtr, uint unIP, ushort usPort, IntPtr pRequestServersResponse ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_ServerRules", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmakingServers_ServerRules( IntPtr instancePtr, uint unIP, ushort usPort, IntPtr pRequestServersResponse ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_ServerRules", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamMatchmakingServers_ServerRules( IntPtr instancePtr, uint unIP, ushort usPort, IntPtr pRequestServersResponse ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_CancelServerQuery", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmakingServers_CancelServerQuery( IntPtr instancePtr, HServerQuery hServerQuery ); - #endregion - #region SteamGameSearch - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_AddGameSearchParams", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_AddGameSearchParams( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKeyToFind, InteropHelp.UTF8StringHandle pchValuesToFind ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMatchmakingServers_CancelServerQuery", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMatchmakingServers_CancelServerQuery( IntPtr instancePtr, HServerQuery hServerQuery ); + #endregion + #region SteamGameSearch + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_AddGameSearchParams", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_AddGameSearchParams( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKeyToFind, InteropHelp.UTF8StringHandle pchValuesToFind ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_SearchForGameWithLobby", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_SearchForGameWithLobby( IntPtr instancePtr, CSteamID steamIDLobby, int nPlayerMin, int nPlayerMax ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_SearchForGameWithLobby", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_SearchForGameWithLobby( IntPtr instancePtr, CSteamID steamIDLobby, int nPlayerMin, int nPlayerMax ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_SearchForGameSolo", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_SearchForGameSolo( IntPtr instancePtr, int nPlayerMin, int nPlayerMax ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_SearchForGameSolo", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_SearchForGameSolo( IntPtr instancePtr, int nPlayerMin, int nPlayerMax ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_AcceptGame", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_AcceptGame( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_AcceptGame", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_AcceptGame( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_DeclineGame", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_DeclineGame( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_DeclineGame", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_DeclineGame( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_RetrieveConnectionDetails", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_RetrieveConnectionDetails( IntPtr instancePtr, CSteamID steamIDHost, IntPtr pchConnectionDetails, int cubConnectionDetails ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_RetrieveConnectionDetails", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_RetrieveConnectionDetails( IntPtr instancePtr, CSteamID steamIDHost, IntPtr pchConnectionDetails, int cubConnectionDetails ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_EndGameSearch", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_EndGameSearch( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_EndGameSearch", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_EndGameSearch( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_SetGameHostParams", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_SetGameHostParams( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_SetGameHostParams", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_SetGameHostParams( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_SetConnectionDetails", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_SetConnectionDetails( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchConnectionDetails, int cubConnectionDetails ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_SetConnectionDetails", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_SetConnectionDetails( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchConnectionDetails, int cubConnectionDetails ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_RequestPlayersForGame", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_RequestPlayersForGame( IntPtr instancePtr, int nPlayerMin, int nPlayerMax, int nMaxTeamSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_RequestPlayersForGame", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_RequestPlayersForGame( IntPtr instancePtr, int nPlayerMin, int nPlayerMax, int nMaxTeamSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_HostConfirmGameStart", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_HostConfirmGameStart( IntPtr instancePtr, ulong ullUniqueGameID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_HostConfirmGameStart", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_HostConfirmGameStart( IntPtr instancePtr, ulong ullUniqueGameID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_CancelRequestPlayersForGame", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_CancelRequestPlayersForGame( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_CancelRequestPlayersForGame", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_CancelRequestPlayersForGame( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_SubmitPlayerResult", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_SubmitPlayerResult( IntPtr instancePtr, ulong ullUniqueGameID, CSteamID steamIDPlayer, EPlayerResult_t EPlayerResult ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_SubmitPlayerResult", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_SubmitPlayerResult( IntPtr instancePtr, ulong ullUniqueGameID, CSteamID steamIDPlayer, EPlayerResult_t EPlayerResult ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_EndGame", CallingConvention = CallingConvention.Cdecl)] - public static extern EGameSearchErrorCode_t ISteamGameSearch_EndGame( IntPtr instancePtr, ulong ullUniqueGameID ); - #endregion - #region SteamParties - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_GetNumActiveBeacons", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamParties_GetNumActiveBeacons( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamGameSearch_EndGame", CallingConvention = CallingConvention.Cdecl)] + public static extern EGameSearchErrorCode_t ISteamGameSearch_EndGame( IntPtr instancePtr, ulong ullUniqueGameID ); + #endregion + #region SteamParties + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_GetNumActiveBeacons", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamParties_GetNumActiveBeacons( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_GetBeaconByIndex", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamParties_GetBeaconByIndex( IntPtr instancePtr, uint unIndex ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_GetBeaconByIndex", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamParties_GetBeaconByIndex( IntPtr instancePtr, uint unIndex ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_GetBeaconDetails", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamParties_GetBeaconDetails( IntPtr instancePtr, PartyBeaconID_t ulBeaconID, out CSteamID pSteamIDBeaconOwner, out SteamPartyBeaconLocation_t pLocation, IntPtr pchMetadata, int cchMetadata ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_GetBeaconDetails", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamParties_GetBeaconDetails( IntPtr instancePtr, PartyBeaconID_t ulBeaconID, out CSteamID pSteamIDBeaconOwner, out SteamPartyBeaconLocation_t pLocation, IntPtr pchMetadata, int cchMetadata ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_JoinParty", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamParties_JoinParty( IntPtr instancePtr, PartyBeaconID_t ulBeaconID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_JoinParty", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamParties_JoinParty( IntPtr instancePtr, PartyBeaconID_t ulBeaconID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_GetNumAvailableBeaconLocations", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamParties_GetNumAvailableBeaconLocations( IntPtr instancePtr, out uint puNumLocations ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_GetNumAvailableBeaconLocations", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamParties_GetNumAvailableBeaconLocations( IntPtr instancePtr, out uint puNumLocations ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_GetAvailableBeaconLocations", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamParties_GetAvailableBeaconLocations( IntPtr instancePtr, [In, Out] SteamPartyBeaconLocation_t[] pLocationList, uint uMaxNumLocations ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_GetAvailableBeaconLocations", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamParties_GetAvailableBeaconLocations( IntPtr instancePtr, [In, Out] SteamPartyBeaconLocation_t[] pLocationList, uint uMaxNumLocations ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_CreateBeacon", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamParties_CreateBeacon( IntPtr instancePtr, uint unOpenSlots, ref SteamPartyBeaconLocation_t pBeaconLocation, InteropHelp.UTF8StringHandle pchConnectString, InteropHelp.UTF8StringHandle pchMetadata ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_CreateBeacon", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamParties_CreateBeacon( IntPtr instancePtr, uint unOpenSlots, ref SteamPartyBeaconLocation_t pBeaconLocation, InteropHelp.UTF8StringHandle pchConnectString, InteropHelp.UTF8StringHandle pchMetadata ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_OnReservationCompleted", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamParties_OnReservationCompleted( IntPtr instancePtr, PartyBeaconID_t ulBeacon, CSteamID steamIDUser ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_OnReservationCompleted", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamParties_OnReservationCompleted( IntPtr instancePtr, PartyBeaconID_t ulBeacon, CSteamID steamIDUser ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_CancelReservation", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamParties_CancelReservation( IntPtr instancePtr, PartyBeaconID_t ulBeacon, CSteamID steamIDUser ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_CancelReservation", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamParties_CancelReservation( IntPtr instancePtr, PartyBeaconID_t ulBeacon, CSteamID steamIDUser ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_ChangeNumOpenSlots", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamParties_ChangeNumOpenSlots( IntPtr instancePtr, PartyBeaconID_t ulBeacon, uint unOpenSlots ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_ChangeNumOpenSlots", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamParties_ChangeNumOpenSlots( IntPtr instancePtr, PartyBeaconID_t ulBeacon, uint unOpenSlots ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_DestroyBeacon", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamParties_DestroyBeacon( IntPtr instancePtr, PartyBeaconID_t ulBeacon ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_DestroyBeacon", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamParties_DestroyBeacon( IntPtr instancePtr, PartyBeaconID_t ulBeacon ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_GetBeaconLocationData", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamParties_GetBeaconLocationData( IntPtr instancePtr, SteamPartyBeaconLocation_t BeaconLocation, ESteamPartyBeaconLocationData eData, IntPtr pchDataStringOut, int cchDataStringOut ); - #endregion - #region SteamMusic - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_BIsEnabled", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusic_BIsEnabled( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParties_GetBeaconLocationData", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamParties_GetBeaconLocationData( IntPtr instancePtr, SteamPartyBeaconLocation_t BeaconLocation, ESteamPartyBeaconLocationData eData, IntPtr pchDataStringOut, int cchDataStringOut ); + #endregion + #region SteamMusic + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_BIsEnabled", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusic_BIsEnabled( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_BIsPlaying", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusic_BIsPlaying( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_BIsPlaying", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusic_BIsPlaying( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_GetPlaybackStatus", CallingConvention = CallingConvention.Cdecl)] - public static extern AudioPlayback_Status ISteamMusic_GetPlaybackStatus( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_GetPlaybackStatus", CallingConvention = CallingConvention.Cdecl)] + public static extern AudioPlayback_Status ISteamMusic_GetPlaybackStatus( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_Play", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMusic_Play( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_Play", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMusic_Play( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_Pause", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMusic_Pause( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_Pause", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMusic_Pause( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_PlayPrevious", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMusic_PlayPrevious( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_PlayPrevious", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMusic_PlayPrevious( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_PlayNext", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMusic_PlayNext( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_PlayNext", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMusic_PlayNext( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_SetVolume", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMusic_SetVolume( IntPtr instancePtr, float flVolume ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_SetVolume", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamMusic_SetVolume( IntPtr instancePtr, float flVolume ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_GetVolume", CallingConvention = CallingConvention.Cdecl)] - public static extern float ISteamMusic_GetVolume( IntPtr instancePtr ); - #endregion - #region SteamMusicRemote - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_RegisterSteamMusicRemote( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusic_GetVolume", CallingConvention = CallingConvention.Cdecl)] + public static extern float ISteamMusic_GetVolume( IntPtr instancePtr ); + #endregion + #region SteamMusicRemote + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_RegisterSteamMusicRemote( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_DeregisterSteamMusicRemote( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_DeregisterSteamMusicRemote( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_BIsCurrentMusicRemote( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_BIsCurrentMusicRemote( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_BActivationSuccess", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_BActivationSuccess( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_BActivationSuccess", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_BActivationSuccess( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_SetDisplayName", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_SetDisplayName( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchDisplayName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_SetDisplayName", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_SetDisplayName( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchDisplayName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_SetPNGIcon_64x64( IntPtr instancePtr, byte[] pvBuffer, uint cbBufferLength ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_SetPNGIcon_64x64( IntPtr instancePtr, byte[] pvBuffer, uint cbBufferLength ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_EnablePlayPrevious", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_EnablePlayPrevious( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_EnablePlayPrevious", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_EnablePlayPrevious( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_EnablePlayNext", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_EnablePlayNext( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_EnableShuffled", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_EnableShuffled( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_EnableLooped", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_EnableLooped( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_EnableQueue", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_EnableQueue( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_EnablePlaylists", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_EnablePlaylists( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdatePlaybackStatus( IntPtr instancePtr, AudioPlayback_Status nStatus ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateShuffled", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdateShuffled( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateLooped", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdateLooped( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateVolume", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdateVolume( IntPtr instancePtr, float flValue ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_CurrentEntryWillChange", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_CurrentEntryWillChange( IntPtr instancePtr ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_CurrentEntryIsAvailable( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bAvailable ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_EnablePlayNext", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_EnablePlayNext( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_EnableShuffled", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_EnableShuffled( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_EnableLooped", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_EnableLooped( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_EnableQueue", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_EnableQueue( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_EnablePlaylists", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_EnablePlaylists( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_UpdatePlaybackStatus( IntPtr instancePtr, AudioPlayback_Status nStatus ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateShuffled", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_UpdateShuffled( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateLooped", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_UpdateLooped( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bValue ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateVolume", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_UpdateVolume( IntPtr instancePtr, float flValue ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_CurrentEntryWillChange", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_CurrentEntryWillChange( IntPtr instancePtr ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_CurrentEntryIsAvailable( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bAvailable ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdateCurrentEntryText( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchText ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_UpdateCurrentEntryText( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchText ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( IntPtr instancePtr, int nValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( IntPtr instancePtr, int nValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdateCurrentEntryCoverArt( IntPtr instancePtr, byte[] pvBuffer, uint cbBufferLength ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_UpdateCurrentEntryCoverArt( IntPtr instancePtr, byte[] pvBuffer, uint cbBufferLength ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_CurrentEntryDidChange", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_CurrentEntryDidChange( IntPtr instancePtr ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_QueueWillChange", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_QueueWillChange( IntPtr instancePtr ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_ResetQueueEntries", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_ResetQueueEntries( IntPtr instancePtr ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_SetQueueEntry", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_SetQueueEntry( IntPtr instancePtr, int nID, int nPosition, InteropHelp.UTF8StringHandle pchEntryText ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_SetCurrentQueueEntry( IntPtr instancePtr, int nID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_CurrentEntryDidChange", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_CurrentEntryDidChange( IntPtr instancePtr ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_QueueWillChange", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_QueueWillChange( IntPtr instancePtr ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_ResetQueueEntries", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_ResetQueueEntries( IntPtr instancePtr ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_SetQueueEntry", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_SetQueueEntry( IntPtr instancePtr, int nID, int nPosition, InteropHelp.UTF8StringHandle pchEntryText ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_SetCurrentQueueEntry( IntPtr instancePtr, int nID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_QueueDidChange", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_QueueDidChange( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_QueueDidChange", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_QueueDidChange( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_PlaylistWillChange", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_PlaylistWillChange( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_PlaylistWillChange", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_PlaylistWillChange( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_ResetPlaylistEntries", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_ResetPlaylistEntries( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_ResetPlaylistEntries", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_ResetPlaylistEntries( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_SetPlaylistEntry", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_SetPlaylistEntry( IntPtr instancePtr, int nID, int nPosition, InteropHelp.UTF8StringHandle pchEntryText ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_SetPlaylistEntry", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_SetPlaylistEntry( IntPtr instancePtr, int nID, int nPosition, InteropHelp.UTF8StringHandle pchEntryText ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_SetCurrentPlaylistEntry( IntPtr instancePtr, int nID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_SetCurrentPlaylistEntry( IntPtr instancePtr, int nID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_PlaylistDidChange", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_PlaylistDidChange( IntPtr instancePtr ); - #endregion - #region SteamNetworking - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_SendP2PPacket", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_SendP2PPacket( IntPtr instancePtr, CSteamID steamIDRemote, byte[] pubData, uint cubData, EP2PSend eP2PSendType, int nChannel ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_IsP2PPacketAvailable", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_IsP2PPacketAvailable( IntPtr instancePtr, out uint pcubMsgSize, int nChannel ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_ReadP2PPacket", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_ReadP2PPacket( IntPtr instancePtr, byte[] pubDest, uint cubDest, out uint pcubMsgSize, out CSteamID psteamIDRemote, int nChannel ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_AcceptP2PSessionWithUser( IntPtr instancePtr, CSteamID steamIDRemote ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_CloseP2PSessionWithUser", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_CloseP2PSessionWithUser( IntPtr instancePtr, CSteamID steamIDRemote ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_CloseP2PChannelWithUser", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_CloseP2PChannelWithUser( IntPtr instancePtr, CSteamID steamIDRemote, int nChannel ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_GetP2PSessionState", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_GetP2PSessionState( IntPtr instancePtr, CSteamID steamIDRemote, out P2PSessionState_t pConnectionState ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_AllowP2PPacketRelay", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_AllowP2PPacketRelay( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bAllow ); - - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_CreateListenSocket", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworking_CreateListenSocket( IntPtr instancePtr, int nVirtualP2PPort, SteamIPAddress_t nIP, ushort nPort, [MarshalAs(UnmanagedType.I1)] bool bAllowUseOfPacketRelay ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamMusicRemote_PlaylistDidChange", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamMusicRemote_PlaylistDidChange( IntPtr instancePtr ); + #endregion + #region SteamNetworking + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_SendP2PPacket", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_SendP2PPacket( IntPtr instancePtr, CSteamID steamIDRemote, byte[] pubData, uint cubData, EP2PSend eP2PSendType, int nChannel ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_IsP2PPacketAvailable", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_IsP2PPacketAvailable( IntPtr instancePtr, out uint pcubMsgSize, int nChannel ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_ReadP2PPacket", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_ReadP2PPacket( IntPtr instancePtr, byte[] pubDest, uint cubDest, out uint pcubMsgSize, out CSteamID psteamIDRemote, int nChannel ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_AcceptP2PSessionWithUser( IntPtr instancePtr, CSteamID steamIDRemote ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_CloseP2PSessionWithUser", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_CloseP2PSessionWithUser( IntPtr instancePtr, CSteamID steamIDRemote ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_CloseP2PChannelWithUser", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_CloseP2PChannelWithUser( IntPtr instancePtr, CSteamID steamIDRemote, int nChannel ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_GetP2PSessionState", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_GetP2PSessionState( IntPtr instancePtr, CSteamID steamIDRemote, out P2PSessionState_t pConnectionState ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_AllowP2PPacketRelay", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_AllowP2PPacketRelay( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bAllow ); + + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_CreateListenSocket", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamNetworking_CreateListenSocket( IntPtr instancePtr, int nVirtualP2PPort, SteamIPAddress_t nIP, ushort nPort, [MarshalAs(UnmanagedType.I1)] bool bAllowUseOfPacketRelay ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_CreateP2PConnectionSocket", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworking_CreateP2PConnectionSocket( IntPtr instancePtr, CSteamID steamIDTarget, int nVirtualPort, int nTimeoutSec, [MarshalAs(UnmanagedType.I1)] bool bAllowUseOfPacketRelay ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_CreateP2PConnectionSocket", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamNetworking_CreateP2PConnectionSocket( IntPtr instancePtr, CSteamID steamIDTarget, int nVirtualPort, int nTimeoutSec, [MarshalAs(UnmanagedType.I1)] bool bAllowUseOfPacketRelay ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_CreateConnectionSocket", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworking_CreateConnectionSocket( IntPtr instancePtr, SteamIPAddress_t nIP, ushort nPort, int nTimeoutSec ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_CreateConnectionSocket", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamNetworking_CreateConnectionSocket( IntPtr instancePtr, SteamIPAddress_t nIP, ushort nPort, int nTimeoutSec ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_DestroySocket", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_DestroySocket( IntPtr instancePtr, SNetSocket_t hSocket, [MarshalAs(UnmanagedType.I1)] bool bNotifyRemoteEnd ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_DestroySocket", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_DestroySocket( IntPtr instancePtr, SNetSocket_t hSocket, [MarshalAs(UnmanagedType.I1)] bool bNotifyRemoteEnd ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_DestroyListenSocket", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_DestroyListenSocket( IntPtr instancePtr, SNetListenSocket_t hSocket, [MarshalAs(UnmanagedType.I1)] bool bNotifyRemoteEnd ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_DestroyListenSocket", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_DestroyListenSocket( IntPtr instancePtr, SNetListenSocket_t hSocket, [MarshalAs(UnmanagedType.I1)] bool bNotifyRemoteEnd ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_SendDataOnSocket", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_SendDataOnSocket( IntPtr instancePtr, SNetSocket_t hSocket, byte[] pubData, uint cubData, [MarshalAs(UnmanagedType.I1)] bool bReliable ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_SendDataOnSocket", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_SendDataOnSocket( IntPtr instancePtr, SNetSocket_t hSocket, byte[] pubData, uint cubData, [MarshalAs(UnmanagedType.I1)] bool bReliable ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_IsDataAvailableOnSocket", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_IsDataAvailableOnSocket( IntPtr instancePtr, SNetSocket_t hSocket, out uint pcubMsgSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_IsDataAvailableOnSocket", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_IsDataAvailableOnSocket( IntPtr instancePtr, SNetSocket_t hSocket, out uint pcubMsgSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_RetrieveDataFromSocket", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_RetrieveDataFromSocket( IntPtr instancePtr, SNetSocket_t hSocket, byte[] pubDest, uint cubDest, out uint pcubMsgSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_RetrieveDataFromSocket", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_RetrieveDataFromSocket( IntPtr instancePtr, SNetSocket_t hSocket, byte[] pubDest, uint cubDest, out uint pcubMsgSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_IsDataAvailable", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_IsDataAvailable( IntPtr instancePtr, SNetListenSocket_t hListenSocket, out uint pcubMsgSize, out SNetSocket_t phSocket ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_IsDataAvailable", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_IsDataAvailable( IntPtr instancePtr, SNetListenSocket_t hListenSocket, out uint pcubMsgSize, out SNetSocket_t phSocket ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_RetrieveData", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_RetrieveData( IntPtr instancePtr, SNetListenSocket_t hListenSocket, byte[] pubDest, uint cubDest, out uint pcubMsgSize, out SNetSocket_t phSocket ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_RetrieveData", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_RetrieveData( IntPtr instancePtr, SNetListenSocket_t hListenSocket, byte[] pubDest, uint cubDest, out uint pcubMsgSize, out SNetSocket_t phSocket ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_GetSocketInfo", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_GetSocketInfo( IntPtr instancePtr, SNetSocket_t hSocket, out CSteamID pSteamIDRemote, out int peSocketStatus, out SteamIPAddress_t punIPRemote, out ushort punPortRemote ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_GetSocketInfo", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_GetSocketInfo( IntPtr instancePtr, SNetSocket_t hSocket, out CSteamID pSteamIDRemote, out int peSocketStatus, out SteamIPAddress_t punIPRemote, out ushort punPortRemote ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_GetListenSocketInfo", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_GetListenSocketInfo( IntPtr instancePtr, SNetListenSocket_t hListenSocket, out SteamIPAddress_t pnIP, out ushort pnPort ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_GetListenSocketInfo", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworking_GetListenSocketInfo( IntPtr instancePtr, SNetListenSocket_t hListenSocket, out SteamIPAddress_t pnIP, out ushort pnPort ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_GetSocketConnectionType", CallingConvention = CallingConvention.Cdecl)] - public static extern ESNetSocketConnectionType ISteamNetworking_GetSocketConnectionType( IntPtr instancePtr, SNetSocket_t hSocket ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_GetSocketConnectionType", CallingConvention = CallingConvention.Cdecl)] + public static extern ESNetSocketConnectionType ISteamNetworking_GetSocketConnectionType( IntPtr instancePtr, SNetSocket_t hSocket ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_GetMaxPacketSize", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamNetworking_GetMaxPacketSize( IntPtr instancePtr, SNetSocket_t hSocket ); - #endregion - #region SteamNetworkingMessages - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_SendMessageToUser", CallingConvention = CallingConvention.Cdecl)] - public static extern EResult ISteamNetworkingMessages_SendMessageToUser( IntPtr instancePtr, ref SteamNetworkingIdentity identityRemote, IntPtr pubData, uint cubData, int nSendFlags, int nRemoteChannel ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworking_GetMaxPacketSize", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamNetworking_GetMaxPacketSize( IntPtr instancePtr, SNetSocket_t hSocket ); + #endregion + #region SteamNetworkingMessages + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_SendMessageToUser", CallingConvention = CallingConvention.Cdecl)] + public static extern EResult ISteamNetworkingMessages_SendMessageToUser( IntPtr instancePtr, ref SteamNetworkingIdentity identityRemote, IntPtr pubData, uint cubData, int nSendFlags, int nRemoteChannel ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_ReceiveMessagesOnChannel", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamNetworkingMessages_ReceiveMessagesOnChannel( IntPtr instancePtr, int nLocalChannel, [In, Out] IntPtr[] ppOutMessages, int nMaxMessages ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_ReceiveMessagesOnChannel", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamNetworkingMessages_ReceiveMessagesOnChannel( IntPtr instancePtr, int nLocalChannel, [In, Out] IntPtr[] ppOutMessages, int nMaxMessages ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_AcceptSessionWithUser", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingMessages_AcceptSessionWithUser( IntPtr instancePtr, ref SteamNetworkingIdentity identityRemote ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_AcceptSessionWithUser", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingMessages_AcceptSessionWithUser( IntPtr instancePtr, ref SteamNetworkingIdentity identityRemote ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_CloseSessionWithUser", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingMessages_CloseSessionWithUser( IntPtr instancePtr, ref SteamNetworkingIdentity identityRemote ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_CloseSessionWithUser", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingMessages_CloseSessionWithUser( IntPtr instancePtr, ref SteamNetworkingIdentity identityRemote ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_CloseChannelWithUser", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingMessages_CloseChannelWithUser( IntPtr instancePtr, ref SteamNetworkingIdentity identityRemote, int nLocalChannel ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_CloseChannelWithUser", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingMessages_CloseChannelWithUser( IntPtr instancePtr, ref SteamNetworkingIdentity identityRemote, int nLocalChannel ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_GetSessionConnectionInfo", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamNetworkingConnectionState ISteamNetworkingMessages_GetSessionConnectionInfo( IntPtr instancePtr, ref SteamNetworkingIdentity identityRemote, out SteamNetConnectionInfo_t pConnectionInfo, out SteamNetConnectionRealTimeStatus_t pQuickStatus ); - #endregion - #region SteamNetworkingSockets - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateListenSocketIP", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworkingSockets_CreateListenSocketIP( IntPtr instancePtr, ref SteamNetworkingIPAddr localAddress, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_GetSessionConnectionInfo", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamNetworkingConnectionState ISteamNetworkingMessages_GetSessionConnectionInfo( IntPtr instancePtr, ref SteamNetworkingIdentity identityRemote, out SteamNetConnectionInfo_t pConnectionInfo, out SteamNetConnectionRealTimeStatus_t pQuickStatus ); + #endregion + #region SteamNetworkingSockets + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateListenSocketIP", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamNetworkingSockets_CreateListenSocketIP( IntPtr instancePtr, ref SteamNetworkingIPAddr localAddress, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConnectByIPAddress", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworkingSockets_ConnectByIPAddress( IntPtr instancePtr, ref SteamNetworkingIPAddr address, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConnectByIPAddress", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamNetworkingSockets_ConnectByIPAddress( IntPtr instancePtr, ref SteamNetworkingIPAddr address, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateListenSocketP2P", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworkingSockets_CreateListenSocketP2P( IntPtr instancePtr, int nLocalVirtualPort, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateListenSocketP2P", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamNetworkingSockets_CreateListenSocketP2P( IntPtr instancePtr, int nLocalVirtualPort, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConnectP2P", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworkingSockets_ConnectP2P( IntPtr instancePtr, ref SteamNetworkingIdentity identityRemote, int nRemoteVirtualPort, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConnectP2P", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamNetworkingSockets_ConnectP2P( IntPtr instancePtr, ref SteamNetworkingIdentity identityRemote, int nRemoteVirtualPort, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_AcceptConnection", CallingConvention = CallingConvention.Cdecl)] - public static extern EResult ISteamNetworkingSockets_AcceptConnection( IntPtr instancePtr, HSteamNetConnection hConn ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_AcceptConnection", CallingConvention = CallingConvention.Cdecl)] + public static extern EResult ISteamNetworkingSockets_AcceptConnection( IntPtr instancePtr, HSteamNetConnection hConn ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CloseConnection", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_CloseConnection( IntPtr instancePtr, HSteamNetConnection hPeer, int nReason, InteropHelp.UTF8StringHandle pszDebug, [MarshalAs(UnmanagedType.I1)] bool bEnableLinger ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CloseConnection", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_CloseConnection( IntPtr instancePtr, HSteamNetConnection hPeer, int nReason, InteropHelp.UTF8StringHandle pszDebug, [MarshalAs(UnmanagedType.I1)] bool bEnableLinger ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CloseListenSocket", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_CloseListenSocket( IntPtr instancePtr, HSteamListenSocket hSocket ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CloseListenSocket", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_CloseListenSocket( IntPtr instancePtr, HSteamListenSocket hSocket ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SetConnectionUserData", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_SetConnectionUserData( IntPtr instancePtr, HSteamNetConnection hPeer, long nUserData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SetConnectionUserData", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_SetConnectionUserData( IntPtr instancePtr, HSteamNetConnection hPeer, long nUserData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetConnectionUserData", CallingConvention = CallingConvention.Cdecl)] - public static extern long ISteamNetworkingSockets_GetConnectionUserData( IntPtr instancePtr, HSteamNetConnection hPeer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetConnectionUserData", CallingConvention = CallingConvention.Cdecl)] + public static extern long ISteamNetworkingSockets_GetConnectionUserData( IntPtr instancePtr, HSteamNetConnection hPeer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SetConnectionName", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamNetworkingSockets_SetConnectionName( IntPtr instancePtr, HSteamNetConnection hPeer, InteropHelp.UTF8StringHandle pszName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SetConnectionName", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamNetworkingSockets_SetConnectionName( IntPtr instancePtr, HSteamNetConnection hPeer, InteropHelp.UTF8StringHandle pszName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetConnectionName", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_GetConnectionName( IntPtr instancePtr, HSteamNetConnection hPeer, IntPtr pszName, int nMaxLen ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetConnectionName", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_GetConnectionName( IntPtr instancePtr, HSteamNetConnection hPeer, IntPtr pszName, int nMaxLen ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SendMessageToConnection", CallingConvention = CallingConvention.Cdecl)] - public static extern EResult ISteamNetworkingSockets_SendMessageToConnection( IntPtr instancePtr, HSteamNetConnection hConn, IntPtr pData, uint cbData, int nSendFlags, out long pOutMessageNumber ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SendMessageToConnection", CallingConvention = CallingConvention.Cdecl)] + public static extern EResult ISteamNetworkingSockets_SendMessageToConnection( IntPtr instancePtr, HSteamNetConnection hConn, IntPtr pData, uint cbData, int nSendFlags, out long pOutMessageNumber ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SendMessages", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamNetworkingSockets_SendMessages( IntPtr instancePtr, int nMessages, [In, Out] SteamNetworkingMessage_t[] pMessages, [In, Out] long[] pOutMessageNumberOrResult ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SendMessages", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamNetworkingSockets_SendMessages( IntPtr instancePtr, int nMessages, [In, Out] SteamNetworkingMessage_t[] pMessages, [In, Out] long[] pOutMessageNumberOrResult ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_FlushMessagesOnConnection", CallingConvention = CallingConvention.Cdecl)] - public static extern EResult ISteamNetworkingSockets_FlushMessagesOnConnection( IntPtr instancePtr, HSteamNetConnection hConn ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_FlushMessagesOnConnection", CallingConvention = CallingConvention.Cdecl)] + public static extern EResult ISteamNetworkingSockets_FlushMessagesOnConnection( IntPtr instancePtr, HSteamNetConnection hConn ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ReceiveMessagesOnConnection", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamNetworkingSockets_ReceiveMessagesOnConnection( IntPtr instancePtr, HSteamNetConnection hConn, [In, Out] IntPtr[] ppOutMessages, int nMaxMessages ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ReceiveMessagesOnConnection", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamNetworkingSockets_ReceiveMessagesOnConnection( IntPtr instancePtr, HSteamNetConnection hConn, [In, Out] IntPtr[] ppOutMessages, int nMaxMessages ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetConnectionInfo", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_GetConnectionInfo( IntPtr instancePtr, HSteamNetConnection hConn, out SteamNetConnectionInfo_t pInfo ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetConnectionInfo", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_GetConnectionInfo( IntPtr instancePtr, HSteamNetConnection hConn, out SteamNetConnectionInfo_t pInfo ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetConnectionRealTimeStatus", CallingConvention = CallingConvention.Cdecl)] - public static extern EResult ISteamNetworkingSockets_GetConnectionRealTimeStatus( IntPtr instancePtr, HSteamNetConnection hConn, ref SteamNetConnectionRealTimeStatus_t pStatus, int nLanes, ref SteamNetConnectionRealTimeLaneStatus_t pLanes ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetConnectionRealTimeStatus", CallingConvention = CallingConvention.Cdecl)] + public static extern EResult ISteamNetworkingSockets_GetConnectionRealTimeStatus( IntPtr instancePtr, HSteamNetConnection hConn, ref SteamNetConnectionRealTimeStatus_t pStatus, int nLanes, ref SteamNetConnectionRealTimeLaneStatus_t pLanes ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetDetailedConnectionStatus", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamNetworkingSockets_GetDetailedConnectionStatus( IntPtr instancePtr, HSteamNetConnection hConn, IntPtr pszBuf, int cbBuf ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetDetailedConnectionStatus", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamNetworkingSockets_GetDetailedConnectionStatus( IntPtr instancePtr, HSteamNetConnection hConn, IntPtr pszBuf, int cbBuf ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetListenSocketAddress", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_GetListenSocketAddress( IntPtr instancePtr, HSteamListenSocket hSocket, out SteamNetworkingIPAddr address ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetListenSocketAddress", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_GetListenSocketAddress( IntPtr instancePtr, HSteamListenSocket hSocket, out SteamNetworkingIPAddr address ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateSocketPair", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_CreateSocketPair( IntPtr instancePtr, out HSteamNetConnection pOutConnection1, out HSteamNetConnection pOutConnection2, [MarshalAs(UnmanagedType.I1)] bool bUseNetworkLoopback, ref SteamNetworkingIdentity pIdentity1, ref SteamNetworkingIdentity pIdentity2 ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateSocketPair", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_CreateSocketPair( IntPtr instancePtr, out HSteamNetConnection pOutConnection1, out HSteamNetConnection pOutConnection2, [MarshalAs(UnmanagedType.I1)] bool bUseNetworkLoopback, ref SteamNetworkingIdentity pIdentity1, ref SteamNetworkingIdentity pIdentity2 ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConfigureConnectionLanes", CallingConvention = CallingConvention.Cdecl)] - public static extern EResult ISteamNetworkingSockets_ConfigureConnectionLanes( IntPtr instancePtr, HSteamNetConnection hConn, int nNumLanes, out int pLanePriorities, out ushort pLaneWeights ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConfigureConnectionLanes", CallingConvention = CallingConvention.Cdecl)] + public static extern EResult ISteamNetworkingSockets_ConfigureConnectionLanes( IntPtr instancePtr, HSteamNetConnection hConn, int nNumLanes, out int pLanePriorities, out ushort pLaneWeights ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetIdentity", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_GetIdentity( IntPtr instancePtr, out SteamNetworkingIdentity pIdentity ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetIdentity", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_GetIdentity( IntPtr instancePtr, out SteamNetworkingIdentity pIdentity ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_InitAuthentication", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamNetworkingAvailability ISteamNetworkingSockets_InitAuthentication( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_InitAuthentication", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamNetworkingAvailability ISteamNetworkingSockets_InitAuthentication( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetAuthenticationStatus", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamNetworkingAvailability ISteamNetworkingSockets_GetAuthenticationStatus( IntPtr instancePtr, out SteamNetAuthenticationStatus_t pDetails ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetAuthenticationStatus", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamNetworkingAvailability ISteamNetworkingSockets_GetAuthenticationStatus( IntPtr instancePtr, out SteamNetAuthenticationStatus_t pDetails ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreatePollGroup", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworkingSockets_CreatePollGroup( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreatePollGroup", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamNetworkingSockets_CreatePollGroup( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_DestroyPollGroup", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_DestroyPollGroup( IntPtr instancePtr, HSteamNetPollGroup hPollGroup ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_DestroyPollGroup", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_DestroyPollGroup( IntPtr instancePtr, HSteamNetPollGroup hPollGroup ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SetConnectionPollGroup", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_SetConnectionPollGroup( IntPtr instancePtr, HSteamNetConnection hConn, HSteamNetPollGroup hPollGroup ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SetConnectionPollGroup", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_SetConnectionPollGroup( IntPtr instancePtr, HSteamNetConnection hConn, HSteamNetPollGroup hPollGroup ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ReceiveMessagesOnPollGroup", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamNetworkingSockets_ReceiveMessagesOnPollGroup( IntPtr instancePtr, HSteamNetPollGroup hPollGroup, [In, Out] IntPtr[] ppOutMessages, int nMaxMessages ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ReceiveMessagesOnPollGroup", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamNetworkingSockets_ReceiveMessagesOnPollGroup( IntPtr instancePtr, HSteamNetPollGroup hPollGroup, [In, Out] IntPtr[] ppOutMessages, int nMaxMessages ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ReceivedRelayAuthTicket", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_ReceivedRelayAuthTicket( IntPtr instancePtr, IntPtr pvTicket, int cbTicket, out SteamDatagramRelayAuthTicket pOutParsedTicket ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ReceivedRelayAuthTicket", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_ReceivedRelayAuthTicket( IntPtr instancePtr, IntPtr pvTicket, int cbTicket, out SteamDatagramRelayAuthTicket pOutParsedTicket ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_FindRelayAuthTicketForServer", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamNetworkingSockets_FindRelayAuthTicketForServer( IntPtr instancePtr, ref SteamNetworkingIdentity identityGameServer, int nRemoteVirtualPort, out SteamDatagramRelayAuthTicket pOutParsedTicket ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_FindRelayAuthTicketForServer", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamNetworkingSockets_FindRelayAuthTicketForServer( IntPtr instancePtr, ref SteamNetworkingIdentity identityGameServer, int nRemoteVirtualPort, out SteamDatagramRelayAuthTicket pOutParsedTicket ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConnectToHostedDedicatedServer", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworkingSockets_ConnectToHostedDedicatedServer( IntPtr instancePtr, ref SteamNetworkingIdentity identityTarget, int nRemoteVirtualPort, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConnectToHostedDedicatedServer", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamNetworkingSockets_ConnectToHostedDedicatedServer( IntPtr instancePtr, ref SteamNetworkingIdentity identityTarget, int nRemoteVirtualPort, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetHostedDedicatedServerPort", CallingConvention = CallingConvention.Cdecl)] - public static extern ushort ISteamNetworkingSockets_GetHostedDedicatedServerPort( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetHostedDedicatedServerPort", CallingConvention = CallingConvention.Cdecl)] + public static extern ushort ISteamNetworkingSockets_GetHostedDedicatedServerPort( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetHostedDedicatedServerPOPID", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworkingSockets_GetHostedDedicatedServerPOPID( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetHostedDedicatedServerPOPID", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamNetworkingSockets_GetHostedDedicatedServerPOPID( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetHostedDedicatedServerAddress", CallingConvention = CallingConvention.Cdecl)] - public static extern EResult ISteamNetworkingSockets_GetHostedDedicatedServerAddress( IntPtr instancePtr, out SteamDatagramHostedAddress pRouting ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetHostedDedicatedServerAddress", CallingConvention = CallingConvention.Cdecl)] + public static extern EResult ISteamNetworkingSockets_GetHostedDedicatedServerAddress( IntPtr instancePtr, out SteamDatagramHostedAddress pRouting ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateHostedDedicatedServerListenSocket", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworkingSockets_CreateHostedDedicatedServerListenSocket( IntPtr instancePtr, int nLocalVirtualPort, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateHostedDedicatedServerListenSocket", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamNetworkingSockets_CreateHostedDedicatedServerListenSocket( IntPtr instancePtr, int nLocalVirtualPort, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetGameCoordinatorServerLogin", CallingConvention = CallingConvention.Cdecl)] - public static extern EResult ISteamNetworkingSockets_GetGameCoordinatorServerLogin( IntPtr instancePtr, IntPtr pLoginInfo, out int pcbSignedBlob, IntPtr pBlob ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetGameCoordinatorServerLogin", CallingConvention = CallingConvention.Cdecl)] + public static extern EResult ISteamNetworkingSockets_GetGameCoordinatorServerLogin( IntPtr instancePtr, IntPtr pLoginInfo, out int pcbSignedBlob, IntPtr pBlob ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConnectP2PCustomSignaling", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworkingSockets_ConnectP2PCustomSignaling( IntPtr instancePtr, out ISteamNetworkingConnectionSignaling pSignaling, ref SteamNetworkingIdentity pPeerIdentity, int nRemoteVirtualPort, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConnectP2PCustomSignaling", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamNetworkingSockets_ConnectP2PCustomSignaling( IntPtr instancePtr, out ISteamNetworkingConnectionSignaling pSignaling, ref SteamNetworkingIdentity pPeerIdentity, int nRemoteVirtualPort, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ReceivedP2PCustomSignal", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_ReceivedP2PCustomSignal( IntPtr instancePtr, IntPtr pMsg, int cbMsg, out ISteamNetworkingSignalingRecvContext pContext ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ReceivedP2PCustomSignal", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_ReceivedP2PCustomSignal( IntPtr instancePtr, IntPtr pMsg, int cbMsg, out ISteamNetworkingSignalingRecvContext pContext ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetCertificateRequest", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_GetCertificateRequest( IntPtr instancePtr, out int pcbBlob, IntPtr pBlob, out SteamNetworkingErrMsg errMsg ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetCertificateRequest", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_GetCertificateRequest( IntPtr instancePtr, out int pcbBlob, IntPtr pBlob, out SteamNetworkingErrMsg errMsg ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SetCertificate", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_SetCertificate( IntPtr instancePtr, IntPtr pCertificate, int cbCertificate, out SteamNetworkingErrMsg errMsg ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SetCertificate", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_SetCertificate( IntPtr instancePtr, IntPtr pCertificate, int cbCertificate, out SteamNetworkingErrMsg errMsg ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ResetIdentity", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamNetworkingSockets_ResetIdentity( IntPtr instancePtr, ref SteamNetworkingIdentity pIdentity ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ResetIdentity", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamNetworkingSockets_ResetIdentity( IntPtr instancePtr, ref SteamNetworkingIdentity pIdentity ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_RunCallbacks", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamNetworkingSockets_RunCallbacks( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_RunCallbacks", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamNetworkingSockets_RunCallbacks( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_BeginAsyncRequestFakeIP", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingSockets_BeginAsyncRequestFakeIP( IntPtr instancePtr, int nNumPorts ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_BeginAsyncRequestFakeIP", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingSockets_BeginAsyncRequestFakeIP( IntPtr instancePtr, int nNumPorts ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetFakeIP", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamNetworkingSockets_GetFakeIP( IntPtr instancePtr, int idxFirstPort, out SteamNetworkingFakeIPResult_t pInfo ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetFakeIP", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamNetworkingSockets_GetFakeIP( IntPtr instancePtr, int idxFirstPort, out SteamNetworkingFakeIPResult_t pInfo ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateListenSocketP2PFakeIP", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworkingSockets_CreateListenSocketP2PFakeIP( IntPtr instancePtr, int idxFakePort, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateListenSocketP2PFakeIP", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamNetworkingSockets_CreateListenSocketP2PFakeIP( IntPtr instancePtr, int idxFakePort, int nOptions, [In, Out] SteamNetworkingConfigValue_t[] pOptions ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetRemoteFakeIPForConnection", CallingConvention = CallingConvention.Cdecl)] - public static extern EResult ISteamNetworkingSockets_GetRemoteFakeIPForConnection( IntPtr instancePtr, HSteamNetConnection hConn, out SteamNetworkingIPAddr pOutAddr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetRemoteFakeIPForConnection", CallingConvention = CallingConvention.Cdecl)] + public static extern EResult ISteamNetworkingSockets_GetRemoteFakeIPForConnection( IntPtr instancePtr, HSteamNetConnection hConn, out SteamNetworkingIPAddr pOutAddr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateFakeUDPPort", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamNetworkingSockets_CreateFakeUDPPort( IntPtr instancePtr, int idxFakeServerPort ); - #endregion - #region SteamNetworkingUtils - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_AllocateMessage", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamNetworkingUtils_AllocateMessage( IntPtr instancePtr, int cbAllocateBuffer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateFakeUDPPort", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamNetworkingSockets_CreateFakeUDPPort( IntPtr instancePtr, int idxFakeServerPort ); + #endregion + #region SteamNetworkingUtils + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_AllocateMessage", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamNetworkingUtils_AllocateMessage( IntPtr instancePtr, int cbAllocateBuffer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_InitRelayNetworkAccess", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamNetworkingUtils_InitRelayNetworkAccess( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_InitRelayNetworkAccess", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamNetworkingUtils_InitRelayNetworkAccess( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetRelayNetworkStatus", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamNetworkingAvailability ISteamNetworkingUtils_GetRelayNetworkStatus( IntPtr instancePtr, out SteamRelayNetworkStatus_t pDetails ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetRelayNetworkStatus", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamNetworkingAvailability ISteamNetworkingUtils_GetRelayNetworkStatus( IntPtr instancePtr, out SteamRelayNetworkStatus_t pDetails ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetLocalPingLocation", CallingConvention = CallingConvention.Cdecl)] - public static extern float ISteamNetworkingUtils_GetLocalPingLocation( IntPtr instancePtr, out SteamNetworkPingLocation_t result ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetLocalPingLocation", CallingConvention = CallingConvention.Cdecl)] + public static extern float ISteamNetworkingUtils_GetLocalPingLocation( IntPtr instancePtr, out SteamNetworkPingLocation_t result ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_EstimatePingTimeBetweenTwoLocations", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamNetworkingUtils_EstimatePingTimeBetweenTwoLocations( IntPtr instancePtr, ref SteamNetworkPingLocation_t location1, ref SteamNetworkPingLocation_t location2 ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_EstimatePingTimeBetweenTwoLocations", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamNetworkingUtils_EstimatePingTimeBetweenTwoLocations( IntPtr instancePtr, ref SteamNetworkPingLocation_t location1, ref SteamNetworkPingLocation_t location2 ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_EstimatePingTimeFromLocalHost", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamNetworkingUtils_EstimatePingTimeFromLocalHost( IntPtr instancePtr, ref SteamNetworkPingLocation_t remoteLocation ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_EstimatePingTimeFromLocalHost", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamNetworkingUtils_EstimatePingTimeFromLocalHost( IntPtr instancePtr, ref SteamNetworkPingLocation_t remoteLocation ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_ConvertPingLocationToString", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamNetworkingUtils_ConvertPingLocationToString( IntPtr instancePtr, ref SteamNetworkPingLocation_t location, IntPtr pszBuf, int cchBufSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_ConvertPingLocationToString", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamNetworkingUtils_ConvertPingLocationToString( IntPtr instancePtr, ref SteamNetworkPingLocation_t location, IntPtr pszBuf, int cchBufSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_ParsePingLocationString", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingUtils_ParsePingLocationString( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszString, out SteamNetworkPingLocation_t result ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_ParsePingLocationString", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingUtils_ParsePingLocationString( IntPtr instancePtr, InteropHelp.UTF8StringHandle pszString, out SteamNetworkPingLocation_t result ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_CheckPingDataUpToDate", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingUtils_CheckPingDataUpToDate( IntPtr instancePtr, float flMaxAgeSeconds ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_CheckPingDataUpToDate", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingUtils_CheckPingDataUpToDate( IntPtr instancePtr, float flMaxAgeSeconds ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetPingToDataCenter", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamNetworkingUtils_GetPingToDataCenter( IntPtr instancePtr, SteamNetworkingPOPID popID, out SteamNetworkingPOPID pViaRelayPoP ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetPingToDataCenter", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamNetworkingUtils_GetPingToDataCenter( IntPtr instancePtr, SteamNetworkingPOPID popID, out SteamNetworkingPOPID pViaRelayPoP ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetDirectPingToPOP", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamNetworkingUtils_GetDirectPingToPOP( IntPtr instancePtr, SteamNetworkingPOPID popID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetDirectPingToPOP", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamNetworkingUtils_GetDirectPingToPOP( IntPtr instancePtr, SteamNetworkingPOPID popID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetPOPCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamNetworkingUtils_GetPOPCount( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetPOPCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamNetworkingUtils_GetPOPCount( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetPOPList", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamNetworkingUtils_GetPOPList( IntPtr instancePtr, out SteamNetworkingPOPID list, int nListSz ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetPOPList", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamNetworkingUtils_GetPOPList( IntPtr instancePtr, out SteamNetworkingPOPID list, int nListSz ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetLocalTimestamp", CallingConvention = CallingConvention.Cdecl)] - public static extern long ISteamNetworkingUtils_GetLocalTimestamp( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetLocalTimestamp", CallingConvention = CallingConvention.Cdecl)] + public static extern long ISteamNetworkingUtils_GetLocalTimestamp( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetDebugOutputFunction", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamNetworkingUtils_SetDebugOutputFunction( IntPtr instancePtr, ESteamNetworkingSocketsDebugOutputType eDetailLevel, FSteamNetworkingSocketsDebugOutput pfnFunc ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetDebugOutputFunction", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamNetworkingUtils_SetDebugOutputFunction( IntPtr instancePtr, ESteamNetworkingSocketsDebugOutputType eDetailLevel, FSteamNetworkingSocketsDebugOutput pfnFunc ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_IsFakeIPv4", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingUtils_IsFakeIPv4( IntPtr instancePtr, uint nIPv4 ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_IsFakeIPv4", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingUtils_IsFakeIPv4( IntPtr instancePtr, uint nIPv4 ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetIPv4FakeIPType", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamNetworkingFakeIPType ISteamNetworkingUtils_GetIPv4FakeIPType( IntPtr instancePtr, uint nIPv4 ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetIPv4FakeIPType", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamNetworkingFakeIPType ISteamNetworkingUtils_GetIPv4FakeIPType( IntPtr instancePtr, uint nIPv4 ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetRealIdentityForFakeIP", CallingConvention = CallingConvention.Cdecl)] - public static extern EResult ISteamNetworkingUtils_GetRealIdentityForFakeIP( IntPtr instancePtr, ref SteamNetworkingIPAddr fakeIP, out SteamNetworkingIdentity pOutRealIdentity ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetRealIdentityForFakeIP", CallingConvention = CallingConvention.Cdecl)] + public static extern EResult ISteamNetworkingUtils_GetRealIdentityForFakeIP( IntPtr instancePtr, ref SteamNetworkingIPAddr fakeIP, out SteamNetworkingIdentity pOutRealIdentity ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetConfigValue", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingUtils_SetConfigValue( IntPtr instancePtr, ESteamNetworkingConfigValue eValue, ESteamNetworkingConfigScope eScopeType, IntPtr scopeObj, ESteamNetworkingConfigDataType eDataType, IntPtr pArg ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetConfigValue", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingUtils_SetConfigValue( IntPtr instancePtr, ESteamNetworkingConfigValue eValue, ESteamNetworkingConfigScope eScopeType, IntPtr scopeObj, ESteamNetworkingConfigDataType eDataType, IntPtr pArg ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetConfigValue", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamNetworkingGetConfigValueResult ISteamNetworkingUtils_GetConfigValue( IntPtr instancePtr, ESteamNetworkingConfigValue eValue, ESteamNetworkingConfigScope eScopeType, IntPtr scopeObj, out ESteamNetworkingConfigDataType pOutDataType, IntPtr pResult, ref ulong cbResult ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetConfigValue", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamNetworkingGetConfigValueResult ISteamNetworkingUtils_GetConfigValue( IntPtr instancePtr, ESteamNetworkingConfigValue eValue, ESteamNetworkingConfigScope eScopeType, IntPtr scopeObj, out ESteamNetworkingConfigDataType pOutDataType, IntPtr pResult, ref ulong cbResult ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetConfigValueInfo", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamNetworkingUtils_GetConfigValueInfo( IntPtr instancePtr, ESteamNetworkingConfigValue eValue, out ESteamNetworkingConfigDataType pOutDataType, out ESteamNetworkingConfigScope pOutScope ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetConfigValueInfo", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamNetworkingUtils_GetConfigValueInfo( IntPtr instancePtr, ESteamNetworkingConfigValue eValue, out ESteamNetworkingConfigDataType pOutDataType, out ESteamNetworkingConfigScope pOutScope ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_IterateGenericEditableConfigValues", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamNetworkingConfigValue ISteamNetworkingUtils_IterateGenericEditableConfigValues( IntPtr instancePtr, ESteamNetworkingConfigValue eCurrent, [MarshalAs(UnmanagedType.I1)] bool bEnumerateDevVars ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_IterateGenericEditableConfigValues", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamNetworkingConfigValue ISteamNetworkingUtils_IterateGenericEditableConfigValues( IntPtr instancePtr, ESteamNetworkingConfigValue eCurrent, [MarshalAs(UnmanagedType.I1)] bool bEnumerateDevVars ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SteamNetworkingIPAddr_ToString", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamNetworkingUtils_SteamNetworkingIPAddr_ToString( IntPtr instancePtr, ref SteamNetworkingIPAddr addr, IntPtr buf, uint cbBuf, [MarshalAs(UnmanagedType.I1)] bool bWithPort ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SteamNetworkingIPAddr_ToString", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamNetworkingUtils_SteamNetworkingIPAddr_ToString( IntPtr instancePtr, ref SteamNetworkingIPAddr addr, IntPtr buf, uint cbBuf, [MarshalAs(UnmanagedType.I1)] bool bWithPort ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SteamNetworkingIPAddr_ParseString", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingUtils_SteamNetworkingIPAddr_ParseString( IntPtr instancePtr, out SteamNetworkingIPAddr pAddr, InteropHelp.UTF8StringHandle pszStr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SteamNetworkingIPAddr_ParseString", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingUtils_SteamNetworkingIPAddr_ParseString( IntPtr instancePtr, out SteamNetworkingIPAddr pAddr, InteropHelp.UTF8StringHandle pszStr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SteamNetworkingIPAddr_GetFakeIPType", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamNetworkingFakeIPType ISteamNetworkingUtils_SteamNetworkingIPAddr_GetFakeIPType( IntPtr instancePtr, ref SteamNetworkingIPAddr addr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SteamNetworkingIPAddr_GetFakeIPType", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamNetworkingFakeIPType ISteamNetworkingUtils_SteamNetworkingIPAddr_GetFakeIPType( IntPtr instancePtr, ref SteamNetworkingIPAddr addr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SteamNetworkingIdentity_ToString", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamNetworkingUtils_SteamNetworkingIdentity_ToString( IntPtr instancePtr, ref SteamNetworkingIdentity identity, IntPtr buf, uint cbBuf ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SteamNetworkingIdentity_ToString", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamNetworkingUtils_SteamNetworkingIdentity_ToString( IntPtr instancePtr, ref SteamNetworkingIdentity identity, IntPtr buf, uint cbBuf ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SteamNetworkingIdentity_ParseString", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworkingUtils_SteamNetworkingIdentity_ParseString( IntPtr instancePtr, out SteamNetworkingIdentity pIdentity, InteropHelp.UTF8StringHandle pszStr ); - #endregion - #region SteamParentalSettings - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamParentalSettings_BIsParentalLockEnabled( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SteamNetworkingIdentity_ParseString", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamNetworkingUtils_SteamNetworkingIdentity_ParseString( IntPtr instancePtr, out SteamNetworkingIdentity pIdentity, InteropHelp.UTF8StringHandle pszStr ); + #endregion + #region SteamParentalSettings + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamParentalSettings_BIsParentalLockEnabled( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParentalSettings_BIsParentalLockLocked", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamParentalSettings_BIsParentalLockLocked( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParentalSettings_BIsParentalLockLocked", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamParentalSettings_BIsParentalLockLocked( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParentalSettings_BIsAppBlocked", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamParentalSettings_BIsAppBlocked( IntPtr instancePtr, AppId_t nAppID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParentalSettings_BIsAppBlocked", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamParentalSettings_BIsAppBlocked( IntPtr instancePtr, AppId_t nAppID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParentalSettings_BIsAppInBlockList", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamParentalSettings_BIsAppInBlockList( IntPtr instancePtr, AppId_t nAppID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParentalSettings_BIsAppInBlockList", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamParentalSettings_BIsAppInBlockList( IntPtr instancePtr, AppId_t nAppID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParentalSettings_BIsFeatureBlocked", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamParentalSettings_BIsFeatureBlocked( IntPtr instancePtr, EParentalFeature eFeature ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParentalSettings_BIsFeatureBlocked", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamParentalSettings_BIsFeatureBlocked( IntPtr instancePtr, EParentalFeature eFeature ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamParentalSettings_BIsFeatureInBlockList( IntPtr instancePtr, EParentalFeature eFeature ); - #endregion - #region SteamRemotePlay - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_GetSessionCount", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamRemotePlay_GetSessionCount( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamParentalSettings_BIsFeatureInBlockList( IntPtr instancePtr, EParentalFeature eFeature ); + #endregion + #region SteamRemotePlay + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_GetSessionCount", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamRemotePlay_GetSessionCount( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_GetSessionID", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamRemotePlay_GetSessionID( IntPtr instancePtr, int iSessionIndex ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_GetSessionID", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamRemotePlay_GetSessionID( IntPtr instancePtr, int iSessionIndex ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_GetSessionSteamID", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemotePlay_GetSessionSteamID( IntPtr instancePtr, RemotePlaySessionID_t unSessionID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_GetSessionSteamID", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemotePlay_GetSessionSteamID( IntPtr instancePtr, RemotePlaySessionID_t unSessionID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_GetSessionClientName", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamRemotePlay_GetSessionClientName( IntPtr instancePtr, RemotePlaySessionID_t unSessionID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_GetSessionClientName", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamRemotePlay_GetSessionClientName( IntPtr instancePtr, RemotePlaySessionID_t unSessionID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_GetSessionClientFormFactor", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamDeviceFormFactor ISteamRemotePlay_GetSessionClientFormFactor( IntPtr instancePtr, RemotePlaySessionID_t unSessionID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_GetSessionClientFormFactor", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamDeviceFormFactor ISteamRemotePlay_GetSessionClientFormFactor( IntPtr instancePtr, RemotePlaySessionID_t unSessionID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_BGetSessionClientResolution", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemotePlay_BGetSessionClientResolution( IntPtr instancePtr, RemotePlaySessionID_t unSessionID, out int pnResolutionX, out int pnResolutionY ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_BGetSessionClientResolution", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemotePlay_BGetSessionClientResolution( IntPtr instancePtr, RemotePlaySessionID_t unSessionID, out int pnResolutionX, out int pnResolutionY ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_ShowRemotePlayTogetherUI", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemotePlay_ShowRemotePlayTogetherUI( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_ShowRemotePlayTogetherUI", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemotePlay_ShowRemotePlayTogetherUI( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_BSendRemotePlayTogetherInvite", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemotePlay_BSendRemotePlayTogetherInvite( IntPtr instancePtr, CSteamID steamIDFriend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_BSendRemotePlayTogetherInvite", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemotePlay_BSendRemotePlayTogetherInvite( IntPtr instancePtr, CSteamID steamIDFriend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_BEnableRemotePlayTogetherDirectInput", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemotePlay_BEnableRemotePlayTogetherDirectInput( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_BEnableRemotePlayTogetherDirectInput", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemotePlay_BEnableRemotePlayTogetherDirectInput( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_DisableRemotePlayTogetherDirectInput", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamRemotePlay_DisableRemotePlayTogetherDirectInput( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_DisableRemotePlayTogetherDirectInput", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamRemotePlay_DisableRemotePlayTogetherDirectInput( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_GetInput", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamRemotePlay_GetInput( IntPtr instancePtr, out RemotePlayInput_t pInput, uint unMaxEvents ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_GetInput", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamRemotePlay_GetInput( IntPtr instancePtr, out RemotePlayInput_t pInput, uint unMaxEvents ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_SetMouseVisibility", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamRemotePlay_SetMouseVisibility( IntPtr instancePtr, RemotePlaySessionID_t unSessionID, [MarshalAs(UnmanagedType.I1)] bool bVisible ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_SetMouseVisibility", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamRemotePlay_SetMouseVisibility( IntPtr instancePtr, RemotePlaySessionID_t unSessionID, [MarshalAs(UnmanagedType.I1)] bool bVisible ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_SetMousePosition", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamRemotePlay_SetMousePosition( IntPtr instancePtr, RemotePlaySessionID_t unSessionID, float flNormalizedX, float flNormalizedY ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_SetMousePosition", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamRemotePlay_SetMousePosition( IntPtr instancePtr, RemotePlaySessionID_t unSessionID, float flNormalizedX, float flNormalizedY ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_CreateMouseCursor", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamRemotePlay_CreateMouseCursor( IntPtr instancePtr, int nWidth, int nHeight, int nHotX, int nHotY, IntPtr pBGRA, int nPitch ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_CreateMouseCursor", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamRemotePlay_CreateMouseCursor( IntPtr instancePtr, int nWidth, int nHeight, int nHotX, int nHotY, IntPtr pBGRA, int nPitch ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_SetMouseCursor", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamRemotePlay_SetMouseCursor( IntPtr instancePtr, RemotePlaySessionID_t unSessionID, RemotePlayCursorID_t unCursorID ); - #endregion - #region SteamRemoteStorage - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWrite", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileWrite( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile, byte[] pvData, int cubData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemotePlay_SetMouseCursor", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamRemotePlay_SetMouseCursor( IntPtr instancePtr, RemotePlaySessionID_t unSessionID, RemotePlayCursorID_t unCursorID ); + #endregion + #region SteamRemoteStorage + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWrite", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_FileWrite( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile, byte[] pvData, int cubData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileRead", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamRemoteStorage_FileRead( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile, byte[] pvData, int cubDataToRead ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileRead", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamRemoteStorage_FileRead( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile, byte[] pvData, int cubDataToRead ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteAsync", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_FileWriteAsync( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile, byte[] pvData, uint cubData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteAsync", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_FileWriteAsync( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile, byte[] pvData, uint cubData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileReadAsync", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_FileReadAsync( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile, uint nOffset, uint cubToRead ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileReadAsync", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_FileReadAsync( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile, uint nOffset, uint cubToRead ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileReadAsyncComplete( IntPtr instancePtr, SteamAPICall_t hReadCall, byte[] pvBuffer, uint cubToRead ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_FileReadAsyncComplete( IntPtr instancePtr, SteamAPICall_t hReadCall, byte[] pvBuffer, uint cubToRead ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileForget", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileForget( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileForget", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_FileForget( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileDelete", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileDelete( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileDelete", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_FileDelete( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileShare", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_FileShare( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileShare", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_FileShare( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_SetSyncPlatforms", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_SetSyncPlatforms( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile, ERemoteStoragePlatform eRemoteStoragePlatform ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_SetSyncPlatforms", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_SetSyncPlatforms( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile, ERemoteStoragePlatform eRemoteStoragePlatform ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_FileWriteStreamOpen( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_FileWriteStreamOpen( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileWriteStreamWriteChunk( IntPtr instancePtr, UGCFileWriteStreamHandle_t writeHandle, byte[] pvData, int cubData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_FileWriteStreamWriteChunk( IntPtr instancePtr, UGCFileWriteStreamHandle_t writeHandle, byte[] pvData, int cubData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamClose", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileWriteStreamClose( IntPtr instancePtr, UGCFileWriteStreamHandle_t writeHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamClose", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_FileWriteStreamClose( IntPtr instancePtr, UGCFileWriteStreamHandle_t writeHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileWriteStreamCancel( IntPtr instancePtr, UGCFileWriteStreamHandle_t writeHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_FileWriteStreamCancel( IntPtr instancePtr, UGCFileWriteStreamHandle_t writeHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileExists", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileExists( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FileExists", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_FileExists( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FilePersisted", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FilePersisted( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_FilePersisted", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_FilePersisted( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileSize", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamRemoteStorage_GetFileSize( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileSize", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamRemoteStorage_GetFileSize( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileTimestamp", CallingConvention = CallingConvention.Cdecl)] - public static extern long ISteamRemoteStorage_GetFileTimestamp( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileTimestamp", CallingConvention = CallingConvention.Cdecl)] + public static extern long ISteamRemoteStorage_GetFileTimestamp( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetSyncPlatforms", CallingConvention = CallingConvention.Cdecl)] - public static extern ERemoteStoragePlatform ISteamRemoteStorage_GetSyncPlatforms( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetSyncPlatforms", CallingConvention = CallingConvention.Cdecl)] + public static extern ERemoteStoragePlatform ISteamRemoteStorage_GetSyncPlatforms( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamRemoteStorage_GetFileCount( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamRemoteStorage_GetFileCount( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileNameAndSize", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamRemoteStorage_GetFileNameAndSize( IntPtr instancePtr, int iFile, out int pnFileSizeInBytes ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileNameAndSize", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamRemoteStorage_GetFileNameAndSize( IntPtr instancePtr, int iFile, out int pnFileSizeInBytes ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetQuota", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_GetQuota( IntPtr instancePtr, out ulong pnTotalBytes, out ulong puAvailableBytes ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetQuota", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_GetQuota( IntPtr instancePtr, out ulong pnTotalBytes, out ulong puAvailableBytes ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_IsCloudEnabledForAccount( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_IsCloudEnabledForAccount( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_IsCloudEnabledForApp( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_IsCloudEnabledForApp( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamRemoteStorage_SetCloudEnabledForApp( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bEnabled ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamRemoteStorage_SetCloudEnabledForApp( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bEnabled ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCDownload", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_UGCDownload( IntPtr instancePtr, UGCHandle_t hContent, uint unPriority ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCDownload", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_UGCDownload( IntPtr instancePtr, UGCHandle_t hContent, uint unPriority ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_GetUGCDownloadProgress( IntPtr instancePtr, UGCHandle_t hContent, out int pnBytesDownloaded, out int pnBytesExpected ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_GetUGCDownloadProgress( IntPtr instancePtr, UGCHandle_t hContent, out int pnBytesDownloaded, out int pnBytesExpected ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDetails", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_GetUGCDetails( IntPtr instancePtr, UGCHandle_t hContent, out AppId_t pnAppID, out IntPtr ppchName, out int pnFileSizeInBytes, out CSteamID pSteamIDOwner ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDetails", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_GetUGCDetails( IntPtr instancePtr, UGCHandle_t hContent, out AppId_t pnAppID, out IntPtr ppchName, out int pnFileSizeInBytes, out CSteamID pSteamIDOwner ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCRead", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamRemoteStorage_UGCRead( IntPtr instancePtr, UGCHandle_t hContent, byte[] pvData, int cubDataToRead, uint cOffset, EUGCReadAction eAction ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCRead", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamRemoteStorage_UGCRead( IntPtr instancePtr, UGCHandle_t hContent, byte[] pvData, int cubDataToRead, uint cOffset, EUGCReadAction eAction ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamRemoteStorage_GetCachedUGCCount( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamRemoteStorage_GetCachedUGCCount( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_GetCachedUGCHandle( IntPtr instancePtr, int iCachedContent ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_GetCachedUGCHandle( IntPtr instancePtr, int iCachedContent ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_PublishWorkshopFile", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_PublishWorkshopFile( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile, InteropHelp.UTF8StringHandle pchPreviewFile, AppId_t nConsumerAppId, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, IntPtr pTags, EWorkshopFileType eWorkshopFileType ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_PublishWorkshopFile", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_PublishWorkshopFile( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFile, InteropHelp.UTF8StringHandle pchPreviewFile, AppId_t nConsumerAppId, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, IntPtr pTags, EWorkshopFileType eWorkshopFileType ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_CreatePublishedFileUpdateRequest( IntPtr instancePtr, PublishedFileId_t unPublishedFileId ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_CreatePublishedFileUpdateRequest( IntPtr instancePtr, PublishedFileId_t unPublishedFileId ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFileFile( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchFile ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_UpdatePublishedFileFile( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchFile ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFilePreviewFile( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchPreviewFile ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_UpdatePublishedFilePreviewFile( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchPreviewFile ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFileTitle( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchTitle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_UpdatePublishedFileTitle( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchTitle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFileDescription( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchDescription ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_UpdatePublishedFileDescription( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchDescription ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFileVisibility( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, ERemoteStoragePublishedFileVisibility eVisibility ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_UpdatePublishedFileVisibility( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, ERemoteStoragePublishedFileVisibility eVisibility ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFileTags( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, IntPtr pTags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_UpdatePublishedFileTags( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, IntPtr pTags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_CommitPublishedFileUpdate( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_CommitPublishedFileUpdate( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_GetPublishedFileDetails( IntPtr instancePtr, PublishedFileId_t unPublishedFileId, uint unMaxSecondsOld ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_GetPublishedFileDetails( IntPtr instancePtr, PublishedFileId_t unPublishedFileId, uint unMaxSecondsOld ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_DeletePublishedFile", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_DeletePublishedFile( IntPtr instancePtr, PublishedFileId_t unPublishedFileId ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_DeletePublishedFile", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_DeletePublishedFile( IntPtr instancePtr, PublishedFileId_t unPublishedFileId ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_EnumerateUserPublishedFiles( IntPtr instancePtr, uint unStartIndex ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_EnumerateUserPublishedFiles( IntPtr instancePtr, uint unStartIndex ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_SubscribePublishedFile", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_SubscribePublishedFile( IntPtr instancePtr, PublishedFileId_t unPublishedFileId ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_SubscribePublishedFile", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_SubscribePublishedFile( IntPtr instancePtr, PublishedFileId_t unPublishedFileId ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_EnumerateUserSubscribedFiles( IntPtr instancePtr, uint unStartIndex ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_EnumerateUserSubscribedFiles( IntPtr instancePtr, uint unStartIndex ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_UnsubscribePublishedFile( IntPtr instancePtr, PublishedFileId_t unPublishedFileId ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_UnsubscribePublishedFile( IntPtr instancePtr, PublishedFileId_t unPublishedFileId ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchChangeDescription ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( IntPtr instancePtr, PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchChangeDescription ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_GetPublishedItemVoteDetails( IntPtr instancePtr, PublishedFileId_t unPublishedFileId ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_GetPublishedItemVoteDetails( IntPtr instancePtr, PublishedFileId_t unPublishedFileId ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_UpdateUserPublishedItemVote( IntPtr instancePtr, PublishedFileId_t unPublishedFileId, [MarshalAs(UnmanagedType.I1)] bool bVoteUp ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_UpdateUserPublishedItemVote( IntPtr instancePtr, PublishedFileId_t unPublishedFileId, [MarshalAs(UnmanagedType.I1)] bool bVoteUp ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_GetUserPublishedItemVoteDetails( IntPtr instancePtr, PublishedFileId_t unPublishedFileId ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_GetUserPublishedItemVoteDetails( IntPtr instancePtr, PublishedFileId_t unPublishedFileId ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( IntPtr instancePtr, CSteamID steamId, uint unStartIndex, IntPtr pRequiredTags, IntPtr pExcludedTags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( IntPtr instancePtr, CSteamID steamId, uint unStartIndex, IntPtr pRequiredTags, IntPtr pExcludedTags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_PublishVideo", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_PublishVideo( IntPtr instancePtr, EWorkshopVideoProvider eVideoProvider, InteropHelp.UTF8StringHandle pchVideoAccount, InteropHelp.UTF8StringHandle pchVideoIdentifier, InteropHelp.UTF8StringHandle pchPreviewFile, AppId_t nConsumerAppId, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, IntPtr pTags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_PublishVideo", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_PublishVideo( IntPtr instancePtr, EWorkshopVideoProvider eVideoProvider, InteropHelp.UTF8StringHandle pchVideoAccount, InteropHelp.UTF8StringHandle pchVideoIdentifier, InteropHelp.UTF8StringHandle pchPreviewFile, AppId_t nConsumerAppId, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, IntPtr pTags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_SetUserPublishedFileAction( IntPtr instancePtr, PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_SetUserPublishedFileAction( IntPtr instancePtr, PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( IntPtr instancePtr, EWorkshopFileAction eAction, uint unStartIndex ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( IntPtr instancePtr, EWorkshopFileAction eAction, uint unStartIndex ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( IntPtr instancePtr, EWorkshopEnumerationType eEnumerationType, uint unStartIndex, uint unCount, uint unDays, IntPtr pTags, IntPtr pUserTags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( IntPtr instancePtr, EWorkshopEnumerationType eEnumerationType, uint unStartIndex, uint unCount, uint unDays, IntPtr pTags, IntPtr pUserTags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_UGCDownloadToLocation( IntPtr instancePtr, UGCHandle_t hContent, InteropHelp.UTF8StringHandle pchLocation, uint unPriority ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamRemoteStorage_UGCDownloadToLocation( IntPtr instancePtr, UGCHandle_t hContent, InteropHelp.UTF8StringHandle pchLocation, uint unPriority ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetLocalFileChangeCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamRemoteStorage_GetLocalFileChangeCount( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetLocalFileChangeCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamRemoteStorage_GetLocalFileChangeCount( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetLocalFileChange", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamRemoteStorage_GetLocalFileChange( IntPtr instancePtr, int iFile, out ERemoteStorageLocalFileChange pEChangeType, out ERemoteStorageFilePathType pEFilePathType ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetLocalFileChange", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamRemoteStorage_GetLocalFileChange( IntPtr instancePtr, int iFile, out ERemoteStorageLocalFileChange pEChangeType, out ERemoteStorageFilePathType pEFilePathType ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_BeginFileWriteBatch", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_BeginFileWriteBatch( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_BeginFileWriteBatch", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_BeginFileWriteBatch( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_EndFileWriteBatch", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_EndFileWriteBatch( IntPtr instancePtr ); - #endregion - #region SteamScreenshots - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_WriteScreenshot", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamScreenshots_WriteScreenshot( IntPtr instancePtr, byte[] pubRGB, uint cubRGB, int nWidth, int nHeight ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_EndFileWriteBatch", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamRemoteStorage_EndFileWriteBatch( IntPtr instancePtr ); + #endregion + #region SteamScreenshots + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_WriteScreenshot", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamScreenshots_WriteScreenshot( IntPtr instancePtr, byte[] pubRGB, uint cubRGB, int nWidth, int nHeight ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_AddScreenshotToLibrary", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamScreenshots_AddScreenshotToLibrary( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFilename, InteropHelp.UTF8StringHandle pchThumbnailFilename, int nWidth, int nHeight ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_AddScreenshotToLibrary", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamScreenshots_AddScreenshotToLibrary( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchFilename, InteropHelp.UTF8StringHandle pchThumbnailFilename, int nWidth, int nHeight ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_TriggerScreenshot", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamScreenshots_TriggerScreenshot( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_TriggerScreenshot", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamScreenshots_TriggerScreenshot( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_HookScreenshots", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamScreenshots_HookScreenshots( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bHook ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_HookScreenshots", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamScreenshots_HookScreenshots( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bHook ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_SetLocation", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamScreenshots_SetLocation( IntPtr instancePtr, ScreenshotHandle hScreenshot, InteropHelp.UTF8StringHandle pchLocation ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_SetLocation", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamScreenshots_SetLocation( IntPtr instancePtr, ScreenshotHandle hScreenshot, InteropHelp.UTF8StringHandle pchLocation ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_TagUser", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamScreenshots_TagUser( IntPtr instancePtr, ScreenshotHandle hScreenshot, CSteamID steamID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_TagUser", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamScreenshots_TagUser( IntPtr instancePtr, ScreenshotHandle hScreenshot, CSteamID steamID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_TagPublishedFile", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamScreenshots_TagPublishedFile( IntPtr instancePtr, ScreenshotHandle hScreenshot, PublishedFileId_t unPublishedFileID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_TagPublishedFile", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamScreenshots_TagPublishedFile( IntPtr instancePtr, ScreenshotHandle hScreenshot, PublishedFileId_t unPublishedFileID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_IsScreenshotsHooked", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamScreenshots_IsScreenshotsHooked( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_IsScreenshotsHooked", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamScreenshots_IsScreenshotsHooked( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamScreenshots_AddVRScreenshotToLibrary( IntPtr instancePtr, EVRScreenshotType eType, InteropHelp.UTF8StringHandle pchFilename, InteropHelp.UTF8StringHandle pchVRFilename ); - #endregion - #region SteamTimeline - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_SetTimelineTooltip", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamTimeline_SetTimelineTooltip( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchDescription, float flTimeDelta ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamScreenshots_AddVRScreenshotToLibrary( IntPtr instancePtr, EVRScreenshotType eType, InteropHelp.UTF8StringHandle pchFilename, InteropHelp.UTF8StringHandle pchVRFilename ); + #endregion + #region SteamTimeline + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_SetTimelineTooltip", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamTimeline_SetTimelineTooltip( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchDescription, float flTimeDelta ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_ClearTimelineTooltip", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamTimeline_ClearTimelineTooltip( IntPtr instancePtr, float flTimeDelta ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_ClearTimelineTooltip", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamTimeline_ClearTimelineTooltip( IntPtr instancePtr, float flTimeDelta ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_SetTimelineGameMode", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamTimeline_SetTimelineGameMode( IntPtr instancePtr, ETimelineGameMode eMode ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_SetTimelineGameMode", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamTimeline_SetTimelineGameMode( IntPtr instancePtr, ETimelineGameMode eMode ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_AddInstantaneousTimelineEvent", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamTimeline_AddInstantaneousTimelineEvent( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, InteropHelp.UTF8StringHandle pchIcon, uint unIconPriority, float flStartOffsetSeconds, ETimelineEventClipPriority ePossibleClip ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_AddInstantaneousTimelineEvent", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamTimeline_AddInstantaneousTimelineEvent( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, InteropHelp.UTF8StringHandle pchIcon, uint unIconPriority, float flStartOffsetSeconds, ETimelineEventClipPriority ePossibleClip ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_AddRangeTimelineEvent", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamTimeline_AddRangeTimelineEvent( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, InteropHelp.UTF8StringHandle pchIcon, uint unIconPriority, float flStartOffsetSeconds, float flDuration, ETimelineEventClipPriority ePossibleClip ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_AddRangeTimelineEvent", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamTimeline_AddRangeTimelineEvent( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, InteropHelp.UTF8StringHandle pchIcon, uint unIconPriority, float flStartOffsetSeconds, float flDuration, ETimelineEventClipPriority ePossibleClip ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_StartRangeTimelineEvent", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamTimeline_StartRangeTimelineEvent( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, InteropHelp.UTF8StringHandle pchIcon, uint unPriority, float flStartOffsetSeconds, ETimelineEventClipPriority ePossibleClip ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_StartRangeTimelineEvent", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamTimeline_StartRangeTimelineEvent( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, InteropHelp.UTF8StringHandle pchIcon, uint unPriority, float flStartOffsetSeconds, ETimelineEventClipPriority ePossibleClip ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_UpdateRangeTimelineEvent", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamTimeline_UpdateRangeTimelineEvent( IntPtr instancePtr, TimelineEventHandle_t ulEvent, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, InteropHelp.UTF8StringHandle pchIcon, uint unPriority, ETimelineEventClipPriority ePossibleClip ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_UpdateRangeTimelineEvent", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamTimeline_UpdateRangeTimelineEvent( IntPtr instancePtr, TimelineEventHandle_t ulEvent, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, InteropHelp.UTF8StringHandle pchIcon, uint unPriority, ETimelineEventClipPriority ePossibleClip ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_EndRangeTimelineEvent", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamTimeline_EndRangeTimelineEvent( IntPtr instancePtr, TimelineEventHandle_t ulEvent, float flEndOffsetSeconds ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_EndRangeTimelineEvent", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamTimeline_EndRangeTimelineEvent( IntPtr instancePtr, TimelineEventHandle_t ulEvent, float flEndOffsetSeconds ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_RemoveTimelineEvent", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamTimeline_RemoveTimelineEvent( IntPtr instancePtr, TimelineEventHandle_t ulEvent ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_RemoveTimelineEvent", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamTimeline_RemoveTimelineEvent( IntPtr instancePtr, TimelineEventHandle_t ulEvent ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_DoesEventRecordingExist", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamTimeline_DoesEventRecordingExist( IntPtr instancePtr, TimelineEventHandle_t ulEvent ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_DoesEventRecordingExist", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamTimeline_DoesEventRecordingExist( IntPtr instancePtr, TimelineEventHandle_t ulEvent ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_StartGamePhase", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamTimeline_StartGamePhase( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_StartGamePhase", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamTimeline_StartGamePhase( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_EndGamePhase", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamTimeline_EndGamePhase( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_EndGamePhase", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamTimeline_EndGamePhase( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_SetGamePhaseID", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamTimeline_SetGamePhaseID( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchPhaseID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_SetGamePhaseID", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamTimeline_SetGamePhaseID( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchPhaseID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_DoesGamePhaseRecordingExist", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamTimeline_DoesGamePhaseRecordingExist( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchPhaseID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_DoesGamePhaseRecordingExist", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamTimeline_DoesGamePhaseRecordingExist( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchPhaseID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_AddGamePhaseTag", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamTimeline_AddGamePhaseTag( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchTagName, InteropHelp.UTF8StringHandle pchTagIcon, InteropHelp.UTF8StringHandle pchTagGroup, uint unPriority ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_AddGamePhaseTag", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamTimeline_AddGamePhaseTag( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchTagName, InteropHelp.UTF8StringHandle pchTagIcon, InteropHelp.UTF8StringHandle pchTagGroup, uint unPriority ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_SetGamePhaseAttribute", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamTimeline_SetGamePhaseAttribute( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchAttributeGroup, InteropHelp.UTF8StringHandle pchAttributeValue, uint unPriority ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_SetGamePhaseAttribute", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamTimeline_SetGamePhaseAttribute( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchAttributeGroup, InteropHelp.UTF8StringHandle pchAttributeValue, uint unPriority ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_OpenOverlayToGamePhase", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamTimeline_OpenOverlayToGamePhase( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchPhaseID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_OpenOverlayToGamePhase", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamTimeline_OpenOverlayToGamePhase( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchPhaseID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_OpenOverlayToTimelineEvent", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamTimeline_OpenOverlayToTimelineEvent( IntPtr instancePtr, TimelineEventHandle_t ulEvent ); - #endregion - #region SteamUGC - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateQueryUserUGCRequest", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_CreateQueryUserUGCRequest( IntPtr instancePtr, AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamTimeline_OpenOverlayToTimelineEvent", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamTimeline_OpenOverlayToTimelineEvent( IntPtr instancePtr, TimelineEventHandle_t ulEvent ); + #endregion + #region SteamUGC + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateQueryUserUGCRequest", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_CreateQueryUserUGCRequest( IntPtr instancePtr, AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequestPage", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_CreateQueryAllUGCRequestPage( IntPtr instancePtr, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequestPage", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_CreateQueryAllUGCRequestPage( IntPtr instancePtr, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequestCursor", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_CreateQueryAllUGCRequestCursor( IntPtr instancePtr, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, InteropHelp.UTF8StringHandle pchCursor ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequestCursor", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_CreateQueryAllUGCRequestCursor( IntPtr instancePtr, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, InteropHelp.UTF8StringHandle pchCursor ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_CreateQueryUGCDetailsRequest( IntPtr instancePtr, [In, Out] PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_CreateQueryUGCDetailsRequest( IntPtr instancePtr, [In, Out] PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SendQueryUGCRequest", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_SendQueryUGCRequest( IntPtr instancePtr, UGCQueryHandle_t handle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SendQueryUGCRequest", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_SendQueryUGCRequest( IntPtr instancePtr, UGCQueryHandle_t handle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCResult", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCResult( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCResult", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_GetQueryUGCResult( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumTags", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetQueryUGCNumTags( IntPtr instancePtr, UGCQueryHandle_t handle, uint index ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumTags", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUGC_GetQueryUGCNumTags( IntPtr instancePtr, UGCQueryHandle_t handle, uint index ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCTag", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCTag( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, uint indexTag, IntPtr pchValue, uint cchValueSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCTag", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_GetQueryUGCTag( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, uint indexTag, IntPtr pchValue, uint cchValueSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCTagDisplayName", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCTagDisplayName( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, uint indexTag, IntPtr pchValue, uint cchValueSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCTagDisplayName", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_GetQueryUGCTagDisplayName( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, uint indexTag, IntPtr pchValue, uint cchValueSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCPreviewURL", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCPreviewURL( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, IntPtr pchURL, uint cchURLSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCPreviewURL", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_GetQueryUGCPreviewURL( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, IntPtr pchURL, uint cchURLSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCMetadata", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCMetadata( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, IntPtr pchMetadata, uint cchMetadatasize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCMetadata", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_GetQueryUGCMetadata( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, IntPtr pchMetadata, uint cchMetadatasize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCChildren", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCChildren( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, [In, Out] PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCChildren", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_GetQueryUGCChildren( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, [In, Out] PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCStatistic", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCStatistic( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, EItemStatistic eStatType, out ulong pStatValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCStatistic", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_GetQueryUGCStatistic( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, EItemStatistic eStatType, out ulong pStatValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetQueryUGCNumAdditionalPreviews( IntPtr instancePtr, UGCQueryHandle_t handle, uint index ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUGC_GetQueryUGCNumAdditionalPreviews( IntPtr instancePtr, UGCQueryHandle_t handle, uint index ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCAdditionalPreview( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, uint previewIndex, IntPtr pchURLOrVideoID, uint cchURLSize, IntPtr pchOriginalFileName, uint cchOriginalFileNameSize, out EItemPreviewType pPreviewType ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_GetQueryUGCAdditionalPreview( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, uint previewIndex, IntPtr pchURLOrVideoID, uint cchURLSize, IntPtr pchOriginalFileName, uint cchOriginalFileNameSize, out EItemPreviewType pPreviewType ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetQueryUGCNumKeyValueTags( IntPtr instancePtr, UGCQueryHandle_t handle, uint index ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUGC_GetQueryUGCNumKeyValueTags( IntPtr instancePtr, UGCQueryHandle_t handle, uint index ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCKeyValueTag( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, uint keyValueTagIndex, IntPtr pchKey, uint cchKeySize, IntPtr pchValue, uint cchValueSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_GetQueryUGCKeyValueTag( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, uint keyValueTagIndex, IntPtr pchKey, uint cchKeySize, IntPtr pchValue, uint cchValueSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryFirstUGCKeyValueTag", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryFirstUGCKeyValueTag( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, InteropHelp.UTF8StringHandle pchKey, IntPtr pchValue, uint cchValueSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryFirstUGCKeyValueTag", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_GetQueryFirstUGCKeyValueTag( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, InteropHelp.UTF8StringHandle pchKey, IntPtr pchValue, uint cchValueSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetNumSupportedGameVersions", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetNumSupportedGameVersions( IntPtr instancePtr, UGCQueryHandle_t handle, uint index ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetNumSupportedGameVersions", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUGC_GetNumSupportedGameVersions( IntPtr instancePtr, UGCQueryHandle_t handle, uint index ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetSupportedGameVersionData", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetSupportedGameVersionData( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, uint versionIndex, IntPtr pchGameBranchMin, IntPtr pchGameBranchMax, uint cchGameBranchSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetSupportedGameVersionData", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_GetSupportedGameVersionData( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, uint versionIndex, IntPtr pchGameBranchMin, IntPtr pchGameBranchMax, uint cchGameBranchSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCContentDescriptors", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetQueryUGCContentDescriptors( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, out EUGCContentDescriptorID pvecDescriptors, uint cMaxEntries ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCContentDescriptors", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUGC_GetQueryUGCContentDescriptors( IntPtr instancePtr, UGCQueryHandle_t handle, uint index, out EUGCContentDescriptorID pvecDescriptors, uint cMaxEntries ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_ReleaseQueryUGCRequest", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_ReleaseQueryUGCRequest( IntPtr instancePtr, UGCQueryHandle_t handle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_ReleaseQueryUGCRequest", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_ReleaseQueryUGCRequest( IntPtr instancePtr, UGCQueryHandle_t handle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddRequiredTag", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_AddRequiredTag( IntPtr instancePtr, UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pTagName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddRequiredTag", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_AddRequiredTag( IntPtr instancePtr, UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pTagName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddRequiredTagGroup", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_AddRequiredTagGroup( IntPtr instancePtr, UGCQueryHandle_t handle, IntPtr pTagGroups ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddRequiredTagGroup", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_AddRequiredTagGroup( IntPtr instancePtr, UGCQueryHandle_t handle, IntPtr pTagGroups ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddExcludedTag", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_AddExcludedTag( IntPtr instancePtr, UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pTagName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddExcludedTag", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_AddExcludedTag( IntPtr instancePtr, UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pTagName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnOnlyIDs", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnOnlyIDs( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnOnlyIDs ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnOnlyIDs", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetReturnOnlyIDs( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnOnlyIDs ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnKeyValueTags", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnKeyValueTags( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnKeyValueTags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnKeyValueTags", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetReturnKeyValueTags( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnKeyValueTags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnLongDescription", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnLongDescription( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnLongDescription ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnLongDescription", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetReturnLongDescription( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnLongDescription ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnMetadata", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnMetadata( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnMetadata ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnMetadata", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetReturnMetadata( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnMetadata ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnChildren", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnChildren( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnChildren ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnChildren", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetReturnChildren( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnChildren ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnAdditionalPreviews", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnAdditionalPreviews( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnAdditionalPreviews ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnAdditionalPreviews", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetReturnAdditionalPreviews( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnAdditionalPreviews ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnTotalOnly", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnTotalOnly( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnTotalOnly ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnTotalOnly", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetReturnTotalOnly( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnTotalOnly ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnPlaytimeStats", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnPlaytimeStats( IntPtr instancePtr, UGCQueryHandle_t handle, uint unDays ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetReturnPlaytimeStats", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetReturnPlaytimeStats( IntPtr instancePtr, UGCQueryHandle_t handle, uint unDays ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetLanguage", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetLanguage( IntPtr instancePtr, UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pchLanguage ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetLanguage", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetLanguage( IntPtr instancePtr, UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pchLanguage ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetAllowCachedResponse", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetAllowCachedResponse( IntPtr instancePtr, UGCQueryHandle_t handle, uint unMaxAgeSeconds ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetAllowCachedResponse", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetAllowCachedResponse( IntPtr instancePtr, UGCQueryHandle_t handle, uint unMaxAgeSeconds ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetAdminQuery", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetAdminQuery( IntPtr instancePtr, UGCUpdateHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bAdminQuery ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetAdminQuery", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetAdminQuery( IntPtr instancePtr, UGCUpdateHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bAdminQuery ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetCloudFileNameFilter", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetCloudFileNameFilter( IntPtr instancePtr, UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pMatchCloudFileName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetCloudFileNameFilter", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetCloudFileNameFilter( IntPtr instancePtr, UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pMatchCloudFileName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetMatchAnyTag", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetMatchAnyTag( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bMatchAnyTag ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetMatchAnyTag", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetMatchAnyTag( IntPtr instancePtr, UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bMatchAnyTag ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetSearchText", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetSearchText( IntPtr instancePtr, UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pSearchText ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetSearchText", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetSearchText( IntPtr instancePtr, UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pSearchText ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetRankedByTrendDays", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetRankedByTrendDays( IntPtr instancePtr, UGCQueryHandle_t handle, uint unDays ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetRankedByTrendDays", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetRankedByTrendDays( IntPtr instancePtr, UGCQueryHandle_t handle, uint unDays ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetTimeCreatedDateRange", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetTimeCreatedDateRange( IntPtr instancePtr, UGCQueryHandle_t handle, uint rtStart, uint rtEnd ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetTimeCreatedDateRange", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetTimeCreatedDateRange( IntPtr instancePtr, UGCQueryHandle_t handle, uint rtStart, uint rtEnd ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetTimeUpdatedDateRange", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetTimeUpdatedDateRange( IntPtr instancePtr, UGCQueryHandle_t handle, uint rtStart, uint rtEnd ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetTimeUpdatedDateRange", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetTimeUpdatedDateRange( IntPtr instancePtr, UGCQueryHandle_t handle, uint rtStart, uint rtEnd ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddRequiredKeyValueTag", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_AddRequiredKeyValueTag( IntPtr instancePtr, UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pKey, InteropHelp.UTF8StringHandle pValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddRequiredKeyValueTag", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_AddRequiredKeyValueTag( IntPtr instancePtr, UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pKey, InteropHelp.UTF8StringHandle pValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RequestUGCDetails", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_RequestUGCDetails( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, uint unMaxAgeSeconds ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RequestUGCDetails", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_RequestUGCDetails( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, uint unMaxAgeSeconds ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateItem", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_CreateItem( IntPtr instancePtr, AppId_t nConsumerAppId, EWorkshopFileType eFileType ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateItem", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_CreateItem( IntPtr instancePtr, AppId_t nConsumerAppId, EWorkshopFileType eFileType ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_StartItemUpdate", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_StartItemUpdate( IntPtr instancePtr, AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_StartItemUpdate", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_StartItemUpdate( IntPtr instancePtr, AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemTitle", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemTitle( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchTitle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemTitle", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetItemTitle( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchTitle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemDescription", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemDescription( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchDescription ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemDescription", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetItemDescription( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchDescription ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemUpdateLanguage", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemUpdateLanguage( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchLanguage ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemUpdateLanguage", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetItemUpdateLanguage( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchLanguage ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemMetadata", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemMetadata( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchMetaData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemMetadata", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetItemMetadata( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchMetaData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemVisibility", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemVisibility( IntPtr instancePtr, UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemVisibility", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetItemVisibility( IntPtr instancePtr, UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemTags", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemTags( IntPtr instancePtr, UGCUpdateHandle_t updateHandle, IntPtr pTags, [MarshalAs(UnmanagedType.I1)] bool bAllowAdminTags ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemTags", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetItemTags( IntPtr instancePtr, UGCUpdateHandle_t updateHandle, IntPtr pTags, [MarshalAs(UnmanagedType.I1)] bool bAllowAdminTags ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemContent", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemContent( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszContentFolder ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemContent", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetItemContent( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszContentFolder ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemPreview", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemPreview( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszPreviewFile ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemPreview", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetItemPreview( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszPreviewFile ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetAllowLegacyUpload", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetAllowLegacyUpload( IntPtr instancePtr, UGCUpdateHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bAllowLegacyUpload ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetAllowLegacyUpload", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetAllowLegacyUpload( IntPtr instancePtr, UGCUpdateHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bAllowLegacyUpload ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveAllItemKeyValueTags", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_RemoveAllItemKeyValueTags( IntPtr instancePtr, UGCUpdateHandle_t handle ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveAllItemKeyValueTags", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_RemoveAllItemKeyValueTags( IntPtr instancePtr, UGCUpdateHandle_t handle ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveItemKeyValueTags", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_RemoveItemKeyValueTags( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchKey ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveItemKeyValueTags", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_RemoveItemKeyValueTags( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchKey ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddItemKeyValueTag", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_AddItemKeyValueTag( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddItemKeyValueTag", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_AddItemKeyValueTag( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddItemPreviewFile", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_AddItemPreviewFile( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszPreviewFile, EItemPreviewType type ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddItemPreviewFile", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_AddItemPreviewFile( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszPreviewFile, EItemPreviewType type ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddItemPreviewVideo", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_AddItemPreviewVideo( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszVideoID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddItemPreviewVideo", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_AddItemPreviewVideo( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszVideoID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_UpdateItemPreviewFile", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_UpdateItemPreviewFile( IntPtr instancePtr, UGCUpdateHandle_t handle, uint index, InteropHelp.UTF8StringHandle pszPreviewFile ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_UpdateItemPreviewFile", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_UpdateItemPreviewFile( IntPtr instancePtr, UGCUpdateHandle_t handle, uint index, InteropHelp.UTF8StringHandle pszPreviewFile ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_UpdateItemPreviewVideo", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_UpdateItemPreviewVideo( IntPtr instancePtr, UGCUpdateHandle_t handle, uint index, InteropHelp.UTF8StringHandle pszVideoID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_UpdateItemPreviewVideo", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_UpdateItemPreviewVideo( IntPtr instancePtr, UGCUpdateHandle_t handle, uint index, InteropHelp.UTF8StringHandle pszVideoID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveItemPreview", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_RemoveItemPreview( IntPtr instancePtr, UGCUpdateHandle_t handle, uint index ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveItemPreview", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_RemoveItemPreview( IntPtr instancePtr, UGCUpdateHandle_t handle, uint index ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddContentDescriptor", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_AddContentDescriptor( IntPtr instancePtr, UGCUpdateHandle_t handle, EUGCContentDescriptorID descid ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddContentDescriptor", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_AddContentDescriptor( IntPtr instancePtr, UGCUpdateHandle_t handle, EUGCContentDescriptorID descid ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveContentDescriptor", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_RemoveContentDescriptor( IntPtr instancePtr, UGCUpdateHandle_t handle, EUGCContentDescriptorID descid ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveContentDescriptor", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_RemoveContentDescriptor( IntPtr instancePtr, UGCUpdateHandle_t handle, EUGCContentDescriptorID descid ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetRequiredGameVersions", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetRequiredGameVersions( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszGameBranchMin, InteropHelp.UTF8StringHandle pszGameBranchMax ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetRequiredGameVersions", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetRequiredGameVersions( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszGameBranchMin, InteropHelp.UTF8StringHandle pszGameBranchMax ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SubmitItemUpdate", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_SubmitItemUpdate( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchChangeNote ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SubmitItemUpdate", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_SubmitItemUpdate( IntPtr instancePtr, UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchChangeNote ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetItemUpdateProgress", CallingConvention = CallingConvention.Cdecl)] - public static extern EItemUpdateStatus ISteamUGC_GetItemUpdateProgress( IntPtr instancePtr, UGCUpdateHandle_t handle, out ulong punBytesProcessed, out ulong punBytesTotal ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetItemUpdateProgress", CallingConvention = CallingConvention.Cdecl)] + public static extern EItemUpdateStatus ISteamUGC_GetItemUpdateProgress( IntPtr instancePtr, UGCUpdateHandle_t handle, out ulong punBytesProcessed, out ulong punBytesTotal ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetUserItemVote", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_SetUserItemVote( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, [MarshalAs(UnmanagedType.I1)] bool bVoteUp ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetUserItemVote", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_SetUserItemVote( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, [MarshalAs(UnmanagedType.I1)] bool bVoteUp ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetUserItemVote", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_GetUserItemVote( IntPtr instancePtr, PublishedFileId_t nPublishedFileID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetUserItemVote", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_GetUserItemVote( IntPtr instancePtr, PublishedFileId_t nPublishedFileID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddItemToFavorites", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_AddItemToFavorites( IntPtr instancePtr, AppId_t nAppId, PublishedFileId_t nPublishedFileID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddItemToFavorites", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_AddItemToFavorites( IntPtr instancePtr, AppId_t nAppId, PublishedFileId_t nPublishedFileID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveItemFromFavorites", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_RemoveItemFromFavorites( IntPtr instancePtr, AppId_t nAppId, PublishedFileId_t nPublishedFileID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveItemFromFavorites", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_RemoveItemFromFavorites( IntPtr instancePtr, AppId_t nAppId, PublishedFileId_t nPublishedFileID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SubscribeItem", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_SubscribeItem( IntPtr instancePtr, PublishedFileId_t nPublishedFileID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SubscribeItem", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_SubscribeItem( IntPtr instancePtr, PublishedFileId_t nPublishedFileID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_UnsubscribeItem", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_UnsubscribeItem( IntPtr instancePtr, PublishedFileId_t nPublishedFileID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_UnsubscribeItem", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_UnsubscribeItem( IntPtr instancePtr, PublishedFileId_t nPublishedFileID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetNumSubscribedItems", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetNumSubscribedItems( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bIncludeLocallyDisabled ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetNumSubscribedItems", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUGC_GetNumSubscribedItems( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bIncludeLocallyDisabled ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetSubscribedItems", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetSubscribedItems( IntPtr instancePtr, [In, Out] PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries, [MarshalAs(UnmanagedType.I1)] bool bIncludeLocallyDisabled ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetSubscribedItems", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUGC_GetSubscribedItems( IntPtr instancePtr, [In, Out] PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries, [MarshalAs(UnmanagedType.I1)] bool bIncludeLocallyDisabled ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetItemState", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetItemState( IntPtr instancePtr, PublishedFileId_t nPublishedFileID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetItemState", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUGC_GetItemState( IntPtr instancePtr, PublishedFileId_t nPublishedFileID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetItemInstallInfo", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetItemInstallInfo( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, out ulong punSizeOnDisk, IntPtr pchFolder, uint cchFolderSize, out uint punTimeStamp ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetItemInstallInfo", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_GetItemInstallInfo( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, out ulong punSizeOnDisk, IntPtr pchFolder, uint cchFolderSize, out uint punTimeStamp ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetItemDownloadInfo", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetItemDownloadInfo( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, out ulong punBytesDownloaded, out ulong punBytesTotal ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetItemDownloadInfo", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_GetItemDownloadInfo( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, out ulong punBytesDownloaded, out ulong punBytesTotal ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_DownloadItem", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_DownloadItem( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, [MarshalAs(UnmanagedType.I1)] bool bHighPriority ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_DownloadItem", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_DownloadItem( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, [MarshalAs(UnmanagedType.I1)] bool bHighPriority ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_BInitWorkshopForGameServer", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_BInitWorkshopForGameServer( IntPtr instancePtr, DepotId_t unWorkshopDepotID, InteropHelp.UTF8StringHandle pszFolder ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_BInitWorkshopForGameServer", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_BInitWorkshopForGameServer( IntPtr instancePtr, DepotId_t unWorkshopDepotID, InteropHelp.UTF8StringHandle pszFolder ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SuspendDownloads", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUGC_SuspendDownloads( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bSuspend ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SuspendDownloads", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUGC_SuspendDownloads( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bSuspend ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_StartPlaytimeTracking", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_StartPlaytimeTracking( IntPtr instancePtr, [In, Out] PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_StartPlaytimeTracking", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_StartPlaytimeTracking( IntPtr instancePtr, [In, Out] PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_StopPlaytimeTracking", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_StopPlaytimeTracking( IntPtr instancePtr, [In, Out] PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_StopPlaytimeTracking", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_StopPlaytimeTracking( IntPtr instancePtr, [In, Out] PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_StopPlaytimeTrackingForAllItems( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_StopPlaytimeTrackingForAllItems( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddDependency", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_AddDependency( IntPtr instancePtr, PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddDependency", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_AddDependency( IntPtr instancePtr, PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveDependency", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_RemoveDependency( IntPtr instancePtr, PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveDependency", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_RemoveDependency( IntPtr instancePtr, PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddAppDependency", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_AddAppDependency( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, AppId_t nAppID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddAppDependency", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_AddAppDependency( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, AppId_t nAppID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveAppDependency", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_RemoveAppDependency( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, AppId_t nAppID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveAppDependency", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_RemoveAppDependency( IntPtr instancePtr, PublishedFileId_t nPublishedFileID, AppId_t nAppID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetAppDependencies", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_GetAppDependencies( IntPtr instancePtr, PublishedFileId_t nPublishedFileID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetAppDependencies", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_GetAppDependencies( IntPtr instancePtr, PublishedFileId_t nPublishedFileID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_DeleteItem", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_DeleteItem( IntPtr instancePtr, PublishedFileId_t nPublishedFileID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_DeleteItem", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_DeleteItem( IntPtr instancePtr, PublishedFileId_t nPublishedFileID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_ShowWorkshopEULA", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_ShowWorkshopEULA( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_ShowWorkshopEULA", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_ShowWorkshopEULA( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetWorkshopEULAStatus", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_GetWorkshopEULAStatus( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetWorkshopEULAStatus", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUGC_GetWorkshopEULAStatus( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetUserContentDescriptorPreferences", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetUserContentDescriptorPreferences( IntPtr instancePtr, out EUGCContentDescriptorID pvecDescriptors, uint cMaxEntries ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetUserContentDescriptorPreferences", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUGC_GetUserContentDescriptorPreferences( IntPtr instancePtr, out EUGCContentDescriptorID pvecDescriptors, uint cMaxEntries ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemsDisabledLocally", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemsDisabledLocally( IntPtr instancePtr, out PublishedFileId_t pvecPublishedFileIDs, uint unNumPublishedFileIDs, [MarshalAs(UnmanagedType.I1)] bool bDisabledLocally ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetItemsDisabledLocally", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetItemsDisabledLocally( IntPtr instancePtr, out PublishedFileId_t pvecPublishedFileIDs, uint unNumPublishedFileIDs, [MarshalAs(UnmanagedType.I1)] bool bDisabledLocally ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetSubscriptionsLoadOrder", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetSubscriptionsLoadOrder( IntPtr instancePtr, out PublishedFileId_t pvecPublishedFileIDs, uint unNumPublishedFileIDs ); - #endregion - #region SteamUser - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetHSteamUser", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUser_GetHSteamUser( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetSubscriptionsLoadOrder", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUGC_SetSubscriptionsLoadOrder( IntPtr instancePtr, out PublishedFileId_t pvecPublishedFileIDs, uint unNumPublishedFileIDs ); + #endregion + #region SteamUser + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetHSteamUser", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamUser_GetHSteamUser( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BLoggedOn", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUser_BLoggedOn( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BLoggedOn", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUser_BLoggedOn( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetSteamID", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUser_GetSteamID( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetSteamID", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUser_GetSteamID( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_InitiateGameConnection_DEPRECATED", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUser_InitiateGameConnection_DEPRECATED( IntPtr instancePtr, byte[] pAuthBlob, int cbMaxAuthBlob, CSteamID steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs(UnmanagedType.I1)] bool bSecure ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_InitiateGameConnection_DEPRECATED", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamUser_InitiateGameConnection_DEPRECATED( IntPtr instancePtr, byte[] pAuthBlob, int cbMaxAuthBlob, CSteamID steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs(UnmanagedType.I1)] bool bSecure ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_TerminateGameConnection_DEPRECATED", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_TerminateGameConnection_DEPRECATED( IntPtr instancePtr, uint unIPServer, ushort usPortServer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_TerminateGameConnection_DEPRECATED", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUser_TerminateGameConnection_DEPRECATED( IntPtr instancePtr, uint unIPServer, ushort usPortServer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_TrackAppUsageEvent", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_TrackAppUsageEvent( IntPtr instancePtr, CGameID gameID, int eAppUsageEvent, InteropHelp.UTF8StringHandle pchExtraInfo ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_TrackAppUsageEvent", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUser_TrackAppUsageEvent( IntPtr instancePtr, CGameID gameID, int eAppUsageEvent, InteropHelp.UTF8StringHandle pchExtraInfo ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetUserDataFolder", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUser_GetUserDataFolder( IntPtr instancePtr, IntPtr pchBuffer, int cubBuffer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetUserDataFolder", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUser_GetUserDataFolder( IntPtr instancePtr, IntPtr pchBuffer, int cubBuffer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_StartVoiceRecording", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_StartVoiceRecording( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_StartVoiceRecording", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUser_StartVoiceRecording( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_StopVoiceRecording", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_StopVoiceRecording( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_StopVoiceRecording", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUser_StopVoiceRecording( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetAvailableVoice", CallingConvention = CallingConvention.Cdecl)] - public static extern EVoiceResult ISteamUser_GetAvailableVoice( IntPtr instancePtr, out uint pcbCompressed, IntPtr pcbUncompressed_Deprecated, uint nUncompressedVoiceDesiredSampleRate_Deprecated ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetAvailableVoice", CallingConvention = CallingConvention.Cdecl)] + public static extern EVoiceResult ISteamUser_GetAvailableVoice( IntPtr instancePtr, out uint pcbCompressed, IntPtr pcbUncompressed_Deprecated, uint nUncompressedVoiceDesiredSampleRate_Deprecated ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetVoice", CallingConvention = CallingConvention.Cdecl)] - public static extern EVoiceResult ISteamUser_GetVoice( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bWantCompressed, byte[] pDestBuffer, uint cbDestBufferSize, out uint nBytesWritten, [MarshalAs(UnmanagedType.I1)] bool bWantUncompressed_Deprecated, IntPtr pUncompressedDestBuffer_Deprecated, uint cbUncompressedDestBufferSize_Deprecated, IntPtr nUncompressBytesWritten_Deprecated, uint nUncompressedVoiceDesiredSampleRate_Deprecated ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetVoice", CallingConvention = CallingConvention.Cdecl)] + public static extern EVoiceResult ISteamUser_GetVoice( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bWantCompressed, byte[] pDestBuffer, uint cbDestBufferSize, out uint nBytesWritten, [MarshalAs(UnmanagedType.I1)] bool bWantUncompressed_Deprecated, IntPtr pUncompressedDestBuffer_Deprecated, uint cbUncompressedDestBufferSize_Deprecated, IntPtr nUncompressBytesWritten_Deprecated, uint nUncompressedVoiceDesiredSampleRate_Deprecated ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_DecompressVoice", CallingConvention = CallingConvention.Cdecl)] - public static extern EVoiceResult ISteamUser_DecompressVoice( IntPtr instancePtr, byte[] pCompressed, uint cbCompressed, byte[] pDestBuffer, uint cbDestBufferSize, out uint nBytesWritten, uint nDesiredSampleRate ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_DecompressVoice", CallingConvention = CallingConvention.Cdecl)] + public static extern EVoiceResult ISteamUser_DecompressVoice( IntPtr instancePtr, byte[] pCompressed, uint cbCompressed, byte[] pDestBuffer, uint cbDestBufferSize, out uint nBytesWritten, uint nDesiredSampleRate ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetVoiceOptimalSampleRate", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUser_GetVoiceOptimalSampleRate( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetVoiceOptimalSampleRate", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUser_GetVoiceOptimalSampleRate( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetAuthSessionTicket", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUser_GetAuthSessionTicket( IntPtr instancePtr, byte[] pTicket, int cbMaxTicket, out uint pcbTicket, ref SteamNetworkingIdentity pSteamNetworkingIdentity ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetAuthSessionTicket", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUser_GetAuthSessionTicket( IntPtr instancePtr, byte[] pTicket, int cbMaxTicket, out uint pcbTicket, ref SteamNetworkingIdentity pSteamNetworkingIdentity ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetAuthTicketForWebApi", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUser_GetAuthTicketForWebApi( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchIdentity ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetAuthTicketForWebApi", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUser_GetAuthTicketForWebApi( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchIdentity ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BeginAuthSession", CallingConvention = CallingConvention.Cdecl)] - public static extern EBeginAuthSessionResult ISteamUser_BeginAuthSession( IntPtr instancePtr, byte[] pAuthTicket, int cbAuthTicket, CSteamID steamID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BeginAuthSession", CallingConvention = CallingConvention.Cdecl)] + public static extern EBeginAuthSessionResult ISteamUser_BeginAuthSession( IntPtr instancePtr, byte[] pAuthTicket, int cbAuthTicket, CSteamID steamID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_EndAuthSession", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_EndAuthSession( IntPtr instancePtr, CSteamID steamID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_EndAuthSession", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUser_EndAuthSession( IntPtr instancePtr, CSteamID steamID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_CancelAuthTicket", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_CancelAuthTicket( IntPtr instancePtr, HAuthTicket hAuthTicket ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_CancelAuthTicket", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUser_CancelAuthTicket( IntPtr instancePtr, HAuthTicket hAuthTicket ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_UserHasLicenseForApp", CallingConvention = CallingConvention.Cdecl)] - public static extern EUserHasLicenseForAppResult ISteamUser_UserHasLicenseForApp( IntPtr instancePtr, CSteamID steamID, AppId_t appID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_UserHasLicenseForApp", CallingConvention = CallingConvention.Cdecl)] + public static extern EUserHasLicenseForAppResult ISteamUser_UserHasLicenseForApp( IntPtr instancePtr, CSteamID steamID, AppId_t appID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BIsBehindNAT", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUser_BIsBehindNAT( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BIsBehindNAT", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUser_BIsBehindNAT( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_AdvertiseGame", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_AdvertiseGame( IntPtr instancePtr, CSteamID steamIDGameServer, uint unIPServer, ushort usPortServer ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_AdvertiseGame", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUser_AdvertiseGame( IntPtr instancePtr, CSteamID steamIDGameServer, uint unIPServer, ushort usPortServer ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_RequestEncryptedAppTicket", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUser_RequestEncryptedAppTicket( IntPtr instancePtr, byte[] pDataToInclude, int cbDataToInclude ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_RequestEncryptedAppTicket", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUser_RequestEncryptedAppTicket( IntPtr instancePtr, byte[] pDataToInclude, int cbDataToInclude ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetEncryptedAppTicket", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUser_GetEncryptedAppTicket( IntPtr instancePtr, byte[] pTicket, int cbMaxTicket, out uint pcbTicket ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetEncryptedAppTicket", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUser_GetEncryptedAppTicket( IntPtr instancePtr, byte[] pTicket, int cbMaxTicket, out uint pcbTicket ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetGameBadgeLevel", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUser_GetGameBadgeLevel( IntPtr instancePtr, int nSeries, [MarshalAs(UnmanagedType.I1)] bool bFoil ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetGameBadgeLevel", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamUser_GetGameBadgeLevel( IntPtr instancePtr, int nSeries, [MarshalAs(UnmanagedType.I1)] bool bFoil ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetPlayerSteamLevel", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUser_GetPlayerSteamLevel( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetPlayerSteamLevel", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamUser_GetPlayerSteamLevel( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_RequestStoreAuthURL", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUser_RequestStoreAuthURL( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchRedirectURL ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_RequestStoreAuthURL", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUser_RequestStoreAuthURL( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchRedirectURL ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BIsPhoneVerified", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUser_BIsPhoneVerified( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BIsPhoneVerified", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUser_BIsPhoneVerified( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BIsTwoFactorEnabled", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUser_BIsTwoFactorEnabled( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BIsTwoFactorEnabled", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUser_BIsTwoFactorEnabled( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BIsPhoneIdentifying", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUser_BIsPhoneIdentifying( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BIsPhoneIdentifying", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUser_BIsPhoneIdentifying( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BIsPhoneRequiringVerification", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUser_BIsPhoneRequiringVerification( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BIsPhoneRequiringVerification", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUser_BIsPhoneRequiringVerification( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetMarketEligibility", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUser_GetMarketEligibility( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetMarketEligibility", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUser_GetMarketEligibility( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetDurationControl", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUser_GetDurationControl( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_GetDurationControl", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUser_GetDurationControl( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BSetDurationControlOnlineState", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUser_BSetDurationControlOnlineState( IntPtr instancePtr, EDurationControlOnlineState eNewState ); - #endregion - #region SteamUserStats - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetStatInt32", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetStatInt32( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out int pData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUser_BSetDurationControlOnlineState", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUser_BSetDurationControlOnlineState( IntPtr instancePtr, EDurationControlOnlineState eNewState ); + #endregion + #region SteamUserStats + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetStatInt32", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetStatInt32( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out int pData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetStatFloat", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetStatFloat( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out float pData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetStatFloat", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetStatFloat( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out float pData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_SetStatInt32", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_SetStatInt32( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, int nData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_SetStatInt32", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_SetStatInt32( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, int nData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_SetStatFloat", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_SetStatFloat( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, float fData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_SetStatFloat", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_SetStatFloat( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, float fData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_UpdateAvgRateStat", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_UpdateAvgRateStat( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, float flCountThisSession, double dSessionLength ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_UpdateAvgRateStat", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_UpdateAvgRateStat( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, float flCountThisSession, double dSessionLength ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetAchievement( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out bool pbAchieved ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetAchievement( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out bool pbAchieved ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_SetAchievement", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_SetAchievement( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_SetAchievement", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_SetAchievement( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_ClearAchievement", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_ClearAchievement( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_ClearAchievement", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_ClearAchievement( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetAchievementAndUnlockTime( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out bool pbAchieved, out uint punUnlockTime ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetAchievementAndUnlockTime( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out bool pbAchieved, out uint punUnlockTime ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_StoreStats", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_StoreStats( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_StoreStats", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_StoreStats( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementIcon", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUserStats_GetAchievementIcon( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementIcon", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamUserStats_GetAchievementIcon( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamUserStats_GetAchievementDisplayAttribute( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, InteropHelp.UTF8StringHandle pchKey ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamUserStats_GetAchievementDisplayAttribute( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, InteropHelp.UTF8StringHandle pchKey ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_IndicateAchievementProgress", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_IndicateAchievementProgress( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, uint nCurProgress, uint nMaxProgress ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_IndicateAchievementProgress", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_IndicateAchievementProgress( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, uint nCurProgress, uint nMaxProgress ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetNumAchievements", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUserStats_GetNumAchievements( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetNumAchievements", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUserStats_GetNumAchievements( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementName", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamUserStats_GetAchievementName( IntPtr instancePtr, uint iAchievement ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementName", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamUserStats_GetAchievementName( IntPtr instancePtr, uint iAchievement ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_RequestUserStats", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_RequestUserStats( IntPtr instancePtr, CSteamID steamIDUser ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_RequestUserStats", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUserStats_RequestUserStats( IntPtr instancePtr, CSteamID steamIDUser ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetUserStatInt32", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetUserStatInt32( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out int pData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetUserStatInt32", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetUserStatInt32( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out int pData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetUserStatFloat", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetUserStatFloat( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out float pData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetUserStatFloat", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetUserStatFloat( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out float pData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetUserAchievement( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out bool pbAchieved ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetUserAchievement( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out bool pbAchieved ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetUserAchievementAndUnlockTime( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out bool pbAchieved, out uint punUnlockTime ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetUserAchievementAndUnlockTime( IntPtr instancePtr, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out bool pbAchieved, out uint punUnlockTime ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_ResetAllStats", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_ResetAllStats( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bAchievementsToo ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_ResetAllStats", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_ResetAllStats( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bAchievementsToo ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_FindOrCreateLeaderboard", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_FindOrCreateLeaderboard( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchLeaderboardName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_FindOrCreateLeaderboard", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUserStats_FindOrCreateLeaderboard( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchLeaderboardName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_FindLeaderboard", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_FindLeaderboard( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchLeaderboardName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_FindLeaderboard", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUserStats_FindLeaderboard( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchLeaderboardName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardName", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamUserStats_GetLeaderboardName( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardName", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamUserStats_GetLeaderboardName( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardEntryCount", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUserStats_GetLeaderboardEntryCount( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardEntryCount", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamUserStats_GetLeaderboardEntryCount( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardSortMethod", CallingConvention = CallingConvention.Cdecl)] - public static extern ELeaderboardSortMethod ISteamUserStats_GetLeaderboardSortMethod( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardSortMethod", CallingConvention = CallingConvention.Cdecl)] + public static extern ELeaderboardSortMethod ISteamUserStats_GetLeaderboardSortMethod( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardDisplayType", CallingConvention = CallingConvention.Cdecl)] - public static extern ELeaderboardDisplayType ISteamUserStats_GetLeaderboardDisplayType( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardDisplayType", CallingConvention = CallingConvention.Cdecl)] + public static extern ELeaderboardDisplayType ISteamUserStats_GetLeaderboardDisplayType( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_DownloadLeaderboardEntries", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_DownloadLeaderboardEntries( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_DownloadLeaderboardEntries", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUserStats_DownloadLeaderboardEntries( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_DownloadLeaderboardEntriesForUsers( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard, [In, Out] CSteamID[] prgUsers, int cUsers ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUserStats_DownloadLeaderboardEntriesForUsers( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard, [In, Out] CSteamID[] prgUsers, int cUsers ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetDownloadedLeaderboardEntry( IntPtr instancePtr, SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, out LeaderboardEntry_t pLeaderboardEntry, [In, Out] int[] pDetails, int cDetailsMax ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetDownloadedLeaderboardEntry( IntPtr instancePtr, SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, out LeaderboardEntry_t pLeaderboardEntry, [In, Out] int[] pDetails, int cDetailsMax ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_UploadLeaderboardScore", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_UploadLeaderboardScore( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int nScore, [In, Out] int[] pScoreDetails, int cScoreDetailsCount ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_UploadLeaderboardScore", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUserStats_UploadLeaderboardScore( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int nScore, [In, Out] int[] pScoreDetails, int cScoreDetailsCount ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_AttachLeaderboardUGC", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_AttachLeaderboardUGC( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_AttachLeaderboardUGC", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUserStats_AttachLeaderboardUGC( IntPtr instancePtr, SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_GetNumberOfCurrentPlayers( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUserStats_GetNumberOfCurrentPlayers( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_RequestGlobalAchievementPercentages( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUserStats_RequestGlobalAchievementPercentages( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUserStats_GetMostAchievedAchievementInfo( IntPtr instancePtr, IntPtr pchName, uint unNameBufLen, out float pflPercent, out bool pbAchieved ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamUserStats_GetMostAchievedAchievementInfo( IntPtr instancePtr, IntPtr pchName, uint unNameBufLen, out float pflPercent, out bool pbAchieved ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUserStats_GetNextMostAchievedAchievementInfo( IntPtr instancePtr, int iIteratorPrevious, IntPtr pchName, uint unNameBufLen, out float pflPercent, out bool pbAchieved ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamUserStats_GetNextMostAchievedAchievementInfo( IntPtr instancePtr, int iIteratorPrevious, IntPtr pchName, uint unNameBufLen, out float pflPercent, out bool pbAchieved ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAchievedPercent", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetAchievementAchievedPercent( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out float pflPercent ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAchievedPercent", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetAchievementAchievedPercent( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out float pflPercent ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalStats", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_RequestGlobalStats( IntPtr instancePtr, int nHistoryDays ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalStats", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUserStats_RequestGlobalStats( IntPtr instancePtr, int nHistoryDays ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatInt64", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetGlobalStatInt64( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchStatName, out long pData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatInt64", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetGlobalStatInt64( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchStatName, out long pData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatDouble", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetGlobalStatDouble( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchStatName, out double pData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatDouble", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetGlobalStatDouble( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchStatName, out double pData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatHistoryInt64", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUserStats_GetGlobalStatHistoryInt64( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchStatName, [In, Out] long[] pData, uint cubData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatHistoryInt64", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamUserStats_GetGlobalStatHistoryInt64( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchStatName, [In, Out] long[] pData, uint cubData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatHistoryDouble", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUserStats_GetGlobalStatHistoryDouble( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchStatName, [In, Out] double[] pData, uint cubData ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatHistoryDouble", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamUserStats_GetGlobalStatHistoryDouble( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchStatName, [In, Out] double[] pData, uint cubData ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementProgressLimitsInt32", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetAchievementProgressLimitsInt32( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out int pnMinProgress, out int pnMaxProgress ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementProgressLimitsInt32", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetAchievementProgressLimitsInt32( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out int pnMinProgress, out int pnMaxProgress ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementProgressLimitsFloat", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetAchievementProgressLimitsFloat( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out float pfMinProgress, out float pfMaxProgress ); - #endregion - #region SteamUtils - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetSecondsSinceAppActive", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUtils_GetSecondsSinceAppActive( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementProgressLimitsFloat", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUserStats_GetAchievementProgressLimitsFloat( IntPtr instancePtr, InteropHelp.UTF8StringHandle pchName, out float pfMinProgress, out float pfMaxProgress ); + #endregion + #region SteamUtils + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetSecondsSinceAppActive", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUtils_GetSecondsSinceAppActive( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetSecondsSinceComputerActive", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUtils_GetSecondsSinceComputerActive( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetSecondsSinceComputerActive", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUtils_GetSecondsSinceComputerActive( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetConnectedUniverse", CallingConvention = CallingConvention.Cdecl)] - public static extern EUniverse ISteamUtils_GetConnectedUniverse( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetConnectedUniverse", CallingConvention = CallingConvention.Cdecl)] + public static extern EUniverse ISteamUtils_GetConnectedUniverse( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetServerRealTime", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUtils_GetServerRealTime( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetServerRealTime", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUtils_GetServerRealTime( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetIPCountry", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamUtils_GetIPCountry( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetIPCountry", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamUtils_GetIPCountry( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetImageSize", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_GetImageSize( IntPtr instancePtr, int iImage, out uint pnWidth, out uint pnHeight ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetImageSize", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_GetImageSize( IntPtr instancePtr, int iImage, out uint pnWidth, out uint pnHeight ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetImageRGBA", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_GetImageRGBA( IntPtr instancePtr, int iImage, byte[] pubDest, int nDestBufferSize ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetImageRGBA", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_GetImageRGBA( IntPtr instancePtr, int iImage, byte[] pubDest, int nDestBufferSize ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetCurrentBatteryPower", CallingConvention = CallingConvention.Cdecl)] - public static extern byte ISteamUtils_GetCurrentBatteryPower( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetCurrentBatteryPower", CallingConvention = CallingConvention.Cdecl)] + public static extern byte ISteamUtils_GetCurrentBatteryPower( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetAppID", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUtils_GetAppID( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetAppID", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUtils_GetAppID( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationPosition", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUtils_SetOverlayNotificationPosition( IntPtr instancePtr, ENotificationPosition eNotificationPosition ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationPosition", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUtils_SetOverlayNotificationPosition( IntPtr instancePtr, ENotificationPosition eNotificationPosition ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_IsAPICallCompleted( IntPtr instancePtr, SteamAPICall_t hSteamAPICall, out bool pbFailed ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_IsAPICallCompleted( IntPtr instancePtr, SteamAPICall_t hSteamAPICall, out bool pbFailed ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetAPICallFailureReason", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamAPICallFailure ISteamUtils_GetAPICallFailureReason( IntPtr instancePtr, SteamAPICall_t hSteamAPICall ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetAPICallFailureReason", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamAPICallFailure ISteamUtils_GetAPICallFailureReason( IntPtr instancePtr, SteamAPICall_t hSteamAPICall ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_GetAPICallResult( IntPtr instancePtr, SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, out bool pbFailed ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_GetAPICallResult( IntPtr instancePtr, SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, out bool pbFailed ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetIPCCallCount", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUtils_GetIPCCallCount( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetIPCCallCount", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUtils_GetIPCCallCount( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_SetWarningMessageHook", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUtils_SetWarningMessageHook( IntPtr instancePtr, SteamAPIWarningMessageHook_t pFunction ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_SetWarningMessageHook", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUtils_SetWarningMessageHook( IntPtr instancePtr, SteamAPIWarningMessageHook_t pFunction ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsOverlayEnabled", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_IsOverlayEnabled( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsOverlayEnabled", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_IsOverlayEnabled( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_BOverlayNeedsPresent", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_BOverlayNeedsPresent( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_BOverlayNeedsPresent", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_BOverlayNeedsPresent( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_CheckFileSignature", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUtils_CheckFileSignature( IntPtr instancePtr, InteropHelp.UTF8StringHandle szFileName ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_CheckFileSignature", CallingConvention = CallingConvention.Cdecl)] + public static extern ulong ISteamUtils_CheckFileSignature( IntPtr instancePtr, InteropHelp.UTF8StringHandle szFileName ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_ShowGamepadTextInput", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_ShowGamepadTextInput( IntPtr instancePtr, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, InteropHelp.UTF8StringHandle pchDescription, uint unCharMax, InteropHelp.UTF8StringHandle pchExistingText ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_ShowGamepadTextInput", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_ShowGamepadTextInput( IntPtr instancePtr, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, InteropHelp.UTF8StringHandle pchDescription, uint unCharMax, InteropHelp.UTF8StringHandle pchExistingText ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextLength", CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUtils_GetEnteredGamepadTextLength( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextLength", CallingConvention = CallingConvention.Cdecl)] + public static extern uint ISteamUtils_GetEnteredGamepadTextLength( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextInput", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_GetEnteredGamepadTextInput( IntPtr instancePtr, IntPtr pchText, uint cchText ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextInput", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_GetEnteredGamepadTextInput( IntPtr instancePtr, IntPtr pchText, uint cchText ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetSteamUILanguage", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamUtils_GetSteamUILanguage( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetSteamUILanguage", CallingConvention = CallingConvention.Cdecl)] + public static extern IntPtr ISteamUtils_GetSteamUILanguage( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsSteamRunningInVR", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_IsSteamRunningInVR( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsSteamRunningInVR", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_IsSteamRunningInVR( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationInset", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUtils_SetOverlayNotificationInset( IntPtr instancePtr, int nHorizontalInset, int nVerticalInset ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationInset", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUtils_SetOverlayNotificationInset( IntPtr instancePtr, int nHorizontalInset, int nVerticalInset ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsSteamInBigPictureMode", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_IsSteamInBigPictureMode( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsSteamInBigPictureMode", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_IsSteamInBigPictureMode( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_StartVRDashboard", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUtils_StartVRDashboard( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_StartVRDashboard", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUtils_StartVRDashboard( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_IsVRHeadsetStreamingEnabled( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_IsVRHeadsetStreamingEnabled( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUtils_SetVRHeadsetStreamingEnabled( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bEnabled ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUtils_SetVRHeadsetStreamingEnabled( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bEnabled ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsSteamChinaLauncher", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_IsSteamChinaLauncher( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsSteamChinaLauncher", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_IsSteamChinaLauncher( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_InitFilterText", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_InitFilterText( IntPtr instancePtr, uint unFilterOptions ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_InitFilterText", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_InitFilterText( IntPtr instancePtr, uint unFilterOptions ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_FilterText", CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUtils_FilterText( IntPtr instancePtr, ETextFilteringContext eContext, CSteamID sourceSteamID, InteropHelp.UTF8StringHandle pchInputMessage, IntPtr pchOutFilteredText, uint nByteSizeOutFilteredText ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_FilterText", CallingConvention = CallingConvention.Cdecl)] + public static extern int ISteamUtils_FilterText( IntPtr instancePtr, ETextFilteringContext eContext, CSteamID sourceSteamID, InteropHelp.UTF8StringHandle pchInputMessage, IntPtr pchOutFilteredText, uint nByteSizeOutFilteredText ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetIPv6ConnectivityState", CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamIPv6ConnectivityState ISteamUtils_GetIPv6ConnectivityState( IntPtr instancePtr, ESteamIPv6ConnectivityProtocol eProtocol ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetIPv6ConnectivityState", CallingConvention = CallingConvention.Cdecl)] + public static extern ESteamIPv6ConnectivityState ISteamUtils_GetIPv6ConnectivityState( IntPtr instancePtr, ESteamIPv6ConnectivityProtocol eProtocol ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsSteamRunningOnSteamDeck", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_IsSteamRunningOnSteamDeck( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsSteamRunningOnSteamDeck", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_IsSteamRunningOnSteamDeck( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_ShowFloatingGamepadTextInput", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_ShowFloatingGamepadTextInput( IntPtr instancePtr, EFloatingGamepadTextInputMode eKeyboardMode, int nTextFieldXPosition, int nTextFieldYPosition, int nTextFieldWidth, int nTextFieldHeight ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_ShowFloatingGamepadTextInput", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_ShowFloatingGamepadTextInput( IntPtr instancePtr, EFloatingGamepadTextInputMode eKeyboardMode, int nTextFieldXPosition, int nTextFieldYPosition, int nTextFieldWidth, int nTextFieldHeight ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_SetGameLauncherMode", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUtils_SetGameLauncherMode( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bLauncherMode ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_SetGameLauncherMode", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamUtils_SetGameLauncherMode( IntPtr instancePtr, [MarshalAs(UnmanagedType.I1)] bool bLauncherMode ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_DismissFloatingGamepadTextInput", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_DismissFloatingGamepadTextInput( IntPtr instancePtr ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_DismissFloatingGamepadTextInput", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_DismissFloatingGamepadTextInput( IntPtr instancePtr ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_DismissGamepadTextInput", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_DismissGamepadTextInput( IntPtr instancePtr ); - #endregion - #region SteamVideo - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamVideo_GetVideoURL", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamVideo_GetVideoURL( IntPtr instancePtr, AppId_t unVideoAppID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamUtils_DismissGamepadTextInput", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamUtils_DismissGamepadTextInput( IntPtr instancePtr ); + #endregion + #region SteamVideo + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamVideo_GetVideoURL", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamVideo_GetVideoURL( IntPtr instancePtr, AppId_t unVideoAppID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamVideo_IsBroadcasting", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamVideo_IsBroadcasting( IntPtr instancePtr, out int pnNumViewers ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamVideo_IsBroadcasting", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamVideo_IsBroadcasting( IntPtr instancePtr, out int pnNumViewers ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamVideo_GetOPFSettings", CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamVideo_GetOPFSettings( IntPtr instancePtr, AppId_t unVideoAppID ); + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamVideo_GetOPFSettings", CallingConvention = CallingConvention.Cdecl)] + public static extern void ISteamVideo_GetOPFSettings( IntPtr instancePtr, AppId_t unVideoAppID ); - [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamVideo_GetOPFStringForApp", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamVideo_GetOPFStringForApp( IntPtr instancePtr, AppId_t unVideoAppID, IntPtr pchBuffer, ref int pnBufferSize ); - #endregion - } + [DllImport(NativeLibraryName, EntryPoint = "SteamAPI_ISteamVideo_GetOPFStringForApp", CallingConvention = CallingConvention.Cdecl)] + [return: MarshalAs(UnmanagedType.I1)] + public static extern bool ISteamVideo_GetOPFStringForApp( IntPtr instancePtr, AppId_t unVideoAppID, IntPtr pchBuffer, ref int pnBufferSize ); + #endregion } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/SteamCallbacks.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/SteamCallbacks.cs index 440802902..c042e93a2 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/SteamCallbacks.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/SteamCallbacks.cs @@ -1,2940 +1,3143 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - // callbacks - //----------------------------------------------------------------------------- - // Purpose: posted after the user gains ownership of DLC & that DLC is installed - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamAppsCallbacks + 5)] - public struct DlcInstalled_t { - public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 5; - public AppId_t m_nAppID; // AppID of the DLC - } - - //--------------------------------------------------------------------------------- - // Purpose: posted after the user gains executes a Steam URL with command line or query parameters - // such as steam://run///-commandline/?param1=value1¶m2=value2¶m3=value3 etc - // while the game is already running. The new params can be queried - // with GetLaunchQueryParam and GetLaunchCommandLine - //--------------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamAppsCallbacks + 14)] - public struct NewUrlLaunchParameters_t { - public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 14; - } - - //----------------------------------------------------------------------------- - // Purpose: response to RequestAppProofOfPurchaseKey/RequestAllProofOfPurchaseKeys - // for supporting third-party CD keys, or other proof-of-purchase systems. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamAppsCallbacks + 21)] - public struct AppProofOfPurchaseKeyResponse_t { - public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 21; - public EResult m_eResult; - public uint m_nAppID; - public uint m_cchKeyLength; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cubAppProofOfPurchaseKeyMax)] - private byte[] m_rgchKey_; - public string m_rgchKey - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchKey_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchKey_, Constants.k_cubAppProofOfPurchaseKeyMax); } - } - } - - //----------------------------------------------------------------------------- - // Purpose: response to GetFileDetails - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamAppsCallbacks + 23)] - public struct FileDetailsResult_t { - public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 23; - public EResult m_eResult; - public ulong m_ulFileSize; // original file size in bytes - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)] - public byte[] m_FileSHA; // original file SHA1 hash - public uint m_unFlags; // - } - - //----------------------------------------------------------------------------- - // Purpose: called for games in Timed Trial mode - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamAppsCallbacks + 30)] - public struct TimedTrialStatus_t { - public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 30; - public AppId_t m_unAppID; // appID - [MarshalAs(UnmanagedType.I1)] - public bool m_bIsOffline; // if true, time allowed / played refers to offline time, not total time - public uint m_unSecondsAllowed; // how many seconds the app can be played in total - public uint m_unSecondsPlayed; // how many seconds the app was already played - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: called when a friends' status changes - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 4)] - public struct PersonaStateChange_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 4; - - public ulong m_ulSteamID; // steamID of the friend who changed - public EPersonaChange m_nChangeFlags; // what's changed - } - - //----------------------------------------------------------------------------- - // Purpose: posted when game overlay activates or deactivates - // the game can use this to be pause or resume single player games - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 31)] - public struct GameOverlayActivated_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 31; - public byte m_bActive; // true if it's just been activated, false otherwise - [MarshalAs(UnmanagedType.I1)] - public bool m_bUserInitiated; // true if the user asked for the overlay to be activated/deactivated - public AppId_t m_nAppID; // the appID of the game (should always be the current game) - public uint m_dwOverlayPID; // used internally - } - - //----------------------------------------------------------------------------- - // Purpose: called when the user tries to join a different game server from their friends list - // game client should attempt to connect to specified server when this is received - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 32)] - public struct GameServerChangeRequested_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 32; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)] - private byte[] m_rgchServer_; - public string m_rgchServer // server address ("127.0.0.1:27015", "tf2.valvesoftware.com") - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchServer_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchServer_, 64); } - } - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)] - private byte[] m_rgchPassword_; - public string m_rgchPassword // server password, if any - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchPassword_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchPassword_, 64); } - } - } - - //----------------------------------------------------------------------------- - // Purpose: called when the user tries to join a lobby from their friends list - // game client should attempt to connect to specified lobby when this is received - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 33)] - public struct GameLobbyJoinRequested_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 33; - public CSteamID m_steamIDLobby; - - // The friend they did the join via (will be invalid if not directly via a friend) - public CSteamID m_steamIDFriend; - } - - //----------------------------------------------------------------------------- - // Purpose: called when an avatar is loaded in from a previous GetLargeFriendAvatar() call - // if the image wasn't already available - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 34)] - public struct AvatarImageLoaded_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 34; - public CSteamID m_steamID; // steamid the avatar has been loaded for - public int m_iImage; // the image index of the now loaded image - public int m_iWide; // width of the loaded image - public int m_iTall; // height of the loaded image - } - - //----------------------------------------------------------------------------- - // Purpose: marks the return of a request officer list call - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 35)] - public struct ClanOfficerListResponse_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 35; - public CSteamID m_steamIDClan; - public int m_cOfficers; - public byte m_bSuccess; - } - - //----------------------------------------------------------------------------- - // Purpose: callback indicating updated data about friends rich presence information - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 36)] - public struct FriendRichPresenceUpdate_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 36; - public CSteamID m_steamIDFriend; // friend who's rich presence has changed - public AppId_t m_nAppID; // the appID of the game (should always be the current game) - } - - //----------------------------------------------------------------------------- - // Purpose: called when the user tries to join a game from their friends list - // rich presence will have been set with the "connect" key which is set here - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 37)] - public struct GameRichPresenceJoinRequested_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 37; - public CSteamID m_steamIDFriend; // the friend they did the join via (will be invalid if not directly via a friend) - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchMaxRichPresenceValueLength)] - private byte[] m_rgchConnect_; - public string m_rgchConnect - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchConnect_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchConnect_, Constants.k_cchMaxRichPresenceValueLength); } - } - } - - //----------------------------------------------------------------------------- - // Purpose: a chat message has been received for a clan chat the game has joined - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 38)] - public struct GameConnectedClanChatMsg_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 38; - public CSteamID m_steamIDClanChat; - public CSteamID m_steamIDUser; - public int m_iMessageID; - } - - //----------------------------------------------------------------------------- - // Purpose: a user has joined a clan chat - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 39)] - public struct GameConnectedChatJoin_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 39; - public CSteamID m_steamIDClanChat; - public CSteamID m_steamIDUser; - } - - //----------------------------------------------------------------------------- - // Purpose: a user has left the chat we're in - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 1)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 40)] - public struct GameConnectedChatLeave_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 40; - public CSteamID m_steamIDClanChat; - public CSteamID m_steamIDUser; - [MarshalAs(UnmanagedType.I1)] - public bool m_bKicked; // true if admin kicked - [MarshalAs(UnmanagedType.I1)] - public bool m_bDropped; // true if Steam connection dropped - } - - //----------------------------------------------------------------------------- - // Purpose: a DownloadClanActivityCounts() call has finished - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 41)] - public struct DownloadClanActivityCountsResult_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 41; - [MarshalAs(UnmanagedType.I1)] - public bool m_bSuccess; - } - - //----------------------------------------------------------------------------- - // Purpose: a JoinClanChatRoom() call has finished - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 42)] - public struct JoinClanChatRoomCompletionResult_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 42; - public CSteamID m_steamIDClanChat; - public EChatRoomEnterResponse m_eChatRoomEnterResponse; - } - - //----------------------------------------------------------------------------- - // Purpose: a chat message has been received from a user - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 43)] - public struct GameConnectedFriendChatMsg_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 43; - public CSteamID m_steamIDUser; - public int m_iMessageID; - } - - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 44)] - public struct FriendsGetFollowerCount_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 44; - public EResult m_eResult; - public CSteamID m_steamID; - public int m_nCount; - } - - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 45)] - public struct FriendsIsFollowing_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 45; - public EResult m_eResult; - public CSteamID m_steamID; - [MarshalAs(UnmanagedType.I1)] - public bool m_bIsFollowing; - } - - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 46)] - public struct FriendsEnumerateFollowingList_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 46; - public EResult m_eResult; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cEnumerateFollowersMax)] - public CSteamID[] m_rgSteamID; - public int m_nResultsReturned; - public int m_nTotalResultCount; - } - - //----------------------------------------------------------------------------- - // Purpose: Invoked when the status of unread messages changes - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 48)] - public struct UnreadChatMessagesChanged_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 48; - } - - //----------------------------------------------------------------------------- - // Purpose: Dispatched when an overlay browser instance is navigated to a protocol/scheme registered by RegisterProtocolInOverlayBrowser() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 49)] - public struct OverlayBrowserProtocolNavigation_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 49; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)] - private byte[] rgchURI_; - public string rgchURI - { - get { return InteropHelp.ByteArrayToStringUTF8(rgchURI_); } - set { InteropHelp.StringToByteArrayUTF8(value, rgchURI_, 1024); } - } - } - - //----------------------------------------------------------------------------- - // Purpose: A user's equipped profile items have changed - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 50)] - public struct EquippedProfileItemsChanged_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 50; - public CSteamID m_steamID; - } - - //----------------------------------------------------------------------------- - // Purpose: - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 51)] - public struct EquippedProfileItems_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 51; - public EResult m_eResult; - public CSteamID m_steamID; - [MarshalAs(UnmanagedType.I1)] - public bool m_bHasAnimatedAvatar; - [MarshalAs(UnmanagedType.I1)] - public bool m_bHasAvatarFrame; - [MarshalAs(UnmanagedType.I1)] - public bool m_bHasProfileModifier; - [MarshalAs(UnmanagedType.I1)] - public bool m_bHasProfileBackground; - [MarshalAs(UnmanagedType.I1)] - public bool m_bHasMiniProfileBackground; - [MarshalAs(UnmanagedType.I1)] - public bool m_bFromCache; - } - - // callbacks - // callback notification - A new message is available for reading from the message queue - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameCoordinatorCallbacks + 1)] - public struct GCMessageAvailable_t { - public const int k_iCallback = Constants.k_iSteamGameCoordinatorCallbacks + 1; - public uint m_nMessageSize; - } - - // callback notification - A message failed to make it to the GC. It may be down temporarily - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamGameCoordinatorCallbacks + 2)] - public struct GCMessageFailed_t { - public const int k_iCallback = Constants.k_iSteamGameCoordinatorCallbacks + 2; - } - - // callbacks - // client has been approved to connect to this game server - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 1)] - public struct GSClientApprove_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 1; - public CSteamID m_SteamID; // SteamID of approved player - public CSteamID m_OwnerSteamID; // SteamID of original owner for game license - } - - // client has been denied to connection to this game server - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 2)] - public struct GSClientDeny_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 2; - public CSteamID m_SteamID; - public EDenyReason m_eDenyReason; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)] - private byte[] m_rgchOptionalText_; - public string m_rgchOptionalText - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchOptionalText_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchOptionalText_, 128); } - } - } - - // request the game server should kick the user - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 3)] - public struct GSClientKick_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 3; - public CSteamID m_SteamID; - public EDenyReason m_eDenyReason; - } - - // NOTE: callback values 4 and 5 are skipped because they are used for old deprecated callbacks, - // do not reuse them here. - // client achievement info - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 6)] - public struct GSClientAchievementStatus_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 6; - public ulong m_SteamID; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)] - private byte[] m_pchAchievement_; - public string m_pchAchievement - { - get { return InteropHelp.ByteArrayToStringUTF8(m_pchAchievement_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_pchAchievement_, 128); } - } - [MarshalAs(UnmanagedType.I1)] - public bool m_bUnlocked; - } - - // received when the game server requests to be displayed as secure (VAC protected) - // m_bSecure is true if the game server should display itself as secure to users, false otherwise - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 15)] - public struct GSPolicyResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 15; - public byte m_bSecure; - } - - // GS gameplay stats info - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 7)] - public struct GSGameplayStats_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 7; - public EResult m_eResult; // Result of the call - public int m_nRank; // Overall rank of the server (0-based) - public uint m_unTotalConnects; // Total number of clients who have ever connected to the server - public uint m_unTotalMinutesPlayed; // Total number of minutes ever played on the server - } - - // send as a reply to RequestUserGroupStatus() - [StructLayout(LayoutKind.Sequential, Pack = 1)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 8)] - public struct GSClientGroupStatus_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 8; - public CSteamID m_SteamIDUser; - public CSteamID m_SteamIDGroup; - [MarshalAs(UnmanagedType.I1)] - public bool m_bMember; - [MarshalAs(UnmanagedType.I1)] - public bool m_bOfficer; - } - - // Sent as a reply to GetServerReputation() - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 9)] - public struct GSReputation_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 9; - public EResult m_eResult; // Result of the call; - public uint m_unReputationScore; // The reputation score for the game server - [MarshalAs(UnmanagedType.I1)] - public bool m_bBanned; // True if the server is banned from the Steam - // master servers - - // The following members are only filled out if m_bBanned is true. They will all - // be set to zero otherwise. Master server bans are by IP so it is possible to be - // banned even when the score is good high if there is a bad server on another port. - // This information can be used to determine which server is bad. - - public uint m_unBannedIP; // The IP of the banned server - public ushort m_usBannedPort; // The port of the banned server - public ulong m_ulBannedGameID; // The game ID the banned server is serving - public uint m_unBanExpires; // Time the ban expires, expressed in the Unix epoch (seconds since 1/1/1970) - } - - // Sent as a reply to AssociateWithClan() - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 10)] - public struct AssociateWithClanResult_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 10; - public EResult m_eResult; // Result of the call; - } - - // Sent as a reply to ComputeNewPlayerCompatibility() - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 11)] - public struct ComputeNewPlayerCompatibilityResult_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 11; - public EResult m_eResult; // Result of the call; - public int m_cPlayersThatDontLikeCandidate; - public int m_cPlayersThatCandidateDoesntLike; - public int m_cClanPlayersThatDontLikeCandidate; - public CSteamID m_SteamIDCandidate; - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: called when the latests stats and achievements have been received - // from the server - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamGameServerStatsCallbacks)] - public struct GSStatsReceived_t { - public const int k_iCallback = Constants.k_iSteamGameServerStatsCallbacks; - public EResult m_eResult; // Success / error fetching the stats - public CSteamID m_steamIDUser; // The user for whom the stats are retrieved for - } - - //----------------------------------------------------------------------------- - // Purpose: result of a request to store the user stats for a game - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamGameServerStatsCallbacks + 1)] - public struct GSStatsStored_t { - public const int k_iCallback = Constants.k_iSteamGameServerStatsCallbacks + 1; - public EResult m_eResult; // success / error - public CSteamID m_steamIDUser; // The user for whom the stats were stored - } - - //----------------------------------------------------------------------------- - // Purpose: Callback indicating that a user's stats have been unloaded. - // Call RequestUserStats again to access stats for this user - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 8)] - public struct GSStatsUnloaded_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 8; - public CSteamID m_steamIDUser; // User whose stats have been unloaded - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: The browser is ready for use - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 1)] - public struct HTML_BrowserReady_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 1; - public HHTMLBrowser unBrowserHandle; // this browser is now fully created and ready to navigate to pages - } - - //----------------------------------------------------------------------------- - // Purpose: the browser has a pending paint - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 2)] - public struct HTML_NeedsPaint_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 2; - public HHTMLBrowser unBrowserHandle; // the browser that needs the paint - public IntPtr pBGRA; // a pointer to the B8G8R8A8 data for this surface, valid until SteamAPI_RunCallbacks is next called - public uint unWide; // the total width of the pBGRA texture - public uint unTall; // the total height of the pBGRA texture - public uint unUpdateX; // the offset in X for the damage rect for this update - public uint unUpdateY; // the offset in Y for the damage rect for this update - public uint unUpdateWide; // the width of the damage rect for this update - public uint unUpdateTall; // the height of the damage rect for this update - public uint unScrollX; // the page scroll the browser was at when this texture was rendered - public uint unScrollY; // the page scroll the browser was at when this texture was rendered - public float flPageScale; // the page scale factor on this page when rendered - public uint unPageSerial; // incremented on each new page load, you can use this to reject draws while navigating to new pages - } - - //----------------------------------------------------------------------------- - // Purpose: The browser wanted to navigate to a new page - // NOTE - you MUST call AllowStartRequest in response to this callback - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 3)] - public struct HTML_StartRequest_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 3; - public HHTMLBrowser unBrowserHandle; // the handle of the surface navigating - public string pchURL; // the url they wish to navigate to - public string pchTarget; // the html link target type (i.e _blank, _self, _parent, _top ) - public string pchPostData; // any posted data for the request - [MarshalAs(UnmanagedType.I1)] - public bool bIsRedirect; // true if this was a http/html redirect from the last load request - } - - //----------------------------------------------------------------------------- - // Purpose: The browser has been requested to close due to user interaction (usually from a javascript window.close() call) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 4)] - public struct HTML_CloseBrowser_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 4; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - } - - //----------------------------------------------------------------------------- - // Purpose: the browser is navigating to a new url - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 5)] - public struct HTML_URLChanged_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 5; - public HHTMLBrowser unBrowserHandle; // the handle of the surface navigating - public string pchURL; // the url they wish to navigate to - public string pchPostData; // any posted data for the request - [MarshalAs(UnmanagedType.I1)] - public bool bIsRedirect; // true if this was a http/html redirect from the last load request - public string pchPageTitle; // the title of the page - [MarshalAs(UnmanagedType.I1)] - public bool bNewNavigation; // true if this was from a fresh tab and not a click on an existing page - } - - //----------------------------------------------------------------------------- - // Purpose: A page is finished loading - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 6)] - public struct HTML_FinishedRequest_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 6; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchURL; // - public string pchPageTitle; // - } - - //----------------------------------------------------------------------------- - // Purpose: a request to load this url in a new tab - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 7)] - public struct HTML_OpenLinkInNewTab_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 7; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchURL; // - } - - //----------------------------------------------------------------------------- - // Purpose: the page has a new title now - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 8)] - public struct HTML_ChangedTitle_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 8; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchTitle; // - } - - //----------------------------------------------------------------------------- - // Purpose: results from a search - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 9)] - public struct HTML_SearchResults_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 9; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public uint unResults; // - public uint unCurrentMatch; // - } - - //----------------------------------------------------------------------------- - // Purpose: page history status changed on the ability to go backwards and forward - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 10)] - public struct HTML_CanGoBackAndForward_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 10; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - [MarshalAs(UnmanagedType.I1)] - public bool bCanGoBack; // - [MarshalAs(UnmanagedType.I1)] - public bool bCanGoForward; // - } - - //----------------------------------------------------------------------------- - // Purpose: details on the visibility and size of the horizontal scrollbar - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 11)] - public struct HTML_HorizontalScroll_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 11; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public uint unScrollMax; // - public uint unScrollCurrent; // - public float flPageScale; // - [MarshalAs(UnmanagedType.I1)] - public bool bVisible; // - public uint unPageSize; // - } - - //----------------------------------------------------------------------------- - // Purpose: details on the visibility and size of the vertical scrollbar - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 12)] - public struct HTML_VerticalScroll_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 12; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public uint unScrollMax; // - public uint unScrollCurrent; // - public float flPageScale; // - [MarshalAs(UnmanagedType.I1)] - public bool bVisible; // - public uint unPageSize; // - } - - //----------------------------------------------------------------------------- - // Purpose: response to GetLinkAtPosition call - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 13)] - public struct HTML_LinkAtPosition_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 13; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public uint x; // NOTE - Not currently set - public uint y; // NOTE - Not currently set - public string pchURL; // - [MarshalAs(UnmanagedType.I1)] - public bool bInput; // - [MarshalAs(UnmanagedType.I1)] - public bool bLiveLink; // - } - - //----------------------------------------------------------------------------- - // Purpose: show a Javascript alert dialog, call JSDialogResponse - // when the user dismisses this dialog (or right away to ignore it) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 14)] - public struct HTML_JSAlert_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 14; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchMessage; // - } - - //----------------------------------------------------------------------------- - // Purpose: show a Javascript confirmation dialog, call JSDialogResponse - // when the user dismisses this dialog (or right away to ignore it) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 15)] - public struct HTML_JSConfirm_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 15; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchMessage; // - } - - //----------------------------------------------------------------------------- - // Purpose: when received show a file open dialog - // then call FileLoadDialogResponse with the file(s) the user selected. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 16)] - public struct HTML_FileOpenDialog_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 16; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchTitle; // - public string pchInitialFile; // - } - - //----------------------------------------------------------------------------- - // Purpose: a new html window is being created. - // - // IMPORTANT NOTE: at this time, the API does not allow you to acknowledge or - // render the contents of this new window, so the new window is always destroyed - // immediately. The URL and other parameters of the new window are passed here - // to give your application the opportunity to call CreateBrowser and set up - // a new browser in response to the attempted popup, if you wish to do so. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 21)] - public struct HTML_NewWindow_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 21; - public HHTMLBrowser unBrowserHandle; // the handle of the current surface - public string pchURL; // the page to load - public uint unX; // the x pos into the page to display the popup - public uint unY; // the y pos into the page to display the popup - public uint unWide; // the total width of the pBGRA texture - public uint unTall; // the total height of the pBGRA texture - public HHTMLBrowser unNewWindow_BrowserHandle_IGNORE; - } - - //----------------------------------------------------------------------------- - // Purpose: change the cursor to display - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 22)] - public struct HTML_SetCursor_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 22; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public uint eMouseCursor; // the EHTMLMouseCursor to display - } - - //----------------------------------------------------------------------------- - // Purpose: informational message from the browser - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 23)] - public struct HTML_StatusText_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 23; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchMsg; // the message text - } - - //----------------------------------------------------------------------------- - // Purpose: show a tooltip - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 24)] - public struct HTML_ShowToolTip_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 24; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchMsg; // the tooltip text - } - - //----------------------------------------------------------------------------- - // Purpose: update the text of an existing tooltip - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 25)] - public struct HTML_UpdateToolTip_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 25; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchMsg; // the new tooltip text - } - - //----------------------------------------------------------------------------- - // Purpose: hide the tooltip you are showing - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 26)] - public struct HTML_HideToolTip_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 26; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - } - - //----------------------------------------------------------------------------- - // Purpose: The browser has restarted due to an internal failure, use this new handle value - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 27)] - public struct HTML_BrowserRestarted_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 27; - public HHTMLBrowser unBrowserHandle; // this is the new browser handle after the restart - public HHTMLBrowser unOldBrowserHandle; // the handle for the browser before the restart, if your handle was this then switch to using unBrowserHandle for API calls - } - - // callbacks - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTTPCallbacks + 1)] - public struct HTTPRequestCompleted_t { - public const int k_iCallback = Constants.k_iSteamHTTPCallbacks + 1; - - // Handle value for the request that has completed. - public HTTPRequestHandle m_hRequest; - - // Context value that the user defined on the request that this callback is associated with, 0 if - // no context value was set. - public ulong m_ulContextValue; - - // This will be true if we actually got any sort of response from the server (even an error). - // It will be false if we failed due to an internal error or client side network failure. - [MarshalAs(UnmanagedType.I1)] - public bool m_bRequestSuccessful; - - // Will be the HTTP status code value returned by the server, k_EHTTPStatusCode200OK is the normal - // OK response, if you get something else you probably need to treat it as a failure. - public EHTTPStatusCode m_eStatusCode; - - public uint m_unBodySize; // Same as GetHTTPResponseBodySize() - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTTPCallbacks + 2)] - public struct HTTPRequestHeadersReceived_t { - public const int k_iCallback = Constants.k_iSteamHTTPCallbacks + 2; - - // Handle value for the request that has received headers. - public HTTPRequestHandle m_hRequest; - - // Context value that the user defined on the request that this callback is associated with, 0 if - // no context value was set. - public ulong m_ulContextValue; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTTPCallbacks + 3)] - public struct HTTPRequestDataReceived_t { - public const int k_iCallback = Constants.k_iSteamHTTPCallbacks + 3; - - // Handle value for the request that has received data. - public HTTPRequestHandle m_hRequest; - - // Context value that the user defined on the request that this callback is associated with, 0 if - // no context value was set. - public ulong m_ulContextValue; - - - // Offset to provide to GetHTTPStreamingResponseBodyData to get this chunk of data - public uint m_cOffset; - - // Size to provide to GetHTTPStreamingResponseBodyData to get this chunk of data - public uint m_cBytesReceived; - } - - //----------------------------------------------------------------------------- - // Purpose: called when a new controller has been connected, will fire once - // per controller if multiple new controllers connect in the same frame - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamControllerCallbacks + 1)] - public struct SteamInputDeviceConnected_t { - public const int k_iCallback = Constants.k_iSteamControllerCallbacks + 1; - public InputHandle_t m_ulConnectedDeviceHandle; // Handle for device - } - - //----------------------------------------------------------------------------- - // Purpose: called when a new controller has been connected, will fire once - // per controller if multiple new controllers connect in the same frame - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamControllerCallbacks + 2)] - public struct SteamInputDeviceDisconnected_t { - public const int k_iCallback = Constants.k_iSteamControllerCallbacks + 2; - public InputHandle_t m_ulDisconnectedDeviceHandle; // Handle for device - } - - //----------------------------------------------------------------------------- - // Purpose: called when a controller configuration has been loaded, will fire once - // per controller per focus change for Steam Input enabled controllers - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamControllerCallbacks + 3)] - public struct SteamInputConfigurationLoaded_t { - public const int k_iCallback = Constants.k_iSteamControllerCallbacks + 3; - public AppId_t m_unAppID; - public InputHandle_t m_ulDeviceHandle; // Handle for device - public CSteamID m_ulMappingCreator; // May differ from local user when using - // an unmodified community or official config - public uint m_unMajorRevision; // Binding revision from In-game Action File. - // Same value as queried by GetDeviceBindingRevision - public uint m_unMinorRevision; - [MarshalAs(UnmanagedType.I1)] - public bool m_bUsesSteamInputAPI; // Does the configuration contain any Analog/Digital actions? - [MarshalAs(UnmanagedType.I1)] - public bool m_bUsesGamepadAPI; // Does the configuration contain any Xinput bindings? - } - - //----------------------------------------------------------------------------- - // Purpose: called when controller gamepad slots change - on Linux/macOS these - // slots are shared for all running apps. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamControllerCallbacks + 4)] - public struct SteamInputGamepadSlotChange_t { - public const int k_iCallback = Constants.k_iSteamControllerCallbacks + 4; - public AppId_t m_unAppID; - public InputHandle_t m_ulDeviceHandle; // Handle for device - public ESteamInputType m_eDeviceType; // Type of device - public int m_nOldGamepadSlot; // Previous GamepadSlot - can be -1 controller doesn't uses gamepad bindings - public int m_nNewGamepadSlot; // New Gamepad Slot - can be -1 controller doesn't uses gamepad bindings - } - - // SteamInventoryResultReady_t callbacks are fired whenever asynchronous - // results transition from "Pending" to "OK" or an error state. There will - // always be exactly one callback per handle. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamInventoryCallbacks + 0)] - public struct SteamInventoryResultReady_t { - public const int k_iCallback = Constants.k_iSteamInventoryCallbacks + 0; - public SteamInventoryResult_t m_handle; - public EResult m_result; - } - - // SteamInventoryFullUpdate_t callbacks are triggered when GetAllItems - // successfully returns a result which is newer / fresher than the last - // known result. (It will not trigger if the inventory hasn't changed, - // or if results from two overlapping calls are reversed in flight and - // the earlier result is already known to be stale/out-of-date.) - // The normal ResultReady callback will still be triggered immediately - // afterwards; this is an additional notification for your convenience. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamInventoryCallbacks + 1)] - public struct SteamInventoryFullUpdate_t { - public const int k_iCallback = Constants.k_iSteamInventoryCallbacks + 1; - public SteamInventoryResult_t m_handle; - } - - // A SteamInventoryDefinitionUpdate_t callback is triggered whenever - // item definitions have been updated, which could be in response to - // LoadItemDefinitions() or any other async request which required - // a definition update in order to process results from the server. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamInventoryCallbacks + 2)] - public struct SteamInventoryDefinitionUpdate_t { - public const int k_iCallback = Constants.k_iSteamInventoryCallbacks + 2; - } - - // Returned - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamInventoryCallbacks + 3)] - public struct SteamInventoryEligiblePromoItemDefIDs_t { - public const int k_iCallback = Constants.k_iSteamInventoryCallbacks + 3; - public EResult m_result; - public CSteamID m_steamID; - public int m_numEligiblePromoItemDefs; - [MarshalAs(UnmanagedType.I1)] - public bool m_bCachedData; // indicates that the data was retrieved from the cache and not the server - } - - // Triggered from StartPurchase call - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamInventoryCallbacks + 4)] - public struct SteamInventoryStartPurchaseResult_t { - public const int k_iCallback = Constants.k_iSteamInventoryCallbacks + 4; - public EResult m_result; - public ulong m_ulOrderID; - public ulong m_ulTransID; - } - - // Triggered from RequestPrices - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamInventoryCallbacks + 5)] - public struct SteamInventoryRequestPricesResult_t { - public const int k_iCallback = Constants.k_iSteamInventoryCallbacks + 5; - public EResult m_result; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)] - private byte[] m_rgchCurrency_; - public string m_rgchCurrency - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchCurrency_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchCurrency_, 4); } - } - } - - //----------------------------------------------------------------------------- - // Callbacks for ISteamMatchmaking (which go through the regular Steam callback registration system) - //----------------------------------------------------------------------------- - // Purpose: a server was added/removed from the favorites list, you should refresh now - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 2)] - public struct FavoritesListChanged_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 2; - public uint m_nIP; // an IP of 0 means reload the whole list, any other value means just one server - public uint m_nQueryPort; - public uint m_nConnPort; - public uint m_nAppID; - public uint m_nFlags; - [MarshalAs(UnmanagedType.I1)] - public bool m_bAdd; // true if this is adding the entry, otherwise it is a remove - public AccountID_t m_unAccountId; - } - - //----------------------------------------------------------------------------- - // Purpose: Someone has invited you to join a Lobby - // normally you don't need to do anything with this, since - // the Steam UI will also display a ' has invited you to the lobby, join?' dialog - // - // if the user outside a game chooses to join, your game will be launched with the parameter "+connect_lobby <64-bit lobby id>", - // or with the callback GameLobbyJoinRequested_t if they're already in-game - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 3)] - public struct LobbyInvite_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 3; - - public ulong m_ulSteamIDUser; // Steam ID of the person making the invite - public ulong m_ulSteamIDLobby; // Steam ID of the Lobby - public ulong m_ulGameID; // GameID of the Lobby - } - - //----------------------------------------------------------------------------- - // Purpose: Sent on entering a lobby, or on failing to enter - // m_EChatRoomEnterResponse will be set to k_EChatRoomEnterResponseSuccess on success, - // or a higher value on failure (see enum EChatRoomEnterResponse) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 4)] - public struct LobbyEnter_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 4; - - public ulong m_ulSteamIDLobby; // SteamID of the Lobby you have entered - public uint m_rgfChatPermissions; // Permissions of the current user - [MarshalAs(UnmanagedType.I1)] - public bool m_bLocked; // If true, then only invited users may join - public uint m_EChatRoomEnterResponse; // EChatRoomEnterResponse - } - - //----------------------------------------------------------------------------- - // Purpose: The lobby metadata has changed - // if m_ulSteamIDMember is the steamID of a lobby member, use GetLobbyMemberData() to access per-user details - // if m_ulSteamIDMember == m_ulSteamIDLobby, use GetLobbyData() to access lobby metadata - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 5)] - public struct LobbyDataUpdate_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 5; - - public ulong m_ulSteamIDLobby; // steamID of the Lobby - public ulong m_ulSteamIDMember; // steamID of the member whose data changed, or the room itself - public byte m_bSuccess; // true if we lobby data was successfully changed; - // will only be false if RequestLobbyData() was called on a lobby that no longer exists - } - - //----------------------------------------------------------------------------- - // Purpose: The lobby chat room state has changed - // this is usually sent when a user has joined or left the lobby - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 6)] - public struct LobbyChatUpdate_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 6; - - public ulong m_ulSteamIDLobby; // Lobby ID - public ulong m_ulSteamIDUserChanged; // user who's status in the lobby just changed - can be recipient - public ulong m_ulSteamIDMakingChange; // Chat member who made the change (different from SteamIDUserChange if kicking, muting, etc.) - // for example, if one user kicks another from the lobby, this will be set to the id of the user who initiated the kick - public uint m_rgfChatMemberStateChange; // bitfield of EChatMemberStateChange values - } - - //----------------------------------------------------------------------------- - // Purpose: A chat message for this lobby has been sent - // use GetLobbyChatEntry( m_iChatID ) to retrieve the contents of this message - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 7)] - public struct LobbyChatMsg_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 7; - - public ulong m_ulSteamIDLobby; // the lobby id this is in - public ulong m_ulSteamIDUser; // steamID of the user who has sent this message - public byte m_eChatEntryType; // type of message - public uint m_iChatID; // index of the chat entry to lookup - } - - //----------------------------------------------------------------------------- - // Purpose: A game created a game for all the members of the lobby to join, - // as triggered by a SetLobbyGameServer() - // it's up to the individual clients to take action on this; the usual - // game behavior is to leave the lobby and connect to the specified game server - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 9)] - public struct LobbyGameCreated_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 9; - - public ulong m_ulSteamIDLobby; // the lobby we were in - public ulong m_ulSteamIDGameServer; // the new game server that has been created or found for the lobby members - public uint m_unIP; // IP & Port of the game server (if any) - public ushort m_usPort; - } - - //----------------------------------------------------------------------------- - // Purpose: Number of matching lobbies found - // iterate the returned lobbies with GetLobbyByIndex(), from values 0 to m_nLobbiesMatching-1 - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 10)] - public struct LobbyMatchList_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 10; - public uint m_nLobbiesMatching; // Number of lobbies that matched search criteria and we have SteamIDs for - } - - //----------------------------------------------------------------------------- - // Purpose: posted if a user is forcefully removed from a lobby - // can occur if a user loses connection to Steam - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 12)] - public struct LobbyKicked_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 12; - public ulong m_ulSteamIDLobby; // Lobby - public ulong m_ulSteamIDAdmin; // User who kicked you - possibly the ID of the lobby itself - public byte m_bKickedDueToDisconnect; // true if you were kicked from the lobby due to the user losing connection to Steam (currently always true) - } - - //----------------------------------------------------------------------------- - // Purpose: Result of our request to create a Lobby - // m_eResult == k_EResultOK on success - // at this point, the lobby has been joined and is ready for use - // a LobbyEnter_t callback will also be received (since the local user is joining their own lobby) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 13)] - public struct LobbyCreated_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 13; - - public EResult m_eResult; // k_EResultOK - the lobby was successfully created - // k_EResultNoConnection - your Steam client doesn't have a connection to the back-end - // k_EResultTimeout - you the message to the Steam servers, but it didn't respond - // k_EResultFail - the server responded, but with an unknown internal error - // k_EResultAccessDenied - your game isn't set to allow lobbies, or your client does haven't rights to play the game - // k_EResultLimitExceeded - your game client has created too many lobbies - - public ulong m_ulSteamIDLobby; // chat room, zero if failed - } - - // used by now obsolete RequestFriendsLobbiesResponse_t - // enum { k_iCallback = k_iSteamMatchmakingCallbacks + 14 }; - // used by now obsolete PSNGameBootInviteResult_t - // enum { k_iCallback = k_iSteamMatchmakingCallbacks + 15 }; - //----------------------------------------------------------------------------- - // Purpose: Result of our request to create a Lobby - // m_eResult == k_EResultOK on success - // at this point, the lobby has been joined and is ready for use - // a LobbyEnter_t callback will also be received (since the local user is joining their own lobby) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 16)] - public struct FavoritesListAccountsUpdated_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 16; - - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Callbacks for ISteamGameSearch (which go through the regular Steam callback registration system) - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 1)] - public struct SearchForGameProgressCallback_t { - public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 1; - - public ulong m_ullSearchID; // all future callbacks referencing this search will include this Search ID - - public EResult m_eResult; // if search has started this result will be k_EResultOK, any other value indicates search has failed to start or has terminated - public CSteamID m_lobbyID; // lobby ID if lobby search, invalid steamID otherwise - public CSteamID m_steamIDEndedSearch; // if search was terminated, steamID that terminated search - - public int m_nSecondsRemainingEstimate; - public int m_cPlayersSearching; - } - - // notification to all players searching that a game has been found - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 2)] - public struct SearchForGameResultCallback_t { - public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 2; - - public ulong m_ullSearchID; - - public EResult m_eResult; // if game/host was lost this will be an error value - - // if m_bGameFound is true the following are non-zero - public int m_nCountPlayersInGame; - public int m_nCountAcceptedGame; - // if m_steamIDHost is valid the host has started the game - public CSteamID m_steamIDHost; - [MarshalAs(UnmanagedType.I1)] - public bool m_bFinalCallback; - } - - //----------------------------------------------------------------------------- - // ISteamGameSearch : Game Host API callbacks - // callback from RequestPlayersForGame when the matchmaking service has started or ended search - // callback will also follow a call from CancelRequestPlayersForGame - m_bSearchInProgress will be false - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 11)] - public struct RequestPlayersForGameProgressCallback_t { - public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 11; - - public EResult m_eResult; // m_ullSearchID will be non-zero if this is k_EResultOK - public ulong m_ullSearchID; // all future callbacks referencing this search will include this Search ID - } - - // callback from RequestPlayersForGame - // one of these will be sent per player - // followed by additional callbacks when players accept or decline the game - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 12)] - public struct RequestPlayersForGameResultCallback_t { - public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 12; - - public EResult m_eResult; // m_ullSearchID will be non-zero if this is k_EResultOK - public ulong m_ullSearchID; - - public CSteamID m_SteamIDPlayerFound; // player steamID - public CSteamID m_SteamIDLobby; // if the player is in a lobby, the lobby ID - public PlayerAcceptState_t m_ePlayerAcceptState; - public int m_nPlayerIndex; - public int m_nTotalPlayersFound; // expect this many callbacks at minimum - public int m_nTotalPlayersAcceptedGame; - public int m_nSuggestedTeamIndex; - public ulong m_ullUniqueGameID; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 13)] - public struct RequestPlayersForGameFinalResultCallback_t { - public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 13; - - public EResult m_eResult; - public ulong m_ullSearchID; - public ulong m_ullUniqueGameID; - } - - // this callback confirms that results were received by the matchmaking service for this player - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 14)] - public struct SubmitPlayerResultResultCallback_t { - public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 14; - - public EResult m_eResult; - public ulong ullUniqueGameID; - public CSteamID steamIDPlayer; - } - - // this callback confirms that the game is recorded as complete on the matchmaking service - // the next call to RequestPlayersForGame will generate a new unique game ID - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 15)] - public struct EndGameResultCallback_t { - public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 15; - - public EResult m_eResult; - public ulong ullUniqueGameID; - } - - // Steam has responded to the user request to join a party via the given Beacon ID. - // If successful, the connect string contains game-specific instructions to connect - // to the game with that party. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamPartiesCallbacks + 1)] - public struct JoinPartyCallback_t { - public const int k_iCallback = Constants.k_iSteamPartiesCallbacks + 1; - - public EResult m_eResult; - public PartyBeaconID_t m_ulBeaconID; - public CSteamID m_SteamIDBeaconOwner; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] - private byte[] m_rgchConnectString_; - public string m_rgchConnectString - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchConnectString_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchConnectString_, 256); } - } - } - - // Response to CreateBeacon request. If successful, the beacon ID is provided. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamPartiesCallbacks + 2)] - public struct CreateBeaconCallback_t { - public const int k_iCallback = Constants.k_iSteamPartiesCallbacks + 2; - - public EResult m_eResult; - public PartyBeaconID_t m_ulBeaconID; - } - - // Someone has used the beacon to join your party - they are in-flight now - // and we've reserved one of the open slots for them. - // You should confirm when they join your party by calling OnReservationCompleted(). - // Otherwise, Steam may timeout their reservation eventually. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamPartiesCallbacks + 3)] - public struct ReservationNotificationCallback_t { - public const int k_iCallback = Constants.k_iSteamPartiesCallbacks + 3; - - public PartyBeaconID_t m_ulBeaconID; - public CSteamID m_steamIDJoiner; - } - - // Response to ChangeNumOpenSlots call - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamPartiesCallbacks + 4)] - public struct ChangeNumOpenSlotsCallback_t { - public const int k_iCallback = Constants.k_iSteamPartiesCallbacks + 4; - - public EResult m_eResult; - } - - // The list of possible Party beacon locations has changed - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamPartiesCallbacks + 5)] - public struct AvailableBeaconLocationsUpdated_t { - public const int k_iCallback = Constants.k_iSteamPartiesCallbacks + 5; - } - - // The list of active beacons may have changed - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamPartiesCallbacks + 6)] - public struct ActiveBeaconsUpdated_t { - public const int k_iCallback = Constants.k_iSteamPartiesCallbacks + 6; - } - - // callbacks - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicCallbacks + 1)] - public struct PlaybackStatusHasChanged_t { - public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 1; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicCallbacks + 2)] - public struct VolumeHasChanged_t { - public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 2; - public float m_flNewVolume; - } - - // callbacks - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 1)] - public struct MusicPlayerRemoteWillActivate_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 1; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 2)] - public struct MusicPlayerRemoteWillDeactivate_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 2; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 3)] - public struct MusicPlayerRemoteToFront_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 3; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 4)] - public struct MusicPlayerWillQuit_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 4; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 5)] - public struct MusicPlayerWantsPlay_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 5; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 6)] - public struct MusicPlayerWantsPause_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 6; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 7)] - public struct MusicPlayerWantsPlayPrevious_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 7; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 8)] - public struct MusicPlayerWantsPlayNext_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 8; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 9)] - public struct MusicPlayerWantsShuffled_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 9; - [MarshalAs(UnmanagedType.I1)] - public bool m_bShuffled; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 10)] - public struct MusicPlayerWantsLooped_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 10; - [MarshalAs(UnmanagedType.I1)] - public bool m_bLooped; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicCallbacks + 11)] - public struct MusicPlayerWantsVolume_t { - public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 11; - public float m_flNewVolume; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicCallbacks + 12)] - public struct MusicPlayerSelectsQueueEntry_t { - public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 12; - public int nID; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicCallbacks + 13)] - public struct MusicPlayerSelectsPlaylistEntry_t { - public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 13; - public int nID; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 14)] - public struct MusicPlayerWantsPlayingRepeatStatus_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 14; - public int m_nPlayingRepeatStatus; - } - - // callbacks - // callback notification - a user wants to talk to us over the P2P channel via the SendP2PPacket() API - // in response, a call to AcceptP2PPacketsFromUser() needs to be made, if you want to talk with them - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamNetworkingCallbacks + 2)] - public struct P2PSessionRequest_t { - public const int k_iCallback = Constants.k_iSteamNetworkingCallbacks + 2; - public CSteamID m_steamIDRemote; // user who wants to talk to us - } - - // callback notification - packets can't get through to the specified user via the SendP2PPacket() API - // all packets queued packets unsent at this point will be dropped - // further attempts to send will retry making the connection (but will be dropped if we fail again) - [StructLayout(LayoutKind.Sequential, Pack = 1)] - [CallbackIdentity(Constants.k_iSteamNetworkingCallbacks + 3)] - public struct P2PSessionConnectFail_t { - public const int k_iCallback = Constants.k_iSteamNetworkingCallbacks + 3; - public CSteamID m_steamIDRemote; // user we were sending packets to - public byte m_eP2PSessionError; // EP2PSessionError indicating why we're having trouble - } - - // callback notification - status of a socket has changed - // used as part of the CreateListenSocket() / CreateP2PConnectionSocket() - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamNetworkingCallbacks + 1)] - public struct SocketStatusCallback_t { - public const int k_iCallback = Constants.k_iSteamNetworkingCallbacks + 1; - public SNetSocket_t m_hSocket; // the socket used to send/receive data to the remote host - public SNetListenSocket_t m_hListenSocket; // this is the server socket that we were listening on; NULL if this was an outgoing connection - public CSteamID m_steamIDRemote; // remote steamID we have connected to, if it has one - public int m_eSNetSocketState; // socket state, ESNetSocketState - } - - // - // Callbacks - // - /// Posted when a remote host is sending us a message, and we do not already have a session with them - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamNetworkingMessagesCallbacks + 1)] - public struct SteamNetworkingMessagesSessionRequest_t { - public const int k_iCallback = Constants.k_iSteamNetworkingMessagesCallbacks + 1; - public SteamNetworkingIdentity m_identityRemote; // user who wants to talk to us - } - - /// Posted when we fail to establish a connection, or we detect that communications - /// have been disrupted it an unusual way. There is no notification when a peer proactively - /// closes the session. ("Closed by peer" is not a concept of UDP-style communications, and - /// SteamNetworkingMessages is primarily intended to make porting UDP code easy.) - /// - /// Remember: callbacks are asynchronous. See notes on SendMessageToUser, - /// and k_nSteamNetworkingSend_AutoRestartBrokenSession in particular. - /// - /// Also, if a session times out due to inactivity, no callbacks will be posted. The only - /// way to detect that this is happening is that querying the session state may return - /// none, connecting, and findingroute again. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamNetworkingMessagesCallbacks + 2)] - public struct SteamNetworkingMessagesSessionFailed_t { - public const int k_iCallback = Constants.k_iSteamNetworkingMessagesCallbacks + 2; - - /// Detailed info about the session that failed. - /// SteamNetConnectionInfo_t::m_identityRemote indicates who this session - /// was with. - public SteamNetConnectionInfo_t m_info; - } - - /// Callback struct used to notify when a connection has changed state - /// This callback is posted whenever a connection is created, destroyed, or changes state. - /// The m_info field will contain a complete description of the connection at the time the - /// change occurred and the callback was posted. In particular, m_eState will have the - /// new connection state. - /// - /// You will usually need to listen for this callback to know when: - /// - A new connection arrives on a listen socket. - /// m_info.m_hListenSocket will be set, m_eOldState = k_ESteamNetworkingConnectionState_None, - /// and m_info.m_eState = k_ESteamNetworkingConnectionState_Connecting. - /// See ISteamNetworkigSockets::AcceptConnection. - /// - A connection you initiated has been accepted by the remote host. - /// m_eOldState = k_ESteamNetworkingConnectionState_Connecting, and - /// m_info.m_eState = k_ESteamNetworkingConnectionState_Connected. - /// Some connections might transition to k_ESteamNetworkingConnectionState_FindingRoute first. - /// - A connection has been actively rejected or closed by the remote host. - /// m_eOldState = k_ESteamNetworkingConnectionState_Connecting or k_ESteamNetworkingConnectionState_Connected, - /// and m_info.m_eState = k_ESteamNetworkingConnectionState_ClosedByPeer. m_info.m_eEndReason - /// and m_info.m_szEndDebug will have for more details. - /// NOTE: upon receiving this callback, you must still destroy the connection using - /// ISteamNetworkingSockets::CloseConnection to free up local resources. (The details - /// passed to the function are not used in this case, since the connection is already closed.) - /// - A problem was detected with the connection, and it has been closed by the local host. - /// The most common failure is timeout, but other configuration or authentication failures - /// can cause this. m_eOldState = k_ESteamNetworkingConnectionState_Connecting or - /// k_ESteamNetworkingConnectionState_Connected, and m_info.m_eState = k_ESteamNetworkingConnectionState_ProblemDetectedLocally. - /// m_info.m_eEndReason and m_info.m_szEndDebug will have for more details. - /// NOTE: upon receiving this callback, you must still destroy the connection using - /// ISteamNetworkingSockets::CloseConnection to free up local resources. (The details - /// passed to the function are not used in this case, since the connection is already closed.) - /// - /// Remember that callbacks are posted to a queue, and networking connections can - /// change at any time. It is possible that the connection has already changed - /// state by the time you process this callback. - /// - /// Also note that callbacks will be posted when connections are created and destroyed by your own API calls. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamNetworkingSocketsCallbacks + 1)] - public struct SteamNetConnectionStatusChangedCallback_t { - public const int k_iCallback = Constants.k_iSteamNetworkingSocketsCallbacks + 1; - - /// Connection handle - public HSteamNetConnection m_hConn; - - /// Full connection info - public SteamNetConnectionInfo_t m_info; - - /// Previous state. (Current state is in m_info.m_eState) - public ESteamNetworkingConnectionState m_eOldState; - } - - /// A struct used to describe our readiness to participate in authenticated, - /// encrypted communication. In order to do this we need: - /// - /// - The list of trusted CA certificates that might be relevant for this - /// app. - /// - A valid certificate issued by a CA. - /// - /// This callback is posted whenever the state of our readiness changes. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamNetworkingSocketsCallbacks + 2)] - public struct SteamNetAuthenticationStatus_t { - public const int k_iCallback = Constants.k_iSteamNetworkingSocketsCallbacks + 2; - - /// Status - public ESteamNetworkingAvailability m_eAvail; - - /// Non-localized English language status. For diagnostic/debugging - /// purposes only. - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] - private byte[] m_debugMsg_; - public string m_debugMsg - { - get { return InteropHelp.ByteArrayToStringUTF8(m_debugMsg_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_debugMsg_, 256); } - } - } - - /// A struct used to describe our readiness to use the relay network. - /// To do this we first need to fetch the network configuration, - /// which describes what POPs are available. - [CallbackIdentity(Constants.k_iSteamNetworkingUtilsCallbacks + 1)] - public struct SteamRelayNetworkStatus_t { - public const int k_iCallback = Constants.k_iSteamNetworkingUtilsCallbacks + 1; - - /// Summary status. When this is "current", initialization has - /// completed. Anything else means you are not ready yet, or - /// there is a significant problem. - public ESteamNetworkingAvailability m_eAvail; - - /// Nonzero if latency measurement is in progress (or pending, - /// awaiting a prerequisite). - public int m_bPingMeasurementInProgress; - - /// Status obtaining the network config. This is a prerequisite - /// for relay network access. - /// - /// Failure to obtain the network config almost always indicates - /// a problem with the local internet connection. - public ESteamNetworkingAvailability m_eAvailNetworkConfig; - - /// Current ability to communicate with ANY relay. Note that - /// the complete failure to communicate with any relays almost - /// always indicates a problem with the local Internet connection. - /// (However, just because you can reach a single relay doesn't - /// mean that the local connection is in perfect health.) - public ESteamNetworkingAvailability m_eAvailAnyRelay; - - /// Non-localized English language status. For diagnostic/debugging - /// purposes only. - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] - private byte[] m_debugMsg_; - public string m_debugMsg - { - get { return InteropHelp.ByteArrayToStringUTF8(m_debugMsg_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_debugMsg_, 256); } - } - } - - //----------------------------------------------------------------------------- - // Purpose: Callback for querying UGC - //----------------------------------------------------------------------------- - [CallbackIdentity(Constants.k_ISteamParentalSettingsCallbacks + 1)] - public struct SteamParentalSettingsChanged_t { - public const int k_iCallback = Constants.k_ISteamParentalSettingsCallbacks + 1; - } - - // callbacks - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemotePlayCallbacks + 1)] - public struct SteamRemotePlaySessionConnected_t { - public const int k_iCallback = Constants.k_iSteamRemotePlayCallbacks + 1; - public RemotePlaySessionID_t m_unSessionID; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemotePlayCallbacks + 2)] - public struct SteamRemotePlaySessionDisconnected_t { - public const int k_iCallback = Constants.k_iSteamRemotePlayCallbacks + 2; - public RemotePlaySessionID_t m_unSessionID; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemotePlayCallbacks + 3)] - public struct SteamRemotePlayTogetherGuestInvite_t { - public const int k_iCallback = Constants.k_iSteamRemotePlayCallbacks + 3; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)] - private byte[] m_szConnectURL_; - public string m_szConnectURL - { - get { return InteropHelp.ByteArrayToStringUTF8(m_szConnectURL_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_szConnectURL_, 1024); } - } - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: The result of a call to FileShare() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 7)] - public struct RemoteStorageFileShareResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 7; - public EResult m_eResult; // The result of the operation - public UGCHandle_t m_hFile; // The handle that can be shared with users and features - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchFilenameMax)] - private byte[] m_rgchFilename_; - public string m_rgchFilename // The name of the file that was shared - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchFilename_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchFilename_, Constants.k_cchFilenameMax); } - } - } - - // k_iSteamRemoteStorageCallbacks + 8 is deprecated! Do not reuse - //----------------------------------------------------------------------------- - // Purpose: The result of a call to PublishFile() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 9)] - public struct RemoteStoragePublishFileResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 9; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; - [MarshalAs(UnmanagedType.I1)] - public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; - } - - // k_iSteamRemoteStorageCallbacks + 10 is deprecated! Do not reuse - //----------------------------------------------------------------------------- - // Purpose: The result of a call to DeletePublishedFile() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 11)] - public struct RemoteStorageDeletePublishedFileResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 11; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to EnumerateUserPublishedFiles() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 12)] - public struct RemoteStorageEnumerateUserPublishedFilesResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 12; - public EResult m_eResult; // The result of the operation. - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public PublishedFileId_t[] m_rgPublishedFileId; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to SubscribePublishedFile() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 13)] - public struct RemoteStorageSubscribePublishedFileResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 13; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to EnumerateSubscribePublishedFiles() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 14)] - public struct RemoteStorageEnumerateUserSubscribedFilesResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 14; - public EResult m_eResult; // The result of the operation. - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public PublishedFileId_t[] m_rgPublishedFileId; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public uint[] m_rgRTimeSubscribed; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to UnsubscribePublishedFile() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 15)] - public struct RemoteStorageUnsubscribePublishedFileResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 15; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to CommitPublishedFileUpdate() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 16)] - public struct RemoteStorageUpdatePublishedFileResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 16; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; - [MarshalAs(UnmanagedType.I1)] - public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to UGCDownload() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 17)] - public struct RemoteStorageDownloadUGCResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 17; - public EResult m_eResult; // The result of the operation. - public UGCHandle_t m_hFile; // The handle to the file that was attempted to be downloaded. - public AppId_t m_nAppID; // ID of the app that created this file. - public int m_nSizeInBytes; // The size of the file that was downloaded, in bytes. - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchFilenameMax)] - private byte[] m_pchFileName_; - public string m_pchFileName // The name of the file that was downloaded. - { - get { return InteropHelp.ByteArrayToStringUTF8(m_pchFileName_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_pchFileName_, Constants.k_cchFilenameMax); } - } - public ulong m_ulSteamIDOwner; // Steam ID of the user who created this content. - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to GetPublishedFileDetails() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 18)] - public struct RemoteStorageGetPublishedFileDetailsResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 18; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; - public AppId_t m_nCreatorAppID; // ID of the app that created this file. - public AppId_t m_nConsumerAppID; // ID of the app that will consume this file. - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedDocumentTitleMax)] - private byte[] m_rgchTitle_; - public string m_rgchTitle // title of document - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchTitle_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchTitle_, Constants.k_cchPublishedDocumentTitleMax); } - } - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedDocumentDescriptionMax)] - private byte[] m_rgchDescription_; - public string m_rgchDescription // description of document - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchDescription_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchDescription_, Constants.k_cchPublishedDocumentDescriptionMax); } - } - public UGCHandle_t m_hFile; // The handle of the primary file - public UGCHandle_t m_hPreviewFile; // The handle of the preview file - public ulong m_ulSteamIDOwner; // Steam ID of the user who created this content. - public uint m_rtimeCreated; // time when the published file was created - public uint m_rtimeUpdated; // time when the published file was last updated - public ERemoteStoragePublishedFileVisibility m_eVisibility; - [MarshalAs(UnmanagedType.I1)] - public bool m_bBanned; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchTagListMax)] - private byte[] m_rgchTags_; - public string m_rgchTags // comma separated list of all tags associated with this file - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchTags_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchTags_, Constants.k_cchTagListMax); } - } - [MarshalAs(UnmanagedType.I1)] - public bool m_bTagsTruncated; // whether the list of tags was too long to be returned in the provided buffer - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchFilenameMax)] - private byte[] m_pchFileName_; - public string m_pchFileName // The name of the primary file - { - get { return InteropHelp.ByteArrayToStringUTF8(m_pchFileName_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_pchFileName_, Constants.k_cchFilenameMax); } - } - public int m_nFileSize; // Size of the primary file - public int m_nPreviewFileSize; // Size of the preview file - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedFileURLMax)] - private byte[] m_rgchURL_; - public string m_rgchURL // URL (for a video or a website) - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchURL_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchURL_, Constants.k_cchPublishedFileURLMax); } - } - public EWorkshopFileType m_eFileType; // Type of the file - [MarshalAs(UnmanagedType.I1)] - public bool m_bAcceptedForUse; // developer has specifically flagged this item as accepted in the Workshop - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 19)] - public struct RemoteStorageEnumerateWorkshopFilesResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 19; - public EResult m_eResult; - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public PublishedFileId_t[] m_rgPublishedFileId; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public float[] m_rgScore; - public AppId_t m_nAppId; - public uint m_unStartIndex; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of GetPublishedItemVoteDetails - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 20)] - public struct RemoteStorageGetPublishedItemVoteDetailsResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 20; - public EResult m_eResult; - public PublishedFileId_t m_unPublishedFileId; - public int m_nVotesFor; - public int m_nVotesAgainst; - public int m_nReports; - public float m_fScore; - } - - //----------------------------------------------------------------------------- - // Purpose: User subscribed to a file for the app (from within the app or on the web) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 21)] - public struct RemoteStoragePublishedFileSubscribed_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 21; - public PublishedFileId_t m_nPublishedFileId; // The published file id - public AppId_t m_nAppID; // ID of the app that will consume this file. - } - - //----------------------------------------------------------------------------- - // Purpose: User unsubscribed from a file for the app (from within the app or on the web) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 22)] - public struct RemoteStoragePublishedFileUnsubscribed_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 22; - public PublishedFileId_t m_nPublishedFileId; // The published file id - public AppId_t m_nAppID; // ID of the app that will consume this file. - } - - //----------------------------------------------------------------------------- - // Purpose: Published file that a user owns was deleted (from within the app or the web) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 23)] - public struct RemoteStoragePublishedFileDeleted_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 23; - public PublishedFileId_t m_nPublishedFileId; // The published file id - public AppId_t m_nAppID; // ID of the app that will consume this file. - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to UpdateUserPublishedItemVote() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 24)] - public struct RemoteStorageUpdateUserPublishedItemVoteResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 24; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; // The published file id - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to GetUserPublishedItemVoteDetails() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 25)] - public struct RemoteStorageUserVoteDetails_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 25; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; // The published file id - public EWorkshopVote m_eVote; // what the user voted - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 26)] - public struct RemoteStorageEnumerateUserSharedWorkshopFilesResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 26; - public EResult m_eResult; // The result of the operation. - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public PublishedFileId_t[] m_rgPublishedFileId; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 27)] - public struct RemoteStorageSetUserPublishedFileActionResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 27; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; // The published file id - public EWorkshopFileAction m_eAction; // the action that was attempted - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 28)] - public struct RemoteStorageEnumeratePublishedFilesByUserActionResult_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 28; - public EResult m_eResult; // The result of the operation. - public EWorkshopFileAction m_eAction; // the action that was filtered on - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public PublishedFileId_t[] m_rgPublishedFileId; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public uint[] m_rgRTimeUpdated; - } - - //----------------------------------------------------------------------------- - // Purpose: Called periodically while a PublishWorkshopFile is in progress - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 29)] - public struct RemoteStoragePublishFileProgress_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 29; - public double m_dPercentFile; - [MarshalAs(UnmanagedType.I1)] - public bool m_bPreview; - } - - //----------------------------------------------------------------------------- - // Purpose: Called when the content for a published file is updated - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 30)] - public struct RemoteStoragePublishedFileUpdated_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 30; - public PublishedFileId_t m_nPublishedFileId; // The published file id - public AppId_t m_nAppID; // ID of the app that will consume this file. - public ulong m_ulUnused; // not used anymore - } - - //----------------------------------------------------------------------------- - // Purpose: Called when a FileWriteAsync completes - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 31)] - public struct RemoteStorageFileWriteAsyncComplete_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 31; - public EResult m_eResult; // result - } - - //----------------------------------------------------------------------------- - // Purpose: Called when a FileReadAsync completes - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 32)] - public struct RemoteStorageFileReadAsyncComplete_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 32; - public SteamAPICall_t m_hFileReadAsync; // call handle of the async read which was made - public EResult m_eResult; // result - public uint m_nOffset; // offset in the file this read was at - public uint m_cubRead; // amount read - will the <= the amount requested - } - - //----------------------------------------------------------------------------- - // Purpose: one or more files for this app have changed locally after syncing - // to remote session changes - // Note: only posted if this happens DURING the local app session - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 33)] - public struct RemoteStorageLocalFileChange_t { - public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 33; - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: Screenshot successfully written or otherwise added to the library - // and can now be tagged - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamScreenshotsCallbacks + 1)] - public struct ScreenshotReady_t { - public const int k_iCallback = Constants.k_iSteamScreenshotsCallbacks + 1; - public ScreenshotHandle m_hLocal; - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Purpose: Screenshot has been requested by the user. Only sent if - // HookScreenshots() has been called, in which case Steam will not take - // the screenshot itself. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamScreenshotsCallbacks + 2)] - public struct ScreenshotRequested_t { - public const int k_iCallback = Constants.k_iSteamScreenshotsCallbacks + 2; - } - - //----------------------------------------------------------------------------- - // Purpose: Callback for querying UGC - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamTimelineCallbacks + 1)] - public struct SteamTimelineGamePhaseRecordingExists_t { - public const int k_iCallback = Constants.k_iSteamTimelineCallbacks + 1; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchMaxPhaseIDLength)] - private byte[] m_rgchPhaseID_; - public string m_rgchPhaseID - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchPhaseID_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchPhaseID_, Constants.k_cchMaxPhaseIDLength); } - } - public ulong m_ulRecordingMS; - public ulong m_ulLongestClipMS; - public uint m_unClipCount; - public uint m_unScreenshotCount; - } - - //----------------------------------------------------------------------------- - // Purpose: Callback for querying UGC - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamTimelineCallbacks + 2)] - public struct SteamTimelineEventRecordingExists_t { - public const int k_iCallback = Constants.k_iSteamTimelineCallbacks + 2; - public ulong m_ulEventID; - [MarshalAs(UnmanagedType.I1)] - public bool m_bRecordingExists; - } - - //----------------------------------------------------------------------------- - // Purpose: Callback for querying UGC - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 1)] - public struct SteamUGCQueryCompleted_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 1; - public UGCQueryHandle_t m_handle; - public EResult m_eResult; - public uint m_unNumResultsReturned; - public uint m_unTotalMatchingResults; - [MarshalAs(UnmanagedType.I1)] - public bool m_bCachedData; // indicates whether this data was retrieved from the local on-disk cache - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedFileURLMax)] - private byte[] m_rgchNextCursor_; - public string m_rgchNextCursor // If a paging cursor was used, then this will be the next cursor to get the next result set. - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchNextCursor_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchNextCursor_, Constants.k_cchPublishedFileURLMax); } - } - } - - //----------------------------------------------------------------------------- - // Purpose: Callback for requesting details on one piece of UGC - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 2)] - public struct SteamUGCRequestUGCDetailsResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 2; - public SteamUGCDetails_t m_details; - [MarshalAs(UnmanagedType.I1)] - public bool m_bCachedData; // indicates whether this data was retrieved from the local on-disk cache - } - - //----------------------------------------------------------------------------- - // Purpose: result for ISteamUGC::CreateItem() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 3)] - public struct CreateItemResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 3; - public EResult m_eResult; - public PublishedFileId_t m_nPublishedFileId; // new item got this UGC PublishFileID - [MarshalAs(UnmanagedType.I1)] - public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; - } - - //----------------------------------------------------------------------------- - // Purpose: result for ISteamUGC::SubmitItemUpdate() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 4)] - public struct SubmitItemUpdateResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 4; - public EResult m_eResult; - [MarshalAs(UnmanagedType.I1)] - public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; - public PublishedFileId_t m_nPublishedFileId; - } - - //----------------------------------------------------------------------------- - // Purpose: a Workshop item has been installed or updated - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 5)] - public struct ItemInstalled_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 5; - public AppId_t m_unAppID; - public PublishedFileId_t m_nPublishedFileId; - public UGCHandle_t m_hLegacyContent; - public ulong m_unManifestID; - } - - //----------------------------------------------------------------------------- - // Purpose: result of DownloadItem(), existing item files can be accessed again - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 6)] - public struct DownloadItemResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 6; - public AppId_t m_unAppID; - public PublishedFileId_t m_nPublishedFileId; - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Purpose: result of AddItemToFavorites() or RemoveItemFromFavorites() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 7)] - public struct UserFavoriteItemsListChanged_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 7; - public PublishedFileId_t m_nPublishedFileId; - public EResult m_eResult; - [MarshalAs(UnmanagedType.I1)] - public bool m_bWasAddRequest; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to SetUserItemVote() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 8)] - public struct SetUserItemVoteResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 8; - public PublishedFileId_t m_nPublishedFileId; - public EResult m_eResult; - [MarshalAs(UnmanagedType.I1)] - public bool m_bVoteUp; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to GetUserItemVote() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 9)] - public struct GetUserItemVoteResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 9; - public PublishedFileId_t m_nPublishedFileId; - public EResult m_eResult; - [MarshalAs(UnmanagedType.I1)] - public bool m_bVotedUp; - [MarshalAs(UnmanagedType.I1)] - public bool m_bVotedDown; - [MarshalAs(UnmanagedType.I1)] - public bool m_bVoteSkipped; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to StartPlaytimeTracking() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 10)] - public struct StartPlaytimeTrackingResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 10; - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to StopPlaytimeTracking() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 11)] - public struct StopPlaytimeTrackingResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 11; - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to AddDependency - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 12)] - public struct AddUGCDependencyResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 12; - public EResult m_eResult; - public PublishedFileId_t m_nPublishedFileId; - public PublishedFileId_t m_nChildPublishedFileId; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to RemoveDependency - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 13)] - public struct RemoveUGCDependencyResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 13; - public EResult m_eResult; - public PublishedFileId_t m_nPublishedFileId; - public PublishedFileId_t m_nChildPublishedFileId; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to AddAppDependency - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 14)] - public struct AddAppDependencyResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 14; - public EResult m_eResult; - public PublishedFileId_t m_nPublishedFileId; - public AppId_t m_nAppID; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to RemoveAppDependency - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 15)] - public struct RemoveAppDependencyResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 15; - public EResult m_eResult; - public PublishedFileId_t m_nPublishedFileId; - public AppId_t m_nAppID; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to GetAppDependencies. Callback may be called - // multiple times until all app dependencies have been returned. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 16)] - public struct GetAppDependenciesResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 16; - public EResult m_eResult; - public PublishedFileId_t m_nPublishedFileId; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)] - public AppId_t[] m_rgAppIDs; - public uint m_nNumAppDependencies; // number returned in this struct - public uint m_nTotalNumAppDependencies; // total found - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to DeleteItem - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 17)] - public struct DeleteItemResult_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 17; - public EResult m_eResult; - public PublishedFileId_t m_nPublishedFileId; - } - - //----------------------------------------------------------------------------- - // Purpose: signal that the list of subscribed items changed - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 18)] - public struct UserSubscribedItemsListChanged_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 18; - public AppId_t m_nAppID; - } - - //----------------------------------------------------------------------------- - // Purpose: Status of the user's acceptable/rejection of the app's specific Workshop EULA - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUGCCallbacks + 20)] - public struct WorkshopEULAStatus_t { - public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 20; - public EResult m_eResult; - public AppId_t m_nAppID; - public uint m_unVersion; - public RTime32 m_rtAction; - [MarshalAs(UnmanagedType.I1)] - public bool m_bAccepted; - [MarshalAs(UnmanagedType.I1)] - public bool m_bNeedsAction; - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: Called when an authenticated connection to the Steam back-end has been established. - // This means the Steam client now has a working connection to the Steam servers. - // Usually this will have occurred before the game has launched, and should - // only be seen if the user has dropped connection due to a networking issue - // or a Steam server update. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 1)] - public struct SteamServersConnected_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 1; - } - - //----------------------------------------------------------------------------- - // Purpose: called when a connection attempt has failed - // this will occur periodically if the Steam client is not connected, - // and has failed in it's retry to establish a connection - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 2)] - public struct SteamServerConnectFailure_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 2; - public EResult m_eResult; - [MarshalAs(UnmanagedType.I1)] - public bool m_bStillRetrying; - } - - //----------------------------------------------------------------------------- - // Purpose: called if the client has lost connection to the Steam servers - // real-time services will be disabled until a matching SteamServersConnected_t has been posted - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 3)] - public struct SteamServersDisconnected_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 3; - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Purpose: Sent by the Steam server to the client telling it to disconnect from the specified game server, - // which it may be in the process of or already connected to. - // The game client should immediately disconnect upon receiving this message. - // This can usually occur if the user doesn't have rights to play on the game server. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 13)] - public struct ClientGameServerDeny_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 13; - - public uint m_uAppID; - public uint m_unGameServerIP; - public ushort m_usGameServerPort; - public ushort m_bSecure; - public uint m_uReason; - } - - //----------------------------------------------------------------------------- - // Purpose: called when the callback system for this client is in an error state (and has flushed pending callbacks) - // When getting this message the client should disconnect from Steam, reset any stored Steam state and reconnect. - // This usually occurs in the rare event the Steam client has some kind of fatal error. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 17)] - public struct IPCFailure_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 17; - public byte m_eFailureType; - } - - //----------------------------------------------------------------------------- - // Purpose: Signaled whenever licenses change - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 25)] - public struct LicensesUpdated_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 25; - } - - //----------------------------------------------------------------------------- - // callback for BeginAuthSession - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 43)] - public struct ValidateAuthTicketResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 43; - public CSteamID m_SteamID; - public EAuthSessionResponse m_eAuthSessionResponse; - public CSteamID m_OwnerSteamID; // different from m_SteamID if borrowed - } - - //----------------------------------------------------------------------------- - // Purpose: called when a user has responded to a microtransaction authorization request - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 52)] - public struct MicroTxnAuthorizationResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 52; - - public uint m_unAppID; // AppID for this microtransaction - public ulong m_ulOrderID; // OrderID provided for the microtransaction - public byte m_bAuthorized; // if user authorized transaction - } - - //----------------------------------------------------------------------------- - // Purpose: Result from RequestEncryptedAppTicket - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 54)] - public struct EncryptedAppTicketResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 54; - - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // callback for GetAuthSessionTicket - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 63)] - public struct GetAuthSessionTicketResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 63; - public HAuthTicket m_hAuthTicket; - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Purpose: sent to your game in response to a steam://gamewebcallback/ command - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 64)] - public struct GameWebCallback_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 64; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] - private byte[] m_szURL_; - public string m_szURL - { - get { return InteropHelp.ByteArrayToStringUTF8(m_szURL_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_szURL_, 256); } - } - } - - //----------------------------------------------------------------------------- - // Purpose: sent to your game in response to ISteamUser::RequestStoreAuthURL - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 65)] - public struct StoreAuthURLResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 65; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 512)] - private byte[] m_szURL_; - public string m_szURL - { - get { return InteropHelp.ByteArrayToStringUTF8(m_szURL_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_szURL_, 512); } - } - } - - //----------------------------------------------------------------------------- - // Purpose: sent in response to ISteamUser::GetMarketEligibility - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 66)] - public struct MarketEligibilityResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 66; - [MarshalAs(UnmanagedType.I1)] - public bool m_bAllowed; - public EMarketNotAllowedReasonFlags m_eNotAllowedReason; - public RTime32 m_rtAllowedAtTime; - - public int m_cdaySteamGuardRequiredDays; // The number of days any user is required to have had Steam Guard before they can use the market - public int m_cdayNewDeviceCooldown; // The number of days after initial device authorization a user must wait before using the market on that device - } - - //----------------------------------------------------------------------------- - // Purpose: sent for games with enabled anti indulgence / duration control, for - // enabled users. Lets the game know whether the user can keep playing or - // whether the game should exit, and returns info about remaining gameplay time. - // - // This callback is fired asynchronously in response to timers triggering. - // It is also fired in response to calls to GetDurationControl(). - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 67)] - public struct DurationControl_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 67; - - public EResult m_eResult; // result of call (always k_EResultOK for asynchronous timer-based notifications) - public AppId_t m_appid; // appid generating playtime - - [MarshalAs(UnmanagedType.I1)] - public bool m_bApplicable; // is duration control applicable to user + game combination - public int m_csecsLast5h; // playtime since most recent 5 hour gap in playtime, only counting up to regulatory limit of playtime, in seconds - - public EDurationControlProgress m_progress; // recommended progress (either everything is fine, or please exit game) - public EDurationControlNotification m_notification; // notification to show, if any (always k_EDurationControlNotification_None for API calls) - - public int m_csecsToday; // playtime on current calendar day - public int m_csecsRemaining; // playtime remaining until the user hits a regulatory limit - } - - //----------------------------------------------------------------------------- - // callback for GetTicketForWebApi - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 68)] - public struct GetTicketForWebApiResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 68; - public HAuthTicket m_hAuthTicket; - public EResult m_eResult; - public int m_cubTicket; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_nCubTicketMaxLength)] - public byte[] m_rgubTicket; - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: called when the latests stats and achievements have been received - // from the server - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Explicit, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 1)] - public struct UserStatsReceived_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 1; - [FieldOffset(0)] - public ulong m_nGameID; // Game these stats are for - [FieldOffset(8)] - public EResult m_eResult; // Success / error fetching the stats - [FieldOffset(12)] - public CSteamID m_steamIDUser; // The user for whom the stats are retrieved for - } - - //----------------------------------------------------------------------------- - // Purpose: result of a request to store the user stats for a game - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 2)] - public struct UserStatsStored_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 2; - public ulong m_nGameID; // Game these stats are for - public EResult m_eResult; // success / error - } - - //----------------------------------------------------------------------------- - // Purpose: result of a request to store the achievements for a game, or an - // "indicate progress" call. If both m_nCurProgress and m_nMaxProgress - // are zero, that means the achievement has been fully unlocked. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 3)] - public struct UserAchievementStored_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 3; - - public ulong m_nGameID; // Game this is for - [MarshalAs(UnmanagedType.I1)] - public bool m_bGroupAchievement; // if this is a "group" achievement - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchStatNameMax)] - private byte[] m_rgchAchievementName_; - public string m_rgchAchievementName // name of the achievement - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchAchievementName_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchAchievementName_, Constants.k_cchStatNameMax); } - } - public uint m_nCurProgress; // current progress towards the achievement - public uint m_nMaxProgress; // "out of" this many - } - - //----------------------------------------------------------------------------- - // Purpose: call result for finding a leaderboard, returned as a result of FindOrCreateLeaderboard() or FindLeaderboard() - // use CCallResult<> to map this async result to a member function - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 4)] - public struct LeaderboardFindResult_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 4; - public SteamLeaderboard_t m_hSteamLeaderboard; // handle to the leaderboard serarched for, 0 if no leaderboard found - public byte m_bLeaderboardFound; // 0 if no leaderboard found - } - - //----------------------------------------------------------------------------- - // Purpose: call result indicating scores for a leaderboard have been downloaded and are ready to be retrieved, returned as a result of DownloadLeaderboardEntries() - // use CCallResult<> to map this async result to a member function - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 5)] - public struct LeaderboardScoresDownloaded_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 5; - public SteamLeaderboard_t m_hSteamLeaderboard; - public SteamLeaderboardEntries_t m_hSteamLeaderboardEntries; // the handle to pass into GetDownloadedLeaderboardEntries() - public int m_cEntryCount; // the number of entries downloaded - } - - //----------------------------------------------------------------------------- - // Purpose: call result indicating scores has been uploaded, returned as a result of UploadLeaderboardScore() - // use CCallResult<> to map this async result to a member function - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 6)] - public struct LeaderboardScoreUploaded_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 6; - public byte m_bSuccess; // 1 if the call was successful - public SteamLeaderboard_t m_hSteamLeaderboard; // the leaderboard handle that was - public int m_nScore; // the score that was attempted to set - public byte m_bScoreChanged; // true if the score in the leaderboard change, false if the existing score was better - public int m_nGlobalRankNew; // the new global rank of the user in this leaderboard - public int m_nGlobalRankPrevious; // the previous global rank of the user in this leaderboard; 0 if the user had no existing entry in the leaderboard - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 7)] - public struct NumberOfCurrentPlayers_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 7; - public byte m_bSuccess; // 1 if the call was successful - public int m_cPlayers; // Number of players currently playing - } - - //----------------------------------------------------------------------------- - // Purpose: Callback indicating that a user's stats have been unloaded. - // Call RequestUserStats again to access stats for this user - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 8)] - public struct UserStatsUnloaded_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 8; - public CSteamID m_steamIDUser; // User whose stats have been unloaded - } - - //----------------------------------------------------------------------------- - // Purpose: Callback indicating that an achievement icon has been fetched - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 9)] - public struct UserAchievementIconFetched_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 9; - - public CGameID m_nGameID; // Game this is for - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchStatNameMax)] - private byte[] m_rgchAchievementName_; - public string m_rgchAchievementName // name of the achievement - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchAchievementName_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchAchievementName_, Constants.k_cchStatNameMax); } - } - [MarshalAs(UnmanagedType.I1)] - public bool m_bAchieved; // Is the icon for the achieved or not achieved version? - public int m_nIconHandle; // Handle to the image, which can be used in SteamUtils()->GetImageRGBA(), 0 means no image is set for the achievement - } - - //----------------------------------------------------------------------------- - // Purpose: Callback indicating that global achievement percentages are fetched - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 10)] - public struct GlobalAchievementPercentagesReady_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 10; - - public ulong m_nGameID; // Game this is for - public EResult m_eResult; // Result of the operation - } - - //----------------------------------------------------------------------------- - // Purpose: call result indicating UGC has been uploaded, returned as a result of SetLeaderboardUGC() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 11)] - public struct LeaderboardUGCSet_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 11; - public EResult m_eResult; // The result of the operation - public SteamLeaderboard_t m_hSteamLeaderboard; // the leaderboard handle that was - } - - //----------------------------------------------------------------------------- - // Purpose: callback indicating global stats have been received. - // Returned as a result of RequestGlobalStats() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 12)] - public struct GlobalStatsReceived_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 12; - public ulong m_nGameID; // Game global stats were requested for - public EResult m_eResult; // The result of the request - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: The country of the user changed - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 1)] - public struct IPCountry_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 1; - } - - //----------------------------------------------------------------------------- - // Purpose: Fired when running on a handheld PC or laptop with less than 10 minutes of battery is left, fires then every minute - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 2)] - public struct LowBatteryPower_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 2; - public byte m_nMinutesBatteryLeft; - } - - //----------------------------------------------------------------------------- - // Purpose: called when a SteamAsyncCall_t has completed (or failed) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 3)] - public struct SteamAPICallCompleted_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 3; - public SteamAPICall_t m_hAsyncCall; - public int m_iCallback; - public uint m_cubParam; - } - - //----------------------------------------------------------------------------- - // called when Steam wants to shutdown - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 4)] - public struct SteamShutdown_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 4; - } - - //----------------------------------------------------------------------------- - // callback for CheckFileSignature - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 5)] - public struct CheckFileSignature_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 5; - public ECheckFileSignature m_eCheckFileSignature; - } - - // k_iSteamUtilsCallbacks + 13 is taken - //----------------------------------------------------------------------------- - // Full Screen gamepad text input has been closed - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 14)] - public struct GamepadTextInputDismissed_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 14; - [MarshalAs(UnmanagedType.I1)] - public bool m_bSubmitted; // true if user entered & accepted text (Call ISteamUtils::GetEnteredGamepadTextInput() for text), false if canceled input - public uint m_unSubmittedText; - public AppId_t m_unAppID; - } - - // k_iSteamUtilsCallbacks + 15 through 35 are taken - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 36)] - public struct AppResumingFromSuspend_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 36; - } - - // k_iSteamUtilsCallbacks + 37 is taken - //----------------------------------------------------------------------------- - // The floating on-screen keyboard has been closed - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 38)] - public struct FloatingGamepadTextInputDismissed_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 38; - } - - //----------------------------------------------------------------------------- - // The text filtering dictionary has changed - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 39)] - public struct FilterTextDictionaryChanged_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 39; - public int m_eLanguage; // One of ELanguage, or k_LegallyRequiredFiltering - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamVideoCallbacks + 11)] - public struct GetVideoURLResult_t { - public const int k_iCallback = Constants.k_iSteamVideoCallbacks + 11; - public EResult m_eResult; - public AppId_t m_unVideoAppID; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] - private byte[] m_rgchURL_; - public string m_rgchURL - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchURL_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchURL_, 256); } - } - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamVideoCallbacks + 24)] - public struct GetOPFSettingsResult_t { - public const int k_iCallback = Constants.k_iSteamVideoCallbacks + 24; - public EResult m_eResult; - public AppId_t m_unVideoAppID; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamVideoCallbacks + 4)] - public struct BroadcastUploadStart_t { - public const int k_iCallback = Constants.k_iSteamVideoCallbacks + 4; - [MarshalAs(UnmanagedType.I1)] - public bool m_bIsRTMP; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamVideoCallbacks + 5)] - public struct BroadcastUploadStop_t { - public const int k_iCallback = Constants.k_iSteamVideoCallbacks + 5; - public EBroadcastUploadResult m_eResult; - } - - /// Callback struct used to notify when a connection has changed state - /// A struct used to describe a "fake IP" we have been assigned to - /// use as an identifier. This callback is posted when - /// ISteamNetworkingSoockets::BeginAsyncRequestFakeIP completes. - /// See also ISteamNetworkingSockets::GetFakeIP - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamNetworkingSocketsCallbacks + 3)] - public struct SteamNetworkingFakeIPResult_t { - public const int k_iCallback = Constants.k_iSteamNetworkingSocketsCallbacks + 3; - - /// Status/result of the allocation request. Possible failure values are: - /// - k_EResultBusy - you called GetFakeIP but the request has not completed. - /// - k_EResultInvalidParam - you called GetFakeIP with an invalid port index - /// - k_EResultLimitExceeded - You asked for too many ports, or made an - /// additional request after one had already succeeded - /// - k_EResultNoMatch - GetFakeIP was called, but no request has been made - /// - /// Note that, with the exception of k_EResultBusy (if you are polling), - /// it is highly recommended to treat all failures as fatal. - public EResult m_eResult; - - /// Local identity of the ISteamNetworkingSockets object that made - /// this request and is assigned the IP. This is needed in the callback - /// in the case where there are multiple ISteamNetworkingSockets objects. - /// (E.g. one for the user, and another for the local gameserver). - public SteamNetworkingIdentity m_identity; - - /// Fake IPv4 IP address that we have been assigned. NOTE: this - /// IP address is not exclusively ours! Steam tries to avoid sharing - /// IP addresses, but this may not always be possible. The IP address - /// may be currently in use by another host, but with different port(s). - /// The exact same IP:port address may have been used previously. - /// Steam tries to avoid reusing ports until they have not been in use for - /// some time, but this may not always be possible. - public uint m_unIP; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_nMaxReturnPorts)] - public ushort[] m_unPorts; - } +using IntPtr = nint; + +namespace SwiftlyS2.Shared.SteamAPI; + +// callbacks +//----------------------------------------------------------------------------- +// Purpose: posted after the user gains ownership of DLC & that DLC is installed +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamAppsCallbacks + 5)] +public struct DlcInstalled_t +{ + public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 5; + public AppId_t m_nAppID; // AppID of the DLC +} + +//--------------------------------------------------------------------------------- +// Purpose: posted after the user gains executes a Steam URL with command line or query parameters +// such as steam://run///-commandline/?param1=value1¶m2=value2¶m3=value3 etc +// while the game is already running. The new params can be queried +// with GetLaunchQueryParam and GetLaunchCommandLine +//--------------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamAppsCallbacks + 14)] +public struct NewUrlLaunchParameters_t +{ + public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 14; +} + +//----------------------------------------------------------------------------- +// Purpose: response to RequestAppProofOfPurchaseKey/RequestAllProofOfPurchaseKeys +// for supporting third-party CD keys, or other proof-of-purchase systems. +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamAppsCallbacks + 21)] +public struct AppProofOfPurchaseKeyResponse_t +{ + public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 21; + public EResult m_eResult; + public uint m_nAppID; + public uint m_cchKeyLength; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cubAppProofOfPurchaseKeyMax)] + private readonly byte[] m_rgchKey_; + public string m_rgchKey { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchKey_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchKey_, Constants.k_cubAppProofOfPurchaseKeyMax); } + } +} + +//----------------------------------------------------------------------------- +// Purpose: response to GetFileDetails +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamAppsCallbacks + 23)] +public struct FileDetailsResult_t +{ + public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 23; + public EResult m_eResult; + public ulong m_ulFileSize; // original file size in bytes + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)] + public byte[] m_FileSHA; // original file SHA1 hash + public uint m_unFlags; // +} + +//----------------------------------------------------------------------------- +// Purpose: called for games in Timed Trial mode +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamAppsCallbacks + 30)] +public struct TimedTrialStatus_t +{ + public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 30; + public AppId_t m_unAppID; // appID + [MarshalAs(UnmanagedType.I1)] + public bool m_bIsOffline; // if true, time allowed / played refers to offline time, not total time + public uint m_unSecondsAllowed; // how many seconds the app can be played in total + public uint m_unSecondsPlayed; // how many seconds the app was already played +} + +// callbacks +//----------------------------------------------------------------------------- +// Purpose: called when a friends' status changes +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 4)] +public struct PersonaStateChange_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 4; + + public ulong m_ulSteamID; // steamID of the friend who changed + public EPersonaChange m_nChangeFlags; // what's changed +} + +//----------------------------------------------------------------------------- +// Purpose: posted when game overlay activates or deactivates +// the game can use this to be pause or resume single player games +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 31)] +public struct GameOverlayActivated_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 31; + public byte m_bActive; // true if it's just been activated, false otherwise + [MarshalAs(UnmanagedType.I1)] + public bool m_bUserInitiated; // true if the user asked for the overlay to be activated/deactivated + public AppId_t m_nAppID; // the appID of the game (should always be the current game) + public uint m_dwOverlayPID; // used internally +} + +//----------------------------------------------------------------------------- +// Purpose: called when the user tries to join a different game server from their friends list +// game client should attempt to connect to specified server when this is received +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 32)] +public struct GameServerChangeRequested_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 32; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)] + private readonly byte[] m_rgchServer_; + public string m_rgchServer // server address ("127.0.0.1:27015", "tf2.valvesoftware.com") + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchServer_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchServer_, 64); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)] + private readonly byte[] m_rgchPassword_; + public string m_rgchPassword // server password, if any + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchPassword_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchPassword_, 64); } + } +} + +//----------------------------------------------------------------------------- +// Purpose: called when the user tries to join a lobby from their friends list +// game client should attempt to connect to specified lobby when this is received +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 33)] +public struct GameLobbyJoinRequested_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 33; + public CSteamID m_steamIDLobby; + + // The friend they did the join via (will be invalid if not directly via a friend) + public CSteamID m_steamIDFriend; +} + +//----------------------------------------------------------------------------- +// Purpose: called when an avatar is loaded in from a previous GetLargeFriendAvatar() call +// if the image wasn't already available +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 34)] +public struct AvatarImageLoaded_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 34; + public CSteamID m_steamID; // steamid the avatar has been loaded for + public int m_iImage; // the image index of the now loaded image + public int m_iWide; // width of the loaded image + public int m_iTall; // height of the loaded image +} + +//----------------------------------------------------------------------------- +// Purpose: marks the return of a request officer list call +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 35)] +public struct ClanOfficerListResponse_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 35; + public CSteamID m_steamIDClan; + public int m_cOfficers; + public byte m_bSuccess; +} + +//----------------------------------------------------------------------------- +// Purpose: callback indicating updated data about friends rich presence information +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 36)] +public struct FriendRichPresenceUpdate_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 36; + public CSteamID m_steamIDFriend; // friend who's rich presence has changed + public AppId_t m_nAppID; // the appID of the game (should always be the current game) +} + +//----------------------------------------------------------------------------- +// Purpose: called when the user tries to join a game from their friends list +// rich presence will have been set with the "connect" key which is set here +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 37)] +public struct GameRichPresenceJoinRequested_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 37; + public CSteamID m_steamIDFriend; // the friend they did the join via (will be invalid if not directly via a friend) + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchMaxRichPresenceValueLength)] + private readonly byte[] m_rgchConnect_; + public string m_rgchConnect { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchConnect_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchConnect_, Constants.k_cchMaxRichPresenceValueLength); } + } +} + +//----------------------------------------------------------------------------- +// Purpose: a chat message has been received for a clan chat the game has joined +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 38)] +public struct GameConnectedClanChatMsg_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 38; + public CSteamID m_steamIDClanChat; + public CSteamID m_steamIDUser; + public int m_iMessageID; +} + +//----------------------------------------------------------------------------- +// Purpose: a user has joined a clan chat +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 39)] +public struct GameConnectedChatJoin_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 39; + public CSteamID m_steamIDClanChat; + public CSteamID m_steamIDUser; +} + +//----------------------------------------------------------------------------- +// Purpose: a user has left the chat we're in +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = 1)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 40)] +public struct GameConnectedChatLeave_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 40; + public CSteamID m_steamIDClanChat; + public CSteamID m_steamIDUser; + [MarshalAs(UnmanagedType.I1)] + public bool m_bKicked; // true if admin kicked + [MarshalAs(UnmanagedType.I1)] + public bool m_bDropped; // true if Steam connection dropped +} + +//----------------------------------------------------------------------------- +// Purpose: a DownloadClanActivityCounts() call has finished +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 41)] +public struct DownloadClanActivityCountsResult_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 41; + [MarshalAs(UnmanagedType.I1)] + public bool m_bSuccess; +} + +//----------------------------------------------------------------------------- +// Purpose: a JoinClanChatRoom() call has finished +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 42)] +public struct JoinClanChatRoomCompletionResult_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 42; + public CSteamID m_steamIDClanChat; + public EChatRoomEnterResponse m_eChatRoomEnterResponse; +} + +//----------------------------------------------------------------------------- +// Purpose: a chat message has been received from a user +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 43)] +public struct GameConnectedFriendChatMsg_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 43; + public CSteamID m_steamIDUser; + public int m_iMessageID; +} + +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 44)] +public struct FriendsGetFollowerCount_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 44; + public EResult m_eResult; + public CSteamID m_steamID; + public int m_nCount; +} + +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 45)] +public struct FriendsIsFollowing_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 45; + public EResult m_eResult; + public CSteamID m_steamID; + [MarshalAs(UnmanagedType.I1)] + public bool m_bIsFollowing; +} + +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 46)] +public struct FriendsEnumerateFollowingList_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 46; + public EResult m_eResult; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cEnumerateFollowersMax)] + public CSteamID[] m_rgSteamID; + public int m_nResultsReturned; + public int m_nTotalResultCount; +} + +//----------------------------------------------------------------------------- +// Purpose: Invoked when the status of unread messages changes +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 48)] +public struct UnreadChatMessagesChanged_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 48; +} + +//----------------------------------------------------------------------------- +// Purpose: Dispatched when an overlay browser instance is navigated to a protocol/scheme registered by RegisterProtocolInOverlayBrowser() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 49)] +public struct OverlayBrowserProtocolNavigation_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 49; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)] + private readonly byte[] rgchURI_; + public string rgchURI { + get { return InteropHelp.ByteArrayToStringUTF8(rgchURI_); } + set { InteropHelp.StringToByteArrayUTF8(value, rgchURI_, 1024); } + } +} + +//----------------------------------------------------------------------------- +// Purpose: A user's equipped profile items have changed +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 50)] +public struct EquippedProfileItemsChanged_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 50; + public CSteamID m_steamID; +} + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 51)] +public struct EquippedProfileItems_t +{ + public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 51; + public EResult m_eResult; + public CSteamID m_steamID; + [MarshalAs(UnmanagedType.I1)] + public bool m_bHasAnimatedAvatar; + [MarshalAs(UnmanagedType.I1)] + public bool m_bHasAvatarFrame; + [MarshalAs(UnmanagedType.I1)] + public bool m_bHasProfileModifier; + [MarshalAs(UnmanagedType.I1)] + public bool m_bHasProfileBackground; + [MarshalAs(UnmanagedType.I1)] + public bool m_bHasMiniProfileBackground; + [MarshalAs(UnmanagedType.I1)] + public bool m_bFromCache; +} + +// callbacks +// callback notification - A new message is available for reading from the message queue +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameCoordinatorCallbacks + 1)] +public struct GCMessageAvailable_t +{ + public const int k_iCallback = Constants.k_iSteamGameCoordinatorCallbacks + 1; + public uint m_nMessageSize; +} + +// callback notification - A message failed to make it to the GC. It may be down temporarily +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamGameCoordinatorCallbacks + 2)] +public struct GCMessageFailed_t +{ + public const int k_iCallback = Constants.k_iSteamGameCoordinatorCallbacks + 2; +} + +// callbacks +// client has been approved to connect to this game server +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 1)] +public struct GSClientApprove_t +{ + public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 1; + public CSteamID m_SteamID; // SteamID of approved player + public CSteamID m_OwnerSteamID; // SteamID of original owner for game license +} + +// client has been denied to connection to this game server +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 2)] +public struct GSClientDeny_t +{ + public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 2; + public CSteamID m_SteamID; + public EDenyReason m_eDenyReason; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)] + private readonly byte[] m_rgchOptionalText_; + public string m_rgchOptionalText { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchOptionalText_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchOptionalText_, 128); } + } +} + +// request the game server should kick the user +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 3)] +public struct GSClientKick_t +{ + public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 3; + public CSteamID m_SteamID; + public EDenyReason m_eDenyReason; +} + +// NOTE: callback values 4 and 5 are skipped because they are used for old deprecated callbacks, +// do not reuse them here. +// client achievement info +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 6)] +public struct GSClientAchievementStatus_t +{ + public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 6; + public ulong m_SteamID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)] + private readonly byte[] m_pchAchievement_; + public string m_pchAchievement { + get { return InteropHelp.ByteArrayToStringUTF8(m_pchAchievement_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_pchAchievement_, 128); } + } + [MarshalAs(UnmanagedType.I1)] + public bool m_bUnlocked; +} + +// received when the game server requests to be displayed as secure (VAC protected) +// m_bSecure is true if the game server should display itself as secure to users, false otherwise +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 15)] +public struct GSPolicyResponse_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 15; + public byte m_bSecure; +} + +// GS gameplay stats info +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 7)] +public struct GSGameplayStats_t +{ + public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 7; + public EResult m_eResult; // Result of the call + public int m_nRank; // Overall rank of the server (0-based) + public uint m_unTotalConnects; // Total number of clients who have ever connected to the server + public uint m_unTotalMinutesPlayed; // Total number of minutes ever played on the server +} + +// send as a reply to RequestUserGroupStatus() +[StructLayout(LayoutKind.Sequential, Pack = 1)] +[CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 8)] +public struct GSClientGroupStatus_t +{ + public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 8; + public CSteamID m_SteamIDUser; + public CSteamID m_SteamIDGroup; + [MarshalAs(UnmanagedType.I1)] + public bool m_bMember; + [MarshalAs(UnmanagedType.I1)] + public bool m_bOfficer; +} + +// Sent as a reply to GetServerReputation() +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 9)] +public struct GSReputation_t +{ + public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 9; + public EResult m_eResult; // Result of the call; + public uint m_unReputationScore; // The reputation score for the game server + [MarshalAs(UnmanagedType.I1)] + public bool m_bBanned; // True if the server is banned from the Steam + // master servers + + // The following members are only filled out if m_bBanned is true. They will all + // be set to zero otherwise. Master server bans are by IP so it is possible to be + // banned even when the score is good high if there is a bad server on another port. + // This information can be used to determine which server is bad. + + public uint m_unBannedIP; // The IP of the banned server + public ushort m_usBannedPort; // The port of the banned server + public ulong m_ulBannedGameID; // The game ID the banned server is serving + public uint m_unBanExpires; // Time the ban expires, expressed in the Unix epoch (seconds since 1/1/1970) +} + +// Sent as a reply to AssociateWithClan() +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 10)] +public struct AssociateWithClanResult_t +{ + public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 10; + public EResult m_eResult; // Result of the call; +} + +// Sent as a reply to ComputeNewPlayerCompatibility() +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 11)] +public struct ComputeNewPlayerCompatibilityResult_t +{ + public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 11; + public EResult m_eResult; // Result of the call; + public int m_cPlayersThatDontLikeCandidate; + public int m_cPlayersThatCandidateDoesntLike; + public int m_cClanPlayersThatDontLikeCandidate; + public CSteamID m_SteamIDCandidate; +} + +// callbacks +//----------------------------------------------------------------------------- +// Purpose: called when the latests stats and achievements have been received +// from the server +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamGameServerStatsCallbacks)] +public struct GSStatsReceived_t +{ + public const int k_iCallback = Constants.k_iSteamGameServerStatsCallbacks; + public EResult m_eResult; // Success / error fetching the stats + public CSteamID m_steamIDUser; // The user for whom the stats are retrieved for +} + +//----------------------------------------------------------------------------- +// Purpose: result of a request to store the user stats for a game +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamGameServerStatsCallbacks + 1)] +public struct GSStatsStored_t +{ + public const int k_iCallback = Constants.k_iSteamGameServerStatsCallbacks + 1; + public EResult m_eResult; // success / error + public CSteamID m_steamIDUser; // The user for whom the stats were stored +} + +//----------------------------------------------------------------------------- +// Purpose: Callback indicating that a user's stats have been unloaded. +// Call RequestUserStats again to access stats for this user +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 8)] +public struct GSStatsUnloaded_t +{ + public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 8; + public CSteamID m_steamIDUser; // User whose stats have been unloaded +} + +// callbacks +//----------------------------------------------------------------------------- +// Purpose: The browser is ready for use +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 1)] +public struct HTML_BrowserReady_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 1; + public HHTMLBrowser unBrowserHandle; // this browser is now fully created and ready to navigate to pages +} + +//----------------------------------------------------------------------------- +// Purpose: the browser has a pending paint +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 2)] +public struct HTML_NeedsPaint_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 2; + public HHTMLBrowser unBrowserHandle; // the browser that needs the paint + public IntPtr pBGRA; // a pointer to the B8G8R8A8 data for this surface, valid until SteamAPI_RunCallbacks is next called + public uint unWide; // the total width of the pBGRA texture + public uint unTall; // the total height of the pBGRA texture + public uint unUpdateX; // the offset in X for the damage rect for this update + public uint unUpdateY; // the offset in Y for the damage rect for this update + public uint unUpdateWide; // the width of the damage rect for this update + public uint unUpdateTall; // the height of the damage rect for this update + public uint unScrollX; // the page scroll the browser was at when this texture was rendered + public uint unScrollY; // the page scroll the browser was at when this texture was rendered + public float flPageScale; // the page scale factor on this page when rendered + public uint unPageSerial; // incremented on each new page load, you can use this to reject draws while navigating to new pages +} + +//----------------------------------------------------------------------------- +// Purpose: The browser wanted to navigate to a new page +// NOTE - you MUST call AllowStartRequest in response to this callback +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 3)] +public struct HTML_StartRequest_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 3; + public HHTMLBrowser unBrowserHandle; // the handle of the surface navigating + public string pchURL; // the url they wish to navigate to + public string pchTarget; // the html link target type (i.e _blank, _self, _parent, _top ) + public string pchPostData; // any posted data for the request + [MarshalAs(UnmanagedType.I1)] + public bool bIsRedirect; // true if this was a http/html redirect from the last load request +} + +//----------------------------------------------------------------------------- +// Purpose: The browser has been requested to close due to user interaction (usually from a javascript window.close() call) +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 4)] +public struct HTML_CloseBrowser_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 4; + public HHTMLBrowser unBrowserHandle; // the handle of the surface +} + +//----------------------------------------------------------------------------- +// Purpose: the browser is navigating to a new url +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 5)] +public struct HTML_URLChanged_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 5; + public HHTMLBrowser unBrowserHandle; // the handle of the surface navigating + public string pchURL; // the url they wish to navigate to + public string pchPostData; // any posted data for the request + [MarshalAs(UnmanagedType.I1)] + public bool bIsRedirect; // true if this was a http/html redirect from the last load request + public string pchPageTitle; // the title of the page + [MarshalAs(UnmanagedType.I1)] + public bool bNewNavigation; // true if this was from a fresh tab and not a click on an existing page +} + +//----------------------------------------------------------------------------- +// Purpose: A page is finished loading +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 6)] +public struct HTML_FinishedRequest_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 6; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public string pchURL; // + public string pchPageTitle; // +} + +//----------------------------------------------------------------------------- +// Purpose: a request to load this url in a new tab +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 7)] +public struct HTML_OpenLinkInNewTab_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 7; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public string pchURL; // +} + +//----------------------------------------------------------------------------- +// Purpose: the page has a new title now +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 8)] +public struct HTML_ChangedTitle_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 8; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public string pchTitle; // +} + +//----------------------------------------------------------------------------- +// Purpose: results from a search +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 9)] +public struct HTML_SearchResults_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 9; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public uint unResults; // + public uint unCurrentMatch; // +} + +//----------------------------------------------------------------------------- +// Purpose: page history status changed on the ability to go backwards and forward +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 10)] +public struct HTML_CanGoBackAndForward_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 10; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + [MarshalAs(UnmanagedType.I1)] + public bool bCanGoBack; // + [MarshalAs(UnmanagedType.I1)] + public bool bCanGoForward; // +} + +//----------------------------------------------------------------------------- +// Purpose: details on the visibility and size of the horizontal scrollbar +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 11)] +public struct HTML_HorizontalScroll_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 11; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public uint unScrollMax; // + public uint unScrollCurrent; // + public float flPageScale; // + [MarshalAs(UnmanagedType.I1)] + public bool bVisible; // + public uint unPageSize; // +} + +//----------------------------------------------------------------------------- +// Purpose: details on the visibility and size of the vertical scrollbar +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 12)] +public struct HTML_VerticalScroll_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 12; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public uint unScrollMax; // + public uint unScrollCurrent; // + public float flPageScale; // + [MarshalAs(UnmanagedType.I1)] + public bool bVisible; // + public uint unPageSize; // +} + +//----------------------------------------------------------------------------- +// Purpose: response to GetLinkAtPosition call +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 13)] +public struct HTML_LinkAtPosition_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 13; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public uint x; // NOTE - Not currently set + public uint y; // NOTE - Not currently set + public string pchURL; // + [MarshalAs(UnmanagedType.I1)] + public bool bInput; // + [MarshalAs(UnmanagedType.I1)] + public bool bLiveLink; // +} + +//----------------------------------------------------------------------------- +// Purpose: show a Javascript alert dialog, call JSDialogResponse +// when the user dismisses this dialog (or right away to ignore it) +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 14)] +public struct HTML_JSAlert_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 14; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public string pchMessage; // +} + +//----------------------------------------------------------------------------- +// Purpose: show a Javascript confirmation dialog, call JSDialogResponse +// when the user dismisses this dialog (or right away to ignore it) +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 15)] +public struct HTML_JSConfirm_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 15; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public string pchMessage; // +} + +//----------------------------------------------------------------------------- +// Purpose: when received show a file open dialog +// then call FileLoadDialogResponse with the file(s) the user selected. +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 16)] +public struct HTML_FileOpenDialog_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 16; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public string pchTitle; // + public string pchInitialFile; // +} + +//----------------------------------------------------------------------------- +// Purpose: a new html window is being created. +// +// IMPORTANT NOTE: at this time, the API does not allow you to acknowledge or +// render the contents of this new window, so the new window is always destroyed +// immediately. The URL and other parameters of the new window are passed here +// to give your application the opportunity to call CreateBrowser and set up +// a new browser in response to the attempted popup, if you wish to do so. +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 21)] +public struct HTML_NewWindow_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 21; + public HHTMLBrowser unBrowserHandle; // the handle of the current surface + public string pchURL; // the page to load + public uint unX; // the x pos into the page to display the popup + public uint unY; // the y pos into the page to display the popup + public uint unWide; // the total width of the pBGRA texture + public uint unTall; // the total height of the pBGRA texture + public HHTMLBrowser unNewWindow_BrowserHandle_IGNORE; +} + +//----------------------------------------------------------------------------- +// Purpose: change the cursor to display +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 22)] +public struct HTML_SetCursor_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 22; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public uint eMouseCursor; // the EHTMLMouseCursor to display +} + +//----------------------------------------------------------------------------- +// Purpose: informational message from the browser +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 23)] +public struct HTML_StatusText_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 23; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public string pchMsg; // the message text +} + +//----------------------------------------------------------------------------- +// Purpose: show a tooltip +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 24)] +public struct HTML_ShowToolTip_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 24; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public string pchMsg; // the tooltip text +} + +//----------------------------------------------------------------------------- +// Purpose: update the text of an existing tooltip +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 25)] +public struct HTML_UpdateToolTip_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 25; + public HHTMLBrowser unBrowserHandle; // the handle of the surface + public string pchMsg; // the new tooltip text +} + +//----------------------------------------------------------------------------- +// Purpose: hide the tooltip you are showing +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 26)] +public struct HTML_HideToolTip_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 26; + public HHTMLBrowser unBrowserHandle; // the handle of the surface +} + +//----------------------------------------------------------------------------- +// Purpose: The browser has restarted due to an internal failure, use this new handle value +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 27)] +public struct HTML_BrowserRestarted_t +{ + public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 27; + public HHTMLBrowser unBrowserHandle; // this is the new browser handle after the restart + public HHTMLBrowser unOldBrowserHandle; // the handle for the browser before the restart, if your handle was this then switch to using unBrowserHandle for API calls +} + +// callbacks +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTTPCallbacks + 1)] +public struct HTTPRequestCompleted_t +{ + public const int k_iCallback = Constants.k_iSteamHTTPCallbacks + 1; + + // Handle value for the request that has completed. + public HTTPRequestHandle m_hRequest; + + // Context value that the user defined on the request that this callback is associated with, 0 if + // no context value was set. + public ulong m_ulContextValue; + + // This will be true if we actually got any sort of response from the server (even an error). + // It will be false if we failed due to an internal error or client side network failure. + [MarshalAs(UnmanagedType.I1)] + public bool m_bRequestSuccessful; + + // Will be the HTTP status code value returned by the server, k_EHTTPStatusCode200OK is the normal + // OK response, if you get something else you probably need to treat it as a failure. + public EHTTPStatusCode m_eStatusCode; + + public uint m_unBodySize; // Same as GetHTTPResponseBodySize() +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTTPCallbacks + 2)] +public struct HTTPRequestHeadersReceived_t +{ + public const int k_iCallback = Constants.k_iSteamHTTPCallbacks + 2; + + // Handle value for the request that has received headers. + public HTTPRequestHandle m_hRequest; + + // Context value that the user defined on the request that this callback is associated with, 0 if + // no context value was set. + public ulong m_ulContextValue; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamHTTPCallbacks + 3)] +public struct HTTPRequestDataReceived_t +{ + public const int k_iCallback = Constants.k_iSteamHTTPCallbacks + 3; + + // Handle value for the request that has received data. + public HTTPRequestHandle m_hRequest; + + // Context value that the user defined on the request that this callback is associated with, 0 if + // no context value was set. + public ulong m_ulContextValue; + + + // Offset to provide to GetHTTPStreamingResponseBodyData to get this chunk of data + public uint m_cOffset; + + // Size to provide to GetHTTPStreamingResponseBodyData to get this chunk of data + public uint m_cBytesReceived; +} + +//----------------------------------------------------------------------------- +// Purpose: called when a new controller has been connected, will fire once +// per controller if multiple new controllers connect in the same frame +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamControllerCallbacks + 1)] +public struct SteamInputDeviceConnected_t +{ + public const int k_iCallback = Constants.k_iSteamControllerCallbacks + 1; + public InputHandle_t m_ulConnectedDeviceHandle; // Handle for device +} + +//----------------------------------------------------------------------------- +// Purpose: called when a new controller has been connected, will fire once +// per controller if multiple new controllers connect in the same frame +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamControllerCallbacks + 2)] +public struct SteamInputDeviceDisconnected_t +{ + public const int k_iCallback = Constants.k_iSteamControllerCallbacks + 2; + public InputHandle_t m_ulDisconnectedDeviceHandle; // Handle for device +} + +//----------------------------------------------------------------------------- +// Purpose: called when a controller configuration has been loaded, will fire once +// per controller per focus change for Steam Input enabled controllers +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamControllerCallbacks + 3)] +public struct SteamInputConfigurationLoaded_t +{ + public const int k_iCallback = Constants.k_iSteamControllerCallbacks + 3; + public AppId_t m_unAppID; + public InputHandle_t m_ulDeviceHandle; // Handle for device + public CSteamID m_ulMappingCreator; // May differ from local user when using + // an unmodified community or official config + public uint m_unMajorRevision; // Binding revision from In-game Action File. + // Same value as queried by GetDeviceBindingRevision + public uint m_unMinorRevision; + [MarshalAs(UnmanagedType.I1)] + public bool m_bUsesSteamInputAPI; // Does the configuration contain any Analog/Digital actions? + [MarshalAs(UnmanagedType.I1)] + public bool m_bUsesGamepadAPI; // Does the configuration contain any Xinput bindings? +} + +//----------------------------------------------------------------------------- +// Purpose: called when controller gamepad slots change - on Linux/macOS these +// slots are shared for all running apps. +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamControllerCallbacks + 4)] +public struct SteamInputGamepadSlotChange_t +{ + public const int k_iCallback = Constants.k_iSteamControllerCallbacks + 4; + public AppId_t m_unAppID; + public InputHandle_t m_ulDeviceHandle; // Handle for device + public ESteamInputType m_eDeviceType; // Type of device + public int m_nOldGamepadSlot; // Previous GamepadSlot - can be -1 controller doesn't uses gamepad bindings + public int m_nNewGamepadSlot; // New Gamepad Slot - can be -1 controller doesn't uses gamepad bindings +} + +// SteamInventoryResultReady_t callbacks are fired whenever asynchronous +// results transition from "Pending" to "OK" or an error state. There will +// always be exactly one callback per handle. +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamInventoryCallbacks + 0)] +public struct SteamInventoryResultReady_t +{ + public const int k_iCallback = Constants.k_iSteamInventoryCallbacks + 0; + public SteamInventoryResult_t m_handle; + public EResult m_result; +} + +// SteamInventoryFullUpdate_t callbacks are triggered when GetAllItems +// successfully returns a result which is newer / fresher than the last +// known result. (It will not trigger if the inventory hasn't changed, +// or if results from two overlapping calls are reversed in flight and +// the earlier result is already known to be stale/out-of-date.) +// The normal ResultReady callback will still be triggered immediately +// afterwards; this is an additional notification for your convenience. +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamInventoryCallbacks + 1)] +public struct SteamInventoryFullUpdate_t +{ + public const int k_iCallback = Constants.k_iSteamInventoryCallbacks + 1; + public SteamInventoryResult_t m_handle; +} + +// A SteamInventoryDefinitionUpdate_t callback is triggered whenever +// item definitions have been updated, which could be in response to +// LoadItemDefinitions() or any other async request which required +// a definition update in order to process results from the server. +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamInventoryCallbacks + 2)] +public struct SteamInventoryDefinitionUpdate_t +{ + public const int k_iCallback = Constants.k_iSteamInventoryCallbacks + 2; +} + +// Returned +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamInventoryCallbacks + 3)] +public struct SteamInventoryEligiblePromoItemDefIDs_t +{ + public const int k_iCallback = Constants.k_iSteamInventoryCallbacks + 3; + public EResult m_result; + public CSteamID m_steamID; + public int m_numEligiblePromoItemDefs; + [MarshalAs(UnmanagedType.I1)] + public bool m_bCachedData; // indicates that the data was retrieved from the cache and not the server +} + +// Triggered from StartPurchase call +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamInventoryCallbacks + 4)] +public struct SteamInventoryStartPurchaseResult_t +{ + public const int k_iCallback = Constants.k_iSteamInventoryCallbacks + 4; + public EResult m_result; + public ulong m_ulOrderID; + public ulong m_ulTransID; +} + +// Triggered from RequestPrices +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamInventoryCallbacks + 5)] +public struct SteamInventoryRequestPricesResult_t +{ + public const int k_iCallback = Constants.k_iSteamInventoryCallbacks + 5; + public EResult m_result; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)] + private readonly byte[] m_rgchCurrency_; + public string m_rgchCurrency { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchCurrency_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchCurrency_, 4); } + } +} + +//----------------------------------------------------------------------------- +// Callbacks for ISteamMatchmaking (which go through the regular Steam callback registration system) +//----------------------------------------------------------------------------- +// Purpose: a server was added/removed from the favorites list, you should refresh now +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 2)] +public struct FavoritesListChanged_t +{ + public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 2; + public uint m_nIP; // an IP of 0 means reload the whole list, any other value means just one server + public uint m_nQueryPort; + public uint m_nConnPort; + public uint m_nAppID; + public uint m_nFlags; + [MarshalAs(UnmanagedType.I1)] + public bool m_bAdd; // true if this is adding the entry, otherwise it is a remove + public AccountID_t m_unAccountId; +} + +//----------------------------------------------------------------------------- +// Purpose: Someone has invited you to join a Lobby +// normally you don't need to do anything with this, since +// the Steam UI will also display a ' has invited you to the lobby, join?' dialog +// +// if the user outside a game chooses to join, your game will be launched with the parameter "+connect_lobby <64-bit lobby id>", +// or with the callback GameLobbyJoinRequested_t if they're already in-game +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 3)] +public struct LobbyInvite_t +{ + public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 3; + + public ulong m_ulSteamIDUser; // Steam ID of the person making the invite + public ulong m_ulSteamIDLobby; // Steam ID of the Lobby + public ulong m_ulGameID; // GameID of the Lobby +} + +//----------------------------------------------------------------------------- +// Purpose: Sent on entering a lobby, or on failing to enter +// m_EChatRoomEnterResponse will be set to k_EChatRoomEnterResponseSuccess on success, +// or a higher value on failure (see enum EChatRoomEnterResponse) +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 4)] +public struct LobbyEnter_t +{ + public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 4; + + public ulong m_ulSteamIDLobby; // SteamID of the Lobby you have entered + public uint m_rgfChatPermissions; // Permissions of the current user + [MarshalAs(UnmanagedType.I1)] + public bool m_bLocked; // If true, then only invited users may join + public uint m_EChatRoomEnterResponse; // EChatRoomEnterResponse +} + +//----------------------------------------------------------------------------- +// Purpose: The lobby metadata has changed +// if m_ulSteamIDMember is the steamID of a lobby member, use GetLobbyMemberData() to access per-user details +// if m_ulSteamIDMember == m_ulSteamIDLobby, use GetLobbyData() to access lobby metadata +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 5)] +public struct LobbyDataUpdate_t +{ + public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 5; + + public ulong m_ulSteamIDLobby; // steamID of the Lobby + public ulong m_ulSteamIDMember; // steamID of the member whose data changed, or the room itself + public byte m_bSuccess; // true if we lobby data was successfully changed; + // will only be false if RequestLobbyData() was called on a lobby that no longer exists +} + +//----------------------------------------------------------------------------- +// Purpose: The lobby chat room state has changed +// this is usually sent when a user has joined or left the lobby +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 6)] +public struct LobbyChatUpdate_t +{ + public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 6; + + public ulong m_ulSteamIDLobby; // Lobby ID + public ulong m_ulSteamIDUserChanged; // user who's status in the lobby just changed - can be recipient + public ulong m_ulSteamIDMakingChange; // Chat member who made the change (different from SteamIDUserChange if kicking, muting, etc.) + // for example, if one user kicks another from the lobby, this will be set to the id of the user who initiated the kick + public uint m_rgfChatMemberStateChange; // bitfield of EChatMemberStateChange values +} + +//----------------------------------------------------------------------------- +// Purpose: A chat message for this lobby has been sent +// use GetLobbyChatEntry( m_iChatID ) to retrieve the contents of this message +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 7)] +public struct LobbyChatMsg_t +{ + public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 7; + + public ulong m_ulSteamIDLobby; // the lobby id this is in + public ulong m_ulSteamIDUser; // steamID of the user who has sent this message + public byte m_eChatEntryType; // type of message + public uint m_iChatID; // index of the chat entry to lookup +} + +//----------------------------------------------------------------------------- +// Purpose: A game created a game for all the members of the lobby to join, +// as triggered by a SetLobbyGameServer() +// it's up to the individual clients to take action on this; the usual +// game behavior is to leave the lobby and connect to the specified game server +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 9)] +public struct LobbyGameCreated_t +{ + public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 9; + + public ulong m_ulSteamIDLobby; // the lobby we were in + public ulong m_ulSteamIDGameServer; // the new game server that has been created or found for the lobby members + public uint m_unIP; // IP & Port of the game server (if any) + public ushort m_usPort; +} + +//----------------------------------------------------------------------------- +// Purpose: Number of matching lobbies found +// iterate the returned lobbies with GetLobbyByIndex(), from values 0 to m_nLobbiesMatching-1 +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 10)] +public struct LobbyMatchList_t +{ + public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 10; + public uint m_nLobbiesMatching; // Number of lobbies that matched search criteria and we have SteamIDs for +} + +//----------------------------------------------------------------------------- +// Purpose: posted if a user is forcefully removed from a lobby +// can occur if a user loses connection to Steam +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 12)] +public struct LobbyKicked_t +{ + public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 12; + public ulong m_ulSteamIDLobby; // Lobby + public ulong m_ulSteamIDAdmin; // User who kicked you - possibly the ID of the lobby itself + public byte m_bKickedDueToDisconnect; // true if you were kicked from the lobby due to the user losing connection to Steam (currently always true) +} + +//----------------------------------------------------------------------------- +// Purpose: Result of our request to create a Lobby +// m_eResult == k_EResultOK on success +// at this point, the lobby has been joined and is ready for use +// a LobbyEnter_t callback will also be received (since the local user is joining their own lobby) +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 13)] +public struct LobbyCreated_t +{ + public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 13; + + public EResult m_eResult; // k_EResultOK - the lobby was successfully created + // k_EResultNoConnection - your Steam client doesn't have a connection to the back-end + // k_EResultTimeout - you the message to the Steam servers, but it didn't respond + // k_EResultFail - the server responded, but with an unknown internal error + // k_EResultAccessDenied - your game isn't set to allow lobbies, or your client does haven't rights to play the game + // k_EResultLimitExceeded - your game client has created too many lobbies + + public ulong m_ulSteamIDLobby; // chat room, zero if failed +} + +// used by now obsolete RequestFriendsLobbiesResponse_t +// enum { k_iCallback = k_iSteamMatchmakingCallbacks + 14 }; +// used by now obsolete PSNGameBootInviteResult_t +// enum { k_iCallback = k_iSteamMatchmakingCallbacks + 15 }; +//----------------------------------------------------------------------------- +// Purpose: Result of our request to create a Lobby +// m_eResult == k_EResultOK on success +// at this point, the lobby has been joined and is ready for use +// a LobbyEnter_t callback will also be received (since the local user is joining their own lobby) +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 16)] +public struct FavoritesListAccountsUpdated_t +{ + public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 16; + + public EResult m_eResult; +} + +//----------------------------------------------------------------------------- +// Callbacks for ISteamGameSearch (which go through the regular Steam callback registration system) +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 1)] +public struct SearchForGameProgressCallback_t +{ + public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 1; + + public ulong m_ullSearchID; // all future callbacks referencing this search will include this Search ID + + public EResult m_eResult; // if search has started this result will be k_EResultOK, any other value indicates search has failed to start or has terminated + public CSteamID m_lobbyID; // lobby ID if lobby search, invalid steamID otherwise + public CSteamID m_steamIDEndedSearch; // if search was terminated, steamID that terminated search + + public int m_nSecondsRemainingEstimate; + public int m_cPlayersSearching; +} + +// notification to all players searching that a game has been found +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 2)] +public struct SearchForGameResultCallback_t +{ + public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 2; + + public ulong m_ullSearchID; + + public EResult m_eResult; // if game/host was lost this will be an error value + + // if m_bGameFound is true the following are non-zero + public int m_nCountPlayersInGame; + public int m_nCountAcceptedGame; + // if m_steamIDHost is valid the host has started the game + public CSteamID m_steamIDHost; + [MarshalAs(UnmanagedType.I1)] + public bool m_bFinalCallback; +} + +//----------------------------------------------------------------------------- +// ISteamGameSearch : Game Host API callbacks +// callback from RequestPlayersForGame when the matchmaking service has started or ended search +// callback will also follow a call from CancelRequestPlayersForGame - m_bSearchInProgress will be false +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 11)] +public struct RequestPlayersForGameProgressCallback_t +{ + public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 11; + + public EResult m_eResult; // m_ullSearchID will be non-zero if this is k_EResultOK + public ulong m_ullSearchID; // all future callbacks referencing this search will include this Search ID +} + +// callback from RequestPlayersForGame +// one of these will be sent per player +// followed by additional callbacks when players accept or decline the game +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 12)] +public struct RequestPlayersForGameResultCallback_t +{ + public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 12; + + public EResult m_eResult; // m_ullSearchID will be non-zero if this is k_EResultOK + public ulong m_ullSearchID; + + public CSteamID m_SteamIDPlayerFound; // player steamID + public CSteamID m_SteamIDLobby; // if the player is in a lobby, the lobby ID + public PlayerAcceptState_t m_ePlayerAcceptState; + public int m_nPlayerIndex; + public int m_nTotalPlayersFound; // expect this many callbacks at minimum + public int m_nTotalPlayersAcceptedGame; + public int m_nSuggestedTeamIndex; + public ulong m_ullUniqueGameID; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 13)] +public struct RequestPlayersForGameFinalResultCallback_t +{ + public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 13; + + public EResult m_eResult; + public ulong m_ullSearchID; + public ulong m_ullUniqueGameID; +} + +// this callback confirms that results were received by the matchmaking service for this player +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 14)] +public struct SubmitPlayerResultResultCallback_t +{ + public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 14; + + public EResult m_eResult; + public ulong ullUniqueGameID; + public CSteamID steamIDPlayer; +} + +// this callback confirms that the game is recorded as complete on the matchmaking service +// the next call to RequestPlayersForGame will generate a new unique game ID +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamGameSearchCallbacks + 15)] +public struct EndGameResultCallback_t +{ + public const int k_iCallback = Constants.k_iSteamGameSearchCallbacks + 15; + + public EResult m_eResult; + public ulong ullUniqueGameID; +} + +// Steam has responded to the user request to join a party via the given Beacon ID. +// If successful, the connect string contains game-specific instructions to connect +// to the game with that party. +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamPartiesCallbacks + 1)] +public struct JoinPartyCallback_t +{ + public const int k_iCallback = Constants.k_iSteamPartiesCallbacks + 1; + + public EResult m_eResult; + public PartyBeaconID_t m_ulBeaconID; + public CSteamID m_SteamIDBeaconOwner; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] + private readonly byte[] m_rgchConnectString_; + public string m_rgchConnectString { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchConnectString_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchConnectString_, 256); } + } +} + +// Response to CreateBeacon request. If successful, the beacon ID is provided. +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamPartiesCallbacks + 2)] +public struct CreateBeaconCallback_t +{ + public const int k_iCallback = Constants.k_iSteamPartiesCallbacks + 2; + + public EResult m_eResult; + public PartyBeaconID_t m_ulBeaconID; +} + +// Someone has used the beacon to join your party - they are in-flight now +// and we've reserved one of the open slots for them. +// You should confirm when they join your party by calling OnReservationCompleted(). +// Otherwise, Steam may timeout their reservation eventually. +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamPartiesCallbacks + 3)] +public struct ReservationNotificationCallback_t +{ + public const int k_iCallback = Constants.k_iSteamPartiesCallbacks + 3; + + public PartyBeaconID_t m_ulBeaconID; + public CSteamID m_steamIDJoiner; +} + +// Response to ChangeNumOpenSlots call +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamPartiesCallbacks + 4)] +public struct ChangeNumOpenSlotsCallback_t +{ + public const int k_iCallback = Constants.k_iSteamPartiesCallbacks + 4; + + public EResult m_eResult; +} + +// The list of possible Party beacon locations has changed +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamPartiesCallbacks + 5)] +public struct AvailableBeaconLocationsUpdated_t +{ + public const int k_iCallback = Constants.k_iSteamPartiesCallbacks + 5; +} + +// The list of active beacons may have changed +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamPartiesCallbacks + 6)] +public struct ActiveBeaconsUpdated_t +{ + public const int k_iCallback = Constants.k_iSteamPartiesCallbacks + 6; +} + +// callbacks +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamMusicCallbacks + 1)] +public struct PlaybackStatusHasChanged_t +{ + public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 1; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMusicCallbacks + 2)] +public struct VolumeHasChanged_t +{ + public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 2; + public float m_flNewVolume; +} + +// callbacks +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 1)] +public struct MusicPlayerRemoteWillActivate_t +{ + public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 1; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 2)] +public struct MusicPlayerRemoteWillDeactivate_t +{ + public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 2; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 3)] +public struct MusicPlayerRemoteToFront_t +{ + public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 3; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 4)] +public struct MusicPlayerWillQuit_t +{ + public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 4; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 5)] +public struct MusicPlayerWantsPlay_t +{ + public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 5; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 6)] +public struct MusicPlayerWantsPause_t +{ + public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 6; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 7)] +public struct MusicPlayerWantsPlayPrevious_t +{ + public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 7; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 8)] +public struct MusicPlayerWantsPlayNext_t +{ + public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 8; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 9)] +public struct MusicPlayerWantsShuffled_t +{ + public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 9; + [MarshalAs(UnmanagedType.I1)] + public bool m_bShuffled; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 10)] +public struct MusicPlayerWantsLooped_t +{ + public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 10; + [MarshalAs(UnmanagedType.I1)] + public bool m_bLooped; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMusicCallbacks + 11)] +public struct MusicPlayerWantsVolume_t +{ + public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 11; + public float m_flNewVolume; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMusicCallbacks + 12)] +public struct MusicPlayerSelectsQueueEntry_t +{ + public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 12; + public int nID; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMusicCallbacks + 13)] +public struct MusicPlayerSelectsPlaylistEntry_t +{ + public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 13; + public int nID; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 14)] +public struct MusicPlayerWantsPlayingRepeatStatus_t +{ + public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 14; + public int m_nPlayingRepeatStatus; +} + +// callbacks +// callback notification - a user wants to talk to us over the P2P channel via the SendP2PPacket() API +// in response, a call to AcceptP2PPacketsFromUser() needs to be made, if you want to talk with them +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamNetworkingCallbacks + 2)] +public struct P2PSessionRequest_t +{ + public const int k_iCallback = Constants.k_iSteamNetworkingCallbacks + 2; + public CSteamID m_steamIDRemote; // user who wants to talk to us +} + +// callback notification - packets can't get through to the specified user via the SendP2PPacket() API +// all packets queued packets unsent at this point will be dropped +// further attempts to send will retry making the connection (but will be dropped if we fail again) +[StructLayout(LayoutKind.Sequential, Pack = 1)] +[CallbackIdentity(Constants.k_iSteamNetworkingCallbacks + 3)] +public struct P2PSessionConnectFail_t +{ + public const int k_iCallback = Constants.k_iSteamNetworkingCallbacks + 3; + public CSteamID m_steamIDRemote; // user we were sending packets to + public byte m_eP2PSessionError; // EP2PSessionError indicating why we're having trouble +} + +// callback notification - status of a socket has changed +// used as part of the CreateListenSocket() / CreateP2PConnectionSocket() +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamNetworkingCallbacks + 1)] +public struct SocketStatusCallback_t +{ + public const int k_iCallback = Constants.k_iSteamNetworkingCallbacks + 1; + public SNetSocket_t m_hSocket; // the socket used to send/receive data to the remote host + public SNetListenSocket_t m_hListenSocket; // this is the server socket that we were listening on; NULL if this was an outgoing connection + public CSteamID m_steamIDRemote; // remote steamID we have connected to, if it has one + public int m_eSNetSocketState; // socket state, ESNetSocketState +} + +// +// Callbacks +// +/// Posted when a remote host is sending us a message, and we do not already have a session with them +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamNetworkingMessagesCallbacks + 1)] +public struct SteamNetworkingMessagesSessionRequest_t +{ + public const int k_iCallback = Constants.k_iSteamNetworkingMessagesCallbacks + 1; + public SteamNetworkingIdentity m_identityRemote; // user who wants to talk to us +} + +/// Posted when we fail to establish a connection, or we detect that communications +/// have been disrupted it an unusual way. There is no notification when a peer proactively +/// closes the session. ("Closed by peer" is not a concept of UDP-style communications, and +/// SteamNetworkingMessages is primarily intended to make porting UDP code easy.) +/// +/// Remember: callbacks are asynchronous. See notes on SendMessageToUser, +/// and k_nSteamNetworkingSend_AutoRestartBrokenSession in particular. +/// +/// Also, if a session times out due to inactivity, no callbacks will be posted. The only +/// way to detect that this is happening is that querying the session state may return +/// none, connecting, and findingroute again. +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamNetworkingMessagesCallbacks + 2)] +public struct SteamNetworkingMessagesSessionFailed_t +{ + public const int k_iCallback = Constants.k_iSteamNetworkingMessagesCallbacks + 2; + + /// Detailed info about the session that failed. + /// SteamNetConnectionInfo_t::m_identityRemote indicates who this session + /// was with. + public SteamNetConnectionInfo_t m_info; +} + +/// Callback struct used to notify when a connection has changed state +/// This callback is posted whenever a connection is created, destroyed, or changes state. +/// The m_info field will contain a complete description of the connection at the time the +/// change occurred and the callback was posted. In particular, m_eState will have the +/// new connection state. +/// +/// You will usually need to listen for this callback to know when: +/// - A new connection arrives on a listen socket. +/// m_info.m_hListenSocket will be set, m_eOldState = k_ESteamNetworkingConnectionState_None, +/// and m_info.m_eState = k_ESteamNetworkingConnectionState_Connecting. +/// See ISteamNetworkigSockets::AcceptConnection. +/// - A connection you initiated has been accepted by the remote host. +/// m_eOldState = k_ESteamNetworkingConnectionState_Connecting, and +/// m_info.m_eState = k_ESteamNetworkingConnectionState_Connected. +/// Some connections might transition to k_ESteamNetworkingConnectionState_FindingRoute first. +/// - A connection has been actively rejected or closed by the remote host. +/// m_eOldState = k_ESteamNetworkingConnectionState_Connecting or k_ESteamNetworkingConnectionState_Connected, +/// and m_info.m_eState = k_ESteamNetworkingConnectionState_ClosedByPeer. m_info.m_eEndReason +/// and m_info.m_szEndDebug will have for more details. +/// NOTE: upon receiving this callback, you must still destroy the connection using +/// ISteamNetworkingSockets::CloseConnection to free up local resources. (The details +/// passed to the function are not used in this case, since the connection is already closed.) +/// - A problem was detected with the connection, and it has been closed by the local host. +/// The most common failure is timeout, but other configuration or authentication failures +/// can cause this. m_eOldState = k_ESteamNetworkingConnectionState_Connecting or +/// k_ESteamNetworkingConnectionState_Connected, and m_info.m_eState = k_ESteamNetworkingConnectionState_ProblemDetectedLocally. +/// m_info.m_eEndReason and m_info.m_szEndDebug will have for more details. +/// NOTE: upon receiving this callback, you must still destroy the connection using +/// ISteamNetworkingSockets::CloseConnection to free up local resources. (The details +/// passed to the function are not used in this case, since the connection is already closed.) +/// +/// Remember that callbacks are posted to a queue, and networking connections can +/// change at any time. It is possible that the connection has already changed +/// state by the time you process this callback. +/// +/// Also note that callbacks will be posted when connections are created and destroyed by your own API calls. +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamNetworkingSocketsCallbacks + 1)] +public struct SteamNetConnectionStatusChangedCallback_t +{ + public const int k_iCallback = Constants.k_iSteamNetworkingSocketsCallbacks + 1; + + /// Connection handle + public HSteamNetConnection m_hConn; + + /// Full connection info + public SteamNetConnectionInfo_t m_info; + + /// Previous state. (Current state is in m_info.m_eState) + public ESteamNetworkingConnectionState m_eOldState; +} + +/// A struct used to describe our readiness to participate in authenticated, +/// encrypted communication. In order to do this we need: +/// +/// - The list of trusted CA certificates that might be relevant for this +/// app. +/// - A valid certificate issued by a CA. +/// +/// This callback is posted whenever the state of our readiness changes. +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamNetworkingSocketsCallbacks + 2)] +public struct SteamNetAuthenticationStatus_t +{ + public const int k_iCallback = Constants.k_iSteamNetworkingSocketsCallbacks + 2; + + /// Status + public ESteamNetworkingAvailability m_eAvail; + + /// Non-localized English language status. For diagnostic/debugging + /// purposes only. + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] + private readonly byte[] m_debugMsg_; + public string m_debugMsg { + get { return InteropHelp.ByteArrayToStringUTF8(m_debugMsg_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_debugMsg_, 256); } + } +} + +/// A struct used to describe our readiness to use the relay network. +/// To do this we first need to fetch the network configuration, +/// which describes what POPs are available. +[CallbackIdentity(Constants.k_iSteamNetworkingUtilsCallbacks + 1)] +public struct SteamRelayNetworkStatus_t +{ + public const int k_iCallback = Constants.k_iSteamNetworkingUtilsCallbacks + 1; + + /// Summary status. When this is "current", initialization has + /// completed. Anything else means you are not ready yet, or + /// there is a significant problem. + public ESteamNetworkingAvailability m_eAvail; + + /// Nonzero if latency measurement is in progress (or pending, + /// awaiting a prerequisite). + public int m_bPingMeasurementInProgress; + + /// Status obtaining the network config. This is a prerequisite + /// for relay network access. + /// + /// Failure to obtain the network config almost always indicates + /// a problem with the local internet connection. + public ESteamNetworkingAvailability m_eAvailNetworkConfig; + + /// Current ability to communicate with ANY relay. Note that + /// the complete failure to communicate with any relays almost + /// always indicates a problem with the local Internet connection. + /// (However, just because you can reach a single relay doesn't + /// mean that the local connection is in perfect health.) + public ESteamNetworkingAvailability m_eAvailAnyRelay; + + /// Non-localized English language status. For diagnostic/debugging + /// purposes only. + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] + private readonly byte[] m_debugMsg_; + public string m_debugMsg { + get { return InteropHelp.ByteArrayToStringUTF8(m_debugMsg_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_debugMsg_, 256); } + } +} + +//----------------------------------------------------------------------------- +// Purpose: Callback for querying UGC +//----------------------------------------------------------------------------- +[CallbackIdentity(Constants.k_ISteamParentalSettingsCallbacks + 1)] +public struct SteamParentalSettingsChanged_t +{ + public const int k_iCallback = Constants.k_ISteamParentalSettingsCallbacks + 1; +} + +// callbacks +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemotePlayCallbacks + 1)] +public struct SteamRemotePlaySessionConnected_t +{ + public const int k_iCallback = Constants.k_iSteamRemotePlayCallbacks + 1; + public RemotePlaySessionID_t m_unSessionID; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemotePlayCallbacks + 2)] +public struct SteamRemotePlaySessionDisconnected_t +{ + public const int k_iCallback = Constants.k_iSteamRemotePlayCallbacks + 2; + public RemotePlaySessionID_t m_unSessionID; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemotePlayCallbacks + 3)] +public struct SteamRemotePlayTogetherGuestInvite_t +{ + public const int k_iCallback = Constants.k_iSteamRemotePlayCallbacks + 3; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)] + private readonly byte[] m_szConnectURL_; + public string m_szConnectURL { + get { return InteropHelp.ByteArrayToStringUTF8(m_szConnectURL_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_szConnectURL_, 1024); } + } +} + +// callbacks +//----------------------------------------------------------------------------- +// Purpose: The result of a call to FileShare() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 7)] +public struct RemoteStorageFileShareResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 7; + public EResult m_eResult; // The result of the operation + public UGCHandle_t m_hFile; // The handle that can be shared with users and features + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchFilenameMax)] + private readonly byte[] m_rgchFilename_; + public string m_rgchFilename // The name of the file that was shared + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchFilename_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchFilename_, Constants.k_cchFilenameMax); } + } +} + +// k_iSteamRemoteStorageCallbacks + 8 is deprecated! Do not reuse +//----------------------------------------------------------------------------- +// Purpose: The result of a call to PublishFile() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 9)] +public struct RemoteStoragePublishFileResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 9; + public EResult m_eResult; // The result of the operation. + public PublishedFileId_t m_nPublishedFileId; + [MarshalAs(UnmanagedType.I1)] + public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; +} + +// k_iSteamRemoteStorageCallbacks + 10 is deprecated! Do not reuse +//----------------------------------------------------------------------------- +// Purpose: The result of a call to DeletePublishedFile() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 11)] +public struct RemoteStorageDeletePublishedFileResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 11; + public EResult m_eResult; // The result of the operation. + public PublishedFileId_t m_nPublishedFileId; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to EnumerateUserPublishedFiles() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 12)] +public struct RemoteStorageEnumerateUserPublishedFilesResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 12; + public EResult m_eResult; // The result of the operation. + public int m_nResultsReturned; + public int m_nTotalResultCount; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] + public PublishedFileId_t[] m_rgPublishedFileId; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to SubscribePublishedFile() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 13)] +public struct RemoteStorageSubscribePublishedFileResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 13; + public EResult m_eResult; // The result of the operation. + public PublishedFileId_t m_nPublishedFileId; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to EnumerateSubscribePublishedFiles() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 14)] +public struct RemoteStorageEnumerateUserSubscribedFilesResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 14; + public EResult m_eResult; // The result of the operation. + public int m_nResultsReturned; + public int m_nTotalResultCount; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] + public PublishedFileId_t[] m_rgPublishedFileId; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] + public uint[] m_rgRTimeSubscribed; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to UnsubscribePublishedFile() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 15)] +public struct RemoteStorageUnsubscribePublishedFileResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 15; + public EResult m_eResult; // The result of the operation. + public PublishedFileId_t m_nPublishedFileId; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to CommitPublishedFileUpdate() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 16)] +public struct RemoteStorageUpdatePublishedFileResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 16; + public EResult m_eResult; // The result of the operation. + public PublishedFileId_t m_nPublishedFileId; + [MarshalAs(UnmanagedType.I1)] + public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to UGCDownload() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 17)] +public struct RemoteStorageDownloadUGCResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 17; + public EResult m_eResult; // The result of the operation. + public UGCHandle_t m_hFile; // The handle to the file that was attempted to be downloaded. + public AppId_t m_nAppID; // ID of the app that created this file. + public int m_nSizeInBytes; // The size of the file that was downloaded, in bytes. + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchFilenameMax)] + private readonly byte[] m_pchFileName_; + public string m_pchFileName // The name of the file that was downloaded. + { + get { return InteropHelp.ByteArrayToStringUTF8(m_pchFileName_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_pchFileName_, Constants.k_cchFilenameMax); } + } + public ulong m_ulSteamIDOwner; // Steam ID of the user who created this content. +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to GetPublishedFileDetails() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 18)] +public struct RemoteStorageGetPublishedFileDetailsResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 18; + public EResult m_eResult; // The result of the operation. + public PublishedFileId_t m_nPublishedFileId; + public AppId_t m_nCreatorAppID; // ID of the app that created this file. + public AppId_t m_nConsumerAppID; // ID of the app that will consume this file. + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedDocumentTitleMax)] + private readonly byte[] m_rgchTitle_; + public string m_rgchTitle // title of document + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchTitle_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchTitle_, Constants.k_cchPublishedDocumentTitleMax); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedDocumentDescriptionMax)] + private readonly byte[] m_rgchDescription_; + public string m_rgchDescription // description of document + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchDescription_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchDescription_, Constants.k_cchPublishedDocumentDescriptionMax); } + } + public UGCHandle_t m_hFile; // The handle of the primary file + public UGCHandle_t m_hPreviewFile; // The handle of the preview file + public ulong m_ulSteamIDOwner; // Steam ID of the user who created this content. + public uint m_rtimeCreated; // time when the published file was created + public uint m_rtimeUpdated; // time when the published file was last updated + public ERemoteStoragePublishedFileVisibility m_eVisibility; + [MarshalAs(UnmanagedType.I1)] + public bool m_bBanned; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchTagListMax)] + private readonly byte[] m_rgchTags_; + public string m_rgchTags // comma separated list of all tags associated with this file + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchTags_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchTags_, Constants.k_cchTagListMax); } + } + [MarshalAs(UnmanagedType.I1)] + public bool m_bTagsTruncated; // whether the list of tags was too long to be returned in the provided buffer + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchFilenameMax)] + private readonly byte[] m_pchFileName_; + public string m_pchFileName // The name of the primary file + { + get { return InteropHelp.ByteArrayToStringUTF8(m_pchFileName_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_pchFileName_, Constants.k_cchFilenameMax); } + } + public int m_nFileSize; // Size of the primary file + public int m_nPreviewFileSize; // Size of the preview file + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedFileURLMax)] + private readonly byte[] m_rgchURL_; + public string m_rgchURL // URL (for a video or a website) + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchURL_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchURL_, Constants.k_cchPublishedFileURLMax); } + } + public EWorkshopFileType m_eFileType; // Type of the file + [MarshalAs(UnmanagedType.I1)] + public bool m_bAcceptedForUse; // developer has specifically flagged this item as accepted in the Workshop +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 19)] +public struct RemoteStorageEnumerateWorkshopFilesResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 19; + public EResult m_eResult; + public int m_nResultsReturned; + public int m_nTotalResultCount; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] + public PublishedFileId_t[] m_rgPublishedFileId; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] + public float[] m_rgScore; + public AppId_t m_nAppId; + public uint m_unStartIndex; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of GetPublishedItemVoteDetails +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 20)] +public struct RemoteStorageGetPublishedItemVoteDetailsResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 20; + public EResult m_eResult; + public PublishedFileId_t m_unPublishedFileId; + public int m_nVotesFor; + public int m_nVotesAgainst; + public int m_nReports; + public float m_fScore; +} + +//----------------------------------------------------------------------------- +// Purpose: User subscribed to a file for the app (from within the app or on the web) +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 21)] +public struct RemoteStoragePublishedFileSubscribed_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 21; + public PublishedFileId_t m_nPublishedFileId; // The published file id + public AppId_t m_nAppID; // ID of the app that will consume this file. +} + +//----------------------------------------------------------------------------- +// Purpose: User unsubscribed from a file for the app (from within the app or on the web) +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 22)] +public struct RemoteStoragePublishedFileUnsubscribed_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 22; + public PublishedFileId_t m_nPublishedFileId; // The published file id + public AppId_t m_nAppID; // ID of the app that will consume this file. +} + +//----------------------------------------------------------------------------- +// Purpose: Published file that a user owns was deleted (from within the app or the web) +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 23)] +public struct RemoteStoragePublishedFileDeleted_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 23; + public PublishedFileId_t m_nPublishedFileId; // The published file id + public AppId_t m_nAppID; // ID of the app that will consume this file. +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to UpdateUserPublishedItemVote() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 24)] +public struct RemoteStorageUpdateUserPublishedItemVoteResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 24; + public EResult m_eResult; // The result of the operation. + public PublishedFileId_t m_nPublishedFileId; // The published file id +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to GetUserPublishedItemVoteDetails() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 25)] +public struct RemoteStorageUserVoteDetails_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 25; + public EResult m_eResult; // The result of the operation. + public PublishedFileId_t m_nPublishedFileId; // The published file id + public EWorkshopVote m_eVote; // what the user voted +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 26)] +public struct RemoteStorageEnumerateUserSharedWorkshopFilesResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 26; + public EResult m_eResult; // The result of the operation. + public int m_nResultsReturned; + public int m_nTotalResultCount; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] + public PublishedFileId_t[] m_rgPublishedFileId; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 27)] +public struct RemoteStorageSetUserPublishedFileActionResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 27; + public EResult m_eResult; // The result of the operation. + public PublishedFileId_t m_nPublishedFileId; // The published file id + public EWorkshopFileAction m_eAction; // the action that was attempted +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 28)] +public struct RemoteStorageEnumeratePublishedFilesByUserActionResult_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 28; + public EResult m_eResult; // The result of the operation. + public EWorkshopFileAction m_eAction; // the action that was filtered on + public int m_nResultsReturned; + public int m_nTotalResultCount; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] + public PublishedFileId_t[] m_rgPublishedFileId; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] + public uint[] m_rgRTimeUpdated; +} + +//----------------------------------------------------------------------------- +// Purpose: Called periodically while a PublishWorkshopFile is in progress +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 29)] +public struct RemoteStoragePublishFileProgress_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 29; + public double m_dPercentFile; + [MarshalAs(UnmanagedType.I1)] + public bool m_bPreview; +} + +//----------------------------------------------------------------------------- +// Purpose: Called when the content for a published file is updated +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 30)] +public struct RemoteStoragePublishedFileUpdated_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 30; + public PublishedFileId_t m_nPublishedFileId; // The published file id + public AppId_t m_nAppID; // ID of the app that will consume this file. + public ulong m_ulUnused; // not used anymore +} + +//----------------------------------------------------------------------------- +// Purpose: Called when a FileWriteAsync completes +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 31)] +public struct RemoteStorageFileWriteAsyncComplete_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 31; + public EResult m_eResult; // result +} + +//----------------------------------------------------------------------------- +// Purpose: Called when a FileReadAsync completes +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 32)] +public struct RemoteStorageFileReadAsyncComplete_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 32; + public SteamAPICall_t m_hFileReadAsync; // call handle of the async read which was made + public EResult m_eResult; // result + public uint m_nOffset; // offset in the file this read was at + public uint m_cubRead; // amount read - will the <= the amount requested +} + +//----------------------------------------------------------------------------- +// Purpose: one or more files for this app have changed locally after syncing +// to remote session changes +// Note: only posted if this happens DURING the local app session +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamRemoteStorageCallbacks + 33)] +public struct RemoteStorageLocalFileChange_t +{ + public const int k_iCallback = Constants.k_iSteamRemoteStorageCallbacks + 33; +} + +// callbacks +//----------------------------------------------------------------------------- +// Purpose: Screenshot successfully written or otherwise added to the library +// and can now be tagged +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamScreenshotsCallbacks + 1)] +public struct ScreenshotReady_t +{ + public const int k_iCallback = Constants.k_iSteamScreenshotsCallbacks + 1; + public ScreenshotHandle m_hLocal; + public EResult m_eResult; +} + +//----------------------------------------------------------------------------- +// Purpose: Screenshot has been requested by the user. Only sent if +// HookScreenshots() has been called, in which case Steam will not take +// the screenshot itself. +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamScreenshotsCallbacks + 2)] +public struct ScreenshotRequested_t +{ + public const int k_iCallback = Constants.k_iSteamScreenshotsCallbacks + 2; +} + +//----------------------------------------------------------------------------- +// Purpose: Callback for querying UGC +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamTimelineCallbacks + 1)] +public struct SteamTimelineGamePhaseRecordingExists_t +{ + public const int k_iCallback = Constants.k_iSteamTimelineCallbacks + 1; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchMaxPhaseIDLength)] + private readonly byte[] m_rgchPhaseID_; + public string m_rgchPhaseID { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchPhaseID_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchPhaseID_, Constants.k_cchMaxPhaseIDLength); } + } + public ulong m_ulRecordingMS; + public ulong m_ulLongestClipMS; + public uint m_unClipCount; + public uint m_unScreenshotCount; +} + +//----------------------------------------------------------------------------- +// Purpose: Callback for querying UGC +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamTimelineCallbacks + 2)] +public struct SteamTimelineEventRecordingExists_t +{ + public const int k_iCallback = Constants.k_iSteamTimelineCallbacks + 2; + public ulong m_ulEventID; + [MarshalAs(UnmanagedType.I1)] + public bool m_bRecordingExists; +} + +//----------------------------------------------------------------------------- +// Purpose: Callback for querying UGC +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 1)] +public struct SteamUGCQueryCompleted_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 1; + public UGCQueryHandle_t m_handle; + public EResult m_eResult; + public uint m_unNumResultsReturned; + public uint m_unTotalMatchingResults; + [MarshalAs(UnmanagedType.I1)] + public bool m_bCachedData; // indicates whether this data was retrieved from the local on-disk cache + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedFileURLMax)] + private readonly byte[] m_rgchNextCursor_; + public string m_rgchNextCursor // If a paging cursor was used, then this will be the next cursor to get the next result set. + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchNextCursor_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchNextCursor_, Constants.k_cchPublishedFileURLMax); } + } +} + +//----------------------------------------------------------------------------- +// Purpose: Callback for requesting details on one piece of UGC +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 2)] +public struct SteamUGCRequestUGCDetailsResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 2; + public SteamUGCDetails_t m_details; + [MarshalAs(UnmanagedType.I1)] + public bool m_bCachedData; // indicates whether this data was retrieved from the local on-disk cache +} + +//----------------------------------------------------------------------------- +// Purpose: result for ISteamUGC::CreateItem() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 3)] +public struct CreateItemResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 3; + public EResult m_eResult; + public PublishedFileId_t m_nPublishedFileId; // new item got this UGC PublishFileID + [MarshalAs(UnmanagedType.I1)] + public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; +} + +//----------------------------------------------------------------------------- +// Purpose: result for ISteamUGC::SubmitItemUpdate() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 4)] +public struct SubmitItemUpdateResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 4; + public EResult m_eResult; + [MarshalAs(UnmanagedType.I1)] + public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; + public PublishedFileId_t m_nPublishedFileId; +} + +//----------------------------------------------------------------------------- +// Purpose: a Workshop item has been installed or updated +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 5)] +public struct ItemInstalled_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 5; + public AppId_t m_unAppID; + public PublishedFileId_t m_nPublishedFileId; + public UGCHandle_t m_hLegacyContent; + public ulong m_unManifestID; +} + +//----------------------------------------------------------------------------- +// Purpose: result of DownloadItem(), existing item files can be accessed again +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 6)] +public struct DownloadItemResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 6; + public AppId_t m_unAppID; + public PublishedFileId_t m_nPublishedFileId; + public EResult m_eResult; +} + +//----------------------------------------------------------------------------- +// Purpose: result of AddItemToFavorites() or RemoveItemFromFavorites() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 7)] +public struct UserFavoriteItemsListChanged_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 7; + public PublishedFileId_t m_nPublishedFileId; + public EResult m_eResult; + [MarshalAs(UnmanagedType.I1)] + public bool m_bWasAddRequest; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to SetUserItemVote() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 8)] +public struct SetUserItemVoteResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 8; + public PublishedFileId_t m_nPublishedFileId; + public EResult m_eResult; + [MarshalAs(UnmanagedType.I1)] + public bool m_bVoteUp; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to GetUserItemVote() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 9)] +public struct GetUserItemVoteResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 9; + public PublishedFileId_t m_nPublishedFileId; + public EResult m_eResult; + [MarshalAs(UnmanagedType.I1)] + public bool m_bVotedUp; + [MarshalAs(UnmanagedType.I1)] + public bool m_bVotedDown; + [MarshalAs(UnmanagedType.I1)] + public bool m_bVoteSkipped; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to StartPlaytimeTracking() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 10)] +public struct StartPlaytimeTrackingResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 10; + public EResult m_eResult; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to StopPlaytimeTracking() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 11)] +public struct StopPlaytimeTrackingResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 11; + public EResult m_eResult; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to AddDependency +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 12)] +public struct AddUGCDependencyResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 12; + public EResult m_eResult; + public PublishedFileId_t m_nPublishedFileId; + public PublishedFileId_t m_nChildPublishedFileId; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to RemoveDependency +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 13)] +public struct RemoveUGCDependencyResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 13; + public EResult m_eResult; + public PublishedFileId_t m_nPublishedFileId; + public PublishedFileId_t m_nChildPublishedFileId; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to AddAppDependency +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 14)] +public struct AddAppDependencyResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 14; + public EResult m_eResult; + public PublishedFileId_t m_nPublishedFileId; + public AppId_t m_nAppID; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to RemoveAppDependency +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 15)] +public struct RemoveAppDependencyResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 15; + public EResult m_eResult; + public PublishedFileId_t m_nPublishedFileId; + public AppId_t m_nAppID; +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to GetAppDependencies. Callback may be called +// multiple times until all app dependencies have been returned. +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 16)] +public struct GetAppDependenciesResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 16; + public EResult m_eResult; + public PublishedFileId_t m_nPublishedFileId; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)] + public AppId_t[] m_rgAppIDs; + public uint m_nNumAppDependencies; // number returned in this struct + public uint m_nTotalNumAppDependencies; // total found +} + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to DeleteItem +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 17)] +public struct DeleteItemResult_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 17; + public EResult m_eResult; + public PublishedFileId_t m_nPublishedFileId; +} + +//----------------------------------------------------------------------------- +// Purpose: signal that the list of subscribed items changed +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 18)] +public struct UserSubscribedItemsListChanged_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 18; + public AppId_t m_nAppID; +} + +//----------------------------------------------------------------------------- +// Purpose: Status of the user's acceptable/rejection of the app's specific Workshop EULA +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUGCCallbacks + 20)] +public struct WorkshopEULAStatus_t +{ + public const int k_iCallback = Constants.k_iSteamUGCCallbacks + 20; + public EResult m_eResult; + public AppId_t m_nAppID; + public uint m_unVersion; + public RTime32 m_rtAction; + [MarshalAs(UnmanagedType.I1)] + public bool m_bAccepted; + [MarshalAs(UnmanagedType.I1)] + public bool m_bNeedsAction; +} + +// callbacks +//----------------------------------------------------------------------------- +// Purpose: Called when an authenticated connection to the Steam back-end has been established. +// This means the Steam client now has a working connection to the Steam servers. +// Usually this will have occurred before the game has launched, and should +// only be seen if the user has dropped connection due to a networking issue +// or a Steam server update. +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 1)] +public struct SteamServersConnected_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 1; +} + +//----------------------------------------------------------------------------- +// Purpose: called when a connection attempt has failed +// this will occur periodically if the Steam client is not connected, +// and has failed in it's retry to establish a connection +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 2)] +public struct SteamServerConnectFailure_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 2; + public EResult m_eResult; + [MarshalAs(UnmanagedType.I1)] + public bool m_bStillRetrying; +} + +//----------------------------------------------------------------------------- +// Purpose: called if the client has lost connection to the Steam servers +// real-time services will be disabled until a matching SteamServersConnected_t has been posted +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 3)] +public struct SteamServersDisconnected_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 3; + public EResult m_eResult; +} + +//----------------------------------------------------------------------------- +// Purpose: Sent by the Steam server to the client telling it to disconnect from the specified game server, +// which it may be in the process of or already connected to. +// The game client should immediately disconnect upon receiving this message. +// This can usually occur if the user doesn't have rights to play on the game server. +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 13)] +public struct ClientGameServerDeny_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 13; + + public uint m_uAppID; + public uint m_unGameServerIP; + public ushort m_usGameServerPort; + public ushort m_bSecure; + public uint m_uReason; +} + +//----------------------------------------------------------------------------- +// Purpose: called when the callback system for this client is in an error state (and has flushed pending callbacks) +// When getting this message the client should disconnect from Steam, reset any stored Steam state and reconnect. +// This usually occurs in the rare event the Steam client has some kind of fatal error. +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 17)] +public struct IPCFailure_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 17; + public byte m_eFailureType; +} + +//----------------------------------------------------------------------------- +// Purpose: Signaled whenever licenses change +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 25)] +public struct LicensesUpdated_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 25; +} + +//----------------------------------------------------------------------------- +// callback for BeginAuthSession +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = 4)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 43)] +public struct ValidateAuthTicketResponse_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 43; + public CSteamID m_SteamID; + public EAuthSessionResponse m_eAuthSessionResponse; + public CSteamID m_OwnerSteamID; // different from m_SteamID if borrowed +} + +//----------------------------------------------------------------------------- +// Purpose: called when a user has responded to a microtransaction authorization request +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 52)] +public struct MicroTxnAuthorizationResponse_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 52; + + public uint m_unAppID; // AppID for this microtransaction + public ulong m_ulOrderID; // OrderID provided for the microtransaction + public byte m_bAuthorized; // if user authorized transaction +} + +//----------------------------------------------------------------------------- +// Purpose: Result from RequestEncryptedAppTicket +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 54)] +public struct EncryptedAppTicketResponse_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 54; + + public EResult m_eResult; +} + +//----------------------------------------------------------------------------- +// callback for GetAuthSessionTicket +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 63)] +public struct GetAuthSessionTicketResponse_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 63; + public HAuthTicket m_hAuthTicket; + public EResult m_eResult; +} + +//----------------------------------------------------------------------------- +// Purpose: sent to your game in response to a steam://gamewebcallback/ command +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 64)] +public struct GameWebCallback_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 64; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] + private readonly byte[] m_szURL_; + public string m_szURL { + get { return InteropHelp.ByteArrayToStringUTF8(m_szURL_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_szURL_, 256); } + } +} + +//----------------------------------------------------------------------------- +// Purpose: sent to your game in response to ISteamUser::RequestStoreAuthURL +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 65)] +public struct StoreAuthURLResponse_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 65; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 512)] + private readonly byte[] m_szURL_; + public string m_szURL { + get { return InteropHelp.ByteArrayToStringUTF8(m_szURL_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_szURL_, 512); } + } +} + +//----------------------------------------------------------------------------- +// Purpose: sent in response to ISteamUser::GetMarketEligibility +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 66)] +public struct MarketEligibilityResponse_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 66; + [MarshalAs(UnmanagedType.I1)] + public bool m_bAllowed; + public EMarketNotAllowedReasonFlags m_eNotAllowedReason; + public RTime32 m_rtAllowedAtTime; + + public int m_cdaySteamGuardRequiredDays; // The number of days any user is required to have had Steam Guard before they can use the market + public int m_cdayNewDeviceCooldown; // The number of days after initial device authorization a user must wait before using the market on that device +} + +//----------------------------------------------------------------------------- +// Purpose: sent for games with enabled anti indulgence / duration control, for +// enabled users. Lets the game know whether the user can keep playing or +// whether the game should exit, and returns info about remaining gameplay time. +// +// This callback is fired asynchronously in response to timers triggering. +// It is also fired in response to calls to GetDurationControl(). +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 67)] +public struct DurationControl_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 67; + + public EResult m_eResult; // result of call (always k_EResultOK for asynchronous timer-based notifications) + public AppId_t m_appid; // appid generating playtime + + [MarshalAs(UnmanagedType.I1)] + public bool m_bApplicable; // is duration control applicable to user + game combination + public int m_csecsLast5h; // playtime since most recent 5 hour gap in playtime, only counting up to regulatory limit of playtime, in seconds + + public EDurationControlProgress m_progress; // recommended progress (either everything is fine, or please exit game) + public EDurationControlNotification m_notification; // notification to show, if any (always k_EDurationControlNotification_None for API calls) + + public int m_csecsToday; // playtime on current calendar day + public int m_csecsRemaining; // playtime remaining until the user hits a regulatory limit +} + +//----------------------------------------------------------------------------- +// callback for GetTicketForWebApi +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserCallbacks + 68)] +public struct GetTicketForWebApiResponse_t +{ + public const int k_iCallback = Constants.k_iSteamUserCallbacks + 68; + public HAuthTicket m_hAuthTicket; + public EResult m_eResult; + public int m_cubTicket; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_nCubTicketMaxLength)] + public byte[] m_rgubTicket; +} + +// callbacks +//----------------------------------------------------------------------------- +// Purpose: called when the latests stats and achievements have been received +// from the server +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Explicit, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 1)] +public struct UserStatsReceived_t +{ + public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 1; + [FieldOffset(0)] + public ulong m_nGameID; // Game these stats are for + [FieldOffset(8)] + public EResult m_eResult; // Success / error fetching the stats + [FieldOffset(12)] + public CSteamID m_steamIDUser; // The user for whom the stats are retrieved for +} + +//----------------------------------------------------------------------------- +// Purpose: result of a request to store the user stats for a game +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 2)] +public struct UserStatsStored_t +{ + public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 2; + public ulong m_nGameID; // Game these stats are for + public EResult m_eResult; // success / error +} + +//----------------------------------------------------------------------------- +// Purpose: result of a request to store the achievements for a game, or an +// "indicate progress" call. If both m_nCurProgress and m_nMaxProgress +// are zero, that means the achievement has been fully unlocked. +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 3)] +public struct UserAchievementStored_t +{ + public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 3; + + public ulong m_nGameID; // Game this is for + [MarshalAs(UnmanagedType.I1)] + public bool m_bGroupAchievement; // if this is a "group" achievement + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchStatNameMax)] + private readonly byte[] m_rgchAchievementName_; + public string m_rgchAchievementName // name of the achievement + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchAchievementName_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchAchievementName_, Constants.k_cchStatNameMax); } + } + public uint m_nCurProgress; // current progress towards the achievement + public uint m_nMaxProgress; // "out of" this many +} + +//----------------------------------------------------------------------------- +// Purpose: call result for finding a leaderboard, returned as a result of FindOrCreateLeaderboard() or FindLeaderboard() +// use CCallResult<> to map this async result to a member function +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 4)] +public struct LeaderboardFindResult_t +{ + public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 4; + public SteamLeaderboard_t m_hSteamLeaderboard; // handle to the leaderboard serarched for, 0 if no leaderboard found + public byte m_bLeaderboardFound; // 0 if no leaderboard found +} + +//----------------------------------------------------------------------------- +// Purpose: call result indicating scores for a leaderboard have been downloaded and are ready to be retrieved, returned as a result of DownloadLeaderboardEntries() +// use CCallResult<> to map this async result to a member function +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 5)] +public struct LeaderboardScoresDownloaded_t +{ + public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 5; + public SteamLeaderboard_t m_hSteamLeaderboard; + public SteamLeaderboardEntries_t m_hSteamLeaderboardEntries; // the handle to pass into GetDownloadedLeaderboardEntries() + public int m_cEntryCount; // the number of entries downloaded +} + +//----------------------------------------------------------------------------- +// Purpose: call result indicating scores has been uploaded, returned as a result of UploadLeaderboardScore() +// use CCallResult<> to map this async result to a member function +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 6)] +public struct LeaderboardScoreUploaded_t +{ + public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 6; + public byte m_bSuccess; // 1 if the call was successful + public SteamLeaderboard_t m_hSteamLeaderboard; // the leaderboard handle that was + public int m_nScore; // the score that was attempted to set + public byte m_bScoreChanged; // true if the score in the leaderboard change, false if the existing score was better + public int m_nGlobalRankNew; // the new global rank of the user in this leaderboard + public int m_nGlobalRankPrevious; // the previous global rank of the user in this leaderboard; 0 if the user had no existing entry in the leaderboard +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 7)] +public struct NumberOfCurrentPlayers_t +{ + public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 7; + public byte m_bSuccess; // 1 if the call was successful + public int m_cPlayers; // Number of players currently playing +} + +//----------------------------------------------------------------------------- +// Purpose: Callback indicating that a user's stats have been unloaded. +// Call RequestUserStats again to access stats for this user +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 8)] +public struct UserStatsUnloaded_t +{ + public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 8; + public CSteamID m_steamIDUser; // User whose stats have been unloaded +} + +//----------------------------------------------------------------------------- +// Purpose: Callback indicating that an achievement icon has been fetched +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 9)] +public struct UserAchievementIconFetched_t +{ + public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 9; + + public CGameID m_nGameID; // Game this is for + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchStatNameMax)] + private readonly byte[] m_rgchAchievementName_; + public string m_rgchAchievementName // name of the achievement + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchAchievementName_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchAchievementName_, Constants.k_cchStatNameMax); } + } + [MarshalAs(UnmanagedType.I1)] + public bool m_bAchieved; // Is the icon for the achieved or not achieved version? + public int m_nIconHandle; // Handle to the image, which can be used in SteamUtils()->GetImageRGBA(), 0 means no image is set for the achievement +} + +//----------------------------------------------------------------------------- +// Purpose: Callback indicating that global achievement percentages are fetched +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 10)] +public struct GlobalAchievementPercentagesReady_t +{ + public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 10; + + public ulong m_nGameID; // Game this is for + public EResult m_eResult; // Result of the operation +} + +//----------------------------------------------------------------------------- +// Purpose: call result indicating UGC has been uploaded, returned as a result of SetLeaderboardUGC() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 11)] +public struct LeaderboardUGCSet_t +{ + public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 11; + public EResult m_eResult; // The result of the operation + public SteamLeaderboard_t m_hSteamLeaderboard; // the leaderboard handle that was +} + +//----------------------------------------------------------------------------- +// Purpose: callback indicating global stats have been received. +// Returned as a result of RequestGlobalStats() +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 12)] +public struct GlobalStatsReceived_t +{ + public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 12; + public ulong m_nGameID; // Game global stats were requested for + public EResult m_eResult; // The result of the request +} + +// callbacks +//----------------------------------------------------------------------------- +// Purpose: The country of the user changed +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 1)] +public struct IPCountry_t +{ + public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 1; +} + +//----------------------------------------------------------------------------- +// Purpose: Fired when running on a handheld PC or laptop with less than 10 minutes of battery is left, fires then every minute +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 2)] +public struct LowBatteryPower_t +{ + public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 2; + public byte m_nMinutesBatteryLeft; +} + +//----------------------------------------------------------------------------- +// Purpose: called when a SteamAsyncCall_t has completed (or failed) +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 3)] +public struct SteamAPICallCompleted_t +{ + public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 3; + public SteamAPICall_t m_hAsyncCall; + public int m_iCallback; + public uint m_cubParam; +} + +//----------------------------------------------------------------------------- +// called when Steam wants to shutdown +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 4)] +public struct SteamShutdown_t +{ + public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 4; +} + +//----------------------------------------------------------------------------- +// callback for CheckFileSignature +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 5)] +public struct CheckFileSignature_t +{ + public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 5; + public ECheckFileSignature m_eCheckFileSignature; +} + +// k_iSteamUtilsCallbacks + 13 is taken +//----------------------------------------------------------------------------- +// Full Screen gamepad text input has been closed +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 14)] +public struct GamepadTextInputDismissed_t +{ + public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 14; + [MarshalAs(UnmanagedType.I1)] + public bool m_bSubmitted; // true if user entered & accepted text (Call ISteamUtils::GetEnteredGamepadTextInput() for text), false if canceled input + public uint m_unSubmittedText; + public AppId_t m_unAppID; +} + +// k_iSteamUtilsCallbacks + 15 through 35 are taken +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 36)] +public struct AppResumingFromSuspend_t +{ + public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 36; +} + +// k_iSteamUtilsCallbacks + 37 is taken +//----------------------------------------------------------------------------- +// The floating on-screen keyboard has been closed +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] +[CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 38)] +public struct FloatingGamepadTextInputDismissed_t +{ + public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 38; +} + +//----------------------------------------------------------------------------- +// The text filtering dictionary has changed +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 39)] +public struct FilterTextDictionaryChanged_t +{ + public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 39; + public int m_eLanguage; // One of ELanguage, or k_LegallyRequiredFiltering +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamVideoCallbacks + 11)] +public struct GetVideoURLResult_t +{ + public const int k_iCallback = Constants.k_iSteamVideoCallbacks + 11; + public EResult m_eResult; + public AppId_t m_unVideoAppID; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] + private readonly byte[] m_rgchURL_; + public string m_rgchURL { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchURL_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchURL_, 256); } + } +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamVideoCallbacks + 24)] +public struct GetOPFSettingsResult_t +{ + public const int k_iCallback = Constants.k_iSteamVideoCallbacks + 24; + public EResult m_eResult; + public AppId_t m_unVideoAppID; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamVideoCallbacks + 4)] +public struct BroadcastUploadStart_t +{ + public const int k_iCallback = Constants.k_iSteamVideoCallbacks + 4; + [MarshalAs(UnmanagedType.I1)] + public bool m_bIsRTMP; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamVideoCallbacks + 5)] +public struct BroadcastUploadStop_t +{ + public const int k_iCallback = Constants.k_iSteamVideoCallbacks + 5; + public EBroadcastUploadResult m_eResult; +} +/// Callback struct used to notify when a connection has changed state +/// A struct used to describe a "fake IP" we have been assigned to +/// use as an identifier. This callback is posted when +/// ISteamNetworkingSoockets::BeginAsyncRequestFakeIP completes. +/// See also ISteamNetworkingSockets::GetFakeIP +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +[CallbackIdentity(Constants.k_iSteamNetworkingSocketsCallbacks + 3)] +public struct SteamNetworkingFakeIPResult_t +{ + public const int k_iCallback = Constants.k_iSteamNetworkingSocketsCallbacks + 3; + + /// Status/result of the allocation request. Possible failure values are: + /// - k_EResultBusy - you called GetFakeIP but the request has not completed. + /// - k_EResultInvalidParam - you called GetFakeIP with an invalid port index + /// - k_EResultLimitExceeded - You asked for too many ports, or made an + /// additional request after one had already succeeded + /// - k_EResultNoMatch - GetFakeIP was called, but no request has been made + /// + /// Note that, with the exception of k_EResultBusy (if you are polling), + /// it is highly recommended to treat all failures as fatal. + public EResult m_eResult; + + /// Local identity of the ISteamNetworkingSockets object that made + /// this request and is assigned the IP. This is needed in the callback + /// in the case where there are multiple ISteamNetworkingSockets objects. + /// (E.g. one for the user, and another for the local gameserver). + public SteamNetworkingIdentity m_identity; + + /// Fake IPv4 IP address that we have been assigned. NOTE: this + /// IP address is not exclusively ours! Steam tries to avoid sharing + /// IP addresses, but this may not always be possible. The IP address + /// may be currently in use by another host, but with different port(s). + /// The exact same IP:port address may have been used previously. + /// Steam tries to avoid reusing ports until they have not been in use for + /// some time, but this may not always be possible. + public uint m_unIP; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_nMaxReturnPorts)] + public ushort[] m_unPorts; } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/SteamConstants.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/SteamConstants.cs index 88c759397..6f205a693 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/SteamConstants.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/SteamConstants.cs @@ -1,331 +1,327 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; +namespace SwiftlyS2.Shared.SteamAPI; -namespace SwiftlyS2.Shared.SteamAPI +public static class Constants { - public static class Constants - { - public const string STEAMAPPS_INTERFACE_VERSION = "STEAMAPPS_INTERFACE_VERSION008"; - public const string STEAMAPPTICKET_INTERFACE_VERSION = "STEAMAPPTICKET_INTERFACE_VERSION001"; - public const string STEAMCLIENT_INTERFACE_VERSION = "SteamClient021"; - public const string STEAMFRIENDS_INTERFACE_VERSION = "SteamFriends018"; - public const string STEAMGAMECOORDINATOR_INTERFACE_VERSION = "SteamGameCoordinator001"; - public const string STEAMGAMESERVER_INTERFACE_VERSION = "SteamGameServer015"; - public const string STEAMGAMESERVERSTATS_INTERFACE_VERSION = "SteamGameServerStats001"; - public const string STEAMHTMLSURFACE_INTERFACE_VERSION = "STEAMHTMLSURFACE_INTERFACE_VERSION_005"; - public const string STEAMHTTP_INTERFACE_VERSION = "STEAMHTTP_INTERFACE_VERSION003"; - public const string STEAMINPUT_INTERFACE_VERSION = "SteamInput006"; - public const string STEAMINVENTORY_INTERFACE_VERSION = "STEAMINVENTORY_INTERFACE_V003"; - public const string STEAMMATCHMAKING_INTERFACE_VERSION = "SteamMatchMaking009"; - public const string STEAMMATCHMAKINGSERVERS_INTERFACE_VERSION = "SteamMatchMakingServers002"; - public const string STEAMGAMESEARCH_INTERFACE_VERSION = "SteamMatchGameSearch001"; - public const string STEAMPARTIES_INTERFACE_VERSION = "SteamParties002"; - public const string STEAMMUSIC_INTERFACE_VERSION = "STEAMMUSIC_INTERFACE_VERSION001"; - public const string STEAMMUSICREMOTE_INTERFACE_VERSION = "STEAMMUSICREMOTE_INTERFACE_VERSION001"; - public const string STEAMNETWORKING_INTERFACE_VERSION = "SteamNetworking006"; - public const string STEAMNETWORKINGMESSAGES_INTERFACE_VERSION = "SteamNetworkingMessages002"; - // Silence some warnings - public const string STEAMNETWORKINGSOCKETS_INTERFACE_VERSION = "SteamNetworkingSockets012"; - // Silence some warnings - public const string STEAMNETWORKINGUTILS_INTERFACE_VERSION = "SteamNetworkingUtils004"; - public const string STEAMPARENTALSETTINGS_INTERFACE_VERSION = "STEAMPARENTALSETTINGS_INTERFACE_VERSION001"; - public const string STEAMREMOTEPLAY_INTERFACE_VERSION = "STEAMREMOTEPLAY_INTERFACE_VERSION003"; - public const string STEAMREMOTESTORAGE_INTERFACE_VERSION = "STEAMREMOTESTORAGE_INTERFACE_VERSION016"; - public const string STEAMSCREENSHOTS_INTERFACE_VERSION = "STEAMSCREENSHOTS_INTERFACE_VERSION003"; - public const string STEAMTIMELINE_INTERFACE_VERSION = "STEAMTIMELINE_INTERFACE_V004"; - public const string STEAMUGC_INTERFACE_VERSION = "STEAMUGC_INTERFACE_VERSION021"; - public const string STEAMUSER_INTERFACE_VERSION = "SteamUser023"; - public const string STEAMUSERSTATS_INTERFACE_VERSION = "STEAMUSERSTATS_INTERFACE_VERSION013"; - public const string STEAMUTILS_INTERFACE_VERSION = "SteamUtils010"; - public const string STEAMVIDEO_INTERFACE_VERSION = "STEAMVIDEO_INTERFACE_V007"; - public const int k_cubAppProofOfPurchaseKeyMax = 240; // max supported length of a legacy cd key - // maximum length of friend group name (not including terminating nul!) - public const int k_cchMaxFriendsGroupName = 64; - // maximum number of groups a single user is allowed - public const int k_cFriendsGroupLimit = 100; - public const int k_cEnumerateFollowersMax = 50; - // special values for FriendGameInfo_t::m_usQueryPort - public const ushort k_usFriendGameInfoQueryPort_NotInitialized = 0xFFFF; // We haven't asked the GS for this query port's actual value yet. Was #define QUERY_PORT_NOT_INITIALIZED in older versions of Steamworks SDK. - public const ushort k_usFriendGameInfoQueryPort_Error = 0xFFFE; // We were unable to get the query port for this server. Was #define QUERY_PORT_ERROR in older versions of Steamworks SDK. - // maximum number of characters in a user's name. Two flavors; one for UTF-8 and one for UTF-16. - // The UTF-8 version has to be very generous to accomodate characters that get large when encoded - // in UTF-8. - public const int k_cchPersonaNameMax = 128; - public const int k_cwchPersonaNameMax = 32; - // size limit on chat room or member metadata - public const int k_cubChatMetadataMax = 8192; - // size limits on Rich Presence data - public const int k_cchMaxRichPresenceKeys = 30; - public const int k_cchMaxRichPresenceKeyLength = 64; - public const int k_cchMaxRichPresenceValueLength = 256; - // game server flags - public const int k_unFavoriteFlagNone = 0x00; - public const int k_unFavoriteFlagFavorite = 0x01; // this game favorite entry is for the favorites list - public const int k_unFavoriteFlagHistory = 0x02; // this game favorite entry is for the history list - //----------------------------------------------------------------------------- - // Purpose: Defines the largest allowed file size. Cloud files cannot be written - // in a single chunk over 100MB (and cannot be over 200MB total.) - //----------------------------------------------------------------------------- - public const int k_unMaxCloudFileChunkSize = 100 * 1024 * 1024; - public const int k_cchPublishedDocumentTitleMax = 128 + 1; - public const int k_cchPublishedDocumentDescriptionMax = 8000; - public const int k_cchPublishedDocumentChangeDescriptionMax = 8000; - public const int k_unEnumeratePublishedFilesMaxResults = 50; - public const int k_cchTagListMax = 1024 + 1; - public const int k_cchFilenameMax = 260; - public const int k_cchPublishedFileURLMax = 256; - public const int k_nScreenshotMaxTaggedUsers = 32; - public const int k_nScreenshotMaxTaggedPublishedFiles = 32; - public const int k_cubUFSTagTypeMax = 255; - public const int k_cubUFSTagValueMax = 255; - // Required with of a thumbnail provided to AddScreenshotToLibrary. If you do not provide a thumbnail - // one will be generated. - public const int k_ScreenshotThumbWidth = 200; - public const int k_unMaxTimelinePriority = 1000; - public const int k_unTimelinePriority_KeepCurrentValue = 1000000; // Use with UpdateRangeTimelineEvent to not change the priority - public const float k_flMaxTimelineEventDuration = 600; - public const int k_cchMaxPhaseIDLength = 64; - public const int kNumUGCResultsPerPage = 50; - public const int k_cchDeveloperMetadataMax = 5000; - public const int k_nCubTicketMaxLength = 2560; - // size limit on stat or achievement name (UTF-8 encoded) - public const int k_cchStatNameMax = 128; - // maximum number of bytes for a leaderboard name (UTF-8 encoded) - public const int k_cchLeaderboardNameMax = 128; - // maximum number of details int32's storable for a single leaderboard entry - public const int k_cLeaderboardDetailsMax = 64; - // - // Max size (in bytes of UTF-8 data, not in characters) of server fields, including null terminator. - // WARNING: These cannot be changed easily, without breaking clients using old interfaces. - // - public const int k_cbMaxGameServerGameDir = 32; - public const int k_cbMaxGameServerMapName = 32; - public const int k_cbMaxGameServerGameDescription = 64; - public const int k_cbMaxGameServerName = 64; - public const int k_cbMaxGameServerTags = 128; - public const int k_cbMaxGameServerGameData = 2048; - // A fixed size buffer to receive an error message that is returned by some API - // calls. - public const int k_cchMaxSteamErrMsg = 1024; - // Forward declare types - //----------------------------------------------------------------------------- - // Purpose: Base values for callback identifiers, each callback must - // have a unique ID. - //----------------------------------------------------------------------------- - public const int k_iSteamUserCallbacks = 100; - public const int k_iSteamGameServerCallbacks = 200; - public const int k_iSteamFriendsCallbacks = 300; - public const int k_iSteamBillingCallbacks = 400; - public const int k_iSteamMatchmakingCallbacks = 500; - public const int k_iSteamContentServerCallbacks = 600; - public const int k_iSteamUtilsCallbacks = 700; - public const int k_iSteamAppsCallbacks = 1000; - public const int k_iSteamUserStatsCallbacks = 1100; - public const int k_iSteamNetworkingCallbacks = 1200; - public const int k_iSteamNetworkingSocketsCallbacks = 1220; - public const int k_iSteamNetworkingMessagesCallbacks = 1250; - public const int k_iSteamNetworkingUtilsCallbacks = 1280; - public const int k_iSteamRemoteStorageCallbacks = 1300; - public const int k_iSteamGameServerItemsCallbacks = 1500; - public const int k_iSteamGameCoordinatorCallbacks = 1700; - public const int k_iSteamGameServerStatsCallbacks = 1800; - public const int k_iSteam2AsyncCallbacks = 1900; - public const int k_iSteamGameStatsCallbacks = 2000; - public const int k_iSteamHTTPCallbacks = 2100; - public const int k_iSteamScreenshotsCallbacks = 2300; - // NOTE: 2500-2599 are reserved - public const int k_iSteamStreamLauncherCallbacks = 2600; - public const int k_iSteamControllerCallbacks = 2800; - public const int k_iSteamUGCCallbacks = 3400; - public const int k_iSteamStreamClientCallbacks = 3500; - public const int k_iSteamMusicCallbacks = 4000; - public const int k_iSteamMusicRemoteCallbacks = 4100; - public const int k_iSteamGameNotificationCallbacks = 4400; - public const int k_iSteamHTMLSurfaceCallbacks = 4500; - public const int k_iSteamVideoCallbacks = 4600; - public const int k_iSteamInventoryCallbacks = 4700; - public const int k_ISteamParentalSettingsCallbacks = 5000; - public const int k_iSteamGameSearchCallbacks = 5200; - public const int k_iSteamPartiesCallbacks = 5300; - public const int k_iSteamSTARCallbacks = 5500; - public const int k_iSteamRemotePlayCallbacks = 5700; - public const int k_iSteamChatCallbacks = 5900; - public const int k_iSteamTimelineCallbacks = 6000; - /// Pass to SteamGameServer_Init to indicate that the same UDP port will be used for game traffic - /// UDP queries for server browser pings and LAN discovery. In this case, Steam will not open up a - /// socket to handle server browser queries, and you must use ISteamGameServer::HandleIncomingPacket - /// and ISteamGameServer::GetNextOutgoingPacket to handle packets related to server discovery on your socket. - public const ushort STEAMGAMESERVER_QUERY_PORT_SHARED = 0xffff; - public const int k_unSteamAccountIDMask = -1; - public const int k_unSteamAccountInstanceMask = 0x000FFFFF; - public const int k_unSteamUserDefaultInstance = 1; // fixed instance for all individual users - public const int k_cchGameExtraInfoMax = 64; - public const int k_nSteamEncryptedAppTicketSymmetricKeyLen = 32; - /// Port number(s) assigned to us. Only the first entries will contain - /// nonzero values. Entries corresponding to ports beyond what was - /// allocated for you will be zero. - /// - /// (NOTE: At the time of this writing, the maximum number of ports you may - /// request is 4.) - public const int k_nMaxReturnPorts = 8; - /// Max length of diagnostic error message - public const int k_cchMaxSteamNetworkingErrMsg = 1024; - /// Max length, in bytes (including null terminator) of the reason string - /// when a connection is closed. - public const int k_cchSteamNetworkingMaxConnectionCloseReason = 128; - /// Max length, in bytes (include null terminator) of debug description - /// of a connection. - public const int k_cchSteamNetworkingMaxConnectionDescription = 128; - /// Max length of the app's part of the description - public const int k_cchSteamNetworkingMaxConnectionAppName = 32; - public const int k_nSteamNetworkConnectionInfoFlags_Unauthenticated = 1; // We don't have a certificate for the remote host. - public const int k_nSteamNetworkConnectionInfoFlags_Unencrypted = 2; // Information is being sent out over a wire unencrypted (by this library) - public const int k_nSteamNetworkConnectionInfoFlags_LoopbackBuffers = 4; // Internal loopback buffers. Won't be true for localhost. (You can check the address to determine that.) This implies k_nSteamNetworkConnectionInfoFlags_FastLAN - public const int k_nSteamNetworkConnectionInfoFlags_Fast = 8; // The connection is "fast" and "reliable". Either internal/localhost (check the address to find out), or the peer is on the same LAN. (Probably. It's based on the address and the ping time, this is actually hard to determine unambiguously). - public const int k_nSteamNetworkConnectionInfoFlags_Relayed = 16; // The connection is relayed somehow (SDR or TURN). - public const int k_nSteamNetworkConnectionInfoFlags_DualWifi = 32; // We're taking advantage of dual-wifi multi-path - // - // Network messages - // - /// Max size of a single message that we can SEND. - /// Note: We might be wiling to receive larger messages, - /// and our peer might, too. - public const int k_cbMaxSteamNetworkingSocketsMessageSizeSend = 512 * 1024; - // - // Flags used to set options for message sending - // - // Send the message unreliably. Can be lost. Messages *can* be larger than a - // single MTU (UDP packet), but there is no retransmission, so if any piece - // of the message is lost, the entire message will be dropped. - // - // The sending API does have some knowledge of the underlying connection, so - // if there is no NAT-traversal accomplished or there is a recognized adjustment - // happening on the connection, the packet will be batched until the connection - // is open again. - // - // Migration note: This is not exactly the same as k_EP2PSendUnreliable! You - // probably want k_ESteamNetworkingSendType_UnreliableNoNagle - public const int k_nSteamNetworkingSend_Unreliable = 0; - // Disable Nagle's algorithm. - // By default, Nagle's algorithm is applied to all outbound messages. This means - // that the message will NOT be sent immediately, in case further messages are - // sent soon after you send this, which can be grouped together. Any time there - // is enough buffered data to fill a packet, the packets will be pushed out immediately, - // but partially-full packets not be sent until the Nagle timer expires. See - // ISteamNetworkingSockets::FlushMessagesOnConnection, ISteamNetworkingMessages::FlushMessagesToUser - // - // NOTE: Don't just send every message without Nagle because you want packets to get there - // quicker. Make sure you understand the problem that Nagle is solving before disabling it. - // If you are sending small messages, often many at the same time, then it is very likely that - // it will be more efficient to leave Nagle enabled. A typical proper use of this flag is - // when you are sending what you know will be the last message sent for a while (e.g. the last - // in the server simulation tick to a particular client), and you use this flag to flush all - // messages. - public const int k_nSteamNetworkingSend_NoNagle = 1; - // Send a message unreliably, bypassing Nagle's algorithm for this message and any messages - // currently pending on the Nagle timer. This is equivalent to using k_ESteamNetworkingSend_Unreliable - // and then immediately flushing the messages using ISteamNetworkingSockets::FlushMessagesOnConnection - // or ISteamNetworkingMessages::FlushMessagesToUser. (But using this flag is more efficient since you - // only make one API call.) - public const int k_nSteamNetworkingSend_UnreliableNoNagle = k_nSteamNetworkingSend_Unreliable | k_nSteamNetworkingSend_NoNagle; - // If the message cannot be sent very soon (because the connection is still doing some initial - // handshaking, route negotiations, etc), then just drop it. This is only applicable for unreliable - // messages. Using this flag on reliable messages is invalid. - public const int k_nSteamNetworkingSend_NoDelay = 4; - // Send an unreliable message, but if it cannot be sent relatively quickly, just drop it instead of queuing it. - // This is useful for messages that are not useful if they are excessively delayed, such as voice data. - // NOTE: The Nagle algorithm is not used, and if the message is not dropped, any messages waiting on the - // Nagle timer are immediately flushed. - // - // A message will be dropped under the following circumstances: - // - the connection is not fully connected. (E.g. the "Connecting" or "FindingRoute" states) - // - there is a sufficiently large number of messages queued up already such that the current message - // will not be placed on the wire in the next ~200ms or so. - // - // If a message is dropped for these reasons, k_EResultIgnored will be returned. - public const int k_nSteamNetworkingSend_UnreliableNoDelay = k_nSteamNetworkingSend_Unreliable | k_nSteamNetworkingSend_NoDelay | k_nSteamNetworkingSend_NoNagle; - // Reliable message send. Can send up to k_cbMaxSteamNetworkingSocketsMessageSizeSend bytes in a single message. - // Does fragmentation/re-assembly of messages under the hood, as well as a sliding window for - // efficient sends of large chunks of data. - // - // The Nagle algorithm is used. See notes on k_ESteamNetworkingSendType_Unreliable for more details. - // See k_ESteamNetworkingSendType_ReliableNoNagle, ISteamNetworkingSockets::FlushMessagesOnConnection, - // ISteamNetworkingMessages::FlushMessagesToUser - // - // Migration note: This is NOT the same as k_EP2PSendReliable, it's more like k_EP2PSendReliableWithBuffering - public const int k_nSteamNetworkingSend_Reliable = 8; - // Send a message reliably, but bypass Nagle's algorithm. - // - // Migration note: This is equivalent to k_EP2PSendReliable - public const int k_nSteamNetworkingSend_ReliableNoNagle = k_nSteamNetworkingSend_Reliable | k_nSteamNetworkingSend_NoNagle; - // By default, message sending is queued, and the work of encryption and talking to - // the operating system sockets, etc is done on a service thread. This is usually a - // a performance win when messages are sent from the "main thread". However, if this - // flag is set, and data is ready to be sent immediately (either from this message - // or earlier queued data), then that work will be done in the current thread, before - // the current call returns. If data is not ready to be sent (due to rate limiting - // or Nagle), then this flag has no effect. - // - // This is an advanced flag used to control performance at a very low level. For - // most applications running on modern hardware with more than one CPU core, doing - // the work of sending on a service thread will yield the best performance. Only - // use this flag if you have a really good reason and understand what you are doing. - // Otherwise you will probably just make performance worse. - public const int k_nSteamNetworkingSend_UseCurrentThread = 16; - // When sending a message using ISteamNetworkingMessages, automatically re-establish - // a broken session, without returning k_EResultNoConnection. Without this flag, - // if you attempt to send a message, and the session was proactively closed by the - // peer, or an error occurred that disrupted communications, then you must close the - // session using ISteamNetworkingMessages::CloseSessionWithUser before attempting to - // send another message. (Or you can simply add this flag and retry.) In this way, - // the disruption cannot go unnoticed, and a more clear order of events can be - // ascertained. This is especially important when reliable messages are used, since - // if the connection is disrupted, some of those messages will not have been delivered, - // and it is in general not possible to know which. Although a - // SteamNetworkingMessagesSessionFailed_t callback will be posted when an error occurs - // to notify you that a failure has happened, callbacks are asynchronous, so it is not - // possible to tell exactly when it happened. And because the primary purpose of - // ISteamNetworkingMessages is to be like UDP, there is no notification when a peer closes - // the session. - // - // If you are not using any reliable messages (e.g. you are using ISteamNetworkingMessages - // exactly as a transport replacement for UDP-style datagrams only), you may not need to - // know when an underlying connection fails, and so you may not need this notification. - public const int k_nSteamNetworkingSend_AutoRestartBrokenSession = 32; - /// Max possible length of a ping location, in string format. This is - /// an extremely conservative worst case value which leaves room for future - /// syntax enhancements. Most strings in practice are a lot shorter. - /// If you are storing many of these, you will very likely benefit from - /// using dynamic memory. - public const int k_cchMaxSteamNetworkingPingLocationString = 1024; - /// Special values that are returned by some functions that return a ping. - public const int k_nSteamNetworkingPing_Failed = -1; - public const int k_nSteamNetworkingPing_Unknown = -2; - // Bitmask of types to share - public const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Default = -1; // Special value - use user defaults - public const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Disable = 0; // Do not do any ICE work at all or share any IP addresses with peer - public const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Relay = 1; // Relayed connection via TURN server. - public const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Private = 2; // host addresses that appear to be link-local or RFC1918 addresses - public const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Public = 4; // STUN reflexive addresses, or host address that isn't a "private" address - public const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_All = 0x7fffffff; - public const int k_uAccountIdInvalid = 0; - public const ulong k_ulPartyBeaconIdInvalid = 0; - public const int INVALID_HTTPREQUEST_HANDLE = 0; - public const int STEAM_INPUT_MAX_COUNT = 16; - public const int STEAM_INPUT_MAX_ANALOG_ACTIONS = 24; - public const int STEAM_INPUT_MAX_DIGITAL_ACTIONS = 256; - public const int STEAM_INPUT_MAX_ORIGINS = 8; - public const int STEAM_INPUT_MAX_ACTIVE_LAYERS = 16; - // When sending an option to a specific controller handle, you can send to all devices via this command - public const ulong STEAM_INPUT_HANDLE_ALL_CONTROLLERS = 0xFFFFFFFFFFFFFFFF; - public const float STEAM_INPUT_MIN_ANALOG_ACTION_DATA = -1.0f; - public const float STEAM_INPUT_MAX_ANALOG_ACTION_DATA = 1.0f; - // maximum number of characters a lobby metadata key can be - public const byte k_nMaxLobbyKeyLength = 255; - public const int k_SteamMusicNameMaxLength = 255; - public const int k_SteamMusicPNGMaxLength = 65535; - // STEAM_API_EXPORTS - } + public const string STEAMAPPS_INTERFACE_VERSION = "STEAMAPPS_INTERFACE_VERSION008"; + public const string STEAMAPPTICKET_INTERFACE_VERSION = "STEAMAPPTICKET_INTERFACE_VERSION001"; + public const string STEAMCLIENT_INTERFACE_VERSION = "SteamClient021"; + public const string STEAMFRIENDS_INTERFACE_VERSION = "SteamFriends018"; + public const string STEAMGAMECOORDINATOR_INTERFACE_VERSION = "SteamGameCoordinator001"; + public const string STEAMGAMESERVER_INTERFACE_VERSION = "SteamGameServer015"; + public const string STEAMGAMESERVERSTATS_INTERFACE_VERSION = "SteamGameServerStats001"; + public const string STEAMHTMLSURFACE_INTERFACE_VERSION = "STEAMHTMLSURFACE_INTERFACE_VERSION_005"; + public const string STEAMHTTP_INTERFACE_VERSION = "STEAMHTTP_INTERFACE_VERSION003"; + public const string STEAMINPUT_INTERFACE_VERSION = "SteamInput006"; + public const string STEAMINVENTORY_INTERFACE_VERSION = "STEAMINVENTORY_INTERFACE_V003"; + public const string STEAMMATCHMAKING_INTERFACE_VERSION = "SteamMatchMaking009"; + public const string STEAMMATCHMAKINGSERVERS_INTERFACE_VERSION = "SteamMatchMakingServers002"; + public const string STEAMGAMESEARCH_INTERFACE_VERSION = "SteamMatchGameSearch001"; + public const string STEAMPARTIES_INTERFACE_VERSION = "SteamParties002"; + public const string STEAMMUSIC_INTERFACE_VERSION = "STEAMMUSIC_INTERFACE_VERSION001"; + public const string STEAMMUSICREMOTE_INTERFACE_VERSION = "STEAMMUSICREMOTE_INTERFACE_VERSION001"; + public const string STEAMNETWORKING_INTERFACE_VERSION = "SteamNetworking006"; + public const string STEAMNETWORKINGMESSAGES_INTERFACE_VERSION = "SteamNetworkingMessages002"; + // Silence some warnings + public const string STEAMNETWORKINGSOCKETS_INTERFACE_VERSION = "SteamNetworkingSockets012"; + // Silence some warnings + public const string STEAMNETWORKINGUTILS_INTERFACE_VERSION = "SteamNetworkingUtils004"; + public const string STEAMPARENTALSETTINGS_INTERFACE_VERSION = "STEAMPARENTALSETTINGS_INTERFACE_VERSION001"; + public const string STEAMREMOTEPLAY_INTERFACE_VERSION = "STEAMREMOTEPLAY_INTERFACE_VERSION003"; + public const string STEAMREMOTESTORAGE_INTERFACE_VERSION = "STEAMREMOTESTORAGE_INTERFACE_VERSION016"; + public const string STEAMSCREENSHOTS_INTERFACE_VERSION = "STEAMSCREENSHOTS_INTERFACE_VERSION003"; + public const string STEAMTIMELINE_INTERFACE_VERSION = "STEAMTIMELINE_INTERFACE_V004"; + public const string STEAMUGC_INTERFACE_VERSION = "STEAMUGC_INTERFACE_VERSION021"; + public const string STEAMUSER_INTERFACE_VERSION = "SteamUser023"; + public const string STEAMUSERSTATS_INTERFACE_VERSION = "STEAMUSERSTATS_INTERFACE_VERSION013"; + public const string STEAMUTILS_INTERFACE_VERSION = "SteamUtils010"; + public const string STEAMVIDEO_INTERFACE_VERSION = "STEAMVIDEO_INTERFACE_V007"; + public const int k_cubAppProofOfPurchaseKeyMax = 240; // max supported length of a legacy cd key + // maximum length of friend group name (not including terminating nul!) + public const int k_cchMaxFriendsGroupName = 64; + // maximum number of groups a single user is allowed + public const int k_cFriendsGroupLimit = 100; + public const int k_cEnumerateFollowersMax = 50; + // special values for FriendGameInfo_t::m_usQueryPort + public const ushort k_usFriendGameInfoQueryPort_NotInitialized = 0xFFFF; // We haven't asked the GS for this query port's actual value yet. Was #define QUERY_PORT_NOT_INITIALIZED in older versions of Steamworks SDK. + public const ushort k_usFriendGameInfoQueryPort_Error = 0xFFFE; // We were unable to get the query port for this server. Was #define QUERY_PORT_ERROR in older versions of Steamworks SDK. + // maximum number of characters in a user's name. Two flavors; one for UTF-8 and one for UTF-16. + // The UTF-8 version has to be very generous to accomodate characters that get large when encoded + // in UTF-8. + public const int k_cchPersonaNameMax = 128; + public const int k_cwchPersonaNameMax = 32; + // size limit on chat room or member metadata + public const int k_cubChatMetadataMax = 8192; + // size limits on Rich Presence data + public const int k_cchMaxRichPresenceKeys = 30; + public const int k_cchMaxRichPresenceKeyLength = 64; + public const int k_cchMaxRichPresenceValueLength = 256; + // game server flags + public const int k_unFavoriteFlagNone = 0x00; + public const int k_unFavoriteFlagFavorite = 0x01; // this game favorite entry is for the favorites list + public const int k_unFavoriteFlagHistory = 0x02; // this game favorite entry is for the history list + //----------------------------------------------------------------------------- + // Purpose: Defines the largest allowed file size. Cloud files cannot be written + // in a single chunk over 100MB (and cannot be over 200MB total.) + //----------------------------------------------------------------------------- + public const int k_unMaxCloudFileChunkSize = 100 * 1024 * 1024; + public const int k_cchPublishedDocumentTitleMax = 128 + 1; + public const int k_cchPublishedDocumentDescriptionMax = 8000; + public const int k_cchPublishedDocumentChangeDescriptionMax = 8000; + public const int k_unEnumeratePublishedFilesMaxResults = 50; + public const int k_cchTagListMax = 1024 + 1; + public const int k_cchFilenameMax = 260; + public const int k_cchPublishedFileURLMax = 256; + public const int k_nScreenshotMaxTaggedUsers = 32; + public const int k_nScreenshotMaxTaggedPublishedFiles = 32; + public const int k_cubUFSTagTypeMax = 255; + public const int k_cubUFSTagValueMax = 255; + // Required with of a thumbnail provided to AddScreenshotToLibrary. If you do not provide a thumbnail + // one will be generated. + public const int k_ScreenshotThumbWidth = 200; + public const int k_unMaxTimelinePriority = 1000; + public const int k_unTimelinePriority_KeepCurrentValue = 1000000; // Use with UpdateRangeTimelineEvent to not change the priority + public const float k_flMaxTimelineEventDuration = 600; + public const int k_cchMaxPhaseIDLength = 64; + public const int kNumUGCResultsPerPage = 50; + public const int k_cchDeveloperMetadataMax = 5000; + public const int k_nCubTicketMaxLength = 2560; + // size limit on stat or achievement name (UTF-8 encoded) + public const int k_cchStatNameMax = 128; + // maximum number of bytes for a leaderboard name (UTF-8 encoded) + public const int k_cchLeaderboardNameMax = 128; + // maximum number of details int32's storable for a single leaderboard entry + public const int k_cLeaderboardDetailsMax = 64; + // + // Max size (in bytes of UTF-8 data, not in characters) of server fields, including null terminator. + // WARNING: These cannot be changed easily, without breaking clients using old interfaces. + // + public const int k_cbMaxGameServerGameDir = 32; + public const int k_cbMaxGameServerMapName = 32; + public const int k_cbMaxGameServerGameDescription = 64; + public const int k_cbMaxGameServerName = 64; + public const int k_cbMaxGameServerTags = 128; + public const int k_cbMaxGameServerGameData = 2048; + // A fixed size buffer to receive an error message that is returned by some API + // calls. + public const int k_cchMaxSteamErrMsg = 1024; + // Forward declare types + //----------------------------------------------------------------------------- + // Purpose: Base values for callback identifiers, each callback must + // have a unique ID. + //----------------------------------------------------------------------------- + public const int k_iSteamUserCallbacks = 100; + public const int k_iSteamGameServerCallbacks = 200; + public const int k_iSteamFriendsCallbacks = 300; + public const int k_iSteamBillingCallbacks = 400; + public const int k_iSteamMatchmakingCallbacks = 500; + public const int k_iSteamContentServerCallbacks = 600; + public const int k_iSteamUtilsCallbacks = 700; + public const int k_iSteamAppsCallbacks = 1000; + public const int k_iSteamUserStatsCallbacks = 1100; + public const int k_iSteamNetworkingCallbacks = 1200; + public const int k_iSteamNetworkingSocketsCallbacks = 1220; + public const int k_iSteamNetworkingMessagesCallbacks = 1250; + public const int k_iSteamNetworkingUtilsCallbacks = 1280; + public const int k_iSteamRemoteStorageCallbacks = 1300; + public const int k_iSteamGameServerItemsCallbacks = 1500; + public const int k_iSteamGameCoordinatorCallbacks = 1700; + public const int k_iSteamGameServerStatsCallbacks = 1800; + public const int k_iSteam2AsyncCallbacks = 1900; + public const int k_iSteamGameStatsCallbacks = 2000; + public const int k_iSteamHTTPCallbacks = 2100; + public const int k_iSteamScreenshotsCallbacks = 2300; + // NOTE: 2500-2599 are reserved + public const int k_iSteamStreamLauncherCallbacks = 2600; + public const int k_iSteamControllerCallbacks = 2800; + public const int k_iSteamUGCCallbacks = 3400; + public const int k_iSteamStreamClientCallbacks = 3500; + public const int k_iSteamMusicCallbacks = 4000; + public const int k_iSteamMusicRemoteCallbacks = 4100; + public const int k_iSteamGameNotificationCallbacks = 4400; + public const int k_iSteamHTMLSurfaceCallbacks = 4500; + public const int k_iSteamVideoCallbacks = 4600; + public const int k_iSteamInventoryCallbacks = 4700; + public const int k_ISteamParentalSettingsCallbacks = 5000; + public const int k_iSteamGameSearchCallbacks = 5200; + public const int k_iSteamPartiesCallbacks = 5300; + public const int k_iSteamSTARCallbacks = 5500; + public const int k_iSteamRemotePlayCallbacks = 5700; + public const int k_iSteamChatCallbacks = 5900; + public const int k_iSteamTimelineCallbacks = 6000; + /// Pass to SteamGameServer_Init to indicate that the same UDP port will be used for game traffic + /// UDP queries for server browser pings and LAN discovery. In this case, Steam will not open up a + /// socket to handle server browser queries, and you must use ISteamGameServer::HandleIncomingPacket + /// and ISteamGameServer::GetNextOutgoingPacket to handle packets related to server discovery on your socket. + public const ushort STEAMGAMESERVER_QUERY_PORT_SHARED = 0xffff; + public const int k_unSteamAccountIDMask = -1; + public const int k_unSteamAccountInstanceMask = 0x000FFFFF; + public const int k_unSteamUserDefaultInstance = 1; // fixed instance for all individual users + public const int k_cchGameExtraInfoMax = 64; + public const int k_nSteamEncryptedAppTicketSymmetricKeyLen = 32; + /// Port number(s) assigned to us. Only the first entries will contain + /// nonzero values. Entries corresponding to ports beyond what was + /// allocated for you will be zero. + /// + /// (NOTE: At the time of this writing, the maximum number of ports you may + /// request is 4.) + public const int k_nMaxReturnPorts = 8; + /// Max length of diagnostic error message + public const int k_cchMaxSteamNetworkingErrMsg = 1024; + /// Max length, in bytes (including null terminator) of the reason string + /// when a connection is closed. + public const int k_cchSteamNetworkingMaxConnectionCloseReason = 128; + /// Max length, in bytes (include null terminator) of debug description + /// of a connection. + public const int k_cchSteamNetworkingMaxConnectionDescription = 128; + /// Max length of the app's part of the description + public const int k_cchSteamNetworkingMaxConnectionAppName = 32; + public const int k_nSteamNetworkConnectionInfoFlags_Unauthenticated = 1; // We don't have a certificate for the remote host. + public const int k_nSteamNetworkConnectionInfoFlags_Unencrypted = 2; // Information is being sent out over a wire unencrypted (by this library) + public const int k_nSteamNetworkConnectionInfoFlags_LoopbackBuffers = 4; // Internal loopback buffers. Won't be true for localhost. (You can check the address to determine that.) This implies k_nSteamNetworkConnectionInfoFlags_FastLAN + public const int k_nSteamNetworkConnectionInfoFlags_Fast = 8; // The connection is "fast" and "reliable". Either internal/localhost (check the address to find out), or the peer is on the same LAN. (Probably. It's based on the address and the ping time, this is actually hard to determine unambiguously). + public const int k_nSteamNetworkConnectionInfoFlags_Relayed = 16; // The connection is relayed somehow (SDR or TURN). + public const int k_nSteamNetworkConnectionInfoFlags_DualWifi = 32; // We're taking advantage of dual-wifi multi-path + // + // Network messages + // + /// Max size of a single message that we can SEND. + /// Note: We might be wiling to receive larger messages, + /// and our peer might, too. + public const int k_cbMaxSteamNetworkingSocketsMessageSizeSend = 512 * 1024; + // + // Flags used to set options for message sending + // + // Send the message unreliably. Can be lost. Messages *can* be larger than a + // single MTU (UDP packet), but there is no retransmission, so if any piece + // of the message is lost, the entire message will be dropped. + // + // The sending API does have some knowledge of the underlying connection, so + // if there is no NAT-traversal accomplished or there is a recognized adjustment + // happening on the connection, the packet will be batched until the connection + // is open again. + // + // Migration note: This is not exactly the same as k_EP2PSendUnreliable! You + // probably want k_ESteamNetworkingSendType_UnreliableNoNagle + public const int k_nSteamNetworkingSend_Unreliable = 0; + // Disable Nagle's algorithm. + // By default, Nagle's algorithm is applied to all outbound messages. This means + // that the message will NOT be sent immediately, in case further messages are + // sent soon after you send this, which can be grouped together. Any time there + // is enough buffered data to fill a packet, the packets will be pushed out immediately, + // but partially-full packets not be sent until the Nagle timer expires. See + // ISteamNetworkingSockets::FlushMessagesOnConnection, ISteamNetworkingMessages::FlushMessagesToUser + // + // NOTE: Don't just send every message without Nagle because you want packets to get there + // quicker. Make sure you understand the problem that Nagle is solving before disabling it. + // If you are sending small messages, often many at the same time, then it is very likely that + // it will be more efficient to leave Nagle enabled. A typical proper use of this flag is + // when you are sending what you know will be the last message sent for a while (e.g. the last + // in the server simulation tick to a particular client), and you use this flag to flush all + // messages. + public const int k_nSteamNetworkingSend_NoNagle = 1; + // Send a message unreliably, bypassing Nagle's algorithm for this message and any messages + // currently pending on the Nagle timer. This is equivalent to using k_ESteamNetworkingSend_Unreliable + // and then immediately flushing the messages using ISteamNetworkingSockets::FlushMessagesOnConnection + // or ISteamNetworkingMessages::FlushMessagesToUser. (But using this flag is more efficient since you + // only make one API call.) + public const int k_nSteamNetworkingSend_UnreliableNoNagle = k_nSteamNetworkingSend_Unreliable | k_nSteamNetworkingSend_NoNagle; + // If the message cannot be sent very soon (because the connection is still doing some initial + // handshaking, route negotiations, etc), then just drop it. This is only applicable for unreliable + // messages. Using this flag on reliable messages is invalid. + public const int k_nSteamNetworkingSend_NoDelay = 4; + // Send an unreliable message, but if it cannot be sent relatively quickly, just drop it instead of queuing it. + // This is useful for messages that are not useful if they are excessively delayed, such as voice data. + // NOTE: The Nagle algorithm is not used, and if the message is not dropped, any messages waiting on the + // Nagle timer are immediately flushed. + // + // A message will be dropped under the following circumstances: + // - the connection is not fully connected. (E.g. the "Connecting" or "FindingRoute" states) + // - there is a sufficiently large number of messages queued up already such that the current message + // will not be placed on the wire in the next ~200ms or so. + // + // If a message is dropped for these reasons, k_EResultIgnored will be returned. + public const int k_nSteamNetworkingSend_UnreliableNoDelay = k_nSteamNetworkingSend_Unreliable | k_nSteamNetworkingSend_NoDelay | k_nSteamNetworkingSend_NoNagle; + // Reliable message send. Can send up to k_cbMaxSteamNetworkingSocketsMessageSizeSend bytes in a single message. + // Does fragmentation/re-assembly of messages under the hood, as well as a sliding window for + // efficient sends of large chunks of data. + // + // The Nagle algorithm is used. See notes on k_ESteamNetworkingSendType_Unreliable for more details. + // See k_ESteamNetworkingSendType_ReliableNoNagle, ISteamNetworkingSockets::FlushMessagesOnConnection, + // ISteamNetworkingMessages::FlushMessagesToUser + // + // Migration note: This is NOT the same as k_EP2PSendReliable, it's more like k_EP2PSendReliableWithBuffering + public const int k_nSteamNetworkingSend_Reliable = 8; + // Send a message reliably, but bypass Nagle's algorithm. + // + // Migration note: This is equivalent to k_EP2PSendReliable + public const int k_nSteamNetworkingSend_ReliableNoNagle = k_nSteamNetworkingSend_Reliable | k_nSteamNetworkingSend_NoNagle; + // By default, message sending is queued, and the work of encryption and talking to + // the operating system sockets, etc is done on a service thread. This is usually a + // a performance win when messages are sent from the "main thread". However, if this + // flag is set, and data is ready to be sent immediately (either from this message + // or earlier queued data), then that work will be done in the current thread, before + // the current call returns. If data is not ready to be sent (due to rate limiting + // or Nagle), then this flag has no effect. + // + // This is an advanced flag used to control performance at a very low level. For + // most applications running on modern hardware with more than one CPU core, doing + // the work of sending on a service thread will yield the best performance. Only + // use this flag if you have a really good reason and understand what you are doing. + // Otherwise you will probably just make performance worse. + public const int k_nSteamNetworkingSend_UseCurrentThread = 16; + // When sending a message using ISteamNetworkingMessages, automatically re-establish + // a broken session, without returning k_EResultNoConnection. Without this flag, + // if you attempt to send a message, and the session was proactively closed by the + // peer, or an error occurred that disrupted communications, then you must close the + // session using ISteamNetworkingMessages::CloseSessionWithUser before attempting to + // send another message. (Or you can simply add this flag and retry.) In this way, + // the disruption cannot go unnoticed, and a more clear order of events can be + // ascertained. This is especially important when reliable messages are used, since + // if the connection is disrupted, some of those messages will not have been delivered, + // and it is in general not possible to know which. Although a + // SteamNetworkingMessagesSessionFailed_t callback will be posted when an error occurs + // to notify you that a failure has happened, callbacks are asynchronous, so it is not + // possible to tell exactly when it happened. And because the primary purpose of + // ISteamNetworkingMessages is to be like UDP, there is no notification when a peer closes + // the session. + // + // If you are not using any reliable messages (e.g. you are using ISteamNetworkingMessages + // exactly as a transport replacement for UDP-style datagrams only), you may not need to + // know when an underlying connection fails, and so you may not need this notification. + public const int k_nSteamNetworkingSend_AutoRestartBrokenSession = 32; + /// Max possible length of a ping location, in string format. This is + /// an extremely conservative worst case value which leaves room for future + /// syntax enhancements. Most strings in practice are a lot shorter. + /// If you are storing many of these, you will very likely benefit from + /// using dynamic memory. + public const int k_cchMaxSteamNetworkingPingLocationString = 1024; + /// Special values that are returned by some functions that return a ping. + public const int k_nSteamNetworkingPing_Failed = -1; + public const int k_nSteamNetworkingPing_Unknown = -2; + // Bitmask of types to share + public const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Default = -1; // Special value - use user defaults + public const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Disable = 0; // Do not do any ICE work at all or share any IP addresses with peer + public const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Relay = 1; // Relayed connection via TURN server. + public const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Private = 2; // host addresses that appear to be link-local or RFC1918 addresses + public const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Public = 4; // STUN reflexive addresses, or host address that isn't a "private" address + public const int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_All = 0x7fffffff; + public const int k_uAccountIdInvalid = 0; + public const ulong k_ulPartyBeaconIdInvalid = 0; + public const int INVALID_HTTPREQUEST_HANDLE = 0; + public const int STEAM_INPUT_MAX_COUNT = 16; + public const int STEAM_INPUT_MAX_ANALOG_ACTIONS = 24; + public const int STEAM_INPUT_MAX_DIGITAL_ACTIONS = 256; + public const int STEAM_INPUT_MAX_ORIGINS = 8; + public const int STEAM_INPUT_MAX_ACTIVE_LAYERS = 16; + // When sending an option to a specific controller handle, you can send to all devices via this command + public const ulong STEAM_INPUT_HANDLE_ALL_CONTROLLERS = 0xFFFFFFFFFFFFFFFF; + public const float STEAM_INPUT_MIN_ANALOG_ACTION_DATA = -1.0f; + public const float STEAM_INPUT_MAX_ANALOG_ACTION_DATA = 1.0f; + // maximum number of characters a lobby metadata key can be + public const byte k_nMaxLobbyKeyLength = 255; + public const int k_SteamMusicNameMaxLength = 255; + public const int k_SteamMusicPNGMaxLength = 65535; + // STEAM_API_EXPORTS } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/SteamEnums.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/SteamEnums.cs index 3a648d680..924b4241e 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/SteamEnums.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/SteamEnums.cs @@ -1,3103 +1,3212 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -using Flags = System.FlagsAttribute; - -namespace SwiftlyS2.Shared.SteamAPI { - //----------------------------------------------------------------------------- - // Purpose: set of relationships to other users - //----------------------------------------------------------------------------- - public enum EFriendRelationship : int { - k_EFriendRelationshipNone = 0, - k_EFriendRelationshipBlocked = 1, // this doesn't get stored; the user has just done an Ignore on an friendship invite - k_EFriendRelationshipRequestRecipient = 2, - k_EFriendRelationshipFriend = 3, - k_EFriendRelationshipRequestInitiator = 4, - k_EFriendRelationshipIgnored = 5, // this is stored; the user has explicit blocked this other user from comments/chat/etc - k_EFriendRelationshipIgnoredFriend = 6, - k_EFriendRelationshipSuggested_DEPRECATED = 7, // was used by the original implementation of the facebook linking feature, but now unused. - - // keep this updated - k_EFriendRelationshipMax = 8, - } - - //----------------------------------------------------------------------------- - // Purpose: list of states a friend can be in - //----------------------------------------------------------------------------- - public enum EPersonaState : int { - k_EPersonaStateOffline = 0, // friend is not currently logged on - k_EPersonaStateOnline = 1, // friend is logged on - k_EPersonaStateBusy = 2, // user is on, but busy - k_EPersonaStateAway = 3, // auto-away feature - k_EPersonaStateSnooze = 4, // auto-away for a long time - k_EPersonaStateLookingToTrade = 5, // Online, trading - k_EPersonaStateLookingToPlay = 6, // Online, wanting to play - k_EPersonaStateInvisible = 7, // Online, but appears offline to friends. This status is never published to clients. - k_EPersonaStateMax, - } - - //----------------------------------------------------------------------------- - // Purpose: flags for enumerating friends list, or quickly checking a the relationship between users - //----------------------------------------------------------------------------- - [FlagsAttribute] - public enum EFriendFlags : int { - k_EFriendFlagNone = 0x00, - k_EFriendFlagBlocked = 0x01, - k_EFriendFlagFriendshipRequested = 0x02, - k_EFriendFlagImmediate = 0x04, // "regular" friend - k_EFriendFlagClanMember = 0x08, - k_EFriendFlagOnGameServer = 0x10, - // k_EFriendFlagHasPlayedWith = 0x20, // not currently used - // k_EFriendFlagFriendOfFriend = 0x40, // not currently used - k_EFriendFlagRequestingFriendship = 0x80, - k_EFriendFlagRequestingInfo = 0x100, - k_EFriendFlagIgnored = 0x200, - k_EFriendFlagIgnoredFriend = 0x400, - // k_EFriendFlagSuggested = 0x800, // not used - k_EFriendFlagChatMember = 0x1000, - k_EFriendFlagAll = 0xFFFF, - } - - // These values are passed as parameters to the store - public enum EOverlayToStoreFlag : int { - k_EOverlayToStoreFlag_None = 0, - k_EOverlayToStoreFlag_AddToCart = 1, - k_EOverlayToStoreFlag_AddToCartAndShow = 2, - } - - //----------------------------------------------------------------------------- - // Purpose: Tells Steam where to place the browser window inside the overlay - //----------------------------------------------------------------------------- - public enum EActivateGameOverlayToWebPageMode : int { - k_EActivateGameOverlayToWebPageMode_Default = 0, // Browser will open next to all other windows that the user has open in the overlay. - // The window will remain open, even if the user closes then re-opens the overlay. - - k_EActivateGameOverlayToWebPageMode_Modal = 1 // Browser will be opened in a special overlay configuration which hides all other windows - // that the user has open in the overlay. When the user closes the overlay, the browser window - // will also close. When the user closes the browser window, the overlay will automatically close. - } - - //----------------------------------------------------------------------------- - // Purpose: See GetProfileItemPropertyString and GetProfileItemPropertyUint - //----------------------------------------------------------------------------- - public enum ECommunityProfileItemType : int { - k_ECommunityProfileItemType_AnimatedAvatar = 0, - k_ECommunityProfileItemType_AvatarFrame = 1, - k_ECommunityProfileItemType_ProfileModifier = 2, - k_ECommunityProfileItemType_ProfileBackground = 3, - k_ECommunityProfileItemType_MiniProfileBackground = 4, - } - - public enum ECommunityProfileItemProperty : int { - k_ECommunityProfileItemProperty_ImageSmall = 0, // string - k_ECommunityProfileItemProperty_ImageLarge = 1, // string - k_ECommunityProfileItemProperty_InternalName = 2, // string - k_ECommunityProfileItemProperty_Title = 3, // string - k_ECommunityProfileItemProperty_Description = 4, // string - k_ECommunityProfileItemProperty_AppID = 5, // uint32 - k_ECommunityProfileItemProperty_TypeID = 6, // uint32 - k_ECommunityProfileItemProperty_Class = 7, // uint32 - k_ECommunityProfileItemProperty_MovieWebM = 8, // string - k_ECommunityProfileItemProperty_MovieMP4 = 9, // string - k_ECommunityProfileItemProperty_MovieWebMSmall = 10, // string - k_ECommunityProfileItemProperty_MovieMP4Small = 11, // string - } - - // used in PersonaStateChange_t::m_nChangeFlags to describe what's changed about a user - // these flags describe what the client has learned has changed recently, so on startup you'll see a name, avatar & relationship change for every friend - [FlagsAttribute] - public enum EPersonaChange : int { - k_EPersonaChangeName = 0x0001, - k_EPersonaChangeStatus = 0x0002, - k_EPersonaChangeComeOnline = 0x0004, - k_EPersonaChangeGoneOffline = 0x0008, - k_EPersonaChangeGamePlayed = 0x0010, - k_EPersonaChangeGameServer = 0x0020, - k_EPersonaChangeAvatar = 0x0040, - k_EPersonaChangeJoinedSource= 0x0080, - k_EPersonaChangeLeftSource = 0x0100, - k_EPersonaChangeRelationshipChanged = 0x0200, - k_EPersonaChangeNameFirstSet = 0x0400, - k_EPersonaChangeBroadcast = 0x0800, - k_EPersonaChangeNickname = 0x1000, - k_EPersonaChangeSteamLevel = 0x2000, - k_EPersonaChangeRichPresence = 0x4000, - } - - // list of possible return values from the ISteamGameCoordinator API - public enum EGCResults : int { - k_EGCResultOK = 0, - k_EGCResultNoMessage = 1, // There is no message in the queue - k_EGCResultBufferTooSmall = 2, // The buffer is too small for the requested message - k_EGCResultNotLoggedOn = 3, // The client is not logged onto Steam - k_EGCResultInvalidMessage = 4, // Something was wrong with the message being sent with SendMessage - } - - public enum EHTMLMouseButton : int { - eHTMLMouseButton_Left = 0, - eHTMLMouseButton_Right = 1, - eHTMLMouseButton_Middle = 2, - } - - public enum EHTMLMouseCursor : int { - k_EHTMLMouseCursor_User = 0, - k_EHTMLMouseCursor_None, - k_EHTMLMouseCursor_Arrow, - k_EHTMLMouseCursor_IBeam, - k_EHTMLMouseCursor_Hourglass, - k_EHTMLMouseCursor_WaitArrow, - k_EHTMLMouseCursor_Crosshair, - k_EHTMLMouseCursor_Up, - k_EHTMLMouseCursor_SizeNW, - k_EHTMLMouseCursor_SizeSE, - k_EHTMLMouseCursor_SizeNE, - k_EHTMLMouseCursor_SizeSW, - k_EHTMLMouseCursor_SizeW, - k_EHTMLMouseCursor_SizeE, - k_EHTMLMouseCursor_SizeN, - k_EHTMLMouseCursor_SizeS, - k_EHTMLMouseCursor_SizeWE, - k_EHTMLMouseCursor_SizeNS, - k_EHTMLMouseCursor_SizeAll, - k_EHTMLMouseCursor_No, - k_EHTMLMouseCursor_Hand, - k_EHTMLMouseCursor_Blank, // don't show any custom cursor, just use your default - k_EHTMLMouseCursor_MiddlePan, - k_EHTMLMouseCursor_NorthPan, - k_EHTMLMouseCursor_NorthEastPan, - k_EHTMLMouseCursor_EastPan, - k_EHTMLMouseCursor_SouthEastPan, - k_EHTMLMouseCursor_SouthPan, - k_EHTMLMouseCursor_SouthWestPan, - k_EHTMLMouseCursor_WestPan, - k_EHTMLMouseCursor_NorthWestPan, - k_EHTMLMouseCursor_Alias, - k_EHTMLMouseCursor_Cell, - k_EHTMLMouseCursor_ColResize, - k_EHTMLMouseCursor_CopyCur, - k_EHTMLMouseCursor_VerticalText, - k_EHTMLMouseCursor_RowResize, - k_EHTMLMouseCursor_ZoomIn, - k_EHTMLMouseCursor_ZoomOut, - k_EHTMLMouseCursor_Help, - k_EHTMLMouseCursor_Custom, - k_EHTMLMouseCursor_SizeNWSE, - k_EHTMLMouseCursor_SizeNESW, - - k_EHTMLMouseCursor_last, // custom cursors start from this value and up - } - - [FlagsAttribute] - public enum EHTMLKeyModifiers : int { - k_eHTMLKeyModifier_None = 0, - k_eHTMLKeyModifier_AltDown = 1 << 0, - k_eHTMLKeyModifier_CtrlDown = 1 << 1, - k_eHTMLKeyModifier_ShiftDown = 1 << 2, - } - - public enum EInputSourceMode : int { - k_EInputSourceMode_None, - k_EInputSourceMode_Dpad, - k_EInputSourceMode_Buttons, - k_EInputSourceMode_FourButtons, - k_EInputSourceMode_AbsoluteMouse, - k_EInputSourceMode_RelativeMouse, - k_EInputSourceMode_JoystickMove, - k_EInputSourceMode_JoystickMouse, - k_EInputSourceMode_JoystickCamera, - k_EInputSourceMode_ScrollWheel, - k_EInputSourceMode_Trigger, - k_EInputSourceMode_TouchMenu, - k_EInputSourceMode_MouseJoystick, - k_EInputSourceMode_MouseRegion, - k_EInputSourceMode_RadialMenu, - k_EInputSourceMode_SingleButton, - k_EInputSourceMode_Switches - } - - // Note: Please do not use action origins as a way to identify controller types. There is no - // guarantee that they will be added in a contiguous manner - use GetInputTypeForHandle instead. - // Versions of Steam that add new controller types in the future will extend this enum so if you're - // using a lookup table please check the bounds of any origins returned by Steam. - public enum EInputActionOrigin : int { - // Steam Controller - k_EInputActionOrigin_None, - k_EInputActionOrigin_SteamController_A, - k_EInputActionOrigin_SteamController_B, - k_EInputActionOrigin_SteamController_X, - k_EInputActionOrigin_SteamController_Y, - k_EInputActionOrigin_SteamController_LeftBumper, - k_EInputActionOrigin_SteamController_RightBumper, - k_EInputActionOrigin_SteamController_LeftGrip, - k_EInputActionOrigin_SteamController_RightGrip, - k_EInputActionOrigin_SteamController_Start, - k_EInputActionOrigin_SteamController_Back, - k_EInputActionOrigin_SteamController_LeftPad_Touch, - k_EInputActionOrigin_SteamController_LeftPad_Swipe, - k_EInputActionOrigin_SteamController_LeftPad_Click, - k_EInputActionOrigin_SteamController_LeftPad_DPadNorth, - k_EInputActionOrigin_SteamController_LeftPad_DPadSouth, - k_EInputActionOrigin_SteamController_LeftPad_DPadWest, - k_EInputActionOrigin_SteamController_LeftPad_DPadEast, - k_EInputActionOrigin_SteamController_RightPad_Touch, - k_EInputActionOrigin_SteamController_RightPad_Swipe, - k_EInputActionOrigin_SteamController_RightPad_Click, - k_EInputActionOrigin_SteamController_RightPad_DPadNorth, - k_EInputActionOrigin_SteamController_RightPad_DPadSouth, - k_EInputActionOrigin_SteamController_RightPad_DPadWest, - k_EInputActionOrigin_SteamController_RightPad_DPadEast, - k_EInputActionOrigin_SteamController_LeftTrigger_Pull, - k_EInputActionOrigin_SteamController_LeftTrigger_Click, - k_EInputActionOrigin_SteamController_RightTrigger_Pull, - k_EInputActionOrigin_SteamController_RightTrigger_Click, - k_EInputActionOrigin_SteamController_LeftStick_Move, - k_EInputActionOrigin_SteamController_LeftStick_Click, - k_EInputActionOrigin_SteamController_LeftStick_DPadNorth, - k_EInputActionOrigin_SteamController_LeftStick_DPadSouth, - k_EInputActionOrigin_SteamController_LeftStick_DPadWest, - k_EInputActionOrigin_SteamController_LeftStick_DPadEast, - k_EInputActionOrigin_SteamController_Gyro_Move, - k_EInputActionOrigin_SteamController_Gyro_Pitch, - k_EInputActionOrigin_SteamController_Gyro_Yaw, - k_EInputActionOrigin_SteamController_Gyro_Roll, - k_EInputActionOrigin_SteamController_Reserved0, - k_EInputActionOrigin_SteamController_Reserved1, - k_EInputActionOrigin_SteamController_Reserved2, - k_EInputActionOrigin_SteamController_Reserved3, - k_EInputActionOrigin_SteamController_Reserved4, - k_EInputActionOrigin_SteamController_Reserved5, - k_EInputActionOrigin_SteamController_Reserved6, - k_EInputActionOrigin_SteamController_Reserved7, - k_EInputActionOrigin_SteamController_Reserved8, - k_EInputActionOrigin_SteamController_Reserved9, - k_EInputActionOrigin_SteamController_Reserved10, - - // PS4 Dual Shock - k_EInputActionOrigin_PS4_X, - k_EInputActionOrigin_PS4_Circle, - k_EInputActionOrigin_PS4_Triangle, - k_EInputActionOrigin_PS4_Square, - k_EInputActionOrigin_PS4_LeftBumper, - k_EInputActionOrigin_PS4_RightBumper, - k_EInputActionOrigin_PS4_Options, //Start - k_EInputActionOrigin_PS4_Share, //Back - k_EInputActionOrigin_PS4_LeftPad_Touch, - k_EInputActionOrigin_PS4_LeftPad_Swipe, - k_EInputActionOrigin_PS4_LeftPad_Click, - k_EInputActionOrigin_PS4_LeftPad_DPadNorth, - k_EInputActionOrigin_PS4_LeftPad_DPadSouth, - k_EInputActionOrigin_PS4_LeftPad_DPadWest, - k_EInputActionOrigin_PS4_LeftPad_DPadEast, - k_EInputActionOrigin_PS4_RightPad_Touch, - k_EInputActionOrigin_PS4_RightPad_Swipe, - k_EInputActionOrigin_PS4_RightPad_Click, - k_EInputActionOrigin_PS4_RightPad_DPadNorth, - k_EInputActionOrigin_PS4_RightPad_DPadSouth, - k_EInputActionOrigin_PS4_RightPad_DPadWest, - k_EInputActionOrigin_PS4_RightPad_DPadEast, - k_EInputActionOrigin_PS4_CenterPad_Touch, - k_EInputActionOrigin_PS4_CenterPad_Swipe, - k_EInputActionOrigin_PS4_CenterPad_Click, - k_EInputActionOrigin_PS4_CenterPad_DPadNorth, - k_EInputActionOrigin_PS4_CenterPad_DPadSouth, - k_EInputActionOrigin_PS4_CenterPad_DPadWest, - k_EInputActionOrigin_PS4_CenterPad_DPadEast, - k_EInputActionOrigin_PS4_LeftTrigger_Pull, - k_EInputActionOrigin_PS4_LeftTrigger_Click, - k_EInputActionOrigin_PS4_RightTrigger_Pull, - k_EInputActionOrigin_PS4_RightTrigger_Click, - k_EInputActionOrigin_PS4_LeftStick_Move, - k_EInputActionOrigin_PS4_LeftStick_Click, - k_EInputActionOrigin_PS4_LeftStick_DPadNorth, - k_EInputActionOrigin_PS4_LeftStick_DPadSouth, - k_EInputActionOrigin_PS4_LeftStick_DPadWest, - k_EInputActionOrigin_PS4_LeftStick_DPadEast, - k_EInputActionOrigin_PS4_RightStick_Move, - k_EInputActionOrigin_PS4_RightStick_Click, - k_EInputActionOrigin_PS4_RightStick_DPadNorth, - k_EInputActionOrigin_PS4_RightStick_DPadSouth, - k_EInputActionOrigin_PS4_RightStick_DPadWest, - k_EInputActionOrigin_PS4_RightStick_DPadEast, - k_EInputActionOrigin_PS4_DPad_North, - k_EInputActionOrigin_PS4_DPad_South, - k_EInputActionOrigin_PS4_DPad_West, - k_EInputActionOrigin_PS4_DPad_East, - k_EInputActionOrigin_PS4_Gyro_Move, - k_EInputActionOrigin_PS4_Gyro_Pitch, - k_EInputActionOrigin_PS4_Gyro_Yaw, - k_EInputActionOrigin_PS4_Gyro_Roll, - k_EInputActionOrigin_PS4_DPad_Move, - k_EInputActionOrigin_PS4_Reserved1, - k_EInputActionOrigin_PS4_Reserved2, - k_EInputActionOrigin_PS4_Reserved3, - k_EInputActionOrigin_PS4_Reserved4, - k_EInputActionOrigin_PS4_Reserved5, - k_EInputActionOrigin_PS4_Reserved6, - k_EInputActionOrigin_PS4_Reserved7, - k_EInputActionOrigin_PS4_Reserved8, - k_EInputActionOrigin_PS4_Reserved9, - k_EInputActionOrigin_PS4_Reserved10, - - // XBox One - k_EInputActionOrigin_XBoxOne_A, - k_EInputActionOrigin_XBoxOne_B, - k_EInputActionOrigin_XBoxOne_X, - k_EInputActionOrigin_XBoxOne_Y, - k_EInputActionOrigin_XBoxOne_LeftBumper, - k_EInputActionOrigin_XBoxOne_RightBumper, - k_EInputActionOrigin_XBoxOne_Menu, //Start - k_EInputActionOrigin_XBoxOne_View, //Back - k_EInputActionOrigin_XBoxOne_LeftTrigger_Pull, - k_EInputActionOrigin_XBoxOne_LeftTrigger_Click, - k_EInputActionOrigin_XBoxOne_RightTrigger_Pull, - k_EInputActionOrigin_XBoxOne_RightTrigger_Click, - k_EInputActionOrigin_XBoxOne_LeftStick_Move, - k_EInputActionOrigin_XBoxOne_LeftStick_Click, - k_EInputActionOrigin_XBoxOne_LeftStick_DPadNorth, - k_EInputActionOrigin_XBoxOne_LeftStick_DPadSouth, - k_EInputActionOrigin_XBoxOne_LeftStick_DPadWest, - k_EInputActionOrigin_XBoxOne_LeftStick_DPadEast, - k_EInputActionOrigin_XBoxOne_RightStick_Move, - k_EInputActionOrigin_XBoxOne_RightStick_Click, - k_EInputActionOrigin_XBoxOne_RightStick_DPadNorth, - k_EInputActionOrigin_XBoxOne_RightStick_DPadSouth, - k_EInputActionOrigin_XBoxOne_RightStick_DPadWest, - k_EInputActionOrigin_XBoxOne_RightStick_DPadEast, - k_EInputActionOrigin_XBoxOne_DPad_North, - k_EInputActionOrigin_XBoxOne_DPad_South, - k_EInputActionOrigin_XBoxOne_DPad_West, - k_EInputActionOrigin_XBoxOne_DPad_East, - k_EInputActionOrigin_XBoxOne_DPad_Move, - k_EInputActionOrigin_XBoxOne_LeftGrip_Lower, - k_EInputActionOrigin_XBoxOne_LeftGrip_Upper, - k_EInputActionOrigin_XBoxOne_RightGrip_Lower, - k_EInputActionOrigin_XBoxOne_RightGrip_Upper, - k_EInputActionOrigin_XBoxOne_Share, // Xbox Series X controllers only - k_EInputActionOrigin_XBoxOne_Reserved6, - k_EInputActionOrigin_XBoxOne_Reserved7, - k_EInputActionOrigin_XBoxOne_Reserved8, - k_EInputActionOrigin_XBoxOne_Reserved9, - k_EInputActionOrigin_XBoxOne_Reserved10, - - // XBox 360 - k_EInputActionOrigin_XBox360_A, - k_EInputActionOrigin_XBox360_B, - k_EInputActionOrigin_XBox360_X, - k_EInputActionOrigin_XBox360_Y, - k_EInputActionOrigin_XBox360_LeftBumper, - k_EInputActionOrigin_XBox360_RightBumper, - k_EInputActionOrigin_XBox360_Start, //Start - k_EInputActionOrigin_XBox360_Back, //Back - k_EInputActionOrigin_XBox360_LeftTrigger_Pull, - k_EInputActionOrigin_XBox360_LeftTrigger_Click, - k_EInputActionOrigin_XBox360_RightTrigger_Pull, - k_EInputActionOrigin_XBox360_RightTrigger_Click, - k_EInputActionOrigin_XBox360_LeftStick_Move, - k_EInputActionOrigin_XBox360_LeftStick_Click, - k_EInputActionOrigin_XBox360_LeftStick_DPadNorth, - k_EInputActionOrigin_XBox360_LeftStick_DPadSouth, - k_EInputActionOrigin_XBox360_LeftStick_DPadWest, - k_EInputActionOrigin_XBox360_LeftStick_DPadEast, - k_EInputActionOrigin_XBox360_RightStick_Move, - k_EInputActionOrigin_XBox360_RightStick_Click, - k_EInputActionOrigin_XBox360_RightStick_DPadNorth, - k_EInputActionOrigin_XBox360_RightStick_DPadSouth, - k_EInputActionOrigin_XBox360_RightStick_DPadWest, - k_EInputActionOrigin_XBox360_RightStick_DPadEast, - k_EInputActionOrigin_XBox360_DPad_North, - k_EInputActionOrigin_XBox360_DPad_South, - k_EInputActionOrigin_XBox360_DPad_West, - k_EInputActionOrigin_XBox360_DPad_East, - k_EInputActionOrigin_XBox360_DPad_Move, - k_EInputActionOrigin_XBox360_Reserved1, - k_EInputActionOrigin_XBox360_Reserved2, - k_EInputActionOrigin_XBox360_Reserved3, - k_EInputActionOrigin_XBox360_Reserved4, - k_EInputActionOrigin_XBox360_Reserved5, - k_EInputActionOrigin_XBox360_Reserved6, - k_EInputActionOrigin_XBox360_Reserved7, - k_EInputActionOrigin_XBox360_Reserved8, - k_EInputActionOrigin_XBox360_Reserved9, - k_EInputActionOrigin_XBox360_Reserved10, - - - // Switch - Pro or Joycons used as a single input device. - // This does not apply to a single joycon - k_EInputActionOrigin_Switch_A, - k_EInputActionOrigin_Switch_B, - k_EInputActionOrigin_Switch_X, - k_EInputActionOrigin_Switch_Y, - k_EInputActionOrigin_Switch_LeftBumper, - k_EInputActionOrigin_Switch_RightBumper, - k_EInputActionOrigin_Switch_Plus, //Start - k_EInputActionOrigin_Switch_Minus, //Back - k_EInputActionOrigin_Switch_Capture, - k_EInputActionOrigin_Switch_LeftTrigger_Pull, - k_EInputActionOrigin_Switch_LeftTrigger_Click, - k_EInputActionOrigin_Switch_RightTrigger_Pull, - k_EInputActionOrigin_Switch_RightTrigger_Click, - k_EInputActionOrigin_Switch_LeftStick_Move, - k_EInputActionOrigin_Switch_LeftStick_Click, - k_EInputActionOrigin_Switch_LeftStick_DPadNorth, - k_EInputActionOrigin_Switch_LeftStick_DPadSouth, - k_EInputActionOrigin_Switch_LeftStick_DPadWest, - k_EInputActionOrigin_Switch_LeftStick_DPadEast, - k_EInputActionOrigin_Switch_RightStick_Move, - k_EInputActionOrigin_Switch_RightStick_Click, - k_EInputActionOrigin_Switch_RightStick_DPadNorth, - k_EInputActionOrigin_Switch_RightStick_DPadSouth, - k_EInputActionOrigin_Switch_RightStick_DPadWest, - k_EInputActionOrigin_Switch_RightStick_DPadEast, - k_EInputActionOrigin_Switch_DPad_North, - k_EInputActionOrigin_Switch_DPad_South, - k_EInputActionOrigin_Switch_DPad_West, - k_EInputActionOrigin_Switch_DPad_East, - k_EInputActionOrigin_Switch_ProGyro_Move, // Primary Gyro in Pro Controller, or Right JoyCon - k_EInputActionOrigin_Switch_ProGyro_Pitch, // Primary Gyro in Pro Controller, or Right JoyCon - k_EInputActionOrigin_Switch_ProGyro_Yaw, // Primary Gyro in Pro Controller, or Right JoyCon - k_EInputActionOrigin_Switch_ProGyro_Roll, // Primary Gyro in Pro Controller, or Right JoyCon - k_EInputActionOrigin_Switch_DPad_Move, - k_EInputActionOrigin_Switch_Reserved1, - k_EInputActionOrigin_Switch_Reserved2, - k_EInputActionOrigin_Switch_Reserved3, - k_EInputActionOrigin_Switch_Reserved4, - k_EInputActionOrigin_Switch_Reserved5, - k_EInputActionOrigin_Switch_Reserved6, - k_EInputActionOrigin_Switch_Reserved7, - k_EInputActionOrigin_Switch_Reserved8, - k_EInputActionOrigin_Switch_Reserved9, - k_EInputActionOrigin_Switch_Reserved10, - - // Switch JoyCon Specific - k_EInputActionOrigin_Switch_RightGyro_Move, // Right JoyCon Gyro generally should correspond to Pro's single gyro - k_EInputActionOrigin_Switch_RightGyro_Pitch, // Right JoyCon Gyro generally should correspond to Pro's single gyro - k_EInputActionOrigin_Switch_RightGyro_Yaw, // Right JoyCon Gyro generally should correspond to Pro's single gyro - k_EInputActionOrigin_Switch_RightGyro_Roll, // Right JoyCon Gyro generally should correspond to Pro's single gyro - k_EInputActionOrigin_Switch_LeftGyro_Move, - k_EInputActionOrigin_Switch_LeftGyro_Pitch, - k_EInputActionOrigin_Switch_LeftGyro_Yaw, - k_EInputActionOrigin_Switch_LeftGyro_Roll, - k_EInputActionOrigin_Switch_LeftGrip_Lower, // Left JoyCon SR Button - k_EInputActionOrigin_Switch_LeftGrip_Upper, // Left JoyCon SL Button - k_EInputActionOrigin_Switch_RightGrip_Lower, // Right JoyCon SL Button - k_EInputActionOrigin_Switch_RightGrip_Upper, // Right JoyCon SR Button - k_EInputActionOrigin_Switch_JoyConButton_N, // With a Horizontal JoyCon this will be Y or what would be Dpad Right when vertical - k_EInputActionOrigin_Switch_JoyConButton_E, // X - k_EInputActionOrigin_Switch_JoyConButton_S, // A - k_EInputActionOrigin_Switch_JoyConButton_W, // B - k_EInputActionOrigin_Switch_Reserved15, - k_EInputActionOrigin_Switch_Reserved16, - k_EInputActionOrigin_Switch_Reserved17, - k_EInputActionOrigin_Switch_Reserved18, - k_EInputActionOrigin_Switch_Reserved19, - k_EInputActionOrigin_Switch_Reserved20, - - // Added in SDK 1.51 - k_EInputActionOrigin_PS5_X, - k_EInputActionOrigin_PS5_Circle, - k_EInputActionOrigin_PS5_Triangle, - k_EInputActionOrigin_PS5_Square, - k_EInputActionOrigin_PS5_LeftBumper, - k_EInputActionOrigin_PS5_RightBumper, - k_EInputActionOrigin_PS5_Option, //Start - k_EInputActionOrigin_PS5_Create, //Back - k_EInputActionOrigin_PS5_Mute, - k_EInputActionOrigin_PS5_LeftPad_Touch, - k_EInputActionOrigin_PS5_LeftPad_Swipe, - k_EInputActionOrigin_PS5_LeftPad_Click, - k_EInputActionOrigin_PS5_LeftPad_DPadNorth, - k_EInputActionOrigin_PS5_LeftPad_DPadSouth, - k_EInputActionOrigin_PS5_LeftPad_DPadWest, - k_EInputActionOrigin_PS5_LeftPad_DPadEast, - k_EInputActionOrigin_PS5_RightPad_Touch, - k_EInputActionOrigin_PS5_RightPad_Swipe, - k_EInputActionOrigin_PS5_RightPad_Click, - k_EInputActionOrigin_PS5_RightPad_DPadNorth, - k_EInputActionOrigin_PS5_RightPad_DPadSouth, - k_EInputActionOrigin_PS5_RightPad_DPadWest, - k_EInputActionOrigin_PS5_RightPad_DPadEast, - k_EInputActionOrigin_PS5_CenterPad_Touch, - k_EInputActionOrigin_PS5_CenterPad_Swipe, - k_EInputActionOrigin_PS5_CenterPad_Click, - k_EInputActionOrigin_PS5_CenterPad_DPadNorth, - k_EInputActionOrigin_PS5_CenterPad_DPadSouth, - k_EInputActionOrigin_PS5_CenterPad_DPadWest, - k_EInputActionOrigin_PS5_CenterPad_DPadEast, - k_EInputActionOrigin_PS5_LeftTrigger_Pull, - k_EInputActionOrigin_PS5_LeftTrigger_Click, - k_EInputActionOrigin_PS5_RightTrigger_Pull, - k_EInputActionOrigin_PS5_RightTrigger_Click, - k_EInputActionOrigin_PS5_LeftStick_Move, - k_EInputActionOrigin_PS5_LeftStick_Click, - k_EInputActionOrigin_PS5_LeftStick_DPadNorth, - k_EInputActionOrigin_PS5_LeftStick_DPadSouth, - k_EInputActionOrigin_PS5_LeftStick_DPadWest, - k_EInputActionOrigin_PS5_LeftStick_DPadEast, - k_EInputActionOrigin_PS5_RightStick_Move, - k_EInputActionOrigin_PS5_RightStick_Click, - k_EInputActionOrigin_PS5_RightStick_DPadNorth, - k_EInputActionOrigin_PS5_RightStick_DPadSouth, - k_EInputActionOrigin_PS5_RightStick_DPadWest, - k_EInputActionOrigin_PS5_RightStick_DPadEast, - k_EInputActionOrigin_PS5_DPad_North, - k_EInputActionOrigin_PS5_DPad_South, - k_EInputActionOrigin_PS5_DPad_West, - k_EInputActionOrigin_PS5_DPad_East, - k_EInputActionOrigin_PS5_Gyro_Move, - k_EInputActionOrigin_PS5_Gyro_Pitch, - k_EInputActionOrigin_PS5_Gyro_Yaw, - k_EInputActionOrigin_PS5_Gyro_Roll, - k_EInputActionOrigin_PS5_DPad_Move, - k_EInputActionOrigin_PS5_LeftGrip, - k_EInputActionOrigin_PS5_RightGrip, - k_EInputActionOrigin_PS5_LeftFn, - k_EInputActionOrigin_PS5_RightFn, - k_EInputActionOrigin_PS5_Reserved5, - k_EInputActionOrigin_PS5_Reserved6, - k_EInputActionOrigin_PS5_Reserved7, - k_EInputActionOrigin_PS5_Reserved8, - k_EInputActionOrigin_PS5_Reserved9, - k_EInputActionOrigin_PS5_Reserved10, - k_EInputActionOrigin_PS5_Reserved11, - k_EInputActionOrigin_PS5_Reserved12, - k_EInputActionOrigin_PS5_Reserved13, - k_EInputActionOrigin_PS5_Reserved14, - k_EInputActionOrigin_PS5_Reserved15, - k_EInputActionOrigin_PS5_Reserved16, - k_EInputActionOrigin_PS5_Reserved17, - k_EInputActionOrigin_PS5_Reserved18, - k_EInputActionOrigin_PS5_Reserved19, - k_EInputActionOrigin_PS5_Reserved20, - - // Added in SDK 1.53 - k_EInputActionOrigin_SteamDeck_A, - k_EInputActionOrigin_SteamDeck_B, - k_EInputActionOrigin_SteamDeck_X, - k_EInputActionOrigin_SteamDeck_Y, - k_EInputActionOrigin_SteamDeck_L1, - k_EInputActionOrigin_SteamDeck_R1, - k_EInputActionOrigin_SteamDeck_Menu, - k_EInputActionOrigin_SteamDeck_View, - k_EInputActionOrigin_SteamDeck_LeftPad_Touch, - k_EInputActionOrigin_SteamDeck_LeftPad_Swipe, - k_EInputActionOrigin_SteamDeck_LeftPad_Click, - k_EInputActionOrigin_SteamDeck_LeftPad_DPadNorth, - k_EInputActionOrigin_SteamDeck_LeftPad_DPadSouth, - k_EInputActionOrigin_SteamDeck_LeftPad_DPadWest, - k_EInputActionOrigin_SteamDeck_LeftPad_DPadEast, - k_EInputActionOrigin_SteamDeck_RightPad_Touch, - k_EInputActionOrigin_SteamDeck_RightPad_Swipe, - k_EInputActionOrigin_SteamDeck_RightPad_Click, - k_EInputActionOrigin_SteamDeck_RightPad_DPadNorth, - k_EInputActionOrigin_SteamDeck_RightPad_DPadSouth, - k_EInputActionOrigin_SteamDeck_RightPad_DPadWest, - k_EInputActionOrigin_SteamDeck_RightPad_DPadEast, - k_EInputActionOrigin_SteamDeck_L2_SoftPull, - k_EInputActionOrigin_SteamDeck_L2, - k_EInputActionOrigin_SteamDeck_R2_SoftPull, - k_EInputActionOrigin_SteamDeck_R2, - k_EInputActionOrigin_SteamDeck_LeftStick_Move, - k_EInputActionOrigin_SteamDeck_L3, - k_EInputActionOrigin_SteamDeck_LeftStick_DPadNorth, - k_EInputActionOrigin_SteamDeck_LeftStick_DPadSouth, - k_EInputActionOrigin_SteamDeck_LeftStick_DPadWest, - k_EInputActionOrigin_SteamDeck_LeftStick_DPadEast, - k_EInputActionOrigin_SteamDeck_LeftStick_Touch, - k_EInputActionOrigin_SteamDeck_RightStick_Move, - k_EInputActionOrigin_SteamDeck_R3, - k_EInputActionOrigin_SteamDeck_RightStick_DPadNorth, - k_EInputActionOrigin_SteamDeck_RightStick_DPadSouth, - k_EInputActionOrigin_SteamDeck_RightStick_DPadWest, - k_EInputActionOrigin_SteamDeck_RightStick_DPadEast, - k_EInputActionOrigin_SteamDeck_RightStick_Touch, - k_EInputActionOrigin_SteamDeck_L4, - k_EInputActionOrigin_SteamDeck_R4, - k_EInputActionOrigin_SteamDeck_L5, - k_EInputActionOrigin_SteamDeck_R5, - k_EInputActionOrigin_SteamDeck_DPad_Move, - k_EInputActionOrigin_SteamDeck_DPad_North, - k_EInputActionOrigin_SteamDeck_DPad_South, - k_EInputActionOrigin_SteamDeck_DPad_West, - k_EInputActionOrigin_SteamDeck_DPad_East, - k_EInputActionOrigin_SteamDeck_Gyro_Move, - k_EInputActionOrigin_SteamDeck_Gyro_Pitch, - k_EInputActionOrigin_SteamDeck_Gyro_Yaw, - k_EInputActionOrigin_SteamDeck_Gyro_Roll, - k_EInputActionOrigin_SteamDeck_Reserved1, - k_EInputActionOrigin_SteamDeck_Reserved2, - k_EInputActionOrigin_SteamDeck_Reserved3, - k_EInputActionOrigin_SteamDeck_Reserved4, - k_EInputActionOrigin_SteamDeck_Reserved5, - k_EInputActionOrigin_SteamDeck_Reserved6, - k_EInputActionOrigin_SteamDeck_Reserved7, - k_EInputActionOrigin_SteamDeck_Reserved8, - k_EInputActionOrigin_SteamDeck_Reserved9, - k_EInputActionOrigin_SteamDeck_Reserved10, - k_EInputActionOrigin_SteamDeck_Reserved11, - k_EInputActionOrigin_SteamDeck_Reserved12, - k_EInputActionOrigin_SteamDeck_Reserved13, - k_EInputActionOrigin_SteamDeck_Reserved14, - k_EInputActionOrigin_SteamDeck_Reserved15, - k_EInputActionOrigin_SteamDeck_Reserved16, - k_EInputActionOrigin_SteamDeck_Reserved17, - k_EInputActionOrigin_SteamDeck_Reserved18, - k_EInputActionOrigin_SteamDeck_Reserved19, - k_EInputActionOrigin_SteamDeck_Reserved20, - - k_EInputActionOrigin_Horipad_M1, - k_EInputActionOrigin_Horipad_M2, - k_EInputActionOrigin_Horipad_L4, - k_EInputActionOrigin_Horipad_R4, - - k_EInputActionOrigin_Count, // If Steam has added support for new controllers origins will go here. - k_EInputActionOrigin_MaximumPossibleValue = 32767, // Origins are currently a maximum of 16 bits. - } - - public enum EXboxOrigin : int { - k_EXboxOrigin_A, - k_EXboxOrigin_B, - k_EXboxOrigin_X, - k_EXboxOrigin_Y, - k_EXboxOrigin_LeftBumper, - k_EXboxOrigin_RightBumper, - k_EXboxOrigin_Menu, //Start - k_EXboxOrigin_View, //Back - k_EXboxOrigin_LeftTrigger_Pull, - k_EXboxOrigin_LeftTrigger_Click, - k_EXboxOrigin_RightTrigger_Pull, - k_EXboxOrigin_RightTrigger_Click, - k_EXboxOrigin_LeftStick_Move, - k_EXboxOrigin_LeftStick_Click, - k_EXboxOrigin_LeftStick_DPadNorth, - k_EXboxOrigin_LeftStick_DPadSouth, - k_EXboxOrigin_LeftStick_DPadWest, - k_EXboxOrigin_LeftStick_DPadEast, - k_EXboxOrigin_RightStick_Move, - k_EXboxOrigin_RightStick_Click, - k_EXboxOrigin_RightStick_DPadNorth, - k_EXboxOrigin_RightStick_DPadSouth, - k_EXboxOrigin_RightStick_DPadWest, - k_EXboxOrigin_RightStick_DPadEast, - k_EXboxOrigin_DPad_North, - k_EXboxOrigin_DPad_South, - k_EXboxOrigin_DPad_West, - k_EXboxOrigin_DPad_East, - k_EXboxOrigin_Count, - } - - public enum ESteamControllerPad : int { - k_ESteamControllerPad_Left, - k_ESteamControllerPad_Right - } - - [FlagsAttribute] - public enum EControllerHapticLocation : int { - k_EControllerHapticLocation_Left = ( 1 << ESteamControllerPad.k_ESteamControllerPad_Left ), - k_EControllerHapticLocation_Right = ( 1 << ESteamControllerPad.k_ESteamControllerPad_Right ), - k_EControllerHapticLocation_Both = ( 1 << ESteamControllerPad.k_ESteamControllerPad_Left | 1 << ESteamControllerPad.k_ESteamControllerPad_Right ), - } - - public enum EControllerHapticType : int { - k_EControllerHapticType_Off, - k_EControllerHapticType_Tick, - k_EControllerHapticType_Click, - } - - public enum ESteamInputType : int { - k_ESteamInputType_Unknown, - k_ESteamInputType_SteamController, - k_ESteamInputType_XBox360Controller, - k_ESteamInputType_XBoxOneController, - k_ESteamInputType_GenericGamepad, // DirectInput controllers - k_ESteamInputType_PS4Controller, - k_ESteamInputType_AppleMFiController, // Unused - k_ESteamInputType_AndroidController, // Unused - k_ESteamInputType_SwitchJoyConPair, // Unused - k_ESteamInputType_SwitchJoyConSingle, // Unused - k_ESteamInputType_SwitchProController, - k_ESteamInputType_MobileTouch, // Steam Link App On-screen Virtual Controller - k_ESteamInputType_PS3Controller, // Currently uses PS4 Origins - k_ESteamInputType_PS5Controller, // Added in SDK 151 - k_ESteamInputType_SteamDeckController, // Added in SDK 153 - k_ESteamInputType_Count, - k_ESteamInputType_MaximumPossibleValue = 255, - } - - // Individual values are used by the GetSessionInputConfigurationSettings bitmask - public enum ESteamInputConfigurationEnableType : int { - k_ESteamInputConfigurationEnableType_None = 0x0000, - k_ESteamInputConfigurationEnableType_Playstation = 0x0001, - k_ESteamInputConfigurationEnableType_Xbox = 0x0002, - k_ESteamInputConfigurationEnableType_Generic = 0x0004, - k_ESteamInputConfigurationEnableType_Switch = 0x0008, - } - - // These values are passed into SetLEDColor - public enum ESteamInputLEDFlag : int { - k_ESteamInputLEDFlag_SetColor, - // Restore the LED color to the user's preference setting as set in the controller personalization menu. - // This also happens automatically on exit of your game. - k_ESteamInputLEDFlag_RestoreUserDefault - } - - // These values are passed into GetGlyphPNGForActionOrigin - public enum ESteamInputGlyphSize : int { - k_ESteamInputGlyphSize_Small, // 32x32 pixels - k_ESteamInputGlyphSize_Medium, // 128x128 pixels - k_ESteamInputGlyphSize_Large, // 256x256 pixels - k_ESteamInputGlyphSize_Count, - } - - public enum ESteamInputGlyphStyle : int { - // Base-styles - cannot mix - ESteamInputGlyphStyle_Knockout = 0x0, // Face buttons will have colored labels/outlines on a knocked out background - // Rest of inputs will have white detail/borders on a knocked out background - ESteamInputGlyphStyle_Light = 0x1, // Black detail/borders on a white background - ESteamInputGlyphStyle_Dark = 0x2, // White detail/borders on a black background - - // Modifiers - // Default ABXY/PS equivalent glyphs have a solid fill w/ color matching the physical buttons on the device - ESteamInputGlyphStyle_NeutralColorABXY = 0x10, // ABXY Buttons will match the base style color instead of their normal associated color - ESteamInputGlyphStyle_SolidABXY = 0x20, // ABXY Buttons will have a solid fill - } - - public enum ESteamInputActionEventType : int { - ESteamInputActionEventType_DigitalAction, - ESteamInputActionEventType_AnalogAction, - } - - [FlagsAttribute] - public enum ESteamItemFlags : int { - // Item status flags - these flags are permanently attached to specific item instances - k_ESteamItemNoTrade = 1 << 0, // This item is account-locked and cannot be traded or given away. - - // Action confirmation flags - these flags are set one time only, as part of a result set - k_ESteamItemRemoved = 1 << 8, // The item has been destroyed, traded away, expired, or otherwise invalidated - k_ESteamItemConsumed = 1 << 9, // The item quantity has been decreased by 1 via ConsumeItem API. - - // All other flag bits are currently reserved for internal Steam use at this time. - // Do not assume anything about the state of other flags which are not defined here. - } - - // lobby type description - public enum ELobbyType : int { - k_ELobbyTypePrivate = 0, // only way to join the lobby is to invite to someone else - k_ELobbyTypeFriendsOnly = 1, // shows for friends or invitees, but not in lobby list - k_ELobbyTypePublic = 2, // visible for friends and in lobby list - k_ELobbyTypeInvisible = 3, // returned by search, but not visible to other friends - // useful if you want a user in two lobbies, for example matching groups together - // a user can be in only one regular lobby, and up to two invisible lobbies - k_ELobbyTypePrivateUnique = 4, // private, unique and does not delete when empty - only one of these may exist per unique keypair set - // can only create from webapi - } - - // lobby search filter tools - public enum ELobbyComparison : int { - k_ELobbyComparisonEqualToOrLessThan = -2, - k_ELobbyComparisonLessThan = -1, - k_ELobbyComparisonEqual = 0, - k_ELobbyComparisonGreaterThan = 1, - k_ELobbyComparisonEqualToOrGreaterThan = 2, - k_ELobbyComparisonNotEqual = 3, - } - - // lobby search distance. Lobby results are sorted from closest to farthest. - public enum ELobbyDistanceFilter : int { - k_ELobbyDistanceFilterClose, // only lobbies in the same immediate region will be returned - k_ELobbyDistanceFilterDefault, // only lobbies in the same region or near by regions - k_ELobbyDistanceFilterFar, // for games that don't have many latency requirements, will return lobbies about half-way around the globe - k_ELobbyDistanceFilterWorldwide, // no filtering, will match lobbies as far as India to NY (not recommended, expect multiple seconds of latency between the clients) - } - - //----------------------------------------------------------------------------- - // Purpose: Used in ChatInfo messages - fields specific to a chat member - must fit in a uint32 - //----------------------------------------------------------------------------- - [FlagsAttribute] - public enum EChatMemberStateChange : int { - // Specific to joining / leaving the chatroom - k_EChatMemberStateChangeEntered = 0x0001, // This user has joined or is joining the chat room - k_EChatMemberStateChangeLeft = 0x0002, // This user has left or is leaving the chat room - k_EChatMemberStateChangeDisconnected = 0x0004, // User disconnected without leaving the chat first - k_EChatMemberStateChangeKicked = 0x0008, // User kicked - k_EChatMemberStateChangeBanned = 0x0010, // User kicked and banned - } - - //----------------------------------------------------------------------------- - // Purpose: Functions for quickly creating a Party with friends or acquaintances, - // EG from chat rooms. - //----------------------------------------------------------------------------- - public enum ESteamPartyBeaconLocationType : int { - k_ESteamPartyBeaconLocationType_Invalid = 0, - k_ESteamPartyBeaconLocationType_ChatGroup = 1, - - k_ESteamPartyBeaconLocationType_Max, - } - - public enum ESteamPartyBeaconLocationData : int { - k_ESteamPartyBeaconLocationDataInvalid = 0, - k_ESteamPartyBeaconLocationDataName = 1, - k_ESteamPartyBeaconLocationDataIconURLSmall = 2, - k_ESteamPartyBeaconLocationDataIconURLMedium = 3, - k_ESteamPartyBeaconLocationDataIconURLLarge = 4, - } - - public enum PlayerAcceptState_t : int { - k_EStateUnknown = 0, - k_EStatePlayerAccepted = 1, - k_EStatePlayerDeclined = 2, - } - - //----------------------------------------------------------------------------- - // Purpose: - //----------------------------------------------------------------------------- - public enum AudioPlayback_Status : int { - AudioPlayback_Undefined = 0, - AudioPlayback_Playing = 1, - AudioPlayback_Paused = 2, - AudioPlayback_Idle = 3 - } - - // list of possible errors returned by SendP2PPacket() API - // these will be posted in the P2PSessionConnectFail_t callback - public enum EP2PSessionError : int { - k_EP2PSessionErrorNone = 0, - k_EP2PSessionErrorNoRightsToApp = 2, // local user doesn't own the app that is running - k_EP2PSessionErrorTimeout = 4, // target isn't responding, perhaps not calling AcceptP2PSessionWithUser() - // corporate firewalls can also block this (NAT traversal is not firewall traversal) - // make sure that UDP ports 3478, 4379, and 4380 are open in an outbound direction - - // The following error codes were removed and will never be sent. - // For privacy reasons, there is no reply if the user is offline or playing another game. - k_EP2PSessionErrorNotRunningApp_DELETED = 1, - k_EP2PSessionErrorDestinationNotLoggedIn_DELETED = 3, - - k_EP2PSessionErrorMax = 5 - } - - // SendP2PPacket() send types - // Typically k_EP2PSendUnreliable is what you want for UDP-like packets, k_EP2PSendReliable for TCP-like packets - public enum EP2PSend : int { - // Basic UDP send. Packets can't be bigger than 1200 bytes (your typical MTU size). Can be lost, or arrive out of order (rare). - // The sending API does have some knowledge of the underlying connection, so if there is no NAT-traversal accomplished or - // there is a recognized adjustment happening on the connection, the packet will be batched until the connection is open again. - k_EP2PSendUnreliable = 0, - - // As above, but if the underlying p2p connection isn't yet established the packet will just be thrown away. Using this on the first - // packet sent to a remote host almost guarantees the packet will be dropped. - // This is only really useful for kinds of data that should never buffer up, i.e. voice payload packets - k_EP2PSendUnreliableNoDelay = 1, - - // Reliable message send. Can send up to 1MB of data in a single message. - // Does fragmentation/re-assembly of messages under the hood, as well as a sliding window for efficient sends of large chunks of data. - k_EP2PSendReliable = 2, - - // As above, but applies the Nagle algorithm to the send - sends will accumulate - // until the current MTU size (typically ~1200 bytes, but can change) or ~200ms has passed (Nagle algorithm). - // Useful if you want to send a set of smaller messages but have the coalesced into a single packet - // Since the reliable stream is all ordered, you can do several small message sends with k_EP2PSendReliableWithBuffering and then - // do a normal k_EP2PSendReliable to force all the buffered data to be sent. - k_EP2PSendReliableWithBuffering = 3, - - } - - // connection progress indicators, used by CreateP2PConnectionSocket() - public enum ESNetSocketState : int { - k_ESNetSocketStateInvalid = 0, - - // communication is valid - k_ESNetSocketStateConnected = 1, - - // states while establishing a connection - k_ESNetSocketStateInitiated = 10, // the connection state machine has started - - // p2p connections - k_ESNetSocketStateLocalCandidatesFound = 11, // we've found our local IP info - k_ESNetSocketStateReceivedRemoteCandidates = 12,// we've received information from the remote machine, via the Steam back-end, about their IP info - - // direct connections - k_ESNetSocketStateChallengeHandshake = 15, // we've received a challenge packet from the server - - // failure states - k_ESNetSocketStateDisconnecting = 21, // the API shut it down, and we're in the process of telling the other end - k_ESNetSocketStateLocalDisconnect = 22, // the API shut it down, and we've completed shutdown - k_ESNetSocketStateTimeoutDuringConnect = 23, // we timed out while trying to creating the connection - k_ESNetSocketStateRemoteEndDisconnected = 24, // the remote end has disconnected from us - k_ESNetSocketStateConnectionBroken = 25, // connection has been broken; either the other end has disappeared or our local network connection has broke - - } - - // describes how the socket is currently connected - public enum ESNetSocketConnectionType : int { - k_ESNetSocketConnectionTypeNotConnected = 0, - k_ESNetSocketConnectionTypeUDP = 1, - k_ESNetSocketConnectionTypeUDPRelay = 2, - } - - // Feature types for parental settings - public enum EParentalFeature : int { - k_EFeatureInvalid = 0, - k_EFeatureStore = 1, - k_EFeatureCommunity = 2, - k_EFeatureProfile = 3, - k_EFeatureFriends = 4, - k_EFeatureNews = 5, - k_EFeatureTrading = 6, - k_EFeatureSettings = 7, - k_EFeatureConsole = 8, - k_EFeatureBrowser = 9, - k_EFeatureParentalSetup = 10, - k_EFeatureLibrary = 11, - k_EFeatureTest = 12, - k_EFeatureSiteLicense = 13, - k_EFeatureKioskMode_Deprecated = 14, - k_EFeatureBlockAlways = 15, - k_EFeatureMax - } - - //----------------------------------------------------------------------------- - // Purpose: The form factor of a device - //----------------------------------------------------------------------------- - public enum ESteamDeviceFormFactor : int { - k_ESteamDeviceFormFactorUnknown = 0, - k_ESteamDeviceFormFactorPhone = 1, - k_ESteamDeviceFormFactorTablet = 2, - k_ESteamDeviceFormFactorComputer = 3, - k_ESteamDeviceFormFactorTV = 4, - k_ESteamDeviceFormFactorVRHeadset = 5, - } - - //----------------------------------------------------------------------------- - // Purpose: The type of input in ERemotePlayInput_t - //----------------------------------------------------------------------------- - public enum ERemotePlayInputType : int { - k_ERemotePlayInputUnknown, - k_ERemotePlayInputMouseMotion, - k_ERemotePlayInputMouseButtonDown, - k_ERemotePlayInputMouseButtonUp, - k_ERemotePlayInputMouseWheel, - k_ERemotePlayInputKeyDown, - k_ERemotePlayInputKeyUp - } - - //----------------------------------------------------------------------------- - // Purpose: Mouse buttons in ERemotePlayInput_t - //----------------------------------------------------------------------------- - public enum ERemotePlayMouseButton : int { - k_ERemotePlayMouseButtonLeft = 0x0001, - k_ERemotePlayMouseButtonRight = 0x0002, - k_ERemotePlayMouseButtonMiddle = 0x0010, - k_ERemotePlayMouseButtonX1 = 0x0020, - k_ERemotePlayMouseButtonX2 = 0x0040, - } - - //----------------------------------------------------------------------------- - // Purpose: Mouse wheel direction in ERemotePlayInput_t - //----------------------------------------------------------------------------- - public enum ERemotePlayMouseWheelDirection : int { - k_ERemotePlayMouseWheelUp = 1, - k_ERemotePlayMouseWheelDown = 2, - k_ERemotePlayMouseWheelLeft = 3, - k_ERemotePlayMouseWheelRight = 4, - } - - //----------------------------------------------------------------------------- - // Purpose: Key scancode in ERemotePlayInput_t - // - // This is a USB scancode value as defined for the Keyboard/Keypad Page (0x07) - // This enumeration isn't a complete list, just the most commonly used keys. - //----------------------------------------------------------------------------- - public enum ERemotePlayScancode : int { - k_ERemotePlayScancodeUnknown = 0, - - k_ERemotePlayScancodeA = 4, - k_ERemotePlayScancodeB = 5, - k_ERemotePlayScancodeC = 6, - k_ERemotePlayScancodeD = 7, - k_ERemotePlayScancodeE = 8, - k_ERemotePlayScancodeF = 9, - k_ERemotePlayScancodeG = 10, - k_ERemotePlayScancodeH = 11, - k_ERemotePlayScancodeI = 12, - k_ERemotePlayScancodeJ = 13, - k_ERemotePlayScancodeK = 14, - k_ERemotePlayScancodeL = 15, - k_ERemotePlayScancodeM = 16, - k_ERemotePlayScancodeN = 17, - k_ERemotePlayScancodeO = 18, - k_ERemotePlayScancodeP = 19, - k_ERemotePlayScancodeQ = 20, - k_ERemotePlayScancodeR = 21, - k_ERemotePlayScancodeS = 22, - k_ERemotePlayScancodeT = 23, - k_ERemotePlayScancodeU = 24, - k_ERemotePlayScancodeV = 25, - k_ERemotePlayScancodeW = 26, - k_ERemotePlayScancodeX = 27, - k_ERemotePlayScancodeY = 28, - k_ERemotePlayScancodeZ = 29, - - k_ERemotePlayScancode1 = 30, - k_ERemotePlayScancode2 = 31, - k_ERemotePlayScancode3 = 32, - k_ERemotePlayScancode4 = 33, - k_ERemotePlayScancode5 = 34, - k_ERemotePlayScancode6 = 35, - k_ERemotePlayScancode7 = 36, - k_ERemotePlayScancode8 = 37, - k_ERemotePlayScancode9 = 38, - k_ERemotePlayScancode0 = 39, - - k_ERemotePlayScancodeReturn = 40, - k_ERemotePlayScancodeEscape = 41, - k_ERemotePlayScancodeBackspace = 42, - k_ERemotePlayScancodeTab = 43, - k_ERemotePlayScancodeSpace = 44, - k_ERemotePlayScancodeMinus = 45, - k_ERemotePlayScancodeEquals = 46, - k_ERemotePlayScancodeLeftBracket = 47, - k_ERemotePlayScancodeRightBracket = 48, - k_ERemotePlayScancodeBackslash = 49, - k_ERemotePlayScancodeSemicolon = 51, - k_ERemotePlayScancodeApostrophe = 52, - k_ERemotePlayScancodeGrave = 53, - k_ERemotePlayScancodeComma = 54, - k_ERemotePlayScancodePeriod = 55, - k_ERemotePlayScancodeSlash = 56, - k_ERemotePlayScancodeCapsLock = 57, - - k_ERemotePlayScancodeF1 = 58, - k_ERemotePlayScancodeF2 = 59, - k_ERemotePlayScancodeF3 = 60, - k_ERemotePlayScancodeF4 = 61, - k_ERemotePlayScancodeF5 = 62, - k_ERemotePlayScancodeF6 = 63, - k_ERemotePlayScancodeF7 = 64, - k_ERemotePlayScancodeF8 = 65, - k_ERemotePlayScancodeF9 = 66, - k_ERemotePlayScancodeF10 = 67, - k_ERemotePlayScancodeF11 = 68, - k_ERemotePlayScancodeF12 = 69, - - k_ERemotePlayScancodeInsert = 73, - k_ERemotePlayScancodeHome = 74, - k_ERemotePlayScancodePageUp = 75, - k_ERemotePlayScancodeDelete = 76, - k_ERemotePlayScancodeEnd = 77, - k_ERemotePlayScancodePageDown = 78, - k_ERemotePlayScancodeRight = 79, - k_ERemotePlayScancodeLeft = 80, - k_ERemotePlayScancodeDown = 81, - k_ERemotePlayScancodeUp = 82, - - k_ERemotePlayScancodeLeftControl = 224, - k_ERemotePlayScancodeLeftShift = 225, - k_ERemotePlayScancodeLeftAlt = 226, - k_ERemotePlayScancodeLeftGUI = 227, // windows, command (apple), meta - k_ERemotePlayScancodeRightControl = 228, - k_ERemotePlayScancodeRightShift = 229, - k_ERemotePlayScancodeRightALT = 230, - k_ERemotePlayScancodeRightGUI = 231, // windows, command (apple), meta - } - - //----------------------------------------------------------------------------- - // Purpose: Key modifier in ERemotePlayInput_t - //----------------------------------------------------------------------------- - public enum ERemotePlayKeyModifier : int { - k_ERemotePlayKeyModifierNone = 0x0000, - k_ERemotePlayKeyModifierLeftShift = 0x0001, - k_ERemotePlayKeyModifierRightShift = 0x0002, - k_ERemotePlayKeyModifierLeftControl = 0x0040, - k_ERemotePlayKeyModifierRightControl = 0x0080, - k_ERemotePlayKeyModifierLeftAlt = 0x0100, - k_ERemotePlayKeyModifierRightAlt = 0x0200, - k_ERemotePlayKeyModifierLeftGUI = 0x0400, - k_ERemotePlayKeyModifierRightGUI = 0x0800, - k_ERemotePlayKeyModifierNumLock = 0x1000, - k_ERemotePlayKeyModifierCapsLock = 0x2000, - k_ERemotePlayKeyModifierMask = 0xFFFF, - } - - [FlagsAttribute] - public enum ERemoteStoragePlatform : int { - k_ERemoteStoragePlatformNone = 0, - k_ERemoteStoragePlatformWindows = (1 << 0), - k_ERemoteStoragePlatformOSX = (1 << 1), - k_ERemoteStoragePlatformPS3 = (1 << 2), - k_ERemoteStoragePlatformLinux = (1 << 3), - k_ERemoteStoragePlatformSwitch = (1 << 4), - k_ERemoteStoragePlatformAndroid = (1 << 5), - k_ERemoteStoragePlatformIOS = (1 << 6), - // NB we get one more before we need to widen some things - - k_ERemoteStoragePlatformAll = -1 - } - - public enum ERemoteStoragePublishedFileVisibility : int { - k_ERemoteStoragePublishedFileVisibilityPublic = 0, - k_ERemoteStoragePublishedFileVisibilityFriendsOnly = 1, - k_ERemoteStoragePublishedFileVisibilityPrivate = 2, - k_ERemoteStoragePublishedFileVisibilityUnlisted = 3, - } - - public enum EWorkshopFileType : int { - k_EWorkshopFileTypeFirst = 0, - - k_EWorkshopFileTypeCommunity = 0, // normal Workshop item that can be subscribed to - k_EWorkshopFileTypeMicrotransaction = 1, // Workshop item that is meant to be voted on for the purpose of selling in-game - k_EWorkshopFileTypeCollection = 2, // a collection of Workshop or Greenlight items - k_EWorkshopFileTypeArt = 3, // artwork - k_EWorkshopFileTypeVideo = 4, // external video - k_EWorkshopFileTypeScreenshot = 5, // screenshot - k_EWorkshopFileTypeGame = 6, // Greenlight game entry - k_EWorkshopFileTypeSoftware = 7, // Greenlight software entry - k_EWorkshopFileTypeConcept = 8, // Greenlight concept - k_EWorkshopFileTypeWebGuide = 9, // Steam web guide - k_EWorkshopFileTypeIntegratedGuide = 10, // application integrated guide - k_EWorkshopFileTypeMerch = 11, // Workshop merchandise meant to be voted on for the purpose of being sold - k_EWorkshopFileTypeControllerBinding = 12, // Steam Controller bindings - k_EWorkshopFileTypeSteamworksAccessInvite = 13, // internal - k_EWorkshopFileTypeSteamVideo = 14, // Steam video - k_EWorkshopFileTypeGameManagedItem = 15, // managed completely by the game, not the user, and not shown on the web - k_EWorkshopFileTypeClip = 16, // internal - - // Update k_EWorkshopFileTypeMax if you add values. - k_EWorkshopFileTypeMax = 17 - - } - - public enum EWorkshopVote : int { - k_EWorkshopVoteUnvoted = 0, - k_EWorkshopVoteFor = 1, - k_EWorkshopVoteAgainst = 2, - k_EWorkshopVoteLater = 3, - } - - public enum EWorkshopFileAction : int { - k_EWorkshopFileActionPlayed = 0, - k_EWorkshopFileActionCompleted = 1, - } - - public enum EWorkshopEnumerationType : int { - k_EWorkshopEnumerationTypeRankedByVote = 0, - k_EWorkshopEnumerationTypeRecent = 1, - k_EWorkshopEnumerationTypeTrending = 2, - k_EWorkshopEnumerationTypeFavoritesOfFriends = 3, - k_EWorkshopEnumerationTypeVotedByFriends = 4, - k_EWorkshopEnumerationTypeContentByFriends = 5, - k_EWorkshopEnumerationTypeRecentFromFollowedUsers = 6, - } - - public enum EWorkshopVideoProvider : int { - k_EWorkshopVideoProviderNone = 0, - k_EWorkshopVideoProviderYoutube = 1 - } - - public enum EUGCReadAction : int { - // Keeps the file handle open unless the last byte is read. You can use this when reading large files (over 100MB) in sequential chunks. - // If the last byte is read, this will behave the same as k_EUGCRead_Close. Otherwise, it behaves the same as k_EUGCRead_ContinueReading. - // This value maintains the same behavior as before the EUGCReadAction parameter was introduced. - k_EUGCRead_ContinueReadingUntilFinished = 0, - - // Keeps the file handle open. Use this when using UGCRead to seek to different parts of the file. - // When you are done seeking around the file, make a final call with k_EUGCRead_Close to close it. - k_EUGCRead_ContinueReading = 1, - - // Frees the file handle. Use this when you're done reading the content. - // To read the file from Steam again you will need to call UGCDownload again. - k_EUGCRead_Close = 2, - } - - public enum ERemoteStorageLocalFileChange : int { - k_ERemoteStorageLocalFileChange_Invalid = 0, - - // The file was updated from another device - k_ERemoteStorageLocalFileChange_FileUpdated = 1, - - // The file was deleted by another device - k_ERemoteStorageLocalFileChange_FileDeleted = 2, - } - - public enum ERemoteStorageFilePathType : int { - k_ERemoteStorageFilePathType_Invalid = 0, - - // The file is directly accessed by the game and this is the full path - k_ERemoteStorageFilePathType_Absolute = 1, - - // The file is accessed via the ISteamRemoteStorage API and this is the filename - k_ERemoteStorageFilePathType_APIFilename = 2, - } - - public enum EVRScreenshotType : int { - k_EVRScreenshotType_None = 0, - k_EVRScreenshotType_Mono = 1, - k_EVRScreenshotType_Stereo = 2, - k_EVRScreenshotType_MonoCubemap = 3, - k_EVRScreenshotType_MonoPanorama = 4, - k_EVRScreenshotType_StereoPanorama = 5 - } - - // callbacks - // Controls the color of the timeline bar segments. The value names listed here map to a multiplayer game, where - // the user starts a game (in menus), then joins a multiplayer session that first has a character selection lobby - // then finally the multiplayer session starts. However, you can also map these values to any type of game. In a single - // player game where you visit towns & dungeons, you could set k_ETimelineGameMode_Menus when the player is in a town - // buying items, k_ETimelineGameMode_Staging for when a dungeon is loading and k_ETimelineGameMode_Playing for when - // inside the dungeon fighting monsters. - public enum ETimelineGameMode : int { - k_ETimelineGameMode_Invalid = 0, - k_ETimelineGameMode_Playing = 1, - k_ETimelineGameMode_Staging = 2, - k_ETimelineGameMode_Menus = 3, - k_ETimelineGameMode_LoadingScreen = 4, - - k_ETimelineGameMode_Max, // one past the last valid value - } - - // Used in AddTimelineEvent, where Featured events will be offered before Standard events - public enum ETimelineEventClipPriority : int { - k_ETimelineEventClipPriority_Invalid = 0, - k_ETimelineEventClipPriority_None = 1, - k_ETimelineEventClipPriority_Standard = 2, - k_ETimelineEventClipPriority_Featured = 3, - } - - // Matching UGC types for queries - public enum EUGCMatchingUGCType : int { - k_EUGCMatchingUGCType_Items = 0, // both mtx items and ready-to-use items - k_EUGCMatchingUGCType_Items_Mtx = 1, - k_EUGCMatchingUGCType_Items_ReadyToUse = 2, - k_EUGCMatchingUGCType_Collections = 3, - k_EUGCMatchingUGCType_Artwork = 4, - k_EUGCMatchingUGCType_Videos = 5, - k_EUGCMatchingUGCType_Screenshots = 6, - k_EUGCMatchingUGCType_AllGuides = 7, // both web guides and integrated guides - k_EUGCMatchingUGCType_WebGuides = 8, - k_EUGCMatchingUGCType_IntegratedGuides = 9, - k_EUGCMatchingUGCType_UsableInGame = 10, // ready-to-use items and integrated guides - k_EUGCMatchingUGCType_ControllerBindings = 11, - k_EUGCMatchingUGCType_GameManagedItems = 12, // game managed items (not managed by users) - k_EUGCMatchingUGCType_All = ~0, // @note: will only be valid for CreateQueryUserUGCRequest requests - } - - // Different lists of published UGC for a user. - // If the current logged in user is different than the specified user, then some options may not be allowed. - public enum EUserUGCList : int { - k_EUserUGCList_Published, - k_EUserUGCList_VotedOn, - k_EUserUGCList_VotedUp, - k_EUserUGCList_VotedDown, - k_EUserUGCList_WillVoteLater, - k_EUserUGCList_Favorited, - k_EUserUGCList_Subscribed, - k_EUserUGCList_UsedOrPlayed, - k_EUserUGCList_Followed, - } - - // Sort order for user published UGC lists (defaults to creation order descending) - public enum EUserUGCListSortOrder : int { - k_EUserUGCListSortOrder_CreationOrderDesc, - k_EUserUGCListSortOrder_CreationOrderAsc, - k_EUserUGCListSortOrder_TitleAsc, - k_EUserUGCListSortOrder_LastUpdatedDesc, - k_EUserUGCListSortOrder_SubscriptionDateDesc, - k_EUserUGCListSortOrder_VoteScoreDesc, - k_EUserUGCListSortOrder_ForModeration, - } - - // Combination of sorting and filtering for queries across all UGC - public enum EUGCQuery : int { - k_EUGCQuery_RankedByVote = 0, - k_EUGCQuery_RankedByPublicationDate = 1, - k_EUGCQuery_AcceptedForGameRankedByAcceptanceDate = 2, - k_EUGCQuery_RankedByTrend = 3, - k_EUGCQuery_FavoritedByFriendsRankedByPublicationDate = 4, - k_EUGCQuery_CreatedByFriendsRankedByPublicationDate = 5, - k_EUGCQuery_RankedByNumTimesReported = 6, - k_EUGCQuery_CreatedByFollowedUsersRankedByPublicationDate = 7, - k_EUGCQuery_NotYetRated = 8, - k_EUGCQuery_RankedByTotalVotesAsc = 9, - k_EUGCQuery_RankedByVotesUp = 10, - k_EUGCQuery_RankedByTextSearch = 11, - k_EUGCQuery_RankedByTotalUniqueSubscriptions = 12, - k_EUGCQuery_RankedByPlaytimeTrend = 13, - k_EUGCQuery_RankedByTotalPlaytime = 14, - k_EUGCQuery_RankedByAveragePlaytimeTrend = 15, - k_EUGCQuery_RankedByLifetimeAveragePlaytime = 16, - k_EUGCQuery_RankedByPlaytimeSessionsTrend = 17, - k_EUGCQuery_RankedByLifetimePlaytimeSessions = 18, - k_EUGCQuery_RankedByLastUpdatedDate = 19, - } - - public enum EItemUpdateStatus : int { - k_EItemUpdateStatusInvalid = 0, // The item update handle was invalid, job might be finished, listen too SubmitItemUpdateResult_t - k_EItemUpdateStatusPreparingConfig = 1, // The item update is processing configuration data - k_EItemUpdateStatusPreparingContent = 2, // The item update is reading and processing content files - k_EItemUpdateStatusUploadingContent = 3, // The item update is uploading content changes to Steam - k_EItemUpdateStatusUploadingPreviewFile = 4, // The item update is uploading new preview file image - k_EItemUpdateStatusCommittingChanges = 5 // The item update is committing all changes - } - - [FlagsAttribute] - public enum EItemState : int { - k_EItemStateNone = 0, // item not tracked on client - k_EItemStateSubscribed = 1, // current user is subscribed to this item. Not just cached. - k_EItemStateLegacyItem = 2, // item was created with ISteamRemoteStorage - k_EItemStateInstalled = 4, // item is installed and usable (but maybe out of date) - k_EItemStateNeedsUpdate = 8, // items needs an update. Either because it's not installed yet or creator updated content - k_EItemStateDownloading = 16, // item update is currently downloading - k_EItemStateDownloadPending = 32, // DownloadItem() was called for this item, content isn't available until DownloadItemResult_t is fired - k_EItemStateDisabledLocally = 64, // Item is disabled locally, so it shouldn't be considered subscribed - } - - public enum EItemStatistic : int { - k_EItemStatistic_NumSubscriptions = 0, - k_EItemStatistic_NumFavorites = 1, - k_EItemStatistic_NumFollowers = 2, - k_EItemStatistic_NumUniqueSubscriptions = 3, - k_EItemStatistic_NumUniqueFavorites = 4, - k_EItemStatistic_NumUniqueFollowers = 5, - k_EItemStatistic_NumUniqueWebsiteViews = 6, - k_EItemStatistic_ReportScore = 7, - k_EItemStatistic_NumSecondsPlayed = 8, - k_EItemStatistic_NumPlaytimeSessions = 9, - k_EItemStatistic_NumComments = 10, - k_EItemStatistic_NumSecondsPlayedDuringTimePeriod = 11, - k_EItemStatistic_NumPlaytimeSessionsDuringTimePeriod = 12, - } - - public enum EItemPreviewType : int { - k_EItemPreviewType_Image = 0, // standard image file expected (e.g. jpg, png, gif, etc.) - k_EItemPreviewType_YouTubeVideo = 1, // video id is stored - k_EItemPreviewType_Sketchfab = 2, // model id is stored - k_EItemPreviewType_EnvironmentMap_HorizontalCross = 3, // standard image file expected - cube map in the layout - // +---+---+-------+ - // | |Up | | - // +---+---+---+---+ - // | L | F | R | B | - // +---+---+---+---+ - // | |Dn | | - // +---+---+---+---+ - k_EItemPreviewType_EnvironmentMap_LatLong = 4, // standard image file expected - k_EItemPreviewType_Clip = 5, // clip id is stored - k_EItemPreviewType_ReservedMax = 255, // you can specify your own types above this value - } - - public enum EUGCContentDescriptorID : int { - k_EUGCContentDescriptor_NudityOrSexualContent = 1, - k_EUGCContentDescriptor_FrequentViolenceOrGore = 2, - k_EUGCContentDescriptor_AdultOnlySexualContent = 3, - k_EUGCContentDescriptor_GratuitousSexualContent = 4, - k_EUGCContentDescriptor_AnyMatureContent = 5, - } - - public enum EFailureType : int { - k_EFailureFlushedCallbackQueue, - k_EFailurePipeFail, - } - - // type of data request, when downloading leaderboard entries - public enum ELeaderboardDataRequest : int { - k_ELeaderboardDataRequestGlobal = 0, - k_ELeaderboardDataRequestGlobalAroundUser = 1, - k_ELeaderboardDataRequestFriends = 2, - k_ELeaderboardDataRequestUsers = 3 - } - - // the sort order of a leaderboard - public enum ELeaderboardSortMethod : int { - k_ELeaderboardSortMethodNone = 0, - k_ELeaderboardSortMethodAscending = 1, // top-score is lowest number - k_ELeaderboardSortMethodDescending = 2, // top-score is highest number - } - - // the display type (used by the Steam Community web site) for a leaderboard - public enum ELeaderboardDisplayType : int { - k_ELeaderboardDisplayTypeNone = 0, - k_ELeaderboardDisplayTypeNumeric = 1, // simple numerical score - k_ELeaderboardDisplayTypeTimeSeconds = 2, // the score represents a time, in seconds - k_ELeaderboardDisplayTypeTimeMilliSeconds = 3, // the score represents a time, in milliseconds - } - - public enum ELeaderboardUploadScoreMethod : int { - k_ELeaderboardUploadScoreMethodNone = 0, - k_ELeaderboardUploadScoreMethodKeepBest = 1, // Leaderboard will keep user's best score - k_ELeaderboardUploadScoreMethodForceUpdate = 2, // Leaderboard will always replace score with specified - } - - // Steam API call failure results - public enum ESteamAPICallFailure : int { - k_ESteamAPICallFailureNone = -1, // no failure - k_ESteamAPICallFailureSteamGone = 0, // the local Steam process has gone away - k_ESteamAPICallFailureNetworkFailure = 1, // the network connection to Steam has been broken, or was already broken - // SteamServersDisconnected_t callback will be sent around the same time - // SteamServersConnected_t will be sent when the client is able to talk to the Steam servers again - k_ESteamAPICallFailureInvalidHandle = 2, // the SteamAPICall_t handle passed in no longer exists - k_ESteamAPICallFailureMismatchedCallback = 3,// GetAPICallResult() was called with the wrong callback type for this API call - } - - // Input modes for the Big Picture gamepad text entry - public enum EGamepadTextInputMode : int { - k_EGamepadTextInputModeNormal = 0, - k_EGamepadTextInputModePassword = 1 - } - - // Controls number of allowed lines for the Big Picture gamepad text entry - public enum EGamepadTextInputLineMode : int { - k_EGamepadTextInputLineModeSingleLine = 0, - k_EGamepadTextInputLineModeMultipleLines = 1 - } - - public enum EFloatingGamepadTextInputMode : int { - k_EFloatingGamepadTextInputModeModeSingleLine = 0, // Enter dismisses the keyboard - k_EFloatingGamepadTextInputModeModeMultipleLines = 1, // User needs to explictly close the keyboard - k_EFloatingGamepadTextInputModeModeEmail = 2, // Keyboard layout is email, enter dismisses the keyboard - k_EFloatingGamepadTextInputModeModeNumeric = 3, // Keyboard layout is numeric, enter dismisses the keyboard - - } - - // The context where text filtering is being done - public enum ETextFilteringContext : int { - k_ETextFilteringContextUnknown = 0, // Unknown context - k_ETextFilteringContextGameContent = 1, // Game content, only legally required filtering is performed - k_ETextFilteringContextChat = 2, // Chat from another player - k_ETextFilteringContextName = 3, // Character or item name - } - - //----------------------------------------------------------------------------- - // results for CheckFileSignature - //----------------------------------------------------------------------------- - public enum ECheckFileSignature : int { - k_ECheckFileSignatureInvalidSignature = 0, - k_ECheckFileSignatureValidSignature = 1, - k_ECheckFileSignatureFileNotFound = 2, - k_ECheckFileSignatureNoSignaturesFoundForThisApp = 3, - k_ECheckFileSignatureNoSignaturesFoundForThisFile = 4, - } - - public enum EMatchMakingServerResponse : int { - eServerResponded = 0, - eServerFailedToRespond, - eNoServersListedOnMasterServer // for the Internet query type, returned in response callback if no servers of this type match - } - - //----------------------------------------------------------------------------------------------------------------------------------------------------------// - // Steam API setup & shutdown - // - // These functions manage loading, initializing and shutdown of the steamclient.dll - // - //----------------------------------------------------------------------------------------------------------------------------------------------------------// - public enum ESteamAPIInitResult : int { - k_ESteamAPIInitResult_OK = 0, - k_ESteamAPIInitResult_FailedGeneric = 1, // Some other failure - k_ESteamAPIInitResult_NoSteamClient = 2, // We cannot connect to Steam, steam probably isn't running - k_ESteamAPIInitResult_VersionMismatch = 3, // Steam client appears to be out of date - } - - public enum EServerMode : int { - eServerModeInvalid = 0, // DO NOT USE - eServerModeNoAuthentication = 1, // Don't authenticate user logins and don't list on the server list - eServerModeAuthentication = 2, // Authenticate users, list on the server list, don't run VAC on clients that connect - eServerModeAuthenticationAndSecure = 3, // Authenticate users, list on the server list and VAC protect clients - } - - // General result codes - public enum EResult : int { - k_EResultNone = 0, // no result - k_EResultOK = 1, // success - k_EResultFail = 2, // generic failure - k_EResultNoConnection = 3, // no/failed network connection - // k_EResultNoConnectionRetry = 4, // OBSOLETE - removed - k_EResultInvalidPassword = 5, // password/ticket is invalid - k_EResultLoggedInElsewhere = 6, // same user logged in elsewhere - k_EResultInvalidProtocolVer = 7, // protocol version is incorrect - k_EResultInvalidParam = 8, // a parameter is incorrect - k_EResultFileNotFound = 9, // file was not found - k_EResultBusy = 10, // called method busy - action not taken - k_EResultInvalidState = 11, // called object was in an invalid state - k_EResultInvalidName = 12, // name is invalid - k_EResultInvalidEmail = 13, // email is invalid - k_EResultDuplicateName = 14, // name is not unique - k_EResultAccessDenied = 15, // access is denied - k_EResultTimeout = 16, // operation timed out - k_EResultBanned = 17, // VAC2 banned - k_EResultAccountNotFound = 18, // account not found - k_EResultInvalidSteamID = 19, // steamID is invalid - k_EResultServiceUnavailable = 20, // The requested service is currently unavailable - k_EResultNotLoggedOn = 21, // The user is not logged on - k_EResultPending = 22, // Request is pending (may be in process, or waiting on third party) - k_EResultEncryptionFailure = 23, // Encryption or Decryption failed - k_EResultInsufficientPrivilege = 24, // Insufficient privilege - k_EResultLimitExceeded = 25, // Too much of a good thing - k_EResultRevoked = 26, // Access has been revoked (used for revoked guest passes) - k_EResultExpired = 27, // License/Guest pass the user is trying to access is expired - k_EResultAlreadyRedeemed = 28, // Guest pass has already been redeemed by account, cannot be acked again - k_EResultDuplicateRequest = 29, // The request is a duplicate and the action has already occurred in the past, ignored this time - k_EResultAlreadyOwned = 30, // All the games in this guest pass redemption request are already owned by the user - k_EResultIPNotFound = 31, // IP address not found - k_EResultPersistFailed = 32, // failed to write change to the data store - k_EResultLockingFailed = 33, // failed to acquire access lock for this operation - k_EResultLogonSessionReplaced = 34, - k_EResultConnectFailed = 35, - k_EResultHandshakeFailed = 36, - k_EResultIOFailure = 37, - k_EResultRemoteDisconnect = 38, - k_EResultShoppingCartNotFound = 39, // failed to find the shopping cart requested - k_EResultBlocked = 40, // a user didn't allow it - k_EResultIgnored = 41, // target is ignoring sender - k_EResultNoMatch = 42, // nothing matching the request found - k_EResultAccountDisabled = 43, - k_EResultServiceReadOnly = 44, // this service is not accepting content changes right now - k_EResultAccountNotFeatured = 45, // account doesn't have value, so this feature isn't available - k_EResultAdministratorOK = 46, // allowed to take this action, but only because requester is admin - k_EResultContentVersion = 47, // A Version mismatch in content transmitted within the Steam protocol. - k_EResultTryAnotherCM = 48, // The current CM can't service the user making a request, user should try another. - k_EResultPasswordRequiredToKickSession = 49,// You are already logged in elsewhere, this cached credential login has failed. - k_EResultAlreadyLoggedInElsewhere = 50, // You are already logged in elsewhere, you must wait - k_EResultSuspended = 51, // Long running operation (content download) suspended/paused - k_EResultCancelled = 52, // Operation canceled (typically by user: content download) - k_EResultDataCorruption = 53, // Operation canceled because data is ill formed or unrecoverable - k_EResultDiskFull = 54, // Operation canceled - not enough disk space. - k_EResultRemoteCallFailed = 55, // an remote call or IPC call failed - k_EResultPasswordUnset = 56, // Password could not be verified as it's unset server side - k_EResultExternalAccountUnlinked = 57, // External account (PSN, Facebook...) is not linked to a Steam account - k_EResultPSNTicketInvalid = 58, // PSN ticket was invalid - k_EResultExternalAccountAlreadyLinked = 59, // External account (PSN, Facebook...) is already linked to some other account, must explicitly request to replace/delete the link first - k_EResultRemoteFileConflict = 60, // The sync cannot resume due to a conflict between the local and remote files - k_EResultIllegalPassword = 61, // The requested new password is not legal - k_EResultSameAsPreviousValue = 62, // new value is the same as the old one ( secret question and answer ) - k_EResultAccountLogonDenied = 63, // account login denied due to 2nd factor authentication failure - k_EResultCannotUseOldPassword = 64, // The requested new password is not legal - k_EResultInvalidLoginAuthCode = 65, // account login denied due to auth code invalid - k_EResultAccountLogonDeniedNoMail = 66, // account login denied due to 2nd factor auth failure - and no mail has been sent - partner site specific - k_EResultHardwareNotCapableOfIPT = 67, // - k_EResultIPTInitError = 68, // - k_EResultParentalControlRestricted = 69, // operation failed due to parental control restrictions for current user - k_EResultFacebookQueryError = 70, // Facebook query returned an error - k_EResultExpiredLoginAuthCode = 71, // account login denied due to auth code expired - k_EResultIPLoginRestrictionFailed = 72, - k_EResultAccountLockedDown = 73, - k_EResultAccountLogonDeniedVerifiedEmailRequired = 74, - k_EResultNoMatchingURL = 75, - k_EResultBadResponse = 76, // parse failure, missing field, etc. - k_EResultRequirePasswordReEntry = 77, // The user cannot complete the action until they re-enter their password - k_EResultValueOutOfRange = 78, // the value entered is outside the acceptable range - k_EResultUnexpectedError = 79, // something happened that we didn't expect to ever happen - k_EResultDisabled = 80, // The requested service has been configured to be unavailable - k_EResultInvalidCEGSubmission = 81, // The set of files submitted to the CEG server are not valid ! - k_EResultRestrictedDevice = 82, // The device being used is not allowed to perform this action - k_EResultRegionLocked = 83, // The action could not be complete because it is region restricted - k_EResultRateLimitExceeded = 84, // Temporary rate limit exceeded, try again later, different from k_EResultLimitExceeded which may be permanent - k_EResultAccountLoginDeniedNeedTwoFactor = 85, // Need two-factor code to login - k_EResultItemDeleted = 86, // The thing we're trying to access has been deleted - k_EResultAccountLoginDeniedThrottle = 87, // login attempt failed, try to throttle response to possible attacker - k_EResultTwoFactorCodeMismatch = 88, // two factor code mismatch - k_EResultTwoFactorActivationCodeMismatch = 89, // activation code for two-factor didn't match - k_EResultAccountAssociatedToMultiplePartners = 90, // account has been associated with multiple partners - k_EResultNotModified = 91, // data not modified - k_EResultNoMobileDevice = 92, // the account does not have a mobile device associated with it - k_EResultTimeNotSynced = 93, // the time presented is out of range or tolerance - k_EResultSmsCodeFailed = 94, // SMS code failure (no match, none pending, etc.) - k_EResultAccountLimitExceeded = 95, // Too many accounts access this resource - k_EResultAccountActivityLimitExceeded = 96, // Too many changes to this account - k_EResultPhoneActivityLimitExceeded = 97, // Too many changes to this phone - k_EResultRefundToWallet = 98, // Cannot refund to payment method, must use wallet - k_EResultEmailSendFailure = 99, // Cannot send an email - k_EResultNotSettled = 100, // Can't perform operation till payment has settled - k_EResultNeedCaptcha = 101, // Needs to provide a valid captcha - k_EResultGSLTDenied = 102, // a game server login token owned by this token's owner has been banned - k_EResultGSOwnerDenied = 103, // game server owner is denied for other reason (account lock, community ban, vac ban, missing phone) - k_EResultInvalidItemType = 104, // the type of thing we were requested to act on is invalid - k_EResultIPBanned = 105, // the ip address has been banned from taking this action - k_EResultGSLTExpired = 106, // this token has expired from disuse; can be reset for use - k_EResultInsufficientFunds = 107, // user doesn't have enough wallet funds to complete the action - k_EResultTooManyPending = 108, // There are too many of this thing pending already - k_EResultNoSiteLicensesFound = 109, // No site licenses found - k_EResultWGNetworkSendExceeded = 110, // the WG couldn't send a response because we exceeded max network send size - k_EResultAccountNotFriends = 111, // the user is not mutually friends - k_EResultLimitedUserAccount = 112, // the user is limited - k_EResultCantRemoveItem = 113, // item can't be removed - k_EResultAccountDeleted = 114, // account has been deleted - k_EResultExistingUserCancelledLicense = 115, // A license for this already exists, but cancelled - k_EResultCommunityCooldown = 116, // access is denied because of a community cooldown (probably from support profile data resets) - k_EResultNoLauncherSpecified = 117, // No launcher was specified, but a launcher was needed to choose correct realm for operation. - k_EResultMustAgreeToSSA = 118, // User must agree to china SSA or global SSA before login - k_EResultLauncherMigrated = 119, // The specified launcher type is no longer supported; the user should be directed elsewhere - k_EResultSteamRealmMismatch = 120, // The user's realm does not match the realm of the requested resource - k_EResultInvalidSignature = 121, // signature check did not match - k_EResultParseFailure = 122, // Failed to parse input - k_EResultNoVerifiedPhone = 123, // account does not have a verified phone number - k_EResultInsufficientBattery = 124, // user device doesn't have enough battery charge currently to complete the action - k_EResultChargerRequired = 125, // The operation requires a charger to be plugged in, which wasn't present - k_EResultCachedCredentialInvalid = 126, // Cached credential was invalid - user must reauthenticate - K_EResultPhoneNumberIsVOIP = 127, // The phone number provided is a Voice Over IP number - k_EResultNotSupported = 128, // The data being accessed is not supported by this API - k_EResultFamilySizeLimitExceeded = 129, // Reached the maximum size of the family - k_EResultOfflineAppCacheInvalid = 130, // The local data for the offline mode cache is insufficient to login - } - - // Error codes for use with the voice functions - public enum EVoiceResult : int { - k_EVoiceResultOK = 0, - k_EVoiceResultNotInitialized = 1, - k_EVoiceResultNotRecording = 2, - k_EVoiceResultNoData = 3, - k_EVoiceResultBufferTooSmall = 4, - k_EVoiceResultDataCorrupted = 5, - k_EVoiceResultRestricted = 6, - k_EVoiceResultUnsupportedCodec = 7, - k_EVoiceResultReceiverOutOfDate = 8, - k_EVoiceResultReceiverDidNotAnswer = 9, - - } - - // Result codes to GSHandleClientDeny/Kick - public enum EDenyReason : int { - k_EDenyInvalid = 0, - k_EDenyInvalidVersion = 1, - k_EDenyGeneric = 2, - k_EDenyNotLoggedOn = 3, - k_EDenyNoLicense = 4, - k_EDenyCheater = 5, - k_EDenyLoggedInElseWhere = 6, - k_EDenyUnknownText = 7, - k_EDenyIncompatibleAnticheat = 8, - k_EDenyMemoryCorruption = 9, - k_EDenyIncompatibleSoftware = 10, - k_EDenySteamConnectionLost = 11, - k_EDenySteamConnectionError = 12, - k_EDenySteamResponseTimedOut = 13, - k_EDenySteamValidationStalled = 14, - k_EDenySteamOwnerLeftGuestUser = 15, - } - - // results from BeginAuthSession - public enum EBeginAuthSessionResult : int { - k_EBeginAuthSessionResultOK = 0, // Ticket is valid for this game and this steamID. - k_EBeginAuthSessionResultInvalidTicket = 1, // Ticket is not valid. - k_EBeginAuthSessionResultDuplicateRequest = 2, // A ticket has already been submitted for this steamID - k_EBeginAuthSessionResultInvalidVersion = 3, // Ticket is from an incompatible interface version - k_EBeginAuthSessionResultGameMismatch = 4, // Ticket is not for this game - k_EBeginAuthSessionResultExpiredTicket = 5, // Ticket has expired - } - - // Callback values for callback ValidateAuthTicketResponse_t which is a response to BeginAuthSession - public enum EAuthSessionResponse : int { - k_EAuthSessionResponseOK = 0, // Steam has verified the user is online, the ticket is valid and ticket has not been reused. - k_EAuthSessionResponseUserNotConnectedToSteam = 1, // The user in question is not connected to steam - k_EAuthSessionResponseNoLicenseOrExpired = 2, // The license has expired. - k_EAuthSessionResponseVACBanned = 3, // The user is VAC banned for this game. - k_EAuthSessionResponseLoggedInElseWhere = 4, // The user account has logged in elsewhere and the session containing the game instance has been disconnected. - k_EAuthSessionResponseVACCheckTimedOut = 5, // VAC has been unable to perform anti-cheat checks on this user - k_EAuthSessionResponseAuthTicketCanceled = 6, // The ticket has been canceled by the issuer - k_EAuthSessionResponseAuthTicketInvalidAlreadyUsed = 7, // This ticket has already been used, it is not valid. - k_EAuthSessionResponseAuthTicketInvalid = 8, // This ticket is not from a user instance currently connected to steam. - k_EAuthSessionResponsePublisherIssuedBan = 9, // The user is banned for this game. The ban came via the web api and not VAC - k_EAuthSessionResponseAuthTicketNetworkIdentityFailure = 10, // The network identity in the ticket does not match the server authenticating the ticket - } - - // results from UserHasLicenseForApp - public enum EUserHasLicenseForAppResult : int { - k_EUserHasLicenseResultHasLicense = 0, // User has a license for specified app - k_EUserHasLicenseResultDoesNotHaveLicense = 1, // User does not have a license for the specified app - k_EUserHasLicenseResultNoAuth = 2, // User has not been authenticated - } - - // Steam account types - public enum EAccountType : int { - k_EAccountTypeInvalid = 0, - k_EAccountTypeIndividual = 1, // single user account - k_EAccountTypeMultiseat = 2, // multiseat (e.g. cybercafe) account - k_EAccountTypeGameServer = 3, // game server account - k_EAccountTypeAnonGameServer = 4, // anonymous game server account - k_EAccountTypePending = 5, // pending - k_EAccountTypeContentServer = 6, // content server - k_EAccountTypeClan = 7, - k_EAccountTypeChat = 8, - k_EAccountTypeConsoleUser = 9, // Fake SteamID for local PSN account on PS3 or Live account on 360, etc. - k_EAccountTypeAnonUser = 10, - - // Max of 16 items in this field - k_EAccountTypeMax - } - - //----------------------------------------------------------------------------- - // Purpose: Chat Entry Types (previously was only friend-to-friend message types) - //----------------------------------------------------------------------------- - public enum EChatEntryType : int { - k_EChatEntryTypeInvalid = 0, - k_EChatEntryTypeChatMsg = 1, // Normal text message from another user - k_EChatEntryTypeTyping = 2, // Another user is typing (not used in multi-user chat) - k_EChatEntryTypeInviteGame = 3, // Invite from other user into that users current game - k_EChatEntryTypeEmote = 4, // text emote message (deprecated, should be treated as ChatMsg) - //k_EChatEntryTypeLobbyGameStart = 5, // lobby game is starting (dead - listen for LobbyGameCreated_t callback instead) - k_EChatEntryTypeLeftConversation = 6, // user has left the conversation ( closed chat window ) - // Above are previous FriendMsgType entries, now merged into more generic chat entry types - k_EChatEntryTypeEntered = 7, // user has entered the conversation (used in multi-user chat and group chat) - k_EChatEntryTypeWasKicked = 8, // user was kicked (data: 64-bit steamid of actor performing the kick) - k_EChatEntryTypeWasBanned = 9, // user was banned (data: 64-bit steamid of actor performing the ban) - k_EChatEntryTypeDisconnected = 10, // user disconnected - k_EChatEntryTypeHistoricalChat = 11, // a chat message from user's chat history or offilne message - //k_EChatEntryTypeReserved1 = 12, // No longer used - //k_EChatEntryTypeReserved2 = 13, // No longer used - k_EChatEntryTypeLinkBlocked = 14, // a link was removed by the chat filter. - } - - //----------------------------------------------------------------------------- - // Purpose: Chat Room Enter Responses - //----------------------------------------------------------------------------- - public enum EChatRoomEnterResponse : int { - k_EChatRoomEnterResponseSuccess = 1, // Success - k_EChatRoomEnterResponseDoesntExist = 2, // Chat doesn't exist (probably closed) - k_EChatRoomEnterResponseNotAllowed = 3, // General Denied - You don't have the permissions needed to join the chat - k_EChatRoomEnterResponseFull = 4, // Chat room has reached its maximum size - k_EChatRoomEnterResponseError = 5, // Unexpected Error - k_EChatRoomEnterResponseBanned = 6, // You are banned from this chat room and may not join - k_EChatRoomEnterResponseLimited = 7, // Joining this chat is not allowed because you are a limited user (no value on account) - k_EChatRoomEnterResponseClanDisabled = 8, // Attempt to join a clan chat when the clan is locked or disabled - k_EChatRoomEnterResponseCommunityBan = 9, // Attempt to join a chat when the user has a community lock on their account - k_EChatRoomEnterResponseMemberBlockedYou = 10, // Join failed - some member in the chat has blocked you from joining - k_EChatRoomEnterResponseYouBlockedMember = 11, // Join failed - you have blocked some member already in the chat - // k_EChatRoomEnterResponseNoRankingDataLobby = 12, // No longer used - // k_EChatRoomEnterResponseNoRankingDataUser = 13, // No longer used - // k_EChatRoomEnterResponseRankOutOfRange = 14, // No longer used - k_EChatRoomEnterResponseRatelimitExceeded = 15, // Join failed - to many join attempts in a very short period of time - } - - // Special flags for Chat accounts - they go in the top 8 bits - // of the steam ID's "instance", leaving 12 for the actual instances - [FlagsAttribute] - public enum EChatSteamIDInstanceFlags : int { - k_EChatAccountInstanceMask = 0x00000FFF, // top 8 bits are flags - - k_EChatInstanceFlagClan = ( Constants.k_unSteamAccountInstanceMask + 1 ) >> 1, // top bit - k_EChatInstanceFlagLobby = ( Constants.k_unSteamAccountInstanceMask + 1 ) >> 2, // next one down, etc - k_EChatInstanceFlagMMSLobby = ( Constants.k_unSteamAccountInstanceMask + 1 ) >> 3, // next one down, etc - - // Max of 8 flags - } - - //----------------------------------------------------------------------------- - // Purpose: Possible positions to tell the overlay to show notifications in - //----------------------------------------------------------------------------- - public enum ENotificationPosition : int { - k_EPositionInvalid = -1, - k_EPositionTopLeft = 0, - k_EPositionTopRight = 1, - k_EPositionBottomLeft = 2, - k_EPositionBottomRight = 3, - } - - //----------------------------------------------------------------------------- - // Purpose: Broadcast upload result details - //----------------------------------------------------------------------------- - public enum EBroadcastUploadResult : int { - k_EBroadcastUploadResultNone = 0, // broadcast state unknown - k_EBroadcastUploadResultOK = 1, // broadcast was good, no problems - k_EBroadcastUploadResultInitFailed = 2, // broadcast init failed - k_EBroadcastUploadResultFrameFailed = 3, // broadcast frame upload failed - k_EBroadcastUploadResultTimeout = 4, // broadcast upload timed out - k_EBroadcastUploadResultBandwidthExceeded = 5, // broadcast send too much data - k_EBroadcastUploadResultLowFPS = 6, // broadcast FPS too low - k_EBroadcastUploadResultMissingKeyFrames = 7, // broadcast sending not enough key frames - k_EBroadcastUploadResultNoConnection = 8, // broadcast client failed to connect to relay - k_EBroadcastUploadResultRelayFailed = 9, // relay dropped the upload - k_EBroadcastUploadResultSettingsChanged = 10, // the client changed broadcast settings - k_EBroadcastUploadResultMissingAudio = 11, // client failed to send audio data - k_EBroadcastUploadResultTooFarBehind = 12, // clients was too slow uploading - k_EBroadcastUploadResultTranscodeBehind = 13, // server failed to keep up with transcode - k_EBroadcastUploadResultNotAllowedToPlay = 14, // Broadcast does not have permissions to play game - k_EBroadcastUploadResultBusy = 15, // RTMP host to busy to take new broadcast stream, choose another - k_EBroadcastUploadResultBanned = 16, // Account banned from community broadcast - k_EBroadcastUploadResultAlreadyActive = 17, // We already already have an stream running. - k_EBroadcastUploadResultForcedOff = 18, // We explicitly shutting down a broadcast - k_EBroadcastUploadResultAudioBehind = 19, // Audio stream was too far behind video - k_EBroadcastUploadResultShutdown = 20, // Broadcast Server was shut down - k_EBroadcastUploadResultDisconnect = 21, // broadcast uploader TCP disconnected - k_EBroadcastUploadResultVideoInitFailed = 22, // invalid video settings - k_EBroadcastUploadResultAudioInitFailed = 23, // invalid audio settings - } - - //----------------------------------------------------------------------------- - // Purpose: Reasons a user may not use the Community Market. - // Used in MarketEligibilityResponse_t. - //----------------------------------------------------------------------------- - [FlagsAttribute] - public enum EMarketNotAllowedReasonFlags : int { - k_EMarketNotAllowedReason_None = 0, - - // A back-end call failed or something that might work again on retry - k_EMarketNotAllowedReason_TemporaryFailure = (1 << 0), - - // Disabled account - k_EMarketNotAllowedReason_AccountDisabled = (1 << 1), - - // Locked account - k_EMarketNotAllowedReason_AccountLockedDown = (1 << 2), - - // Limited account (no purchases) - k_EMarketNotAllowedReason_AccountLimited = (1 << 3), - - // The account is banned from trading items - k_EMarketNotAllowedReason_TradeBanned = (1 << 4), - - // Wallet funds aren't tradable because the user has had no purchase - // activity in the last year or has had no purchases prior to last month - k_EMarketNotAllowedReason_AccountNotTrusted = (1 << 5), - - // The user doesn't have Steam Guard enabled - k_EMarketNotAllowedReason_SteamGuardNotEnabled = (1 << 6), - - // The user has Steam Guard, but it hasn't been enabled for the required - // number of days - k_EMarketNotAllowedReason_SteamGuardOnlyRecentlyEnabled = (1 << 7), - - // The user has recently forgotten their password and reset it - k_EMarketNotAllowedReason_RecentPasswordReset = (1 << 8), - - // The user has recently funded his or her wallet with a new payment method - k_EMarketNotAllowedReason_NewPaymentMethod = (1 << 9), - - // An invalid cookie was sent by the user - k_EMarketNotAllowedReason_InvalidCookie = (1 << 10), - - // The user has Steam Guard, but is using a new computer or web browser - k_EMarketNotAllowedReason_UsingNewDevice = (1 << 11), - - // The user has recently refunded a store purchase by his or herself - k_EMarketNotAllowedReason_RecentSelfRefund = (1 << 12), - - // The user has recently funded his or her wallet with a new payment method that cannot be verified - k_EMarketNotAllowedReason_NewPaymentMethodCannotBeVerified = (1 << 13), - - // Not only is the account not trusted, but they have no recent purchases at all - k_EMarketNotAllowedReason_NoRecentPurchases = (1 << 14), - - // User accepted a wallet gift that was recently purchased - k_EMarketNotAllowedReason_AcceptedWalletGift = (1 << 15), - } - - // - // describes XP / progress restrictions to apply for games with duration control / - // anti-indulgence enabled for minor Steam China users. - // - // WARNING: DO NOT RENUMBER - public enum EDurationControlProgress : int { - k_EDurationControlProgress_Full = 0, // Full progress - k_EDurationControlProgress_Half = 1, // deprecated - XP or persistent rewards should be halved - k_EDurationControlProgress_None = 2, // deprecated - XP or persistent rewards should be stopped - - k_EDurationControl_ExitSoon_3h = 3, // allowed 3h time since 5h gap/break has elapsed, game should exit - steam will terminate the game soon - k_EDurationControl_ExitSoon_5h = 4, // allowed 5h time in calendar day has elapsed, game should exit - steam will terminate the game soon - k_EDurationControl_ExitSoon_Night = 5, // game running after day period, game should exit - steam will terminate the game soon - } - - // - // describes which notification timer has expired, for steam china duration control feature - // - // WARNING: DO NOT RENUMBER - public enum EDurationControlNotification : int { - k_EDurationControlNotification_None = 0, // just informing you about progress, no notification to show - k_EDurationControlNotification_1Hour = 1, // "you've been playing for N hours" - - k_EDurationControlNotification_3Hours = 2, // deprecated - "you've been playing for 3 hours; take a break" - k_EDurationControlNotification_HalfProgress = 3,// deprecated - "your XP / progress is half normal" - k_EDurationControlNotification_NoProgress = 4, // deprecated - "your XP / progress is zero" - - k_EDurationControlNotification_ExitSoon_3h = 5, // allowed 3h time since 5h gap/break has elapsed, game should exit - steam will terminate the game soon - k_EDurationControlNotification_ExitSoon_5h = 6, // allowed 5h time in calendar day has elapsed, game should exit - steam will terminate the game soon - k_EDurationControlNotification_ExitSoon_Night = 7,// game running after day period, game should exit - steam will terminate the game soon - } - - // - // Specifies a game's online state in relation to duration control - // - public enum EDurationControlOnlineState : int { - k_EDurationControlOnlineState_Invalid = 0, // nil value - k_EDurationControlOnlineState_Offline = 1, // currently in offline play - single-player, offline co-op, etc. - k_EDurationControlOnlineState_Online = 2, // currently in online play - k_EDurationControlOnlineState_OnlineHighPri = 3, // currently in online play and requests not to be interrupted - } - - public enum EBetaBranchFlags : int { - k_EBetaBranch_None = 0, - k_EBetaBranch_Default = 1, // this is the default branch ("public") - k_EBetaBranch_Available = 2, // this branch can be selected (available) - k_EBetaBranch_Private = 4, // this is a private branch (password protected) - k_EBetaBranch_Selected = 8, // this is the currently selected branch (active) - k_EBetaBranch_Installed = 16, // this is the currently installed branch (mounted) - } - - public enum EGameSearchErrorCode_t : int { - k_EGameSearchErrorCode_OK = 1, - k_EGameSearchErrorCode_Failed_Search_Already_In_Progress = 2, - k_EGameSearchErrorCode_Failed_No_Search_In_Progress = 3, - k_EGameSearchErrorCode_Failed_Not_Lobby_Leader = 4, // if not the lobby leader can not call SearchForGameWithLobby - k_EGameSearchErrorCode_Failed_No_Host_Available = 5, // no host is available that matches those search params - k_EGameSearchErrorCode_Failed_Search_Params_Invalid = 6, // search params are invalid - k_EGameSearchErrorCode_Failed_Offline = 7, // offline, could not communicate with server - k_EGameSearchErrorCode_Failed_NotAuthorized = 8, // either the user or the application does not have priveledges to do this - k_EGameSearchErrorCode_Failed_Unknown_Error = 9, // unknown error - } - - public enum EPlayerResult_t : int { - k_EPlayerResultFailedToConnect = 1, // failed to connect after confirming - k_EPlayerResultAbandoned = 2, // quit game without completing it - k_EPlayerResultKicked = 3, // kicked by other players/moderator/server rules - k_EPlayerResultIncomplete = 4, // player stayed to end but game did not conclude successfully ( nofault to player ) - k_EPlayerResultCompleted = 5, // player completed game - } - - public enum ESteamIPv6ConnectivityProtocol : int { - k_ESteamIPv6ConnectivityProtocol_Invalid = 0, - k_ESteamIPv6ConnectivityProtocol_HTTP = 1, // because a proxy may make this different than other protocols - k_ESteamIPv6ConnectivityProtocol_UDP = 2, // test UDP connectivity. Uses a port that is commonly needed for other Steam stuff. If UDP works, TCP probably works. - } - - // For the above transport protocol, what do we think the local machine's connectivity to the internet over ipv6 is like - public enum ESteamIPv6ConnectivityState : int { - k_ESteamIPv6ConnectivityState_Unknown = 0, // We haven't run a test yet - k_ESteamIPv6ConnectivityState_Good = 1, // We have recently been able to make a request on ipv6 for the given protocol - k_ESteamIPv6ConnectivityState_Bad = 2, // We failed to make a request, either because this machine has no ipv6 address assigned, or it has no upstream connectivity - } - - // HTTP related types - // This enum is used in client API methods, do not re-number existing values. - public enum EHTTPMethod : int { - k_EHTTPMethodInvalid = 0, - k_EHTTPMethodGET, - k_EHTTPMethodHEAD, - k_EHTTPMethodPOST, - k_EHTTPMethodPUT, - k_EHTTPMethodDELETE, - k_EHTTPMethodOPTIONS, - k_EHTTPMethodPATCH, - - // The remaining HTTP methods are not yet supported, per rfc2616 section 5.1.1 only GET and HEAD are required for - // a compliant general purpose server. We'll likely add more as we find uses for them. - - // k_EHTTPMethodTRACE, - // k_EHTTPMethodCONNECT - } - - // HTTP Status codes that the server can send in response to a request, see rfc2616 section 10.3 for descriptions - // of each of these. - public enum EHTTPStatusCode : int { - // Invalid status code (this isn't defined in HTTP, used to indicate unset in our code) - k_EHTTPStatusCodeInvalid = 0, - - // Informational codes - k_EHTTPStatusCode100Continue = 100, - k_EHTTPStatusCode101SwitchingProtocols = 101, - - // Success codes - k_EHTTPStatusCode200OK = 200, - k_EHTTPStatusCode201Created = 201, - k_EHTTPStatusCode202Accepted = 202, - k_EHTTPStatusCode203NonAuthoritative = 203, - k_EHTTPStatusCode204NoContent = 204, - k_EHTTPStatusCode205ResetContent = 205, - k_EHTTPStatusCode206PartialContent = 206, - - // Redirection codes - k_EHTTPStatusCode300MultipleChoices = 300, - k_EHTTPStatusCode301MovedPermanently = 301, - k_EHTTPStatusCode302Found = 302, - k_EHTTPStatusCode303SeeOther = 303, - k_EHTTPStatusCode304NotModified = 304, - k_EHTTPStatusCode305UseProxy = 305, - //k_EHTTPStatusCode306Unused = 306, (used in old HTTP spec, now unused in 1.1) - k_EHTTPStatusCode307TemporaryRedirect = 307, - k_EHTTPStatusCode308PermanentRedirect = 308, - - // Error codes - k_EHTTPStatusCode400BadRequest = 400, - k_EHTTPStatusCode401Unauthorized = 401, // You probably want 403 or something else. 401 implies you're sending a WWW-Authenticate header and the client can sent an Authorization header in response. - k_EHTTPStatusCode402PaymentRequired = 402, // This is reserved for future HTTP specs, not really supported by clients - k_EHTTPStatusCode403Forbidden = 403, - k_EHTTPStatusCode404NotFound = 404, - k_EHTTPStatusCode405MethodNotAllowed = 405, - k_EHTTPStatusCode406NotAcceptable = 406, - k_EHTTPStatusCode407ProxyAuthRequired = 407, - k_EHTTPStatusCode408RequestTimeout = 408, - k_EHTTPStatusCode409Conflict = 409, - k_EHTTPStatusCode410Gone = 410, - k_EHTTPStatusCode411LengthRequired = 411, - k_EHTTPStatusCode412PreconditionFailed = 412, - k_EHTTPStatusCode413RequestEntityTooLarge = 413, - k_EHTTPStatusCode414RequestURITooLong = 414, - k_EHTTPStatusCode415UnsupportedMediaType = 415, - k_EHTTPStatusCode416RequestedRangeNotSatisfiable = 416, - k_EHTTPStatusCode417ExpectationFailed = 417, - k_EHTTPStatusCode4xxUnknown = 418, // 418 is reserved, so we'll use it to mean unknown - k_EHTTPStatusCode429TooManyRequests = 429, - k_EHTTPStatusCode444ConnectionClosed = 444, // nginx only? - - // Server error codes - k_EHTTPStatusCode500InternalServerError = 500, - k_EHTTPStatusCode501NotImplemented = 501, - k_EHTTPStatusCode502BadGateway = 502, - k_EHTTPStatusCode503ServiceUnavailable = 503, - k_EHTTPStatusCode504GatewayTimeout = 504, - k_EHTTPStatusCode505HTTPVersionNotSupported = 505, - k_EHTTPStatusCode5xxUnknown = 599, - } - - /// Describe the status of a particular network resource - public enum ESteamNetworkingAvailability : int { - // Negative values indicate a problem. - // - // In general, we will not automatically retry unless you take some action that - // depends on of requests this resource, such as querying the status, attempting - // to initiate a connection, receive a connection, etc. If you do not take any - // action at all, we do not automatically retry in the background. - k_ESteamNetworkingAvailability_CannotTry = -102, // A dependent resource is missing, so this service is unavailable. (E.g. we cannot talk to routers because Internet is down or we don't have the network config.) - k_ESteamNetworkingAvailability_Failed = -101, // We have tried for enough time that we would expect to have been successful by now. We have never been successful - k_ESteamNetworkingAvailability_Previously = -100, // We tried and were successful at one time, but now it looks like we have a problem - - k_ESteamNetworkingAvailability_Retrying = -10, // We previously failed and are currently retrying - - // Not a problem, but not ready either - k_ESteamNetworkingAvailability_NeverTried = 1, // We don't know because we haven't ever checked/tried - k_ESteamNetworkingAvailability_Waiting = 2, // We're waiting on a dependent resource to be acquired. (E.g. we cannot obtain a cert until we are logged into Steam. We cannot measure latency to relays until we have the network config.) - k_ESteamNetworkingAvailability_Attempting = 3, // We're actively trying now, but are not yet successful. - - k_ESteamNetworkingAvailability_Current = 100, // Resource is online/available - - - k_ESteamNetworkingAvailability_Unknown = 0, // Internal dummy/sentinel, or value is not applicable in this context - k_ESteamNetworkingAvailability__Force32bit = 0x7fffffff, - } - - // - // Describing network hosts - // - /// Different methods of describing the identity of a network host - public enum ESteamNetworkingIdentityType : int { - // Dummy/empty/invalid. - // Please note that if we parse a string that we don't recognize - // but that appears reasonable, we will NOT use this type. Instead - // we'll use k_ESteamNetworkingIdentityType_UnknownType. - k_ESteamNetworkingIdentityType_Invalid = 0, - - // - // Basic platform-specific identifiers. - // - k_ESteamNetworkingIdentityType_SteamID = 16, // 64-bit CSteamID - k_ESteamNetworkingIdentityType_XboxPairwiseID = 17, // Publisher-specific user identity, as string - k_ESteamNetworkingIdentityType_SonyPSN = 18, // 64-bit ID - - // - // Special identifiers. - // - - // Use their IP address (and port) as their "identity". - // These types of identities are always unauthenticated. - // They are useful for porting plain sockets code, and other - // situations where you don't care about authentication. In this - // case, the local identity will be "localhost", - // and the remote address will be their network address. - // - // We use the same type for either IPv4 or IPv6, and - // the address is always store as IPv6. We use IPv4 - // mapped addresses to handle IPv4. - k_ESteamNetworkingIdentityType_IPAddress = 1, - - // Generic string/binary blobs. It's up to your app to interpret this. - // This library can tell you if the remote host presented a certificate - // signed by somebody you have chosen to trust, with this identity on it. - // It's up to you to ultimately decide what this identity means. - k_ESteamNetworkingIdentityType_GenericString = 2, - k_ESteamNetworkingIdentityType_GenericBytes = 3, - - // This identity type is used when we parse a string that looks like is a - // valid identity, just of a kind that we don't recognize. In this case, we - // can often still communicate with the peer! Allowing such identities - // for types we do not recognize useful is very useful for forward - // compatibility. - k_ESteamNetworkingIdentityType_UnknownType = 4, - - // Make sure this enum is stored in an int. - k_ESteamNetworkingIdentityType__Force32bit = 0x7fffffff, - } - - /// "Fake IPs" are assigned to hosts, to make it easier to interface with - /// older code that assumed all hosts will have an IPv4 address - public enum ESteamNetworkingFakeIPType : int { - k_ESteamNetworkingFakeIPType_Invalid, // Error, argument was not even an IP address, etc. - k_ESteamNetworkingFakeIPType_NotFake, // Argument was a valid IP, but was not from the reserved "fake" range - k_ESteamNetworkingFakeIPType_GlobalIPv4, // Globally unique (for a given app) IPv4 address. Address space managed by Steam - k_ESteamNetworkingFakeIPType_LocalIPv4, // Locally unique IPv4 address. Address space managed by the local process. For internal use only; should not be shared! - - k_ESteamNetworkingFakeIPType__Force32Bit = 0x7fffffff - } - - // - // Connection status - // - /// High level connection status - public enum ESteamNetworkingConnectionState : int { - - /// Dummy value used to indicate an error condition in the API. - /// Specified connection doesn't exist or has already been closed. - k_ESteamNetworkingConnectionState_None = 0, - - /// We are trying to establish whether peers can talk to each other, - /// whether they WANT to talk to each other, perform basic auth, - /// and exchange crypt keys. - /// - /// - For connections on the "client" side (initiated locally): - /// We're in the process of trying to establish a connection. - /// Depending on the connection type, we might not know who they are. - /// Note that it is not possible to tell if we are waiting on the - /// network to complete handshake packets, or for the application layer - /// to accept the connection. - /// - /// - For connections on the "server" side (accepted through listen socket): - /// We have completed some basic handshake and the client has presented - /// some proof of identity. The connection is ready to be accepted - /// using AcceptConnection(). - /// - /// In either case, any unreliable packets sent now are almost certain - /// to be dropped. Attempts to receive packets are guaranteed to fail. - /// You may send messages if the send mode allows for them to be queued. - /// but if you close the connection before the connection is actually - /// established, any queued messages will be discarded immediately. - /// (We will not attempt to flush the queue and confirm delivery to the - /// remote host, which ordinarily happens when a connection is closed.) - k_ESteamNetworkingConnectionState_Connecting = 1, - - /// Some connection types use a back channel or trusted 3rd party - /// for earliest communication. If the server accepts the connection, - /// then these connections switch into the rendezvous state. During this - /// state, we still have not yet established an end-to-end route (through - /// the relay network), and so if you send any messages unreliable, they - /// are going to be discarded. - k_ESteamNetworkingConnectionState_FindingRoute = 2, - - /// We've received communications from our peer (and we know - /// who they are) and are all good. If you close the connection now, - /// we will make our best effort to flush out any reliable sent data that - /// has not been acknowledged by the peer. (But note that this happens - /// from within the application process, so unlike a TCP connection, you are - /// not totally handing it off to the operating system to deal with it.) - k_ESteamNetworkingConnectionState_Connected = 3, - - /// Connection has been closed by our peer, but not closed locally. - /// The connection still exists from an API perspective. You must close the - /// handle to free up resources. If there are any messages in the inbound queue, - /// you may retrieve them. Otherwise, nothing may be done with the connection - /// except to close it. - /// - /// This stats is similar to CLOSE_WAIT in the TCP state machine. - k_ESteamNetworkingConnectionState_ClosedByPeer = 4, - - /// A disruption in the connection has been detected locally. (E.g. timeout, - /// local internet connection disrupted, etc.) - /// - /// The connection still exists from an API perspective. You must close the - /// handle to free up resources. - /// - /// Attempts to send further messages will fail. Any remaining received messages - /// in the queue are available. - k_ESteamNetworkingConnectionState_ProblemDetectedLocally = 5, - - // - // The following values are used internally and will not be returned by any API. - // We document them here to provide a little insight into the state machine that is used - // under the hood. - // - - /// We've disconnected on our side, and from an API perspective the connection is closed. - /// No more data may be sent or received. All reliable data has been flushed, or else - /// we've given up and discarded it. We do not yet know for sure that the peer knows - /// the connection has been closed, however, so we're just hanging around so that if we do - /// get a packet from them, we can send them the appropriate packets so that they can - /// know why the connection was closed (and not have to rely on a timeout, which makes - /// it appear as if something is wrong). - k_ESteamNetworkingConnectionState_FinWait = -1, - - /// We've disconnected on our side, and from an API perspective the connection is closed. - /// No more data may be sent or received. From a network perspective, however, on the wire, - /// we have not yet given any indication to the peer that the connection is closed. - /// We are in the process of flushing out the last bit of reliable data. Once that is done, - /// we will inform the peer that the connection has been closed, and transition to the - /// FinWait state. - /// - /// Note that no indication is given to the remote host that we have closed the connection, - /// until the data has been flushed. If the remote host attempts to send us data, we will - /// do whatever is necessary to keep the connection alive until it can be closed properly. - /// But in fact the data will be discarded, since there is no way for the application to - /// read it back. Typically this is not a problem, as application protocols that utilize - /// the lingering functionality are designed for the remote host to wait for the response - /// before sending any more data. - k_ESteamNetworkingConnectionState_Linger = -2, - - /// Connection is completely inactive and ready to be destroyed - k_ESteamNetworkingConnectionState_Dead = -3, - - k_ESteamNetworkingConnectionState__Force32Bit = 0x7fffffff - } - - /// Enumerate various causes of connection termination. These are designed to work similar - /// to HTTP error codes: the numeric range gives you a rough classification as to the source - /// of the problem. - public enum ESteamNetConnectionEnd : int { - // Invalid/sentinel value - k_ESteamNetConnectionEnd_Invalid = 0, - - // - // Application codes. These are the values you will pass to - // ISteamNetworkingSockets::CloseConnection. You can use these codes if - // you want to plumb through application-specific reason codes. If you don't - // need this facility, feel free to always pass - // k_ESteamNetConnectionEnd_App_Generic. - // - // The distinction between "normal" and "exceptional" termination is - // one you may use if you find useful, but it's not necessary for you - // to do so. The only place where we distinguish between normal and - // exceptional is in connection analytics. If a significant - // proportion of connections terminates in an exceptional manner, - // this can trigger an alert. - // - - // 1xxx: Application ended the connection in a "usual" manner. - // E.g.: user intentionally disconnected from the server, - // gameplay ended normally, etc - k_ESteamNetConnectionEnd_App_Min = 1000, - k_ESteamNetConnectionEnd_App_Generic = k_ESteamNetConnectionEnd_App_Min, - // Use codes in this range for "normal" disconnection - k_ESteamNetConnectionEnd_App_Max = 1999, - - // 2xxx: Application ended the connection in some sort of exceptional - // or unusual manner that might indicate a bug or configuration - // issue. - // - k_ESteamNetConnectionEnd_AppException_Min = 2000, - k_ESteamNetConnectionEnd_AppException_Generic = k_ESteamNetConnectionEnd_AppException_Min, - // Use codes in this range for "unusual" disconnection - k_ESteamNetConnectionEnd_AppException_Max = 2999, - - // - // System codes. These will be returned by the system when - // the connection state is k_ESteamNetworkingConnectionState_ClosedByPeer - // or k_ESteamNetworkingConnectionState_ProblemDetectedLocally. It is - // illegal to pass a code in this range to ISteamNetworkingSockets::CloseConnection - // - - // 3xxx: Connection failed or ended because of problem with the - // local host or their connection to the Internet. - k_ESteamNetConnectionEnd_Local_Min = 3000, - - // You cannot do what you want to do because you're running in offline mode. - k_ESteamNetConnectionEnd_Local_OfflineMode = 3001, - - // We're having trouble contacting many (perhaps all) relays. - // Since it's unlikely that they all went offline at once, the best - // explanation is that we have a problem on our end. Note that we don't - // bother distinguishing between "many" and "all", because in practice, - // it takes time to detect a connection problem, and by the time - // the connection has timed out, we might not have been able to - // actively probe all of the relay clusters, even if we were able to - // contact them at one time. So this code just means that: - // - // * We don't have any recent successful communication with any relay. - // * We have evidence of recent failures to communicate with multiple relays. - k_ESteamNetConnectionEnd_Local_ManyRelayConnectivity = 3002, - - // A hosted server is having trouble talking to the relay - // that the client was using, so the problem is most likely - // on our end - k_ESteamNetConnectionEnd_Local_HostedServerPrimaryRelay = 3003, - - // We're not able to get the SDR network config. This is - // *almost* always a local issue, since the network config - // comes from the CDN, which is pretty darn reliable. - k_ESteamNetConnectionEnd_Local_NetworkConfig = 3004, - - // Steam rejected our request because we don't have rights - // to do this. - k_ESteamNetConnectionEnd_Local_Rights = 3005, - - // ICE P2P rendezvous failed because we were not able to - // determine our "public" address (e.g. reflexive address via STUN) - // - // If relay fallback is available (it always is on Steam), then - // this is only used internally and will not be returned as a high - // level failure. - k_ESteamNetConnectionEnd_Local_P2P_ICE_NoPublicAddresses = 3006, - - k_ESteamNetConnectionEnd_Local_Max = 3999, - - // 4xxx: Connection failed or ended, and it appears that the - // cause does NOT have to do with the local host or their - // connection to the Internet. It could be caused by the - // remote host, or it could be somewhere in between. - k_ESteamNetConnectionEnd_Remote_Min = 4000, - - // The connection was lost, and as far as we can tell our connection - // to relevant services (relays) has not been disrupted. This doesn't - // mean that the problem is "their fault", it just means that it doesn't - // appear that we are having network issues on our end. - k_ESteamNetConnectionEnd_Remote_Timeout = 4001, - - // Something was invalid with the cert or crypt handshake - // info you gave me, I don't understand or like your key types, - // etc. - k_ESteamNetConnectionEnd_Remote_BadCrypt = 4002, - - // You presented me with a cert that was I was able to parse - // and *technically* we could use encrypted communication. - // But there was a problem that prevents me from checking your identity - // or ensuring that somebody int he middle can't observe our communication. - // E.g.: - the CA key was missing (and I don't accept unsigned certs) - // - The CA key isn't one that I trust, - // - The cert doesn't was appropriately restricted by app, user, time, data center, etc. - // - The cert wasn't issued to you. - // - etc - k_ESteamNetConnectionEnd_Remote_BadCert = 4003, - - // These will never be returned - //k_ESteamNetConnectionEnd_Remote_NotLoggedIn_DEPRECATED = 4004, - //k_ESteamNetConnectionEnd_Remote_NotRunningApp_DEPRECATED = 4005, - - // Something wrong with the protocol version you are using. - // (Probably the code you are running is too old.) - k_ESteamNetConnectionEnd_Remote_BadProtocolVersion = 4006, - - // NAT punch failed failed because we never received any public - // addresses from the remote host. (But we did receive some - // signals form them.) - // - // If relay fallback is available (it always is on Steam), then - // this is only used internally and will not be returned as a high - // level failure. - k_ESteamNetConnectionEnd_Remote_P2P_ICE_NoPublicAddresses = 4007, - - k_ESteamNetConnectionEnd_Remote_Max = 4999, - - // 5xxx: Connection failed for some other reason. - k_ESteamNetConnectionEnd_Misc_Min = 5000, - - // A failure that isn't necessarily the result of a software bug, - // but that should happen rarely enough that it isn't worth specifically - // writing UI or making a localized message for. - // The debug string should contain further details. - k_ESteamNetConnectionEnd_Misc_Generic = 5001, - - // Generic failure that is most likely a software bug. - k_ESteamNetConnectionEnd_Misc_InternalError = 5002, - - // The connection to the remote host timed out, but we - // don't know if the problem is on our end, in the middle, - // or on their end. - k_ESteamNetConnectionEnd_Misc_Timeout = 5003, - - //k_ESteamNetConnectionEnd_Misc_RelayConnectivity_DEPRECATED = 5004, - - // There's some trouble talking to Steam. - k_ESteamNetConnectionEnd_Misc_SteamConnectivity = 5005, - - // A server in a dedicated hosting situation has no relay sessions - // active with which to talk back to a client. (It's the client's - // job to open and maintain those sessions.) - k_ESteamNetConnectionEnd_Misc_NoRelaySessionsToClient = 5006, - - // While trying to initiate a connection, we never received - // *any* communication from the peer. - //k_ESteamNetConnectionEnd_Misc_ServerNeverReplied = 5007, - - // P2P rendezvous failed in a way that we don't have more specific - // information - k_ESteamNetConnectionEnd_Misc_P2P_Rendezvous = 5008, - - // NAT punch failed, probably due to NAT/firewall configuration. - // - // If relay fallback is available (it always is on Steam), then - // this is only used internally and will not be returned as a high - // level failure. - k_ESteamNetConnectionEnd_Misc_P2P_NAT_Firewall = 5009, - - // Our peer replied that it has no record of the connection. - // This should not happen ordinarily, but can happen in a few - // exception cases: - // - // - This is an old connection, and the peer has already cleaned - // up and forgotten about it. (Perhaps it timed out and they - // closed it and were not able to communicate this to us.) - // - A bug or internal protocol error has caused us to try to - // talk to the peer about the connection before we received - // confirmation that the peer has accepted the connection. - // - The peer thinks that we have closed the connection for some - // reason (perhaps a bug), and believes that is it is - // acknowledging our closure. - k_ESteamNetConnectionEnd_Misc_PeerSentNoConnection = 5010, - - k_ESteamNetConnectionEnd_Misc_Max = 5999, - - k_ESteamNetConnectionEnd__Force32Bit = 0x7fffffff - } - - // - // Configuration values - // - /// Configuration values can be applied to different types of objects. - public enum ESteamNetworkingConfigScope : int { - - /// Get/set global option, or defaults. Even options that apply to more specific scopes - /// have global scope, and you may be able to just change the global defaults. If you - /// need different settings per connection (for example), then you will need to set those - /// options at the more specific scope. - k_ESteamNetworkingConfig_Global = 1, - - /// Some options are specific to a particular interface. Note that all connection - /// and listen socket settings can also be set at the interface level, and they will - /// apply to objects created through those interfaces. - k_ESteamNetworkingConfig_SocketsInterface = 2, - - /// Options for a listen socket. Listen socket options can be set at the interface layer, - /// if you have multiple listen sockets and they all use the same options. - /// You can also set connection options on a listen socket, and they set the defaults - /// for all connections accepted through this listen socket. (They will be used if you don't - /// set a connection option.) - k_ESteamNetworkingConfig_ListenSocket = 3, - - /// Options for a specific connection. - k_ESteamNetworkingConfig_Connection = 4, - - k_ESteamNetworkingConfigScope__Force32Bit = 0x7fffffff - } - - // Different configuration values have different data types - public enum ESteamNetworkingConfigDataType : int { - k_ESteamNetworkingConfig_Int32 = 1, - k_ESteamNetworkingConfig_Int64 = 2, - k_ESteamNetworkingConfig_Float = 3, - k_ESteamNetworkingConfig_String = 4, - k_ESteamNetworkingConfig_Ptr = 5, - - k_ESteamNetworkingConfigDataType__Force32Bit = 0x7fffffff - } - - /// Configuration options - public enum ESteamNetworkingConfigValue : int { - k_ESteamNetworkingConfig_Invalid = 0, - - // - // Connection options - // - - /// [connection int32] Timeout value (in ms) to use when first connecting - k_ESteamNetworkingConfig_TimeoutInitial = 24, - - /// [connection int32] Timeout value (in ms) to use after connection is established - k_ESteamNetworkingConfig_TimeoutConnected = 25, - - /// [connection int32] Upper limit of buffered pending bytes to be sent, - /// if this is reached SendMessage will return k_EResultLimitExceeded - /// Default is 512k (524288 bytes) - k_ESteamNetworkingConfig_SendBufferSize = 9, - - /// [connection int32] Upper limit on total size (in bytes) of received messages - /// that will be buffered waiting to be processed by the application. If this limit - /// is exceeded, packets will be dropped. This is to protect us from a malicious - /// peer flooding us with messages faster than we can process them. - /// - /// This must be bigger than k_ESteamNetworkingConfig_RecvMaxMessageSize - k_ESteamNetworkingConfig_RecvBufferSize = 47, - - /// [connection int32] Upper limit on the number of received messages that will - /// that will be buffered waiting to be processed by the application. If this limit - /// is exceeded, packets will be dropped. This is to protect us from a malicious - /// peer flooding us with messages faster than we can pull them off the wire. - k_ESteamNetworkingConfig_RecvBufferMessages = 48, - - /// [connection int32] Maximum message size that we are willing to receive. - /// if a client attempts to send us a message larger than this, the connection - /// will be immediately closed. - /// - /// Default is 512k (524288 bytes). Note that the peer needs to be able to - /// send a message this big. (See k_cbMaxSteamNetworkingSocketsMessageSizeSend.) - k_ESteamNetworkingConfig_RecvMaxMessageSize = 49, - - /// [connection int32] Max number of message segments that can be received - /// in a single UDP packet. While decoding a packet, if the number of segments - /// exceeds this, we will abort further packet processing. - /// - /// The default is effectively unlimited. If you know that you very rarely - /// send small packets, you can protect yourself from malicious senders by - /// lowering this number. - /// - /// In particular, if you are NOT using the reliability layer and are only using - /// SteamNetworkingSockets for datagram transport, setting this to a very low - /// number may be beneficial. (We recommend a value of 2.) Make sure your sender - /// disables Nagle! - k_ESteamNetworkingConfig_RecvMaxSegmentsPerPacket = 50, - - /// [connection int64] Get/set userdata as a configuration option. - /// The default value is -1. You may want to set the user data as - /// a config value, instead of using ISteamNetworkingSockets::SetConnectionUserData - /// in two specific instances: - /// - /// - You wish to set the userdata atomically when creating - /// an outbound connection, so that the userdata is filled in properly - /// for any callbacks that happen. However, note that this trick - /// only works for connections initiated locally! For incoming - /// connections, multiple state transitions may happen and - /// callbacks be queued, before you are able to service the first - /// callback! Be careful! - /// - /// - You can set the default userdata for all newly created connections - /// by setting this value at a higher level (e.g. on the listen - /// socket or at the global level.) Then this default - /// value will be inherited when the connection is created. - /// This is useful in case -1 is a valid userdata value, and you - /// wish to use something else as the default value so you can - /// tell if it has been set or not. - /// - /// HOWEVER: once a connection is created, the effective value is - /// then bound to the connection. Unlike other connection options, - /// if you change it again at a higher level, the new value will not - /// be inherited by connections. - /// - /// Using the userdata field in callback structs is not advised because - /// of tricky race conditions. Instead, you might try one of these methods: - /// - /// - Use a separate map with the HSteamNetConnection as the key. - /// - Fetch the userdata from the connection in your callback - /// using ISteamNetworkingSockets::GetConnectionUserData, to - // ensure you have the current value. - k_ESteamNetworkingConfig_ConnectionUserData = 40, - - /// [connection int32] Minimum/maximum send rate clamp, in bytes/sec. - /// At the time of this writing these two options should always be set to - /// the same value, to manually configure a specific send rate. The default - /// value is 256K. Eventually we hope to have the library estimate the bandwidth - /// of the channel and set the send rate to that estimated bandwidth, and these - /// values will only set limits on that send rate. - k_ESteamNetworkingConfig_SendRateMin = 10, - k_ESteamNetworkingConfig_SendRateMax = 11, - - /// [connection int32] Nagle time, in microseconds. When SendMessage is called, if - /// the outgoing message is less than the size of the MTU, it will be - /// queued for a delay equal to the Nagle timer value. This is to ensure - /// that if the application sends several small messages rapidly, they are - /// coalesced into a single packet. - /// See historical RFC 896. Value is in microseconds. - /// Default is 5000us (5ms). - k_ESteamNetworkingConfig_NagleTime = 12, - - /// [connection int32] Don't automatically fail IP connections that don't have - /// strong auth. On clients, this means we will attempt the connection even if - /// we don't know our identity or can't get a cert. On the server, it means that - /// we won't automatically reject a connection due to a failure to authenticate. - /// (You can examine the incoming connection and decide whether to accept it.) - /// - /// 0: Don't attempt or accept unauthorized connections - /// 1: Attempt authorization when connecting, and allow unauthorized peers, but emit warnings - /// 2: don't attempt authentication, or complain if peer is unauthenticated - /// - /// This is a dev configuration value, and you should not let users modify it in - /// production. - k_ESteamNetworkingConfig_IP_AllowWithoutAuth = 23, - - /// [connection int32] The same as IP_AllowWithoutAuth, but will only apply - /// for connections to/from localhost addresses. Whichever value is larger - /// (more permissive) will be used. - k_ESteamNetworkingConfig_IPLocalHost_AllowWithoutAuth = 52, - - /// [connection int32] Do not send UDP packets with a payload of - /// larger than N bytes. If you set this, k_ESteamNetworkingConfig_MTU_DataSize - /// is automatically adjusted - k_ESteamNetworkingConfig_MTU_PacketSize = 32, - - /// [connection int32] (read only) Maximum message size you can send that - /// will not fragment, based on k_ESteamNetworkingConfig_MTU_PacketSize - k_ESteamNetworkingConfig_MTU_DataSize = 33, - - /// [connection int32] Allow unencrypted (and unauthenticated) communication. - /// 0: Not allowed (the default) - /// 1: Allowed, but prefer encrypted - /// 2: Allowed, and preferred - /// 3: Required. (Fail the connection if the peer requires encryption.) - /// - /// This is a dev configuration value, since its purpose is to disable encryption. - /// You should not let users modify it in production. (But note that it requires - /// the peer to also modify their value in order for encryption to be disabled.) - k_ESteamNetworkingConfig_Unencrypted = 34, - - /// [connection int32] Set this to 1 on outbound connections and listen sockets, - /// to enable "symmetric connect mode", which is useful in the following - /// common peer-to-peer use case: - /// - /// - The two peers are "equal" to each other. (Neither is clearly the "client" - /// or "server".) - /// - Either peer may initiate the connection, and indeed they may do this - /// at the same time - /// - The peers only desire a single connection to each other, and if both - /// peers initiate connections simultaneously, a protocol is needed for them - /// to resolve the conflict, so that we end up with a single connection. - /// - /// This use case is both common, and involves subtle race conditions and tricky - /// pitfalls, which is why the API has support for dealing with it. - /// - /// If an incoming connection arrives on a listen socket or via custom signaling, - /// and the application has not attempted to make a matching outbound connection - /// in symmetric mode, then the incoming connection can be accepted as usual. - /// A "matching" connection means that the relevant endpoint information matches. - /// (At the time this comment is being written, this is only supported for P2P - /// connections, which means that the peer identities must match, and the virtual - /// port must match. At a later time, symmetric mode may be supported for other - /// connection types.) - /// - /// If connections are initiated by both peers simultaneously, race conditions - /// can arise, but fortunately, most of them are handled internally and do not - /// require any special awareness from the application. However, there - /// is one important case that application code must be aware of: - /// If application code attempts an outbound connection using a ConnectXxx - /// function in symmetric mode, and a matching incoming connection is already - /// waiting on a listen socket, then instead of forming a new connection, - /// the ConnectXxx call will accept the existing incoming connection, and return - /// a connection handle to this accepted connection. - /// IMPORTANT: in this case, a SteamNetConnectionStatusChangedCallback_t - /// has probably *already* been posted to the queue for the incoming connection! - /// (Once callbacks are posted to the queue, they are not modified.) It doesn't - /// matter if the callback has not been consumed by the app. Thus, application - /// code that makes use of symmetric connections must be aware that, when processing a - /// SteamNetConnectionStatusChangedCallback_t for an incoming connection, the - /// m_hConn may refer to a new connection that the app has has not - /// seen before (the usual case), but it may also refer to a connection that - /// has already been accepted implicitly through a call to Connect()! In this - /// case, AcceptConnection() will return k_EResultDuplicateRequest. - /// - /// Only one symmetric connection to a given peer (on a given virtual port) - /// may exist at any given time. If client code attempts to create a connection, - /// and a (live) connection already exists on the local host, then either the - /// existing connection will be accepted as described above, or the attempt - /// to create a new connection will fail. Furthermore, linger mode functionality - /// is not supported on symmetric connections. - /// - /// A more complicated race condition can arise if both peers initiate a connection - /// at roughly the same time. In this situation, each peer will receive an incoming - /// connection from the other peer, when the application code has already initiated - /// an outgoing connection to that peer. The peers must resolve this conflict and - /// decide who is going to act as the "server" and who will act as the "client". - /// Typically the application does not need to be aware of this case as it is handled - /// internally. On both sides, the will observe their outbound connection being - /// "accepted", although one of them one have been converted internally to act - /// as the "server". - /// - /// In general, symmetric mode should be all-or-nothing: do not mix symmetric - /// connections with a non-symmetric connection that it might possible "match" - /// with. If you use symmetric mode on any connections, then both peers should - /// use it on all connections, and the corresponding listen socket, if any. The - /// behaviour when symmetric and ordinary connections are mixed is not defined by - /// this API, and you should not rely on it. (This advice only applies when connections - /// might possibly "match". For example, it's OK to use all symmetric mode - /// connections on one virtual port, and all ordinary, non-symmetric connections - /// on a different virtual port, as there is no potential for ambiguity.) - /// - /// When using the feature, you should set it in the following situations on - /// applicable objects: - /// - /// - When creating an outbound connection using ConnectXxx function - /// - When creating a listen socket. (Note that this will automatically cause - /// any accepted connections to inherit the flag.) - /// - When using custom signaling, before accepting an incoming connection. - /// - /// Setting the flag on listen socket and accepted connections will enable the - /// API to automatically deal with duplicate incoming connections, even if the - /// local host has not made any outbound requests. (In general, such duplicate - /// requests from a peer are ignored internally and will not be visible to the - /// application code. The previous connection must be closed or resolved first.) - k_ESteamNetworkingConfig_SymmetricConnect = 37, - - /// [connection int32] For connection types that use "virtual ports", this can be used - /// to assign a local virtual port. For incoming connections, this will always be the - /// virtual port of the listen socket (or the port requested by the remote host if custom - /// signaling is used and the connection is accepted), and cannot be changed. For - /// connections initiated locally, the local virtual port will default to the same as the - /// requested remote virtual port, if you do not specify a different option when creating - /// the connection. The local port is only relevant for symmetric connections, when - /// determining if two connections "match." In this case, if you need the local and remote - /// port to differ, you can set this value. - /// - /// You can also read back this value on listen sockets. - /// - /// This value should not be read or written in any other context. - k_ESteamNetworkingConfig_LocalVirtualPort = 38, - - /// [connection int32] Enable Dual wifi band support for this connection - /// 0 = no, 1 = yes, 2 = simulate it for debugging, even if dual wifi not available - k_ESteamNetworkingConfig_DualWifi_Enable = 39, - - /// [connection int32] True to enable diagnostics reporting through - /// generic platform UI. (Only available on Steam.) - k_ESteamNetworkingConfig_EnableDiagnosticsUI = 46, - - /// [connection int32] Send of time-since-previous-packet values in each UDP packet. - /// This add a small amount of packet overhead but allows for detailed jitter measurements - /// to be made by the receiver. - /// - /// - 0: disables the sending - /// - 1: enables sending - /// - -1: (the default) Use the default for the connection type. For plain UDP connections, - /// this is disabled, and for relayed connections, it is enabled. Note that relays - /// always send the value. - k_ESteamNetworkingConfig_SendTimeSincePreviousPacket = 59, - - // - // Simulating network conditions - // - // These are global (not per-connection) because they apply at - // a relatively low UDP layer. - // - - /// [global float, 0--100] Randomly discard N pct of packets instead of sending/recv - /// This is a global option only, since it is applied at a low level - /// where we don't have much context - k_ESteamNetworkingConfig_FakePacketLoss_Send = 2, - k_ESteamNetworkingConfig_FakePacketLoss_Recv = 3, - - /// [global int32]. Delay all outbound/inbound packets by N ms - k_ESteamNetworkingConfig_FakePacketLag_Send = 4, - k_ESteamNetworkingConfig_FakePacketLag_Recv = 5, - - /// Simulated jitter/clumping. - /// - /// For each packet, a jitter value is determined (which may - /// be zero). This amount is added as extra delay to the - /// packet. When a subsequent packet is queued, it receives its - /// own random jitter amount from the current time. if this would - /// result in the packets being delivered out of order, the later - /// packet queue time is adjusted to happen after the first packet. - /// Thus simulating jitter by itself will not reorder packets, but it - /// can "clump" them. - /// - /// - Avg: A random jitter time is generated using an exponential - /// distribution using this value as the mean (ms). The default - /// is zero, which disables random jitter. - /// - Max: Limit the random jitter time to this value (ms). - /// - Pct: odds (0-100) that a random jitter value for the packet - /// will be generated. Otherwise, a jitter value of zero - /// is used, and the packet will only be delayed by the jitter - /// system if necessary to retain order, due to the jitter of a - /// previous packet. - /// - /// All values are [global float] - /// - /// Fake jitter is simulated after fake lag, but before reordering. - k_ESteamNetworkingConfig_FakePacketJitter_Send_Avg = 53, - k_ESteamNetworkingConfig_FakePacketJitter_Send_Max = 54, - k_ESteamNetworkingConfig_FakePacketJitter_Send_Pct = 55, - k_ESteamNetworkingConfig_FakePacketJitter_Recv_Avg = 56, - k_ESteamNetworkingConfig_FakePacketJitter_Recv_Max = 57, - k_ESteamNetworkingConfig_FakePacketJitter_Recv_Pct = 58, - - /// [global float] 0-100 Percentage of packets we will add additional - /// delay to. If other packet(s) are sent/received within this delay - /// window (that doesn't also randomly receive the same extra delay), - /// then the packets become reordered. - /// - /// This mechanism is primarily intended to generate out-of-order - /// packets. To simulate random jitter, use the FakePacketJitter. - /// Fake packet reordering is applied after fake lag and jitter - k_ESteamNetworkingConfig_FakePacketReorder_Send = 6, - k_ESteamNetworkingConfig_FakePacketReorder_Recv = 7, - - /// [global int32] Extra delay, in ms, to apply to reordered - /// packets. The same time value is used for sending and receiving. - k_ESteamNetworkingConfig_FakePacketReorder_Time = 8, - - /// [global float 0--100] Globally duplicate some percentage of packets. - k_ESteamNetworkingConfig_FakePacketDup_Send = 26, - k_ESteamNetworkingConfig_FakePacketDup_Recv = 27, - - /// [global int32] Amount of delay, in ms, to delay duplicated packets. - /// (We chose a random delay between 0 and this value) - k_ESteamNetworkingConfig_FakePacketDup_TimeMax = 28, - - /// [global int32] Trace every UDP packet, similar to Wireshark or tcpdump. - /// Value is max number of bytes to dump. -1 disables tracing. - // 0 only traces the info but no actual data bytes - k_ESteamNetworkingConfig_PacketTraceMaxBytes = 41, - - - // [global int32] Global UDP token bucket rate limits. - // "Rate" refers to the steady state rate. (Bytes/sec, the - // rate that tokens are put into the bucket.) "Burst" - // refers to the max amount that could be sent in a single - // burst. (In bytes, the max capacity of the bucket.) - // Rate=0 disables the limiter entirely, which is the default. - // Burst=0 disables burst. (This is not realistic. A - // burst of at least 4K is recommended; the default is higher.) - k_ESteamNetworkingConfig_FakeRateLimit_Send_Rate = 42, - k_ESteamNetworkingConfig_FakeRateLimit_Send_Burst = 43, - k_ESteamNetworkingConfig_FakeRateLimit_Recv_Rate = 44, - k_ESteamNetworkingConfig_FakeRateLimit_Recv_Burst = 45, - - // Timeout used for out-of-order correction. This is used when we see a small - // gap in the sequence number on a packet flow. For example let's say we are - // processing packet 105 when the most recent one was 103. 104 might have dropped, - // but there is also a chance that packets are simply being reordered. It is very - // common on certain types of connections for packet 104 to arrive very soon after 105, - // especially if 104 was large and 104 was small. In this case, when we see packet 105 - // we will shunt it aside and pend it, in the hopes of seeing 104 soon after. If 104 - // arrives before the a timeout occurs, then we can deliver the packets in order to the - // remainder of packet processing, and we will record this as a "correctable" out-of-order - // situation. If the timer expires, then we will process packet 105, and assume for now - // that 104 has dropped. (If 104 later arrives, we will process it, but that will be - // accounted for as uncorrected.) - // - // The default value is 1000 microseconds. Note that the Windows scheduler does not - // have microsecond precision. - // - // Set the value to 0 to disable out of order correction at the packet layer. - // In many cases we are still effectively able to correct the situation because - // reassembly of message fragments is tolerant of fragments packets arriving out of - // order. Also, when messages are decoded and inserted into the queue for the app - // to receive them, we will correct out of order messages that have not been - // dequeued by the app yet. However, when out-of-order packets are corrected - // at the packet layer, they will not reduce the connection quality measure. - // (E.g. SteamNetConnectionRealTimeStatus_t::m_flConnectionQualityLocal) - k_ESteamNetworkingConfig_OutOfOrderCorrectionWindowMicroseconds = 51, - - // - // Callbacks - // - - // On Steam, you may use the default Steam callback dispatch mechanism. If you prefer - // to not use this dispatch mechanism (or you are not running with Steam), or you want - // to associate specific functions with specific listen sockets or connections, you can - // register them as configuration values. - // - // Note also that ISteamNetworkingUtils has some helpers to set these globally. - - /// [connection FnSteamNetConnectionStatusChanged] Callback that will be invoked - /// when the state of a connection changes. - /// - /// IMPORTANT: callbacks are dispatched to the handler that is in effect at the time - /// the event occurs, which might be in another thread. For example, immediately after - /// creating a listen socket, you may receive an incoming connection. And then immediately - /// after this, the remote host may close the connection. All of this could happen - /// before the function to create the listen socket has returned. For this reason, - /// callbacks usually must be in effect at the time of object creation. This means - /// you should set them when you are creating the listen socket or connection, or have - /// them in effect so they will be inherited at the time of object creation. - /// - /// For example: - /// - /// exterm void MyStatusChangedFunc( SteamNetConnectionStatusChangedCallback_t *info ); - /// SteamNetworkingConfigValue_t opt; opt.SetPtr( k_ESteamNetworkingConfig_Callback_ConnectionStatusChanged, MyStatusChangedFunc ); - /// SteamNetworkingIPAddr localAddress; localAddress.Clear(); - /// HSteamListenSocket hListenSock = SteamNetworkingSockets()->CreateListenSocketIP( localAddress, 1, &opt ); - /// - /// When accepting an incoming connection, there is no atomic way to switch the - /// callback. However, if the connection is DOA, AcceptConnection() will fail, and - /// you can fetch the state of the connection at that time. - /// - /// If all connections and listen sockets can use the same callback, the simplest - /// method is to set it globally before you create any listen sockets or connections. - k_ESteamNetworkingConfig_Callback_ConnectionStatusChanged = 201, - - /// [global FnSteamNetAuthenticationStatusChanged] Callback that will be invoked - /// when our auth state changes. If you use this, install the callback before creating - /// any connections or listen sockets, and don't change it. - /// See: ISteamNetworkingUtils::SetGlobalCallback_SteamNetAuthenticationStatusChanged - k_ESteamNetworkingConfig_Callback_AuthStatusChanged = 202, - - /// [global FnSteamRelayNetworkStatusChanged] Callback that will be invoked - /// when our auth state changes. If you use this, install the callback before creating - /// any connections or listen sockets, and don't change it. - /// See: ISteamNetworkingUtils::SetGlobalCallback_SteamRelayNetworkStatusChanged - k_ESteamNetworkingConfig_Callback_RelayNetworkStatusChanged = 203, - - /// [global FnSteamNetworkingMessagesSessionRequest] Callback that will be invoked - /// when a peer wants to initiate a SteamNetworkingMessagesSessionRequest. - /// See: ISteamNetworkingUtils::SetGlobalCallback_MessagesSessionRequest - k_ESteamNetworkingConfig_Callback_MessagesSessionRequest = 204, - - /// [global FnSteamNetworkingMessagesSessionFailed] Callback that will be invoked - /// when a session you have initiated, or accepted either fails to connect, or loses - /// connection in some unexpected way. - /// See: ISteamNetworkingUtils::SetGlobalCallback_MessagesSessionFailed - k_ESteamNetworkingConfig_Callback_MessagesSessionFailed = 205, - - /// [global FnSteamNetworkingSocketsCreateConnectionSignaling] Callback that will - /// be invoked when we need to create a signaling object for a connection - /// initiated locally. See: ISteamNetworkingSockets::ConnectP2P, - /// ISteamNetworkingMessages. - k_ESteamNetworkingConfig_Callback_CreateConnectionSignaling = 206, - - /// [global FnSteamNetworkingFakeIPResult] Callback that's invoked when - /// a FakeIP allocation finishes. See: ISteamNetworkingSockets::BeginAsyncRequestFakeIP, - /// ISteamNetworkingUtils::SetGlobalCallback_FakeIPResult - k_ESteamNetworkingConfig_Callback_FakeIPResult = 207, - - // - // P2P connection settings - // - - // /// [listen socket int32] When you create a P2P listen socket, we will automatically - // /// open up a UDP port to listen for LAN connections. LAN connections can be made - // /// without any signaling: both sides can be disconnected from the Internet. - // /// - // /// This value can be set to zero to disable the feature. - // k_ESteamNetworkingConfig_P2P_Discovery_Server_LocalPort = 101, - // - // /// [connection int32] P2P connections can perform broadcasts looking for the peer - // /// on the LAN. - // k_ESteamNetworkingConfig_P2P_Discovery_Client_RemotePort = 102, - - /// [connection string] Comma-separated list of STUN servers that can be used - /// for NAT piercing. If you set this to an empty string, NAT piercing will - /// not be attempted. Also if "public" candidates are not allowed for - /// P2P_Transport_ICE_Enable, then this is ignored. - k_ESteamNetworkingConfig_P2P_STUN_ServerList = 103, - - /// [connection int32] What types of ICE candidates to share with the peer. - /// See k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_xxx values - k_ESteamNetworkingConfig_P2P_Transport_ICE_Enable = 104, - - /// [connection int32] When selecting P2P transport, add various - /// penalties to the scores for selected transports. (Route selection - /// scores are on a scale of milliseconds. The score begins with the - /// route ping time and is then adjusted.) - k_ESteamNetworkingConfig_P2P_Transport_ICE_Penalty = 105, - k_ESteamNetworkingConfig_P2P_Transport_SDR_Penalty = 106, - k_ESteamNetworkingConfig_P2P_TURN_ServerList = 107, - k_ESteamNetworkingConfig_P2P_TURN_UserList = 108, - k_ESteamNetworkingConfig_P2P_TURN_PassList = 109, - //k_ESteamNetworkingConfig_P2P_Transport_LANBeacon_Penalty = 107, - k_ESteamNetworkingConfig_P2P_Transport_ICE_Implementation = 110, - - // - // Settings for SDR relayed connections - // - - /// [global int32] If the first N pings to a port all fail, mark that port as unavailable for - /// a while, and try a different one. Some ISPs and routers may drop the first - /// packet, so setting this to 1 may greatly disrupt communications. - k_ESteamNetworkingConfig_SDRClient_ConsecutitivePingTimeoutsFailInitial = 19, - - /// [global int32] If N consecutive pings to a port fail, after having received successful - /// communication, mark that port as unavailable for a while, and try a - /// different one. - k_ESteamNetworkingConfig_SDRClient_ConsecutitivePingTimeoutsFail = 20, - - /// [global int32] Minimum number of lifetime pings we need to send, before we think our estimate - /// is solid. The first ping to each cluster is very often delayed because of NAT, - /// routers not having the best route, etc. Until we've sent a sufficient number - /// of pings, our estimate is often inaccurate. Keep pinging until we get this - /// many pings. - k_ESteamNetworkingConfig_SDRClient_MinPingsBeforePingAccurate = 21, - - /// [global int32] Set all steam datagram traffic to originate from the same - /// local port. By default, we open up a new UDP socket (on a different local - /// port) for each relay. This is slightly less optimal, but it works around - /// some routers that don't implement NAT properly. If you have intermittent - /// problems talking to relays that might be NAT related, try toggling - /// this flag - k_ESteamNetworkingConfig_SDRClient_SingleSocket = 22, - - /// [global string] Code of relay cluster to force use. If not empty, we will - /// only use relays in that cluster. E.g. 'iad' - k_ESteamNetworkingConfig_SDRClient_ForceRelayCluster = 29, - - /// [connection string] For development, a base-64 encoded ticket generated - /// using the cert tool. This can be used to connect to a gameserver via SDR - /// without a ticket generated using the game coordinator. (You will still - /// need a key that is trusted for your app, however.) - /// - /// This can also be passed using the SDR_DEVTICKET environment variable - k_ESteamNetworkingConfig_SDRClient_DevTicket = 30, - - /// [global string] For debugging. Override list of relays from the config with - /// this set (maybe just one). Comma-separated list. - k_ESteamNetworkingConfig_SDRClient_ForceProxyAddr = 31, - - /// [global string] For debugging. Force ping times to clusters to be the specified - /// values. A comma separated list of = values. E.g. "sto=32,iad=100" - /// - /// This is a dev configuration value, you probably should not let users modify it - /// in production. - k_ESteamNetworkingConfig_SDRClient_FakeClusterPing = 36, - - /// [global int32] When probing the SteamDatagram network, we limit exploration - /// to the closest N POPs, based on our current best approximated ping to that POP. - k_ESteamNetworkingConfig_SDRClient_LimitPingProbesToNearestN = 60, - - // - // Log levels for debugging information of various subsystems. - // Higher numeric values will cause more stuff to be printed. - // See ISteamNetworkingUtils::SetDebugOutputFunction for more - // information - // - // The default for all values is k_ESteamNetworkingSocketsDebugOutputType_Warning. - // - k_ESteamNetworkingConfig_LogLevel_AckRTT = 13, // [connection int32] RTT calculations for inline pings and replies - k_ESteamNetworkingConfig_LogLevel_PacketDecode = 14, // [connection int32] log SNP packets send/recv - k_ESteamNetworkingConfig_LogLevel_Message = 15, // [connection int32] log each message send/recv - k_ESteamNetworkingConfig_LogLevel_PacketGaps = 16, // [connection int32] dropped packets - k_ESteamNetworkingConfig_LogLevel_P2PRendezvous = 17, // [connection int32] P2P rendezvous messages - k_ESteamNetworkingConfig_LogLevel_SDRRelayPings = 18, // [global int32] Ping relays - - // Experimental. Set the ECN header field on all outbound UDP packets - // -1 = the default, and means "don't set anything". - // 0..3 = set that value. (Even though 0 is the default UDP ECN value, a 0 here means "explicitly set a 0".) - k_ESteamNetworkingConfig_ECN = 999, - - // Deleted, do not use - k_ESteamNetworkingConfig_DELETED_EnumerateDevVars = 35, - - k_ESteamNetworkingConfigValue__Force32Bit = 0x7fffffff - } - - /// Return value of ISteamNetworkintgUtils::GetConfigValue - public enum ESteamNetworkingGetConfigValueResult : int { - k_ESteamNetworkingGetConfigValue_BadValue = -1, // No such configuration value - k_ESteamNetworkingGetConfigValue_BadScopeObj = -2, // Bad connection handle, etc - k_ESteamNetworkingGetConfigValue_BufferTooSmall = -3, // Couldn't fit the result in your buffer - k_ESteamNetworkingGetConfigValue_OK = 1, - k_ESteamNetworkingGetConfigValue_OKInherited = 2, // A value was not set at this level, but the effective (inherited) value was returned. - - k_ESteamNetworkingGetConfigValueResult__Force32Bit = 0x7fffffff - } - - // - // Debug output - // - /// Detail level for diagnostic output callback. - /// See ISteamNetworkingUtils::SetDebugOutputFunction - public enum ESteamNetworkingSocketsDebugOutputType : int { - k_ESteamNetworkingSocketsDebugOutputType_None = 0, - k_ESteamNetworkingSocketsDebugOutputType_Bug = 1, // You used the API incorrectly, or an internal error happened - k_ESteamNetworkingSocketsDebugOutputType_Error = 2, // Run-time error condition that isn't the result of a bug. (E.g. we are offline, cannot bind a port, etc) - k_ESteamNetworkingSocketsDebugOutputType_Important = 3, // Nothing is wrong, but this is an important notification - k_ESteamNetworkingSocketsDebugOutputType_Warning = 4, - k_ESteamNetworkingSocketsDebugOutputType_Msg = 5, // Recommended amount - k_ESteamNetworkingSocketsDebugOutputType_Verbose = 6, // Quite a bit - k_ESteamNetworkingSocketsDebugOutputType_Debug = 7, // Practically everything - k_ESteamNetworkingSocketsDebugOutputType_Everything = 8, // Wall of text, detailed packet contents breakdown, etc - - k_ESteamNetworkingSocketsDebugOutputType__Force32Bit = 0x7fffffff - } - - public enum ESteamIPType : int { - k_ESteamIPTypeIPv4 = 0, - k_ESteamIPTypeIPv6 = 1, - } - - // Steam universes. Each universe is a self-contained Steam instance. - public enum EUniverse : int { - k_EUniverseInvalid = 0, - k_EUniversePublic = 1, - k_EUniverseBeta = 2, - k_EUniverseInternal = 3, - k_EUniverseDev = 4, - // k_EUniverseRC = 5, // no such universe anymore - k_EUniverseMax - } +namespace SwiftlyS2.Shared.SteamAPI; + +//----------------------------------------------------------------------------- +// Purpose: set of relationships to other users +//----------------------------------------------------------------------------- +public enum EFriendRelationship : int +{ + k_EFriendRelationshipNone = 0, + k_EFriendRelationshipBlocked = 1, // this doesn't get stored; the user has just done an Ignore on an friendship invite + k_EFriendRelationshipRequestRecipient = 2, + k_EFriendRelationshipFriend = 3, + k_EFriendRelationshipRequestInitiator = 4, + k_EFriendRelationshipIgnored = 5, // this is stored; the user has explicit blocked this other user from comments/chat/etc + k_EFriendRelationshipIgnoredFriend = 6, + k_EFriendRelationshipSuggested_DEPRECATED = 7, // was used by the original implementation of the facebook linking feature, but now unused. + + // keep this updated + k_EFriendRelationshipMax = 8, +} + +//----------------------------------------------------------------------------- +// Purpose: list of states a friend can be in +//----------------------------------------------------------------------------- +public enum EPersonaState : int +{ + k_EPersonaStateOffline = 0, // friend is not currently logged on + k_EPersonaStateOnline = 1, // friend is logged on + k_EPersonaStateBusy = 2, // user is on, but busy + k_EPersonaStateAway = 3, // auto-away feature + k_EPersonaStateSnooze = 4, // auto-away for a long time + k_EPersonaStateLookingToTrade = 5, // Online, trading + k_EPersonaStateLookingToPlay = 6, // Online, wanting to play + k_EPersonaStateInvisible = 7, // Online, but appears offline to friends. This status is never published to clients. + k_EPersonaStateMax, +} + +//----------------------------------------------------------------------------- +// Purpose: flags for enumerating friends list, or quickly checking a the relationship between users +//----------------------------------------------------------------------------- +[Flags] +public enum EFriendFlags : int +{ + k_EFriendFlagNone = 0x00, + k_EFriendFlagBlocked = 0x01, + k_EFriendFlagFriendshipRequested = 0x02, + k_EFriendFlagImmediate = 0x04, // "regular" friend + k_EFriendFlagClanMember = 0x08, + k_EFriendFlagOnGameServer = 0x10, + // k_EFriendFlagHasPlayedWith = 0x20, // not currently used + // k_EFriendFlagFriendOfFriend = 0x40, // not currently used + k_EFriendFlagRequestingFriendship = 0x80, + k_EFriendFlagRequestingInfo = 0x100, + k_EFriendFlagIgnored = 0x200, + k_EFriendFlagIgnoredFriend = 0x400, + // k_EFriendFlagSuggested = 0x800, // not used + k_EFriendFlagChatMember = 0x1000, + k_EFriendFlagAll = 0xFFFF, +} + +// These values are passed as parameters to the store +public enum EOverlayToStoreFlag : int +{ + k_EOverlayToStoreFlag_None = 0, + k_EOverlayToStoreFlag_AddToCart = 1, + k_EOverlayToStoreFlag_AddToCartAndShow = 2, +} + +//----------------------------------------------------------------------------- +// Purpose: Tells Steam where to place the browser window inside the overlay +//----------------------------------------------------------------------------- +public enum EActivateGameOverlayToWebPageMode : int +{ + k_EActivateGameOverlayToWebPageMode_Default = 0, // Browser will open next to all other windows that the user has open in the overlay. + // The window will remain open, even if the user closes then re-opens the overlay. + + k_EActivateGameOverlayToWebPageMode_Modal = 1 // Browser will be opened in a special overlay configuration which hides all other windows + // that the user has open in the overlay. When the user closes the overlay, the browser window + // will also close. When the user closes the browser window, the overlay will automatically close. +} + +//----------------------------------------------------------------------------- +// Purpose: See GetProfileItemPropertyString and GetProfileItemPropertyUint +//----------------------------------------------------------------------------- +public enum ECommunityProfileItemType : int +{ + k_ECommunityProfileItemType_AnimatedAvatar = 0, + k_ECommunityProfileItemType_AvatarFrame = 1, + k_ECommunityProfileItemType_ProfileModifier = 2, + k_ECommunityProfileItemType_ProfileBackground = 3, + k_ECommunityProfileItemType_MiniProfileBackground = 4, +} + +public enum ECommunityProfileItemProperty : int +{ + k_ECommunityProfileItemProperty_ImageSmall = 0, // string + k_ECommunityProfileItemProperty_ImageLarge = 1, // string + k_ECommunityProfileItemProperty_InternalName = 2, // string + k_ECommunityProfileItemProperty_Title = 3, // string + k_ECommunityProfileItemProperty_Description = 4, // string + k_ECommunityProfileItemProperty_AppID = 5, // uint32 + k_ECommunityProfileItemProperty_TypeID = 6, // uint32 + k_ECommunityProfileItemProperty_Class = 7, // uint32 + k_ECommunityProfileItemProperty_MovieWebM = 8, // string + k_ECommunityProfileItemProperty_MovieMP4 = 9, // string + k_ECommunityProfileItemProperty_MovieWebMSmall = 10, // string + k_ECommunityProfileItemProperty_MovieMP4Small = 11, // string +} + +// used in PersonaStateChange_t::m_nChangeFlags to describe what's changed about a user +// these flags describe what the client has learned has changed recently, so on startup you'll see a name, avatar & relationship change for every friend +[Flags] +public enum EPersonaChange : int +{ + k_EPersonaChangeName = 0x0001, + k_EPersonaChangeStatus = 0x0002, + k_EPersonaChangeComeOnline = 0x0004, + k_EPersonaChangeGoneOffline = 0x0008, + k_EPersonaChangeGamePlayed = 0x0010, + k_EPersonaChangeGameServer = 0x0020, + k_EPersonaChangeAvatar = 0x0040, + k_EPersonaChangeJoinedSource = 0x0080, + k_EPersonaChangeLeftSource = 0x0100, + k_EPersonaChangeRelationshipChanged = 0x0200, + k_EPersonaChangeNameFirstSet = 0x0400, + k_EPersonaChangeBroadcast = 0x0800, + k_EPersonaChangeNickname = 0x1000, + k_EPersonaChangeSteamLevel = 0x2000, + k_EPersonaChangeRichPresence = 0x4000, +} + +// list of possible return values from the ISteamGameCoordinator API +public enum EGCResults : int +{ + k_EGCResultOK = 0, + k_EGCResultNoMessage = 1, // There is no message in the queue + k_EGCResultBufferTooSmall = 2, // The buffer is too small for the requested message + k_EGCResultNotLoggedOn = 3, // The client is not logged onto Steam + k_EGCResultInvalidMessage = 4, // Something was wrong with the message being sent with SendMessage +} + +public enum EHTMLMouseButton : int +{ + eHTMLMouseButton_Left = 0, + eHTMLMouseButton_Right = 1, + eHTMLMouseButton_Middle = 2, +} + +public enum EHTMLMouseCursor : int +{ + k_EHTMLMouseCursor_User = 0, + k_EHTMLMouseCursor_None, + k_EHTMLMouseCursor_Arrow, + k_EHTMLMouseCursor_IBeam, + k_EHTMLMouseCursor_Hourglass, + k_EHTMLMouseCursor_WaitArrow, + k_EHTMLMouseCursor_Crosshair, + k_EHTMLMouseCursor_Up, + k_EHTMLMouseCursor_SizeNW, + k_EHTMLMouseCursor_SizeSE, + k_EHTMLMouseCursor_SizeNE, + k_EHTMLMouseCursor_SizeSW, + k_EHTMLMouseCursor_SizeW, + k_EHTMLMouseCursor_SizeE, + k_EHTMLMouseCursor_SizeN, + k_EHTMLMouseCursor_SizeS, + k_EHTMLMouseCursor_SizeWE, + k_EHTMLMouseCursor_SizeNS, + k_EHTMLMouseCursor_SizeAll, + k_EHTMLMouseCursor_No, + k_EHTMLMouseCursor_Hand, + k_EHTMLMouseCursor_Blank, // don't show any custom cursor, just use your default + k_EHTMLMouseCursor_MiddlePan, + k_EHTMLMouseCursor_NorthPan, + k_EHTMLMouseCursor_NorthEastPan, + k_EHTMLMouseCursor_EastPan, + k_EHTMLMouseCursor_SouthEastPan, + k_EHTMLMouseCursor_SouthPan, + k_EHTMLMouseCursor_SouthWestPan, + k_EHTMLMouseCursor_WestPan, + k_EHTMLMouseCursor_NorthWestPan, + k_EHTMLMouseCursor_Alias, + k_EHTMLMouseCursor_Cell, + k_EHTMLMouseCursor_ColResize, + k_EHTMLMouseCursor_CopyCur, + k_EHTMLMouseCursor_VerticalText, + k_EHTMLMouseCursor_RowResize, + k_EHTMLMouseCursor_ZoomIn, + k_EHTMLMouseCursor_ZoomOut, + k_EHTMLMouseCursor_Help, + k_EHTMLMouseCursor_Custom, + k_EHTMLMouseCursor_SizeNWSE, + k_EHTMLMouseCursor_SizeNESW, + + k_EHTMLMouseCursor_last, // custom cursors start from this value and up +} + +[Flags] +public enum EHTMLKeyModifiers : int +{ + k_eHTMLKeyModifier_None = 0, + k_eHTMLKeyModifier_AltDown = 1 << 0, + k_eHTMLKeyModifier_CtrlDown = 1 << 1, + k_eHTMLKeyModifier_ShiftDown = 1 << 2, +} + +public enum EInputSourceMode : int +{ + k_EInputSourceMode_None, + k_EInputSourceMode_Dpad, + k_EInputSourceMode_Buttons, + k_EInputSourceMode_FourButtons, + k_EInputSourceMode_AbsoluteMouse, + k_EInputSourceMode_RelativeMouse, + k_EInputSourceMode_JoystickMove, + k_EInputSourceMode_JoystickMouse, + k_EInputSourceMode_JoystickCamera, + k_EInputSourceMode_ScrollWheel, + k_EInputSourceMode_Trigger, + k_EInputSourceMode_TouchMenu, + k_EInputSourceMode_MouseJoystick, + k_EInputSourceMode_MouseRegion, + k_EInputSourceMode_RadialMenu, + k_EInputSourceMode_SingleButton, + k_EInputSourceMode_Switches +} + +// Note: Please do not use action origins as a way to identify controller types. There is no +// guarantee that they will be added in a contiguous manner - use GetInputTypeForHandle instead. +// Versions of Steam that add new controller types in the future will extend this enum so if you're +// using a lookup table please check the bounds of any origins returned by Steam. +public enum EInputActionOrigin : int +{ + // Steam Controller + k_EInputActionOrigin_None, + k_EInputActionOrigin_SteamController_A, + k_EInputActionOrigin_SteamController_B, + k_EInputActionOrigin_SteamController_X, + k_EInputActionOrigin_SteamController_Y, + k_EInputActionOrigin_SteamController_LeftBumper, + k_EInputActionOrigin_SteamController_RightBumper, + k_EInputActionOrigin_SteamController_LeftGrip, + k_EInputActionOrigin_SteamController_RightGrip, + k_EInputActionOrigin_SteamController_Start, + k_EInputActionOrigin_SteamController_Back, + k_EInputActionOrigin_SteamController_LeftPad_Touch, + k_EInputActionOrigin_SteamController_LeftPad_Swipe, + k_EInputActionOrigin_SteamController_LeftPad_Click, + k_EInputActionOrigin_SteamController_LeftPad_DPadNorth, + k_EInputActionOrigin_SteamController_LeftPad_DPadSouth, + k_EInputActionOrigin_SteamController_LeftPad_DPadWest, + k_EInputActionOrigin_SteamController_LeftPad_DPadEast, + k_EInputActionOrigin_SteamController_RightPad_Touch, + k_EInputActionOrigin_SteamController_RightPad_Swipe, + k_EInputActionOrigin_SteamController_RightPad_Click, + k_EInputActionOrigin_SteamController_RightPad_DPadNorth, + k_EInputActionOrigin_SteamController_RightPad_DPadSouth, + k_EInputActionOrigin_SteamController_RightPad_DPadWest, + k_EInputActionOrigin_SteamController_RightPad_DPadEast, + k_EInputActionOrigin_SteamController_LeftTrigger_Pull, + k_EInputActionOrigin_SteamController_LeftTrigger_Click, + k_EInputActionOrigin_SteamController_RightTrigger_Pull, + k_EInputActionOrigin_SteamController_RightTrigger_Click, + k_EInputActionOrigin_SteamController_LeftStick_Move, + k_EInputActionOrigin_SteamController_LeftStick_Click, + k_EInputActionOrigin_SteamController_LeftStick_DPadNorth, + k_EInputActionOrigin_SteamController_LeftStick_DPadSouth, + k_EInputActionOrigin_SteamController_LeftStick_DPadWest, + k_EInputActionOrigin_SteamController_LeftStick_DPadEast, + k_EInputActionOrigin_SteamController_Gyro_Move, + k_EInputActionOrigin_SteamController_Gyro_Pitch, + k_EInputActionOrigin_SteamController_Gyro_Yaw, + k_EInputActionOrigin_SteamController_Gyro_Roll, + k_EInputActionOrigin_SteamController_Reserved0, + k_EInputActionOrigin_SteamController_Reserved1, + k_EInputActionOrigin_SteamController_Reserved2, + k_EInputActionOrigin_SteamController_Reserved3, + k_EInputActionOrigin_SteamController_Reserved4, + k_EInputActionOrigin_SteamController_Reserved5, + k_EInputActionOrigin_SteamController_Reserved6, + k_EInputActionOrigin_SteamController_Reserved7, + k_EInputActionOrigin_SteamController_Reserved8, + k_EInputActionOrigin_SteamController_Reserved9, + k_EInputActionOrigin_SteamController_Reserved10, + + // PS4 Dual Shock + k_EInputActionOrigin_PS4_X, + k_EInputActionOrigin_PS4_Circle, + k_EInputActionOrigin_PS4_Triangle, + k_EInputActionOrigin_PS4_Square, + k_EInputActionOrigin_PS4_LeftBumper, + k_EInputActionOrigin_PS4_RightBumper, + k_EInputActionOrigin_PS4_Options, //Start + k_EInputActionOrigin_PS4_Share, //Back + k_EInputActionOrigin_PS4_LeftPad_Touch, + k_EInputActionOrigin_PS4_LeftPad_Swipe, + k_EInputActionOrigin_PS4_LeftPad_Click, + k_EInputActionOrigin_PS4_LeftPad_DPadNorth, + k_EInputActionOrigin_PS4_LeftPad_DPadSouth, + k_EInputActionOrigin_PS4_LeftPad_DPadWest, + k_EInputActionOrigin_PS4_LeftPad_DPadEast, + k_EInputActionOrigin_PS4_RightPad_Touch, + k_EInputActionOrigin_PS4_RightPad_Swipe, + k_EInputActionOrigin_PS4_RightPad_Click, + k_EInputActionOrigin_PS4_RightPad_DPadNorth, + k_EInputActionOrigin_PS4_RightPad_DPadSouth, + k_EInputActionOrigin_PS4_RightPad_DPadWest, + k_EInputActionOrigin_PS4_RightPad_DPadEast, + k_EInputActionOrigin_PS4_CenterPad_Touch, + k_EInputActionOrigin_PS4_CenterPad_Swipe, + k_EInputActionOrigin_PS4_CenterPad_Click, + k_EInputActionOrigin_PS4_CenterPad_DPadNorth, + k_EInputActionOrigin_PS4_CenterPad_DPadSouth, + k_EInputActionOrigin_PS4_CenterPad_DPadWest, + k_EInputActionOrigin_PS4_CenterPad_DPadEast, + k_EInputActionOrigin_PS4_LeftTrigger_Pull, + k_EInputActionOrigin_PS4_LeftTrigger_Click, + k_EInputActionOrigin_PS4_RightTrigger_Pull, + k_EInputActionOrigin_PS4_RightTrigger_Click, + k_EInputActionOrigin_PS4_LeftStick_Move, + k_EInputActionOrigin_PS4_LeftStick_Click, + k_EInputActionOrigin_PS4_LeftStick_DPadNorth, + k_EInputActionOrigin_PS4_LeftStick_DPadSouth, + k_EInputActionOrigin_PS4_LeftStick_DPadWest, + k_EInputActionOrigin_PS4_LeftStick_DPadEast, + k_EInputActionOrigin_PS4_RightStick_Move, + k_EInputActionOrigin_PS4_RightStick_Click, + k_EInputActionOrigin_PS4_RightStick_DPadNorth, + k_EInputActionOrigin_PS4_RightStick_DPadSouth, + k_EInputActionOrigin_PS4_RightStick_DPadWest, + k_EInputActionOrigin_PS4_RightStick_DPadEast, + k_EInputActionOrigin_PS4_DPad_North, + k_EInputActionOrigin_PS4_DPad_South, + k_EInputActionOrigin_PS4_DPad_West, + k_EInputActionOrigin_PS4_DPad_East, + k_EInputActionOrigin_PS4_Gyro_Move, + k_EInputActionOrigin_PS4_Gyro_Pitch, + k_EInputActionOrigin_PS4_Gyro_Yaw, + k_EInputActionOrigin_PS4_Gyro_Roll, + k_EInputActionOrigin_PS4_DPad_Move, + k_EInputActionOrigin_PS4_Reserved1, + k_EInputActionOrigin_PS4_Reserved2, + k_EInputActionOrigin_PS4_Reserved3, + k_EInputActionOrigin_PS4_Reserved4, + k_EInputActionOrigin_PS4_Reserved5, + k_EInputActionOrigin_PS4_Reserved6, + k_EInputActionOrigin_PS4_Reserved7, + k_EInputActionOrigin_PS4_Reserved8, + k_EInputActionOrigin_PS4_Reserved9, + k_EInputActionOrigin_PS4_Reserved10, + + // XBox One + k_EInputActionOrigin_XBoxOne_A, + k_EInputActionOrigin_XBoxOne_B, + k_EInputActionOrigin_XBoxOne_X, + k_EInputActionOrigin_XBoxOne_Y, + k_EInputActionOrigin_XBoxOne_LeftBumper, + k_EInputActionOrigin_XBoxOne_RightBumper, + k_EInputActionOrigin_XBoxOne_Menu, //Start + k_EInputActionOrigin_XBoxOne_View, //Back + k_EInputActionOrigin_XBoxOne_LeftTrigger_Pull, + k_EInputActionOrigin_XBoxOne_LeftTrigger_Click, + k_EInputActionOrigin_XBoxOne_RightTrigger_Pull, + k_EInputActionOrigin_XBoxOne_RightTrigger_Click, + k_EInputActionOrigin_XBoxOne_LeftStick_Move, + k_EInputActionOrigin_XBoxOne_LeftStick_Click, + k_EInputActionOrigin_XBoxOne_LeftStick_DPadNorth, + k_EInputActionOrigin_XBoxOne_LeftStick_DPadSouth, + k_EInputActionOrigin_XBoxOne_LeftStick_DPadWest, + k_EInputActionOrigin_XBoxOne_LeftStick_DPadEast, + k_EInputActionOrigin_XBoxOne_RightStick_Move, + k_EInputActionOrigin_XBoxOne_RightStick_Click, + k_EInputActionOrigin_XBoxOne_RightStick_DPadNorth, + k_EInputActionOrigin_XBoxOne_RightStick_DPadSouth, + k_EInputActionOrigin_XBoxOne_RightStick_DPadWest, + k_EInputActionOrigin_XBoxOne_RightStick_DPadEast, + k_EInputActionOrigin_XBoxOne_DPad_North, + k_EInputActionOrigin_XBoxOne_DPad_South, + k_EInputActionOrigin_XBoxOne_DPad_West, + k_EInputActionOrigin_XBoxOne_DPad_East, + k_EInputActionOrigin_XBoxOne_DPad_Move, + k_EInputActionOrigin_XBoxOne_LeftGrip_Lower, + k_EInputActionOrigin_XBoxOne_LeftGrip_Upper, + k_EInputActionOrigin_XBoxOne_RightGrip_Lower, + k_EInputActionOrigin_XBoxOne_RightGrip_Upper, + k_EInputActionOrigin_XBoxOne_Share, // Xbox Series X controllers only + k_EInputActionOrigin_XBoxOne_Reserved6, + k_EInputActionOrigin_XBoxOne_Reserved7, + k_EInputActionOrigin_XBoxOne_Reserved8, + k_EInputActionOrigin_XBoxOne_Reserved9, + k_EInputActionOrigin_XBoxOne_Reserved10, + + // XBox 360 + k_EInputActionOrigin_XBox360_A, + k_EInputActionOrigin_XBox360_B, + k_EInputActionOrigin_XBox360_X, + k_EInputActionOrigin_XBox360_Y, + k_EInputActionOrigin_XBox360_LeftBumper, + k_EInputActionOrigin_XBox360_RightBumper, + k_EInputActionOrigin_XBox360_Start, //Start + k_EInputActionOrigin_XBox360_Back, //Back + k_EInputActionOrigin_XBox360_LeftTrigger_Pull, + k_EInputActionOrigin_XBox360_LeftTrigger_Click, + k_EInputActionOrigin_XBox360_RightTrigger_Pull, + k_EInputActionOrigin_XBox360_RightTrigger_Click, + k_EInputActionOrigin_XBox360_LeftStick_Move, + k_EInputActionOrigin_XBox360_LeftStick_Click, + k_EInputActionOrigin_XBox360_LeftStick_DPadNorth, + k_EInputActionOrigin_XBox360_LeftStick_DPadSouth, + k_EInputActionOrigin_XBox360_LeftStick_DPadWest, + k_EInputActionOrigin_XBox360_LeftStick_DPadEast, + k_EInputActionOrigin_XBox360_RightStick_Move, + k_EInputActionOrigin_XBox360_RightStick_Click, + k_EInputActionOrigin_XBox360_RightStick_DPadNorth, + k_EInputActionOrigin_XBox360_RightStick_DPadSouth, + k_EInputActionOrigin_XBox360_RightStick_DPadWest, + k_EInputActionOrigin_XBox360_RightStick_DPadEast, + k_EInputActionOrigin_XBox360_DPad_North, + k_EInputActionOrigin_XBox360_DPad_South, + k_EInputActionOrigin_XBox360_DPad_West, + k_EInputActionOrigin_XBox360_DPad_East, + k_EInputActionOrigin_XBox360_DPad_Move, + k_EInputActionOrigin_XBox360_Reserved1, + k_EInputActionOrigin_XBox360_Reserved2, + k_EInputActionOrigin_XBox360_Reserved3, + k_EInputActionOrigin_XBox360_Reserved4, + k_EInputActionOrigin_XBox360_Reserved5, + k_EInputActionOrigin_XBox360_Reserved6, + k_EInputActionOrigin_XBox360_Reserved7, + k_EInputActionOrigin_XBox360_Reserved8, + k_EInputActionOrigin_XBox360_Reserved9, + k_EInputActionOrigin_XBox360_Reserved10, + + + // Switch - Pro or Joycons used as a single input device. + // This does not apply to a single joycon + k_EInputActionOrigin_Switch_A, + k_EInputActionOrigin_Switch_B, + k_EInputActionOrigin_Switch_X, + k_EInputActionOrigin_Switch_Y, + k_EInputActionOrigin_Switch_LeftBumper, + k_EInputActionOrigin_Switch_RightBumper, + k_EInputActionOrigin_Switch_Plus, //Start + k_EInputActionOrigin_Switch_Minus, //Back + k_EInputActionOrigin_Switch_Capture, + k_EInputActionOrigin_Switch_LeftTrigger_Pull, + k_EInputActionOrigin_Switch_LeftTrigger_Click, + k_EInputActionOrigin_Switch_RightTrigger_Pull, + k_EInputActionOrigin_Switch_RightTrigger_Click, + k_EInputActionOrigin_Switch_LeftStick_Move, + k_EInputActionOrigin_Switch_LeftStick_Click, + k_EInputActionOrigin_Switch_LeftStick_DPadNorth, + k_EInputActionOrigin_Switch_LeftStick_DPadSouth, + k_EInputActionOrigin_Switch_LeftStick_DPadWest, + k_EInputActionOrigin_Switch_LeftStick_DPadEast, + k_EInputActionOrigin_Switch_RightStick_Move, + k_EInputActionOrigin_Switch_RightStick_Click, + k_EInputActionOrigin_Switch_RightStick_DPadNorth, + k_EInputActionOrigin_Switch_RightStick_DPadSouth, + k_EInputActionOrigin_Switch_RightStick_DPadWest, + k_EInputActionOrigin_Switch_RightStick_DPadEast, + k_EInputActionOrigin_Switch_DPad_North, + k_EInputActionOrigin_Switch_DPad_South, + k_EInputActionOrigin_Switch_DPad_West, + k_EInputActionOrigin_Switch_DPad_East, + k_EInputActionOrigin_Switch_ProGyro_Move, // Primary Gyro in Pro Controller, or Right JoyCon + k_EInputActionOrigin_Switch_ProGyro_Pitch, // Primary Gyro in Pro Controller, or Right JoyCon + k_EInputActionOrigin_Switch_ProGyro_Yaw, // Primary Gyro in Pro Controller, or Right JoyCon + k_EInputActionOrigin_Switch_ProGyro_Roll, // Primary Gyro in Pro Controller, or Right JoyCon + k_EInputActionOrigin_Switch_DPad_Move, + k_EInputActionOrigin_Switch_Reserved1, + k_EInputActionOrigin_Switch_Reserved2, + k_EInputActionOrigin_Switch_Reserved3, + k_EInputActionOrigin_Switch_Reserved4, + k_EInputActionOrigin_Switch_Reserved5, + k_EInputActionOrigin_Switch_Reserved6, + k_EInputActionOrigin_Switch_Reserved7, + k_EInputActionOrigin_Switch_Reserved8, + k_EInputActionOrigin_Switch_Reserved9, + k_EInputActionOrigin_Switch_Reserved10, + + // Switch JoyCon Specific + k_EInputActionOrigin_Switch_RightGyro_Move, // Right JoyCon Gyro generally should correspond to Pro's single gyro + k_EInputActionOrigin_Switch_RightGyro_Pitch, // Right JoyCon Gyro generally should correspond to Pro's single gyro + k_EInputActionOrigin_Switch_RightGyro_Yaw, // Right JoyCon Gyro generally should correspond to Pro's single gyro + k_EInputActionOrigin_Switch_RightGyro_Roll, // Right JoyCon Gyro generally should correspond to Pro's single gyro + k_EInputActionOrigin_Switch_LeftGyro_Move, + k_EInputActionOrigin_Switch_LeftGyro_Pitch, + k_EInputActionOrigin_Switch_LeftGyro_Yaw, + k_EInputActionOrigin_Switch_LeftGyro_Roll, + k_EInputActionOrigin_Switch_LeftGrip_Lower, // Left JoyCon SR Button + k_EInputActionOrigin_Switch_LeftGrip_Upper, // Left JoyCon SL Button + k_EInputActionOrigin_Switch_RightGrip_Lower, // Right JoyCon SL Button + k_EInputActionOrigin_Switch_RightGrip_Upper, // Right JoyCon SR Button + k_EInputActionOrigin_Switch_JoyConButton_N, // With a Horizontal JoyCon this will be Y or what would be Dpad Right when vertical + k_EInputActionOrigin_Switch_JoyConButton_E, // X + k_EInputActionOrigin_Switch_JoyConButton_S, // A + k_EInputActionOrigin_Switch_JoyConButton_W, // B + k_EInputActionOrigin_Switch_Reserved15, + k_EInputActionOrigin_Switch_Reserved16, + k_EInputActionOrigin_Switch_Reserved17, + k_EInputActionOrigin_Switch_Reserved18, + k_EInputActionOrigin_Switch_Reserved19, + k_EInputActionOrigin_Switch_Reserved20, + + // Added in SDK 1.51 + k_EInputActionOrigin_PS5_X, + k_EInputActionOrigin_PS5_Circle, + k_EInputActionOrigin_PS5_Triangle, + k_EInputActionOrigin_PS5_Square, + k_EInputActionOrigin_PS5_LeftBumper, + k_EInputActionOrigin_PS5_RightBumper, + k_EInputActionOrigin_PS5_Option, //Start + k_EInputActionOrigin_PS5_Create, //Back + k_EInputActionOrigin_PS5_Mute, + k_EInputActionOrigin_PS5_LeftPad_Touch, + k_EInputActionOrigin_PS5_LeftPad_Swipe, + k_EInputActionOrigin_PS5_LeftPad_Click, + k_EInputActionOrigin_PS5_LeftPad_DPadNorth, + k_EInputActionOrigin_PS5_LeftPad_DPadSouth, + k_EInputActionOrigin_PS5_LeftPad_DPadWest, + k_EInputActionOrigin_PS5_LeftPad_DPadEast, + k_EInputActionOrigin_PS5_RightPad_Touch, + k_EInputActionOrigin_PS5_RightPad_Swipe, + k_EInputActionOrigin_PS5_RightPad_Click, + k_EInputActionOrigin_PS5_RightPad_DPadNorth, + k_EInputActionOrigin_PS5_RightPad_DPadSouth, + k_EInputActionOrigin_PS5_RightPad_DPadWest, + k_EInputActionOrigin_PS5_RightPad_DPadEast, + k_EInputActionOrigin_PS5_CenterPad_Touch, + k_EInputActionOrigin_PS5_CenterPad_Swipe, + k_EInputActionOrigin_PS5_CenterPad_Click, + k_EInputActionOrigin_PS5_CenterPad_DPadNorth, + k_EInputActionOrigin_PS5_CenterPad_DPadSouth, + k_EInputActionOrigin_PS5_CenterPad_DPadWest, + k_EInputActionOrigin_PS5_CenterPad_DPadEast, + k_EInputActionOrigin_PS5_LeftTrigger_Pull, + k_EInputActionOrigin_PS5_LeftTrigger_Click, + k_EInputActionOrigin_PS5_RightTrigger_Pull, + k_EInputActionOrigin_PS5_RightTrigger_Click, + k_EInputActionOrigin_PS5_LeftStick_Move, + k_EInputActionOrigin_PS5_LeftStick_Click, + k_EInputActionOrigin_PS5_LeftStick_DPadNorth, + k_EInputActionOrigin_PS5_LeftStick_DPadSouth, + k_EInputActionOrigin_PS5_LeftStick_DPadWest, + k_EInputActionOrigin_PS5_LeftStick_DPadEast, + k_EInputActionOrigin_PS5_RightStick_Move, + k_EInputActionOrigin_PS5_RightStick_Click, + k_EInputActionOrigin_PS5_RightStick_DPadNorth, + k_EInputActionOrigin_PS5_RightStick_DPadSouth, + k_EInputActionOrigin_PS5_RightStick_DPadWest, + k_EInputActionOrigin_PS5_RightStick_DPadEast, + k_EInputActionOrigin_PS5_DPad_North, + k_EInputActionOrigin_PS5_DPad_South, + k_EInputActionOrigin_PS5_DPad_West, + k_EInputActionOrigin_PS5_DPad_East, + k_EInputActionOrigin_PS5_Gyro_Move, + k_EInputActionOrigin_PS5_Gyro_Pitch, + k_EInputActionOrigin_PS5_Gyro_Yaw, + k_EInputActionOrigin_PS5_Gyro_Roll, + k_EInputActionOrigin_PS5_DPad_Move, + k_EInputActionOrigin_PS5_LeftGrip, + k_EInputActionOrigin_PS5_RightGrip, + k_EInputActionOrigin_PS5_LeftFn, + k_EInputActionOrigin_PS5_RightFn, + k_EInputActionOrigin_PS5_Reserved5, + k_EInputActionOrigin_PS5_Reserved6, + k_EInputActionOrigin_PS5_Reserved7, + k_EInputActionOrigin_PS5_Reserved8, + k_EInputActionOrigin_PS5_Reserved9, + k_EInputActionOrigin_PS5_Reserved10, + k_EInputActionOrigin_PS5_Reserved11, + k_EInputActionOrigin_PS5_Reserved12, + k_EInputActionOrigin_PS5_Reserved13, + k_EInputActionOrigin_PS5_Reserved14, + k_EInputActionOrigin_PS5_Reserved15, + k_EInputActionOrigin_PS5_Reserved16, + k_EInputActionOrigin_PS5_Reserved17, + k_EInputActionOrigin_PS5_Reserved18, + k_EInputActionOrigin_PS5_Reserved19, + k_EInputActionOrigin_PS5_Reserved20, + + // Added in SDK 1.53 + k_EInputActionOrigin_SteamDeck_A, + k_EInputActionOrigin_SteamDeck_B, + k_EInputActionOrigin_SteamDeck_X, + k_EInputActionOrigin_SteamDeck_Y, + k_EInputActionOrigin_SteamDeck_L1, + k_EInputActionOrigin_SteamDeck_R1, + k_EInputActionOrigin_SteamDeck_Menu, + k_EInputActionOrigin_SteamDeck_View, + k_EInputActionOrigin_SteamDeck_LeftPad_Touch, + k_EInputActionOrigin_SteamDeck_LeftPad_Swipe, + k_EInputActionOrigin_SteamDeck_LeftPad_Click, + k_EInputActionOrigin_SteamDeck_LeftPad_DPadNorth, + k_EInputActionOrigin_SteamDeck_LeftPad_DPadSouth, + k_EInputActionOrigin_SteamDeck_LeftPad_DPadWest, + k_EInputActionOrigin_SteamDeck_LeftPad_DPadEast, + k_EInputActionOrigin_SteamDeck_RightPad_Touch, + k_EInputActionOrigin_SteamDeck_RightPad_Swipe, + k_EInputActionOrigin_SteamDeck_RightPad_Click, + k_EInputActionOrigin_SteamDeck_RightPad_DPadNorth, + k_EInputActionOrigin_SteamDeck_RightPad_DPadSouth, + k_EInputActionOrigin_SteamDeck_RightPad_DPadWest, + k_EInputActionOrigin_SteamDeck_RightPad_DPadEast, + k_EInputActionOrigin_SteamDeck_L2_SoftPull, + k_EInputActionOrigin_SteamDeck_L2, + k_EInputActionOrigin_SteamDeck_R2_SoftPull, + k_EInputActionOrigin_SteamDeck_R2, + k_EInputActionOrigin_SteamDeck_LeftStick_Move, + k_EInputActionOrigin_SteamDeck_L3, + k_EInputActionOrigin_SteamDeck_LeftStick_DPadNorth, + k_EInputActionOrigin_SteamDeck_LeftStick_DPadSouth, + k_EInputActionOrigin_SteamDeck_LeftStick_DPadWest, + k_EInputActionOrigin_SteamDeck_LeftStick_DPadEast, + k_EInputActionOrigin_SteamDeck_LeftStick_Touch, + k_EInputActionOrigin_SteamDeck_RightStick_Move, + k_EInputActionOrigin_SteamDeck_R3, + k_EInputActionOrigin_SteamDeck_RightStick_DPadNorth, + k_EInputActionOrigin_SteamDeck_RightStick_DPadSouth, + k_EInputActionOrigin_SteamDeck_RightStick_DPadWest, + k_EInputActionOrigin_SteamDeck_RightStick_DPadEast, + k_EInputActionOrigin_SteamDeck_RightStick_Touch, + k_EInputActionOrigin_SteamDeck_L4, + k_EInputActionOrigin_SteamDeck_R4, + k_EInputActionOrigin_SteamDeck_L5, + k_EInputActionOrigin_SteamDeck_R5, + k_EInputActionOrigin_SteamDeck_DPad_Move, + k_EInputActionOrigin_SteamDeck_DPad_North, + k_EInputActionOrigin_SteamDeck_DPad_South, + k_EInputActionOrigin_SteamDeck_DPad_West, + k_EInputActionOrigin_SteamDeck_DPad_East, + k_EInputActionOrigin_SteamDeck_Gyro_Move, + k_EInputActionOrigin_SteamDeck_Gyro_Pitch, + k_EInputActionOrigin_SteamDeck_Gyro_Yaw, + k_EInputActionOrigin_SteamDeck_Gyro_Roll, + k_EInputActionOrigin_SteamDeck_Reserved1, + k_EInputActionOrigin_SteamDeck_Reserved2, + k_EInputActionOrigin_SteamDeck_Reserved3, + k_EInputActionOrigin_SteamDeck_Reserved4, + k_EInputActionOrigin_SteamDeck_Reserved5, + k_EInputActionOrigin_SteamDeck_Reserved6, + k_EInputActionOrigin_SteamDeck_Reserved7, + k_EInputActionOrigin_SteamDeck_Reserved8, + k_EInputActionOrigin_SteamDeck_Reserved9, + k_EInputActionOrigin_SteamDeck_Reserved10, + k_EInputActionOrigin_SteamDeck_Reserved11, + k_EInputActionOrigin_SteamDeck_Reserved12, + k_EInputActionOrigin_SteamDeck_Reserved13, + k_EInputActionOrigin_SteamDeck_Reserved14, + k_EInputActionOrigin_SteamDeck_Reserved15, + k_EInputActionOrigin_SteamDeck_Reserved16, + k_EInputActionOrigin_SteamDeck_Reserved17, + k_EInputActionOrigin_SteamDeck_Reserved18, + k_EInputActionOrigin_SteamDeck_Reserved19, + k_EInputActionOrigin_SteamDeck_Reserved20, + + k_EInputActionOrigin_Horipad_M1, + k_EInputActionOrigin_Horipad_M2, + k_EInputActionOrigin_Horipad_L4, + k_EInputActionOrigin_Horipad_R4, + + k_EInputActionOrigin_Count, // If Steam has added support for new controllers origins will go here. + k_EInputActionOrigin_MaximumPossibleValue = 32767, // Origins are currently a maximum of 16 bits. +} + +public enum EXboxOrigin : int +{ + k_EXboxOrigin_A, + k_EXboxOrigin_B, + k_EXboxOrigin_X, + k_EXboxOrigin_Y, + k_EXboxOrigin_LeftBumper, + k_EXboxOrigin_RightBumper, + k_EXboxOrigin_Menu, //Start + k_EXboxOrigin_View, //Back + k_EXboxOrigin_LeftTrigger_Pull, + k_EXboxOrigin_LeftTrigger_Click, + k_EXboxOrigin_RightTrigger_Pull, + k_EXboxOrigin_RightTrigger_Click, + k_EXboxOrigin_LeftStick_Move, + k_EXboxOrigin_LeftStick_Click, + k_EXboxOrigin_LeftStick_DPadNorth, + k_EXboxOrigin_LeftStick_DPadSouth, + k_EXboxOrigin_LeftStick_DPadWest, + k_EXboxOrigin_LeftStick_DPadEast, + k_EXboxOrigin_RightStick_Move, + k_EXboxOrigin_RightStick_Click, + k_EXboxOrigin_RightStick_DPadNorth, + k_EXboxOrigin_RightStick_DPadSouth, + k_EXboxOrigin_RightStick_DPadWest, + k_EXboxOrigin_RightStick_DPadEast, + k_EXboxOrigin_DPad_North, + k_EXboxOrigin_DPad_South, + k_EXboxOrigin_DPad_West, + k_EXboxOrigin_DPad_East, + k_EXboxOrigin_Count, +} + +public enum ESteamControllerPad : int +{ + k_ESteamControllerPad_Left, + k_ESteamControllerPad_Right +} + +[Flags] +public enum EControllerHapticLocation : int +{ + k_EControllerHapticLocation_Left = (1 << ESteamControllerPad.k_ESteamControllerPad_Left), + k_EControllerHapticLocation_Right = (1 << ESteamControllerPad.k_ESteamControllerPad_Right), + k_EControllerHapticLocation_Both = (1 << ESteamControllerPad.k_ESteamControllerPad_Left | 1 << ESteamControllerPad.k_ESteamControllerPad_Right), +} + +public enum EControllerHapticType : int +{ + k_EControllerHapticType_Off, + k_EControllerHapticType_Tick, + k_EControllerHapticType_Click, +} + +public enum ESteamInputType : int +{ + k_ESteamInputType_Unknown, + k_ESteamInputType_SteamController, + k_ESteamInputType_XBox360Controller, + k_ESteamInputType_XBoxOneController, + k_ESteamInputType_GenericGamepad, // DirectInput controllers + k_ESteamInputType_PS4Controller, + k_ESteamInputType_AppleMFiController, // Unused + k_ESteamInputType_AndroidController, // Unused + k_ESteamInputType_SwitchJoyConPair, // Unused + k_ESteamInputType_SwitchJoyConSingle, // Unused + k_ESteamInputType_SwitchProController, + k_ESteamInputType_MobileTouch, // Steam Link App On-screen Virtual Controller + k_ESteamInputType_PS3Controller, // Currently uses PS4 Origins + k_ESteamInputType_PS5Controller, // Added in SDK 151 + k_ESteamInputType_SteamDeckController, // Added in SDK 153 + k_ESteamInputType_Count, + k_ESteamInputType_MaximumPossibleValue = 255, +} + +// Individual values are used by the GetSessionInputConfigurationSettings bitmask +public enum ESteamInputConfigurationEnableType : int +{ + k_ESteamInputConfigurationEnableType_None = 0x0000, + k_ESteamInputConfigurationEnableType_Playstation = 0x0001, + k_ESteamInputConfigurationEnableType_Xbox = 0x0002, + k_ESteamInputConfigurationEnableType_Generic = 0x0004, + k_ESteamInputConfigurationEnableType_Switch = 0x0008, +} + +// These values are passed into SetLEDColor +public enum ESteamInputLEDFlag : int +{ + k_ESteamInputLEDFlag_SetColor, + // Restore the LED color to the user's preference setting as set in the controller personalization menu. + // This also happens automatically on exit of your game. + k_ESteamInputLEDFlag_RestoreUserDefault +} + +// These values are passed into GetGlyphPNGForActionOrigin +public enum ESteamInputGlyphSize : int +{ + k_ESteamInputGlyphSize_Small, // 32x32 pixels + k_ESteamInputGlyphSize_Medium, // 128x128 pixels + k_ESteamInputGlyphSize_Large, // 256x256 pixels + k_ESteamInputGlyphSize_Count, +} + +public enum ESteamInputGlyphStyle : int +{ + // Base-styles - cannot mix + ESteamInputGlyphStyle_Knockout = 0x0, // Face buttons will have colored labels/outlines on a knocked out background + // Rest of inputs will have white detail/borders on a knocked out background + ESteamInputGlyphStyle_Light = 0x1, // Black detail/borders on a white background + ESteamInputGlyphStyle_Dark = 0x2, // White detail/borders on a black background + + // Modifiers + // Default ABXY/PS equivalent glyphs have a solid fill w/ color matching the physical buttons on the device + ESteamInputGlyphStyle_NeutralColorABXY = 0x10, // ABXY Buttons will match the base style color instead of their normal associated color + ESteamInputGlyphStyle_SolidABXY = 0x20, // ABXY Buttons will have a solid fill +} + +public enum ESteamInputActionEventType : int +{ + ESteamInputActionEventType_DigitalAction, + ESteamInputActionEventType_AnalogAction, +} + +[Flags] +public enum ESteamItemFlags : int +{ + // Item status flags - these flags are permanently attached to specific item instances + k_ESteamItemNoTrade = 1 << 0, // This item is account-locked and cannot be traded or given away. + + // Action confirmation flags - these flags are set one time only, as part of a result set + k_ESteamItemRemoved = 1 << 8, // The item has been destroyed, traded away, expired, or otherwise invalidated + k_ESteamItemConsumed = 1 << 9, // The item quantity has been decreased by 1 via ConsumeItem API. + + // All other flag bits are currently reserved for internal Steam use at this time. + // Do not assume anything about the state of other flags which are not defined here. +} + +// lobby type description +public enum ELobbyType : int +{ + k_ELobbyTypePrivate = 0, // only way to join the lobby is to invite to someone else + k_ELobbyTypeFriendsOnly = 1, // shows for friends or invitees, but not in lobby list + k_ELobbyTypePublic = 2, // visible for friends and in lobby list + k_ELobbyTypeInvisible = 3, // returned by search, but not visible to other friends + // useful if you want a user in two lobbies, for example matching groups together + // a user can be in only one regular lobby, and up to two invisible lobbies + k_ELobbyTypePrivateUnique = 4, // private, unique and does not delete when empty - only one of these may exist per unique keypair set + // can only create from webapi +} + +// lobby search filter tools +public enum ELobbyComparison : int +{ + k_ELobbyComparisonEqualToOrLessThan = -2, + k_ELobbyComparisonLessThan = -1, + k_ELobbyComparisonEqual = 0, + k_ELobbyComparisonGreaterThan = 1, + k_ELobbyComparisonEqualToOrGreaterThan = 2, + k_ELobbyComparisonNotEqual = 3, +} + +// lobby search distance. Lobby results are sorted from closest to farthest. +public enum ELobbyDistanceFilter : int +{ + k_ELobbyDistanceFilterClose, // only lobbies in the same immediate region will be returned + k_ELobbyDistanceFilterDefault, // only lobbies in the same region or near by regions + k_ELobbyDistanceFilterFar, // for games that don't have many latency requirements, will return lobbies about half-way around the globe + k_ELobbyDistanceFilterWorldwide, // no filtering, will match lobbies as far as India to NY (not recommended, expect multiple seconds of latency between the clients) +} + +//----------------------------------------------------------------------------- +// Purpose: Used in ChatInfo messages - fields specific to a chat member - must fit in a uint32 +//----------------------------------------------------------------------------- +[Flags] +public enum EChatMemberStateChange : int +{ + // Specific to joining / leaving the chatroom + k_EChatMemberStateChangeEntered = 0x0001, // This user has joined or is joining the chat room + k_EChatMemberStateChangeLeft = 0x0002, // This user has left or is leaving the chat room + k_EChatMemberStateChangeDisconnected = 0x0004, // User disconnected without leaving the chat first + k_EChatMemberStateChangeKicked = 0x0008, // User kicked + k_EChatMemberStateChangeBanned = 0x0010, // User kicked and banned +} + +//----------------------------------------------------------------------------- +// Purpose: Functions for quickly creating a Party with friends or acquaintances, +// EG from chat rooms. +//----------------------------------------------------------------------------- +public enum ESteamPartyBeaconLocationType : int +{ + k_ESteamPartyBeaconLocationType_Invalid = 0, + k_ESteamPartyBeaconLocationType_ChatGroup = 1, + + k_ESteamPartyBeaconLocationType_Max, +} + +public enum ESteamPartyBeaconLocationData : int +{ + k_ESteamPartyBeaconLocationDataInvalid = 0, + k_ESteamPartyBeaconLocationDataName = 1, + k_ESteamPartyBeaconLocationDataIconURLSmall = 2, + k_ESteamPartyBeaconLocationDataIconURLMedium = 3, + k_ESteamPartyBeaconLocationDataIconURLLarge = 4, +} + +public enum PlayerAcceptState_t : int +{ + k_EStateUnknown = 0, + k_EStatePlayerAccepted = 1, + k_EStatePlayerDeclined = 2, +} + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +public enum AudioPlayback_Status : int +{ + AudioPlayback_Undefined = 0, + AudioPlayback_Playing = 1, + AudioPlayback_Paused = 2, + AudioPlayback_Idle = 3 +} + +// list of possible errors returned by SendP2PPacket() API +// these will be posted in the P2PSessionConnectFail_t callback +public enum EP2PSessionError : int +{ + k_EP2PSessionErrorNone = 0, + k_EP2PSessionErrorNoRightsToApp = 2, // local user doesn't own the app that is running + k_EP2PSessionErrorTimeout = 4, // target isn't responding, perhaps not calling AcceptP2PSessionWithUser() + // corporate firewalls can also block this (NAT traversal is not firewall traversal) + // make sure that UDP ports 3478, 4379, and 4380 are open in an outbound direction + + // The following error codes were removed and will never be sent. + // For privacy reasons, there is no reply if the user is offline or playing another game. + k_EP2PSessionErrorNotRunningApp_DELETED = 1, + k_EP2PSessionErrorDestinationNotLoggedIn_DELETED = 3, + + k_EP2PSessionErrorMax = 5 +} + +// SendP2PPacket() send types +// Typically k_EP2PSendUnreliable is what you want for UDP-like packets, k_EP2PSendReliable for TCP-like packets +public enum EP2PSend : int +{ + // Basic UDP send. Packets can't be bigger than 1200 bytes (your typical MTU size). Can be lost, or arrive out of order (rare). + // The sending API does have some knowledge of the underlying connection, so if there is no NAT-traversal accomplished or + // there is a recognized adjustment happening on the connection, the packet will be batched until the connection is open again. + k_EP2PSendUnreliable = 0, + + // As above, but if the underlying p2p connection isn't yet established the packet will just be thrown away. Using this on the first + // packet sent to a remote host almost guarantees the packet will be dropped. + // This is only really useful for kinds of data that should never buffer up, i.e. voice payload packets + k_EP2PSendUnreliableNoDelay = 1, + + // Reliable message send. Can send up to 1MB of data in a single message. + // Does fragmentation/re-assembly of messages under the hood, as well as a sliding window for efficient sends of large chunks of data. + k_EP2PSendReliable = 2, + + // As above, but applies the Nagle algorithm to the send - sends will accumulate + // until the current MTU size (typically ~1200 bytes, but can change) or ~200ms has passed (Nagle algorithm). + // Useful if you want to send a set of smaller messages but have the coalesced into a single packet + // Since the reliable stream is all ordered, you can do several small message sends with k_EP2PSendReliableWithBuffering and then + // do a normal k_EP2PSendReliable to force all the buffered data to be sent. + k_EP2PSendReliableWithBuffering = 3, + +} + +// connection progress indicators, used by CreateP2PConnectionSocket() +public enum ESNetSocketState : int +{ + k_ESNetSocketStateInvalid = 0, + + // communication is valid + k_ESNetSocketStateConnected = 1, + + // states while establishing a connection + k_ESNetSocketStateInitiated = 10, // the connection state machine has started + + // p2p connections + k_ESNetSocketStateLocalCandidatesFound = 11, // we've found our local IP info + k_ESNetSocketStateReceivedRemoteCandidates = 12,// we've received information from the remote machine, via the Steam back-end, about their IP info + + // direct connections + k_ESNetSocketStateChallengeHandshake = 15, // we've received a challenge packet from the server + + // failure states + k_ESNetSocketStateDisconnecting = 21, // the API shut it down, and we're in the process of telling the other end + k_ESNetSocketStateLocalDisconnect = 22, // the API shut it down, and we've completed shutdown + k_ESNetSocketStateTimeoutDuringConnect = 23, // we timed out while trying to creating the connection + k_ESNetSocketStateRemoteEndDisconnected = 24, // the remote end has disconnected from us + k_ESNetSocketStateConnectionBroken = 25, // connection has been broken; either the other end has disappeared or our local network connection has broke + +} + +// describes how the socket is currently connected +public enum ESNetSocketConnectionType : int +{ + k_ESNetSocketConnectionTypeNotConnected = 0, + k_ESNetSocketConnectionTypeUDP = 1, + k_ESNetSocketConnectionTypeUDPRelay = 2, +} + +// Feature types for parental settings +public enum EParentalFeature : int +{ + k_EFeatureInvalid = 0, + k_EFeatureStore = 1, + k_EFeatureCommunity = 2, + k_EFeatureProfile = 3, + k_EFeatureFriends = 4, + k_EFeatureNews = 5, + k_EFeatureTrading = 6, + k_EFeatureSettings = 7, + k_EFeatureConsole = 8, + k_EFeatureBrowser = 9, + k_EFeatureParentalSetup = 10, + k_EFeatureLibrary = 11, + k_EFeatureTest = 12, + k_EFeatureSiteLicense = 13, + k_EFeatureKioskMode_Deprecated = 14, + k_EFeatureBlockAlways = 15, + k_EFeatureMax +} + +//----------------------------------------------------------------------------- +// Purpose: The form factor of a device +//----------------------------------------------------------------------------- +public enum ESteamDeviceFormFactor : int +{ + k_ESteamDeviceFormFactorUnknown = 0, + k_ESteamDeviceFormFactorPhone = 1, + k_ESteamDeviceFormFactorTablet = 2, + k_ESteamDeviceFormFactorComputer = 3, + k_ESteamDeviceFormFactorTV = 4, + k_ESteamDeviceFormFactorVRHeadset = 5, +} + +//----------------------------------------------------------------------------- +// Purpose: The type of input in ERemotePlayInput_t +//----------------------------------------------------------------------------- +public enum ERemotePlayInputType : int +{ + k_ERemotePlayInputUnknown, + k_ERemotePlayInputMouseMotion, + k_ERemotePlayInputMouseButtonDown, + k_ERemotePlayInputMouseButtonUp, + k_ERemotePlayInputMouseWheel, + k_ERemotePlayInputKeyDown, + k_ERemotePlayInputKeyUp +} + +//----------------------------------------------------------------------------- +// Purpose: Mouse buttons in ERemotePlayInput_t +//----------------------------------------------------------------------------- +public enum ERemotePlayMouseButton : int +{ + k_ERemotePlayMouseButtonLeft = 0x0001, + k_ERemotePlayMouseButtonRight = 0x0002, + k_ERemotePlayMouseButtonMiddle = 0x0010, + k_ERemotePlayMouseButtonX1 = 0x0020, + k_ERemotePlayMouseButtonX2 = 0x0040, +} + +//----------------------------------------------------------------------------- +// Purpose: Mouse wheel direction in ERemotePlayInput_t +//----------------------------------------------------------------------------- +public enum ERemotePlayMouseWheelDirection : int +{ + k_ERemotePlayMouseWheelUp = 1, + k_ERemotePlayMouseWheelDown = 2, + k_ERemotePlayMouseWheelLeft = 3, + k_ERemotePlayMouseWheelRight = 4, +} + +//----------------------------------------------------------------------------- +// Purpose: Key scancode in ERemotePlayInput_t +// +// This is a USB scancode value as defined for the Keyboard/Keypad Page (0x07) +// This enumeration isn't a complete list, just the most commonly used keys. +//----------------------------------------------------------------------------- +public enum ERemotePlayScancode : int +{ + k_ERemotePlayScancodeUnknown = 0, + + k_ERemotePlayScancodeA = 4, + k_ERemotePlayScancodeB = 5, + k_ERemotePlayScancodeC = 6, + k_ERemotePlayScancodeD = 7, + k_ERemotePlayScancodeE = 8, + k_ERemotePlayScancodeF = 9, + k_ERemotePlayScancodeG = 10, + k_ERemotePlayScancodeH = 11, + k_ERemotePlayScancodeI = 12, + k_ERemotePlayScancodeJ = 13, + k_ERemotePlayScancodeK = 14, + k_ERemotePlayScancodeL = 15, + k_ERemotePlayScancodeM = 16, + k_ERemotePlayScancodeN = 17, + k_ERemotePlayScancodeO = 18, + k_ERemotePlayScancodeP = 19, + k_ERemotePlayScancodeQ = 20, + k_ERemotePlayScancodeR = 21, + k_ERemotePlayScancodeS = 22, + k_ERemotePlayScancodeT = 23, + k_ERemotePlayScancodeU = 24, + k_ERemotePlayScancodeV = 25, + k_ERemotePlayScancodeW = 26, + k_ERemotePlayScancodeX = 27, + k_ERemotePlayScancodeY = 28, + k_ERemotePlayScancodeZ = 29, + + k_ERemotePlayScancode1 = 30, + k_ERemotePlayScancode2 = 31, + k_ERemotePlayScancode3 = 32, + k_ERemotePlayScancode4 = 33, + k_ERemotePlayScancode5 = 34, + k_ERemotePlayScancode6 = 35, + k_ERemotePlayScancode7 = 36, + k_ERemotePlayScancode8 = 37, + k_ERemotePlayScancode9 = 38, + k_ERemotePlayScancode0 = 39, + + k_ERemotePlayScancodeReturn = 40, + k_ERemotePlayScancodeEscape = 41, + k_ERemotePlayScancodeBackspace = 42, + k_ERemotePlayScancodeTab = 43, + k_ERemotePlayScancodeSpace = 44, + k_ERemotePlayScancodeMinus = 45, + k_ERemotePlayScancodeEquals = 46, + k_ERemotePlayScancodeLeftBracket = 47, + k_ERemotePlayScancodeRightBracket = 48, + k_ERemotePlayScancodeBackslash = 49, + k_ERemotePlayScancodeSemicolon = 51, + k_ERemotePlayScancodeApostrophe = 52, + k_ERemotePlayScancodeGrave = 53, + k_ERemotePlayScancodeComma = 54, + k_ERemotePlayScancodePeriod = 55, + k_ERemotePlayScancodeSlash = 56, + k_ERemotePlayScancodeCapsLock = 57, + + k_ERemotePlayScancodeF1 = 58, + k_ERemotePlayScancodeF2 = 59, + k_ERemotePlayScancodeF3 = 60, + k_ERemotePlayScancodeF4 = 61, + k_ERemotePlayScancodeF5 = 62, + k_ERemotePlayScancodeF6 = 63, + k_ERemotePlayScancodeF7 = 64, + k_ERemotePlayScancodeF8 = 65, + k_ERemotePlayScancodeF9 = 66, + k_ERemotePlayScancodeF10 = 67, + k_ERemotePlayScancodeF11 = 68, + k_ERemotePlayScancodeF12 = 69, + + k_ERemotePlayScancodeInsert = 73, + k_ERemotePlayScancodeHome = 74, + k_ERemotePlayScancodePageUp = 75, + k_ERemotePlayScancodeDelete = 76, + k_ERemotePlayScancodeEnd = 77, + k_ERemotePlayScancodePageDown = 78, + k_ERemotePlayScancodeRight = 79, + k_ERemotePlayScancodeLeft = 80, + k_ERemotePlayScancodeDown = 81, + k_ERemotePlayScancodeUp = 82, + + k_ERemotePlayScancodeLeftControl = 224, + k_ERemotePlayScancodeLeftShift = 225, + k_ERemotePlayScancodeLeftAlt = 226, + k_ERemotePlayScancodeLeftGUI = 227, // windows, command (apple), meta + k_ERemotePlayScancodeRightControl = 228, + k_ERemotePlayScancodeRightShift = 229, + k_ERemotePlayScancodeRightALT = 230, + k_ERemotePlayScancodeRightGUI = 231, // windows, command (apple), meta +} + +//----------------------------------------------------------------------------- +// Purpose: Key modifier in ERemotePlayInput_t +//----------------------------------------------------------------------------- +public enum ERemotePlayKeyModifier : int +{ + k_ERemotePlayKeyModifierNone = 0x0000, + k_ERemotePlayKeyModifierLeftShift = 0x0001, + k_ERemotePlayKeyModifierRightShift = 0x0002, + k_ERemotePlayKeyModifierLeftControl = 0x0040, + k_ERemotePlayKeyModifierRightControl = 0x0080, + k_ERemotePlayKeyModifierLeftAlt = 0x0100, + k_ERemotePlayKeyModifierRightAlt = 0x0200, + k_ERemotePlayKeyModifierLeftGUI = 0x0400, + k_ERemotePlayKeyModifierRightGUI = 0x0800, + k_ERemotePlayKeyModifierNumLock = 0x1000, + k_ERemotePlayKeyModifierCapsLock = 0x2000, + k_ERemotePlayKeyModifierMask = 0xFFFF, +} + +[Flags] +public enum ERemoteStoragePlatform : int +{ + k_ERemoteStoragePlatformNone = 0, + k_ERemoteStoragePlatformWindows = (1 << 0), + k_ERemoteStoragePlatformOSX = (1 << 1), + k_ERemoteStoragePlatformPS3 = (1 << 2), + k_ERemoteStoragePlatformLinux = (1 << 3), + k_ERemoteStoragePlatformSwitch = (1 << 4), + k_ERemoteStoragePlatformAndroid = (1 << 5), + k_ERemoteStoragePlatformIOS = (1 << 6), + // NB we get one more before we need to widen some things + + k_ERemoteStoragePlatformAll = -1 +} + +public enum ERemoteStoragePublishedFileVisibility : int +{ + k_ERemoteStoragePublishedFileVisibilityPublic = 0, + k_ERemoteStoragePublishedFileVisibilityFriendsOnly = 1, + k_ERemoteStoragePublishedFileVisibilityPrivate = 2, + k_ERemoteStoragePublishedFileVisibilityUnlisted = 3, +} + +public enum EWorkshopFileType : int +{ + k_EWorkshopFileTypeFirst = 0, + + k_EWorkshopFileTypeCommunity = 0, // normal Workshop item that can be subscribed to + k_EWorkshopFileTypeMicrotransaction = 1, // Workshop item that is meant to be voted on for the purpose of selling in-game + k_EWorkshopFileTypeCollection = 2, // a collection of Workshop or Greenlight items + k_EWorkshopFileTypeArt = 3, // artwork + k_EWorkshopFileTypeVideo = 4, // external video + k_EWorkshopFileTypeScreenshot = 5, // screenshot + k_EWorkshopFileTypeGame = 6, // Greenlight game entry + k_EWorkshopFileTypeSoftware = 7, // Greenlight software entry + k_EWorkshopFileTypeConcept = 8, // Greenlight concept + k_EWorkshopFileTypeWebGuide = 9, // Steam web guide + k_EWorkshopFileTypeIntegratedGuide = 10, // application integrated guide + k_EWorkshopFileTypeMerch = 11, // Workshop merchandise meant to be voted on for the purpose of being sold + k_EWorkshopFileTypeControllerBinding = 12, // Steam Controller bindings + k_EWorkshopFileTypeSteamworksAccessInvite = 13, // internal + k_EWorkshopFileTypeSteamVideo = 14, // Steam video + k_EWorkshopFileTypeGameManagedItem = 15, // managed completely by the game, not the user, and not shown on the web + k_EWorkshopFileTypeClip = 16, // internal + + // Update k_EWorkshopFileTypeMax if you add values. + k_EWorkshopFileTypeMax = 17 + +} + +public enum EWorkshopVote : int +{ + k_EWorkshopVoteUnvoted = 0, + k_EWorkshopVoteFor = 1, + k_EWorkshopVoteAgainst = 2, + k_EWorkshopVoteLater = 3, +} + +public enum EWorkshopFileAction : int +{ + k_EWorkshopFileActionPlayed = 0, + k_EWorkshopFileActionCompleted = 1, +} + +public enum EWorkshopEnumerationType : int +{ + k_EWorkshopEnumerationTypeRankedByVote = 0, + k_EWorkshopEnumerationTypeRecent = 1, + k_EWorkshopEnumerationTypeTrending = 2, + k_EWorkshopEnumerationTypeFavoritesOfFriends = 3, + k_EWorkshopEnumerationTypeVotedByFriends = 4, + k_EWorkshopEnumerationTypeContentByFriends = 5, + k_EWorkshopEnumerationTypeRecentFromFollowedUsers = 6, +} + +public enum EWorkshopVideoProvider : int +{ + k_EWorkshopVideoProviderNone = 0, + k_EWorkshopVideoProviderYoutube = 1 +} + +public enum EUGCReadAction : int +{ + // Keeps the file handle open unless the last byte is read. You can use this when reading large files (over 100MB) in sequential chunks. + // If the last byte is read, this will behave the same as k_EUGCRead_Close. Otherwise, it behaves the same as k_EUGCRead_ContinueReading. + // This value maintains the same behavior as before the EUGCReadAction parameter was introduced. + k_EUGCRead_ContinueReadingUntilFinished = 0, + + // Keeps the file handle open. Use this when using UGCRead to seek to different parts of the file. + // When you are done seeking around the file, make a final call with k_EUGCRead_Close to close it. + k_EUGCRead_ContinueReading = 1, + + // Frees the file handle. Use this when you're done reading the content. + // To read the file from Steam again you will need to call UGCDownload again. + k_EUGCRead_Close = 2, +} + +public enum ERemoteStorageLocalFileChange : int +{ + k_ERemoteStorageLocalFileChange_Invalid = 0, + + // The file was updated from another device + k_ERemoteStorageLocalFileChange_FileUpdated = 1, + + // The file was deleted by another device + k_ERemoteStorageLocalFileChange_FileDeleted = 2, +} + +public enum ERemoteStorageFilePathType : int +{ + k_ERemoteStorageFilePathType_Invalid = 0, + + // The file is directly accessed by the game and this is the full path + k_ERemoteStorageFilePathType_Absolute = 1, + + // The file is accessed via the ISteamRemoteStorage API and this is the filename + k_ERemoteStorageFilePathType_APIFilename = 2, +} + +public enum EVRScreenshotType : int +{ + k_EVRScreenshotType_None = 0, + k_EVRScreenshotType_Mono = 1, + k_EVRScreenshotType_Stereo = 2, + k_EVRScreenshotType_MonoCubemap = 3, + k_EVRScreenshotType_MonoPanorama = 4, + k_EVRScreenshotType_StereoPanorama = 5 +} + +// callbacks +// Controls the color of the timeline bar segments. The value names listed here map to a multiplayer game, where +// the user starts a game (in menus), then joins a multiplayer session that first has a character selection lobby +// then finally the multiplayer session starts. However, you can also map these values to any type of game. In a single +// player game where you visit towns & dungeons, you could set k_ETimelineGameMode_Menus when the player is in a town +// buying items, k_ETimelineGameMode_Staging for when a dungeon is loading and k_ETimelineGameMode_Playing for when +// inside the dungeon fighting monsters. +public enum ETimelineGameMode : int +{ + k_ETimelineGameMode_Invalid = 0, + k_ETimelineGameMode_Playing = 1, + k_ETimelineGameMode_Staging = 2, + k_ETimelineGameMode_Menus = 3, + k_ETimelineGameMode_LoadingScreen = 4, + + k_ETimelineGameMode_Max, // one past the last valid value +} + +// Used in AddTimelineEvent, where Featured events will be offered before Standard events +public enum ETimelineEventClipPriority : int +{ + k_ETimelineEventClipPriority_Invalid = 0, + k_ETimelineEventClipPriority_None = 1, + k_ETimelineEventClipPriority_Standard = 2, + k_ETimelineEventClipPriority_Featured = 3, +} + +// Matching UGC types for queries +public enum EUGCMatchingUGCType : int +{ + k_EUGCMatchingUGCType_Items = 0, // both mtx items and ready-to-use items + k_EUGCMatchingUGCType_Items_Mtx = 1, + k_EUGCMatchingUGCType_Items_ReadyToUse = 2, + k_EUGCMatchingUGCType_Collections = 3, + k_EUGCMatchingUGCType_Artwork = 4, + k_EUGCMatchingUGCType_Videos = 5, + k_EUGCMatchingUGCType_Screenshots = 6, + k_EUGCMatchingUGCType_AllGuides = 7, // both web guides and integrated guides + k_EUGCMatchingUGCType_WebGuides = 8, + k_EUGCMatchingUGCType_IntegratedGuides = 9, + k_EUGCMatchingUGCType_UsableInGame = 10, // ready-to-use items and integrated guides + k_EUGCMatchingUGCType_ControllerBindings = 11, + k_EUGCMatchingUGCType_GameManagedItems = 12, // game managed items (not managed by users) + k_EUGCMatchingUGCType_All = ~0, // @note: will only be valid for CreateQueryUserUGCRequest requests +} + +// Different lists of published UGC for a user. +// If the current logged in user is different than the specified user, then some options may not be allowed. +public enum EUserUGCList : int +{ + k_EUserUGCList_Published, + k_EUserUGCList_VotedOn, + k_EUserUGCList_VotedUp, + k_EUserUGCList_VotedDown, + k_EUserUGCList_WillVoteLater, + k_EUserUGCList_Favorited, + k_EUserUGCList_Subscribed, + k_EUserUGCList_UsedOrPlayed, + k_EUserUGCList_Followed, +} + +// Sort order for user published UGC lists (defaults to creation order descending) +public enum EUserUGCListSortOrder : int +{ + k_EUserUGCListSortOrder_CreationOrderDesc, + k_EUserUGCListSortOrder_CreationOrderAsc, + k_EUserUGCListSortOrder_TitleAsc, + k_EUserUGCListSortOrder_LastUpdatedDesc, + k_EUserUGCListSortOrder_SubscriptionDateDesc, + k_EUserUGCListSortOrder_VoteScoreDesc, + k_EUserUGCListSortOrder_ForModeration, +} + +// Combination of sorting and filtering for queries across all UGC +public enum EUGCQuery : int +{ + k_EUGCQuery_RankedByVote = 0, + k_EUGCQuery_RankedByPublicationDate = 1, + k_EUGCQuery_AcceptedForGameRankedByAcceptanceDate = 2, + k_EUGCQuery_RankedByTrend = 3, + k_EUGCQuery_FavoritedByFriendsRankedByPublicationDate = 4, + k_EUGCQuery_CreatedByFriendsRankedByPublicationDate = 5, + k_EUGCQuery_RankedByNumTimesReported = 6, + k_EUGCQuery_CreatedByFollowedUsersRankedByPublicationDate = 7, + k_EUGCQuery_NotYetRated = 8, + k_EUGCQuery_RankedByTotalVotesAsc = 9, + k_EUGCQuery_RankedByVotesUp = 10, + k_EUGCQuery_RankedByTextSearch = 11, + k_EUGCQuery_RankedByTotalUniqueSubscriptions = 12, + k_EUGCQuery_RankedByPlaytimeTrend = 13, + k_EUGCQuery_RankedByTotalPlaytime = 14, + k_EUGCQuery_RankedByAveragePlaytimeTrend = 15, + k_EUGCQuery_RankedByLifetimeAveragePlaytime = 16, + k_EUGCQuery_RankedByPlaytimeSessionsTrend = 17, + k_EUGCQuery_RankedByLifetimePlaytimeSessions = 18, + k_EUGCQuery_RankedByLastUpdatedDate = 19, +} + +public enum EItemUpdateStatus : int +{ + k_EItemUpdateStatusInvalid = 0, // The item update handle was invalid, job might be finished, listen too SubmitItemUpdateResult_t + k_EItemUpdateStatusPreparingConfig = 1, // The item update is processing configuration data + k_EItemUpdateStatusPreparingContent = 2, // The item update is reading and processing content files + k_EItemUpdateStatusUploadingContent = 3, // The item update is uploading content changes to Steam + k_EItemUpdateStatusUploadingPreviewFile = 4, // The item update is uploading new preview file image + k_EItemUpdateStatusCommittingChanges = 5 // The item update is committing all changes +} + +[Flags] +public enum EItemState : int +{ + k_EItemStateNone = 0, // item not tracked on client + k_EItemStateSubscribed = 1, // current user is subscribed to this item. Not just cached. + k_EItemStateLegacyItem = 2, // item was created with ISteamRemoteStorage + k_EItemStateInstalled = 4, // item is installed and usable (but maybe out of date) + k_EItemStateNeedsUpdate = 8, // items needs an update. Either because it's not installed yet or creator updated content + k_EItemStateDownloading = 16, // item update is currently downloading + k_EItemStateDownloadPending = 32, // DownloadItem() was called for this item, content isn't available until DownloadItemResult_t is fired + k_EItemStateDisabledLocally = 64, // Item is disabled locally, so it shouldn't be considered subscribed +} + +public enum EItemStatistic : int +{ + k_EItemStatistic_NumSubscriptions = 0, + k_EItemStatistic_NumFavorites = 1, + k_EItemStatistic_NumFollowers = 2, + k_EItemStatistic_NumUniqueSubscriptions = 3, + k_EItemStatistic_NumUniqueFavorites = 4, + k_EItemStatistic_NumUniqueFollowers = 5, + k_EItemStatistic_NumUniqueWebsiteViews = 6, + k_EItemStatistic_ReportScore = 7, + k_EItemStatistic_NumSecondsPlayed = 8, + k_EItemStatistic_NumPlaytimeSessions = 9, + k_EItemStatistic_NumComments = 10, + k_EItemStatistic_NumSecondsPlayedDuringTimePeriod = 11, + k_EItemStatistic_NumPlaytimeSessionsDuringTimePeriod = 12, +} + +public enum EItemPreviewType : int +{ + k_EItemPreviewType_Image = 0, // standard image file expected (e.g. jpg, png, gif, etc.) + k_EItemPreviewType_YouTubeVideo = 1, // video id is stored + k_EItemPreviewType_Sketchfab = 2, // model id is stored + k_EItemPreviewType_EnvironmentMap_HorizontalCross = 3, // standard image file expected - cube map in the layout + // +---+---+-------+ + // | |Up | | + // +---+---+---+---+ + // | L | F | R | B | + // +---+---+---+---+ + // | |Dn | | + // +---+---+---+---+ + k_EItemPreviewType_EnvironmentMap_LatLong = 4, // standard image file expected + k_EItemPreviewType_Clip = 5, // clip id is stored + k_EItemPreviewType_ReservedMax = 255, // you can specify your own types above this value +} + +public enum EUGCContentDescriptorID : int +{ + k_EUGCContentDescriptor_NudityOrSexualContent = 1, + k_EUGCContentDescriptor_FrequentViolenceOrGore = 2, + k_EUGCContentDescriptor_AdultOnlySexualContent = 3, + k_EUGCContentDescriptor_GratuitousSexualContent = 4, + k_EUGCContentDescriptor_AnyMatureContent = 5, +} + +public enum EFailureType : int +{ + k_EFailureFlushedCallbackQueue, + k_EFailurePipeFail, +} + +// type of data request, when downloading leaderboard entries +public enum ELeaderboardDataRequest : int +{ + k_ELeaderboardDataRequestGlobal = 0, + k_ELeaderboardDataRequestGlobalAroundUser = 1, + k_ELeaderboardDataRequestFriends = 2, + k_ELeaderboardDataRequestUsers = 3 +} + +// the sort order of a leaderboard +public enum ELeaderboardSortMethod : int +{ + k_ELeaderboardSortMethodNone = 0, + k_ELeaderboardSortMethodAscending = 1, // top-score is lowest number + k_ELeaderboardSortMethodDescending = 2, // top-score is highest number +} + +// the display type (used by the Steam Community web site) for a leaderboard +public enum ELeaderboardDisplayType : int +{ + k_ELeaderboardDisplayTypeNone = 0, + k_ELeaderboardDisplayTypeNumeric = 1, // simple numerical score + k_ELeaderboardDisplayTypeTimeSeconds = 2, // the score represents a time, in seconds + k_ELeaderboardDisplayTypeTimeMilliSeconds = 3, // the score represents a time, in milliseconds +} + +public enum ELeaderboardUploadScoreMethod : int +{ + k_ELeaderboardUploadScoreMethodNone = 0, + k_ELeaderboardUploadScoreMethodKeepBest = 1, // Leaderboard will keep user's best score + k_ELeaderboardUploadScoreMethodForceUpdate = 2, // Leaderboard will always replace score with specified +} + +// Steam API call failure results +public enum ESteamAPICallFailure : int +{ + k_ESteamAPICallFailureNone = -1, // no failure + k_ESteamAPICallFailureSteamGone = 0, // the local Steam process has gone away + k_ESteamAPICallFailureNetworkFailure = 1, // the network connection to Steam has been broken, or was already broken + // SteamServersDisconnected_t callback will be sent around the same time + // SteamServersConnected_t will be sent when the client is able to talk to the Steam servers again + k_ESteamAPICallFailureInvalidHandle = 2, // the SteamAPICall_t handle passed in no longer exists + k_ESteamAPICallFailureMismatchedCallback = 3,// GetAPICallResult() was called with the wrong callback type for this API call +} + +// Input modes for the Big Picture gamepad text entry +public enum EGamepadTextInputMode : int +{ + k_EGamepadTextInputModeNormal = 0, + k_EGamepadTextInputModePassword = 1 +} + +// Controls number of allowed lines for the Big Picture gamepad text entry +public enum EGamepadTextInputLineMode : int +{ + k_EGamepadTextInputLineModeSingleLine = 0, + k_EGamepadTextInputLineModeMultipleLines = 1 +} + +public enum EFloatingGamepadTextInputMode : int +{ + k_EFloatingGamepadTextInputModeModeSingleLine = 0, // Enter dismisses the keyboard + k_EFloatingGamepadTextInputModeModeMultipleLines = 1, // User needs to explictly close the keyboard + k_EFloatingGamepadTextInputModeModeEmail = 2, // Keyboard layout is email, enter dismisses the keyboard + k_EFloatingGamepadTextInputModeModeNumeric = 3, // Keyboard layout is numeric, enter dismisses the keyboard + +} + +// The context where text filtering is being done +public enum ETextFilteringContext : int +{ + k_ETextFilteringContextUnknown = 0, // Unknown context + k_ETextFilteringContextGameContent = 1, // Game content, only legally required filtering is performed + k_ETextFilteringContextChat = 2, // Chat from another player + k_ETextFilteringContextName = 3, // Character or item name +} + +//----------------------------------------------------------------------------- +// results for CheckFileSignature +//----------------------------------------------------------------------------- +public enum ECheckFileSignature : int +{ + k_ECheckFileSignatureInvalidSignature = 0, + k_ECheckFileSignatureValidSignature = 1, + k_ECheckFileSignatureFileNotFound = 2, + k_ECheckFileSignatureNoSignaturesFoundForThisApp = 3, + k_ECheckFileSignatureNoSignaturesFoundForThisFile = 4, +} + +public enum EMatchMakingServerResponse : int +{ + eServerResponded = 0, + eServerFailedToRespond, + eNoServersListedOnMasterServer // for the Internet query type, returned in response callback if no servers of this type match +} + +//----------------------------------------------------------------------------------------------------------------------------------------------------------// +// Steam API setup & shutdown +// +// These functions manage loading, initializing and shutdown of the steamclient.dll +// +//----------------------------------------------------------------------------------------------------------------------------------------------------------// +public enum ESteamAPIInitResult : int +{ + k_ESteamAPIInitResult_OK = 0, + k_ESteamAPIInitResult_FailedGeneric = 1, // Some other failure + k_ESteamAPIInitResult_NoSteamClient = 2, // We cannot connect to Steam, steam probably isn't running + k_ESteamAPIInitResult_VersionMismatch = 3, // Steam client appears to be out of date +} + +public enum EServerMode : int +{ + eServerModeInvalid = 0, // DO NOT USE + eServerModeNoAuthentication = 1, // Don't authenticate user logins and don't list on the server list + eServerModeAuthentication = 2, // Authenticate users, list on the server list, don't run VAC on clients that connect + eServerModeAuthenticationAndSecure = 3, // Authenticate users, list on the server list and VAC protect clients +} + +// General result codes +public enum EResult : int +{ + k_EResultNone = 0, // no result + k_EResultOK = 1, // success + k_EResultFail = 2, // generic failure + k_EResultNoConnection = 3, // no/failed network connection + // k_EResultNoConnectionRetry = 4, // OBSOLETE - removed + k_EResultInvalidPassword = 5, // password/ticket is invalid + k_EResultLoggedInElsewhere = 6, // same user logged in elsewhere + k_EResultInvalidProtocolVer = 7, // protocol version is incorrect + k_EResultInvalidParam = 8, // a parameter is incorrect + k_EResultFileNotFound = 9, // file was not found + k_EResultBusy = 10, // called method busy - action not taken + k_EResultInvalidState = 11, // called object was in an invalid state + k_EResultInvalidName = 12, // name is invalid + k_EResultInvalidEmail = 13, // email is invalid + k_EResultDuplicateName = 14, // name is not unique + k_EResultAccessDenied = 15, // access is denied + k_EResultTimeout = 16, // operation timed out + k_EResultBanned = 17, // VAC2 banned + k_EResultAccountNotFound = 18, // account not found + k_EResultInvalidSteamID = 19, // steamID is invalid + k_EResultServiceUnavailable = 20, // The requested service is currently unavailable + k_EResultNotLoggedOn = 21, // The user is not logged on + k_EResultPending = 22, // Request is pending (may be in process, or waiting on third party) + k_EResultEncryptionFailure = 23, // Encryption or Decryption failed + k_EResultInsufficientPrivilege = 24, // Insufficient privilege + k_EResultLimitExceeded = 25, // Too much of a good thing + k_EResultRevoked = 26, // Access has been revoked (used for revoked guest passes) + k_EResultExpired = 27, // License/Guest pass the user is trying to access is expired + k_EResultAlreadyRedeemed = 28, // Guest pass has already been redeemed by account, cannot be acked again + k_EResultDuplicateRequest = 29, // The request is a duplicate and the action has already occurred in the past, ignored this time + k_EResultAlreadyOwned = 30, // All the games in this guest pass redemption request are already owned by the user + k_EResultIPNotFound = 31, // IP address not found + k_EResultPersistFailed = 32, // failed to write change to the data store + k_EResultLockingFailed = 33, // failed to acquire access lock for this operation + k_EResultLogonSessionReplaced = 34, + k_EResultConnectFailed = 35, + k_EResultHandshakeFailed = 36, + k_EResultIOFailure = 37, + k_EResultRemoteDisconnect = 38, + k_EResultShoppingCartNotFound = 39, // failed to find the shopping cart requested + k_EResultBlocked = 40, // a user didn't allow it + k_EResultIgnored = 41, // target is ignoring sender + k_EResultNoMatch = 42, // nothing matching the request found + k_EResultAccountDisabled = 43, + k_EResultServiceReadOnly = 44, // this service is not accepting content changes right now + k_EResultAccountNotFeatured = 45, // account doesn't have value, so this feature isn't available + k_EResultAdministratorOK = 46, // allowed to take this action, but only because requester is admin + k_EResultContentVersion = 47, // A Version mismatch in content transmitted within the Steam protocol. + k_EResultTryAnotherCM = 48, // The current CM can't service the user making a request, user should try another. + k_EResultPasswordRequiredToKickSession = 49,// You are already logged in elsewhere, this cached credential login has failed. + k_EResultAlreadyLoggedInElsewhere = 50, // You are already logged in elsewhere, you must wait + k_EResultSuspended = 51, // Long running operation (content download) suspended/paused + k_EResultCancelled = 52, // Operation canceled (typically by user: content download) + k_EResultDataCorruption = 53, // Operation canceled because data is ill formed or unrecoverable + k_EResultDiskFull = 54, // Operation canceled - not enough disk space. + k_EResultRemoteCallFailed = 55, // an remote call or IPC call failed + k_EResultPasswordUnset = 56, // Password could not be verified as it's unset server side + k_EResultExternalAccountUnlinked = 57, // External account (PSN, Facebook...) is not linked to a Steam account + k_EResultPSNTicketInvalid = 58, // PSN ticket was invalid + k_EResultExternalAccountAlreadyLinked = 59, // External account (PSN, Facebook...) is already linked to some other account, must explicitly request to replace/delete the link first + k_EResultRemoteFileConflict = 60, // The sync cannot resume due to a conflict between the local and remote files + k_EResultIllegalPassword = 61, // The requested new password is not legal + k_EResultSameAsPreviousValue = 62, // new value is the same as the old one ( secret question and answer ) + k_EResultAccountLogonDenied = 63, // account login denied due to 2nd factor authentication failure + k_EResultCannotUseOldPassword = 64, // The requested new password is not legal + k_EResultInvalidLoginAuthCode = 65, // account login denied due to auth code invalid + k_EResultAccountLogonDeniedNoMail = 66, // account login denied due to 2nd factor auth failure - and no mail has been sent - partner site specific + k_EResultHardwareNotCapableOfIPT = 67, // + k_EResultIPTInitError = 68, // + k_EResultParentalControlRestricted = 69, // operation failed due to parental control restrictions for current user + k_EResultFacebookQueryError = 70, // Facebook query returned an error + k_EResultExpiredLoginAuthCode = 71, // account login denied due to auth code expired + k_EResultIPLoginRestrictionFailed = 72, + k_EResultAccountLockedDown = 73, + k_EResultAccountLogonDeniedVerifiedEmailRequired = 74, + k_EResultNoMatchingURL = 75, + k_EResultBadResponse = 76, // parse failure, missing field, etc. + k_EResultRequirePasswordReEntry = 77, // The user cannot complete the action until they re-enter their password + k_EResultValueOutOfRange = 78, // the value entered is outside the acceptable range + k_EResultUnexpectedError = 79, // something happened that we didn't expect to ever happen + k_EResultDisabled = 80, // The requested service has been configured to be unavailable + k_EResultInvalidCEGSubmission = 81, // The set of files submitted to the CEG server are not valid ! + k_EResultRestrictedDevice = 82, // The device being used is not allowed to perform this action + k_EResultRegionLocked = 83, // The action could not be complete because it is region restricted + k_EResultRateLimitExceeded = 84, // Temporary rate limit exceeded, try again later, different from k_EResultLimitExceeded which may be permanent + k_EResultAccountLoginDeniedNeedTwoFactor = 85, // Need two-factor code to login + k_EResultItemDeleted = 86, // The thing we're trying to access has been deleted + k_EResultAccountLoginDeniedThrottle = 87, // login attempt failed, try to throttle response to possible attacker + k_EResultTwoFactorCodeMismatch = 88, // two factor code mismatch + k_EResultTwoFactorActivationCodeMismatch = 89, // activation code for two-factor didn't match + k_EResultAccountAssociatedToMultiplePartners = 90, // account has been associated with multiple partners + k_EResultNotModified = 91, // data not modified + k_EResultNoMobileDevice = 92, // the account does not have a mobile device associated with it + k_EResultTimeNotSynced = 93, // the time presented is out of range or tolerance + k_EResultSmsCodeFailed = 94, // SMS code failure (no match, none pending, etc.) + k_EResultAccountLimitExceeded = 95, // Too many accounts access this resource + k_EResultAccountActivityLimitExceeded = 96, // Too many changes to this account + k_EResultPhoneActivityLimitExceeded = 97, // Too many changes to this phone + k_EResultRefundToWallet = 98, // Cannot refund to payment method, must use wallet + k_EResultEmailSendFailure = 99, // Cannot send an email + k_EResultNotSettled = 100, // Can't perform operation till payment has settled + k_EResultNeedCaptcha = 101, // Needs to provide a valid captcha + k_EResultGSLTDenied = 102, // a game server login token owned by this token's owner has been banned + k_EResultGSOwnerDenied = 103, // game server owner is denied for other reason (account lock, community ban, vac ban, missing phone) + k_EResultInvalidItemType = 104, // the type of thing we were requested to act on is invalid + k_EResultIPBanned = 105, // the ip address has been banned from taking this action + k_EResultGSLTExpired = 106, // this token has expired from disuse; can be reset for use + k_EResultInsufficientFunds = 107, // user doesn't have enough wallet funds to complete the action + k_EResultTooManyPending = 108, // There are too many of this thing pending already + k_EResultNoSiteLicensesFound = 109, // No site licenses found + k_EResultWGNetworkSendExceeded = 110, // the WG couldn't send a response because we exceeded max network send size + k_EResultAccountNotFriends = 111, // the user is not mutually friends + k_EResultLimitedUserAccount = 112, // the user is limited + k_EResultCantRemoveItem = 113, // item can't be removed + k_EResultAccountDeleted = 114, // account has been deleted + k_EResultExistingUserCancelledLicense = 115, // A license for this already exists, but cancelled + k_EResultCommunityCooldown = 116, // access is denied because of a community cooldown (probably from support profile data resets) + k_EResultNoLauncherSpecified = 117, // No launcher was specified, but a launcher was needed to choose correct realm for operation. + k_EResultMustAgreeToSSA = 118, // User must agree to china SSA or global SSA before login + k_EResultLauncherMigrated = 119, // The specified launcher type is no longer supported; the user should be directed elsewhere + k_EResultSteamRealmMismatch = 120, // The user's realm does not match the realm of the requested resource + k_EResultInvalidSignature = 121, // signature check did not match + k_EResultParseFailure = 122, // Failed to parse input + k_EResultNoVerifiedPhone = 123, // account does not have a verified phone number + k_EResultInsufficientBattery = 124, // user device doesn't have enough battery charge currently to complete the action + k_EResultChargerRequired = 125, // The operation requires a charger to be plugged in, which wasn't present + k_EResultCachedCredentialInvalid = 126, // Cached credential was invalid - user must reauthenticate + K_EResultPhoneNumberIsVOIP = 127, // The phone number provided is a Voice Over IP number + k_EResultNotSupported = 128, // The data being accessed is not supported by this API + k_EResultFamilySizeLimitExceeded = 129, // Reached the maximum size of the family + k_EResultOfflineAppCacheInvalid = 130, // The local data for the offline mode cache is insufficient to login +} + +// Error codes for use with the voice functions +public enum EVoiceResult : int +{ + k_EVoiceResultOK = 0, + k_EVoiceResultNotInitialized = 1, + k_EVoiceResultNotRecording = 2, + k_EVoiceResultNoData = 3, + k_EVoiceResultBufferTooSmall = 4, + k_EVoiceResultDataCorrupted = 5, + k_EVoiceResultRestricted = 6, + k_EVoiceResultUnsupportedCodec = 7, + k_EVoiceResultReceiverOutOfDate = 8, + k_EVoiceResultReceiverDidNotAnswer = 9, + +} + +// Result codes to GSHandleClientDeny/Kick +public enum EDenyReason : int +{ + k_EDenyInvalid = 0, + k_EDenyInvalidVersion = 1, + k_EDenyGeneric = 2, + k_EDenyNotLoggedOn = 3, + k_EDenyNoLicense = 4, + k_EDenyCheater = 5, + k_EDenyLoggedInElseWhere = 6, + k_EDenyUnknownText = 7, + k_EDenyIncompatibleAnticheat = 8, + k_EDenyMemoryCorruption = 9, + k_EDenyIncompatibleSoftware = 10, + k_EDenySteamConnectionLost = 11, + k_EDenySteamConnectionError = 12, + k_EDenySteamResponseTimedOut = 13, + k_EDenySteamValidationStalled = 14, + k_EDenySteamOwnerLeftGuestUser = 15, +} + +// results from BeginAuthSession +public enum EBeginAuthSessionResult : int +{ + k_EBeginAuthSessionResultOK = 0, // Ticket is valid for this game and this steamID. + k_EBeginAuthSessionResultInvalidTicket = 1, // Ticket is not valid. + k_EBeginAuthSessionResultDuplicateRequest = 2, // A ticket has already been submitted for this steamID + k_EBeginAuthSessionResultInvalidVersion = 3, // Ticket is from an incompatible interface version + k_EBeginAuthSessionResultGameMismatch = 4, // Ticket is not for this game + k_EBeginAuthSessionResultExpiredTicket = 5, // Ticket has expired +} + +// Callback values for callback ValidateAuthTicketResponse_t which is a response to BeginAuthSession +public enum EAuthSessionResponse : int +{ + k_EAuthSessionResponseOK = 0, // Steam has verified the user is online, the ticket is valid and ticket has not been reused. + k_EAuthSessionResponseUserNotConnectedToSteam = 1, // The user in question is not connected to steam + k_EAuthSessionResponseNoLicenseOrExpired = 2, // The license has expired. + k_EAuthSessionResponseVACBanned = 3, // The user is VAC banned for this game. + k_EAuthSessionResponseLoggedInElseWhere = 4, // The user account has logged in elsewhere and the session containing the game instance has been disconnected. + k_EAuthSessionResponseVACCheckTimedOut = 5, // VAC has been unable to perform anti-cheat checks on this user + k_EAuthSessionResponseAuthTicketCanceled = 6, // The ticket has been canceled by the issuer + k_EAuthSessionResponseAuthTicketInvalidAlreadyUsed = 7, // This ticket has already been used, it is not valid. + k_EAuthSessionResponseAuthTicketInvalid = 8, // This ticket is not from a user instance currently connected to steam. + k_EAuthSessionResponsePublisherIssuedBan = 9, // The user is banned for this game. The ban came via the web api and not VAC + k_EAuthSessionResponseAuthTicketNetworkIdentityFailure = 10, // The network identity in the ticket does not match the server authenticating the ticket +} + +// results from UserHasLicenseForApp +public enum EUserHasLicenseForAppResult : int +{ + k_EUserHasLicenseResultHasLicense = 0, // User has a license for specified app + k_EUserHasLicenseResultDoesNotHaveLicense = 1, // User does not have a license for the specified app + k_EUserHasLicenseResultNoAuth = 2, // User has not been authenticated +} + +// Steam account types +public enum EAccountType : int +{ + k_EAccountTypeInvalid = 0, + k_EAccountTypeIndividual = 1, // single user account + k_EAccountTypeMultiseat = 2, // multiseat (e.g. cybercafe) account + k_EAccountTypeGameServer = 3, // game server account + k_EAccountTypeAnonGameServer = 4, // anonymous game server account + k_EAccountTypePending = 5, // pending + k_EAccountTypeContentServer = 6, // content server + k_EAccountTypeClan = 7, + k_EAccountTypeChat = 8, + k_EAccountTypeConsoleUser = 9, // Fake SteamID for local PSN account on PS3 or Live account on 360, etc. + k_EAccountTypeAnonUser = 10, + + // Max of 16 items in this field + k_EAccountTypeMax +} + +//----------------------------------------------------------------------------- +// Purpose: Chat Entry Types (previously was only friend-to-friend message types) +//----------------------------------------------------------------------------- +public enum EChatEntryType : int +{ + k_EChatEntryTypeInvalid = 0, + k_EChatEntryTypeChatMsg = 1, // Normal text message from another user + k_EChatEntryTypeTyping = 2, // Another user is typing (not used in multi-user chat) + k_EChatEntryTypeInviteGame = 3, // Invite from other user into that users current game + k_EChatEntryTypeEmote = 4, // text emote message (deprecated, should be treated as ChatMsg) + //k_EChatEntryTypeLobbyGameStart = 5, // lobby game is starting (dead - listen for LobbyGameCreated_t callback instead) + k_EChatEntryTypeLeftConversation = 6, // user has left the conversation ( closed chat window ) + // Above are previous FriendMsgType entries, now merged into more generic chat entry types + k_EChatEntryTypeEntered = 7, // user has entered the conversation (used in multi-user chat and group chat) + k_EChatEntryTypeWasKicked = 8, // user was kicked (data: 64-bit steamid of actor performing the kick) + k_EChatEntryTypeWasBanned = 9, // user was banned (data: 64-bit steamid of actor performing the ban) + k_EChatEntryTypeDisconnected = 10, // user disconnected + k_EChatEntryTypeHistoricalChat = 11, // a chat message from user's chat history or offilne message + //k_EChatEntryTypeReserved1 = 12, // No longer used + //k_EChatEntryTypeReserved2 = 13, // No longer used + k_EChatEntryTypeLinkBlocked = 14, // a link was removed by the chat filter. +} + +//----------------------------------------------------------------------------- +// Purpose: Chat Room Enter Responses +//----------------------------------------------------------------------------- +public enum EChatRoomEnterResponse : int +{ + k_EChatRoomEnterResponseSuccess = 1, // Success + k_EChatRoomEnterResponseDoesntExist = 2, // Chat doesn't exist (probably closed) + k_EChatRoomEnterResponseNotAllowed = 3, // General Denied - You don't have the permissions needed to join the chat + k_EChatRoomEnterResponseFull = 4, // Chat room has reached its maximum size + k_EChatRoomEnterResponseError = 5, // Unexpected Error + k_EChatRoomEnterResponseBanned = 6, // You are banned from this chat room and may not join + k_EChatRoomEnterResponseLimited = 7, // Joining this chat is not allowed because you are a limited user (no value on account) + k_EChatRoomEnterResponseClanDisabled = 8, // Attempt to join a clan chat when the clan is locked or disabled + k_EChatRoomEnterResponseCommunityBan = 9, // Attempt to join a chat when the user has a community lock on their account + k_EChatRoomEnterResponseMemberBlockedYou = 10, // Join failed - some member in the chat has blocked you from joining + k_EChatRoomEnterResponseYouBlockedMember = 11, // Join failed - you have blocked some member already in the chat + // k_EChatRoomEnterResponseNoRankingDataLobby = 12, // No longer used + // k_EChatRoomEnterResponseNoRankingDataUser = 13, // No longer used + // k_EChatRoomEnterResponseRankOutOfRange = 14, // No longer used + k_EChatRoomEnterResponseRatelimitExceeded = 15, // Join failed - to many join attempts in a very short period of time +} + +// Special flags for Chat accounts - they go in the top 8 bits +// of the steam ID's "instance", leaving 12 for the actual instances +[Flags] +public enum EChatSteamIDInstanceFlags : int +{ + k_EChatAccountInstanceMask = 0x00000FFF, // top 8 bits are flags + + k_EChatInstanceFlagClan = (Constants.k_unSteamAccountInstanceMask + 1) >> 1, // top bit + k_EChatInstanceFlagLobby = (Constants.k_unSteamAccountInstanceMask + 1) >> 2, // next one down, etc + k_EChatInstanceFlagMMSLobby = (Constants.k_unSteamAccountInstanceMask + 1) >> 3, // next one down, etc + + // Max of 8 flags +} + +//----------------------------------------------------------------------------- +// Purpose: Possible positions to tell the overlay to show notifications in +//----------------------------------------------------------------------------- +public enum ENotificationPosition : int +{ + k_EPositionInvalid = -1, + k_EPositionTopLeft = 0, + k_EPositionTopRight = 1, + k_EPositionBottomLeft = 2, + k_EPositionBottomRight = 3, +} + +//----------------------------------------------------------------------------- +// Purpose: Broadcast upload result details +//----------------------------------------------------------------------------- +public enum EBroadcastUploadResult : int +{ + k_EBroadcastUploadResultNone = 0, // broadcast state unknown + k_EBroadcastUploadResultOK = 1, // broadcast was good, no problems + k_EBroadcastUploadResultInitFailed = 2, // broadcast init failed + k_EBroadcastUploadResultFrameFailed = 3, // broadcast frame upload failed + k_EBroadcastUploadResultTimeout = 4, // broadcast upload timed out + k_EBroadcastUploadResultBandwidthExceeded = 5, // broadcast send too much data + k_EBroadcastUploadResultLowFPS = 6, // broadcast FPS too low + k_EBroadcastUploadResultMissingKeyFrames = 7, // broadcast sending not enough key frames + k_EBroadcastUploadResultNoConnection = 8, // broadcast client failed to connect to relay + k_EBroadcastUploadResultRelayFailed = 9, // relay dropped the upload + k_EBroadcastUploadResultSettingsChanged = 10, // the client changed broadcast settings + k_EBroadcastUploadResultMissingAudio = 11, // client failed to send audio data + k_EBroadcastUploadResultTooFarBehind = 12, // clients was too slow uploading + k_EBroadcastUploadResultTranscodeBehind = 13, // server failed to keep up with transcode + k_EBroadcastUploadResultNotAllowedToPlay = 14, // Broadcast does not have permissions to play game + k_EBroadcastUploadResultBusy = 15, // RTMP host to busy to take new broadcast stream, choose another + k_EBroadcastUploadResultBanned = 16, // Account banned from community broadcast + k_EBroadcastUploadResultAlreadyActive = 17, // We already already have an stream running. + k_EBroadcastUploadResultForcedOff = 18, // We explicitly shutting down a broadcast + k_EBroadcastUploadResultAudioBehind = 19, // Audio stream was too far behind video + k_EBroadcastUploadResultShutdown = 20, // Broadcast Server was shut down + k_EBroadcastUploadResultDisconnect = 21, // broadcast uploader TCP disconnected + k_EBroadcastUploadResultVideoInitFailed = 22, // invalid video settings + k_EBroadcastUploadResultAudioInitFailed = 23, // invalid audio settings +} + +//----------------------------------------------------------------------------- +// Purpose: Reasons a user may not use the Community Market. +// Used in MarketEligibilityResponse_t. +//----------------------------------------------------------------------------- +[Flags] +public enum EMarketNotAllowedReasonFlags : int +{ + k_EMarketNotAllowedReason_None = 0, + + // A back-end call failed or something that might work again on retry + k_EMarketNotAllowedReason_TemporaryFailure = (1 << 0), + + // Disabled account + k_EMarketNotAllowedReason_AccountDisabled = (1 << 1), + + // Locked account + k_EMarketNotAllowedReason_AccountLockedDown = (1 << 2), + + // Limited account (no purchases) + k_EMarketNotAllowedReason_AccountLimited = (1 << 3), + + // The account is banned from trading items + k_EMarketNotAllowedReason_TradeBanned = (1 << 4), + + // Wallet funds aren't tradable because the user has had no purchase + // activity in the last year or has had no purchases prior to last month + k_EMarketNotAllowedReason_AccountNotTrusted = (1 << 5), + + // The user doesn't have Steam Guard enabled + k_EMarketNotAllowedReason_SteamGuardNotEnabled = (1 << 6), + + // The user has Steam Guard, but it hasn't been enabled for the required + // number of days + k_EMarketNotAllowedReason_SteamGuardOnlyRecentlyEnabled = (1 << 7), + + // The user has recently forgotten their password and reset it + k_EMarketNotAllowedReason_RecentPasswordReset = (1 << 8), + + // The user has recently funded his or her wallet with a new payment method + k_EMarketNotAllowedReason_NewPaymentMethod = (1 << 9), + + // An invalid cookie was sent by the user + k_EMarketNotAllowedReason_InvalidCookie = (1 << 10), + + // The user has Steam Guard, but is using a new computer or web browser + k_EMarketNotAllowedReason_UsingNewDevice = (1 << 11), + + // The user has recently refunded a store purchase by his or herself + k_EMarketNotAllowedReason_RecentSelfRefund = (1 << 12), + + // The user has recently funded his or her wallet with a new payment method that cannot be verified + k_EMarketNotAllowedReason_NewPaymentMethodCannotBeVerified = (1 << 13), + + // Not only is the account not trusted, but they have no recent purchases at all + k_EMarketNotAllowedReason_NoRecentPurchases = (1 << 14), + + // User accepted a wallet gift that was recently purchased + k_EMarketNotAllowedReason_AcceptedWalletGift = (1 << 15), +} + +// +// describes XP / progress restrictions to apply for games with duration control / +// anti-indulgence enabled for minor Steam China users. +// +// WARNING: DO NOT RENUMBER +public enum EDurationControlProgress : int +{ + k_EDurationControlProgress_Full = 0, // Full progress + k_EDurationControlProgress_Half = 1, // deprecated - XP or persistent rewards should be halved + k_EDurationControlProgress_None = 2, // deprecated - XP or persistent rewards should be stopped + + k_EDurationControl_ExitSoon_3h = 3, // allowed 3h time since 5h gap/break has elapsed, game should exit - steam will terminate the game soon + k_EDurationControl_ExitSoon_5h = 4, // allowed 5h time in calendar day has elapsed, game should exit - steam will terminate the game soon + k_EDurationControl_ExitSoon_Night = 5, // game running after day period, game should exit - steam will terminate the game soon +} + +// +// describes which notification timer has expired, for steam china duration control feature +// +// WARNING: DO NOT RENUMBER +public enum EDurationControlNotification : int +{ + k_EDurationControlNotification_None = 0, // just informing you about progress, no notification to show + k_EDurationControlNotification_1Hour = 1, // "you've been playing for N hours" + + k_EDurationControlNotification_3Hours = 2, // deprecated - "you've been playing for 3 hours; take a break" + k_EDurationControlNotification_HalfProgress = 3,// deprecated - "your XP / progress is half normal" + k_EDurationControlNotification_NoProgress = 4, // deprecated - "your XP / progress is zero" + + k_EDurationControlNotification_ExitSoon_3h = 5, // allowed 3h time since 5h gap/break has elapsed, game should exit - steam will terminate the game soon + k_EDurationControlNotification_ExitSoon_5h = 6, // allowed 5h time in calendar day has elapsed, game should exit - steam will terminate the game soon + k_EDurationControlNotification_ExitSoon_Night = 7,// game running after day period, game should exit - steam will terminate the game soon +} + +// +// Specifies a game's online state in relation to duration control +// +public enum EDurationControlOnlineState : int +{ + k_EDurationControlOnlineState_Invalid = 0, // nil value + k_EDurationControlOnlineState_Offline = 1, // currently in offline play - single-player, offline co-op, etc. + k_EDurationControlOnlineState_Online = 2, // currently in online play + k_EDurationControlOnlineState_OnlineHighPri = 3, // currently in online play and requests not to be interrupted +} + +public enum EBetaBranchFlags : int +{ + k_EBetaBranch_None = 0, + k_EBetaBranch_Default = 1, // this is the default branch ("public") + k_EBetaBranch_Available = 2, // this branch can be selected (available) + k_EBetaBranch_Private = 4, // this is a private branch (password protected) + k_EBetaBranch_Selected = 8, // this is the currently selected branch (active) + k_EBetaBranch_Installed = 16, // this is the currently installed branch (mounted) +} + +public enum EGameSearchErrorCode_t : int +{ + k_EGameSearchErrorCode_OK = 1, + k_EGameSearchErrorCode_Failed_Search_Already_In_Progress = 2, + k_EGameSearchErrorCode_Failed_No_Search_In_Progress = 3, + k_EGameSearchErrorCode_Failed_Not_Lobby_Leader = 4, // if not the lobby leader can not call SearchForGameWithLobby + k_EGameSearchErrorCode_Failed_No_Host_Available = 5, // no host is available that matches those search params + k_EGameSearchErrorCode_Failed_Search_Params_Invalid = 6, // search params are invalid + k_EGameSearchErrorCode_Failed_Offline = 7, // offline, could not communicate with server + k_EGameSearchErrorCode_Failed_NotAuthorized = 8, // either the user or the application does not have priveledges to do this + k_EGameSearchErrorCode_Failed_Unknown_Error = 9, // unknown error +} + +public enum EPlayerResult_t : int +{ + k_EPlayerResultFailedToConnect = 1, // failed to connect after confirming + k_EPlayerResultAbandoned = 2, // quit game without completing it + k_EPlayerResultKicked = 3, // kicked by other players/moderator/server rules + k_EPlayerResultIncomplete = 4, // player stayed to end but game did not conclude successfully ( nofault to player ) + k_EPlayerResultCompleted = 5, // player completed game +} + +public enum ESteamIPv6ConnectivityProtocol : int +{ + k_ESteamIPv6ConnectivityProtocol_Invalid = 0, + k_ESteamIPv6ConnectivityProtocol_HTTP = 1, // because a proxy may make this different than other protocols + k_ESteamIPv6ConnectivityProtocol_UDP = 2, // test UDP connectivity. Uses a port that is commonly needed for other Steam stuff. If UDP works, TCP probably works. +} + +// For the above transport protocol, what do we think the local machine's connectivity to the internet over ipv6 is like +public enum ESteamIPv6ConnectivityState : int +{ + k_ESteamIPv6ConnectivityState_Unknown = 0, // We haven't run a test yet + k_ESteamIPv6ConnectivityState_Good = 1, // We have recently been able to make a request on ipv6 for the given protocol + k_ESteamIPv6ConnectivityState_Bad = 2, // We failed to make a request, either because this machine has no ipv6 address assigned, or it has no upstream connectivity +} + +// HTTP related types +// This enum is used in client API methods, do not re-number existing values. +public enum EHTTPMethod : int +{ + k_EHTTPMethodInvalid = 0, + k_EHTTPMethodGET, + k_EHTTPMethodHEAD, + k_EHTTPMethodPOST, + k_EHTTPMethodPUT, + k_EHTTPMethodDELETE, + k_EHTTPMethodOPTIONS, + k_EHTTPMethodPATCH, + + // The remaining HTTP methods are not yet supported, per rfc2616 section 5.1.1 only GET and HEAD are required for + // a compliant general purpose server. We'll likely add more as we find uses for them. + + // k_EHTTPMethodTRACE, + // k_EHTTPMethodCONNECT +} + +// HTTP Status codes that the server can send in response to a request, see rfc2616 section 10.3 for descriptions +// of each of these. +public enum EHTTPStatusCode : int +{ + // Invalid status code (this isn't defined in HTTP, used to indicate unset in our code) + k_EHTTPStatusCodeInvalid = 0, + + // Informational codes + k_EHTTPStatusCode100Continue = 100, + k_EHTTPStatusCode101SwitchingProtocols = 101, + + // Success codes + k_EHTTPStatusCode200OK = 200, + k_EHTTPStatusCode201Created = 201, + k_EHTTPStatusCode202Accepted = 202, + k_EHTTPStatusCode203NonAuthoritative = 203, + k_EHTTPStatusCode204NoContent = 204, + k_EHTTPStatusCode205ResetContent = 205, + k_EHTTPStatusCode206PartialContent = 206, + + // Redirection codes + k_EHTTPStatusCode300MultipleChoices = 300, + k_EHTTPStatusCode301MovedPermanently = 301, + k_EHTTPStatusCode302Found = 302, + k_EHTTPStatusCode303SeeOther = 303, + k_EHTTPStatusCode304NotModified = 304, + k_EHTTPStatusCode305UseProxy = 305, + //k_EHTTPStatusCode306Unused = 306, (used in old HTTP spec, now unused in 1.1) + k_EHTTPStatusCode307TemporaryRedirect = 307, + k_EHTTPStatusCode308PermanentRedirect = 308, + + // Error codes + k_EHTTPStatusCode400BadRequest = 400, + k_EHTTPStatusCode401Unauthorized = 401, // You probably want 403 or something else. 401 implies you're sending a WWW-Authenticate header and the client can sent an Authorization header in response. + k_EHTTPStatusCode402PaymentRequired = 402, // This is reserved for future HTTP specs, not really supported by clients + k_EHTTPStatusCode403Forbidden = 403, + k_EHTTPStatusCode404NotFound = 404, + k_EHTTPStatusCode405MethodNotAllowed = 405, + k_EHTTPStatusCode406NotAcceptable = 406, + k_EHTTPStatusCode407ProxyAuthRequired = 407, + k_EHTTPStatusCode408RequestTimeout = 408, + k_EHTTPStatusCode409Conflict = 409, + k_EHTTPStatusCode410Gone = 410, + k_EHTTPStatusCode411LengthRequired = 411, + k_EHTTPStatusCode412PreconditionFailed = 412, + k_EHTTPStatusCode413RequestEntityTooLarge = 413, + k_EHTTPStatusCode414RequestURITooLong = 414, + k_EHTTPStatusCode415UnsupportedMediaType = 415, + k_EHTTPStatusCode416RequestedRangeNotSatisfiable = 416, + k_EHTTPStatusCode417ExpectationFailed = 417, + k_EHTTPStatusCode4xxUnknown = 418, // 418 is reserved, so we'll use it to mean unknown + k_EHTTPStatusCode429TooManyRequests = 429, + k_EHTTPStatusCode444ConnectionClosed = 444, // nginx only? + + // Server error codes + k_EHTTPStatusCode500InternalServerError = 500, + k_EHTTPStatusCode501NotImplemented = 501, + k_EHTTPStatusCode502BadGateway = 502, + k_EHTTPStatusCode503ServiceUnavailable = 503, + k_EHTTPStatusCode504GatewayTimeout = 504, + k_EHTTPStatusCode505HTTPVersionNotSupported = 505, + k_EHTTPStatusCode5xxUnknown = 599, +} + +/// Describe the status of a particular network resource +public enum ESteamNetworkingAvailability : int +{ + // Negative values indicate a problem. + // + // In general, we will not automatically retry unless you take some action that + // depends on of requests this resource, such as querying the status, attempting + // to initiate a connection, receive a connection, etc. If you do not take any + // action at all, we do not automatically retry in the background. + k_ESteamNetworkingAvailability_CannotTry = -102, // A dependent resource is missing, so this service is unavailable. (E.g. we cannot talk to routers because Internet is down or we don't have the network config.) + k_ESteamNetworkingAvailability_Failed = -101, // We have tried for enough time that we would expect to have been successful by now. We have never been successful + k_ESteamNetworkingAvailability_Previously = -100, // We tried and were successful at one time, but now it looks like we have a problem + + k_ESteamNetworkingAvailability_Retrying = -10, // We previously failed and are currently retrying + + // Not a problem, but not ready either + k_ESteamNetworkingAvailability_NeverTried = 1, // We don't know because we haven't ever checked/tried + k_ESteamNetworkingAvailability_Waiting = 2, // We're waiting on a dependent resource to be acquired. (E.g. we cannot obtain a cert until we are logged into Steam. We cannot measure latency to relays until we have the network config.) + k_ESteamNetworkingAvailability_Attempting = 3, // We're actively trying now, but are not yet successful. + + k_ESteamNetworkingAvailability_Current = 100, // Resource is online/available + + + k_ESteamNetworkingAvailability_Unknown = 0, // Internal dummy/sentinel, or value is not applicable in this context + k_ESteamNetworkingAvailability__Force32bit = 0x7fffffff, +} + +// +// Describing network hosts +// +/// Different methods of describing the identity of a network host +public enum ESteamNetworkingIdentityType : int +{ + // Dummy/empty/invalid. + // Please note that if we parse a string that we don't recognize + // but that appears reasonable, we will NOT use this type. Instead + // we'll use k_ESteamNetworkingIdentityType_UnknownType. + k_ESteamNetworkingIdentityType_Invalid = 0, + + // + // Basic platform-specific identifiers. + // + k_ESteamNetworkingIdentityType_SteamID = 16, // 64-bit CSteamID + k_ESteamNetworkingIdentityType_XboxPairwiseID = 17, // Publisher-specific user identity, as string + k_ESteamNetworkingIdentityType_SonyPSN = 18, // 64-bit ID + + // + // Special identifiers. + // + + // Use their IP address (and port) as their "identity". + // These types of identities are always unauthenticated. + // They are useful for porting plain sockets code, and other + // situations where you don't care about authentication. In this + // case, the local identity will be "localhost", + // and the remote address will be their network address. + // + // We use the same type for either IPv4 or IPv6, and + // the address is always store as IPv6. We use IPv4 + // mapped addresses to handle IPv4. + k_ESteamNetworkingIdentityType_IPAddress = 1, + + // Generic string/binary blobs. It's up to your app to interpret this. + // This library can tell you if the remote host presented a certificate + // signed by somebody you have chosen to trust, with this identity on it. + // It's up to you to ultimately decide what this identity means. + k_ESteamNetworkingIdentityType_GenericString = 2, + k_ESteamNetworkingIdentityType_GenericBytes = 3, + + // This identity type is used when we parse a string that looks like is a + // valid identity, just of a kind that we don't recognize. In this case, we + // can often still communicate with the peer! Allowing such identities + // for types we do not recognize useful is very useful for forward + // compatibility. + k_ESteamNetworkingIdentityType_UnknownType = 4, + + // Make sure this enum is stored in an int. + k_ESteamNetworkingIdentityType__Force32bit = 0x7fffffff, +} + +/// "Fake IPs" are assigned to hosts, to make it easier to interface with +/// older code that assumed all hosts will have an IPv4 address +public enum ESteamNetworkingFakeIPType : int +{ + k_ESteamNetworkingFakeIPType_Invalid, // Error, argument was not even an IP address, etc. + k_ESteamNetworkingFakeIPType_NotFake, // Argument was a valid IP, but was not from the reserved "fake" range + k_ESteamNetworkingFakeIPType_GlobalIPv4, // Globally unique (for a given app) IPv4 address. Address space managed by Steam + k_ESteamNetworkingFakeIPType_LocalIPv4, // Locally unique IPv4 address. Address space managed by the local process. For internal use only; should not be shared! + + k_ESteamNetworkingFakeIPType__Force32Bit = 0x7fffffff +} + +// +// Connection status +// +/// High level connection status +public enum ESteamNetworkingConnectionState : int +{ + + /// Dummy value used to indicate an error condition in the API. + /// Specified connection doesn't exist or has already been closed. + k_ESteamNetworkingConnectionState_None = 0, + + /// We are trying to establish whether peers can talk to each other, + /// whether they WANT to talk to each other, perform basic auth, + /// and exchange crypt keys. + /// + /// - For connections on the "client" side (initiated locally): + /// We're in the process of trying to establish a connection. + /// Depending on the connection type, we might not know who they are. + /// Note that it is not possible to tell if we are waiting on the + /// network to complete handshake packets, or for the application layer + /// to accept the connection. + /// + /// - For connections on the "server" side (accepted through listen socket): + /// We have completed some basic handshake and the client has presented + /// some proof of identity. The connection is ready to be accepted + /// using AcceptConnection(). + /// + /// In either case, any unreliable packets sent now are almost certain + /// to be dropped. Attempts to receive packets are guaranteed to fail. + /// You may send messages if the send mode allows for them to be queued. + /// but if you close the connection before the connection is actually + /// established, any queued messages will be discarded immediately. + /// (We will not attempt to flush the queue and confirm delivery to the + /// remote host, which ordinarily happens when a connection is closed.) + k_ESteamNetworkingConnectionState_Connecting = 1, + + /// Some connection types use a back channel or trusted 3rd party + /// for earliest communication. If the server accepts the connection, + /// then these connections switch into the rendezvous state. During this + /// state, we still have not yet established an end-to-end route (through + /// the relay network), and so if you send any messages unreliable, they + /// are going to be discarded. + k_ESteamNetworkingConnectionState_FindingRoute = 2, + + /// We've received communications from our peer (and we know + /// who they are) and are all good. If you close the connection now, + /// we will make our best effort to flush out any reliable sent data that + /// has not been acknowledged by the peer. (But note that this happens + /// from within the application process, so unlike a TCP connection, you are + /// not totally handing it off to the operating system to deal with it.) + k_ESteamNetworkingConnectionState_Connected = 3, + + /// Connection has been closed by our peer, but not closed locally. + /// The connection still exists from an API perspective. You must close the + /// handle to free up resources. If there are any messages in the inbound queue, + /// you may retrieve them. Otherwise, nothing may be done with the connection + /// except to close it. + /// + /// This stats is similar to CLOSE_WAIT in the TCP state machine. + k_ESteamNetworkingConnectionState_ClosedByPeer = 4, + + /// A disruption in the connection has been detected locally. (E.g. timeout, + /// local internet connection disrupted, etc.) + /// + /// The connection still exists from an API perspective. You must close the + /// handle to free up resources. + /// + /// Attempts to send further messages will fail. Any remaining received messages + /// in the queue are available. + k_ESteamNetworkingConnectionState_ProblemDetectedLocally = 5, + + // + // The following values are used internally and will not be returned by any API. + // We document them here to provide a little insight into the state machine that is used + // under the hood. + // + + /// We've disconnected on our side, and from an API perspective the connection is closed. + /// No more data may be sent or received. All reliable data has been flushed, or else + /// we've given up and discarded it. We do not yet know for sure that the peer knows + /// the connection has been closed, however, so we're just hanging around so that if we do + /// get a packet from them, we can send them the appropriate packets so that they can + /// know why the connection was closed (and not have to rely on a timeout, which makes + /// it appear as if something is wrong). + k_ESteamNetworkingConnectionState_FinWait = -1, + + /// We've disconnected on our side, and from an API perspective the connection is closed. + /// No more data may be sent or received. From a network perspective, however, on the wire, + /// we have not yet given any indication to the peer that the connection is closed. + /// We are in the process of flushing out the last bit of reliable data. Once that is done, + /// we will inform the peer that the connection has been closed, and transition to the + /// FinWait state. + /// + /// Note that no indication is given to the remote host that we have closed the connection, + /// until the data has been flushed. If the remote host attempts to send us data, we will + /// do whatever is necessary to keep the connection alive until it can be closed properly. + /// But in fact the data will be discarded, since there is no way for the application to + /// read it back. Typically this is not a problem, as application protocols that utilize + /// the lingering functionality are designed for the remote host to wait for the response + /// before sending any more data. + k_ESteamNetworkingConnectionState_Linger = -2, + + /// Connection is completely inactive and ready to be destroyed + k_ESteamNetworkingConnectionState_Dead = -3, + + k_ESteamNetworkingConnectionState__Force32Bit = 0x7fffffff +} + +/// Enumerate various causes of connection termination. These are designed to work similar +/// to HTTP error codes: the numeric range gives you a rough classification as to the source +/// of the problem. +public enum ESteamNetConnectionEnd : int +{ + // Invalid/sentinel value + k_ESteamNetConnectionEnd_Invalid = 0, + + // + // Application codes. These are the values you will pass to + // ISteamNetworkingSockets::CloseConnection. You can use these codes if + // you want to plumb through application-specific reason codes. If you don't + // need this facility, feel free to always pass + // k_ESteamNetConnectionEnd_App_Generic. + // + // The distinction between "normal" and "exceptional" termination is + // one you may use if you find useful, but it's not necessary for you + // to do so. The only place where we distinguish between normal and + // exceptional is in connection analytics. If a significant + // proportion of connections terminates in an exceptional manner, + // this can trigger an alert. + // + + // 1xxx: Application ended the connection in a "usual" manner. + // E.g.: user intentionally disconnected from the server, + // gameplay ended normally, etc + k_ESteamNetConnectionEnd_App_Min = 1000, + k_ESteamNetConnectionEnd_App_Generic = k_ESteamNetConnectionEnd_App_Min, + // Use codes in this range for "normal" disconnection + k_ESteamNetConnectionEnd_App_Max = 1999, + + // 2xxx: Application ended the connection in some sort of exceptional + // or unusual manner that might indicate a bug or configuration + // issue. + // + k_ESteamNetConnectionEnd_AppException_Min = 2000, + k_ESteamNetConnectionEnd_AppException_Generic = k_ESteamNetConnectionEnd_AppException_Min, + // Use codes in this range for "unusual" disconnection + k_ESteamNetConnectionEnd_AppException_Max = 2999, + + // + // System codes. These will be returned by the system when + // the connection state is k_ESteamNetworkingConnectionState_ClosedByPeer + // or k_ESteamNetworkingConnectionState_ProblemDetectedLocally. It is + // illegal to pass a code in this range to ISteamNetworkingSockets::CloseConnection + // + + // 3xxx: Connection failed or ended because of problem with the + // local host or their connection to the Internet. + k_ESteamNetConnectionEnd_Local_Min = 3000, + + // You cannot do what you want to do because you're running in offline mode. + k_ESteamNetConnectionEnd_Local_OfflineMode = 3001, + + // We're having trouble contacting many (perhaps all) relays. + // Since it's unlikely that they all went offline at once, the best + // explanation is that we have a problem on our end. Note that we don't + // bother distinguishing between "many" and "all", because in practice, + // it takes time to detect a connection problem, and by the time + // the connection has timed out, we might not have been able to + // actively probe all of the relay clusters, even if we were able to + // contact them at one time. So this code just means that: + // + // * We don't have any recent successful communication with any relay. + // * We have evidence of recent failures to communicate with multiple relays. + k_ESteamNetConnectionEnd_Local_ManyRelayConnectivity = 3002, + + // A hosted server is having trouble talking to the relay + // that the client was using, so the problem is most likely + // on our end + k_ESteamNetConnectionEnd_Local_HostedServerPrimaryRelay = 3003, + + // We're not able to get the SDR network config. This is + // *almost* always a local issue, since the network config + // comes from the CDN, which is pretty darn reliable. + k_ESteamNetConnectionEnd_Local_NetworkConfig = 3004, + + // Steam rejected our request because we don't have rights + // to do this. + k_ESteamNetConnectionEnd_Local_Rights = 3005, + + // ICE P2P rendezvous failed because we were not able to + // determine our "public" address (e.g. reflexive address via STUN) + // + // If relay fallback is available (it always is on Steam), then + // this is only used internally and will not be returned as a high + // level failure. + k_ESteamNetConnectionEnd_Local_P2P_ICE_NoPublicAddresses = 3006, + + k_ESteamNetConnectionEnd_Local_Max = 3999, + + // 4xxx: Connection failed or ended, and it appears that the + // cause does NOT have to do with the local host or their + // connection to the Internet. It could be caused by the + // remote host, or it could be somewhere in between. + k_ESteamNetConnectionEnd_Remote_Min = 4000, + + // The connection was lost, and as far as we can tell our connection + // to relevant services (relays) has not been disrupted. This doesn't + // mean that the problem is "their fault", it just means that it doesn't + // appear that we are having network issues on our end. + k_ESteamNetConnectionEnd_Remote_Timeout = 4001, + + // Something was invalid with the cert or crypt handshake + // info you gave me, I don't understand or like your key types, + // etc. + k_ESteamNetConnectionEnd_Remote_BadCrypt = 4002, + + // You presented me with a cert that was I was able to parse + // and *technically* we could use encrypted communication. + // But there was a problem that prevents me from checking your identity + // or ensuring that somebody int he middle can't observe our communication. + // E.g.: - the CA key was missing (and I don't accept unsigned certs) + // - The CA key isn't one that I trust, + // - The cert doesn't was appropriately restricted by app, user, time, data center, etc. + // - The cert wasn't issued to you. + // - etc + k_ESteamNetConnectionEnd_Remote_BadCert = 4003, + + // These will never be returned + //k_ESteamNetConnectionEnd_Remote_NotLoggedIn_DEPRECATED = 4004, + //k_ESteamNetConnectionEnd_Remote_NotRunningApp_DEPRECATED = 4005, + + // Something wrong with the protocol version you are using. + // (Probably the code you are running is too old.) + k_ESteamNetConnectionEnd_Remote_BadProtocolVersion = 4006, + + // NAT punch failed failed because we never received any public + // addresses from the remote host. (But we did receive some + // signals form them.) + // + // If relay fallback is available (it always is on Steam), then + // this is only used internally and will not be returned as a high + // level failure. + k_ESteamNetConnectionEnd_Remote_P2P_ICE_NoPublicAddresses = 4007, + + k_ESteamNetConnectionEnd_Remote_Max = 4999, + + // 5xxx: Connection failed for some other reason. + k_ESteamNetConnectionEnd_Misc_Min = 5000, + + // A failure that isn't necessarily the result of a software bug, + // but that should happen rarely enough that it isn't worth specifically + // writing UI or making a localized message for. + // The debug string should contain further details. + k_ESteamNetConnectionEnd_Misc_Generic = 5001, + + // Generic failure that is most likely a software bug. + k_ESteamNetConnectionEnd_Misc_InternalError = 5002, + + // The connection to the remote host timed out, but we + // don't know if the problem is on our end, in the middle, + // or on their end. + k_ESteamNetConnectionEnd_Misc_Timeout = 5003, + + //k_ESteamNetConnectionEnd_Misc_RelayConnectivity_DEPRECATED = 5004, + + // There's some trouble talking to Steam. + k_ESteamNetConnectionEnd_Misc_SteamConnectivity = 5005, + + // A server in a dedicated hosting situation has no relay sessions + // active with which to talk back to a client. (It's the client's + // job to open and maintain those sessions.) + k_ESteamNetConnectionEnd_Misc_NoRelaySessionsToClient = 5006, + + // While trying to initiate a connection, we never received + // *any* communication from the peer. + //k_ESteamNetConnectionEnd_Misc_ServerNeverReplied = 5007, + + // P2P rendezvous failed in a way that we don't have more specific + // information + k_ESteamNetConnectionEnd_Misc_P2P_Rendezvous = 5008, + + // NAT punch failed, probably due to NAT/firewall configuration. + // + // If relay fallback is available (it always is on Steam), then + // this is only used internally and will not be returned as a high + // level failure. + k_ESteamNetConnectionEnd_Misc_P2P_NAT_Firewall = 5009, + + // Our peer replied that it has no record of the connection. + // This should not happen ordinarily, but can happen in a few + // exception cases: + // + // - This is an old connection, and the peer has already cleaned + // up and forgotten about it. (Perhaps it timed out and they + // closed it and were not able to communicate this to us.) + // - A bug or internal protocol error has caused us to try to + // talk to the peer about the connection before we received + // confirmation that the peer has accepted the connection. + // - The peer thinks that we have closed the connection for some + // reason (perhaps a bug), and believes that is it is + // acknowledging our closure. + k_ESteamNetConnectionEnd_Misc_PeerSentNoConnection = 5010, + + k_ESteamNetConnectionEnd_Misc_Max = 5999, + + k_ESteamNetConnectionEnd__Force32Bit = 0x7fffffff +} + +// +// Configuration values +// +/// Configuration values can be applied to different types of objects. +public enum ESteamNetworkingConfigScope : int +{ + + /// Get/set global option, or defaults. Even options that apply to more specific scopes + /// have global scope, and you may be able to just change the global defaults. If you + /// need different settings per connection (for example), then you will need to set those + /// options at the more specific scope. + k_ESteamNetworkingConfig_Global = 1, + + /// Some options are specific to a particular interface. Note that all connection + /// and listen socket settings can also be set at the interface level, and they will + /// apply to objects created through those interfaces. + k_ESteamNetworkingConfig_SocketsInterface = 2, + + /// Options for a listen socket. Listen socket options can be set at the interface layer, + /// if you have multiple listen sockets and they all use the same options. + /// You can also set connection options on a listen socket, and they set the defaults + /// for all connections accepted through this listen socket. (They will be used if you don't + /// set a connection option.) + k_ESteamNetworkingConfig_ListenSocket = 3, + + /// Options for a specific connection. + k_ESteamNetworkingConfig_Connection = 4, + + k_ESteamNetworkingConfigScope__Force32Bit = 0x7fffffff +} + +// Different configuration values have different data types +public enum ESteamNetworkingConfigDataType : int +{ + k_ESteamNetworkingConfig_Int32 = 1, + k_ESteamNetworkingConfig_Int64 = 2, + k_ESteamNetworkingConfig_Float = 3, + k_ESteamNetworkingConfig_String = 4, + k_ESteamNetworkingConfig_Ptr = 5, + + k_ESteamNetworkingConfigDataType__Force32Bit = 0x7fffffff +} + +/// Configuration options +public enum ESteamNetworkingConfigValue : int +{ + k_ESteamNetworkingConfig_Invalid = 0, + + // + // Connection options + // + + /// [connection int32] Timeout value (in ms) to use when first connecting + k_ESteamNetworkingConfig_TimeoutInitial = 24, + + /// [connection int32] Timeout value (in ms) to use after connection is established + k_ESteamNetworkingConfig_TimeoutConnected = 25, + + /// [connection int32] Upper limit of buffered pending bytes to be sent, + /// if this is reached SendMessage will return k_EResultLimitExceeded + /// Default is 512k (524288 bytes) + k_ESteamNetworkingConfig_SendBufferSize = 9, + + /// [connection int32] Upper limit on total size (in bytes) of received messages + /// that will be buffered waiting to be processed by the application. If this limit + /// is exceeded, packets will be dropped. This is to protect us from a malicious + /// peer flooding us with messages faster than we can process them. + /// + /// This must be bigger than k_ESteamNetworkingConfig_RecvMaxMessageSize + k_ESteamNetworkingConfig_RecvBufferSize = 47, + + /// [connection int32] Upper limit on the number of received messages that will + /// that will be buffered waiting to be processed by the application. If this limit + /// is exceeded, packets will be dropped. This is to protect us from a malicious + /// peer flooding us with messages faster than we can pull them off the wire. + k_ESteamNetworkingConfig_RecvBufferMessages = 48, + + /// [connection int32] Maximum message size that we are willing to receive. + /// if a client attempts to send us a message larger than this, the connection + /// will be immediately closed. + /// + /// Default is 512k (524288 bytes). Note that the peer needs to be able to + /// send a message this big. (See k_cbMaxSteamNetworkingSocketsMessageSizeSend.) + k_ESteamNetworkingConfig_RecvMaxMessageSize = 49, + + /// [connection int32] Max number of message segments that can be received + /// in a single UDP packet. While decoding a packet, if the number of segments + /// exceeds this, we will abort further packet processing. + /// + /// The default is effectively unlimited. If you know that you very rarely + /// send small packets, you can protect yourself from malicious senders by + /// lowering this number. + /// + /// In particular, if you are NOT using the reliability layer and are only using + /// SteamNetworkingSockets for datagram transport, setting this to a very low + /// number may be beneficial. (We recommend a value of 2.) Make sure your sender + /// disables Nagle! + k_ESteamNetworkingConfig_RecvMaxSegmentsPerPacket = 50, + + /// [connection int64] Get/set userdata as a configuration option. + /// The default value is -1. You may want to set the user data as + /// a config value, instead of using ISteamNetworkingSockets::SetConnectionUserData + /// in two specific instances: + /// + /// - You wish to set the userdata atomically when creating + /// an outbound connection, so that the userdata is filled in properly + /// for any callbacks that happen. However, note that this trick + /// only works for connections initiated locally! For incoming + /// connections, multiple state transitions may happen and + /// callbacks be queued, before you are able to service the first + /// callback! Be careful! + /// + /// - You can set the default userdata for all newly created connections + /// by setting this value at a higher level (e.g. on the listen + /// socket or at the global level.) Then this default + /// value will be inherited when the connection is created. + /// This is useful in case -1 is a valid userdata value, and you + /// wish to use something else as the default value so you can + /// tell if it has been set or not. + /// + /// HOWEVER: once a connection is created, the effective value is + /// then bound to the connection. Unlike other connection options, + /// if you change it again at a higher level, the new value will not + /// be inherited by connections. + /// + /// Using the userdata field in callback structs is not advised because + /// of tricky race conditions. Instead, you might try one of these methods: + /// + /// - Use a separate map with the HSteamNetConnection as the key. + /// - Fetch the userdata from the connection in your callback + /// using ISteamNetworkingSockets::GetConnectionUserData, to + // ensure you have the current value. + k_ESteamNetworkingConfig_ConnectionUserData = 40, + + /// [connection int32] Minimum/maximum send rate clamp, in bytes/sec. + /// At the time of this writing these two options should always be set to + /// the same value, to manually configure a specific send rate. The default + /// value is 256K. Eventually we hope to have the library estimate the bandwidth + /// of the channel and set the send rate to that estimated bandwidth, and these + /// values will only set limits on that send rate. + k_ESteamNetworkingConfig_SendRateMin = 10, + k_ESteamNetworkingConfig_SendRateMax = 11, + + /// [connection int32] Nagle time, in microseconds. When SendMessage is called, if + /// the outgoing message is less than the size of the MTU, it will be + /// queued for a delay equal to the Nagle timer value. This is to ensure + /// that if the application sends several small messages rapidly, they are + /// coalesced into a single packet. + /// See historical RFC 896. Value is in microseconds. + /// Default is 5000us (5ms). + k_ESteamNetworkingConfig_NagleTime = 12, + + /// [connection int32] Don't automatically fail IP connections that don't have + /// strong auth. On clients, this means we will attempt the connection even if + /// we don't know our identity or can't get a cert. On the server, it means that + /// we won't automatically reject a connection due to a failure to authenticate. + /// (You can examine the incoming connection and decide whether to accept it.) + /// + /// 0: Don't attempt or accept unauthorized connections + /// 1: Attempt authorization when connecting, and allow unauthorized peers, but emit warnings + /// 2: don't attempt authentication, or complain if peer is unauthenticated + /// + /// This is a dev configuration value, and you should not let users modify it in + /// production. + k_ESteamNetworkingConfig_IP_AllowWithoutAuth = 23, + + /// [connection int32] The same as IP_AllowWithoutAuth, but will only apply + /// for connections to/from localhost addresses. Whichever value is larger + /// (more permissive) will be used. + k_ESteamNetworkingConfig_IPLocalHost_AllowWithoutAuth = 52, + + /// [connection int32] Do not send UDP packets with a payload of + /// larger than N bytes. If you set this, k_ESteamNetworkingConfig_MTU_DataSize + /// is automatically adjusted + k_ESteamNetworkingConfig_MTU_PacketSize = 32, + + /// [connection int32] (read only) Maximum message size you can send that + /// will not fragment, based on k_ESteamNetworkingConfig_MTU_PacketSize + k_ESteamNetworkingConfig_MTU_DataSize = 33, + + /// [connection int32] Allow unencrypted (and unauthenticated) communication. + /// 0: Not allowed (the default) + /// 1: Allowed, but prefer encrypted + /// 2: Allowed, and preferred + /// 3: Required. (Fail the connection if the peer requires encryption.) + /// + /// This is a dev configuration value, since its purpose is to disable encryption. + /// You should not let users modify it in production. (But note that it requires + /// the peer to also modify their value in order for encryption to be disabled.) + k_ESteamNetworkingConfig_Unencrypted = 34, + + /// [connection int32] Set this to 1 on outbound connections and listen sockets, + /// to enable "symmetric connect mode", which is useful in the following + /// common peer-to-peer use case: + /// + /// - The two peers are "equal" to each other. (Neither is clearly the "client" + /// or "server".) + /// - Either peer may initiate the connection, and indeed they may do this + /// at the same time + /// - The peers only desire a single connection to each other, and if both + /// peers initiate connections simultaneously, a protocol is needed for them + /// to resolve the conflict, so that we end up with a single connection. + /// + /// This use case is both common, and involves subtle race conditions and tricky + /// pitfalls, which is why the API has support for dealing with it. + /// + /// If an incoming connection arrives on a listen socket or via custom signaling, + /// and the application has not attempted to make a matching outbound connection + /// in symmetric mode, then the incoming connection can be accepted as usual. + /// A "matching" connection means that the relevant endpoint information matches. + /// (At the time this comment is being written, this is only supported for P2P + /// connections, which means that the peer identities must match, and the virtual + /// port must match. At a later time, symmetric mode may be supported for other + /// connection types.) + /// + /// If connections are initiated by both peers simultaneously, race conditions + /// can arise, but fortunately, most of them are handled internally and do not + /// require any special awareness from the application. However, there + /// is one important case that application code must be aware of: + /// If application code attempts an outbound connection using a ConnectXxx + /// function in symmetric mode, and a matching incoming connection is already + /// waiting on a listen socket, then instead of forming a new connection, + /// the ConnectXxx call will accept the existing incoming connection, and return + /// a connection handle to this accepted connection. + /// IMPORTANT: in this case, a SteamNetConnectionStatusChangedCallback_t + /// has probably *already* been posted to the queue for the incoming connection! + /// (Once callbacks are posted to the queue, they are not modified.) It doesn't + /// matter if the callback has not been consumed by the app. Thus, application + /// code that makes use of symmetric connections must be aware that, when processing a + /// SteamNetConnectionStatusChangedCallback_t for an incoming connection, the + /// m_hConn may refer to a new connection that the app has has not + /// seen before (the usual case), but it may also refer to a connection that + /// has already been accepted implicitly through a call to Connect()! In this + /// case, AcceptConnection() will return k_EResultDuplicateRequest. + /// + /// Only one symmetric connection to a given peer (on a given virtual port) + /// may exist at any given time. If client code attempts to create a connection, + /// and a (live) connection already exists on the local host, then either the + /// existing connection will be accepted as described above, or the attempt + /// to create a new connection will fail. Furthermore, linger mode functionality + /// is not supported on symmetric connections. + /// + /// A more complicated race condition can arise if both peers initiate a connection + /// at roughly the same time. In this situation, each peer will receive an incoming + /// connection from the other peer, when the application code has already initiated + /// an outgoing connection to that peer. The peers must resolve this conflict and + /// decide who is going to act as the "server" and who will act as the "client". + /// Typically the application does not need to be aware of this case as it is handled + /// internally. On both sides, the will observe their outbound connection being + /// "accepted", although one of them one have been converted internally to act + /// as the "server". + /// + /// In general, symmetric mode should be all-or-nothing: do not mix symmetric + /// connections with a non-symmetric connection that it might possible "match" + /// with. If you use symmetric mode on any connections, then both peers should + /// use it on all connections, and the corresponding listen socket, if any. The + /// behaviour when symmetric and ordinary connections are mixed is not defined by + /// this API, and you should not rely on it. (This advice only applies when connections + /// might possibly "match". For example, it's OK to use all symmetric mode + /// connections on one virtual port, and all ordinary, non-symmetric connections + /// on a different virtual port, as there is no potential for ambiguity.) + /// + /// When using the feature, you should set it in the following situations on + /// applicable objects: + /// + /// - When creating an outbound connection using ConnectXxx function + /// - When creating a listen socket. (Note that this will automatically cause + /// any accepted connections to inherit the flag.) + /// - When using custom signaling, before accepting an incoming connection. + /// + /// Setting the flag on listen socket and accepted connections will enable the + /// API to automatically deal with duplicate incoming connections, even if the + /// local host has not made any outbound requests. (In general, such duplicate + /// requests from a peer are ignored internally and will not be visible to the + /// application code. The previous connection must be closed or resolved first.) + k_ESteamNetworkingConfig_SymmetricConnect = 37, + + /// [connection int32] For connection types that use "virtual ports", this can be used + /// to assign a local virtual port. For incoming connections, this will always be the + /// virtual port of the listen socket (or the port requested by the remote host if custom + /// signaling is used and the connection is accepted), and cannot be changed. For + /// connections initiated locally, the local virtual port will default to the same as the + /// requested remote virtual port, if you do not specify a different option when creating + /// the connection. The local port is only relevant for symmetric connections, when + /// determining if two connections "match." In this case, if you need the local and remote + /// port to differ, you can set this value. + /// + /// You can also read back this value on listen sockets. + /// + /// This value should not be read or written in any other context. + k_ESteamNetworkingConfig_LocalVirtualPort = 38, + + /// [connection int32] Enable Dual wifi band support for this connection + /// 0 = no, 1 = yes, 2 = simulate it for debugging, even if dual wifi not available + k_ESteamNetworkingConfig_DualWifi_Enable = 39, + + /// [connection int32] True to enable diagnostics reporting through + /// generic platform UI. (Only available on Steam.) + k_ESteamNetworkingConfig_EnableDiagnosticsUI = 46, + + /// [connection int32] Send of time-since-previous-packet values in each UDP packet. + /// This add a small amount of packet overhead but allows for detailed jitter measurements + /// to be made by the receiver. + /// + /// - 0: disables the sending + /// - 1: enables sending + /// - -1: (the default) Use the default for the connection type. For plain UDP connections, + /// this is disabled, and for relayed connections, it is enabled. Note that relays + /// always send the value. + k_ESteamNetworkingConfig_SendTimeSincePreviousPacket = 59, + + // + // Simulating network conditions + // + // These are global (not per-connection) because they apply at + // a relatively low UDP layer. + // + + /// [global float, 0--100] Randomly discard N pct of packets instead of sending/recv + /// This is a global option only, since it is applied at a low level + /// where we don't have much context + k_ESteamNetworkingConfig_FakePacketLoss_Send = 2, + k_ESteamNetworkingConfig_FakePacketLoss_Recv = 3, + + /// [global int32]. Delay all outbound/inbound packets by N ms + k_ESteamNetworkingConfig_FakePacketLag_Send = 4, + k_ESteamNetworkingConfig_FakePacketLag_Recv = 5, + + /// Simulated jitter/clumping. + /// + /// For each packet, a jitter value is determined (which may + /// be zero). This amount is added as extra delay to the + /// packet. When a subsequent packet is queued, it receives its + /// own random jitter amount from the current time. if this would + /// result in the packets being delivered out of order, the later + /// packet queue time is adjusted to happen after the first packet. + /// Thus simulating jitter by itself will not reorder packets, but it + /// can "clump" them. + /// + /// - Avg: A random jitter time is generated using an exponential + /// distribution using this value as the mean (ms). The default + /// is zero, which disables random jitter. + /// - Max: Limit the random jitter time to this value (ms). + /// - Pct: odds (0-100) that a random jitter value for the packet + /// will be generated. Otherwise, a jitter value of zero + /// is used, and the packet will only be delayed by the jitter + /// system if necessary to retain order, due to the jitter of a + /// previous packet. + /// + /// All values are [global float] + /// + /// Fake jitter is simulated after fake lag, but before reordering. + k_ESteamNetworkingConfig_FakePacketJitter_Send_Avg = 53, + k_ESteamNetworkingConfig_FakePacketJitter_Send_Max = 54, + k_ESteamNetworkingConfig_FakePacketJitter_Send_Pct = 55, + k_ESteamNetworkingConfig_FakePacketJitter_Recv_Avg = 56, + k_ESteamNetworkingConfig_FakePacketJitter_Recv_Max = 57, + k_ESteamNetworkingConfig_FakePacketJitter_Recv_Pct = 58, + + /// [global float] 0-100 Percentage of packets we will add additional + /// delay to. If other packet(s) are sent/received within this delay + /// window (that doesn't also randomly receive the same extra delay), + /// then the packets become reordered. + /// + /// This mechanism is primarily intended to generate out-of-order + /// packets. To simulate random jitter, use the FakePacketJitter. + /// Fake packet reordering is applied after fake lag and jitter + k_ESteamNetworkingConfig_FakePacketReorder_Send = 6, + k_ESteamNetworkingConfig_FakePacketReorder_Recv = 7, + + /// [global int32] Extra delay, in ms, to apply to reordered + /// packets. The same time value is used for sending and receiving. + k_ESteamNetworkingConfig_FakePacketReorder_Time = 8, + + /// [global float 0--100] Globally duplicate some percentage of packets. + k_ESteamNetworkingConfig_FakePacketDup_Send = 26, + k_ESteamNetworkingConfig_FakePacketDup_Recv = 27, + + /// [global int32] Amount of delay, in ms, to delay duplicated packets. + /// (We chose a random delay between 0 and this value) + k_ESteamNetworkingConfig_FakePacketDup_TimeMax = 28, + + /// [global int32] Trace every UDP packet, similar to Wireshark or tcpdump. + /// Value is max number of bytes to dump. -1 disables tracing. + // 0 only traces the info but no actual data bytes + k_ESteamNetworkingConfig_PacketTraceMaxBytes = 41, + + + // [global int32] Global UDP token bucket rate limits. + // "Rate" refers to the steady state rate. (Bytes/sec, the + // rate that tokens are put into the bucket.) "Burst" + // refers to the max amount that could be sent in a single + // burst. (In bytes, the max capacity of the bucket.) + // Rate=0 disables the limiter entirely, which is the default. + // Burst=0 disables burst. (This is not realistic. A + // burst of at least 4K is recommended; the default is higher.) + k_ESteamNetworkingConfig_FakeRateLimit_Send_Rate = 42, + k_ESteamNetworkingConfig_FakeRateLimit_Send_Burst = 43, + k_ESteamNetworkingConfig_FakeRateLimit_Recv_Rate = 44, + k_ESteamNetworkingConfig_FakeRateLimit_Recv_Burst = 45, + + // Timeout used for out-of-order correction. This is used when we see a small + // gap in the sequence number on a packet flow. For example let's say we are + // processing packet 105 when the most recent one was 103. 104 might have dropped, + // but there is also a chance that packets are simply being reordered. It is very + // common on certain types of connections for packet 104 to arrive very soon after 105, + // especially if 104 was large and 104 was small. In this case, when we see packet 105 + // we will shunt it aside and pend it, in the hopes of seeing 104 soon after. If 104 + // arrives before the a timeout occurs, then we can deliver the packets in order to the + // remainder of packet processing, and we will record this as a "correctable" out-of-order + // situation. If the timer expires, then we will process packet 105, and assume for now + // that 104 has dropped. (If 104 later arrives, we will process it, but that will be + // accounted for as uncorrected.) + // + // The default value is 1000 microseconds. Note that the Windows scheduler does not + // have microsecond precision. + // + // Set the value to 0 to disable out of order correction at the packet layer. + // In many cases we are still effectively able to correct the situation because + // reassembly of message fragments is tolerant of fragments packets arriving out of + // order. Also, when messages are decoded and inserted into the queue for the app + // to receive them, we will correct out of order messages that have not been + // dequeued by the app yet. However, when out-of-order packets are corrected + // at the packet layer, they will not reduce the connection quality measure. + // (E.g. SteamNetConnectionRealTimeStatus_t::m_flConnectionQualityLocal) + k_ESteamNetworkingConfig_OutOfOrderCorrectionWindowMicroseconds = 51, + + // + // Callbacks + // + + // On Steam, you may use the default Steam callback dispatch mechanism. If you prefer + // to not use this dispatch mechanism (or you are not running with Steam), or you want + // to associate specific functions with specific listen sockets or connections, you can + // register them as configuration values. + // + // Note also that ISteamNetworkingUtils has some helpers to set these globally. + + /// [connection FnSteamNetConnectionStatusChanged] Callback that will be invoked + /// when the state of a connection changes. + /// + /// IMPORTANT: callbacks are dispatched to the handler that is in effect at the time + /// the event occurs, which might be in another thread. For example, immediately after + /// creating a listen socket, you may receive an incoming connection. And then immediately + /// after this, the remote host may close the connection. All of this could happen + /// before the function to create the listen socket has returned. For this reason, + /// callbacks usually must be in effect at the time of object creation. This means + /// you should set them when you are creating the listen socket or connection, or have + /// them in effect so they will be inherited at the time of object creation. + /// + /// For example: + /// + /// exterm void MyStatusChangedFunc( SteamNetConnectionStatusChangedCallback_t *info ); + /// SteamNetworkingConfigValue_t opt; opt.SetPtr( k_ESteamNetworkingConfig_Callback_ConnectionStatusChanged, MyStatusChangedFunc ); + /// SteamNetworkingIPAddr localAddress; localAddress.Clear(); + /// HSteamListenSocket hListenSock = SteamNetworkingSockets()->CreateListenSocketIP( localAddress, 1, &opt ); + /// + /// When accepting an incoming connection, there is no atomic way to switch the + /// callback. However, if the connection is DOA, AcceptConnection() will fail, and + /// you can fetch the state of the connection at that time. + /// + /// If all connections and listen sockets can use the same callback, the simplest + /// method is to set it globally before you create any listen sockets or connections. + k_ESteamNetworkingConfig_Callback_ConnectionStatusChanged = 201, + + /// [global FnSteamNetAuthenticationStatusChanged] Callback that will be invoked + /// when our auth state changes. If you use this, install the callback before creating + /// any connections or listen sockets, and don't change it. + /// See: ISteamNetworkingUtils::SetGlobalCallback_SteamNetAuthenticationStatusChanged + k_ESteamNetworkingConfig_Callback_AuthStatusChanged = 202, + + /// [global FnSteamRelayNetworkStatusChanged] Callback that will be invoked + /// when our auth state changes. If you use this, install the callback before creating + /// any connections or listen sockets, and don't change it. + /// See: ISteamNetworkingUtils::SetGlobalCallback_SteamRelayNetworkStatusChanged + k_ESteamNetworkingConfig_Callback_RelayNetworkStatusChanged = 203, + + /// [global FnSteamNetworkingMessagesSessionRequest] Callback that will be invoked + /// when a peer wants to initiate a SteamNetworkingMessagesSessionRequest. + /// See: ISteamNetworkingUtils::SetGlobalCallback_MessagesSessionRequest + k_ESteamNetworkingConfig_Callback_MessagesSessionRequest = 204, + + /// [global FnSteamNetworkingMessagesSessionFailed] Callback that will be invoked + /// when a session you have initiated, or accepted either fails to connect, or loses + /// connection in some unexpected way. + /// See: ISteamNetworkingUtils::SetGlobalCallback_MessagesSessionFailed + k_ESteamNetworkingConfig_Callback_MessagesSessionFailed = 205, + + /// [global FnSteamNetworkingSocketsCreateConnectionSignaling] Callback that will + /// be invoked when we need to create a signaling object for a connection + /// initiated locally. See: ISteamNetworkingSockets::ConnectP2P, + /// ISteamNetworkingMessages. + k_ESteamNetworkingConfig_Callback_CreateConnectionSignaling = 206, + + /// [global FnSteamNetworkingFakeIPResult] Callback that's invoked when + /// a FakeIP allocation finishes. See: ISteamNetworkingSockets::BeginAsyncRequestFakeIP, + /// ISteamNetworkingUtils::SetGlobalCallback_FakeIPResult + k_ESteamNetworkingConfig_Callback_FakeIPResult = 207, + + // + // P2P connection settings + // + + // /// [listen socket int32] When you create a P2P listen socket, we will automatically + // /// open up a UDP port to listen for LAN connections. LAN connections can be made + // /// without any signaling: both sides can be disconnected from the Internet. + // /// + // /// This value can be set to zero to disable the feature. + // k_ESteamNetworkingConfig_P2P_Discovery_Server_LocalPort = 101, + // + // /// [connection int32] P2P connections can perform broadcasts looking for the peer + // /// on the LAN. + // k_ESteamNetworkingConfig_P2P_Discovery_Client_RemotePort = 102, + + /// [connection string] Comma-separated list of STUN servers that can be used + /// for NAT piercing. If you set this to an empty string, NAT piercing will + /// not be attempted. Also if "public" candidates are not allowed for + /// P2P_Transport_ICE_Enable, then this is ignored. + k_ESteamNetworkingConfig_P2P_STUN_ServerList = 103, + + /// [connection int32] What types of ICE candidates to share with the peer. + /// See k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_xxx values + k_ESteamNetworkingConfig_P2P_Transport_ICE_Enable = 104, + + /// [connection int32] When selecting P2P transport, add various + /// penalties to the scores for selected transports. (Route selection + /// scores are on a scale of milliseconds. The score begins with the + /// route ping time and is then adjusted.) + k_ESteamNetworkingConfig_P2P_Transport_ICE_Penalty = 105, + k_ESteamNetworkingConfig_P2P_Transport_SDR_Penalty = 106, + k_ESteamNetworkingConfig_P2P_TURN_ServerList = 107, + k_ESteamNetworkingConfig_P2P_TURN_UserList = 108, + k_ESteamNetworkingConfig_P2P_TURN_PassList = 109, + //k_ESteamNetworkingConfig_P2P_Transport_LANBeacon_Penalty = 107, + k_ESteamNetworkingConfig_P2P_Transport_ICE_Implementation = 110, + + // + // Settings for SDR relayed connections + // + + /// [global int32] If the first N pings to a port all fail, mark that port as unavailable for + /// a while, and try a different one. Some ISPs and routers may drop the first + /// packet, so setting this to 1 may greatly disrupt communications. + k_ESteamNetworkingConfig_SDRClient_ConsecutitivePingTimeoutsFailInitial = 19, + + /// [global int32] If N consecutive pings to a port fail, after having received successful + /// communication, mark that port as unavailable for a while, and try a + /// different one. + k_ESteamNetworkingConfig_SDRClient_ConsecutitivePingTimeoutsFail = 20, + + /// [global int32] Minimum number of lifetime pings we need to send, before we think our estimate + /// is solid. The first ping to each cluster is very often delayed because of NAT, + /// routers not having the best route, etc. Until we've sent a sufficient number + /// of pings, our estimate is often inaccurate. Keep pinging until we get this + /// many pings. + k_ESteamNetworkingConfig_SDRClient_MinPingsBeforePingAccurate = 21, + + /// [global int32] Set all steam datagram traffic to originate from the same + /// local port. By default, we open up a new UDP socket (on a different local + /// port) for each relay. This is slightly less optimal, but it works around + /// some routers that don't implement NAT properly. If you have intermittent + /// problems talking to relays that might be NAT related, try toggling + /// this flag + k_ESteamNetworkingConfig_SDRClient_SingleSocket = 22, + + /// [global string] Code of relay cluster to force use. If not empty, we will + /// only use relays in that cluster. E.g. 'iad' + k_ESteamNetworkingConfig_SDRClient_ForceRelayCluster = 29, + + /// [connection string] For development, a base-64 encoded ticket generated + /// using the cert tool. This can be used to connect to a gameserver via SDR + /// without a ticket generated using the game coordinator. (You will still + /// need a key that is trusted for your app, however.) + /// + /// This can also be passed using the SDR_DEVTICKET environment variable + k_ESteamNetworkingConfig_SDRClient_DevTicket = 30, + + /// [global string] For debugging. Override list of relays from the config with + /// this set (maybe just one). Comma-separated list. + k_ESteamNetworkingConfig_SDRClient_ForceProxyAddr = 31, + + /// [global string] For debugging. Force ping times to clusters to be the specified + /// values. A comma separated list of = values. E.g. "sto=32,iad=100" + /// + /// This is a dev configuration value, you probably should not let users modify it + /// in production. + k_ESteamNetworkingConfig_SDRClient_FakeClusterPing = 36, + + /// [global int32] When probing the SteamDatagram network, we limit exploration + /// to the closest N POPs, based on our current best approximated ping to that POP. + k_ESteamNetworkingConfig_SDRClient_LimitPingProbesToNearestN = 60, + + // + // Log levels for debugging information of various subsystems. + // Higher numeric values will cause more stuff to be printed. + // See ISteamNetworkingUtils::SetDebugOutputFunction for more + // information + // + // The default for all values is k_ESteamNetworkingSocketsDebugOutputType_Warning. + // + k_ESteamNetworkingConfig_LogLevel_AckRTT = 13, // [connection int32] RTT calculations for inline pings and replies + k_ESteamNetworkingConfig_LogLevel_PacketDecode = 14, // [connection int32] log SNP packets send/recv + k_ESteamNetworkingConfig_LogLevel_Message = 15, // [connection int32] log each message send/recv + k_ESteamNetworkingConfig_LogLevel_PacketGaps = 16, // [connection int32] dropped packets + k_ESteamNetworkingConfig_LogLevel_P2PRendezvous = 17, // [connection int32] P2P rendezvous messages + k_ESteamNetworkingConfig_LogLevel_SDRRelayPings = 18, // [global int32] Ping relays + + // Experimental. Set the ECN header field on all outbound UDP packets + // -1 = the default, and means "don't set anything". + // 0..3 = set that value. (Even though 0 is the default UDP ECN value, a 0 here means "explicitly set a 0".) + k_ESteamNetworkingConfig_ECN = 999, + + // Deleted, do not use + k_ESteamNetworkingConfig_DELETED_EnumerateDevVars = 35, + + k_ESteamNetworkingConfigValue__Force32Bit = 0x7fffffff +} + +/// Return value of ISteamNetworkintgUtils::GetConfigValue +public enum ESteamNetworkingGetConfigValueResult : int +{ + k_ESteamNetworkingGetConfigValue_BadValue = -1, // No such configuration value + k_ESteamNetworkingGetConfigValue_BadScopeObj = -2, // Bad connection handle, etc + k_ESteamNetworkingGetConfigValue_BufferTooSmall = -3, // Couldn't fit the result in your buffer + k_ESteamNetworkingGetConfigValue_OK = 1, + k_ESteamNetworkingGetConfigValue_OKInherited = 2, // A value was not set at this level, but the effective (inherited) value was returned. + + k_ESteamNetworkingGetConfigValueResult__Force32Bit = 0x7fffffff +} + +// +// Debug output +// +/// Detail level for diagnostic output callback. +/// See ISteamNetworkingUtils::SetDebugOutputFunction +public enum ESteamNetworkingSocketsDebugOutputType : int +{ + k_ESteamNetworkingSocketsDebugOutputType_None = 0, + k_ESteamNetworkingSocketsDebugOutputType_Bug = 1, // You used the API incorrectly, or an internal error happened + k_ESteamNetworkingSocketsDebugOutputType_Error = 2, // Run-time error condition that isn't the result of a bug. (E.g. we are offline, cannot bind a port, etc) + k_ESteamNetworkingSocketsDebugOutputType_Important = 3, // Nothing is wrong, but this is an important notification + k_ESteamNetworkingSocketsDebugOutputType_Warning = 4, + k_ESteamNetworkingSocketsDebugOutputType_Msg = 5, // Recommended amount + k_ESteamNetworkingSocketsDebugOutputType_Verbose = 6, // Quite a bit + k_ESteamNetworkingSocketsDebugOutputType_Debug = 7, // Practically everything + k_ESteamNetworkingSocketsDebugOutputType_Everything = 8, // Wall of text, detailed packet contents breakdown, etc + + k_ESteamNetworkingSocketsDebugOutputType__Force32Bit = 0x7fffffff +} + +public enum ESteamIPType : int +{ + k_ESteamIPTypeIPv4 = 0, + k_ESteamIPTypeIPv6 = 1, +} +// Steam universes. Each universe is a self-contained Steam instance. +public enum EUniverse : int +{ + k_EUniverseInvalid = 0, + k_EUniversePublic = 1, + k_EUniverseBeta = 2, + k_EUniverseInternal = 3, + k_EUniverseDev = 4, + // k_EUniverseRC = 5, // no such universe anymore + k_EUniverseMax } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/SteamStructs.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/SteamStructs.cs index 31457ee82..7c7ae28b8 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/SteamStructs.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/SteamStructs.cs @@ -1,449 +1,467 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - // friend game played information - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct FriendGameInfo_t { - public CGameID m_gameID; - public uint m_unGameIP; - public ushort m_usGamePort; - public ushort m_usQueryPort; - public CSteamID m_steamIDLobby; - } - - [StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct InputAnalogActionData_t { - // Type of data coming from this action, this will match what got specified in the action set - public EInputSourceMode eMode; - - // The current state of this action; will be delta updates for mouse actions - public float x, y; - - // Whether or not this action is currently available to be bound in the active action set - public byte bActive; - } - - [StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct InputDigitalActionData_t { - // The current state of this action; will be true if currently pressed - public byte bState; - - // Whether or not this action is currently available to be bound in the active action set - public byte bActive; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct InputMotionData_t { - // Gyro Quaternion: - // Absolute rotation of the controller since wakeup, using the Accelerometer reading at startup to determine the first value. - // This means real world "up" is know, but heading is not known. - // Every rotation packet is integrated using sensor time delta, and that change is used to update this quaternion. - // A Quaternion Identity ( x:0, y:0, z:0, w:1 ) will be sent in the first few packets while the controller's IMU is still waking up; - // some controllers have a short "warmup" period before these values should be used. - - // After the first time GetMotionData is called per controller handle, the IMU will be active until your app is closed. - // The exception is the Sony Dualshock, which will stay on until the controller has been turned off. - - // Filtering: When rotating the controller at low speeds, low level noise is filtered out without noticeable latency. High speed movement is always unfiltered. - // Drift: Gyroscopic "Drift" can be fixed using the Steam Input "Gyro Calibration" button. Users will have to be informed of this feature. - public float rotQuatX; - public float rotQuatY; - public float rotQuatZ; - public float rotQuatW; - - // Positional acceleration - // This represents only the latest hardware packet's state. - // Values range from -SHRT_MAX..SHRT_MAX - // This represents -2G..+2G along each axis - public float posAccelX; // +tive when controller's Right hand side is pointed toward the sky. - public float posAccelY; // +tive when controller's charging port (forward side of controller) is pointed toward the sky. - public float posAccelZ; // +tive when controller's sticks point toward the sky. - - // Angular velocity - // Values range from -SHRT_MAX..SHRT_MAX - // These values map to a real world range of -2000..+2000 degrees per second on each axis (SDL standard) - // This represents only the latest hardware packet's state. - public float rotVelX; // Local Pitch - public float rotVelY; // Local Roll - public float rotVelZ; // Local Yaw - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct SteamItemDetails_t { - public SteamItemInstanceID_t m_itemId; - public SteamItemDef_t m_iDefinition; - public ushort m_unQuantity; - public ushort m_unFlags; // see ESteamItemFlags - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct SteamPartyBeaconLocation_t { - public ESteamPartyBeaconLocationType m_eType; - public ulong m_ulLocationID; - } - - // connection state to a specified user, returned by GetP2PSessionState() - // this is under-the-hood info about what's going on with a SendP2PPacket(), shouldn't be needed except for debuggin - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct P2PSessionState_t { - public byte m_bConnectionActive; // true if we've got an active open connection - public byte m_bConnecting; // true if we're currently trying to establish a connection - public byte m_eP2PSessionError; // last error recorded (see enum above) - public byte m_bUsingRelay; // true if it's going through a relay server (TURN) - public int m_nBytesQueuedForSend; - public int m_nPacketsQueuedForSend; - public uint m_nRemoteIP; // potential IP:Port of remote host. Could be TURN server. - public ushort m_nRemotePort; // Only exists for compatibility with older authentication api's - } - - // Mouse motion event data, valid when m_eType is k_ERemotePlayInputMouseMotion - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct RemotePlayInputMouseMotion_t { - [MarshalAs(UnmanagedType.I1)] - public bool m_bAbsolute; // True if this is absolute mouse motion and m_flNormalizedX and m_flNormalizedY are valid - public float m_flNormalizedX; // The absolute X position of the mouse, normalized to the display, if m_bAbsolute is true - public float m_flNormalizedY; // The absolute Y position of the mouse, normalized to the display, if m_bAbsolute is true - public int m_nDeltaX; // Relative mouse motion in the X direction - public int m_nDeltaY; // Relative mouse motion in the Y direction - } - - // Mouse wheel event data, valid when m_eType is k_ERemotePlayInputMouseWheel - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct RemotePlayInputMouseWheel_t { - public ERemotePlayMouseWheelDirection m_eDirection; - public float m_flAmount; // 1.0f is a single click of the wheel, 120 units on Windows - } - - // Key event data, valid when m_eType is k_ERemotePlayInputKeyDown or k_ERemotePlayInputKeyUp - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct RemotePlayInputKey_t { - public int m_eScancode; // Keyboard scancode, common values are defined in ERemotePlayScancode - public uint m_unModifiers; // Mask of ERemotePlayKeyModifier active for this key event - public uint m_unKeycode; // UCS-4 character generated by the keypress, or 0 if it wasn't a character key, e.g. Delete or Left Arrow - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct RemotePlayInput_t { - public RemotePlaySessionID_t m_unSessionID; - public ERemotePlayInputType m_eType; - // Mouse motion event data, valid when m_eType is k_ERemotePlayInputMouseMotion - public RemotePlayInputMouseMotion_t m_MouseMotion; - - // Mouse button event data, valid when m_eType is k_ERemotePlayInputMouseButtonDown or k_ERemotePlayInputMouseButtonUp - public ERemotePlayMouseButton m_eMouseButton; - - // Mouse wheel event data, valid when m_eType is k_ERemotePlayInputMouseWheel - public RemotePlayInputMouseWheel_t m_MouseWheel; - - // Key event data, valid when m_eType is k_ERemotePlayInputKeyDown or k_ERemotePlayInputKeyUp - public RemotePlayInputKey_t m_Key; - } - - //----------------------------------------------------------------------------- - // Purpose: Structure that contains an array of const char * strings and the number of those strings - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct SteamParamStringArray_t { - public IntPtr m_ppStrings; - public int m_nNumStrings; - } - - // Details for a single published file/UGC - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct SteamUGCDetails_t { - public PublishedFileId_t m_nPublishedFileId; - public EResult m_eResult; // The result of the operation. - public EWorkshopFileType m_eFileType; // Type of the file - public AppId_t m_nCreatorAppID; // ID of the app that created this file. - public AppId_t m_nConsumerAppID; // ID of the app that will consume this file. - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedDocumentTitleMax)] - private byte[] m_rgchTitle_; - public string m_rgchTitle // title of document - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchTitle_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchTitle_, Constants.k_cchPublishedDocumentTitleMax); } - } - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedDocumentDescriptionMax)] - private byte[] m_rgchDescription_; - public string m_rgchDescription // description of document - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchDescription_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchDescription_, Constants.k_cchPublishedDocumentDescriptionMax); } - } - public ulong m_ulSteamIDOwner; // Steam ID of the user who created this content. - public uint m_rtimeCreated; // time when the published file was created - public uint m_rtimeUpdated; // time when the published file was last updated - public uint m_rtimeAddedToUserList; // time when the user added the published file to their list (not always applicable) - public ERemoteStoragePublishedFileVisibility m_eVisibility; // visibility - [MarshalAs(UnmanagedType.I1)] - public bool m_bBanned; // whether the file was banned - [MarshalAs(UnmanagedType.I1)] - public bool m_bAcceptedForUse; // developer has specifically flagged this item as accepted in the Workshop - [MarshalAs(UnmanagedType.I1)] - public bool m_bTagsTruncated; // whether the list of tags was too long to be returned in the provided buffer - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchTagListMax)] - private byte[] m_rgchTags_; - public string m_rgchTags // comma separated list of all tags associated with this file - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchTags_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchTags_, Constants.k_cchTagListMax); } - } - // file/url information - public UGCHandle_t m_hFile; // The handle of the primary file - public UGCHandle_t m_hPreviewFile; // The handle of the preview file - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchFilenameMax)] - private byte[] m_pchFileName_; - public string m_pchFileName // The cloud filename of the primary file - { - get { return InteropHelp.ByteArrayToStringUTF8(m_pchFileName_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_pchFileName_, Constants.k_cchFilenameMax); } - } - public int m_nFileSize; // Size of the primary file (for legacy items which only support one file). This may not be accurate for non-legacy items which can be greater than 4gb in size. - public int m_nPreviewFileSize; // Size of the preview file - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedFileURLMax)] - private byte[] m_rgchURL_; - public string m_rgchURL // URL (for a video or a website) - { - get { return InteropHelp.ByteArrayToStringUTF8(m_rgchURL_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_rgchURL_, Constants.k_cchPublishedFileURLMax); } - } - // voting information - public uint m_unVotesUp; // number of votes up - public uint m_unVotesDown; // number of votes down - public float m_flScore; // calculated score - // collection details - public uint m_unNumChildren; - public ulong m_ulTotalFilesSize; // Total size of all files (non-legacy), excluding the preview file - } - - // a single entry in a leaderboard, as returned by GetDownloadedLeaderboardEntry() - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct LeaderboardEntry_t { - public CSteamID m_steamIDUser; // user with the entry - use SteamFriends()->GetFriendPersonaName() & SteamFriends()->GetFriendAvatar() to get more info - public int m_nGlobalRank; // [1..N], where N is the number of users with an entry in the leaderboard - public int m_nScore; // score as set in the leaderboard - public int m_cDetails; // number of int32 details available for this entry - public UGCHandle_t m_hUGC; // handle for UGC attached to the entry - } - - /// Store key/value pair used in matchmaking queries. - /// - /// Actually, the name Key/Value is a bit misleading. The "key" is better - /// understood as "filter operation code" and the "value" is the operand to this - /// filter operation. The meaning of the operand depends upon the filter. - [StructLayout(LayoutKind.Sequential)] - public struct MatchMakingKeyValuePair_t { - MatchMakingKeyValuePair_t(string strKey, string strValue) { - m_szKey = strKey; - m_szValue = strValue; - } - - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] - public string m_szKey; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] - public string m_szValue; - } - - // structure that contains client callback data - // see callbacks documentation for more details - /// Internal structure used in manual callback dispatch - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct CallbackMsg_t { - public int m_hSteamUser; // Specific user to whom this callback applies. - public int m_iCallback; // Callback identifier. (Corresponds to the k_iCallback enum in the callback structure.) - public IntPtr m_pubParam; // Points to the callback structure - public int m_cubParam; // Size of the data pointed to by m_pubParam - } - - /// Describe the state of a connection. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct SteamNetConnectionInfo_t { - - /// Who is on the other end? Depending on the connection type and phase of the connection, we might not know - public SteamNetworkingIdentity m_identityRemote; - - /// Arbitrary user data set by the local application code - public long m_nUserData; - - /// Handle to listen socket this was connected on, or k_HSteamListenSocket_Invalid if we initiated the connection - public HSteamListenSocket m_hListenSocket; - - /// Remote address. Might be all 0's if we don't know it, or if this is N/A. - /// (E.g. Basically everything except direct UDP connection.) - public SteamNetworkingIPAddr m_addrRemote; - public ushort m__pad1; - - /// What data center is the remote host in? (0 if we don't know.) - public SteamNetworkingPOPID m_idPOPRemote; - - /// What relay are we using to communicate with the remote host? - /// (0 if not applicable.) - public SteamNetworkingPOPID m_idPOPRelay; - - /// High level state of the connection - public ESteamNetworkingConnectionState m_eState; - - /// Basic cause of the connection termination or problem. - /// See ESteamNetConnectionEnd for the values used - public int m_eEndReason; - - /// Human-readable, but non-localized explanation for connection - /// termination or problem. This is intended for debugging / - /// diagnostic purposes only, not to display to users. It might - /// have some details specific to the issue. - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchSteamNetworkingMaxConnectionCloseReason)] - private byte[] m_szEndDebug_; - public string m_szEndDebug - { - get { return InteropHelp.ByteArrayToStringUTF8(m_szEndDebug_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_szEndDebug_, Constants.k_cchSteamNetworkingMaxConnectionCloseReason); } - } - - /// Debug description. This includes the internal connection ID, - /// connection type (and peer information), and any name - /// given to the connection by the app. This string is used in various - /// internal logging messages. - /// - /// Note that the connection ID *usually* matches the HSteamNetConnection - /// handle, but in certain cases with symmetric connections it might not. - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchSteamNetworkingMaxConnectionDescription)] - private byte[] m_szConnectionDescription_; - public string m_szConnectionDescription - { - get { return InteropHelp.ByteArrayToStringUTF8(m_szConnectionDescription_); } - set { InteropHelp.StringToByteArrayUTF8(value, m_szConnectionDescription_, Constants.k_cchSteamNetworkingMaxConnectionDescription); } - } - - /// Misc flags. Bitmask of k_nSteamNetworkConnectionInfoFlags_Xxxx - public int m_nFlags; - - /// Internal stuff, room to change API easily - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 63)] - public uint[] reserved; - } - - /// Quick connection state, pared down to something you could call - /// more frequently without it being too big of a perf hit. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct SteamNetConnectionRealTimeStatus_t { - - /// High level state of the connection - public ESteamNetworkingConnectionState m_eState; - - /// Current ping (ms) - public int m_nPing; - - /// Connection quality measured locally, 0...1. (Percentage of packets delivered - /// end-to-end in order). - public float m_flConnectionQualityLocal; - - /// Packet delivery success rate as observed from remote host - public float m_flConnectionQualityRemote; - - /// Current data rates from recent history. - public float m_flOutPacketsPerSec; - public float m_flOutBytesPerSec; - public float m_flInPacketsPerSec; - public float m_flInBytesPerSec; - - /// Estimate rate that we believe that we can send data to our peer. - /// Note that this could be significantly higher than m_flOutBytesPerSec, - /// meaning the capacity of the channel is higher than you are sending data. - /// (That's OK!) - public int m_nSendRateBytesPerSecond; - - /// Number of bytes pending to be sent. This is data that you have recently - /// requested to be sent but has not yet actually been put on the wire. The - /// reliable number ALSO includes data that was previously placed on the wire, - /// but has now been scheduled for re-transmission. Thus, it's possible to - /// observe m_cbPendingReliable increasing between two checks, even if no - /// calls were made to send reliable data between the checks. Data that is - /// awaiting the Nagle delay will appear in these numbers. - public int m_cbPendingUnreliable; - public int m_cbPendingReliable; - - /// Number of bytes of reliable data that has been placed the wire, but - /// for which we have not yet received an acknowledgment, and thus we may - /// have to re-transmit. - public int m_cbSentUnackedReliable; - - /// If you queued a message right now, approximately how long would that message - /// wait in the queue before we actually started putting its data on the wire in - /// a packet? - /// - /// In general, data that is sent by the application is limited by the bandwidth - /// of the channel. If you send data faster than this, it must be queued and - /// put on the wire at a metered rate. Even sending a small amount of data (e.g. - /// a few MTU, say ~3k) will require some of the data to be delayed a bit. - /// - /// Ignoring multiple lanes, the estimated delay will be approximately equal to - /// - /// ( m_cbPendingUnreliable+m_cbPendingReliable ) / m_nSendRateBytesPerSecond - /// - /// plus or minus one MTU. It depends on how much time has elapsed since the last - /// packet was put on the wire. For example, the queue might have *just* been emptied, - /// and the last packet placed on the wire, and we are exactly up against the send - /// rate limit. In that case we might need to wait for one packet's worth of time to - /// elapse before we can send again. On the other extreme, the queue might have data - /// in it waiting for Nagle. (This will always be less than one packet, because as - /// soon as we have a complete packet we would send it.) In that case, we might be - /// ready to send data now, and this value will be 0. - /// - /// This value is only valid if multiple lanes are not used. If multiple lanes are - /// in use, then the queue time will be different for each lane, and you must use - /// the value in SteamNetConnectionRealTimeLaneStatus_t. - /// - /// Nagle delay is ignored for the purposes of this calculation. - public SteamNetworkingMicroseconds m_usecQueueTime; - - // Internal stuff, room to change API easily - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] - public uint[] reserved; - } - - /// Quick status of a particular lane - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct SteamNetConnectionRealTimeLaneStatus_t { - // Counters for this particular lane. See the corresponding variables - // in SteamNetConnectionRealTimeStatus_t - public int m_cbPendingUnreliable; - public int m_cbPendingReliable; - public int m_cbSentUnackedReliable; - public int _reservePad1; // Reserved for future use - - /// Lane-specific queue time. This value takes into consideration lane priorities - /// and weights, and how much data is queued in each lane, and attempts to predict - /// how any data currently queued will be sent out. - public SteamNetworkingMicroseconds m_usecQueueTime; - - // Internal stuff, room to change API easily - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)] - public uint[] reserved; - } - - // - // Ping location / measurement - // - /// Object that describes a "location" on the Internet with sufficient - /// detail that we can reasonably estimate an upper bound on the ping between - /// the two hosts, even if a direct route between the hosts is not possible, - /// and the connection must be routed through the Steam Datagram Relay network. - /// This does not contain any information that identifies the host. Indeed, - /// if two hosts are in the same building or otherwise have nearly identical - /// networking characteristics, then it's valid to use the same location - /// object for both of them. - /// - /// NOTE: This object should only be used in the same process! Do not serialize it, - /// send it over the wire, or persist it in a file or database! If you need - /// to do that, convert it to a string representation using the methods in - /// ISteamNetworkingUtils(). - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct SteamNetworkPingLocation_t { - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 512)] - public byte[] m_data; - } +using IntPtr = nint; +namespace SwiftlyS2.Shared.SteamAPI; + +// friend game played information +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct FriendGameInfo_t +{ + public CGameID m_gameID; + public uint m_unGameIP; + public ushort m_usGamePort; + public ushort m_usQueryPort; + public CSteamID m_steamIDLobby; +} + +[StructLayout(LayoutKind.Sequential, Pack = 1)] +public struct InputAnalogActionData_t +{ + // Type of data coming from this action, this will match what got specified in the action set + public EInputSourceMode eMode; + + // The current state of this action; will be delta updates for mouse actions + public float x, y; + + // Whether or not this action is currently available to be bound in the active action set + public byte bActive; +} + +[StructLayout(LayoutKind.Sequential, Pack = 1)] +public struct InputDigitalActionData_t +{ + // The current state of this action; will be true if currently pressed + public byte bState; + + // Whether or not this action is currently available to be bound in the active action set + public byte bActive; +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct InputMotionData_t +{ + // Gyro Quaternion: + // Absolute rotation of the controller since wakeup, using the Accelerometer reading at startup to determine the first value. + // This means real world "up" is know, but heading is not known. + // Every rotation packet is integrated using sensor time delta, and that change is used to update this quaternion. + // A Quaternion Identity ( x:0, y:0, z:0, w:1 ) will be sent in the first few packets while the controller's IMU is still waking up; + // some controllers have a short "warmup" period before these values should be used. + + // After the first time GetMotionData is called per controller handle, the IMU will be active until your app is closed. + // The exception is the Sony Dualshock, which will stay on until the controller has been turned off. + + // Filtering: When rotating the controller at low speeds, low level noise is filtered out without noticeable latency. High speed movement is always unfiltered. + // Drift: Gyroscopic "Drift" can be fixed using the Steam Input "Gyro Calibration" button. Users will have to be informed of this feature. + public float rotQuatX; + public float rotQuatY; + public float rotQuatZ; + public float rotQuatW; + + // Positional acceleration + // This represents only the latest hardware packet's state. + // Values range from -SHRT_MAX..SHRT_MAX + // This represents -2G..+2G along each axis + public float posAccelX; // +tive when controller's Right hand side is pointed toward the sky. + public float posAccelY; // +tive when controller's charging port (forward side of controller) is pointed toward the sky. + public float posAccelZ; // +tive when controller's sticks point toward the sky. + + // Angular velocity + // Values range from -SHRT_MAX..SHRT_MAX + // These values map to a real world range of -2000..+2000 degrees per second on each axis (SDL standard) + // This represents only the latest hardware packet's state. + public float rotVelX; // Local Pitch + public float rotVelY; // Local Roll + public float rotVelZ; // Local Yaw +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct SteamItemDetails_t +{ + public SteamItemInstanceID_t m_itemId; + public SteamItemDef_t m_iDefinition; + public ushort m_unQuantity; + public ushort m_unFlags; // see ESteamItemFlags +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct SteamPartyBeaconLocation_t +{ + public ESteamPartyBeaconLocationType m_eType; + public ulong m_ulLocationID; +} + +// connection state to a specified user, returned by GetP2PSessionState() +// this is under-the-hood info about what's going on with a SendP2PPacket(), shouldn't be needed except for debuggin +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct P2PSessionState_t +{ + public byte m_bConnectionActive; // true if we've got an active open connection + public byte m_bConnecting; // true if we're currently trying to establish a connection + public byte m_eP2PSessionError; // last error recorded (see enum above) + public byte m_bUsingRelay; // true if it's going through a relay server (TURN) + public int m_nBytesQueuedForSend; + public int m_nPacketsQueuedForSend; + public uint m_nRemoteIP; // potential IP:Port of remote host. Could be TURN server. + public ushort m_nRemotePort; // Only exists for compatibility with older authentication api's +} + +// Mouse motion event data, valid when m_eType is k_ERemotePlayInputMouseMotion +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct RemotePlayInputMouseMotion_t +{ + [MarshalAs(UnmanagedType.I1)] + public bool m_bAbsolute; // True if this is absolute mouse motion and m_flNormalizedX and m_flNormalizedY are valid + public float m_flNormalizedX; // The absolute X position of the mouse, normalized to the display, if m_bAbsolute is true + public float m_flNormalizedY; // The absolute Y position of the mouse, normalized to the display, if m_bAbsolute is true + public int m_nDeltaX; // Relative mouse motion in the X direction + public int m_nDeltaY; // Relative mouse motion in the Y direction +} + +// Mouse wheel event data, valid when m_eType is k_ERemotePlayInputMouseWheel +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct RemotePlayInputMouseWheel_t +{ + public ERemotePlayMouseWheelDirection m_eDirection; + public float m_flAmount; // 1.0f is a single click of the wheel, 120 units on Windows +} + +// Key event data, valid when m_eType is k_ERemotePlayInputKeyDown or k_ERemotePlayInputKeyUp +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct RemotePlayInputKey_t +{ + public int m_eScancode; // Keyboard scancode, common values are defined in ERemotePlayScancode + public uint m_unModifiers; // Mask of ERemotePlayKeyModifier active for this key event + public uint m_unKeycode; // UCS-4 character generated by the keypress, or 0 if it wasn't a character key, e.g. Delete or Left Arrow +} + +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct RemotePlayInput_t +{ + public RemotePlaySessionID_t m_unSessionID; + public ERemotePlayInputType m_eType; + // Mouse motion event data, valid when m_eType is k_ERemotePlayInputMouseMotion + public RemotePlayInputMouseMotion_t m_MouseMotion; + + // Mouse button event data, valid when m_eType is k_ERemotePlayInputMouseButtonDown or k_ERemotePlayInputMouseButtonUp + public ERemotePlayMouseButton m_eMouseButton; + + // Mouse wheel event data, valid when m_eType is k_ERemotePlayInputMouseWheel + public RemotePlayInputMouseWheel_t m_MouseWheel; + + // Key event data, valid when m_eType is k_ERemotePlayInputKeyDown or k_ERemotePlayInputKeyUp + public RemotePlayInputKey_t m_Key; +} + +//----------------------------------------------------------------------------- +// Purpose: Structure that contains an array of const char * strings and the number of those strings +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct SteamParamStringArray_t +{ + public IntPtr m_ppStrings; + public int m_nNumStrings; +} + +// Details for a single published file/UGC +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct SteamUGCDetails_t +{ + public PublishedFileId_t m_nPublishedFileId; + public EResult m_eResult; // The result of the operation. + public EWorkshopFileType m_eFileType; // Type of the file + public AppId_t m_nCreatorAppID; // ID of the app that created this file. + public AppId_t m_nConsumerAppID; // ID of the app that will consume this file. + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedDocumentTitleMax)] + private readonly byte[] m_rgchTitle_; + public string m_rgchTitle // title of document + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchTitle_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchTitle_, Constants.k_cchPublishedDocumentTitleMax); } + } + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedDocumentDescriptionMax)] + private readonly byte[] m_rgchDescription_; + public string m_rgchDescription // description of document + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchDescription_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchDescription_, Constants.k_cchPublishedDocumentDescriptionMax); } + } + public ulong m_ulSteamIDOwner; // Steam ID of the user who created this content. + public uint m_rtimeCreated; // time when the published file was created + public uint m_rtimeUpdated; // time when the published file was last updated + public uint m_rtimeAddedToUserList; // time when the user added the published file to their list (not always applicable) + public ERemoteStoragePublishedFileVisibility m_eVisibility; // visibility + [MarshalAs(UnmanagedType.I1)] + public bool m_bBanned; // whether the file was banned + [MarshalAs(UnmanagedType.I1)] + public bool m_bAcceptedForUse; // developer has specifically flagged this item as accepted in the Workshop + [MarshalAs(UnmanagedType.I1)] + public bool m_bTagsTruncated; // whether the list of tags was too long to be returned in the provided buffer + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchTagListMax)] + private readonly byte[] m_rgchTags_; + public string m_rgchTags // comma separated list of all tags associated with this file + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchTags_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchTags_, Constants.k_cchTagListMax); } + } + // file/url information + public UGCHandle_t m_hFile; // The handle of the primary file + public UGCHandle_t m_hPreviewFile; // The handle of the preview file + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchFilenameMax)] + private readonly byte[] m_pchFileName_; + public string m_pchFileName // The cloud filename of the primary file + { + get { return InteropHelp.ByteArrayToStringUTF8(m_pchFileName_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_pchFileName_, Constants.k_cchFilenameMax); } + } + public int m_nFileSize; // Size of the primary file (for legacy items which only support one file). This may not be accurate for non-legacy items which can be greater than 4gb in size. + public int m_nPreviewFileSize; // Size of the preview file + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchPublishedFileURLMax)] + private readonly byte[] m_rgchURL_; + public string m_rgchURL // URL (for a video or a website) + { + get { return InteropHelp.ByteArrayToStringUTF8(m_rgchURL_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_rgchURL_, Constants.k_cchPublishedFileURLMax); } + } + // voting information + public uint m_unVotesUp; // number of votes up + public uint m_unVotesDown; // number of votes down + public float m_flScore; // calculated score + // collection details + public uint m_unNumChildren; + public ulong m_ulTotalFilesSize; // Total size of all files (non-legacy), excluding the preview file +} + +// a single entry in a leaderboard, as returned by GetDownloadedLeaderboardEntry() +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct LeaderboardEntry_t +{ + public CSteamID m_steamIDUser; // user with the entry - use SteamFriends()->GetFriendPersonaName() & SteamFriends()->GetFriendAvatar() to get more info + public int m_nGlobalRank; // [1..N], where N is the number of users with an entry in the leaderboard + public int m_nScore; // score as set in the leaderboard + public int m_cDetails; // number of int32 details available for this entry + public UGCHandle_t m_hUGC; // handle for UGC attached to the entry +} + +/// Store key/value pair used in matchmaking queries. +/// +/// Actually, the name Key/Value is a bit misleading. The "key" is better +/// understood as "filter operation code" and the "value" is the operand to this +/// filter operation. The meaning of the operand depends upon the filter. +[StructLayout(LayoutKind.Sequential)] +public struct MatchMakingKeyValuePair_t +{ + private MatchMakingKeyValuePair_t( string strKey, string strValue ) + { + m_szKey = strKey; + m_szValue = strValue; + } + + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] + public string m_szKey; + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] + public string m_szValue; +} + +// structure that contains client callback data +// see callbacks documentation for more details +/// Internal structure used in manual callback dispatch +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct CallbackMsg_t +{ + public int m_hSteamUser; // Specific user to whom this callback applies. + public int m_iCallback; // Callback identifier. (Corresponds to the k_iCallback enum in the callback structure.) + public IntPtr m_pubParam; // Points to the callback structure + public int m_cubParam; // Size of the data pointed to by m_pubParam +} + +/// Describe the state of a connection. +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct SteamNetConnectionInfo_t +{ + + /// Who is on the other end? Depending on the connection type and phase of the connection, we might not know + public SteamNetworkingIdentity m_identityRemote; + + /// Arbitrary user data set by the local application code + public long m_nUserData; + + /// Handle to listen socket this was connected on, or k_HSteamListenSocket_Invalid if we initiated the connection + public HSteamListenSocket m_hListenSocket; + + /// Remote address. Might be all 0's if we don't know it, or if this is N/A. + /// (E.g. Basically everything except direct UDP connection.) + public SteamNetworkingIPAddr m_addrRemote; + public ushort m__pad1; + + /// What data center is the remote host in? (0 if we don't know.) + public SteamNetworkingPOPID m_idPOPRemote; + + /// What relay are we using to communicate with the remote host? + /// (0 if not applicable.) + public SteamNetworkingPOPID m_idPOPRelay; + + /// High level state of the connection + public ESteamNetworkingConnectionState m_eState; + + /// Basic cause of the connection termination or problem. + /// See ESteamNetConnectionEnd for the values used + public int m_eEndReason; + + /// Human-readable, but non-localized explanation for connection + /// termination or problem. This is intended for debugging / + /// diagnostic purposes only, not to display to users. It might + /// have some details specific to the issue. + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchSteamNetworkingMaxConnectionCloseReason)] + private readonly byte[] m_szEndDebug_; + public string m_szEndDebug { + get { return InteropHelp.ByteArrayToStringUTF8(m_szEndDebug_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_szEndDebug_, Constants.k_cchSteamNetworkingMaxConnectionCloseReason); } + } + + /// Debug description. This includes the internal connection ID, + /// connection type (and peer information), and any name + /// given to the connection by the app. This string is used in various + /// internal logging messages. + /// + /// Note that the connection ID *usually* matches the HSteamNetConnection + /// handle, but in certain cases with symmetric connections it might not. + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchSteamNetworkingMaxConnectionDescription)] + private readonly byte[] m_szConnectionDescription_; + public string m_szConnectionDescription { + get { return InteropHelp.ByteArrayToStringUTF8(m_szConnectionDescription_); } + set { InteropHelp.StringToByteArrayUTF8(value, m_szConnectionDescription_, Constants.k_cchSteamNetworkingMaxConnectionDescription); } + } + + /// Misc flags. Bitmask of k_nSteamNetworkConnectionInfoFlags_Xxxx + public int m_nFlags; + + /// Internal stuff, room to change API easily + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 63)] + public uint[] reserved; +} + +/// Quick connection state, pared down to something you could call +/// more frequently without it being too big of a perf hit. +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct SteamNetConnectionRealTimeStatus_t +{ + + /// High level state of the connection + public ESteamNetworkingConnectionState m_eState; + + /// Current ping (ms) + public int m_nPing; + + /// Connection quality measured locally, 0...1. (Percentage of packets delivered + /// end-to-end in order). + public float m_flConnectionQualityLocal; + + /// Packet delivery success rate as observed from remote host + public float m_flConnectionQualityRemote; + + /// Current data rates from recent history. + public float m_flOutPacketsPerSec; + public float m_flOutBytesPerSec; + public float m_flInPacketsPerSec; + public float m_flInBytesPerSec; + + /// Estimate rate that we believe that we can send data to our peer. + /// Note that this could be significantly higher than m_flOutBytesPerSec, + /// meaning the capacity of the channel is higher than you are sending data. + /// (That's OK!) + public int m_nSendRateBytesPerSecond; + + /// Number of bytes pending to be sent. This is data that you have recently + /// requested to be sent but has not yet actually been put on the wire. The + /// reliable number ALSO includes data that was previously placed on the wire, + /// but has now been scheduled for re-transmission. Thus, it's possible to + /// observe m_cbPendingReliable increasing between two checks, even if no + /// calls were made to send reliable data between the checks. Data that is + /// awaiting the Nagle delay will appear in these numbers. + public int m_cbPendingUnreliable; + public int m_cbPendingReliable; + + /// Number of bytes of reliable data that has been placed the wire, but + /// for which we have not yet received an acknowledgment, and thus we may + /// have to re-transmit. + public int m_cbSentUnackedReliable; + + /// If you queued a message right now, approximately how long would that message + /// wait in the queue before we actually started putting its data on the wire in + /// a packet? + /// + /// In general, data that is sent by the application is limited by the bandwidth + /// of the channel. If you send data faster than this, it must be queued and + /// put on the wire at a metered rate. Even sending a small amount of data (e.g. + /// a few MTU, say ~3k) will require some of the data to be delayed a bit. + /// + /// Ignoring multiple lanes, the estimated delay will be approximately equal to + /// + /// ( m_cbPendingUnreliable+m_cbPendingReliable ) / m_nSendRateBytesPerSecond + /// + /// plus or minus one MTU. It depends on how much time has elapsed since the last + /// packet was put on the wire. For example, the queue might have *just* been emptied, + /// and the last packet placed on the wire, and we are exactly up against the send + /// rate limit. In that case we might need to wait for one packet's worth of time to + /// elapse before we can send again. On the other extreme, the queue might have data + /// in it waiting for Nagle. (This will always be less than one packet, because as + /// soon as we have a complete packet we would send it.) In that case, we might be + /// ready to send data now, and this value will be 0. + /// + /// This value is only valid if multiple lanes are not used. If multiple lanes are + /// in use, then the queue time will be different for each lane, and you must use + /// the value in SteamNetConnectionRealTimeLaneStatus_t. + /// + /// Nagle delay is ignored for the purposes of this calculation. + public SteamNetworkingMicroseconds m_usecQueueTime; + + // Internal stuff, room to change API easily + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] + public uint[] reserved; +} + +/// Quick status of a particular lane +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct SteamNetConnectionRealTimeLaneStatus_t +{ + // Counters for this particular lane. See the corresponding variables + // in SteamNetConnectionRealTimeStatus_t + public int m_cbPendingUnreliable; + public int m_cbPendingReliable; + public int m_cbSentUnackedReliable; + public int _reservePad1; // Reserved for future use + + /// Lane-specific queue time. This value takes into consideration lane priorities + /// and weights, and how much data is queued in each lane, and attempts to predict + /// how any data currently queued will be sent out. + public SteamNetworkingMicroseconds m_usecQueueTime; + + // Internal stuff, room to change API easily + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)] + public uint[] reserved; +} + +// +// Ping location / measurement +// +/// Object that describes a "location" on the Internet with sufficient +/// detail that we can reasonably estimate an upper bound on the ping between +/// the two hosts, even if a direct route between the hosts is not possible, +/// and the connection must be routed through the Steam Datagram Relay network. +/// This does not contain any information that identifies the host. Indeed, +/// if two hosts are in the same building or otherwise have nearly identical +/// networking characteristics, then it's valid to use the same location +/// object for both of them. +/// +/// NOTE: This object should only be used in the same process! Do not serialize it, +/// send it over the wire, or persist it in a file or database! If you need +/// to do that, convert it to a string representation using the methods in +/// ISteamNetworkingUtils(). +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct SteamNetworkPingLocation_t +{ + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 512)] + public byte[] m_data; } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/MatchmakingTypes/gameserveritem_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/MatchmakingTypes/gameserveritem_t.cs index 6e55ebed4..1f60ec396 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/MatchmakingTypes/gameserveritem_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/MatchmakingTypes/gameserveritem_t.cs @@ -1,103 +1,99 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - using System.Text; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +//----------------------------------------------------------------------------- +// Purpose: Data describing a single server +//----------------------------------------------------------------------------- +[StructLayout(LayoutKind.Sequential, Size = 372, Pack = 4)] +[Serializable] +public class gameserveritem_t { - //----------------------------------------------------------------------------- - // Purpose: Data describing a single server - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Size = 372, Pack = 4)] - [System.Serializable] - public class gameserveritem_t - { - public string GetGameDir() - { - return Encoding.UTF8.GetString(m_szGameDir, 0, System.Array.IndexOf(m_szGameDir, 0)); - } + public string GetGameDir() + { + return Encoding.UTF8.GetString(m_szGameDir, 0, Array.IndexOf(m_szGameDir, 0)); + } - public void SetGameDir( string dir ) - { - m_szGameDir = Encoding.UTF8.GetBytes(dir + '\0'); - } + public void SetGameDir( string dir ) + { + m_szGameDir = Encoding.UTF8.GetBytes(dir + '\0'); + } - public string GetMap() - { - return Encoding.UTF8.GetString(m_szMap, 0, System.Array.IndexOf(m_szMap, 0)); - } + public string GetMap() + { + return Encoding.UTF8.GetString(m_szMap, 0, Array.IndexOf(m_szMap, 0)); + } - public void SetMap( string map ) - { - m_szMap = Encoding.UTF8.GetBytes(map + '\0'); - } + public void SetMap( string map ) + { + m_szMap = Encoding.UTF8.GetBytes(map + '\0'); + } - public string GetGameDescription() - { - return Encoding.UTF8.GetString(m_szGameDescription, 0, System.Array.IndexOf(m_szGameDescription, 0)); - } + public string GetGameDescription() + { + return Encoding.UTF8.GetString(m_szGameDescription, 0, Array.IndexOf(m_szGameDescription, 0)); + } - public void SetGameDescription( string desc ) - { - m_szGameDescription = Encoding.UTF8.GetBytes(desc + '\0'); - } + public void SetGameDescription( string desc ) + { + m_szGameDescription = Encoding.UTF8.GetBytes(desc + '\0'); + } - public string GetServerName() - { - // Use the IP address as the name if nothing is set yet. - if (m_szServerName[0] == 0) - return m_NetAdr.GetConnectionAddressString(); - else - return Encoding.UTF8.GetString(m_szServerName, 0, System.Array.IndexOf(m_szServerName, 0)); - } + public string GetServerName() + { + // Use the IP address as the name if nothing is set yet. + return m_szServerName[0] == 0 + ? m_NetAdr.GetConnectionAddressString() + : Encoding.UTF8.GetString(m_szServerName, 0, Array.IndexOf(m_szServerName, 0)); + } - public void SetServerName( string name ) - { - m_szServerName = Encoding.UTF8.GetBytes(name + '\0'); - } + public void SetServerName( string name ) + { + m_szServerName = Encoding.UTF8.GetBytes(name + '\0'); + } - public string GetGameTags() - { - return Encoding.UTF8.GetString(m_szGameTags, 0, System.Array.IndexOf(m_szGameTags, 0)); - } + public string GetGameTags() + { + return Encoding.UTF8.GetString(m_szGameTags, 0, Array.IndexOf(m_szGameTags, 0)); + } - public void SetGameTags( string tags ) - { - m_szGameTags = Encoding.UTF8.GetBytes(tags + '\0'); - } + public void SetGameTags( string tags ) + { + m_szGameTags = Encoding.UTF8.GetBytes(tags + '\0'); + } - public servernetadr_t m_NetAdr; ///< IP/Query Port/Connection Port for this server + public servernetadr_t m_NetAdr; ///< IP/Query Port/Connection Port for this server public int m_nPing; ///< current ping time in milliseconds [MarshalAs(UnmanagedType.I1)] - public bool m_bHadSuccessfulResponse; ///< server has responded successfully in the past + public bool m_bHadSuccessfulResponse; ///< server has responded successfully in the past [MarshalAs(UnmanagedType.I1)] - public bool m_bDoNotRefresh; ///< server is marked as not responding and should no longer be refreshed + public bool m_bDoNotRefresh; ///< server is marked as not responding and should no longer be refreshed [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cbMaxGameServerGameDir)] - private byte[] m_szGameDir; ///< current game directory + private byte[] m_szGameDir; ///< current game directory [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cbMaxGameServerMapName)] - private byte[] m_szMap; ///< current map + private byte[] m_szMap; ///< current map [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cbMaxGameServerGameDescription)] - private byte[] m_szGameDescription; ///< game description + private byte[] m_szGameDescription; ///< game description public uint m_nAppID; ///< Steam App ID of this server public int m_nPlayers; ///< total number of players currently on the server. INCLUDES BOTS!! public int m_nMaxPlayers; ///< Maximum players that can join this server public int m_nBotPlayers; ///< Number of bots (i.e simulated players) on this server [MarshalAs(UnmanagedType.I1)] - public bool m_bPassword; ///< true if this server needs a password to join + public bool m_bPassword; ///< true if this server needs a password to join [MarshalAs(UnmanagedType.I1)] - public bool m_bSecure; ///< Is this server protected by VAC + public bool m_bSecure; ///< Is this server protected by VAC public uint m_ulTimeLastPlayed; ///< time (in unix time) when this server was last played on (for favorite/history servers) public int m_nServerVersion; ///< server version as reported to Steam - // Game server name - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cbMaxGameServerName)] - private byte[] m_szServerName; + // Game server name + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cbMaxGameServerName)] + private byte[] m_szServerName; - // the tags this server exposes - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cbMaxGameServerTags)] - private byte[] m_szGameTags; + // the tags this server exposes + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cbMaxGameServerTags)] + private byte[] m_szGameTags; - // steamID of the game server - invalid if it's doesn't have one (old server, or not connected to Steam) - public CSteamID m_steamID; - } + // steamID of the game server - invalid if it's doesn't have one (old server, or not connected to Steam) + public CSteamID m_steamID; } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/MatchmakingTypes/servernetadr_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/MatchmakingTypes/servernetadr_t.cs index 4980f8bc4..1f8ccb59c 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/MatchmakingTypes/servernetadr_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/MatchmakingTypes/servernetadr_t.cs @@ -1,23 +1,20 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; +namespace SwiftlyS2.Shared.SteamAPI; -namespace SwiftlyS2.Shared.SteamAPI +// servernetadr_t is all the addressing info the serverbrowser needs to know about a game server, +// namely: its IP, its connection port, and its query port. +[Serializable] +public struct servernetadr_t { - // servernetadr_t is all the addressing info the serverbrowser needs to know about a game server, - // namely: its IP, its connection port, and its query port. - [System.Serializable] - public struct servernetadr_t - { - private ushort m_usConnectionPort; // (in HOST byte order) - private ushort m_usQueryPort; - private uint m_unIP; - - public void Init( uint ip, ushort usQueryPort, ushort usConnectionPort ) - { - m_unIP = ip; - m_usQueryPort = usQueryPort; - m_usConnectionPort = usConnectionPort; - } + private ushort m_usConnectionPort; // (in HOST byte order) + private ushort m_usQueryPort; + private uint m_unIP; + + public void Init( uint ip, ushort usQueryPort, ushort usConnectionPort ) + { + m_unIP = ip; + m_usQueryPort = usQueryPort; + m_usConnectionPort = usConnectionPort; + } #if NETADR_H public netadr_t GetIPAndQueryPort() { @@ -25,97 +22,96 @@ public netadr_t GetIPAndQueryPort() { } #endif - // Access the query port. - public ushort GetQueryPort() - { - return m_usQueryPort; - } - - public void SetQueryPort( ushort usPort ) - { - m_usQueryPort = usPort; - } - - // Access the connection port. - public ushort GetConnectionPort() - { - return m_usConnectionPort; - } - - public void SetConnectionPort( ushort usPort ) - { - m_usConnectionPort = usPort; - } - - // Access the IP - public uint GetIP() - { - return m_unIP; - } - - public void SetIP( uint unIP ) - { - m_unIP = unIP; - } - - // This gets the 'a.b.c.d:port' string with the connection port (instead of the query port). - public string GetConnectionAddressString() - { - return ToString(m_unIP, m_usConnectionPort); - } - - public string GetQueryAddressString() - { - return ToString(m_unIP, m_usQueryPort); - } - - public static string ToString( uint unIP, ushort usPort ) - { + // Access the query port. + public ushort GetQueryPort() + { + return m_usQueryPort; + } + + public void SetQueryPort( ushort usPort ) + { + m_usQueryPort = usPort; + } + + // Access the connection port. + public ushort GetConnectionPort() + { + return m_usConnectionPort; + } + + public void SetConnectionPort( ushort usPort ) + { + m_usConnectionPort = usPort; + } + + // Access the IP + public uint GetIP() + { + return m_unIP; + } + + public void SetIP( uint unIP ) + { + m_unIP = unIP; + } + + // This gets the 'a.b.c.d:port' string with the connection port (instead of the query port). + public string GetConnectionAddressString() + { + return ToString(m_unIP, m_usConnectionPort); + } + + public string GetQueryAddressString() + { + return ToString(m_unIP, m_usQueryPort); + } + + public static string ToString( uint unIP, ushort usPort ) + { #if VALVE_BIG_ENDIAN return string.Format("{0}.{1}.{2}.{3}:{4}", unIP & 0xFFul, (unIP >> 8) & 0xFFul, (unIP >> 16) & 0xFFul, (unIP >> 24) & 0xFFul, usPort); #else - return string.Format("{0}.{1}.{2}.{3}:{4}", (unIP >> 24) & 0xFFul, (unIP >> 16) & 0xFFul, (unIP >> 8) & 0xFFul, unIP & 0xFFul, usPort); + return string.Format("{0}.{1}.{2}.{3}:{4}", (unIP >> 24) & 0xFFul, (unIP >> 16) & 0xFFul, (unIP >> 8) & 0xFFul, unIP & 0xFFul, usPort); #endif - } - - public static bool operator <( servernetadr_t x, servernetadr_t y ) - { - return (x.m_unIP < y.m_unIP) || (x.m_unIP == y.m_unIP && x.m_usQueryPort < y.m_usQueryPort); - } - - public static bool operator >( servernetadr_t x, servernetadr_t y ) - { - return (x.m_unIP > y.m_unIP) || (x.m_unIP == y.m_unIP && x.m_usQueryPort > y.m_usQueryPort); - } - - public override bool Equals( object other ) - { - return other is servernetadr_t && this == (servernetadr_t)other; - } - - public override int GetHashCode() - { - return m_unIP.GetHashCode() + m_usQueryPort.GetHashCode() + m_usConnectionPort.GetHashCode(); - } - - public static bool operator ==( servernetadr_t x, servernetadr_t y ) - { - return (x.m_unIP == y.m_unIP) && (x.m_usQueryPort == y.m_usQueryPort) && (x.m_usConnectionPort == y.m_usConnectionPort); - } - - public static bool operator !=( servernetadr_t x, servernetadr_t y ) - { - return !(x == y); - } - - public bool Equals( servernetadr_t other ) - { - return (m_unIP == other.m_unIP) && (m_usQueryPort == other.m_usQueryPort) && (m_usConnectionPort == other.m_usConnectionPort); - } - - public int CompareTo( servernetadr_t other ) - { - return m_unIP.CompareTo(other.m_unIP) + m_usQueryPort.CompareTo(other.m_usQueryPort) + m_usConnectionPort.CompareTo(other.m_usConnectionPort); - } - } + } + + public static bool operator <( servernetadr_t x, servernetadr_t y ) + { + return (x.m_unIP < y.m_unIP) || (x.m_unIP == y.m_unIP && x.m_usQueryPort < y.m_usQueryPort); + } + + public static bool operator >( servernetadr_t x, servernetadr_t y ) + { + return (x.m_unIP > y.m_unIP) || (x.m_unIP == y.m_unIP && x.m_usQueryPort > y.m_usQueryPort); + } + + public override bool Equals( object other ) + { + return other is servernetadr_t && this == (servernetadr_t)other; + } + + public override int GetHashCode() + { + return m_unIP.GetHashCode() + m_usQueryPort.GetHashCode() + m_usConnectionPort.GetHashCode(); + } + + public static bool operator ==( servernetadr_t x, servernetadr_t y ) + { + return (x.m_unIP == y.m_unIP) && (x.m_usQueryPort == y.m_usQueryPort) && (x.m_usConnectionPort == y.m_usConnectionPort); + } + + public static bool operator !=( servernetadr_t x, servernetadr_t y ) + { + return !(x == y); + } + + public bool Equals( servernetadr_t other ) + { + return (m_unIP == other.m_unIP) && (m_usQueryPort == other.m_usQueryPort) && (m_usConnectionPort == other.m_usConnectionPort); + } + + public int CompareTo( servernetadr_t other ) + { + return m_unIP.CompareTo(other.m_unIP) + m_usQueryPort.CompareTo(other.m_usQueryPort) + m_usConnectionPort.CompareTo(other.m_usConnectionPort); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClient/SteamAPIWarningMessageHook_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClient/SteamAPIWarningMessageHook_t.cs index e7a8413ee..8eba1a86b 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClient/SteamAPIWarningMessageHook_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClient/SteamAPIWarningMessageHook_t.cs @@ -1,10 +1,8 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; -namespace SwiftlyS2.Shared.SteamAPI -{ - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.Cdecl)] - public delegate void SteamAPIWarningMessageHook_t(int nSeverity, System.Text.StringBuilder pchDebugText); -} +namespace SwiftlyS2.Shared.SteamAPI; + +[UnmanagedFunctionPointer(CallingConvention.Cdecl)] +public delegate void SteamAPIWarningMessageHook_t( int nSeverity, System.Text.StringBuilder pchDebugText ); diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClient/SteamAPI_CheckCallbackRegistered_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClient/SteamAPI_CheckCallbackRegistered_t.cs index 00813f617..24cd882c9 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClient/SteamAPI_CheckCallbackRegistered_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClient/SteamAPI_CheckCallbackRegistered_t.cs @@ -1,10 +1,8 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; -namespace SwiftlyS2.Shared.SteamAPI -{ - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] // TODO: This is probably wrong, will likely crash on some platform. - public delegate void SteamAPI_CheckCallbackRegistered_t( int iCallbackNum ); -} +namespace SwiftlyS2.Shared.SteamAPI; + +[UnmanagedFunctionPointer(CallingConvention.StdCall)] // TODO: This is probably wrong, will likely crash on some platform. +public delegate void SteamAPI_CheckCallbackRegistered_t( int iCallbackNum ); diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClientPublic/CGameID.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClientPublic/CGameID.cs index b643f1873..f17064072 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClientPublic/CGameID.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClientPublic/CGameID.cs @@ -1,170 +1,166 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; +namespace SwiftlyS2.Shared.SteamAPI; -namespace SwiftlyS2.Shared.SteamAPI +[Serializable] +public struct CGameID : IEquatable, IComparable { - [System.Serializable] - public struct CGameID : System.IEquatable, System.IComparable - { - public ulong m_GameID; - - public enum EGameIDType - { - k_EGameIDTypeApp = 0, - k_EGameIDTypeGameMod = 1, - k_EGameIDTypeShortcut = 2, - k_EGameIDTypeP2P = 3, - }; - - public CGameID(ulong GameID) - { - m_GameID = GameID; - } - - public CGameID(AppId_t nAppID) - { - m_GameID = 0; - SetAppID(nAppID); - } - - public CGameID(AppId_t nAppID, uint nModID) - { - m_GameID = 0; - SetAppID(nAppID); - SetType(EGameIDType.k_EGameIDTypeGameMod); - SetModID(nModID); - } - - public bool IsSteamApp() - { - return Type() == EGameIDType.k_EGameIDTypeApp; - } - - public bool IsMod() - { - return Type() == EGameIDType.k_EGameIDTypeGameMod; - } - - public bool IsShortcut() - { - return Type() == EGameIDType.k_EGameIDTypeShortcut; - } - - public bool IsP2PFile() - { - return Type() == EGameIDType.k_EGameIDTypeP2P; - } - - public AppId_t AppID() - { - return new AppId_t((uint)(m_GameID & 0xFFFFFFul)); - } - - public EGameIDType Type() - { - return (EGameIDType)((m_GameID >> 24) & 0xFFul); - } - - public uint ModID() - { - return (uint)((m_GameID >> 32) & 0xFFFFFFFFul); - } - - public bool IsValid() - { - // Each type has it's own invalid fixed point: - switch (Type()) - { - case EGameIDType.k_EGameIDTypeApp: - return AppID() != AppId_t.Invalid; - - case EGameIDType.k_EGameIDTypeGameMod: - return AppID() != AppId_t.Invalid && (ModID() & 0x80000000) != 0; - - case EGameIDType.k_EGameIDTypeShortcut: - return (ModID() & 0x80000000) != 0; - - case EGameIDType.k_EGameIDTypeP2P: - return AppID() == AppId_t.Invalid && (ModID() & 0x80000000) != 0; - - default: - return false; - } - } - - public void Reset() - { - m_GameID = 0; - } - - public void Set(ulong GameID) - { - m_GameID = GameID; - } - - #region Private Setters for internal use - private void SetAppID(AppId_t other) - { - m_GameID = (m_GameID & ~(0xFFFFFFul << (ushort)0)) | (((ulong)(other) & 0xFFFFFFul) << (ushort)0); - } - - private void SetType(EGameIDType other) - { - m_GameID = (m_GameID & ~(0xFFul << (ushort)24)) | (((ulong)(other) & 0xFFul) << (ushort)24); - } - - private void SetModID(uint other) - { - m_GameID = (m_GameID & ~(0xFFFFFFFFul << (ushort)32)) | (((ulong)(other) & 0xFFFFFFFFul) << (ushort)32); - } - #endregion - - #region Overrides - public override string ToString() - { - return m_GameID.ToString(); - } - - public override bool Equals(object other) - { - return other is CGameID && this == (CGameID)other; - } - - public override int GetHashCode() - { - return m_GameID.GetHashCode(); - } - - public static bool operator ==(CGameID x, CGameID y) - { - return x.m_GameID == y.m_GameID; - } - - public static bool operator !=(CGameID x, CGameID y) - { - return !(x == y); - } - - public static explicit operator CGameID(ulong value) - { - return new CGameID(value); - } - public static explicit operator ulong(CGameID that) - { - return that.m_GameID; - } - - public bool Equals(CGameID other) - { - return m_GameID == other.m_GameID; - } - - public int CompareTo(CGameID other) - { - return m_GameID.CompareTo(other.m_GameID); - } - #endregion - } + public ulong m_GameID; + + public enum EGameIDType + { + k_EGameIDTypeApp = 0, + k_EGameIDTypeGameMod = 1, + k_EGameIDTypeShortcut = 2, + k_EGameIDTypeP2P = 3, + }; + + public CGameID( ulong GameID ) + { + m_GameID = GameID; + } + + public CGameID( AppId_t nAppID ) + { + m_GameID = 0; + SetAppID(nAppID); + } + + public CGameID( AppId_t nAppID, uint nModID ) + { + m_GameID = 0; + SetAppID(nAppID); + SetType(EGameIDType.k_EGameIDTypeGameMod); + SetModID(nModID); + } + + public bool IsSteamApp() + { + return Type() == EGameIDType.k_EGameIDTypeApp; + } + + public bool IsMod() + { + return Type() == EGameIDType.k_EGameIDTypeGameMod; + } + + public bool IsShortcut() + { + return Type() == EGameIDType.k_EGameIDTypeShortcut; + } + + public bool IsP2PFile() + { + return Type() == EGameIDType.k_EGameIDTypeP2P; + } + + public AppId_t AppID() + { + return new AppId_t((uint)(m_GameID & 0xFFFFFFul)); + } + + public EGameIDType Type() + { + return (EGameIDType)((m_GameID >> 24) & 0xFFul); + } + + public uint ModID() + { + return (uint)((m_GameID >> 32) & 0xFFFFFFFFul); + } + + public bool IsValid() + { + // Each type has it's own invalid fixed point: + switch (Type()) + { + case EGameIDType.k_EGameIDTypeApp: + return AppID() != AppId_t.Invalid; + + case EGameIDType.k_EGameIDTypeGameMod: + return AppID() != AppId_t.Invalid && (ModID() & 0x80000000) != 0; + + case EGameIDType.k_EGameIDTypeShortcut: + return (ModID() & 0x80000000) != 0; + + case EGameIDType.k_EGameIDTypeP2P: + return AppID() == AppId_t.Invalid && (ModID() & 0x80000000) != 0; + + default: + return false; + } + } + + public void Reset() + { + m_GameID = 0; + } + + public void Set( ulong GameID ) + { + m_GameID = GameID; + } + + #region Private Setters for internal use + private void SetAppID( AppId_t other ) + { + m_GameID = (m_GameID & ~(0xFFFFFFul << 0)) | (((ulong)(other) & 0xFFFFFFul) << 0); + } + + private void SetType( EGameIDType other ) + { + m_GameID = (m_GameID & ~(0xFFul << 24)) | (((ulong)(other) & 0xFFul) << 24); + } + + private void SetModID( uint other ) + { + m_GameID = (m_GameID & ~(0xFFFFFFFFul << 32)) | ((other & 0xFFFFFFFFul) << 32); + } + #endregion + + #region Overrides + public override string ToString() + { + return m_GameID.ToString(); + } + + public override bool Equals( object other ) + { + return other is CGameID && this == (CGameID)other; + } + + public override int GetHashCode() + { + return m_GameID.GetHashCode(); + } + + public static bool operator ==( CGameID x, CGameID y ) + { + return x.m_GameID == y.m_GameID; + } + + public static bool operator !=( CGameID x, CGameID y ) + { + return !(x == y); + } + + public static explicit operator CGameID( ulong value ) + { + return new CGameID(value); + } + public static explicit operator ulong( CGameID that ) + { + return that.m_GameID; + } + + public bool Equals( CGameID other ) + { + return m_GameID == other.m_GameID; + } + + public int CompareTo( CGameID other ) + { + return m_GameID.CompareTo(other.m_GameID); + } + #endregion } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClientPublic/CSteamID.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClientPublic/CSteamID.cs index f864c6cea..6b634ac1a 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClientPublic/CSteamID.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClientPublic/CSteamID.cs @@ -5,111 +5,144 @@ namespace SwiftlyS2.Shared.SteamAPI; public partial class SteamIdParser { - private const ulong STEAM_ID_BASE = 76561197960265728; + private const ulong STEAM_ID_BASE = 76561197960265728; - private static readonly Regex SteamId64Regex = MyRegex(); - private static readonly Regex SteamIdRegex = MyRegex1(); - private static readonly Regex SteamId3Regex = MyRegex2(); + private static readonly Regex SteamId64Regex = MyRegex(); + private static readonly Regex SteamIdRegex = MyRegex1(); + private static readonly Regex SteamId3Regex = MyRegex2(); + private static readonly Regex SteamIdOnlineRegex = MyRegex3(); - public static ulong? ParseToSteamId64( string input ) - { - if (string.IsNullOrWhiteSpace(input)) - return null; + public static ulong? ParseToSteamId64( string input ) + { + if (string.IsNullOrWhiteSpace(input)) + return null; - input = input.Trim(); + input = input.Trim(); - if (TryParseSteamId64(input, out var steamId64)) - return steamId64; + if (TryParseSteamId64(input, out var steamId64)) + return steamId64; - if (TryParseSteamId(input, out steamId64)) - return steamId64; + if (TryParseSteamIdOnline(input, out steamId64)) + return steamId64; - if (TryParseSteamId3(input, out steamId64)) - return steamId64; + if (TryParseSteamId(input, out steamId64)) + return steamId64; - return null; - } + return TryParseSteamId3(input, out steamId64) ? steamId64 : null; + } - private static bool TryParseSteamId64( string input, out ulong steamId64 ) - { - steamId64 = 0; + private static bool TryParseSteamId64( string input, out ulong steamId64 ) + { + steamId64 = 0; - if (!SteamId64Regex.IsMatch(input)) - return false; + return !SteamId64Regex.IsMatch(input) ? false : ulong.TryParse(input, out steamId64) && steamId64 >= STEAM_ID_BASE; + } - return ulong.TryParse(input, out steamId64) && steamId64 >= STEAM_ID_BASE; - } + private static bool TryParseSteamId( string input, out ulong steamId64 ) + { + steamId64 = 0; - private static bool TryParseSteamId( string input, out ulong steamId64 ) - { - steamId64 = 0; + var match = SteamIdRegex.Match(input); + if (!match.Success) + return false; - var match = SteamIdRegex.Match(input); - if (!match.Success) - return false; + if (!uint.TryParse(match.Groups[1].Value, out var y)) + return false; - if (!uint.TryParse(match.Groups[1].Value, out uint y)) - return false; + if (!uint.TryParse(match.Groups[2].Value, out var z)) + return false; - if (!uint.TryParse(match.Groups[2].Value, out uint z)) - return false; + if (y > 1) + return false; - if (y > 1) - return false; + steamId64 = STEAM_ID_BASE + (z * 2) + y; + return true; + } - steamId64 = STEAM_ID_BASE + (z * 2) + y; - return true; - } + public static bool TryParseSteamIdOnline( string input, out ulong steamId64 ) + { + steamId64 = 0; - private static bool TryParseSteamId3( string input, out ulong steamId64 ) - { - steamId64 = 0; + var match = SteamIdOnlineRegex.Match(input); + if (!match.Success) + return false; - var match = SteamId3Regex.Match(input); - if (!match.Success) - return false; + if (!uint.TryParse(match.Groups[1].Value, out var y)) + return false; - if (!uint.TryParse(match.Groups[1].Value, out uint accountId)) - return false; + if (!uint.TryParse(match.Groups[2].Value, out var z)) + return false; - steamId64 = STEAM_ID_BASE + accountId; - return true; - } + if (y > 1) + return false; - public static bool IsValidSteamId64( ulong steamId64 ) - { - return steamId64 >= STEAM_ID_BASE; - } + steamId64 = STEAM_ID_BASE + (z * 2) + y; + return true; + } - public static string ToSteamId( ulong steamId64 ) - { - if (!IsValidSteamId64(steamId64)) - return null; + private static bool TryParseSteamId3( string input, out ulong steamId64 ) + { + steamId64 = 0; - var accountId = steamId64 - STEAM_ID_BASE; - var y = accountId % 2; - var z = accountId / 2; + var match = SteamId3Regex.Match(input); + if (!match.Success) + return false; - return $"STEAM_0:{y}:{z}"; - } + if (!uint.TryParse(match.Groups[1].Value, out var accountId)) + return false; - public static string ToSteamId3( ulong steamId64 ) - { - if (!IsValidSteamId64(steamId64)) - return null; + steamId64 = STEAM_ID_BASE + accountId; + return true; + } - var accountId = steamId64 - STEAM_ID_BASE; - return $"[U:1:{accountId}]"; - } + public static bool IsValidSteamId64( ulong steamId64 ) + { + return steamId64 >= STEAM_ID_BASE; + } - [GeneratedRegex(@"^7656119[0-9]{10}$")] - private static partial Regex MyRegex(); + public static string ToSteamId( ulong steamId64 ) + { + if (!IsValidSteamId64(steamId64)) + return null; - [GeneratedRegex(@"^STEAM_[0-5]:([0-1]):([0-9]+)$")] - private static partial Regex MyRegex1(); + var accountId = steamId64 - STEAM_ID_BASE; + var y = accountId % 2; + var z = accountId / 2; - [GeneratedRegex(@"^\[U:1:([0-9]+)\]$")] - private static partial Regex MyRegex2(); + return $"STEAM_0:{y}:{z}"; + } + + public static string ToSteamId3( ulong steamId64 ) + { + if (!IsValidSteamId64(steamId64)) + return null; + + var accountId = steamId64 - STEAM_ID_BASE; + return $"[U:1:{accountId}]"; + } + + public static string ToSteamIdOnline( ulong steamId64 ) + { + if (!IsValidSteamId64(steamId64)) + return null; + + var accountId = steamId64 - STEAM_ID_BASE; + var y = accountId % 2; + var z = accountId / 2; + return $"STEAM_1:{y}:{z}"; + } + + [GeneratedRegex(@"^7656119[0-9]{10}$")] + private static partial Regex MyRegex(); + + [GeneratedRegex(@"^STEAM_[0-5]:([0-1]):([0-9]+)$")] + private static partial Regex MyRegex1(); + + [GeneratedRegex(@"^\[U:1:([0-9]+)\]$")] + private static partial Regex MyRegex2(); + + [GeneratedRegex(@"^STEAM_1:([0-1]):([0-9]+)$")] + private static partial Regex MyRegex3(); } @@ -117,317 +150,323 @@ public static string ToSteamId3( ulong steamId64 ) [StructLayout(LayoutKind.Sequential, Pack = 4)] public struct CSteamID : IEquatable, IComparable { - public static readonly CSteamID Nil = new(); - public static readonly CSteamID OutofDateGS = new(new AccountID_t(0), 0, EUniverse.k_EUniverseInvalid, EAccountType.k_EAccountTypeInvalid); - public static readonly CSteamID LanModeGS = new(new AccountID_t(0), 0, EUniverse.k_EUniversePublic, EAccountType.k_EAccountTypeInvalid); - public static readonly CSteamID NotInitYetGS = new(new AccountID_t(1), 0, EUniverse.k_EUniverseInvalid, EAccountType.k_EAccountTypeInvalid); - public static readonly CSteamID NonSteamGS = new(new AccountID_t(2), 0, EUniverse.k_EUniverseInvalid, EAccountType.k_EAccountTypeInvalid); - public ulong m_SteamID; - - public CSteamID( AccountID_t unAccountID, EUniverse eUniverse, EAccountType eAccountType ) - { - m_SteamID = 0; - Set(unAccountID, eUniverse, eAccountType); - } - - public CSteamID( AccountID_t unAccountID, uint unAccountInstance, EUniverse eUniverse, EAccountType eAccountType ) - { - m_SteamID = 0; + public static readonly CSteamID Nil = new(); + public static readonly CSteamID OutofDateGS = new(new AccountID_t(0), 0, EUniverse.k_EUniverseInvalid, EAccountType.k_EAccountTypeInvalid); + public static readonly CSteamID LanModeGS = new(new AccountID_t(0), 0, EUniverse.k_EUniversePublic, EAccountType.k_EAccountTypeInvalid); + public static readonly CSteamID NotInitYetGS = new(new AccountID_t(1), 0, EUniverse.k_EUniverseInvalid, EAccountType.k_EAccountTypeInvalid); + public static readonly CSteamID NonSteamGS = new(new AccountID_t(2), 0, EUniverse.k_EUniverseInvalid, EAccountType.k_EAccountTypeInvalid); + public ulong m_SteamID; + + public CSteamID( AccountID_t unAccountID, EUniverse eUniverse, EAccountType eAccountType ) + { + m_SteamID = 0; + Set(unAccountID, eUniverse, eAccountType); + } + + public CSteamID( AccountID_t unAccountID, uint unAccountInstance, EUniverse eUniverse, EAccountType eAccountType ) + { + m_SteamID = 0; #if _SERVER && Assert Assert( ! ( ( EAccountType.k_EAccountTypeIndividual == eAccountType ) && ( unAccountInstance > k_unSteamUserWebInstance ) ) ); // enforce that for individual accounts, instance is always 1 #endif // _SERVER - InstancedSet(unAccountID, unAccountInstance, eUniverse, eAccountType); - } - - public CSteamID( ulong ulSteamID ) - { - m_SteamID = ulSteamID; - } - - public CSteamID( string sSteamID ) - { - m_SteamID = SteamIdParser.ParseToSteamId64(sSteamID) ?? 0; - } - - public void Set( AccountID_t unAccountID, EUniverse eUniverse, EAccountType eAccountType ) - { - SetAccountID(unAccountID); - SetEUniverse(eUniverse); - SetEAccountType(eAccountType); - - if (eAccountType == EAccountType.k_EAccountTypeClan || eAccountType == EAccountType.k_EAccountTypeGameServer) - { - SetAccountInstance(0); - } - else - { - SetAccountInstance(Constants.k_unSteamUserDefaultInstance); - } - } - - public void InstancedSet( AccountID_t unAccountID, uint unInstance, EUniverse eUniverse, EAccountType eAccountType ) - { - SetAccountID(unAccountID); - SetEUniverse(eUniverse); - SetEAccountType(eAccountType); - SetAccountInstance(unInstance); - } - - public void Clear() - { - m_SteamID = 0; - } - - public void CreateBlankAnonLogon( EUniverse eUniverse ) - { - SetAccountID(new AccountID_t(0)); - SetEUniverse(eUniverse); - SetEAccountType(EAccountType.k_EAccountTypeAnonGameServer); - SetAccountInstance(0); - } - - public void CreateBlankAnonUserLogon( EUniverse eUniverse ) - { - SetAccountID(new AccountID_t(0)); - SetEUniverse(eUniverse); - SetEAccountType(EAccountType.k_EAccountTypeAnonUser); - SetAccountInstance(0); - } - - //----------------------------------------------------------------------------- - // Purpose: Is this an anonymous game server login that will be filled in? - //----------------------------------------------------------------------------- - public bool BBlankAnonAccount() - { - return GetAccountID() == new AccountID_t(0) && BAnonAccount() && GetUnAccountInstance() == 0; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this a game server account id? (Either persistent or anonymous) - //----------------------------------------------------------------------------- - public bool BGameServerAccount() - { - return GetEAccountType() == EAccountType.k_EAccountTypeGameServer || GetEAccountType() == EAccountType.k_EAccountTypeAnonGameServer; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this a persistent (not anonymous) game server account id? - //----------------------------------------------------------------------------- - public bool BPersistentGameServerAccount() - { - return GetEAccountType() == EAccountType.k_EAccountTypeGameServer; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this an anonymous game server account id? - //----------------------------------------------------------------------------- - public bool BAnonGameServerAccount() - { - return GetEAccountType() == EAccountType.k_EAccountTypeAnonGameServer; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this a content server account id? - //----------------------------------------------------------------------------- - public bool BContentServerAccount() - { - return GetEAccountType() == EAccountType.k_EAccountTypeContentServer; - } - - - //----------------------------------------------------------------------------- - // Purpose: Is this a clan account id? - //----------------------------------------------------------------------------- - public bool BClanAccount() - { - return GetEAccountType() == EAccountType.k_EAccountTypeClan; - } - - - //----------------------------------------------------------------------------- - // Purpose: Is this a chat account id? - //----------------------------------------------------------------------------- - public bool BChatAccount() - { - return GetEAccountType() == EAccountType.k_EAccountTypeChat; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this a chat account id? - //----------------------------------------------------------------------------- - public bool IsLobby() - { - return (GetEAccountType() == EAccountType.k_EAccountTypeChat) - && (GetUnAccountInstance() & (int)EChatSteamIDInstanceFlags.k_EChatInstanceFlagLobby) != 0; - } - - - //----------------------------------------------------------------------------- - // Purpose: Is this an individual user account id? - //----------------------------------------------------------------------------- - public bool BIndividualAccount() - { - return GetEAccountType() == EAccountType.k_EAccountTypeIndividual || GetEAccountType() == EAccountType.k_EAccountTypeConsoleUser; - } - - - //----------------------------------------------------------------------------- - // Purpose: Is this an anonymous account? - //----------------------------------------------------------------------------- - public bool BAnonAccount() - { - return GetEAccountType() == EAccountType.k_EAccountTypeAnonUser || GetEAccountType() == EAccountType.k_EAccountTypeAnonGameServer; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this an anonymous user account? ( used to create an account or reset a password ) - //----------------------------------------------------------------------------- - public bool BAnonUserAccount() - { - return GetEAccountType() == EAccountType.k_EAccountTypeAnonUser; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this a faked up Steam ID for a PSN friend account? - //----------------------------------------------------------------------------- - public bool BConsoleUserAccount() - { - return GetEAccountType() == EAccountType.k_EAccountTypeConsoleUser; - } - - public void SetAccountID( AccountID_t other ) - { - m_SteamID = (m_SteamID & ~(0xFFFFFFFFul << (ushort)0)) | (((ulong)(other) & 0xFFFFFFFFul) << (ushort)0); - } - - public void SetAccountInstance( uint other ) - { - m_SteamID = (m_SteamID & ~(0xFFFFFul << (ushort)32)) | (((ulong)(other) & 0xFFFFFul) << (ushort)32); - } - - // This is a non standard/custom function not found in C++ Steamworks - public void SetEAccountType( EAccountType other ) - { - m_SteamID = (m_SteamID & ~(0xFul << (ushort)52)) | (((ulong)(other) & 0xFul) << (ushort)52); - } - - public void SetEUniverse( EUniverse other ) - { - m_SteamID = (m_SteamID & ~(0xFFul << (ushort)56)) | (((ulong)(other) & 0xFFul) << (ushort)56); - } - - public AccountID_t GetAccountID() - { - return new AccountID_t((uint)(m_SteamID & 0xFFFFFFFFul)); - } - - public uint GetUnAccountInstance() - { - return (uint)((m_SteamID >> 32) & 0xFFFFFul); - } - - public EAccountType GetEAccountType() - { - return (EAccountType)((m_SteamID >> 52) & 0xFul); - } - - public EUniverse GetEUniverse() - { - return (EUniverse)((m_SteamID >> 56) & 0xFFul); - } - - public bool IsValid() - { - if (GetEAccountType() <= EAccountType.k_EAccountTypeInvalid || GetEAccountType() >= EAccountType.k_EAccountTypeMax) - return false; - - if (GetEUniverse() <= EUniverse.k_EUniverseInvalid || GetEUniverse() >= EUniverse.k_EUniverseMax) - return false; - - if (GetEAccountType() == EAccountType.k_EAccountTypeIndividual) - { - if (GetAccountID() == new AccountID_t(0) || GetUnAccountInstance() > Constants.k_unSteamUserDefaultInstance) - return false; - } - - if (GetEAccountType() == EAccountType.k_EAccountTypeClan) - { - if (GetAccountID() == new AccountID_t(0) || GetUnAccountInstance() != 0) - return false; - } - - if (GetEAccountType() == EAccountType.k_EAccountTypeGameServer) - { - if (GetAccountID() == new AccountID_t(0)) - return false; - // Any limit on instances? We use them for local users and bots - } - return true; - } - - public ulong GetSteamID64() - { - return m_SteamID; - } - - public string GetSteamID() - { - return SteamIdParser.ToSteamId(m_SteamID); - } - - public string GetSteamID3() - { - return SteamIdParser.ToSteamId3(m_SteamID); - } - - public uint GetSteamID32() - { - return GetAccountID().m_AccountID; - } - - #region Overrides - public override string ToString() - { - return m_SteamID.ToString(); - } - - public override bool Equals( object other ) - { - return other is CSteamID && this == (CSteamID)other; - } - - public override int GetHashCode() - { - return m_SteamID.GetHashCode(); - } - - public static bool operator ==( CSteamID x, CSteamID y ) - { - return x.m_SteamID == y.m_SteamID; - } - - public static bool operator !=( CSteamID x, CSteamID y ) - { - return !(x == y); - } - - public static explicit operator CSteamID( ulong value ) - { - return new CSteamID(value); - } - public static explicit operator ulong( CSteamID that ) - { - return that.m_SteamID; - } - - public bool Equals( CSteamID other ) - { - return m_SteamID == other.m_SteamID; - } - - public int CompareTo( CSteamID other ) - { - return m_SteamID.CompareTo(other.m_SteamID); - } - #endregion + InstancedSet(unAccountID, unAccountInstance, eUniverse, eAccountType); + } + + public CSteamID( ulong ulSteamID ) + { + m_SteamID = ulSteamID; + } + + public CSteamID( string sSteamID ) + { + m_SteamID = SteamIdParser.ParseToSteamId64(sSteamID) ?? 0; + } + + public void Set( AccountID_t unAccountID, EUniverse eUniverse, EAccountType eAccountType ) + { + SetAccountID(unAccountID); + SetEUniverse(eUniverse); + SetEAccountType(eAccountType); + + if (eAccountType == EAccountType.k_EAccountTypeClan || eAccountType == EAccountType.k_EAccountTypeGameServer) + { + SetAccountInstance(0); + } + else + { + SetAccountInstance(Constants.k_unSteamUserDefaultInstance); + } + } + + public void InstancedSet( AccountID_t unAccountID, uint unInstance, EUniverse eUniverse, EAccountType eAccountType ) + { + SetAccountID(unAccountID); + SetEUniverse(eUniverse); + SetEAccountType(eAccountType); + SetAccountInstance(unInstance); + } + + public void Clear() + { + m_SteamID = 0; + } + + public void CreateBlankAnonLogon( EUniverse eUniverse ) + { + SetAccountID(new AccountID_t(0)); + SetEUniverse(eUniverse); + SetEAccountType(EAccountType.k_EAccountTypeAnonGameServer); + SetAccountInstance(0); + } + + public void CreateBlankAnonUserLogon( EUniverse eUniverse ) + { + SetAccountID(new AccountID_t(0)); + SetEUniverse(eUniverse); + SetEAccountType(EAccountType.k_EAccountTypeAnonUser); + SetAccountInstance(0); + } + + //----------------------------------------------------------------------------- + // Purpose: Is this an anonymous game server login that will be filled in? + //----------------------------------------------------------------------------- + public bool BBlankAnonAccount() + { + return GetAccountID() == new AccountID_t(0) && BAnonAccount() && GetUnAccountInstance() == 0; + } + + //----------------------------------------------------------------------------- + // Purpose: Is this a game server account id? (Either persistent or anonymous) + //----------------------------------------------------------------------------- + public bool BGameServerAccount() + { + return GetEAccountType() == EAccountType.k_EAccountTypeGameServer || GetEAccountType() == EAccountType.k_EAccountTypeAnonGameServer; + } + + //----------------------------------------------------------------------------- + // Purpose: Is this a persistent (not anonymous) game server account id? + //----------------------------------------------------------------------------- + public bool BPersistentGameServerAccount() + { + return GetEAccountType() == EAccountType.k_EAccountTypeGameServer; + } + + //----------------------------------------------------------------------------- + // Purpose: Is this an anonymous game server account id? + //----------------------------------------------------------------------------- + public bool BAnonGameServerAccount() + { + return GetEAccountType() == EAccountType.k_EAccountTypeAnonGameServer; + } + + //----------------------------------------------------------------------------- + // Purpose: Is this a content server account id? + //----------------------------------------------------------------------------- + public bool BContentServerAccount() + { + return GetEAccountType() == EAccountType.k_EAccountTypeContentServer; + } + + + //----------------------------------------------------------------------------- + // Purpose: Is this a clan account id? + //----------------------------------------------------------------------------- + public bool BClanAccount() + { + return GetEAccountType() == EAccountType.k_EAccountTypeClan; + } + + + //----------------------------------------------------------------------------- + // Purpose: Is this a chat account id? + //----------------------------------------------------------------------------- + public bool BChatAccount() + { + return GetEAccountType() == EAccountType.k_EAccountTypeChat; + } + + //----------------------------------------------------------------------------- + // Purpose: Is this a chat account id? + //----------------------------------------------------------------------------- + public bool IsLobby() + { + return (GetEAccountType() == EAccountType.k_EAccountTypeChat) + && (GetUnAccountInstance() & (int)EChatSteamIDInstanceFlags.k_EChatInstanceFlagLobby) != 0; + } + + + //----------------------------------------------------------------------------- + // Purpose: Is this an individual user account id? + //----------------------------------------------------------------------------- + public bool BIndividualAccount() + { + return GetEAccountType() == EAccountType.k_EAccountTypeIndividual || GetEAccountType() == EAccountType.k_EAccountTypeConsoleUser; + } + + + //----------------------------------------------------------------------------- + // Purpose: Is this an anonymous account? + //----------------------------------------------------------------------------- + public bool BAnonAccount() + { + return GetEAccountType() == EAccountType.k_EAccountTypeAnonUser || GetEAccountType() == EAccountType.k_EAccountTypeAnonGameServer; + } + + //----------------------------------------------------------------------------- + // Purpose: Is this an anonymous user account? ( used to create an account or reset a password ) + //----------------------------------------------------------------------------- + public bool BAnonUserAccount() + { + return GetEAccountType() == EAccountType.k_EAccountTypeAnonUser; + } + + //----------------------------------------------------------------------------- + // Purpose: Is this a faked up Steam ID for a PSN friend account? + //----------------------------------------------------------------------------- + public bool BConsoleUserAccount() + { + return GetEAccountType() == EAccountType.k_EAccountTypeConsoleUser; + } + + public void SetAccountID( AccountID_t other ) + { + m_SteamID = (m_SteamID & ~(0xFFFFFFFFul << 0)) | (((ulong)(other) & 0xFFFFFFFFul) << 0); + } + + public void SetAccountInstance( uint other ) + { + m_SteamID = (m_SteamID & ~(0xFFFFFul << 32)) | ((other & 0xFFFFFul) << 32); + } + + // This is a non standard/custom function not found in C++ Steamworks + public void SetEAccountType( EAccountType other ) + { + m_SteamID = (m_SteamID & ~(0xFul << 52)) | (((ulong)(other) & 0xFul) << 52); + } + + public void SetEUniverse( EUniverse other ) + { + m_SteamID = (m_SteamID & ~(0xFFul << 56)) | (((ulong)(other) & 0xFFul) << 56); + } + + public AccountID_t GetAccountID() + { + return new AccountID_t((uint)(m_SteamID & 0xFFFFFFFFul)); + } + + public uint GetUnAccountInstance() + { + return (uint)((m_SteamID >> 32) & 0xFFFFFul); + } + + public EAccountType GetEAccountType() + { + return (EAccountType)((m_SteamID >> 52) & 0xFul); + } + + public EUniverse GetEUniverse() + { + return (EUniverse)((m_SteamID >> 56) & 0xFFul); + } + + + public bool IsValid() + { + if (GetEAccountType() <= EAccountType.k_EAccountTypeInvalid || GetEAccountType() >= EAccountType.k_EAccountTypeMax) + return false; + + if (GetEUniverse() <= EUniverse.k_EUniverseInvalid || GetEUniverse() >= EUniverse.k_EUniverseMax) + return false; + + if (GetEAccountType() == EAccountType.k_EAccountTypeIndividual) + { + if (GetAccountID() == new AccountID_t(0) || GetUnAccountInstance() > Constants.k_unSteamUserDefaultInstance) + return false; + } + + if (GetEAccountType() == EAccountType.k_EAccountTypeClan) + { + if (GetAccountID() == new AccountID_t(0) || GetUnAccountInstance() != 0) + return false; + } + + if (GetEAccountType() == EAccountType.k_EAccountTypeGameServer) + { + if (GetAccountID() == new AccountID_t(0)) + return false; + // Any limit on instances? We use them for local users and bots + } + return true; + } + + public ulong GetSteamID64() + { + return m_SteamID; + } + + public string GetSteamID() + { + return SteamIdParser.ToSteamId(m_SteamID); + } + + public string GetSteamID3() + { + return SteamIdParser.ToSteamId3(m_SteamID); + } + + public uint GetSteamID32() + { + return GetAccountID().m_AccountID; + } + + public string GetSteamIDOnline() + { + return SteamIdParser.ToSteamIdOnline(m_SteamID); + } + + #region Overrides + public override string ToString() + { + return m_SteamID.ToString(); + } + + public override bool Equals( object other ) + { + return other is CSteamID && this == (CSteamID)other; + } + + public override int GetHashCode() + { + return m_SteamID.GetHashCode(); + } + + public static bool operator ==( CSteamID x, CSteamID y ) + { + return x.m_SteamID == y.m_SteamID; + } + + public static bool operator !=( CSteamID x, CSteamID y ) + { + return !(x == y); + } + + public static explicit operator CSteamID( ulong value ) + { + return new CSteamID(value); + } + public static explicit operator ulong( CSteamID that ) + { + return that.m_SteamID; + } + + public bool Equals( CSteamID other ) + { + return m_SteamID == other.m_SteamID; + } + + public int CompareTo( CSteamID other ) + { + return m_SteamID.CompareTo(other.m_SteamID); + } + #endregion } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClientPublic/HAuthTicket.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClientPublic/HAuthTicket.cs index 2becd14b5..51b7feee8 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClientPublic/HAuthTicket.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamClientPublic/HAuthTicket.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct HAuthTicket : System.IEquatable, System.IComparable { - public static readonly HAuthTicket Invalid = new HAuthTicket(0); - public uint m_HAuthTicket; - - public HAuthTicket(uint value) { - m_HAuthTicket = value; - } - - public override string ToString() { - return m_HAuthTicket.ToString(); - } - - public override bool Equals(object other) { - return other is HAuthTicket && this == (HAuthTicket)other; - } - - public override int GetHashCode() { - return m_HAuthTicket.GetHashCode(); - } - - public static bool operator ==(HAuthTicket x, HAuthTicket y) { - return x.m_HAuthTicket == y.m_HAuthTicket; - } - - public static bool operator !=(HAuthTicket x, HAuthTicket y) { - return !(x == y); - } - - public static explicit operator HAuthTicket(uint value) { - return new HAuthTicket(value); - } - - public static explicit operator uint(HAuthTicket that) { - return that.m_HAuthTicket; - } - - public bool Equals(HAuthTicket other) { - return m_HAuthTicket == other.m_HAuthTicket; - } - - public int CompareTo(HAuthTicket other) { - return m_HAuthTicket.CompareTo(other.m_HAuthTicket); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct HAuthTicket : IEquatable, IComparable +{ + public static readonly HAuthTicket Invalid = new(0); + public uint m_HAuthTicket; + + public HAuthTicket( uint value ) + { + m_HAuthTicket = value; + } + + public override string ToString() + { + return m_HAuthTicket.ToString(); + } + + public override bool Equals( object other ) + { + return other is HAuthTicket && this == (HAuthTicket)other; + } + + public override int GetHashCode() + { + return m_HAuthTicket.GetHashCode(); + } + + public static bool operator ==( HAuthTicket x, HAuthTicket y ) + { + return x.m_HAuthTicket == y.m_HAuthTicket; + } + + public static bool operator !=( HAuthTicket x, HAuthTicket y ) + { + return !(x == y); + } + + public static explicit operator HAuthTicket( uint value ) + { + return new HAuthTicket(value); + } + + public static explicit operator uint( HAuthTicket that ) + { + return that.m_HAuthTicket; + } + + public bool Equals( HAuthTicket other ) + { + return m_HAuthTicket == other.m_HAuthTicket; + } + + public int CompareTo( HAuthTicket other ) + { + return m_HAuthTicket.CompareTo(other.m_HAuthTicket); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamDatagramTickets/SteamDatagramHostedAddress.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamDatagramTickets/SteamDatagramHostedAddress.cs index 6fbd803bc..36ac9da8b 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamDatagramTickets/SteamDatagramHostedAddress.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamDatagramTickets/SteamDatagramHostedAddress.cs @@ -1,30 +1,28 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +/// Network-routable identifier for a service. This is an intentionally +/// opaque byte blob. The relays know how to use this to forward it on +/// to the intended destination, but otherwise clients really should not +/// need to know what's inside. (Indeed, we don't really want them to +/// know, as it could reveal information useful to an attacker.) +[Serializable] +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct SteamDatagramHostedAddress { - /// Network-routable identifier for a service. This is an intentionally - /// opaque byte blob. The relays know how to use this to forward it on - /// to the intended destination, but otherwise clients really should not - /// need to know what's inside. (Indeed, we don't really want them to - /// know, as it could reveal information useful to an attacker.) - [System.Serializable] - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct SteamDatagramHostedAddress - { - // Size of data blob. - public int m_cbSize; + // Size of data blob. + public int m_cbSize; - // Opaque - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)] - public byte[] m_data; + // Opaque + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)] + public byte[] m_data; - // Reset to empty state - public void Clear() - { - m_cbSize = 0; - m_data = new byte[128]; - } - } + // Reset to empty state + public void Clear() + { + m_cbSize = 0; + m_data = new byte[128]; + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamDatagramTickets/SteamDatagramRelayAuthTicket.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamDatagramTickets/SteamDatagramRelayAuthTicket.cs index 53f6f0ac8..ca46446b5 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamDatagramTickets/SteamDatagramRelayAuthTicket.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamDatagramTickets/SteamDatagramRelayAuthTicket.cs @@ -1,130 +1,128 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +/// Network-routable identifier for a service. This is an intentionally +/// opaque byte blob. The relays know how to use this to forward it on +/// to the intended destination, but otherwise clients really should not +/// need to know what's inside. (Indeed, we don't really want them to +/// know, as it could reveal information useful to an attacker.) +[Serializable] +[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] +public struct SteamDatagramRelayAuthTicket { - /// Network-routable identifier for a service. This is an intentionally - /// opaque byte blob. The relays know how to use this to forward it on - /// to the intended destination, but otherwise clients really should not - /// need to know what's inside. (Indeed, we don't really want them to - /// know, as it could reveal information useful to an attacker.) - [System.Serializable] - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct SteamDatagramRelayAuthTicket - { - /// Identity of the gameserver we want to talk to. This is required. - SteamNetworkingIdentity m_identityGameserver; - - /// Identity of the person who was authorized. This is required. - SteamNetworkingIdentity m_identityAuthorizedClient; - - /// SteamID is authorized to send from a particular public IP. If this - /// is 0, then the sender is not restricted to a particular IP. - /// - /// Recommend to leave this set to zero. - uint m_unPublicIP; - - /// Time when the ticket expires. Recommended: take the current - /// time and add 6 hours, or maybe a bit longer if your gameplay - /// sessions are longer. - /// - /// NOTE: relays may reject tickets with expiry times excessively - /// far in the future, so contact us if you wish to use an expiry - /// longer than, say, 24 hours. - RTime32 m_rtimeTicketExpiry; - - /// Routing information where the gameserver is listening for - /// relayed traffic. You should fill this in when generating - /// a ticket. - /// - /// When generating tickets on your backend: - /// - In production: The gameserver knows the proper routing - /// information, so you need to call - /// ISteamNetworkingSockets::GetHostedDedicatedServerAddress - /// and send the info to your backend. - /// - In development, you will need to provide public IP - /// of the server using SteamDatagramServiceNetID::SetDevAddress. - /// Relays need to be able to send UDP - /// packets to this server. Since it's very likely that - /// your server is behind a firewall/NAT, make sure that - /// the address is the one that the outside world can use. - /// The traffic from the relays will be "unsolicited", so - /// stateful firewalls won't work -- you will probably have - /// to set up an explicit port forward. - /// On the client: - /// - this field will always be blank. - SteamDatagramHostedAddress m_routing; - - /// App ID this is for. This is required, and should be the - /// App ID the client is running. (Even if your gameserver - /// uses a different App ID.) - uint m_nAppID; - - /// Restrict this ticket to be used for a particular virtual port? - /// Set to -1 to allow any virtual port. - /// - /// This is useful as a security measure, and also so the client will - /// use the right ticket (which might have extra fields that are useful - /// for proper analytics), if the client happens to have more than one - /// appropriate ticket. - /// - /// Note: if a client has more that one acceptable ticket, they will - /// always use the one expiring the latest. - int m_nRestrictToVirtualPort; - - // - // Extra fields. - // - // These are collected for backend analytics. For example, you might - // send a MatchID so that all of the records for a particular match can - // be located. Or send a game mode field so that you can compare - // the network characteristics of different game modes. - // - // (At the time of this writing we don't have a way to expose the data - // we collect to partners, but we hope to in the future so that you can - // get visibility into network conditions.) - // - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - struct ExtraField - { - enum EType - { - k_EType_String, - k_EType_Int, // For most small integral values. Uses google protobuf sint64, so it's small on the wire. WARNING: In some places this value may be transmitted in JSON, in which case precision may be lost in backend analytics. Don't use this for an "identifier", use it for a scalar quantity. - k_EType_Fixed64, // 64 arbitrary bits. This value is treated as an "identifier". In places where JSON format is used, it will be serialized as a string. No aggregation / analytics can be performed on this value. - }; - EType m_eType; - - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 28)] - byte[] m_szName; - - [StructLayout(LayoutKind.Explicit)] - struct OptionValue - { - [FieldOffset(0)] - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)] - byte[] m_szStringValue; - - [FieldOffset(0)] - long m_nIntValue; - - [FieldOffset(0)] - ulong m_nFixed64Value; - } - OptionValue m_val; - }; - - const int k_nMaxExtraFields = 16; - - int m_nExtraFields; - - [MarshalAs(UnmanagedType.ByValArray, SizeConst = k_nMaxExtraFields)] - ExtraField[] m_vecExtraFields; - - // Reset all fields - public void Clear() - { - } - } + /// Identity of the gameserver we want to talk to. This is required. + private SteamNetworkingIdentity m_identityGameserver; + + /// Identity of the person who was authorized. This is required. + private SteamNetworkingIdentity m_identityAuthorizedClient; + + /// SteamID is authorized to send from a particular public IP. If this + /// is 0, then the sender is not restricted to a particular IP. + /// + /// Recommend to leave this set to zero. + private readonly uint m_unPublicIP; + + /// Time when the ticket expires. Recommended: take the current + /// time and add 6 hours, or maybe a bit longer if your gameplay + /// sessions are longer. + /// + /// NOTE: relays may reject tickets with expiry times excessively + /// far in the future, so contact us if you wish to use an expiry + /// longer than, say, 24 hours. + private RTime32 m_rtimeTicketExpiry; + + /// Routing information where the gameserver is listening for + /// relayed traffic. You should fill this in when generating + /// a ticket. + /// + /// When generating tickets on your backend: + /// - In production: The gameserver knows the proper routing + /// information, so you need to call + /// ISteamNetworkingSockets::GetHostedDedicatedServerAddress + /// and send the info to your backend. + /// - In development, you will need to provide public IP + /// of the server using SteamDatagramServiceNetID::SetDevAddress. + /// Relays need to be able to send UDP + /// packets to this server. Since it's very likely that + /// your server is behind a firewall/NAT, make sure that + /// the address is the one that the outside world can use. + /// The traffic from the relays will be "unsolicited", so + /// stateful firewalls won't work -- you will probably have + /// to set up an explicit port forward. + /// On the client: + /// - this field will always be blank. + private SteamDatagramHostedAddress m_routing; + + /// App ID this is for. This is required, and should be the + /// App ID the client is running. (Even if your gameserver + /// uses a different App ID.) + private readonly uint m_nAppID; + + /// Restrict this ticket to be used for a particular virtual port? + /// Set to -1 to allow any virtual port. + /// + /// This is useful as a security measure, and also so the client will + /// use the right ticket (which might have extra fields that are useful + /// for proper analytics), if the client happens to have more than one + /// appropriate ticket. + /// + /// Note: if a client has more that one acceptable ticket, they will + /// always use the one expiring the latest. + private readonly int m_nRestrictToVirtualPort; + + // + // Extra fields. + // + // These are collected for backend analytics. For example, you might + // send a MatchID so that all of the records for a particular match can + // be located. Or send a game mode field so that you can compare + // the network characteristics of different game modes. + // + // (At the time of this writing we don't have a way to expose the data + // we collect to partners, but we hope to in the future so that you can + // get visibility into network conditions.) + // + [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] + private struct ExtraField + { + private enum EType + { + k_EType_String, + k_EType_Int, // For most small integral values. Uses google protobuf sint64, so it's small on the wire. WARNING: In some places this value may be transmitted in JSON, in which case precision may be lost in backend analytics. Don't use this for an "identifier", use it for a scalar quantity. + k_EType_Fixed64, // 64 arbitrary bits. This value is treated as an "identifier". In places where JSON format is used, it will be serialized as a string. No aggregation / analytics can be performed on this value. + }; + private readonly EType m_eType; + + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 28)] + private readonly byte[] m_szName; + + [StructLayout(LayoutKind.Explicit)] + private struct OptionValue + { + [FieldOffset(0)] + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)] + private readonly byte[] m_szStringValue; + + [FieldOffset(0)] + private readonly long m_nIntValue; + + [FieldOffset(0)] + private readonly ulong m_nFixed64Value; + } + private OptionValue m_val; + }; + + private const int k_nMaxExtraFields = 16; + + private readonly int m_nExtraFields; + + [MarshalAs(UnmanagedType.ByValArray, SizeConst = k_nMaxExtraFields)] + private readonly ExtraField[] m_vecExtraFields; + + // Reset all fields + public void Clear() + { + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamFriends/FriendsGroupID_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamFriends/FriendsGroupID_t.cs index 69ae36563..ee89096c0 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamFriends/FriendsGroupID_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamFriends/FriendsGroupID_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct FriendsGroupID_t : System.IEquatable, System.IComparable { - public static readonly FriendsGroupID_t Invalid = new FriendsGroupID_t(-1); - public short m_FriendsGroupID; - - public FriendsGroupID_t(short value) { - m_FriendsGroupID = value; - } - - public override string ToString() { - return m_FriendsGroupID.ToString(); - } - - public override bool Equals(object other) { - return other is FriendsGroupID_t && this == (FriendsGroupID_t)other; - } - - public override int GetHashCode() { - return m_FriendsGroupID.GetHashCode(); - } - - public static bool operator ==(FriendsGroupID_t x, FriendsGroupID_t y) { - return x.m_FriendsGroupID == y.m_FriendsGroupID; - } - - public static bool operator !=(FriendsGroupID_t x, FriendsGroupID_t y) { - return !(x == y); - } - - public static explicit operator FriendsGroupID_t(short value) { - return new FriendsGroupID_t(value); - } - - public static explicit operator short(FriendsGroupID_t that) { - return that.m_FriendsGroupID; - } - - public bool Equals(FriendsGroupID_t other) { - return m_FriendsGroupID == other.m_FriendsGroupID; - } - - public int CompareTo(FriendsGroupID_t other) { - return m_FriendsGroupID.CompareTo(other.m_FriendsGroupID); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct FriendsGroupID_t : IEquatable, IComparable +{ + public static readonly FriendsGroupID_t Invalid = new(-1); + public short m_FriendsGroupID; + + public FriendsGroupID_t( short value ) + { + m_FriendsGroupID = value; + } + + public override string ToString() + { + return m_FriendsGroupID.ToString(); + } + + public override bool Equals( object other ) + { + return other is FriendsGroupID_t && this == (FriendsGroupID_t)other; + } + + public override int GetHashCode() + { + return m_FriendsGroupID.GetHashCode(); + } + + public static bool operator ==( FriendsGroupID_t x, FriendsGroupID_t y ) + { + return x.m_FriendsGroupID == y.m_FriendsGroupID; + } + + public static bool operator !=( FriendsGroupID_t x, FriendsGroupID_t y ) + { + return !(x == y); + } + + public static explicit operator FriendsGroupID_t( short value ) + { + return new FriendsGroupID_t(value); + } + + public static explicit operator short( FriendsGroupID_t that ) + { + return that.m_FriendsGroupID; + } + + public bool Equals( FriendsGroupID_t other ) + { + return m_FriendsGroupID == other.m_FriendsGroupID; + } + + public int CompareTo( FriendsGroupID_t other ) + { + return m_FriendsGroupID.CompareTo(other.m_FriendsGroupID); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamHTMLSurface/HHTMLBrowser.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamHTMLSurface/HHTMLBrowser.cs index 47a52ab9e..ed769fde6 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamHTMLSurface/HHTMLBrowser.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamHTMLSurface/HHTMLBrowser.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct HHTMLBrowser : System.IEquatable, System.IComparable { - public static readonly HHTMLBrowser Invalid = new HHTMLBrowser(0); - public uint m_HHTMLBrowser; - - public HHTMLBrowser(uint value) { - m_HHTMLBrowser = value; - } - - public override string ToString() { - return m_HHTMLBrowser.ToString(); - } - - public override bool Equals(object other) { - return other is HHTMLBrowser && this == (HHTMLBrowser)other; - } - - public override int GetHashCode() { - return m_HHTMLBrowser.GetHashCode(); - } - - public static bool operator ==(HHTMLBrowser x, HHTMLBrowser y) { - return x.m_HHTMLBrowser == y.m_HHTMLBrowser; - } - - public static bool operator !=(HHTMLBrowser x, HHTMLBrowser y) { - return !(x == y); - } - - public static explicit operator HHTMLBrowser(uint value) { - return new HHTMLBrowser(value); - } - - public static explicit operator uint(HHTMLBrowser that) { - return that.m_HHTMLBrowser; - } - - public bool Equals(HHTMLBrowser other) { - return m_HHTMLBrowser == other.m_HHTMLBrowser; - } - - public int CompareTo(HHTMLBrowser other) { - return m_HHTMLBrowser.CompareTo(other.m_HHTMLBrowser); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct HHTMLBrowser : IEquatable, IComparable +{ + public static readonly HHTMLBrowser Invalid = new(0); + public uint m_HHTMLBrowser; + + public HHTMLBrowser( uint value ) + { + m_HHTMLBrowser = value; + } + + public override string ToString() + { + return m_HHTMLBrowser.ToString(); + } + + public override bool Equals( object other ) + { + return other is HHTMLBrowser && this == (HHTMLBrowser)other; + } + + public override int GetHashCode() + { + return m_HHTMLBrowser.GetHashCode(); + } + + public static bool operator ==( HHTMLBrowser x, HHTMLBrowser y ) + { + return x.m_HHTMLBrowser == y.m_HHTMLBrowser; + } + + public static bool operator !=( HHTMLBrowser x, HHTMLBrowser y ) + { + return !(x == y); + } + + public static explicit operator HHTMLBrowser( uint value ) + { + return new HHTMLBrowser(value); + } + + public static explicit operator uint( HHTMLBrowser that ) + { + return that.m_HHTMLBrowser; + } + + public bool Equals( HHTMLBrowser other ) + { + return m_HHTMLBrowser == other.m_HHTMLBrowser; + } + + public int CompareTo( HHTMLBrowser other ) + { + return m_HHTMLBrowser.CompareTo(other.m_HHTMLBrowser); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamHTTP/HTTPCookieContainerHandle.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamHTTP/HTTPCookieContainerHandle.cs index 191377295..537c1b961 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamHTTP/HTTPCookieContainerHandle.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamHTTP/HTTPCookieContainerHandle.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct HTTPCookieContainerHandle : System.IEquatable, System.IComparable { - public static readonly HTTPCookieContainerHandle Invalid = new HTTPCookieContainerHandle(0); - public uint m_HTTPCookieContainerHandle; - - public HTTPCookieContainerHandle(uint value) { - m_HTTPCookieContainerHandle = value; - } - - public override string ToString() { - return m_HTTPCookieContainerHandle.ToString(); - } - - public override bool Equals(object other) { - return other is HTTPCookieContainerHandle && this == (HTTPCookieContainerHandle)other; - } - - public override int GetHashCode() { - return m_HTTPCookieContainerHandle.GetHashCode(); - } - - public static bool operator ==(HTTPCookieContainerHandle x, HTTPCookieContainerHandle y) { - return x.m_HTTPCookieContainerHandle == y.m_HTTPCookieContainerHandle; - } - - public static bool operator !=(HTTPCookieContainerHandle x, HTTPCookieContainerHandle y) { - return !(x == y); - } - - public static explicit operator HTTPCookieContainerHandle(uint value) { - return new HTTPCookieContainerHandle(value); - } - - public static explicit operator uint(HTTPCookieContainerHandle that) { - return that.m_HTTPCookieContainerHandle; - } - - public bool Equals(HTTPCookieContainerHandle other) { - return m_HTTPCookieContainerHandle == other.m_HTTPCookieContainerHandle; - } - - public int CompareTo(HTTPCookieContainerHandle other) { - return m_HTTPCookieContainerHandle.CompareTo(other.m_HTTPCookieContainerHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct HTTPCookieContainerHandle : IEquatable, IComparable +{ + public static readonly HTTPCookieContainerHandle Invalid = new(0); + public uint m_HTTPCookieContainerHandle; + + public HTTPCookieContainerHandle( uint value ) + { + m_HTTPCookieContainerHandle = value; + } + + public override string ToString() + { + return m_HTTPCookieContainerHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is HTTPCookieContainerHandle && this == (HTTPCookieContainerHandle)other; + } + + public override int GetHashCode() + { + return m_HTTPCookieContainerHandle.GetHashCode(); + } + + public static bool operator ==( HTTPCookieContainerHandle x, HTTPCookieContainerHandle y ) + { + return x.m_HTTPCookieContainerHandle == y.m_HTTPCookieContainerHandle; + } + + public static bool operator !=( HTTPCookieContainerHandle x, HTTPCookieContainerHandle y ) + { + return !(x == y); + } + + public static explicit operator HTTPCookieContainerHandle( uint value ) + { + return new HTTPCookieContainerHandle(value); + } + + public static explicit operator uint( HTTPCookieContainerHandle that ) + { + return that.m_HTTPCookieContainerHandle; + } + + public bool Equals( HTTPCookieContainerHandle other ) + { + return m_HTTPCookieContainerHandle == other.m_HTTPCookieContainerHandle; + } + + public int CompareTo( HTTPCookieContainerHandle other ) + { + return m_HTTPCookieContainerHandle.CompareTo(other.m_HTTPCookieContainerHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamHTTP/HTTPRequestHandle.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamHTTP/HTTPRequestHandle.cs index efd228640..2f98b6ecd 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamHTTP/HTTPRequestHandle.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamHTTP/HTTPRequestHandle.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct HTTPRequestHandle : System.IEquatable, System.IComparable { - public static readonly HTTPRequestHandle Invalid = new HTTPRequestHandle(0); - public uint m_HTTPRequestHandle; - - public HTTPRequestHandle(uint value) { - m_HTTPRequestHandle = value; - } - - public override string ToString() { - return m_HTTPRequestHandle.ToString(); - } - - public override bool Equals(object other) { - return other is HTTPRequestHandle && this == (HTTPRequestHandle)other; - } - - public override int GetHashCode() { - return m_HTTPRequestHandle.GetHashCode(); - } - - public static bool operator ==(HTTPRequestHandle x, HTTPRequestHandle y) { - return x.m_HTTPRequestHandle == y.m_HTTPRequestHandle; - } - - public static bool operator !=(HTTPRequestHandle x, HTTPRequestHandle y) { - return !(x == y); - } - - public static explicit operator HTTPRequestHandle(uint value) { - return new HTTPRequestHandle(value); - } - - public static explicit operator uint(HTTPRequestHandle that) { - return that.m_HTTPRequestHandle; - } - - public bool Equals(HTTPRequestHandle other) { - return m_HTTPRequestHandle == other.m_HTTPRequestHandle; - } - - public int CompareTo(HTTPRequestHandle other) { - return m_HTTPRequestHandle.CompareTo(other.m_HTTPRequestHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct HTTPRequestHandle : IEquatable, IComparable +{ + public static readonly HTTPRequestHandle Invalid = new(0); + public uint m_HTTPRequestHandle; + + public HTTPRequestHandle( uint value ) + { + m_HTTPRequestHandle = value; + } + + public override string ToString() + { + return m_HTTPRequestHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is HTTPRequestHandle && this == (HTTPRequestHandle)other; + } + + public override int GetHashCode() + { + return m_HTTPRequestHandle.GetHashCode(); + } + + public static bool operator ==( HTTPRequestHandle x, HTTPRequestHandle y ) + { + return x.m_HTTPRequestHandle == y.m_HTTPRequestHandle; + } + + public static bool operator !=( HTTPRequestHandle x, HTTPRequestHandle y ) + { + return !(x == y); + } + + public static explicit operator HTTPRequestHandle( uint value ) + { + return new HTTPRequestHandle(value); + } + + public static explicit operator uint( HTTPRequestHandle that ) + { + return that.m_HTTPRequestHandle; + } + + public bool Equals( HTTPRequestHandle other ) + { + return m_HTTPRequestHandle == other.m_HTTPRequestHandle; + } + + public int CompareTo( HTTPRequestHandle other ) + { + return m_HTTPRequestHandle.CompareTo(other.m_HTTPRequestHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputActionSetHandle_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputActionSetHandle_t.cs index 4956e77a9..ab9892979 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputActionSetHandle_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputActionSetHandle_t.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct InputActionSetHandle_t : System.IEquatable, System.IComparable { - public ulong m_InputActionSetHandle; - - public InputActionSetHandle_t(ulong value) { - m_InputActionSetHandle = value; - } - - public override string ToString() { - return m_InputActionSetHandle.ToString(); - } - - public override bool Equals(object other) { - return other is InputActionSetHandle_t && this == (InputActionSetHandle_t)other; - } - - public override int GetHashCode() { - return m_InputActionSetHandle.GetHashCode(); - } - - public static bool operator ==(InputActionSetHandle_t x, InputActionSetHandle_t y) { - return x.m_InputActionSetHandle == y.m_InputActionSetHandle; - } - - public static bool operator !=(InputActionSetHandle_t x, InputActionSetHandle_t y) { - return !(x == y); - } - - public static explicit operator InputActionSetHandle_t(ulong value) { - return new InputActionSetHandle_t(value); - } - - public static explicit operator ulong(InputActionSetHandle_t that) { - return that.m_InputActionSetHandle; - } - - public bool Equals(InputActionSetHandle_t other) { - return m_InputActionSetHandle == other.m_InputActionSetHandle; - } - - public int CompareTo(InputActionSetHandle_t other) { - return m_InputActionSetHandle.CompareTo(other.m_InputActionSetHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct InputActionSetHandle_t : IEquatable, IComparable +{ + public ulong m_InputActionSetHandle; + + public InputActionSetHandle_t( ulong value ) + { + m_InputActionSetHandle = value; + } + + public override string ToString() + { + return m_InputActionSetHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is InputActionSetHandle_t && this == (InputActionSetHandle_t)other; + } + + public override int GetHashCode() + { + return m_InputActionSetHandle.GetHashCode(); + } + + public static bool operator ==( InputActionSetHandle_t x, InputActionSetHandle_t y ) + { + return x.m_InputActionSetHandle == y.m_InputActionSetHandle; + } + + public static bool operator !=( InputActionSetHandle_t x, InputActionSetHandle_t y ) + { + return !(x == y); + } + + public static explicit operator InputActionSetHandle_t( ulong value ) + { + return new InputActionSetHandle_t(value); + } + + public static explicit operator ulong( InputActionSetHandle_t that ) + { + return that.m_InputActionSetHandle; + } + + public bool Equals( InputActionSetHandle_t other ) + { + return m_InputActionSetHandle == other.m_InputActionSetHandle; + } + + public int CompareTo( InputActionSetHandle_t other ) + { + return m_InputActionSetHandle.CompareTo(other.m_InputActionSetHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputAnalogActionHandle_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputAnalogActionHandle_t.cs index b2341f3e7..093c2298d 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputAnalogActionHandle_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputAnalogActionHandle_t.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct InputAnalogActionHandle_t : System.IEquatable, System.IComparable { - public ulong m_InputAnalogActionHandle; - - public InputAnalogActionHandle_t(ulong value) { - m_InputAnalogActionHandle = value; - } - - public override string ToString() { - return m_InputAnalogActionHandle.ToString(); - } - - public override bool Equals(object other) { - return other is InputAnalogActionHandle_t && this == (InputAnalogActionHandle_t)other; - } - - public override int GetHashCode() { - return m_InputAnalogActionHandle.GetHashCode(); - } - - public static bool operator ==(InputAnalogActionHandle_t x, InputAnalogActionHandle_t y) { - return x.m_InputAnalogActionHandle == y.m_InputAnalogActionHandle; - } - - public static bool operator !=(InputAnalogActionHandle_t x, InputAnalogActionHandle_t y) { - return !(x == y); - } - - public static explicit operator InputAnalogActionHandle_t(ulong value) { - return new InputAnalogActionHandle_t(value); - } - - public static explicit operator ulong(InputAnalogActionHandle_t that) { - return that.m_InputAnalogActionHandle; - } - - public bool Equals(InputAnalogActionHandle_t other) { - return m_InputAnalogActionHandle == other.m_InputAnalogActionHandle; - } - - public int CompareTo(InputAnalogActionHandle_t other) { - return m_InputAnalogActionHandle.CompareTo(other.m_InputAnalogActionHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct InputAnalogActionHandle_t : IEquatable, IComparable +{ + public ulong m_InputAnalogActionHandle; + + public InputAnalogActionHandle_t( ulong value ) + { + m_InputAnalogActionHandle = value; + } + + public override string ToString() + { + return m_InputAnalogActionHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is InputAnalogActionHandle_t && this == (InputAnalogActionHandle_t)other; + } + + public override int GetHashCode() + { + return m_InputAnalogActionHandle.GetHashCode(); + } + + public static bool operator ==( InputAnalogActionHandle_t x, InputAnalogActionHandle_t y ) + { + return x.m_InputAnalogActionHandle == y.m_InputAnalogActionHandle; + } + + public static bool operator !=( InputAnalogActionHandle_t x, InputAnalogActionHandle_t y ) + { + return !(x == y); + } + + public static explicit operator InputAnalogActionHandle_t( ulong value ) + { + return new InputAnalogActionHandle_t(value); + } + + public static explicit operator ulong( InputAnalogActionHandle_t that ) + { + return that.m_InputAnalogActionHandle; + } + + public bool Equals( InputAnalogActionHandle_t other ) + { + return m_InputAnalogActionHandle == other.m_InputAnalogActionHandle; + } + + public int CompareTo( InputAnalogActionHandle_t other ) + { + return m_InputAnalogActionHandle.CompareTo(other.m_InputAnalogActionHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputDigitalActionHandle_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputDigitalActionHandle_t.cs index 32496af4a..0c1c407f2 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputDigitalActionHandle_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputDigitalActionHandle_t.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct InputDigitalActionHandle_t : System.IEquatable, System.IComparable { - public ulong m_InputDigitalActionHandle; - - public InputDigitalActionHandle_t(ulong value) { - m_InputDigitalActionHandle = value; - } - - public override string ToString() { - return m_InputDigitalActionHandle.ToString(); - } - - public override bool Equals(object other) { - return other is InputDigitalActionHandle_t && this == (InputDigitalActionHandle_t)other; - } - - public override int GetHashCode() { - return m_InputDigitalActionHandle.GetHashCode(); - } - - public static bool operator ==(InputDigitalActionHandle_t x, InputDigitalActionHandle_t y) { - return x.m_InputDigitalActionHandle == y.m_InputDigitalActionHandle; - } - - public static bool operator !=(InputDigitalActionHandle_t x, InputDigitalActionHandle_t y) { - return !(x == y); - } - - public static explicit operator InputDigitalActionHandle_t(ulong value) { - return new InputDigitalActionHandle_t(value); - } - - public static explicit operator ulong(InputDigitalActionHandle_t that) { - return that.m_InputDigitalActionHandle; - } - - public bool Equals(InputDigitalActionHandle_t other) { - return m_InputDigitalActionHandle == other.m_InputDigitalActionHandle; - } - - public int CompareTo(InputDigitalActionHandle_t other) { - return m_InputDigitalActionHandle.CompareTo(other.m_InputDigitalActionHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct InputDigitalActionHandle_t : IEquatable, IComparable +{ + public ulong m_InputDigitalActionHandle; + + public InputDigitalActionHandle_t( ulong value ) + { + m_InputDigitalActionHandle = value; + } + + public override string ToString() + { + return m_InputDigitalActionHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is InputDigitalActionHandle_t && this == (InputDigitalActionHandle_t)other; + } + + public override int GetHashCode() + { + return m_InputDigitalActionHandle.GetHashCode(); + } + + public static bool operator ==( InputDigitalActionHandle_t x, InputDigitalActionHandle_t y ) + { + return x.m_InputDigitalActionHandle == y.m_InputDigitalActionHandle; + } + + public static bool operator !=( InputDigitalActionHandle_t x, InputDigitalActionHandle_t y ) + { + return !(x == y); + } + + public static explicit operator InputDigitalActionHandle_t( ulong value ) + { + return new InputDigitalActionHandle_t(value); + } + + public static explicit operator ulong( InputDigitalActionHandle_t that ) + { + return that.m_InputDigitalActionHandle; + } + + public bool Equals( InputDigitalActionHandle_t other ) + { + return m_InputDigitalActionHandle == other.m_InputDigitalActionHandle; + } + + public int CompareTo( InputDigitalActionHandle_t other ) + { + return m_InputDigitalActionHandle.CompareTo(other.m_InputDigitalActionHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputHandle_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputHandle_t.cs index a5a7b56d6..14b58bb6a 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputHandle_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/InputHandle_t.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct InputHandle_t : System.IEquatable, System.IComparable { - public ulong m_InputHandle; - - public InputHandle_t(ulong value) { - m_InputHandle = value; - } - - public override string ToString() { - return m_InputHandle.ToString(); - } - - public override bool Equals(object other) { - return other is InputHandle_t && this == (InputHandle_t)other; - } - - public override int GetHashCode() { - return m_InputHandle.GetHashCode(); - } - - public static bool operator ==(InputHandle_t x, InputHandle_t y) { - return x.m_InputHandle == y.m_InputHandle; - } - - public static bool operator !=(InputHandle_t x, InputHandle_t y) { - return !(x == y); - } - - public static explicit operator InputHandle_t(ulong value) { - return new InputHandle_t(value); - } - - public static explicit operator ulong(InputHandle_t that) { - return that.m_InputHandle; - } - - public bool Equals(InputHandle_t other) { - return m_InputHandle == other.m_InputHandle; - } - - public int CompareTo(InputHandle_t other) { - return m_InputHandle.CompareTo(other.m_InputHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct InputHandle_t : IEquatable, IComparable +{ + public ulong m_InputHandle; + + public InputHandle_t( ulong value ) + { + m_InputHandle = value; + } + + public override string ToString() + { + return m_InputHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is InputHandle_t && this == (InputHandle_t)other; + } + + public override int GetHashCode() + { + return m_InputHandle.GetHashCode(); + } + + public static bool operator ==( InputHandle_t x, InputHandle_t y ) + { + return x.m_InputHandle == y.m_InputHandle; + } + + public static bool operator !=( InputHandle_t x, InputHandle_t y ) + { + return !(x == y); + } + + public static explicit operator InputHandle_t( ulong value ) + { + return new InputHandle_t(value); + } + + public static explicit operator ulong( InputHandle_t that ) + { + return that.m_InputHandle; + } + + public bool Equals( InputHandle_t other ) + { + return m_InputHandle == other.m_InputHandle; + } + + public int CompareTo( InputHandle_t other ) + { + return m_InputHandle.CompareTo(other.m_InputHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/SteamInputActionEventCallbackPointer.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/SteamInputActionEventCallbackPointer.cs index 4957fb695..c2e94c2f8 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/SteamInputActionEventCallbackPointer.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/SteamInputActionEventCallbackPointer.cs @@ -1,10 +1,9 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; +using IntPtr = nint; -namespace SwiftlyS2.Shared.SteamAPI -{ - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.Cdecl)] - public delegate void SteamInputActionEventCallbackPointer(IntPtr /* SteamInputActionEvent_t* */ SteamInputActionEvent); -} +namespace SwiftlyS2.Shared.SteamAPI; + +[UnmanagedFunctionPointer(CallingConvention.Cdecl)] +public delegate void SteamInputActionEventCallbackPointer( IntPtr /* SteamInputActionEvent_t* */ SteamInputActionEvent ); diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/SteamInputActionEvent_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/SteamInputActionEvent_t.cs index 8abe61d31..899b52f95 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/SteamInputActionEvent_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInput/SteamInputActionEvent_t.cs @@ -1,51 +1,49 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +//----------------------------------------------------------------------------- +// Purpose: when callbacks are enabled this fires each time a controller action +// state changes +//----------------------------------------------------------------------------- +[Serializable] +[StructLayout(LayoutKind.Sequential)] +public struct SteamInputActionEvent_t { - //----------------------------------------------------------------------------- - // Purpose: when callbacks are enabled this fires each time a controller action - // state changes - //----------------------------------------------------------------------------- - [System.Serializable] - [StructLayout(LayoutKind.Sequential)] - public struct SteamInputActionEvent_t - { - public InputHandle_t controllerHandle; - - public ESteamInputActionEventType eEventType; - - /// Option value - public OptionValue m_val; - - [System.Serializable] - [StructLayout(LayoutKind.Sequential)] - public struct AnalogAction_t - { - public InputAnalogActionHandle_t actionHandle; - - public InputAnalogActionData_t analogActionData; - } - - [System.Serializable] - [StructLayout(LayoutKind.Sequential)] - public struct DigitalAction_t - { - public InputDigitalActionHandle_t actionHandle; - - public InputDigitalActionData_t digitalActionData; - } - - [System.Serializable] - [StructLayout(LayoutKind.Explicit)] - public struct OptionValue - { - [FieldOffset(0)] - public AnalogAction_t analogAction; - - [FieldOffset(0)] - public DigitalAction_t digitalAction; - } - } + public InputHandle_t controllerHandle; + + public ESteamInputActionEventType eEventType; + + /// Option value + public OptionValue m_val; + + [Serializable] + [StructLayout(LayoutKind.Sequential)] + public struct AnalogAction_t + { + public InputAnalogActionHandle_t actionHandle; + + public InputAnalogActionData_t analogActionData; + } + + [Serializable] + [StructLayout(LayoutKind.Sequential)] + public struct DigitalAction_t + { + public InputDigitalActionHandle_t actionHandle; + + public InputDigitalActionData_t digitalActionData; + } + + [Serializable] + [StructLayout(LayoutKind.Explicit)] + public struct OptionValue + { + [FieldOffset(0)] + public AnalogAction_t analogAction; + + [FieldOffset(0)] + public DigitalAction_t digitalAction; + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamInventoryResult_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamInventoryResult_t.cs index 869532cb3..5188dfa69 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamInventoryResult_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamInventoryResult_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct SteamInventoryResult_t : System.IEquatable, System.IComparable { - public static readonly SteamInventoryResult_t Invalid = new SteamInventoryResult_t(-1); - public int m_SteamInventoryResult; - - public SteamInventoryResult_t(int value) { - m_SteamInventoryResult = value; - } - - public override string ToString() { - return m_SteamInventoryResult.ToString(); - } - - public override bool Equals(object other) { - return other is SteamInventoryResult_t && this == (SteamInventoryResult_t)other; - } - - public override int GetHashCode() { - return m_SteamInventoryResult.GetHashCode(); - } - - public static bool operator ==(SteamInventoryResult_t x, SteamInventoryResult_t y) { - return x.m_SteamInventoryResult == y.m_SteamInventoryResult; - } - - public static bool operator !=(SteamInventoryResult_t x, SteamInventoryResult_t y) { - return !(x == y); - } - - public static explicit operator SteamInventoryResult_t(int value) { - return new SteamInventoryResult_t(value); - } - - public static explicit operator int(SteamInventoryResult_t that) { - return that.m_SteamInventoryResult; - } - - public bool Equals(SteamInventoryResult_t other) { - return m_SteamInventoryResult == other.m_SteamInventoryResult; - } - - public int CompareTo(SteamInventoryResult_t other) { - return m_SteamInventoryResult.CompareTo(other.m_SteamInventoryResult); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct SteamInventoryResult_t : IEquatable, IComparable +{ + public static readonly SteamInventoryResult_t Invalid = new(-1); + public int m_SteamInventoryResult; + + public SteamInventoryResult_t( int value ) + { + m_SteamInventoryResult = value; + } + + public override string ToString() + { + return m_SteamInventoryResult.ToString(); + } + + public override bool Equals( object other ) + { + return other is SteamInventoryResult_t && this == (SteamInventoryResult_t)other; + } + + public override int GetHashCode() + { + return m_SteamInventoryResult.GetHashCode(); + } + + public static bool operator ==( SteamInventoryResult_t x, SteamInventoryResult_t y ) + { + return x.m_SteamInventoryResult == y.m_SteamInventoryResult; + } + + public static bool operator !=( SteamInventoryResult_t x, SteamInventoryResult_t y ) + { + return !(x == y); + } + + public static explicit operator SteamInventoryResult_t( int value ) + { + return new SteamInventoryResult_t(value); + } + + public static explicit operator int( SteamInventoryResult_t that ) + { + return that.m_SteamInventoryResult; + } + + public bool Equals( SteamInventoryResult_t other ) + { + return m_SteamInventoryResult == other.m_SteamInventoryResult; + } + + public int CompareTo( SteamInventoryResult_t other ) + { + return m_SteamInventoryResult.CompareTo(other.m_SteamInventoryResult); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamInventoryUpdateHandle_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamInventoryUpdateHandle_t.cs index c484b3b81..82c790fd4 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamInventoryUpdateHandle_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamInventoryUpdateHandle_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct SteamInventoryUpdateHandle_t : System.IEquatable, System.IComparable { - public static readonly SteamInventoryUpdateHandle_t Invalid = new SteamInventoryUpdateHandle_t(0xffffffffffffffff); - public ulong m_SteamInventoryUpdateHandle; - - public SteamInventoryUpdateHandle_t(ulong value) { - m_SteamInventoryUpdateHandle = value; - } - - public override string ToString() { - return m_SteamInventoryUpdateHandle.ToString(); - } - - public override bool Equals(object other) { - return other is SteamInventoryUpdateHandle_t && this == (SteamInventoryUpdateHandle_t)other; - } - - public override int GetHashCode() { - return m_SteamInventoryUpdateHandle.GetHashCode(); - } - - public static bool operator ==(SteamInventoryUpdateHandle_t x, SteamInventoryUpdateHandle_t y) { - return x.m_SteamInventoryUpdateHandle == y.m_SteamInventoryUpdateHandle; - } - - public static bool operator !=(SteamInventoryUpdateHandle_t x, SteamInventoryUpdateHandle_t y) { - return !(x == y); - } - - public static explicit operator SteamInventoryUpdateHandle_t(ulong value) { - return new SteamInventoryUpdateHandle_t(value); - } - - public static explicit operator ulong(SteamInventoryUpdateHandle_t that) { - return that.m_SteamInventoryUpdateHandle; - } - - public bool Equals(SteamInventoryUpdateHandle_t other) { - return m_SteamInventoryUpdateHandle == other.m_SteamInventoryUpdateHandle; - } - - public int CompareTo(SteamInventoryUpdateHandle_t other) { - return m_SteamInventoryUpdateHandle.CompareTo(other.m_SteamInventoryUpdateHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct SteamInventoryUpdateHandle_t : IEquatable, IComparable +{ + public static readonly SteamInventoryUpdateHandle_t Invalid = new(0xffffffffffffffff); + public ulong m_SteamInventoryUpdateHandle; + + public SteamInventoryUpdateHandle_t( ulong value ) + { + m_SteamInventoryUpdateHandle = value; + } + + public override string ToString() + { + return m_SteamInventoryUpdateHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is SteamInventoryUpdateHandle_t && this == (SteamInventoryUpdateHandle_t)other; + } + + public override int GetHashCode() + { + return m_SteamInventoryUpdateHandle.GetHashCode(); + } + + public static bool operator ==( SteamInventoryUpdateHandle_t x, SteamInventoryUpdateHandle_t y ) + { + return x.m_SteamInventoryUpdateHandle == y.m_SteamInventoryUpdateHandle; + } + + public static bool operator !=( SteamInventoryUpdateHandle_t x, SteamInventoryUpdateHandle_t y ) + { + return !(x == y); + } + + public static explicit operator SteamInventoryUpdateHandle_t( ulong value ) + { + return new SteamInventoryUpdateHandle_t(value); + } + + public static explicit operator ulong( SteamInventoryUpdateHandle_t that ) + { + return that.m_SteamInventoryUpdateHandle; + } + + public bool Equals( SteamInventoryUpdateHandle_t other ) + { + return m_SteamInventoryUpdateHandle == other.m_SteamInventoryUpdateHandle; + } + + public int CompareTo( SteamInventoryUpdateHandle_t other ) + { + return m_SteamInventoryUpdateHandle.CompareTo(other.m_SteamInventoryUpdateHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamItemDef_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamItemDef_t.cs index 236fdd53b..204e27118 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamItemDef_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamItemDef_t.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct SteamItemDef_t : System.IEquatable, System.IComparable { - public int m_SteamItemDef; - - public SteamItemDef_t(int value) { - m_SteamItemDef = value; - } - - public override string ToString() { - return m_SteamItemDef.ToString(); - } - - public override bool Equals(object other) { - return other is SteamItemDef_t && this == (SteamItemDef_t)other; - } - - public override int GetHashCode() { - return m_SteamItemDef.GetHashCode(); - } - - public static bool operator ==(SteamItemDef_t x, SteamItemDef_t y) { - return x.m_SteamItemDef == y.m_SteamItemDef; - } - - public static bool operator !=(SteamItemDef_t x, SteamItemDef_t y) { - return !(x == y); - } - - public static explicit operator SteamItemDef_t(int value) { - return new SteamItemDef_t(value); - } - - public static explicit operator int(SteamItemDef_t that) { - return that.m_SteamItemDef; - } - - public bool Equals(SteamItemDef_t other) { - return m_SteamItemDef == other.m_SteamItemDef; - } - - public int CompareTo(SteamItemDef_t other) { - return m_SteamItemDef.CompareTo(other.m_SteamItemDef); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct SteamItemDef_t : IEquatable, IComparable +{ + public int m_SteamItemDef; + + public SteamItemDef_t( int value ) + { + m_SteamItemDef = value; + } + + public override string ToString() + { + return m_SteamItemDef.ToString(); + } + + public override bool Equals( object other ) + { + return other is SteamItemDef_t && this == (SteamItemDef_t)other; + } + + public override int GetHashCode() + { + return m_SteamItemDef.GetHashCode(); + } + + public static bool operator ==( SteamItemDef_t x, SteamItemDef_t y ) + { + return x.m_SteamItemDef == y.m_SteamItemDef; + } + + public static bool operator !=( SteamItemDef_t x, SteamItemDef_t y ) + { + return !(x == y); + } + + public static explicit operator SteamItemDef_t( int value ) + { + return new SteamItemDef_t(value); + } + + public static explicit operator int( SteamItemDef_t that ) + { + return that.m_SteamItemDef; + } + + public bool Equals( SteamItemDef_t other ) + { + return m_SteamItemDef == other.m_SteamItemDef; + } + + public int CompareTo( SteamItemDef_t other ) + { + return m_SteamItemDef.CompareTo(other.m_SteamItemDef); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamItemInstanceID_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamItemInstanceID_t.cs index 7556a9e71..ac0ce35b8 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamItemInstanceID_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamInventory/SteamItemInstanceID_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct SteamItemInstanceID_t : System.IEquatable, System.IComparable { - public static readonly SteamItemInstanceID_t Invalid = new SteamItemInstanceID_t(0xFFFFFFFFFFFFFFFF); - public ulong m_SteamItemInstanceID; - - public SteamItemInstanceID_t(ulong value) { - m_SteamItemInstanceID = value; - } - - public override string ToString() { - return m_SteamItemInstanceID.ToString(); - } - - public override bool Equals(object other) { - return other is SteamItemInstanceID_t && this == (SteamItemInstanceID_t)other; - } - - public override int GetHashCode() { - return m_SteamItemInstanceID.GetHashCode(); - } - - public static bool operator ==(SteamItemInstanceID_t x, SteamItemInstanceID_t y) { - return x.m_SteamItemInstanceID == y.m_SteamItemInstanceID; - } - - public static bool operator !=(SteamItemInstanceID_t x, SteamItemInstanceID_t y) { - return !(x == y); - } - - public static explicit operator SteamItemInstanceID_t(ulong value) { - return new SteamItemInstanceID_t(value); - } - - public static explicit operator ulong(SteamItemInstanceID_t that) { - return that.m_SteamItemInstanceID; - } - - public bool Equals(SteamItemInstanceID_t other) { - return m_SteamItemInstanceID == other.m_SteamItemInstanceID; - } - - public int CompareTo(SteamItemInstanceID_t other) { - return m_SteamItemInstanceID.CompareTo(other.m_SteamItemInstanceID); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct SteamItemInstanceID_t : IEquatable, IComparable +{ + public static readonly SteamItemInstanceID_t Invalid = new(0xFFFFFFFFFFFFFFFF); + public ulong m_SteamItemInstanceID; + + public SteamItemInstanceID_t( ulong value ) + { + m_SteamItemInstanceID = value; + } + + public override string ToString() + { + return m_SteamItemInstanceID.ToString(); + } + + public override bool Equals( object other ) + { + return other is SteamItemInstanceID_t && this == (SteamItemInstanceID_t)other; + } + + public override int GetHashCode() + { + return m_SteamItemInstanceID.GetHashCode(); + } + + public static bool operator ==( SteamItemInstanceID_t x, SteamItemInstanceID_t y ) + { + return x.m_SteamItemInstanceID == y.m_SteamItemInstanceID; + } + + public static bool operator !=( SteamItemInstanceID_t x, SteamItemInstanceID_t y ) + { + return !(x == y); + } + + public static explicit operator SteamItemInstanceID_t( ulong value ) + { + return new SteamItemInstanceID_t(value); + } + + public static explicit operator ulong( SteamItemInstanceID_t that ) + { + return that.m_SteamItemInstanceID; + } + + public bool Equals( SteamItemInstanceID_t other ) + { + return m_SteamItemInstanceID == other.m_SteamItemInstanceID; + } + + public int CompareTo( SteamItemInstanceID_t other ) + { + return m_SteamItemInstanceID.CompareTo(other.m_SteamItemInstanceID); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamMatchmaking/HServerListRequest.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamMatchmaking/HServerListRequest.cs index aa15cabd1..d7ec8ac21 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamMatchmaking/HServerListRequest.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamMatchmaking/HServerListRequest.cs @@ -1,48 +1,57 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct HServerListRequest : System.IEquatable { - public static readonly HServerListRequest Invalid = new HServerListRequest(System.IntPtr.Zero); - public System.IntPtr m_HServerListRequest; - - public HServerListRequest(System.IntPtr value) { - m_HServerListRequest = value; - } - - public override string ToString() { - return m_HServerListRequest.ToString(); - } - - public override bool Equals(object other) { - return other is HServerListRequest && this == (HServerListRequest)other; - } - - public override int GetHashCode() { - return m_HServerListRequest.GetHashCode(); - } - - public static bool operator ==(HServerListRequest x, HServerListRequest y) { - return x.m_HServerListRequest == y.m_HServerListRequest; - } - - public static bool operator !=(HServerListRequest x, HServerListRequest y) { - return !(x == y); - } - - public static explicit operator HServerListRequest(System.IntPtr value) { - return new HServerListRequest(value); - } - - public static explicit operator System.IntPtr(HServerListRequest that) { - return that.m_HServerListRequest; - } - - public bool Equals(HServerListRequest other) { - return m_HServerListRequest == other.m_HServerListRequest; - } - } +using IntPtr = nint; + +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct HServerListRequest : IEquatable +{ + public static readonly HServerListRequest Invalid = new(IntPtr.Zero); + public nint m_HServerListRequest; + + public HServerListRequest( nint value ) + { + m_HServerListRequest = value; + } + + public override string ToString() + { + return m_HServerListRequest.ToString(); + } + + public override bool Equals( object other ) + { + return other is HServerListRequest && this == (HServerListRequest)other; + } + + public override int GetHashCode() + { + return m_HServerListRequest.GetHashCode(); + } + + public static bool operator ==( HServerListRequest x, HServerListRequest y ) + { + return x.m_HServerListRequest == y.m_HServerListRequest; + } + + public static bool operator !=( HServerListRequest x, HServerListRequest y ) + { + return !(x == y); + } + + public static explicit operator HServerListRequest( nint value ) + { + return new HServerListRequest(value); + } + + public static explicit operator nint( HServerListRequest that ) + { + return that.m_HServerListRequest; + } + + public bool Equals( HServerListRequest other ) + { + return m_HServerListRequest == other.m_HServerListRequest; + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamMatchmaking/HServerQuery.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamMatchmaking/HServerQuery.cs index 92997d798..8a6921ec2 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamMatchmaking/HServerQuery.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamMatchmaking/HServerQuery.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct HServerQuery : System.IEquatable, System.IComparable { - public static readonly HServerQuery Invalid = new HServerQuery(-1); - public int m_HServerQuery; - - public HServerQuery(int value) { - m_HServerQuery = value; - } - - public override string ToString() { - return m_HServerQuery.ToString(); - } - - public override bool Equals(object other) { - return other is HServerQuery && this == (HServerQuery)other; - } - - public override int GetHashCode() { - return m_HServerQuery.GetHashCode(); - } - - public static bool operator ==(HServerQuery x, HServerQuery y) { - return x.m_HServerQuery == y.m_HServerQuery; - } - - public static bool operator !=(HServerQuery x, HServerQuery y) { - return !(x == y); - } - - public static explicit operator HServerQuery(int value) { - return new HServerQuery(value); - } - - public static explicit operator int(HServerQuery that) { - return that.m_HServerQuery; - } - - public bool Equals(HServerQuery other) { - return m_HServerQuery == other.m_HServerQuery; - } - - public int CompareTo(HServerQuery other) { - return m_HServerQuery.CompareTo(other.m_HServerQuery); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct HServerQuery : IEquatable, IComparable +{ + public static readonly HServerQuery Invalid = new(-1); + public int m_HServerQuery; + + public HServerQuery( int value ) + { + m_HServerQuery = value; + } + + public override string ToString() + { + return m_HServerQuery.ToString(); + } + + public override bool Equals( object other ) + { + return other is HServerQuery && this == (HServerQuery)other; + } + + public override int GetHashCode() + { + return m_HServerQuery.GetHashCode(); + } + + public static bool operator ==( HServerQuery x, HServerQuery y ) + { + return x.m_HServerQuery == y.m_HServerQuery; + } + + public static bool operator !=( HServerQuery x, HServerQuery y ) + { + return !(x == y); + } + + public static explicit operator HServerQuery( int value ) + { + return new HServerQuery(value); + } + + public static explicit operator int( HServerQuery that ) + { + return that.m_HServerQuery; + } + + public bool Equals( HServerQuery other ) + { + return m_HServerQuery == other.m_HServerQuery; + } + + public int CompareTo( HServerQuery other ) + { + return m_HServerQuery.CompareTo(other.m_HServerQuery); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworking/SNetListenSocket_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworking/SNetListenSocket_t.cs index 8ab731a2f..ac7195c20 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworking/SNetListenSocket_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworking/SNetListenSocket_t.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct SNetListenSocket_t : System.IEquatable, System.IComparable { - public uint m_SNetListenSocket; - - public SNetListenSocket_t(uint value) { - m_SNetListenSocket = value; - } - - public override string ToString() { - return m_SNetListenSocket.ToString(); - } - - public override bool Equals(object other) { - return other is SNetListenSocket_t && this == (SNetListenSocket_t)other; - } - - public override int GetHashCode() { - return m_SNetListenSocket.GetHashCode(); - } - - public static bool operator ==(SNetListenSocket_t x, SNetListenSocket_t y) { - return x.m_SNetListenSocket == y.m_SNetListenSocket; - } - - public static bool operator !=(SNetListenSocket_t x, SNetListenSocket_t y) { - return !(x == y); - } - - public static explicit operator SNetListenSocket_t(uint value) { - return new SNetListenSocket_t(value); - } - - public static explicit operator uint(SNetListenSocket_t that) { - return that.m_SNetListenSocket; - } - - public bool Equals(SNetListenSocket_t other) { - return m_SNetListenSocket == other.m_SNetListenSocket; - } - - public int CompareTo(SNetListenSocket_t other) { - return m_SNetListenSocket.CompareTo(other.m_SNetListenSocket); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct SNetListenSocket_t : IEquatable, IComparable +{ + public uint m_SNetListenSocket; + + public SNetListenSocket_t( uint value ) + { + m_SNetListenSocket = value; + } + + public override string ToString() + { + return m_SNetListenSocket.ToString(); + } + + public override bool Equals( object other ) + { + return other is SNetListenSocket_t && this == (SNetListenSocket_t)other; + } + + public override int GetHashCode() + { + return m_SNetListenSocket.GetHashCode(); + } + + public static bool operator ==( SNetListenSocket_t x, SNetListenSocket_t y ) + { + return x.m_SNetListenSocket == y.m_SNetListenSocket; + } + + public static bool operator !=( SNetListenSocket_t x, SNetListenSocket_t y ) + { + return !(x == y); + } + + public static explicit operator SNetListenSocket_t( uint value ) + { + return new SNetListenSocket_t(value); + } + + public static explicit operator uint( SNetListenSocket_t that ) + { + return that.m_SNetListenSocket; + } + + public bool Equals( SNetListenSocket_t other ) + { + return m_SNetListenSocket == other.m_SNetListenSocket; + } + + public int CompareTo( SNetListenSocket_t other ) + { + return m_SNetListenSocket.CompareTo(other.m_SNetListenSocket); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworking/SNetSocket_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworking/SNetSocket_t.cs index 46e787d6a..d2da04339 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworking/SNetSocket_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworking/SNetSocket_t.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct SNetSocket_t : System.IEquatable, System.IComparable { - public uint m_SNetSocket; - - public SNetSocket_t(uint value) { - m_SNetSocket = value; - } - - public override string ToString() { - return m_SNetSocket.ToString(); - } - - public override bool Equals(object other) { - return other is SNetSocket_t && this == (SNetSocket_t)other; - } - - public override int GetHashCode() { - return m_SNetSocket.GetHashCode(); - } - - public static bool operator ==(SNetSocket_t x, SNetSocket_t y) { - return x.m_SNetSocket == y.m_SNetSocket; - } - - public static bool operator !=(SNetSocket_t x, SNetSocket_t y) { - return !(x == y); - } - - public static explicit operator SNetSocket_t(uint value) { - return new SNetSocket_t(value); - } - - public static explicit operator uint(SNetSocket_t that) { - return that.m_SNetSocket; - } - - public bool Equals(SNetSocket_t other) { - return m_SNetSocket == other.m_SNetSocket; - } - - public int CompareTo(SNetSocket_t other) { - return m_SNetSocket.CompareTo(other.m_SNetSocket); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct SNetSocket_t : IEquatable, IComparable +{ + public uint m_SNetSocket; + + public SNetSocket_t( uint value ) + { + m_SNetSocket = value; + } + + public override string ToString() + { + return m_SNetSocket.ToString(); + } + + public override bool Equals( object other ) + { + return other is SNetSocket_t && this == (SNetSocket_t)other; + } + + public override int GetHashCode() + { + return m_SNetSocket.GetHashCode(); + } + + public static bool operator ==( SNetSocket_t x, SNetSocket_t y ) + { + return x.m_SNetSocket == y.m_SNetSocket; + } + + public static bool operator !=( SNetSocket_t x, SNetSocket_t y ) + { + return !(x == y); + } + + public static explicit operator SNetSocket_t( uint value ) + { + return new SNetSocket_t(value); + } + + public static explicit operator uint( SNetSocket_t that ) + { + return that.m_SNetSocket; + } + + public bool Equals( SNetSocket_t other ) + { + return m_SNetSocket == other.m_SNetSocket; + } + + public int CompareTo( SNetSocket_t other ) + { + return m_SNetSocket.CompareTo(other.m_SNetSocket); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingSockets/ISteamNetworkingConnectionSignaling.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingSockets/ISteamNetworkingConnectionSignaling.cs index 800a8d0df..1473a2d27 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingSockets/ISteamNetworkingConnectionSignaling.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingSockets/ISteamNetworkingConnectionSignaling.cs @@ -1,53 +1,52 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; +using IntPtr = nint; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +/// Interface used to send signaling messages for a particular connection. +/// +/// - For connections initiated locally, you will construct it and pass +/// it to ISteamNetworkingSockets::ConnectP2PCustomSignaling. +/// - For connections initiated remotely and "accepted" locally, you +/// will return it from ISteamNetworkingSignalingRecvContext::OnConnectRequest +[Serializable] +[StructLayout(LayoutKind.Sequential)] +public struct ISteamNetworkingConnectionSignaling { - /// Interface used to send signaling messages for a particular connection. - /// - /// - For connections initiated locally, you will construct it and pass - /// it to ISteamNetworkingSockets::ConnectP2PCustomSignaling. - /// - For connections initiated remotely and "accepted" locally, you - /// will return it from ISteamNetworkingSignalingRecvContext::OnConnectRequest - [System.Serializable] - [StructLayout(LayoutKind.Sequential)] - public struct ISteamNetworkingConnectionSignaling - { - /// Called to send a rendezvous message to the remote peer. This may be called - /// from any thread, at any time, so you need to be thread-safe! Don't take - /// any locks that might hold while calling into SteamNetworkingSockets functions, - /// because this could lead to deadlocks. - /// - /// Note that when initiating a connection, we may not know the identity - /// of the peer, if you did not specify it in ConnectP2PCustomSignaling. - /// - /// Return true if a best-effort attempt was made to deliver the message. - /// If you return false, it is assumed that the situation is fatal; - /// the connection will be closed, and Release() will be called - /// eventually. - /// - /// Signaling objects will not be shared between connections. - /// You can assume that the same value of hConn will be used - /// every time. - public bool SendSignal(HSteamNetConnection hConn, ref SteamNetConnectionInfo_t info, IntPtr pMsg, int cbMsg) - { - return NativeMethods.SteamAPI_ISteamNetworkingConnectionSignaling_SendSignal(ref this, hConn, ref info, pMsg, cbMsg); - } + /// Called to send a rendezvous message to the remote peer. This may be called + /// from any thread, at any time, so you need to be thread-safe! Don't take + /// any locks that might hold while calling into SteamNetworkingSockets functions, + /// because this could lead to deadlocks. + /// + /// Note that when initiating a connection, we may not know the identity + /// of the peer, if you did not specify it in ConnectP2PCustomSignaling. + /// + /// Return true if a best-effort attempt was made to deliver the message. + /// If you return false, it is assumed that the situation is fatal; + /// the connection will be closed, and Release() will be called + /// eventually. + /// + /// Signaling objects will not be shared between connections. + /// You can assume that the same value of hConn will be used + /// every time. + public bool SendSignal( HSteamNetConnection hConn, ref SteamNetConnectionInfo_t info, IntPtr pMsg, int cbMsg ) + { + return NativeMethods.SteamAPI_ISteamNetworkingConnectionSignaling_SendSignal(ref this, hConn, ref info, pMsg, cbMsg); + } - /// Called when the connection no longer needs to send signals. - /// Note that this happens eventually (but not immediately) after - /// the connection is closed. Signals may need to be sent for a brief - /// time after the connection is closed, to clean up the connection. - /// - /// If you do not need to save any additional per-connection information - /// and can handle SendSignal() using only the arguments supplied, you do - /// not need to actually create different objects per connection. In that - /// case, it is valid for all connections to use the same global object, and - /// for this function to do nothing. - public void Release() - { - NativeMethods.SteamAPI_ISteamNetworkingConnectionSignaling_Release(ref this); - } - } + /// Called when the connection no longer needs to send signals. + /// Note that this happens eventually (but not immediately) after + /// the connection is closed. Signals may need to be sent for a brief + /// time after the connection is closed, to clean up the connection. + /// + /// If you do not need to save any additional per-connection information + /// and can handle SendSignal() using only the arguments supplied, you do + /// not need to actually create different objects per connection. In that + /// case, it is valid for all connections to use the same global object, and + /// for this function to do nothing. + public void Release() + { + NativeMethods.SteamAPI_ISteamNetworkingConnectionSignaling_Release(ref this); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingSockets/ISteamNetworkingSignalingRecvContext.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingSockets/ISteamNetworkingSignalingRecvContext.cs index 8904ba8a8..d853d0d95 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingSockets/ISteamNetworkingSignalingRecvContext.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingSockets/ISteamNetworkingSignalingRecvContext.cs @@ -1,53 +1,52 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; +using IntPtr = nint; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +/// Interface used when a custom signal is received. +/// See ISteamNetworkingSockets::ReceivedP2PCustomSignal +[Serializable] +[StructLayout(LayoutKind.Sequential)] +public struct ISteamNetworkingSignalingRecvContext { - /// Interface used when a custom signal is received. - /// See ISteamNetworkingSockets::ReceivedP2PCustomSignal - [System.Serializable] - [StructLayout(LayoutKind.Sequential)] - public struct ISteamNetworkingSignalingRecvContext - { - /// Called when the signal represents a request for a new connection. - /// - /// If you want to ignore the request, just return NULL. In this case, - /// the peer will NOT receive any reply. You should consider ignoring - /// requests rather than actively rejecting them, as a security measure. - /// If you actively reject requests, then this makes it possible to detect - /// if a user is online or not, just by sending them a request. - /// - /// If you wish to send back a rejection, then use - /// ISteamNetworkingSockets::CloseConnection() and then return NULL. - /// We will marshal a properly formatted rejection signal and - /// call SendRejectionSignal() so you can send it to them. - /// - /// If you return a signaling object, the connection is NOT immediately - /// accepted by default. Instead, it stays in the "connecting" state, - /// and the usual callback is posted, and your app can accept the - /// connection using ISteamNetworkingSockets::AcceptConnection. This - /// may be useful so that these sorts of connections can be more similar - /// to your application code as other types of connections accepted on - /// a listen socket. If this is not useful and you want to skip this - /// callback process and immediately accept the connection, call - /// ISteamNetworkingSockets::AcceptConnection before returning the - /// signaling object. - /// - /// After accepting a connection (through either means), the connection - /// will transition into the "finding route" state. - public IntPtr OnConnectRequest(HSteamNetConnection hConn, ref SteamNetworkingIdentity identityPeer, int nLocalVirtualPort) - { - return NativeMethods.SteamAPI_ISteamNetworkingSignalingRecvContext_OnConnectRequest(ref this, hConn, ref identityPeer, nLocalVirtualPort); - } + /// Called when the signal represents a request for a new connection. + /// + /// If you want to ignore the request, just return NULL. In this case, + /// the peer will NOT receive any reply. You should consider ignoring + /// requests rather than actively rejecting them, as a security measure. + /// If you actively reject requests, then this makes it possible to detect + /// if a user is online or not, just by sending them a request. + /// + /// If you wish to send back a rejection, then use + /// ISteamNetworkingSockets::CloseConnection() and then return NULL. + /// We will marshal a properly formatted rejection signal and + /// call SendRejectionSignal() so you can send it to them. + /// + /// If you return a signaling object, the connection is NOT immediately + /// accepted by default. Instead, it stays in the "connecting" state, + /// and the usual callback is posted, and your app can accept the + /// connection using ISteamNetworkingSockets::AcceptConnection. This + /// may be useful so that these sorts of connections can be more similar + /// to your application code as other types of connections accepted on + /// a listen socket. If this is not useful and you want to skip this + /// callback process and immediately accept the connection, call + /// ISteamNetworkingSockets::AcceptConnection before returning the + /// signaling object. + /// + /// After accepting a connection (through either means), the connection + /// will transition into the "finding route" state. + public IntPtr OnConnectRequest( HSteamNetConnection hConn, ref SteamNetworkingIdentity identityPeer, int nLocalVirtualPort ) + { + return NativeMethods.SteamAPI_ISteamNetworkingSignalingRecvContext_OnConnectRequest(ref this, hConn, ref identityPeer, nLocalVirtualPort); + } - /// This is called to actively communicate rejection or failure - /// to the incoming message. If you intend to ignore all incoming requests - /// that you do not wish to accept, then it's not strictly necessary to - /// implement this. - public void SendRejectionSignal(ref SteamNetworkingIdentity identityPeer, IntPtr pMsg, int cbMsg) - { - NativeMethods.SteamAPI_ISteamNetworkingSignalingRecvContext_SendRejectionSignal(ref this, ref identityPeer, pMsg, cbMsg); - } - } + /// This is called to actively communicate rejection or failure + /// to the incoming message. If you intend to ignore all incoming requests + /// that you do not wish to accept, then it's not strictly necessary to + /// implement this. + public void SendRejectionSignal( ref SteamNetworkingIdentity identityPeer, IntPtr pMsg, int cbMsg ) + { + NativeMethods.SteamAPI_ISteamNetworkingSignalingRecvContext_SendRejectionSignal(ref this, ref identityPeer, pMsg, cbMsg); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/FSteamNetworkingSocketsDebugOutput.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/FSteamNetworkingSocketsDebugOutput.cs index 2241fd1ed..21b655b42 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/FSteamNetworkingSocketsDebugOutput.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/FSteamNetworkingSocketsDebugOutput.cs @@ -1,11 +1,9 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI -{ - /// Setup callback for debug output, and the desired verbosity you want. - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.Cdecl)] - public delegate void FSteamNetworkingSocketsDebugOutput(ESteamNetworkingSocketsDebugOutputType nType, System.Text.StringBuilder pszMsg); -} + +namespace SwiftlyS2.Shared.SteamAPI; + +/// Setup callback for debug output, and the desired verbosity you want. +[UnmanagedFunctionPointer(CallingConvention.Cdecl)] +public delegate void FSteamNetworkingSocketsDebugOutput( ESteamNetworkingSocketsDebugOutputType nType, System.Text.StringBuilder pszMsg ); diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/HSteamListenSocket.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/HSteamListenSocket.cs index c0fde1e79..f1052b45d 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/HSteamListenSocket.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/HSteamListenSocket.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct HSteamListenSocket : System.IEquatable, System.IComparable { - public static readonly HSteamListenSocket Invalid = new HSteamListenSocket(0); - public uint m_HSteamListenSocket; - - public HSteamListenSocket(uint value) { - m_HSteamListenSocket = value; - } - - public override string ToString() { - return m_HSteamListenSocket.ToString(); - } - - public override bool Equals(object other) { - return other is HSteamListenSocket && this == (HSteamListenSocket)other; - } - - public override int GetHashCode() { - return m_HSteamListenSocket.GetHashCode(); - } - - public static bool operator ==(HSteamListenSocket x, HSteamListenSocket y) { - return x.m_HSteamListenSocket == y.m_HSteamListenSocket; - } - - public static bool operator !=(HSteamListenSocket x, HSteamListenSocket y) { - return !(x == y); - } - - public static explicit operator HSteamListenSocket(uint value) { - return new HSteamListenSocket(value); - } - - public static explicit operator uint(HSteamListenSocket that) { - return that.m_HSteamListenSocket; - } - - public bool Equals(HSteamListenSocket other) { - return m_HSteamListenSocket == other.m_HSteamListenSocket; - } - - public int CompareTo(HSteamListenSocket other) { - return m_HSteamListenSocket.CompareTo(other.m_HSteamListenSocket); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct HSteamListenSocket : IEquatable, IComparable +{ + public static readonly HSteamListenSocket Invalid = new(0); + public uint m_HSteamListenSocket; + + public HSteamListenSocket( uint value ) + { + m_HSteamListenSocket = value; + } + + public override string ToString() + { + return m_HSteamListenSocket.ToString(); + } + + public override bool Equals( object other ) + { + return other is HSteamListenSocket && this == (HSteamListenSocket)other; + } + + public override int GetHashCode() + { + return m_HSteamListenSocket.GetHashCode(); + } + + public static bool operator ==( HSteamListenSocket x, HSteamListenSocket y ) + { + return x.m_HSteamListenSocket == y.m_HSteamListenSocket; + } + + public static bool operator !=( HSteamListenSocket x, HSteamListenSocket y ) + { + return !(x == y); + } + + public static explicit operator HSteamListenSocket( uint value ) + { + return new HSteamListenSocket(value); + } + + public static explicit operator uint( HSteamListenSocket that ) + { + return that.m_HSteamListenSocket; + } + + public bool Equals( HSteamListenSocket other ) + { + return m_HSteamListenSocket == other.m_HSteamListenSocket; + } + + public int CompareTo( HSteamListenSocket other ) + { + return m_HSteamListenSocket.CompareTo(other.m_HSteamListenSocket); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/HSteamNetConnection.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/HSteamNetConnection.cs index d08617fff..defcc9e23 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/HSteamNetConnection.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/HSteamNetConnection.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct HSteamNetConnection : System.IEquatable, System.IComparable { - public static readonly HSteamNetConnection Invalid = new HSteamNetConnection(0); - public uint m_HSteamNetConnection; - - public HSteamNetConnection(uint value) { - m_HSteamNetConnection = value; - } - - public override string ToString() { - return m_HSteamNetConnection.ToString(); - } - - public override bool Equals(object other) { - return other is HSteamNetConnection && this == (HSteamNetConnection)other; - } - - public override int GetHashCode() { - return m_HSteamNetConnection.GetHashCode(); - } - - public static bool operator ==(HSteamNetConnection x, HSteamNetConnection y) { - return x.m_HSteamNetConnection == y.m_HSteamNetConnection; - } - - public static bool operator !=(HSteamNetConnection x, HSteamNetConnection y) { - return !(x == y); - } - - public static explicit operator HSteamNetConnection(uint value) { - return new HSteamNetConnection(value); - } - - public static explicit operator uint(HSteamNetConnection that) { - return that.m_HSteamNetConnection; - } - - public bool Equals(HSteamNetConnection other) { - return m_HSteamNetConnection == other.m_HSteamNetConnection; - } - - public int CompareTo(HSteamNetConnection other) { - return m_HSteamNetConnection.CompareTo(other.m_HSteamNetConnection); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct HSteamNetConnection : IEquatable, IComparable +{ + public static readonly HSteamNetConnection Invalid = new(0); + public uint m_HSteamNetConnection; + + public HSteamNetConnection( uint value ) + { + m_HSteamNetConnection = value; + } + + public override string ToString() + { + return m_HSteamNetConnection.ToString(); + } + + public override bool Equals( object other ) + { + return other is HSteamNetConnection && this == (HSteamNetConnection)other; + } + + public override int GetHashCode() + { + return m_HSteamNetConnection.GetHashCode(); + } + + public static bool operator ==( HSteamNetConnection x, HSteamNetConnection y ) + { + return x.m_HSteamNetConnection == y.m_HSteamNetConnection; + } + + public static bool operator !=( HSteamNetConnection x, HSteamNetConnection y ) + { + return !(x == y); + } + + public static explicit operator HSteamNetConnection( uint value ) + { + return new HSteamNetConnection(value); + } + + public static explicit operator uint( HSteamNetConnection that ) + { + return that.m_HSteamNetConnection; + } + + public bool Equals( HSteamNetConnection other ) + { + return m_HSteamNetConnection == other.m_HSteamNetConnection; + } + + public int CompareTo( HSteamNetConnection other ) + { + return m_HSteamNetConnection.CompareTo(other.m_HSteamNetConnection); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/HSteamNetPollGroup.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/HSteamNetPollGroup.cs index 492b2b4b9..28c688c08 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/HSteamNetPollGroup.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/HSteamNetPollGroup.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct HSteamNetPollGroup : System.IEquatable, System.IComparable { - public static readonly HSteamNetPollGroup Invalid = new HSteamNetPollGroup(0); - public uint m_HSteamNetPollGroup; - - public HSteamNetPollGroup(uint value) { - m_HSteamNetPollGroup = value; - } - - public override string ToString() { - return m_HSteamNetPollGroup.ToString(); - } - - public override bool Equals(object other) { - return other is HSteamNetPollGroup && this == (HSteamNetPollGroup)other; - } - - public override int GetHashCode() { - return m_HSteamNetPollGroup.GetHashCode(); - } - - public static bool operator ==(HSteamNetPollGroup x, HSteamNetPollGroup y) { - return x.m_HSteamNetPollGroup == y.m_HSteamNetPollGroup; - } - - public static bool operator !=(HSteamNetPollGroup x, HSteamNetPollGroup y) { - return !(x == y); - } - - public static explicit operator HSteamNetPollGroup(uint value) { - return new HSteamNetPollGroup(value); - } - - public static explicit operator uint(HSteamNetPollGroup that) { - return that.m_HSteamNetPollGroup; - } - - public bool Equals(HSteamNetPollGroup other) { - return m_HSteamNetPollGroup == other.m_HSteamNetPollGroup; - } - - public int CompareTo(HSteamNetPollGroup other) { - return m_HSteamNetPollGroup.CompareTo(other.m_HSteamNetPollGroup); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct HSteamNetPollGroup : IEquatable, IComparable +{ + public static readonly HSteamNetPollGroup Invalid = new(0); + public uint m_HSteamNetPollGroup; + + public HSteamNetPollGroup( uint value ) + { + m_HSteamNetPollGroup = value; + } + + public override string ToString() + { + return m_HSteamNetPollGroup.ToString(); + } + + public override bool Equals( object other ) + { + return other is HSteamNetPollGroup && this == (HSteamNetPollGroup)other; + } + + public override int GetHashCode() + { + return m_HSteamNetPollGroup.GetHashCode(); + } + + public static bool operator ==( HSteamNetPollGroup x, HSteamNetPollGroup y ) + { + return x.m_HSteamNetPollGroup == y.m_HSteamNetPollGroup; + } + + public static bool operator !=( HSteamNetPollGroup x, HSteamNetPollGroup y ) + { + return !(x == y); + } + + public static explicit operator HSteamNetPollGroup( uint value ) + { + return new HSteamNetPollGroup(value); + } + + public static explicit operator uint( HSteamNetPollGroup that ) + { + return that.m_HSteamNetPollGroup; + } + + public bool Equals( HSteamNetPollGroup other ) + { + return m_HSteamNetPollGroup == other.m_HSteamNetPollGroup; + } + + public int CompareTo( HSteamNetPollGroup other ) + { + return m_HSteamNetPollGroup.CompareTo(other.m_HSteamNetPollGroup); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingConfigValue_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingConfigValue_t.cs index 8d7b301d8..2adab41e4 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingConfigValue_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingConfigValue_t.cs @@ -1,50 +1,49 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI +using IntPtr = nint; + +namespace SwiftlyS2.Shared.SteamAPI; + +/// In a few places we need to set configuration options on listen sockets and connections, and +/// have them take effect *before* the listen socket or connection really starts doing anything. +/// Creating the object and then setting the options "immediately" after creation doesn't work +/// completely, because network packets could be received between the time the object is created and +/// when the options are applied. To set options at creation time in a reliable way, they must be +/// passed to the creation function. This structure is used to pass those options. +/// +/// For the meaning of these fields, see ISteamNetworkingUtils::SetConfigValue. Basically +/// when the object is created, we just iterate over the list of options and call +/// ISteamNetworkingUtils::SetConfigValueStruct, where the scope arguments are supplied by the +/// object being created. +[Serializable] +[StructLayout(LayoutKind.Sequential)] +public struct SteamNetworkingConfigValue_t { - /// In a few places we need to set configuration options on listen sockets and connections, and - /// have them take effect *before* the listen socket or connection really starts doing anything. - /// Creating the object and then setting the options "immediately" after creation doesn't work - /// completely, because network packets could be received between the time the object is created and - /// when the options are applied. To set options at creation time in a reliable way, they must be - /// passed to the creation function. This structure is used to pass those options. - /// - /// For the meaning of these fields, see ISteamNetworkingUtils::SetConfigValue. Basically - /// when the object is created, we just iterate over the list of options and call - /// ISteamNetworkingUtils::SetConfigValueStruct, where the scope arguments are supplied by the - /// object being created. - [System.Serializable] - [StructLayout(LayoutKind.Sequential)] - public struct SteamNetworkingConfigValue_t - { - /// Which option is being set - public ESteamNetworkingConfigValue m_eValue; - - /// Which field below did you fill in? - public ESteamNetworkingConfigDataType m_eDataType; - - /// Option value - public OptionValue m_val; - - [StructLayout(LayoutKind.Explicit)] - public struct OptionValue - { - [FieldOffset(0)] - public int m_int32; - - [FieldOffset(0)] - public long m_int64; - - [FieldOffset(0)] - public float m_float; - - [FieldOffset(0)] - public IntPtr m_string; // Points to your '\0'-terminated buffer - - [FieldOffset(0)] - public IntPtr m_functionPtr; - } - } + /// Which option is being set + public ESteamNetworkingConfigValue m_eValue; + + /// Which field below did you fill in? + public ESteamNetworkingConfigDataType m_eDataType; + + /// Option value + public OptionValue m_val; + + [StructLayout(LayoutKind.Explicit)] + public struct OptionValue + { + [FieldOffset(0)] + public int m_int32; + + [FieldOffset(0)] + public long m_int64; + + [FieldOffset(0)] + public float m_float; + + [FieldOffset(0)] + public IntPtr m_string; // Points to your '\0'-terminated buffer + + [FieldOffset(0)] + public IntPtr m_functionPtr; + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingErrMsg.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingErrMsg.cs index 9f15441a5..bae63336b 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingErrMsg.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingErrMsg.cs @@ -1,16 +1,14 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +/// Used to return English-language diagnostic error messages to caller. +/// (For debugging or spewing to a console, etc. Not intended for UI.) +[Serializable] +[StructLayout(LayoutKind.Sequential)] +public struct SteamNetworkingErrMsg { - /// Used to return English-language diagnostic error messages to caller. - /// (For debugging or spewing to a console, etc. Not intended for UI.) - [System.Serializable] - [StructLayout(LayoutKind.Sequential)] - public struct SteamNetworkingErrMsg - { - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchMaxSteamNetworkingErrMsg)] - public byte[] m_SteamNetworkingErrMsg; - } + [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchMaxSteamNetworkingErrMsg)] + public byte[] m_SteamNetworkingErrMsg; } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingIPAddr.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingIPAddr.cs index fe5fa9100..f65ce5f87 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingIPAddr.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingIPAddr.cs @@ -1,115 +1,113 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +/// Store an IP and port. IPv6 is always used; IPv4 is represented using +/// "IPv4-mapped" addresses: IPv4 aa.bb.cc.dd => IPv6 ::ffff:aabb:ccdd +/// (RFC 4291 section 2.5.5.2.) +[Serializable] +[StructLayout(LayoutKind.Sequential, Pack = 1)] +public struct SteamNetworkingIPAddr : IEquatable { - /// Store an IP and port. IPv6 is always used; IPv4 is represented using - /// "IPv4-mapped" addresses: IPv4 aa.bb.cc.dd => IPv6 ::ffff:aabb:ccdd - /// (RFC 4291 section 2.5.5.2.) - [System.Serializable] - [StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct SteamNetworkingIPAddr : System.IEquatable - { - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] - public byte[] m_ipv6; - public ushort m_port; // Host byte order - - // Max length of the buffer needed to hold IP formatted using ToString, including '\0' - // ([0123:4567:89ab:cdef:0123:4567:89ab:cdef]:12345) - public const int k_cchMaxString = 48; - - // Set everything to zero. E.g. [::]:0 - public void Clear() - { - NativeMethods.SteamAPI_SteamNetworkingIPAddr_Clear(ref this); - } - - // Return true if the IP is ::0. (Doesn't check port.) - public bool IsIPv6AllZeros() - { - return NativeMethods.SteamAPI_SteamNetworkingIPAddr_IsIPv6AllZeros(ref this); - } - - // Set IPv6 address. IP is interpreted as bytes, so there are no endian issues. (Same as inaddr_in6.) The IP can be a mapped IPv4 address - public void SetIPv6(byte[] ipv6, ushort nPort) - { - NativeMethods.SteamAPI_SteamNetworkingIPAddr_SetIPv6(ref this, ipv6, nPort); - } - - // Sets to IPv4 mapped address. IP and port are in host byte order. - public void SetIPv4(uint nIP, ushort nPort) - { - NativeMethods.SteamAPI_SteamNetworkingIPAddr_SetIPv4(ref this, nIP, nPort); - } - - // Return true if IP is mapped IPv4 - public bool IsIPv4() - { - return NativeMethods.SteamAPI_SteamNetworkingIPAddr_IsIPv4(ref this); - } - - // Returns IP in host byte order (e.g. aa.bb.cc.dd as 0xaabbccdd). Returns 0 if IP is not mapped IPv4. - public uint GetIPv4() - { - return NativeMethods.SteamAPI_SteamNetworkingIPAddr_GetIPv4(ref this); - } - - // Set to the IPv6 localhost address ::1, and the specified port. - public void SetIPv6LocalHost(ushort nPort = 0) - { - NativeMethods.SteamAPI_SteamNetworkingIPAddr_SetIPv6LocalHost(ref this, nPort); - } - - // Return true if this identity is localhost. (Either IPv6 ::1, or IPv4 127.0.0.1) - public bool IsLocalHost() - { - return NativeMethods.SteamAPI_SteamNetworkingIPAddr_IsLocalHost(ref this); - } - - /// Print to a string, with or without the port. Mapped IPv4 addresses are printed - /// as dotted decimal (12.34.56.78), otherwise this will print the canonical - /// form according to RFC5952. If you include the port, IPv6 will be surrounded by - /// brackets, e.g. [::1:2]:80. Your buffer should be at least k_cchMaxString bytes - /// to avoid truncation - /// - /// See also SteamNetworkingIdentityRender - public void ToString(out string buf, bool bWithPort) - { - IntPtr buf2 = Marshal.AllocHGlobal(k_cchMaxString); - NativeMethods.SteamAPI_SteamNetworkingIPAddr_ToString(ref this, buf2, k_cchMaxString, bWithPort); - buf = InteropHelp.PtrToStringUTF8(buf2); - Marshal.FreeHGlobal(buf2); - } - - /// Parse an IP address and optional port. If a port is not present, it is set to 0. - /// (This means that you cannot tell if a zero port was explicitly specified.) - public bool ParseString(string pszStr) - { - using (var pszStr2 = new InteropHelp.UTF8StringHandle(pszStr)) - { - return NativeMethods.SteamAPI_SteamNetworkingIPAddr_ParseString(ref this, pszStr2); - } - } - - /// See if two addresses are identical - public bool Equals(SteamNetworkingIPAddr x) - { - return NativeMethods.SteamAPI_SteamNetworkingIPAddr_IsEqualTo(ref this, ref x); - } - - /// Classify address as FakeIP. This function never returns - /// k_ESteamNetworkingFakeIPType_Invalid. - public ESteamNetworkingFakeIPType GetFakeIPType() - { - return NativeMethods.SteamAPI_SteamNetworkingIPAddr_GetFakeIPType(ref this); - } - - /// Return true if we are a FakeIP - public bool IsFakeIP() - { - return GetFakeIPType() > ESteamNetworkingFakeIPType.k_ESteamNetworkingFakeIPType_NotFake; - } - } + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] + public byte[] m_ipv6; + public ushort m_port; // Host byte order + + // Max length of the buffer needed to hold IP formatted using ToString, including '\0' + // ([0123:4567:89ab:cdef:0123:4567:89ab:cdef]:12345) + public const int k_cchMaxString = 48; + + // Set everything to zero. E.g. [::]:0 + public void Clear() + { + NativeMethods.SteamAPI_SteamNetworkingIPAddr_Clear(ref this); + } + + // Return true if the IP is ::0. (Doesn't check port.) + public bool IsIPv6AllZeros() + { + return NativeMethods.SteamAPI_SteamNetworkingIPAddr_IsIPv6AllZeros(ref this); + } + + // Set IPv6 address. IP is interpreted as bytes, so there are no endian issues. (Same as inaddr_in6.) The IP can be a mapped IPv4 address + public void SetIPv6( byte[] ipv6, ushort nPort ) + { + NativeMethods.SteamAPI_SteamNetworkingIPAddr_SetIPv6(ref this, ipv6, nPort); + } + + // Sets to IPv4 mapped address. IP and port are in host byte order. + public void SetIPv4( uint nIP, ushort nPort ) + { + NativeMethods.SteamAPI_SteamNetworkingIPAddr_SetIPv4(ref this, nIP, nPort); + } + + // Return true if IP is mapped IPv4 + public bool IsIPv4() + { + return NativeMethods.SteamAPI_SteamNetworkingIPAddr_IsIPv4(ref this); + } + + // Returns IP in host byte order (e.g. aa.bb.cc.dd as 0xaabbccdd). Returns 0 if IP is not mapped IPv4. + public uint GetIPv4() + { + return NativeMethods.SteamAPI_SteamNetworkingIPAddr_GetIPv4(ref this); + } + + // Set to the IPv6 localhost address ::1, and the specified port. + public void SetIPv6LocalHost( ushort nPort = 0 ) + { + NativeMethods.SteamAPI_SteamNetworkingIPAddr_SetIPv6LocalHost(ref this, nPort); + } + + // Return true if this identity is localhost. (Either IPv6 ::1, or IPv4 127.0.0.1) + public bool IsLocalHost() + { + return NativeMethods.SteamAPI_SteamNetworkingIPAddr_IsLocalHost(ref this); + } + + /// Print to a string, with or without the port. Mapped IPv4 addresses are printed + /// as dotted decimal (12.34.56.78), otherwise this will print the canonical + /// form according to RFC5952. If you include the port, IPv6 will be surrounded by + /// brackets, e.g. [::1:2]:80. Your buffer should be at least k_cchMaxString bytes + /// to avoid truncation + /// + /// See also SteamNetworkingIdentityRender + public void ToString( out string buf, bool bWithPort ) + { + var buf2 = Marshal.AllocHGlobal(k_cchMaxString); + NativeMethods.SteamAPI_SteamNetworkingIPAddr_ToString(ref this, buf2, k_cchMaxString, bWithPort); + buf = InteropHelp.PtrToStringUTF8(buf2); + Marshal.FreeHGlobal(buf2); + } + + /// Parse an IP address and optional port. If a port is not present, it is set to 0. + /// (This means that you cannot tell if a zero port was explicitly specified.) + public bool ParseString( string pszStr ) + { + using (var pszStr2 = new InteropHelp.UTF8StringHandle(pszStr)) + { + return NativeMethods.SteamAPI_SteamNetworkingIPAddr_ParseString(ref this, pszStr2); + } + } + + /// See if two addresses are identical + public bool Equals( SteamNetworkingIPAddr x ) + { + return NativeMethods.SteamAPI_SteamNetworkingIPAddr_IsEqualTo(ref this, ref x); + } + + /// Classify address as FakeIP. This function never returns + /// k_ESteamNetworkingFakeIPType_Invalid. + public ESteamNetworkingFakeIPType GetFakeIPType() + { + return NativeMethods.SteamAPI_SteamNetworkingIPAddr_GetFakeIPType(ref this); + } + + /// Return true if we are a FakeIP + public bool IsFakeIP() + { + return GetFakeIPType() > ESteamNetworkingFakeIPType.k_ESteamNetworkingFakeIPType_NotFake; + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingIdentity.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingIdentity.cs index 14722d26e..d27664c91 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingIdentity.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingIdentity.cs @@ -1,223 +1,221 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +/// An abstract way to represent the identity of a network host. All identities can +/// be represented as simple string. Furthermore, this string representation is actually +/// used on the wire in several places, even though it is less efficient, in order to +/// facilitate forward compatibility. (Old client code can handle an identity type that +/// it doesn't understand.) +[Serializable] +[StructLayout(LayoutKind.Sequential, Pack = 1)] +public struct SteamNetworkingIdentity : IEquatable { - /// An abstract way to represent the identity of a network host. All identities can - /// be represented as simple string. Furthermore, this string representation is actually - /// used on the wire in several places, even though it is less efficient, in order to - /// facilitate forward compatibility. (Old client code can handle an identity type that - /// it doesn't understand.) - [System.Serializable] - [StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct SteamNetworkingIdentity : System.IEquatable - { - /// Type of identity. - public ESteamNetworkingIdentityType m_eType; - - // - // Internal representation. Don't access this directly, use the accessors! - // - // Number of bytes that are relevant below. This MUST ALWAYS be - // set. (Use the accessors!) This is important to enable old code to work - // with new identity types. - private int m_cbSize; - - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)] - private uint[] m_reserved; // Pad structure to leave easy room for future expansion - - // Max sizes - public const int k_cchMaxString = 128; // Max length of the buffer needed to hold any identity, formatted in string format by ToString - public const int k_cchMaxGenericString = 32; // Max length of the string for generic string identities. Including terminating '\0' - public const int k_cchMaxXboxPairwiseID = 33; // Including terminating '\0' - public const int k_cbMaxGenericBytes = 32; - - // - // Get/Set in various formats. - // - - public void Clear() - { - NativeMethods.SteamAPI_SteamNetworkingIdentity_Clear(ref this); - } - - // Return true if we are the invalid type. Does not make any other validity checks (e.g. is SteamID actually valid) - public bool IsInvalid() - { - return NativeMethods.SteamAPI_SteamNetworkingIdentity_IsInvalid(ref this); - } - - public void SetSteamID(CSteamID steamID) - { - NativeMethods.SteamAPI_SteamNetworkingIdentity_SetSteamID(ref this, (ulong)steamID); - } - - // Return black CSteamID (!IsValid()) if identity is not a SteamID - public CSteamID GetSteamID() - { - return (CSteamID)NativeMethods.SteamAPI_SteamNetworkingIdentity_GetSteamID(ref this); - } - - // Takes SteamID as raw 64-bit number - public void SetSteamID64(ulong steamID) - { - NativeMethods.SteamAPI_SteamNetworkingIdentity_SetSteamID64(ref this, steamID); - } - - // Returns 0 if identity is not SteamID - public ulong GetSteamID64() - { - return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetSteamID64(ref this); - } - - // Returns false if invalid length - public bool SetXboxPairwiseID(string pszString) - { - using (var pszString2 = new InteropHelp.UTF8StringHandle(pszString)) - { - return NativeMethods.SteamAPI_SteamNetworkingIdentity_SetXboxPairwiseID(ref this, pszString2); - } - } - - // Returns nullptr if not Xbox ID - public string GetXboxPairwiseID() - { - return InteropHelp.PtrToStringUTF8(NativeMethods.SteamAPI_SteamNetworkingIdentity_GetXboxPairwiseID(ref this)); - } - - public void SetPSNID(ulong id) - { - NativeMethods.SteamAPI_SteamNetworkingIdentity_SetPSNID(ref this, id); - } - - // Returns 0 if not PSN - public ulong GetPSNID() - { - return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetPSNID(ref this); - } - - public void SetStadiaID(ulong id) - { - NativeMethods.SteamAPI_SteamNetworkingIdentity_SetStadiaID(ref this, id); - } - - // Returns 0 if not Stadia - public ulong GetStadiaID() - { - return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetStadiaID(ref this); - } - - // Set to specified IP:port - public void SetIPAddr(SteamNetworkingIPAddr addr) - { - NativeMethods.SteamAPI_SteamNetworkingIdentity_SetIPAddr(ref this, ref addr); - } - - // returns null if we are not an IP address. - public SteamNetworkingIPAddr GetIPAddr() - { - throw new System.NotImplementedException(); - // TODO: Should SteamNetworkingIPAddr be a class? - // or should this return some kind of pointer instead? - //return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetIPAddr(ref this); - } - - public void SetIPv4Addr(uint nIPv4, ushort nPort) - { - NativeMethods.SteamAPI_SteamNetworkingIdentity_SetIPv4Addr(ref this, nIPv4, nPort); - } - - // returns 0 if we are not an IPv4 address. - public uint GetIPv4() - { - return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetIPv4(ref this); - } - - public ESteamNetworkingFakeIPType GetFakeIPType() - { - return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetFakeIPType(ref this); - } - - public bool IsFakeIP() - { - return GetFakeIPType() > ESteamNetworkingFakeIPType.k_ESteamNetworkingFakeIPType_NotFake; - } - - // "localhost" is equivalent for many purposes to "anonymous." Our remote - // will identify us by the network address we use. - // Set to localhost. (We always use IPv6 ::1 for this, not 127.0.0.1) - public void SetLocalHost() - { - NativeMethods.SteamAPI_SteamNetworkingIdentity_SetLocalHost(ref this); - } - - // Return true if this identity is localhost. - public bool IsLocalHost() - { - return NativeMethods.SteamAPI_SteamNetworkingIdentity_IsLocalHost(ref this); - } - - // Returns false if invalid length - public bool SetGenericString(string pszString) - { - using (var pszString2 = new InteropHelp.UTF8StringHandle(pszString)) - { - return NativeMethods.SteamAPI_SteamNetworkingIdentity_SetGenericString(ref this, pszString2); - } - } - - // Returns nullptr if not generic string type - public string GetGenericString() - { - return InteropHelp.PtrToStringUTF8(NativeMethods.SteamAPI_SteamNetworkingIdentity_GetGenericString(ref this)); - } - - // Returns false if invalid size. - public bool SetGenericBytes(byte[] data, uint cbLen) - { - return NativeMethods.SteamAPI_SteamNetworkingIdentity_SetGenericBytes(ref this, data, cbLen); - } - - // Returns null if not generic bytes type - public byte[] GetGenericBytes(out int cbLen) - { - throw new System.NotImplementedException(); - //return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetGenericBytes(ref this, out cbLen); - } - - /// See if two identities are identical - public bool Equals(SteamNetworkingIdentity x) - { - return NativeMethods.SteamAPI_SteamNetworkingIdentity_IsEqualTo(ref this, ref x); - } - - /// Print to a human-readable string. This is suitable for debug messages - /// or any other time you need to encode the identity as a string. It has a - /// URL-like format (type:). Your buffer should be at least - /// k_cchMaxString bytes big to avoid truncation. - /// - /// See also SteamNetworkingIPAddrRender - public void ToString(out string buf) - { - IntPtr buf2 = Marshal.AllocHGlobal(k_cchMaxString); - NativeMethods.SteamAPI_SteamNetworkingIdentity_ToString(ref this, buf2, k_cchMaxString); - buf = InteropHelp.PtrToStringUTF8(buf2); - Marshal.FreeHGlobal(buf2); - } - - /// Parse back a string that was generated using ToString. If we don't understand the - /// string, but it looks "reasonable" (it matches the pattern type: and doesn't - /// have any funky characters, etc), then we will return true, and the type is set to - /// k_ESteamNetworkingIdentityType_UnknownType. false will only be returned if the string - /// looks invalid. - public bool ParseString(string pszStr) - { - using (var pszStr2 = new InteropHelp.UTF8StringHandle(pszStr)) - { - return NativeMethods.SteamAPI_SteamNetworkingIdentity_ParseString(ref this, pszStr2); - } - } - } + /// Type of identity. + public ESteamNetworkingIdentityType m_eType; + + // + // Internal representation. Don't access this directly, use the accessors! + // + // Number of bytes that are relevant below. This MUST ALWAYS be + // set. (Use the accessors!) This is important to enable old code to work + // with new identity types. + private int m_cbSize; + + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)] + private uint[] m_reserved; // Pad structure to leave easy room for future expansion + + // Max sizes + public const int k_cchMaxString = 128; // Max length of the buffer needed to hold any identity, formatted in string format by ToString + public const int k_cchMaxGenericString = 32; // Max length of the string for generic string identities. Including terminating '\0' + public const int k_cchMaxXboxPairwiseID = 33; // Including terminating '\0' + public const int k_cbMaxGenericBytes = 32; + + // + // Get/Set in various formats. + // + + public void Clear() + { + NativeMethods.SteamAPI_SteamNetworkingIdentity_Clear(ref this); + } + + // Return true if we are the invalid type. Does not make any other validity checks (e.g. is SteamID actually valid) + public bool IsInvalid() + { + return NativeMethods.SteamAPI_SteamNetworkingIdentity_IsInvalid(ref this); + } + + public void SetSteamID( CSteamID steamID ) + { + NativeMethods.SteamAPI_SteamNetworkingIdentity_SetSteamID(ref this, (ulong)steamID); + } + + // Return black CSteamID (!IsValid()) if identity is not a SteamID + public CSteamID GetSteamID() + { + return (CSteamID)NativeMethods.SteamAPI_SteamNetworkingIdentity_GetSteamID(ref this); + } + + // Takes SteamID as raw 64-bit number + public void SetSteamID64( ulong steamID ) + { + NativeMethods.SteamAPI_SteamNetworkingIdentity_SetSteamID64(ref this, steamID); + } + + // Returns 0 if identity is not SteamID + public ulong GetSteamID64() + { + return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetSteamID64(ref this); + } + + // Returns false if invalid length + public bool SetXboxPairwiseID( string pszString ) + { + using (var pszString2 = new InteropHelp.UTF8StringHandle(pszString)) + { + return NativeMethods.SteamAPI_SteamNetworkingIdentity_SetXboxPairwiseID(ref this, pszString2); + } + } + + // Returns nullptr if not Xbox ID + public string GetXboxPairwiseID() + { + return InteropHelp.PtrToStringUTF8(NativeMethods.SteamAPI_SteamNetworkingIdentity_GetXboxPairwiseID(ref this)); + } + + public void SetPSNID( ulong id ) + { + NativeMethods.SteamAPI_SteamNetworkingIdentity_SetPSNID(ref this, id); + } + + // Returns 0 if not PSN + public ulong GetPSNID() + { + return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetPSNID(ref this); + } + + public void SetStadiaID( ulong id ) + { + NativeMethods.SteamAPI_SteamNetworkingIdentity_SetStadiaID(ref this, id); + } + + // Returns 0 if not Stadia + public ulong GetStadiaID() + { + return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetStadiaID(ref this); + } + + // Set to specified IP:port + public void SetIPAddr( SteamNetworkingIPAddr addr ) + { + _ = NativeMethods.SteamAPI_SteamNetworkingIdentity_SetIPAddr(ref this, ref addr); + } + + // returns null if we are not an IP address. + public SteamNetworkingIPAddr GetIPAddr() + { + throw new NotImplementedException(); + // TODO: Should SteamNetworkingIPAddr be a class? + // or should this return some kind of pointer instead? + //return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetIPAddr(ref this); + } + + public void SetIPv4Addr( uint nIPv4, ushort nPort ) + { + NativeMethods.SteamAPI_SteamNetworkingIdentity_SetIPv4Addr(ref this, nIPv4, nPort); + } + + // returns 0 if we are not an IPv4 address. + public uint GetIPv4() + { + return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetIPv4(ref this); + } + + public ESteamNetworkingFakeIPType GetFakeIPType() + { + return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetFakeIPType(ref this); + } + + public bool IsFakeIP() + { + return GetFakeIPType() > ESteamNetworkingFakeIPType.k_ESteamNetworkingFakeIPType_NotFake; + } + + // "localhost" is equivalent for many purposes to "anonymous." Our remote + // will identify us by the network address we use. + // Set to localhost. (We always use IPv6 ::1 for this, not 127.0.0.1) + public void SetLocalHost() + { + NativeMethods.SteamAPI_SteamNetworkingIdentity_SetLocalHost(ref this); + } + + // Return true if this identity is localhost. + public bool IsLocalHost() + { + return NativeMethods.SteamAPI_SteamNetworkingIdentity_IsLocalHost(ref this); + } + + // Returns false if invalid length + public bool SetGenericString( string pszString ) + { + using (var pszString2 = new InteropHelp.UTF8StringHandle(pszString)) + { + return NativeMethods.SteamAPI_SteamNetworkingIdentity_SetGenericString(ref this, pszString2); + } + } + + // Returns nullptr if not generic string type + public string GetGenericString() + { + return InteropHelp.PtrToStringUTF8(NativeMethods.SteamAPI_SteamNetworkingIdentity_GetGenericString(ref this)); + } + + // Returns false if invalid size. + public bool SetGenericBytes( byte[] data, uint cbLen ) + { + return NativeMethods.SteamAPI_SteamNetworkingIdentity_SetGenericBytes(ref this, data, cbLen); + } + + // Returns null if not generic bytes type + public byte[] GetGenericBytes( out int cbLen ) + { + throw new NotImplementedException(); + //return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetGenericBytes(ref this, out cbLen); + } + + /// See if two identities are identical + public bool Equals( SteamNetworkingIdentity x ) + { + return NativeMethods.SteamAPI_SteamNetworkingIdentity_IsEqualTo(ref this, ref x); + } + + /// Print to a human-readable string. This is suitable for debug messages + /// or any other time you need to encode the identity as a string. It has a + /// URL-like format (type:). Your buffer should be at least + /// k_cchMaxString bytes big to avoid truncation. + /// + /// See also SteamNetworkingIPAddrRender + public void ToString( out string buf ) + { + var buf2 = Marshal.AllocHGlobal(k_cchMaxString); + NativeMethods.SteamAPI_SteamNetworkingIdentity_ToString(ref this, buf2, k_cchMaxString); + buf = InteropHelp.PtrToStringUTF8(buf2); + Marshal.FreeHGlobal(buf2); + } + + /// Parse back a string that was generated using ToString. If we don't understand the + /// string, but it looks "reasonable" (it matches the pattern type: and doesn't + /// have any funky characters, etc), then we will return true, and the type is set to + /// k_ESteamNetworkingIdentityType_UnknownType. false will only be returned if the string + /// looks invalid. + public bool ParseString( string pszStr ) + { + using (var pszStr2 = new InteropHelp.UTF8StringHandle(pszStr)) + { + return NativeMethods.SteamAPI_SteamNetworkingIdentity_ParseString(ref this, pszStr2); + } + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingMessage_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingMessage_t.cs index 303a09f37..9fe80b2e3 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingMessage_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingMessage_t.cs @@ -1,114 +1,113 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; +using IntPtr = nint; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +/// A message that has been received. +[Serializable] +[StructLayout(LayoutKind.Sequential)] +public struct SteamNetworkingMessage_t { - /// A message that has been received. - [System.Serializable] - [StructLayout(LayoutKind.Sequential)] - public struct SteamNetworkingMessage_t - { - /// Message payload - public IntPtr m_pData; - - /// Size of the payload. - public int m_cbSize; - - /// For messages received on connections: what connection did this come from? - /// For outgoing messages: what connection to send it to? - /// Not used when using the ISteamNetworkingMessages interface - public HSteamNetConnection m_conn; - - /// For inbound messages: Who sent this to us? - /// For outbound messages on connections: not used. - /// For outbound messages on the ad-hoc ISteamNetworkingMessages interface: who should we send this to? - public SteamNetworkingIdentity m_identityPeer; - - /// For messages received on connections, this is the user data - /// associated with the connection. - /// - /// This is *usually* the same as calling GetConnection() and then - /// fetching the user data associated with that connection, but for - /// the following subtle differences: - /// - /// - This user data will match the connection's user data at the time - /// is captured at the time the message is returned by the API. - /// If you subsequently change the userdata on the connection, - /// this won't be updated. - /// - This is an inline call, so it's *much* faster. - /// - You might have closed the connection, so fetching the user data - /// would not be possible. - /// - /// Not used when sending messages. - public long m_nConnUserData; - - /// Local timestamp when the message was received - /// Not used for outbound messages. - public SteamNetworkingMicroseconds m_usecTimeReceived; - - /// Message number assigned by the sender. This is not used for outbound - /// messages. Note that if multiple lanes are used, each lane has its own - /// message numbers, which are assigned sequentially, so messages from - /// different lanes will share the same numbers. - public long m_nMessageNumber; - - /// Function used to free up m_pData. This mechanism exists so that - /// apps can create messages with buffers allocated from their own - /// heap, and pass them into the library. This function will - /// usually be something like: - /// - /// free( pMsg->m_pData ); - public IntPtr m_pfnFreeData; - - /// Function to used to decrement the internal reference count and, if - /// it's zero, release the message. You should not set this function pointer, - /// or need to access this directly! Use the Release() function instead! - internal IntPtr m_pfnRelease; - - /// When using ISteamNetworkingMessages, the channel number the message was received on - /// (Not used for messages sent or received on "connections") - public int m_nChannel; - - /// Bitmask of k_nSteamNetworkingSend_xxx flags. - /// For received messages, only the k_nSteamNetworkingSend_Reliable bit is valid. - /// For outbound messages, all bits are relevant - public int m_nFlags; - - /// Arbitrary user data that you can use when sending messages using - /// ISteamNetworkingUtils::AllocateMessage and ISteamNetworkingSockets::SendMessage. - /// (The callback you set in m_pfnFreeData might use this field.) - /// - /// Not used for received messages. - public long m_nUserData; - - /// For outbound messages, which lane to use? See ISteamNetworkingSockets::ConfigureConnectionLanes. - /// For inbound messages, what lane was the message received on? - public ushort m_idxLane; - - public ushort _pad1__; - - /// You MUST call this when you're done with the object, - /// to free up memory, etc. - public void Release() - { - throw new System.NotImplementedException("Please use the static Release function instead which takes an IntPtr."); - } - - /// You MUST call this when you're done with the object, - /// to free up memory, etc. - /// This is a Steamworks.NET extension. - public static void Release(IntPtr pointer) - { - NativeMethods.SteamAPI_SteamNetworkingMessage_t_Release(pointer); - } - - /// Convert an IntPtr received from ISteamNetworkingSockets.ReceiveMessagesOnPollGroup into our structure. - /// This is a Steamworks.NET extension. - public static SteamNetworkingMessage_t FromIntPtr(IntPtr pointer) - { - return Marshal.PtrToStructure(pointer); - } - } + /// Message payload + public IntPtr m_pData; + + /// Size of the payload. + public int m_cbSize; + + /// For messages received on connections: what connection did this come from? + /// For outgoing messages: what connection to send it to? + /// Not used when using the ISteamNetworkingMessages interface + public HSteamNetConnection m_conn; + + /// For inbound messages: Who sent this to us? + /// For outbound messages on connections: not used. + /// For outbound messages on the ad-hoc ISteamNetworkingMessages interface: who should we send this to? + public SteamNetworkingIdentity m_identityPeer; + + /// For messages received on connections, this is the user data + /// associated with the connection. + /// + /// This is *usually* the same as calling GetConnection() and then + /// fetching the user data associated with that connection, but for + /// the following subtle differences: + /// + /// - This user data will match the connection's user data at the time + /// is captured at the time the message is returned by the API. + /// If you subsequently change the userdata on the connection, + /// this won't be updated. + /// - This is an inline call, so it's *much* faster. + /// - You might have closed the connection, so fetching the user data + /// would not be possible. + /// + /// Not used when sending messages. + public long m_nConnUserData; + + /// Local timestamp when the message was received + /// Not used for outbound messages. + public SteamNetworkingMicroseconds m_usecTimeReceived; + + /// Message number assigned by the sender. This is not used for outbound + /// messages. Note that if multiple lanes are used, each lane has its own + /// message numbers, which are assigned sequentially, so messages from + /// different lanes will share the same numbers. + public long m_nMessageNumber; + + /// Function used to free up m_pData. This mechanism exists so that + /// apps can create messages with buffers allocated from their own + /// heap, and pass them into the library. This function will + /// usually be something like: + /// + /// free( pMsg->m_pData ); + public IntPtr m_pfnFreeData; + + /// Function to used to decrement the internal reference count and, if + /// it's zero, release the message. You should not set this function pointer, + /// or need to access this directly! Use the Release() function instead! + internal IntPtr m_pfnRelease; + + /// When using ISteamNetworkingMessages, the channel number the message was received on + /// (Not used for messages sent or received on "connections") + public int m_nChannel; + + /// Bitmask of k_nSteamNetworkingSend_xxx flags. + /// For received messages, only the k_nSteamNetworkingSend_Reliable bit is valid. + /// For outbound messages, all bits are relevant + public int m_nFlags; + + /// Arbitrary user data that you can use when sending messages using + /// ISteamNetworkingUtils::AllocateMessage and ISteamNetworkingSockets::SendMessage. + /// (The callback you set in m_pfnFreeData might use this field.) + /// + /// Not used for received messages. + public long m_nUserData; + + /// For outbound messages, which lane to use? See ISteamNetworkingSockets::ConfigureConnectionLanes. + /// For inbound messages, what lane was the message received on? + public ushort m_idxLane; + + public ushort _pad1__; + + /// You MUST call this when you're done with the object, + /// to free up memory, etc. + public void Release() + { + throw new NotImplementedException("Please use the static Release function instead which takes an IntPtr."); + } + + /// You MUST call this when you're done with the object, + /// to free up memory, etc. + /// This is a Steamworks.NET extension. + public static void Release( IntPtr pointer ) + { + NativeMethods.SteamAPI_SteamNetworkingMessage_t_Release(pointer); + } + + /// Convert an IntPtr received from ISteamNetworkingSockets.ReceiveMessagesOnPollGroup into our structure. + /// This is a Steamworks.NET extension. + public static SteamNetworkingMessage_t FromIntPtr( IntPtr pointer ) + { + return Marshal.PtrToStructure(pointer); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingMicroseconds.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingMicroseconds.cs index 55bb49691..958cc1057 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingMicroseconds.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingMicroseconds.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct SteamNetworkingMicroseconds : System.IEquatable, System.IComparable { - public long m_SteamNetworkingMicroseconds; - - public SteamNetworkingMicroseconds(long value) { - m_SteamNetworkingMicroseconds = value; - } - - public override string ToString() { - return m_SteamNetworkingMicroseconds.ToString(); - } - - public override bool Equals(object other) { - return other is SteamNetworkingMicroseconds && this == (SteamNetworkingMicroseconds)other; - } - - public override int GetHashCode() { - return m_SteamNetworkingMicroseconds.GetHashCode(); - } - - public static bool operator ==(SteamNetworkingMicroseconds x, SteamNetworkingMicroseconds y) { - return x.m_SteamNetworkingMicroseconds == y.m_SteamNetworkingMicroseconds; - } - - public static bool operator !=(SteamNetworkingMicroseconds x, SteamNetworkingMicroseconds y) { - return !(x == y); - } - - public static explicit operator SteamNetworkingMicroseconds(long value) { - return new SteamNetworkingMicroseconds(value); - } - - public static explicit operator long(SteamNetworkingMicroseconds that) { - return that.m_SteamNetworkingMicroseconds; - } - - public bool Equals(SteamNetworkingMicroseconds other) { - return m_SteamNetworkingMicroseconds == other.m_SteamNetworkingMicroseconds; - } - - public int CompareTo(SteamNetworkingMicroseconds other) { - return m_SteamNetworkingMicroseconds.CompareTo(other.m_SteamNetworkingMicroseconds); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct SteamNetworkingMicroseconds : IEquatable, IComparable +{ + public long m_SteamNetworkingMicroseconds; + + public SteamNetworkingMicroseconds( long value ) + { + m_SteamNetworkingMicroseconds = value; + } + + public override string ToString() + { + return m_SteamNetworkingMicroseconds.ToString(); + } + + public override bool Equals( object other ) + { + return other is SteamNetworkingMicroseconds && this == (SteamNetworkingMicroseconds)other; + } + + public override int GetHashCode() + { + return m_SteamNetworkingMicroseconds.GetHashCode(); + } + + public static bool operator ==( SteamNetworkingMicroseconds x, SteamNetworkingMicroseconds y ) + { + return x.m_SteamNetworkingMicroseconds == y.m_SteamNetworkingMicroseconds; + } + + public static bool operator !=( SteamNetworkingMicroseconds x, SteamNetworkingMicroseconds y ) + { + return !(x == y); + } + + public static explicit operator SteamNetworkingMicroseconds( long value ) + { + return new SteamNetworkingMicroseconds(value); + } + + public static explicit operator long( SteamNetworkingMicroseconds that ) + { + return that.m_SteamNetworkingMicroseconds; + } + + public bool Equals( SteamNetworkingMicroseconds other ) + { + return m_SteamNetworkingMicroseconds == other.m_SteamNetworkingMicroseconds; + } + + public int CompareTo( SteamNetworkingMicroseconds other ) + { + return m_SteamNetworkingMicroseconds.CompareTo(other.m_SteamNetworkingMicroseconds); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingPOPID.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingPOPID.cs index 3e7ce962d..722eb0308 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingPOPID.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamNetworkingtypes/SteamNetworkingPOPID.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct SteamNetworkingPOPID : System.IEquatable, System.IComparable { - public uint m_SteamNetworkingPOPID; - - public SteamNetworkingPOPID(uint value) { - m_SteamNetworkingPOPID = value; - } - - public override string ToString() { - return m_SteamNetworkingPOPID.ToString(); - } - - public override bool Equals(object other) { - return other is SteamNetworkingPOPID && this == (SteamNetworkingPOPID)other; - } - - public override int GetHashCode() { - return m_SteamNetworkingPOPID.GetHashCode(); - } - - public static bool operator ==(SteamNetworkingPOPID x, SteamNetworkingPOPID y) { - return x.m_SteamNetworkingPOPID == y.m_SteamNetworkingPOPID; - } - - public static bool operator !=(SteamNetworkingPOPID x, SteamNetworkingPOPID y) { - return !(x == y); - } - - public static explicit operator SteamNetworkingPOPID(uint value) { - return new SteamNetworkingPOPID(value); - } - - public static explicit operator uint(SteamNetworkingPOPID that) { - return that.m_SteamNetworkingPOPID; - } - - public bool Equals(SteamNetworkingPOPID other) { - return m_SteamNetworkingPOPID == other.m_SteamNetworkingPOPID; - } - - public int CompareTo(SteamNetworkingPOPID other) { - return m_SteamNetworkingPOPID.CompareTo(other.m_SteamNetworkingPOPID); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct SteamNetworkingPOPID : IEquatable, IComparable +{ + public uint m_SteamNetworkingPOPID; + + public SteamNetworkingPOPID( uint value ) + { + m_SteamNetworkingPOPID = value; + } + + public override string ToString() + { + return m_SteamNetworkingPOPID.ToString(); + } + + public override bool Equals( object other ) + { + return other is SteamNetworkingPOPID && this == (SteamNetworkingPOPID)other; + } + + public override int GetHashCode() + { + return m_SteamNetworkingPOPID.GetHashCode(); + } + + public static bool operator ==( SteamNetworkingPOPID x, SteamNetworkingPOPID y ) + { + return x.m_SteamNetworkingPOPID == y.m_SteamNetworkingPOPID; + } + + public static bool operator !=( SteamNetworkingPOPID x, SteamNetworkingPOPID y ) + { + return !(x == y); + } + + public static explicit operator SteamNetworkingPOPID( uint value ) + { + return new SteamNetworkingPOPID(value); + } + + public static explicit operator uint( SteamNetworkingPOPID that ) + { + return that.m_SteamNetworkingPOPID; + } + + public bool Equals( SteamNetworkingPOPID other ) + { + return m_SteamNetworkingPOPID == other.m_SteamNetworkingPOPID; + } + + public int CompareTo( SteamNetworkingPOPID other ) + { + return m_SteamNetworkingPOPID.CompareTo(other.m_SteamNetworkingPOPID); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemotePlay/RemotePlayCursorID_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemotePlay/RemotePlayCursorID_t.cs index 8ef49f026..b58c86430 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemotePlay/RemotePlayCursorID_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemotePlay/RemotePlayCursorID_t.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct RemotePlayCursorID_t : System.IEquatable, System.IComparable { - public uint m_RemotePlayCursorID; - - public RemotePlayCursorID_t(uint value) { - m_RemotePlayCursorID = value; - } - - public override string ToString() { - return m_RemotePlayCursorID.ToString(); - } - - public override bool Equals(object other) { - return other is RemotePlayCursorID_t && this == (RemotePlayCursorID_t)other; - } - - public override int GetHashCode() { - return m_RemotePlayCursorID.GetHashCode(); - } - - public static bool operator ==(RemotePlayCursorID_t x, RemotePlayCursorID_t y) { - return x.m_RemotePlayCursorID == y.m_RemotePlayCursorID; - } - - public static bool operator !=(RemotePlayCursorID_t x, RemotePlayCursorID_t y) { - return !(x == y); - } - - public static explicit operator RemotePlayCursorID_t(uint value) { - return new RemotePlayCursorID_t(value); - } - - public static explicit operator uint(RemotePlayCursorID_t that) { - return that.m_RemotePlayCursorID; - } - - public bool Equals(RemotePlayCursorID_t other) { - return m_RemotePlayCursorID == other.m_RemotePlayCursorID; - } - - public int CompareTo(RemotePlayCursorID_t other) { - return m_RemotePlayCursorID.CompareTo(other.m_RemotePlayCursorID); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct RemotePlayCursorID_t : IEquatable, IComparable +{ + public uint m_RemotePlayCursorID; + + public RemotePlayCursorID_t( uint value ) + { + m_RemotePlayCursorID = value; + } + + public override string ToString() + { + return m_RemotePlayCursorID.ToString(); + } + + public override bool Equals( object other ) + { + return other is RemotePlayCursorID_t && this == (RemotePlayCursorID_t)other; + } + + public override int GetHashCode() + { + return m_RemotePlayCursorID.GetHashCode(); + } + + public static bool operator ==( RemotePlayCursorID_t x, RemotePlayCursorID_t y ) + { + return x.m_RemotePlayCursorID == y.m_RemotePlayCursorID; + } + + public static bool operator !=( RemotePlayCursorID_t x, RemotePlayCursorID_t y ) + { + return !(x == y); + } + + public static explicit operator RemotePlayCursorID_t( uint value ) + { + return new RemotePlayCursorID_t(value); + } + + public static explicit operator uint( RemotePlayCursorID_t that ) + { + return that.m_RemotePlayCursorID; + } + + public bool Equals( RemotePlayCursorID_t other ) + { + return m_RemotePlayCursorID == other.m_RemotePlayCursorID; + } + + public int CompareTo( RemotePlayCursorID_t other ) + { + return m_RemotePlayCursorID.CompareTo(other.m_RemotePlayCursorID); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemotePlay/RemotePlaySessionID_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemotePlay/RemotePlaySessionID_t.cs index 9a72baa41..38e9e560d 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemotePlay/RemotePlaySessionID_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemotePlay/RemotePlaySessionID_t.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct RemotePlaySessionID_t : System.IEquatable, System.IComparable { - public uint m_RemotePlaySessionID; - - public RemotePlaySessionID_t(uint value) { - m_RemotePlaySessionID = value; - } - - public override string ToString() { - return m_RemotePlaySessionID.ToString(); - } - - public override bool Equals(object other) { - return other is RemotePlaySessionID_t && this == (RemotePlaySessionID_t)other; - } - - public override int GetHashCode() { - return m_RemotePlaySessionID.GetHashCode(); - } - - public static bool operator ==(RemotePlaySessionID_t x, RemotePlaySessionID_t y) { - return x.m_RemotePlaySessionID == y.m_RemotePlaySessionID; - } - - public static bool operator !=(RemotePlaySessionID_t x, RemotePlaySessionID_t y) { - return !(x == y); - } - - public static explicit operator RemotePlaySessionID_t(uint value) { - return new RemotePlaySessionID_t(value); - } - - public static explicit operator uint(RemotePlaySessionID_t that) { - return that.m_RemotePlaySessionID; - } - - public bool Equals(RemotePlaySessionID_t other) { - return m_RemotePlaySessionID == other.m_RemotePlaySessionID; - } - - public int CompareTo(RemotePlaySessionID_t other) { - return m_RemotePlaySessionID.CompareTo(other.m_RemotePlaySessionID); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct RemotePlaySessionID_t : IEquatable, IComparable +{ + public uint m_RemotePlaySessionID; + + public RemotePlaySessionID_t( uint value ) + { + m_RemotePlaySessionID = value; + } + + public override string ToString() + { + return m_RemotePlaySessionID.ToString(); + } + + public override bool Equals( object other ) + { + return other is RemotePlaySessionID_t && this == (RemotePlaySessionID_t)other; + } + + public override int GetHashCode() + { + return m_RemotePlaySessionID.GetHashCode(); + } + + public static bool operator ==( RemotePlaySessionID_t x, RemotePlaySessionID_t y ) + { + return x.m_RemotePlaySessionID == y.m_RemotePlaySessionID; + } + + public static bool operator !=( RemotePlaySessionID_t x, RemotePlaySessionID_t y ) + { + return !(x == y); + } + + public static explicit operator RemotePlaySessionID_t( uint value ) + { + return new RemotePlaySessionID_t(value); + } + + public static explicit operator uint( RemotePlaySessionID_t that ) + { + return that.m_RemotePlaySessionID; + } + + public bool Equals( RemotePlaySessionID_t other ) + { + return m_RemotePlaySessionID == other.m_RemotePlaySessionID; + } + + public int CompareTo( RemotePlaySessionID_t other ) + { + return m_RemotePlaySessionID.CompareTo(other.m_RemotePlaySessionID); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/PublishedFileId_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/PublishedFileId_t.cs index f9b77028a..f8f833f41 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/PublishedFileId_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/PublishedFileId_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct PublishedFileId_t : System.IEquatable, System.IComparable { - public static readonly PublishedFileId_t Invalid = new PublishedFileId_t(0); - public ulong m_PublishedFileId; - - public PublishedFileId_t(ulong value) { - m_PublishedFileId = value; - } - - public override string ToString() { - return m_PublishedFileId.ToString(); - } - - public override bool Equals(object other) { - return other is PublishedFileId_t && this == (PublishedFileId_t)other; - } - - public override int GetHashCode() { - return m_PublishedFileId.GetHashCode(); - } - - public static bool operator ==(PublishedFileId_t x, PublishedFileId_t y) { - return x.m_PublishedFileId == y.m_PublishedFileId; - } - - public static bool operator !=(PublishedFileId_t x, PublishedFileId_t y) { - return !(x == y); - } - - public static explicit operator PublishedFileId_t(ulong value) { - return new PublishedFileId_t(value); - } - - public static explicit operator ulong(PublishedFileId_t that) { - return that.m_PublishedFileId; - } - - public bool Equals(PublishedFileId_t other) { - return m_PublishedFileId == other.m_PublishedFileId; - } - - public int CompareTo(PublishedFileId_t other) { - return m_PublishedFileId.CompareTo(other.m_PublishedFileId); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct PublishedFileId_t : IEquatable, IComparable +{ + public static readonly PublishedFileId_t Invalid = new(0); + public ulong m_PublishedFileId; + + public PublishedFileId_t( ulong value ) + { + m_PublishedFileId = value; + } + + public override string ToString() + { + return m_PublishedFileId.ToString(); + } + + public override bool Equals( object other ) + { + return other is PublishedFileId_t && this == (PublishedFileId_t)other; + } + + public override int GetHashCode() + { + return m_PublishedFileId.GetHashCode(); + } + + public static bool operator ==( PublishedFileId_t x, PublishedFileId_t y ) + { + return x.m_PublishedFileId == y.m_PublishedFileId; + } + + public static bool operator !=( PublishedFileId_t x, PublishedFileId_t y ) + { + return !(x == y); + } + + public static explicit operator PublishedFileId_t( ulong value ) + { + return new PublishedFileId_t(value); + } + + public static explicit operator ulong( PublishedFileId_t that ) + { + return that.m_PublishedFileId; + } + + public bool Equals( PublishedFileId_t other ) + { + return m_PublishedFileId == other.m_PublishedFileId; + } + + public int CompareTo( PublishedFileId_t other ) + { + return m_PublishedFileId.CompareTo(other.m_PublishedFileId); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/PublishedFileUpdateHandle_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/PublishedFileUpdateHandle_t.cs index 2757b02c6..5507c58db 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/PublishedFileUpdateHandle_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/PublishedFileUpdateHandle_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct PublishedFileUpdateHandle_t : System.IEquatable, System.IComparable { - public static readonly PublishedFileUpdateHandle_t Invalid = new PublishedFileUpdateHandle_t(0xffffffffffffffff); - public ulong m_PublishedFileUpdateHandle; - - public PublishedFileUpdateHandle_t(ulong value) { - m_PublishedFileUpdateHandle = value; - } - - public override string ToString() { - return m_PublishedFileUpdateHandle.ToString(); - } - - public override bool Equals(object other) { - return other is PublishedFileUpdateHandle_t && this == (PublishedFileUpdateHandle_t)other; - } - - public override int GetHashCode() { - return m_PublishedFileUpdateHandle.GetHashCode(); - } - - public static bool operator ==(PublishedFileUpdateHandle_t x, PublishedFileUpdateHandle_t y) { - return x.m_PublishedFileUpdateHandle == y.m_PublishedFileUpdateHandle; - } - - public static bool operator !=(PublishedFileUpdateHandle_t x, PublishedFileUpdateHandle_t y) { - return !(x == y); - } - - public static explicit operator PublishedFileUpdateHandle_t(ulong value) { - return new PublishedFileUpdateHandle_t(value); - } - - public static explicit operator ulong(PublishedFileUpdateHandle_t that) { - return that.m_PublishedFileUpdateHandle; - } - - public bool Equals(PublishedFileUpdateHandle_t other) { - return m_PublishedFileUpdateHandle == other.m_PublishedFileUpdateHandle; - } - - public int CompareTo(PublishedFileUpdateHandle_t other) { - return m_PublishedFileUpdateHandle.CompareTo(other.m_PublishedFileUpdateHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct PublishedFileUpdateHandle_t : IEquatable, IComparable +{ + public static readonly PublishedFileUpdateHandle_t Invalid = new(0xffffffffffffffff); + public ulong m_PublishedFileUpdateHandle; + + public PublishedFileUpdateHandle_t( ulong value ) + { + m_PublishedFileUpdateHandle = value; + } + + public override string ToString() + { + return m_PublishedFileUpdateHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is PublishedFileUpdateHandle_t && this == (PublishedFileUpdateHandle_t)other; + } + + public override int GetHashCode() + { + return m_PublishedFileUpdateHandle.GetHashCode(); + } + + public static bool operator ==( PublishedFileUpdateHandle_t x, PublishedFileUpdateHandle_t y ) + { + return x.m_PublishedFileUpdateHandle == y.m_PublishedFileUpdateHandle; + } + + public static bool operator !=( PublishedFileUpdateHandle_t x, PublishedFileUpdateHandle_t y ) + { + return !(x == y); + } + + public static explicit operator PublishedFileUpdateHandle_t( ulong value ) + { + return new PublishedFileUpdateHandle_t(value); + } + + public static explicit operator ulong( PublishedFileUpdateHandle_t that ) + { + return that.m_PublishedFileUpdateHandle; + } + + public bool Equals( PublishedFileUpdateHandle_t other ) + { + return m_PublishedFileUpdateHandle == other.m_PublishedFileUpdateHandle; + } + + public int CompareTo( PublishedFileUpdateHandle_t other ) + { + return m_PublishedFileUpdateHandle.CompareTo(other.m_PublishedFileUpdateHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/UGCFileWriteStreamHandle_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/UGCFileWriteStreamHandle_t.cs index e7c2fd079..5b747551c 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/UGCFileWriteStreamHandle_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/UGCFileWriteStreamHandle_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct UGCFileWriteStreamHandle_t : System.IEquatable, System.IComparable { - public static readonly UGCFileWriteStreamHandle_t Invalid = new UGCFileWriteStreamHandle_t(0xffffffffffffffff); - public ulong m_UGCFileWriteStreamHandle; - - public UGCFileWriteStreamHandle_t(ulong value) { - m_UGCFileWriteStreamHandle = value; - } - - public override string ToString() { - return m_UGCFileWriteStreamHandle.ToString(); - } - - public override bool Equals(object other) { - return other is UGCFileWriteStreamHandle_t && this == (UGCFileWriteStreamHandle_t)other; - } - - public override int GetHashCode() { - return m_UGCFileWriteStreamHandle.GetHashCode(); - } - - public static bool operator ==(UGCFileWriteStreamHandle_t x, UGCFileWriteStreamHandle_t y) { - return x.m_UGCFileWriteStreamHandle == y.m_UGCFileWriteStreamHandle; - } - - public static bool operator !=(UGCFileWriteStreamHandle_t x, UGCFileWriteStreamHandle_t y) { - return !(x == y); - } - - public static explicit operator UGCFileWriteStreamHandle_t(ulong value) { - return new UGCFileWriteStreamHandle_t(value); - } - - public static explicit operator ulong(UGCFileWriteStreamHandle_t that) { - return that.m_UGCFileWriteStreamHandle; - } - - public bool Equals(UGCFileWriteStreamHandle_t other) { - return m_UGCFileWriteStreamHandle == other.m_UGCFileWriteStreamHandle; - } - - public int CompareTo(UGCFileWriteStreamHandle_t other) { - return m_UGCFileWriteStreamHandle.CompareTo(other.m_UGCFileWriteStreamHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct UGCFileWriteStreamHandle_t : IEquatable, IComparable +{ + public static readonly UGCFileWriteStreamHandle_t Invalid = new(0xffffffffffffffff); + public ulong m_UGCFileWriteStreamHandle; + + public UGCFileWriteStreamHandle_t( ulong value ) + { + m_UGCFileWriteStreamHandle = value; + } + + public override string ToString() + { + return m_UGCFileWriteStreamHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is UGCFileWriteStreamHandle_t && this == (UGCFileWriteStreamHandle_t)other; + } + + public override int GetHashCode() + { + return m_UGCFileWriteStreamHandle.GetHashCode(); + } + + public static bool operator ==( UGCFileWriteStreamHandle_t x, UGCFileWriteStreamHandle_t y ) + { + return x.m_UGCFileWriteStreamHandle == y.m_UGCFileWriteStreamHandle; + } + + public static bool operator !=( UGCFileWriteStreamHandle_t x, UGCFileWriteStreamHandle_t y ) + { + return !(x == y); + } + + public static explicit operator UGCFileWriteStreamHandle_t( ulong value ) + { + return new UGCFileWriteStreamHandle_t(value); + } + + public static explicit operator ulong( UGCFileWriteStreamHandle_t that ) + { + return that.m_UGCFileWriteStreamHandle; + } + + public bool Equals( UGCFileWriteStreamHandle_t other ) + { + return m_UGCFileWriteStreamHandle == other.m_UGCFileWriteStreamHandle; + } + + public int CompareTo( UGCFileWriteStreamHandle_t other ) + { + return m_UGCFileWriteStreamHandle.CompareTo(other.m_UGCFileWriteStreamHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/UGCHandle_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/UGCHandle_t.cs index 29cdf2aec..071b12714 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/UGCHandle_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamRemoteStorage/UGCHandle_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct UGCHandle_t : System.IEquatable, System.IComparable { - public static readonly UGCHandle_t Invalid = new UGCHandle_t(0xffffffffffffffff); - public ulong m_UGCHandle; - - public UGCHandle_t(ulong value) { - m_UGCHandle = value; - } - - public override string ToString() { - return m_UGCHandle.ToString(); - } - - public override bool Equals(object other) { - return other is UGCHandle_t && this == (UGCHandle_t)other; - } - - public override int GetHashCode() { - return m_UGCHandle.GetHashCode(); - } - - public static bool operator ==(UGCHandle_t x, UGCHandle_t y) { - return x.m_UGCHandle == y.m_UGCHandle; - } - - public static bool operator !=(UGCHandle_t x, UGCHandle_t y) { - return !(x == y); - } - - public static explicit operator UGCHandle_t(ulong value) { - return new UGCHandle_t(value); - } - - public static explicit operator ulong(UGCHandle_t that) { - return that.m_UGCHandle; - } - - public bool Equals(UGCHandle_t other) { - return m_UGCHandle == other.m_UGCHandle; - } - - public int CompareTo(UGCHandle_t other) { - return m_UGCHandle.CompareTo(other.m_UGCHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct UGCHandle_t : IEquatable, IComparable +{ + public static readonly UGCHandle_t Invalid = new(0xffffffffffffffff); + public ulong m_UGCHandle; + + public UGCHandle_t( ulong value ) + { + m_UGCHandle = value; + } + + public override string ToString() + { + return m_UGCHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is UGCHandle_t && this == (UGCHandle_t)other; + } + + public override int GetHashCode() + { + return m_UGCHandle.GetHashCode(); + } + + public static bool operator ==( UGCHandle_t x, UGCHandle_t y ) + { + return x.m_UGCHandle == y.m_UGCHandle; + } + + public static bool operator !=( UGCHandle_t x, UGCHandle_t y ) + { + return !(x == y); + } + + public static explicit operator UGCHandle_t( ulong value ) + { + return new UGCHandle_t(value); + } + + public static explicit operator ulong( UGCHandle_t that ) + { + return that.m_UGCHandle; + } + + public bool Equals( UGCHandle_t other ) + { + return m_UGCHandle == other.m_UGCHandle; + } + + public int CompareTo( UGCHandle_t other ) + { + return m_UGCHandle.CompareTo(other.m_UGCHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamScreenshots/ScreenshotHandle.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamScreenshots/ScreenshotHandle.cs index 8f58e3274..442fee2fe 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamScreenshots/ScreenshotHandle.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamScreenshots/ScreenshotHandle.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct ScreenshotHandle : System.IEquatable, System.IComparable { - public static readonly ScreenshotHandle Invalid = new ScreenshotHandle(0); - public uint m_ScreenshotHandle; - - public ScreenshotHandle(uint value) { - m_ScreenshotHandle = value; - } - - public override string ToString() { - return m_ScreenshotHandle.ToString(); - } - - public override bool Equals(object other) { - return other is ScreenshotHandle && this == (ScreenshotHandle)other; - } - - public override int GetHashCode() { - return m_ScreenshotHandle.GetHashCode(); - } - - public static bool operator ==(ScreenshotHandle x, ScreenshotHandle y) { - return x.m_ScreenshotHandle == y.m_ScreenshotHandle; - } - - public static bool operator !=(ScreenshotHandle x, ScreenshotHandle y) { - return !(x == y); - } - - public static explicit operator ScreenshotHandle(uint value) { - return new ScreenshotHandle(value); - } - - public static explicit operator uint(ScreenshotHandle that) { - return that.m_ScreenshotHandle; - } - - public bool Equals(ScreenshotHandle other) { - return m_ScreenshotHandle == other.m_ScreenshotHandle; - } - - public int CompareTo(ScreenshotHandle other) { - return m_ScreenshotHandle.CompareTo(other.m_ScreenshotHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct ScreenshotHandle : IEquatable, IComparable +{ + public static readonly ScreenshotHandle Invalid = new(0); + public uint m_ScreenshotHandle; + + public ScreenshotHandle( uint value ) + { + m_ScreenshotHandle = value; + } + + public override string ToString() + { + return m_ScreenshotHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is ScreenshotHandle && this == (ScreenshotHandle)other; + } + + public override int GetHashCode() + { + return m_ScreenshotHandle.GetHashCode(); + } + + public static bool operator ==( ScreenshotHandle x, ScreenshotHandle y ) + { + return x.m_ScreenshotHandle == y.m_ScreenshotHandle; + } + + public static bool operator !=( ScreenshotHandle x, ScreenshotHandle y ) + { + return !(x == y); + } + + public static explicit operator ScreenshotHandle( uint value ) + { + return new ScreenshotHandle(value); + } + + public static explicit operator uint( ScreenshotHandle that ) + { + return that.m_ScreenshotHandle; + } + + public bool Equals( ScreenshotHandle other ) + { + return m_ScreenshotHandle == other.m_ScreenshotHandle; + } + + public int CompareTo( ScreenshotHandle other ) + { + return m_ScreenshotHandle.CompareTo(other.m_ScreenshotHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTimeline/TimelineEventHandle_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTimeline/TimelineEventHandle_t.cs index c2ced507a..d921f8eb9 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTimeline/TimelineEventHandle_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTimeline/TimelineEventHandle_t.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct TimelineEventHandle_t : System.IEquatable, System.IComparable { - public ulong m_TimelineEventHandle; - - public TimelineEventHandle_t(ulong value) { - m_TimelineEventHandle = value; - } - - public override string ToString() { - return m_TimelineEventHandle.ToString(); - } - - public override bool Equals(object other) { - return other is TimelineEventHandle_t && this == (TimelineEventHandle_t)other; - } - - public override int GetHashCode() { - return m_TimelineEventHandle.GetHashCode(); - } - - public static bool operator ==(TimelineEventHandle_t x, TimelineEventHandle_t y) { - return x.m_TimelineEventHandle == y.m_TimelineEventHandle; - } - - public static bool operator !=(TimelineEventHandle_t x, TimelineEventHandle_t y) { - return !(x == y); - } - - public static explicit operator TimelineEventHandle_t(ulong value) { - return new TimelineEventHandle_t(value); - } - - public static explicit operator ulong(TimelineEventHandle_t that) { - return that.m_TimelineEventHandle; - } - - public bool Equals(TimelineEventHandle_t other) { - return m_TimelineEventHandle == other.m_TimelineEventHandle; - } - - public int CompareTo(TimelineEventHandle_t other) { - return m_TimelineEventHandle.CompareTo(other.m_TimelineEventHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct TimelineEventHandle_t : IEquatable, IComparable +{ + public ulong m_TimelineEventHandle; + + public TimelineEventHandle_t( ulong value ) + { + m_TimelineEventHandle = value; + } + + public override string ToString() + { + return m_TimelineEventHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is TimelineEventHandle_t && this == (TimelineEventHandle_t)other; + } + + public override int GetHashCode() + { + return m_TimelineEventHandle.GetHashCode(); + } + + public static bool operator ==( TimelineEventHandle_t x, TimelineEventHandle_t y ) + { + return x.m_TimelineEventHandle == y.m_TimelineEventHandle; + } + + public static bool operator !=( TimelineEventHandle_t x, TimelineEventHandle_t y ) + { + return !(x == y); + } + + public static explicit operator TimelineEventHandle_t( ulong value ) + { + return new TimelineEventHandle_t(value); + } + + public static explicit operator ulong( TimelineEventHandle_t that ) + { + return that.m_TimelineEventHandle; + } + + public bool Equals( TimelineEventHandle_t other ) + { + return m_TimelineEventHandle == other.m_TimelineEventHandle; + } + + public int CompareTo( TimelineEventHandle_t other ) + { + return m_TimelineEventHandle.CompareTo(other.m_TimelineEventHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/AccountID_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/AccountID_t.cs index 0aab4ba46..aa4dc7ecb 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/AccountID_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/AccountID_t.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct AccountID_t : System.IEquatable, System.IComparable { - public uint m_AccountID; - - public AccountID_t(uint value) { - m_AccountID = value; - } - - public override string ToString() { - return m_AccountID.ToString(); - } - - public override bool Equals(object other) { - return other is AccountID_t && this == (AccountID_t)other; - } - - public override int GetHashCode() { - return m_AccountID.GetHashCode(); - } - - public static bool operator ==(AccountID_t x, AccountID_t y) { - return x.m_AccountID == y.m_AccountID; - } - - public static bool operator !=(AccountID_t x, AccountID_t y) { - return !(x == y); - } - - public static explicit operator AccountID_t(uint value) { - return new AccountID_t(value); - } - - public static explicit operator uint(AccountID_t that) { - return that.m_AccountID; - } - - public bool Equals(AccountID_t other) { - return m_AccountID == other.m_AccountID; - } - - public int CompareTo(AccountID_t other) { - return m_AccountID.CompareTo(other.m_AccountID); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct AccountID_t : IEquatable, IComparable +{ + public uint m_AccountID; + + public AccountID_t( uint value ) + { + m_AccountID = value; + } + + public override string ToString() + { + return m_AccountID.ToString(); + } + + public override bool Equals( object other ) + { + return other is AccountID_t && this == (AccountID_t)other; + } + + public override int GetHashCode() + { + return m_AccountID.GetHashCode(); + } + + public static bool operator ==( AccountID_t x, AccountID_t y ) + { + return x.m_AccountID == y.m_AccountID; + } + + public static bool operator !=( AccountID_t x, AccountID_t y ) + { + return !(x == y); + } + + public static explicit operator AccountID_t( uint value ) + { + return new AccountID_t(value); + } + + public static explicit operator uint( AccountID_t that ) + { + return that.m_AccountID; + } + + public bool Equals( AccountID_t other ) + { + return m_AccountID == other.m_AccountID; + } + + public int CompareTo( AccountID_t other ) + { + return m_AccountID.CompareTo(other.m_AccountID); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/AppId_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/AppId_t.cs index ccd810237..05ab7c368 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/AppId_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/AppId_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct AppId_t : System.IEquatable, System.IComparable { - public static readonly AppId_t Invalid = new AppId_t(0x0); - public uint m_AppId; - - public AppId_t(uint value) { - m_AppId = value; - } - - public override string ToString() { - return m_AppId.ToString(); - } - - public override bool Equals(object other) { - return other is AppId_t && this == (AppId_t)other; - } - - public override int GetHashCode() { - return m_AppId.GetHashCode(); - } - - public static bool operator ==(AppId_t x, AppId_t y) { - return x.m_AppId == y.m_AppId; - } - - public static bool operator !=(AppId_t x, AppId_t y) { - return !(x == y); - } - - public static explicit operator AppId_t(uint value) { - return new AppId_t(value); - } - - public static explicit operator uint(AppId_t that) { - return that.m_AppId; - } - - public bool Equals(AppId_t other) { - return m_AppId == other.m_AppId; - } - - public int CompareTo(AppId_t other) { - return m_AppId.CompareTo(other.m_AppId); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct AppId_t : IEquatable, IComparable +{ + public static readonly AppId_t Invalid = new(0x0); + public uint m_AppId; + + public AppId_t( uint value ) + { + m_AppId = value; + } + + public override string ToString() + { + return m_AppId.ToString(); + } + + public override bool Equals( object other ) + { + return other is AppId_t && this == (AppId_t)other; + } + + public override int GetHashCode() + { + return m_AppId.GetHashCode(); + } + + public static bool operator ==( AppId_t x, AppId_t y ) + { + return x.m_AppId == y.m_AppId; + } + + public static bool operator !=( AppId_t x, AppId_t y ) + { + return !(x == y); + } + + public static explicit operator AppId_t( uint value ) + { + return new AppId_t(value); + } + + public static explicit operator uint( AppId_t that ) + { + return that.m_AppId; + } + + public bool Equals( AppId_t other ) + { + return m_AppId == other.m_AppId; + } + + public int CompareTo( AppId_t other ) + { + return m_AppId.CompareTo(other.m_AppId); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/DepotId_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/DepotId_t.cs index 0b7687bda..0f8395526 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/DepotId_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/DepotId_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct DepotId_t : System.IEquatable, System.IComparable { - public static readonly DepotId_t Invalid = new DepotId_t(0x0); - public uint m_DepotId; - - public DepotId_t(uint value) { - m_DepotId = value; - } - - public override string ToString() { - return m_DepotId.ToString(); - } - - public override bool Equals(object other) { - return other is DepotId_t && this == (DepotId_t)other; - } - - public override int GetHashCode() { - return m_DepotId.GetHashCode(); - } - - public static bool operator ==(DepotId_t x, DepotId_t y) { - return x.m_DepotId == y.m_DepotId; - } - - public static bool operator !=(DepotId_t x, DepotId_t y) { - return !(x == y); - } - - public static explicit operator DepotId_t(uint value) { - return new DepotId_t(value); - } - - public static explicit operator uint(DepotId_t that) { - return that.m_DepotId; - } - - public bool Equals(DepotId_t other) { - return m_DepotId == other.m_DepotId; - } - - public int CompareTo(DepotId_t other) { - return m_DepotId.CompareTo(other.m_DepotId); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct DepotId_t : IEquatable, IComparable +{ + public static readonly DepotId_t Invalid = new(0x0); + public uint m_DepotId; + + public DepotId_t( uint value ) + { + m_DepotId = value; + } + + public override string ToString() + { + return m_DepotId.ToString(); + } + + public override bool Equals( object other ) + { + return other is DepotId_t && this == (DepotId_t)other; + } + + public override int GetHashCode() + { + return m_DepotId.GetHashCode(); + } + + public static bool operator ==( DepotId_t x, DepotId_t y ) + { + return x.m_DepotId == y.m_DepotId; + } + + public static bool operator !=( DepotId_t x, DepotId_t y ) + { + return !(x == y); + } + + public static explicit operator DepotId_t( uint value ) + { + return new DepotId_t(value); + } + + public static explicit operator uint( DepotId_t that ) + { + return that.m_DepotId; + } + + public bool Equals( DepotId_t other ) + { + return m_DepotId == other.m_DepotId; + } + + public int CompareTo( DepotId_t other ) + { + return m_DepotId.CompareTo(other.m_DepotId); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/PartyBeaconID_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/PartyBeaconID_t.cs index c5cdcb298..cb2e1ea0d 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/PartyBeaconID_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/PartyBeaconID_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct PartyBeaconID_t : System.IEquatable, System.IComparable { - public static readonly PartyBeaconID_t Invalid = new PartyBeaconID_t(0); - public ulong m_PartyBeaconID; - - public PartyBeaconID_t(ulong value) { - m_PartyBeaconID = value; - } - - public override string ToString() { - return m_PartyBeaconID.ToString(); - } - - public override bool Equals(object other) { - return other is PartyBeaconID_t && this == (PartyBeaconID_t)other; - } - - public override int GetHashCode() { - return m_PartyBeaconID.GetHashCode(); - } - - public static bool operator ==(PartyBeaconID_t x, PartyBeaconID_t y) { - return x.m_PartyBeaconID == y.m_PartyBeaconID; - } - - public static bool operator !=(PartyBeaconID_t x, PartyBeaconID_t y) { - return !(x == y); - } - - public static explicit operator PartyBeaconID_t(ulong value) { - return new PartyBeaconID_t(value); - } - - public static explicit operator ulong(PartyBeaconID_t that) { - return that.m_PartyBeaconID; - } - - public bool Equals(PartyBeaconID_t other) { - return m_PartyBeaconID == other.m_PartyBeaconID; - } - - public int CompareTo(PartyBeaconID_t other) { - return m_PartyBeaconID.CompareTo(other.m_PartyBeaconID); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct PartyBeaconID_t : IEquatable, IComparable +{ + public static readonly PartyBeaconID_t Invalid = new(0); + public ulong m_PartyBeaconID; + + public PartyBeaconID_t( ulong value ) + { + m_PartyBeaconID = value; + } + + public override string ToString() + { + return m_PartyBeaconID.ToString(); + } + + public override bool Equals( object other ) + { + return other is PartyBeaconID_t && this == (PartyBeaconID_t)other; + } + + public override int GetHashCode() + { + return m_PartyBeaconID.GetHashCode(); + } + + public static bool operator ==( PartyBeaconID_t x, PartyBeaconID_t y ) + { + return x.m_PartyBeaconID == y.m_PartyBeaconID; + } + + public static bool operator !=( PartyBeaconID_t x, PartyBeaconID_t y ) + { + return !(x == y); + } + + public static explicit operator PartyBeaconID_t( ulong value ) + { + return new PartyBeaconID_t(value); + } + + public static explicit operator ulong( PartyBeaconID_t that ) + { + return that.m_PartyBeaconID; + } + + public bool Equals( PartyBeaconID_t other ) + { + return m_PartyBeaconID == other.m_PartyBeaconID; + } + + public int CompareTo( PartyBeaconID_t other ) + { + return m_PartyBeaconID.CompareTo(other.m_PartyBeaconID); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/RTime32.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/RTime32.cs index 299a80b5b..b31f0eae8 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/RTime32.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/RTime32.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct RTime32 : System.IEquatable, System.IComparable { - public uint m_RTime32; - - public RTime32(uint value) { - m_RTime32 = value; - } - - public override string ToString() { - return m_RTime32.ToString(); - } - - public override bool Equals(object other) { - return other is RTime32 && this == (RTime32)other; - } - - public override int GetHashCode() { - return m_RTime32.GetHashCode(); - } - - public static bool operator ==(RTime32 x, RTime32 y) { - return x.m_RTime32 == y.m_RTime32; - } - - public static bool operator !=(RTime32 x, RTime32 y) { - return !(x == y); - } - - public static explicit operator RTime32(uint value) { - return new RTime32(value); - } - - public static explicit operator uint(RTime32 that) { - return that.m_RTime32; - } - - public bool Equals(RTime32 other) { - return m_RTime32 == other.m_RTime32; - } - - public int CompareTo(RTime32 other) { - return m_RTime32.CompareTo(other.m_RTime32); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct RTime32 : IEquatable, IComparable +{ + public uint m_RTime32; + + public RTime32( uint value ) + { + m_RTime32 = value; + } + + public override string ToString() + { + return m_RTime32.ToString(); + } + + public override bool Equals( object other ) + { + return other is RTime32 && this == (RTime32)other; + } + + public override int GetHashCode() + { + return m_RTime32.GetHashCode(); + } + + public static bool operator ==( RTime32 x, RTime32 y ) + { + return x.m_RTime32 == y.m_RTime32; + } + + public static bool operator !=( RTime32 x, RTime32 y ) + { + return !(x == y); + } + + public static explicit operator RTime32( uint value ) + { + return new RTime32(value); + } + + public static explicit operator uint( RTime32 that ) + { + return that.m_RTime32; + } + + public bool Equals( RTime32 other ) + { + return m_RTime32 == other.m_RTime32; + } + + public int CompareTo( RTime32 other ) + { + return m_RTime32.CompareTo(other.m_RTime32); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/SteamAPICall_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/SteamAPICall_t.cs index febb5ae83..70bf7a859 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/SteamAPICall_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/SteamAPICall_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct SteamAPICall_t : System.IEquatable, System.IComparable { - public static readonly SteamAPICall_t Invalid = new SteamAPICall_t(0x0); - public ulong m_SteamAPICall; - - public SteamAPICall_t(ulong value) { - m_SteamAPICall = value; - } - - public override string ToString() { - return m_SteamAPICall.ToString(); - } - - public override bool Equals(object other) { - return other is SteamAPICall_t && this == (SteamAPICall_t)other; - } - - public override int GetHashCode() { - return m_SteamAPICall.GetHashCode(); - } - - public static bool operator ==(SteamAPICall_t x, SteamAPICall_t y) { - return x.m_SteamAPICall == y.m_SteamAPICall; - } - - public static bool operator !=(SteamAPICall_t x, SteamAPICall_t y) { - return !(x == y); - } - - public static explicit operator SteamAPICall_t(ulong value) { - return new SteamAPICall_t(value); - } - - public static explicit operator ulong(SteamAPICall_t that) { - return that.m_SteamAPICall; - } - - public bool Equals(SteamAPICall_t other) { - return m_SteamAPICall == other.m_SteamAPICall; - } - - public int CompareTo(SteamAPICall_t other) { - return m_SteamAPICall.CompareTo(other.m_SteamAPICall); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct SteamAPICall_t : IEquatable, IComparable +{ + public static readonly SteamAPICall_t Invalid = new(0x0); + public ulong m_SteamAPICall; + + public SteamAPICall_t( ulong value ) + { + m_SteamAPICall = value; + } + + public override string ToString() + { + return m_SteamAPICall.ToString(); + } + + public override bool Equals( object other ) + { + return other is SteamAPICall_t && this == (SteamAPICall_t)other; + } + + public override int GetHashCode() + { + return m_SteamAPICall.GetHashCode(); + } + + public static bool operator ==( SteamAPICall_t x, SteamAPICall_t y ) + { + return x.m_SteamAPICall == y.m_SteamAPICall; + } + + public static bool operator !=( SteamAPICall_t x, SteamAPICall_t y ) + { + return !(x == y); + } + + public static explicit operator SteamAPICall_t( ulong value ) + { + return new SteamAPICall_t(value); + } + + public static explicit operator ulong( SteamAPICall_t that ) + { + return that.m_SteamAPICall; + } + + public bool Equals( SteamAPICall_t other ) + { + return m_SteamAPICall == other.m_SteamAPICall; + } + + public int CompareTo( SteamAPICall_t other ) + { + return m_SteamAPICall.CompareTo(other.m_SteamAPICall); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/SteamIPAddress_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/SteamIPAddress_t.cs index 63bfa0ef1..a7b5d8fed 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/SteamIPAddress_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamTypes/SteamIPAddress_t.cs @@ -1,84 +1,141 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +[StructLayout(LayoutKind.Sequential, Pack = 1)] +public struct SteamIPAddress_t { - [System.Serializable] - [StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct SteamIPAddress_t - { - private long m_ip0; - private long m_ip1; + private readonly long m_ip0; + private readonly long m_ip1; + + private readonly ESteamIPType m_eType; - private ESteamIPType m_eType; + public SteamIPAddress_t( System.Net.IPAddress iPAddress ) + { + var bytes = iPAddress.GetAddressBytes(); + switch (iPAddress.AddressFamily) + { + case System.Net.Sockets.AddressFamily.InterNetwork: + { + if (bytes.Length != 4) + { + throw new TypeInitializationException("SteamIPAddress_t: Unexpected byte length for Ipv4." + bytes.Length, null); + } - public SteamIPAddress_t(System.Net.IPAddress iPAddress) - { - byte[] bytes = iPAddress.GetAddressBytes(); - switch (iPAddress.AddressFamily) - { - case System.Net.Sockets.AddressFamily.InterNetwork: - { - if (bytes.Length != 4) - { - throw new System.TypeInitializationException("SteamIPAddress_t: Unexpected byte length for Ipv4." + bytes.Length, null); - } + m_ip0 = (bytes[0] << 24) | (bytes[1] << 16) | (bytes[2] << 8) | bytes[3]; + m_ip1 = 0; + m_eType = ESteamIPType.k_ESteamIPTypeIPv4; + break; + } + case System.Net.Sockets.AddressFamily.InterNetworkV6: + { + if (bytes.Length != 16) + { + throw new TypeInitializationException("SteamIPAddress_t: Unexpected byte length for Ipv6: " + bytes.Length, null); + } - m_ip0 = (bytes[0] << 24) | (bytes[1] << 16) | (bytes[2] << 8) | bytes[3]; - m_ip1 = 0; - m_eType = ESteamIPType.k_ESteamIPTypeIPv4; - break; - } - case System.Net.Sockets.AddressFamily.InterNetworkV6: - { - if (bytes.Length != 16) - { - throw new System.TypeInitializationException("SteamIPAddress_t: Unexpected byte length for Ipv6: " + bytes.Length, null); - } + m_ip0 = (bytes[1] << 56) | (bytes[0] << 48) | (bytes[3] << 40) | (bytes[2] << 32) | (bytes[5] << 24) | (bytes[4] << 16) | (bytes[7] << 8) | bytes[6]; + m_ip1 = (bytes[9] << 56) | (bytes[8] << 48) | (bytes[11] << 40) | (bytes[10] << 32) | (bytes[13] << 24) | (bytes[12] << 16) | (bytes[15] << 8) | bytes[14]; + m_eType = ESteamIPType.k_ESteamIPTypeIPv6; + break; + } - m_ip0 = (bytes[1] << 56) | (bytes[0] << 48) | (bytes[3] << 40) | (bytes[2] << 32) | (bytes[5] << 24) | (bytes[4] << 16) | (bytes[7] << 8) | bytes[6]; - m_ip1 = (bytes[9] << 56) | (bytes[8] << 48) | (bytes[11] << 40) | (bytes[10] << 32) | (bytes[13] << 24) | (bytes[12] << 16) | (bytes[15] << 8) | bytes[14]; - m_eType = ESteamIPType.k_ESteamIPTypeIPv6; - break; - } - default: - { - throw new System.TypeInitializationException("SteamIPAddress_t: Unexpected address family " + iPAddress.AddressFamily, null); - } - } - } + case System.Net.Sockets.AddressFamily.Unknown: + break; + case System.Net.Sockets.AddressFamily.Unspecified: + break; + case System.Net.Sockets.AddressFamily.Unix: + break; + case System.Net.Sockets.AddressFamily.ImpLink: + break; + case System.Net.Sockets.AddressFamily.Pup: + break; + case System.Net.Sockets.AddressFamily.Chaos: + break; + case System.Net.Sockets.AddressFamily.Ipx: + break; + case System.Net.Sockets.AddressFamily.Iso: + break; + case System.Net.Sockets.AddressFamily.Ecma: + break; + case System.Net.Sockets.AddressFamily.DataKit: + break; + case System.Net.Sockets.AddressFamily.Ccitt: + break; + case System.Net.Sockets.AddressFamily.Sna: + break; + case System.Net.Sockets.AddressFamily.DecNet: + break; + case System.Net.Sockets.AddressFamily.DataLink: + break; + case System.Net.Sockets.AddressFamily.Lat: + break; + case System.Net.Sockets.AddressFamily.HyperChannel: + break; + case System.Net.Sockets.AddressFamily.AppleTalk: + break; + case System.Net.Sockets.AddressFamily.NetBios: + break; + case System.Net.Sockets.AddressFamily.VoiceView: + break; + case System.Net.Sockets.AddressFamily.FireFox: + break; + case System.Net.Sockets.AddressFamily.Banyan: + break; + case System.Net.Sockets.AddressFamily.Atm: + break; + case System.Net.Sockets.AddressFamily.Cluster: + break; + case System.Net.Sockets.AddressFamily.Ieee12844: + break; + case System.Net.Sockets.AddressFamily.Irda: + break; + case System.Net.Sockets.AddressFamily.NetworkDesigners: + break; + case System.Net.Sockets.AddressFamily.Max: + break; + case System.Net.Sockets.AddressFamily.Packet: + break; + case System.Net.Sockets.AddressFamily.ControllerAreaNetwork: + break; + default: + { + throw new TypeInitializationException("SteamIPAddress_t: Unexpected address family " + iPAddress.AddressFamily, null); + } + } + } - public System.Net.IPAddress ToIPAddress() - { - if (m_eType == ESteamIPType.k_ESteamIPTypeIPv4) - { - byte[] bytes = System.BitConverter.GetBytes(m_ip0); - return new System.Net.IPAddress(new byte[] { bytes[3], bytes[2], bytes[1], bytes[0] }); - } - else - { - byte[] bytes = new byte[16]; - System.BitConverter.GetBytes(m_ip0).CopyTo(bytes, 0); - System.BitConverter.GetBytes(m_ip1).CopyTo(bytes, 8); - return new System.Net.IPAddress(bytes); - } - } + public System.Net.IPAddress ToIPAddress() + { + if (m_eType == ESteamIPType.k_ESteamIPTypeIPv4) + { + var bytes = BitConverter.GetBytes(m_ip0); + return new System.Net.IPAddress(new byte[] { bytes[3], bytes[2], bytes[1], bytes[0] }); + } + else + { + var bytes = new byte[16]; + BitConverter.GetBytes(m_ip0).CopyTo(bytes, 0); + BitConverter.GetBytes(m_ip1).CopyTo(bytes, 8); + return new System.Net.IPAddress(bytes); + } + } - public override string ToString() - { - return ToIPAddress().ToString(); - } + public override string ToString() + { + return ToIPAddress().ToString(); + } - public ESteamIPType GetIPType() - { - return m_eType; - } + public ESteamIPType GetIPType() + { + return m_eType; + } - public bool IsSet() - { - return m_ip0 != 0 || m_ip1 != 0; - } - } + public bool IsSet() + { + return m_ip0 != 0 || m_ip1 != 0; + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUGC/UGCQueryHandle_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUGC/UGCQueryHandle_t.cs index bb6ed8d53..5f6902462 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUGC/UGCQueryHandle_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUGC/UGCQueryHandle_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct UGCQueryHandle_t : System.IEquatable, System.IComparable { - public static readonly UGCQueryHandle_t Invalid = new UGCQueryHandle_t(0xffffffffffffffff); - public ulong m_UGCQueryHandle; - - public UGCQueryHandle_t(ulong value) { - m_UGCQueryHandle = value; - } - - public override string ToString() { - return m_UGCQueryHandle.ToString(); - } - - public override bool Equals(object other) { - return other is UGCQueryHandle_t && this == (UGCQueryHandle_t)other; - } - - public override int GetHashCode() { - return m_UGCQueryHandle.GetHashCode(); - } - - public static bool operator ==(UGCQueryHandle_t x, UGCQueryHandle_t y) { - return x.m_UGCQueryHandle == y.m_UGCQueryHandle; - } - - public static bool operator !=(UGCQueryHandle_t x, UGCQueryHandle_t y) { - return !(x == y); - } - - public static explicit operator UGCQueryHandle_t(ulong value) { - return new UGCQueryHandle_t(value); - } - - public static explicit operator ulong(UGCQueryHandle_t that) { - return that.m_UGCQueryHandle; - } - - public bool Equals(UGCQueryHandle_t other) { - return m_UGCQueryHandle == other.m_UGCQueryHandle; - } - - public int CompareTo(UGCQueryHandle_t other) { - return m_UGCQueryHandle.CompareTo(other.m_UGCQueryHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct UGCQueryHandle_t : IEquatable, IComparable +{ + public static readonly UGCQueryHandle_t Invalid = new(0xffffffffffffffff); + public ulong m_UGCQueryHandle; + + public UGCQueryHandle_t( ulong value ) + { + m_UGCQueryHandle = value; + } + + public override string ToString() + { + return m_UGCQueryHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is UGCQueryHandle_t && this == (UGCQueryHandle_t)other; + } + + public override int GetHashCode() + { + return m_UGCQueryHandle.GetHashCode(); + } + + public static bool operator ==( UGCQueryHandle_t x, UGCQueryHandle_t y ) + { + return x.m_UGCQueryHandle == y.m_UGCQueryHandle; + } + + public static bool operator !=( UGCQueryHandle_t x, UGCQueryHandle_t y ) + { + return !(x == y); + } + + public static explicit operator UGCQueryHandle_t( ulong value ) + { + return new UGCQueryHandle_t(value); + } + + public static explicit operator ulong( UGCQueryHandle_t that ) + { + return that.m_UGCQueryHandle; + } + + public bool Equals( UGCQueryHandle_t other ) + { + return m_UGCQueryHandle == other.m_UGCQueryHandle; + } + + public int CompareTo( UGCQueryHandle_t other ) + { + return m_UGCQueryHandle.CompareTo(other.m_UGCQueryHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUGC/UGCUpdateHandle_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUGC/UGCUpdateHandle_t.cs index a77a9bedc..a20b7a2e2 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUGC/UGCUpdateHandle_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUGC/UGCUpdateHandle_t.cs @@ -1,52 +1,60 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct UGCUpdateHandle_t : System.IEquatable, System.IComparable { - public static readonly UGCUpdateHandle_t Invalid = new UGCUpdateHandle_t(0xffffffffffffffff); - public ulong m_UGCUpdateHandle; - - public UGCUpdateHandle_t(ulong value) { - m_UGCUpdateHandle = value; - } - - public override string ToString() { - return m_UGCUpdateHandle.ToString(); - } - - public override bool Equals(object other) { - return other is UGCUpdateHandle_t && this == (UGCUpdateHandle_t)other; - } - - public override int GetHashCode() { - return m_UGCUpdateHandle.GetHashCode(); - } - - public static bool operator ==(UGCUpdateHandle_t x, UGCUpdateHandle_t y) { - return x.m_UGCUpdateHandle == y.m_UGCUpdateHandle; - } - - public static bool operator !=(UGCUpdateHandle_t x, UGCUpdateHandle_t y) { - return !(x == y); - } - - public static explicit operator UGCUpdateHandle_t(ulong value) { - return new UGCUpdateHandle_t(value); - } - - public static explicit operator ulong(UGCUpdateHandle_t that) { - return that.m_UGCUpdateHandle; - } - - public bool Equals(UGCUpdateHandle_t other) { - return m_UGCUpdateHandle == other.m_UGCUpdateHandle; - } - - public int CompareTo(UGCUpdateHandle_t other) { - return m_UGCUpdateHandle.CompareTo(other.m_UGCUpdateHandle); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct UGCUpdateHandle_t : IEquatable, IComparable +{ + public static readonly UGCUpdateHandle_t Invalid = new(0xffffffffffffffff); + public ulong m_UGCUpdateHandle; + + public UGCUpdateHandle_t( ulong value ) + { + m_UGCUpdateHandle = value; + } + + public override string ToString() + { + return m_UGCUpdateHandle.ToString(); + } + + public override bool Equals( object other ) + { + return other is UGCUpdateHandle_t && this == (UGCUpdateHandle_t)other; + } + + public override int GetHashCode() + { + return m_UGCUpdateHandle.GetHashCode(); + } + + public static bool operator ==( UGCUpdateHandle_t x, UGCUpdateHandle_t y ) + { + return x.m_UGCUpdateHandle == y.m_UGCUpdateHandle; + } + + public static bool operator !=( UGCUpdateHandle_t x, UGCUpdateHandle_t y ) + { + return !(x == y); + } + + public static explicit operator UGCUpdateHandle_t( ulong value ) + { + return new UGCUpdateHandle_t(value); + } + + public static explicit operator ulong( UGCUpdateHandle_t that ) + { + return that.m_UGCUpdateHandle; + } + + public bool Equals( UGCUpdateHandle_t other ) + { + return m_UGCUpdateHandle == other.m_UGCUpdateHandle; + } + + public int CompareTo( UGCUpdateHandle_t other ) + { + return m_UGCUpdateHandle.CompareTo(other.m_UGCUpdateHandle); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUserStats/SteamLeaderboardEntries_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUserStats/SteamLeaderboardEntries_t.cs index a0374d804..3a053572b 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUserStats/SteamLeaderboardEntries_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUserStats/SteamLeaderboardEntries_t.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct SteamLeaderboardEntries_t : System.IEquatable, System.IComparable { - public ulong m_SteamLeaderboardEntries; - - public SteamLeaderboardEntries_t(ulong value) { - m_SteamLeaderboardEntries = value; - } - - public override string ToString() { - return m_SteamLeaderboardEntries.ToString(); - } - - public override bool Equals(object other) { - return other is SteamLeaderboardEntries_t && this == (SteamLeaderboardEntries_t)other; - } - - public override int GetHashCode() { - return m_SteamLeaderboardEntries.GetHashCode(); - } - - public static bool operator ==(SteamLeaderboardEntries_t x, SteamLeaderboardEntries_t y) { - return x.m_SteamLeaderboardEntries == y.m_SteamLeaderboardEntries; - } - - public static bool operator !=(SteamLeaderboardEntries_t x, SteamLeaderboardEntries_t y) { - return !(x == y); - } - - public static explicit operator SteamLeaderboardEntries_t(ulong value) { - return new SteamLeaderboardEntries_t(value); - } - - public static explicit operator ulong(SteamLeaderboardEntries_t that) { - return that.m_SteamLeaderboardEntries; - } - - public bool Equals(SteamLeaderboardEntries_t other) { - return m_SteamLeaderboardEntries == other.m_SteamLeaderboardEntries; - } - - public int CompareTo(SteamLeaderboardEntries_t other) { - return m_SteamLeaderboardEntries.CompareTo(other.m_SteamLeaderboardEntries); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct SteamLeaderboardEntries_t : IEquatable, IComparable +{ + public ulong m_SteamLeaderboardEntries; + + public SteamLeaderboardEntries_t( ulong value ) + { + m_SteamLeaderboardEntries = value; + } + + public override string ToString() + { + return m_SteamLeaderboardEntries.ToString(); + } + + public override bool Equals( object other ) + { + return other is SteamLeaderboardEntries_t && this == (SteamLeaderboardEntries_t)other; + } + + public override int GetHashCode() + { + return m_SteamLeaderboardEntries.GetHashCode(); + } + + public static bool operator ==( SteamLeaderboardEntries_t x, SteamLeaderboardEntries_t y ) + { + return x.m_SteamLeaderboardEntries == y.m_SteamLeaderboardEntries; + } + + public static bool operator !=( SteamLeaderboardEntries_t x, SteamLeaderboardEntries_t y ) + { + return !(x == y); + } + + public static explicit operator SteamLeaderboardEntries_t( ulong value ) + { + return new SteamLeaderboardEntries_t(value); + } + + public static explicit operator ulong( SteamLeaderboardEntries_t that ) + { + return that.m_SteamLeaderboardEntries; + } + + public bool Equals( SteamLeaderboardEntries_t other ) + { + return m_SteamLeaderboardEntries == other.m_SteamLeaderboardEntries; + } + + public int CompareTo( SteamLeaderboardEntries_t other ) + { + return m_SteamLeaderboardEntries.CompareTo(other.m_SteamLeaderboardEntries); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUserStats/SteamLeaderboard_t.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUserStats/SteamLeaderboard_t.cs index d7dc8f4f4..3e97f1259 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUserStats/SteamLeaderboard_t.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/SteamUserStats/SteamLeaderboard_t.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct SteamLeaderboard_t : System.IEquatable, System.IComparable { - public ulong m_SteamLeaderboard; - - public SteamLeaderboard_t(ulong value) { - m_SteamLeaderboard = value; - } - - public override string ToString() { - return m_SteamLeaderboard.ToString(); - } - - public override bool Equals(object other) { - return other is SteamLeaderboard_t && this == (SteamLeaderboard_t)other; - } - - public override int GetHashCode() { - return m_SteamLeaderboard.GetHashCode(); - } - - public static bool operator ==(SteamLeaderboard_t x, SteamLeaderboard_t y) { - return x.m_SteamLeaderboard == y.m_SteamLeaderboard; - } - - public static bool operator !=(SteamLeaderboard_t x, SteamLeaderboard_t y) { - return !(x == y); - } - - public static explicit operator SteamLeaderboard_t(ulong value) { - return new SteamLeaderboard_t(value); - } - - public static explicit operator ulong(SteamLeaderboard_t that) { - return that.m_SteamLeaderboard; - } - - public bool Equals(SteamLeaderboard_t other) { - return m_SteamLeaderboard == other.m_SteamLeaderboard; - } - - public int CompareTo(SteamLeaderboard_t other) { - return m_SteamLeaderboard.CompareTo(other.m_SteamLeaderboard); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct SteamLeaderboard_t : IEquatable, IComparable +{ + public ulong m_SteamLeaderboard; + + public SteamLeaderboard_t( ulong value ) + { + m_SteamLeaderboard = value; + } + + public override string ToString() + { + return m_SteamLeaderboard.ToString(); + } + + public override bool Equals( object other ) + { + return other is SteamLeaderboard_t && this == (SteamLeaderboard_t)other; + } + + public override int GetHashCode() + { + return m_SteamLeaderboard.GetHashCode(); + } + + public static bool operator ==( SteamLeaderboard_t x, SteamLeaderboard_t y ) + { + return x.m_SteamLeaderboard == y.m_SteamLeaderboard; + } + + public static bool operator !=( SteamLeaderboard_t x, SteamLeaderboard_t y ) + { + return !(x == y); + } + + public static explicit operator SteamLeaderboard_t( ulong value ) + { + return new SteamLeaderboard_t(value); + } + + public static explicit operator ulong( SteamLeaderboard_t that ) + { + return that.m_SteamLeaderboard; + } + + public bool Equals( SteamLeaderboard_t other ) + { + return m_SteamLeaderboard == other.m_SteamLeaderboard; + } + + public int CompareTo( SteamLeaderboard_t other ) + { + return m_SteamLeaderboard.CompareTo(other.m_SteamLeaderboard); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/Steam_api_common/HSteamPipe.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/Steam_api_common/HSteamPipe.cs index 87dc4d5b9..9e1cf3ddb 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/Steam_api_common/HSteamPipe.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/Steam_api_common/HSteamPipe.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct HSteamPipe : System.IEquatable, System.IComparable { - public int m_HSteamPipe; - - public HSteamPipe(int value) { - m_HSteamPipe = value; - } - - public override string ToString() { - return m_HSteamPipe.ToString(); - } - - public override bool Equals(object other) { - return other is HSteamPipe && this == (HSteamPipe)other; - } - - public override int GetHashCode() { - return m_HSteamPipe.GetHashCode(); - } - - public static bool operator ==(HSteamPipe x, HSteamPipe y) { - return x.m_HSteamPipe == y.m_HSteamPipe; - } - - public static bool operator !=(HSteamPipe x, HSteamPipe y) { - return !(x == y); - } - - public static explicit operator HSteamPipe(int value) { - return new HSteamPipe(value); - } - - public static explicit operator int(HSteamPipe that) { - return that.m_HSteamPipe; - } - - public bool Equals(HSteamPipe other) { - return m_HSteamPipe == other.m_HSteamPipe; - } - - public int CompareTo(HSteamPipe other) { - return m_HSteamPipe.CompareTo(other.m_HSteamPipe); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct HSteamPipe : IEquatable, IComparable +{ + public int m_HSteamPipe; + + public HSteamPipe( int value ) + { + m_HSteamPipe = value; + } + + public override string ToString() + { + return m_HSteamPipe.ToString(); + } + + public override bool Equals( object other ) + { + return other is HSteamPipe && this == (HSteamPipe)other; + } + + public override int GetHashCode() + { + return m_HSteamPipe.GetHashCode(); + } + + public static bool operator ==( HSteamPipe x, HSteamPipe y ) + { + return x.m_HSteamPipe == y.m_HSteamPipe; + } + + public static bool operator !=( HSteamPipe x, HSteamPipe y ) + { + return !(x == y); + } + + public static explicit operator HSteamPipe( int value ) + { + return new HSteamPipe(value); + } + + public static explicit operator int( HSteamPipe that ) + { + return that.m_HSteamPipe; + } + + public bool Equals( HSteamPipe other ) + { + return m_HSteamPipe == other.m_HSteamPipe; + } + + public int CompareTo( HSteamPipe other ) + { + return m_HSteamPipe.CompareTo(other.m_HSteamPipe); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/Steam_api_common/HSteamUser.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/Steam_api_common/HSteamUser.cs index 76aa42929..fe9e7faf5 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/Types/Steam_api_common/HSteamUser.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/Types/Steam_api_common/HSteamUser.cs @@ -1,51 +1,59 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - [System.Serializable] - public struct HSteamUser : System.IEquatable, System.IComparable { - public int m_HSteamUser; - - public HSteamUser(int value) { - m_HSteamUser = value; - } - - public override string ToString() { - return m_HSteamUser.ToString(); - } - - public override bool Equals(object other) { - return other is HSteamUser && this == (HSteamUser)other; - } - - public override int GetHashCode() { - return m_HSteamUser.GetHashCode(); - } - - public static bool operator ==(HSteamUser x, HSteamUser y) { - return x.m_HSteamUser == y.m_HSteamUser; - } - - public static bool operator !=(HSteamUser x, HSteamUser y) { - return !(x == y); - } - - public static explicit operator HSteamUser(int value) { - return new HSteamUser(value); - } - - public static explicit operator int(HSteamUser that) { - return that.m_HSteamUser; - } - - public bool Equals(HSteamUser other) { - return m_HSteamUser == other.m_HSteamUser; - } - - public int CompareTo(HSteamUser other) { - return m_HSteamUser.CompareTo(other.m_HSteamUser); - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +[Serializable] +public struct HSteamUser : IEquatable, IComparable +{ + public int m_HSteamUser; + + public HSteamUser( int value ) + { + m_HSteamUser = value; + } + + public override string ToString() + { + return m_HSteamUser.ToString(); + } + + public override bool Equals( object other ) + { + return other is HSteamUser && this == (HSteamUser)other; + } + + public override int GetHashCode() + { + return m_HSteamUser.GetHashCode(); + } + + public static bool operator ==( HSteamUser x, HSteamUser y ) + { + return x.m_HSteamUser == y.m_HSteamUser; + } + + public static bool operator !=( HSteamUser x, HSteamUser y ) + { + return !(x == y); + } + + public static explicit operator HSteamUser( int value ) + { + return new HSteamUser(value); + } + + public static explicit operator int( HSteamUser that ) + { + return that.m_HSteamUser; + } + + public bool Equals( HSteamUser other ) + { + return m_HSteamUser == other.m_HSteamUser; + } + + public int CompareTo( HSteamUser other ) + { + return m_HSteamUser.CompareTo(other.m_HSteamUser); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserver.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserver.cs index ef0a7e5b2..23daedd64 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserver.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserver.cs @@ -1,437 +1,488 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - public static class SteamGameServer { - /// - /// / Game product identifier. This is currently used by the master server for version checking purposes. - /// / It's a required field, but will eventually will go away, and the AppID will be used for this purpose. - /// - public static void SetProduct(string pszProduct) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszProduct2 = new InteropHelp.UTF8StringHandle(pszProduct)) { - NativeMethods.ISteamGameServer_SetProduct(CSteamGameServerAPIContext.GetSteamGameServer(), pszProduct2); - } - } - - /// - /// / Description of the game. This is a required field and is displayed in the steam server browser....for now. - /// / This is a required field, but it will go away eventually, as the data should be determined from the AppID. - /// - public static void SetGameDescription(string pszGameDescription) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszGameDescription2 = new InteropHelp.UTF8StringHandle(pszGameDescription)) { - NativeMethods.ISteamGameServer_SetGameDescription(CSteamGameServerAPIContext.GetSteamGameServer(), pszGameDescription2); - } - } - - /// - /// / If your game is a "mod," pass the string that identifies it. The default is an empty string, meaning - /// / this application is the original game, not a mod. - /// / - /// / @see k_cbMaxGameServerGameDir - /// - public static void SetModDir(string pszModDir) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszModDir2 = new InteropHelp.UTF8StringHandle(pszModDir)) { - NativeMethods.ISteamGameServer_SetModDir(CSteamGameServerAPIContext.GetSteamGameServer(), pszModDir2); - } - } - - /// - /// / Is this is a dedicated server? The default value is false. - /// - public static void SetDedicatedServer(bool bDedicated) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SetDedicatedServer(CSteamGameServerAPIContext.GetSteamGameServer(), bDedicated); - } - - /// - /// Login - /// / Begin process to login to a persistent game server account - /// / - /// / You need to register for callbacks to determine the result of this operation. - /// / @see SteamServersConnected_t - /// / @see SteamServerConnectFailure_t - /// / @see SteamServersDisconnected_t - /// - public static void LogOn(string pszToken) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszToken2 = new InteropHelp.UTF8StringHandle(pszToken)) { - NativeMethods.ISteamGameServer_LogOn(CSteamGameServerAPIContext.GetSteamGameServer(), pszToken2); - } - } - - /// - /// / Login to a generic, anonymous account. - /// / - /// / Note: in previous versions of the SDK, this was automatically called within SteamGameServer_Init, - /// / but this is no longer the case. - /// - public static void LogOnAnonymous() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_LogOnAnonymous(CSteamGameServerAPIContext.GetSteamGameServer()); - } - - /// - /// / Begin process of logging game server out of steam - /// - public static void LogOff() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_LogOff(CSteamGameServerAPIContext.GetSteamGameServer()); - } - - /// - /// status functions - /// - public static bool BLoggedOn() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_BLoggedOn(CSteamGameServerAPIContext.GetSteamGameServer()); - } - - public static bool BSecure() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_BSecure(CSteamGameServerAPIContext.GetSteamGameServer()); - } - - public static CSteamID GetSteamID() { - InteropHelp.TestIfAvailableGameServer(); - return (CSteamID)NativeMethods.ISteamGameServer_GetSteamID(CSteamGameServerAPIContext.GetSteamGameServer()); - } - - /// - /// / Returns true if the master server has requested a restart. - /// / Only returns true once per request. - /// - public static bool WasRestartRequested() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_WasRestartRequested(CSteamGameServerAPIContext.GetSteamGameServer()); - } - - /// - /// Server state. These properties may be changed at any time. - /// / Max player count that will be reported to server browser and client queries - /// - public static void SetMaxPlayerCount(int cPlayersMax) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SetMaxPlayerCount(CSteamGameServerAPIContext.GetSteamGameServer(), cPlayersMax); - } - - /// - /// / Number of bots. Default value is zero - /// - public static void SetBotPlayerCount(int cBotplayers) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SetBotPlayerCount(CSteamGameServerAPIContext.GetSteamGameServer(), cBotplayers); - } - - /// - /// / Set the name of server as it will appear in the server browser - /// / - /// / @see k_cbMaxGameServerName - /// - public static void SetServerName(string pszServerName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszServerName2 = new InteropHelp.UTF8StringHandle(pszServerName)) { - NativeMethods.ISteamGameServer_SetServerName(CSteamGameServerAPIContext.GetSteamGameServer(), pszServerName2); - } - } - - /// - /// / Set name of map to report in the server browser - /// / - /// / @see k_cbMaxGameServerMapName - /// - public static void SetMapName(string pszMapName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszMapName2 = new InteropHelp.UTF8StringHandle(pszMapName)) { - NativeMethods.ISteamGameServer_SetMapName(CSteamGameServerAPIContext.GetSteamGameServer(), pszMapName2); - } - } - - /// - /// / Let people know if your server will require a password - /// - public static void SetPasswordProtected(bool bPasswordProtected) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SetPasswordProtected(CSteamGameServerAPIContext.GetSteamGameServer(), bPasswordProtected); - } - - /// - /// / Spectator server port to advertise. The default value is zero, meaning the - /// / service is not used. If your server receives any info requests on the LAN, - /// / this is the value that will be placed into the reply for such local queries. - /// / - /// / This is also the value that will be advertised by the master server. - /// / The only exception is if your server is using a FakeIP. Then then the second - /// / fake port number (index 1) assigned to your server will be listed on the master - /// / server as the spectator port, if you set this value to any nonzero value. - /// / - /// / This function merely controls the values that are advertised -- it's up to you to - /// / configure the server to actually listen on this port and handle any spectator traffic - /// - public static void SetSpectatorPort(ushort unSpectatorPort) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SetSpectatorPort(CSteamGameServerAPIContext.GetSteamGameServer(), unSpectatorPort); - } - - /// - /// / Name of the spectator server. (Only used if spectator port is nonzero.) - /// / - /// / @see k_cbMaxGameServerMapName - /// - public static void SetSpectatorServerName(string pszSpectatorServerName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszSpectatorServerName2 = new InteropHelp.UTF8StringHandle(pszSpectatorServerName)) { - NativeMethods.ISteamGameServer_SetSpectatorServerName(CSteamGameServerAPIContext.GetSteamGameServer(), pszSpectatorServerName2); - } - } - - /// - /// / Call this to clear the whole list of key/values that are sent in rules queries. - /// - public static void ClearAllKeyValues() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_ClearAllKeyValues(CSteamGameServerAPIContext.GetSteamGameServer()); - } - - /// - /// / Call this to add/update a key/value pair. - /// - public static void SetKeyValue(string pKey, string pValue) { - InteropHelp.TestIfAvailableGameServer(); - using (var pKey2 = new InteropHelp.UTF8StringHandle(pKey)) - using (var pValue2 = new InteropHelp.UTF8StringHandle(pValue)) { - NativeMethods.ISteamGameServer_SetKeyValue(CSteamGameServerAPIContext.GetSteamGameServer(), pKey2, pValue2); - } - } - - /// - /// / Sets a string defining the "gametags" for this server, this is optional, but if it is set - /// / it allows users to filter in the matchmaking/server-browser interfaces based on the value - /// / - /// / @see k_cbMaxGameServerTags - /// - public static void SetGameTags(string pchGameTags) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchGameTags2 = new InteropHelp.UTF8StringHandle(pchGameTags)) { - NativeMethods.ISteamGameServer_SetGameTags(CSteamGameServerAPIContext.GetSteamGameServer(), pchGameTags2); - } - } - - /// - /// / Sets a string defining the "gamedata" for this server, this is optional, but if it is set - /// / it allows users to filter in the matchmaking/server-browser interfaces based on the value - /// / - /// / @see k_cbMaxGameServerGameData - /// - public static void SetGameData(string pchGameData) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchGameData2 = new InteropHelp.UTF8StringHandle(pchGameData)) { - NativeMethods.ISteamGameServer_SetGameData(CSteamGameServerAPIContext.GetSteamGameServer(), pchGameData2); - } - } - - /// - /// / Region identifier. This is an optional field, the default value is empty, meaning the "world" region - /// - public static void SetRegion(string pszRegion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszRegion2 = new InteropHelp.UTF8StringHandle(pszRegion)) { - NativeMethods.ISteamGameServer_SetRegion(CSteamGameServerAPIContext.GetSteamGameServer(), pszRegion2); - } - } - - /// - /// / Indicate whether you wish to be listed on the master server list - /// / and/or respond to server browser / LAN discovery packets. - /// / The server starts with this value set to false. You should set all - /// / relevant server parameters before enabling advertisement on the server. - /// / - /// / (This function used to be named EnableHeartbeats, so if you are wondering - /// / where that function went, it's right here. It does the same thing as before, - /// / the old name was just confusing.) - /// - public static void SetAdvertiseServerActive(bool bActive) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SetAdvertiseServerActive(CSteamGameServerAPIContext.GetSteamGameServer(), bActive); - } - - /// - /// Player list management / authentication. - /// Retrieve ticket to be sent to the entity who wishes to authenticate you ( using BeginAuthSession API ). - /// pcbTicket retrieves the length of the actual ticket. - /// SteamNetworkingIdentity is an optional parameter to hold the public IP address of the entity you are connecting to - /// if an IP address is passed Steam will only allow the ticket to be used by an entity with that IP address - /// - public static HAuthTicket GetAuthSessionTicket(byte[] pTicket, int cbMaxTicket, out uint pcbTicket, ref SteamNetworkingIdentity pSnid) { - InteropHelp.TestIfAvailableGameServer(); - return (HAuthTicket)NativeMethods.ISteamGameServer_GetAuthSessionTicket(CSteamGameServerAPIContext.GetSteamGameServer(), pTicket, cbMaxTicket, out pcbTicket, ref pSnid); - } - - /// - /// Authenticate ticket ( from GetAuthSessionTicket ) from entity steamID to be sure it is valid and isnt reused - /// Registers for callbacks if the entity goes offline or cancels the ticket ( see ValidateAuthTicketResponse_t callback and EAuthSessionResponse ) - /// - public static EBeginAuthSessionResult BeginAuthSession(byte[] pAuthTicket, int cbAuthTicket, CSteamID steamID) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_BeginAuthSession(CSteamGameServerAPIContext.GetSteamGameServer(), pAuthTicket, cbAuthTicket, steamID); - } - - /// - /// Stop tracking started by BeginAuthSession - called when no longer playing game with this entity - /// - public static void EndAuthSession(CSteamID steamID) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_EndAuthSession(CSteamGameServerAPIContext.GetSteamGameServer(), steamID); - } - - /// - /// Cancel auth ticket from GetAuthSessionTicket, called when no longer playing game with the entity you gave the ticket to - /// - public static void CancelAuthTicket(HAuthTicket hAuthTicket) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_CancelAuthTicket(CSteamGameServerAPIContext.GetSteamGameServer(), hAuthTicket); - } - - /// - /// After receiving a user's authentication data, and passing it to SendUserConnectAndAuthenticate, use this function - /// to determine if the user owns downloadable content specified by the provided AppID. - /// - public static EUserHasLicenseForAppResult UserHasLicenseForApp(CSteamID steamID, AppId_t appID) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_UserHasLicenseForApp(CSteamGameServerAPIContext.GetSteamGameServer(), steamID, appID); - } - - /// - /// Ask if a user in in the specified group, results returns async by GSUserGroupStatus_t - /// returns false if we're not connected to the steam servers and thus cannot ask - /// - public static bool RequestUserGroupStatus(CSteamID steamIDUser, CSteamID steamIDGroup) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_RequestUserGroupStatus(CSteamGameServerAPIContext.GetSteamGameServer(), steamIDUser, steamIDGroup); - } - - /// - /// these two functions s are deprecated, and will not return results - /// they will be removed in a future version of the SDK - /// - public static void GetGameplayStats() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_GetGameplayStats(CSteamGameServerAPIContext.GetSteamGameServer()); - } - - public static SteamAPICall_t GetServerReputation() { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServer_GetServerReputation(CSteamGameServerAPIContext.GetSteamGameServer()); - } - - /// - /// Returns the public IP of the server according to Steam, useful when the server is - /// behind NAT and you want to advertise its IP in a lobby for other clients to directly - /// connect to - /// - public static SteamIPAddress_t GetPublicIP() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_GetPublicIP(CSteamGameServerAPIContext.GetSteamGameServer()); - } - - /// - /// Server browser related query packet processing for shared socket mode. These are used - /// when you pass STEAMGAMESERVER_QUERY_PORT_SHARED as the query port to SteamGameServer_Init. - /// IP address and port are in host order, i.e 127.0.0.1 == 0x7f000001 - /// These are used when you've elected to multiplex the game server's UDP socket - /// rather than having the master server updater use its own sockets. - /// Source games use this to simplify the job of the server admins, so they - /// don't have to open up more ports on their firewalls. - /// Call this when a packet that starts with 0xFFFFFFFF comes in. That means - /// it's for us. - /// - public static bool HandleIncomingPacket(byte[] pData, int cbData, uint srcIP, ushort srcPort) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_HandleIncomingPacket(CSteamGameServerAPIContext.GetSteamGameServer(), pData, cbData, srcIP, srcPort); - } - - /// - /// AFTER calling HandleIncomingPacket for any packets that came in that frame, call this. - /// This gets a packet that the master server updater needs to send out on UDP. - /// It returns the length of the packet it wants to send, or 0 if there are no more packets to send. - /// Call this each frame until it returns 0. - /// - public static int GetNextOutgoingPacket(byte[] pOut, int cbMaxOut, out uint pNetAdr, out ushort pPort) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_GetNextOutgoingPacket(CSteamGameServerAPIContext.GetSteamGameServer(), pOut, cbMaxOut, out pNetAdr, out pPort); - } - - /// - /// Server clan association - /// associate this game server with this clan for the purposes of computing player compat - /// - public static SteamAPICall_t AssociateWithClan(CSteamID steamIDClan) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServer_AssociateWithClan(CSteamGameServerAPIContext.GetSteamGameServer(), steamIDClan); - } - - /// - /// ask if any of the current players dont want to play with this new player - or vice versa - /// - public static SteamAPICall_t ComputeNewPlayerCompatibility(CSteamID steamIDNewPlayer) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServer_ComputeNewPlayerCompatibility(CSteamGameServerAPIContext.GetSteamGameServer(), steamIDNewPlayer); - } - - /// - /// Handles receiving a new connection from a Steam user. This call will ask the Steam - /// servers to validate the users identity, app ownership, and VAC status. If the Steam servers - /// are off-line, then it will validate the cached ticket itself which will validate app ownership - /// and identity. The AuthBlob here should be acquired on the game client using SteamUser()->InitiateGameConnection() - /// and must then be sent up to the game server for authentication. - /// Return Value: returns true if the users ticket passes basic checks. pSteamIDUser will contain the Steam ID of this user. pSteamIDUser must NOT be NULL - /// If the call succeeds then you should expect a GSClientApprove_t or GSClientDeny_t callback which will tell you whether authentication - /// for the user has succeeded or failed (the steamid in the callback will match the one returned by this call) - /// DEPRECATED! This function will be removed from the SDK in an upcoming version. - /// Please migrate to BeginAuthSession and related functions. - /// - public static bool SendUserConnectAndAuthenticate_DEPRECATED(uint unIPClient, byte[] pvAuthBlob, uint cubAuthBlobSize, out CSteamID pSteamIDUser) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_SendUserConnectAndAuthenticate_DEPRECATED(CSteamGameServerAPIContext.GetSteamGameServer(), unIPClient, pvAuthBlob, cubAuthBlobSize, out pSteamIDUser); - } - - /// - /// Creates a fake user (ie, a bot) which will be listed as playing on the server, but skips validation. - /// Return Value: Returns a SteamID for the user to be tracked with, you should call EndAuthSession() - /// when this user leaves the server just like you would for a real user. - /// - public static CSteamID CreateUnauthenticatedUserConnection() { - InteropHelp.TestIfAvailableGameServer(); - return (CSteamID)NativeMethods.ISteamGameServer_CreateUnauthenticatedUserConnection(CSteamGameServerAPIContext.GetSteamGameServer()); - } - - /// - /// Should be called whenever a user leaves our game server, this lets Steam internally - /// track which users are currently on which servers for the purposes of preventing a single - /// account being logged into multiple servers, showing who is currently on a server, etc. - /// DEPRECATED! This function will be removed from the SDK in an upcoming version. - /// Please migrate to BeginAuthSession and related functions. - /// - public static void SendUserDisconnect_DEPRECATED(CSteamID steamIDUser) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SendUserDisconnect_DEPRECATED(CSteamGameServerAPIContext.GetSteamGameServer(), steamIDUser); - } - - /// - /// Update the data to be displayed in the server browser and matchmaking interfaces for a user - /// currently connected to the server. For regular users you must call this after you receive a - /// GSUserValidationSuccess callback. - /// Return Value: true if successful, false if failure (ie, steamIDUser wasn't for an active player) - /// - public static bool BUpdateUserData(CSteamID steamIDUser, string pchPlayerName, uint uScore) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchPlayerName2 = new InteropHelp.UTF8StringHandle(pchPlayerName)) { - return NativeMethods.ISteamGameServer_BUpdateUserData(CSteamGameServerAPIContext.GetSteamGameServer(), steamIDUser, pchPlayerName2, uScore); - } - } - } +namespace SwiftlyS2.Shared.SteamAPI; + +public static class SteamGameServer +{ + /// + /// / Game product identifier. This is currently used by the master server for version checking purposes. + /// / It's a required field, but will eventually will go away, and the AppID will be used for this purpose. + /// + public static void SetProduct( string pszProduct ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszProduct2 = new InteropHelp.UTF8StringHandle(pszProduct)) + { + NativeMethods.ISteamGameServer_SetProduct(CSteamGameServerAPIContext.GetSteamGameServer(), pszProduct2); + } + } + + /// + /// / Description of the game. This is a required field and is displayed in the steam server browser....for now. + /// / This is a required field, but it will go away eventually, as the data should be determined from the AppID. + /// + public static void SetGameDescription( string pszGameDescription ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszGameDescription2 = new InteropHelp.UTF8StringHandle(pszGameDescription)) + { + NativeMethods.ISteamGameServer_SetGameDescription(CSteamGameServerAPIContext.GetSteamGameServer(), pszGameDescription2); + } + } + + /// + /// / If your game is a "mod," pass the string that identifies it. The default is an empty string, meaning + /// / this application is the original game, not a mod. + /// / + /// / @see k_cbMaxGameServerGameDir + /// + public static void SetModDir( string pszModDir ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszModDir2 = new InteropHelp.UTF8StringHandle(pszModDir)) + { + NativeMethods.ISteamGameServer_SetModDir(CSteamGameServerAPIContext.GetSteamGameServer(), pszModDir2); + } + } + + /// + /// / Is this is a dedicated server? The default value is false. + /// + public static void SetDedicatedServer( bool bDedicated ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamGameServer_SetDedicatedServer(CSteamGameServerAPIContext.GetSteamGameServer(), bDedicated); + } + + /// + /// Login + /// / Begin process to login to a persistent game server account + /// / + /// / You need to register for callbacks to determine the result of this operation. + /// / @see SteamServersConnected_t + /// / @see SteamServerConnectFailure_t + /// / @see SteamServersDisconnected_t + /// + public static void LogOn( string pszToken ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszToken2 = new InteropHelp.UTF8StringHandle(pszToken)) + { + NativeMethods.ISteamGameServer_LogOn(CSteamGameServerAPIContext.GetSteamGameServer(), pszToken2); + } + } + + /// + /// / Login to a generic, anonymous account. + /// / + /// / Note: in previous versions of the SDK, this was automatically called within SteamGameServer_Init, + /// / but this is no longer the case. + /// + public static void LogOnAnonymous() + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamGameServer_LogOnAnonymous(CSteamGameServerAPIContext.GetSteamGameServer()); + } + + /// + /// / Begin process of logging game server out of steam + /// + public static void LogOff() + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamGameServer_LogOff(CSteamGameServerAPIContext.GetSteamGameServer()); + } + + /// + /// status functions + /// + public static bool BLoggedOn() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamGameServer_BLoggedOn(CSteamGameServerAPIContext.GetSteamGameServer()); + } + + public static bool BSecure() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamGameServer_BSecure(CSteamGameServerAPIContext.GetSteamGameServer()); + } + + public static CSteamID GetSteamID() + { + InteropHelp.TestIfAvailableGameServer(); + return (CSteamID)NativeMethods.ISteamGameServer_GetSteamID(CSteamGameServerAPIContext.GetSteamGameServer()); + } + + /// + /// / Returns true if the master server has requested a restart. + /// / Only returns true once per request. + /// + public static bool WasRestartRequested() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamGameServer_WasRestartRequested(CSteamGameServerAPIContext.GetSteamGameServer()); + } + + /// + /// Server state. These properties may be changed at any time. + /// / Max player count that will be reported to server browser and client queries + /// + public static void SetMaxPlayerCount( int cPlayersMax ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamGameServer_SetMaxPlayerCount(CSteamGameServerAPIContext.GetSteamGameServer(), cPlayersMax); + } + + /// + /// / Number of bots. Default value is zero + /// + public static void SetBotPlayerCount( int cBotplayers ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamGameServer_SetBotPlayerCount(CSteamGameServerAPIContext.GetSteamGameServer(), cBotplayers); + } + + /// + /// / Set the name of server as it will appear in the server browser + /// / + /// / @see k_cbMaxGameServerName + /// + public static void SetServerName( string pszServerName ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszServerName2 = new InteropHelp.UTF8StringHandle(pszServerName)) + { + NativeMethods.ISteamGameServer_SetServerName(CSteamGameServerAPIContext.GetSteamGameServer(), pszServerName2); + } + } + + /// + /// / Set name of map to report in the server browser + /// / + /// / @see k_cbMaxGameServerMapName + /// + public static void SetMapName( string pszMapName ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszMapName2 = new InteropHelp.UTF8StringHandle(pszMapName)) + { + NativeMethods.ISteamGameServer_SetMapName(CSteamGameServerAPIContext.GetSteamGameServer(), pszMapName2); + } + } + + /// + /// / Let people know if your server will require a password + /// + public static void SetPasswordProtected( bool bPasswordProtected ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamGameServer_SetPasswordProtected(CSteamGameServerAPIContext.GetSteamGameServer(), bPasswordProtected); + } + + /// + /// / Spectator server port to advertise. The default value is zero, meaning the + /// / service is not used. If your server receives any info requests on the LAN, + /// / this is the value that will be placed into the reply for such local queries. + /// / + /// / This is also the value that will be advertised by the master server. + /// / The only exception is if your server is using a FakeIP. Then then the second + /// / fake port number (index 1) assigned to your server will be listed on the master + /// / server as the spectator port, if you set this value to any nonzero value. + /// / + /// / This function merely controls the values that are advertised -- it's up to you to + /// / configure the server to actually listen on this port and handle any spectator traffic + /// + public static void SetSpectatorPort( ushort unSpectatorPort ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamGameServer_SetSpectatorPort(CSteamGameServerAPIContext.GetSteamGameServer(), unSpectatorPort); + } + + /// + /// / Name of the spectator server. (Only used if spectator port is nonzero.) + /// / + /// / @see k_cbMaxGameServerMapName + /// + public static void SetSpectatorServerName( string pszSpectatorServerName ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszSpectatorServerName2 = new InteropHelp.UTF8StringHandle(pszSpectatorServerName)) + { + NativeMethods.ISteamGameServer_SetSpectatorServerName(CSteamGameServerAPIContext.GetSteamGameServer(), pszSpectatorServerName2); + } + } + + /// + /// / Call this to clear the whole list of key/values that are sent in rules queries. + /// + public static void ClearAllKeyValues() + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamGameServer_ClearAllKeyValues(CSteamGameServerAPIContext.GetSteamGameServer()); + } + + /// + /// / Call this to add/update a key/value pair. + /// + public static void SetKeyValue( string pKey, string pValue ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pKey2 = new InteropHelp.UTF8StringHandle(pKey)) + using (var pValue2 = new InteropHelp.UTF8StringHandle(pValue)) + { + NativeMethods.ISteamGameServer_SetKeyValue(CSteamGameServerAPIContext.GetSteamGameServer(), pKey2, pValue2); + } + } + + /// + /// / Sets a string defining the "gametags" for this server, this is optional, but if it is set + /// / it allows users to filter in the matchmaking/server-browser interfaces based on the value + /// / + /// / @see k_cbMaxGameServerTags + /// + public static void SetGameTags( string pchGameTags ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchGameTags2 = new InteropHelp.UTF8StringHandle(pchGameTags)) + { + NativeMethods.ISteamGameServer_SetGameTags(CSteamGameServerAPIContext.GetSteamGameServer(), pchGameTags2); + } + } + + /// + /// / Sets a string defining the "gamedata" for this server, this is optional, but if it is set + /// / it allows users to filter in the matchmaking/server-browser interfaces based on the value + /// / + /// / @see k_cbMaxGameServerGameData + /// + public static void SetGameData( string pchGameData ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchGameData2 = new InteropHelp.UTF8StringHandle(pchGameData)) + { + NativeMethods.ISteamGameServer_SetGameData(CSteamGameServerAPIContext.GetSteamGameServer(), pchGameData2); + } + } + + /// + /// / Region identifier. This is an optional field, the default value is empty, meaning the "world" region + /// + public static void SetRegion( string pszRegion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszRegion2 = new InteropHelp.UTF8StringHandle(pszRegion)) + { + NativeMethods.ISteamGameServer_SetRegion(CSteamGameServerAPIContext.GetSteamGameServer(), pszRegion2); + } + } + + /// + /// / Indicate whether you wish to be listed on the master server list + /// / and/or respond to server browser / LAN discovery packets. + /// / The server starts with this value set to false. You should set all + /// / relevant server parameters before enabling advertisement on the server. + /// / + /// / (This function used to be named EnableHeartbeats, so if you are wondering + /// / where that function went, it's right here. It does the same thing as before, + /// / the old name was just confusing.) + /// + public static void SetAdvertiseServerActive( bool bActive ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamGameServer_SetAdvertiseServerActive(CSteamGameServerAPIContext.GetSteamGameServer(), bActive); + } + + /// + /// Player list management / authentication. + /// Retrieve ticket to be sent to the entity who wishes to authenticate you ( using BeginAuthSession API ). + /// pcbTicket retrieves the length of the actual ticket. + /// SteamNetworkingIdentity is an optional parameter to hold the public IP address of the entity you are connecting to + /// if an IP address is passed Steam will only allow the ticket to be used by an entity with that IP address + /// + public static HAuthTicket GetAuthSessionTicket( byte[] pTicket, int cbMaxTicket, out uint pcbTicket, ref SteamNetworkingIdentity pSnid ) + { + InteropHelp.TestIfAvailableGameServer(); + return (HAuthTicket)NativeMethods.ISteamGameServer_GetAuthSessionTicket(CSteamGameServerAPIContext.GetSteamGameServer(), pTicket, cbMaxTicket, out pcbTicket, ref pSnid); + } + + /// + /// Authenticate ticket ( from GetAuthSessionTicket ) from entity steamID to be sure it is valid and isnt reused + /// Registers for callbacks if the entity goes offline or cancels the ticket ( see ValidateAuthTicketResponse_t callback and EAuthSessionResponse ) + /// + public static EBeginAuthSessionResult BeginAuthSession( byte[] pAuthTicket, int cbAuthTicket, CSteamID steamID ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamGameServer_BeginAuthSession(CSteamGameServerAPIContext.GetSteamGameServer(), pAuthTicket, cbAuthTicket, steamID); + } + + /// + /// Stop tracking started by BeginAuthSession - called when no longer playing game with this entity + /// + public static void EndAuthSession( CSteamID steamID ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamGameServer_EndAuthSession(CSteamGameServerAPIContext.GetSteamGameServer(), steamID); + } + + /// + /// Cancel auth ticket from GetAuthSessionTicket, called when no longer playing game with the entity you gave the ticket to + /// + public static void CancelAuthTicket( HAuthTicket hAuthTicket ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamGameServer_CancelAuthTicket(CSteamGameServerAPIContext.GetSteamGameServer(), hAuthTicket); + } + + /// + /// After receiving a user's authentication data, and passing it to SendUserConnectAndAuthenticate, use this function + /// to determine if the user owns downloadable content specified by the provided AppID. + /// + public static EUserHasLicenseForAppResult UserHasLicenseForApp( CSteamID steamID, AppId_t appID ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamGameServer_UserHasLicenseForApp(CSteamGameServerAPIContext.GetSteamGameServer(), steamID, appID); + } + + /// + /// Ask if a user in in the specified group, results returns async by GSUserGroupStatus_t + /// returns false if we're not connected to the steam servers and thus cannot ask + /// + public static bool RequestUserGroupStatus( CSteamID steamIDUser, CSteamID steamIDGroup ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamGameServer_RequestUserGroupStatus(CSteamGameServerAPIContext.GetSteamGameServer(), steamIDUser, steamIDGroup); + } + + /// + /// these two functions s are deprecated, and will not return results + /// they will be removed in a future version of the SDK + /// + public static void GetGameplayStats() + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamGameServer_GetGameplayStats(CSteamGameServerAPIContext.GetSteamGameServer()); + } + + public static SteamAPICall_t GetServerReputation() + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamGameServer_GetServerReputation(CSteamGameServerAPIContext.GetSteamGameServer()); + } + + /// + /// Returns the public IP of the server according to Steam, useful when the server is + /// behind NAT and you want to advertise its IP in a lobby for other clients to directly + /// connect to + /// + public static SteamIPAddress_t GetPublicIP() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamGameServer_GetPublicIP(CSteamGameServerAPIContext.GetSteamGameServer()); + } + + /// + /// Server browser related query packet processing for shared socket mode. These are used + /// when you pass STEAMGAMESERVER_QUERY_PORT_SHARED as the query port to SteamGameServer_Init. + /// IP address and port are in host order, i.e 127.0.0.1 == 0x7f000001 + /// These are used when you've elected to multiplex the game server's UDP socket + /// rather than having the master server updater use its own sockets. + /// Source games use this to simplify the job of the server admins, so they + /// don't have to open up more ports on their firewalls. + /// Call this when a packet that starts with 0xFFFFFFFF comes in. That means + /// it's for us. + /// + public static bool HandleIncomingPacket( byte[] pData, int cbData, uint srcIP, ushort srcPort ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamGameServer_HandleIncomingPacket(CSteamGameServerAPIContext.GetSteamGameServer(), pData, cbData, srcIP, srcPort); + } + + /// + /// AFTER calling HandleIncomingPacket for any packets that came in that frame, call this. + /// This gets a packet that the master server updater needs to send out on UDP. + /// It returns the length of the packet it wants to send, or 0 if there are no more packets to send. + /// Call this each frame until it returns 0. + /// + public static int GetNextOutgoingPacket( byte[] pOut, int cbMaxOut, out uint pNetAdr, out ushort pPort ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamGameServer_GetNextOutgoingPacket(CSteamGameServerAPIContext.GetSteamGameServer(), pOut, cbMaxOut, out pNetAdr, out pPort); + } + + /// + /// Server clan association + /// associate this game server with this clan for the purposes of computing player compat + /// + public static SteamAPICall_t AssociateWithClan( CSteamID steamIDClan ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamGameServer_AssociateWithClan(CSteamGameServerAPIContext.GetSteamGameServer(), steamIDClan); + } + + /// + /// ask if any of the current players dont want to play with this new player - or vice versa + /// + public static SteamAPICall_t ComputeNewPlayerCompatibility( CSteamID steamIDNewPlayer ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamGameServer_ComputeNewPlayerCompatibility(CSteamGameServerAPIContext.GetSteamGameServer(), steamIDNewPlayer); + } + + /// + /// Handles receiving a new connection from a Steam user. This call will ask the Steam + /// servers to validate the users identity, app ownership, and VAC status. If the Steam servers + /// are off-line, then it will validate the cached ticket itself which will validate app ownership + /// and identity. The AuthBlob here should be acquired on the game client using SteamUser()->InitiateGameConnection() + /// and must then be sent up to the game server for authentication. + /// Return Value: returns true if the users ticket passes basic checks. pSteamIDUser will contain the Steam ID of this user. pSteamIDUser must NOT be NULL + /// If the call succeeds then you should expect a GSClientApprove_t or GSClientDeny_t callback which will tell you whether authentication + /// for the user has succeeded or failed (the steamid in the callback will match the one returned by this call) + /// DEPRECATED! This function will be removed from the SDK in an upcoming version. + /// Please migrate to BeginAuthSession and related functions. + /// + public static bool SendUserConnectAndAuthenticate_DEPRECATED( uint unIPClient, byte[] pvAuthBlob, uint cubAuthBlobSize, out CSteamID pSteamIDUser ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamGameServer_SendUserConnectAndAuthenticate_DEPRECATED(CSteamGameServerAPIContext.GetSteamGameServer(), unIPClient, pvAuthBlob, cubAuthBlobSize, out pSteamIDUser); + } + + /// + /// Creates a fake user (ie, a bot) which will be listed as playing on the server, but skips validation. + /// Return Value: Returns a SteamID for the user to be tracked with, you should call EndAuthSession() + /// when this user leaves the server just like you would for a real user. + /// + public static CSteamID CreateUnauthenticatedUserConnection() + { + InteropHelp.TestIfAvailableGameServer(); + return (CSteamID)NativeMethods.ISteamGameServer_CreateUnauthenticatedUserConnection(CSteamGameServerAPIContext.GetSteamGameServer()); + } + + /// + /// Should be called whenever a user leaves our game server, this lets Steam internally + /// track which users are currently on which servers for the purposes of preventing a single + /// account being logged into multiple servers, showing who is currently on a server, etc. + /// DEPRECATED! This function will be removed from the SDK in an upcoming version. + /// Please migrate to BeginAuthSession and related functions. + /// + public static void SendUserDisconnect_DEPRECATED( CSteamID steamIDUser ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamGameServer_SendUserDisconnect_DEPRECATED(CSteamGameServerAPIContext.GetSteamGameServer(), steamIDUser); + } + + /// + /// Update the data to be displayed in the server browser and matchmaking interfaces for a user + /// currently connected to the server. For regular users you must call this after you receive a + /// GSUserValidationSuccess callback. + /// Return Value: true if successful, false if failure (ie, steamIDUser wasn't for an active player) + /// + public static bool BUpdateUserData( CSteamID steamIDUser, string pchPlayerName, uint uScore ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchPlayerName2 = new InteropHelp.UTF8StringHandle(pchPlayerName)) + { + return NativeMethods.ISteamGameServer_BUpdateUserData(CSteamGameServerAPIContext.GetSteamGameServer(), steamIDUser, pchPlayerName2, uScore); + } + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverclient.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverclient.cs index 0bbf85b20..9607c35d2 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverclient.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverclient.cs @@ -1,353 +1,414 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - public static class SteamGameServerClient { - /// - /// Creates a communication pipe to the Steam client. - /// NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling - /// - public static HSteamPipe CreateSteamPipe() { - InteropHelp.TestIfAvailableGameServer(); - return (HSteamPipe)NativeMethods.ISteamClient_CreateSteamPipe(CSteamGameServerAPIContext.GetSteamClient()); - } - - /// - /// Releases a previously created communications pipe - /// NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling - /// - public static bool BReleaseSteamPipe(HSteamPipe hSteamPipe) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamClient_BReleaseSteamPipe(CSteamGameServerAPIContext.GetSteamClient(), hSteamPipe); - } - - /// - /// connects to an existing global user, failing if none exists - /// used by the game to coordinate with the steamUI - /// NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling - /// - public static HSteamUser ConnectToGlobalUser(HSteamPipe hSteamPipe) { - InteropHelp.TestIfAvailableGameServer(); - return (HSteamUser)NativeMethods.ISteamClient_ConnectToGlobalUser(CSteamGameServerAPIContext.GetSteamClient(), hSteamPipe); - } - - /// - /// used by game servers, create a steam user that won't be shared with anyone else - /// NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling - /// - public static HSteamUser CreateLocalUser(out HSteamPipe phSteamPipe, EAccountType eAccountType) { - InteropHelp.TestIfAvailableGameServer(); - return (HSteamUser)NativeMethods.ISteamClient_CreateLocalUser(CSteamGameServerAPIContext.GetSteamClient(), out phSteamPipe, eAccountType); - } - - /// - /// removes an allocated user - /// NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling - /// - public static void ReleaseUser(HSteamPipe hSteamPipe, HSteamUser hUser) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamClient_ReleaseUser(CSteamGameServerAPIContext.GetSteamClient(), hSteamPipe, hUser); - } - - /// - /// retrieves the ISteamUser interface associated with the handle - /// - public static IntPtr GetISteamUser(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamUser(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// retrieves the ISteamGameServer interface associated with the handle - /// - public static IntPtr GetISteamGameServer(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamGameServer(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// set the local IP and Port to bind to - /// this must be set before CreateLocalUser() - /// - public static void SetLocalIPBinding(ref SteamIPAddress_t unIP, ushort usPort) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamClient_SetLocalIPBinding(CSteamGameServerAPIContext.GetSteamClient(), ref unIP, usPort); - } - - /// - /// returns the ISteamFriends interface - /// - public static IntPtr GetISteamFriends(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamFriends(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns the ISteamUtils interface - /// - public static IntPtr GetISteamUtils(HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamUtils(CSteamGameServerAPIContext.GetSteamClient(), hSteamPipe, pchVersion2); - } - } - - /// - /// returns the ISteamMatchmaking interface - /// - public static IntPtr GetISteamMatchmaking(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamMatchmaking(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns the ISteamMatchmakingServers interface - /// - public static IntPtr GetISteamMatchmakingServers(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamMatchmakingServers(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns the a generic interface - /// - public static IntPtr GetISteamGenericInterface(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamGenericInterface(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns the ISteamUserStats interface - /// - public static IntPtr GetISteamUserStats(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamUserStats(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns the ISteamGameServerStats interface - /// - public static IntPtr GetISteamGameServerStats(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamGameServerStats(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns apps interface - /// - public static IntPtr GetISteamApps(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamApps(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// networking - /// - public static IntPtr GetISteamNetworking(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamNetworking(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// remote storage - /// - public static IntPtr GetISteamRemoteStorage(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamRemoteStorage(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// user screenshots - /// - public static IntPtr GetISteamScreenshots(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamScreenshots(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// game search - /// - public static IntPtr GetISteamGameSearch(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamGameSearch(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns the number of IPC calls made since the last time this function was called - /// Used for perf debugging so you can understand how many IPC calls your game makes per frame - /// Every IPC call is at minimum a thread context switch if not a process one so you want to rate - /// control how often you do them. - /// - public static uint GetIPCCallCount() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamClient_GetIPCCallCount(CSteamGameServerAPIContext.GetSteamClient()); - } - - /// - /// API warning handling - /// 'int' is the severity; 0 for msg, 1 for warning - /// 'const char *' is the text of the message - /// callbacks will occur directly after the API function is called that generated the warning or message. - /// - public static void SetWarningMessageHook(SteamAPIWarningMessageHook_t pFunction) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamClient_SetWarningMessageHook(CSteamGameServerAPIContext.GetSteamClient(), pFunction); - } - - /// - /// Trigger global shutdown for the DLL - /// - public static bool BShutdownIfAllPipesClosed() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamClient_BShutdownIfAllPipesClosed(CSteamGameServerAPIContext.GetSteamClient()); - } - - /// - /// Expose HTTP interface - /// - public static IntPtr GetISteamHTTP(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamHTTP(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// Exposes the ISteamController interface - deprecated in favor of Steam Input - /// - public static IntPtr GetISteamController(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamController(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// Exposes the ISteamUGC interface - /// - public static IntPtr GetISteamUGC(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamUGC(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// Music Player - /// - public static IntPtr GetISteamMusic(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamMusic(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// Music Player Remote - /// - public static IntPtr GetISteamMusicRemote(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamMusicRemote(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// html page display - /// - public static IntPtr GetISteamHTMLSurface(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamHTMLSurface(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// inventory - /// - public static IntPtr GetISteamInventory(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamInventory(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// Video - /// - public static IntPtr GetISteamVideo(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamVideo(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// Parental controls - /// - public static IntPtr GetISteamParentalSettings(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamParentalSettings(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// Exposes the Steam Input interface for controller support - /// - public static IntPtr GetISteamInput(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamInput(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// Steam Parties interface - /// - public static IntPtr GetISteamParties(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamParties(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// Steam Remote Play interface - /// - public static IntPtr GetISteamRemotePlay(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamRemotePlay(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); - } - } - } +using IntPtr = nint; + +namespace SwiftlyS2.Shared.SteamAPI; + +public static class SteamGameServerClient +{ + /// + /// Creates a communication pipe to the Steam client. + /// NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling + /// + public static HSteamPipe CreateSteamPipe() + { + InteropHelp.TestIfAvailableGameServer(); + return (HSteamPipe)NativeMethods.ISteamClient_CreateSteamPipe(CSteamGameServerAPIContext.GetSteamClient()); + } + + /// + /// Releases a previously created communications pipe + /// NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling + /// + public static bool BReleaseSteamPipe( HSteamPipe hSteamPipe ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamClient_BReleaseSteamPipe(CSteamGameServerAPIContext.GetSteamClient(), hSteamPipe); + } + + /// + /// connects to an existing global user, failing if none exists + /// used by the game to coordinate with the steamUI + /// NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling + /// + public static HSteamUser ConnectToGlobalUser( HSteamPipe hSteamPipe ) + { + InteropHelp.TestIfAvailableGameServer(); + return (HSteamUser)NativeMethods.ISteamClient_ConnectToGlobalUser(CSteamGameServerAPIContext.GetSteamClient(), hSteamPipe); + } + + /// + /// used by game servers, create a steam user that won't be shared with anyone else + /// NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling + /// + public static HSteamUser CreateLocalUser( out HSteamPipe phSteamPipe, EAccountType eAccountType ) + { + InteropHelp.TestIfAvailableGameServer(); + return (HSteamUser)NativeMethods.ISteamClient_CreateLocalUser(CSteamGameServerAPIContext.GetSteamClient(), out phSteamPipe, eAccountType); + } + + /// + /// removes an allocated user + /// NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling + /// + public static void ReleaseUser( HSteamPipe hSteamPipe, HSteamUser hUser ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamClient_ReleaseUser(CSteamGameServerAPIContext.GetSteamClient(), hSteamPipe, hUser); + } + + /// + /// retrieves the ISteamUser interface associated with the handle + /// + public static IntPtr GetISteamUser( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamUser(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } + + /// + /// retrieves the ISteamGameServer interface associated with the handle + /// + public static IntPtr GetISteamGameServer( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamGameServer(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } + + /// + /// set the local IP and Port to bind to + /// this must be set before CreateLocalUser() + /// + public static void SetLocalIPBinding( ref SteamIPAddress_t unIP, ushort usPort ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamClient_SetLocalIPBinding(CSteamGameServerAPIContext.GetSteamClient(), ref unIP, usPort); + } + + /// + /// returns the ISteamFriends interface + /// + public static IntPtr GetISteamFriends( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamFriends(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } + + /// + /// returns the ISteamUtils interface + /// + public static IntPtr GetISteamUtils( HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamUtils(CSteamGameServerAPIContext.GetSteamClient(), hSteamPipe, pchVersion2); + } + } + + /// + /// returns the ISteamMatchmaking interface + /// + public static IntPtr GetISteamMatchmaking( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamMatchmaking(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } + + /// + /// returns the ISteamMatchmakingServers interface + /// + public static IntPtr GetISteamMatchmakingServers( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamMatchmakingServers(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } + + /// + /// returns the a generic interface + /// + public static IntPtr GetISteamGenericInterface( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamGenericInterface(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } + + /// + /// returns the ISteamUserStats interface + /// + public static IntPtr GetISteamUserStats( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamUserStats(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } + + /// + /// returns the ISteamGameServerStats interface + /// + public static IntPtr GetISteamGameServerStats( HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamGameServerStats(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); + } + } + + /// + /// returns apps interface + /// + public static IntPtr GetISteamApps( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamApps(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } + + /// + /// networking + /// + public static IntPtr GetISteamNetworking( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamNetworking(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } + + /// + /// remote storage + /// + public static IntPtr GetISteamRemoteStorage( HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamRemoteStorage(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); + } + } + + /// + /// user screenshots + /// + public static IntPtr GetISteamScreenshots( HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamScreenshots(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); + } + } + + /// + /// game search + /// + public static IntPtr GetISteamGameSearch( HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamGameSearch(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); + } + } + + /// + /// returns the number of IPC calls made since the last time this function was called + /// Used for perf debugging so you can understand how many IPC calls your game makes per frame + /// Every IPC call is at minimum a thread context switch if not a process one so you want to rate + /// control how often you do them. + /// + public static uint GetIPCCallCount() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamClient_GetIPCCallCount(CSteamGameServerAPIContext.GetSteamClient()); + } + + /// + /// API warning handling + /// 'int' is the severity; 0 for msg, 1 for warning + /// 'const char *' is the text of the message + /// callbacks will occur directly after the API function is called that generated the warning or message. + /// + public static void SetWarningMessageHook( SteamAPIWarningMessageHook_t pFunction ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamClient_SetWarningMessageHook(CSteamGameServerAPIContext.GetSteamClient(), pFunction); + } + + /// + /// Trigger global shutdown for the DLL + /// + public static bool BShutdownIfAllPipesClosed() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamClient_BShutdownIfAllPipesClosed(CSteamGameServerAPIContext.GetSteamClient()); + } + + /// + /// Expose HTTP interface + /// + public static IntPtr GetISteamHTTP( HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamHTTP(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); + } + } + + /// + /// Exposes the ISteamController interface - deprecated in favor of Steam Input + /// + public static IntPtr GetISteamController( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamController(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } + + /// + /// Exposes the ISteamUGC interface + /// + public static IntPtr GetISteamUGC( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamUGC(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } + + /// + /// Music Player + /// + public static IntPtr GetISteamMusic( HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamMusic(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); + } + } + + /// + /// Music Player Remote + /// + public static IntPtr GetISteamMusicRemote( HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamMusicRemote(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); + } + } + + /// + /// html page display + /// + public static IntPtr GetISteamHTMLSurface( HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamHTMLSurface(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); + } + } + + /// + /// inventory + /// + public static IntPtr GetISteamInventory( HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamInventory(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); + } + } + + /// + /// Video + /// + public static IntPtr GetISteamVideo( HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamVideo(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); + } + } + + /// + /// Parental controls + /// + public static IntPtr GetISteamParentalSettings( HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamParentalSettings(CSteamGameServerAPIContext.GetSteamClient(), hSteamuser, hSteamPipe, pchVersion2); + } + } + + /// + /// Exposes the Steam Input interface for controller support + /// + public static IntPtr GetISteamInput( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamInput(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } + + /// + /// Steam Parties interface + /// + public static IntPtr GetISteamParties( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamParties(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } + + /// + /// Steam Remote Play interface + /// + public static IntPtr GetISteamRemotePlay( HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) + { + return NativeMethods.ISteamClient_GetISteamRemotePlay(CSteamGameServerAPIContext.GetSteamClient(), hSteamUser, hSteamPipe, pchVersion2); + } + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverhttp.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverhttp.cs index 6201813bf..ecc00d46f 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverhttp.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverhttp.cs @@ -1,264 +1,295 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; +namespace SwiftlyS2.Shared.SteamAPI; -namespace SwiftlyS2.Shared.SteamAPI { - public static class SteamGameServerHTTP { - /// - /// Initializes a new HTTP request, returning a handle to use in further operations on it. Requires - /// the method (GET or POST) and the absolute URL for the request. Both http and https are supported, - /// so this string must start with http:// or https:// and should look like http://store.steampowered.com/app/250/ - /// or such. - /// - public static HTTPRequestHandle CreateHTTPRequest(EHTTPMethod eHTTPRequestMethod, string pchAbsoluteURL) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchAbsoluteURL2 = new InteropHelp.UTF8StringHandle(pchAbsoluteURL)) { - return (HTTPRequestHandle)NativeMethods.ISteamHTTP_CreateHTTPRequest(CSteamGameServerAPIContext.GetSteamHTTP(), eHTTPRequestMethod, pchAbsoluteURL2); - } - } +public static class SteamGameServerHTTP +{ + /// + /// Initializes a new HTTP request, returning a handle to use in further operations on it. Requires + /// the method (GET or POST) and the absolute URL for the request. Both http and https are supported, + /// so this string must start with http:// or https:// and should look like http://store.steampowered.com/app/250/ + /// or such. + /// + public static HTTPRequestHandle CreateHTTPRequest( EHTTPMethod eHTTPRequestMethod, string pchAbsoluteURL ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchAbsoluteURL2 = new InteropHelp.UTF8StringHandle(pchAbsoluteURL)) + { + return (HTTPRequestHandle)NativeMethods.ISteamHTTP_CreateHTTPRequest(CSteamGameServerAPIContext.GetSteamHTTP(), eHTTPRequestMethod, pchAbsoluteURL2); + } + } - /// - /// Set a context value for the request, which will be returned in the HTTPRequestCompleted_t callback after - /// sending the request. This is just so the caller can easily keep track of which callbacks go with which request data. - /// - public static bool SetHTTPRequestContextValue(HTTPRequestHandle hRequest, ulong ulContextValue) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_SetHTTPRequestContextValue(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, ulContextValue); - } + /// + /// Set a context value for the request, which will be returned in the HTTPRequestCompleted_t callback after + /// sending the request. This is just so the caller can easily keep track of which callbacks go with which request data. + /// + public static bool SetHTTPRequestContextValue( HTTPRequestHandle hRequest, ulong ulContextValue ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_SetHTTPRequestContextValue(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, ulContextValue); + } - /// - /// Set a timeout in seconds for the HTTP request, must be called prior to sending the request. Default - /// timeout is 60 seconds if you don't call this. Returns false if the handle is invalid, or the request - /// has already been sent. - /// - public static bool SetHTTPRequestNetworkActivityTimeout(HTTPRequestHandle hRequest, uint unTimeoutSeconds) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_SetHTTPRequestNetworkActivityTimeout(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, unTimeoutSeconds); - } + /// + /// Set a timeout in seconds for the HTTP request, must be called prior to sending the request. Default + /// timeout is 60 seconds if you don't call this. Returns false if the handle is invalid, or the request + /// has already been sent. + /// + public static bool SetHTTPRequestNetworkActivityTimeout( HTTPRequestHandle hRequest, uint unTimeoutSeconds ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_SetHTTPRequestNetworkActivityTimeout(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, unTimeoutSeconds); + } - /// - /// Set a request header value for the request, must be called prior to sending the request. Will - /// return false if the handle is invalid or the request is already sent. - /// - public static bool SetHTTPRequestHeaderValue(HTTPRequestHandle hRequest, string pchHeaderName, string pchHeaderValue) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchHeaderName2 = new InteropHelp.UTF8StringHandle(pchHeaderName)) - using (var pchHeaderValue2 = new InteropHelp.UTF8StringHandle(pchHeaderValue)) { - return NativeMethods.ISteamHTTP_SetHTTPRequestHeaderValue(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pchHeaderName2, pchHeaderValue2); - } - } + /// + /// Set a request header value for the request, must be called prior to sending the request. Will + /// return false if the handle is invalid or the request is already sent. + /// + public static bool SetHTTPRequestHeaderValue( HTTPRequestHandle hRequest, string pchHeaderName, string pchHeaderValue ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchHeaderName2 = new InteropHelp.UTF8StringHandle(pchHeaderName)) + using (var pchHeaderValue2 = new InteropHelp.UTF8StringHandle(pchHeaderValue)) + { + return NativeMethods.ISteamHTTP_SetHTTPRequestHeaderValue(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pchHeaderName2, pchHeaderValue2); + } + } - /// - /// Set a GET or POST parameter value on the request, which is set will depend on the EHTTPMethod specified - /// when creating the request. Must be called prior to sending the request. Will return false if the - /// handle is invalid or the request is already sent. - /// - public static bool SetHTTPRequestGetOrPostParameter(HTTPRequestHandle hRequest, string pchParamName, string pchParamValue) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchParamName2 = new InteropHelp.UTF8StringHandle(pchParamName)) - using (var pchParamValue2 = new InteropHelp.UTF8StringHandle(pchParamValue)) { - return NativeMethods.ISteamHTTP_SetHTTPRequestGetOrPostParameter(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pchParamName2, pchParamValue2); - } - } + /// + /// Set a GET or POST parameter value on the request, which is set will depend on the EHTTPMethod specified + /// when creating the request. Must be called prior to sending the request. Will return false if the + /// handle is invalid or the request is already sent. + /// + public static bool SetHTTPRequestGetOrPostParameter( HTTPRequestHandle hRequest, string pchParamName, string pchParamValue ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchParamName2 = new InteropHelp.UTF8StringHandle(pchParamName)) + using (var pchParamValue2 = new InteropHelp.UTF8StringHandle(pchParamValue)) + { + return NativeMethods.ISteamHTTP_SetHTTPRequestGetOrPostParameter(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pchParamName2, pchParamValue2); + } + } - /// - /// Sends the HTTP request, will return false on a bad handle, otherwise use SteamCallHandle to wait on - /// asynchronous response via callback. - /// Note: If the user is in offline mode in Steam, then this will add a only-if-cached cache-control - /// header and only do a local cache lookup rather than sending any actual remote request. - /// - public static bool SendHTTPRequest(HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_SendHTTPRequest(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, out pCallHandle); - } + /// + /// Sends the HTTP request, will return false on a bad handle, otherwise use SteamCallHandle to wait on + /// asynchronous response via callback. + /// Note: If the user is in offline mode in Steam, then this will add a only-if-cached cache-control + /// header and only do a local cache lookup rather than sending any actual remote request. + /// + public static bool SendHTTPRequest( HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_SendHTTPRequest(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, out pCallHandle); + } - /// - /// Sends the HTTP request, will return false on a bad handle, otherwise use SteamCallHandle to wait on - /// asynchronous response via callback for completion, and listen for HTTPRequestHeadersReceived_t and - /// HTTPRequestDataReceived_t callbacks while streaming. - /// - public static bool SendHTTPRequestAndStreamResponse(HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_SendHTTPRequestAndStreamResponse(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, out pCallHandle); - } + /// + /// Sends the HTTP request, will return false on a bad handle, otherwise use SteamCallHandle to wait on + /// asynchronous response via callback for completion, and listen for HTTPRequestHeadersReceived_t and + /// HTTPRequestDataReceived_t callbacks while streaming. + /// + public static bool SendHTTPRequestAndStreamResponse( HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_SendHTTPRequestAndStreamResponse(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, out pCallHandle); + } - /// - /// Defers a request you have sent, the actual HTTP client code may have many requests queued, and this will move - /// the specified request to the tail of the queue. Returns false on invalid handle, or if the request is not yet sent. - /// - public static bool DeferHTTPRequest(HTTPRequestHandle hRequest) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_DeferHTTPRequest(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest); - } + /// + /// Defers a request you have sent, the actual HTTP client code may have many requests queued, and this will move + /// the specified request to the tail of the queue. Returns false on invalid handle, or if the request is not yet sent. + /// + public static bool DeferHTTPRequest( HTTPRequestHandle hRequest ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_DeferHTTPRequest(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest); + } - /// - /// Prioritizes a request you have sent, the actual HTTP client code may have many requests queued, and this will move - /// the specified request to the head of the queue. Returns false on invalid handle, or if the request is not yet sent. - /// - public static bool PrioritizeHTTPRequest(HTTPRequestHandle hRequest) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_PrioritizeHTTPRequest(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest); - } + /// + /// Prioritizes a request you have sent, the actual HTTP client code may have many requests queued, and this will move + /// the specified request to the head of the queue. Returns false on invalid handle, or if the request is not yet sent. + /// + public static bool PrioritizeHTTPRequest( HTTPRequestHandle hRequest ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_PrioritizeHTTPRequest(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest); + } - /// - /// Checks if a response header is present in a HTTP response given a handle from HTTPRequestCompleted_t, also - /// returns the size of the header value if present so the caller and allocate a correctly sized buffer for - /// GetHTTPResponseHeaderValue. - /// - public static bool GetHTTPResponseHeaderSize(HTTPRequestHandle hRequest, string pchHeaderName, out uint unResponseHeaderSize) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchHeaderName2 = new InteropHelp.UTF8StringHandle(pchHeaderName)) { - return NativeMethods.ISteamHTTP_GetHTTPResponseHeaderSize(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pchHeaderName2, out unResponseHeaderSize); - } - } + /// + /// Checks if a response header is present in a HTTP response given a handle from HTTPRequestCompleted_t, also + /// returns the size of the header value if present so the caller and allocate a correctly sized buffer for + /// GetHTTPResponseHeaderValue. + /// + public static bool GetHTTPResponseHeaderSize( HTTPRequestHandle hRequest, string pchHeaderName, out uint unResponseHeaderSize ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchHeaderName2 = new InteropHelp.UTF8StringHandle(pchHeaderName)) + { + return NativeMethods.ISteamHTTP_GetHTTPResponseHeaderSize(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pchHeaderName2, out unResponseHeaderSize); + } + } - /// - /// Gets header values from a HTTP response given a handle from HTTPRequestCompleted_t, will return false if the - /// header is not present or if your buffer is too small to contain it's value. You should first call - /// BGetHTTPResponseHeaderSize to check for the presence of the header and to find out the size buffer needed. - /// - public static bool GetHTTPResponseHeaderValue(HTTPRequestHandle hRequest, string pchHeaderName, byte[] pHeaderValueBuffer, uint unBufferSize) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchHeaderName2 = new InteropHelp.UTF8StringHandle(pchHeaderName)) { - return NativeMethods.ISteamHTTP_GetHTTPResponseHeaderValue(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pchHeaderName2, pHeaderValueBuffer, unBufferSize); - } - } + /// + /// Gets header values from a HTTP response given a handle from HTTPRequestCompleted_t, will return false if the + /// header is not present or if your buffer is too small to contain it's value. You should first call + /// BGetHTTPResponseHeaderSize to check for the presence of the header and to find out the size buffer needed. + /// + public static bool GetHTTPResponseHeaderValue( HTTPRequestHandle hRequest, string pchHeaderName, byte[] pHeaderValueBuffer, uint unBufferSize ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchHeaderName2 = new InteropHelp.UTF8StringHandle(pchHeaderName)) + { + return NativeMethods.ISteamHTTP_GetHTTPResponseHeaderValue(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pchHeaderName2, pHeaderValueBuffer, unBufferSize); + } + } - /// - /// Gets the size of the body data from a HTTP response given a handle from HTTPRequestCompleted_t, will return false if the - /// handle is invalid. - /// - public static bool GetHTTPResponseBodySize(HTTPRequestHandle hRequest, out uint unBodySize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_GetHTTPResponseBodySize(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, out unBodySize); - } + /// + /// Gets the size of the body data from a HTTP response given a handle from HTTPRequestCompleted_t, will return false if the + /// handle is invalid. + /// + public static bool GetHTTPResponseBodySize( HTTPRequestHandle hRequest, out uint unBodySize ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_GetHTTPResponseBodySize(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, out unBodySize); + } - /// - /// Gets the body data from a HTTP response given a handle from HTTPRequestCompleted_t, will return false if the - /// handle is invalid or is to a streaming response, or if the provided buffer is not the correct size. Use BGetHTTPResponseBodySize first to find out - /// the correct buffer size to use. - /// - public static bool GetHTTPResponseBodyData(HTTPRequestHandle hRequest, byte[] pBodyDataBuffer, uint unBufferSize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_GetHTTPResponseBodyData(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pBodyDataBuffer, unBufferSize); - } + /// + /// Gets the body data from a HTTP response given a handle from HTTPRequestCompleted_t, will return false if the + /// handle is invalid or is to a streaming response, or if the provided buffer is not the correct size. Use BGetHTTPResponseBodySize first to find out + /// the correct buffer size to use. + /// + public static bool GetHTTPResponseBodyData( HTTPRequestHandle hRequest, byte[] pBodyDataBuffer, uint unBufferSize ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_GetHTTPResponseBodyData(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pBodyDataBuffer, unBufferSize); + } - /// - /// Gets the body data from a streaming HTTP response given a handle from HTTPRequestDataReceived_t. Will return false if the - /// handle is invalid or is to a non-streaming response (meaning it wasn't sent with SendHTTPRequestAndStreamResponse), or if the buffer size and offset - /// do not match the size and offset sent in HTTPRequestDataReceived_t. - /// - public static bool GetHTTPStreamingResponseBodyData(HTTPRequestHandle hRequest, uint cOffset, byte[] pBodyDataBuffer, uint unBufferSize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_GetHTTPStreamingResponseBodyData(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, cOffset, pBodyDataBuffer, unBufferSize); - } + /// + /// Gets the body data from a streaming HTTP response given a handle from HTTPRequestDataReceived_t. Will return false if the + /// handle is invalid or is to a non-streaming response (meaning it wasn't sent with SendHTTPRequestAndStreamResponse), or if the buffer size and offset + /// do not match the size and offset sent in HTTPRequestDataReceived_t. + /// + public static bool GetHTTPStreamingResponseBodyData( HTTPRequestHandle hRequest, uint cOffset, byte[] pBodyDataBuffer, uint unBufferSize ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_GetHTTPStreamingResponseBodyData(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, cOffset, pBodyDataBuffer, unBufferSize); + } - /// - /// Releases an HTTP response handle, should always be called to free resources after receiving a HTTPRequestCompleted_t - /// callback and finishing using the response. - /// - public static bool ReleaseHTTPRequest(HTTPRequestHandle hRequest) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_ReleaseHTTPRequest(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest); - } + /// + /// Releases an HTTP response handle, should always be called to free resources after receiving a HTTPRequestCompleted_t + /// callback and finishing using the response. + /// + public static bool ReleaseHTTPRequest( HTTPRequestHandle hRequest ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_ReleaseHTTPRequest(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest); + } - /// - /// Gets progress on downloading the body for the request. This will be zero unless a response header has already been - /// received which included a content-length field. For responses that contain no content-length it will report - /// zero for the duration of the request as the size is unknown until the connection closes. - /// - public static bool GetHTTPDownloadProgressPct(HTTPRequestHandle hRequest, out float pflPercentOut) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_GetHTTPDownloadProgressPct(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, out pflPercentOut); - } + /// + /// Gets progress on downloading the body for the request. This will be zero unless a response header has already been + /// received which included a content-length field. For responses that contain no content-length it will report + /// zero for the duration of the request as the size is unknown until the connection closes. + /// + public static bool GetHTTPDownloadProgressPct( HTTPRequestHandle hRequest, out float pflPercentOut ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_GetHTTPDownloadProgressPct(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, out pflPercentOut); + } - /// - /// Sets the body for an HTTP Post request. Will fail and return false on a GET request, and will fail if POST params - /// have already been set for the request. Setting this raw body makes it the only contents for the post, the pchContentType - /// parameter will set the content-type header for the request so the server may know how to interpret the body. - /// - public static bool SetHTTPRequestRawPostBody(HTTPRequestHandle hRequest, string pchContentType, byte[] pubBody, uint unBodyLen) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchContentType2 = new InteropHelp.UTF8StringHandle(pchContentType)) { - return NativeMethods.ISteamHTTP_SetHTTPRequestRawPostBody(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pchContentType2, pubBody, unBodyLen); - } - } + /// + /// Sets the body for an HTTP Post request. Will fail and return false on a GET request, and will fail if POST params + /// have already been set for the request. Setting this raw body makes it the only contents for the post, the pchContentType + /// parameter will set the content-type header for the request so the server may know how to interpret the body. + /// + public static bool SetHTTPRequestRawPostBody( HTTPRequestHandle hRequest, string pchContentType, byte[] pubBody, uint unBodyLen ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchContentType2 = new InteropHelp.UTF8StringHandle(pchContentType)) + { + return NativeMethods.ISteamHTTP_SetHTTPRequestRawPostBody(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pchContentType2, pubBody, unBodyLen); + } + } - /// - /// Creates a cookie container handle which you must later free with ReleaseCookieContainer(). If bAllowResponsesToModify=true - /// than any response to your requests using this cookie container may add new cookies which may be transmitted with - /// future requests. If bAllowResponsesToModify=false than only cookies you explicitly set will be sent. This API is just for - /// during process lifetime, after steam restarts no cookies are persisted and you have no way to access the cookie container across - /// repeat executions of your process. - /// - public static HTTPCookieContainerHandle CreateCookieContainer(bool bAllowResponsesToModify) { - InteropHelp.TestIfAvailableGameServer(); - return (HTTPCookieContainerHandle)NativeMethods.ISteamHTTP_CreateCookieContainer(CSteamGameServerAPIContext.GetSteamHTTP(), bAllowResponsesToModify); - } + /// + /// Creates a cookie container handle which you must later free with ReleaseCookieContainer(). If bAllowResponsesToModify=true + /// than any response to your requests using this cookie container may add new cookies which may be transmitted with + /// future requests. If bAllowResponsesToModify=false than only cookies you explicitly set will be sent. This API is just for + /// during process lifetime, after steam restarts no cookies are persisted and you have no way to access the cookie container across + /// repeat executions of your process. + /// + public static HTTPCookieContainerHandle CreateCookieContainer( bool bAllowResponsesToModify ) + { + InteropHelp.TestIfAvailableGameServer(); + return (HTTPCookieContainerHandle)NativeMethods.ISteamHTTP_CreateCookieContainer(CSteamGameServerAPIContext.GetSteamHTTP(), bAllowResponsesToModify); + } - /// - /// Release a cookie container you are finished using, freeing it's memory - /// - public static bool ReleaseCookieContainer(HTTPCookieContainerHandle hCookieContainer) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_ReleaseCookieContainer(CSteamGameServerAPIContext.GetSteamHTTP(), hCookieContainer); - } + /// + /// Release a cookie container you are finished using, freeing it's memory + /// + public static bool ReleaseCookieContainer( HTTPCookieContainerHandle hCookieContainer ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_ReleaseCookieContainer(CSteamGameServerAPIContext.GetSteamHTTP(), hCookieContainer); + } - /// - /// Adds a cookie to the specified cookie container that will be used with future requests. - /// - public static bool SetCookie(HTTPCookieContainerHandle hCookieContainer, string pchHost, string pchUrl, string pchCookie) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchHost2 = new InteropHelp.UTF8StringHandle(pchHost)) - using (var pchUrl2 = new InteropHelp.UTF8StringHandle(pchUrl)) - using (var pchCookie2 = new InteropHelp.UTF8StringHandle(pchCookie)) { - return NativeMethods.ISteamHTTP_SetCookie(CSteamGameServerAPIContext.GetSteamHTTP(), hCookieContainer, pchHost2, pchUrl2, pchCookie2); - } - } + /// + /// Adds a cookie to the specified cookie container that will be used with future requests. + /// + public static bool SetCookie( HTTPCookieContainerHandle hCookieContainer, string pchHost, string pchUrl, string pchCookie ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchHost2 = new InteropHelp.UTF8StringHandle(pchHost)) + using (var pchUrl2 = new InteropHelp.UTF8StringHandle(pchUrl)) + using (var pchCookie2 = new InteropHelp.UTF8StringHandle(pchCookie)) + { + return NativeMethods.ISteamHTTP_SetCookie(CSteamGameServerAPIContext.GetSteamHTTP(), hCookieContainer, pchHost2, pchUrl2, pchCookie2); + } + } - /// - /// Set the cookie container to use for a HTTP request - /// - public static bool SetHTTPRequestCookieContainer(HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_SetHTTPRequestCookieContainer(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, hCookieContainer); - } + /// + /// Set the cookie container to use for a HTTP request + /// + public static bool SetHTTPRequestCookieContainer( HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_SetHTTPRequestCookieContainer(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, hCookieContainer); + } - /// - /// Set the extra user agent info for a request, this doesn't clobber the normal user agent, it just adds the extra info on the end - /// - public static bool SetHTTPRequestUserAgentInfo(HTTPRequestHandle hRequest, string pchUserAgentInfo) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchUserAgentInfo2 = new InteropHelp.UTF8StringHandle(pchUserAgentInfo)) { - return NativeMethods.ISteamHTTP_SetHTTPRequestUserAgentInfo(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pchUserAgentInfo2); - } - } + /// + /// Set the extra user agent info for a request, this doesn't clobber the normal user agent, it just adds the extra info on the end + /// + public static bool SetHTTPRequestUserAgentInfo( HTTPRequestHandle hRequest, string pchUserAgentInfo ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchUserAgentInfo2 = new InteropHelp.UTF8StringHandle(pchUserAgentInfo)) + { + return NativeMethods.ISteamHTTP_SetHTTPRequestUserAgentInfo(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, pchUserAgentInfo2); + } + } - /// - /// Disable or re-enable verification of SSL/TLS certificates. - /// By default, certificates are checked for all HTTPS requests. - /// - public static bool SetHTTPRequestRequiresVerifiedCertificate(HTTPRequestHandle hRequest, bool bRequireVerifiedCertificate) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, bRequireVerifiedCertificate); - } + /// + /// Disable or re-enable verification of SSL/TLS certificates. + /// By default, certificates are checked for all HTTPS requests. + /// + public static bool SetHTTPRequestRequiresVerifiedCertificate( HTTPRequestHandle hRequest, bool bRequireVerifiedCertificate ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, bRequireVerifiedCertificate); + } - /// - /// Set an absolute timeout on the HTTP request, this is just a total time timeout different than the network activity timeout - /// which can bump everytime we get more data - /// - public static bool SetHTTPRequestAbsoluteTimeoutMS(HTTPRequestHandle hRequest, uint unMilliseconds) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, unMilliseconds); - } + /// + /// Set an absolute timeout on the HTTP request, this is just a total time timeout different than the network activity timeout + /// which can bump everytime we get more data + /// + public static bool SetHTTPRequestAbsoluteTimeoutMS( HTTPRequestHandle hRequest, uint unMilliseconds ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, unMilliseconds); + } - /// - /// Check if the reason the request failed was because we timed it out (rather than some harder failure) - /// - public static bool GetHTTPRequestWasTimedOut(HTTPRequestHandle hRequest, out bool pbWasTimedOut) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamHTTP_GetHTTPRequestWasTimedOut(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, out pbWasTimedOut); - } - } + /// + /// Check if the reason the request failed was because we timed it out (rather than some harder failure) + /// + public static bool GetHTTPRequestWasTimedOut( HTTPRequestHandle hRequest, out bool pbWasTimedOut ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamHTTP_GetHTTPRequestWasTimedOut(CSteamGameServerAPIContext.GetSteamHTTP(), hRequest, out pbWasTimedOut); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverinventory.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverinventory.cs index 80e69dfa1..4c548cef8 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverinventory.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverinventory.cs @@ -1,465 +1,509 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - public static class SteamGameServerInventory { - /// - /// INVENTORY ASYNC RESULT MANAGEMENT - /// Asynchronous inventory queries always output a result handle which can be used with - /// GetResultStatus, GetResultItems, etc. A SteamInventoryResultReady_t callback will - /// be triggered when the asynchronous result becomes ready (or fails). - /// Find out the status of an asynchronous inventory result handle. Possible values: - /// k_EResultPending - still in progress - /// k_EResultOK - done, result ready - /// k_EResultExpired - done, result ready, maybe out of date (see DeserializeResult) - /// k_EResultInvalidParam - ERROR: invalid API call parameters - /// k_EResultServiceUnavailable - ERROR: service temporarily down, you may retry later - /// k_EResultLimitExceeded - ERROR: operation would exceed per-user inventory limits - /// k_EResultFail - ERROR: unknown / generic error - /// - public static EResult GetResultStatus(SteamInventoryResult_t resultHandle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_GetResultStatus(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle); - } - - /// - /// Copies the contents of a result set into a flat array. The specific - /// contents of the result set depend on which query which was used. - /// - public static bool GetResultItems(SteamInventoryResult_t resultHandle, SteamItemDetails_t[] pOutItemsArray, ref uint punOutItemsArraySize) { - InteropHelp.TestIfAvailableGameServer(); - if (pOutItemsArray != null && pOutItemsArray.Length != punOutItemsArraySize) { - throw new System.ArgumentException("pOutItemsArray must be the same size as punOutItemsArraySize!"); - } - return NativeMethods.ISteamInventory_GetResultItems(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle, pOutItemsArray, ref punOutItemsArraySize); - } - - /// - /// In combination with GetResultItems, you can use GetResultItemProperty to retrieve - /// dynamic string properties for a given item returned in the result set. - /// Property names are always composed of ASCII letters, numbers, and/or underscores. - /// Pass a NULL pointer for pchPropertyName to get a comma - separated list of available - /// property names. - /// If pchValueBuffer is NULL, *punValueBufferSize will contain the - /// suggested buffer size. Otherwise it will be the number of bytes actually copied - /// to pchValueBuffer. If the results do not fit in the given buffer, partial - /// results may be copied. - /// - public static bool GetResultItemProperty(SteamInventoryResult_t resultHandle, uint unItemIndex, string pchPropertyName, out string pchValueBuffer, ref uint punValueBufferSizeOut) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchValueBuffer2 = Marshal.AllocHGlobal((int)punValueBufferSizeOut); - using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) { - bool ret = NativeMethods.ISteamInventory_GetResultItemProperty(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle, unItemIndex, pchPropertyName2, pchValueBuffer2, ref punValueBufferSizeOut); - pchValueBuffer = ret ? InteropHelp.PtrToStringUTF8(pchValueBuffer2) : null; - Marshal.FreeHGlobal(pchValueBuffer2); - return ret; - } - } - - /// - /// Returns the server time at which the result was generated. Compare against - /// the value of IClientUtils::GetServerRealTime() to determine age. - /// - public static uint GetResultTimestamp(SteamInventoryResult_t resultHandle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_GetResultTimestamp(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle); - } - - /// - /// Returns true if the result belongs to the target steam ID, false if the - /// result does not. This is important when using DeserializeResult, to verify - /// that a remote player is not pretending to have a different user's inventory. - /// - public static bool CheckResultSteamID(SteamInventoryResult_t resultHandle, CSteamID steamIDExpected) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_CheckResultSteamID(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle, steamIDExpected); - } - - /// - /// Destroys a result handle and frees all associated memory. - /// - public static void DestroyResult(SteamInventoryResult_t resultHandle) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamInventory_DestroyResult(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle); - } - - /// - /// INVENTORY ASYNC QUERY - /// Captures the entire state of the current user's Steam inventory. - /// You must call DestroyResult on this handle when you are done with it. - /// Returns false and sets *pResultHandle to zero if inventory is unavailable. - /// Note: calls to this function are subject to rate limits and may return - /// cached results if called too frequently. It is suggested that you call - /// this function only when you are about to display the user's full inventory, - /// or if you expect that the inventory may have changed. - /// - public static bool GetAllItems(out SteamInventoryResult_t pResultHandle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_GetAllItems(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle); - } - - /// - /// Captures the state of a subset of the current user's Steam inventory, - /// identified by an array of item instance IDs. The results from this call - /// can be serialized and passed to other players to "prove" that the current - /// user owns specific items, without exposing the user's entire inventory. - /// For example, you could call GetItemsByID with the IDs of the user's - /// currently equipped cosmetic items and serialize this to a buffer, and - /// then transmit this buffer to other players upon joining a game. - /// - public static bool GetItemsByID(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t[] pInstanceIDs, uint unCountInstanceIDs) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_GetItemsByID(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, pInstanceIDs, unCountInstanceIDs); - } - - /// - /// RESULT SERIALIZATION AND AUTHENTICATION - /// Serialized result sets contain a short signature which can't be forged - /// or replayed across different game sessions. A result set can be serialized - /// on the local client, transmitted to other players via your game networking, - /// and deserialized by the remote players. This is a secure way of preventing - /// hackers from lying about posessing rare/high-value items. - /// Serializes a result set with signature bytes to an output buffer. Pass - /// NULL as an output buffer to get the required size via punOutBufferSize. - /// The size of a serialized result depends on the number items which are being - /// serialized. When securely transmitting items to other players, it is - /// recommended to use "GetItemsByID" first to create a minimal result set. - /// Results have a built-in timestamp which will be considered "expired" after - /// an hour has elapsed. See DeserializeResult for expiration handling. - /// - public static bool SerializeResult(SteamInventoryResult_t resultHandle, byte[] pOutBuffer, out uint punOutBufferSize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_SerializeResult(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle, pOutBuffer, out punOutBufferSize); - } - - /// - /// Deserializes a result set and verifies the signature bytes. Returns false - /// if bRequireFullOnlineVerify is set but Steam is running in Offline mode. - /// Otherwise returns true and then delivers error codes via GetResultStatus. - /// The bRESERVED_MUST_BE_FALSE flag is reserved for future use and should not - /// be set to true by your game at this time. - /// DeserializeResult has a potential soft-failure mode where the handle status - /// is set to k_EResultExpired. GetResultItems() still succeeds in this mode. - /// The "expired" result could indicate that the data may be out of date - not - /// just due to timed expiration (one hour), but also because one of the items - /// in the result set may have been traded or consumed since the result set was - /// generated. You could compare the timestamp from GetResultTimestamp() to - /// ISteamUtils::GetServerRealTime() to determine how old the data is. You could - /// simply ignore the "expired" result code and continue as normal, or you - /// could challenge the player with expired data to send an updated result set. - /// - public static bool DeserializeResult(out SteamInventoryResult_t pOutResultHandle, byte[] pBuffer, uint unBufferSize, bool bRESERVED_MUST_BE_FALSE = false) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_DeserializeResult(CSteamGameServerAPIContext.GetSteamInventory(), out pOutResultHandle, pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE); - } - - /// - /// INVENTORY ASYNC MODIFICATION - /// GenerateItems() creates one or more items and then generates a SteamInventoryCallback_t - /// notification with a matching nCallbackContext parameter. This API is only intended - /// for prototyping - it is only usable by Steam accounts that belong to the publisher group - /// for your game. - /// If punArrayQuantity is not NULL, it should be the same length as pArrayItems and should - /// describe the quantity of each item to generate. - /// - public static bool GenerateItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayItemDefs, uint[] punArrayQuantity, uint unArrayLength) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_GenerateItems(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, pArrayItemDefs, punArrayQuantity, unArrayLength); - } - - /// - /// GrantPromoItems() checks the list of promotional items for which the user may be eligible - /// and grants the items (one time only). On success, the result set will include items which - /// were granted, if any. If no items were granted because the user isn't eligible for any - /// promotions, this is still considered a success. - /// - public static bool GrantPromoItems(out SteamInventoryResult_t pResultHandle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_GrantPromoItems(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle); - } - - /// - /// AddPromoItem() / AddPromoItems() are restricted versions of GrantPromoItems(). Instead of - /// scanning for all eligible promotional items, the check is restricted to a single item - /// definition or set of item definitions. This can be useful if your game has custom UI for - /// showing a specific promo item to the user. - /// - public static bool AddPromoItem(out SteamInventoryResult_t pResultHandle, SteamItemDef_t itemDef) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_AddPromoItem(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, itemDef); - } - - public static bool AddPromoItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayItemDefs, uint unArrayLength) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_AddPromoItems(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, pArrayItemDefs, unArrayLength); - } - - /// - /// ConsumeItem() removes items from the inventory, permanently. They cannot be recovered. - /// Not for the faint of heart - if your game implements item removal at all, a high-friction - /// UI confirmation process is highly recommended. - /// - public static bool ConsumeItem(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemConsume, uint unQuantity) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_ConsumeItem(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, itemConsume, unQuantity); - } - - /// - /// ExchangeItems() is an atomic combination of item generation and consumption. - /// It can be used to implement crafting recipes or transmutations, or items which unpack - /// themselves into other items (e.g., a chest). - /// Exchange recipes are defined in the ItemDef, and explicitly list the required item - /// types and resulting generated type. - /// Exchange recipes are evaluated atomically by the Inventory Service; if the supplied - /// components do not match the recipe, or do not contain sufficient quantity, the - /// exchange will fail. - /// - public static bool ExchangeItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayGenerate, uint[] punArrayGenerateQuantity, uint unArrayGenerateLength, SteamItemInstanceID_t[] pArrayDestroy, uint[] punArrayDestroyQuantity, uint unArrayDestroyLength) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_ExchangeItems(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, pArrayGenerate, punArrayGenerateQuantity, unArrayGenerateLength, pArrayDestroy, punArrayDestroyQuantity, unArrayDestroyLength); - } - - /// - /// TransferItemQuantity() is intended for use with items which are "stackable" (can have - /// quantity greater than one). It can be used to split a stack into two, or to transfer - /// quantity from one stack into another stack of identical items. To split one stack into - /// two, pass k_SteamItemInstanceIDInvalid for itemIdDest and a new item will be generated. - /// - public static bool TransferItemQuantity(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemIdSource, uint unQuantity, SteamItemInstanceID_t itemIdDest) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_TransferItemQuantity(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, itemIdSource, unQuantity, itemIdDest); - } - - /// - /// TIMED DROPS AND PLAYTIME CREDIT - /// Deprecated. Calling this method is not required for proper playtime accounting. - /// - public static void SendItemDropHeartbeat() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamInventory_SendItemDropHeartbeat(CSteamGameServerAPIContext.GetSteamInventory()); - } - - /// - /// Playtime credit must be consumed and turned into item drops by your game. Only item - /// definitions which are marked as "playtime item generators" can be spawned. The call - /// will return an empty result set if there is not enough playtime credit for a drop. - /// Your game should call TriggerItemDrop at an appropriate time for the user to receive - /// new items, such as between rounds or while the player is dead. Note that players who - /// hack their clients could modify the value of "dropListDefinition", so do not use it - /// to directly control rarity. - /// See your Steamworks configuration to set playtime drop rates for individual itemdefs. - /// The client library will suppress too-frequent calls to this method. - /// - public static bool TriggerItemDrop(out SteamInventoryResult_t pResultHandle, SteamItemDef_t dropListDefinition) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_TriggerItemDrop(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, dropListDefinition); - } - - /// - /// Deprecated. This method is not supported. - /// - public static bool TradeItems(out SteamInventoryResult_t pResultHandle, CSteamID steamIDTradePartner, SteamItemInstanceID_t[] pArrayGive, uint[] pArrayGiveQuantity, uint nArrayGiveLength, SteamItemInstanceID_t[] pArrayGet, uint[] pArrayGetQuantity, uint nArrayGetLength) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_TradeItems(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, steamIDTradePartner, pArrayGive, pArrayGiveQuantity, nArrayGiveLength, pArrayGet, pArrayGetQuantity, nArrayGetLength); - } - - /// - /// ITEM DEFINITIONS - /// Item definitions are a mapping of "definition IDs" (integers between 1 and 1000000) - /// to a set of string properties. Some of these properties are required to display items - /// on the Steam community web site. Other properties can be defined by applications. - /// Use of these functions is optional; there is no reason to call LoadItemDefinitions - /// if your game hardcodes the numeric definition IDs (eg, purple face mask = 20, blue - /// weapon mod = 55) and does not allow for adding new item types without a client patch. - /// LoadItemDefinitions triggers the automatic load and refresh of item definitions. - /// Every time new item definitions are available (eg, from the dynamic addition of new - /// item types while players are still in-game), a SteamInventoryDefinitionUpdate_t - /// callback will be fired. - /// - public static bool LoadItemDefinitions() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_LoadItemDefinitions(CSteamGameServerAPIContext.GetSteamInventory()); - } - - /// - /// GetItemDefinitionIDs returns the set of all defined item definition IDs (which are - /// defined via Steamworks configuration, and not necessarily contiguous integers). - /// If pItemDefIDs is null, the call will return true and *punItemDefIDsArraySize will - /// contain the total size necessary for a subsequent call. Otherwise, the call will - /// return false if and only if there is not enough space in the output array. - /// - public static bool GetItemDefinitionIDs(SteamItemDef_t[] pItemDefIDs, ref uint punItemDefIDsArraySize) { - InteropHelp.TestIfAvailableGameServer(); - if (pItemDefIDs != null && pItemDefIDs.Length != punItemDefIDsArraySize) { - throw new System.ArgumentException("pItemDefIDs must be the same size as punItemDefIDsArraySize!"); - } - return NativeMethods.ISteamInventory_GetItemDefinitionIDs(CSteamGameServerAPIContext.GetSteamInventory(), pItemDefIDs, ref punItemDefIDsArraySize); - } - - /// - /// GetItemDefinitionProperty returns a string property from a given item definition. - /// Note that some properties (for example, "name") may be localized and will depend - /// on the current Steam language settings (see ISteamApps::GetCurrentGameLanguage). - /// Property names are always composed of ASCII letters, numbers, and/or underscores. - /// Pass a NULL pointer for pchPropertyName to get a comma - separated list of available - /// property names. If pchValueBuffer is NULL, *punValueBufferSize will contain the - /// suggested buffer size. Otherwise it will be the number of bytes actually copied - /// to pchValueBuffer. If the results do not fit in the given buffer, partial - /// results may be copied. - /// - public static bool GetItemDefinitionProperty(SteamItemDef_t iDefinition, string pchPropertyName, out string pchValueBuffer, ref uint punValueBufferSizeOut) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchValueBuffer2 = Marshal.AllocHGlobal((int)punValueBufferSizeOut); - using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) { - bool ret = NativeMethods.ISteamInventory_GetItemDefinitionProperty(CSteamGameServerAPIContext.GetSteamInventory(), iDefinition, pchPropertyName2, pchValueBuffer2, ref punValueBufferSizeOut); - pchValueBuffer = ret ? InteropHelp.PtrToStringUTF8(pchValueBuffer2) : null; - Marshal.FreeHGlobal(pchValueBuffer2); - return ret; - } - } - - /// - /// Request the list of "eligible" promo items that can be manually granted to the given - /// user. These are promo items of type "manual" that won't be granted automatically. - /// An example usage of this is an item that becomes available every week. - /// - public static SteamAPICall_t RequestEligiblePromoItemDefinitionsIDs(CSteamID steamID) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamInventory_RequestEligiblePromoItemDefinitionsIDs(CSteamGameServerAPIContext.GetSteamInventory(), steamID); - } - - /// - /// After handling a SteamInventoryEligiblePromoItemDefIDs_t call result, use this - /// function to pull out the list of item definition ids that the user can be - /// manually granted via the AddPromoItems() call. - /// - public static bool GetEligiblePromoItemDefinitionIDs(CSteamID steamID, SteamItemDef_t[] pItemDefIDs, ref uint punItemDefIDsArraySize) { - InteropHelp.TestIfAvailableGameServer(); - if (pItemDefIDs != null && pItemDefIDs.Length != punItemDefIDsArraySize) { - throw new System.ArgumentException("pItemDefIDs must be the same size as punItemDefIDsArraySize!"); - } - return NativeMethods.ISteamInventory_GetEligiblePromoItemDefinitionIDs(CSteamGameServerAPIContext.GetSteamInventory(), steamID, pItemDefIDs, ref punItemDefIDsArraySize); - } - - /// - /// Starts the purchase process for the given item definitions. The callback SteamInventoryStartPurchaseResult_t - /// will be posted if Steam was able to initialize the transaction. - /// Once the purchase has been authorized and completed by the user, the callback SteamInventoryResultReady_t - /// will be posted. - /// - public static SteamAPICall_t StartPurchase(SteamItemDef_t[] pArrayItemDefs, uint[] punArrayQuantity, uint unArrayLength) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamInventory_StartPurchase(CSteamGameServerAPIContext.GetSteamInventory(), pArrayItemDefs, punArrayQuantity, unArrayLength); - } - - /// - /// Request current prices for all applicable item definitions - /// - public static SteamAPICall_t RequestPrices() { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamInventory_RequestPrices(CSteamGameServerAPIContext.GetSteamInventory()); - } - - /// - /// Returns the number of items with prices. Need to call RequestPrices() first. - /// - public static uint GetNumItemsWithPrices() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_GetNumItemsWithPrices(CSteamGameServerAPIContext.GetSteamInventory()); - } - - /// - /// Returns item definition ids and their prices in the user's local currency. - /// Need to call RequestPrices() first. - /// - public static bool GetItemsWithPrices(SteamItemDef_t[] pArrayItemDefs, ulong[] pCurrentPrices, ulong[] pBasePrices, uint unArrayLength) { - InteropHelp.TestIfAvailableGameServer(); - if (pArrayItemDefs != null && pArrayItemDefs.Length != unArrayLength) { - throw new System.ArgumentException("pArrayItemDefs must be the same size as unArrayLength!"); - } - if (pCurrentPrices != null && pCurrentPrices.Length != unArrayLength) { - throw new System.ArgumentException("pCurrentPrices must be the same size as unArrayLength!"); - } - if (pBasePrices != null && pBasePrices.Length != unArrayLength) { - throw new System.ArgumentException("pBasePrices must be the same size as unArrayLength!"); - } - return NativeMethods.ISteamInventory_GetItemsWithPrices(CSteamGameServerAPIContext.GetSteamInventory(), pArrayItemDefs, pCurrentPrices, pBasePrices, unArrayLength); - } - - /// - /// Retrieves the price for the item definition id - /// Returns false if there is no price stored for the item definition. - /// - public static bool GetItemPrice(SteamItemDef_t iDefinition, out ulong pCurrentPrice, out ulong pBasePrice) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_GetItemPrice(CSteamGameServerAPIContext.GetSteamInventory(), iDefinition, out pCurrentPrice, out pBasePrice); - } - - /// - /// Create a request to update properties on items - /// - public static SteamInventoryUpdateHandle_t StartUpdateProperties() { - InteropHelp.TestIfAvailableGameServer(); - return (SteamInventoryUpdateHandle_t)NativeMethods.ISteamInventory_StartUpdateProperties(CSteamGameServerAPIContext.GetSteamInventory()); - } - - /// - /// Remove the property on the item - /// - public static bool RemoveProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) { - return NativeMethods.ISteamInventory_RemoveProperty(CSteamGameServerAPIContext.GetSteamInventory(), handle, nItemID, pchPropertyName2); - } - } - - /// - /// Accessor methods to set properties on items - /// - public static bool SetProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, string pchPropertyValue) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) - using (var pchPropertyValue2 = new InteropHelp.UTF8StringHandle(pchPropertyValue)) { - return NativeMethods.ISteamInventory_SetPropertyString(CSteamGameServerAPIContext.GetSteamInventory(), handle, nItemID, pchPropertyName2, pchPropertyValue2); - } - } - - public static bool SetProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, bool bValue) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) { - return NativeMethods.ISteamInventory_SetPropertyBool(CSteamGameServerAPIContext.GetSteamInventory(), handle, nItemID, pchPropertyName2, bValue); - } - } - - public static bool SetProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, long nValue) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) { - return NativeMethods.ISteamInventory_SetPropertyInt64(CSteamGameServerAPIContext.GetSteamInventory(), handle, nItemID, pchPropertyName2, nValue); - } - } - - public static bool SetProperty(SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, float flValue) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) { - return NativeMethods.ISteamInventory_SetPropertyFloat(CSteamGameServerAPIContext.GetSteamInventory(), handle, nItemID, pchPropertyName2, flValue); - } - } - - /// - /// Submit the update request by handle - /// - public static bool SubmitUpdateProperties(SteamInventoryUpdateHandle_t handle, out SteamInventoryResult_t pResultHandle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamInventory_SubmitUpdateProperties(CSteamGameServerAPIContext.GetSteamInventory(), handle, out pResultHandle); - } - - public static bool InspectItem(out SteamInventoryResult_t pResultHandle, string pchItemToken) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchItemToken2 = new InteropHelp.UTF8StringHandle(pchItemToken)) { - return NativeMethods.ISteamInventory_InspectItem(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, pchItemToken2); - } - } - } + +namespace SwiftlyS2.Shared.SteamAPI; + +public static class SteamGameServerInventory +{ + /// + /// INVENTORY ASYNC RESULT MANAGEMENT + /// Asynchronous inventory queries always output a result handle which can be used with + /// GetResultStatus, GetResultItems, etc. A SteamInventoryResultReady_t callback will + /// be triggered when the asynchronous result becomes ready (or fails). + /// Find out the status of an asynchronous inventory result handle. Possible values: + /// k_EResultPending - still in progress + /// k_EResultOK - done, result ready + /// k_EResultExpired - done, result ready, maybe out of date (see DeserializeResult) + /// k_EResultInvalidParam - ERROR: invalid API call parameters + /// k_EResultServiceUnavailable - ERROR: service temporarily down, you may retry later + /// k_EResultLimitExceeded - ERROR: operation would exceed per-user inventory limits + /// k_EResultFail - ERROR: unknown / generic error + /// + public static EResult GetResultStatus( SteamInventoryResult_t resultHandle ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_GetResultStatus(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle); + } + + /// + /// Copies the contents of a result set into a flat array. The specific + /// contents of the result set depend on which query which was used. + /// + public static bool GetResultItems( SteamInventoryResult_t resultHandle, SteamItemDetails_t[] pOutItemsArray, ref uint punOutItemsArraySize ) + { + InteropHelp.TestIfAvailableGameServer(); + return pOutItemsArray != null && pOutItemsArray.Length != punOutItemsArraySize + ? throw new ArgumentException("pOutItemsArray must be the same size as punOutItemsArraySize!") + : NativeMethods.ISteamInventory_GetResultItems(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle, pOutItemsArray, ref punOutItemsArraySize); + } + + /// + /// In combination with GetResultItems, you can use GetResultItemProperty to retrieve + /// dynamic string properties for a given item returned in the result set. + /// Property names are always composed of ASCII letters, numbers, and/or underscores. + /// Pass a NULL pointer for pchPropertyName to get a comma - separated list of available + /// property names. + /// If pchValueBuffer is NULL, *punValueBufferSize will contain the + /// suggested buffer size. Otherwise it will be the number of bytes actually copied + /// to pchValueBuffer. If the results do not fit in the given buffer, partial + /// results may be copied. + /// + public static bool GetResultItemProperty( SteamInventoryResult_t resultHandle, uint unItemIndex, string pchPropertyName, out string pchValueBuffer, ref uint punValueBufferSizeOut ) + { + InteropHelp.TestIfAvailableGameServer(); + var pchValueBuffer2 = Marshal.AllocHGlobal((int)punValueBufferSizeOut); + using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) + { + var ret = NativeMethods.ISteamInventory_GetResultItemProperty(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle, unItemIndex, pchPropertyName2, pchValueBuffer2, ref punValueBufferSizeOut); + pchValueBuffer = ret ? InteropHelp.PtrToStringUTF8(pchValueBuffer2) : null; + Marshal.FreeHGlobal(pchValueBuffer2); + return ret; + } + } + + /// + /// Returns the server time at which the result was generated. Compare against + /// the value of IClientUtils::GetServerRealTime() to determine age. + /// + public static uint GetResultTimestamp( SteamInventoryResult_t resultHandle ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_GetResultTimestamp(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle); + } + + /// + /// Returns true if the result belongs to the target steam ID, false if the + /// result does not. This is important when using DeserializeResult, to verify + /// that a remote player is not pretending to have a different user's inventory. + /// + public static bool CheckResultSteamID( SteamInventoryResult_t resultHandle, CSteamID steamIDExpected ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_CheckResultSteamID(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle, steamIDExpected); + } + + /// + /// Destroys a result handle and frees all associated memory. + /// + public static void DestroyResult( SteamInventoryResult_t resultHandle ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamInventory_DestroyResult(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle); + } + + /// + /// INVENTORY ASYNC QUERY + /// Captures the entire state of the current user's Steam inventory. + /// You must call DestroyResult on this handle when you are done with it. + /// Returns false and sets *pResultHandle to zero if inventory is unavailable. + /// Note: calls to this function are subject to rate limits and may return + /// cached results if called too frequently. It is suggested that you call + /// this function only when you are about to display the user's full inventory, + /// or if you expect that the inventory may have changed. + /// + public static bool GetAllItems( out SteamInventoryResult_t pResultHandle ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_GetAllItems(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle); + } + + /// + /// Captures the state of a subset of the current user's Steam inventory, + /// identified by an array of item instance IDs. The results from this call + /// can be serialized and passed to other players to "prove" that the current + /// user owns specific items, without exposing the user's entire inventory. + /// For example, you could call GetItemsByID with the IDs of the user's + /// currently equipped cosmetic items and serialize this to a buffer, and + /// then transmit this buffer to other players upon joining a game. + /// + public static bool GetItemsByID( out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t[] pInstanceIDs, uint unCountInstanceIDs ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_GetItemsByID(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, pInstanceIDs, unCountInstanceIDs); + } + + /// + /// RESULT SERIALIZATION AND AUTHENTICATION + /// Serialized result sets contain a short signature which can't be forged + /// or replayed across different game sessions. A result set can be serialized + /// on the local client, transmitted to other players via your game networking, + /// and deserialized by the remote players. This is a secure way of preventing + /// hackers from lying about posessing rare/high-value items. + /// Serializes a result set with signature bytes to an output buffer. Pass + /// NULL as an output buffer to get the required size via punOutBufferSize. + /// The size of a serialized result depends on the number items which are being + /// serialized. When securely transmitting items to other players, it is + /// recommended to use "GetItemsByID" first to create a minimal result set. + /// Results have a built-in timestamp which will be considered "expired" after + /// an hour has elapsed. See DeserializeResult for expiration handling. + /// + public static bool SerializeResult( SteamInventoryResult_t resultHandle, byte[] pOutBuffer, out uint punOutBufferSize ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_SerializeResult(CSteamGameServerAPIContext.GetSteamInventory(), resultHandle, pOutBuffer, out punOutBufferSize); + } + + /// + /// Deserializes a result set and verifies the signature bytes. Returns false + /// if bRequireFullOnlineVerify is set but Steam is running in Offline mode. + /// Otherwise returns true and then delivers error codes via GetResultStatus. + /// The bRESERVED_MUST_BE_FALSE flag is reserved for future use and should not + /// be set to true by your game at this time. + /// DeserializeResult has a potential soft-failure mode where the handle status + /// is set to k_EResultExpired. GetResultItems() still succeeds in this mode. + /// The "expired" result could indicate that the data may be out of date - not + /// just due to timed expiration (one hour), but also because one of the items + /// in the result set may have been traded or consumed since the result set was + /// generated. You could compare the timestamp from GetResultTimestamp() to + /// ISteamUtils::GetServerRealTime() to determine how old the data is. You could + /// simply ignore the "expired" result code and continue as normal, or you + /// could challenge the player with expired data to send an updated result set. + /// + public static bool DeserializeResult( out SteamInventoryResult_t pOutResultHandle, byte[] pBuffer, uint unBufferSize, bool bRESERVED_MUST_BE_FALSE = false ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_DeserializeResult(CSteamGameServerAPIContext.GetSteamInventory(), out pOutResultHandle, pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE); + } + + /// + /// INVENTORY ASYNC MODIFICATION + /// GenerateItems() creates one or more items and then generates a SteamInventoryCallback_t + /// notification with a matching nCallbackContext parameter. This API is only intended + /// for prototyping - it is only usable by Steam accounts that belong to the publisher group + /// for your game. + /// If punArrayQuantity is not NULL, it should be the same length as pArrayItems and should + /// describe the quantity of each item to generate. + /// + public static bool GenerateItems( out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayItemDefs, uint[] punArrayQuantity, uint unArrayLength ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_GenerateItems(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, pArrayItemDefs, punArrayQuantity, unArrayLength); + } + + /// + /// GrantPromoItems() checks the list of promotional items for which the user may be eligible + /// and grants the items (one time only). On success, the result set will include items which + /// were granted, if any. If no items were granted because the user isn't eligible for any + /// promotions, this is still considered a success. + /// + public static bool GrantPromoItems( out SteamInventoryResult_t pResultHandle ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_GrantPromoItems(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle); + } + + /// + /// AddPromoItem() / AddPromoItems() are restricted versions of GrantPromoItems(). Instead of + /// scanning for all eligible promotional items, the check is restricted to a single item + /// definition or set of item definitions. This can be useful if your game has custom UI for + /// showing a specific promo item to the user. + /// + public static bool AddPromoItem( out SteamInventoryResult_t pResultHandle, SteamItemDef_t itemDef ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_AddPromoItem(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, itemDef); + } + + public static bool AddPromoItems( out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayItemDefs, uint unArrayLength ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_AddPromoItems(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, pArrayItemDefs, unArrayLength); + } + + /// + /// ConsumeItem() removes items from the inventory, permanently. They cannot be recovered. + /// Not for the faint of heart - if your game implements item removal at all, a high-friction + /// UI confirmation process is highly recommended. + /// + public static bool ConsumeItem( out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemConsume, uint unQuantity ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_ConsumeItem(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, itemConsume, unQuantity); + } + + /// + /// ExchangeItems() is an atomic combination of item generation and consumption. + /// It can be used to implement crafting recipes or transmutations, or items which unpack + /// themselves into other items (e.g., a chest). + /// Exchange recipes are defined in the ItemDef, and explicitly list the required item + /// types and resulting generated type. + /// Exchange recipes are evaluated atomically by the Inventory Service; if the supplied + /// components do not match the recipe, or do not contain sufficient quantity, the + /// exchange will fail. + /// + public static bool ExchangeItems( out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayGenerate, uint[] punArrayGenerateQuantity, uint unArrayGenerateLength, SteamItemInstanceID_t[] pArrayDestroy, uint[] punArrayDestroyQuantity, uint unArrayDestroyLength ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_ExchangeItems(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, pArrayGenerate, punArrayGenerateQuantity, unArrayGenerateLength, pArrayDestroy, punArrayDestroyQuantity, unArrayDestroyLength); + } + + /// + /// TransferItemQuantity() is intended for use with items which are "stackable" (can have + /// quantity greater than one). It can be used to split a stack into two, or to transfer + /// quantity from one stack into another stack of identical items. To split one stack into + /// two, pass k_SteamItemInstanceIDInvalid for itemIdDest and a new item will be generated. + /// + public static bool TransferItemQuantity( out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemIdSource, uint unQuantity, SteamItemInstanceID_t itemIdDest ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_TransferItemQuantity(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, itemIdSource, unQuantity, itemIdDest); + } + + /// + /// TIMED DROPS AND PLAYTIME CREDIT + /// Deprecated. Calling this method is not required for proper playtime accounting. + /// + public static void SendItemDropHeartbeat() + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamInventory_SendItemDropHeartbeat(CSteamGameServerAPIContext.GetSteamInventory()); + } + + /// + /// Playtime credit must be consumed and turned into item drops by your game. Only item + /// definitions which are marked as "playtime item generators" can be spawned. The call + /// will return an empty result set if there is not enough playtime credit for a drop. + /// Your game should call TriggerItemDrop at an appropriate time for the user to receive + /// new items, such as between rounds or while the player is dead. Note that players who + /// hack their clients could modify the value of "dropListDefinition", so do not use it + /// to directly control rarity. + /// See your Steamworks configuration to set playtime drop rates for individual itemdefs. + /// The client library will suppress too-frequent calls to this method. + /// + public static bool TriggerItemDrop( out SteamInventoryResult_t pResultHandle, SteamItemDef_t dropListDefinition ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_TriggerItemDrop(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, dropListDefinition); + } + + /// + /// Deprecated. This method is not supported. + /// + public static bool TradeItems( out SteamInventoryResult_t pResultHandle, CSteamID steamIDTradePartner, SteamItemInstanceID_t[] pArrayGive, uint[] pArrayGiveQuantity, uint nArrayGiveLength, SteamItemInstanceID_t[] pArrayGet, uint[] pArrayGetQuantity, uint nArrayGetLength ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_TradeItems(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, steamIDTradePartner, pArrayGive, pArrayGiveQuantity, nArrayGiveLength, pArrayGet, pArrayGetQuantity, nArrayGetLength); + } + + /// + /// ITEM DEFINITIONS + /// Item definitions are a mapping of "definition IDs" (integers between 1 and 1000000) + /// to a set of string properties. Some of these properties are required to display items + /// on the Steam community web site. Other properties can be defined by applications. + /// Use of these functions is optional; there is no reason to call LoadItemDefinitions + /// if your game hardcodes the numeric definition IDs (eg, purple face mask = 20, blue + /// weapon mod = 55) and does not allow for adding new item types without a client patch. + /// LoadItemDefinitions triggers the automatic load and refresh of item definitions. + /// Every time new item definitions are available (eg, from the dynamic addition of new + /// item types while players are still in-game), a SteamInventoryDefinitionUpdate_t + /// callback will be fired. + /// + public static bool LoadItemDefinitions() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_LoadItemDefinitions(CSteamGameServerAPIContext.GetSteamInventory()); + } + + /// + /// GetItemDefinitionIDs returns the set of all defined item definition IDs (which are + /// defined via Steamworks configuration, and not necessarily contiguous integers). + /// If pItemDefIDs is null, the call will return true and *punItemDefIDsArraySize will + /// contain the total size necessary for a subsequent call. Otherwise, the call will + /// return false if and only if there is not enough space in the output array. + /// + public static bool GetItemDefinitionIDs( SteamItemDef_t[] pItemDefIDs, ref uint punItemDefIDsArraySize ) + { + InteropHelp.TestIfAvailableGameServer(); + return pItemDefIDs != null && pItemDefIDs.Length != punItemDefIDsArraySize + ? throw new ArgumentException("pItemDefIDs must be the same size as punItemDefIDsArraySize!") + : NativeMethods.ISteamInventory_GetItemDefinitionIDs(CSteamGameServerAPIContext.GetSteamInventory(), pItemDefIDs, ref punItemDefIDsArraySize); + } + + /// + /// GetItemDefinitionProperty returns a string property from a given item definition. + /// Note that some properties (for example, "name") may be localized and will depend + /// on the current Steam language settings (see ISteamApps::GetCurrentGameLanguage). + /// Property names are always composed of ASCII letters, numbers, and/or underscores. + /// Pass a NULL pointer for pchPropertyName to get a comma - separated list of available + /// property names. If pchValueBuffer is NULL, *punValueBufferSize will contain the + /// suggested buffer size. Otherwise it will be the number of bytes actually copied + /// to pchValueBuffer. If the results do not fit in the given buffer, partial + /// results may be copied. + /// + public static bool GetItemDefinitionProperty( SteamItemDef_t iDefinition, string pchPropertyName, out string pchValueBuffer, ref uint punValueBufferSizeOut ) + { + InteropHelp.TestIfAvailableGameServer(); + var pchValueBuffer2 = Marshal.AllocHGlobal((int)punValueBufferSizeOut); + using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) + { + var ret = NativeMethods.ISteamInventory_GetItemDefinitionProperty(CSteamGameServerAPIContext.GetSteamInventory(), iDefinition, pchPropertyName2, pchValueBuffer2, ref punValueBufferSizeOut); + pchValueBuffer = ret ? InteropHelp.PtrToStringUTF8(pchValueBuffer2) : null; + Marshal.FreeHGlobal(pchValueBuffer2); + return ret; + } + } + + /// + /// Request the list of "eligible" promo items that can be manually granted to the given + /// user. These are promo items of type "manual" that won't be granted automatically. + /// An example usage of this is an item that becomes available every week. + /// + public static SteamAPICall_t RequestEligiblePromoItemDefinitionsIDs( CSteamID steamID ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamInventory_RequestEligiblePromoItemDefinitionsIDs(CSteamGameServerAPIContext.GetSteamInventory(), steamID); + } + + /// + /// After handling a SteamInventoryEligiblePromoItemDefIDs_t call result, use this + /// function to pull out the list of item definition ids that the user can be + /// manually granted via the AddPromoItems() call. + /// + public static bool GetEligiblePromoItemDefinitionIDs( CSteamID steamID, SteamItemDef_t[] pItemDefIDs, ref uint punItemDefIDsArraySize ) + { + InteropHelp.TestIfAvailableGameServer(); + return pItemDefIDs != null && pItemDefIDs.Length != punItemDefIDsArraySize + ? throw new ArgumentException("pItemDefIDs must be the same size as punItemDefIDsArraySize!") + : NativeMethods.ISteamInventory_GetEligiblePromoItemDefinitionIDs(CSteamGameServerAPIContext.GetSteamInventory(), steamID, pItemDefIDs, ref punItemDefIDsArraySize); + } + + /// + /// Starts the purchase process for the given item definitions. The callback SteamInventoryStartPurchaseResult_t + /// will be posted if Steam was able to initialize the transaction. + /// Once the purchase has been authorized and completed by the user, the callback SteamInventoryResultReady_t + /// will be posted. + /// + public static SteamAPICall_t StartPurchase( SteamItemDef_t[] pArrayItemDefs, uint[] punArrayQuantity, uint unArrayLength ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamInventory_StartPurchase(CSteamGameServerAPIContext.GetSteamInventory(), pArrayItemDefs, punArrayQuantity, unArrayLength); + } + + /// + /// Request current prices for all applicable item definitions + /// + public static SteamAPICall_t RequestPrices() + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamInventory_RequestPrices(CSteamGameServerAPIContext.GetSteamInventory()); + } + + /// + /// Returns the number of items with prices. Need to call RequestPrices() first. + /// + public static uint GetNumItemsWithPrices() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_GetNumItemsWithPrices(CSteamGameServerAPIContext.GetSteamInventory()); + } + + /// + /// Returns item definition ids and their prices in the user's local currency. + /// Need to call RequestPrices() first. + /// + public static bool GetItemsWithPrices( SteamItemDef_t[] pArrayItemDefs, ulong[] pCurrentPrices, ulong[] pBasePrices, uint unArrayLength ) + { + InteropHelp.TestIfAvailableGameServer(); + if (pArrayItemDefs != null && pArrayItemDefs.Length != unArrayLength) + { + throw new ArgumentException("pArrayItemDefs must be the same size as unArrayLength!"); + } + if (pCurrentPrices != null && pCurrentPrices.Length != unArrayLength) + { + throw new ArgumentException("pCurrentPrices must be the same size as unArrayLength!"); + } + return pBasePrices != null && pBasePrices.Length != unArrayLength + ? throw new ArgumentException("pBasePrices must be the same size as unArrayLength!") + : NativeMethods.ISteamInventory_GetItemsWithPrices(CSteamGameServerAPIContext.GetSteamInventory(), pArrayItemDefs, pCurrentPrices, pBasePrices, unArrayLength); + } + + /// + /// Retrieves the price for the item definition id + /// Returns false if there is no price stored for the item definition. + /// + public static bool GetItemPrice( SteamItemDef_t iDefinition, out ulong pCurrentPrice, out ulong pBasePrice ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_GetItemPrice(CSteamGameServerAPIContext.GetSteamInventory(), iDefinition, out pCurrentPrice, out pBasePrice); + } + + /// + /// Create a request to update properties on items + /// + public static SteamInventoryUpdateHandle_t StartUpdateProperties() + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamInventoryUpdateHandle_t)NativeMethods.ISteamInventory_StartUpdateProperties(CSteamGameServerAPIContext.GetSteamInventory()); + } + + /// + /// Remove the property on the item + /// + public static bool RemoveProperty( SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) + { + return NativeMethods.ISteamInventory_RemoveProperty(CSteamGameServerAPIContext.GetSteamInventory(), handle, nItemID, pchPropertyName2); + } + } + + /// + /// Accessor methods to set properties on items + /// + public static bool SetProperty( SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, string pchPropertyValue ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) + using (var pchPropertyValue2 = new InteropHelp.UTF8StringHandle(pchPropertyValue)) + { + return NativeMethods.ISteamInventory_SetPropertyString(CSteamGameServerAPIContext.GetSteamInventory(), handle, nItemID, pchPropertyName2, pchPropertyValue2); + } + } + + public static bool SetProperty( SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, bool bValue ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) + { + return NativeMethods.ISteamInventory_SetPropertyBool(CSteamGameServerAPIContext.GetSteamInventory(), handle, nItemID, pchPropertyName2, bValue); + } + } + + public static bool SetProperty( SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, long nValue ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) + { + return NativeMethods.ISteamInventory_SetPropertyInt64(CSteamGameServerAPIContext.GetSteamInventory(), handle, nItemID, pchPropertyName2, nValue); + } + } + + public static bool SetProperty( SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, string pchPropertyName, float flValue ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) + { + return NativeMethods.ISteamInventory_SetPropertyFloat(CSteamGameServerAPIContext.GetSteamInventory(), handle, nItemID, pchPropertyName2, flValue); + } + } + + /// + /// Submit the update request by handle + /// + public static bool SubmitUpdateProperties( SteamInventoryUpdateHandle_t handle, out SteamInventoryResult_t pResultHandle ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamInventory_SubmitUpdateProperties(CSteamGameServerAPIContext.GetSteamInventory(), handle, out pResultHandle); + } + + public static bool InspectItem( out SteamInventoryResult_t pResultHandle, string pchItemToken ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchItemToken2 = new InteropHelp.UTF8StringHandle(pchItemToken)) + { + return NativeMethods.ISteamInventory_InspectItem(CSteamGameServerAPIContext.GetSteamInventory(), out pResultHandle, pchItemToken2); + } + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameservernetworking.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameservernetworking.cs index 70a9c5593..a886e7fbb 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameservernetworking.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameservernetworking.cs @@ -1,257 +1,277 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; +namespace SwiftlyS2.Shared.SteamAPI; -namespace SwiftlyS2.Shared.SteamAPI { - public static class SteamGameServerNetworking { - /// - /// ////////////////////////////////////////////////////////////////////////////////////////// - /// UDP-style (connectionless) networking interface. These functions send messages using - /// an API organized around the destination. Reliable and unreliable messages are supported. - /// For a more TCP-style interface (meaning you have a connection handle), see the functions below. - /// Both interface styles can send both reliable and unreliable messages. - /// Automatically establishes NAT-traversing or Relay server connections - /// These APIs are deprecated, and may be removed in a future version of the Steamworks - /// SDK. See ISteamNetworkingMessages. - /// Sends a P2P packet to the specified user - /// UDP-like, unreliable and a max packet size of 1200 bytes - /// the first packet send may be delayed as the NAT-traversal code runs - /// if we can't get through to the user, an error will be posted via the callback P2PSessionConnectFail_t - /// see EP2PSend enum above for the descriptions of the different ways of sending packets - /// nChannel is a routing number you can use to help route message to different systems - you'll have to call ReadP2PPacket() - /// with the same channel number in order to retrieve the data on the other end - /// using different channels to talk to the same user will still use the same underlying p2p connection, saving on resources - /// - public static bool SendP2PPacket(CSteamID steamIDRemote, byte[] pubData, uint cubData, EP2PSend eP2PSendType, int nChannel = 0) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_SendP2PPacket(CSteamGameServerAPIContext.GetSteamNetworking(), steamIDRemote, pubData, cubData, eP2PSendType, nChannel); - } +public static class SteamGameServerNetworking +{ + /// + /// ////////////////////////////////////////////////////////////////////////////////////////// + /// UDP-style (connectionless) networking interface. These functions send messages using + /// an API organized around the destination. Reliable and unreliable messages are supported. + /// For a more TCP-style interface (meaning you have a connection handle), see the functions below. + /// Both interface styles can send both reliable and unreliable messages. + /// Automatically establishes NAT-traversing or Relay server connections + /// These APIs are deprecated, and may be removed in a future version of the Steamworks + /// SDK. See ISteamNetworkingMessages. + /// Sends a P2P packet to the specified user + /// UDP-like, unreliable and a max packet size of 1200 bytes + /// the first packet send may be delayed as the NAT-traversal code runs + /// if we can't get through to the user, an error will be posted via the callback P2PSessionConnectFail_t + /// see EP2PSend enum above for the descriptions of the different ways of sending packets + /// nChannel is a routing number you can use to help route message to different systems - you'll have to call ReadP2PPacket() + /// with the same channel number in order to retrieve the data on the other end + /// using different channels to talk to the same user will still use the same underlying p2p connection, saving on resources + /// + public static bool SendP2PPacket( CSteamID steamIDRemote, byte[] pubData, uint cubData, EP2PSend eP2PSendType, int nChannel = 0 ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_SendP2PPacket(CSteamGameServerAPIContext.GetSteamNetworking(), steamIDRemote, pubData, cubData, eP2PSendType, nChannel); + } - /// - /// returns true if any data is available for read, and the amount of data that will need to be read - /// - public static bool IsP2PPacketAvailable(out uint pcubMsgSize, int nChannel = 0) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_IsP2PPacketAvailable(CSteamGameServerAPIContext.GetSteamNetworking(), out pcubMsgSize, nChannel); - } + /// + /// returns true if any data is available for read, and the amount of data that will need to be read + /// + public static bool IsP2PPacketAvailable( out uint pcubMsgSize, int nChannel = 0 ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_IsP2PPacketAvailable(CSteamGameServerAPIContext.GetSteamNetworking(), out pcubMsgSize, nChannel); + } - /// - /// reads in a packet that has been sent from another user via SendP2PPacket() - /// returns the size of the message and the steamID of the user who sent it in the last two parameters - /// if the buffer passed in is too small, the message will be truncated - /// this call is not blocking, and will return false if no data is available - /// - public static bool ReadP2PPacket(byte[] pubDest, uint cubDest, out uint pcubMsgSize, out CSteamID psteamIDRemote, int nChannel = 0) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_ReadP2PPacket(CSteamGameServerAPIContext.GetSteamNetworking(), pubDest, cubDest, out pcubMsgSize, out psteamIDRemote, nChannel); - } + /// + /// reads in a packet that has been sent from another user via SendP2PPacket() + /// returns the size of the message and the steamID of the user who sent it in the last two parameters + /// if the buffer passed in is too small, the message will be truncated + /// this call is not blocking, and will return false if no data is available + /// + public static bool ReadP2PPacket( byte[] pubDest, uint cubDest, out uint pcubMsgSize, out CSteamID psteamIDRemote, int nChannel = 0 ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_ReadP2PPacket(CSteamGameServerAPIContext.GetSteamNetworking(), pubDest, cubDest, out pcubMsgSize, out psteamIDRemote, nChannel); + } - /// - /// AcceptP2PSessionWithUser() should only be called in response to a P2PSessionRequest_t callback - /// P2PSessionRequest_t will be posted if another user tries to send you a packet that you haven't talked to yet - /// if you don't want to talk to the user, just ignore the request - /// if the user continues to send you packets, another P2PSessionRequest_t will be posted periodically - /// this may be called multiple times for a single user - /// (if you've called SendP2PPacket() on the other user, this implicitly accepts the session request) - /// - public static bool AcceptP2PSessionWithUser(CSteamID steamIDRemote) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_AcceptP2PSessionWithUser(CSteamGameServerAPIContext.GetSteamNetworking(), steamIDRemote); - } + /// + /// AcceptP2PSessionWithUser() should only be called in response to a P2PSessionRequest_t callback + /// P2PSessionRequest_t will be posted if another user tries to send you a packet that you haven't talked to yet + /// if you don't want to talk to the user, just ignore the request + /// if the user continues to send you packets, another P2PSessionRequest_t will be posted periodically + /// this may be called multiple times for a single user + /// (if you've called SendP2PPacket() on the other user, this implicitly accepts the session request) + /// + public static bool AcceptP2PSessionWithUser( CSteamID steamIDRemote ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_AcceptP2PSessionWithUser(CSteamGameServerAPIContext.GetSteamNetworking(), steamIDRemote); + } - /// - /// call CloseP2PSessionWithUser() when you're done talking to a user, will free up resources under-the-hood - /// if the remote user tries to send data to you again, another P2PSessionRequest_t callback will be posted - /// - public static bool CloseP2PSessionWithUser(CSteamID steamIDRemote) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_CloseP2PSessionWithUser(CSteamGameServerAPIContext.GetSteamNetworking(), steamIDRemote); - } + /// + /// call CloseP2PSessionWithUser() when you're done talking to a user, will free up resources under-the-hood + /// if the remote user tries to send data to you again, another P2PSessionRequest_t callback will be posted + /// + public static bool CloseP2PSessionWithUser( CSteamID steamIDRemote ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_CloseP2PSessionWithUser(CSteamGameServerAPIContext.GetSteamNetworking(), steamIDRemote); + } - /// - /// call CloseP2PChannelWithUser() when you're done talking to a user on a specific channel. Once all channels - /// open channels to a user have been closed, the open session to the user will be closed and new data from this - /// user will trigger a P2PSessionRequest_t callback - /// - public static bool CloseP2PChannelWithUser(CSteamID steamIDRemote, int nChannel) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_CloseP2PChannelWithUser(CSteamGameServerAPIContext.GetSteamNetworking(), steamIDRemote, nChannel); - } + /// + /// call CloseP2PChannelWithUser() when you're done talking to a user on a specific channel. Once all channels + /// open channels to a user have been closed, the open session to the user will be closed and new data from this + /// user will trigger a P2PSessionRequest_t callback + /// + public static bool CloseP2PChannelWithUser( CSteamID steamIDRemote, int nChannel ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_CloseP2PChannelWithUser(CSteamGameServerAPIContext.GetSteamNetworking(), steamIDRemote, nChannel); + } - /// - /// fills out P2PSessionState_t structure with details about the underlying connection to the user - /// should only needed for debugging purposes - /// returns false if no connection exists to the specified user - /// - public static bool GetP2PSessionState(CSteamID steamIDRemote, out P2PSessionState_t pConnectionState) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_GetP2PSessionState(CSteamGameServerAPIContext.GetSteamNetworking(), steamIDRemote, out pConnectionState); - } + /// + /// fills out P2PSessionState_t structure with details about the underlying connection to the user + /// should only needed for debugging purposes + /// returns false if no connection exists to the specified user + /// + public static bool GetP2PSessionState( CSteamID steamIDRemote, out P2PSessionState_t pConnectionState ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_GetP2PSessionState(CSteamGameServerAPIContext.GetSteamNetworking(), steamIDRemote, out pConnectionState); + } - /// - /// Allow P2P connections to fall back to being relayed through the Steam servers if a direct connection - /// or NAT-traversal cannot be established. Only applies to connections created after setting this value, - /// or to existing connections that need to automatically reconnect after this value is set. - /// P2P packet relay is allowed by default - /// NOTE: This function is deprecated and may be removed in a future version of the SDK. For - /// security purposes, we may decide to relay the traffic to certain peers, even if you pass false - /// to this function, to prevent revealing the client's IP address top another peer. - /// - public static bool AllowP2PPacketRelay(bool bAllow) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_AllowP2PPacketRelay(CSteamGameServerAPIContext.GetSteamNetworking(), bAllow); - } + /// + /// Allow P2P connections to fall back to being relayed through the Steam servers if a direct connection + /// or NAT-traversal cannot be established. Only applies to connections created after setting this value, + /// or to existing connections that need to automatically reconnect after this value is set. + /// P2P packet relay is allowed by default + /// NOTE: This function is deprecated and may be removed in a future version of the SDK. For + /// security purposes, we may decide to relay the traffic to certain peers, even if you pass false + /// to this function, to prevent revealing the client's IP address top another peer. + /// + public static bool AllowP2PPacketRelay( bool bAllow ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_AllowP2PPacketRelay(CSteamGameServerAPIContext.GetSteamNetworking(), bAllow); + } - /// - /// ////////////////////////////////////////////////////////////////////////////////////////// - /// LISTEN / CONNECT connection-oriented interface functions - /// These functions are more like a client-server TCP API. One side is the "server" - /// and "listens" for incoming connections, which then must be "accepted." The "client" - /// initiates a connection by "connecting." Sending and receiving is done through a - /// connection handle. - /// For a more UDP-style interface, where you do not track connection handles but - /// simply send messages to a SteamID, use the UDP-style functions above. - /// Both methods can send both reliable and unreliable methods. - /// These APIs are deprecated, and may be removed in a future version of the Steamworks - /// SDK. See ISteamNetworkingSockets. - /// ////////////////////////////////////////////////////////////////////////////////////////// - /// creates a socket and listens others to connect - /// will trigger a SocketStatusCallback_t callback on another client connecting - /// nVirtualP2PPort is the unique ID that the client will connect to, in case you have multiple ports - /// this can usually just be 0 unless you want multiple sets of connections - /// unIP is the local IP address to bind to - /// pass in 0 if you just want the default local IP - /// unPort is the port to use - /// pass in 0 if you don't want users to be able to connect via IP/Port, but expect to be always peer-to-peer connections only - /// - public static SNetListenSocket_t CreateListenSocket(int nVirtualP2PPort, SteamIPAddress_t nIP, ushort nPort, bool bAllowUseOfPacketRelay) { - InteropHelp.TestIfAvailableGameServer(); - return (SNetListenSocket_t)NativeMethods.ISteamNetworking_CreateListenSocket(CSteamGameServerAPIContext.GetSteamNetworking(), nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay); - } + /// + /// ////////////////////////////////////////////////////////////////////////////////////////// + /// LISTEN / CONNECT connection-oriented interface functions + /// These functions are more like a client-server TCP API. One side is the "server" + /// and "listens" for incoming connections, which then must be "accepted." The "client" + /// initiates a connection by "connecting." Sending and receiving is done through a + /// connection handle. + /// For a more UDP-style interface, where you do not track connection handles but + /// simply send messages to a SteamID, use the UDP-style functions above. + /// Both methods can send both reliable and unreliable methods. + /// These APIs are deprecated, and may be removed in a future version of the Steamworks + /// SDK. See ISteamNetworkingSockets. + /// ////////////////////////////////////////////////////////////////////////////////////////// + /// creates a socket and listens others to connect + /// will trigger a SocketStatusCallback_t callback on another client connecting + /// nVirtualP2PPort is the unique ID that the client will connect to, in case you have multiple ports + /// this can usually just be 0 unless you want multiple sets of connections + /// unIP is the local IP address to bind to + /// pass in 0 if you just want the default local IP + /// unPort is the port to use + /// pass in 0 if you don't want users to be able to connect via IP/Port, but expect to be always peer-to-peer connections only + /// + public static SNetListenSocket_t CreateListenSocket( int nVirtualP2PPort, SteamIPAddress_t nIP, ushort nPort, bool bAllowUseOfPacketRelay ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SNetListenSocket_t)NativeMethods.ISteamNetworking_CreateListenSocket(CSteamGameServerAPIContext.GetSteamNetworking(), nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay); + } - /// - /// creates a socket and begin connection to a remote destination - /// can connect via a known steamID (client or game server), or directly to an IP - /// on success will trigger a SocketStatusCallback_t callback - /// on failure or timeout will trigger a SocketStatusCallback_t callback with a failure code in m_eSNetSocketState - /// - public static SNetSocket_t CreateP2PConnectionSocket(CSteamID steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay) { - InteropHelp.TestIfAvailableGameServer(); - return (SNetSocket_t)NativeMethods.ISteamNetworking_CreateP2PConnectionSocket(CSteamGameServerAPIContext.GetSteamNetworking(), steamIDTarget, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay); - } + /// + /// creates a socket and begin connection to a remote destination + /// can connect via a known steamID (client or game server), or directly to an IP + /// on success will trigger a SocketStatusCallback_t callback + /// on failure or timeout will trigger a SocketStatusCallback_t callback with a failure code in m_eSNetSocketState + /// + public static SNetSocket_t CreateP2PConnectionSocket( CSteamID steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SNetSocket_t)NativeMethods.ISteamNetworking_CreateP2PConnectionSocket(CSteamGameServerAPIContext.GetSteamNetworking(), steamIDTarget, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay); + } - public static SNetSocket_t CreateConnectionSocket(SteamIPAddress_t nIP, ushort nPort, int nTimeoutSec) { - InteropHelp.TestIfAvailableGameServer(); - return (SNetSocket_t)NativeMethods.ISteamNetworking_CreateConnectionSocket(CSteamGameServerAPIContext.GetSteamNetworking(), nIP, nPort, nTimeoutSec); - } + public static SNetSocket_t CreateConnectionSocket( SteamIPAddress_t nIP, ushort nPort, int nTimeoutSec ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SNetSocket_t)NativeMethods.ISteamNetworking_CreateConnectionSocket(CSteamGameServerAPIContext.GetSteamNetworking(), nIP, nPort, nTimeoutSec); + } - /// - /// disconnects the connection to the socket, if any, and invalidates the handle - /// any unread data on the socket will be thrown away - /// if bNotifyRemoteEnd is set, socket will not be completely destroyed until the remote end acknowledges the disconnect - /// - public static bool DestroySocket(SNetSocket_t hSocket, bool bNotifyRemoteEnd) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_DestroySocket(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket, bNotifyRemoteEnd); - } + /// + /// disconnects the connection to the socket, if any, and invalidates the handle + /// any unread data on the socket will be thrown away + /// if bNotifyRemoteEnd is set, socket will not be completely destroyed until the remote end acknowledges the disconnect + /// + public static bool DestroySocket( SNetSocket_t hSocket, bool bNotifyRemoteEnd ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_DestroySocket(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket, bNotifyRemoteEnd); + } - /// - /// destroying a listen socket will automatically kill all the regular sockets generated from it - /// - public static bool DestroyListenSocket(SNetListenSocket_t hSocket, bool bNotifyRemoteEnd) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_DestroyListenSocket(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket, bNotifyRemoteEnd); - } + /// + /// destroying a listen socket will automatically kill all the regular sockets generated from it + /// + public static bool DestroyListenSocket( SNetListenSocket_t hSocket, bool bNotifyRemoteEnd ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_DestroyListenSocket(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket, bNotifyRemoteEnd); + } - /// - /// sending data - /// must be a handle to a connected socket - /// data is all sent via UDP, and thus send sizes are limited to 1200 bytes; after this, many routers will start dropping packets - /// use the reliable flag with caution; although the resend rate is pretty aggressive, - /// it can still cause stalls in receiving data (like TCP) - /// - public static bool SendDataOnSocket(SNetSocket_t hSocket, byte[] pubData, uint cubData, bool bReliable) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_SendDataOnSocket(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket, pubData, cubData, bReliable); - } + /// + /// sending data + /// must be a handle to a connected socket + /// data is all sent via UDP, and thus send sizes are limited to 1200 bytes; after this, many routers will start dropping packets + /// use the reliable flag with caution; although the resend rate is pretty aggressive, + /// it can still cause stalls in receiving data (like TCP) + /// + public static bool SendDataOnSocket( SNetSocket_t hSocket, byte[] pubData, uint cubData, bool bReliable ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_SendDataOnSocket(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket, pubData, cubData, bReliable); + } - /// - /// receiving data - /// returns false if there is no data remaining - /// fills out *pcubMsgSize with the size of the next message, in bytes - /// - public static bool IsDataAvailableOnSocket(SNetSocket_t hSocket, out uint pcubMsgSize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_IsDataAvailableOnSocket(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket, out pcubMsgSize); - } + /// + /// receiving data + /// returns false if there is no data remaining + /// fills out *pcubMsgSize with the size of the next message, in bytes + /// + public static bool IsDataAvailableOnSocket( SNetSocket_t hSocket, out uint pcubMsgSize ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_IsDataAvailableOnSocket(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket, out pcubMsgSize); + } - /// - /// fills in pubDest with the contents of the message - /// messages are always complete, of the same size as was sent (i.e. packetized, not streaming) - /// if *pcubMsgSize < cubDest, only partial data is written - /// returns false if no data is available - /// - public static bool RetrieveDataFromSocket(SNetSocket_t hSocket, byte[] pubDest, uint cubDest, out uint pcubMsgSize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_RetrieveDataFromSocket(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket, pubDest, cubDest, out pcubMsgSize); - } + /// + /// fills in pubDest with the contents of the message + /// messages are always complete, of the same size as was sent (i.e. packetized, not streaming) + /// if *pcubMsgSize < cubDest, only partial data is written + /// returns false if no data is available + /// + public static bool RetrieveDataFromSocket( SNetSocket_t hSocket, byte[] pubDest, uint cubDest, out uint pcubMsgSize ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_RetrieveDataFromSocket(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket, pubDest, cubDest, out pcubMsgSize); + } - /// - /// checks for data from any socket that has been connected off this listen socket - /// returns false if there is no data remaining - /// fills out *pcubMsgSize with the size of the next message, in bytes - /// fills out *phSocket with the socket that data is available on - /// - public static bool IsDataAvailable(SNetListenSocket_t hListenSocket, out uint pcubMsgSize, out SNetSocket_t phSocket) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_IsDataAvailable(CSteamGameServerAPIContext.GetSteamNetworking(), hListenSocket, out pcubMsgSize, out phSocket); - } + /// + /// checks for data from any socket that has been connected off this listen socket + /// returns false if there is no data remaining + /// fills out *pcubMsgSize with the size of the next message, in bytes + /// fills out *phSocket with the socket that data is available on + /// + public static bool IsDataAvailable( SNetListenSocket_t hListenSocket, out uint pcubMsgSize, out SNetSocket_t phSocket ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_IsDataAvailable(CSteamGameServerAPIContext.GetSteamNetworking(), hListenSocket, out pcubMsgSize, out phSocket); + } - /// - /// retrieves data from any socket that has been connected off this listen socket - /// fills in pubDest with the contents of the message - /// messages are always complete, of the same size as was sent (i.e. packetized, not streaming) - /// if *pcubMsgSize < cubDest, only partial data is written - /// returns false if no data is available - /// fills out *phSocket with the socket that data is available on - /// - public static bool RetrieveData(SNetListenSocket_t hListenSocket, byte[] pubDest, uint cubDest, out uint pcubMsgSize, out SNetSocket_t phSocket) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_RetrieveData(CSteamGameServerAPIContext.GetSteamNetworking(), hListenSocket, pubDest, cubDest, out pcubMsgSize, out phSocket); - } + /// + /// retrieves data from any socket that has been connected off this listen socket + /// fills in pubDest with the contents of the message + /// messages are always complete, of the same size as was sent (i.e. packetized, not streaming) + /// if *pcubMsgSize < cubDest, only partial data is written + /// returns false if no data is available + /// fills out *phSocket with the socket that data is available on + /// + public static bool RetrieveData( SNetListenSocket_t hListenSocket, byte[] pubDest, uint cubDest, out uint pcubMsgSize, out SNetSocket_t phSocket ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_RetrieveData(CSteamGameServerAPIContext.GetSteamNetworking(), hListenSocket, pubDest, cubDest, out pcubMsgSize, out phSocket); + } - /// - /// returns information about the specified socket, filling out the contents of the pointers - /// - public static bool GetSocketInfo(SNetSocket_t hSocket, out CSteamID pSteamIDRemote, out int peSocketStatus, out SteamIPAddress_t punIPRemote, out ushort punPortRemote) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_GetSocketInfo(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket, out pSteamIDRemote, out peSocketStatus, out punIPRemote, out punPortRemote); - } + /// + /// returns information about the specified socket, filling out the contents of the pointers + /// + public static bool GetSocketInfo( SNetSocket_t hSocket, out CSteamID pSteamIDRemote, out int peSocketStatus, out SteamIPAddress_t punIPRemote, out ushort punPortRemote ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_GetSocketInfo(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket, out pSteamIDRemote, out peSocketStatus, out punIPRemote, out punPortRemote); + } - /// - /// returns which local port the listen socket is bound to - /// *pnIP and *pnPort will be 0 if the socket is set to listen for P2P connections only - /// - public static bool GetListenSocketInfo(SNetListenSocket_t hListenSocket, out SteamIPAddress_t pnIP, out ushort pnPort) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_GetListenSocketInfo(CSteamGameServerAPIContext.GetSteamNetworking(), hListenSocket, out pnIP, out pnPort); - } + /// + /// returns which local port the listen socket is bound to + /// *pnIP and *pnPort will be 0 if the socket is set to listen for P2P connections only + /// + public static bool GetListenSocketInfo( SNetListenSocket_t hListenSocket, out SteamIPAddress_t pnIP, out ushort pnPort ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_GetListenSocketInfo(CSteamGameServerAPIContext.GetSteamNetworking(), hListenSocket, out pnIP, out pnPort); + } - /// - /// returns true to describe how the socket ended up connecting - /// - public static ESNetSocketConnectionType GetSocketConnectionType(SNetSocket_t hSocket) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_GetSocketConnectionType(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket); - } + /// + /// returns true to describe how the socket ended up connecting + /// + public static ESNetSocketConnectionType GetSocketConnectionType( SNetSocket_t hSocket ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_GetSocketConnectionType(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket); + } - /// - /// max packet size, in bytes - /// - public static int GetMaxPacketSize(SNetSocket_t hSocket) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworking_GetMaxPacketSize(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket); - } - } + /// + /// max packet size, in bytes + /// + public static int GetMaxPacketSize( SNetSocket_t hSocket ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworking_GetMaxPacketSize(CSteamGameServerAPIContext.GetSteamNetworking(), hSocket); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameservernetworkingsockets.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameservernetworkingsockets.cs index edc2dfbbf..075b0e554 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameservernetworkingsockets.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameservernetworkingsockets.cs @@ -1,1097 +1,1147 @@ #define STEAMNETWORKINGSOCKETS_ENABLE_SDR using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; +using IntPtr = nint; -namespace SwiftlyS2.Shared.SteamAPI { - public static class SteamGameServerNetworkingSockets { - /// - /// / Creates a "server" socket that listens for clients to connect to by - /// / calling ConnectByIPAddress, over ordinary UDP (IPv4 or IPv6) - /// / - /// / You must select a specific local port to listen on and set it - /// / the port field of the local address. - /// / - /// / Usually you will set the IP portion of the address to zero (SteamNetworkingIPAddr::Clear()). - /// / This means that you will not bind to any particular local interface (i.e. the same - /// / as INADDR_ANY in plain socket code). Furthermore, if possible the socket will be bound - /// / in "dual stack" mode, which means that it can accept both IPv4 and IPv6 client connections. - /// / If you really do wish to bind a particular interface, then set the local address to the - /// / appropriate IPv4 or IPv6 IP. - /// / - /// / If you need to set any initial config options, pass them here. See - /// / SteamNetworkingConfigValue_t for more about why this is preferable to - /// / setting the options "immediately" after creation. - /// / - /// / When a client attempts to connect, a SteamNetConnectionStatusChangedCallback_t - /// / will be posted. The connection will be in the connecting state. - /// - public static HSteamListenSocket CreateListenSocketIP(ref SteamNetworkingIPAddr localAddress, int nOptions, SteamNetworkingConfigValue_t[] pOptions) { - InteropHelp.TestIfAvailableGameServer(); - return (HSteamListenSocket)NativeMethods.ISteamNetworkingSockets_CreateListenSocketIP(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), ref localAddress, nOptions, pOptions); - } +namespace SwiftlyS2.Shared.SteamAPI; - /// - /// / Creates a connection and begins talking to a "server" over UDP at the - /// / given IPv4 or IPv6 address. The remote host must be listening with a - /// / matching call to CreateListenSocketIP on the specified port. - /// / - /// / A SteamNetConnectionStatusChangedCallback_t callback will be triggered when we start - /// / connecting, and then another one on either timeout or successful connection. - /// / - /// / If the server does not have any identity configured, then their network address - /// / will be the only identity in use. Or, the network host may provide a platform-specific - /// / identity with or without a valid certificate to authenticate that identity. (These - /// / details will be contained in the SteamNetConnectionStatusChangedCallback_t.) It's - /// / up to your application to decide whether to allow the connection. - /// / - /// / By default, all connections will get basic encryption sufficient to prevent - /// / casual eavesdropping. But note that without certificates (or a shared secret - /// / distributed through some other out-of-band mechanism), you don't have any - /// / way of knowing who is actually on the other end, and thus are vulnerable to - /// / man-in-the-middle attacks. - /// / - /// / If you need to set any initial config options, pass them here. See - /// / SteamNetworkingConfigValue_t for more about why this is preferable to - /// / setting the options "immediately" after creation. - /// - public static HSteamNetConnection ConnectByIPAddress(ref SteamNetworkingIPAddr address, int nOptions, SteamNetworkingConfigValue_t[] pOptions) { - InteropHelp.TestIfAvailableGameServer(); - return (HSteamNetConnection)NativeMethods.ISteamNetworkingSockets_ConnectByIPAddress(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), ref address, nOptions, pOptions); - } +public static class SteamGameServerNetworkingSockets +{ + /// + /// / Creates a "server" socket that listens for clients to connect to by + /// / calling ConnectByIPAddress, over ordinary UDP (IPv4 or IPv6) + /// / + /// / You must select a specific local port to listen on and set it + /// / the port field of the local address. + /// / + /// / Usually you will set the IP portion of the address to zero (SteamNetworkingIPAddr::Clear()). + /// / This means that you will not bind to any particular local interface (i.e. the same + /// / as INADDR_ANY in plain socket code). Furthermore, if possible the socket will be bound + /// / in "dual stack" mode, which means that it can accept both IPv4 and IPv6 client connections. + /// / If you really do wish to bind a particular interface, then set the local address to the + /// / appropriate IPv4 or IPv6 IP. + /// / + /// / If you need to set any initial config options, pass them here. See + /// / SteamNetworkingConfigValue_t for more about why this is preferable to + /// / setting the options "immediately" after creation. + /// / + /// / When a client attempts to connect, a SteamNetConnectionStatusChangedCallback_t + /// / will be posted. The connection will be in the connecting state. + /// + public static HSteamListenSocket CreateListenSocketIP( ref SteamNetworkingIPAddr localAddress, int nOptions, SteamNetworkingConfigValue_t[] pOptions ) + { + InteropHelp.TestIfAvailableGameServer(); + return (HSteamListenSocket)NativeMethods.ISteamNetworkingSockets_CreateListenSocketIP(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), ref localAddress, nOptions, pOptions); + } - /// - /// / Like CreateListenSocketIP, but clients will connect using ConnectP2P. - /// / - /// / nLocalVirtualPort specifies how clients can connect to this socket using - /// / ConnectP2P. It's very common for applications to only have one listening socket; - /// / in that case, use zero. If you need to open multiple listen sockets and have clients - /// / be able to connect to one or the other, then nLocalVirtualPort should be a small - /// / integer (<1000) unique to each listen socket you create. - /// / - /// / If you use this, you probably want to call ISteamNetworkingUtils::InitRelayNetworkAccess() - /// / when your app initializes. - /// / - /// / If you are listening on a dedicated servers in known data center, - /// / then you can listen using this function instead of CreateHostedDedicatedServerListenSocket, - /// / to allow clients to connect without a ticket. Any user that owns - /// / the app and is signed into Steam will be able to attempt to connect to - /// / your server. Also, a connection attempt may require the client to - /// / be connected to Steam, which is one more moving part that may fail. When - /// / tickets are used, then once a ticket is obtained, a client can connect to - /// / your server even if they got disconnected from Steam or Steam is offline. - /// / - /// / If you need to set any initial config options, pass them here. See - /// / SteamNetworkingConfigValue_t for more about why this is preferable to - /// / setting the options "immediately" after creation. - /// - public static HSteamListenSocket CreateListenSocketP2P(int nLocalVirtualPort, int nOptions, SteamNetworkingConfigValue_t[] pOptions) { - InteropHelp.TestIfAvailableGameServer(); - return (HSteamListenSocket)NativeMethods.ISteamNetworkingSockets_CreateListenSocketP2P(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), nLocalVirtualPort, nOptions, pOptions); - } + /// + /// / Creates a connection and begins talking to a "server" over UDP at the + /// / given IPv4 or IPv6 address. The remote host must be listening with a + /// / matching call to CreateListenSocketIP on the specified port. + /// / + /// / A SteamNetConnectionStatusChangedCallback_t callback will be triggered when we start + /// / connecting, and then another one on either timeout or successful connection. + /// / + /// / If the server does not have any identity configured, then their network address + /// / will be the only identity in use. Or, the network host may provide a platform-specific + /// / identity with or without a valid certificate to authenticate that identity. (These + /// / details will be contained in the SteamNetConnectionStatusChangedCallback_t.) It's + /// / up to your application to decide whether to allow the connection. + /// / + /// / By default, all connections will get basic encryption sufficient to prevent + /// / casual eavesdropping. But note that without certificates (or a shared secret + /// / distributed through some other out-of-band mechanism), you don't have any + /// / way of knowing who is actually on the other end, and thus are vulnerable to + /// / man-in-the-middle attacks. + /// / + /// / If you need to set any initial config options, pass them here. See + /// / SteamNetworkingConfigValue_t for more about why this is preferable to + /// / setting the options "immediately" after creation. + /// + public static HSteamNetConnection ConnectByIPAddress( ref SteamNetworkingIPAddr address, int nOptions, SteamNetworkingConfigValue_t[] pOptions ) + { + InteropHelp.TestIfAvailableGameServer(); + return (HSteamNetConnection)NativeMethods.ISteamNetworkingSockets_ConnectByIPAddress(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), ref address, nOptions, pOptions); + } - /// - /// / Begin connecting to a peer that is identified using a platform-specific identifier. - /// / This uses the default rendezvous service, which depends on the platform and library - /// / configuration. (E.g. on Steam, it goes through the steam backend.) - /// / - /// / If you need to set any initial config options, pass them here. See - /// / SteamNetworkingConfigValue_t for more about why this is preferable to - /// / setting the options "immediately" after creation. - /// / - /// / To use your own signaling service, see: - /// / - ConnectP2PCustomSignaling - /// / - k_ESteamNetworkingConfig_Callback_CreateConnectionSignaling - /// - public static HSteamNetConnection ConnectP2P(ref SteamNetworkingIdentity identityRemote, int nRemoteVirtualPort, int nOptions, SteamNetworkingConfigValue_t[] pOptions) { - InteropHelp.TestIfAvailableGameServer(); - return (HSteamNetConnection)NativeMethods.ISteamNetworkingSockets_ConnectP2P(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), ref identityRemote, nRemoteVirtualPort, nOptions, pOptions); - } + /// + /// / Like CreateListenSocketIP, but clients will connect using ConnectP2P. + /// / + /// / nLocalVirtualPort specifies how clients can connect to this socket using + /// / ConnectP2P. It's very common for applications to only have one listening socket; + /// / in that case, use zero. If you need to open multiple listen sockets and have clients + /// / be able to connect to one or the other, then nLocalVirtualPort should be a small + /// / integer (<1000) unique to each listen socket you create. + /// / + /// / If you use this, you probably want to call ISteamNetworkingUtils::InitRelayNetworkAccess() + /// / when your app initializes. + /// / + /// / If you are listening on a dedicated servers in known data center, + /// / then you can listen using this function instead of CreateHostedDedicatedServerListenSocket, + /// / to allow clients to connect without a ticket. Any user that owns + /// / the app and is signed into Steam will be able to attempt to connect to + /// / your server. Also, a connection attempt may require the client to + /// / be connected to Steam, which is one more moving part that may fail. When + /// / tickets are used, then once a ticket is obtained, a client can connect to + /// / your server even if they got disconnected from Steam or Steam is offline. + /// / + /// / If you need to set any initial config options, pass them here. See + /// / SteamNetworkingConfigValue_t for more about why this is preferable to + /// / setting the options "immediately" after creation. + /// + public static HSteamListenSocket CreateListenSocketP2P( int nLocalVirtualPort, int nOptions, SteamNetworkingConfigValue_t[] pOptions ) + { + InteropHelp.TestIfAvailableGameServer(); + return (HSteamListenSocket)NativeMethods.ISteamNetworkingSockets_CreateListenSocketP2P(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), nLocalVirtualPort, nOptions, pOptions); + } - /// - /// / Accept an incoming connection that has been received on a listen socket. - /// / - /// / When a connection attempt is received (perhaps after a few basic handshake - /// / packets have been exchanged to prevent trivial spoofing), a connection interface - /// / object is created in the k_ESteamNetworkingConnectionState_Connecting state - /// / and a SteamNetConnectionStatusChangedCallback_t is posted. At this point, your - /// / application MUST either accept or close the connection. (It may not ignore it.) - /// / Accepting the connection will transition it either into the connected state, - /// / or the finding route state, depending on the connection type. - /// / - /// / You should take action within a second or two, because accepting the connection is - /// / what actually sends the reply notifying the client that they are connected. If you - /// / delay taking action, from the client's perspective it is the same as the network - /// / being unresponsive, and the client may timeout the connection attempt. In other - /// / words, the client cannot distinguish between a delay caused by network problems - /// / and a delay caused by the application. - /// / - /// / This means that if your application goes for more than a few seconds without - /// / processing callbacks (for example, while loading a map), then there is a chance - /// / that a client may attempt to connect in that interval and fail due to timeout. - /// / - /// / If the application does not respond to the connection attempt in a timely manner, - /// / and we stop receiving communication from the client, the connection attempt will - /// / be timed out locally, transitioning the connection to the - /// / k_ESteamNetworkingConnectionState_ProblemDetectedLocally state. The client may also - /// / close the connection before it is accepted, and a transition to the - /// / k_ESteamNetworkingConnectionState_ClosedByPeer is also possible depending the exact - /// / sequence of events. - /// / - /// / Returns k_EResultInvalidParam if the handle is invalid. - /// / Returns k_EResultInvalidState if the connection is not in the appropriate state. - /// / (Remember that the connection state could change in between the time that the - /// / notification being posted to the queue and when it is received by the application.) - /// / - /// / A note about connection configuration options. If you need to set any configuration - /// / options that are common to all connections accepted through a particular listen - /// / socket, consider setting the options on the listen socket, since such options are - /// / inherited automatically. If you really do need to set options that are connection - /// / specific, it is safe to set them on the connection before accepting the connection. - /// - public static EResult AcceptConnection(HSteamNetConnection hConn) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_AcceptConnection(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn); - } + /// + /// / Begin connecting to a peer that is identified using a platform-specific identifier. + /// / This uses the default rendezvous service, which depends on the platform and library + /// / configuration. (E.g. on Steam, it goes through the steam backend.) + /// / + /// / If you need to set any initial config options, pass them here. See + /// / SteamNetworkingConfigValue_t for more about why this is preferable to + /// / setting the options "immediately" after creation. + /// / + /// / To use your own signaling service, see: + /// / - ConnectP2PCustomSignaling + /// / - k_ESteamNetworkingConfig_Callback_CreateConnectionSignaling + /// + public static HSteamNetConnection ConnectP2P( ref SteamNetworkingIdentity identityRemote, int nRemoteVirtualPort, int nOptions, SteamNetworkingConfigValue_t[] pOptions ) + { + InteropHelp.TestIfAvailableGameServer(); + return (HSteamNetConnection)NativeMethods.ISteamNetworkingSockets_ConnectP2P(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), ref identityRemote, nRemoteVirtualPort, nOptions, pOptions); + } - /// - /// / Disconnects from the remote host and invalidates the connection handle. - /// / Any unread data on the connection is discarded. - /// / - /// / nReason is an application defined code that will be received on the other - /// / end and recorded (when possible) in backend analytics. The value should - /// / come from a restricted range. (See ESteamNetConnectionEnd.) If you don't need - /// / to communicate any information to the remote host, and do not want analytics to - /// / be able to distinguish "normal" connection terminations from "exceptional" ones, - /// / You may pass zero, in which case the generic value of - /// / k_ESteamNetConnectionEnd_App_Generic will be used. - /// / - /// / pszDebug is an optional human-readable diagnostic string that will be received - /// / by the remote host and recorded (when possible) in backend analytics. - /// / - /// / If you wish to put the socket into a "linger" state, where an attempt is made to - /// / flush any remaining sent data, use bEnableLinger=true. Otherwise reliable data - /// / is not flushed. - /// / - /// / If the connection has already ended and you are just freeing up the - /// / connection interface, the reason code, debug string, and linger flag are - /// / ignored. - /// - public static bool CloseConnection(HSteamNetConnection hPeer, int nReason, string pszDebug, bool bEnableLinger) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszDebug2 = new InteropHelp.UTF8StringHandle(pszDebug)) { - return NativeMethods.ISteamNetworkingSockets_CloseConnection(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPeer, nReason, pszDebug2, bEnableLinger); - } - } + /// + /// / Accept an incoming connection that has been received on a listen socket. + /// / + /// / When a connection attempt is received (perhaps after a few basic handshake + /// / packets have been exchanged to prevent trivial spoofing), a connection interface + /// / object is created in the k_ESteamNetworkingConnectionState_Connecting state + /// / and a SteamNetConnectionStatusChangedCallback_t is posted. At this point, your + /// / application MUST either accept or close the connection. (It may not ignore it.) + /// / Accepting the connection will transition it either into the connected state, + /// / or the finding route state, depending on the connection type. + /// / + /// / You should take action within a second or two, because accepting the connection is + /// / what actually sends the reply notifying the client that they are connected. If you + /// / delay taking action, from the client's perspective it is the same as the network + /// / being unresponsive, and the client may timeout the connection attempt. In other + /// / words, the client cannot distinguish between a delay caused by network problems + /// / and a delay caused by the application. + /// / + /// / This means that if your application goes for more than a few seconds without + /// / processing callbacks (for example, while loading a map), then there is a chance + /// / that a client may attempt to connect in that interval and fail due to timeout. + /// / + /// / If the application does not respond to the connection attempt in a timely manner, + /// / and we stop receiving communication from the client, the connection attempt will + /// / be timed out locally, transitioning the connection to the + /// / k_ESteamNetworkingConnectionState_ProblemDetectedLocally state. The client may also + /// / close the connection before it is accepted, and a transition to the + /// / k_ESteamNetworkingConnectionState_ClosedByPeer is also possible depending the exact + /// / sequence of events. + /// / + /// / Returns k_EResultInvalidParam if the handle is invalid. + /// / Returns k_EResultInvalidState if the connection is not in the appropriate state. + /// / (Remember that the connection state could change in between the time that the + /// / notification being posted to the queue and when it is received by the application.) + /// / + /// / A note about connection configuration options. If you need to set any configuration + /// / options that are common to all connections accepted through a particular listen + /// / socket, consider setting the options on the listen socket, since such options are + /// / inherited automatically. If you really do need to set options that are connection + /// / specific, it is safe to set them on the connection before accepting the connection. + /// + public static EResult AcceptConnection( HSteamNetConnection hConn ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_AcceptConnection(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn); + } - /// - /// / Destroy a listen socket. All the connections that were accepting on the listen - /// / socket are closed ungracefully. - /// - public static bool CloseListenSocket(HSteamListenSocket hSocket) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_CloseListenSocket(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hSocket); - } + /// + /// / Disconnects from the remote host and invalidates the connection handle. + /// / Any unread data on the connection is discarded. + /// / + /// / nReason is an application defined code that will be received on the other + /// / end and recorded (when possible) in backend analytics. The value should + /// / come from a restricted range. (See ESteamNetConnectionEnd.) If you don't need + /// / to communicate any information to the remote host, and do not want analytics to + /// / be able to distinguish "normal" connection terminations from "exceptional" ones, + /// / You may pass zero, in which case the generic value of + /// / k_ESteamNetConnectionEnd_App_Generic will be used. + /// / + /// / pszDebug is an optional human-readable diagnostic string that will be received + /// / by the remote host and recorded (when possible) in backend analytics. + /// / + /// / If you wish to put the socket into a "linger" state, where an attempt is made to + /// / flush any remaining sent data, use bEnableLinger=true. Otherwise reliable data + /// / is not flushed. + /// / + /// / If the connection has already ended and you are just freeing up the + /// / connection interface, the reason code, debug string, and linger flag are + /// / ignored. + /// + public static bool CloseConnection( HSteamNetConnection hPeer, int nReason, string pszDebug, bool bEnableLinger ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszDebug2 = new InteropHelp.UTF8StringHandle(pszDebug)) + { + return NativeMethods.ISteamNetworkingSockets_CloseConnection(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPeer, nReason, pszDebug2, bEnableLinger); + } + } - /// - /// / Set connection user data. the data is returned in the following places - /// / - You can query it using GetConnectionUserData. - /// / - The SteamNetworkingmessage_t structure. - /// / - The SteamNetConnectionInfo_t structure. - /// / (Which is a member of SteamNetConnectionStatusChangedCallback_t -- but see WARNINGS below!!!!) - /// / - /// / Do you need to set this atomically when the connection is created? - /// / See k_ESteamNetworkingConfig_ConnectionUserData. - /// / - /// / WARNING: Be *very careful* when using the value provided in callbacks structs. - /// / Callbacks are queued, and the value that you will receive in your - /// / callback is the userdata that was effective at the time the callback - /// / was queued. There are subtle race conditions that can happen if you - /// / don't understand this! - /// / - /// / If any incoming messages for this connection are queued, the userdata - /// / field is updated, so that when when you receive messages (e.g. with - /// / ReceiveMessagesOnConnection), they will always have the very latest - /// / userdata. So the tricky race conditions that can happen with callbacks - /// / do not apply to retrieving messages. - /// / - /// / Returns false if the handle is invalid. - /// - public static bool SetConnectionUserData(HSteamNetConnection hPeer, long nUserData) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_SetConnectionUserData(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPeer, nUserData); - } + /// + /// / Destroy a listen socket. All the connections that were accepting on the listen + /// / socket are closed ungracefully. + /// + public static bool CloseListenSocket( HSteamListenSocket hSocket ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_CloseListenSocket(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hSocket); + } - /// - /// / Fetch connection user data. Returns -1 if handle is invalid - /// / or if you haven't set any userdata on the connection. - /// - public static long GetConnectionUserData(HSteamNetConnection hPeer) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_GetConnectionUserData(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPeer); - } + /// + /// / Set connection user data. the data is returned in the following places + /// / - You can query it using GetConnectionUserData. + /// / - The SteamNetworkingmessage_t structure. + /// / - The SteamNetConnectionInfo_t structure. + /// / (Which is a member of SteamNetConnectionStatusChangedCallback_t -- but see WARNINGS below!!!!) + /// / + /// / Do you need to set this atomically when the connection is created? + /// / See k_ESteamNetworkingConfig_ConnectionUserData. + /// / + /// / WARNING: Be *very careful* when using the value provided in callbacks structs. + /// / Callbacks are queued, and the value that you will receive in your + /// / callback is the userdata that was effective at the time the callback + /// / was queued. There are subtle race conditions that can happen if you + /// / don't understand this! + /// / + /// / If any incoming messages for this connection are queued, the userdata + /// / field is updated, so that when when you receive messages (e.g. with + /// / ReceiveMessagesOnConnection), they will always have the very latest + /// / userdata. So the tricky race conditions that can happen with callbacks + /// / do not apply to retrieving messages. + /// / + /// / Returns false if the handle is invalid. + /// + public static bool SetConnectionUserData( HSteamNetConnection hPeer, long nUserData ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_SetConnectionUserData(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPeer, nUserData); + } - /// - /// / Set a name for the connection, used mostly for debugging - /// - public static void SetConnectionName(HSteamNetConnection hPeer, string pszName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszName2 = new InteropHelp.UTF8StringHandle(pszName)) { - NativeMethods.ISteamNetworkingSockets_SetConnectionName(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPeer, pszName2); - } - } + /// + /// / Fetch connection user data. Returns -1 if handle is invalid + /// / or if you haven't set any userdata on the connection. + /// + public static long GetConnectionUserData( HSteamNetConnection hPeer ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_GetConnectionUserData(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPeer); + } - /// - /// / Fetch connection name. Returns false if handle is invalid - /// - public static bool GetConnectionName(HSteamNetConnection hPeer, out string pszName, int nMaxLen) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pszName2 = Marshal.AllocHGlobal(nMaxLen); - bool ret = NativeMethods.ISteamNetworkingSockets_GetConnectionName(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPeer, pszName2, nMaxLen); - pszName = ret ? InteropHelp.PtrToStringUTF8(pszName2) : null; - Marshal.FreeHGlobal(pszName2); - return ret; - } + /// + /// / Set a name for the connection, used mostly for debugging + /// + public static void SetConnectionName( HSteamNetConnection hPeer, string pszName ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszName2 = new InteropHelp.UTF8StringHandle(pszName)) + { + NativeMethods.ISteamNetworkingSockets_SetConnectionName(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPeer, pszName2); + } + } - /// - /// / Send a message to the remote host on the specified connection. - /// / - /// / nSendFlags determines the delivery guarantees that will be provided, - /// / when data should be buffered, etc. E.g. k_nSteamNetworkingSend_Unreliable - /// / - /// / Note that the semantics we use for messages are not precisely - /// / the same as the semantics of a standard "stream" socket. - /// / (SOCK_STREAM) For an ordinary stream socket, the boundaries - /// / between chunks are not considered relevant, and the sizes of - /// / the chunks of data written will not necessarily match up to - /// / the sizes of the chunks that are returned by the reads on - /// / the other end. The remote host might read a partial chunk, - /// / or chunks might be coalesced. For the message semantics - /// / used here, however, the sizes WILL match. Each send call - /// / will match a successful read call on the remote host - /// / one-for-one. If you are porting existing stream-oriented - /// / code to the semantics of reliable messages, your code should - /// / work the same, since reliable message semantics are more - /// / strict than stream semantics. The only caveat is related to - /// / performance: there is per-message overhead to retain the - /// / message sizes, and so if your code sends many small chunks - /// / of data, performance will suffer. Any code based on stream - /// / sockets that does not write excessively small chunks will - /// / work without any changes. - /// / - /// / The pOutMessageNumber is an optional pointer to receive the - /// / message number assigned to the message, if sending was successful. - /// / - /// / Returns: - /// / - k_EResultInvalidParam: invalid connection handle, or the individual message is too big. - /// / (See k_cbMaxSteamNetworkingSocketsMessageSizeSend) - /// / - k_EResultInvalidState: connection is in an invalid state - /// / - k_EResultNoConnection: connection has ended - /// / - k_EResultIgnored: You used k_nSteamNetworkingSend_NoDelay, and the message was dropped because - /// / we were not ready to send it. - /// / - k_EResultLimitExceeded: there was already too much data queued to be sent. - /// / (See k_ESteamNetworkingConfig_SendBufferSize) - /// - public static EResult SendMessageToConnection(HSteamNetConnection hConn, IntPtr pData, uint cbData, int nSendFlags, out long pOutMessageNumber) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_SendMessageToConnection(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, pData, cbData, nSendFlags, out pOutMessageNumber); - } + /// + /// / Fetch connection name. Returns false if handle is invalid + /// + public static bool GetConnectionName( HSteamNetConnection hPeer, out string pszName, int nMaxLen ) + { + InteropHelp.TestIfAvailableGameServer(); + var pszName2 = Marshal.AllocHGlobal(nMaxLen); + var ret = NativeMethods.ISteamNetworkingSockets_GetConnectionName(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPeer, pszName2, nMaxLen); + pszName = ret ? InteropHelp.PtrToStringUTF8(pszName2) : null; + Marshal.FreeHGlobal(pszName2); + return ret; + } - /// - /// / Send one or more messages without copying the message payload. - /// / This is the most efficient way to send messages. To use this - /// / function, you must first allocate a message object using - /// / ISteamNetworkingUtils::AllocateMessage. (Do not declare one - /// / on the stack or allocate your own.) - /// / - /// / You should fill in the message payload. You can either let - /// / it allocate the buffer for you and then fill in the payload, - /// / or if you already have a buffer allocated, you can just point - /// / m_pData at your buffer and set the callback to the appropriate function - /// / to free it. Note that if you use your own buffer, it MUST remain valid - /// / until the callback is executed. And also note that your callback can be - /// / invoked at any time from any thread (perhaps even before SendMessages - /// / returns!), so it MUST be fast and threadsafe. - /// / - /// / You MUST also fill in: - /// / - m_conn - the handle of the connection to send the message to - /// / - m_nFlags - bitmask of k_nSteamNetworkingSend_xxx flags. - /// / - /// / All other fields are currently reserved and should not be modified. - /// / - /// / The library will take ownership of the message structures. They may - /// / be modified or become invalid at any time, so you must not read them - /// / after passing them to this function. - /// / - /// / pOutMessageNumberOrResult is an optional array that will receive, - /// / for each message, the message number that was assigned to the message - /// / if sending was successful. If sending failed, then a negative EResult - /// / value is placed into the array. For example, the array will hold - /// / -k_EResultInvalidState if the connection was in an invalid state. - /// / See ISteamNetworkingSockets::SendMessageToConnection for possible - /// / failure codes. - /// - public static void SendMessages(int nMessages, SteamNetworkingMessage_t[] pMessages, long[] pOutMessageNumberOrResult) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamNetworkingSockets_SendMessages(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), nMessages, pMessages, pOutMessageNumberOrResult); - } + /// + /// / Send a message to the remote host on the specified connection. + /// / + /// / nSendFlags determines the delivery guarantees that will be provided, + /// / when data should be buffered, etc. E.g. k_nSteamNetworkingSend_Unreliable + /// / + /// / Note that the semantics we use for messages are not precisely + /// / the same as the semantics of a standard "stream" socket. + /// / (SOCK_STREAM) For an ordinary stream socket, the boundaries + /// / between chunks are not considered relevant, and the sizes of + /// / the chunks of data written will not necessarily match up to + /// / the sizes of the chunks that are returned by the reads on + /// / the other end. The remote host might read a partial chunk, + /// / or chunks might be coalesced. For the message semantics + /// / used here, however, the sizes WILL match. Each send call + /// / will match a successful read call on the remote host + /// / one-for-one. If you are porting existing stream-oriented + /// / code to the semantics of reliable messages, your code should + /// / work the same, since reliable message semantics are more + /// / strict than stream semantics. The only caveat is related to + /// / performance: there is per-message overhead to retain the + /// / message sizes, and so if your code sends many small chunks + /// / of data, performance will suffer. Any code based on stream + /// / sockets that does not write excessively small chunks will + /// / work without any changes. + /// / + /// / The pOutMessageNumber is an optional pointer to receive the + /// / message number assigned to the message, if sending was successful. + /// / + /// / Returns: + /// / - k_EResultInvalidParam: invalid connection handle, or the individual message is too big. + /// / (See k_cbMaxSteamNetworkingSocketsMessageSizeSend) + /// / - k_EResultInvalidState: connection is in an invalid state + /// / - k_EResultNoConnection: connection has ended + /// / - k_EResultIgnored: You used k_nSteamNetworkingSend_NoDelay, and the message was dropped because + /// / we were not ready to send it. + /// / - k_EResultLimitExceeded: there was already too much data queued to be sent. + /// / (See k_ESteamNetworkingConfig_SendBufferSize) + /// + public static EResult SendMessageToConnection( HSteamNetConnection hConn, IntPtr pData, uint cbData, int nSendFlags, out long pOutMessageNumber ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_SendMessageToConnection(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, pData, cbData, nSendFlags, out pOutMessageNumber); + } - /// - /// / Flush any messages waiting on the Nagle timer and send them - /// / at the next transmission opportunity (often that means right now). - /// / - /// / If Nagle is enabled (it's on by default) then when calling - /// / SendMessageToConnection the message will be buffered, up to the Nagle time - /// / before being sent, to merge small messages into the same packet. - /// / (See k_ESteamNetworkingConfig_NagleTime) - /// / - /// / Returns: - /// / k_EResultInvalidParam: invalid connection handle - /// / k_EResultInvalidState: connection is in an invalid state - /// / k_EResultNoConnection: connection has ended - /// / k_EResultIgnored: We weren't (yet) connected, so this operation has no effect. - /// - public static EResult FlushMessagesOnConnection(HSteamNetConnection hConn) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_FlushMessagesOnConnection(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn); - } + /// + /// / Send one or more messages without copying the message payload. + /// / This is the most efficient way to send messages. To use this + /// / function, you must first allocate a message object using + /// / ISteamNetworkingUtils::AllocateMessage. (Do not declare one + /// / on the stack or allocate your own.) + /// / + /// / You should fill in the message payload. You can either let + /// / it allocate the buffer for you and then fill in the payload, + /// / or if you already have a buffer allocated, you can just point + /// / m_pData at your buffer and set the callback to the appropriate function + /// / to free it. Note that if you use your own buffer, it MUST remain valid + /// / until the callback is executed. And also note that your callback can be + /// / invoked at any time from any thread (perhaps even before SendMessages + /// / returns!), so it MUST be fast and threadsafe. + /// / + /// / You MUST also fill in: + /// / - m_conn - the handle of the connection to send the message to + /// / - m_nFlags - bitmask of k_nSteamNetworkingSend_xxx flags. + /// / + /// / All other fields are currently reserved and should not be modified. + /// / + /// / The library will take ownership of the message structures. They may + /// / be modified or become invalid at any time, so you must not read them + /// / after passing them to this function. + /// / + /// / pOutMessageNumberOrResult is an optional array that will receive, + /// / for each message, the message number that was assigned to the message + /// / if sending was successful. If sending failed, then a negative EResult + /// / value is placed into the array. For example, the array will hold + /// / -k_EResultInvalidState if the connection was in an invalid state. + /// / See ISteamNetworkingSockets::SendMessageToConnection for possible + /// / failure codes. + /// + public static void SendMessages( int nMessages, SteamNetworkingMessage_t[] pMessages, long[] pOutMessageNumberOrResult ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamNetworkingSockets_SendMessages(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), nMessages, pMessages, pOutMessageNumberOrResult); + } - /// - /// / Fetch the next available message(s) from the connection, if any. - /// / Returns the number of messages returned into your array, up to nMaxMessages. - /// / If the connection handle is invalid, -1 is returned. - /// / - /// / The order of the messages returned in the array is relevant. - /// / Reliable messages will be received in the order they were sent (and with the - /// / same sizes --- see SendMessageToConnection for on this subtle difference from a stream socket). - /// / - /// / Unreliable messages may be dropped, or delivered out of order with respect to - /// / each other or with respect to reliable messages. The same unreliable message - /// / may be received multiple times. - /// / - /// / If any messages are returned, you MUST call SteamNetworkingMessage_t::Release() on each - /// / of them free up resources after you are done. It is safe to keep the object alive for - /// / a little while (put it into some queue, etc), and you may call Release() from any thread. - /// - public static int ReceiveMessagesOnConnection(HSteamNetConnection hConn, IntPtr[] ppOutMessages, int nMaxMessages) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_ReceiveMessagesOnConnection(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, ppOutMessages, nMaxMessages); - } + /// + /// / Flush any messages waiting on the Nagle timer and send them + /// / at the next transmission opportunity (often that means right now). + /// / + /// / If Nagle is enabled (it's on by default) then when calling + /// / SendMessageToConnection the message will be buffered, up to the Nagle time + /// / before being sent, to merge small messages into the same packet. + /// / (See k_ESteamNetworkingConfig_NagleTime) + /// / + /// / Returns: + /// / k_EResultInvalidParam: invalid connection handle + /// / k_EResultInvalidState: connection is in an invalid state + /// / k_EResultNoConnection: connection has ended + /// / k_EResultIgnored: We weren't (yet) connected, so this operation has no effect. + /// + public static EResult FlushMessagesOnConnection( HSteamNetConnection hConn ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_FlushMessagesOnConnection(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn); + } - /// - /// / Returns basic information about the high-level state of the connection. - /// - public static bool GetConnectionInfo(HSteamNetConnection hConn, out SteamNetConnectionInfo_t pInfo) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_GetConnectionInfo(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, out pInfo); - } + /// + /// / Fetch the next available message(s) from the connection, if any. + /// / Returns the number of messages returned into your array, up to nMaxMessages. + /// / If the connection handle is invalid, -1 is returned. + /// / + /// / The order of the messages returned in the array is relevant. + /// / Reliable messages will be received in the order they were sent (and with the + /// / same sizes --- see SendMessageToConnection for on this subtle difference from a stream socket). + /// / + /// / Unreliable messages may be dropped, or delivered out of order with respect to + /// / each other or with respect to reliable messages. The same unreliable message + /// / may be received multiple times. + /// / + /// / If any messages are returned, you MUST call SteamNetworkingMessage_t::Release() on each + /// / of them free up resources after you are done. It is safe to keep the object alive for + /// / a little while (put it into some queue, etc), and you may call Release() from any thread. + /// + public static int ReceiveMessagesOnConnection( HSteamNetConnection hConn, IntPtr[] ppOutMessages, int nMaxMessages ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_ReceiveMessagesOnConnection(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, ppOutMessages, nMaxMessages); + } - /// - /// / Returns a small set of information about the real-time state of the connection - /// / and the queue status of each lane. - /// / - /// / - pStatus may be NULL if the information is not desired. (E.g. you are only interested - /// / in the lane information.) - /// / - On entry, nLanes specifies the length of the pLanes array. This may be 0 - /// / if you do not wish to receive any lane data. It's OK for this to be smaller than - /// / the total number of configured lanes. - /// / - pLanes points to an array that will receive lane-specific info. It can be NULL - /// / if this is not needed. - /// / - /// / Return value: - /// / - k_EResultNoConnection - connection handle is invalid or connection has been closed. - /// / - k_EResultInvalidParam - nLanes is bad - /// - public static EResult GetConnectionRealTimeStatus(HSteamNetConnection hConn, ref SteamNetConnectionRealTimeStatus_t pStatus, int nLanes, ref SteamNetConnectionRealTimeLaneStatus_t pLanes) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_GetConnectionRealTimeStatus(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, ref pStatus, nLanes, ref pLanes); - } + /// + /// / Returns basic information about the high-level state of the connection. + /// + public static bool GetConnectionInfo( HSteamNetConnection hConn, out SteamNetConnectionInfo_t pInfo ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_GetConnectionInfo(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, out pInfo); + } - /// - /// / Returns detailed connection stats in text format. Useful - /// / for dumping to a log, etc. - /// / - /// / Returns: - /// / -1 failure (bad connection handle) - /// / 0 OK, your buffer was filled in and '\0'-terminated - /// / >0 Your buffer was either nullptr, or it was too small and the text got truncated. - /// / Try again with a buffer of at least N bytes. - /// - public static int GetDetailedConnectionStatus(HSteamNetConnection hConn, out string pszBuf, int cbBuf) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pszBuf2 = Marshal.AllocHGlobal(cbBuf); - int ret = NativeMethods.ISteamNetworkingSockets_GetDetailedConnectionStatus(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, pszBuf2, cbBuf); - pszBuf = ret != -1 ? InteropHelp.PtrToStringUTF8(pszBuf2) : null; - Marshal.FreeHGlobal(pszBuf2); - return ret; - } + /// + /// / Returns a small set of information about the real-time state of the connection + /// / and the queue status of each lane. + /// / + /// / - pStatus may be NULL if the information is not desired. (E.g. you are only interested + /// / in the lane information.) + /// / - On entry, nLanes specifies the length of the pLanes array. This may be 0 + /// / if you do not wish to receive any lane data. It's OK for this to be smaller than + /// / the total number of configured lanes. + /// / - pLanes points to an array that will receive lane-specific info. It can be NULL + /// / if this is not needed. + /// / + /// / Return value: + /// / - k_EResultNoConnection - connection handle is invalid or connection has been closed. + /// / - k_EResultInvalidParam - nLanes is bad + /// + public static EResult GetConnectionRealTimeStatus( HSteamNetConnection hConn, ref SteamNetConnectionRealTimeStatus_t pStatus, int nLanes, ref SteamNetConnectionRealTimeLaneStatus_t pLanes ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_GetConnectionRealTimeStatus(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, ref pStatus, nLanes, ref pLanes); + } - /// - /// / Returns local IP and port that a listen socket created using CreateListenSocketIP is bound to. - /// / - /// / An IPv6 address of ::0 means "any IPv4 or IPv6" - /// / An IPv6 address of ::ffff:0000:0000 means "any IPv4" - /// - public static bool GetListenSocketAddress(HSteamListenSocket hSocket, out SteamNetworkingIPAddr address) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_GetListenSocketAddress(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hSocket, out address); - } + /// + /// / Returns detailed connection stats in text format. Useful + /// / for dumping to a log, etc. + /// / + /// / Returns: + /// / -1 failure (bad connection handle) + /// / 0 OK, your buffer was filled in and '\0'-terminated + /// / >0 Your buffer was either nullptr, or it was too small and the text got truncated. + /// / Try again with a buffer of at least N bytes. + /// + public static int GetDetailedConnectionStatus( HSteamNetConnection hConn, out string pszBuf, int cbBuf ) + { + InteropHelp.TestIfAvailableGameServer(); + var pszBuf2 = Marshal.AllocHGlobal(cbBuf); + var ret = NativeMethods.ISteamNetworkingSockets_GetDetailedConnectionStatus(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, pszBuf2, cbBuf); + pszBuf = ret != -1 ? InteropHelp.PtrToStringUTF8(pszBuf2) : null; + Marshal.FreeHGlobal(pszBuf2); + return ret; + } - /// - /// / Create a pair of connections that are talking to each other, e.g. a loopback connection. - /// / This is very useful for testing, or so that your client/server code can work the same - /// / even when you are running a local "server". - /// / - /// / The two connections will immediately be placed into the connected state, and no callbacks - /// / will be posted immediately. After this, if you close either connection, the other connection - /// / will receive a callback, exactly as if they were communicating over the network. You must - /// / close *both* sides in order to fully clean up the resources! - /// / - /// / By default, internal buffers are used, completely bypassing the network, the chopping up of - /// / messages into packets, encryption, copying the payload, etc. This means that loopback - /// / packets, by default, will not simulate lag or loss. Passing true for bUseNetworkLoopback will - /// / cause the socket pair to send packets through the local network loopback device (127.0.0.1) - /// / on ephemeral ports. Fake lag and loss are supported in this case, and CPU time is expended - /// / to encrypt and decrypt. - /// / - /// / If you wish to assign a specific identity to either connection, you may pass a particular - /// / identity. Otherwise, if you pass nullptr, the respective connection will assume a generic - /// / "localhost" identity. If you use real network loopback, this might be translated to the - /// / actual bound loopback port. Otherwise, the port will be zero. - /// - public static bool CreateSocketPair(out HSteamNetConnection pOutConnection1, out HSteamNetConnection pOutConnection2, bool bUseNetworkLoopback, ref SteamNetworkingIdentity pIdentity1, ref SteamNetworkingIdentity pIdentity2) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_CreateSocketPair(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), out pOutConnection1, out pOutConnection2, bUseNetworkLoopback, ref pIdentity1, ref pIdentity2); - } + /// + /// / Returns local IP and port that a listen socket created using CreateListenSocketIP is bound to. + /// / + /// / An IPv6 address of ::0 means "any IPv4 or IPv6" + /// / An IPv6 address of ::ffff:0000:0000 means "any IPv4" + /// + public static bool GetListenSocketAddress( HSteamListenSocket hSocket, out SteamNetworkingIPAddr address ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_GetListenSocketAddress(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hSocket, out address); + } - /// - /// / Configure multiple outbound messages streams ("lanes") on a connection, and - /// / control head-of-line blocking between them. Messages within a given lane - /// / are always sent in the order they are queued, but messages from different - /// / lanes may be sent out of order. Each lane has its own message number - /// / sequence. The first message sent on each lane will be assigned the number 1. - /// / - /// / Each lane has a "priority". Lanes with higher numeric values will only be processed - /// / when all lanes with lower number values are empty. The magnitudes of the priority - /// / values are not relevant, only their sort order. - /// / - /// / Each lane also is assigned a weight, which controls the approximate proportion - /// / of the bandwidth that will be consumed by the lane, relative to other lanes - /// / of the same priority. (This is assuming the lane stays busy. An idle lane - /// / does not build up "credits" to be be spent once a message is queued.) - /// / This value is only meaningful as a proportion, relative to other lanes with - /// / the same priority. For lanes with different priorities, the strict priority - /// / order will prevail, and their weights relative to each other are not relevant. - /// / Thus, if a lane has a unique priority value, the weight value for that lane is - /// / not relevant. - /// / - /// / Example: 3 lanes, with priorities [ 0, 10, 10 ] and weights [ (NA), 20, 5 ]. - /// / Messages sent on the first will always be sent first, before messages in the - /// / other two lanes. Its weight value is irrelevant, since there are no other - /// / lanes with priority=0. The other two lanes will share bandwidth, with the second - /// / and third lanes sharing bandwidth using a ratio of approximately 4:1. - /// / (The weights [ NA, 4, 1 ] would be equivalent.) - /// / - /// / Notes: - /// / - At the time of this writing, some code has performance cost that is linear - /// / in the number of lanes, so keep the number of lanes to an absolute minimum. - /// / 3 or so is fine; >8 is a lot. The max number of lanes on Steam is 255, - /// / which is a very large number and not recommended! If you are compiling this - /// / library from source, see STEAMNETWORKINGSOCKETS_MAX_LANES.) - /// / - Lane priority values may be any int. Their absolute value is not relevant, - /// / only the order matters. - /// / - Weights must be positive, and due to implementation details, they are restricted - /// / to 16-bit values. The absolute magnitudes don't matter, just the proportions. - /// / - Messages sent on a lane index other than 0 have a small overhead on the wire, - /// / so for maximum wire efficiency, lane 0 should be the "most common" lane, regardless - /// / of priorities or weights. - /// / - A connection has a single lane by default. Calling this function with - /// / nNumLanes=1 is legal, but pointless, since the priority and weight values are - /// / irrelevant in that case. - /// / - You may reconfigure connection lanes at any time, however reducing the number of - /// / lanes is not allowed. - /// / - Reconfiguring lanes might restart any bandwidth sharing balancing. Usually you - /// / will call this function once, near the start of the connection, perhaps after - /// / exchanging a few messages. - /// / - To assign all lanes the same priority, you may use pLanePriorities=NULL. - /// / - If you wish all lanes with the same priority to share bandwidth equally (or - /// / if no two lanes have the same priority value, and thus priority values are - /// / irrelevant), you may use pLaneWeights=NULL - /// / - Priorities and weights determine the order that messages are SENT on the wire. - /// / There are NO GUARANTEES on the order that messages are RECEIVED! Due to packet - /// / loss, out-of-order delivery, and subtle details of packet serialization, messages - /// / might still be received slightly out-of-order! The *only* strong guarantee is that - /// / *reliable* messages on the *same lane* will be delivered in the order they are sent. - /// / - Each host configures the lanes for the packets they send; the lanes for the flow - /// / in one direction are completely unrelated to the lanes in the opposite direction. - /// / - /// / Return value: - /// / - k_EResultNoConnection - bad hConn - /// / - k_EResultInvalidParam - Invalid number of lanes, bad weights, or you tried to reduce the number of lanes - /// / - k_EResultInvalidState - Connection is already dead, etc - /// / - /// / See also: - /// / SteamNetworkingMessage_t::m_idxLane - /// - public static EResult ConfigureConnectionLanes(HSteamNetConnection hConn, int nNumLanes, out int pLanePriorities, out ushort pLaneWeights) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_ConfigureConnectionLanes(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, nNumLanes, out pLanePriorities, out pLaneWeights); - } + /// + /// / Create a pair of connections that are talking to each other, e.g. a loopback connection. + /// / This is very useful for testing, or so that your client/server code can work the same + /// / even when you are running a local "server". + /// / + /// / The two connections will immediately be placed into the connected state, and no callbacks + /// / will be posted immediately. After this, if you close either connection, the other connection + /// / will receive a callback, exactly as if they were communicating over the network. You must + /// / close *both* sides in order to fully clean up the resources! + /// / + /// / By default, internal buffers are used, completely bypassing the network, the chopping up of + /// / messages into packets, encryption, copying the payload, etc. This means that loopback + /// / packets, by default, will not simulate lag or loss. Passing true for bUseNetworkLoopback will + /// / cause the socket pair to send packets through the local network loopback device (127.0.0.1) + /// / on ephemeral ports. Fake lag and loss are supported in this case, and CPU time is expended + /// / to encrypt and decrypt. + /// / + /// / If you wish to assign a specific identity to either connection, you may pass a particular + /// / identity. Otherwise, if you pass nullptr, the respective connection will assume a generic + /// / "localhost" identity. If you use real network loopback, this might be translated to the + /// / actual bound loopback port. Otherwise, the port will be zero. + /// + public static bool CreateSocketPair( out HSteamNetConnection pOutConnection1, out HSteamNetConnection pOutConnection2, bool bUseNetworkLoopback, ref SteamNetworkingIdentity pIdentity1, ref SteamNetworkingIdentity pIdentity2 ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_CreateSocketPair(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), out pOutConnection1, out pOutConnection2, bUseNetworkLoopback, ref pIdentity1, ref pIdentity2); + } - /// - /// Identity and authentication - /// / Get the identity assigned to this interface. - /// / E.g. on Steam, this is the user's SteamID, or for the gameserver interface, the SteamID assigned - /// / to the gameserver. Returns false and sets the result to an invalid identity if we don't know - /// / our identity yet. (E.g. GameServer has not logged in. On Steam, the user will know their SteamID - /// / even if they are not signed into Steam.) - /// - public static bool GetIdentity(out SteamNetworkingIdentity pIdentity) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_GetIdentity(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), out pIdentity); - } + /// + /// / Configure multiple outbound messages streams ("lanes") on a connection, and + /// / control head-of-line blocking between them. Messages within a given lane + /// / are always sent in the order they are queued, but messages from different + /// / lanes may be sent out of order. Each lane has its own message number + /// / sequence. The first message sent on each lane will be assigned the number 1. + /// / + /// / Each lane has a "priority". Lanes with higher numeric values will only be processed + /// / when all lanes with lower number values are empty. The magnitudes of the priority + /// / values are not relevant, only their sort order. + /// / + /// / Each lane also is assigned a weight, which controls the approximate proportion + /// / of the bandwidth that will be consumed by the lane, relative to other lanes + /// / of the same priority. (This is assuming the lane stays busy. An idle lane + /// / does not build up "credits" to be be spent once a message is queued.) + /// / This value is only meaningful as a proportion, relative to other lanes with + /// / the same priority. For lanes with different priorities, the strict priority + /// / order will prevail, and their weights relative to each other are not relevant. + /// / Thus, if a lane has a unique priority value, the weight value for that lane is + /// / not relevant. + /// / + /// / Example: 3 lanes, with priorities [ 0, 10, 10 ] and weights [ (NA), 20, 5 ]. + /// / Messages sent on the first will always be sent first, before messages in the + /// / other two lanes. Its weight value is irrelevant, since there are no other + /// / lanes with priority=0. The other two lanes will share bandwidth, with the second + /// / and third lanes sharing bandwidth using a ratio of approximately 4:1. + /// / (The weights [ NA, 4, 1 ] would be equivalent.) + /// / + /// / Notes: + /// / - At the time of this writing, some code has performance cost that is linear + /// / in the number of lanes, so keep the number of lanes to an absolute minimum. + /// / 3 or so is fine; >8 is a lot. The max number of lanes on Steam is 255, + /// / which is a very large number and not recommended! If you are compiling this + /// / library from source, see STEAMNETWORKINGSOCKETS_MAX_LANES.) + /// / - Lane priority values may be any int. Their absolute value is not relevant, + /// / only the order matters. + /// / - Weights must be positive, and due to implementation details, they are restricted + /// / to 16-bit values. The absolute magnitudes don't matter, just the proportions. + /// / - Messages sent on a lane index other than 0 have a small overhead on the wire, + /// / so for maximum wire efficiency, lane 0 should be the "most common" lane, regardless + /// / of priorities or weights. + /// / - A connection has a single lane by default. Calling this function with + /// / nNumLanes=1 is legal, but pointless, since the priority and weight values are + /// / irrelevant in that case. + /// / - You may reconfigure connection lanes at any time, however reducing the number of + /// / lanes is not allowed. + /// / - Reconfiguring lanes might restart any bandwidth sharing balancing. Usually you + /// / will call this function once, near the start of the connection, perhaps after + /// / exchanging a few messages. + /// / - To assign all lanes the same priority, you may use pLanePriorities=NULL. + /// / - If you wish all lanes with the same priority to share bandwidth equally (or + /// / if no two lanes have the same priority value, and thus priority values are + /// / irrelevant), you may use pLaneWeights=NULL + /// / - Priorities and weights determine the order that messages are SENT on the wire. + /// / There are NO GUARANTEES on the order that messages are RECEIVED! Due to packet + /// / loss, out-of-order delivery, and subtle details of packet serialization, messages + /// / might still be received slightly out-of-order! The *only* strong guarantee is that + /// / *reliable* messages on the *same lane* will be delivered in the order they are sent. + /// / - Each host configures the lanes for the packets they send; the lanes for the flow + /// / in one direction are completely unrelated to the lanes in the opposite direction. + /// / + /// / Return value: + /// / - k_EResultNoConnection - bad hConn + /// / - k_EResultInvalidParam - Invalid number of lanes, bad weights, or you tried to reduce the number of lanes + /// / - k_EResultInvalidState - Connection is already dead, etc + /// / + /// / See also: + /// / SteamNetworkingMessage_t::m_idxLane + /// + public static EResult ConfigureConnectionLanes( HSteamNetConnection hConn, int nNumLanes, out int pLanePriorities, out ushort pLaneWeights ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_ConfigureConnectionLanes(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, nNumLanes, out pLanePriorities, out pLaneWeights); + } - /// - /// / Indicate our desire to be ready participate in authenticated communications. - /// / If we are currently not ready, then steps will be taken to obtain the necessary - /// / certificates. (This includes a certificate for us, as well as any CA certificates - /// / needed to authenticate peers.) - /// / - /// / You can call this at program init time if you know that you are going to - /// / be making authenticated connections, so that we will be ready immediately when - /// / those connections are attempted. (Note that essentially all connections require - /// / authentication, with the exception of ordinary UDP connections with authentication - /// / disabled using k_ESteamNetworkingConfig_IP_AllowWithoutAuth.) If you don't call - /// / this function, we will wait until a feature is utilized that that necessitates - /// / these resources. - /// / - /// / You can also call this function to force a retry, if failure has occurred. - /// / Once we make an attempt and fail, we will not automatically retry. - /// / In this respect, the behavior of the system after trying and failing is the same - /// / as before the first attempt: attempting authenticated communication or calling - /// / this function will call the system to attempt to acquire the necessary resources. - /// / - /// / You can use GetAuthenticationStatus or listen for SteamNetAuthenticationStatus_t - /// / to monitor the status. - /// / - /// / Returns the current value that would be returned from GetAuthenticationStatus. - /// - public static ESteamNetworkingAvailability InitAuthentication() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_InitAuthentication(CSteamGameServerAPIContext.GetSteamNetworkingSockets()); - } + /// + /// Identity and authentication + /// / Get the identity assigned to this interface. + /// / E.g. on Steam, this is the user's SteamID, or for the gameserver interface, the SteamID assigned + /// / to the gameserver. Returns false and sets the result to an invalid identity if we don't know + /// / our identity yet. (E.g. GameServer has not logged in. On Steam, the user will know their SteamID + /// / even if they are not signed into Steam.) + /// + public static bool GetIdentity( out SteamNetworkingIdentity pIdentity ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_GetIdentity(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), out pIdentity); + } - /// - /// / Query our readiness to participate in authenticated communications. A - /// / SteamNetAuthenticationStatus_t callback is posted any time this status changes, - /// / but you can use this function to query it at any time. - /// / - /// / The value of SteamNetAuthenticationStatus_t::m_eAvail is returned. If you only - /// / want this high level status, you can pass NULL for pDetails. If you want further - /// / details, pass non-NULL to receive them. - /// - public static ESteamNetworkingAvailability GetAuthenticationStatus(out SteamNetAuthenticationStatus_t pDetails) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_GetAuthenticationStatus(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), out pDetails); - } + /// + /// / Indicate our desire to be ready participate in authenticated communications. + /// / If we are currently not ready, then steps will be taken to obtain the necessary + /// / certificates. (This includes a certificate for us, as well as any CA certificates + /// / needed to authenticate peers.) + /// / + /// / You can call this at program init time if you know that you are going to + /// / be making authenticated connections, so that we will be ready immediately when + /// / those connections are attempted. (Note that essentially all connections require + /// / authentication, with the exception of ordinary UDP connections with authentication + /// / disabled using k_ESteamNetworkingConfig_IP_AllowWithoutAuth.) If you don't call + /// / this function, we will wait until a feature is utilized that that necessitates + /// / these resources. + /// / + /// / You can also call this function to force a retry, if failure has occurred. + /// / Once we make an attempt and fail, we will not automatically retry. + /// / In this respect, the behavior of the system after trying and failing is the same + /// / as before the first attempt: attempting authenticated communication or calling + /// / this function will call the system to attempt to acquire the necessary resources. + /// / + /// / You can use GetAuthenticationStatus or listen for SteamNetAuthenticationStatus_t + /// / to monitor the status. + /// / + /// / Returns the current value that would be returned from GetAuthenticationStatus. + /// + public static ESteamNetworkingAvailability InitAuthentication() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_InitAuthentication(CSteamGameServerAPIContext.GetSteamNetworkingSockets()); + } - /// - /// Poll groups. A poll group is a set of connections that can be polled efficiently. - /// (In our API, to "poll" a connection means to retrieve all pending messages. We - /// actually don't have an API to "poll" the connection *state*, like BSD sockets.) - /// / Create a new poll group. - /// / - /// / You should destroy the poll group when you are done using DestroyPollGroup - /// - public static HSteamNetPollGroup CreatePollGroup() { - InteropHelp.TestIfAvailableGameServer(); - return (HSteamNetPollGroup)NativeMethods.ISteamNetworkingSockets_CreatePollGroup(CSteamGameServerAPIContext.GetSteamNetworkingSockets()); - } + /// + /// / Query our readiness to participate in authenticated communications. A + /// / SteamNetAuthenticationStatus_t callback is posted any time this status changes, + /// / but you can use this function to query it at any time. + /// / + /// / The value of SteamNetAuthenticationStatus_t::m_eAvail is returned. If you only + /// / want this high level status, you can pass NULL for pDetails. If you want further + /// / details, pass non-NULL to receive them. + /// + public static ESteamNetworkingAvailability GetAuthenticationStatus( out SteamNetAuthenticationStatus_t pDetails ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_GetAuthenticationStatus(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), out pDetails); + } - /// - /// / Destroy a poll group created with CreatePollGroup(). - /// / - /// / If there are any connections in the poll group, they are removed from the group, - /// / and left in a state where they are not part of any poll group. - /// / Returns false if passed an invalid poll group handle. - /// - public static bool DestroyPollGroup(HSteamNetPollGroup hPollGroup) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_DestroyPollGroup(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPollGroup); - } + /// + /// Poll groups. A poll group is a set of connections that can be polled efficiently. + /// (In our API, to "poll" a connection means to retrieve all pending messages. We + /// actually don't have an API to "poll" the connection *state*, like BSD sockets.) + /// / Create a new poll group. + /// / + /// / You should destroy the poll group when you are done using DestroyPollGroup + /// + public static HSteamNetPollGroup CreatePollGroup() + { + InteropHelp.TestIfAvailableGameServer(); + return (HSteamNetPollGroup)NativeMethods.ISteamNetworkingSockets_CreatePollGroup(CSteamGameServerAPIContext.GetSteamNetworkingSockets()); + } - /// - /// / Assign a connection to a poll group. Note that a connection may only belong to a - /// / single poll group. Adding a connection to a poll group implicitly removes it from - /// / any other poll group it is in. - /// / - /// / You can pass k_HSteamNetPollGroup_Invalid to remove a connection from its current - /// / poll group without adding it to a new poll group. - /// / - /// / If there are received messages currently pending on the connection, an attempt - /// / is made to add them to the queue of messages for the poll group in approximately - /// / the order that would have applied if the connection was already part of the poll - /// / group at the time that the messages were received. - /// / - /// / Returns false if the connection handle is invalid, or if the poll group handle - /// / is invalid (and not k_HSteamNetPollGroup_Invalid). - /// - public static bool SetConnectionPollGroup(HSteamNetConnection hConn, HSteamNetPollGroup hPollGroup) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_SetConnectionPollGroup(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, hPollGroup); - } + /// + /// / Destroy a poll group created with CreatePollGroup(). + /// / + /// / If there are any connections in the poll group, they are removed from the group, + /// / and left in a state where they are not part of any poll group. + /// / Returns false if passed an invalid poll group handle. + /// + public static bool DestroyPollGroup( HSteamNetPollGroup hPollGroup ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_DestroyPollGroup(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPollGroup); + } - /// - /// / Same as ReceiveMessagesOnConnection, but will return the next messages available - /// / on any connection in the poll group. Examine SteamNetworkingMessage_t::m_conn - /// / to know which connection. (SteamNetworkingMessage_t::m_nConnUserData might also - /// / be useful.) - /// / - /// / Delivery order of messages among different connections will usually match the - /// / order that the last packet was received which completed the message. But this - /// / is not a strong guarantee, especially for packets received right as a connection - /// / is being assigned to poll group. - /// / - /// / Delivery order of messages on the same connection is well defined and the - /// / same guarantees are present as mentioned in ReceiveMessagesOnConnection. - /// / (But the messages are not grouped by connection, so they will not necessarily - /// / appear consecutively in the list; they may be interleaved with messages for - /// / other connections.) - /// - public static int ReceiveMessagesOnPollGroup(HSteamNetPollGroup hPollGroup, IntPtr[] ppOutMessages, int nMaxMessages) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_ReceiveMessagesOnPollGroup(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPollGroup, ppOutMessages, nMaxMessages); - } + /// + /// / Assign a connection to a poll group. Note that a connection may only belong to a + /// / single poll group. Adding a connection to a poll group implicitly removes it from + /// / any other poll group it is in. + /// / + /// / You can pass k_HSteamNetPollGroup_Invalid to remove a connection from its current + /// / poll group without adding it to a new poll group. + /// / + /// / If there are received messages currently pending on the connection, an attempt + /// / is made to add them to the queue of messages for the poll group in approximately + /// / the order that would have applied if the connection was already part of the poll + /// / group at the time that the messages were received. + /// / + /// / Returns false if the connection handle is invalid, or if the poll group handle + /// / is invalid (and not k_HSteamNetPollGroup_Invalid). + /// + public static bool SetConnectionPollGroup( HSteamNetConnection hConn, HSteamNetPollGroup hPollGroup ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_SetConnectionPollGroup(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, hPollGroup); + } - /// - /// Clients connecting to dedicated servers hosted in a data center, - /// using tickets issued by your game coordinator. If you are not - /// issuing your own tickets to restrict who can attempt to connect - /// to your server, then you won't use these functions. - /// / Call this when you receive a ticket from your backend / matchmaking system. Puts the - /// / ticket into a persistent cache, and optionally returns the parsed ticket. - /// / - /// / See stamdatagram_ticketgen.h for more details. - /// - public static bool ReceivedRelayAuthTicket(IntPtr pvTicket, int cbTicket, out SteamDatagramRelayAuthTicket pOutParsedTicket) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_ReceivedRelayAuthTicket(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), pvTicket, cbTicket, out pOutParsedTicket); - } + /// + /// / Same as ReceiveMessagesOnConnection, but will return the next messages available + /// / on any connection in the poll group. Examine SteamNetworkingMessage_t::m_conn + /// / to know which connection. (SteamNetworkingMessage_t::m_nConnUserData might also + /// / be useful.) + /// / + /// / Delivery order of messages among different connections will usually match the + /// / order that the last packet was received which completed the message. But this + /// / is not a strong guarantee, especially for packets received right as a connection + /// / is being assigned to poll group. + /// / + /// / Delivery order of messages on the same connection is well defined and the + /// / same guarantees are present as mentioned in ReceiveMessagesOnConnection. + /// / (But the messages are not grouped by connection, so they will not necessarily + /// / appear consecutively in the list; they may be interleaved with messages for + /// / other connections.) + /// + public static int ReceiveMessagesOnPollGroup( HSteamNetPollGroup hPollGroup, IntPtr[] ppOutMessages, int nMaxMessages ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_ReceiveMessagesOnPollGroup(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hPollGroup, ppOutMessages, nMaxMessages); + } - /// - /// / Search cache for a ticket to talk to the server on the specified virtual port. - /// / If found, returns the number of seconds until the ticket expires, and optionally - /// / the complete cracked ticket. Returns 0 if we don't have a ticket. - /// / - /// / Typically this is useful just to confirm that you have a ticket, before you - /// / call ConnectToHostedDedicatedServer to connect to the server. - /// - public static int FindRelayAuthTicketForServer(ref SteamNetworkingIdentity identityGameServer, int nRemoteVirtualPort, out SteamDatagramRelayAuthTicket pOutParsedTicket) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_FindRelayAuthTicketForServer(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), ref identityGameServer, nRemoteVirtualPort, out pOutParsedTicket); - } + /// + /// Clients connecting to dedicated servers hosted in a data center, + /// using tickets issued by your game coordinator. If you are not + /// issuing your own tickets to restrict who can attempt to connect + /// to your server, then you won't use these functions. + /// / Call this when you receive a ticket from your backend / matchmaking system. Puts the + /// / ticket into a persistent cache, and optionally returns the parsed ticket. + /// / + /// / See stamdatagram_ticketgen.h for more details. + /// + public static bool ReceivedRelayAuthTicket( IntPtr pvTicket, int cbTicket, out SteamDatagramRelayAuthTicket pOutParsedTicket ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_ReceivedRelayAuthTicket(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), pvTicket, cbTicket, out pOutParsedTicket); + } - /// - /// / Client call to connect to a server hosted in a Valve data center, on the specified virtual - /// / port. You must have placed a ticket for this server into the cache, or else this connect - /// / attempt will fail! If you are not issuing your own tickets, then to connect to a dedicated - /// / server via SDR in auto-ticket mode, use ConnectP2P. (The server must be configured to allow - /// / this type of connection by listening using CreateListenSocketP2P.) - /// / - /// / You may wonder why tickets are stored in a cache, instead of simply being passed as an argument - /// / here. The reason is to make reconnection to a gameserver robust, even if the client computer loses - /// / connection to Steam or the central backend, or the app is restarted or crashes, etc. - /// / - /// / If you use this, you probably want to call ISteamNetworkingUtils::InitRelayNetworkAccess() - /// / when your app initializes - /// / - /// / If you need to set any initial config options, pass them here. See - /// / SteamNetworkingConfigValue_t for more about why this is preferable to - /// / setting the options "immediately" after creation. - /// - public static HSteamNetConnection ConnectToHostedDedicatedServer(ref SteamNetworkingIdentity identityTarget, int nRemoteVirtualPort, int nOptions, SteamNetworkingConfigValue_t[] pOptions) { - InteropHelp.TestIfAvailableGameServer(); - return (HSteamNetConnection)NativeMethods.ISteamNetworkingSockets_ConnectToHostedDedicatedServer(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), ref identityTarget, nRemoteVirtualPort, nOptions, pOptions); - } + /// + /// / Search cache for a ticket to talk to the server on the specified virtual port. + /// / If found, returns the number of seconds until the ticket expires, and optionally + /// / the complete cracked ticket. Returns 0 if we don't have a ticket. + /// / + /// / Typically this is useful just to confirm that you have a ticket, before you + /// / call ConnectToHostedDedicatedServer to connect to the server. + /// + public static int FindRelayAuthTicketForServer( ref SteamNetworkingIdentity identityGameServer, int nRemoteVirtualPort, out SteamDatagramRelayAuthTicket pOutParsedTicket ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_FindRelayAuthTicketForServer(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), ref identityGameServer, nRemoteVirtualPort, out pOutParsedTicket); + } - /// - /// Servers hosted in data centers known to the Valve relay network - /// / Returns the value of the SDR_LISTEN_PORT environment variable. This - /// / is the UDP server your server will be listening on. This will - /// / configured automatically for you in production environments. - /// / - /// / In development, you'll need to set it yourself. See - /// / https://partner.steamgames.com/doc/api/ISteamNetworkingSockets - /// / for more information on how to configure dev environments. - /// - public static ushort GetHostedDedicatedServerPort() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_GetHostedDedicatedServerPort(CSteamGameServerAPIContext.GetSteamNetworkingSockets()); - } + /// + /// / Client call to connect to a server hosted in a Valve data center, on the specified virtual + /// / port. You must have placed a ticket for this server into the cache, or else this connect + /// / attempt will fail! If you are not issuing your own tickets, then to connect to a dedicated + /// / server via SDR in auto-ticket mode, use ConnectP2P. (The server must be configured to allow + /// / this type of connection by listening using CreateListenSocketP2P.) + /// / + /// / You may wonder why tickets are stored in a cache, instead of simply being passed as an argument + /// / here. The reason is to make reconnection to a gameserver robust, even if the client computer loses + /// / connection to Steam or the central backend, or the app is restarted or crashes, etc. + /// / + /// / If you use this, you probably want to call ISteamNetworkingUtils::InitRelayNetworkAccess() + /// / when your app initializes + /// / + /// / If you need to set any initial config options, pass them here. See + /// / SteamNetworkingConfigValue_t for more about why this is preferable to + /// / setting the options "immediately" after creation. + /// + public static HSteamNetConnection ConnectToHostedDedicatedServer( ref SteamNetworkingIdentity identityTarget, int nRemoteVirtualPort, int nOptions, SteamNetworkingConfigValue_t[] pOptions ) + { + InteropHelp.TestIfAvailableGameServer(); + return (HSteamNetConnection)NativeMethods.ISteamNetworkingSockets_ConnectToHostedDedicatedServer(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), ref identityTarget, nRemoteVirtualPort, nOptions, pOptions); + } - /// - /// / Returns 0 if SDR_LISTEN_PORT is not set. Otherwise, returns the data center the server - /// / is running in. This will be k_SteamDatagramPOPID_dev in non-production environment. - /// - public static SteamNetworkingPOPID GetHostedDedicatedServerPOPID() { - InteropHelp.TestIfAvailableGameServer(); - return (SteamNetworkingPOPID)NativeMethods.ISteamNetworkingSockets_GetHostedDedicatedServerPOPID(CSteamGameServerAPIContext.GetSteamNetworkingSockets()); - } + /// + /// Servers hosted in data centers known to the Valve relay network + /// / Returns the value of the SDR_LISTEN_PORT environment variable. This + /// / is the UDP server your server will be listening on. This will + /// / configured automatically for you in production environments. + /// / + /// / In development, you'll need to set it yourself. See + /// / https://partner.steamgames.com/doc/api/ISteamNetworkingSockets + /// / for more information on how to configure dev environments. + /// + public static ushort GetHostedDedicatedServerPort() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_GetHostedDedicatedServerPort(CSteamGameServerAPIContext.GetSteamNetworkingSockets()); + } - /// - /// / Return info about the hosted server. This contains the PoPID of the server, - /// / and opaque routing information that can be used by the relays to send traffic - /// / to your server. - /// / - /// / You will need to send this information to your backend, and put it in tickets, - /// / so that the relays will know how to forward traffic from - /// / clients to your server. See SteamDatagramRelayAuthTicket for more info. - /// / - /// / Also, note that the routing information is contained in SteamDatagramGameCoordinatorServerLogin, - /// / so if possible, it's preferred to use GetGameCoordinatorServerLogin to send this info - /// / to your game coordinator service, and also login securely at the same time. - /// / - /// / On a successful exit, k_EResultOK is returned - /// / - /// / Unsuccessful exit: - /// / - Something other than k_EResultOK is returned. - /// / - k_EResultInvalidState: We are not configured to listen for SDR (SDR_LISTEN_SOCKET - /// / is not set.) - /// / - k_EResultPending: we do not (yet) have the authentication information needed. - /// / (See GetAuthenticationStatus.) If you use environment variables to pre-fetch - /// / the network config, this data should always be available immediately. - /// / - A non-localized diagnostic debug message will be placed in m_data that describes - /// / the cause of the failure. - /// / - /// / NOTE: The returned blob is not encrypted. Send it to your backend, but don't - /// / directly share it with clients. - /// - public static EResult GetHostedDedicatedServerAddress(out SteamDatagramHostedAddress pRouting) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_GetHostedDedicatedServerAddress(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), out pRouting); - } + /// + /// / Returns 0 if SDR_LISTEN_PORT is not set. Otherwise, returns the data center the server + /// / is running in. This will be k_SteamDatagramPOPID_dev in non-production environment. + /// + public static SteamNetworkingPOPID GetHostedDedicatedServerPOPID() + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamNetworkingPOPID)NativeMethods.ISteamNetworkingSockets_GetHostedDedicatedServerPOPID(CSteamGameServerAPIContext.GetSteamNetworkingSockets()); + } - /// - /// / Create a listen socket on the specified virtual port. The physical UDP port to use - /// / will be determined by the SDR_LISTEN_PORT environment variable. If a UDP port is not - /// / configured, this call will fail. - /// / - /// / This call MUST be made through the SteamGameServerNetworkingSockets() interface. - /// / - /// / This function should be used when you are using the ticket generator library - /// / to issue your own tickets. Clients connecting to the server on this virtual - /// / port will need a ticket, and they must connect using ConnectToHostedDedicatedServer. - /// / - /// / If you need to set any initial config options, pass them here. See - /// / SteamNetworkingConfigValue_t for more about why this is preferable to - /// / setting the options "immediately" after creation. - /// - public static HSteamListenSocket CreateHostedDedicatedServerListenSocket(int nLocalVirtualPort, int nOptions, SteamNetworkingConfigValue_t[] pOptions) { - InteropHelp.TestIfAvailableGameServer(); - return (HSteamListenSocket)NativeMethods.ISteamNetworkingSockets_CreateHostedDedicatedServerListenSocket(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), nLocalVirtualPort, nOptions, pOptions); - } + /// + /// / Return info about the hosted server. This contains the PoPID of the server, + /// / and opaque routing information that can be used by the relays to send traffic + /// / to your server. + /// / + /// / You will need to send this information to your backend, and put it in tickets, + /// / so that the relays will know how to forward traffic from + /// / clients to your server. See SteamDatagramRelayAuthTicket for more info. + /// / + /// / Also, note that the routing information is contained in SteamDatagramGameCoordinatorServerLogin, + /// / so if possible, it's preferred to use GetGameCoordinatorServerLogin to send this info + /// / to your game coordinator service, and also login securely at the same time. + /// / + /// / On a successful exit, k_EResultOK is returned + /// / + /// / Unsuccessful exit: + /// / - Something other than k_EResultOK is returned. + /// / - k_EResultInvalidState: We are not configured to listen for SDR (SDR_LISTEN_SOCKET + /// / is not set.) + /// / - k_EResultPending: we do not (yet) have the authentication information needed. + /// / (See GetAuthenticationStatus.) If you use environment variables to pre-fetch + /// / the network config, this data should always be available immediately. + /// / - A non-localized diagnostic debug message will be placed in m_data that describes + /// / the cause of the failure. + /// / + /// / NOTE: The returned blob is not encrypted. Send it to your backend, but don't + /// / directly share it with clients. + /// + public static EResult GetHostedDedicatedServerAddress( out SteamDatagramHostedAddress pRouting ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_GetHostedDedicatedServerAddress(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), out pRouting); + } - /// - /// / Generate an authentication blob that can be used to securely login with - /// / your backend, using SteamDatagram_ParseHostedServerLogin. (See - /// / steamdatagram_gamecoordinator.h) - /// / - /// / Before calling the function: - /// / - Populate the app data in pLoginInfo (m_cbAppData and m_appData). You can leave - /// / all other fields uninitialized. - /// / - *pcbSignedBlob contains the size of the buffer at pBlob. (It should be - /// / at least k_cbMaxSteamDatagramGameCoordinatorServerLoginSerialized.) - /// / - /// / On a successful exit: - /// / - k_EResultOK is returned - /// / - All of the remaining fields of pLoginInfo will be filled out. - /// / - *pcbSignedBlob contains the size of the serialized blob that has been - /// / placed into pBlob. - /// / - /// / Unsuccessful exit: - /// / - Something other than k_EResultOK is returned. - /// / - k_EResultNotLoggedOn: you are not logged in (yet) - /// / - See GetHostedDedicatedServerAddress for more potential failure return values. - /// / - A non-localized diagnostic debug message will be placed in pBlob that describes - /// / the cause of the failure. - /// / - /// / This works by signing the contents of the SteamDatagramGameCoordinatorServerLogin - /// / with the cert that is issued to this server. In dev environments, it's OK if you do - /// / not have a cert. (You will need to enable insecure dev login in SteamDatagram_ParseHostedServerLogin.) - /// / Otherwise, you will need a signed cert. - /// / - /// / NOTE: The routing blob returned here is not encrypted. Send it to your backend - /// / and don't share it directly with clients. - /// - public static EResult GetGameCoordinatorServerLogin(IntPtr pLoginInfo, out int pcbSignedBlob, IntPtr pBlob) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_GetGameCoordinatorServerLogin(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), pLoginInfo, out pcbSignedBlob, pBlob); - } + /// + /// / Create a listen socket on the specified virtual port. The physical UDP port to use + /// / will be determined by the SDR_LISTEN_PORT environment variable. If a UDP port is not + /// / configured, this call will fail. + /// / + /// / This call MUST be made through the SteamGameServerNetworkingSockets() interface. + /// / + /// / This function should be used when you are using the ticket generator library + /// / to issue your own tickets. Clients connecting to the server on this virtual + /// / port will need a ticket, and they must connect using ConnectToHostedDedicatedServer. + /// / + /// / If you need to set any initial config options, pass them here. See + /// / SteamNetworkingConfigValue_t for more about why this is preferable to + /// / setting the options "immediately" after creation. + /// + public static HSteamListenSocket CreateHostedDedicatedServerListenSocket( int nLocalVirtualPort, int nOptions, SteamNetworkingConfigValue_t[] pOptions ) + { + InteropHelp.TestIfAvailableGameServer(); + return (HSteamListenSocket)NativeMethods.ISteamNetworkingSockets_CreateHostedDedicatedServerListenSocket(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), nLocalVirtualPort, nOptions, pOptions); + } - /// - /// Relayed connections using custom signaling protocol - /// This is used if you have your own method of sending out-of-band - /// signaling / rendezvous messages through a mutually trusted channel. - /// / Create a P2P "client" connection that does signaling over a custom - /// / rendezvous/signaling channel. - /// / - /// / pSignaling points to a new object that you create just for this connection. - /// / It must stay valid until Release() is called. Once you pass the - /// / object to this function, it assumes ownership. Release() will be called - /// / from within the function call if the call fails. Furthermore, until Release() - /// / is called, you should be prepared for methods to be invoked on your - /// / object from any thread! You need to make sure your object is threadsafe! - /// / Furthermore, you should make sure that dispatching the methods is done - /// / as quickly as possible. - /// / - /// / This function will immediately construct a connection in the "connecting" - /// / state. Soon after (perhaps before this function returns, perhaps in another thread), - /// / the connection will begin sending signaling messages by calling - /// / ISteamNetworkingConnectionSignaling::SendSignal. - /// / - /// / When the remote peer accepts the connection (See - /// / ISteamNetworkingSignalingRecvContext::OnConnectRequest), - /// / it will begin sending signaling messages. When these messages are received, - /// / you can pass them to the connection using ReceivedP2PCustomSignal. - /// / - /// / If you know the identity of the peer that you expect to be on the other end, - /// / you can pass their identity to improve debug output or just detect bugs. - /// / If you don't know their identity yet, you can pass NULL, and their - /// / identity will be established in the connection handshake. - /// / - /// / If you use this, you probably want to call ISteamNetworkingUtils::InitRelayNetworkAccess() - /// / when your app initializes - /// / - /// / If you need to set any initial config options, pass them here. See - /// / SteamNetworkingConfigValue_t for more about why this is preferable to - /// / setting the options "immediately" after creation. - /// - public static HSteamNetConnection ConnectP2PCustomSignaling(out ISteamNetworkingConnectionSignaling pSignaling, ref SteamNetworkingIdentity pPeerIdentity, int nRemoteVirtualPort, int nOptions, SteamNetworkingConfigValue_t[] pOptions) { - InteropHelp.TestIfAvailableGameServer(); - return (HSteamNetConnection)NativeMethods.ISteamNetworkingSockets_ConnectP2PCustomSignaling(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), out pSignaling, ref pPeerIdentity, nRemoteVirtualPort, nOptions, pOptions); - } + /// + /// / Generate an authentication blob that can be used to securely login with + /// / your backend, using SteamDatagram_ParseHostedServerLogin. (See + /// / steamdatagram_gamecoordinator.h) + /// / + /// / Before calling the function: + /// / - Populate the app data in pLoginInfo (m_cbAppData and m_appData). You can leave + /// / all other fields uninitialized. + /// / - *pcbSignedBlob contains the size of the buffer at pBlob. (It should be + /// / at least k_cbMaxSteamDatagramGameCoordinatorServerLoginSerialized.) + /// / + /// / On a successful exit: + /// / - k_EResultOK is returned + /// / - All of the remaining fields of pLoginInfo will be filled out. + /// / - *pcbSignedBlob contains the size of the serialized blob that has been + /// / placed into pBlob. + /// / + /// / Unsuccessful exit: + /// / - Something other than k_EResultOK is returned. + /// / - k_EResultNotLoggedOn: you are not logged in (yet) + /// / - See GetHostedDedicatedServerAddress for more potential failure return values. + /// / - A non-localized diagnostic debug message will be placed in pBlob that describes + /// / the cause of the failure. + /// / + /// / This works by signing the contents of the SteamDatagramGameCoordinatorServerLogin + /// / with the cert that is issued to this server. In dev environments, it's OK if you do + /// / not have a cert. (You will need to enable insecure dev login in SteamDatagram_ParseHostedServerLogin.) + /// / Otherwise, you will need a signed cert. + /// / + /// / NOTE: The routing blob returned here is not encrypted. Send it to your backend + /// / and don't share it directly with clients. + /// + public static EResult GetGameCoordinatorServerLogin( IntPtr pLoginInfo, out int pcbSignedBlob, IntPtr pBlob ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_GetGameCoordinatorServerLogin(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), pLoginInfo, out pcbSignedBlob, pBlob); + } - /// - /// / Called when custom signaling has received a message. When your - /// / signaling channel receives a message, it should save off whatever - /// / routing information was in the envelope into the context object, - /// / and then pass the payload to this function. - /// / - /// / A few different things can happen next, depending on the message: - /// / - /// / - If the signal is associated with existing connection, it is dealt - /// / with immediately. If any replies need to be sent, they will be - /// / dispatched using the ISteamNetworkingConnectionSignaling - /// / associated with the connection. - /// / - If the message represents a connection request (and the request - /// / is not redundant for an existing connection), a new connection - /// / will be created, and ReceivedConnectRequest will be called on your - /// / context object to determine how to proceed. - /// / - Otherwise, the message is for a connection that does not - /// / exist (anymore). In this case, we *may* call SendRejectionReply - /// / on your context object. - /// / - /// / In any case, we will not save off pContext or access it after this - /// / function returns. - /// / - /// / Returns true if the message was parsed and dispatched without anything - /// / unusual or suspicious happening. Returns false if there was some problem - /// / with the message that prevented ordinary handling. (Debug output will - /// / usually have more information.) - /// / - /// / If you expect to be using relayed connections, then you probably want - /// / to call ISteamNetworkingUtils::InitRelayNetworkAccess() when your app initializes - /// - public static bool ReceivedP2PCustomSignal(IntPtr pMsg, int cbMsg, out ISteamNetworkingSignalingRecvContext pContext) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_ReceivedP2PCustomSignal(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), pMsg, cbMsg, out pContext); - } + /// + /// Relayed connections using custom signaling protocol + /// This is used if you have your own method of sending out-of-band + /// signaling / rendezvous messages through a mutually trusted channel. + /// / Create a P2P "client" connection that does signaling over a custom + /// / rendezvous/signaling channel. + /// / + /// / pSignaling points to a new object that you create just for this connection. + /// / It must stay valid until Release() is called. Once you pass the + /// / object to this function, it assumes ownership. Release() will be called + /// / from within the function call if the call fails. Furthermore, until Release() + /// / is called, you should be prepared for methods to be invoked on your + /// / object from any thread! You need to make sure your object is threadsafe! + /// / Furthermore, you should make sure that dispatching the methods is done + /// / as quickly as possible. + /// / + /// / This function will immediately construct a connection in the "connecting" + /// / state. Soon after (perhaps before this function returns, perhaps in another thread), + /// / the connection will begin sending signaling messages by calling + /// / ISteamNetworkingConnectionSignaling::SendSignal. + /// / + /// / When the remote peer accepts the connection (See + /// / ISteamNetworkingSignalingRecvContext::OnConnectRequest), + /// / it will begin sending signaling messages. When these messages are received, + /// / you can pass them to the connection using ReceivedP2PCustomSignal. + /// / + /// / If you know the identity of the peer that you expect to be on the other end, + /// / you can pass their identity to improve debug output or just detect bugs. + /// / If you don't know their identity yet, you can pass NULL, and their + /// / identity will be established in the connection handshake. + /// / + /// / If you use this, you probably want to call ISteamNetworkingUtils::InitRelayNetworkAccess() + /// / when your app initializes + /// / + /// / If you need to set any initial config options, pass them here. See + /// / SteamNetworkingConfigValue_t for more about why this is preferable to + /// / setting the options "immediately" after creation. + /// + public static HSteamNetConnection ConnectP2PCustomSignaling( out ISteamNetworkingConnectionSignaling pSignaling, ref SteamNetworkingIdentity pPeerIdentity, int nRemoteVirtualPort, int nOptions, SteamNetworkingConfigValue_t[] pOptions ) + { + InteropHelp.TestIfAvailableGameServer(); + return (HSteamNetConnection)NativeMethods.ISteamNetworkingSockets_ConnectP2PCustomSignaling(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), out pSignaling, ref pPeerIdentity, nRemoteVirtualPort, nOptions, pOptions); + } - /// - /// Certificate provision by the application. On Steam, we normally handle all this automatically - /// and you will not need to use these advanced functions. - /// / Get blob that describes a certificate request. You can send this to your game coordinator. - /// / Upon entry, *pcbBlob should contain the size of the buffer. On successful exit, it will - /// / return the number of bytes that were populated. You can pass pBlob=NULL to query for the required - /// / size. (512 bytes is a conservative estimate.) - /// / - /// / Pass this blob to your game coordinator and call SteamDatagram_CreateCert. - /// - public static bool GetCertificateRequest(out int pcbBlob, IntPtr pBlob, out SteamNetworkingErrMsg errMsg) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_GetCertificateRequest(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), out pcbBlob, pBlob, out errMsg); - } + /// + /// / Called when custom signaling has received a message. When your + /// / signaling channel receives a message, it should save off whatever + /// / routing information was in the envelope into the context object, + /// / and then pass the payload to this function. + /// / + /// / A few different things can happen next, depending on the message: + /// / + /// / - If the signal is associated with existing connection, it is dealt + /// / with immediately. If any replies need to be sent, they will be + /// / dispatched using the ISteamNetworkingConnectionSignaling + /// / associated with the connection. + /// / - If the message represents a connection request (and the request + /// / is not redundant for an existing connection), a new connection + /// / will be created, and ReceivedConnectRequest will be called on your + /// / context object to determine how to proceed. + /// / - Otherwise, the message is for a connection that does not + /// / exist (anymore). In this case, we *may* call SendRejectionReply + /// / on your context object. + /// / + /// / In any case, we will not save off pContext or access it after this + /// / function returns. + /// / + /// / Returns true if the message was parsed and dispatched without anything + /// / unusual or suspicious happening. Returns false if there was some problem + /// / with the message that prevented ordinary handling. (Debug output will + /// / usually have more information.) + /// / + /// / If you expect to be using relayed connections, then you probably want + /// / to call ISteamNetworkingUtils::InitRelayNetworkAccess() when your app initializes + /// + public static bool ReceivedP2PCustomSignal( IntPtr pMsg, int cbMsg, out ISteamNetworkingSignalingRecvContext pContext ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_ReceivedP2PCustomSignal(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), pMsg, cbMsg, out pContext); + } - /// - /// / Set the certificate. The certificate blob should be the output of - /// / SteamDatagram_CreateCert. - /// - public static bool SetCertificate(IntPtr pCertificate, int cbCertificate, out SteamNetworkingErrMsg errMsg) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_SetCertificate(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), pCertificate, cbCertificate, out errMsg); - } + /// + /// Certificate provision by the application. On Steam, we normally handle all this automatically + /// and you will not need to use these advanced functions. + /// / Get blob that describes a certificate request. You can send this to your game coordinator. + /// / Upon entry, *pcbBlob should contain the size of the buffer. On successful exit, it will + /// / return the number of bytes that were populated. You can pass pBlob=NULL to query for the required + /// / size. (512 bytes is a conservative estimate.) + /// / + /// / Pass this blob to your game coordinator and call SteamDatagram_CreateCert. + /// + public static bool GetCertificateRequest( out int pcbBlob, IntPtr pBlob, out SteamNetworkingErrMsg errMsg ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_GetCertificateRequest(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), out pcbBlob, pBlob, out errMsg); + } - /// - /// / Reset the identity associated with this instance. - /// / Any open connections are closed. Any previous certificates, etc are discarded. - /// / You can pass a specific identity that you want to use, or you can pass NULL, - /// / in which case the identity will be invalid until you set it using SetCertificate - /// / - /// / NOTE: This function is not actually supported on Steam! It is included - /// / for use on other platforms where the active user can sign out and - /// / a new user can sign in. - /// - public static void ResetIdentity(ref SteamNetworkingIdentity pIdentity) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamNetworkingSockets_ResetIdentity(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), ref pIdentity); - } + /// + /// / Set the certificate. The certificate blob should be the output of + /// / SteamDatagram_CreateCert. + /// + public static bool SetCertificate( IntPtr pCertificate, int cbCertificate, out SteamNetworkingErrMsg errMsg ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_SetCertificate(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), pCertificate, cbCertificate, out errMsg); + } - /// - /// Misc - /// / Invoke all callback functions queued for this interface. - /// / See k_ESteamNetworkingConfig_Callback_ConnectionStatusChanged, etc - /// / - /// / You don't need to call this if you are using Steam's callback dispatch - /// / mechanism (SteamAPI_RunCallbacks and SteamGameserver_RunCallbacks). - /// - public static void RunCallbacks() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamNetworkingSockets_RunCallbacks(CSteamGameServerAPIContext.GetSteamNetworkingSockets()); - } + /// + /// / Reset the identity associated with this instance. + /// / Any open connections are closed. Any previous certificates, etc are discarded. + /// / You can pass a specific identity that you want to use, or you can pass NULL, + /// / in which case the identity will be invalid until you set it using SetCertificate + /// / + /// / NOTE: This function is not actually supported on Steam! It is included + /// / for use on other platforms where the active user can sign out and + /// / a new user can sign in. + /// + public static void ResetIdentity( ref SteamNetworkingIdentity pIdentity ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamNetworkingSockets_ResetIdentity(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), ref pIdentity); + } - /// - /// "FakeIP" system. - /// A FakeIP is essentially a temporary, arbitrary identifier that - /// happens to be a valid IPv4 address. The purpose of this system is to make it - /// easy to integrate with existing code that identifies hosts using IPv4 addresses. - /// The FakeIP address will never actually be used to send or receive any packets - /// on the Internet, it is strictly an identifier. - /// FakeIP addresses are designed to (hopefully) pass through existing code as - /// transparently as possible, while conflicting with "real" addresses that might - /// be in use on networks (both the Internet and LANs) in the same code as little - /// as possible. At the time this comment is being written, they come from the - /// 169.254.0.0/16 range, and the port number will always be >1024. HOWEVER, - /// this is subject to change! Do not make assumptions about these addresses, - /// or your code might break in the future. In particular, you should use - /// functions such as ISteamNetworkingUtils::IsFakeIP to determine if an IP - /// address is a "fake" one used by this system. - /// / Begin asynchronous process of allocating a fake IPv4 address that other - /// / peers can use to contact us via P2P. IP addresses returned by this - /// / function are globally unique for a given appid. - /// / - /// / nNumPorts is the numbers of ports you wish to reserve. This is useful - /// / for the same reason that listening on multiple UDP ports is useful for - /// / different types of traffic. Because these allocations come from a global - /// / namespace, there is a relatively strict limit on the maximum number of - /// / ports you may request. (At the time of this writing, the limit is 4.) - /// / The port assignments are *not* guaranteed to have any particular order - /// / or relationship! Do *not* assume they are contiguous, even though that - /// / may often occur in practice. - /// / - /// / Returns false if a request was already in progress, true if a new request - /// / was started. A SteamNetworkingFakeIPResult_t will be posted when the request - /// / completes. - /// / - /// / For gameservers, you *must* call this after initializing the SDK but before - /// / beginning login. Steam needs to know in advance that FakeIP will be used. - /// / Everywhere your public IP would normally appear (such as the server browser) will be - /// / replaced by the FakeIP, and the fake port at index 0. The request is actually queued - /// / until the logon completes, so you must not wait until the allocation completes - /// / before logging in. Except for trivial failures that can be detected locally - /// / (e.g. invalid parameter), a SteamNetworkingFakeIPResult_t callback (whether success or - /// / failure) will not be posted until after we have logged in. Furthermore, it is assumed - /// / that FakeIP allocation is essential for your application to function, and so failure - /// / will not be reported until *several* retries have been attempted. This process may - /// / last several minutes. It is *highly* recommended to treat failure as fatal. - /// / - /// / To communicate using a connection-oriented (TCP-style) API: - /// / - Server creates a listen socket using CreateListenSocketP2PFakeIP - /// / - Client connects using ConnectByIPAddress, passing in the FakeIP address. - /// / - The connection will behave mostly like a P2P connection. The identities - /// / that appear in SteamNetConnectionInfo_t will be the FakeIP identity until - /// / we know the real identity. Then it will be the real identity. If the - /// / SteamNetConnectionInfo_t::m_addrRemote is valid, it will be a real IPv4 - /// / address of a NAT-punched connection. Otherwise, it will not be valid. - /// / - /// / To communicate using an ad-hoc sendto/recv from (UDP-style) API, - /// / use CreateFakeUDPPort. - /// - public static bool BeginAsyncRequestFakeIP(int nNumPorts) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_BeginAsyncRequestFakeIP(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), nNumPorts); - } + /// + /// Misc + /// / Invoke all callback functions queued for this interface. + /// / See k_ESteamNetworkingConfig_Callback_ConnectionStatusChanged, etc + /// / + /// / You don't need to call this if you are using Steam's callback dispatch + /// / mechanism (SteamAPI_RunCallbacks and SteamGameserver_RunCallbacks). + /// + public static void RunCallbacks() + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamNetworkingSockets_RunCallbacks(CSteamGameServerAPIContext.GetSteamNetworkingSockets()); + } - /// - /// / Return info about the FakeIP and port(s) that we have been assigned, - /// / if any. idxFirstPort is currently reserved and must be zero. - /// / Make sure and check SteamNetworkingFakeIPResult_t::m_eResult - /// - public static void GetFakeIP(int idxFirstPort, out SteamNetworkingFakeIPResult_t pInfo) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamNetworkingSockets_GetFakeIP(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), idxFirstPort, out pInfo); - } + /// + /// "FakeIP" system. + /// A FakeIP is essentially a temporary, arbitrary identifier that + /// happens to be a valid IPv4 address. The purpose of this system is to make it + /// easy to integrate with existing code that identifies hosts using IPv4 addresses. + /// The FakeIP address will never actually be used to send or receive any packets + /// on the Internet, it is strictly an identifier. + /// FakeIP addresses are designed to (hopefully) pass through existing code as + /// transparently as possible, while conflicting with "real" addresses that might + /// be in use on networks (both the Internet and LANs) in the same code as little + /// as possible. At the time this comment is being written, they come from the + /// 169.254.0.0/16 range, and the port number will always be >1024. HOWEVER, + /// this is subject to change! Do not make assumptions about these addresses, + /// or your code might break in the future. In particular, you should use + /// functions such as ISteamNetworkingUtils::IsFakeIP to determine if an IP + /// address is a "fake" one used by this system. + /// / Begin asynchronous process of allocating a fake IPv4 address that other + /// / peers can use to contact us via P2P. IP addresses returned by this + /// / function are globally unique for a given appid. + /// / + /// / nNumPorts is the numbers of ports you wish to reserve. This is useful + /// / for the same reason that listening on multiple UDP ports is useful for + /// / different types of traffic. Because these allocations come from a global + /// / namespace, there is a relatively strict limit on the maximum number of + /// / ports you may request. (At the time of this writing, the limit is 4.) + /// / The port assignments are *not* guaranteed to have any particular order + /// / or relationship! Do *not* assume they are contiguous, even though that + /// / may often occur in practice. + /// / + /// / Returns false if a request was already in progress, true if a new request + /// / was started. A SteamNetworkingFakeIPResult_t will be posted when the request + /// / completes. + /// / + /// / For gameservers, you *must* call this after initializing the SDK but before + /// / beginning login. Steam needs to know in advance that FakeIP will be used. + /// / Everywhere your public IP would normally appear (such as the server browser) will be + /// / replaced by the FakeIP, and the fake port at index 0. The request is actually queued + /// / until the logon completes, so you must not wait until the allocation completes + /// / before logging in. Except for trivial failures that can be detected locally + /// / (e.g. invalid parameter), a SteamNetworkingFakeIPResult_t callback (whether success or + /// / failure) will not be posted until after we have logged in. Furthermore, it is assumed + /// / that FakeIP allocation is essential for your application to function, and so failure + /// / will not be reported until *several* retries have been attempted. This process may + /// / last several minutes. It is *highly* recommended to treat failure as fatal. + /// / + /// / To communicate using a connection-oriented (TCP-style) API: + /// / - Server creates a listen socket using CreateListenSocketP2PFakeIP + /// / - Client connects using ConnectByIPAddress, passing in the FakeIP address. + /// / - The connection will behave mostly like a P2P connection. The identities + /// / that appear in SteamNetConnectionInfo_t will be the FakeIP identity until + /// / we know the real identity. Then it will be the real identity. If the + /// / SteamNetConnectionInfo_t::m_addrRemote is valid, it will be a real IPv4 + /// / address of a NAT-punched connection. Otherwise, it will not be valid. + /// / + /// / To communicate using an ad-hoc sendto/recv from (UDP-style) API, + /// / use CreateFakeUDPPort. + /// + public static bool BeginAsyncRequestFakeIP( int nNumPorts ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_BeginAsyncRequestFakeIP(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), nNumPorts); + } - /// - /// / Create a listen socket that will listen for P2P connections sent - /// / to our FakeIP. A peer can initiate connections to this listen - /// / socket by calling ConnectByIPAddress. - /// / - /// / idxFakePort refers to the *index* of the fake port requested, - /// / not the actual port number. For example, pass 0 to refer to the - /// / first port in the reservation. You must call this only after calling - /// / BeginAsyncRequestFakeIP. However, you do not need to wait for the - /// / request to complete before creating the listen socket. - /// - public static HSteamListenSocket CreateListenSocketP2PFakeIP(int idxFakePort, int nOptions, SteamNetworkingConfigValue_t[] pOptions) { - InteropHelp.TestIfAvailableGameServer(); - return (HSteamListenSocket)NativeMethods.ISteamNetworkingSockets_CreateListenSocketP2PFakeIP(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), idxFakePort, nOptions, pOptions); - } + /// + /// / Return info about the FakeIP and port(s) that we have been assigned, + /// / if any. idxFirstPort is currently reserved and must be zero. + /// / Make sure and check SteamNetworkingFakeIPResult_t::m_eResult + /// + public static void GetFakeIP( int idxFirstPort, out SteamNetworkingFakeIPResult_t pInfo ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamNetworkingSockets_GetFakeIP(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), idxFirstPort, out pInfo); + } - /// - /// / If the connection was initiated using the "FakeIP" system, then we - /// / we can get an IP address for the remote host. If the remote host had - /// / a global FakeIP at the time the connection was established, this - /// / function will return that global IP. Otherwise, a FakeIP that is - /// / unique locally will be allocated from the local FakeIP address space, - /// / and that will be returned. - /// / - /// / The allocation of local FakeIPs attempts to assign addresses in - /// / a consistent manner. If multiple connections are made to the - /// / same remote host, they *probably* will return the same FakeIP. - /// / However, since the namespace is limited, this cannot be guaranteed. - /// / - /// / On failure, returns: - /// / - k_EResultInvalidParam: invalid connection handle - /// / - k_EResultIPNotFound: This connection wasn't made using FakeIP system - /// - public static EResult GetRemoteFakeIPForConnection(HSteamNetConnection hConn, out SteamNetworkingIPAddr pOutAddr) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_GetRemoteFakeIPForConnection(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, out pOutAddr); - } + /// + /// / Create a listen socket that will listen for P2P connections sent + /// / to our FakeIP. A peer can initiate connections to this listen + /// / socket by calling ConnectByIPAddress. + /// / + /// / idxFakePort refers to the *index* of the fake port requested, + /// / not the actual port number. For example, pass 0 to refer to the + /// / first port in the reservation. You must call this only after calling + /// / BeginAsyncRequestFakeIP. However, you do not need to wait for the + /// / request to complete before creating the listen socket. + /// + public static HSteamListenSocket CreateListenSocketP2PFakeIP( int idxFakePort, int nOptions, SteamNetworkingConfigValue_t[] pOptions ) + { + InteropHelp.TestIfAvailableGameServer(); + return (HSteamListenSocket)NativeMethods.ISteamNetworkingSockets_CreateListenSocketP2PFakeIP(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), idxFakePort, nOptions, pOptions); + } - /// - /// / Get an interface that can be used like a UDP port to send/receive - /// / datagrams to a FakeIP address. This is intended to make it easy - /// / to port existing UDP-based code to take advantage of SDR. - /// / - /// / idxFakeServerPort refers to the *index* of the port allocated using - /// / BeginAsyncRequestFakeIP and is used to create "server" ports. You may - /// / call this before the allocation has completed. However, any attempts - /// / to send packets will fail until the allocation has succeeded. When - /// / the peer receives packets sent from this interface, the from address - /// / of the packet will be the globally-unique FakeIP. If you call this - /// / function multiple times and pass the same (nonnegative) fake port index, - /// / the same object will be returned, and this object is not reference counted. - /// / - /// / To create a "client" port (e.g. the equivalent of an ephemeral UDP port) - /// / pass -1. In this case, a distinct object will be returned for each call. - /// / When the peer receives packets sent from this interface, the peer will - /// / assign a FakeIP from its own locally-controlled namespace. - /// - public static IntPtr CreateFakeUDPPort(int idxFakeServerPort) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingSockets_CreateFakeUDPPort(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), idxFakeServerPort); - } - } + /// + /// / If the connection was initiated using the "FakeIP" system, then we + /// / we can get an IP address for the remote host. If the remote host had + /// / a global FakeIP at the time the connection was established, this + /// / function will return that global IP. Otherwise, a FakeIP that is + /// / unique locally will be allocated from the local FakeIP address space, + /// / and that will be returned. + /// / + /// / The allocation of local FakeIPs attempts to assign addresses in + /// / a consistent manner. If multiple connections are made to the + /// / same remote host, they *probably* will return the same FakeIP. + /// / However, since the namespace is limited, this cannot be guaranteed. + /// / + /// / On failure, returns: + /// / - k_EResultInvalidParam: invalid connection handle + /// / - k_EResultIPNotFound: This connection wasn't made using FakeIP system + /// + public static EResult GetRemoteFakeIPForConnection( HSteamNetConnection hConn, out SteamNetworkingIPAddr pOutAddr ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_GetRemoteFakeIPForConnection(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), hConn, out pOutAddr); + } + + /// + /// / Get an interface that can be used like a UDP port to send/receive + /// / datagrams to a FakeIP address. This is intended to make it easy + /// / to port existing UDP-based code to take advantage of SDR. + /// / + /// / idxFakeServerPort refers to the *index* of the port allocated using + /// / BeginAsyncRequestFakeIP and is used to create "server" ports. You may + /// / call this before the allocation has completed. However, any attempts + /// / to send packets will fail until the allocation has succeeded. When + /// / the peer receives packets sent from this interface, the from address + /// / of the packet will be the globally-unique FakeIP. If you call this + /// / function multiple times and pass the same (nonnegative) fake port index, + /// / the same object will be returned, and this object is not reference counted. + /// / + /// / To create a "client" port (e.g. the equivalent of an ephemeral UDP port) + /// / pass -1. In this case, a distinct object will be returned for each call. + /// / When the peer receives packets sent from this interface, the peer will + /// / assign a FakeIP from its own locally-controlled namespace. + /// + public static IntPtr CreateFakeUDPPort( int idxFakeServerPort ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingSockets_CreateFakeUDPPort(CSteamGameServerAPIContext.GetSteamNetworkingSockets(), idxFakeServerPort); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameservernetworkingutils.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameservernetworkingutils.cs index c261e83a2..28b83067c 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameservernetworkingutils.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameservernetworkingutils.cs @@ -1,431 +1,462 @@ #define STEAMNETWORKINGSOCKETS_ENABLE_SDR using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; +using IntPtr = nint; -namespace SwiftlyS2.Shared.SteamAPI { - public static class SteamGameServerNetworkingUtils { - /// - /// Efficient message sending - /// / Allocate and initialize a message object. Usually the reason - /// / you call this is to pass it to ISteamNetworkingSockets::SendMessages. - /// / The returned object will have all of the relevant fields cleared to zero. - /// / - /// / Optionally you can also request that this system allocate space to - /// / hold the payload itself. If cbAllocateBuffer is nonzero, the system - /// / will allocate memory to hold a payload of at least cbAllocateBuffer bytes. - /// / m_pData will point to the allocated buffer, m_cbSize will be set to the - /// / size, and m_pfnFreeData will be set to the proper function to free up - /// / the buffer. - /// / - /// / If cbAllocateBuffer=0, then no buffer is allocated. m_pData will be NULL, - /// / m_cbSize will be zero, and m_pfnFreeData will be NULL. You will need to - /// / set each of these. - /// - public static IntPtr AllocateMessage(int cbAllocateBuffer) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_AllocateMessage(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), cbAllocateBuffer); - } +namespace SwiftlyS2.Shared.SteamAPI; - /// - /// Access to Steam Datagram Relay (SDR) network - /// Initialization and status check - /// / If you know that you are going to be using the relay network (for example, - /// / because you anticipate making P2P connections), call this to initialize the - /// / relay network. If you do not call this, the initialization will - /// / be delayed until the first time you use a feature that requires access - /// / to the relay network, which will delay that first access. - /// / - /// / You can also call this to force a retry if the previous attempt has failed. - /// / Performing any action that requires access to the relay network will also - /// / trigger a retry, and so calling this function is never strictly necessary, - /// / but it can be useful to call it a program launch time, if access to the - /// / relay network is anticipated. - /// / - /// / Use GetRelayNetworkStatus or listen for SteamRelayNetworkStatus_t - /// / callbacks to know when initialization has completed. - /// / Typically initialization completes in a few seconds. - /// / - /// / Note: dedicated servers hosted in known data centers do *not* need - /// / to call this, since they do not make routing decisions. However, if - /// / the dedicated server will be using P2P functionality, it will act as - /// / a "client" and this should be called. - /// - public static void InitRelayNetworkAccess() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamNetworkingUtils_InitRelayNetworkAccess(CSteamGameServerAPIContext.GetSteamNetworkingUtils()); - } +public static class SteamGameServerNetworkingUtils +{ + /// + /// Efficient message sending + /// / Allocate and initialize a message object. Usually the reason + /// / you call this is to pass it to ISteamNetworkingSockets::SendMessages. + /// / The returned object will have all of the relevant fields cleared to zero. + /// / + /// / Optionally you can also request that this system allocate space to + /// / hold the payload itself. If cbAllocateBuffer is nonzero, the system + /// / will allocate memory to hold a payload of at least cbAllocateBuffer bytes. + /// / m_pData will point to the allocated buffer, m_cbSize will be set to the + /// / size, and m_pfnFreeData will be set to the proper function to free up + /// / the buffer. + /// / + /// / If cbAllocateBuffer=0, then no buffer is allocated. m_pData will be NULL, + /// / m_cbSize will be zero, and m_pfnFreeData will be NULL. You will need to + /// / set each of these. + /// + public static IntPtr AllocateMessage( int cbAllocateBuffer ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_AllocateMessage(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), cbAllocateBuffer); + } - /// - /// / Fetch current status of the relay network. - /// / - /// / SteamRelayNetworkStatus_t is also a callback. It will be triggered on - /// / both the user and gameserver interfaces any time the status changes, or - /// / ping measurement starts or stops. - /// / - /// / SteamRelayNetworkStatus_t::m_eAvail is returned. If you want - /// / more details, you can pass a non-NULL value. - /// - public static ESteamNetworkingAvailability GetRelayNetworkStatus(out SteamRelayNetworkStatus_t pDetails) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_GetRelayNetworkStatus(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), out pDetails); - } + /// + /// Access to Steam Datagram Relay (SDR) network + /// Initialization and status check + /// / If you know that you are going to be using the relay network (for example, + /// / because you anticipate making P2P connections), call this to initialize the + /// / relay network. If you do not call this, the initialization will + /// / be delayed until the first time you use a feature that requires access + /// / to the relay network, which will delay that first access. + /// / + /// / You can also call this to force a retry if the previous attempt has failed. + /// / Performing any action that requires access to the relay network will also + /// / trigger a retry, and so calling this function is never strictly necessary, + /// / but it can be useful to call it a program launch time, if access to the + /// / relay network is anticipated. + /// / + /// / Use GetRelayNetworkStatus or listen for SteamRelayNetworkStatus_t + /// / callbacks to know when initialization has completed. + /// / Typically initialization completes in a few seconds. + /// / + /// / Note: dedicated servers hosted in known data centers do *not* need + /// / to call this, since they do not make routing decisions. However, if + /// / the dedicated server will be using P2P functionality, it will act as + /// / a "client" and this should be called. + /// + public static void InitRelayNetworkAccess() + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamNetworkingUtils_InitRelayNetworkAccess(CSteamGameServerAPIContext.GetSteamNetworkingUtils()); + } - /// - /// "Ping location" functions - /// We use the ping times to the valve relays deployed worldwide to - /// generate a "marker" that describes the location of an Internet host. - /// Given two such markers, we can estimate the network latency between - /// two hosts, without sending any packets. The estimate is based on the - /// optimal route that is found through the Valve network. If you are - /// using the Valve network to carry the traffic, then this is precisely - /// the ping you want. If you are not, then the ping time will probably - /// still be a reasonable estimate. - /// This is extremely useful to select peers for matchmaking! - /// The markers can also be converted to a string, so they can be transmitted. - /// We have a separate library you can use on your app's matchmaking/coordinating - /// server to manipulate these objects. (See steamdatagram_gamecoordinator.h) - /// / Return location info for the current host. Returns the approximate - /// / age of the data, in seconds, or -1 if no data is available. - /// / - /// / It takes a few seconds to initialize access to the relay network. If - /// / you call this very soon after calling InitRelayNetworkAccess, - /// / the data may not be available yet. - /// / - /// / This always return the most up-to-date information we have available - /// / right now, even if we are in the middle of re-calculating ping times. - /// - public static float GetLocalPingLocation(out SteamNetworkPingLocation_t result) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_GetLocalPingLocation(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), out result); - } + /// + /// / Fetch current status of the relay network. + /// / + /// / SteamRelayNetworkStatus_t is also a callback. It will be triggered on + /// / both the user and gameserver interfaces any time the status changes, or + /// / ping measurement starts or stops. + /// / + /// / SteamRelayNetworkStatus_t::m_eAvail is returned. If you want + /// / more details, you can pass a non-NULL value. + /// + public static ESteamNetworkingAvailability GetRelayNetworkStatus( out SteamRelayNetworkStatus_t pDetails ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_GetRelayNetworkStatus(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), out pDetails); + } - /// - /// / Estimate the round-trip latency between two arbitrary locations, in - /// / milliseconds. This is a conservative estimate, based on routing through - /// / the relay network. For most basic relayed connections, this ping time - /// / will be pretty accurate, since it will be based on the route likely to - /// / be actually used. - /// / - /// / If a direct IP route is used (perhaps via NAT traversal), then the route - /// / will be different, and the ping time might be better. Or it might actually - /// / be a bit worse! Standard IP routing is frequently suboptimal! - /// / - /// / But even in this case, the estimate obtained using this method is a - /// / reasonable upper bound on the ping time. (Also it has the advantage - /// / of returning immediately and not sending any packets.) - /// / - /// / In a few cases we might not able to estimate the route. In this case - /// / a negative value is returned. k_nSteamNetworkingPing_Failed means - /// / the reason was because of some networking difficulty. (Failure to - /// / ping, etc) k_nSteamNetworkingPing_Unknown is returned if we cannot - /// / currently answer the question for some other reason. - /// / - /// / Do you need to be able to do this from a backend/matchmaking server? - /// / You are looking for the "game coordinator" library. - /// - public static int EstimatePingTimeBetweenTwoLocations(ref SteamNetworkPingLocation_t location1, ref SteamNetworkPingLocation_t location2) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_EstimatePingTimeBetweenTwoLocations(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref location1, ref location2); - } + /// + /// "Ping location" functions + /// We use the ping times to the valve relays deployed worldwide to + /// generate a "marker" that describes the location of an Internet host. + /// Given two such markers, we can estimate the network latency between + /// two hosts, without sending any packets. The estimate is based on the + /// optimal route that is found through the Valve network. If you are + /// using the Valve network to carry the traffic, then this is precisely + /// the ping you want. If you are not, then the ping time will probably + /// still be a reasonable estimate. + /// This is extremely useful to select peers for matchmaking! + /// The markers can also be converted to a string, so they can be transmitted. + /// We have a separate library you can use on your app's matchmaking/coordinating + /// server to manipulate these objects. (See steamdatagram_gamecoordinator.h) + /// / Return location info for the current host. Returns the approximate + /// / age of the data, in seconds, or -1 if no data is available. + /// / + /// / It takes a few seconds to initialize access to the relay network. If + /// / you call this very soon after calling InitRelayNetworkAccess, + /// / the data may not be available yet. + /// / + /// / This always return the most up-to-date information we have available + /// / right now, even if we are in the middle of re-calculating ping times. + /// + public static float GetLocalPingLocation( out SteamNetworkPingLocation_t result ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_GetLocalPingLocation(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), out result); + } - /// - /// / Same as EstimatePingTime, but assumes that one location is the local host. - /// / This is a bit faster, especially if you need to calculate a bunch of - /// / these in a loop to find the fastest one. - /// / - /// / In rare cases this might return a slightly different estimate than combining - /// / GetLocalPingLocation with EstimatePingTimeBetweenTwoLocations. That's because - /// / this function uses a slightly more complete set of information about what - /// / route would be taken. - /// - public static int EstimatePingTimeFromLocalHost(ref SteamNetworkPingLocation_t remoteLocation) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_EstimatePingTimeFromLocalHost(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref remoteLocation); - } + /// + /// / Estimate the round-trip latency between two arbitrary locations, in + /// / milliseconds. This is a conservative estimate, based on routing through + /// / the relay network. For most basic relayed connections, this ping time + /// / will be pretty accurate, since it will be based on the route likely to + /// / be actually used. + /// / + /// / If a direct IP route is used (perhaps via NAT traversal), then the route + /// / will be different, and the ping time might be better. Or it might actually + /// / be a bit worse! Standard IP routing is frequently suboptimal! + /// / + /// / But even in this case, the estimate obtained using this method is a + /// / reasonable upper bound on the ping time. (Also it has the advantage + /// / of returning immediately and not sending any packets.) + /// / + /// / In a few cases we might not able to estimate the route. In this case + /// / a negative value is returned. k_nSteamNetworkingPing_Failed means + /// / the reason was because of some networking difficulty. (Failure to + /// / ping, etc) k_nSteamNetworkingPing_Unknown is returned if we cannot + /// / currently answer the question for some other reason. + /// / + /// / Do you need to be able to do this from a backend/matchmaking server? + /// / You are looking for the "game coordinator" library. + /// + public static int EstimatePingTimeBetweenTwoLocations( ref SteamNetworkPingLocation_t location1, ref SteamNetworkPingLocation_t location2 ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_EstimatePingTimeBetweenTwoLocations(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref location1, ref location2); + } - /// - /// / Convert a ping location into a text format suitable for sending over the wire. - /// / The format is a compact and human readable. However, it is subject to change - /// / so please do not parse it yourself. Your buffer must be at least - /// / k_cchMaxSteamNetworkingPingLocationString bytes. - /// - public static void ConvertPingLocationToString(ref SteamNetworkPingLocation_t location, out string pszBuf, int cchBufSize) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pszBuf2 = Marshal.AllocHGlobal(cchBufSize); - NativeMethods.ISteamNetworkingUtils_ConvertPingLocationToString(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref location, pszBuf2, cchBufSize); - pszBuf = InteropHelp.PtrToStringUTF8(pszBuf2); - Marshal.FreeHGlobal(pszBuf2); - } + /// + /// / Same as EstimatePingTime, but assumes that one location is the local host. + /// / This is a bit faster, especially if you need to calculate a bunch of + /// / these in a loop to find the fastest one. + /// / + /// / In rare cases this might return a slightly different estimate than combining + /// / GetLocalPingLocation with EstimatePingTimeBetweenTwoLocations. That's because + /// / this function uses a slightly more complete set of information about what + /// / route would be taken. + /// + public static int EstimatePingTimeFromLocalHost( ref SteamNetworkPingLocation_t remoteLocation ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_EstimatePingTimeFromLocalHost(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref remoteLocation); + } - /// - /// / Parse back SteamNetworkPingLocation_t string. Returns false if we couldn't understand - /// / the string. - /// - public static bool ParsePingLocationString(string pszString, out SteamNetworkPingLocation_t result) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszString2 = new InteropHelp.UTF8StringHandle(pszString)) { - return NativeMethods.ISteamNetworkingUtils_ParsePingLocationString(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), pszString2, out result); - } - } + /// + /// / Convert a ping location into a text format suitable for sending over the wire. + /// / The format is a compact and human readable. However, it is subject to change + /// / so please do not parse it yourself. Your buffer must be at least + /// / k_cchMaxSteamNetworkingPingLocationString bytes. + /// + public static void ConvertPingLocationToString( ref SteamNetworkPingLocation_t location, out string pszBuf, int cchBufSize ) + { + InteropHelp.TestIfAvailableGameServer(); + var pszBuf2 = Marshal.AllocHGlobal(cchBufSize); + NativeMethods.ISteamNetworkingUtils_ConvertPingLocationToString(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref location, pszBuf2, cchBufSize); + pszBuf = InteropHelp.PtrToStringUTF8(pszBuf2); + Marshal.FreeHGlobal(pszBuf2); + } - /// - /// / Check if the ping data of sufficient recency is available, and if - /// / it's too old, start refreshing it. - /// / - /// / Please only call this function when you *really* do need to force an - /// / immediate refresh of the data. (For example, in response to a specific - /// / user input to refresh this information.) Don't call it "just in case", - /// / before every connection, etc. That will cause extra traffic to be sent - /// / for no benefit. The library will automatically refresh the information - /// / as needed. - /// / - /// / Returns true if sufficiently recent data is already available. - /// / - /// / Returns false if sufficiently recent data is not available. In this - /// / case, ping measurement is initiated, if it is not already active. - /// / (You cannot restart a measurement already in progress.) - /// / - /// / You can use GetRelayNetworkStatus or listen for SteamRelayNetworkStatus_t - /// / to know when ping measurement completes. - /// - public static bool CheckPingDataUpToDate(float flMaxAgeSeconds) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_CheckPingDataUpToDate(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), flMaxAgeSeconds); - } + /// + /// / Parse back SteamNetworkPingLocation_t string. Returns false if we couldn't understand + /// / the string. + /// + public static bool ParsePingLocationString( string pszString, out SteamNetworkPingLocation_t result ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszString2 = new InteropHelp.UTF8StringHandle(pszString)) + { + return NativeMethods.ISteamNetworkingUtils_ParsePingLocationString(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), pszString2, out result); + } + } - /// - /// List of Valve data centers, and ping times to them. This might - /// be useful to you if you are use our hosting, or just need to measure - /// latency to a cloud data center where we are running relays. - /// / Fetch ping time of best available relayed route from this host to - /// / the specified data center. - /// - public static int GetPingToDataCenter(SteamNetworkingPOPID popID, out SteamNetworkingPOPID pViaRelayPoP) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_GetPingToDataCenter(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), popID, out pViaRelayPoP); - } + /// + /// / Check if the ping data of sufficient recency is available, and if + /// / it's too old, start refreshing it. + /// / + /// / Please only call this function when you *really* do need to force an + /// / immediate refresh of the data. (For example, in response to a specific + /// / user input to refresh this information.) Don't call it "just in case", + /// / before every connection, etc. That will cause extra traffic to be sent + /// / for no benefit. The library will automatically refresh the information + /// / as needed. + /// / + /// / Returns true if sufficiently recent data is already available. + /// / + /// / Returns false if sufficiently recent data is not available. In this + /// / case, ping measurement is initiated, if it is not already active. + /// / (You cannot restart a measurement already in progress.) + /// / + /// / You can use GetRelayNetworkStatus or listen for SteamRelayNetworkStatus_t + /// / to know when ping measurement completes. + /// + public static bool CheckPingDataUpToDate( float flMaxAgeSeconds ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_CheckPingDataUpToDate(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), flMaxAgeSeconds); + } - /// - /// / Get *direct* ping time to the relays at the data center. - /// - public static int GetDirectPingToPOP(SteamNetworkingPOPID popID) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_GetDirectPingToPOP(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), popID); - } + /// + /// List of Valve data centers, and ping times to them. This might + /// be useful to you if you are use our hosting, or just need to measure + /// latency to a cloud data center where we are running relays. + /// / Fetch ping time of best available relayed route from this host to + /// / the specified data center. + /// + public static int GetPingToDataCenter( SteamNetworkingPOPID popID, out SteamNetworkingPOPID pViaRelayPoP ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_GetPingToDataCenter(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), popID, out pViaRelayPoP); + } - /// - /// / Get number of network points of presence in the config - /// - public static int GetPOPCount() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_GetPOPCount(CSteamGameServerAPIContext.GetSteamNetworkingUtils()); - } + /// + /// / Get *direct* ping time to the relays at the data center. + /// + public static int GetDirectPingToPOP( SteamNetworkingPOPID popID ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_GetDirectPingToPOP(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), popID); + } - /// - /// / Get list of all POP IDs. Returns the number of entries that were filled into - /// / your list. - /// - public static int GetPOPList(out SteamNetworkingPOPID list, int nListSz) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_GetPOPList(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), out list, nListSz); - } + /// + /// / Get number of network points of presence in the config + /// + public static int GetPOPCount() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_GetPOPCount(CSteamGameServerAPIContext.GetSteamNetworkingUtils()); + } - /// - /// Misc - /// / Fetch current timestamp. This timer has the following properties: - /// / - /// / - Monotonicity is guaranteed. - /// / - The initial value will be at least 24*3600*30*1e6, i.e. about - /// / 30 days worth of microseconds. In this way, the timestamp value of - /// / 0 will always be at least "30 days ago". Also, negative numbers - /// / will never be returned. - /// / - Wraparound / overflow is not a practical concern. - /// / - /// / If you are running under the debugger and stop the process, the clock - /// / might not advance the full wall clock time that has elapsed between - /// / calls. If the process is not blocked from normal operation, the - /// / timestamp values will track wall clock time, even if you don't call - /// / the function frequently. - /// / - /// / The value is only meaningful for this run of the process. Don't compare - /// / it to values obtained on another computer, or other runs of the same process. - /// - public static SteamNetworkingMicroseconds GetLocalTimestamp() { - InteropHelp.TestIfAvailableGameServer(); - return (SteamNetworkingMicroseconds)NativeMethods.ISteamNetworkingUtils_GetLocalTimestamp(CSteamGameServerAPIContext.GetSteamNetworkingUtils()); - } + /// + /// / Get list of all POP IDs. Returns the number of entries that were filled into + /// / your list. + /// + public static int GetPOPList( out SteamNetworkingPOPID list, int nListSz ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_GetPOPList(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), out list, nListSz); + } - /// - /// / Set a function to receive network-related information that is useful for debugging. - /// / This can be very useful during development, but it can also be useful for troubleshooting - /// / problems with tech savvy end users. If you have a console or other log that customers - /// / can examine, these log messages can often be helpful to troubleshoot network issues. - /// / (Especially any warning/error messages.) - /// / - /// / The detail level indicates what message to invoke your callback on. Lower numeric - /// / value means more important, and the value you pass is the lowest priority (highest - /// / numeric value) you wish to receive callbacks for. - /// / - /// / The value here controls the detail level for most messages. You can control the - /// / detail level for various subsystems (perhaps only for certain connections) by - /// / adjusting the configuration values k_ESteamNetworkingConfig_LogLevel_Xxxxx. - /// / - /// / Except when debugging, you should only use k_ESteamNetworkingSocketsDebugOutputType_Msg - /// / or k_ESteamNetworkingSocketsDebugOutputType_Warning. For best performance, do NOT - /// / request a high detail level and then filter out messages in your callback. This incurs - /// / all of the expense of formatting the messages, which are then discarded. Setting a high - /// / priority value (low numeric value) here allows the library to avoid doing this work. - /// / - /// / IMPORTANT: This may be called from a service thread, while we own a mutex, etc. - /// / Your output function must be threadsafe and fast! Do not make any other - /// / Steamworks calls from within the handler. - /// - public static void SetDebugOutputFunction(ESteamNetworkingSocketsDebugOutputType eDetailLevel, FSteamNetworkingSocketsDebugOutput pfnFunc) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamNetworkingUtils_SetDebugOutputFunction(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), eDetailLevel, pfnFunc); - } + /// + /// Misc + /// / Fetch current timestamp. This timer has the following properties: + /// / + /// / - Monotonicity is guaranteed. + /// / - The initial value will be at least 24*3600*30*1e6, i.e. about + /// / 30 days worth of microseconds. In this way, the timestamp value of + /// / 0 will always be at least "30 days ago". Also, negative numbers + /// / will never be returned. + /// / - Wraparound / overflow is not a practical concern. + /// / + /// / If you are running under the debugger and stop the process, the clock + /// / might not advance the full wall clock time that has elapsed between + /// / calls. If the process is not blocked from normal operation, the + /// / timestamp values will track wall clock time, even if you don't call + /// / the function frequently. + /// / + /// / The value is only meaningful for this run of the process. Don't compare + /// / it to values obtained on another computer, or other runs of the same process. + /// + public static SteamNetworkingMicroseconds GetLocalTimestamp() + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamNetworkingMicroseconds)NativeMethods.ISteamNetworkingUtils_GetLocalTimestamp(CSteamGameServerAPIContext.GetSteamNetworkingUtils()); + } - /// - /// Fake IP - /// Useful for interfacing with code that assumes peers are identified using an IPv4 address - /// / Return true if an IPv4 address is one that might be used as a "fake" one. - /// / This function is fast; it just does some logical tests on the IP and does - /// / not need to do any lookup operations. - /// - public static bool IsFakeIPv4(uint nIPv4) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_IsFakeIPv4(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), nIPv4); - } + /// + /// / Set a function to receive network-related information that is useful for debugging. + /// / This can be very useful during development, but it can also be useful for troubleshooting + /// / problems with tech savvy end users. If you have a console or other log that customers + /// / can examine, these log messages can often be helpful to troubleshoot network issues. + /// / (Especially any warning/error messages.) + /// / + /// / The detail level indicates what message to invoke your callback on. Lower numeric + /// / value means more important, and the value you pass is the lowest priority (highest + /// / numeric value) you wish to receive callbacks for. + /// / + /// / The value here controls the detail level for most messages. You can control the + /// / detail level for various subsystems (perhaps only for certain connections) by + /// / adjusting the configuration values k_ESteamNetworkingConfig_LogLevel_Xxxxx. + /// / + /// / Except when debugging, you should only use k_ESteamNetworkingSocketsDebugOutputType_Msg + /// / or k_ESteamNetworkingSocketsDebugOutputType_Warning. For best performance, do NOT + /// / request a high detail level and then filter out messages in your callback. This incurs + /// / all of the expense of formatting the messages, which are then discarded. Setting a high + /// / priority value (low numeric value) here allows the library to avoid doing this work. + /// / + /// / IMPORTANT: This may be called from a service thread, while we own a mutex, etc. + /// / Your output function must be threadsafe and fast! Do not make any other + /// / Steamworks calls from within the handler. + /// + public static void SetDebugOutputFunction( ESteamNetworkingSocketsDebugOutputType eDetailLevel, FSteamNetworkingSocketsDebugOutput pfnFunc ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamNetworkingUtils_SetDebugOutputFunction(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), eDetailLevel, pfnFunc); + } - public static ESteamNetworkingFakeIPType GetIPv4FakeIPType(uint nIPv4) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_GetIPv4FakeIPType(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), nIPv4); - } + /// + /// Fake IP + /// Useful for interfacing with code that assumes peers are identified using an IPv4 address + /// / Return true if an IPv4 address is one that might be used as a "fake" one. + /// / This function is fast; it just does some logical tests on the IP and does + /// / not need to do any lookup operations. + /// + public static bool IsFakeIPv4( uint nIPv4 ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_IsFakeIPv4(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), nIPv4); + } - /// - /// / Get the real identity associated with a given FakeIP. - /// / - /// / On failure, returns: - /// / - k_EResultInvalidParam: the IP is not a FakeIP. - /// / - k_EResultNoMatch: we don't recognize that FakeIP and don't know the corresponding identity. - /// / - /// / FakeIP's used by active connections, or the FakeIPs assigned to local identities, - /// / will always work. FakeIPs for recently destroyed connections will continue to - /// / return results for a little while, but not forever. At some point, we will forget - /// / FakeIPs to save space. It's reasonably safe to assume that you can read back the - /// / real identity of a connection very soon after it is destroyed. But do not wait - /// / indefinitely. - /// - public static EResult GetRealIdentityForFakeIP(ref SteamNetworkingIPAddr fakeIP, out SteamNetworkingIdentity pOutRealIdentity) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_GetRealIdentityForFakeIP(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref fakeIP, out pOutRealIdentity); - } + public static ESteamNetworkingFakeIPType GetIPv4FakeIPType( uint nIPv4 ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_GetIPv4FakeIPType(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), nIPv4); + } - /// - /// Set and get configuration values, see ESteamNetworkingConfigValue for individual descriptions. - /// Shortcuts for common cases. (Implemented as inline functions below) - /// Set global callbacks. If you do not want to use Steam's callback dispatch mechanism and you - /// want to use the same callback on all (or most) listen sockets and connections, then - /// simply install these callbacks first thing, and you are good to go. - /// See ISteamNetworkingSockets::RunCallbacks - /// / Set a configuration value. - /// / - eValue: which value is being set - /// / - eScope: Onto what type of object are you applying the setting? - /// / - scopeArg: Which object you want to change? (Ignored for global scope). E.g. connection handle, listen socket handle, interface pointer, etc. - /// / - eDataType: What type of data is in the buffer at pValue? This must match the type of the variable exactly! - /// / - pArg: Value to set it to. You can pass NULL to remove a non-global setting at this scope, - /// / causing the value for that object to use global defaults. Or at global scope, passing NULL - /// / will reset any custom value and restore it to the system default. - /// / NOTE: When setting pointers (e.g. callback functions), do not pass the function pointer directly. - /// / Your argument should be a pointer to a function pointer. - /// - public static bool SetConfigValue(ESteamNetworkingConfigValue eValue, ESteamNetworkingConfigScope eScopeType, IntPtr scopeObj, ESteamNetworkingConfigDataType eDataType, IntPtr pArg) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_SetConfigValue(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), eValue, eScopeType, scopeObj, eDataType, pArg); - } + /// + /// / Get the real identity associated with a given FakeIP. + /// / + /// / On failure, returns: + /// / - k_EResultInvalidParam: the IP is not a FakeIP. + /// / - k_EResultNoMatch: we don't recognize that FakeIP and don't know the corresponding identity. + /// / + /// / FakeIP's used by active connections, or the FakeIPs assigned to local identities, + /// / will always work. FakeIPs for recently destroyed connections will continue to + /// / return results for a little while, but not forever. At some point, we will forget + /// / FakeIPs to save space. It's reasonably safe to assume that you can read back the + /// / real identity of a connection very soon after it is destroyed. But do not wait + /// / indefinitely. + /// + public static EResult GetRealIdentityForFakeIP( ref SteamNetworkingIPAddr fakeIP, out SteamNetworkingIdentity pOutRealIdentity ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_GetRealIdentityForFakeIP(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref fakeIP, out pOutRealIdentity); + } - /// - /// / Set a configuration value, using a struct to pass the value. - /// / (This is just a convenience shortcut; see below for the implementation and - /// / a little insight into how SteamNetworkingConfigValue_t is used when - /// / setting config options during listen socket and connection creation.) - /// / Get a configuration value. - /// / - eValue: which value to fetch - /// / - eScopeType: query setting on what type of object - /// / - eScopeArg: the object to query the setting for - /// / - pOutDataType: If non-NULL, the data type of the value is returned. - /// / - pResult: Where to put the result. Pass NULL to query the required buffer size. (k_ESteamNetworkingGetConfigValue_BufferTooSmall will be returned.) - /// / - cbResult: IN: the size of your buffer. OUT: the number of bytes filled in or required. - /// - public static ESteamNetworkingGetConfigValueResult GetConfigValue(ESteamNetworkingConfigValue eValue, ESteamNetworkingConfigScope eScopeType, IntPtr scopeObj, out ESteamNetworkingConfigDataType pOutDataType, IntPtr pResult, ref ulong cbResult) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_GetConfigValue(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), eValue, eScopeType, scopeObj, out pOutDataType, pResult, ref cbResult); - } + /// + /// Set and get configuration values, see ESteamNetworkingConfigValue for individual descriptions. + /// Shortcuts for common cases. (Implemented as inline functions below) + /// Set global callbacks. If you do not want to use Steam's callback dispatch mechanism and you + /// want to use the same callback on all (or most) listen sockets and connections, then + /// simply install these callbacks first thing, and you are good to go. + /// See ISteamNetworkingSockets::RunCallbacks + /// / Set a configuration value. + /// / - eValue: which value is being set + /// / - eScope: Onto what type of object are you applying the setting? + /// / - scopeArg: Which object you want to change? (Ignored for global scope). E.g. connection handle, listen socket handle, interface pointer, etc. + /// / - eDataType: What type of data is in the buffer at pValue? This must match the type of the variable exactly! + /// / - pArg: Value to set it to. You can pass NULL to remove a non-global setting at this scope, + /// / causing the value for that object to use global defaults. Or at global scope, passing NULL + /// / will reset any custom value and restore it to the system default. + /// / NOTE: When setting pointers (e.g. callback functions), do not pass the function pointer directly. + /// / Your argument should be a pointer to a function pointer. + /// + public static bool SetConfigValue( ESteamNetworkingConfigValue eValue, ESteamNetworkingConfigScope eScopeType, IntPtr scopeObj, ESteamNetworkingConfigDataType eDataType, IntPtr pArg ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_SetConfigValue(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), eValue, eScopeType, scopeObj, eDataType, pArg); + } - /// - /// / Get info about a configuration value. Returns the name of the value, - /// / or NULL if the value doesn't exist. Other output parameters can be NULL - /// / if you do not need them. - /// - public static string GetConfigValueInfo(ESteamNetworkingConfigValue eValue, out ESteamNetworkingConfigDataType pOutDataType, out ESteamNetworkingConfigScope pOutScope) { - InteropHelp.TestIfAvailableGameServer(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamNetworkingUtils_GetConfigValueInfo(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), eValue, out pOutDataType, out pOutScope)); - } + /// + /// / Set a configuration value, using a struct to pass the value. + /// / (This is just a convenience shortcut; see below for the implementation and + /// / a little insight into how SteamNetworkingConfigValue_t is used when + /// / setting config options during listen socket and connection creation.) + /// / Get a configuration value. + /// / - eValue: which value to fetch + /// / - eScopeType: query setting on what type of object + /// / - eScopeArg: the object to query the setting for + /// / - pOutDataType: If non-NULL, the data type of the value is returned. + /// / - pResult: Where to put the result. Pass NULL to query the required buffer size. (k_ESteamNetworkingGetConfigValue_BufferTooSmall will be returned.) + /// / - cbResult: IN: the size of your buffer. OUT: the number of bytes filled in or required. + /// + public static ESteamNetworkingGetConfigValueResult GetConfigValue( ESteamNetworkingConfigValue eValue, ESteamNetworkingConfigScope eScopeType, IntPtr scopeObj, out ESteamNetworkingConfigDataType pOutDataType, IntPtr pResult, ref ulong cbResult ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_GetConfigValue(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), eValue, eScopeType, scopeObj, out pOutDataType, pResult, ref cbResult); + } - /// - /// / Iterate the list of all configuration values in the current environment that it might - /// / be possible to display or edit using a generic UI. To get the first iterable value, - /// / pass k_ESteamNetworkingConfig_Invalid. Returns k_ESteamNetworkingConfig_Invalid - /// / to signal end of list. - /// / - /// / The bEnumerateDevVars argument can be used to include "dev" vars. These are vars that - /// / are recommended to only be editable in "debug" or "dev" mode and typically should not be - /// / shown in a retail environment where a malicious local user might use this to cheat. - /// - public static ESteamNetworkingConfigValue IterateGenericEditableConfigValues(ESteamNetworkingConfigValue eCurrent, bool bEnumerateDevVars) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_IterateGenericEditableConfigValues(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), eCurrent, bEnumerateDevVars); - } + /// + /// / Get info about a configuration value. Returns the name of the value, + /// / or NULL if the value doesn't exist. Other output parameters can be NULL + /// / if you do not need them. + /// + public static string GetConfigValueInfo( ESteamNetworkingConfigValue eValue, out ESteamNetworkingConfigDataType pOutDataType, out ESteamNetworkingConfigScope pOutScope ) + { + InteropHelp.TestIfAvailableGameServer(); + return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamNetworkingUtils_GetConfigValueInfo(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), eValue, out pOutDataType, out pOutScope)); + } - /// - /// String conversions. You'll usually access these using the respective - /// inline methods. - /// - public static void SteamNetworkingIPAddr_ToString(ref SteamNetworkingIPAddr addr, out string buf, uint cbBuf, bool bWithPort) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr buf2 = Marshal.AllocHGlobal((int)cbBuf); - NativeMethods.ISteamNetworkingUtils_SteamNetworkingIPAddr_ToString(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref addr, buf2, cbBuf, bWithPort); - buf = InteropHelp.PtrToStringUTF8(buf2); - Marshal.FreeHGlobal(buf2); - } + /// + /// / Iterate the list of all configuration values in the current environment that it might + /// / be possible to display or edit using a generic UI. To get the first iterable value, + /// / pass k_ESteamNetworkingConfig_Invalid. Returns k_ESteamNetworkingConfig_Invalid + /// / to signal end of list. + /// / + /// / The bEnumerateDevVars argument can be used to include "dev" vars. These are vars that + /// / are recommended to only be editable in "debug" or "dev" mode and typically should not be + /// / shown in a retail environment where a malicious local user might use this to cheat. + /// + public static ESteamNetworkingConfigValue IterateGenericEditableConfigValues( ESteamNetworkingConfigValue eCurrent, bool bEnumerateDevVars ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_IterateGenericEditableConfigValues(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), eCurrent, bEnumerateDevVars); + } - public static bool SteamNetworkingIPAddr_ParseString(out SteamNetworkingIPAddr pAddr, string pszStr) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszStr2 = new InteropHelp.UTF8StringHandle(pszStr)) { - return NativeMethods.ISteamNetworkingUtils_SteamNetworkingIPAddr_ParseString(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), out pAddr, pszStr2); - } - } + /// + /// String conversions. You'll usually access these using the respective + /// inline methods. + /// + public static void SteamNetworkingIPAddr_ToString( ref SteamNetworkingIPAddr addr, out string buf, uint cbBuf, bool bWithPort ) + { + InteropHelp.TestIfAvailableGameServer(); + var buf2 = Marshal.AllocHGlobal((int)cbBuf); + NativeMethods.ISteamNetworkingUtils_SteamNetworkingIPAddr_ToString(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref addr, buf2, cbBuf, bWithPort); + buf = InteropHelp.PtrToStringUTF8(buf2); + Marshal.FreeHGlobal(buf2); + } - public static ESteamNetworkingFakeIPType SteamNetworkingIPAddr_GetFakeIPType(ref SteamNetworkingIPAddr addr) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamNetworkingUtils_SteamNetworkingIPAddr_GetFakeIPType(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref addr); - } + public static bool SteamNetworkingIPAddr_ParseString( out SteamNetworkingIPAddr pAddr, string pszStr ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszStr2 = new InteropHelp.UTF8StringHandle(pszStr)) + { + return NativeMethods.ISteamNetworkingUtils_SteamNetworkingIPAddr_ParseString(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), out pAddr, pszStr2); + } + } - public static void SteamNetworkingIdentity_ToString(ref SteamNetworkingIdentity identity, out string buf, uint cbBuf) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr buf2 = Marshal.AllocHGlobal((int)cbBuf); - NativeMethods.ISteamNetworkingUtils_SteamNetworkingIdentity_ToString(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref identity, buf2, cbBuf); - buf = InteropHelp.PtrToStringUTF8(buf2); - Marshal.FreeHGlobal(buf2); - } + public static ESteamNetworkingFakeIPType SteamNetworkingIPAddr_GetFakeIPType( ref SteamNetworkingIPAddr addr ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamNetworkingUtils_SteamNetworkingIPAddr_GetFakeIPType(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref addr); + } - public static bool SteamNetworkingIdentity_ParseString(out SteamNetworkingIdentity pIdentity, string pszStr) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszStr2 = new InteropHelp.UTF8StringHandle(pszStr)) { - return NativeMethods.ISteamNetworkingUtils_SteamNetworkingIdentity_ParseString(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), out pIdentity, pszStr2); - } - } - } + public static void SteamNetworkingIdentity_ToString( ref SteamNetworkingIdentity identity, out string buf, uint cbBuf ) + { + InteropHelp.TestIfAvailableGameServer(); + var buf2 = Marshal.AllocHGlobal((int)cbBuf); + NativeMethods.ISteamNetworkingUtils_SteamNetworkingIdentity_ToString(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), ref identity, buf2, cbBuf); + buf = InteropHelp.PtrToStringUTF8(buf2); + Marshal.FreeHGlobal(buf2); + } + + public static bool SteamNetworkingIdentity_ParseString( out SteamNetworkingIdentity pIdentity, string pszStr ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszStr2 = new InteropHelp.UTF8StringHandle(pszStr)) + { + return NativeMethods.ISteamNetworkingUtils_SteamNetworkingIdentity_ParseString(CSteamGameServerAPIContext.GetSteamNetworkingUtils(), out pIdentity, pszStr2); + } + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverstats.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverstats.cs index e845bbea7..eb0e9563a 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverstats.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverstats.cs @@ -1,97 +1,113 @@ -using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; +namespace SwiftlyS2.Shared.SteamAPI; -namespace SwiftlyS2.Shared.SteamAPI { - public static class SteamGameServerStats { - /// - /// downloads stats for the user - /// returns a GSStatsReceived_t callback when completed - /// if the user has no stats, GSStatsReceived_t.m_eResult will be set to k_EResultFail - /// these stats will only be auto-updated for clients playing on the server. For other - /// users you'll need to call RequestUserStats() again to refresh any data - /// - public static SteamAPICall_t RequestUserStats(CSteamID steamIDUser) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServerStats_RequestUserStats(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser); - } +public static class SteamGameServerStats +{ + /// + /// downloads stats for the user + /// returns a GSStatsReceived_t callback when completed + /// if the user has no stats, GSStatsReceived_t.m_eResult will be set to k_EResultFail + /// these stats will only be auto-updated for clients playing on the server. For other + /// users you'll need to call RequestUserStats() again to refresh any data + /// + public static SteamAPICall_t RequestUserStats( CSteamID steamIDUser ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamGameServerStats_RequestUserStats(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser); + } - /// - /// requests stat information for a user, usable after a successful call to RequestUserStats() - /// - public static bool GetUserStat(CSteamID steamIDUser, string pchName, out int pData) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_GetUserStatInt32(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2, out pData); - } - } + /// + /// requests stat information for a user, usable after a successful call to RequestUserStats() + /// + public static bool GetUserStat( CSteamID steamIDUser, string pchName, out int pData ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) + { + return NativeMethods.ISteamGameServerStats_GetUserStatInt32(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2, out pData); + } + } - public static bool GetUserStat(CSteamID steamIDUser, string pchName, out float pData) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_GetUserStatFloat(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2, out pData); - } - } + public static bool GetUserStat( CSteamID steamIDUser, string pchName, out float pData ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) + { + return NativeMethods.ISteamGameServerStats_GetUserStatFloat(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2, out pData); + } + } - public static bool GetUserAchievement(CSteamID steamIDUser, string pchName, out bool pbAchieved) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_GetUserAchievement(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2, out pbAchieved); - } - } + public static bool GetUserAchievement( CSteamID steamIDUser, string pchName, out bool pbAchieved ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) + { + return NativeMethods.ISteamGameServerStats_GetUserAchievement(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2, out pbAchieved); + } + } - /// - /// Set / update stats and achievements. - /// Note: These updates will work only on stats game servers are allowed to edit and only for - /// game servers that have been declared as officially controlled by the game creators. - /// Set the IP range of your official servers on the Steamworks page - /// - public static bool SetUserStat(CSteamID steamIDUser, string pchName, int nData) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_SetUserStatInt32(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2, nData); - } - } + /// + /// Set / update stats and achievements. + /// Note: These updates will work only on stats game servers are allowed to edit and only for + /// game servers that have been declared as officially controlled by the game creators. + /// Set the IP range of your official servers on the Steamworks page + /// + public static bool SetUserStat( CSteamID steamIDUser, string pchName, int nData ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) + { + return NativeMethods.ISteamGameServerStats_SetUserStatInt32(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2, nData); + } + } - public static bool SetUserStat(CSteamID steamIDUser, string pchName, float fData) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_SetUserStatFloat(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2, fData); - } - } + public static bool SetUserStat( CSteamID steamIDUser, string pchName, float fData ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) + { + return NativeMethods.ISteamGameServerStats_SetUserStatFloat(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2, fData); + } + } - public static bool UpdateUserAvgRateStat(CSteamID steamIDUser, string pchName, float flCountThisSession, double dSessionLength) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_UpdateUserAvgRateStat(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2, flCountThisSession, dSessionLength); - } - } + public static bool UpdateUserAvgRateStat( CSteamID steamIDUser, string pchName, float flCountThisSession, double dSessionLength ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) + { + return NativeMethods.ISteamGameServerStats_UpdateUserAvgRateStat(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2, flCountThisSession, dSessionLength); + } + } - public static bool SetUserAchievement(CSteamID steamIDUser, string pchName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_SetUserAchievement(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2); - } - } + public static bool SetUserAchievement( CSteamID steamIDUser, string pchName ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) + { + return NativeMethods.ISteamGameServerStats_SetUserAchievement(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2); + } + } - public static bool ClearUserAchievement(CSteamID steamIDUser, string pchName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_ClearUserAchievement(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2); - } - } + public static bool ClearUserAchievement( CSteamID steamIDUser, string pchName ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) + { + return NativeMethods.ISteamGameServerStats_ClearUserAchievement(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser, pchName2); + } + } - /// - /// Store the current data on the server, will get a GSStatsStored_t callback when set. - /// If the callback has a result of k_EResultInvalidParam, one or more stats - /// uploaded has been rejected, either because they broke constraints - /// or were out of date. In this case the server sends back updated values. - /// The stats should be re-iterated to keep in sync. - /// - public static SteamAPICall_t StoreUserStats(CSteamID steamIDUser) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServerStats_StoreUserStats(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser); - } - } + /// + /// Store the current data on the server, will get a GSStatsStored_t callback when set. + /// If the callback has a result of k_EResultInvalidParam, one or more stats + /// uploaded has been rejected, either because they broke constraints + /// or were out of date. In this case the server sends back updated values. + /// The stats should be re-iterated to keep in sync. + /// + public static SteamAPICall_t StoreUserStats( CSteamID steamIDUser ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamGameServerStats_StoreUserStats(CSteamGameServerAPIContext.GetSteamGameServerStats(), steamIDUser); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverugc.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverugc.cs index 045f17d4a..87068ed4d 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverugc.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverugc.cs @@ -1,880 +1,878 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +public static class SteamGameServerUGC { - public static class SteamGameServerUGC - { - /// - /// Query UGC associated with a user. Creator app id or consumer app id must be valid and be set to the current running app. unPage should start at 1. - /// - public static UGCQueryHandle_t CreateQueryUserUGCRequest( AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage ) - { - InteropHelp.TestIfAvailableGameServer(); - return (UGCQueryHandle_t)NativeMethods.ISteamUGC_CreateQueryUserUGCRequest(CSteamGameServerAPIContext.GetSteamUGC(), unAccountID, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID, nConsumerAppID, unPage); - } - - /// - /// Query for all matching UGC. Creator app id or consumer app id must be valid and be set to the current running app. unPage should start at 1. - /// - public static UGCQueryHandle_t CreateQueryAllUGCRequest( EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage ) - { - InteropHelp.TestIfAvailableGameServer(); - return (UGCQueryHandle_t)NativeMethods.ISteamUGC_CreateQueryAllUGCRequestPage(CSteamGameServerAPIContext.GetSteamUGC(), eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage); - } - - /// - /// Query for all matching UGC using the new deep paging interface. Creator app id or consumer app id must be valid and be set to the current running app. pchCursor should be set to NULL or "*" to get the first result set. - /// - public static UGCQueryHandle_t CreateQueryAllUGCRequest( EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, string pchCursor = null ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pchCursor2 = new InteropHelp.UTF8StringHandle(pchCursor)) - { - return (UGCQueryHandle_t)NativeMethods.ISteamUGC_CreateQueryAllUGCRequestCursor(CSteamGameServerAPIContext.GetSteamUGC(), eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, pchCursor2); - } - } - - /// - /// Query for the details of the given published file ids (the RequestUGCDetails call is deprecated and replaced with this) - /// - public static UGCQueryHandle_t CreateQueryUGCDetailsRequest( PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs ) - { - InteropHelp.TestIfAvailableGameServer(); - return (UGCQueryHandle_t)NativeMethods.ISteamUGC_CreateQueryUGCDetailsRequest(CSteamGameServerAPIContext.GetSteamUGC(), pvecPublishedFileID, unNumPublishedFileIDs); - } - - /// - /// Send the query to Steam - /// - public static SteamAPICall_t SendQueryUGCRequest( UGCQueryHandle_t handle ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_SendQueryUGCRequest(CSteamGameServerAPIContext.GetSteamUGC(), handle); - } - - /// - /// Retrieve an individual result after receiving the callback for querying UGC - /// - public static bool GetQueryUGCResult( UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetQueryUGCResult(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, out pDetails); - } - - public static uint GetQueryUGCNumTags( UGCQueryHandle_t handle, uint index ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetQueryUGCNumTags(CSteamGameServerAPIContext.GetSteamUGC(), handle, index); - } - - public static bool GetQueryUGCTag( UGCQueryHandle_t handle, uint index, uint indexTag, out string pchValue, uint cchValueSize ) - { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchValue2 = Marshal.AllocHGlobal((int)cchValueSize); - bool ret = NativeMethods.ISteamUGC_GetQueryUGCTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, indexTag, pchValue2, cchValueSize); - pchValue = ret ? InteropHelp.PtrToStringUTF8(pchValue2) : null; - Marshal.FreeHGlobal(pchValue2); - return ret; - } - - public static bool GetQueryUGCTagDisplayName( UGCQueryHandle_t handle, uint index, uint indexTag, out string pchValue, uint cchValueSize ) - { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchValue2 = Marshal.AllocHGlobal((int)cchValueSize); - bool ret = NativeMethods.ISteamUGC_GetQueryUGCTagDisplayName(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, indexTag, pchValue2, cchValueSize); - pchValue = ret ? InteropHelp.PtrToStringUTF8(pchValue2) : null; - Marshal.FreeHGlobal(pchValue2); - return ret; - } - - public static bool GetQueryUGCPreviewURL( UGCQueryHandle_t handle, uint index, out string pchURL, uint cchURLSize ) - { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchURL2 = Marshal.AllocHGlobal((int)cchURLSize); - bool ret = NativeMethods.ISteamUGC_GetQueryUGCPreviewURL(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, pchURL2, cchURLSize); - pchURL = ret ? InteropHelp.PtrToStringUTF8(pchURL2) : null; - Marshal.FreeHGlobal(pchURL2); - return ret; - } - - public static bool GetQueryUGCMetadata( UGCQueryHandle_t handle, uint index, out string pchMetadata, uint cchMetadatasize ) - { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchMetadata2 = Marshal.AllocHGlobal((int)cchMetadatasize); - bool ret = NativeMethods.ISteamUGC_GetQueryUGCMetadata(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, pchMetadata2, cchMetadatasize); - pchMetadata = ret ? InteropHelp.PtrToStringUTF8(pchMetadata2) : null; - Marshal.FreeHGlobal(pchMetadata2); - return ret; - } - - public static bool GetQueryUGCChildren( UGCQueryHandle_t handle, uint index, PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetQueryUGCChildren(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, pvecPublishedFileID, cMaxEntries); - } - - public static bool GetQueryUGCStatistic( UGCQueryHandle_t handle, uint index, EItemStatistic eStatType, out ulong pStatValue ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetQueryUGCStatistic(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, eStatType, out pStatValue); - } - - public static uint GetQueryUGCNumAdditionalPreviews( UGCQueryHandle_t handle, uint index ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetQueryUGCNumAdditionalPreviews(CSteamGameServerAPIContext.GetSteamUGC(), handle, index); - } - - public static bool GetQueryUGCAdditionalPreview( UGCQueryHandle_t handle, uint index, uint previewIndex, out string pchURLOrVideoID, uint cchURLSize, out string pchOriginalFileName, uint cchOriginalFileNameSize, out EItemPreviewType pPreviewType ) - { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchURLOrVideoID2 = Marshal.AllocHGlobal((int)cchURLSize); - IntPtr pchOriginalFileName2 = Marshal.AllocHGlobal((int)cchOriginalFileNameSize); - bool ret = NativeMethods.ISteamUGC_GetQueryUGCAdditionalPreview(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, previewIndex, pchURLOrVideoID2, cchURLSize, pchOriginalFileName2, cchOriginalFileNameSize, out pPreviewType); - pchURLOrVideoID = ret ? InteropHelp.PtrToStringUTF8(pchURLOrVideoID2) : null; - Marshal.FreeHGlobal(pchURLOrVideoID2); - pchOriginalFileName = ret ? InteropHelp.PtrToStringUTF8(pchOriginalFileName2) : null; - Marshal.FreeHGlobal(pchOriginalFileName2); - return ret; - } - - public static uint GetQueryUGCNumKeyValueTags( UGCQueryHandle_t handle, uint index ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetQueryUGCNumKeyValueTags(CSteamGameServerAPIContext.GetSteamUGC(), handle, index); - } - - public static bool GetQueryUGCKeyValueTag( UGCQueryHandle_t handle, uint index, uint keyValueTagIndex, out string pchKey, uint cchKeySize, out string pchValue, uint cchValueSize ) - { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchKey2 = Marshal.AllocHGlobal((int)cchKeySize); - IntPtr pchValue2 = Marshal.AllocHGlobal((int)cchValueSize); - bool ret = NativeMethods.ISteamUGC_GetQueryUGCKeyValueTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, keyValueTagIndex, pchKey2, cchKeySize, pchValue2, cchValueSize); - pchKey = ret ? InteropHelp.PtrToStringUTF8(pchKey2) : null; - Marshal.FreeHGlobal(pchKey2); - pchValue = ret ? InteropHelp.PtrToStringUTF8(pchValue2) : null; - Marshal.FreeHGlobal(pchValue2); - return ret; - } - - /// - /// Return the first value matching the pchKey. Note that a key may map to multiple values. Returns false if there was an error or no matching value was found. - /// - public static bool GetQueryUGCKeyValueTag( UGCQueryHandle_t handle, uint index, string pchKey, out string pchValue, uint cchValueSize ) - { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchValue2 = Marshal.AllocHGlobal((int)cchValueSize); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) - { - bool ret = NativeMethods.ISteamUGC_GetQueryFirstUGCKeyValueTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, pchKey2, pchValue2, cchValueSize); - pchValue = ret ? InteropHelp.PtrToStringUTF8(pchValue2) : null; - Marshal.FreeHGlobal(pchValue2); - return ret; - } - } - - /// - /// Some items can specify that they have a version that is valid for a range of game versions (Steam branch) - /// - public static uint GetNumSupportedGameVersions( UGCQueryHandle_t handle, uint index ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetNumSupportedGameVersions(CSteamGameServerAPIContext.GetSteamUGC(), handle, index); - } - - public static bool GetSupportedGameVersionData( UGCQueryHandle_t handle, uint index, uint versionIndex, out string pchGameBranchMin, out string pchGameBranchMax, uint cchGameBranchSize ) - { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchGameBranchMin2 = Marshal.AllocHGlobal((int)cchGameBranchSize); - IntPtr pchGameBranchMax2 = Marshal.AllocHGlobal((int)cchGameBranchSize); - bool ret = NativeMethods.ISteamUGC_GetSupportedGameVersionData(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, versionIndex, pchGameBranchMin2, pchGameBranchMax2, cchGameBranchSize); - pchGameBranchMin = ret ? InteropHelp.PtrToStringUTF8(pchGameBranchMin2) : null; - Marshal.FreeHGlobal(pchGameBranchMin2); - pchGameBranchMax = ret ? InteropHelp.PtrToStringUTF8(pchGameBranchMax2) : null; - Marshal.FreeHGlobal(pchGameBranchMax2); - return ret; - } - - public static uint GetQueryUGCContentDescriptors( UGCQueryHandle_t handle, uint index, out EUGCContentDescriptorID pvecDescriptors, uint cMaxEntries ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetQueryUGCContentDescriptors(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, out pvecDescriptors, cMaxEntries); - } - - /// - /// Release the request to free up memory, after retrieving results - /// - public static bool ReleaseQueryUGCRequest( UGCQueryHandle_t handle ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_ReleaseQueryUGCRequest(CSteamGameServerAPIContext.GetSteamUGC(), handle); - } - - /// - /// Options to set for querying UGC - /// - public static bool AddRequiredTag( UGCQueryHandle_t handle, string pTagName ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pTagName2 = new InteropHelp.UTF8StringHandle(pTagName)) - { - return NativeMethods.ISteamUGC_AddRequiredTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, pTagName2); - } - } - - /// - /// match any of the tags in this group - /// - public static bool AddRequiredTagGroup( UGCQueryHandle_t handle, System.Collections.Generic.IList pTagGroups ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_AddRequiredTagGroup(CSteamGameServerAPIContext.GetSteamUGC(), handle, new InteropHelp.SteamParamStringArray(pTagGroups)); - } - - public static bool AddExcludedTag( UGCQueryHandle_t handle, string pTagName ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pTagName2 = new InteropHelp.UTF8StringHandle(pTagName)) - { - return NativeMethods.ISteamUGC_AddExcludedTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, pTagName2); - } - } - - public static bool SetReturnOnlyIDs( UGCQueryHandle_t handle, bool bReturnOnlyIDs ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetReturnOnlyIDs(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnOnlyIDs); - } - - public static bool SetReturnKeyValueTags( UGCQueryHandle_t handle, bool bReturnKeyValueTags ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetReturnKeyValueTags(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnKeyValueTags); - } - - public static bool SetReturnLongDescription( UGCQueryHandle_t handle, bool bReturnLongDescription ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetReturnLongDescription(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnLongDescription); - } - - public static bool SetReturnMetadata( UGCQueryHandle_t handle, bool bReturnMetadata ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetReturnMetadata(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnMetadata); - } - - public static bool SetReturnChildren( UGCQueryHandle_t handle, bool bReturnChildren ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetReturnChildren(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnChildren); - } - - public static bool SetReturnAdditionalPreviews( UGCQueryHandle_t handle, bool bReturnAdditionalPreviews ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetReturnAdditionalPreviews(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnAdditionalPreviews); - } - - public static bool SetReturnTotalOnly( UGCQueryHandle_t handle, bool bReturnTotalOnly ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetReturnTotalOnly(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnTotalOnly); - } - - public static bool SetReturnPlaytimeStats( UGCQueryHandle_t handle, uint unDays ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetReturnPlaytimeStats(CSteamGameServerAPIContext.GetSteamUGC(), handle, unDays); - } - - public static bool SetLanguage( UGCQueryHandle_t handle, string pchLanguage ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pchLanguage2 = new InteropHelp.UTF8StringHandle(pchLanguage)) - { - return NativeMethods.ISteamUGC_SetLanguage(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchLanguage2); - } - } - - public static bool SetAllowCachedResponse( UGCQueryHandle_t handle, uint unMaxAgeSeconds ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetAllowCachedResponse(CSteamGameServerAPIContext.GetSteamUGC(), handle, unMaxAgeSeconds); - } - - /// - /// admin queries return hidden items - /// - public static bool SetAdminQuery( UGCUpdateHandle_t handle, bool bAdminQuery ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetAdminQuery(CSteamGameServerAPIContext.GetSteamUGC(), handle, bAdminQuery); - } - - /// - /// Options only for querying user UGC - /// - public static bool SetCloudFileNameFilter( UGCQueryHandle_t handle, string pMatchCloudFileName ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pMatchCloudFileName2 = new InteropHelp.UTF8StringHandle(pMatchCloudFileName)) - { - return NativeMethods.ISteamUGC_SetCloudFileNameFilter(CSteamGameServerAPIContext.GetSteamUGC(), handle, pMatchCloudFileName2); - } - } - - /// - /// Options only for querying all UGC - /// - public static bool SetMatchAnyTag( UGCQueryHandle_t handle, bool bMatchAnyTag ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetMatchAnyTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, bMatchAnyTag); - } - - public static bool SetSearchText( UGCQueryHandle_t handle, string pSearchText ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pSearchText2 = new InteropHelp.UTF8StringHandle(pSearchText)) - { - return NativeMethods.ISteamUGC_SetSearchText(CSteamGameServerAPIContext.GetSteamUGC(), handle, pSearchText2); - } - } - - public static bool SetRankedByTrendDays( UGCQueryHandle_t handle, uint unDays ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetRankedByTrendDays(CSteamGameServerAPIContext.GetSteamUGC(), handle, unDays); - } - - public static bool SetTimeCreatedDateRange( UGCQueryHandle_t handle, uint rtStart, uint rtEnd ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetTimeCreatedDateRange(CSteamGameServerAPIContext.GetSteamUGC(), handle, rtStart, rtEnd); - } - - public static bool SetTimeUpdatedDateRange( UGCQueryHandle_t handle, uint rtStart, uint rtEnd ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetTimeUpdatedDateRange(CSteamGameServerAPIContext.GetSteamUGC(), handle, rtStart, rtEnd); - } - - public static bool AddRequiredKeyValueTag( UGCQueryHandle_t handle, string pKey, string pValue ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pKey2 = new InteropHelp.UTF8StringHandle(pKey)) - using (var pValue2 = new InteropHelp.UTF8StringHandle(pValue)) - { - return NativeMethods.ISteamUGC_AddRequiredKeyValueTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, pKey2, pValue2); - } - } - - /// - /// DEPRECATED - Use CreateQueryUGCDetailsRequest call above instead! - /// - public static SteamAPICall_t RequestUGCDetails( PublishedFileId_t nPublishedFileID, uint unMaxAgeSeconds ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_RequestUGCDetails(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, unMaxAgeSeconds); - } - - /// - /// Steam Workshop Creator API - /// create new item for this app with no content attached yet - /// - public static SteamAPICall_t CreateItem( AppId_t nConsumerAppId, EWorkshopFileType eFileType ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_CreateItem(CSteamGameServerAPIContext.GetSteamUGC(), nConsumerAppId, eFileType); - } - - /// - /// start an UGC item update. Set changed properties before commiting update with CommitItemUpdate() - /// - public static UGCUpdateHandle_t StartItemUpdate( AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID ) - { - InteropHelp.TestIfAvailableGameServer(); - return (UGCUpdateHandle_t)NativeMethods.ISteamUGC_StartItemUpdate(CSteamGameServerAPIContext.GetSteamUGC(), nConsumerAppId, nPublishedFileID); - } - - /// - /// change the title of an UGC item - /// - public static bool SetItemTitle( UGCUpdateHandle_t handle, string pchTitle ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pchTitle2 = new InteropHelp.UTF8StringHandle(pchTitle)) - { - return NativeMethods.ISteamUGC_SetItemTitle(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchTitle2); - } - } - - /// - /// change the description of an UGC item - /// - public static bool SetItemDescription( UGCUpdateHandle_t handle, string pchDescription ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription)) - { - return NativeMethods.ISteamUGC_SetItemDescription(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchDescription2); - } - } - - /// - /// specify the language of the title or description that will be set - /// - public static bool SetItemUpdateLanguage( UGCUpdateHandle_t handle, string pchLanguage ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pchLanguage2 = new InteropHelp.UTF8StringHandle(pchLanguage)) - { - return NativeMethods.ISteamUGC_SetItemUpdateLanguage(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchLanguage2); - } - } - - /// - /// change the metadata of an UGC item (max = k_cchDeveloperMetadataMax) - /// - public static bool SetItemMetadata( UGCUpdateHandle_t handle, string pchMetaData ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pchMetaData2 = new InteropHelp.UTF8StringHandle(pchMetaData)) - { - return NativeMethods.ISteamUGC_SetItemMetadata(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchMetaData2); - } - } - - /// - /// change the visibility of an UGC item - /// - public static bool SetItemVisibility( UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetItemVisibility(CSteamGameServerAPIContext.GetSteamUGC(), handle, eVisibility); - } - - /// - /// change the tags of an UGC item - /// - public static bool SetItemTags( UGCUpdateHandle_t updateHandle, System.Collections.Generic.IList pTags, bool bAllowAdminTags = false ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetItemTags(CSteamGameServerAPIContext.GetSteamUGC(), updateHandle, new InteropHelp.SteamParamStringArray(pTags), bAllowAdminTags); - } - - /// - /// update item content from this local folder - /// - public static bool SetItemContent( UGCUpdateHandle_t handle, string pszContentFolder ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pszContentFolder2 = new InteropHelp.UTF8StringHandle(pszContentFolder)) - { - return NativeMethods.ISteamUGC_SetItemContent(CSteamGameServerAPIContext.GetSteamUGC(), handle, pszContentFolder2); - } - } - - /// - /// change preview image file for this item. pszPreviewFile points to local image file, which must be under 1MB in size - /// - public static bool SetItemPreview( UGCUpdateHandle_t handle, string pszPreviewFile ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pszPreviewFile2 = new InteropHelp.UTF8StringHandle(pszPreviewFile)) - { - return NativeMethods.ISteamUGC_SetItemPreview(CSteamGameServerAPIContext.GetSteamUGC(), handle, pszPreviewFile2); - } - } - - /// - /// use legacy upload for a single small file. The parameter to SetItemContent() should either be a directory with one file or the full path to the file. The file must also be less than 10MB in size. - /// - public static bool SetAllowLegacyUpload( UGCUpdateHandle_t handle, bool bAllowLegacyUpload ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetAllowLegacyUpload(CSteamGameServerAPIContext.GetSteamUGC(), handle, bAllowLegacyUpload); - } - - /// - /// remove all existing key-value tags (you can add new ones via the AddItemKeyValueTag function) - /// - public static bool RemoveAllItemKeyValueTags( UGCUpdateHandle_t handle ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_RemoveAllItemKeyValueTags(CSteamGameServerAPIContext.GetSteamUGC(), handle); - } - - /// - /// remove any existing key-value tags with the specified key - /// - public static bool RemoveItemKeyValueTags( UGCUpdateHandle_t handle, string pchKey ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) - { - return NativeMethods.ISteamUGC_RemoveItemKeyValueTags(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchKey2); - } - } - - /// - /// add new key-value tags for the item. Note that there can be multiple values for a tag. - /// - public static bool AddItemKeyValueTag( UGCUpdateHandle_t handle, string pchKey, string pchValue ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) - using (var pchValue2 = new InteropHelp.UTF8StringHandle(pchValue)) - { - return NativeMethods.ISteamUGC_AddItemKeyValueTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchKey2, pchValue2); - } - } - - /// - /// add preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size - /// - public static bool AddItemPreviewFile( UGCUpdateHandle_t handle, string pszPreviewFile, EItemPreviewType type ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pszPreviewFile2 = new InteropHelp.UTF8StringHandle(pszPreviewFile)) - { - return NativeMethods.ISteamUGC_AddItemPreviewFile(CSteamGameServerAPIContext.GetSteamUGC(), handle, pszPreviewFile2, type); - } - } - - /// - /// add preview video for this item - /// - public static bool AddItemPreviewVideo( UGCUpdateHandle_t handle, string pszVideoID ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pszVideoID2 = new InteropHelp.UTF8StringHandle(pszVideoID)) - { - return NativeMethods.ISteamUGC_AddItemPreviewVideo(CSteamGameServerAPIContext.GetSteamUGC(), handle, pszVideoID2); - } - } - - /// - /// updates an existing preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size - /// - public static bool UpdateItemPreviewFile( UGCUpdateHandle_t handle, uint index, string pszPreviewFile ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pszPreviewFile2 = new InteropHelp.UTF8StringHandle(pszPreviewFile)) - { - return NativeMethods.ISteamUGC_UpdateItemPreviewFile(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, pszPreviewFile2); - } - } - - /// - /// updates an existing preview video for this item - /// - public static bool UpdateItemPreviewVideo( UGCUpdateHandle_t handle, uint index, string pszVideoID ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pszVideoID2 = new InteropHelp.UTF8StringHandle(pszVideoID)) - { - return NativeMethods.ISteamUGC_UpdateItemPreviewVideo(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, pszVideoID2); - } - } - - /// - /// remove a preview by index starting at 0 (previews are sorted) - /// - public static bool RemoveItemPreview( UGCUpdateHandle_t handle, uint index ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_RemoveItemPreview(CSteamGameServerAPIContext.GetSteamUGC(), handle, index); - } - - public static bool AddContentDescriptor( UGCUpdateHandle_t handle, EUGCContentDescriptorID descid ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_AddContentDescriptor(CSteamGameServerAPIContext.GetSteamUGC(), handle, descid); - } - - public static bool RemoveContentDescriptor( UGCUpdateHandle_t handle, EUGCContentDescriptorID descid ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_RemoveContentDescriptor(CSteamGameServerAPIContext.GetSteamUGC(), handle, descid); - } - - /// - /// an empty string for either parameter means that it will match any version on that end of the range. This will only be applied if the actual content has been changed. - /// - public static bool SetRequiredGameVersions( UGCUpdateHandle_t handle, string pszGameBranchMin, string pszGameBranchMax ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pszGameBranchMin2 = new InteropHelp.UTF8StringHandle(pszGameBranchMin)) - using (var pszGameBranchMax2 = new InteropHelp.UTF8StringHandle(pszGameBranchMax)) - { - return NativeMethods.ISteamUGC_SetRequiredGameVersions(CSteamGameServerAPIContext.GetSteamUGC(), handle, pszGameBranchMin2, pszGameBranchMax2); - } - } - - /// - /// commit update process started with StartItemUpdate() - /// - public static SteamAPICall_t SubmitItemUpdate( UGCUpdateHandle_t handle, string pchChangeNote ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pchChangeNote2 = new InteropHelp.UTF8StringHandle(pchChangeNote)) - { - return (SteamAPICall_t)NativeMethods.ISteamUGC_SubmitItemUpdate(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchChangeNote2); - } - } - - public static EItemUpdateStatus GetItemUpdateProgress( UGCUpdateHandle_t handle, out ulong punBytesProcessed, out ulong punBytesTotal ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetItemUpdateProgress(CSteamGameServerAPIContext.GetSteamUGC(), handle, out punBytesProcessed, out punBytesTotal); - } - - /// - /// Steam Workshop Consumer API - /// - public static SteamAPICall_t SetUserItemVote( PublishedFileId_t nPublishedFileID, bool bVoteUp ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_SetUserItemVote(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, bVoteUp); - } - - public static SteamAPICall_t GetUserItemVote( PublishedFileId_t nPublishedFileID ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_GetUserItemVote(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID); - } - - public static SteamAPICall_t AddItemToFavorites( AppId_t nAppId, PublishedFileId_t nPublishedFileID ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_AddItemToFavorites(CSteamGameServerAPIContext.GetSteamUGC(), nAppId, nPublishedFileID); - } - - public static SteamAPICall_t RemoveItemFromFavorites( AppId_t nAppId, PublishedFileId_t nPublishedFileID ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_RemoveItemFromFavorites(CSteamGameServerAPIContext.GetSteamUGC(), nAppId, nPublishedFileID); - } - - /// - /// subscribe to this item, will be installed ASAP - /// - public static SteamAPICall_t SubscribeItem( PublishedFileId_t nPublishedFileID ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_SubscribeItem(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID); - } - - /// - /// unsubscribe from this item, will be uninstalled after game quits - /// - public static SteamAPICall_t UnsubscribeItem( PublishedFileId_t nPublishedFileID ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_UnsubscribeItem(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID); - } - - /// - /// number of subscribed items - /// - public static uint GetNumSubscribedItems( bool bIncludeLocallyDisabled = false ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetNumSubscribedItems(CSteamGameServerAPIContext.GetSteamUGC(), bIncludeLocallyDisabled); - } - - /// - /// all subscribed item PublishFileIDs - /// - public static uint GetSubscribedItems( PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries, bool bIncludeLocallyDisabled = false ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetSubscribedItems(CSteamGameServerAPIContext.GetSteamUGC(), pvecPublishedFileID, cMaxEntries, bIncludeLocallyDisabled); - } - - /// - /// get EItemState flags about item on this client - /// - public static uint GetItemState( PublishedFileId_t nPublishedFileID ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetItemState(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID); - } - - /// - /// get info about currently installed content on disc for items that have k_EItemStateInstalled set - /// if k_EItemStateLegacyItem is set, pchFolder contains the path to the legacy file itself (not a folder) - /// - public static bool GetItemInstallInfo( PublishedFileId_t nPublishedFileID, out ulong punSizeOnDisk, out string pchFolder, uint cchFolderSize, out uint punTimeStamp ) - { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchFolder2 = Marshal.AllocHGlobal((int)cchFolderSize); - bool ret = NativeMethods.ISteamUGC_GetItemInstallInfo(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, out punSizeOnDisk, pchFolder2, cchFolderSize, out punTimeStamp); - pchFolder = ret ? InteropHelp.PtrToStringUTF8(pchFolder2) : null; - Marshal.FreeHGlobal(pchFolder2); - return ret; - } - - /// - /// get info about pending update for items that have k_EItemStateNeedsUpdate set. punBytesTotal will be valid after download started once - /// - public static bool GetItemDownloadInfo( PublishedFileId_t nPublishedFileID, out ulong punBytesDownloaded, out ulong punBytesTotal ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetItemDownloadInfo(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, out punBytesDownloaded, out punBytesTotal); - } - - /// - /// download new or update already installed item. If function returns true, wait for DownloadItemResult_t. If the item is already installed, - /// then files on disk should not be used until callback received. If item is not subscribed to, it will be cached for some time. - /// If bHighPriority is set, any other item download will be suspended and this item downloaded ASAP. - /// - public static bool DownloadItem( PublishedFileId_t nPublishedFileID, bool bHighPriority ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_DownloadItem(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, bHighPriority); - } - - /// - /// game servers can set a specific workshop folder before issuing any UGC commands. - /// This is helpful if you want to support multiple game servers running out of the same install folder - /// - public static bool BInitWorkshopForGameServer( DepotId_t unWorkshopDepotID, string pszFolder ) - { - InteropHelp.TestIfAvailableGameServer(); - using (var pszFolder2 = new InteropHelp.UTF8StringHandle(pszFolder)) - { - return NativeMethods.ISteamUGC_BInitWorkshopForGameServer(CSteamGameServerAPIContext.GetSteamUGC(), unWorkshopDepotID, pszFolder2); - } - } - - /// - /// SuspendDownloads( true ) will suspend all workshop downloads until SuspendDownloads( false ) is called or the game ends - /// - public static void SuspendDownloads( bool bSuspend ) - { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamUGC_SuspendDownloads(CSteamGameServerAPIContext.GetSteamUGC(), bSuspend); - } - - /// - /// usage tracking - /// - public static SteamAPICall_t StartPlaytimeTracking( PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_StartPlaytimeTracking(CSteamGameServerAPIContext.GetSteamUGC(), pvecPublishedFileID, unNumPublishedFileIDs); - } - - public static SteamAPICall_t StopPlaytimeTracking( PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_StopPlaytimeTracking(CSteamGameServerAPIContext.GetSteamUGC(), pvecPublishedFileID, unNumPublishedFileIDs); - } - - public static SteamAPICall_t StopPlaytimeTrackingForAllItems() - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_StopPlaytimeTrackingForAllItems(CSteamGameServerAPIContext.GetSteamUGC()); - } - - /// - /// parent-child relationship or dependency management - /// - public static SteamAPICall_t AddDependency( PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_AddDependency(CSteamGameServerAPIContext.GetSteamUGC(), nParentPublishedFileID, nChildPublishedFileID); - } - - public static SteamAPICall_t RemoveDependency( PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_RemoveDependency(CSteamGameServerAPIContext.GetSteamUGC(), nParentPublishedFileID, nChildPublishedFileID); - } - - /// - /// add/remove app dependence/requirements (usually DLC) - /// - public static SteamAPICall_t AddAppDependency( PublishedFileId_t nPublishedFileID, AppId_t nAppID ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_AddAppDependency(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, nAppID); - } - - public static SteamAPICall_t RemoveAppDependency( PublishedFileId_t nPublishedFileID, AppId_t nAppID ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_RemoveAppDependency(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, nAppID); - } - - /// - /// request app dependencies. note that whatever callback you register for GetAppDependenciesResult_t may be called multiple times - /// until all app dependencies have been returned - /// - public static SteamAPICall_t GetAppDependencies( PublishedFileId_t nPublishedFileID ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_GetAppDependencies(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID); - } - - /// - /// delete the item without prompting the user - /// - public static SteamAPICall_t DeleteItem( PublishedFileId_t nPublishedFileID ) - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_DeleteItem(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID); - } - - /// - /// Show the app's latest Workshop EULA to the user in an overlay window, where they can accept it or not - /// - public static bool ShowWorkshopEULA() - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_ShowWorkshopEULA(CSteamGameServerAPIContext.GetSteamUGC()); - } - - /// - /// Retrieve information related to the user's acceptance or not of the app's specific Workshop EULA - /// - public static SteamAPICall_t GetWorkshopEULAStatus() - { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_GetWorkshopEULAStatus(CSteamGameServerAPIContext.GetSteamUGC()); - } - - /// - /// Return the user's community content descriptor preferences - /// - public static uint GetUserContentDescriptorPreferences( out EUGCContentDescriptorID pvecDescriptors, uint cMaxEntries ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_GetUserContentDescriptorPreferences(CSteamGameServerAPIContext.GetSteamUGC(), out pvecDescriptors, cMaxEntries); - } - - /// - /// Sets whether the item should be disabled locally or not. This means that it will not be returned in GetSubscribedItems() by default. - /// - public static bool SetItemsDisabledLocally( out PublishedFileId_t pvecPublishedFileIDs, uint unNumPublishedFileIDs, bool bDisabledLocally ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetItemsDisabledLocally(CSteamGameServerAPIContext.GetSteamUGC(), out pvecPublishedFileIDs, unNumPublishedFileIDs, bDisabledLocally); - } - - /// - /// Set the local load order for these items. If there are any items not in the given list, they will sort by the time subscribed. - /// - public static bool SetSubscriptionsLoadOrder( out PublishedFileId_t pvecPublishedFileIDs, uint unNumPublishedFileIDs ) - { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUGC_SetSubscriptionsLoadOrder(CSteamGameServerAPIContext.GetSteamUGC(), out pvecPublishedFileIDs, unNumPublishedFileIDs); - } - } + /// + /// Query UGC associated with a user. Creator app id or consumer app id must be valid and be set to the current running app. unPage should start at 1. + /// + public static UGCQueryHandle_t CreateQueryUserUGCRequest( AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage ) + { + InteropHelp.TestIfAvailableGameServer(); + return (UGCQueryHandle_t)NativeMethods.ISteamUGC_CreateQueryUserUGCRequest(CSteamGameServerAPIContext.GetSteamUGC(), unAccountID, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID, nConsumerAppID, unPage); + } + + /// + /// Query for all matching UGC. Creator app id or consumer app id must be valid and be set to the current running app. unPage should start at 1. + /// + public static UGCQueryHandle_t CreateQueryAllUGCRequest( EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage ) + { + InteropHelp.TestIfAvailableGameServer(); + return (UGCQueryHandle_t)NativeMethods.ISteamUGC_CreateQueryAllUGCRequestPage(CSteamGameServerAPIContext.GetSteamUGC(), eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage); + } + + /// + /// Query for all matching UGC using the new deep paging interface. Creator app id or consumer app id must be valid and be set to the current running app. pchCursor should be set to NULL or "*" to get the first result set. + /// + public static UGCQueryHandle_t CreateQueryAllUGCRequest( EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, string pchCursor = null ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchCursor2 = new InteropHelp.UTF8StringHandle(pchCursor)) + { + return (UGCQueryHandle_t)NativeMethods.ISteamUGC_CreateQueryAllUGCRequestCursor(CSteamGameServerAPIContext.GetSteamUGC(), eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, pchCursor2); + } + } + + /// + /// Query for the details of the given published file ids (the RequestUGCDetails call is deprecated and replaced with this) + /// + public static UGCQueryHandle_t CreateQueryUGCDetailsRequest( PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs ) + { + InteropHelp.TestIfAvailableGameServer(); + return (UGCQueryHandle_t)NativeMethods.ISteamUGC_CreateQueryUGCDetailsRequest(CSteamGameServerAPIContext.GetSteamUGC(), pvecPublishedFileID, unNumPublishedFileIDs); + } + + /// + /// Send the query to Steam + /// + public static SteamAPICall_t SendQueryUGCRequest( UGCQueryHandle_t handle ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_SendQueryUGCRequest(CSteamGameServerAPIContext.GetSteamUGC(), handle); + } + + /// + /// Retrieve an individual result after receiving the callback for querying UGC + /// + public static bool GetQueryUGCResult( UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetQueryUGCResult(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, out pDetails); + } + + public static uint GetQueryUGCNumTags( UGCQueryHandle_t handle, uint index ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetQueryUGCNumTags(CSteamGameServerAPIContext.GetSteamUGC(), handle, index); + } + + public static bool GetQueryUGCTag( UGCQueryHandle_t handle, uint index, uint indexTag, out string pchValue, uint cchValueSize ) + { + InteropHelp.TestIfAvailableGameServer(); + var pchValue2 = Marshal.AllocHGlobal((int)cchValueSize); + var ret = NativeMethods.ISteamUGC_GetQueryUGCTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, indexTag, pchValue2, cchValueSize); + pchValue = ret ? InteropHelp.PtrToStringUTF8(pchValue2) : null; + Marshal.FreeHGlobal(pchValue2); + return ret; + } + + public static bool GetQueryUGCTagDisplayName( UGCQueryHandle_t handle, uint index, uint indexTag, out string pchValue, uint cchValueSize ) + { + InteropHelp.TestIfAvailableGameServer(); + var pchValue2 = Marshal.AllocHGlobal((int)cchValueSize); + var ret = NativeMethods.ISteamUGC_GetQueryUGCTagDisplayName(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, indexTag, pchValue2, cchValueSize); + pchValue = ret ? InteropHelp.PtrToStringUTF8(pchValue2) : null; + Marshal.FreeHGlobal(pchValue2); + return ret; + } + + public static bool GetQueryUGCPreviewURL( UGCQueryHandle_t handle, uint index, out string pchURL, uint cchURLSize ) + { + InteropHelp.TestIfAvailableGameServer(); + var pchURL2 = Marshal.AllocHGlobal((int)cchURLSize); + var ret = NativeMethods.ISteamUGC_GetQueryUGCPreviewURL(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, pchURL2, cchURLSize); + pchURL = ret ? InteropHelp.PtrToStringUTF8(pchURL2) : null; + Marshal.FreeHGlobal(pchURL2); + return ret; + } + + public static bool GetQueryUGCMetadata( UGCQueryHandle_t handle, uint index, out string pchMetadata, uint cchMetadatasize ) + { + InteropHelp.TestIfAvailableGameServer(); + var pchMetadata2 = Marshal.AllocHGlobal((int)cchMetadatasize); + var ret = NativeMethods.ISteamUGC_GetQueryUGCMetadata(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, pchMetadata2, cchMetadatasize); + pchMetadata = ret ? InteropHelp.PtrToStringUTF8(pchMetadata2) : null; + Marshal.FreeHGlobal(pchMetadata2); + return ret; + } + + public static bool GetQueryUGCChildren( UGCQueryHandle_t handle, uint index, PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetQueryUGCChildren(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, pvecPublishedFileID, cMaxEntries); + } + + public static bool GetQueryUGCStatistic( UGCQueryHandle_t handle, uint index, EItemStatistic eStatType, out ulong pStatValue ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetQueryUGCStatistic(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, eStatType, out pStatValue); + } + + public static uint GetQueryUGCNumAdditionalPreviews( UGCQueryHandle_t handle, uint index ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetQueryUGCNumAdditionalPreviews(CSteamGameServerAPIContext.GetSteamUGC(), handle, index); + } + + public static bool GetQueryUGCAdditionalPreview( UGCQueryHandle_t handle, uint index, uint previewIndex, out string pchURLOrVideoID, uint cchURLSize, out string pchOriginalFileName, uint cchOriginalFileNameSize, out EItemPreviewType pPreviewType ) + { + InteropHelp.TestIfAvailableGameServer(); + var pchURLOrVideoID2 = Marshal.AllocHGlobal((int)cchURLSize); + var pchOriginalFileName2 = Marshal.AllocHGlobal((int)cchOriginalFileNameSize); + var ret = NativeMethods.ISteamUGC_GetQueryUGCAdditionalPreview(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, previewIndex, pchURLOrVideoID2, cchURLSize, pchOriginalFileName2, cchOriginalFileNameSize, out pPreviewType); + pchURLOrVideoID = ret ? InteropHelp.PtrToStringUTF8(pchURLOrVideoID2) : null; + Marshal.FreeHGlobal(pchURLOrVideoID2); + pchOriginalFileName = ret ? InteropHelp.PtrToStringUTF8(pchOriginalFileName2) : null; + Marshal.FreeHGlobal(pchOriginalFileName2); + return ret; + } + + public static uint GetQueryUGCNumKeyValueTags( UGCQueryHandle_t handle, uint index ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetQueryUGCNumKeyValueTags(CSteamGameServerAPIContext.GetSteamUGC(), handle, index); + } + + public static bool GetQueryUGCKeyValueTag( UGCQueryHandle_t handle, uint index, uint keyValueTagIndex, out string pchKey, uint cchKeySize, out string pchValue, uint cchValueSize ) + { + InteropHelp.TestIfAvailableGameServer(); + var pchKey2 = Marshal.AllocHGlobal((int)cchKeySize); + var pchValue2 = Marshal.AllocHGlobal((int)cchValueSize); + var ret = NativeMethods.ISteamUGC_GetQueryUGCKeyValueTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, keyValueTagIndex, pchKey2, cchKeySize, pchValue2, cchValueSize); + pchKey = ret ? InteropHelp.PtrToStringUTF8(pchKey2) : null; + Marshal.FreeHGlobal(pchKey2); + pchValue = ret ? InteropHelp.PtrToStringUTF8(pchValue2) : null; + Marshal.FreeHGlobal(pchValue2); + return ret; + } + + /// + /// Return the first value matching the pchKey. Note that a key may map to multiple values. Returns false if there was an error or no matching value was found. + /// + public static bool GetQueryUGCKeyValueTag( UGCQueryHandle_t handle, uint index, string pchKey, out string pchValue, uint cchValueSize ) + { + InteropHelp.TestIfAvailableGameServer(); + var pchValue2 = Marshal.AllocHGlobal((int)cchValueSize); + using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) + { + var ret = NativeMethods.ISteamUGC_GetQueryFirstUGCKeyValueTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, pchKey2, pchValue2, cchValueSize); + pchValue = ret ? InteropHelp.PtrToStringUTF8(pchValue2) : null; + Marshal.FreeHGlobal(pchValue2); + return ret; + } + } + + /// + /// Some items can specify that they have a version that is valid for a range of game versions (Steam branch) + /// + public static uint GetNumSupportedGameVersions( UGCQueryHandle_t handle, uint index ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetNumSupportedGameVersions(CSteamGameServerAPIContext.GetSteamUGC(), handle, index); + } + + public static bool GetSupportedGameVersionData( UGCQueryHandle_t handle, uint index, uint versionIndex, out string pchGameBranchMin, out string pchGameBranchMax, uint cchGameBranchSize ) + { + InteropHelp.TestIfAvailableGameServer(); + var pchGameBranchMin2 = Marshal.AllocHGlobal((int)cchGameBranchSize); + var pchGameBranchMax2 = Marshal.AllocHGlobal((int)cchGameBranchSize); + var ret = NativeMethods.ISteamUGC_GetSupportedGameVersionData(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, versionIndex, pchGameBranchMin2, pchGameBranchMax2, cchGameBranchSize); + pchGameBranchMin = ret ? InteropHelp.PtrToStringUTF8(pchGameBranchMin2) : null; + Marshal.FreeHGlobal(pchGameBranchMin2); + pchGameBranchMax = ret ? InteropHelp.PtrToStringUTF8(pchGameBranchMax2) : null; + Marshal.FreeHGlobal(pchGameBranchMax2); + return ret; + } + + public static uint GetQueryUGCContentDescriptors( UGCQueryHandle_t handle, uint index, out EUGCContentDescriptorID pvecDescriptors, uint cMaxEntries ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetQueryUGCContentDescriptors(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, out pvecDescriptors, cMaxEntries); + } + + /// + /// Release the request to free up memory, after retrieving results + /// + public static bool ReleaseQueryUGCRequest( UGCQueryHandle_t handle ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_ReleaseQueryUGCRequest(CSteamGameServerAPIContext.GetSteamUGC(), handle); + } + + /// + /// Options to set for querying UGC + /// + public static bool AddRequiredTag( UGCQueryHandle_t handle, string pTagName ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pTagName2 = new InteropHelp.UTF8StringHandle(pTagName)) + { + return NativeMethods.ISteamUGC_AddRequiredTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, pTagName2); + } + } + + /// + /// match any of the tags in this group + /// + public static bool AddRequiredTagGroup( UGCQueryHandle_t handle, IList pTagGroups ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_AddRequiredTagGroup(CSteamGameServerAPIContext.GetSteamUGC(), handle, new InteropHelp.SteamParamStringArray(pTagGroups)); + } + + public static bool AddExcludedTag( UGCQueryHandle_t handle, string pTagName ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pTagName2 = new InteropHelp.UTF8StringHandle(pTagName)) + { + return NativeMethods.ISteamUGC_AddExcludedTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, pTagName2); + } + } + + public static bool SetReturnOnlyIDs( UGCQueryHandle_t handle, bool bReturnOnlyIDs ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetReturnOnlyIDs(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnOnlyIDs); + } + + public static bool SetReturnKeyValueTags( UGCQueryHandle_t handle, bool bReturnKeyValueTags ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetReturnKeyValueTags(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnKeyValueTags); + } + + public static bool SetReturnLongDescription( UGCQueryHandle_t handle, bool bReturnLongDescription ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetReturnLongDescription(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnLongDescription); + } + + public static bool SetReturnMetadata( UGCQueryHandle_t handle, bool bReturnMetadata ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetReturnMetadata(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnMetadata); + } + + public static bool SetReturnChildren( UGCQueryHandle_t handle, bool bReturnChildren ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetReturnChildren(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnChildren); + } + + public static bool SetReturnAdditionalPreviews( UGCQueryHandle_t handle, bool bReturnAdditionalPreviews ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetReturnAdditionalPreviews(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnAdditionalPreviews); + } + + public static bool SetReturnTotalOnly( UGCQueryHandle_t handle, bool bReturnTotalOnly ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetReturnTotalOnly(CSteamGameServerAPIContext.GetSteamUGC(), handle, bReturnTotalOnly); + } + + public static bool SetReturnPlaytimeStats( UGCQueryHandle_t handle, uint unDays ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetReturnPlaytimeStats(CSteamGameServerAPIContext.GetSteamUGC(), handle, unDays); + } + + public static bool SetLanguage( UGCQueryHandle_t handle, string pchLanguage ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchLanguage2 = new InteropHelp.UTF8StringHandle(pchLanguage)) + { + return NativeMethods.ISteamUGC_SetLanguage(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchLanguage2); + } + } + + public static bool SetAllowCachedResponse( UGCQueryHandle_t handle, uint unMaxAgeSeconds ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetAllowCachedResponse(CSteamGameServerAPIContext.GetSteamUGC(), handle, unMaxAgeSeconds); + } + + /// + /// admin queries return hidden items + /// + public static bool SetAdminQuery( UGCUpdateHandle_t handle, bool bAdminQuery ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetAdminQuery(CSteamGameServerAPIContext.GetSteamUGC(), handle, bAdminQuery); + } + + /// + /// Options only for querying user UGC + /// + public static bool SetCloudFileNameFilter( UGCQueryHandle_t handle, string pMatchCloudFileName ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pMatchCloudFileName2 = new InteropHelp.UTF8StringHandle(pMatchCloudFileName)) + { + return NativeMethods.ISteamUGC_SetCloudFileNameFilter(CSteamGameServerAPIContext.GetSteamUGC(), handle, pMatchCloudFileName2); + } + } + + /// + /// Options only for querying all UGC + /// + public static bool SetMatchAnyTag( UGCQueryHandle_t handle, bool bMatchAnyTag ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetMatchAnyTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, bMatchAnyTag); + } + + public static bool SetSearchText( UGCQueryHandle_t handle, string pSearchText ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pSearchText2 = new InteropHelp.UTF8StringHandle(pSearchText)) + { + return NativeMethods.ISteamUGC_SetSearchText(CSteamGameServerAPIContext.GetSteamUGC(), handle, pSearchText2); + } + } + + public static bool SetRankedByTrendDays( UGCQueryHandle_t handle, uint unDays ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetRankedByTrendDays(CSteamGameServerAPIContext.GetSteamUGC(), handle, unDays); + } + + public static bool SetTimeCreatedDateRange( UGCQueryHandle_t handle, uint rtStart, uint rtEnd ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetTimeCreatedDateRange(CSteamGameServerAPIContext.GetSteamUGC(), handle, rtStart, rtEnd); + } + + public static bool SetTimeUpdatedDateRange( UGCQueryHandle_t handle, uint rtStart, uint rtEnd ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetTimeUpdatedDateRange(CSteamGameServerAPIContext.GetSteamUGC(), handle, rtStart, rtEnd); + } + + public static bool AddRequiredKeyValueTag( UGCQueryHandle_t handle, string pKey, string pValue ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pKey2 = new InteropHelp.UTF8StringHandle(pKey)) + using (var pValue2 = new InteropHelp.UTF8StringHandle(pValue)) + { + return NativeMethods.ISteamUGC_AddRequiredKeyValueTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, pKey2, pValue2); + } + } + + /// + /// DEPRECATED - Use CreateQueryUGCDetailsRequest call above instead! + /// + public static SteamAPICall_t RequestUGCDetails( PublishedFileId_t nPublishedFileID, uint unMaxAgeSeconds ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_RequestUGCDetails(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, unMaxAgeSeconds); + } + + /// + /// Steam Workshop Creator API + /// create new item for this app with no content attached yet + /// + public static SteamAPICall_t CreateItem( AppId_t nConsumerAppId, EWorkshopFileType eFileType ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_CreateItem(CSteamGameServerAPIContext.GetSteamUGC(), nConsumerAppId, eFileType); + } + + /// + /// start an UGC item update. Set changed properties before commiting update with CommitItemUpdate() + /// + public static UGCUpdateHandle_t StartItemUpdate( AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID ) + { + InteropHelp.TestIfAvailableGameServer(); + return (UGCUpdateHandle_t)NativeMethods.ISteamUGC_StartItemUpdate(CSteamGameServerAPIContext.GetSteamUGC(), nConsumerAppId, nPublishedFileID); + } + + /// + /// change the title of an UGC item + /// + public static bool SetItemTitle( UGCUpdateHandle_t handle, string pchTitle ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchTitle2 = new InteropHelp.UTF8StringHandle(pchTitle)) + { + return NativeMethods.ISteamUGC_SetItemTitle(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchTitle2); + } + } + + /// + /// change the description of an UGC item + /// + public static bool SetItemDescription( UGCUpdateHandle_t handle, string pchDescription ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription)) + { + return NativeMethods.ISteamUGC_SetItemDescription(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchDescription2); + } + } + + /// + /// specify the language of the title or description that will be set + /// + public static bool SetItemUpdateLanguage( UGCUpdateHandle_t handle, string pchLanguage ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchLanguage2 = new InteropHelp.UTF8StringHandle(pchLanguage)) + { + return NativeMethods.ISteamUGC_SetItemUpdateLanguage(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchLanguage2); + } + } + + /// + /// change the metadata of an UGC item (max = k_cchDeveloperMetadataMax) + /// + public static bool SetItemMetadata( UGCUpdateHandle_t handle, string pchMetaData ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchMetaData2 = new InteropHelp.UTF8StringHandle(pchMetaData)) + { + return NativeMethods.ISteamUGC_SetItemMetadata(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchMetaData2); + } + } + + /// + /// change the visibility of an UGC item + /// + public static bool SetItemVisibility( UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetItemVisibility(CSteamGameServerAPIContext.GetSteamUGC(), handle, eVisibility); + } + + /// + /// change the tags of an UGC item + /// + public static bool SetItemTags( UGCUpdateHandle_t updateHandle, IList pTags, bool bAllowAdminTags = false ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetItemTags(CSteamGameServerAPIContext.GetSteamUGC(), updateHandle, new InteropHelp.SteamParamStringArray(pTags), bAllowAdminTags); + } + + /// + /// update item content from this local folder + /// + public static bool SetItemContent( UGCUpdateHandle_t handle, string pszContentFolder ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszContentFolder2 = new InteropHelp.UTF8StringHandle(pszContentFolder)) + { + return NativeMethods.ISteamUGC_SetItemContent(CSteamGameServerAPIContext.GetSteamUGC(), handle, pszContentFolder2); + } + } + + /// + /// change preview image file for this item. pszPreviewFile points to local image file, which must be under 1MB in size + /// + public static bool SetItemPreview( UGCUpdateHandle_t handle, string pszPreviewFile ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszPreviewFile2 = new InteropHelp.UTF8StringHandle(pszPreviewFile)) + { + return NativeMethods.ISteamUGC_SetItemPreview(CSteamGameServerAPIContext.GetSteamUGC(), handle, pszPreviewFile2); + } + } + + /// + /// use legacy upload for a single small file. The parameter to SetItemContent() should either be a directory with one file or the full path to the file. The file must also be less than 10MB in size. + /// + public static bool SetAllowLegacyUpload( UGCUpdateHandle_t handle, bool bAllowLegacyUpload ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetAllowLegacyUpload(CSteamGameServerAPIContext.GetSteamUGC(), handle, bAllowLegacyUpload); + } + + /// + /// remove all existing key-value tags (you can add new ones via the AddItemKeyValueTag function) + /// + public static bool RemoveAllItemKeyValueTags( UGCUpdateHandle_t handle ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_RemoveAllItemKeyValueTags(CSteamGameServerAPIContext.GetSteamUGC(), handle); + } + + /// + /// remove any existing key-value tags with the specified key + /// + public static bool RemoveItemKeyValueTags( UGCUpdateHandle_t handle, string pchKey ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) + { + return NativeMethods.ISteamUGC_RemoveItemKeyValueTags(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchKey2); + } + } + + /// + /// add new key-value tags for the item. Note that there can be multiple values for a tag. + /// + public static bool AddItemKeyValueTag( UGCUpdateHandle_t handle, string pchKey, string pchValue ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) + using (var pchValue2 = new InteropHelp.UTF8StringHandle(pchValue)) + { + return NativeMethods.ISteamUGC_AddItemKeyValueTag(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchKey2, pchValue2); + } + } + + /// + /// add preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size + /// + public static bool AddItemPreviewFile( UGCUpdateHandle_t handle, string pszPreviewFile, EItemPreviewType type ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszPreviewFile2 = new InteropHelp.UTF8StringHandle(pszPreviewFile)) + { + return NativeMethods.ISteamUGC_AddItemPreviewFile(CSteamGameServerAPIContext.GetSteamUGC(), handle, pszPreviewFile2, type); + } + } + + /// + /// add preview video for this item + /// + public static bool AddItemPreviewVideo( UGCUpdateHandle_t handle, string pszVideoID ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszVideoID2 = new InteropHelp.UTF8StringHandle(pszVideoID)) + { + return NativeMethods.ISteamUGC_AddItemPreviewVideo(CSteamGameServerAPIContext.GetSteamUGC(), handle, pszVideoID2); + } + } + + /// + /// updates an existing preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size + /// + public static bool UpdateItemPreviewFile( UGCUpdateHandle_t handle, uint index, string pszPreviewFile ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszPreviewFile2 = new InteropHelp.UTF8StringHandle(pszPreviewFile)) + { + return NativeMethods.ISteamUGC_UpdateItemPreviewFile(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, pszPreviewFile2); + } + } + + /// + /// updates an existing preview video for this item + /// + public static bool UpdateItemPreviewVideo( UGCUpdateHandle_t handle, uint index, string pszVideoID ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszVideoID2 = new InteropHelp.UTF8StringHandle(pszVideoID)) + { + return NativeMethods.ISteamUGC_UpdateItemPreviewVideo(CSteamGameServerAPIContext.GetSteamUGC(), handle, index, pszVideoID2); + } + } + + /// + /// remove a preview by index starting at 0 (previews are sorted) + /// + public static bool RemoveItemPreview( UGCUpdateHandle_t handle, uint index ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_RemoveItemPreview(CSteamGameServerAPIContext.GetSteamUGC(), handle, index); + } + + public static bool AddContentDescriptor( UGCUpdateHandle_t handle, EUGCContentDescriptorID descid ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_AddContentDescriptor(CSteamGameServerAPIContext.GetSteamUGC(), handle, descid); + } + + public static bool RemoveContentDescriptor( UGCUpdateHandle_t handle, EUGCContentDescriptorID descid ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_RemoveContentDescriptor(CSteamGameServerAPIContext.GetSteamUGC(), handle, descid); + } + + /// + /// an empty string for either parameter means that it will match any version on that end of the range. This will only be applied if the actual content has been changed. + /// + public static bool SetRequiredGameVersions( UGCUpdateHandle_t handle, string pszGameBranchMin, string pszGameBranchMax ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszGameBranchMin2 = new InteropHelp.UTF8StringHandle(pszGameBranchMin)) + using (var pszGameBranchMax2 = new InteropHelp.UTF8StringHandle(pszGameBranchMax)) + { + return NativeMethods.ISteamUGC_SetRequiredGameVersions(CSteamGameServerAPIContext.GetSteamUGC(), handle, pszGameBranchMin2, pszGameBranchMax2); + } + } + + /// + /// commit update process started with StartItemUpdate() + /// + public static SteamAPICall_t SubmitItemUpdate( UGCUpdateHandle_t handle, string pchChangeNote ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchChangeNote2 = new InteropHelp.UTF8StringHandle(pchChangeNote)) + { + return (SteamAPICall_t)NativeMethods.ISteamUGC_SubmitItemUpdate(CSteamGameServerAPIContext.GetSteamUGC(), handle, pchChangeNote2); + } + } + + public static EItemUpdateStatus GetItemUpdateProgress( UGCUpdateHandle_t handle, out ulong punBytesProcessed, out ulong punBytesTotal ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetItemUpdateProgress(CSteamGameServerAPIContext.GetSteamUGC(), handle, out punBytesProcessed, out punBytesTotal); + } + + /// + /// Steam Workshop Consumer API + /// + public static SteamAPICall_t SetUserItemVote( PublishedFileId_t nPublishedFileID, bool bVoteUp ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_SetUserItemVote(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, bVoteUp); + } + + public static SteamAPICall_t GetUserItemVote( PublishedFileId_t nPublishedFileID ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_GetUserItemVote(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID); + } + + public static SteamAPICall_t AddItemToFavorites( AppId_t nAppId, PublishedFileId_t nPublishedFileID ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_AddItemToFavorites(CSteamGameServerAPIContext.GetSteamUGC(), nAppId, nPublishedFileID); + } + + public static SteamAPICall_t RemoveItemFromFavorites( AppId_t nAppId, PublishedFileId_t nPublishedFileID ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_RemoveItemFromFavorites(CSteamGameServerAPIContext.GetSteamUGC(), nAppId, nPublishedFileID); + } + + /// + /// subscribe to this item, will be installed ASAP + /// + public static SteamAPICall_t SubscribeItem( PublishedFileId_t nPublishedFileID ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_SubscribeItem(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID); + } + + /// + /// unsubscribe from this item, will be uninstalled after game quits + /// + public static SteamAPICall_t UnsubscribeItem( PublishedFileId_t nPublishedFileID ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_UnsubscribeItem(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID); + } + + /// + /// number of subscribed items + /// + public static uint GetNumSubscribedItems( bool bIncludeLocallyDisabled = false ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetNumSubscribedItems(CSteamGameServerAPIContext.GetSteamUGC(), bIncludeLocallyDisabled); + } + + /// + /// all subscribed item PublishFileIDs + /// + public static uint GetSubscribedItems( PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries, bool bIncludeLocallyDisabled = false ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetSubscribedItems(CSteamGameServerAPIContext.GetSteamUGC(), pvecPublishedFileID, cMaxEntries, bIncludeLocallyDisabled); + } + + /// + /// get EItemState flags about item on this client + /// + public static uint GetItemState( PublishedFileId_t nPublishedFileID ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetItemState(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID); + } + + /// + /// get info about currently installed content on disc for items that have k_EItemStateInstalled set + /// if k_EItemStateLegacyItem is set, pchFolder contains the path to the legacy file itself (not a folder) + /// + public static bool GetItemInstallInfo( PublishedFileId_t nPublishedFileID, out ulong punSizeOnDisk, out string pchFolder, uint cchFolderSize, out uint punTimeStamp ) + { + InteropHelp.TestIfAvailableGameServer(); + var pchFolder2 = Marshal.AllocHGlobal((int)cchFolderSize); + var ret = NativeMethods.ISteamUGC_GetItemInstallInfo(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, out punSizeOnDisk, pchFolder2, cchFolderSize, out punTimeStamp); + pchFolder = ret ? InteropHelp.PtrToStringUTF8(pchFolder2) : null; + Marshal.FreeHGlobal(pchFolder2); + return ret; + } + + /// + /// get info about pending update for items that have k_EItemStateNeedsUpdate set. punBytesTotal will be valid after download started once + /// + public static bool GetItemDownloadInfo( PublishedFileId_t nPublishedFileID, out ulong punBytesDownloaded, out ulong punBytesTotal ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetItemDownloadInfo(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, out punBytesDownloaded, out punBytesTotal); + } + + /// + /// download new or update already installed item. If function returns true, wait for DownloadItemResult_t. If the item is already installed, + /// then files on disk should not be used until callback received. If item is not subscribed to, it will be cached for some time. + /// If bHighPriority is set, any other item download will be suspended and this item downloaded ASAP. + /// + public static bool DownloadItem( PublishedFileId_t nPublishedFileID, bool bHighPriority ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_DownloadItem(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, bHighPriority); + } + + /// + /// game servers can set a specific workshop folder before issuing any UGC commands. + /// This is helpful if you want to support multiple game servers running out of the same install folder + /// + public static bool BInitWorkshopForGameServer( DepotId_t unWorkshopDepotID, string pszFolder ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pszFolder2 = new InteropHelp.UTF8StringHandle(pszFolder)) + { + return NativeMethods.ISteamUGC_BInitWorkshopForGameServer(CSteamGameServerAPIContext.GetSteamUGC(), unWorkshopDepotID, pszFolder2); + } + } + + /// + /// SuspendDownloads( true ) will suspend all workshop downloads until SuspendDownloads( false ) is called or the game ends + /// + public static void SuspendDownloads( bool bSuspend ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamUGC_SuspendDownloads(CSteamGameServerAPIContext.GetSteamUGC(), bSuspend); + } + + /// + /// usage tracking + /// + public static SteamAPICall_t StartPlaytimeTracking( PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_StartPlaytimeTracking(CSteamGameServerAPIContext.GetSteamUGC(), pvecPublishedFileID, unNumPublishedFileIDs); + } + + public static SteamAPICall_t StopPlaytimeTracking( PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_StopPlaytimeTracking(CSteamGameServerAPIContext.GetSteamUGC(), pvecPublishedFileID, unNumPublishedFileIDs); + } + + public static SteamAPICall_t StopPlaytimeTrackingForAllItems() + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_StopPlaytimeTrackingForAllItems(CSteamGameServerAPIContext.GetSteamUGC()); + } + + /// + /// parent-child relationship or dependency management + /// + public static SteamAPICall_t AddDependency( PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_AddDependency(CSteamGameServerAPIContext.GetSteamUGC(), nParentPublishedFileID, nChildPublishedFileID); + } + + public static SteamAPICall_t RemoveDependency( PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_RemoveDependency(CSteamGameServerAPIContext.GetSteamUGC(), nParentPublishedFileID, nChildPublishedFileID); + } + + /// + /// add/remove app dependence/requirements (usually DLC) + /// + public static SteamAPICall_t AddAppDependency( PublishedFileId_t nPublishedFileID, AppId_t nAppID ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_AddAppDependency(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, nAppID); + } + + public static SteamAPICall_t RemoveAppDependency( PublishedFileId_t nPublishedFileID, AppId_t nAppID ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_RemoveAppDependency(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID, nAppID); + } + + /// + /// request app dependencies. note that whatever callback you register for GetAppDependenciesResult_t may be called multiple times + /// until all app dependencies have been returned + /// + public static SteamAPICall_t GetAppDependencies( PublishedFileId_t nPublishedFileID ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_GetAppDependencies(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID); + } + + /// + /// delete the item without prompting the user + /// + public static SteamAPICall_t DeleteItem( PublishedFileId_t nPublishedFileID ) + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_DeleteItem(CSteamGameServerAPIContext.GetSteamUGC(), nPublishedFileID); + } + + /// + /// Show the app's latest Workshop EULA to the user in an overlay window, where they can accept it or not + /// + public static bool ShowWorkshopEULA() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_ShowWorkshopEULA(CSteamGameServerAPIContext.GetSteamUGC()); + } + + /// + /// Retrieve information related to the user's acceptance or not of the app's specific Workshop EULA + /// + public static SteamAPICall_t GetWorkshopEULAStatus() + { + InteropHelp.TestIfAvailableGameServer(); + return (SteamAPICall_t)NativeMethods.ISteamUGC_GetWorkshopEULAStatus(CSteamGameServerAPIContext.GetSteamUGC()); + } + + /// + /// Return the user's community content descriptor preferences + /// + public static uint GetUserContentDescriptorPreferences( out EUGCContentDescriptorID pvecDescriptors, uint cMaxEntries ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_GetUserContentDescriptorPreferences(CSteamGameServerAPIContext.GetSteamUGC(), out pvecDescriptors, cMaxEntries); + } + + /// + /// Sets whether the item should be disabled locally or not. This means that it will not be returned in GetSubscribedItems() by default. + /// + public static bool SetItemsDisabledLocally( out PublishedFileId_t pvecPublishedFileIDs, uint unNumPublishedFileIDs, bool bDisabledLocally ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetItemsDisabledLocally(CSteamGameServerAPIContext.GetSteamUGC(), out pvecPublishedFileIDs, unNumPublishedFileIDs, bDisabledLocally); + } + + /// + /// Set the local load order for these items. If there are any items not in the given list, they will sort by the time subscribed. + /// + public static bool SetSubscriptionsLoadOrder( out PublishedFileId_t pvecPublishedFileIDs, uint unNumPublishedFileIDs ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUGC_SetSubscriptionsLoadOrder(CSteamGameServerAPIContext.GetSteamUGC(), out pvecPublishedFileIDs, unNumPublishedFileIDs); + } } diff --git a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverutils.cs b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverutils.cs index 79f2f32f1..127c9c0c6 100644 --- a/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverutils.cs +++ b/managed/src/SwiftlyS2.Generated/SteamAPI/isteamgameserverutils.cs @@ -1,351 +1,392 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - -namespace SwiftlyS2.Shared.SteamAPI { - public static class SteamGameServerUtils { - /// - /// return the number of seconds since the user - /// - public static uint GetSecondsSinceAppActive() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_GetSecondsSinceAppActive(CSteamGameServerAPIContext.GetSteamUtils()); - } - - public static uint GetSecondsSinceComputerActive() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_GetSecondsSinceComputerActive(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// the universe this client is connecting to - /// - public static EUniverse GetConnectedUniverse() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_GetConnectedUniverse(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// Steam server time. Number of seconds since January 1, 1970, GMT (i.e unix time) - /// - public static uint GetServerRealTime() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_GetServerRealTime(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// returns the 2 digit ISO 3166-1-alpha-2 format country code this client is running in (as looked up via an IP-to-location database) - /// e.g "US" or "UK". - /// - public static string GetIPCountry() { - InteropHelp.TestIfAvailableGameServer(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamUtils_GetIPCountry(CSteamGameServerAPIContext.GetSteamUtils())); - } - - /// - /// returns true if the image exists, and valid sizes were filled out - /// - public static bool GetImageSize(int iImage, out uint pnWidth, out uint pnHeight) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_GetImageSize(CSteamGameServerAPIContext.GetSteamUtils(), iImage, out pnWidth, out pnHeight); - } - - /// - /// returns true if the image exists, and the buffer was successfully filled out - /// results are returned in RGBA format - /// the destination buffer size should be 4 * height * width * sizeof(char) - /// - public static bool GetImageRGBA(int iImage, byte[] pubDest, int nDestBufferSize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_GetImageRGBA(CSteamGameServerAPIContext.GetSteamUtils(), iImage, pubDest, nDestBufferSize); - } - - /// - /// return the amount of battery power left in the current system in % [0..100], 255 for being on AC power - /// - public static byte GetCurrentBatteryPower() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_GetCurrentBatteryPower(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// returns the appID of the current process - /// - public static AppId_t GetAppID() { - InteropHelp.TestIfAvailableGameServer(); - return (AppId_t)NativeMethods.ISteamUtils_GetAppID(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// Sets the position where the overlay instance for the currently calling game should show notifications. - /// This position is per-game and if this function is called from outside of a game context it will do nothing. - /// - public static void SetOverlayNotificationPosition(ENotificationPosition eNotificationPosition) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamUtils_SetOverlayNotificationPosition(CSteamGameServerAPIContext.GetSteamUtils(), eNotificationPosition); - } - - /// - /// API asynchronous call results - /// can be used directly, but more commonly used via the callback dispatch API (see steam_api.h) - /// - public static bool IsAPICallCompleted(SteamAPICall_t hSteamAPICall, out bool pbFailed) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_IsAPICallCompleted(CSteamGameServerAPIContext.GetSteamUtils(), hSteamAPICall, out pbFailed); - } - - public static ESteamAPICallFailure GetAPICallFailureReason(SteamAPICall_t hSteamAPICall) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_GetAPICallFailureReason(CSteamGameServerAPIContext.GetSteamUtils(), hSteamAPICall); - } - - public static bool GetAPICallResult(SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, out bool pbFailed) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_GetAPICallResult(CSteamGameServerAPIContext.GetSteamUtils(), hSteamAPICall, pCallback, cubCallback, iCallbackExpected, out pbFailed); - } - - /// - /// returns the number of IPC calls made since the last time this function was called - /// Used for perf debugging so you can understand how many IPC calls your game makes per frame - /// Every IPC call is at minimum a thread context switch if not a process one so you want to rate - /// control how often you do them. - /// - public static uint GetIPCCallCount() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_GetIPCCallCount(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// API warning handling - /// 'int' is the severity; 0 for msg, 1 for warning - /// 'const char *' is the text of the message - /// callbacks will occur directly after the API function is called that generated the warning or message - /// - public static void SetWarningMessageHook(SteamAPIWarningMessageHook_t pFunction) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamUtils_SetWarningMessageHook(CSteamGameServerAPIContext.GetSteamUtils(), pFunction); - } - - /// - /// Returns true if the overlay is running & the user can access it. The overlay process could take a few seconds to - /// start & hook the game process, so this function will initially return false while the overlay is loading. - /// - public static bool IsOverlayEnabled() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_IsOverlayEnabled(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// Normally this call is unneeded if your game has a constantly running frame loop that calls the - /// D3D Present API, or OGL SwapBuffers API every frame. - /// However, if you have a game that only refreshes the screen on an event driven basis then that can break - /// the overlay, as it uses your Present/SwapBuffers calls to drive it's internal frame loop and it may also - /// need to Present() to the screen any time an even needing a notification happens or when the overlay is - /// brought up over the game by a user. You can use this API to ask the overlay if it currently need a present - /// in that case, and then you can check for this periodically (roughly 33hz is desirable) and make sure you - /// refresh the screen with Present or SwapBuffers to allow the overlay to do it's work. - /// - public static bool BOverlayNeedsPresent() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_BOverlayNeedsPresent(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// Asynchronous call to check if an executable file has been signed using the public key set on the signing tab - /// of the partner site, for example to refuse to load modified executable files. - /// The result is returned in CheckFileSignature_t. - /// k_ECheckFileSignatureNoSignaturesFoundForThisApp - This app has not been configured on the signing tab of the partner site to enable this function. - /// k_ECheckFileSignatureNoSignaturesFoundForThisFile - This file is not listed on the signing tab for the partner site. - /// k_ECheckFileSignatureFileNotFound - The file does not exist on disk. - /// k_ECheckFileSignatureInvalidSignature - The file exists, and the signing tab has been set for this file, but the file is either not signed or the signature does not match. - /// k_ECheckFileSignatureValidSignature - The file is signed and the signature is valid. - /// - public static SteamAPICall_t CheckFileSignature(string szFileName) { - InteropHelp.TestIfAvailableGameServer(); - using (var szFileName2 = new InteropHelp.UTF8StringHandle(szFileName)) { - return (SteamAPICall_t)NativeMethods.ISteamUtils_CheckFileSignature(CSteamGameServerAPIContext.GetSteamUtils(), szFileName2); - } - } - - /// - /// Activates the full-screen text input dialog which takes a initial text string and returns the text the user has typed - /// - public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription)) - using (var pchExistingText2 = new InteropHelp.UTF8StringHandle(pchExistingText)) { - return NativeMethods.ISteamUtils_ShowGamepadTextInput(CSteamGameServerAPIContext.GetSteamUtils(), eInputMode, eLineInputMode, pchDescription2, unCharMax, pchExistingText2); - } - } - - /// - /// Returns previously entered text & length - /// - public static uint GetEnteredGamepadTextLength() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_GetEnteredGamepadTextLength(CSteamGameServerAPIContext.GetSteamUtils()); - } - - public static bool GetEnteredGamepadTextInput(out string pchText, uint cchText) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchText2 = Marshal.AllocHGlobal((int)cchText); - bool ret = NativeMethods.ISteamUtils_GetEnteredGamepadTextInput(CSteamGameServerAPIContext.GetSteamUtils(), pchText2, cchText); - pchText = ret ? InteropHelp.PtrToStringUTF8(pchText2) : null; - Marshal.FreeHGlobal(pchText2); - return ret; - } - - /// - /// returns the language the steam client is running in, you probably want ISteamApps::GetCurrentGameLanguage instead, this is for very special usage cases - /// - public static string GetSteamUILanguage() { - InteropHelp.TestIfAvailableGameServer(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamUtils_GetSteamUILanguage(CSteamGameServerAPIContext.GetSteamUtils())); - } - - /// - /// returns true if Steam itself is running in VR mode - /// - public static bool IsSteamRunningInVR() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_IsSteamRunningInVR(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// Sets the inset of the overlay notification from the corner specified by SetOverlayNotificationPosition. - /// - public static void SetOverlayNotificationInset(int nHorizontalInset, int nVerticalInset) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamUtils_SetOverlayNotificationInset(CSteamGameServerAPIContext.GetSteamUtils(), nHorizontalInset, nVerticalInset); - } - - /// - /// returns true if Steam & the Steam Overlay are running in Big Picture mode - /// Games much be launched through the Steam client to enable the Big Picture overlay. During development, - /// a game can be added as a non-steam game to the developers library to test this feature - /// - public static bool IsSteamInBigPictureMode() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_IsSteamInBigPictureMode(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// ask SteamUI to create and render its OpenVR dashboard - /// - public static void StartVRDashboard() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamUtils_StartVRDashboard(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// Returns true if the HMD content will be streamed via Steam Remote Play - /// - public static bool IsVRHeadsetStreamingEnabled() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_IsVRHeadsetStreamingEnabled(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// Set whether the HMD content will be streamed via Steam Remote Play - /// If this is set to true, then the scene in the HMD headset will be streamed, and remote input will not be allowed. - /// If this is set to false, then the application window will be streamed instead, and remote input will be allowed. - /// The default is true unless "VRHeadsetStreaming" "0" is in the extended appinfo for a game. - /// (this is useful for games that have asymmetric multiplayer gameplay) - /// - public static void SetVRHeadsetStreamingEnabled(bool bEnabled) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamUtils_SetVRHeadsetStreamingEnabled(CSteamGameServerAPIContext.GetSteamUtils(), bEnabled); - } - - /// - /// Returns whether this steam client is a Steam China specific client, vs the global client. - /// - public static bool IsSteamChinaLauncher() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_IsSteamChinaLauncher(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// Initializes text filtering, loading dictionaries for the language the game is running in. - /// unFilterOptions are reserved for future use and should be set to 0 - /// Returns false if filtering is unavailable for the game's language, in which case FilterText() will act as a passthrough. - /// Users can customize the text filter behavior in their Steam Account preferences: - /// https://store.steampowered.com/account/preferences#CommunityContentPreferences - /// - public static bool InitFilterText(uint unFilterOptions = 0) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_InitFilterText(CSteamGameServerAPIContext.GetSteamUtils(), unFilterOptions); - } - - /// - /// Filters the provided input message and places the filtered result into pchOutFilteredText, using legally required filtering and additional filtering based on the context and user settings - /// eContext is the type of content in the input string - /// sourceSteamID is the Steam ID that is the source of the input string (e.g. the player with the name, or who said the chat text) - /// pchInputText is the input string that should be filtered, which can be ASCII or UTF-8 - /// pchOutFilteredText is where the output will be placed, even if no filtering is performed - /// nByteSizeOutFilteredText is the size (in bytes) of pchOutFilteredText, should be at least strlen(pchInputText)+1 - /// Returns the number of characters (not bytes) filtered - /// - public static int FilterText(ETextFilteringContext eContext, CSteamID sourceSteamID, string pchInputMessage, out string pchOutFilteredText, uint nByteSizeOutFilteredText) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchOutFilteredText2 = Marshal.AllocHGlobal((int)nByteSizeOutFilteredText); - using (var pchInputMessage2 = new InteropHelp.UTF8StringHandle(pchInputMessage)) { - int ret = NativeMethods.ISteamUtils_FilterText(CSteamGameServerAPIContext.GetSteamUtils(), eContext, sourceSteamID, pchInputMessage2, pchOutFilteredText2, nByteSizeOutFilteredText); - pchOutFilteredText = ret != -1 ? InteropHelp.PtrToStringUTF8(pchOutFilteredText2) : null; - Marshal.FreeHGlobal(pchOutFilteredText2); - return ret; - } - } - - /// - /// Return what we believe your current ipv6 connectivity to "the internet" is on the specified protocol. - /// This does NOT tell you if the Steam client is currently connected to Steam via ipv6. - /// - public static ESteamIPv6ConnectivityState GetIPv6ConnectivityState(ESteamIPv6ConnectivityProtocol eProtocol) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_GetIPv6ConnectivityState(CSteamGameServerAPIContext.GetSteamUtils(), eProtocol); - } - - /// - /// returns true if currently running on the Steam Deck device - /// - public static bool IsSteamRunningOnSteamDeck() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_IsSteamRunningOnSteamDeck(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// Opens a floating keyboard over the game content and sends OS keyboard keys directly to the game. - /// The text field position is specified in pixels relative the origin of the game window and is used to position the floating keyboard in a way that doesn't cover the text field - /// - public static bool ShowFloatingGamepadTextInput(EFloatingGamepadTextInputMode eKeyboardMode, int nTextFieldXPosition, int nTextFieldYPosition, int nTextFieldWidth, int nTextFieldHeight) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_ShowFloatingGamepadTextInput(CSteamGameServerAPIContext.GetSteamUtils(), eKeyboardMode, nTextFieldXPosition, nTextFieldYPosition, nTextFieldWidth, nTextFieldHeight); - } - - /// - /// In game launchers that don't have controller support you can call this to have Steam Input translate the controller input into mouse/kb to navigate the launcher - /// - public static void SetGameLauncherMode(bool bLauncherMode) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamUtils_SetGameLauncherMode(CSteamGameServerAPIContext.GetSteamUtils(), bLauncherMode); - } - - /// - /// Dismisses the floating keyboard. - /// - public static bool DismissFloatingGamepadTextInput() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_DismissFloatingGamepadTextInput(CSteamGameServerAPIContext.GetSteamUtils()); - } - - /// - /// Dismisses the full-screen text input dialog. - /// - public static bool DismissGamepadTextInput() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamUtils_DismissGamepadTextInput(CSteamGameServerAPIContext.GetSteamUtils()); - } - } +using IntPtr = nint; + +namespace SwiftlyS2.Shared.SteamAPI; + +public static class SteamGameServerUtils +{ + /// + /// return the number of seconds since the user + /// + public static uint GetSecondsSinceAppActive() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_GetSecondsSinceAppActive(CSteamGameServerAPIContext.GetSteamUtils()); + } + + public static uint GetSecondsSinceComputerActive() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_GetSecondsSinceComputerActive(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// the universe this client is connecting to + /// + public static EUniverse GetConnectedUniverse() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_GetConnectedUniverse(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// Steam server time. Number of seconds since January 1, 1970, GMT (i.e unix time) + /// + public static uint GetServerRealTime() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_GetServerRealTime(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// returns the 2 digit ISO 3166-1-alpha-2 format country code this client is running in (as looked up via an IP-to-location database) + /// e.g "US" or "UK". + /// + public static string GetIPCountry() + { + InteropHelp.TestIfAvailableGameServer(); + return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamUtils_GetIPCountry(CSteamGameServerAPIContext.GetSteamUtils())); + } + + /// + /// returns true if the image exists, and valid sizes were filled out + /// + public static bool GetImageSize( int iImage, out uint pnWidth, out uint pnHeight ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_GetImageSize(CSteamGameServerAPIContext.GetSteamUtils(), iImage, out pnWidth, out pnHeight); + } + + /// + /// returns true if the image exists, and the buffer was successfully filled out + /// results are returned in RGBA format + /// the destination buffer size should be 4 * height * width * sizeof(char) + /// + public static bool GetImageRGBA( int iImage, byte[] pubDest, int nDestBufferSize ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_GetImageRGBA(CSteamGameServerAPIContext.GetSteamUtils(), iImage, pubDest, nDestBufferSize); + } + + /// + /// return the amount of battery power left in the current system in % [0..100], 255 for being on AC power + /// + public static byte GetCurrentBatteryPower() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_GetCurrentBatteryPower(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// returns the appID of the current process + /// + public static AppId_t GetAppID() + { + InteropHelp.TestIfAvailableGameServer(); + return (AppId_t)NativeMethods.ISteamUtils_GetAppID(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// Sets the position where the overlay instance for the currently calling game should show notifications. + /// This position is per-game and if this function is called from outside of a game context it will do nothing. + /// + public static void SetOverlayNotificationPosition( ENotificationPosition eNotificationPosition ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamUtils_SetOverlayNotificationPosition(CSteamGameServerAPIContext.GetSteamUtils(), eNotificationPosition); + } + + /// + /// API asynchronous call results + /// can be used directly, but more commonly used via the callback dispatch API (see steam_api.h) + /// + public static bool IsAPICallCompleted( SteamAPICall_t hSteamAPICall, out bool pbFailed ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_IsAPICallCompleted(CSteamGameServerAPIContext.GetSteamUtils(), hSteamAPICall, out pbFailed); + } + + public static ESteamAPICallFailure GetAPICallFailureReason( SteamAPICall_t hSteamAPICall ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_GetAPICallFailureReason(CSteamGameServerAPIContext.GetSteamUtils(), hSteamAPICall); + } + + public static bool GetAPICallResult( SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, out bool pbFailed ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_GetAPICallResult(CSteamGameServerAPIContext.GetSteamUtils(), hSteamAPICall, pCallback, cubCallback, iCallbackExpected, out pbFailed); + } + + /// + /// returns the number of IPC calls made since the last time this function was called + /// Used for perf debugging so you can understand how many IPC calls your game makes per frame + /// Every IPC call is at minimum a thread context switch if not a process one so you want to rate + /// control how often you do them. + /// + public static uint GetIPCCallCount() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_GetIPCCallCount(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// API warning handling + /// 'int' is the severity; 0 for msg, 1 for warning + /// 'const char *' is the text of the message + /// callbacks will occur directly after the API function is called that generated the warning or message + /// + public static void SetWarningMessageHook( SteamAPIWarningMessageHook_t pFunction ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamUtils_SetWarningMessageHook(CSteamGameServerAPIContext.GetSteamUtils(), pFunction); + } + + /// + /// Returns true if the overlay is running & the user can access it. The overlay process could take a few seconds to + /// start & hook the game process, so this function will initially return false while the overlay is loading. + /// + public static bool IsOverlayEnabled() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_IsOverlayEnabled(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// Normally this call is unneeded if your game has a constantly running frame loop that calls the + /// D3D Present API, or OGL SwapBuffers API every frame. + /// However, if you have a game that only refreshes the screen on an event driven basis then that can break + /// the overlay, as it uses your Present/SwapBuffers calls to drive it's internal frame loop and it may also + /// need to Present() to the screen any time an even needing a notification happens or when the overlay is + /// brought up over the game by a user. You can use this API to ask the overlay if it currently need a present + /// in that case, and then you can check for this periodically (roughly 33hz is desirable) and make sure you + /// refresh the screen with Present or SwapBuffers to allow the overlay to do it's work. + /// + public static bool BOverlayNeedsPresent() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_BOverlayNeedsPresent(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// Asynchronous call to check if an executable file has been signed using the public key set on the signing tab + /// of the partner site, for example to refuse to load modified executable files. + /// The result is returned in CheckFileSignature_t. + /// k_ECheckFileSignatureNoSignaturesFoundForThisApp - This app has not been configured on the signing tab of the partner site to enable this function. + /// k_ECheckFileSignatureNoSignaturesFoundForThisFile - This file is not listed on the signing tab for the partner site. + /// k_ECheckFileSignatureFileNotFound - The file does not exist on disk. + /// k_ECheckFileSignatureInvalidSignature - The file exists, and the signing tab has been set for this file, but the file is either not signed or the signature does not match. + /// k_ECheckFileSignatureValidSignature - The file is signed and the signature is valid. + /// + public static SteamAPICall_t CheckFileSignature( string szFileName ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var szFileName2 = new InteropHelp.UTF8StringHandle(szFileName)) + { + return (SteamAPICall_t)NativeMethods.ISteamUtils_CheckFileSignature(CSteamGameServerAPIContext.GetSteamUtils(), szFileName2); + } + } + + /// + /// Activates the full-screen text input dialog which takes a initial text string and returns the text the user has typed + /// + public static bool ShowGamepadTextInput( EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText ) + { + InteropHelp.TestIfAvailableGameServer(); + using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription)) + using (var pchExistingText2 = new InteropHelp.UTF8StringHandle(pchExistingText)) + { + return NativeMethods.ISteamUtils_ShowGamepadTextInput(CSteamGameServerAPIContext.GetSteamUtils(), eInputMode, eLineInputMode, pchDescription2, unCharMax, pchExistingText2); + } + } + + /// + /// Returns previously entered text & length + /// + public static uint GetEnteredGamepadTextLength() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_GetEnteredGamepadTextLength(CSteamGameServerAPIContext.GetSteamUtils()); + } + + public static bool GetEnteredGamepadTextInput( out string pchText, uint cchText ) + { + InteropHelp.TestIfAvailableGameServer(); + var pchText2 = Marshal.AllocHGlobal((int)cchText); + var ret = NativeMethods.ISteamUtils_GetEnteredGamepadTextInput(CSteamGameServerAPIContext.GetSteamUtils(), pchText2, cchText); + pchText = ret ? InteropHelp.PtrToStringUTF8(pchText2) : null; + Marshal.FreeHGlobal(pchText2); + return ret; + } + + /// + /// returns the language the steam client is running in, you probably want ISteamApps::GetCurrentGameLanguage instead, this is for very special usage cases + /// + public static string GetSteamUILanguage() + { + InteropHelp.TestIfAvailableGameServer(); + return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamUtils_GetSteamUILanguage(CSteamGameServerAPIContext.GetSteamUtils())); + } + + /// + /// returns true if Steam itself is running in VR mode + /// + public static bool IsSteamRunningInVR() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_IsSteamRunningInVR(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// Sets the inset of the overlay notification from the corner specified by SetOverlayNotificationPosition. + /// + public static void SetOverlayNotificationInset( int nHorizontalInset, int nVerticalInset ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamUtils_SetOverlayNotificationInset(CSteamGameServerAPIContext.GetSteamUtils(), nHorizontalInset, nVerticalInset); + } + + /// + /// returns true if Steam & the Steam Overlay are running in Big Picture mode + /// Games much be launched through the Steam client to enable the Big Picture overlay. During development, + /// a game can be added as a non-steam game to the developers library to test this feature + /// + public static bool IsSteamInBigPictureMode() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_IsSteamInBigPictureMode(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// ask SteamUI to create and render its OpenVR dashboard + /// + public static void StartVRDashboard() + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamUtils_StartVRDashboard(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// Returns true if the HMD content will be streamed via Steam Remote Play + /// + public static bool IsVRHeadsetStreamingEnabled() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_IsVRHeadsetStreamingEnabled(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// Set whether the HMD content will be streamed via Steam Remote Play + /// If this is set to true, then the scene in the HMD headset will be streamed, and remote input will not be allowed. + /// If this is set to false, then the application window will be streamed instead, and remote input will be allowed. + /// The default is true unless "VRHeadsetStreaming" "0" is in the extended appinfo for a game. + /// (this is useful for games that have asymmetric multiplayer gameplay) + /// + public static void SetVRHeadsetStreamingEnabled( bool bEnabled ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamUtils_SetVRHeadsetStreamingEnabled(CSteamGameServerAPIContext.GetSteamUtils(), bEnabled); + } + + /// + /// Returns whether this steam client is a Steam China specific client, vs the global client. + /// + public static bool IsSteamChinaLauncher() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_IsSteamChinaLauncher(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// Initializes text filtering, loading dictionaries for the language the game is running in. + /// unFilterOptions are reserved for future use and should be set to 0 + /// Returns false if filtering is unavailable for the game's language, in which case FilterText() will act as a passthrough. + /// Users can customize the text filter behavior in their Steam Account preferences: + /// https://store.steampowered.com/account/preferences#CommunityContentPreferences + /// + public static bool InitFilterText( uint unFilterOptions = 0 ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_InitFilterText(CSteamGameServerAPIContext.GetSteamUtils(), unFilterOptions); + } + + /// + /// Filters the provided input message and places the filtered result into pchOutFilteredText, using legally required filtering and additional filtering based on the context and user settings + /// eContext is the type of content in the input string + /// sourceSteamID is the Steam ID that is the source of the input string (e.g. the player with the name, or who said the chat text) + /// pchInputText is the input string that should be filtered, which can be ASCII or UTF-8 + /// pchOutFilteredText is where the output will be placed, even if no filtering is performed + /// nByteSizeOutFilteredText is the size (in bytes) of pchOutFilteredText, should be at least strlen(pchInputText)+1 + /// Returns the number of characters (not bytes) filtered + /// + public static int FilterText( ETextFilteringContext eContext, CSteamID sourceSteamID, string pchInputMessage, out string pchOutFilteredText, uint nByteSizeOutFilteredText ) + { + InteropHelp.TestIfAvailableGameServer(); + var pchOutFilteredText2 = Marshal.AllocHGlobal((int)nByteSizeOutFilteredText); + using (var pchInputMessage2 = new InteropHelp.UTF8StringHandle(pchInputMessage)) + { + var ret = NativeMethods.ISteamUtils_FilterText(CSteamGameServerAPIContext.GetSteamUtils(), eContext, sourceSteamID, pchInputMessage2, pchOutFilteredText2, nByteSizeOutFilteredText); + pchOutFilteredText = ret != -1 ? InteropHelp.PtrToStringUTF8(pchOutFilteredText2) : null; + Marshal.FreeHGlobal(pchOutFilteredText2); + return ret; + } + } + + /// + /// Return what we believe your current ipv6 connectivity to "the internet" is on the specified protocol. + /// This does NOT tell you if the Steam client is currently connected to Steam via ipv6. + /// + public static ESteamIPv6ConnectivityState GetIPv6ConnectivityState( ESteamIPv6ConnectivityProtocol eProtocol ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_GetIPv6ConnectivityState(CSteamGameServerAPIContext.GetSteamUtils(), eProtocol); + } + + /// + /// returns true if currently running on the Steam Deck device + /// + public static bool IsSteamRunningOnSteamDeck() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_IsSteamRunningOnSteamDeck(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// Opens a floating keyboard over the game content and sends OS keyboard keys directly to the game. + /// The text field position is specified in pixels relative the origin of the game window and is used to position the floating keyboard in a way that doesn't cover the text field + /// + public static bool ShowFloatingGamepadTextInput( EFloatingGamepadTextInputMode eKeyboardMode, int nTextFieldXPosition, int nTextFieldYPosition, int nTextFieldWidth, int nTextFieldHeight ) + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_ShowFloatingGamepadTextInput(CSteamGameServerAPIContext.GetSteamUtils(), eKeyboardMode, nTextFieldXPosition, nTextFieldYPosition, nTextFieldWidth, nTextFieldHeight); + } + + /// + /// In game launchers that don't have controller support you can call this to have Steam Input translate the controller input into mouse/kb to navigate the launcher + /// + public static void SetGameLauncherMode( bool bLauncherMode ) + { + InteropHelp.TestIfAvailableGameServer(); + NativeMethods.ISteamUtils_SetGameLauncherMode(CSteamGameServerAPIContext.GetSteamUtils(), bLauncherMode); + } + + /// + /// Dismisses the floating keyboard. + /// + public static bool DismissFloatingGamepadTextInput() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_DismissFloatingGamepadTextInput(CSteamGameServerAPIContext.GetSteamUtils()); + } + + /// + /// Dismisses the full-screen text input dialog. + /// + public static bool DismissGamepadTextInput() + { + InteropHelp.TestIfAvailableGameServer(); + return NativeMethods.ISteamUtils_DismissGamepadTextInput(CSteamGameServerAPIContext.GetSteamUtils()); + } } diff --git a/managed/src/SwiftlyS2.Shared/IInterfaceManager.cs b/managed/src/SwiftlyS2.Shared/IInterfaceManager.cs index 9057d4cd5..9c04d1387 100644 --- a/managed/src/SwiftlyS2.Shared/IInterfaceManager.cs +++ b/managed/src/SwiftlyS2.Shared/IInterfaceManager.cs @@ -1,32 +1,33 @@ namespace SwiftlyS2.Shared; -public interface IInterfaceManager { +public interface IInterfaceManager +{ - /// - /// Add a keyed shared interface for other plugin to use. - /// The interface must be defined in the contracts dll. - /// - /// The interface to add. - /// The implementation of the interface. - /// The key of the interface. - /// The implementation of the interface. - public void AddSharedInterface(string key, TImpl implInstance) - where TInterface : class - where TImpl : class, TInterface; + /// + /// Add a keyed shared interface for other plugin to use. + /// The interface must be defined in the contracts dll. + /// + /// The interface to add. + /// The implementation of the interface. + /// The key of the interface. + /// The implementation of the interface. + public void AddSharedInterface( string key, TImpl implInstance ) + where TInterface : class + where TImpl : class, TInterface; - /// - /// Check if a shared interface exists. - /// - /// The key of the interface. - /// True if the interface exists, false otherwise. - public bool HasSharedInterface(string key); + /// + /// Check if a shared interface exists. + /// + /// The key of the interface. + /// True if the interface exists, false otherwise. + public bool HasSharedInterface( string key ); - /// - /// Get a shared interface. - /// - /// The interface to get. - /// The key of the interface. - /// The implementation of the interface. - public TInterface GetSharedInterface(string key) where TInterface : class; + /// + /// Get a shared interface. + /// + /// The interface to get. + /// The key of the interface. + /// The implementation of the interface. + public TInterface GetSharedInterface( string key ) where TInterface : class; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/ISwiftlyCore.cs b/managed/src/SwiftlyS2.Shared/ISwiftlyCore.cs index 418c818a3..79a9d8f1d 100644 --- a/managed/src/SwiftlyS2.Shared/ISwiftlyCore.cs +++ b/managed/src/SwiftlyS2.Shared/ISwiftlyCore.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.Logging; -using SwiftlyS2.Core.Services; using SwiftlyS2.Shared.CommandLine; using SwiftlyS2.Shared.Commands; using SwiftlyS2.Shared.ConsoleOutput; diff --git a/managed/src/SwiftlyS2.Shared/Misc/AcquireMethod.cs b/managed/src/SwiftlyS2.Shared/Misc/AcquireMethod.cs index 57d1ddf2d..2f6020985 100644 --- a/managed/src/SwiftlyS2.Shared/Misc/AcquireMethod.cs +++ b/managed/src/SwiftlyS2.Shared/Misc/AcquireMethod.cs @@ -2,7 +2,7 @@ namespace SwiftlyS2.Shared.Misc; public enum AcquireMethod : int { - PickUp = 0, - Buy, - BuyWithCtrl + PickUp = 0, + Buy, + BuyWithCtrl } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Misc/AcquireResult.cs b/managed/src/SwiftlyS2.Shared/Misc/AcquireResult.cs index 08d0f1269..86a1ea8a4 100644 --- a/managed/src/SwiftlyS2.Shared/Misc/AcquireResult.cs +++ b/managed/src/SwiftlyS2.Shared/Misc/AcquireResult.cs @@ -1,14 +1,14 @@ public enum AcquireResult : int { - Allowed = 0, - InvalidItem, - AlreadyOwned, - AlreadyPurchased, - ReachedGrenadeTypeLimit, - ReachedGrenadeTotalLimit, - NotAllowedByTeam, - NotAllowedByMap, - NotAllowedByMode, - NotAllowedForPurchase, - NotAllowedByProhibition, + Allowed = 0, + InvalidItem, + AlreadyOwned, + AlreadyPurchased, + ReachedGrenadeTypeLimit, + ReachedGrenadeTotalLimit, + NotAllowedByTeam, + NotAllowedByMap, + NotAllowedByMode, + NotAllowedForPurchase, + NotAllowedByProhibition, }; \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Misc/BitFieldHelper.cs b/managed/src/SwiftlyS2.Shared/Misc/BitFieldHelper.cs index 502e8a0c8..f7962bedd 100644 --- a/managed/src/SwiftlyS2.Shared/Misc/BitFieldHelper.cs +++ b/managed/src/SwiftlyS2.Shared/Misc/BitFieldHelper.cs @@ -1,55 +1,55 @@ -namespace SwiftlyS2.Shared.Misc; +namespace SwiftlyS2.Shared.Misc; -static class BitFieldHelper +internal static class BitFieldHelper { - public static int GetBits(ref byte data, int index, int bitCount) + public static int GetBits( ref byte data, int index, int bitCount ) { if (index < 0 || index + bitCount > 8) throw new ArgumentOutOfRangeException(); - int mask = (1 << bitCount) - 1; + var mask = (1 << bitCount) - 1; return (data >> index) & mask; } - public static void SetBits(ref byte data, int index, int bitCount, int value) + public static void SetBits( ref byte data, int index, int bitCount, int value ) { if (index < 0 || index + bitCount > 8) throw new ArgumentOutOfRangeException(); - int mask = ((1 << bitCount) - 1) << index; + var mask = ((1 << bitCount) - 1) << index; data = (byte)((data & ~mask) | ((value << index) & mask)); } - public static int GetBits(ref int data, int index, int bitCount) + public static int GetBits( ref int data, int index, int bitCount ) { if (index < 0 || index + bitCount > 32) throw new ArgumentOutOfRangeException(); - int mask = (1 << bitCount) - 1; + var mask = (1 << bitCount) - 1; return (data >> index) & mask; } - public static void SetBits(ref int data, int index, int bitCount, int value) + public static void SetBits( ref int data, int index, int bitCount, int value ) { if (index < 0 || index + bitCount > 32) throw new ArgumentOutOfRangeException(); - int mask = ((1 << bitCount) - 1) << index; + var mask = ((1 << bitCount) - 1) << index; data = (data & ~mask) | ((value << index) & mask); } - public static long GetBits(ref long data, int index, int bitCount) + public static long GetBits( ref long data, int index, int bitCount ) { if (index < 0 || index + bitCount > 64) throw new ArgumentOutOfRangeException(); - long mask = (1L << bitCount) - 1; + var mask = (1L << bitCount) - 1; return (data >> index) & mask; } - public static void SetBits(ref long data, int index, int bitCount, long value) + public static void SetBits( ref long data, int index, int bitCount, long value ) { if (index < 0 || index + bitCount > 64) throw new ArgumentOutOfRangeException(); - long mask = ((1L << bitCount) - 1) << index; + var mask = ((1L << bitCount) - 1) << index; data = (data & ~mask) | ((value << index) & mask); } - public static bool GetBit(ref byte data, int index) => GetBits(ref data, index, 1) != 0; - public static void SetBit(ref byte data, int index, bool value) => SetBits(ref data, index, 1, value ? 1 : 0); + public static bool GetBit( ref byte data, int index ) => GetBits(ref data, index, 1) != 0; + public static void SetBit( ref byte data, int index, bool value ) => SetBits(ref data, index, 1, value ? 1 : 0); - public static bool GetBit(ref int data, int index) => GetBits(ref data, index, 1) != 0; - public static void SetBit(ref int data, int index, bool value) => SetBits(ref data, index, 1, value ? 1 : 0); + public static bool GetBit( ref int data, int index ) => GetBits(ref data, index, 1) != 0; + public static void SetBit( ref int data, int index, bool value ) => SetBits(ref data, index, 1, value ? 1 : 0); - public static bool GetBit(ref long data, int index) => GetBits(ref data, index, 1) != 0; - public static void SetBit(ref long data, int index, bool value) => SetBits(ref data, index, 1, value ? 1 : 0); + public static bool GetBit( ref long data, int index ) => GetBits(ref data, index, 1) != 0; + public static void SetBit( ref long data, int index, bool value ) => SetBits(ref data, index, 1, value ? 1 : 0); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Misc/ConsoleRedirector.cs b/managed/src/SwiftlyS2.Shared/Misc/ConsoleRedirector.cs index e4475c8ee..a85b9af38 100644 --- a/managed/src/SwiftlyS2.Shared/Misc/ConsoleRedirector.cs +++ b/managed/src/SwiftlyS2.Shared/Misc/ConsoleRedirector.cs @@ -3,7 +3,7 @@ namespace SwiftlyS2.Shared.Misc; -class ConsoleRedirector : TextWriter +internal class ConsoleRedirector : TextWriter { private readonly TextWriter originalOut; private readonly Lock lockObject = new(); @@ -28,7 +28,7 @@ public override void WriteLine( string? value ) try { isRedirecting = true; - string v = value ?? "(null)"; + var v = value ?? "(null)"; NativeEngineHelpers.SendMessageToConsole(v + (v.EndsWith("\n") ? "" : "\n")); } finally diff --git a/managed/src/SwiftlyS2.Shared/Misc/ExternDLL.cs b/managed/src/SwiftlyS2.Shared/Misc/ExternDLL.cs index 1aa49107a..86b88207f 100644 --- a/managed/src/SwiftlyS2.Shared/Misc/ExternDLL.cs +++ b/managed/src/SwiftlyS2.Shared/Misc/ExternDLL.cs @@ -3,46 +3,41 @@ namespace SwiftlyS2.Shared.Misc; -class ExternDLL +internal class ExternDLL { [DllImport("tier0", SetLastError = true)] - public static extern IntPtr UtlVectorMemory_Alloc(IntPtr pMemory, [MarshalAs(UnmanagedType.Bool)] bool bRealloc, int newSize, int oldSize); + public static extern IntPtr UtlVectorMemory_Alloc( IntPtr pMemory, [MarshalAs(UnmanagedType.Bool)] bool bRealloc, int newSize, int oldSize ); [DllImport("tier0", SetLastError = true)] - public static extern void UtlVectorMemory_FailedAllocation(int totalElements, int newElements); + public static extern void UtlVectorMemory_FailedAllocation( int totalElements, int newElements ); [DllImport("tier0", SetLastError = true)] - public static extern int UtlVectorMemory_CalcNewAllocationCount(int allocationCount, int growSize, int newSize, int bytesItem); + public static extern int UtlVectorMemory_CalcNewAllocationCount( int allocationCount, int growSize, int newSize, int bytesItem ); - public static IntPtr LoadLibrary(string dllName) + public static IntPtr LoadLibrary( string dllName ) { - if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) - { - return NativeLibrary.Load("lib" + dllName + ".so"); - } - else - { - return NativeLibrary.Load(dllName + ".dll"); - } + return RuntimeInformation.IsOSPlatform(OSPlatform.Linux) + ? NativeLibrary.Load("lib" + dllName + ".so") + : NativeLibrary.Load(dllName + ".dll"); } - public static IntPtr GetAddress(IntPtr libraryHandle, string functionName) + public static IntPtr GetAddress( IntPtr libraryHandle, string functionName ) { return NativeLibrary.GetExport(libraryHandle, functionName); } - public static void CloseLibrary(IntPtr libraryHandle) + public static void CloseLibrary( IntPtr libraryHandle ) { NativeLibrary.Free(libraryHandle); } - public static T GetExportedFunction(string dllName, string functionName) where T : Delegate + public static T GetExportedFunction( string dllName, string functionName ) where T : Delegate { - IntPtr hModule = LoadLibrary(dllName); + var hModule = LoadLibrary(dllName); if (hModule == IntPtr.Zero) throw new Exception("Module not found: " + dllName); - IntPtr pFunc = GetAddress(hModule, functionName); + var pFunc = GetAddress(hModule, functionName); if (pFunc == IntPtr.Zero) throw new Exception("Export not found: " + functionName); @@ -51,13 +46,13 @@ public static T GetExportedFunction(string dllName, string functionName) wher return func; } - public static unsafe T GetExportedVariable(string dllName, string variableName) + public static unsafe T GetExportedVariable( string dllName, string variableName ) { - IntPtr hModule = LoadLibrary(dllName); + var hModule = LoadLibrary(dllName); if (hModule == IntPtr.Zero) throw new Exception("Module not found: " + dllName); - IntPtr pVar = GetAddress(hModule, variableName); + var pVar = GetAddress(hModule, variableName); if (pVar == IntPtr.Zero) throw new Exception("Export not found: " + variableName); diff --git a/managed/src/SwiftlyS2.Shared/Misc/GameKeyKind.cs b/managed/src/SwiftlyS2.Shared/Misc/GameKeyKind.cs index 443cd0434..ca5750ec2 100644 --- a/managed/src/SwiftlyS2.Shared/Misc/GameKeyKind.cs +++ b/managed/src/SwiftlyS2.Shared/Misc/GameKeyKind.cs @@ -1,232 +1,277 @@ namespace SwiftlyS2.Shared.Events; [Flags] -public enum GameButtonFlags: ulong +public enum GameButtonFlags : ulong { None = 0, - Mouse1 = 1UL << 0, - Space = 1UL << 1, - Ctrl = 1UL << 2, - W = 1UL << 3, - S = 1UL << 4, - E = 1UL << 5, - Esc = 1UL << 6, - A = 1UL << 7, - D = 1UL << 8, - A2 = 1UL << 9, - D2 = 1UL << 10, - Mouse2 = 1UL << 11, - UnknownKeyRun = 1UL << 12, - R = 1UL << 13, - Alt = 1UL << 14, - Alt2 = 1UL << 15, - Shift = 1UL << 16, - UnknownKeySpeed = 1UL << 17, - Shift2 = 1UL << 18, - UnknownKeyHudzoom = 1UL << 19, - UnknownKeyWeapon1 = 1UL << 20, - UnknownKeyWeapon2 = 1UL << 21, - UnknownKeyBullrush = 1UL << 22, - UnknownKeyGrenade1 = 1UL << 23, - UnknownKeyGrenade2 = 1UL << 24, - UnknownKeyLookspin = 1UL << 25, - UnknownKey26 = 1UL << 26, - UnknownKey27 = 1UL << 27, - UnknownKey28 = 1UL << 28, - UnknownKey29 = 1UL << 29, - UnknownKey30 = 1UL << 30, - UnknownKey31 = 1UL << 31, - UnknownKey32 = 1UL << 32, - Tab = 1UL << 33, - UnknownKey34 = 1UL << 34, - F = 1UL << 35, - UnknownKey36 = 1UL << 36, - UnknownKey37 = 1UL << 37, - UnknownKey38 = 1UL << 38, - UnknownKey39 = 1UL << 39, - UnknownKey40 = 1UL << 40, - UnknownKey41 = 1UL << 41, - UnknownKey42 = 1UL << 42, - UnknownKey43 = 1UL << 43, - UnknownKey44 = 1UL << 44, - UnknownKey45 = 1UL << 45, - UnknownKey46 = 1UL << 46, - UnknownKey47 = 1UL << 47, - UnknownKey48 = 1UL << 48, - UnknownKey49 = 1UL << 49, - UnknownKey50 = 1UL << 50, - UnknownKey51 = 1UL << 51, - UnknownKey52 = 1UL << 52, - UnknownKey53 = 1UL << 53, - UnknownKey54 = 1UL << 54, - UnknownKey55 = 1UL << 55, - UnknownKey56 = 1UL << 56, - UnknownKey57 = 1UL << 57, - UnknownKey58 = 1UL << 58, - UnknownKey59 = 1UL << 59, - UnknownKey60 = 1UL << 60, - UnknownKey61 = 1UL << 61, - UnknownKey62 = 1UL << 62, - UnknownKey63 = 1UL << 63, + Mouse1 = 1UL << GameButtons.Mouse1, + Space = 1UL << GameButtons.Space, + Ctrl = 1UL << GameButtons.Ctrl, + W = 1UL << GameButtons.W, + S = 1UL << GameButtons.S, + E = 1UL << GameButtons.E, + Esc = 1UL << GameButtons.Esc, + A = 1UL << GameButtons.A, + D = 1UL << GameButtons.D, + A2 = 1UL << GameButtons.A2, + D2 = 1UL << GameButtons.D2, + Mouse2 = 1UL << GameButtons.Mouse2, + UnknownKeyRun = 1UL << GameButtons.UnknownKeyRun, + R = 1UL << GameButtons.R, + Alt = 1UL << GameButtons.Alt, + Alt2 = 1UL << GameButtons.Alt2, + Shift = 1UL << GameButtons.Shift, + UnknownKeySpeed = 1UL << GameButtons.UnknownKeySpeed, + Shift2 = 1UL << GameButtons.Shift2, + UnknownKeyHudzoom = 1UL << GameButtons.UnknownKeyHudzoom, + UnknownKeyWeapon1 = 1UL << GameButtons.UnknownKeyWeapon1, + UnknownKeyWeapon2 = 1UL << GameButtons.UnknownKeyWeapon2, + UnknownKeyBullrush = 1UL << GameButtons.UnknownKeyBullrush, + UnknownKeyGrenade1 = 1UL << GameButtons.UnknownKeyGrenade1, + UnknownKeyGrenade2 = 1UL << GameButtons.UnknownKeyGrenade2, + UnknownKeyLookspin = 1UL << GameButtons.UnknownKeyLookspin, + UnknownKey26 = 1UL << GameButtons.UnknownKey26, + UnknownKey27 = 1UL << GameButtons.UnknownKey27, + UnknownKey28 = 1UL << GameButtons.UnknownKey28, + UnknownKey29 = 1UL << GameButtons.UnknownKey29, + UnknownKey30 = 1UL << GameButtons.UnknownKey30, + UnknownKey31 = 1UL << GameButtons.UnknownKey31, + UnknownKey32 = 1UL << GameButtons.UnknownKey32, + Tab = 1UL << GameButtons.Tab, + UnknownKey34 = 1UL << GameButtons.UnknownKey34, + F = 1UL << GameButtons.F, + UnknownKey36 = 1UL << GameButtons.UnknownKey36, + UnknownKey37 = 1UL << GameButtons.UnknownKey37, + UnknownKey38 = 1UL << GameButtons.UnknownKey38, + UnknownKey39 = 1UL << GameButtons.UnknownKey39, + UnknownKey40 = 1UL << GameButtons.UnknownKey40, + UnknownKey41 = 1UL << GameButtons.UnknownKey41, + UnknownKey42 = 1UL << GameButtons.UnknownKey42, + UnknownKey43 = 1UL << GameButtons.UnknownKey43, + UnknownKey44 = 1UL << GameButtons.UnknownKey44, + UnknownKey45 = 1UL << GameButtons.UnknownKey45, + UnknownKey46 = 1UL << GameButtons.UnknownKey46, + UnknownKey47 = 1UL << GameButtons.UnknownKey47, + UnknownKey48 = 1UL << GameButtons.UnknownKey48, + UnknownKey49 = 1UL << GameButtons.UnknownKey49, + UnknownKey50 = 1UL << GameButtons.UnknownKey50, + UnknownKey51 = 1UL << GameButtons.UnknownKey51, + UnknownKey52 = 1UL << GameButtons.UnknownKey52, + UnknownKey53 = 1UL << GameButtons.UnknownKey53, + UnknownKey54 = 1UL << GameButtons.UnknownKey54, + UnknownKey55 = 1UL << GameButtons.UnknownKey55, + UnknownKey56 = 1UL << GameButtons.UnknownKey56, + UnknownKey57 = 1UL << GameButtons.UnknownKey57, + UnknownKey58 = 1UL << GameButtons.UnknownKey58, + UnknownKey59 = 1UL << GameButtons.UnknownKey59, + UnknownKey60 = 1UL << GameButtons.UnknownKey60, + UnknownKey61 = 1UL << GameButtons.UnknownKey61, + UnknownKey62 = 1UL << GameButtons.UnknownKey62, + UnknownKey63 = 1UL << GameButtons.UnknownKey63, } public enum GameButtons : int { - Mouse1 = 0, + Mouse1 = 0, - Space = 1, + Space = 1, - Ctrl = 2, + Ctrl = 2, - W = 3, + W = 3, - S = 4, + S = 4, - E = 5, + E = 5, - Esc = 6, + Esc = 6, - A = 7, + A = 7, - D = 8, + D = 8, - A2 = 9, + A2 = 9, - D2 = 10, + D2 = 10, - Mouse2 = 11, + Mouse2 = 11, - UnknownKeyRun = 12, + UnknownKeyRun = 12, - R = 13, + R = 13, - Alt = 14, + Alt = 14, - Alt2 = 15, + Alt2 = 15, - Shift = 16, + Shift = 16, - UnknownKeySpeed = 17, + UnknownKeySpeed = 17, - Shift2 = 18, + Shift2 = 18, - UnknownKeyHudzoom = 19, + UnknownKeyHudzoom = 19, - UnknownKeyWeapon1 = 20, + UnknownKeyWeapon1 = 20, - UnknownKeyWeapon2 = 21, + UnknownKeyWeapon2 = 21, - UnknownKeyBullrush = 22, + UnknownKeyBullrush = 22, - UnknownKeyGrenade1 = 23, + UnknownKeyGrenade1 = 23, - UnknownKeyGrenade2 = 24, + UnknownKeyGrenade2 = 24, - UnknownKeyLookspin = 25, + UnknownKeyLookspin = 25, - UnknownKey26 = 26, + UnknownKey26 = 26, - UnknownKey27 = 27, + UnknownKey27 = 27, - UnknownKey28 = 28, + UnknownKey28 = 28, - UnknownKey29 = 29, + UnknownKey29 = 29, - UnknownKey30 = 30, + UnknownKey30 = 30, - UnknownKey31 = 31, + UnknownKey31 = 31, - UnknownKey32 = 32, + UnknownKey32 = 32, - Tab = 33, + Tab = 33, - UnknownKey34 = 34, + UnknownKey34 = 34, - F = 35, + F = 35, - UnknownKey36 = 36, + UnknownKey36 = 36, - UnknownKey37 = 37, + UnknownKey37 = 37, - UnknownKey38 = 38, + UnknownKey38 = 38, - UnknownKey39 = 39, + UnknownKey39 = 39, - UnknownKey40 = 40, + UnknownKey40 = 40, - UnknownKey41 = 41, + UnknownKey41 = 41, - UnknownKey42 = 42, + UnknownKey42 = 42, - UnknownKey43 = 43, + UnknownKey43 = 43, - UnknownKey44 = 44, + UnknownKey44 = 44, - UnknownKey45 = 45, + UnknownKey45 = 45, - UnknownKey46 = 46, + UnknownKey46 = 46, - UnknownKey47 = 47, + UnknownKey47 = 47, - UnknownKey48 = 48, + UnknownKey48 = 48, - UnknownKey49 = 49, + UnknownKey49 = 49, - UnknownKey50 = 50, + UnknownKey50 = 50, - UnknownKey51 = 51, + UnknownKey51 = 51, - UnknownKey52 = 52, + UnknownKey52 = 52, - UnknownKey53 = 53, + UnknownKey53 = 53, - UnknownKey54 = 54, + UnknownKey54 = 54, - UnknownKey55 = 55, + UnknownKey55 = 55, - UnknownKey56 = 56, + UnknownKey56 = 56, - UnknownKey57 = 57, + UnknownKey57 = 57, - UnknownKey58 = 58, + UnknownKey58 = 58, - UnknownKey59 = 59, + UnknownKey59 = 59, - UnknownKey60 = 60, + UnknownKey60 = 60, - UnknownKey61 = 61, + UnknownKey61 = 61, - UnknownKey62 = 62, + UnknownKey62 = 62, - UnknownKey63 = 63, + UnknownKey63 = 63, } -internal static class GameKeyKindExtensions { - public static KeyKind ToKeyKind(this GameButtons keyKind) { - return keyKind switch { - GameButtons.Mouse1 => KeyKind.Mouse1, - GameButtons.Mouse2 => KeyKind.Mouse2, - GameButtons.Space => KeyKind.Space, - GameButtons.Ctrl => KeyKind.Ctrl, - GameButtons.W => KeyKind.W, - GameButtons.S => KeyKind.S, - GameButtons.E => KeyKind.E, - GameButtons.Esc => KeyKind.Esc, - GameButtons.A => KeyKind.A, - GameButtons.A2 => KeyKind.A, - GameButtons.D => KeyKind.D, - GameButtons.D2 => KeyKind.D, - GameButtons.R => KeyKind.R, - GameButtons.Alt => KeyKind.Alt, - GameButtons.Shift => KeyKind.Shift, - GameButtons.UnknownKeyWeapon1 => KeyKind.Weapon1, - GameButtons.UnknownKeyWeapon2 => KeyKind.Weapon2, - GameButtons.UnknownKeyGrenade1 => KeyKind.Grenade1, - GameButtons.UnknownKeyGrenade2 => KeyKind.Grenade2, - GameButtons.Tab => KeyKind.Tab, - GameButtons.F => KeyKind.F, - _ => throw new ArgumentException($"Unknown key kind: {keyKind}. Please report this to the SwiftlyS2 team.") - }; - } +internal static class GameKeyKindExtensions +{ + public static KeyKind ToKeyKind( this GameButtons keyKind ) + { + return keyKind switch { + GameButtons.Mouse1 => KeyKind.Mouse1, + GameButtons.Mouse2 => KeyKind.Mouse2, + GameButtons.Space => KeyKind.Space, + GameButtons.Ctrl => KeyKind.Ctrl, + GameButtons.W => KeyKind.W, + GameButtons.S => KeyKind.S, + GameButtons.E => KeyKind.E, + GameButtons.Esc => KeyKind.Esc, + GameButtons.A => KeyKind.A, + GameButtons.A2 => KeyKind.A, + GameButtons.D => KeyKind.D, + GameButtons.D2 => KeyKind.D, + GameButtons.R => KeyKind.R, + GameButtons.Alt => KeyKind.Alt, + GameButtons.Shift => KeyKind.Shift, + GameButtons.UnknownKeyWeapon1 => KeyKind.Weapon1, + GameButtons.UnknownKeyWeapon2 => KeyKind.Weapon2, + GameButtons.UnknownKeyGrenade1 => KeyKind.Grenade1, + GameButtons.UnknownKeyGrenade2 => KeyKind.Grenade2, + GameButtons.Tab => KeyKind.Tab, + GameButtons.F => KeyKind.F, + GameButtons.UnknownKeyRun => throw new NotImplementedException(), + GameButtons.Alt2 => throw new NotImplementedException(), + GameButtons.UnknownKeySpeed => throw new NotImplementedException(), + GameButtons.Shift2 => throw new NotImplementedException(), + GameButtons.UnknownKeyHudzoom => throw new NotImplementedException(), + GameButtons.UnknownKeyBullrush => throw new NotImplementedException(), + GameButtons.UnknownKeyLookspin => throw new NotImplementedException(), + GameButtons.UnknownKey26 => throw new NotImplementedException(), + GameButtons.UnknownKey27 => throw new NotImplementedException(), + GameButtons.UnknownKey28 => throw new NotImplementedException(), + GameButtons.UnknownKey29 => throw new NotImplementedException(), + GameButtons.UnknownKey30 => throw new NotImplementedException(), + GameButtons.UnknownKey31 => throw new NotImplementedException(), + GameButtons.UnknownKey32 => throw new NotImplementedException(), + GameButtons.UnknownKey34 => throw new NotImplementedException(), + GameButtons.UnknownKey36 => throw new NotImplementedException(), + GameButtons.UnknownKey37 => throw new NotImplementedException(), + GameButtons.UnknownKey38 => throw new NotImplementedException(), + GameButtons.UnknownKey39 => throw new NotImplementedException(), + GameButtons.UnknownKey40 => throw new NotImplementedException(), + GameButtons.UnknownKey41 => throw new NotImplementedException(), + GameButtons.UnknownKey42 => throw new NotImplementedException(), + GameButtons.UnknownKey43 => throw new NotImplementedException(), + GameButtons.UnknownKey44 => throw new NotImplementedException(), + GameButtons.UnknownKey45 => throw new NotImplementedException(), + GameButtons.UnknownKey46 => throw new NotImplementedException(), + GameButtons.UnknownKey47 => throw new NotImplementedException(), + GameButtons.UnknownKey48 => throw new NotImplementedException(), + GameButtons.UnknownKey49 => throw new NotImplementedException(), + GameButtons.UnknownKey50 => throw new NotImplementedException(), + GameButtons.UnknownKey51 => throw new NotImplementedException(), + GameButtons.UnknownKey52 => throw new NotImplementedException(), + GameButtons.UnknownKey53 => throw new NotImplementedException(), + GameButtons.UnknownKey54 => throw new NotImplementedException(), + GameButtons.UnknownKey55 => throw new NotImplementedException(), + GameButtons.UnknownKey56 => throw new NotImplementedException(), + GameButtons.UnknownKey57 => throw new NotImplementedException(), + GameButtons.UnknownKey58 => throw new NotImplementedException(), + GameButtons.UnknownKey59 => throw new NotImplementedException(), + GameButtons.UnknownKey60 => throw new NotImplementedException(), + GameButtons.UnknownKey61 => throw new NotImplementedException(), + GameButtons.UnknownKey62 => throw new NotImplementedException(), + GameButtons.UnknownKey63 => throw new NotImplementedException(), + _ => throw new ArgumentException($"Unknown key kind: {keyKind}. Please report this to the SwiftlyS2 team.") + }; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Misc/HookMode.cs b/managed/src/SwiftlyS2.Shared/Misc/HookMode.cs index 0a58c490e..9d8c9405d 100644 --- a/managed/src/SwiftlyS2.Shared/Misc/HookMode.cs +++ b/managed/src/SwiftlyS2.Shared/Misc/HookMode.cs @@ -1,6 +1,7 @@ namespace SwiftlyS2.Shared.Misc; -public enum HookMode { - Pre = 0, - Post = 1 +public enum HookMode +{ + Pre = 0, + Post = 1 } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Misc/HookResult.cs b/managed/src/SwiftlyS2.Shared/Misc/HookResult.cs index 01115e100..ac58a5942 100644 --- a/managed/src/SwiftlyS2.Shared/Misc/HookResult.cs +++ b/managed/src/SwiftlyS2.Shared/Misc/HookResult.cs @@ -3,27 +3,28 @@ namespace SwiftlyS2.Shared.Misc; /// /// Result of a hook. /// -public enum HookResult : uint { +public enum HookResult : uint +{ - /// - /// The executions of following hooks and original function will continue. - /// - /// - Continue = 0, + /// + /// The executions of following hooks and original function will continue. + /// + /// + Continue = 0, - /// - /// The executions of following hooks and original function will all be cancelled. - /// - /// Won't work for post hooks. - /// - Stop = 1, + /// + /// The executions of following hooks and original function will all be cancelled. + /// + /// Won't work for post hooks. + /// + Stop = 1, - /// - /// The executions of following hooks will be cancelled, but the original function will continue. - /// - /// Won't work for post hooks. - /// - Handled = 2, + /// + /// The executions of following hooks will be cancelled, but the original function will continue. + /// + /// Won't work for post hooks. + /// + Handled = 2, } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Misc/MemoryHelpers.cs b/managed/src/SwiftlyS2.Shared/Misc/MemoryHelpers.cs index 4ca45fe72..85805d65a 100644 --- a/managed/src/SwiftlyS2.Shared/Misc/MemoryHelpers.cs +++ b/managed/src/SwiftlyS2.Shared/Misc/MemoryHelpers.cs @@ -1,13 +1,12 @@ -using System.Runtime.CompilerServices; using SwiftlyS2.Core.Natives; namespace SwiftlyS2.Shared.Misc; public static class MemoryHelpers { - public static int CalcNewDoublingCount(int oldCount, int requestedCount, int minCount, int maxCount) + public static int CalcNewDoublingCount( int oldCount, int requestedCount, int minCount, int maxCount ) { - int newCount = oldCount; + var newCount = oldCount; while (newCount < requestedCount) { @@ -27,18 +26,18 @@ public static int CalcNewDoublingCount(int oldCount, int requestedCount, int min return newCount; } - public static void ShiftElementsRight(nint memory, int elem, int num, int size, int elementSize) + public static void ShiftElementsRight( nint memory, int elem, int num, int size, int elementSize ) { - int numToMove = size - elem - num; + var numToMove = size - elem - num; if (numToMove > 0 && num > 0) { NativeAllocator.Move(memory + ((elem + num) * elementSize), memory + (elem * elementSize), (ulong)(numToMove * elementSize)); } } - public static void ShiftElementsLeft(nint memory, int elem, int num, int size, int elementSize) + public static void ShiftElementsLeft( nint memory, int elem, int num, int size, int elementSize ) { - int numToMove = size - elem - num; + var numToMove = size - elem - num; if (numToMove > 0 && num > 0) { NativeAllocator.Move(memory + (elem * elementSize), memory + ((elem + num) * elementSize), (ulong)(numToMove * elementSize)); diff --git a/managed/src/SwiftlyS2.Shared/Misc/MemoryPatch.cs b/managed/src/SwiftlyS2.Shared/Misc/MemoryPatch.cs index d7cd90c04..4e4371b21 100644 --- a/managed/src/SwiftlyS2.Shared/Misc/MemoryPatch.cs +++ b/managed/src/SwiftlyS2.Shared/Misc/MemoryPatch.cs @@ -1,31 +1,31 @@ using System.Runtime.InteropServices; -static class MemoryPatch +internal static class MemoryPatch { - const int PAGE = 4096; - const int PROT_RWX = 0x1 | 0x2 | 0x4; // 7 - const int PAGE_EXECUTE_READWRITE = 0x40; + private const int PAGE = 4096; + private const int PROT_RWX = 0x1 | 0x2 | 0x4; // 7 + private const int PAGE_EXECUTE_READWRITE = 0x40; - [DllImport("libc", EntryPoint = "mprotect")] - static extern int mprotect(nint addr, nint len, int prot); + [DllImport("libc", EntryPoint = "mprotect")] + private static extern int mprotect( nint addr, nint len, int prot ); - [DllImport("kernel32.dll", SetLastError = true)] - unsafe static extern bool VirtualProtect(nint addr, int size, int newProt, int* oldProt); + [DllImport("kernel32.dll", SetLastError = true)] + private static unsafe extern bool VirtualProtect( nint addr, int size, int newProt, int* oldProt ); - public unsafe static bool SetMemAccess(nint addr, int size) - { - if (addr == 0) throw new ArgumentNullException(nameof(addr)); - - if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) - { - nint start = addr & ~(PAGE - 1); - nint span = (nint)size + (addr - start); // size + LALDIF - return mprotect(start, span, PROT_RWX) == 0; - } - else + public unsafe static bool SetMemAccess( nint addr, int size ) { - int old; - return VirtualProtect(addr, size, PAGE_EXECUTE_READWRITE, &old); + if (addr == 0) throw new ArgumentNullException(nameof(addr)); + + if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) + { + var start = addr & ~(PAGE - 1); + var span = size + (addr - start); // size + LALDIF + return mprotect(start, span, PROT_RWX) == 0; + } + else + { + int old; + return VirtualProtect(addr, size, PAGE_EXECUTE_READWRITE, &old); + } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Misc/MurmurHash2.cs b/managed/src/SwiftlyS2.Shared/Misc/MurmurHash2.cs index c139e54d6..cb56cdfce 100644 --- a/managed/src/SwiftlyS2.Shared/Misc/MurmurHash2.cs +++ b/managed/src/SwiftlyS2.Shared/Misc/MurmurHash2.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; namespace SwiftlyS2.Shared.Misc; @@ -7,18 +7,18 @@ public static class MurmurHash2 /// /// Compute MurmurHash2 (32-bit) of a byte array with an optional seed. /// - public static uint Hash(byte[] data, uint seed = 0x31415926) + public static uint Hash( byte[] data, uint seed = 0x31415926 ) { const uint m = 0x5bd1e995; const int r = 24; - uint length = (uint)data.Length; - uint h = seed ^ length; + var length = (uint)data.Length; + var h = seed ^ length; - int index = 0; + var index = 0; while (length >= 4) { - uint k = BitConverter.ToUInt32(data, index); + var k = BitConverter.ToUInt32(data, index); k *= m; k ^= k >> r; @@ -43,6 +43,8 @@ public static uint Hash(byte[] data, uint seed = 0x31415926) h ^= data[index]; h *= m; break; + default: + break; } h ^= h >> 13; @@ -55,7 +57,7 @@ public static uint Hash(byte[] data, uint seed = 0x31415926) /// /// Convenience method for strings (UTF8). /// - public static uint HashString(string text, uint seed = 0x31415926) + public static uint HashString( string text, uint seed = 0x31415926 ) { return Hash(Encoding.UTF8.GetBytes(text), seed); } @@ -63,7 +65,7 @@ public static uint HashString(string text, uint seed = 0x31415926) /// /// Convert a string to lowercase and then hash it. /// - public static uint HashStringLowercase(string text, uint seed = 0x31415926) + public static uint HashStringLowercase( string text, uint seed = 0x31415926 ) { return Hash(Encoding.UTF8.GetBytes(text.ToLower()), seed); } diff --git a/managed/src/SwiftlyS2.Shared/Modules/CommandLine/ICommandLine.cs b/managed/src/SwiftlyS2.Shared/Modules/CommandLine/ICommandLine.cs index d831ef8b9..73e5a6f1f 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/CommandLine/ICommandLine.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/CommandLine/ICommandLine.cs @@ -5,7 +5,7 @@ public interface ICommandLine /// /// Checks if a parameter exists in the command line. /// - public bool HasParameter(string paramName); + public bool HasParameter( string paramName ); /// /// Gets the total number of parameters in the command line. @@ -15,17 +15,17 @@ public interface ICommandLine /// /// Gets a string parameter from the command line. /// - public string GetParameterString(string paramName, string defaultValue = ""); + public string GetParameterString( string paramName, string defaultValue = "" ); /// /// Gets an integer parameter from the command line. /// - public int GetParameterInt(string paramName, int defaultValue = 0); + public int GetParameterInt( string paramName, int defaultValue = 0 ); /// /// Gets a float parameter from the command line. /// - public float GetParameterFloat(string paramName, float defaultValue = 0f); + public float GetParameterFloat( string paramName, float defaultValue = 0f ); public string CommandLine { get; } diff --git a/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/ClientChatHookHandlerAttribute.cs b/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/ClientChatHookHandlerAttribute.cs index 8a4b39f57..da87f4e4f 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/ClientChatHookHandlerAttribute.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/ClientChatHookHandlerAttribute.cs @@ -1,7 +1,9 @@ namespace SwiftlyS2.Shared.Commands; [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] -public class ClientChatHookHandler : Attribute { - public ClientChatHookHandler() { - } +public class ClientChatHookHandler : Attribute +{ + public ClientChatHookHandler() + { + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/ClientCommandHookHandlerAttribute.cs b/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/ClientCommandHookHandlerAttribute.cs index f579ea52a..9533814e0 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/ClientCommandHookHandlerAttribute.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/ClientCommandHookHandlerAttribute.cs @@ -1,8 +1,10 @@ namespace SwiftlyS2.Shared.Commands; [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] -public class ClientCommandHookHandler : Attribute { +public class ClientCommandHookHandler : Attribute +{ - public ClientCommandHookHandler() { - } + public ClientCommandHookHandler() + { + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/CommandAliasAttribute.cs b/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/CommandAliasAttribute.cs index b4aa3dde4..1b7d69d39 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/CommandAliasAttribute.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/CommandAliasAttribute.cs @@ -1,13 +1,15 @@ namespace SwiftlyS2.Shared.Commands; [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] -public class CommandAlias : Attribute { - public string Alias { get; set; } +public class CommandAlias : Attribute +{ + public string Alias { get; set; } - public bool RegisterRaw { get; set; } = false; + public bool RegisterRaw { get; set; } = false; - public CommandAlias(string alias, bool registerRaw = false) { - Alias = alias; - RegisterRaw = registerRaw; - } + public CommandAlias( string alias, bool registerRaw = false ) + { + Alias = alias; + RegisterRaw = registerRaw; + } } diff --git a/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/CommandAttribute.cs b/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/CommandAttribute.cs index e5c64f1d4..56e8613c5 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/CommandAttribute.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Commands/Attributes/CommandAttribute.cs @@ -1,16 +1,18 @@ namespace SwiftlyS2.Shared.Commands; [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] -public class Command : Attribute { - public string Name { get; set; } +public class Command : Attribute +{ + public string Name { get; set; } - public bool RegisterRaw { get; set; } = false; + public bool RegisterRaw { get; set; } = false; - public string Permission { get; set; } = ""; + public string Permission { get; set; } = ""; - public Command(string name, bool registerRaw = false, string permission = "") { - Name = name; - RegisterRaw = registerRaw; - Permission = permission; - } + public Command( string name, bool registerRaw = false, string permission = "" ) + { + Name = name; + RegisterRaw = registerRaw; + Permission = permission; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Commands/ICommandContext.cs b/managed/src/SwiftlyS2.Shared/Modules/Commands/ICommandContext.cs index c9817146d..37c3fc418 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Commands/ICommandContext.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Commands/ICommandContext.cs @@ -2,18 +2,19 @@ namespace SwiftlyS2.Shared.Commands; -public interface ICommandContext { +public interface ICommandContext +{ - public bool IsSentByPlayer { get; } + public bool IsSentByPlayer { get; } - public IPlayer? Sender { get; } + public IPlayer? Sender { get; } - public string Prefix { get; } + public string Prefix { get; } - public bool IsSlient { get; } + public bool IsSlient { get; } - public string[] Args { get; } + public string[] Args { get; } + + public void Reply( string message ); - public void Reply(string message); - } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Commands/ICommandService.cs b/managed/src/SwiftlyS2.Shared/Modules/Commands/ICommandService.cs index 00b7a6d9f..8c3b5cf44 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Commands/ICommandService.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Commands/ICommandService.cs @@ -1,4 +1,3 @@ -using SwiftlyS2.Shared.Commands; using SwiftlyS2.Shared.Misc; namespace SwiftlyS2.Shared.Commands; @@ -6,83 +5,83 @@ namespace SwiftlyS2.Shared.Commands; public interface ICommandService { - /// - /// The listener for the command. - /// - /// The command context. - delegate void CommandListener( ICommandContext context ); - - /// - /// The handler for the client command hook. - /// - /// The player id. - /// The command line. - /// Whether the command should continue to be sent. - delegate HookResult ClientCommandHandler( int playerId, string commandLine ); - - - /// - /// The handler for the client chat hook. - /// - /// The player id. - /// The text. - /// Whether the text is for team only. - /// Whether the text should continue to be sent. - - delegate HookResult ClientChatHandler( int playerId, string text, bool teamonly ); - - /// - /// Registers a command. - /// - /// The command name. - /// The handler callback for the command. - /// If set to false, the command will not starts with a `sw_` prefix. - /// The permission required to use the command. - /// The guid of the command. - Guid RegisterCommand( string commandName, CommandListener handler, bool registerRaw = false, string permission = "" ); - - /// - /// Registers a command alias. - /// - /// The command name. - /// The alias. - /// If set to false, the alias will not starts with a `sw_` prefix. - void RegisterCommandAlias( string commandName, string alias, bool registerRaw = false ); - - /// - /// Unregisters a command. - /// - /// The guid of the command. - void UnregisterCommand( Guid guid ); - - /// - /// Unregisters all command listeners with the specified command name. - /// - /// The command name. - void UnregisterCommand( string commandName ); - - /// - /// Hooks client commands, will be fired when a player sends any command. - /// - /// The handler callback for the client command. - Guid HookClientCommand( ClientCommandHandler handler ); - - /// - /// Unhooks a client command. - /// - /// The guid of the client command. - void UnhookClientCommand( Guid guid ); - - /// - /// Hooks client chat, will be fired when a player sends any chat message. - /// - /// The handler callback for the client chat. - Guid HookClientChat( ClientChatHandler handler ); - - /// - /// Unhooks a client chat. - /// - /// The guid of the client chat. - void UnhookClientChat( Guid guid ); + /// + /// The listener for the command. + /// + /// The command context. + public delegate void CommandListener( ICommandContext context ); + + /// + /// The handler for the client command hook. + /// + /// The player id. + /// The command line. + /// Whether the command should continue to be sent. + public delegate HookResult ClientCommandHandler( int playerId, string commandLine ); + + + /// + /// The handler for the client chat hook. + /// + /// The player id. + /// The text. + /// Whether the text is for team only. + /// Whether the text should continue to be sent. + + public delegate HookResult ClientChatHandler( int playerId, string text, bool teamonly ); + + /// + /// Registers a command. + /// + /// The command name. + /// The handler callback for the command. + /// If set to false, the command will not starts with a `sw_` prefix. + /// The permission required to use the command. + /// The guid of the command. + public Guid RegisterCommand( string commandName, CommandListener handler, bool registerRaw = false, string permission = "" ); + + /// + /// Registers a command alias. + /// + /// The command name. + /// The alias. + /// If set to false, the alias will not starts with a `sw_` prefix. + public void RegisterCommandAlias( string commandName, string alias, bool registerRaw = false ); + + /// + /// Unregisters a command. + /// + /// The guid of the command. + public void UnregisterCommand( Guid guid ); + + /// + /// Unregisters all command listeners with the specified command name. + /// + /// The command name. + public void UnregisterCommand( string commandName ); + + /// + /// Hooks client commands, will be fired when a player sends any command. + /// + /// The handler callback for the client command. + public Guid HookClientCommand( ClientCommandHandler handler ); + + /// + /// Unhooks a client command. + /// + /// The guid of the client command. + public void UnhookClientCommand( Guid guid ); + + /// + /// Hooks client chat, will be fired when a player sends any chat message. + /// + /// The handler callback for the client chat. + public Guid HookClientChat( ClientChatHandler handler ); + + /// + /// Unhooks a client chat. + /// + /// The guid of the client chat. + public void UnhookClientChat( Guid guid ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/ConsoleOutput/IConsoleOutputService.cs b/managed/src/SwiftlyS2.Shared/Modules/ConsoleOutput/IConsoleOutputService.cs index 5cbdd5da1..51194ad08 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/ConsoleOutput/IConsoleOutputService.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/ConsoleOutput/IConsoleOutputService.cs @@ -25,34 +25,34 @@ public interface IConsoleOutputService /// Gets whether console filtering is enabled. /// /// True if filtering is enabled, false otherwise. - bool IsFilterEnabled(); + public bool IsFilterEnabled(); /// /// Toggles the console filter on/off. /// - void ToggleFilter(); + public void ToggleFilter(); /// /// Reloads the filter configuration from file. /// - void ReloadFilterConfiguration(); + public void ReloadFilterConfiguration(); /// /// Checks if a message needs filtering. /// /// The message to check. /// True if the message should be filtered, false otherwise. - bool NeedsFiltering(string message); + public bool NeedsFiltering( string message ); /// /// Gets the counter text showing how many messages were filtered. /// /// The counter text. - string GetCounterText(); + public string GetCounterText(); /// /// Writes a message to the server console using the tier0 logging system. /// /// The message - void WriteToServerConsole(string message); + public void WriteToServerConsole( string message ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Convars/ConvarFlags.cs b/managed/src/SwiftlyS2.Shared/Modules/Convars/ConvarFlags.cs index 65ca39955..84623da81 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Convars/ConvarFlags.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Convars/ConvarFlags.cs @@ -3,166 +3,166 @@ namespace SwiftlyS2.Shared.Convars; [Flags] public enum ConvarFlags : ulong { - /// - /// The default, no flags at all - /// - NONE = 0UL, - - /// - /// Allows concommand callback chaining. When command is dispatched all chained callbacks would fire. - /// - LINKED_COMMAND = 1UL << 0, - - /// - /// Hidden in released products. Flag is removed automatically if ALLOW_DEVELOPMENT_CVARS is defined. - /// - DEVELOPMENT_ONLY = 1UL << 1, - - /// - /// Defined by the game DLL. - /// - GAMEDLL = 1UL << 2, - - /// - /// Defined by the client DLL. - /// - CLIENTDLL = 1UL << 3, - - /// - /// Hidden. Doesn't appear in find or auto complete. Like DEVELOPMENTONLY, but can't be compiled out. - /// - HIDDEN = 1UL << 4, - - /// - /// It's a server cvar, but we don't send the data since it's a password, etc. Sends 1 if it's not bland/zero, 0 otherwise as value. - /// - PROTECTED = 1UL << 5, - - /// - /// This cvar cannot be changed by clients connected to a multiplayer server. - /// - SPONLY = 1UL << 6, - - /// - /// Set to cause it to be saved to vars.rc. - /// - ARCHIVE = 1UL << 7, - - /// - /// Notifies players when changed. - /// - NOTIFY = 1UL << 8, - - /// - /// Changes the client's info string - /// - USERINFO = 1UL << 9, - - /// - /// Means cvar is a reference, usually used to get a cvar reference of a cvar registered in other module, - /// and is temporary until the actual cvar was registered. - /// - REFERENCE = 1UL << 10, - - /// - /// If this is a FCVAR_SERVER, don't log changes to the log file / console if we are creating a log. - /// - UNLOGGED = 1UL << 11, - - /// - /// Is set for a first convar SetValue either with its default_value or with a value from a gameinfo. - /// Mostly for callbacks to check for. - /// - INITIAL_SETVALUE = 1UL << 12, - - /// - /// Server setting enforced on clients. Values are replicated from server to clients. - /// - REPLICATED = 1UL << 13, - - /// - /// Only usable in singleplayer/debug or when sv_cheats is enabled. - /// - CHEAT = 1UL << 14, - - /// - /// Causes per-user variants (e.g. varname2..N for splitscreen) to be autogenerated. - /// - PER_USER = 1UL << 15, - - /// - /// Record this convar when starting a demo file. - /// - DEMO = 1UL << 16, - - /// - /// Do not record this command in demo files. - /// - DONTRECORD = 1UL << 17, - - /// - /// Set when cvar is executing callbacks; value sets during callbacks are queued until callbacks finish. - /// - PERFORMING_CALLBACKS = 1UL << 18, - - /// - /// Only cvars tagged with this are available to customers. - /// - RELEASE = 1UL << 19, - - /// - /// Show as a menu bar item. - /// - MENUBAR_ITEM = 1UL << 20, - - /// - /// If set via launch options, value will not be reset by ResetConVarsToDefaultValuesByFlag. - /// - COMMANDLINE_ENFORCED = 1UL << 21, - - /// - /// Cvar cannot be changed by a client that is connected to a server. - /// - NOT_CONNECTED = 1UL << 22, - - /// - /// Enable fuzzy matching in vconsole. - /// - VCONSOLE_FUZZY_MATCHING = 1UL << 23, - - /// - /// The server is allowed to execute this command on clients via ClientCommand/NET_StringCmd/CBaseClientState::ProcessStringCmd. - /// - SERVER_CAN_EXECUTE = 1UL << 24, - - /// - /// Assigned to commands to let clients execute them. - /// - CLIENT_CAN_EXECUTE = 1UL << 25, - - /// - /// If this is set, then the server is not allowed to query this cvar's value. - /// - SERVER_CANNOT_QUERY = 1UL << 26, - - /// - /// vconsole set focus. - /// - VCONSOLE_SET_FOCUS = 1UL << 27, - - /// - /// IVEngineClient::ClientCmd is allowed to execute this command. - /// - CLIENTCMD_CAN_EXECUTE = 1UL << 28, - - /// - /// Execute per tick. - /// - EXECUTE_PER_TICK = 1UL << 29, - - /// - /// Defensive flag. - /// - DEFENSIVE = 1UL << 32 + /// + /// The default, no flags at all + /// + NONE = 0UL, + + /// + /// Allows concommand callback chaining. When command is dispatched all chained callbacks would fire. + /// + LINKED_COMMAND = 1UL << 0, + + /// + /// Hidden in released products. Flag is removed automatically if ALLOW_DEVELOPMENT_CVARS is defined. + /// + DEVELOPMENT_ONLY = 1UL << 1, + + /// + /// Defined by the game DLL. + /// + GAMEDLL = 1UL << 2, + + /// + /// Defined by the client DLL. + /// + CLIENTDLL = 1UL << 3, + + /// + /// Hidden. Doesn't appear in find or auto complete. Like DEVELOPMENTONLY, but can't be compiled out. + /// + HIDDEN = 1UL << 4, + + /// + /// It's a server cvar, but we don't send the data since it's a password, etc. Sends 1 if it's not bland/zero, 0 otherwise as value. + /// + PROTECTED = 1UL << 5, + + /// + /// This cvar cannot be changed by clients connected to a multiplayer server. + /// + SPONLY = 1UL << 6, + + /// + /// Set to cause it to be saved to vars.rc. + /// + ARCHIVE = 1UL << 7, + + /// + /// Notifies players when changed. + /// + NOTIFY = 1UL << 8, + + /// + /// Changes the client's info string + /// + USERINFO = 1UL << 9, + + /// + /// Means cvar is a reference, usually used to get a cvar reference of a cvar registered in other module, + /// and is temporary until the actual cvar was registered. + /// + REFERENCE = 1UL << 10, + + /// + /// If this is a FCVAR_SERVER, don't log changes to the log file / console if we are creating a log. + /// + UNLOGGED = 1UL << 11, + + /// + /// Is set for a first convar SetValue either with its default_value or with a value from a gameinfo. + /// Mostly for callbacks to check for. + /// + INITIAL_SETVALUE = 1UL << 12, + + /// + /// Server setting enforced on clients. Values are replicated from server to clients. + /// + REPLICATED = 1UL << 13, + + /// + /// Only usable in singleplayer/debug or when sv_cheats is enabled. + /// + CHEAT = 1UL << 14, + + /// + /// Causes per-user variants (e.g. varname2..N for splitscreen) to be autogenerated. + /// + PER_USER = 1UL << 15, + + /// + /// Record this convar when starting a demo file. + /// + DEMO = 1UL << 16, + + /// + /// Do not record this command in demo files. + /// + DONTRECORD = 1UL << 17, + + /// + /// Set when cvar is executing callbacks; value sets during callbacks are queued until callbacks finish. + /// + PERFORMING_CALLBACKS = 1UL << 18, + + /// + /// Only cvars tagged with this are available to customers. + /// + RELEASE = 1UL << 19, + + /// + /// Show as a menu bar item. + /// + MENUBAR_ITEM = 1UL << 20, + + /// + /// If set via launch options, value will not be reset by ResetConVarsToDefaultValuesByFlag. + /// + COMMANDLINE_ENFORCED = 1UL << 21, + + /// + /// Cvar cannot be changed by a client that is connected to a server. + /// + NOT_CONNECTED = 1UL << 22, + + /// + /// Enable fuzzy matching in vconsole. + /// + VCONSOLE_FUZZY_MATCHING = 1UL << 23, + + /// + /// The server is allowed to execute this command on clients via ClientCommand/NET_StringCmd/CBaseClientState::ProcessStringCmd. + /// + SERVER_CAN_EXECUTE = 1UL << 24, + + /// + /// Assigned to commands to let clients execute them. + /// + CLIENT_CAN_EXECUTE = 1UL << 25, + + /// + /// If this is set, then the server is not allowed to query this cvar's value. + /// + SERVER_CANNOT_QUERY = 1UL << 26, + + /// + /// vconsole set focus. + /// + VCONSOLE_SET_FOCUS = 1UL << 27, + + /// + /// IVEngineClient::ClientCmd is allowed to execute this command. + /// + CLIENTCMD_CAN_EXECUTE = 1UL << 28, + + /// + /// Execute per tick. + /// + EXECUTE_PER_TICK = 1UL << 29, + + /// + /// Defensive flag. + /// + DEFENSIVE = 1UL << 32 } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Convars/IConVar.cs b/managed/src/SwiftlyS2.Shared/Modules/Convars/IConVar.cs index 4ad0ef09e..671840f32 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Convars/IConVar.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Convars/IConVar.cs @@ -1,93 +1,94 @@ namespace SwiftlyS2.Shared.Convars; -public interface IConVar { - /// - /// The value of the convar. - /// When setting, if the convar can be replicated, it will automatically replicate to all clients. - /// Also, setting value with this method will internally put it into a set queue, - /// Which means that for some special case ( e.g. setting sv_enablebunnyhopping inside a hook ) it won't work, - /// in such cases you should use the SetInternal method instead. - /// - T Value { get; set; } +public interface IConVar +{ + /// + /// The value of the convar. + /// When setting, if the convar can be replicated, it will automatically replicate to all clients. + /// Also, setting value with this method will internally put it into a set queue, + /// Which means that for some special case ( e.g. setting sv_enablebunnyhopping inside a hook ) it won't work, + /// in such cases you should use the SetInternal method instead. + /// + public T Value { get; set; } - /// - /// The max value of the convar. - /// - /// Thrown when the convar is not a min/max type or doesn't have a max value. - /// - T MaxValue { get; set; } + /// + /// The max value of the convar. + /// + /// Thrown when the convar is not a min/max type or doesn't have a max value. + /// + public T MaxValue { get; set; } - /// - /// The min value of the convar. - /// - /// Thrown when the convar is not a min/max type or doesn't have a min value. - /// - T MinValue { get; set; } + /// + /// The min value of the convar. + /// + /// Thrown when the convar is not a min/max type or doesn't have a min value. + /// + public T MinValue { get; set; } - /// - /// The default value of the convar. - /// - T DefaultValue { get; set; } + /// + /// The default value of the convar. + /// + public T DefaultValue { get; set; } - /// - /// Whether the convar has a default value. - /// - bool HasDefaultValue { get; } + /// + /// Whether the convar has a default value. + /// + public bool HasDefaultValue { get; } - /// - /// Whether the convar has a min value. - /// - bool HasMinValue { get; } + /// + /// Whether the convar has a min value. + /// + public bool HasMinValue { get; } - /// - /// Whether the convar has a max value. - /// - bool HasMaxValue { get; } + /// + /// Whether the convar has a max value. + /// + public bool HasMaxValue { get; } - /// - /// The flags of the convar. - /// - ConvarFlags Flags { get; set; } + /// + /// The flags of the convar. + /// + public ConvarFlags Flags { get; set; } - /// - /// Internally set the value of the convar. - /// Won't replicate the change to clients. - /// - /// The value to set. - void SetInternal(T value); + /// + /// Internally set the value of the convar. + /// Won't replicate the change to clients. + /// + /// The value to set. + public void SetInternal( T value ); - /// - /// Replicate the value of the convar to specified client. - /// - /// The client id to replicate to. - void ReplicateToClient(int clientId, T value); + /// + /// Replicate the value of the convar to specified client. + /// + /// The client id to replicate to. + public void ReplicateToClient( int clientId, T value ); - /// - /// Query the value of the convar from specified client. - /// - /// - /// The action to execute with the value. - void QueryClient(int clientId, Action callback); + /// + /// Query the value of the convar from specified client. + /// + /// + /// The action to execute with the value. + public void QueryClient( int clientId, Action callback ); - /// - /// Try to get the min value of the convar. - /// - /// The min value of the convar. - /// True if the min value is found, false otherwise. - bool TryGetMinValue(out T minValue); + /// + /// Try to get the min value of the convar. + /// + /// The min value of the convar. + /// True if the min value is found, false otherwise. + public bool TryGetMinValue( out T minValue ); - /// - /// Try to get the max value of the convar. - /// - /// The max value of the convar. - /// True if the max value is found, false otherwise. - bool TryGetMaxValue(out T maxValue); + /// + /// Try to get the max value of the convar. + /// + /// The max value of the convar. + /// True if the max value is found, false otherwise. + public bool TryGetMaxValue( out T maxValue ); - /// - /// Try to get the default value of the convar. - /// - /// The default value of the convar. - /// True if the default value is found, false otherwise. - bool TryGetDefaultValue(out T defaultValue); + /// + /// Try to get the default value of the convar. + /// + /// The default value of the convar. + /// True if the default value is found, false otherwise. + public bool TryGetDefaultValue( out T defaultValue ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Convars/IConVarService.cs b/managed/src/SwiftlyS2.Shared/Modules/Convars/IConVarService.cs index 38bbafd6a..ad1133848 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Convars/IConVarService.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Convars/IConVarService.cs @@ -1,61 +1,62 @@ namespace SwiftlyS2.Shared.Convars; -public interface IConVarService { - - /// - /// Find a existing convar by name. - /// - /// The type of the convar. - /// The name of the convar. - /// The convar if found, null otherwise. - IConVar? Find(string name); +public interface IConVarService +{ - /// - /// Create a new convar. - /// - /// The type of the convar. - /// The name of the convar. - /// The help message of the convar. - /// The default value of the convar. - /// The flags of the convar. - /// The created convar. - /// Reference to the created convar. - IConVar Create(string name, string helpMessage, T defaultValue, ConvarFlags flags = ConvarFlags.NONE); + /// + /// Find a existing convar by name. + /// + /// The type of the convar. + /// The name of the convar. + /// The convar if found, null otherwise. + public IConVar? Find( string name ); - /// - /// Create a new convar with min and max values. - /// - /// The type of the convar. - /// The name of the convar. - /// The help message of the convar. - /// The default value of the convar. - /// The flags of the convar. - /// The min value of the convar. - /// The max value of the convar. - /// The created convar. - IConVar Create(string name, string helpMessage, T defaultValue, T? minValue, T? maxValue, ConvarFlags flags = ConvarFlags.NONE) where T: unmanaged; + /// + /// Create a new convar. + /// + /// The type of the convar. + /// The name of the convar. + /// The help message of the convar. + /// The default value of the convar. + /// The flags of the convar. + /// The created convar. + /// Reference to the created convar. + public IConVar Create( string name, string helpMessage, T defaultValue, ConvarFlags flags = ConvarFlags.NONE ); - /// - /// Create a new convar or find an existing one by name. - /// - /// The type of the convar. - /// The name of the convar. - /// The help message of the convar. - /// The default value of the convar. - /// The flags of the convar. - /// The created or found convar. - IConVar CreateOrFind(string name, string helpMessage, T defaultValue, ConvarFlags flags = ConvarFlags.NONE); + /// + /// Create a new convar with min and max values. + /// + /// The type of the convar. + /// The name of the convar. + /// The help message of the convar. + /// The default value of the convar. + /// The flags of the convar. + /// The min value of the convar. + /// The max value of the convar. + /// The created convar. + public IConVar Create( string name, string helpMessage, T defaultValue, T? minValue, T? maxValue, ConvarFlags flags = ConvarFlags.NONE ) where T : unmanaged; - /// - /// Create a new convar or find an existing one by name with min and max values. - /// - /// The type of the convar. - /// The name of the convar. - /// The help message of the convar. - /// The default value of the convar. - /// The min value of the convar. - /// The max value of the convar. - /// The flags of the convar. - /// The created or found convar. - IConVar CreateOrFind(string name, string helpMessage, T defaultValue, T? minValue, T? maxValue, ConvarFlags flags = ConvarFlags.NONE) where T: unmanaged; + /// + /// Create a new convar or find an existing one by name. + /// + /// The type of the convar. + /// The name of the convar. + /// The help message of the convar. + /// The default value of the convar. + /// The flags of the convar. + /// The created or found convar. + public IConVar CreateOrFind( string name, string helpMessage, T defaultValue, ConvarFlags flags = ConvarFlags.NONE ); + + /// + /// Create a new convar or find an existing one by name with min and max values. + /// + /// The type of the convar. + /// The name of the convar. + /// The help message of the convar. + /// The default value of the convar. + /// The min value of the convar. + /// The max value of the convar. + /// The flags of the convar. + /// The created or found convar. + public IConVar CreateOrFind( string name, string helpMessage, T defaultValue, T? minValue, T? maxValue, ConvarFlags flags = ConvarFlags.NONE ) where T : unmanaged; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Database/IDatabaseService.cs b/managed/src/SwiftlyS2.Shared/Modules/Database/IDatabaseService.cs index cf2f1f8c9..7d20a65db 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Database/IDatabaseService.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Database/IDatabaseService.cs @@ -2,20 +2,21 @@ namespace SwiftlyS2.Shared.Database; -public interface IDatabaseService { +public interface IDatabaseService +{ - /// - /// Get the connection string for a given connection name. - /// - /// The name of the connection to get the connection string for. - /// The connection string for the given connection name. Return the default connection string if the connection name is not found. - string GetConnectionString(string connectionName); + /// + /// Get the connection string for a given connection name. + /// + /// The name of the connection to get the connection string for. + /// The connection string for the given connection name. Return the default connection string if the connection name is not found. + public string GetConnectionString( string connectionName ); - /// - /// Get a connection to the database. - /// - /// The name of the connection to get the connection for. - /// A connection to the database. Return the default connection if the connection name is not found. - IDbConnection GetConnection(string connectionName); + /// + /// Get a connection to the database. + /// + /// The name of the connection to get the connection for. + /// A connection to the database. Return the default connection if the connection name is not found. + public IDbConnection GetConnection( string connectionName ); } diff --git a/managed/src/SwiftlyS2.Shared/Modules/Engine/IEngineService.cs b/managed/src/SwiftlyS2.Shared/Modules/Engine/IEngineService.cs index 61f1f5a4d..2e79f96e2 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Engine/IEngineService.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Engine/IEngineService.cs @@ -16,6 +16,11 @@ public interface IEngineService [Obsolete("Use GlobalVars.MapName instead.")] public string Map { get; } + /// + /// Gets the Workshop ID of the current map. + /// + public string WorkshopId { get; } + /// /// Gets a reference to the global variables structure. /// diff --git a/managed/src/SwiftlyS2.Shared/Modules/Engine/ITraceManager.cs b/managed/src/SwiftlyS2.Shared/Modules/Engine/ITraceManager.cs index ddb21e25f..e500f1a0c 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Engine/ITraceManager.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Engine/ITraceManager.cs @@ -1,4 +1,4 @@ -using SwiftlyS2.Shared.Natives; +using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Shared.Services; @@ -15,7 +15,7 @@ public interface ITraceManager /// The trace filter used to determine which entities or surfaces are considered during the trace operation. /// A reference to a CGameTrace object that receives the results of the trace, including collision information and /// hit details. - public void TracePlayerBBox(Vector start, Vector end, BBox_t bounds, CTraceFilter filter, ref CGameTrace trace); + public void TracePlayerBBox( Vector start, Vector end, BBox_t bounds, CTraceFilter filter, ref CGameTrace trace ); /// /// Performs a trace operation from the specified start point to the end point using the given ray and filter, and /// populates the trace result with collision information. @@ -26,5 +26,5 @@ public interface ITraceManager /// The filter that determines which entities or surfaces are considered during the trace. /// A reference to a CGameTrace structure that receives the results of the trace, including hit information and /// surface details. - public void TraceShape(Vector start, Vector end, Ray_t ray, CTraceFilter filter, ref CGameTrace trace); + public void TraceShape( Vector start, Vector end, Ray_t ray, CTraceFilter filter, ref CGameTrace trace ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/EntitySystem/CEntityKeyValues.cs b/managed/src/SwiftlyS2.Shared/Modules/EntitySystem/CEntityKeyValues.cs index 1780641c9..2184cba24 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/EntitySystem/CEntityKeyValues.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/EntitySystem/CEntityKeyValues.cs @@ -6,237 +6,301 @@ namespace SwiftlyS2.Shared.EntitySystem; public class CEntityKeyValues : IDisposable { - private CEntityKeyValuesSafeHandle _handle; + private readonly CEntityKeyValuesSafeHandle _handle; - public CEntityKeyValues() { - _handle = new CEntityKeyValuesSafeHandle(NativeCEntityKeyValues.Allocate()); - } - - public void Dispose() { - _handle.Dispose(); - } - - public nint Address => _handle.Address; - - public void SetBool(string key, bool value) { - NativeCEntityKeyValues.SetBool(Address, key, value); - } - - public void SetInt32(string key, int value) { - NativeCEntityKeyValues.SetInt(Address, key, value); - } - - public void SetUInt32(string key, uint value) { - NativeCEntityKeyValues.SetUint(Address, key, value); - } - - public void SetInt64(string key, long value) { - NativeCEntityKeyValues.SetInt64(Address, key, value); - } - - public void SetUInt64(string key, ulong value) { - NativeCEntityKeyValues.SetUint64(Address, key, value); - } - - public void SetFloat(string key, float value) { - NativeCEntityKeyValues.SetFloat(Address, key, value); - } - - public void SetDouble(string key, double value) { - NativeCEntityKeyValues.SetDouble(Address, key, value); - } - - public void SetString(string key, string value) { - NativeCEntityKeyValues.SetString(Address, key, value); - } - - public void SetPtr(string key, nint value) { - NativeCEntityKeyValues.SetPtr(Address, key, value); - } - - public void SetStringToken(string key, CUtlStringToken value) { - NativeCEntityKeyValues.SetStringToken(Address, key, value); - } - - public void SetColor(string key, Color value) { - NativeCEntityKeyValues.SetColor(Address, key, value); - } - - public void SetVector(string key, Vector value) { - NativeCEntityKeyValues.SetVector(Address, key, value); - } - - public void SetVector2D(string key, Vector2D value) { - NativeCEntityKeyValues.SetVector2D(Address, key, value); - } - - public void SetVector4D(string key, Vector4D value) { - NativeCEntityKeyValues.SetVector4D(Address, key, value); - } - - public void SetQAngle(string key, QAngle value) { - NativeCEntityKeyValues.SetQAngle(Address, key, value); - } - - public bool GetBool(string key) { - return NativeCEntityKeyValues.GetBool(Address, key); - } - - public int GetInt32(string key) { - return NativeCEntityKeyValues.GetInt(Address, key); - } - - public uint GetUInt32(string key) { - return NativeCEntityKeyValues.GetUint(Address, key); - } - - public long GetInt64(string key) { - return NativeCEntityKeyValues.GetInt64(Address, key); - } - - public ulong GetUInt64(string key) { - return NativeCEntityKeyValues.GetUint64(Address, key); - } - - public float GetFloat(string key) { - return NativeCEntityKeyValues.GetFloat(Address, key); - } - - public double GetDouble(string key) { - return NativeCEntityKeyValues.GetDouble(Address, key); - } - - public string GetString(string key) { - return NativeCEntityKeyValues.GetString(Address, key); - } - - public nint GetPtr(string key) { - return NativeCEntityKeyValues.GetPtr(Address, key); - } - - public CUtlStringToken GetStringToken(string key) { - return NativeCEntityKeyValues.GetStringToken(Address, key); - } - - public Color GetColor(string key) { - return NativeCEntityKeyValues.GetColor(Address, key); - } - - public Vector GetVector(string key) { - return NativeCEntityKeyValues.GetVector(Address, key); - } - - public Vector2D GetVector2D(string key) { - return NativeCEntityKeyValues.GetVector2D(Address, key); - } + public CEntityKeyValues() + { + _handle = new CEntityKeyValuesSafeHandle(NativeCEntityKeyValues.Allocate()); + } - public Vector4D GetVector4D(string key) { - return NativeCEntityKeyValues.GetVector4D(Address, key); - } + public void Dispose() + { + _handle.Dispose(); + } - public QAngle GetQAngle(string key) { - return NativeCEntityKeyValues.GetQAngle(Address, key); - } + public nint Address => _handle.Address; - public void Set(string key, T value) { - if (value is bool boolValue) { - SetBool(key, boolValue); - } - else if (value is int intValue) { - SetInt32(key, intValue); - } - else if (value is uint uintValue) { - SetUInt32(key, uintValue); - } - else if (value is long longValue) { - SetInt64(key, longValue); + public void SetBool( string key, bool value ) + { + NativeCEntityKeyValues.SetBool(Address, key, value); } - else if (value is ulong ulongValue) { - SetUInt64(key, ulongValue); - } - else if (value is float floatValue) { - SetFloat(key, floatValue); + + public void SetInt32( string key, int value ) + { + NativeCEntityKeyValues.SetInt(Address, key, value); } - else if (value is double doubleValue) { - SetDouble(key, doubleValue); + + public void SetUInt32( string key, uint value ) + { + NativeCEntityKeyValues.SetUint(Address, key, value); } - else if (value is string stringValue) { - SetString(key, stringValue); + + public void SetInt64( string key, long value ) + { + NativeCEntityKeyValues.SetInt64(Address, key, value); } - else if (value is nint ptrValue) { - SetPtr(key, ptrValue); + + public void SetUInt64( string key, ulong value ) + { + NativeCEntityKeyValues.SetUint64(Address, key, value); } - else if (value is CUtlStringToken stringTokenValue) { - SetStringToken(key, stringTokenValue); + + public void SetFloat( string key, float value ) + { + NativeCEntityKeyValues.SetFloat(Address, key, value); } - else if (value is Color colorValue) { - SetColor(key, colorValue); + + public void SetDouble( string key, double value ) + { + NativeCEntityKeyValues.SetDouble(Address, key, value); } - else if (value is Vector vectorValue) { - SetVector(key, vectorValue); + + public void SetString( string key, string value ) + { + NativeCEntityKeyValues.SetString(Address, key, value); } - else if (value is Vector2D vector2DValue) { - SetVector2D(key, vector2DValue); + + public void SetPtr( string key, nint value ) + { + NativeCEntityKeyValues.SetPtr(Address, key, value); } - else if (value is Vector4D vector4DValue) { - SetVector4D(key, vector4DValue); + + public void SetStringToken( string key, CUtlStringToken value ) + { + NativeCEntityKeyValues.SetStringToken(Address, key, value); } - else if (value is QAngle qAngleValue) { - SetQAngle(key, qAngleValue); + + public void SetColor( string key, Color value ) + { + NativeCEntityKeyValues.SetColor(Address, key, value); } - else { - throw new InvalidOperationException($"Unsupported type: {typeof(T).Name}"); + + public void SetVector( string key, Vector value ) + { + NativeCEntityKeyValues.SetVector(Address, key, value); } - } - public T Get(string key) { - if (typeof(T) == typeof(bool)) { - return (T)(object)GetBool(key); + public void SetVector2D( string key, Vector2D value ) + { + NativeCEntityKeyValues.SetVector2D(Address, key, value); } - else if (typeof(T) == typeof(int)) { - return (T)(object)GetInt32(key); + + public void SetVector4D( string key, Vector4D value ) + { + NativeCEntityKeyValues.SetVector4D(Address, key, value); } - else if (typeof(T) == typeof(uint)) { - return (T)(object)GetUInt32(key); + + public void SetQAngle( string key, QAngle value ) + { + NativeCEntityKeyValues.SetQAngle(Address, key, value); } - else if (typeof(T) == typeof(long)) { - return (T)(object)GetInt64(key); + + public bool GetBool( string key ) + { + return NativeCEntityKeyValues.GetBool(Address, key); } - else if (typeof(T) == typeof(ulong)) { - return (T)(object)GetUInt64(key); + + public int GetInt32( string key ) + { + return NativeCEntityKeyValues.GetInt(Address, key); } - else if (typeof(T) == typeof(float)) { - return (T)(object)GetFloat(key); + + public uint GetUInt32( string key ) + { + return NativeCEntityKeyValues.GetUint(Address, key); } - else if (typeof(T) == typeof(double)) { - return (T)(object)GetDouble(key); + + public long GetInt64( string key ) + { + return NativeCEntityKeyValues.GetInt64(Address, key); } - else if (typeof(T) == typeof(string)) { - return (T)(object)GetString(key); + + public ulong GetUInt64( string key ) + { + return NativeCEntityKeyValues.GetUint64(Address, key); } - else if (typeof(T) == typeof(nint)) { - return (T)(object)GetPtr(key); + + public float GetFloat( string key ) + { + return NativeCEntityKeyValues.GetFloat(Address, key); } - else if (typeof(T) == typeof(CUtlStringToken)) { - return (T)(object)GetStringToken(key); + + public double GetDouble( string key ) + { + return NativeCEntityKeyValues.GetDouble(Address, key); } - else if (typeof(T) == typeof(Color)) { - return (T)(object)GetColor(key); + + public string GetString( string key ) + { + return NativeCEntityKeyValues.GetString(Address, key); } - else if (typeof(T) == typeof(Vector)) { - return (T)(object)GetVector(key); + + public nint GetPtr( string key ) + { + return NativeCEntityKeyValues.GetPtr(Address, key); } - else if (typeof(T) == typeof(Vector2D)) { - return (T)(object)GetVector2D(key); + + public CUtlStringToken GetStringToken( string key ) + { + return NativeCEntityKeyValues.GetStringToken(Address, key); } - else if (typeof(T) == typeof(Vector4D)) { - return (T)(object)GetVector4D(key); + + public Color GetColor( string key ) + { + return NativeCEntityKeyValues.GetColor(Address, key); } - else if (typeof(T) == typeof(QAngle)) { - return (T)(object)GetQAngle(key); + + public Vector GetVector( string key ) + { + return NativeCEntityKeyValues.GetVector(Address, key); } - else { - throw new InvalidOperationException($"Unsupported type: {typeof(T).Name}"); + + public Vector2D GetVector2D( string key ) + { + return NativeCEntityKeyValues.GetVector2D(Address, key); + } + + public Vector4D GetVector4D( string key ) + { + return NativeCEntityKeyValues.GetVector4D(Address, key); + } + + public QAngle GetQAngle( string key ) + { + return NativeCEntityKeyValues.GetQAngle(Address, key); + } + + public void Set( string key, T value ) + { + if (value is bool boolValue) + { + SetBool(key, boolValue); + } + else if (value is int intValue) + { + SetInt32(key, intValue); + } + else if (value is uint uintValue) + { + SetUInt32(key, uintValue); + } + else if (value is long longValue) + { + SetInt64(key, longValue); + } + else if (value is ulong ulongValue) + { + SetUInt64(key, ulongValue); + } + else if (value is float floatValue) + { + SetFloat(key, floatValue); + } + else if (value is double doubleValue) + { + SetDouble(key, doubleValue); + } + else if (value is string stringValue) + { + SetString(key, stringValue); + } + else if (value is nint ptrValue) + { + SetPtr(key, ptrValue); + } + else if (value is CUtlStringToken stringTokenValue) + { + SetStringToken(key, stringTokenValue); + } + else if (value is Color colorValue) + { + SetColor(key, colorValue); + } + else if (value is Vector vectorValue) + { + SetVector(key, vectorValue); + } + else if (value is Vector2D vector2DValue) + { + SetVector2D(key, vector2DValue); + } + else if (value is Vector4D vector4DValue) + { + SetVector4D(key, vector4DValue); + } + else if (value is QAngle qAngleValue) + { + SetQAngle(key, qAngleValue); + } + else + { + throw new InvalidOperationException($"Unsupported type: {typeof(T).Name}"); + } + } + + public T Get( string key ) + { + if (typeof(T) == typeof(bool)) + { + return (T)(object)GetBool(key); + } + else if (typeof(T) == typeof(int)) + { + return (T)(object)GetInt32(key); + } + else if (typeof(T) == typeof(uint)) + { + return (T)(object)GetUInt32(key); + } + else if (typeof(T) == typeof(long)) + { + return (T)(object)GetInt64(key); + } + else if (typeof(T) == typeof(ulong)) + { + return (T)(object)GetUInt64(key); + } + else if (typeof(T) == typeof(float)) + { + return (T)(object)GetFloat(key); + } + else if (typeof(T) == typeof(double)) + { + return (T)(object)GetDouble(key); + } + else if (typeof(T) == typeof(string)) + { + return (T)(object)GetString(key); + } + else if (typeof(T) == typeof(nint)) + { + return (T)(object)GetPtr(key); + } + else if (typeof(T) == typeof(CUtlStringToken)) + { + return (T)(object)GetStringToken(key); + } + else if (typeof(T) == typeof(Color)) + { + return (T)(object)GetColor(key); + } + else if (typeof(T) == typeof(Vector)) + { + return (T)(object)GetVector(key); + } + else if (typeof(T) == typeof(Vector2D)) + { + return (T)(object)GetVector2D(key); + } + else if (typeof(T) == typeof(Vector4D)) + { + return (T)(object)GetVector4D(key); + } + else + { + return typeof(T) == typeof(QAngle) + ? (T)(object)GetQAngle(key) + : throw new InvalidOperationException($"Unsupported type: {typeof(T).Name}"); + } } - } } diff --git a/managed/src/SwiftlyS2.Shared/Modules/EntitySystem/CEntityKeyValuesSafeHandle.cs b/managed/src/SwiftlyS2.Shared/Modules/EntitySystem/CEntityKeyValuesSafeHandle.cs index 0aa38e68a..08536e40c 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/EntitySystem/CEntityKeyValuesSafeHandle.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/EntitySystem/CEntityKeyValuesSafeHandle.cs @@ -3,13 +3,16 @@ namespace SwiftlyS2.Shared.EntitySystem; -internal class CEntityKeyValuesSafeHandle : AllocableNativeHandle { +internal class CEntityKeyValuesSafeHandle : AllocableNativeHandle +{ - public CEntityKeyValuesSafeHandle(nint handle) : base(handle, ownsHandle: true) { - } + public CEntityKeyValuesSafeHandle( nint handle ) : base(handle, ownsHandle: true) + { + } - protected override bool Free() { - NativeCEntityKeyValues.Deallocate(Address); - return true; - } + protected override bool Free() + { + NativeCEntityKeyValues.Deallocate(Address); + return true; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/EntitySystem/IEntitySystem.cs b/managed/src/SwiftlyS2.Shared/Modules/EntitySystem/IEntitySystem.cs index 201fefe76..d1e2cb28d 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/EntitySystem/IEntitySystem.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/EntitySystem/IEntitySystem.cs @@ -5,96 +5,97 @@ namespace SwiftlyS2.Shared.EntitySystem; -public interface IEntitySystemService { +public interface IEntitySystemService +{ - /// - /// Create an entity by class. - /// - /// Entity type. - /// Created entity. - /// Thrown when failed to create entity by class or class doesn't have a designer name. - public T CreateEntity() where T : class, ISchemaClass; + /// + /// Create an entity by class. + /// + /// Entity type. + /// Created entity. + /// Thrown when failed to create entity by class or class doesn't have a designer name. + public T CreateEntity() where T : class, ISchemaClass; - /// - /// Create an entity by designer name. - /// - /// Entity type. - /// Designer name. - /// Created entity. - /// Thrown when failed to create entity by designer name or designer name is invalid. - public T CreateEntityByDesignerName(string designerName) where T : ISchemaClass; + /// + /// Create an entity by designer name. + /// + /// Entity type. + /// Designer name. + /// Created entity. + /// Thrown when failed to create entity by designer name or designer name is invalid. + public T CreateEntityByDesignerName( string designerName ) where T : ISchemaClass; - /// - /// Get a reference handle to the entity. - /// - /// Entity type. - /// Entity instance. - /// Reference entity handle to the entity. - public CHandle GetRefEHandle(T entity) where T : class, ISchemaClass; + /// + /// Get a reference handle to the entity. + /// + /// Entity type. + /// Entity instance. + /// Reference entity handle to the entity. + public CHandle GetRefEHandle( T entity ) where T : class, ISchemaClass; - /// - /// Get the game rules entity. - /// - /// Game rules entity. Nullable. - public CCSGameRules? GetGameRules(); + /// + /// Get the game rules entity. + /// + /// Game rules entity. Nullable. + public CCSGameRules? GetGameRules(); - /// - /// Get all entities. - /// - /// All entities. - public IEnumerable GetAllEntities(); + /// + /// Get all entities. + /// + /// All entities. + public IEnumerable GetAllEntities(); - /// - /// Get all entities by class. - /// - /// Entity type. - /// All entities by class. - public IEnumerable GetAllEntitiesByClass() where T : class, ISchemaClass; + /// + /// Get all entities by class. + /// + /// Entity type. + /// All entities by class. + public IEnumerable GetAllEntitiesByClass() where T : class, ISchemaClass; - /// - /// Get all entities by designer name, and cast to type T. - /// - /// Entity type. - /// Designer name. - /// All entities by designer name. - public IEnumerable GetAllEntitiesByDesignerName(string designerName) where T : class, ISchemaClass; + /// + /// Get all entities by designer name, and cast to type T. + /// + /// Entity type. + /// Designer name. + /// All entities by designer name. + public IEnumerable GetAllEntitiesByDesignerName( string designerName ) where T : class, ISchemaClass; - /// - /// Get an entity by index. - /// - /// Entity type. - /// Entity index. - /// Entity by index. Nullable. - public T? GetEntityByIndex(uint index) where T : class, ISchemaClass; - - /// - /// Represents a method that handles an entity output event, allowing custom logic to be executed when an entity - /// triggers an output. - /// - /// The entity output object that contains information about the triggered output. - /// The name of the output that was triggered. - /// The entity instance that activated the output. - /// The entity instance that called the output, if applicable. - /// The delay, in seconds, before the output is executed. - /// A value indicating the result of the handler's execution, such as whether the output - /// should proceed or be blocked. - delegate HookResult EntityOutputHandler(CEntityIOOutput entityIO, string outputName, CEntityInstance activator, CEntityInstance caller, float delay); + /// + /// Get an entity by index. + /// + /// Entity type. + /// Entity index. + /// Entity by index. Nullable. + public T? GetEntityByIndex( uint index ) where T : class, ISchemaClass; - /// - /// Hooks an output of the specified entity type to a callback function. - /// - /// This method allows you to attach a handler to a specific output of an entity. The callback will - /// be invoked whenever the output is triggered. - /// The type of the entity, which must implement . - /// The name of the output to hook. This value cannot be or empty. - /// The callback function to invoke when the output is triggered. This value cannot be . - /// A that uniquely identifies the hook. This identifier can be used to manage or remove the hook. - public Guid HookEntityOutput(string outputName, EntityOutputHandler callback) where T : class, ISchemaClass; + /// + /// Represents a method that handles an entity output event, allowing custom logic to be executed when an entity + /// triggers an output. + /// + /// The entity output object that contains information about the triggered output. + /// The name of the output that was triggered. + /// The entity instance that activated the output. + /// The entity instance that called the output, if applicable. + /// The delay, in seconds, before the output is executed. + /// A value indicating the result of the handler's execution, such as whether the output + /// should proceed or be blocked. + public delegate HookResult EntityOutputHandler( CEntityIOOutput entityIO, string outputName, CEntityInstance activator, CEntityInstance caller, float delay ); - /// - /// Removes the association between the specified entity output and its handler. - /// - /// The unique identifier of the entity output to unhook. - public void UnhookEntityOutput(Guid guid); + /// + /// Hooks an output of the specified entity type to a callback function. + /// + /// This method allows you to attach a handler to a specific output of an entity. The callback will + /// be invoked whenever the output is triggered. + /// The type of the entity, which must implement . + /// The name of the output to hook. This value cannot be or empty. + /// The callback function to invoke when the output is triggered. This value cannot be . + /// A that uniquely identifies the hook. This identifier can be used to manage or remove the hook. + public Guid HookEntityOutput( string outputName, EntityOutputHandler callback ) where T : class, ISchemaClass; + + /// + /// Removes the association between the specified entity output and its handler. + /// + /// The unique identifier of the entity output to unhook. + public void UnhookEntityOutput( Guid guid ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/ClientKind.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/ClientKind.cs index d6a3a82d5..352b61153 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/ClientKind.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/ClientKind.cs @@ -1,7 +1,8 @@ namespace SwiftlyS2.Shared.Events; -public enum ClientKind { - Player = 0, - Bot = 1, - Unknown = 2 -} \ No newline at end of file +public enum ClientKind +{ + Player = 0, + Bot = 1, + Unknown = 2 +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventDelegates.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventDelegates.cs index 28d45ac46..1ab23b02f 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventDelegates.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventDelegates.cs @@ -6,143 +6,154 @@ namespace SwiftlyS2.Shared.Events; public class EventDelegates { - /// - /// Called when game has processed a tick. Won't be called if the server is in hibernation. - /// This callback is a hot path, be careful with it and don't do anything expensive. - /// - public delegate void OnTick(); - - /// - /// Called when Steam API is activated. - /// - public delegate void OnSteamAPIActivated(); - - /// - /// Called when a client connects to the server. - /// - public delegate void OnClientConnected( IOnClientConnectedEvent @event ); - - /// - /// Called when a client disconnects from the server. - /// - public delegate void OnClientDisconnected( IOnClientDisconnectedEvent @event ); - - /// - /// Called when a client's key state changes. - /// - public delegate void OnClientKeyStateChanged( IOnClientKeyStateChangedEvent @event ); - - /// - /// Called when a client is fully put in server. - /// - public delegate void OnClientPutInServer( IOnClientPutInServerEvent @event ); - - /// - /// Called when a client is authorized by Steam. - /// - public delegate void OnClientSteamAuthorize( IOnClientSteamAuthorizeEvent @event ); - - /// - /// Called when a client's Steam authorization fails. - /// - public delegate void OnClientSteamAuthorizeFail( IOnClientSteamAuthorizeFailEvent @event ); - - /// - /// Called when an entity is created. - /// - public delegate void OnEntityCreated( IOnEntityCreatedEvent @event ); - - /// - /// Called when an entity is deleted. - /// - public delegate void OnEntityDeleted( IOnEntityDeletedEvent @event ); - - /// - /// Called when an entity's parent changes. - /// - public delegate void OnEntityParentChanged( IOnEntityParentChangedEvent @event ); - - /// - /// Called when an entity is spawned. - /// - public delegate void OnEntitySpawned( IOnEntitySpawnedEvent @event ); - - /// - /// Called when a map is loaded. - /// - public delegate void OnMapLoad( IOnMapLoadEvent @event ); - - /// - /// Called when a map is unloaded. - /// - public delegate void OnMapUnload( IOnMapUnloadEvent @event ); - - /// - /// Called when a client processes user commands. - /// This callback is a hot path, be careful with it and don't do anything expensive. - /// - public delegate void OnClientProcessUsercmds( IOnClientProcessUsercmdsEvent @event ); - - /// - /// Called when a ConVar value is changed. - /// - public delegate void OnConVarValueChanged( IOnConVarValueChanged @event ); - - /// - /// Called when a ConCommand is created. - /// - public delegate void OnConCommandCreated( IOnConCommandCreated @event ); - - /// - /// Called when a ConVar is created. - /// - public delegate void OnConVarCreated( IOnConVarCreated @event ); - - /// - /// Called when an entity takes damage. - /// - public delegate void OnEntityTakeDamage( IOnEntityTakeDamageEvent @event ); - - /// - /// Called when the game is precaching resources. - /// - public delegate void OnPrecacheResource( IOnPrecacheResourceEvent @event ); - - [Obsolete("OnEntityTouchHook is deprecated. Use OnEntityStartTouch, OnEntityTouch, or OnEntityEndTouch instead.")] - public delegate void OnEntityTouchHook( IOnEntityTouchHookEvent @event ); - - /// - /// Called when an entity starts touching another entity. - /// - public delegate void OnEntityStartTouch( IOnEntityStartTouchEvent @event ); - - /// - /// Called when an entity is touching another entity. - /// - public delegate void OnEntityTouch( IOnEntityTouchEvent @event ); - - /// - /// Called when an entity ends touching another entity. - /// - public delegate void OnEntityEndTouch( IOnEntityEndTouchEvent @event ); - - /// - /// Called when an item services can acquire hook is triggered. - /// - public delegate void OnItemServicesCanAcquireHook( IOnItemServicesCanAcquireHookEvent @event ); - - /// - /// Called when a weapon services can use hook is triggered. - /// - public delegate void OnWeaponServicesCanUseHook( IOnWeaponServicesCanUseHookEvent @event ); - - /// - /// Called when a console output is received. - /// - public delegate void OnConsoleOutput( IOnConsoleOutputEvent @event ); - - /// - /// Called when a command is executed. - /// - public delegate void OnCommandExecuteHook( IOnCommandExecuteHookEvent @event ); + /// + /// Called when game has processed a tick. Won't be called if the server is in hibernation. + /// This callback is a hot path, be careful with it and don't do anything expensive. + /// + public delegate void OnTick(); + + /// + /// Called when the world is updated. This happens even in hibernation. + /// This callback is a hot path, be careful with it and don't do anything expensive. + /// + public delegate void OnWorldUpdate(); + + /// + /// Called when Steam API is activated. + /// + public delegate void OnSteamAPIActivated(); + + /// + /// Called when a client connects to the server. + /// + public delegate void OnClientConnected( IOnClientConnectedEvent @event ); + + /// + /// Called when a client disconnects from the server. + /// + public delegate void OnClientDisconnected( IOnClientDisconnectedEvent @event ); + + /// + /// Called when a client's key state changes. + /// + public delegate void OnClientKeyStateChanged( IOnClientKeyStateChangedEvent @event ); + + /// + /// Called when a client is fully put in server. + /// + public delegate void OnClientPutInServer( IOnClientPutInServerEvent @event ); + + /// + /// Called when a client is authorized by Steam. + /// + public delegate void OnClientSteamAuthorize( IOnClientSteamAuthorizeEvent @event ); + + /// + /// Called when a client's Steam authorization fails. + /// + public delegate void OnClientSteamAuthorizeFail( IOnClientSteamAuthorizeFailEvent @event ); + + /// + /// Called when an entity is created. + /// + public delegate void OnEntityCreated( IOnEntityCreatedEvent @event ); + + /// + /// Called when an entity is deleted. + /// + public delegate void OnEntityDeleted( IOnEntityDeletedEvent @event ); + + /// + /// Called when an entity's parent changes. + /// + public delegate void OnEntityParentChanged( IOnEntityParentChangedEvent @event ); + + /// + /// Called when an entity is spawned. + /// + public delegate void OnEntitySpawned( IOnEntitySpawnedEvent @event ); + + /// + /// Called when a map is loaded. + /// + public delegate void OnMapLoad( IOnMapLoadEvent @event ); + + /// + /// Called when a map is unloaded. + /// + public delegate void OnMapUnload( IOnMapUnloadEvent @event ); + + /// + /// Called when a client processes user commands. + /// This callback is a hot path, be careful with it and don't do anything expensive. + /// + public delegate void OnClientProcessUsercmds( IOnClientProcessUsercmdsEvent @event ); + + /// + /// Called when a ConVar value is changed. + /// + public delegate void OnConVarValueChanged( IOnConVarValueChanged @event ); + + /// + /// Called when a ConCommand is created. + /// + public delegate void OnConCommandCreated( IOnConCommandCreated @event ); + + /// + /// Called when a ConVar is created. + /// + public delegate void OnConVarCreated( IOnConVarCreated @event ); + + /// + /// Called when an entity takes damage. + /// + public delegate void OnEntityTakeDamage( IOnEntityTakeDamageEvent @event ); + + /// + /// Called when the game is precaching resources. + /// + public delegate void OnPrecacheResource( IOnPrecacheResourceEvent @event ); + + [Obsolete("OnEntityTouchHook is deprecated. Use OnEntityStartTouch, OnEntityTouch, or OnEntityEndTouch instead.")] + public delegate void OnEntityTouchHook( IOnEntityTouchHookEvent @event ); + + /// + /// Called when an entity starts touching another entity. + /// + public delegate void OnEntityStartTouch( IOnEntityStartTouchEvent @event ); + + /// + /// Called when an entity is touching another entity. + /// + public delegate void OnEntityTouch( IOnEntityTouchEvent @event ); + + /// + /// Called when an entity ends touching another entity. + /// + public delegate void OnEntityEndTouch( IOnEntityEndTouchEvent @event ); + + /// + /// Called when an item services can acquire hook is triggered. + /// + public delegate void OnItemServicesCanAcquireHook( IOnItemServicesCanAcquireHookEvent @event ); + + /// + /// Called when a weapon services can use hook is triggered. + /// + public delegate void OnWeaponServicesCanUseHook( IOnWeaponServicesCanUseHookEvent @event ); + + /// + /// Called when a console output is received. + /// + public delegate void OnConsoleOutput( IOnConsoleOutputEvent @event ); + + /// + /// Called when a command is executed. + /// + public delegate void OnCommandExecuteHook( IOnCommandExecuteHookEvent @event ); + + /// + /// Called when the movement services run command hook is triggered. + /// + public delegate void OnMovementServicesRunCommandHook( IOnMovementServicesRunCommandHookEvent @event ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventHandlerAttribute.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventHandlerAttribute.cs index 56bff4dcb..f5eccb376 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventHandlerAttribute.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventHandlerAttribute.cs @@ -1,10 +1,12 @@ namespace SwiftlyS2.Shared.Events; [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] -public class EventListener : Attribute where T : Delegate { +public class EventListener : Attribute where T : Delegate +{ - public EventListener() { - } + public EventListener() + { + } } diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientConnectedEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientConnectedEvent.cs index 582bd5409..54cc950b5 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientConnectedEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientConnectedEvent.cs @@ -5,17 +5,18 @@ namespace SwiftlyS2.Shared.Events; /// /// Called when a client connects to the server. /// -public interface IOnClientConnectedEvent { +public interface IOnClientConnectedEvent +{ - /// - /// The player ID of the client that connected. - /// - public int PlayerId { get; } + /// + /// The player ID of the client that connected. + /// + public int PlayerId { get; } + + /// + /// The result of the event. + /// Set this to to prevent player from joining in. + /// + public HookResult Result { get; set; } - /// - /// The result of the event. - /// Set this to to prevent player from joining in. - /// - public HookResult Result { get; set; } - } diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientDisconnectedEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientDisconnectedEvent.cs index b61a33eb7..94ed456c9 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientDisconnectedEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientDisconnectedEvent.cs @@ -5,16 +5,17 @@ namespace SwiftlyS2.Shared.Events; /// /// Called when a client disconnects from the server. /// -public interface IOnClientDisconnectedEvent { +public interface IOnClientDisconnectedEvent +{ - /// - /// The player ID of the client that disconnected. - /// - public int PlayerId { get; } + /// + /// The player ID of the client that disconnected. + /// + public int PlayerId { get; } - /// - /// The reason for the client to disconnect. - /// - public ENetworkDisconnectionReason Reason { get; } -} \ No newline at end of file + /// + /// The reason for the client to disconnect. + /// + public ENetworkDisconnectionReason Reason { get; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientKeyStateChangedEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientKeyStateChangedEvent.cs index 71db57905..34d7251fb 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientKeyStateChangedEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientKeyStateChangedEvent.cs @@ -3,20 +3,21 @@ namespace SwiftlyS2.Shared.Events; /// /// Called when a client's key state changes. /// -public interface IOnClientKeyStateChangedEvent { +public interface IOnClientKeyStateChangedEvent +{ - /// - /// The player ID of the client that changed their key state. - /// - public int PlayerId { get; } + /// + /// The player ID of the client that changed their key state. + /// + public int PlayerId { get; } - /// - /// The key that was pressed or released. - /// - public KeyKind Key { get; } + /// + /// The key that was pressed or released. + /// + public KeyKind Key { get; } - /// - /// Whether the key was pressed or released. - /// - public bool Pressed { get; } -} \ No newline at end of file + /// + /// Whether the key was pressed or released. + /// + public bool Pressed { get; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientProcessUsercmdsEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientProcessUsercmdsEvent.cs index afb7a504a..9b1ca86ee 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientProcessUsercmdsEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientProcessUsercmdsEvent.cs @@ -6,25 +6,26 @@ namespace SwiftlyS2.Shared.Events; /// Called when a client processes user commands. /// This callback is a hot path, be careful with it and don't do anything expensive. /// -public interface IOnClientProcessUsercmdsEvent { +public interface IOnClientProcessUsercmdsEvent +{ - /// - /// The player ID of the client that processed the user commands. - /// - public int PlayerId { get; } + /// + /// The player ID of the client that processed the user commands. + /// + public int PlayerId { get; } - /// - /// The user commands that the client processed. - /// - public List Usercmds { get; } + /// + /// The user commands that the client processed. + /// + public List Usercmds { get; } - /// - /// Whether the client is paused. - /// - public bool Paused { get; } + /// + /// Whether the client is paused. + /// + public bool Paused { get; } - /// - /// The margin of the client, milliseconds. - /// - public float Margin { get; } + /// + /// The margin of the client, milliseconds. + /// + public float Margin { get; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientPutInServerEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientPutInServerEvent.cs index 72bc81bf2..784f15cf5 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientPutInServerEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientPutInServerEvent.cs @@ -3,15 +3,16 @@ namespace SwiftlyS2.Shared.Events; /// /// Called when a client is put in the server. /// -public interface IOnClientPutInServerEvent { +public interface IOnClientPutInServerEvent +{ - /// - /// The player ID of the client that was put in the server. - /// - public int PlayerId { get; } + /// + /// The player ID of the client that was put in the server. + /// + public int PlayerId { get; } - /// - /// The kind of client that was put in the server. - /// - public ClientKind Kind { get; } -} \ No newline at end of file + /// + /// The kind of client that was put in the server. + /// + public ClientKind Kind { get; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientSteamAuthorizeEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientSteamAuthorizeEvent.cs index 9bcc016e1..d69a6bbaa 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientSteamAuthorizeEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientSteamAuthorizeEvent.cs @@ -3,10 +3,11 @@ namespace SwiftlyS2.Shared.Events; /// /// Called when a client is authorized via Steam. /// -public interface IOnClientSteamAuthorizeEvent { +public interface IOnClientSteamAuthorizeEvent +{ - /// - /// The player ID of the client that was authorized. - /// - public int PlayerId { get; } -} \ No newline at end of file + /// + /// The player ID of the client that was authorized. + /// + public int PlayerId { get; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientSteamAuthorizeFailEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientSteamAuthorizeFailEvent.cs index 8e6b06588..70ff6bfc5 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientSteamAuthorizeFailEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnClientSteamAuthorizeFailEvent.cs @@ -3,10 +3,11 @@ namespace SwiftlyS2.Shared.Events; /// /// Called when a client's Steam authorization fails. /// -public interface IOnClientSteamAuthorizeFailEvent { +public interface IOnClientSteamAuthorizeFailEvent +{ - /// - /// The player ID of the client that failed to authorize. - /// - public int PlayerId { get; } -} \ No newline at end of file + /// + /// The player ID of the client that failed to authorize. + /// + public int PlayerId { get; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnCommandExecuteHookEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnCommandExecuteHookEvent.cs index 9a800e7d7..f2111adef 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnCommandExecuteHookEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnCommandExecuteHookEvent.cs @@ -8,13 +8,13 @@ namespace SwiftlyS2.Shared.Events; /// public interface IOnCommandExecuteHookEvent { - /// - /// The command. - /// - public ref CCommand Command { get; } + /// + /// The command. + /// + public ref CCommand Command { get; } - /// - /// The hook mode. - /// - public HookMode HookMode { get; } + /// + /// The hook mode. + /// + public HookMode HookMode { get; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnConsoleOutputEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnConsoleOutputEvent.cs index 84ac21031..0380d63c6 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnConsoleOutputEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnConsoleOutputEvent.cs @@ -3,10 +3,11 @@ namespace SwiftlyS2.Shared.Events; /// /// Called when a console output is received. /// -public interface IOnConsoleOutputEvent { +public interface IOnConsoleOutputEvent +{ - /// - /// The message of the console output. - /// - public string Message { get; } + /// + /// The message of the console output. + /// + public string Message { get; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityCreatedEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityCreatedEvent.cs index 0f891eaf2..0a9eea5a5 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityCreatedEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityCreatedEvent.cs @@ -5,11 +5,12 @@ namespace SwiftlyS2.Shared.Events; /// /// Called when an entity is created. /// -public interface IOnEntityCreatedEvent { +public interface IOnEntityCreatedEvent +{ - /// - /// The entity that was created. - /// The entity is not fully initialized when this event is called, better do things on next tick and also add a validity check there. - /// - public CEntityInstance Entity { get; } -} \ No newline at end of file + /// + /// The entity that was created. + /// The entity is not fully initialized when this event is called, better do things on next tick and also add a validity check there. + /// + public CEntityInstance Entity { get; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityDeletedEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityDeletedEvent.cs index 175d2657c..14131547b 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityDeletedEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityDeletedEvent.cs @@ -5,10 +5,11 @@ namespace SwiftlyS2.Shared.Events; /// /// Called when an entity is deleted. /// -public interface IOnEntityDeletedEvent { +public interface IOnEntityDeletedEvent +{ - /// - /// The entity that was deleted. - /// - public CEntityInstance Entity { get; } -} \ No newline at end of file + /// + /// The entity that was deleted. + /// + public CEntityInstance Entity { get; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityParentChangedEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityParentChangedEvent.cs index 180c62b18..ced7eba16 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityParentChangedEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityParentChangedEvent.cs @@ -5,15 +5,16 @@ namespace SwiftlyS2.Shared.Events; /// /// Called when an entity's parent changes. /// -public interface IOnEntityParentChangedEvent { +public interface IOnEntityParentChangedEvent +{ - /// - /// The entity that had its parent changed. - /// - public CEntityInstance Entity { get; } + /// + /// The entity that had its parent changed. + /// + public CEntityInstance Entity { get; } - /// - /// The new parent of the entity. - /// - public CEntityInstance? NewParent { get; } -} \ No newline at end of file + /// + /// The new parent of the entity. + /// + public CEntityInstance? NewParent { get; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntitySpawnedEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntitySpawnedEvent.cs index 7760239c5..082b17f82 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntitySpawnedEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntitySpawnedEvent.cs @@ -5,10 +5,11 @@ namespace SwiftlyS2.Shared.Events; /// /// Called when an entity is spawned. /// -public interface IOnEntitySpawnedEvent { +public interface IOnEntitySpawnedEvent +{ - /// - /// The entity that was spawned. - /// - public CEntityInstance Entity { get; } -} \ No newline at end of file + /// + /// The entity that was spawned. + /// + public CEntityInstance Entity { get; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityTakeDamageEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityTakeDamageEvent.cs index 7be26ebb4..57ba6ce30 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityTakeDamageEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnEntityTakeDamageEvent.cs @@ -10,18 +10,18 @@ namespace SwiftlyS2.Shared.Events; /// public interface IOnEntityTakeDamageEvent { - /// - /// The entity that took damage. - /// - public CEntityInstance Entity { get; } + /// + /// The entity that took damage. + /// + public CEntityInstance Entity { get; } - /// - /// The damage info. - /// - public ref CTakeDamageInfo Info { get; } + /// + /// The damage info. + /// + public ref CTakeDamageInfo Info { get; } - /// - /// If return , the damage will not be applied. - /// - public HookResult Result { get; set; } + /// + /// If return , the damage will not be applied. + /// + public HookResult Result { get; set; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnItemServicesCanAcquireHookEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnItemServicesCanAcquireHookEvent.cs index d002d03bd..558faf7ed 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnItemServicesCanAcquireHookEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnItemServicesCanAcquireHookEvent.cs @@ -3,37 +3,38 @@ namespace SwiftlyS2.Shared.Events; -public interface IOnItemServicesCanAcquireHookEvent { - - /// - /// The item services. - /// - public CCSPlayer_ItemServices ItemServices { get; } - - /// - /// The econ item view. - /// - public CEconItemView EconItemView { get; } - - /// - /// The weapon vdata if found, otherwise null. - /// - public CCSWeaponBaseVData? WeaponVData { get; } - - /// - /// The acquire method. - /// - public AcquireMethod AcquireMethod { get; } - - /// - /// The original result of the CanAcquire call. - /// - public AcquireResult OriginalResult { get; } - - /// - /// Intercept and modify the acquire result. - /// This will modify the acquire result and stop the following hooks and original function. - /// - /// The result to modify. - public void SetAcquireResult(AcquireResult result); +public interface IOnItemServicesCanAcquireHookEvent +{ + + /// + /// The item services. + /// + public CCSPlayer_ItemServices ItemServices { get; } + + /// + /// The econ item view. + /// + public CEconItemView EconItemView { get; } + + /// + /// The weapon vdata if found, otherwise null. + /// + public CCSWeaponBaseVData? WeaponVData { get; } + + /// + /// The acquire method. + /// + public AcquireMethod AcquireMethod { get; } + + /// + /// The original result of the CanAcquire call. + /// + public AcquireResult OriginalResult { get; } + + /// + /// Intercept and modify the acquire result. + /// This will modify the acquire result and stop the following hooks and original function. + /// + /// The result to modify. + public void SetAcquireResult( AcquireResult result ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnMapLoadEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnMapLoadEvent.cs index d47346323..bfb95d381 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnMapLoadEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnMapLoadEvent.cs @@ -3,10 +3,11 @@ namespace SwiftlyS2.Shared.Events; /// /// Called when the map is loaded. /// -public interface IOnMapLoadEvent { +public interface IOnMapLoadEvent +{ - /// - /// The name of the map. - /// - public string MapName { get; } -} \ No newline at end of file + /// + /// The name of the map. + /// + public string MapName { get; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnMapUnloadEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnMapUnloadEvent.cs index 3d0c23fa8..47a0c6298 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnMapUnloadEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnMapUnloadEvent.cs @@ -3,10 +3,11 @@ namespace SwiftlyS2.Shared.Events; /// /// Called when the map is unloaded. /// -public interface IOnMapUnloadEvent { +public interface IOnMapUnloadEvent +{ - /// - /// The name of the map. - /// - public string MapName { get; } -} \ No newline at end of file + /// + /// The name of the map. + /// + public string MapName { get; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnMovementServicesRunCommandHookEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnMovementServicesRunCommandHookEvent.cs new file mode 100644 index 000000000..43f09300b --- /dev/null +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnMovementServicesRunCommandHookEvent.cs @@ -0,0 +1,23 @@ +using SwiftlyS2.Shared.ProtobufDefinitions; +using SwiftlyS2.Shared.SchemaDefinitions; + +namespace SwiftlyS2.Shared.Events; + +/// +/// Called when the movement services run command hook is triggered. +/// +public interface IOnMovementServicesRunCommandHookEvent +{ + /// + /// The movement services. + /// + public CCSPlayer_MovementServices MovementServices { get; } + /// + /// The button state. + /// + public CInButtonState ButtonState { get; } + /// + /// The user command protobuf. + /// + public CSGOUserCmdPB UserCmdPB { get; } +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnPrecacheResourceEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnPrecacheResourceEvent.cs index b955c4761..c1154e0fb 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnPrecacheResourceEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnPrecacheResourceEvent.cs @@ -2,10 +2,10 @@ namespace SwiftlyS2.Shared.Events; public interface IOnPrecacheResourceEvent { - /// - /// Add a resource to the precache list. - /// - /// The path of the resource to precache. - void AddItem(string path); - + /// + /// Add a resource to the precache list. + /// + /// The path of the resource to precache. + public void AddItem( string path ); + } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnWeaponServicesCanUseHookEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnWeaponServicesCanUseHookEvent.cs index 4b2bb6de5..8097065f5 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnWeaponServicesCanUseHookEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/EventParams/IOnWeaponServicesCanUseHookEvent.cs @@ -2,25 +2,26 @@ namespace SwiftlyS2.Shared.Events; -public interface IOnWeaponServicesCanUseHookEvent { - - /// - /// The weapon services. - /// - public CCSPlayer_WeaponServices WeaponServices { get; } - /// - /// The weapon. - /// - public CCSWeaponBase Weapon { get; } - /// - /// The original result of the CanUse call. - /// - public bool OriginalResult { get; } +public interface IOnWeaponServicesCanUseHookEvent +{ - /// - /// Intercept and modify the can use result. - /// This will modify the can use result and stop the following hooks and original function. - /// - /// The result to modify. - public void SetResult(bool result); + /// + /// The weapon services. + /// + public CCSPlayer_WeaponServices WeaponServices { get; } + /// + /// The weapon. + /// + public CCSWeaponBase Weapon { get; } + /// + /// The original result of the CanUse call. + /// + public bool OriginalResult { get; } + + /// + /// Intercept and modify the can use result. + /// This will modify the can use result and stop the following hooks and original function. + /// + /// The result to modify. + public void SetResult( bool result ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Events/IEventSubscriber.cs b/managed/src/SwiftlyS2.Shared/Modules/Events/IEventSubscriber.cs index 81c15d743..28393f562 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Events/IEventSubscriber.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Events/IEventSubscriber.cs @@ -6,143 +6,154 @@ namespace SwiftlyS2.Shared.Events; public interface IEventSubscriber { - /// - /// Called when game has processed a tick. Won't be called if the server is in hibernation. - /// This callback is a hot path, be careful with it and don't do anything expensive. - /// - public event EventDelegates.OnTick? OnTick; - - /// - /// Called when Steam API is activated. - /// - public event EventDelegates.OnSteamAPIActivated? OnSteamAPIActivated; - - /// - /// Called when a client connects to the server. - /// - public event EventDelegates.OnClientConnected? OnClientConnected; - - /// - /// Called when a client disconnects from the server. - /// - public event EventDelegates.OnClientDisconnected? OnClientDisconnected; - - /// - /// Called when a client's key state changes. - /// - public event EventDelegates.OnClientKeyStateChanged? OnClientKeyStateChanged; - - /// - /// Called when a client is fully put in server. - /// - public event EventDelegates.OnClientPutInServer? OnClientPutInServer; - - /// - /// Called when a client is authorized by Steam. - /// - public event EventDelegates.OnClientSteamAuthorize? OnClientSteamAuthorize; - - /// - /// Called when a client's Steam authorization fails. - /// - public event EventDelegates.OnClientSteamAuthorizeFail? OnClientSteamAuthorizeFail; - - /// - /// Called when an entity is created. - /// - public event EventDelegates.OnEntityCreated? OnEntityCreated; - - /// - /// Called when an entity is deleted. - /// - public event EventDelegates.OnEntityDeleted? OnEntityDeleted; - - /// - /// Called when an entity's parent changes. - /// - public event EventDelegates.OnEntityParentChanged? OnEntityParentChanged; - - /// - /// Called when an entity is spawned. - /// - public event EventDelegates.OnEntitySpawned? OnEntitySpawned; - - /// - /// Called when a map is loaded. - /// - public event EventDelegates.OnMapLoad? OnMapLoad; - - /// - /// Called when a map is unloaded. - /// - public event EventDelegates.OnMapUnload? OnMapUnload; - - /// - /// Called when the game process user's input. - /// This callback is a hot path, be careful with it and don't do anything expensive. - /// - public event EventDelegates.OnClientProcessUsercmds? OnClientProcessUsercmds; - - /// - /// Called when a ConVar value is changed. - /// - public event EventDelegates.OnConVarValueChanged? OnConVarValueChanged; - - /// - /// Called when a ConCommand is created. - /// - public event EventDelegates.OnConCommandCreated? OnConCommandCreated; - - /// - /// Called when a ConVar is created. - /// - public event EventDelegates.OnConVarCreated? OnConVarCreated; - - /// - /// Called when an entity takes damage. - /// - public event EventDelegates.OnEntityTakeDamage? OnEntityTakeDamage; - - /// - /// Called when the game is precaching resources. - /// - public event EventDelegates.OnPrecacheResource? OnPrecacheResource; - - /// - /// Called when an item services can acquire hook is triggered. - /// - public event EventDelegates.OnItemServicesCanAcquireHook? OnItemServicesCanAcquireHook; - - /// - /// Called when a weapon services can use hook is triggered. - /// - public event EventDelegates.OnWeaponServicesCanUseHook? OnWeaponServicesCanUseHook; - - /// - /// Called when the game outputs a console message. - /// - public event EventDelegates.OnConsoleOutput? OnConsoleOutput; - - /// - /// Called when a command is executed. - /// - public event EventDelegates.OnCommandExecuteHook? OnCommandExecuteHook; - - [Obsolete("OnEntityTouchHook is deprecated. Use OnEntityStartTouch, OnEntityTouch, or OnEntityEndTouch instead.")] - public event EventDelegates.OnEntityTouchHook? OnEntityTouchHook; - - /// - /// Called when an entity starts touching another entity. - /// - public event EventDelegates.OnEntityStartTouch? OnEntityStartTouch; - - /// - /// Called when an entity is touching another entity. - /// - public event EventDelegates.OnEntityTouch? OnEntityTouch; - - /// - /// Called when an entity ends touching another entity. - /// - public event EventDelegates.OnEntityEndTouch? OnEntityEndTouch; + /// + /// Called when game has processed a tick. Won't be called if the server is in hibernation. + /// This callback is a hot path, be careful with it and don't do anything expensive. + /// + public event EventDelegates.OnTick? OnTick; + + /// + /// Called when the world is updated. This happens even in hibernation. + /// This callback is a hot path, be careful with it and don't do anything expensive. + /// + public event EventDelegates.OnWorldUpdate? OnWorldUpdate; + + /// + /// Called when Steam API is activated. + /// + public event EventDelegates.OnSteamAPIActivated? OnSteamAPIActivated; + + /// + /// Called when a client connects to the server. + /// + public event EventDelegates.OnClientConnected? OnClientConnected; + + /// + /// Called when a client disconnects from the server. + /// + public event EventDelegates.OnClientDisconnected? OnClientDisconnected; + + /// + /// Called when a client's key state changes. + /// + public event EventDelegates.OnClientKeyStateChanged? OnClientKeyStateChanged; + + /// + /// Called when a client is fully put in server. + /// + public event EventDelegates.OnClientPutInServer? OnClientPutInServer; + + /// + /// Called when a client is authorized by Steam. + /// + public event EventDelegates.OnClientSteamAuthorize? OnClientSteamAuthorize; + + /// + /// Called when a client's Steam authorization fails. + /// + public event EventDelegates.OnClientSteamAuthorizeFail? OnClientSteamAuthorizeFail; + + /// + /// Called when an entity is created. + /// + public event EventDelegates.OnEntityCreated? OnEntityCreated; + + /// + /// Called when an entity is deleted. + /// + public event EventDelegates.OnEntityDeleted? OnEntityDeleted; + + /// + /// Called when an entity's parent changes. + /// + public event EventDelegates.OnEntityParentChanged? OnEntityParentChanged; + + /// + /// Called when an entity is spawned. + /// + public event EventDelegates.OnEntitySpawned? OnEntitySpawned; + + /// + /// Called when a map is loaded. + /// + public event EventDelegates.OnMapLoad? OnMapLoad; + + /// + /// Called when a map is unloaded. + /// + public event EventDelegates.OnMapUnload? OnMapUnload; + + /// + /// Called when the game process user's input. + /// This callback is a hot path, be careful with it and don't do anything expensive. + /// + public event EventDelegates.OnClientProcessUsercmds? OnClientProcessUsercmds; + + /// + /// Called when a ConVar value is changed. + /// + public event EventDelegates.OnConVarValueChanged? OnConVarValueChanged; + + /// + /// Called when a ConCommand is created. + /// + public event EventDelegates.OnConCommandCreated? OnConCommandCreated; + + /// + /// Called when a ConVar is created. + /// + public event EventDelegates.OnConVarCreated? OnConVarCreated; + + /// + /// Called when an entity takes damage. + /// + public event EventDelegates.OnEntityTakeDamage? OnEntityTakeDamage; + + /// + /// Called when the game is precaching resources. + /// + public event EventDelegates.OnPrecacheResource? OnPrecacheResource; + + /// + /// Called when an item services can acquire hook is triggered. + /// + public event EventDelegates.OnItemServicesCanAcquireHook? OnItemServicesCanAcquireHook; + + /// + /// Called when a weapon services can use hook is triggered. + /// + public event EventDelegates.OnWeaponServicesCanUseHook? OnWeaponServicesCanUseHook; + + /// + /// Called when the game outputs a console message. + /// + public event EventDelegates.OnConsoleOutput? OnConsoleOutput; + + /// + /// Called when a command is executed. + /// + public event EventDelegates.OnCommandExecuteHook? OnCommandExecuteHook; + + [Obsolete("OnEntityTouchHook is deprecated. Use OnEntityStartTouch, OnEntityTouch, or OnEntityEndTouch instead.")] + public event EventDelegates.OnEntityTouchHook? OnEntityTouchHook; + + /// + /// Called when an entity starts touching another entity. + /// + public event EventDelegates.OnEntityStartTouch? OnEntityStartTouch; + + /// + /// Called when an entity is touching another entity. + /// + public event EventDelegates.OnEntityTouch? OnEntityTouch; + + /// + /// Called when an entity ends touching another entity. + /// + public event EventDelegates.OnEntityEndTouch? OnEntityEndTouch; + + /// + /// Called when the movement services run command hook is triggered. + /// + public event EventDelegates.OnMovementServicesRunCommandHook? OnMovementServicesRunCommandHook; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/GameData/IGameDataService.cs b/managed/src/SwiftlyS2.Shared/Modules/GameData/IGameDataService.cs index a0ec32fd1..7b53cd8a7 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/GameData/IGameDataService.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/GameData/IGameDataService.cs @@ -1,62 +1,63 @@ namespace SwiftlyS2.Shared.Services; -public interface IGameDataService { - - /// - /// Check if a signature exists. - /// - /// Signature name defined in `signatures.jsonc` file. - /// Whether the signature exists. - bool HasSignature(string signatureName); - - /// - /// Get a signature by name. - /// - /// Signature name defined in `signatures.jsonc` file. - /// The signature. - nint GetSignature(string signatureName); - - /// - /// Try to get a signature by name. - /// - /// Signature name defined in `signatures.jsonc` file. - /// The signature. - /// Whether the signature exists. - bool TryGetSignature(string signatureName, out nint signature); - - /// - /// Check if an offset exists. - /// - /// Offset name defined in `offsets.jsonc` file. - /// Whether the offset exists. - bool HasOffset(string offsetName); - - /// - /// Get an offset by name. - /// - /// Offset name defined in `offsets.jsonc` file. - /// The offset. - int GetOffset(string offsetName); - - /// - /// Try to get an offset by name. - /// - /// Offset name defined in `offsets.jsonc` file. - /// The offset. - /// Whether the offset exists. - bool TryGetOffset(string offsetName, out nint offset); - - /// - /// Check if a patch exists. - /// - /// Patch name defined in `patchs.jsonc` file. - /// Whether the patch exists. - bool HasPatch(string patchName); - - /// - /// Apply a patch by name. - /// - /// Patch name defined in `patchs.jsonc` file. - void ApplyPatch(string patchName); +public interface IGameDataService +{ + + /// + /// Check if a signature exists. + /// + /// Signature name defined in `signatures.jsonc` file. + /// Whether the signature exists. + public bool HasSignature( string signatureName ); + + /// + /// Get a signature by name. + /// + /// Signature name defined in `signatures.jsonc` file. + /// The signature. + public nint GetSignature( string signatureName ); + + /// + /// Try to get a signature by name. + /// + /// Signature name defined in `signatures.jsonc` file. + /// The signature. + /// Whether the signature exists. + public bool TryGetSignature( string signatureName, out nint signature ); + + /// + /// Check if an offset exists. + /// + /// Offset name defined in `offsets.jsonc` file. + /// Whether the offset exists. + public bool HasOffset( string offsetName ); + + /// + /// Get an offset by name. + /// + /// Offset name defined in `offsets.jsonc` file. + /// The offset. + public int GetOffset( string offsetName ); + + /// + /// Try to get an offset by name. + /// + /// Offset name defined in `offsets.jsonc` file. + /// The offset. + /// Whether the offset exists. + public bool TryGetOffset( string offsetName, out nint offset ); + + /// + /// Check if a patch exists. + /// + /// Patch name defined in `patchs.jsonc` file. + /// Whether the patch exists. + public bool HasPatch( string patchName ); + + /// + /// Apply a patch by name. + /// + /// Patch name defined in `patchs.jsonc` file. + public void ApplyPatch( string patchName ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/GameEvents/GameEventHandlerAttribute.cs b/managed/src/SwiftlyS2.Shared/Modules/GameEvents/GameEventHandlerAttribute.cs index edbb48f83..896ec15c5 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/GameEvents/GameEventHandlerAttribute.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/GameEvents/GameEventHandlerAttribute.cs @@ -3,13 +3,15 @@ namespace SwiftlyS2.Shared.GameEvents; [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] -public class GameEventHandler : Attribute { +public class GameEventHandler : Attribute +{ - public HookMode HookMode { get; set; } + public HookMode HookMode { get; set; } - public GameEventHandler(HookMode hookMode) { - HookMode = hookMode; - } + public GameEventHandler( HookMode hookMode ) + { + HookMode = hookMode; + } } diff --git a/managed/src/SwiftlyS2.Shared/Modules/GameEvents/IGameEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/GameEvents/IGameEvent.cs index ddb984193..033582640 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/GameEvents/IGameEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/GameEvents/IGameEvent.cs @@ -1,18 +1,19 @@ namespace SwiftlyS2.Shared.GameEvents; -public interface IGameEvent where T : IGameEvent { +public interface IGameEvent where T : IGameEvent +{ - public IGameEventAccessor Accessor { get; } + public IGameEventAccessor Accessor { get; } - internal static abstract T Create(nint address); - internal static abstract string GetName(); - internal static abstract uint GetHash(); + internal static abstract T Create( nint address ); + internal static abstract string GetName(); + internal static abstract uint GetHash(); - /// - /// When true, the event will not be broadcast to clients. - /// - public bool DontBroadcast { get; set; } + /// + /// When true, the event will not be broadcast to clients. + /// + public bool DontBroadcast { get; set; } - internal void Dispose(); + internal void Dispose(); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/GameEvents/IGameEventAccessor.cs b/managed/src/SwiftlyS2.Shared/Modules/GameEvents/IGameEventAccessor.cs index 1b53719fb..4cbbf0427 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/GameEvents/IGameEventAccessor.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/GameEvents/IGameEventAccessor.cs @@ -9,176 +9,176 @@ namespace SwiftlyS2.Shared.GameEvents; /// public interface IGameEventAccessor : INativeHandle { - /// - /// When true, the event will not be broadcast to clients. - /// - public bool DontBroadcast { get; set; } - - /// - /// Sets a boolean field on the event payload. - /// - /// Field name. - /// Boolean value. - public void SetBool(string key, bool value); - - /// - /// Gets a boolean field from the event payload. - /// - /// Field name. - /// Boolean value. - public bool GetBool(string key); - - /// - /// Sets an integer field on the event payload. - /// - /// Field name. - /// Integer value. - public void SetInt32(string key, int value); - - /// - /// Gets an integer field from the event payload. - /// - /// Field name. - /// Integer value. - public int GetInt32(string key); - - /// - /// Sets an unsigned 64-bit integer field on the event payload. - /// - /// Field name. - /// Unsigned 64-bit value. - public void SetUInt64(string key, ulong value); - - /// - /// Gets an unsigned 64-bit integer field from the event payload. - /// - /// Field name. - /// Unsigned 64-bit value. - public ulong GetUInt64(string key); - - /// - /// Sets a floating-point field on the event payload. - /// - /// Field name. - /// Float value. - public void SetFloat(string key, float value); - - /// - /// Gets a floating-point field from the event payload. - /// - /// Field name. - /// Float value. - public float GetFloat(string key); - - /// - /// Sets a string field on the event payload. - /// - /// Field name. - /// String value. - public void SetString(string key, string value); - - /// - /// Gets a string field from the event payload. - /// - /// Field name. - /// String value. - public string GetString(string key); - - /// - /// Sets an entity reference on the event payload. - /// - /// Entity type derived from . - /// Field name. - /// Entity instance. - public void SetEntity(string key, K value) where K : CEntityInstance; - - /// - /// Gets an entity reference from the event payload. - /// - /// Entity type derived from . - /// Field name. - /// Entity instance. - public K GetEntity(string key) where K : CEntityInstance; - - /// - /// Sets an entity index field on the event payload. - /// - /// Field name. - /// Entity index. - public void SetEntityIndex(string key, int value); - - /// - /// Gets an entity index field from the event payload. - /// - /// Field name. - /// Entity index. - public int GetEntityIndex(string key); - - /// - /// Sets a player slot field on the event payload. - /// - /// Field name. - /// Player slot. - public void SetPlayerSlot(string key, int value); - - /// - /// Gets a player slot field from the event payload. - /// - /// Field name. - /// Player slot. - public int GetPlayerSlot(string key); - - /// - /// Gets the player controller referenced by the given field. - /// - /// Field name. - /// Player controller. - public CCSPlayerController GetPlayerController(string key); - - /// - /// Gets the player pawn referenced by the given field. - /// - /// Field name. - /// Player pawn. - public CCSPlayerPawn GetPlayerPawn(string key); - - /// - /// Gets the player referenced by the given field. - /// - /// Field name. - /// Player. - public IPlayer GetPlayer(string key); - - /// - /// Sets a raw pointer value on the event payload. - /// - /// Field name. - /// Pointer value. - public void SetPtr(string key, nint value); - - /// - /// Gets a raw pointer value from the event payload. - /// - /// Field name. - /// Pointer value. - public nint GetPtr(string key); - - /// - /// Gets the pawn entity index referenced by the given field. - /// - /// Field name. - /// Pawn entity index. - public int GetPawnEntityIndex(string key); - - /// - /// Indicates whether the event is marked as reliable. - /// - /// True if reliable. - public bool IsReliable(); - - /// - /// Indicates whether the event is local to this server/client. - /// - /// True if local. - public bool IsLocal(); + /// + /// When true, the event will not be broadcast to clients. + /// + public bool DontBroadcast { get; set; } + + /// + /// Sets a boolean field on the event payload. + /// + /// Field name. + /// Boolean value. + public void SetBool( string key, bool value ); + + /// + /// Gets a boolean field from the event payload. + /// + /// Field name. + /// Boolean value. + public bool GetBool( string key ); + + /// + /// Sets an integer field on the event payload. + /// + /// Field name. + /// Integer value. + public void SetInt32( string key, int value ); + + /// + /// Gets an integer field from the event payload. + /// + /// Field name. + /// Integer value. + public int GetInt32( string key ); + + /// + /// Sets an unsigned 64-bit integer field on the event payload. + /// + /// Field name. + /// Unsigned 64-bit value. + public void SetUInt64( string key, ulong value ); + + /// + /// Gets an unsigned 64-bit integer field from the event payload. + /// + /// Field name. + /// Unsigned 64-bit value. + public ulong GetUInt64( string key ); + + /// + /// Sets a floating-point field on the event payload. + /// + /// Field name. + /// Float value. + public void SetFloat( string key, float value ); + + /// + /// Gets a floating-point field from the event payload. + /// + /// Field name. + /// Float value. + public float GetFloat( string key ); + + /// + /// Sets a string field on the event payload. + /// + /// Field name. + /// String value. + public void SetString( string key, string value ); + + /// + /// Gets a string field from the event payload. + /// + /// Field name. + /// String value. + public string GetString( string key ); + + /// + /// Sets an entity reference on the event payload. + /// + /// Entity type derived from . + /// Field name. + /// Entity instance. + public void SetEntity( string key, K value ) where K : CEntityInstance; + + /// + /// Gets an entity reference from the event payload. + /// + /// Entity type derived from . + /// Field name. + /// Entity instance. + public K GetEntity( string key ) where K : CEntityInstance; + + /// + /// Sets an entity index field on the event payload. + /// + /// Field name. + /// Entity index. + public void SetEntityIndex( string key, int value ); + + /// + /// Gets an entity index field from the event payload. + /// + /// Field name. + /// Entity index. + public int GetEntityIndex( string key ); + + /// + /// Sets a player slot field on the event payload. + /// + /// Field name. + /// Player slot. + public void SetPlayerSlot( string key, int value ); + + /// + /// Gets a player slot field from the event payload. + /// + /// Field name. + /// Player slot. + public int GetPlayerSlot( string key ); + + /// + /// Gets the player controller referenced by the given field. + /// + /// Field name. + /// Player controller. + public CCSPlayerController GetPlayerController( string key ); + + /// + /// Gets the player pawn referenced by the given field. + /// + /// Field name. + /// Player pawn. + public CCSPlayerPawn GetPlayerPawn( string key ); + + /// + /// Gets the player referenced by the given field. + /// + /// Field name. + /// Player. + public IPlayer GetPlayer( string key ); + + /// + /// Sets a raw pointer value on the event payload. + /// + /// Field name. + /// Pointer value. + public void SetPtr( string key, nint value ); + + /// + /// Gets a raw pointer value from the event payload. + /// + /// Field name. + /// Pointer value. + public nint GetPtr( string key ); + + /// + /// Gets the pawn entity index referenced by the given field. + /// + /// Field name. + /// Pawn entity index. + public int GetPawnEntityIndex( string key ); + + /// + /// Indicates whether the event is marked as reliable. + /// + /// True if reliable. + public bool IsReliable(); + + /// + /// Indicates whether the event is local to this server/client. + /// + /// True if local. + public bool IsLocal(); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/GameEvents/IGameEventService.cs b/managed/src/SwiftlyS2.Shared/Modules/GameEvents/IGameEventService.cs index 503e652d6..25690f428 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/GameEvents/IGameEventService.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/GameEvents/IGameEventService.cs @@ -5,89 +5,90 @@ namespace SwiftlyS2.Shared.GameEvents; /// /// Plugin-scoped service for managing game events. /// -public interface IGameEventService { +public interface IGameEventService +{ - /// - /// The delegate type for game event callbacks. - /// - /// The event type. - /// The event object. - /// The hook result. - delegate HookResult GameEventHandler(T eventObj) where T : IGameEvent; + /// + /// The delegate type for game event callbacks. + /// + /// The event type. + /// The event object. + /// The hook result. + public delegate HookResult GameEventHandler( T eventObj ) where T : IGameEvent; - /// - /// Hooks a pre-event callback. - /// - /// The event type. - /// The callback to hook. - /// A GUID representing the hook. You can use this to unhook the callback later. - Guid HookPre(GameEventHandler callback) where T : IGameEvent; + /// + /// Hooks a pre-event callback. + /// + /// The event type. + /// The callback to hook. + /// A GUID representing the hook. You can use this to unhook the callback later. + public Guid HookPre( GameEventHandler callback ) where T : IGameEvent; - /// - /// Hooks a post-event callback. - /// - /// The event type. - /// The callback to hook. - /// A GUID representing the hook. You can use this to unhook the callback later. - Guid HookPost(GameEventHandler callback) where T : IGameEvent; + /// + /// Hooks a post-event callback. + /// + /// The event type. + /// The callback to hook. + /// A GUID representing the hook. You can use this to unhook the callback later. + public Guid HookPost( GameEventHandler callback ) where T : IGameEvent; - /// - /// Unhooks a callback. - /// - /// The GUID of the hook to unhook. - void Unhook(Guid guid); + /// + /// Unhooks a callback. + /// + /// The GUID of the hook to unhook. + public void Unhook( Guid guid ); - /// - /// Unhooks all pre-event callbacks. - /// - /// The event type. - void UnhookPre() where T : IGameEvent; + /// + /// Unhooks all pre-event callbacks. + /// + /// The event type. + public void UnhookPre() where T : IGameEvent; - /// - /// Unhooks all post-event callbacks. - /// - /// The event type. - void UnhookPost() where T : IGameEvent; + /// + /// Unhooks all post-event callbacks. + /// + /// The event type. + public void UnhookPost() where T : IGameEvent; - /// - /// Fires an event to all players. - /// - /// The event type. - void Fire() where T : IGameEvent; + /// + /// Fires an event to all players. + /// + /// The event type. + public void Fire() where T : IGameEvent; - /// - /// Fires an event to all players with a configured event. - /// The action to configure the event. - /// - /// The event type. - void Fire(Action configureEvent) where T : IGameEvent; + /// + /// Fires an event to all players with a configured event. + /// The action to configure the event. + /// + /// The event type. + public void Fire( Action configureEvent ) where T : IGameEvent; - /// - /// Fires an event to a player. - /// - /// The event type. - /// The player slot. - void FireToPlayer(int slot) where T : IGameEvent; + /// + /// Fires an event to a player. + /// + /// The event type. + /// The player slot. + public void FireToPlayer( int slot ) where T : IGameEvent; - /// - /// Fires an event to a player with a configured event. - /// - /// The event type. - /// The player slot. - /// The action to configure the event. - void FireToPlayer(int slot, Action configureEvent) where T : IGameEvent; + /// + /// Fires an event to a player with a configured event. + /// + /// The event type. + /// The player slot. + /// The action to configure the event. + public void FireToPlayer( int slot, Action configureEvent ) where T : IGameEvent; - /// - /// Fires an event to the server. - /// - /// - void FireToServer() where T : IGameEvent; + /// + /// Fires an event to the server. + /// + /// + public void FireToServer() where T : IGameEvent; - /// - /// Fires an event to the server with a configured event. - /// - /// The event type. - /// The action to configure the event. - void FireToServer(Action configureEvent) where T : IGameEvent; + /// + /// Fires an event to the server with a configured event. + /// + /// The event type. + /// The action to configure the event. + public void FireToServer( Action configureEvent ) where T : IGameEvent; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Helpers/IHelpers.cs b/managed/src/SwiftlyS2.Shared/Modules/Helpers/IHelpers.cs index 90dff8cfe..58489db2d 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Helpers/IHelpers.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Helpers/IHelpers.cs @@ -93,27 +93,27 @@ public interface IHelpers /// Not sure what this argument is for, but in general it's -1. /// The key of the weapon (usually item idx). /// The weapon vdata. - public CCSWeaponBaseVData? GetWeaponCSDataFromKey(int unknown, string key); + public CCSWeaponBaseVData? GetWeaponCSDataFromKey( int unknown, string key ); /// /// Get weapon vdata from item definition index. /// /// The item definition index of the weapon. /// The weapon vdata. - public CCSWeaponBaseVData? GetWeaponCSDataFromKey(int itemDefinitionIndex); + public CCSWeaponBaseVData? GetWeaponCSDataFromKey( int itemDefinitionIndex ); /// /// Get weapon classname from item definition index. /// /// The item definition index of the weapon. /// The weapon classname (e.g., "weapon_awp") or null if not found. - public string? GetClassnameByDefinitionIndex(int itemDefinitionIndex); + public string? GetClassnameByDefinitionIndex( int itemDefinitionIndex ); /// /// Get item definition index from weapon classname. /// /// The weapon classname (e.g., "weapon_awp"). /// The item definition index or null if not found. - public int? GetDefinitionIndexByClassname(string classname); + public int? GetDefinitionIndexByClassname( string classname ); } diff --git a/managed/src/SwiftlyS2.Shared/Modules/Memory/IMemoryService.cs b/managed/src/SwiftlyS2.Shared/Modules/Memory/IMemoryService.cs index 76183859a..c85521d95 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Memory/IMemoryService.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Memory/IMemoryService.cs @@ -5,87 +5,87 @@ namespace SwiftlyS2.Shared.Memory; public interface IMemoryService { - /// - /// Get an unmanaged function by its address. - /// - /// The delegate type of the unmanaged function. - /// The address of the unmanaged function. - /// The unmanaged function. - IUnmanagedFunction GetUnmanagedFunctionByAddress(nint address) where TDelegate : Delegate; + /// + /// Get an unmanaged function by its address. + /// + /// The delegate type of the unmanaged function. + /// The address of the unmanaged function. + /// The unmanaged function. + public IUnmanagedFunction GetUnmanagedFunctionByAddress( nint address ) where TDelegate : Delegate; - /// - /// Get an unmanaged function by its vtable address and index. - /// - /// - /// The address of the vtable. - /// The index of the function in the vtable. - /// The unmanaged function. - IUnmanagedFunction GetUnmanagedFunctionByVTable(nint pVTable, int index) where TDelegate : Delegate; + /// + /// Get an unmanaged function by its vtable address and index. + /// + /// + /// The address of the vtable. + /// The index of the function in the vtable. + /// The unmanaged function. + public IUnmanagedFunction GetUnmanagedFunctionByVTable( nint pVTable, int index ) where TDelegate : Delegate; - /// - /// Get an unmanaged memory block by its address. - /// - /// The address from which to create the Unmanaged Memory wrapper. - IUnmanagedMemory GetUnmanagedMemoryByAddress(nint address); + /// + /// Get an unmanaged memory block by its address. + /// + /// The address from which to create the Unmanaged Memory wrapper. + public IUnmanagedMemory GetUnmanagedMemoryByAddress( nint address ); - /// - /// Get the address of an valve or swiftly native interface by its name. - /// - /// The name of the interface. - /// The address of the interface. Return null if not found. - nint? GetInterfaceByName(string name); + /// + /// Get the address of an valve or swiftly native interface by its name. + /// + /// The name of the interface. + /// The address of the interface. Return null if not found. + public nint? GetInterfaceByName( string name ); - /// - /// Get the address of a ida-style signature. - /// - /// The library of that signature belongs to. - /// The signature of the function. - /// The address of the function. Return null if not found. - nint? GetAddressBySignature(string library, string signature); + /// + /// Get the address of a ida-style signature. + /// + /// The library of that signature belongs to. + /// The signature of the function. + /// The address of the function. Return null if not found. + public nint? GetAddressBySignature( string library, string signature ); - /// - /// Get the address of a vtable by its name. - /// - /// The library of that vtable belongs to. - /// The name of the vtable. - /// The address of the vtable. Return null if not found. - nint? GetVTableAddress(string library, string vtableName); + /// + /// Get the address of a vtable by its name. + /// + /// The library of that vtable belongs to. + /// The name of the vtable. + /// The address of the vtable. Return null if not found. + public nint? GetVTableAddress( string library, string vtableName ); - /// - /// Resolve the address of a xref signature. - /// - /// The address of the xref. - /// The resolved address. - nint ResolveXrefAddress(nint xrefAddress); + /// + /// Resolve the address of a xref signature. + /// + /// The address of the xref. + /// The resolved address. + public nint ResolveXrefAddress( nint xrefAddress ); - /// - /// Get the vtable name of an object pointer. - /// - /// The address of the object pointer. - /// The vtable name. Return null if not found. - string? GetObjectPtrVtableName(nint address); - - /// - /// Check if an object pointer has a vtable. - /// - /// The address of the object pointer. - /// True if the object pointer has a vtable, false otherwise. - bool ObjectPtrHasVtable(nint address); - - /// - /// Check if an object pointer has a base class. - /// - /// The address of the object pointer. - /// The name of the base class. - /// True if the object pointer has the base class, false otherwise. - bool ObjectPtrHasBaseClass(nint address, string baseClassName); + /// + /// Get the vtable name of an object pointer. + /// + /// The address of the object pointer. + /// The vtable name. Return null if not found. + public string? GetObjectPtrVtableName( nint address ); - /// - /// Convert a raw address to a schema class. - /// - /// The schema class type. - /// The address of the schema class. - /// The schema class. - T ToSchemaClass(nint address) where T : class, ISchemaClass; + /// + /// Check if an object pointer has a vtable. + /// + /// The address of the object pointer. + /// True if the object pointer has a vtable, false otherwise. + public bool ObjectPtrHasVtable( nint address ); + + /// + /// Check if an object pointer has a base class. + /// + /// The address of the object pointer. + /// The name of the base class. + /// True if the object pointer has the base class, false otherwise. + public bool ObjectPtrHasBaseClass( nint address, string baseClassName ); + + /// + /// Convert a raw address to a schema class. + /// + /// The schema class type. + /// The address of the schema class. + /// The schema class. + public T ToSchemaClass( nint address ) where T : class, ISchemaClass; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Memory/IUnmanagedFunction.cs b/managed/src/SwiftlyS2.Shared/Modules/Memory/IUnmanagedFunction.cs index 501573791..ea2bb1d7d 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Memory/IUnmanagedFunction.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Memory/IUnmanagedFunction.cs @@ -1,38 +1,39 @@ namespace SwiftlyS2.Shared.Memory; -public interface IUnmanagedFunction where TDelegate : Delegate { +public interface IUnmanagedFunction where TDelegate : Delegate +{ - /// - /// The address of the unmanaged function. - /// - nint Address { get; } + /// + /// The address of the unmanaged function. + /// + public nint Address { get; } - /// - /// The unhooked original function delegate. - /// Call this if you don't want your invocation to be hooked. - /// - TDelegate CallOriginal { get; } + /// + /// The unhooked original function delegate. + /// Call this if you don't want your invocation to be hooked. + /// + public TDelegate CallOriginal { get; } - /// - /// The delegate that directly call to the address. - /// Might be hooked by other plugins or core. - /// - TDelegate Call { get; } + /// + /// The delegate that directly call to the address. + /// Might be hooked by other plugins or core. + /// + public TDelegate Call { get; } - /// - /// Hook a native function at the specified address with a managed callback. - /// The receives the pointer to the "next" function in the chain - /// (previous callback if any, or the original function pointer if this is the first callback), - /// and must return a delegate matching the native function signature with proper calling convention. - /// - /// Builder that receives the next function pointer and returns the managed callback. - /// a guid for the hook. - Guid AddHook(Func, TDelegate> callbackBuilder); + /// + /// Hook a native function at the specified address with a managed callback. + /// The receives the pointer to the "next" function in the chain + /// (previous callback if any, or the original function pointer if this is the first callback), + /// and must return a delegate matching the native function signature with proper calling convention. + /// + /// Builder that receives the next function pointer and returns the managed callback. + /// a guid for the hook. + public Guid AddHook( Func, TDelegate> callbackBuilder ); - /// - /// Unhook a hook by its id. - /// - /// The id of the hook to unhook. - void RemoveHook(Guid id); + /// + /// Unhook a hook by its id. + /// + /// The id of the hook to unhook. + public void RemoveHook( Guid id ); } diff --git a/managed/src/SwiftlyS2.Shared/Modules/Memory/IUnmanagedMemory.cs b/managed/src/SwiftlyS2.Shared/Modules/Memory/IUnmanagedMemory.cs index 680dd338b..e4caf22ab 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Memory/IUnmanagedMemory.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Memory/IUnmanagedMemory.cs @@ -32,7 +32,7 @@ public struct MidHookContext } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] -public delegate void MidHookDelegate(ref MidHookContext context); +public delegate void MidHookDelegate( ref MidHookContext context ); public interface IUnmanagedMemory { @@ -46,11 +46,11 @@ public interface IUnmanagedMemory /// The callback receives a context structure that allows reading and modifying CPU registers. /// /// The callback to call when the code reaches that address. - public Guid AddHook(MidHookDelegate callback); + public Guid AddHook( MidHookDelegate callback ); /// /// Unhook a hook by its id. /// /// The id of the hook to unhook. - public void RemoveHook(Guid id); + public void RemoveHook( Guid id ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Memory/Library.cs b/managed/src/SwiftlyS2.Shared/Modules/Memory/Library.cs index bcd6299e5..336bde362 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Memory/Library.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Memory/Library.cs @@ -1,14 +1,13 @@ -using System.Runtime.Serialization; - namespace SwiftlyS2.Shared.Memory; -public static class Library { +public static class Library +{ - public static readonly string Engine = "engine2"; + public static readonly string Engine = "engine2"; - public static readonly string Tier0 = "tier0"; + public static readonly string Tier0 = "tier0"; - public static readonly string Server = "server"; + public static readonly string Server = "server"; - public static readonly string NetworkSystem = "networksystem"; + public static readonly string NetworkSystem = "networksystem"; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Menus/IMenuAPI.cs b/managed/src/SwiftlyS2.Shared/Modules/Menus/IMenuAPI.cs index 55fa4454e..3bacb499e 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Menus/IMenuAPI.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Menus/IMenuAPI.cs @@ -11,11 +11,6 @@ namespace SwiftlyS2.Shared.Menus; /// public record class MenuConfiguration { - private int maxVisibleItems = -1; - private string? navigationMarkerColor = null; - private string? footerColor = null; - private string? visualGuideLineColor = null; - private string? disabledColor = null; /// /// The title of the menu. @@ -47,19 +42,19 @@ public record class MenuConfiguration /// /// public int MaxVisibleItems { - get => maxVisibleItems; + get; set { if (value < 1 || value > 5) { Spectre.Console.AnsiConsole.WriteException(new ArgumentOutOfRangeException(nameof(value), $"MaxVisibleItems: value {value} is out of range [1, 5].")); - maxVisibleItems = -1; + field = -1; } else { - maxVisibleItems = value; + field = value; } } - } + } = -1; /// /// Whether to automatically increase when or is enabled. @@ -88,19 +83,19 @@ public int MaxVisibleItems { /// Supports "#RGB", "#RGBA", "#RRGGBB", and "#RRGGBBAA" formats. /// public string? NavigationMarkerColor { - get => navigationMarkerColor; + get; set { if (string.IsNullOrWhiteSpace(value) || Helper.ParseHexColor(value) is not (not null, not null, not null, _)) { Spectre.Console.AnsiConsole.WriteException(new ArgumentException($"NavigationMarkerColor: '{value}' is not a valid hex color format. Expected '#RRGGBB'.", nameof(value))); - navigationMarkerColor = null; + field = null; } else { - navigationMarkerColor = value; + field = value; } } - } + } = null; /// /// The color of the menu footer in hex format. @@ -109,19 +104,19 @@ public string? NavigationMarkerColor { /// Supports "#RGB", "#RGBA", "#RRGGBB", and "#RRGGBBAA" formats. /// public string? FooterColor { - get => footerColor; + get; set { if (string.IsNullOrWhiteSpace(value) || Helper.ParseHexColor(value) is not (not null, not null, not null, _)) { Spectre.Console.AnsiConsole.WriteException(new ArgumentException($"FooterColor: '{value}' is not a valid hex color format. Expected '#RRGGBB'.", nameof(value))); - footerColor = null; + field = null; } else { - footerColor = value; + field = value; } } - } + } = null; /// /// The color of visual guide lines in hex format. @@ -130,19 +125,19 @@ public string? FooterColor { /// Supports "#RGB", "#RGBA", "#RRGGBB", and "#RRGGBBAA" formats. /// public string? VisualGuideLineColor { - get => visualGuideLineColor; + get; set { if (string.IsNullOrWhiteSpace(value) || Helper.ParseHexColor(value) is not (not null, not null, not null, _)) { Spectre.Console.AnsiConsole.WriteException(new ArgumentException($"VisualGuideLineColor: '{value}' is not a valid hex color format. Expected '#RRGGBB'.", nameof(value))); - visualGuideLineColor = null; + field = null; } else { - visualGuideLineColor = value; + field = value; } } - } + } = null; /// /// The color of disabled menu options in hex format. @@ -151,19 +146,19 @@ public string? VisualGuideLineColor { /// Supports "#RGB", "#RGBA", "#RRGGBB", and "#RRGGBBAA" formats. /// public string? DisabledColor { - get => disabledColor; + get; set { if (string.IsNullOrWhiteSpace(value) || Helper.ParseHexColor(value) is not (not null, not null, not null, _)) { Spectre.Console.AnsiConsole.WriteException(new ArgumentException($"DisabledColor: '{value}' is not a valid hex color format. Expected '#RRGGBB'.", nameof(value))); - disabledColor = null; + field = null; } else { - disabledColor = value; + field = value; } } - } + } = null; } /// diff --git a/managed/src/SwiftlyS2.Shared/Modules/NetMessages/INetMessage.cs b/managed/src/SwiftlyS2.Shared/Modules/NetMessages/INetMessage.cs index 68cf1184d..2ab9baa14 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/NetMessages/INetMessage.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/NetMessages/INetMessage.cs @@ -2,26 +2,28 @@ namespace SwiftlyS2.Shared.NetMessages; -public interface INetMessage where T : INetMessage, ITypedProtobuf, IDisposable { +public interface INetMessage where T : INetMessage, ITypedProtobuf, IDisposable +{ - public static abstract int MessageId { get; } - public static abstract string MessageName { get; } + public static abstract int MessageId { get; } + public static abstract string MessageName { get; } - public ref CRecipientFilter Recipients { get; } + public ref CRecipientFilter Recipients { get; } - /// - /// Sends the net message with current recipient filter. - public void Send(); + /// + /// Sends the net message with current recipient filter. + /// + public void Send(); - /// - /// Sends the net message to all players. - /// - public void SendToAllPlayers(); + /// + /// Sends the net message to all players. + /// + public void SendToAllPlayers(); - /// - /// Sends the net message to the specified player. - /// - /// The player ID. - public void SendToPlayer(int playerId); + /// + /// Sends the net message to the specified player. + /// + /// The player ID. + public void SendToPlayer( int playerId ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/NetMessages/INetMessageService.cs b/managed/src/SwiftlyS2.Shared/Modules/NetMessages/INetMessageService.cs index 9ba88c4c8..06fce5246 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/NetMessages/INetMessageService.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/NetMessages/INetMessageService.cs @@ -1,73 +1,73 @@ using SwiftlyS2.Shared.Misc; -using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Shared.NetMessages; -public interface INetMessageService { +public interface INetMessageService +{ - /// - /// The handler to handle net messages that are sent from server to the client. - /// - /// Server net message type. - /// The net message to handle. - /// The recipient filter for the net message. - /// The hook result. - delegate HookResult ServerNetMessageHandler(T msg) where T : ITypedProtobuf, INetMessage, IDisposable; + /// + /// The handler to handle net messages that are sent from server to the client. + /// + /// Server net message type. + /// The net message to handle. + /// The recipient filter for the net message. + /// The hook result. + public delegate HookResult ServerNetMessageHandler( T msg ) where T : ITypedProtobuf, INetMessage, IDisposable; - /// - /// The handler to handle net messages that are sent from the client to the server. - /// - /// Client net message type. - /// The net message to handle. - /// The player ID of the client that sent the net message. - /// The hook result. - delegate HookResult ClientNetMessageHandler(T msg, int playerId) where T : ITypedProtobuf, INetMessage, IDisposable; + /// + /// The handler to handle net messages that are sent from the client to the server. + /// + /// Client net message type. + /// The net message to handle. + /// The player ID of the client that sent the net message. + /// The hook result. + public delegate HookResult ClientNetMessageHandler( T msg, int playerId ) where T : ITypedProtobuf, INetMessage, IDisposable; - /// - /// Hooks a client net message. - /// - /// Client net message type. - /// The callback to handle the net message. - /// The unique Guid for the handler. Can be used to unhook it later. - public Guid HookClientMessage(ClientNetMessageHandler callback) where T : ITypedProtobuf, INetMessage, IDisposable; + /// + /// Hooks a client net message. + /// + /// Client net message type. + /// The callback to handle the net message. + /// The unique Guid for the handler. Can be used to unhook it later. + public Guid HookClientMessage( ClientNetMessageHandler callback ) where T : ITypedProtobuf, INetMessage, IDisposable; - /// - /// Hooks a server net message. - /// - /// Server net message type. - /// The callback to handle the net message. - /// The unique Guid for the handler. Can be used to unhook it later. - public Guid HookServerMessage(ServerNetMessageHandler callback) where T : ITypedProtobuf, INetMessage, IDisposable; + /// + /// Hooks a server net message. + /// + /// Server net message type. + /// The callback to handle the net message. + /// The unique Guid for the handler. Can be used to unhook it later. + public Guid HookServerMessage( ServerNetMessageHandler callback ) where T : ITypedProtobuf, INetMessage, IDisposable; - /// - /// Unhooks a net message handler. - /// - /// The unique Guid for the handler. - public void Unhook(Guid guid); + /// + /// Unhooks a net message handler. + /// + /// The unique Guid for the handler. + public void Unhook( Guid guid ); - /// - /// Unhooks all client net message handlers with specified type. - /// - /// Client net message type. - public void UnhookClientMessage() where T : ITypedProtobuf, INetMessage, IDisposable; + /// + /// Unhooks all client net message handlers with specified type. + /// + /// Client net message type. + public void UnhookClientMessage() where T : ITypedProtobuf, INetMessage, IDisposable; - /// - /// Unhooks all server net message handlers with specified type. - /// - /// Server net message type. - public void UnhookServerMessage() where T : ITypedProtobuf, INetMessage, IDisposable; + /// + /// Unhooks all server net message handlers with specified type. + /// + /// Server net message type. + public void UnhookServerMessage() where T : ITypedProtobuf, INetMessage, IDisposable; - /// - /// Creates a new net message of specified type. - /// - /// Net message type. - /// The new net message. - public T Create() where T : ITypedProtobuf, INetMessage, IDisposable; + /// + /// Creates a new net message of specified type. + /// + /// Net message type. + /// The new net message. + public T Create() where T : ITypedProtobuf, INetMessage, IDisposable; - /// - /// Sends a net message to players with configured recipient filter. - /// - /// Net message type. - /// The action to configure the net message and recipient filter. - public void Send(Action configureMessage) where T : ITypedProtobuf, INetMessage, IDisposable; + /// + /// Sends a net message to players with configured recipient filter. + /// + /// Net message type. + /// The action to configure the net message and recipient filter. + public void Send( Action configureMessage ) where T : ITypedProtobuf, INetMessage, IDisposable; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/NetMessages/IProtobufAccessor.cs b/managed/src/SwiftlyS2.Shared/Modules/NetMessages/IProtobufAccessor.cs index 68b4fe404..aa988d260 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/NetMessages/IProtobufAccessor.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/NetMessages/IProtobufAccessor.cs @@ -2,97 +2,98 @@ namespace SwiftlyS2.Shared.NetMessages; -public interface IProtobufAccessor : INativeHandle { - - public bool HasField(string fieldName); - public void SetBool(string fieldName, bool value); - public void AddBool(string fieldName, bool value); - public void SetRepeatedBool(string fieldName, int index, bool value); - public bool GetRepeatedBool(string fieldName, int index); - public bool GetBool(string fieldName); - - public void SetInt32(string fieldName, int value); - public void AddInt32(string fieldName, int value); - public void SetRepeatedInt32(string fieldName, int index, int value); - public int GetRepeatedInt32(string fieldName, int index); - public int GetInt32(string fieldName); - - public void SetUInt32(string fieldName, uint value); - public void AddUInt32(string fieldName, uint value); - public void SetRepeatedUInt32(string fieldName, int index, uint value); - public uint GetRepeatedUInt32(string fieldName, int index); - public uint GetUInt32(string fieldName); - - public void SetInt64(string fieldName, long value); - public void AddInt64(string fieldName, long value); - public void SetRepeatedInt64(string fieldName, int index, long value); - public long GetRepeatedInt64(string fieldName, int index); - public long GetInt64(string fieldName); - - public void SetUInt64(string fieldName, ulong value); - public void AddUInt64(string fieldName, ulong value); - public void SetRepeatedUInt64(string fieldName, int index, ulong value); - public ulong GetRepeatedUInt64(string fieldName, int index); - public ulong GetUInt64(string fieldName); - - public void SetFloat(string fieldName, float value); - public void AddFloat(string fieldName, float value); - public void SetRepeatedFloat(string fieldName, int index, float value); - public float GetRepeatedFloat(string fieldName, int index); - public float GetFloat(string fieldName); - - public void SetDouble(string fieldName, double value); - public void AddDouble(string fieldName, double value); - public void SetRepeatedDouble(string fieldName, int index, double value); - public double GetRepeatedDouble(string fieldName, int index); - public double GetDouble(string fieldName); - - public void SetString(string fieldName, string value); - public void AddString(string fieldName, string value); - public void SetRepeatedString(string fieldName, int index, string value); - public string GetRepeatedString(string fieldName, int index); - public string GetString(string fieldName); - - public void SetBytes(string fieldName, byte[] value); - public void AddBytes(string fieldName, byte[] value); - public void SetRepeatedBytes(string fieldName, int index, byte[] value); - public byte[] GetRepeatedBytes(string fieldName, int index); - public byte[] GetBytes(string fieldName); - - public void SetVector2D(string fieldName, Vector2D value); - public void AddVector2D(string fieldName, Vector2D value); - public void SetRepeatedVector2D(string fieldName, int index, Vector2D value); - public Vector2D GetRepeatedVector2D(string fieldName, int index); - public Vector2D GetVector2D(string fieldName); - - public void SetVector(string fieldName, Vector value); - public void AddVector(string fieldName, Vector value); - public void SetRepeatedVector(string fieldName, int index, Vector value); - public Vector GetRepeatedVector(string fieldName, int index); - public Vector GetVector(string fieldName); - - public void SetColor(string fieldName, Color value); - public void AddColor(string fieldName, Color value); - public void SetRepeatedColor(string fieldName, int index, Color value); - public Color GetRepeatedColor(string fieldName, int index); - public Color GetColor(string fieldName); - - public void SetQAngle(string fieldName, QAngle value); - public void AddQAngle(string fieldName, QAngle value); - public void SetRepeatedQAngle(string fieldName, int index, QAngle value); - public QAngle GetRepeatedQAngle(string fieldName, int index); - public QAngle GetQAngle(string fieldName); - - public unsafe nint GetNestedMessage(string fieldName); - public unsafe nint GetRepeatedNestedMessage(string fieldName, int index); - public unsafe nint AddNestedMessage(string fieldName); - - public int GetRepeatedFieldSize(string fieldName); - public void ClearRepeatedField(string fieldName); - - public void Set(string fieldName, T value); - public void Add(string fieldName, T value); - public void SetRepeated(string fieldName, int index, T value); - public T GetRepeated(string fieldName, int index); - public T Get(string fieldName); +public interface IProtobufAccessor : INativeHandle +{ + + public bool HasField( string fieldName ); + public void SetBool( string fieldName, bool value ); + public void AddBool( string fieldName, bool value ); + public void SetRepeatedBool( string fieldName, int index, bool value ); + public bool GetRepeatedBool( string fieldName, int index ); + public bool GetBool( string fieldName ); + + public void SetInt32( string fieldName, int value ); + public void AddInt32( string fieldName, int value ); + public void SetRepeatedInt32( string fieldName, int index, int value ); + public int GetRepeatedInt32( string fieldName, int index ); + public int GetInt32( string fieldName ); + + public void SetUInt32( string fieldName, uint value ); + public void AddUInt32( string fieldName, uint value ); + public void SetRepeatedUInt32( string fieldName, int index, uint value ); + public uint GetRepeatedUInt32( string fieldName, int index ); + public uint GetUInt32( string fieldName ); + + public void SetInt64( string fieldName, long value ); + public void AddInt64( string fieldName, long value ); + public void SetRepeatedInt64( string fieldName, int index, long value ); + public long GetRepeatedInt64( string fieldName, int index ); + public long GetInt64( string fieldName ); + + public void SetUInt64( string fieldName, ulong value ); + public void AddUInt64( string fieldName, ulong value ); + public void SetRepeatedUInt64( string fieldName, int index, ulong value ); + public ulong GetRepeatedUInt64( string fieldName, int index ); + public ulong GetUInt64( string fieldName ); + + public void SetFloat( string fieldName, float value ); + public void AddFloat( string fieldName, float value ); + public void SetRepeatedFloat( string fieldName, int index, float value ); + public float GetRepeatedFloat( string fieldName, int index ); + public float GetFloat( string fieldName ); + + public void SetDouble( string fieldName, double value ); + public void AddDouble( string fieldName, double value ); + public void SetRepeatedDouble( string fieldName, int index, double value ); + public double GetRepeatedDouble( string fieldName, int index ); + public double GetDouble( string fieldName ); + + public void SetString( string fieldName, string value ); + public void AddString( string fieldName, string value ); + public void SetRepeatedString( string fieldName, int index, string value ); + public string GetRepeatedString( string fieldName, int index ); + public string GetString( string fieldName ); + + public void SetBytes( string fieldName, byte[] value ); + public void AddBytes( string fieldName, byte[] value ); + public void SetRepeatedBytes( string fieldName, int index, byte[] value ); + public byte[] GetRepeatedBytes( string fieldName, int index ); + public byte[] GetBytes( string fieldName ); + + public void SetVector2D( string fieldName, Vector2D value ); + public void AddVector2D( string fieldName, Vector2D value ); + public void SetRepeatedVector2D( string fieldName, int index, Vector2D value ); + public Vector2D GetRepeatedVector2D( string fieldName, int index ); + public Vector2D GetVector2D( string fieldName ); + + public void SetVector( string fieldName, Vector value ); + public void AddVector( string fieldName, Vector value ); + public void SetRepeatedVector( string fieldName, int index, Vector value ); + public Vector GetRepeatedVector( string fieldName, int index ); + public Vector GetVector( string fieldName ); + + public void SetColor( string fieldName, Color value ); + public void AddColor( string fieldName, Color value ); + public void SetRepeatedColor( string fieldName, int index, Color value ); + public Color GetRepeatedColor( string fieldName, int index ); + public Color GetColor( string fieldName ); + + public void SetQAngle( string fieldName, QAngle value ); + public void AddQAngle( string fieldName, QAngle value ); + public void SetRepeatedQAngle( string fieldName, int index, QAngle value ); + public QAngle GetRepeatedQAngle( string fieldName, int index ); + public QAngle GetQAngle( string fieldName ); + + public unsafe nint GetNestedMessage( string fieldName ); + public unsafe nint GetRepeatedNestedMessage( string fieldName, int index ); + public unsafe nint AddNestedMessage( string fieldName ); + + public int GetRepeatedFieldSize( string fieldName ); + public void ClearRepeatedField( string fieldName ); + + public void Set( string fieldName, T value ); + public void Add( string fieldName, T value ); + public void SetRepeated( string fieldName, int index, T value ); + public T GetRepeated( string fieldName, int index ); + public T Get( string fieldName ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/NetMessages/IProtobufRepeatedField.cs b/managed/src/SwiftlyS2.Shared/Modules/NetMessages/IProtobufRepeatedField.cs index bdd76456f..3727cef76 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/NetMessages/IProtobufRepeatedField.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/NetMessages/IProtobufRepeatedField.cs @@ -1,9 +1,11 @@ namespace SwiftlyS2.Shared.NetMessages; -public interface IRepeatedField { +public interface IRepeatedField +{ } -public interface IProtobufRepeatedFieldValueType : IRepeatedField, IList { +public interface IProtobufRepeatedFieldValueType : IRepeatedField, IList +{ @@ -12,10 +14,10 @@ public interface IProtobufRepeatedFieldValueType : IRepeatedField, IList { public interface IProtobufRepeatedFieldSubMessageType : IRepeatedField, IEnumerable where T : ITypedProtobuf { - public int Count { get; } + public int Count { get; } - T Get(int index); + public T Get( int index ); - T Add(); + public T Add(); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/NetMessages/ITypedProtobuf.cs b/managed/src/SwiftlyS2.Shared/Modules/NetMessages/ITypedProtobuf.cs index 0b3065f1e..2db02ec9f 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/NetMessages/ITypedProtobuf.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/NetMessages/ITypedProtobuf.cs @@ -1,13 +1,13 @@ -using SwiftlyS2.Core.NetMessages; using SwiftlyS2.Shared.Natives; namespace SwiftlyS2.Shared.NetMessages; -public interface ITypedProtobuf : INativeHandle where T : ITypedProtobuf { +public interface ITypedProtobuf : INativeHandle where T : ITypedProtobuf +{ - public IProtobufAccessor Accessor { get; } + public IProtobufAccessor Accessor { get; } - internal abstract static T Wrap(nint handle, bool isManuallyAllocated); + internal abstract static T Wrap( nint handle, bool isManuallyAllocated ); } diff --git a/managed/src/SwiftlyS2.Shared/Modules/NetMessages/NetMessageHandlerAttribute.cs b/managed/src/SwiftlyS2.Shared/Modules/NetMessages/NetMessageHandlerAttribute.cs index f841aa60c..a1b690f8e 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/NetMessages/NetMessageHandlerAttribute.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/NetMessages/NetMessageHandlerAttribute.cs @@ -1,16 +1,20 @@ namespace SwiftlyS2.Shared.NetMessages; [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] -public class ServerNetMessageHandler : Attribute { - public ServerNetMessageHandler() { - } +public class ServerNetMessageHandler : Attribute +{ + public ServerNetMessageHandler() + { + } } [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] -public class ClientNetMessageHandler : Attribute { - public ClientNetMessageHandler() { - } +public class ClientNetMessageHandler : Attribute +{ + public ClientNetMessageHandler() + { + } } diff --git a/managed/src/SwiftlyS2.Shared/Modules/Permissions/IPermissionManager.cs b/managed/src/SwiftlyS2.Shared/Modules/Permissions/IPermissionManager.cs index 8d176751e..f33e8fb7e 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Permissions/IPermissionManager.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Permissions/IPermissionManager.cs @@ -1,41 +1,42 @@ namespace SwiftlyS2.Shared.Permissions; -public interface IPermissionManager { +public interface IPermissionManager +{ - /// - /// Checks if a player has a permission. - /// Support 'xxx.*' for wildcard permissions. - /// - /// The Steam ID of the player. - /// The permission to check. - /// True if the player has the permission, false otherwise. - bool PlayerHasPermission(ulong steamId, string permission); + /// + /// Checks if a player has a permission. + /// Support 'xxx.*' for wildcard permissions. + /// + /// The Steam ID of the player. + /// The permission to check. + /// True if the player has the permission, false otherwise. + public bool PlayerHasPermission( ulong steamId, string permission ); - /// - /// Adds a permission to a player. - /// - /// The Steam ID of the player. - /// The permission to add. - void AddPermission(ulong steamId, string permission); + /// + /// Adds a permission to a player. + /// + /// The Steam ID of the player. + /// The permission to add. + public void AddPermission( ulong steamId, string permission ); - /// - /// Removes a permission from a player. - /// - /// The Steam ID of the player. - /// The permission to remove. - void RemovePermission(ulong steamId, string permission); + /// + /// Removes a permission from a player. + /// + /// The Steam ID of the player. + /// The permission to remove. + public void RemovePermission( ulong steamId, string permission ); - /// - /// Adds a sub-permission to a permission. - /// - /// The permission to add the sub-permission to. - /// The sub-permission to add. - void AddSubPermission(string permission, string subPermission); + /// + /// Adds a sub-permission to a permission. + /// + /// The permission to add the sub-permission to. + /// The sub-permission to add. + public void AddSubPermission( string permission, string subPermission ); - /// - /// Removes a sub-permission from a permission. - /// - /// The permission to remove the sub-permission from. - /// The sub-permission to remove. - void RemoveSubPermission(string permission, string subPermission); + /// + /// Removes a sub-permission from a permission. + /// + /// The permission to remove the sub-permission from. + /// The sub-permission to remove. + public void RemoveSubPermission( string permission, string subPermission ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Players/IPlayer.cs b/managed/src/SwiftlyS2.Shared/Modules/Players/IPlayer.cs index 9dd30dc54..8a03601dd 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Players/IPlayer.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Players/IPlayer.cs @@ -1,4 +1,4 @@ -using SwiftlyS2.Shared.Events; +using SwiftlyS2.Shared.Events; using SwiftlyS2.Shared.Natives; using SwiftlyS2.Shared.ProtobufDefinitions; using SwiftlyS2.Shared.SchemaDefinitions; diff --git a/managed/src/SwiftlyS2.Shared/Modules/Players/IPlayerManager.cs b/managed/src/SwiftlyS2.Shared/Modules/Players/IPlayerManager.cs index 1dca917db..c643cef1d 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Players/IPlayerManager.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Players/IPlayerManager.cs @@ -1,4 +1,4 @@ -namespace SwiftlyS2.Shared.Players; +namespace SwiftlyS2.Shared.Players; public interface IPlayerManagerService { diff --git a/managed/src/SwiftlyS2.Shared/Modules/Players/MessageType.cs b/managed/src/SwiftlyS2.Shared/Modules/Players/MessageType.cs index 6072f1086..fa66e5909 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Players/MessageType.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Players/MessageType.cs @@ -1,6 +1,6 @@ -namespace SwiftlyS2.Shared.Players; +namespace SwiftlyS2.Shared.Players; -public enum MessageType: byte +public enum MessageType : byte { Notify = 1, Console, diff --git a/managed/src/SwiftlyS2.Shared/Modules/Profiler/IContextedProfilerService.cs b/managed/src/SwiftlyS2.Shared/Modules/Profiler/IContextedProfilerService.cs index 4226c2081..1eec771a6 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Profiler/IContextedProfilerService.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Profiler/IContextedProfilerService.cs @@ -1,24 +1,25 @@ namespace SwiftlyS2.Shared.Profiler; -public interface IContextedProfilerService { +public interface IContextedProfilerService +{ - /// - /// Start recording a new profile with the given name. - /// - /// The name of the profile to start. - void StartRecording(string name); + /// + /// Start recording a new profile with the given name. + /// + /// The name of the profile to start. + public void StartRecording( string name ); - /// - /// Stop recording the profile with the given name. - /// - /// The name of the profile to stop. - void StopRecording(string name); + /// + /// Stop recording the profile with the given name. + /// + /// The name of the profile to stop. + public void StopRecording( string name ); - /// - /// Record the time taken for the given profile. - /// - /// The name of the profile to record the time for. - /// The duration to record. - void RecordTime(string name, double duration); + /// + /// Record the time taken for the given profile. + /// + /// The name of the profile to record the time for. + /// The duration to record. + public void RecordTime( string name, double duration ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Scheduler/ISchedulerService.cs b/managed/src/SwiftlyS2.Shared/Modules/Scheduler/ISchedulerService.cs index a4a5f3076..66dc387fc 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Scheduler/ISchedulerService.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Scheduler/ISchedulerService.cs @@ -1,75 +1,82 @@ namespace SwiftlyS2.Shared.Scheduler; -public interface ISchedulerService { +public interface ISchedulerService +{ - /// - /// Add a task to be executed on the next tick. - /// - /// The task to execute. - void NextTick(Action task); + /// + /// Add a task to be executed on the next tick. + /// + /// The task to execute. + public void NextTick( Action task ); - /// - /// Add a delayed task to the scheduler. - /// - /// The delay of the timer in ticks. - /// The task to execute. - /// A CancellationTokenSource that can be used to cancel the timer. - CancellationTokenSource Delay(int delayTick, Action task); + /// + /// Add a task to be executed on the next world update. + /// + /// The task to execute. + public void NextWorldUpdate( Action task ); - /// - /// Add a repeated task to the scheduler. - /// This will be executed once immediately, and then every periodTick ticks. - /// - /// The period of the timer in ticks. - /// The task to execute. - /// A CancellationTokenSource that can be used to cancel the timer. - CancellationTokenSource Repeat(int periodTick, Action task); + /// + /// Add a delayed task to the scheduler. + /// + /// The delay of the timer in ticks. + /// The task to execute. + /// A CancellationTokenSource that can be used to cancel the timer. + public CancellationTokenSource Delay( int delayTick, Action task ); - /// - /// Add a delayed and repeated task to the scheduler. - /// - /// The delay of the timer in ticks. - /// The period of the timer in ticks. - /// The task to execute. - /// A CancellationTokenSource that can be used to cancel the timer. - CancellationTokenSource DelayAndRepeat(int delayTick, int periodTick, Action task); + /// + /// Add a repeated task to the scheduler. + /// This will be executed once immediately, and then every periodTick ticks. + /// + /// The period of the timer in ticks. + /// The task to execute. + /// A CancellationTokenSource that can be used to cancel the timer. + public CancellationTokenSource Repeat( int periodTick, Action task ); + /// + /// Add a delayed and repeated task to the scheduler. + /// + /// The delay of the timer in ticks. + /// The period of the timer in ticks. + /// The task to execute. + /// A CancellationTokenSource that can be used to cancel the timer. + public CancellationTokenSource DelayAndRepeat( int delayTick, int periodTick, Action task ); - /// - /// Add a delayed task to the scheduler. - /// - /// The timing is based on game tick, which means it becomes inaccurate when intervals approachs 1 tick (approximately 15ms). - /// - /// The delay of the timer in seconds. - /// The task to execute. - /// A CancellationTokenSource that can be used to cancel the timer. - CancellationTokenSource DelayBySeconds(float delaySeconds, Action task); - /// - /// Add a repeated task to the scheduler. - /// This will be executed once immediately, and then every periodSeconds seconds. - /// - /// The timing is based on game tick, which means it becomes inaccurate when intervals approachs 1 tick (approximately 15ms). - /// - /// The period of the timer in seconds. - /// The task to execute. - /// A CancellationTokenSource that can be used to cancel the timer. - CancellationTokenSource RepeatBySeconds(float periodSeconds, Action task); + /// + /// Add a delayed task to the scheduler. + /// + /// The timing is based on game tick, which means it becomes inaccurate when intervals approachs 1 tick (approximately 15ms). + /// + /// The delay of the timer in seconds. + /// The task to execute. + /// A CancellationTokenSource that can be used to cancel the timer. + public CancellationTokenSource DelayBySeconds( float delaySeconds, Action task ); - /// - /// Add a delayed and repeated task to the scheduler. - /// - /// The timing is based on game tick, which means it becomes inaccurate when intervals approachs 1 tick (approximately 15ms). - /// - /// The delay of the timer in seconds. - /// The period of the timer in seconds. - /// The task to execute. - /// A CancellationTokenSource that can be used to cancel the timer. - CancellationTokenSource DelayAndRepeatBySeconds(float delaySeconds, float periodSeconds, Action task); + /// + /// Add a repeated task to the scheduler. + /// This will be executed once immediately, and then every periodSeconds seconds. + /// + /// The timing is based on game tick, which means it becomes inaccurate when intervals approachs 1 tick (approximately 15ms). + /// + /// The period of the timer in seconds. + /// The task to execute. + /// A CancellationTokenSource that can be used to cancel the timer. + public CancellationTokenSource RepeatBySeconds( float periodSeconds, Action task ); - /// - /// Stop a timer when the map changes. - /// - /// The CancellationTokenSource to stop. - void StopOnMapChange(CancellationTokenSource cts); + /// + /// Add a delayed and repeated task to the scheduler. + /// + /// The timing is based on game tick, which means it becomes inaccurate when intervals approachs 1 tick (approximately 15ms). + /// + /// The delay of the timer in seconds. + /// The period of the timer in seconds. + /// The task to execute. + /// A CancellationTokenSource that can be used to cancel the timer. + public CancellationTokenSource DelayAndRepeatBySeconds( float delaySeconds, float periodSeconds, Action task ); + + /// + /// Stop a timer when the map changes. + /// + /// The CancellationTokenSource to stop. + public void StopOnMapChange( CancellationTokenSource cts ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaClass.cs b/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaClass.cs index 4cb2413e1..04df65047 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaClass.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaClass.cs @@ -5,21 +5,21 @@ namespace SwiftlyS2.Shared.Schemas; public interface ISchemaClass : INativeHandle { - /// - /// Convert this handle to another type. - /// - /// The type to convert to. - /// The converted handle. - K As() where K : ISchemaClass - { - return K.From(Address); - } + /// + /// Convert this handle to another type. + /// + /// The type to convert to. + /// The converted handle. + public K As() where K : ISchemaClass + { + return K.From(Address); + } } public interface ISchemaClass : ISchemaField, ISchemaClass, INativeHandle where T : ISchemaClass { - internal static abstract T From(nint handle); - internal static abstract int Size { get; } + internal static abstract T From( nint handle ); + internal static abstract int Size { get; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaField.cs b/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaField.cs index f129e4464..9dda6f5b9 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaField.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaField.cs @@ -2,7 +2,8 @@ namespace SwiftlyS2.Shared.Schemas; -public interface ISchemaField : INativeHandle { +public interface ISchemaField : INativeHandle +{ } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaFixedArray.cs b/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaFixedArray.cs index f4cb1670f..12eb6e5e0 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaFixedArray.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaFixedArray.cs @@ -1,13 +1,14 @@ namespace SwiftlyS2.Shared.Schemas; -public interface ISchemaFixedArray : ISchemaField where T : unmanaged { +public interface ISchemaFixedArray : ISchemaField where T : unmanaged +{ - public int ElementAlignment { get; } + public int ElementAlignment { get; } - public int ElementCount { get; } + public int ElementCount { get; } - public int ElementSize { get; } + public int ElementSize { get; } - public ref T this[int index] { get; } + public ref T this[int index] { get; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaFixedString.cs b/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaFixedString.cs index e088e5873..8c36053d4 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaFixedString.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Schemas/ISchemaFixedString.cs @@ -1,9 +1,8 @@ -using SwiftlyS2.Core.Schemas; - namespace SwiftlyS2.Shared.Schemas; -public interface ISchemaFixedString : ISchemaFixedArray, IFormattable { +public interface ISchemaFixedString : ISchemaFixedArray, IFormattable +{ - public string Value { get; set; } + public string Value { get; set; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Schemas/SchemaSize.cs b/managed/src/SwiftlyS2.Shared/Modules/Schemas/SchemaSize.cs index 73f689500..2df0df20f 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Schemas/SchemaSize.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Schemas/SchemaSize.cs @@ -1,5 +1,4 @@ using System.Collections.Concurrent; -using System.Reflection; using System.Runtime.CompilerServices; namespace SwiftlyS2.Shared.Schemas; @@ -33,4 +32,5 @@ public static int Get() return Unsafe.SizeOf(); }); - }} + } +} diff --git a/managed/src/SwiftlyS2.Shared/Modules/Schemas/SchemaUntypedField.cs b/managed/src/SwiftlyS2.Shared/Modules/Schemas/SchemaUntypedField.cs index 629cc3ba5..2b768946a 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Schemas/SchemaUntypedField.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Schemas/SchemaUntypedField.cs @@ -4,21 +4,18 @@ namespace SwiftlyS2.Shared.Schemas; public class SchemaUntypedField : INativeHandle, ISchemaClass { + public bool IsValid => throw new NotImplementedException(); + static int ISchemaClass.Size => throw new NotImplementedException(); - private nint _handle; + public SchemaUntypedField( nint handle ) + { + Address = handle; + } - public bool IsValid => throw new NotImplementedException(); - static int ISchemaClass.Size => throw new NotImplementedException(); + public static SchemaUntypedField From( nint handle ) + { + return new SchemaUntypedField(handle); + } - public SchemaUntypedField(nint handle) - { - _handle = handle; - } - - public static SchemaUntypedField From(nint handle) - { - return new SchemaUntypedField(handle); - } - - public nint Address => _handle; + public nint Address { get; } } diff --git a/managed/src/SwiftlyS2.Shared/Modules/Sounds/SoundEvent.cs b/managed/src/SwiftlyS2.Shared/Modules/Sounds/SoundEvent.cs index 37a8bc194..351f67427 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Sounds/SoundEvent.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Sounds/SoundEvent.cs @@ -7,145 +7,143 @@ namespace SwiftlyS2.Shared.Sounds; public class SoundEvent : IDisposable { - private SoundEventSafeHandle _handle; - - - /// - /// The sound event name. - /// - public string Name - { - get => NativeSounds.GetName(Address); - set => NativeSounds.SetName(Address, value); - } - - /// - /// The index of the entity that this sound event is emitted from. - /// Setting to -1 (default) will emit the sound from the recipient location. - /// - public int SourceEntityIndex - { - get => NativeSounds.GetSourceEntityIndex(Address); - set => NativeSounds.SetSourceEntityIndex(Address, value); - } - - /// - /// The volume of the sound event. - /// - public float Volume - { - get => NativeSounds.GetFloat(Address, "public.volume"); - set => NativeSounds.SetFloat(Address, "public.volume", value); - } - - /// - /// The pitch of the sound event. - /// - public float Pitch - { - get => NativeSounds.GetFloat(Address, "public.pitch"); - set => NativeSounds.SetFloat(Address, "public.pitch", value); - } - - private CRecipientFilter _recipients = new(); - - /// - /// The recipients of the sound event. - /// - public ref CRecipientFilter Recipients { get => ref _recipients; } - - public SoundEvent() - { - _handle = new SoundEventSafeHandle(NativeSounds.CreateSoundEvent()); - Volume = 1.0f; - Pitch = 1.0f; - SourceEntityIndex = -1; - } - - - public SoundEvent(string name, float volume = 1.0f, float pitch = 1.0f) - { - _handle = new SoundEventSafeHandle(NativeSounds.CreateSoundEvent()); - Name = name; - Volume = volume; - Pitch = pitch; - SourceEntityIndex = -1; - } - - private nint Address => _handle.Address; - - public void SetSourceEntity(CEntityInstance entity) - { - SourceEntityIndex = (int)entity.Index; - } - - public void SetBool(string fieldName, bool value) - { - NativeSounds.SetBool(Address, fieldName, value); - } - - public bool GetBool(string fieldName) - { - return NativeSounds.GetBool(Address, fieldName); - } - - public void SetInt32(string fieldName, int value) - { - NativeSounds.SetInt32(Address, fieldName, value); - } - - public int GetInt32(string fieldName) - { - return NativeSounds.GetInt32(Address, fieldName); - } - - public void SetUInt32(string fieldName, uint value) - { - NativeSounds.SetUInt32(Address, fieldName, value); - } - - public uint GetUInt32(string fieldName) - { - return NativeSounds.GetUInt32(Address, fieldName); - } - - public void SetFloat(string fieldName, float value) - { - NativeSounds.SetFloat(Address, fieldName, value); - } - - public float GetFloat(string fieldName) - { - return NativeSounds.GetFloat(Address, fieldName); - } - - public void SetFloat3(string fieldName, float x, float y, float z) - { - Vector vec = new(x, y, z); - NativeSounds.SetFloat3(Address, fieldName, vec); - } - - public void SetFloat3(string fieldName, Vector vec) - { - NativeSounds.SetFloat3(Address, fieldName, vec); - } - - public Vector GetFloat3(string fieldName) - { - return NativeSounds.GetFloat3(Address, fieldName); - } - - /// - /// Emit the sound event. - /// - public void Emit() - { - NativeSounds.SetClients(Address, Recipients.ToMask()); - NativeSounds.Emit(Address); - } - - public void Dispose() - { - _handle.Dispose(); - } + private readonly SoundEventSafeHandle _handle; + + + /// + /// The sound event name. + /// + public string Name { + get => NativeSounds.GetName(Address); + set => NativeSounds.SetName(Address, value); + } + + /// + /// The index of the entity that this sound event is emitted from. + /// Setting to -1 (default) will emit the sound from the recipient location. + /// + public int SourceEntityIndex { + get => NativeSounds.GetSourceEntityIndex(Address); + set => NativeSounds.SetSourceEntityIndex(Address, value); + } + + /// + /// The volume of the sound event. + /// + public float Volume { + get => NativeSounds.GetFloat(Address, "public.volume"); + set => NativeSounds.SetFloat(Address, "public.volume", value); + } + + /// + /// The pitch of the sound event. + /// + public float Pitch { + get => NativeSounds.GetFloat(Address, "public.pitch"); + set => NativeSounds.SetFloat(Address, "public.pitch", value); + } + + private CRecipientFilter _recipients = new(); + + /// + /// The recipients of the sound event. + /// + public ref CRecipientFilter Recipients { get => ref _recipients; } + + public SoundEvent() + { + _handle = new SoundEventSafeHandle(NativeSounds.CreateSoundEvent()); + Volume = 1.0f; + Pitch = 1.0f; + SourceEntityIndex = -1; + } + + + public SoundEvent( string name, float volume = 1.0f, float pitch = 1.0f ) + { + _handle = new SoundEventSafeHandle(NativeSounds.CreateSoundEvent()); + Name = name; + Volume = volume; + Pitch = pitch; + SourceEntityIndex = -1; + } + + private nint Address => _handle.Address; + + public void SetSourceEntity( CEntityInstance entity ) + { + SourceEntityIndex = (int)entity.Index; + } + + public void SetBool( string fieldName, bool value ) + { + NativeSounds.SetBool(Address, fieldName, value); + } + + public bool GetBool( string fieldName ) + { + return NativeSounds.GetBool(Address, fieldName); + } + + public void SetInt32( string fieldName, int value ) + { + NativeSounds.SetInt32(Address, fieldName, value); + } + + public int GetInt32( string fieldName ) + { + return NativeSounds.GetInt32(Address, fieldName); + } + + public void SetUInt32( string fieldName, uint value ) + { + NativeSounds.SetUInt32(Address, fieldName, value); + } + + public uint GetUInt32( string fieldName ) + { + return NativeSounds.GetUInt32(Address, fieldName); + } + + public void SetFloat( string fieldName, float value ) + { + NativeSounds.SetFloat(Address, fieldName, value); + } + + public float GetFloat( string fieldName ) + { + return NativeSounds.GetFloat(Address, fieldName); + } + + public void SetFloat3( string fieldName, float x, float y, float z ) + { + Vector vec = new(x, y, z); + NativeSounds.SetFloat3(Address, fieldName, vec); + } + + public void SetFloat3( string fieldName, Vector vec ) + { + NativeSounds.SetFloat3(Address, fieldName, vec); + } + + public Vector GetFloat3( string fieldName ) + { + return NativeSounds.GetFloat3(Address, fieldName); + } + + /// + /// Emit the sound event. + /// + /// The emitted sound event guid. + /// + public uint Emit() + { + NativeSounds.SetClients(Address, Recipients.ToMask()); + return NativeSounds.Emit(Address); + } + + public void Dispose() + { + _handle.Dispose(); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Sounds/SoundEventSafeHandle.cs b/managed/src/SwiftlyS2.Shared/Modules/Sounds/SoundEventSafeHandle.cs index 5687b9f6c..399dca6cb 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Sounds/SoundEventSafeHandle.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Sounds/SoundEventSafeHandle.cs @@ -3,13 +3,16 @@ namespace SwiftlyS2.Shared.Sounds; -internal class SoundEventSafeHandle : AllocableNativeHandle { +internal class SoundEventSafeHandle : AllocableNativeHandle +{ - public SoundEventSafeHandle(nint handle) : base(handle, ownsHandle: true) { - } + public SoundEventSafeHandle( nint handle ) : base(handle, ownsHandle: true) + { + } - protected override bool Free() { - NativeSounds.DestroySoundEvent(Address); - return true; - } + protected override bool Free() + { + NativeSounds.DestroySoundEvent(Address); + return true; + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/CallbackDispatcher.cs b/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/CallbackDispatcher.cs index 0653cb87c..22843ab72 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/CallbackDispatcher.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/CallbackDispatcher.cs @@ -1,6 +1,4 @@ -using System; using System.Collections.Concurrent; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.SteamAPI; @@ -27,7 +25,7 @@ internal static unsafe void RegisterCallback( ICallbackHandler handler ) w var callbackId = CallbackIdentities.GetCallbackIdentity(typeof(T)); // Add handler to dictionary - s_callbackHandlers.AddOrUpdate( + _ = s_callbackHandlers.AddOrUpdate( callbackId, _ => [handler], ( _, list ) => { list.Add(handler); return list; } @@ -446,7 +444,7 @@ private static unsafe int GetCallbackSizeBytes( CCallbackBase* self ) Console.WriteLine($"GetCallbackSizeBytes"); try { - int callbackId = self->m_iCallback; + var callbackId = self->m_iCallback; // Find the callback type by ID foreach (var type in typeof(CCallbackBase).Assembly.GetTypes()) diff --git a/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/ISteamMatchmakingResponses.cs b/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/ISteamMatchmakingResponses.cs index eec85cab4..d3d8b7856 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/ISteamMatchmakingResponses.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/ISteamMatchmakingResponses.cs @@ -7,8 +7,6 @@ -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.SteamAPI; @@ -32,13 +30,13 @@ public class ISteamMatchmakingServerListResponse // A list refresh you had initiated is now 100% completed public delegate void RefreshComplete( HServerListRequest hRequest, EMatchMakingServerResponse response ); - private VTable m_VTable; - private IntPtr m_pVTable; + private readonly VTable m_VTable; + private readonly IntPtr m_pVTable; private GCHandle m_pGCHandle; - private ServerResponded m_ServerResponded; - private ServerFailedToRespond m_ServerFailedToRespond; - private RefreshComplete m_RefreshComplete; - private static readonly Dictionary m_Instances = new Dictionary(); + private readonly ServerResponded m_ServerResponded; + private readonly ServerFailedToRespond m_ServerFailedToRespond; + private readonly RefreshComplete m_RefreshComplete; + private static readonly Dictionary m_Instances = []; public ISteamMatchmakingServerListResponse( ServerResponded onServerResponded, ServerFailedToRespond onServerFailedToRespond, RefreshComplete onRefreshComplete ) { @@ -69,7 +67,7 @@ public ISteamMatchmakingServerListResponse( ServerResponded onServerResponded, S { lock (m_Instances) { - m_Instances.Remove(m_pVTable); + _ = m_Instances.Remove(m_pVTable); } if (m_pVTable != IntPtr.Zero) @@ -95,7 +93,7 @@ private void InternalOnServerResponded( HServerListRequest hRequest, int iServer { m_ServerResponded(hRequest, iServer); } - catch (Exception e) + catch (Exception) { } } @@ -105,7 +103,7 @@ private void InternalOnServerFailedToRespond( HServerListRequest hRequest, int i { m_ServerFailedToRespond(hRequest, iServer); } - catch (Exception e) + catch (Exception) { } } @@ -115,7 +113,7 @@ private void InternalOnRefreshComplete( HServerListRequest hRequest, EMatchMakin { m_RefreshComplete(hRequest, response); } - catch (Exception e) + catch (Exception) { } } @@ -136,7 +134,7 @@ private class VTable public InternalRefreshComplete m_VTRefreshComplete; } - public static explicit operator System.IntPtr( ISteamMatchmakingServerListResponse that ) + public static explicit operator nint( ISteamMatchmakingServerListResponse that ) { return that.m_pGCHandle.AddrOfPinnedObject(); } @@ -160,12 +158,12 @@ public class ISteamMatchmakingPingResponse // Server failed to respond to the ping request public delegate void ServerFailedToRespond(); - private VTable m_VTable; - private IntPtr m_pVTable; + private readonly VTable m_VTable; + private readonly IntPtr m_pVTable; private GCHandle m_pGCHandle; - private ServerResponded m_ServerResponded; - private ServerFailedToRespond m_ServerFailedToRespond; - private static readonly Dictionary m_Instances = new Dictionary(); + private readonly ServerResponded m_ServerResponded; + private readonly ServerFailedToRespond m_ServerFailedToRespond; + private static readonly Dictionary m_Instances = []; public ISteamMatchmakingPingResponse( ServerResponded onServerResponded, ServerFailedToRespond onServerFailedToRespond ) { @@ -194,7 +192,7 @@ public ISteamMatchmakingPingResponse( ServerResponded onServerResponded, ServerF { lock (m_Instances) { - m_Instances.Remove(m_pVTable); + _ = m_Instances.Remove(m_pVTable); } if (m_pVTable != IntPtr.Zero) { @@ -232,7 +230,7 @@ private class VTable public InternalServerFailedToRespond m_VTServerFailedToRespond; } - public static explicit operator System.IntPtr( ISteamMatchmakingPingResponse that ) + public static explicit operator nint( ISteamMatchmakingPingResponse that ) { return that.m_pGCHandle.AddrOfPinnedObject(); } @@ -262,13 +260,13 @@ public class ISteamMatchmakingPlayersResponse // (ie, you won't get anymore AddPlayerToList callbacks) public delegate void PlayersRefreshComplete(); - private VTable m_VTable; - private IntPtr m_pVTable; + private readonly VTable m_VTable; + private readonly IntPtr m_pVTable; private GCHandle m_pGCHandle; - private AddPlayerToList m_AddPlayerToList; - private PlayersFailedToRespond m_PlayersFailedToRespond; - private PlayersRefreshComplete m_PlayersRefreshComplete; - private static readonly Dictionary m_Instances = new Dictionary(); + private readonly AddPlayerToList m_AddPlayerToList; + private readonly PlayersFailedToRespond m_PlayersFailedToRespond; + private readonly PlayersRefreshComplete m_PlayersRefreshComplete; + private static readonly Dictionary m_Instances = []; public ISteamMatchmakingPlayersResponse( AddPlayerToList onAddPlayerToList, PlayersFailedToRespond onPlayersFailedToRespond, PlayersRefreshComplete onPlayersRefreshComplete ) { @@ -299,7 +297,7 @@ public ISteamMatchmakingPlayersResponse( AddPlayerToList onAddPlayerToList, Play { lock (m_Instances) { - m_Instances.Remove(m_pVTable); + _ = m_Instances.Remove(m_pVTable); } if (m_pVTable != IntPtr.Zero) { @@ -347,7 +345,7 @@ private class VTable public InternalPlayersRefreshComplete m_VTPlayersRefreshComplete; } - public static explicit operator System.IntPtr( ISteamMatchmakingPlayersResponse that ) + public static explicit operator nint( ISteamMatchmakingPlayersResponse that ) { return that.m_pGCHandle.AddrOfPinnedObject(); } @@ -377,13 +375,13 @@ public class ISteamMatchmakingRulesResponse // (ie, you won't get anymore RulesResponded callbacks) public delegate void RulesRefreshComplete(); - private VTable m_VTable; - private IntPtr m_pVTable; + private readonly VTable m_VTable; + private readonly IntPtr m_pVTable; private GCHandle m_pGCHandle; - private RulesResponded m_RulesResponded; - private RulesFailedToRespond m_RulesFailedToRespond; - private RulesRefreshComplete m_RulesRefreshComplete; - private static readonly Dictionary m_Instances = new Dictionary(); + private readonly RulesResponded m_RulesResponded; + private readonly RulesFailedToRespond m_RulesFailedToRespond; + private readonly RulesRefreshComplete m_RulesRefreshComplete; + private static readonly Dictionary m_Instances = []; public ISteamMatchmakingRulesResponse( RulesResponded onRulesResponded, RulesFailedToRespond onRulesFailedToRespond, RulesRefreshComplete onRulesRefreshComplete ) { @@ -414,7 +412,7 @@ public ISteamMatchmakingRulesResponse( RulesResponded onRulesResponded, RulesFai { lock (m_Instances) { - m_Instances.Remove(m_pVTable); + _ = m_Instances.Remove(m_pVTable); } if (m_pVTable != IntPtr.Zero) { @@ -462,7 +460,7 @@ private class VTable public InternalRulesRefreshComplete m_VTRulesRefreshComplete; } - public static explicit operator System.IntPtr( ISteamMatchmakingRulesResponse that ) + public static explicit operator nint( ISteamMatchmakingRulesResponse that ) { return that.m_pGCHandle.AddrOfPinnedObject(); } diff --git a/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/InteropHelp.cs b/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/InteropHelp.cs index 732ae5b41..13f32528b 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/InteropHelp.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/InteropHelp.cs @@ -1,7 +1,6 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; - using System.Text; +using IntPtr = nint; namespace SwiftlyS2.Shared.SteamAPI; @@ -44,17 +43,17 @@ public static void TestIfPlatformSupported() public static void TestIfAvailableClient() { TestIfPlatformSupported(); - throw new System.InvalidOperationException("Steamworks Client is not available."); + throw new InvalidOperationException("Steamworks Client is not available."); } public static void TestIfAvailableGameServer() { TestIfPlatformSupported(); - if (CSteamGameServerAPIContext.GetSteamClient() == System.IntPtr.Zero) + if (CSteamGameServerAPIContext.GetSteamClient() == IntPtr.Zero) { if (!CSteamGameServerAPIContext.Init()) { - throw new System.InvalidOperationException("Steamworks GameServer is not initialized."); + throw new InvalidOperationException("Steamworks GameServer is not initialized."); } } } @@ -67,7 +66,7 @@ public static string PtrToStringUTF8( IntPtr nativeUtf8 ) return null; } - int len = 0; + var len = 0; while (Marshal.ReadByte(nativeUtf8, len) != 0) { @@ -79,14 +78,14 @@ public static string PtrToStringUTF8( IntPtr nativeUtf8 ) return string.Empty; } - byte[] buffer = new byte[len]; + var buffer = new byte[len]; Marshal.Copy(nativeUtf8, buffer, 0, buffer.Length); return Encoding.UTF8.GetString(buffer); } public static string ByteArrayToStringUTF8( byte[] buffer ) { - int length = 0; + var length = 0; while (length < buffer.Length && buffer[length] != 0) { length++; @@ -98,7 +97,7 @@ public static string ByteArrayToStringUTF8( byte[] buffer ) public static void StringToByteArrayUTF8( string str, byte[] outArrayBuffer, int outArrayBufferSize ) { outArrayBuffer = new byte[outArrayBufferSize]; - int length = Encoding.UTF8.GetBytes(str, 0, str.Length, outArrayBuffer, 0); + var length = Encoding.UTF8.GetBytes(str, 0, str.Length, outArrayBuffer, 0); outArrayBuffer[length] = 0; } @@ -107,13 +106,13 @@ public static void StringToByteArrayUTF8( string str, byte[] outArrayBuffer, int public class SteamParamStringArray { // The pointer to each AllocHGlobal() string - IntPtr[] m_Strings; + private readonly IntPtr[] m_Strings; // The pointer to the condensed version of m_Strings - IntPtr m_ptrStrings; + private readonly IntPtr m_ptrStrings; // The pointer to the StructureToPtr version of SteamParamStringArray_t that will get marshaled - IntPtr m_pSteamParamStringArray; + private readonly IntPtr m_pSteamParamStringArray; - public SteamParamStringArray( System.Collections.Generic.IList strings ) + public SteamParamStringArray( IList strings ) { if (strings == null) { @@ -122,10 +121,10 @@ public SteamParamStringArray( System.Collections.Generic.IList strings ) } m_Strings = new IntPtr[strings.Count]; - for (int i = 0; i < strings.Count; ++i) + for (var i = 0; i < strings.Count; ++i) { - byte[] strbuf = new byte[Encoding.UTF8.GetByteCount(strings[i]) + 1]; - Encoding.UTF8.GetBytes(strings[i], 0, strings[i].Length, strbuf, 0); + var strbuf = new byte[Encoding.UTF8.GetByteCount(strings[i]) + 1]; + _ = Encoding.UTF8.GetBytes(strings[i], 0, strings[i].Length, strbuf, 0); m_Strings[i] = Marshal.AllocHGlobal(strbuf.Length); Marshal.Copy(strbuf, 0, m_Strings[i], strbuf.Length); } @@ -145,7 +144,7 @@ public SteamParamStringArray( System.Collections.Generic.IList strings ) { if (m_Strings != null) { - foreach (IntPtr ptr in m_Strings) + foreach (var ptr in m_Strings) { Marshal.FreeHGlobal(ptr); } @@ -173,8 +172,8 @@ public static implicit operator IntPtr( SteamParamStringArray that ) // MatchMaking Key-Value Pair Marshaller public class MMKVPMarshaller { - private IntPtr m_pNativeArray; - private IntPtr m_pArrayEntries; + private readonly IntPtr m_pNativeArray; + private readonly IntPtr m_pArrayEntries; public MMKVPMarshaller( MatchMakingKeyValuePair_t[] filters ) { @@ -183,11 +182,11 @@ public MMKVPMarshaller( MatchMakingKeyValuePair_t[] filters ) return; } - int sizeOfMMKVP = Marshal.SizeOf(typeof(MatchMakingKeyValuePair_t)); + var sizeOfMMKVP = Marshal.SizeOf(typeof(MatchMakingKeyValuePair_t)); m_pNativeArray = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(IntPtr)) * filters.Length); m_pArrayEntries = Marshal.AllocHGlobal(sizeOfMMKVP * filters.Length); - for (int i = 0; i < filters.Length; ++i) + for (var i = 0; i < filters.Length; ++i) { Marshal.StructureToPtr(filters[i], new IntPtr(m_pArrayEntries.ToInt64() + (i * sizeOfMMKVP)), false); } diff --git a/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/Packsize.cs b/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/Packsize.cs index d4d475387..05d75a14c 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/Packsize.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/Packsize.cs @@ -1,5 +1,4 @@ using System.Runtime.InteropServices; -using IntPtr = System.IntPtr; namespace SwiftlyS2.Shared.SteamAPI; @@ -9,19 +8,17 @@ public static class Packsize public static bool Test() { - int sentinelSize = Marshal.SizeOf(typeof(ValvePackingSentinel_t)); - int subscribedFilesSize = Marshal.SizeOf(typeof(RemoteStorageEnumerateUserSubscribedFilesResult_t)); - if (sentinelSize != 24 || subscribedFilesSize != (1 + 1 + 1 + 50 + 100) * 4) - return false; - return true; + var sentinelSize = Marshal.SizeOf(typeof(ValvePackingSentinel_t)); + var subscribedFilesSize = Marshal.SizeOf(typeof(RemoteStorageEnumerateUserSubscribedFilesResult_t)); + return sentinelSize == 24 && subscribedFilesSize == (1 + 1 + 1 + 50 + 100) * 4; } [StructLayout(LayoutKind.Sequential, Pack = value)] - struct ValvePackingSentinel_t + private struct ValvePackingSentinel_t { - uint m_u32; - ulong m_u64; - ushort m_u16; - double m_d; + private readonly uint m_u32; + private readonly ulong m_u64; + private readonly ushort m_u16; + private readonly double m_d; }; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/Steam.cs b/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/Steam.cs index e5943b5dd..10fee958d 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/Steam.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/SteamAPI/Steam.cs @@ -1,367 +1,362 @@ using System.Runtime.InteropServices; -using SwiftlyS2.Core.Extensions; -using SwiftlyS2.Shared.Misc; -using IntPtr = System.IntPtr; +using IntPtr = nint; -namespace SwiftlyS2.Shared.SteamAPI +namespace SwiftlyS2.Shared.SteamAPI; + +public static class SteamAPI { - public static class SteamAPI + //----------------------------------------------------------------------------------------------------------------------------------------------------------// + // Steam API setup & shutdown + // + // These functions manage loading, initializing and shutdown of the steamclient.dll + // + //----------------------------------------------------------------------------------------------------------------------------------------------------------// + + + // SteamAPI_Init must be called before using any other API functions. If it fails, an + // error message will be output to the debugger (or stderr) with further information. + public static bool Init() { - //----------------------------------------------------------------------------------------------------------------------------------------------------------// - // Steam API setup & shutdown - // - // These functions manage loading, initializing and shutdown of the steamclient.dll - // - //----------------------------------------------------------------------------------------------------------------------------------------------------------// + InteropHelp.TestIfPlatformSupported(); + var ret = NativeMethods.SteamAPI_Init(); - // SteamAPI_Init must be called before using any other API functions. If it fails, an - // error message will be output to the debugger (or stderr) with further information. - public static bool Init() + // Steamworks.NET specific: We initialize the SteamAPI Context like this for now, but we need to do it + // every time that Unity reloads binaries, so we also check if the pointers are available and initialized + // before each call to any interface functions. That is in InteropHelp.cs + if (ret) { - InteropHelp.TestIfPlatformSupported(); + } - bool ret = NativeMethods.SteamAPI_Init(); + return ret; + } - // Steamworks.NET specific: We initialize the SteamAPI Context like this for now, but we need to do it - // every time that Unity reloads binaries, so we also check if the pointers are available and initialized - // before each call to any interface functions. That is in InteropHelp.cs - if (ret) - { - } + // SteamAPI_Shutdown should be called during process shutdown if possible. + public static void Shutdown() + { + InteropHelp.TestIfPlatformSupported(); + NativeMethods.SteamAPI_Shutdown(); + } - return ret; - } + // SteamAPI_RestartAppIfNecessary ensures that your executable was launched through Steam. + // + // Returns true if the current process should terminate. Steam is now re-launching your application. + // + // Returns false if no action needs to be taken. This means that your executable was started through + // the Steam client, or a steam_appid.txt file is present in your game's directory (for development). + // Your current process should continue if false is returned. + // + // NOTE: If you use the Steam DRM wrapper on your primary executable file, this check is unnecessary + // since the DRM wrapper will ensure that your application was launched properly through Steam. + public static bool RestartAppIfNecessary( AppId_t unOwnAppID ) + { + InteropHelp.TestIfPlatformSupported(); + return NativeMethods.SteamAPI_RestartAppIfNecessary(unOwnAppID); + } - // SteamAPI_Shutdown should be called during process shutdown if possible. - public static void Shutdown() - { - InteropHelp.TestIfPlatformSupported(); - NativeMethods.SteamAPI_Shutdown(); - } + // Many Steam API functions allocate a small amount of thread-local memory for parameter storage. + // SteamAPI_ReleaseCurrentThreadMemory() will free API memory associated with the calling thread. + // This function is also called automatically by SteamAPI_RunCallbacks(), so a single-threaded + // program never needs to explicitly call this function. + public static void ReleaseCurrentThreadMemory() + { + InteropHelp.TestIfPlatformSupported(); + NativeMethods.SteamAPI_ReleaseCurrentThreadMemory(); + } - // SteamAPI_RestartAppIfNecessary ensures that your executable was launched through Steam. - // - // Returns true if the current process should terminate. Steam is now re-launching your application. - // - // Returns false if no action needs to be taken. This means that your executable was started through - // the Steam client, or a steam_appid.txt file is present in your game's directory (for development). - // Your current process should continue if false is returned. - // - // NOTE: If you use the Steam DRM wrapper on your primary executable file, this check is unnecessary - // since the DRM wrapper will ensure that your application was launched properly through Steam. - public static bool RestartAppIfNecessary( AppId_t unOwnAppID ) - { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamAPI_RestartAppIfNecessary(unOwnAppID); - } + //----------------------------------------------------------------------------------------------------------------------------------------------------------// + // steam callback and call-result helpers + // + // The following macros and classes are used to register your application for + // callbacks and call-results, which are delivered in a predictable manner. + // + // STEAM_CALLBACK macros are meant for use inside of a C++ class definition. + // They map a Steam notification callback directly to a class member function + // which is automatically prototyped as "void func( callback_type *pParam )". + // + // CCallResult is used with specific Steam APIs that return "result handles". + // The handle can be passed to a CCallResult object's Set function, along with + // an object pointer and member-function pointer. The member function will + // be executed once the results of the Steam API call are available. + // + // CCallback and CCallbackManual classes can be used instead of STEAM_CALLBACK + // macros if you require finer control over registration and unregistration. + // + // Callbacks and call-results are queued automatically and are only + // delivered/executed when your application calls SteamAPI_RunCallbacks(). + // + // Note that there is an alternative, lower level callback dispatch mechanism. + // See SteamAPI_ManualDispatch_Init + //----------------------------------------------------------------------------------------------------------------------------------------------------------// + + // Dispatch all queued Steamworks callbacks. + // + // This is safe to call from multiple threads simultaneously, + // but if you choose to do this, callback code could be executed on any thread. + // One alternative is to call SteamAPI_RunCallbacks from the main thread only, + // and call SteamAPI_ReleaseCurrentThreadMemory regularly on other threads. + public static void RunCallbacks() + { + InteropHelp.TestIfPlatformSupported(); + NativeMethods.SteamAPI_RunCallbacks(); + } - // Many Steam API functions allocate a small amount of thread-local memory for parameter storage. - // SteamAPI_ReleaseCurrentThreadMemory() will free API memory associated with the calling thread. - // This function is also called automatically by SteamAPI_RunCallbacks(), so a single-threaded - // program never needs to explicitly call this function. - public static void ReleaseCurrentThreadMemory() - { - InteropHelp.TestIfPlatformSupported(); - NativeMethods.SteamAPI_ReleaseCurrentThreadMemory(); - } + //----------------------------------------------------------------------------------------------------------------------------------------------------------// + // steamclient.dll private wrapper functions + // + // The following functions are part of abstracting API access to the steamclient.dll, but should only be used in very specific cases + //----------------------------------------------------------------------------------------------------------------------------------------------------------// - //----------------------------------------------------------------------------------------------------------------------------------------------------------// - // steam callback and call-result helpers - // - // The following macros and classes are used to register your application for - // callbacks and call-results, which are delivered in a predictable manner. - // - // STEAM_CALLBACK macros are meant for use inside of a C++ class definition. - // They map a Steam notification callback directly to a class member function - // which is automatically prototyped as "void func( callback_type *pParam )". - // - // CCallResult is used with specific Steam APIs that return "result handles". - // The handle can be passed to a CCallResult object's Set function, along with - // an object pointer and member-function pointer. The member function will - // be executed once the results of the Steam API call are available. - // - // CCallback and CCallbackManual classes can be used instead of STEAM_CALLBACK - // macros if you require finer control over registration and unregistration. - // - // Callbacks and call-results are queued automatically and are only - // delivered/executed when your application calls SteamAPI_RunCallbacks(). - // - // Note that there is an alternative, lower level callback dispatch mechanism. - // See SteamAPI_ManualDispatch_Init - //----------------------------------------------------------------------------------------------------------------------------------------------------------// - - // Dispatch all queued Steamworks callbacks. - // - // This is safe to call from multiple threads simultaneously, - // but if you choose to do this, callback code could be executed on any thread. - // One alternative is to call SteamAPI_RunCallbacks from the main thread only, - // and call SteamAPI_ReleaseCurrentThreadMemory regularly on other threads. - public static void RunCallbacks() - { - InteropHelp.TestIfPlatformSupported(); - NativeMethods.SteamAPI_RunCallbacks(); - } + // SteamAPI_IsSteamRunning() returns true if Steam is currently running + public static bool IsSteamRunning() + { + InteropHelp.TestIfPlatformSupported(); + return NativeMethods.SteamAPI_IsSteamRunning(); + } - //----------------------------------------------------------------------------------------------------------------------------------------------------------// - // steamclient.dll private wrapper functions - // - // The following functions are part of abstracting API access to the steamclient.dll, but should only be used in very specific cases - //----------------------------------------------------------------------------------------------------------------------------------------------------------// + // returns the pipe we are communicating to Steam with + public static HSteamPipe GetHSteamPipe() + { + InteropHelp.TestIfPlatformSupported(); + return (HSteamPipe)NativeMethods.SteamAPI_GetHSteamPipe(); + } - // SteamAPI_IsSteamRunning() returns true if Steam is currently running - public static bool IsSteamRunning() - { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamAPI_IsSteamRunning(); - } + public static HSteamUser GetHSteamUser() + { + InteropHelp.TestIfPlatformSupported(); + return (HSteamUser)NativeMethods.SteamAPI_GetHSteamUser(); + } +} - // returns the pipe we are communicating to Steam with - public static HSteamPipe GetHSteamPipe() - { - InteropHelp.TestIfPlatformSupported(); - return (HSteamPipe)NativeMethods.SteamAPI_GetHSteamPipe(); - } +public static class GameServer +{ + // Initialize SteamGameServer client and interface objects, and set server properties which may not be changed. + // + // After calling this function, you should set any additional server parameters, and then + // call ISteamGameServer::LogOnAnonymous() or ISteamGameServer::LogOn() + // + // - unIP will usually be zero. If you are on a machine with multiple IP addresses, you can pass a non-zero + // value here and the relevant sockets will be bound to that IP. This can be used to ensure that + // the IP you desire is the one used in the server browser. + // - usGamePort is the port that clients will connect to for gameplay. You will usually open up your + // own socket bound to this port. + // - usQueryPort is the port that will manage server browser related duties and info + // pings from clients. If you pass STEAMGAMESERVER_QUERY_PORT_SHARED for usQueryPort, then it + // will use "GameSocketShare" mode, which means that the game is responsible for sending and receiving + // UDP packets for the master server updater. (See ISteamGameServer::HandleIncomingPacket and + // ISteamGameServer::GetNextOutgoingPacket.) + // - The version string should be in the form x.x.x.x, and is used by the master server to detect when the + // server is out of date. (Only servers with the latest version will be listed.) + public static bool Init( uint unIP, ushort usGamePort, ushort usQueryPort, EServerMode eServerMode, string pchVersionString ) + { + return false; + } - public static HSteamUser GetHSteamUser() - { - InteropHelp.TestIfPlatformSupported(); - return (HSteamUser)NativeMethods.SteamAPI_GetHSteamUser(); - } + // Shutdown SteamGameSeverXxx interfaces, log out, and free resources. + public static void Shutdown() + { + InteropHelp.TestIfPlatformSupported(); + NativeMethods.SteamGameServer_Shutdown(); + CSteamGameServerAPIContext.Clear(); } - public static class GameServer + public static void RunCallbacks() { - // Initialize SteamGameServer client and interface objects, and set server properties which may not be changed. - // - // After calling this function, you should set any additional server parameters, and then - // call ISteamGameServer::LogOnAnonymous() or ISteamGameServer::LogOn() - // - // - unIP will usually be zero. If you are on a machine with multiple IP addresses, you can pass a non-zero - // value here and the relevant sockets will be bound to that IP. This can be used to ensure that - // the IP you desire is the one used in the server browser. - // - usGamePort is the port that clients will connect to for gameplay. You will usually open up your - // own socket bound to this port. - // - usQueryPort is the port that will manage server browser related duties and info - // pings from clients. If you pass STEAMGAMESERVER_QUERY_PORT_SHARED for usQueryPort, then it - // will use "GameSocketShare" mode, which means that the game is responsible for sending and receiving - // UDP packets for the master server updater. (See ISteamGameServer::HandleIncomingPacket and - // ISteamGameServer::GetNextOutgoingPacket.) - // - The version string should be in the form x.x.x.x, and is used by the master server to detect when the - // server is out of date. (Only servers with the latest version will be listed.) - public static bool Init( uint unIP, ushort usGamePort, ushort usQueryPort, EServerMode eServerMode, string pchVersionString ) - { - return false; - } + InteropHelp.TestIfPlatformSupported(); + NativeMethods.SteamGameServer_RunCallbacks(); + } - // Shutdown SteamGameSeverXxx interfaces, log out, and free resources. - public static void Shutdown() - { - InteropHelp.TestIfPlatformSupported(); - NativeMethods.SteamGameServer_Shutdown(); - CSteamGameServerAPIContext.Clear(); - } + // Most Steam API functions allocate some amount of thread-local memory for + // parameter storage. Calling SteamGameServer_ReleaseCurrentThreadMemory() + // will free all API-related memory associated with the calling thread. + // This memory is released automatically by SteamGameServer_RunCallbacks(), + // so single-threaded servers do not need to explicitly call this function. + public static void ReleaseCurrentThreadMemory() + { + InteropHelp.TestIfPlatformSupported(); + NativeMethods.SteamGameServer_ReleaseCurrentThreadMemory(); + } - public static void RunCallbacks() - { - InteropHelp.TestIfPlatformSupported(); - NativeMethods.SteamGameServer_RunCallbacks(); - } + public static bool BSecure() + { + InteropHelp.TestIfPlatformSupported(); + return NativeMethods.SteamGameServer_BSecure(); + } - // Most Steam API functions allocate some amount of thread-local memory for - // parameter storage. Calling SteamGameServer_ReleaseCurrentThreadMemory() - // will free all API-related memory associated with the calling thread. - // This memory is released automatically by SteamGameServer_RunCallbacks(), - // so single-threaded servers do not need to explicitly call this function. - public static void ReleaseCurrentThreadMemory() - { - InteropHelp.TestIfPlatformSupported(); - NativeMethods.SteamGameServer_ReleaseCurrentThreadMemory(); - } + public static CSteamID GetSteamID() + { + InteropHelp.TestIfPlatformSupported(); + return (CSteamID)NativeMethods.SteamGameServer_GetSteamID(); + } - public static bool BSecure() - { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamGameServer_BSecure(); - } + public static HSteamPipe GetHSteamPipe() + { + InteropHelp.TestIfPlatformSupported(); + return (HSteamPipe)NativeMethods.SteamGameServer_GetHSteamPipe(); + } - public static CSteamID GetSteamID() - { - InteropHelp.TestIfPlatformSupported(); - return (CSteamID)NativeMethods.SteamGameServer_GetSteamID(); - } + public static HSteamUser GetHSteamUser() + { + InteropHelp.TestIfPlatformSupported(); + return (HSteamUser)NativeMethods.SteamGameServer_GetHSteamUser(); + } +} - public static HSteamPipe GetHSteamPipe() - { - InteropHelp.TestIfPlatformSupported(); - return (HSteamPipe)NativeMethods.SteamGameServer_GetHSteamPipe(); - } +public static class SteamEncryptedAppTicket +{ + public static bool BDecryptTicket( byte[] rgubTicketEncrypted, uint cubTicketEncrypted, byte[] rgubTicketDecrypted, ref uint pcubTicketDecrypted, byte[] rgubKey, int cubKey ) + { + InteropHelp.TestIfPlatformSupported(); + return NativeMethods.SteamEncryptedAppTicket_BDecryptTicket(rgubTicketEncrypted, cubTicketEncrypted, rgubTicketDecrypted, ref pcubTicketDecrypted, rgubKey, cubKey); + } - public static HSteamUser GetHSteamUser() - { - InteropHelp.TestIfPlatformSupported(); - return (HSteamUser)NativeMethods.SteamGameServer_GetHSteamUser(); - } + public static bool BIsTicketForApp( byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID ) + { + InteropHelp.TestIfPlatformSupported(); + return NativeMethods.SteamEncryptedAppTicket_BIsTicketForApp(rgubTicketDecrypted, cubTicketDecrypted, nAppID); } - public static class SteamEncryptedAppTicket + public static uint GetTicketIssueTime( byte[] rgubTicketDecrypted, uint cubTicketDecrypted ) { - public static bool BDecryptTicket( byte[] rgubTicketEncrypted, uint cubTicketEncrypted, byte[] rgubTicketDecrypted, ref uint pcubTicketDecrypted, byte[] rgubKey, int cubKey ) - { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamEncryptedAppTicket_BDecryptTicket(rgubTicketEncrypted, cubTicketEncrypted, rgubTicketDecrypted, ref pcubTicketDecrypted, rgubKey, cubKey); - } + InteropHelp.TestIfPlatformSupported(); + return NativeMethods.SteamEncryptedAppTicket_GetTicketIssueTime(rgubTicketDecrypted, cubTicketDecrypted); + } - public static bool BIsTicketForApp( byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID ) - { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamEncryptedAppTicket_BIsTicketForApp(rgubTicketDecrypted, cubTicketDecrypted, nAppID); - } + public static void GetTicketSteamID( byte[] rgubTicketDecrypted, uint cubTicketDecrypted, out CSteamID psteamID ) + { + InteropHelp.TestIfPlatformSupported(); + NativeMethods.SteamEncryptedAppTicket_GetTicketSteamID(rgubTicketDecrypted, cubTicketDecrypted, out psteamID); + } - public static uint GetTicketIssueTime( byte[] rgubTicketDecrypted, uint cubTicketDecrypted ) - { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamEncryptedAppTicket_GetTicketIssueTime(rgubTicketDecrypted, cubTicketDecrypted); - } + public static uint GetTicketAppID( byte[] rgubTicketDecrypted, uint cubTicketDecrypted ) + { + InteropHelp.TestIfPlatformSupported(); + return NativeMethods.SteamEncryptedAppTicket_GetTicketAppID(rgubTicketDecrypted, cubTicketDecrypted); + } - public static void GetTicketSteamID( byte[] rgubTicketDecrypted, uint cubTicketDecrypted, out CSteamID psteamID ) - { - InteropHelp.TestIfPlatformSupported(); - NativeMethods.SteamEncryptedAppTicket_GetTicketSteamID(rgubTicketDecrypted, cubTicketDecrypted, out psteamID); - } + public static bool BUserOwnsAppInTicket( byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID ) + { + InteropHelp.TestIfPlatformSupported(); + return NativeMethods.SteamEncryptedAppTicket_BUserOwnsAppInTicket(rgubTicketDecrypted, cubTicketDecrypted, nAppID); + } - public static uint GetTicketAppID( byte[] rgubTicketDecrypted, uint cubTicketDecrypted ) - { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamEncryptedAppTicket_GetTicketAppID(rgubTicketDecrypted, cubTicketDecrypted); - } + public static bool BUserIsVacBanned( byte[] rgubTicketDecrypted, uint cubTicketDecrypted ) + { + InteropHelp.TestIfPlatformSupported(); + return NativeMethods.SteamEncryptedAppTicket_BUserIsVacBanned(rgubTicketDecrypted, cubTicketDecrypted); + } - public static bool BUserOwnsAppInTicket( byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID ) - { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamEncryptedAppTicket_BUserOwnsAppInTicket(rgubTicketDecrypted, cubTicketDecrypted, nAppID); - } + public static byte[] GetUserVariableData( byte[] rgubTicketDecrypted, uint cubTicketDecrypted, out uint pcubUserData ) + { + InteropHelp.TestIfPlatformSupported(); + var punSecretData = NativeMethods.SteamEncryptedAppTicket_GetUserVariableData(rgubTicketDecrypted, cubTicketDecrypted, out pcubUserData); + var ret = new byte[pcubUserData]; + Marshal.Copy(punSecretData, ret, 0, (int)pcubUserData); + return ret; + } - public static bool BUserIsVacBanned( byte[] rgubTicketDecrypted, uint cubTicketDecrypted ) - { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamEncryptedAppTicket_BUserIsVacBanned(rgubTicketDecrypted, cubTicketDecrypted); - } + public static bool BIsTicketSigned( byte[] rgubTicketDecrypted, uint cubTicketDecrypted, byte[] pubRSAKey, uint cubRSAKey ) + { + InteropHelp.TestIfPlatformSupported(); + return NativeMethods.SteamEncryptedAppTicket_BIsTicketSigned(rgubTicketDecrypted, cubTicketDecrypted, pubRSAKey, cubRSAKey); + } +} + +internal static class CSteamGameServerAPIContext +{ + internal static void Clear() + { + m_pSteamClient = IntPtr.Zero; + m_pSteamGameServer = IntPtr.Zero; + m_pSteamUtils = IntPtr.Zero; + m_pSteamNetworking = IntPtr.Zero; + m_pSteamGameServerStats = IntPtr.Zero; + m_pSteamHTTP = IntPtr.Zero; + m_pSteamInventory = IntPtr.Zero; + m_pSteamUGC = IntPtr.Zero; + m_pSteamNetworkingUtils = IntPtr.Zero; + m_pSteamNetworkingSockets = IntPtr.Zero; + m_pSteamNetworkingMessages = IntPtr.Zero; + } + + internal static bool Init() + { + HSteamUser hSteamUser = GameServer.GetHSteamUser(); + HSteamPipe hSteamPipe = GameServer.GetHSteamPipe(); + if (hSteamPipe == (HSteamPipe)0) { return false; } - public static byte[] GetUserVariableData( byte[] rgubTicketDecrypted, uint cubTicketDecrypted, out uint pcubUserData ) + using (var pchVersionString = new InteropHelp.UTF8StringHandle(Constants.STEAMCLIENT_INTERFACE_VERSION)) { - InteropHelp.TestIfPlatformSupported(); - IntPtr punSecretData = NativeMethods.SteamEncryptedAppTicket_GetUserVariableData(rgubTicketDecrypted, cubTicketDecrypted, out pcubUserData); - byte[] ret = new byte[pcubUserData]; - System.Runtime.InteropServices.Marshal.Copy(punSecretData, ret, 0, (int)pcubUserData); - return ret; + m_pSteamClient = NativeMethods.SteamInternal_CreateInterface(pchVersionString); } + if (m_pSteamClient == IntPtr.Zero) { return false; } + + m_pSteamGameServer = SteamGameServerClient.GetISteamGameServer(hSteamUser, hSteamPipe, Constants.STEAMGAMESERVER_INTERFACE_VERSION); + if (m_pSteamGameServer == IntPtr.Zero) { return false; } + + m_pSteamUtils = SteamGameServerClient.GetISteamUtils(hSteamPipe, Constants.STEAMUTILS_INTERFACE_VERSION); + if (m_pSteamUtils == IntPtr.Zero) { return false; } + + m_pSteamNetworking = SteamGameServerClient.GetISteamNetworking(hSteamUser, hSteamPipe, Constants.STEAMNETWORKING_INTERFACE_VERSION); + if (m_pSteamNetworking == IntPtr.Zero) { return false; } + + m_pSteamGameServerStats = SteamGameServerClient.GetISteamGameServerStats(hSteamUser, hSteamPipe, Constants.STEAMGAMESERVERSTATS_INTERFACE_VERSION); + if (m_pSteamGameServerStats == IntPtr.Zero) { return false; } - public static bool BIsTicketSigned( byte[] rgubTicketDecrypted, uint cubTicketDecrypted, byte[] pubRSAKey, uint cubRSAKey ) + m_pSteamHTTP = SteamGameServerClient.GetISteamHTTP(hSteamUser, hSteamPipe, Constants.STEAMHTTP_INTERFACE_VERSION); + if (m_pSteamHTTP == IntPtr.Zero) { return false; } + + m_pSteamInventory = SteamGameServerClient.GetISteamInventory(hSteamUser, hSteamPipe, Constants.STEAMINVENTORY_INTERFACE_VERSION); + if (m_pSteamInventory == IntPtr.Zero) { return false; } + + m_pSteamUGC = SteamGameServerClient.GetISteamUGC(hSteamUser, hSteamPipe, Constants.STEAMUGC_INTERFACE_VERSION); + if (m_pSteamUGC == IntPtr.Zero) { return false; } + + using (var pchVersionString = new InteropHelp.UTF8StringHandle(Constants.STEAMNETWORKINGUTILS_INTERFACE_VERSION)) { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamEncryptedAppTicket_BIsTicketSigned(rgubTicketDecrypted, cubTicketDecrypted, pubRSAKey, cubRSAKey); + m_pSteamNetworkingUtils = + NativeMethods.SteamInternal_FindOrCreateUserInterface(hSteamUser, pchVersionString) != IntPtr.Zero ? + NativeMethods.SteamInternal_FindOrCreateUserInterface(hSteamUser, pchVersionString) : + NativeMethods.SteamInternal_FindOrCreateGameServerInterface(hSteamUser, pchVersionString); } - } + if (m_pSteamNetworkingUtils == IntPtr.Zero) { return false; } - internal static class CSteamGameServerAPIContext - { - internal static void Clear() + using (var pchVersionString = new InteropHelp.UTF8StringHandle(Constants.STEAMNETWORKINGSOCKETS_INTERFACE_VERSION)) { - m_pSteamClient = IntPtr.Zero; - m_pSteamGameServer = IntPtr.Zero; - m_pSteamUtils = IntPtr.Zero; - m_pSteamNetworking = IntPtr.Zero; - m_pSteamGameServerStats = IntPtr.Zero; - m_pSteamHTTP = IntPtr.Zero; - m_pSteamInventory = IntPtr.Zero; - m_pSteamUGC = IntPtr.Zero; - m_pSteamNetworkingUtils = IntPtr.Zero; - m_pSteamNetworkingSockets = IntPtr.Zero; - m_pSteamNetworkingMessages = IntPtr.Zero; + m_pSteamNetworkingSockets = + NativeMethods.SteamInternal_FindOrCreateGameServerInterface(hSteamUser, pchVersionString); } + if (m_pSteamNetworkingSockets == IntPtr.Zero) { return false; } - internal static bool Init() + using (var pchVersionString = new InteropHelp.UTF8StringHandle(Constants.STEAMNETWORKINGMESSAGES_INTERFACE_VERSION)) { - HSteamUser hSteamUser = GameServer.GetHSteamUser(); - HSteamPipe hSteamPipe = GameServer.GetHSteamPipe(); - if (hSteamPipe == (HSteamPipe)0) { return false; } - - using (var pchVersionString = new InteropHelp.UTF8StringHandle(Constants.STEAMCLIENT_INTERFACE_VERSION)) - { - m_pSteamClient = NativeMethods.SteamInternal_CreateInterface(pchVersionString); - } - if (m_pSteamClient == IntPtr.Zero) { return false; } - - m_pSteamGameServer = SteamGameServerClient.GetISteamGameServer(hSteamUser, hSteamPipe, Constants.STEAMGAMESERVER_INTERFACE_VERSION); - if (m_pSteamGameServer == IntPtr.Zero) { return false; } - - m_pSteamUtils = SteamGameServerClient.GetISteamUtils(hSteamPipe, Constants.STEAMUTILS_INTERFACE_VERSION); - if (m_pSteamUtils == IntPtr.Zero) { return false; } - - m_pSteamNetworking = SteamGameServerClient.GetISteamNetworking(hSteamUser, hSteamPipe, Constants.STEAMNETWORKING_INTERFACE_VERSION); - if (m_pSteamNetworking == IntPtr.Zero) { return false; } - - m_pSteamGameServerStats = SteamGameServerClient.GetISteamGameServerStats(hSteamUser, hSteamPipe, Constants.STEAMGAMESERVERSTATS_INTERFACE_VERSION); - if (m_pSteamGameServerStats == IntPtr.Zero) { return false; } - - m_pSteamHTTP = SteamGameServerClient.GetISteamHTTP(hSteamUser, hSteamPipe, Constants.STEAMHTTP_INTERFACE_VERSION); - if (m_pSteamHTTP == IntPtr.Zero) { return false; } - - m_pSteamInventory = SteamGameServerClient.GetISteamInventory(hSteamUser, hSteamPipe, Constants.STEAMINVENTORY_INTERFACE_VERSION); - if (m_pSteamInventory == IntPtr.Zero) { return false; } - - m_pSteamUGC = SteamGameServerClient.GetISteamUGC(hSteamUser, hSteamPipe, Constants.STEAMUGC_INTERFACE_VERSION); - if (m_pSteamUGC == IntPtr.Zero) { return false; } - - using (var pchVersionString = new InteropHelp.UTF8StringHandle(Constants.STEAMNETWORKINGUTILS_INTERFACE_VERSION)) - { - m_pSteamNetworkingUtils = - NativeMethods.SteamInternal_FindOrCreateUserInterface(hSteamUser, pchVersionString) != IntPtr.Zero ? - NativeMethods.SteamInternal_FindOrCreateUserInterface(hSteamUser, pchVersionString) : - NativeMethods.SteamInternal_FindOrCreateGameServerInterface(hSteamUser, pchVersionString); - } - if (m_pSteamNetworkingUtils == IntPtr.Zero) { return false; } - - using (var pchVersionString = new InteropHelp.UTF8StringHandle(Constants.STEAMNETWORKINGSOCKETS_INTERFACE_VERSION)) - { - m_pSteamNetworkingSockets = - NativeMethods.SteamInternal_FindOrCreateGameServerInterface(hSteamUser, pchVersionString); - } - if (m_pSteamNetworkingSockets == IntPtr.Zero) { return false; } - - using (var pchVersionString = new InteropHelp.UTF8StringHandle(Constants.STEAMNETWORKINGMESSAGES_INTERFACE_VERSION)) - { - m_pSteamNetworkingMessages = - NativeMethods.SteamInternal_FindOrCreateGameServerInterface(hSteamUser, pchVersionString); - } - if (m_pSteamNetworkingMessages == IntPtr.Zero) { return false; } - - return true; + m_pSteamNetworkingMessages = + NativeMethods.SteamInternal_FindOrCreateGameServerInterface(hSteamUser, pchVersionString); } - - internal static IntPtr GetSteamClient() { return m_pSteamClient; } - internal static IntPtr GetSteamGameServer() { return m_pSteamGameServer; } - internal static IntPtr GetSteamUtils() { return m_pSteamUtils; } - internal static IntPtr GetSteamNetworking() { return m_pSteamNetworking; } - internal static IntPtr GetSteamGameServerStats() { return m_pSteamGameServerStats; } - internal static IntPtr GetSteamHTTP() { return m_pSteamHTTP; } - internal static IntPtr GetSteamInventory() { return m_pSteamInventory; } - internal static IntPtr GetSteamUGC() { return m_pSteamUGC; } - internal static IntPtr GetSteamNetworkingUtils() { return m_pSteamNetworkingUtils; } - internal static IntPtr GetSteamNetworkingSockets() { return m_pSteamNetworkingSockets; } - internal static IntPtr GetSteamNetworkingMessages() { return m_pSteamNetworkingMessages; } - - private static IntPtr m_pSteamClient; - private static IntPtr m_pSteamGameServer; - private static IntPtr m_pSteamUtils; - private static IntPtr m_pSteamNetworking; - private static IntPtr m_pSteamGameServerStats; - private static IntPtr m_pSteamHTTP; - private static IntPtr m_pSteamInventory; - private static IntPtr m_pSteamUGC; - private static IntPtr m_pSteamNetworkingUtils; - private static IntPtr m_pSteamNetworkingSockets; - private static IntPtr m_pSteamNetworkingMessages; + return m_pSteamNetworkingMessages != IntPtr.Zero; } + + internal static IntPtr GetSteamClient() { return m_pSteamClient; } + internal static IntPtr GetSteamGameServer() { return m_pSteamGameServer; } + internal static IntPtr GetSteamUtils() { return m_pSteamUtils; } + internal static IntPtr GetSteamNetworking() { return m_pSteamNetworking; } + internal static IntPtr GetSteamGameServerStats() { return m_pSteamGameServerStats; } + internal static IntPtr GetSteamHTTP() { return m_pSteamHTTP; } + internal static IntPtr GetSteamInventory() { return m_pSteamInventory; } + internal static IntPtr GetSteamUGC() { return m_pSteamUGC; } + internal static IntPtr GetSteamNetworkingUtils() { return m_pSteamNetworkingUtils; } + internal static IntPtr GetSteamNetworkingSockets() { return m_pSteamNetworkingSockets; } + internal static IntPtr GetSteamNetworkingMessages() { return m_pSteamNetworkingMessages; } + + private static IntPtr m_pSteamClient; + private static IntPtr m_pSteamGameServer; + private static IntPtr m_pSteamUtils; + private static IntPtr m_pSteamNetworking; + private static IntPtr m_pSteamGameServerStats; + private static IntPtr m_pSteamHTTP; + private static IntPtr m_pSteamInventory; + private static IntPtr m_pSteamUGC; + private static IntPtr m_pSteamNetworkingUtils; + private static IntPtr m_pSteamNetworkingSockets; + private static IntPtr m_pSteamNetworkingMessages; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Translations/ILocalizer.cs b/managed/src/SwiftlyS2.Shared/Modules/Translations/ILocalizer.cs index 448a1df27..62da81447 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Translations/ILocalizer.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Translations/ILocalizer.cs @@ -5,19 +5,19 @@ namespace SwiftlyS2.Shared.Translation; /// public interface ILocalizer { - - /// - /// Gets the translation for the specified key. - /// - /// The key of the translation. - /// The translation for the specified key. - string this[string key] { get; } - /// - /// Gets the translation for the specified key with the specified arguments. - /// - /// The key of the translation. - /// The arguments to format the translation with. Use to format the translation. - /// The translation for the specified key with the specified arguments. - string this[string key, params object[] args] { get; } + /// + /// Gets the translation for the specified key. + /// + /// The key of the translation. + /// The translation for the specified key. + public string this[string key] { get; } + + /// + /// Gets the translation for the specified key with the specified arguments. + /// + /// The key of the translation. + /// The arguments to format the translation with. Use to format the translation. + /// The translation for the specified key with the specified arguments. + public string this[string key, params object[] args] { get; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Translations/ITranslationService.cs b/managed/src/SwiftlyS2.Shared/Modules/Translations/ITranslationService.cs index 69e00794d..0fc685337 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Translations/ITranslationService.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Translations/ITranslationService.cs @@ -5,10 +5,10 @@ namespace SwiftlyS2.Shared.Translation; public interface ITranslationService { - /// - /// Gets the localizer for the specified player. - /// - /// The player to get the localizer for. - /// The localizer for the specified player. - ILocalizer GetPlayerLocalizer(IPlayer player); + /// + /// Gets the localizer for the specified player. + /// + /// The player to get the localizer for. + /// The localizer for the specified player. + public ILocalizer GetPlayerLocalizer( IPlayer player ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Modules/Translations/Language.cs b/managed/src/SwiftlyS2.Shared/Modules/Translations/Language.cs index 55a0de1c2..2fdecd029 100644 --- a/managed/src/SwiftlyS2.Shared/Modules/Translations/Language.cs +++ b/managed/src/SwiftlyS2.Shared/Modules/Translations/Language.cs @@ -3,14 +3,14 @@ namespace SwiftlyS2.Shared.Translation; public sealed class Language : IEquatable { - public string Value { get; } + public string Value { get; } - public Language(string value) - { - Value = value; - } + public Language( string value ) + { + Value = value; + } - internal static readonly List RecognizedLanguages = new() { + internal static readonly List RecognizedLanguages = [ "ar", "bg", "zh-CN", @@ -41,55 +41,55 @@ public Language(string value) "tr", "uk", "vn", - }; + ]; - public static Language Arabic = new("ar"); - public static Language Bulgarian = new("bg"); - public static Language ChineseCN = new("zh-CN"); - public static Language ChineseTW = new("zh-TW"); - public static Language Czech = new("cs"); - public static Language Danish = new("da"); - public static Language Dutch = new("nl"); - public static Language English = new("en"); - public static Language Finnish = new("fi"); - public static Language French = new("fr"); - public static Language German = new("de"); - public static Language Greek = new("el"); - public static Language Hungarian = new("hu"); - public static Language Indonesian = new("id"); - public static Language Italian = new("it"); - public static Language Japanese = new("ja"); - public static Language Korean = new("ko"); - public static Language Norwegian = new("no"); - public static Language Polish = new("pl"); - public static Language Portuguese = new("pt"); - public static Language Brazilian = new("pt-BR"); - public static Language Romanian = new("ro"); - public static Language Russian = new("ru"); - public static Language Spanish = new("es"); - public static Language LatinAmerica = new("es-419"); - public static Language Swedish = new("sv"); - public static Language Thai = new("th"); - public static Language Turkish = new("tr"); - public static Language Ukrainian = new("uk"); - public static Language Vietnamese = new("vn"); + public static Language Arabic = new("ar"); + public static Language Bulgarian = new("bg"); + public static Language ChineseCN = new("zh-CN"); + public static Language ChineseTW = new("zh-TW"); + public static Language Czech = new("cs"); + public static Language Danish = new("da"); + public static Language Dutch = new("nl"); + public static Language English = new("en"); + public static Language Finnish = new("fi"); + public static Language French = new("fr"); + public static Language German = new("de"); + public static Language Greek = new("el"); + public static Language Hungarian = new("hu"); + public static Language Indonesian = new("id"); + public static Language Italian = new("it"); + public static Language Japanese = new("ja"); + public static Language Korean = new("ko"); + public static Language Norwegian = new("no"); + public static Language Polish = new("pl"); + public static Language Portuguese = new("pt"); + public static Language Brazilian = new("pt-BR"); + public static Language Romanian = new("ro"); + public static Language Russian = new("ru"); + public static Language Spanish = new("es"); + public static Language LatinAmerica = new("es-419"); + public static Language Swedish = new("sv"); + public static Language Thai = new("th"); + public static Language Turkish = new("tr"); + public static Language Ukrainian = new("uk"); + public static Language Vietnamese = new("vn"); - public override string ToString() => Value; + public override string ToString() => Value; - public static implicit operator string(Language language) => language.Value; + public static implicit operator string( Language language ) => language.Value; - public bool Equals(Language? other) - { - return Value == other?.Value; - } + public bool Equals( Language? other ) + { + return Value == other?.Value; + } - public override bool Equals(object? obj) - { - return Equals(obj as Language); - } + public override bool Equals( object? obj ) + { + return Equals(obj as Language); + } - public override int GetHashCode() - { - return Value.GetHashCode(); - } + public override int GetHashCode() + { + return Value.GetHashCode(); + } }; \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/AllocableNativeHandle.cs b/managed/src/SwiftlyS2.Shared/Natives/AllocableNativeHandle.cs index de4686791..dd9a552d8 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/AllocableNativeHandle.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/AllocableNativeHandle.cs @@ -1,23 +1,23 @@ namespace SwiftlyS2.Shared.Natives; -using System.Runtime.InteropServices; using Microsoft.Win32.SafeHandles; -using SwiftlyS2.Shared.Natives; -public abstract class AllocableNativeHandle : SafeHandleZeroOrMinusOneIsInvalid, INativeHandle { +public abstract class AllocableNativeHandle : SafeHandleZeroOrMinusOneIsInvalid, INativeHandle +{ - public bool IsValid { get => !IsInvalid; } + public bool IsValid { get => !IsInvalid; } - protected AllocableNativeHandle(nint handle, bool ownsHandle) : base(ownsHandle) { - SetHandle(handle); - } + protected AllocableNativeHandle( nint handle, bool ownsHandle ) : base(ownsHandle) + { + SetHandle(handle); + } - public nint Address => DangerousGetHandle(); + public nint Address => DangerousGetHandle(); - protected abstract bool Free(); + protected abstract bool Free(); - protected override bool ReleaseHandle() - { - return Free(); - } + protected override bool ReleaseHandle() + { + return Free(); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/IAllocableNativeHandle.cs b/managed/src/SwiftlyS2.Shared/Natives/IAllocableNativeHandle.cs index e12a17999..2a049dfaa 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/IAllocableNativeHandle.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/IAllocableNativeHandle.cs @@ -8,7 +8,8 @@ namespace SwiftlyS2.Shared.Natives; /// between this and the `INativeHandle` from users' perspective, as allocation and destruction should be for internal use only /// and handled within the core. /// -public interface IAllocableNativeHandle : INativeHandle, IDisposable { +public interface IAllocableNativeHandle : INativeHandle, IDisposable +{ } diff --git a/managed/src/SwiftlyS2.Shared/Natives/INativeHandle.cs b/managed/src/SwiftlyS2.Shared/Natives/INativeHandle.cs index 296bd6250..b54f986c3 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/INativeHandle.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/INativeHandle.cs @@ -1,5 +1,3 @@ -using SwiftlyS2.Shared.Schemas; - namespace SwiftlyS2.Shared.Natives; /// @@ -8,17 +6,17 @@ namespace SwiftlyS2.Shared.Natives; public interface INativeHandle { - /// - /// Return whether a handle is valid. - /// Still might be dangerous for some pointer that borrowed from game instead of allocated by ourselves. - /// + /// + /// Return whether a handle is valid. + /// Still might be dangerous for some pointer that borrowed from game instead of allocated by ourselves. + /// - public bool IsValid { get; } + public bool IsValid { get; } - /// - /// Dangerous method to get the memory address of the object - /// - /// The raw handle. - public unsafe IntPtr Address { get; } + /// + /// Dangerous method to get the memory address of the object + /// + /// The raw handle. + public unsafe IntPtr Address { get; } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/ISizedNativeHandle.cs b/managed/src/SwiftlyS2.Shared/Natives/ISizedNativeHandle.cs index eb4c28df5..dc7b721e0 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/ISizedNativeHandle.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/ISizedNativeHandle.cs @@ -1,7 +1,8 @@ namespace SwiftlyS2.Shared.Natives; -public interface ISizedNativeHandle { +public interface ISizedNativeHandle +{ - static abstract int GetSize(); + public abstract static int GetSize(); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CBitVec.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CBitVec.cs index ea8c5ce0a..8aa69553b 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CBitVec.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CBitVec.cs @@ -1,80 +1,82 @@ -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; public interface ICBitVec { - bool IsFixedSize(); - uint NumDWords(); - uint GetNumBits(); - void ClearAll(); - void SetAll(); - void Set(uint index); - void Set(int index); - void Clear(uint index); - void Clear(int index); - bool IsSet(uint index); - bool IsSet(int index); - int Count(); - bool IsAllClear(); + public bool IsFixedSize(); + public uint NumDWords(); + public uint GetNumBits(); + public void ClearAll(); + public void SetAll(); + public void Set( uint index ); + public void Set( int index ); + public void Clear( uint index ); + public void Clear( int index ); + public bool IsSet( uint index ); + public bool IsSet( int index ); + public int Count(); + public bool IsAllClear(); } public static unsafe class CBitVecOperations { - public static void ClearAll(uint* buffer, int intCount) + public static void ClearAll( uint* buffer, int intCount ) { - for (int i = 0; i < intCount; i++) + for (var i = 0; i < intCount; i++) buffer[i] = 0; } - public static void SetAll(uint* buffer, int intCount) + public static void SetAll( uint* buffer, int intCount ) { - for (int i = 0; i < intCount; i++) + for (var i = 0; i < intCount; i++) buffer[i] = uint.MaxValue; } - public static void Set(uint* buffer, uint index, uint maxBits) + public static void Set( uint* buffer, uint index, uint maxBits ) { if (index >= maxBits) throw new IndexOutOfRangeException($"The index {index} is out of range. Maximum allowed index is {maxBits - 1}"); buffer[index >> 5] |= (uint)(1 << ((int)index & 31)); } - public static void Set(uint* buffer, int index, uint maxBits) + public static void Set( uint* buffer, int index, uint maxBits ) { if (index < 0 || index >= maxBits) throw new IndexOutOfRangeException($"The index {index} is out of range. Valid range is 0 to {maxBits - 1}"); buffer[index >> 5] |= (uint)(1 << (index & 31)); } - public static void Clear(uint* buffer, uint index, uint maxBits) + public static void Clear( uint* buffer, uint index, uint maxBits ) { if (index >= maxBits) throw new IndexOutOfRangeException($"The index {index} is out of range. Maximum allowed index is {maxBits - 1}"); buffer[index >> 5] &= ~(uint)(1 << ((int)index & 31)); } - public static void Clear(uint* buffer, int index, uint maxBits) + public static void Clear( uint* buffer, int index, uint maxBits ) { if (index < 0 || index >= maxBits) throw new IndexOutOfRangeException($"The index {index} is out of range. Valid range is 0 to {maxBits - 1}"); buffer[index >> 5] &= ~(uint)(1 << (index & 31)); } - public static bool IsSet(uint* buffer, uint index, uint maxBits) + public static bool IsSet( uint* buffer, uint index, uint maxBits ) { - if (index >= maxBits) throw new IndexOutOfRangeException($"The index {index} is out of range. Maximum allowed index is {maxBits - 1}"); - return (buffer[index >> 5] & ((uint)(1 << ((int)index & 31)))) != 0; + return index >= maxBits + ? throw new IndexOutOfRangeException($"The index {index} is out of range. Maximum allowed index is {maxBits - 1}") + : (buffer[index >> 5] & ((uint)(1 << ((int)index & 31)))) != 0; } - public static bool IsSet(uint* buffer, int index, uint maxBits) + public static bool IsSet( uint* buffer, int index, uint maxBits ) { - if (index < 0 || index >= maxBits) throw new IndexOutOfRangeException($"The index {index} is out of range. Valid range is 0 to {maxBits - 1}"); - return (buffer[index >> 5] & ((uint)(1 << (index & 31)))) != 0; + return index < 0 || index >= maxBits + ? throw new IndexOutOfRangeException($"The index {index} is out of range. Valid range is 0 to {maxBits - 1}") + : (buffer[index >> 5] & ((uint)(1 << (index & 31)))) != 0; } - public static int Count(uint* buffer, int intCount) + public static int Count( uint* buffer, int intCount ) { - int count = 0; - for (int i = 0; i < intCount; i++) + var count = 0; + for (var i = 0; i < intCount; i++) { - uint v = buffer[i]; + var v = buffer[i]; while (v != 0) { v &= v - 1; @@ -84,7 +86,7 @@ public static int Count(uint* buffer, int intCount) return count; } - public static bool IsAllClear(uint* buffer, int intCount) + public static bool IsAllClear( uint* buffer, int intCount ) { return Count(buffer, intCount) == 0; } @@ -120,7 +122,7 @@ public void SetAll() } } - public void Set(uint index) + public void Set( uint index ) { fixed (uint* ptr = _buffer) { @@ -128,7 +130,7 @@ public void Set(uint index) } } - public void Set(int index) + public void Set( int index ) { fixed (uint* ptr = _buffer) { @@ -136,7 +138,7 @@ public void Set(int index) } } - public void Clear(uint index) + public void Clear( uint index ) { fixed (uint* ptr = _buffer) { @@ -144,7 +146,7 @@ public void Clear(uint index) } } - public void Clear(int index) + public void Clear( int index ) { fixed (uint* ptr = _buffer) { @@ -152,7 +154,7 @@ public void Clear(int index) } } - public bool IsSet(uint index) + public bool IsSet( uint index ) { fixed (uint* ptr = _buffer) { @@ -160,7 +162,7 @@ public bool IsSet(uint index) } } - public bool IsSet(int index) + public bool IsSet( int index ) { fixed (uint* ptr = _buffer) { @@ -215,7 +217,7 @@ public void SetAll() } } - public void Set(uint index) + public void Set( uint index ) { fixed (uint* ptr = _buffer) { @@ -223,7 +225,7 @@ public void Set(uint index) } } - public void Set(int index) + public void Set( int index ) { fixed (uint* ptr = _buffer) { @@ -231,7 +233,7 @@ public void Set(int index) } } - public void Clear(uint index) + public void Clear( uint index ) { fixed (uint* ptr = _buffer) { @@ -239,7 +241,7 @@ public void Clear(uint index) } } - public void Clear(int index) + public void Clear( int index ) { fixed (uint* ptr = _buffer) { @@ -247,7 +249,7 @@ public void Clear(int index) } } - public bool IsSet(uint index) + public bool IsSet( uint index ) { fixed (uint* ptr = _buffer) { @@ -255,7 +257,7 @@ public bool IsSet(uint index) } } - public bool IsSet(int index) + public bool IsSet( int index ) { fixed (uint* ptr = _buffer) { diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CBufferString.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CBufferString.cs index 1899ab4fa..a64dfa8bf 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CBufferString.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CBufferString.cs @@ -3,12 +3,15 @@ namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Sequential, Size = 16)] -public struct CBufferString { - private unsafe fixed byte _dummy[16]; +public struct CBufferString +{ + private unsafe fixed byte _dummy[16]; - public unsafe void todo() { - fixed (void* ptr = &this) { - // TODO: Implement some methods with this ptr + public unsafe void todo() + { + fixed (void* ptr = &this) + { + // TODO: Implement some methods with this ptr + } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CCommand.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CCommand.cs index 9f3d75826..c79360ae2 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CCommand.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CCommand.cs @@ -1,5 +1,5 @@ -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; @@ -28,9 +28,9 @@ public CCommand() Reset(); } - public CCommand(string commandString) : this() + public CCommand( string commandString ) : this() { - Tokenize(commandString); + _ = Tokenize(commandString); } private void EnsureBuffers() @@ -52,14 +52,14 @@ public void Reset() public readonly string? GetCommandString => ArgC == 0 ? null : Marshal.PtrToStringUTF8(_argSBuffer.Base); - public readonly string? Arg(int index) => (index < 0 || index >= ArgC) ? null : Marshal.PtrToStringUTF8((nint)_args[index]); + public readonly string? Arg( int index ) => (index < 0 || index >= ArgC) ? null : Marshal.PtrToStringUTF8(_args[index]); public readonly string? this[int index] => Arg(index); - public readonly int FindArg(string name) + public readonly int FindArg( string name ) { - int nArgC = ArgC; - for (int i = 1; i < nArgC; i++) + var nArgC = ArgC; + for (var i = 1; i < nArgC; i++) { var arg = Arg(i); if (arg != null && string.Equals(arg, name, StringComparison.OrdinalIgnoreCase)) @@ -70,13 +70,13 @@ public readonly int FindArg(string name) return -1; } - public readonly int FindArgInt(string name, int defaultVal) + public readonly int FindArgInt( string name, int defaultVal ) { - int idx = FindArg(name); + var idx = FindArg(name); if (idx != -1) { var arg = Arg(idx); - if (arg != null && int.TryParse(arg, out int result)) + if (arg != null && int.TryParse(arg, out var result)) { return result; } @@ -86,7 +86,7 @@ public readonly int FindArgInt(string name, int defaultVal) public static int MaxCommandLength() => (int)COMMAND.MAX_LENGTH - 1; - public bool Tokenize(string commandString) + public bool Tokenize( string commandString ) { if (string.IsNullOrWhiteSpace(commandString)) { @@ -96,7 +96,7 @@ public bool Tokenize(string commandString) Reset(); var cmdBytes = System.Text.Encoding.UTF8.GetBytes(commandString); - int nLen = cmdBytes.Length; + var nLen = cmdBytes.Length; if (nLen >= MaxCommandLength()) { @@ -109,16 +109,16 @@ public bool Tokenize(string commandString) ((byte*)_argSBuffer.Base)[nLen] = 0; } - byte* pSBuf = (byte*)_argSBuffer.Base; - byte* pArgvBuf = (byte*)_argvBuffer.Base; - int nArgvBufferSize = 0; - bool inQuotes = false; - int tokenStart = 0; + var pSBuf = (byte*)_argSBuffer.Base; + var pArgvBuf = (byte*)_argvBuffer.Base; + var nArgvBufferSize = 0; + var inQuotes = false; + var tokenStart = 0; - for (int i = 0; i <= nLen; ++i) + for (var i = 0; i <= nLen; ++i) { - byte ch = i < nLen ? pSBuf[i] : (byte)0; - bool isBreak = (ch == 0 || ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r') && !inQuotes; + var ch = i < nLen ? pSBuf[i] : (byte)0; + var isBreak = (ch == 0 || ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r') && !inQuotes; if (ch == '"') { @@ -130,12 +130,12 @@ public bool Tokenize(string commandString) { if (i > tokenStart) { - int tokenLen = i - tokenStart; - byte* pDest = pArgvBuf + nArgvBufferSize; + var tokenLen = i - tokenStart; + var pDest = pArgvBuf + nArgvBufferSize; - for (int j = 0; j < tokenLen; ++j) + for (var j = 0; j < tokenLen; ++j) { - byte srcCh = pSBuf[tokenStart + j]; + var srcCh = pSBuf[tokenStart + j]; if (srcCh != '"') { *pDest++ = srcCh; @@ -143,7 +143,7 @@ public bool Tokenize(string commandString) } *pDest = 0; - _args.AddToTail((nint)(pArgvBuf + nArgvBufferSize)); + _ = _args.AddToTail((nint)(pArgvBuf + nArgvBufferSize)); if (_args.Count == 1) { diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CGameTrace.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CGameTrace.cs index 3193dcb48..e34f9edc0 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CGameTrace.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CGameTrace.cs @@ -1,10 +1,10 @@ -using SwiftlyS2.Core.SchemaDefinitions; -using SwiftlyS2.Shared.SchemaDefinitions; using System.Runtime.InteropServices; +using SwiftlyS2.Core.SchemaDefinitions; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.Natives; -public enum RayType_t: byte +public enum RayType_t : byte { RAY_TYPE_LINE = 0, RAY_TYPE_SPHERE, diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CGlobalSymbol.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CGlobalSymbol.cs index 04309b751..38b819416 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CGlobalSymbol.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CGlobalSymbol.cs @@ -8,18 +8,14 @@ namespace SwiftlyS2.Shared.Natives; public struct CGlobalSymbol { - private nint _pString; + private nint _pString; - public string Value - { - get - { - if (!_pString.IsValidPtr()) return string.Empty; - return Marshal.PtrToStringUTF8(_pString)!; + public string Value { + get { + return !_pString.IsValidPtr() ? string.Empty : Marshal.PtrToStringUTF8(_pString)!; + } + set { + _pString = StringPool.Allocate(value); + } } - set - { - _pString = StringPool.Allocate(value); - } - } } diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CGlobalVars.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CGlobalVars.cs index c1ca64228..d56a51f53 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CGlobalVars.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CGlobalVars.cs @@ -18,21 +18,21 @@ public struct CGlobalVars public float AbsoluteFrameTime; public float AbsoluteFrameStartTimeStdDev; public int MaxClients; - private int _unk01; - private int _unk02; - private int _unk03; - private int _unk04; - private int _unk05; - private nint _unk06; + private readonly int _unk01; + private readonly int _unk02; + private readonly int _unk03; + private readonly int _unk04; + private readonly int _unk05; + private readonly nint _unk06; public float CurrentTime; public float FrameTime; - private float _unk07; - private float _unk08; + private readonly float _unk07; + private readonly float _unk08; public bool InSimulation; public bool EnableAssertions; public int TickCount; - private int _unk09; - private int _unk10; + private readonly int _unk09; + private readonly int _unk10; public float SubtickFraction; public CString MapName; public CString StartSpot; diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CHandle.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CHandle.cs index 265c2c7bc..c23d95a93 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CHandle.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CHandle.cs @@ -1,6 +1,5 @@ using System.Runtime.InteropServices; using SwiftlyS2.Core.Natives; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.Schemas; namespace SwiftlyS2.Shared.Natives; @@ -8,44 +7,35 @@ namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Sequential, Size = 4)] public struct CHandle where T : class, ISchemaClass { - private uint _index; - - public uint Raw - { - get => _index; - set => _index = value; - } - - public CHandle(uint raw) - { - _index = raw; - } - - public T? Value - { - get + public uint Raw { get; set; } + + public CHandle( uint raw ) { - unsafe - { - if (!IsValid) - { - return null; - } - return (T?)T.From(NativeEntitySystem.EntityHandleGet(_index)); - } + Raw = raw; } - set - { - _index = value is null ? 0xFFFFFFFF : NativeEntitySystem.GetEntityHandleFromEntity(value.Address); + + public T? Value { + get { + unsafe + { + if (!IsValid) + { + return null; + } + return (T?)T.From(NativeEntitySystem.EntityHandleGet(Raw)); + } + } + set { + Raw = value is null ? 0xFFFFFFFF : NativeEntitySystem.GetEntityHandleFromEntity(value.Address); + } } - } - public readonly uint EntityIndex => _index & 0x7FFF; + public readonly uint EntityIndex => Raw & 0x7FFF; - public readonly uint SerialNumber => (_index >> 15) & 0x1FFFF; + public readonly uint SerialNumber => (Raw >> 15) & 0x1FFFF; - public readonly bool IsValid => NativeEntitySystem.EntityHandleIsValid(_index); + public readonly bool IsValid => NativeEntitySystem.EntityHandleIsValid(Raw); - public static implicit operator T(CHandle handle) => handle.Value; + public static implicit operator T( CHandle handle ) => handle.Value; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CHitBox.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CHitBox.cs index 8c567b073..cfe0f7390 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CHitBox.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CHitBox.cs @@ -1,5 +1,5 @@ -using SwiftlyS2.Shared.SchemaDefinitions; using System.Runtime.InteropServices; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.Natives; diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CNetworkVarChainer.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CNetworkVarChainer.cs index bc16b740e..d322ae83d 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CNetworkVarChainer.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CNetworkVarChainer.cs @@ -1,6 +1,6 @@ -using SwiftlyS2.Core.SchemaDefinitions; -using SwiftlyS2.Shared.SchemaDefinitions; using System.Runtime.InteropServices; +using SwiftlyS2.Core.SchemaDefinitions; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.Natives; diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CNetworkedQuantizedFloat.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CNetworkedQuantizedFloat.cs index 3a2da8497..e1e8b1908 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CNetworkedQuantizedFloat.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CNetworkedQuantizedFloat.cs @@ -3,14 +3,15 @@ namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Explicit, Size = 8)] -public struct CNetworkedQuantizedFloat { +public struct CNetworkedQuantizedFloat +{ - [FieldOffset(0x0)] - public float Value; + [FieldOffset(0x0)] + public float Value; - [FieldOffset(0x4)] - public ushort Encoder; + [FieldOffset(0x4)] + public ushort Encoder; - [FieldOffset(0x7)] - public bool Unflattened; + [FieldOffset(0x7)] + public bool Unflattened; } diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfaceProperties.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfaceProperties.cs index 5f4e34c0b..2443a2a59 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfaceProperties.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfaceProperties.cs @@ -1,4 +1,4 @@ -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfacePropertiesAudio.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfacePropertiesAudio.cs index a19b02a8e..3d735d4dc 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfacePropertiesAudio.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfacePropertiesAudio.cs @@ -1,4 +1,4 @@ -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfacePropertiesPhysics.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfacePropertiesPhysics.cs index 5bdf745c6..7f7ddd9a9 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfacePropertiesPhysics.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfacePropertiesPhysics.cs @@ -1,4 +1,4 @@ -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfacePropertiesSoundNames.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfacePropertiesSoundNames.cs index 27a60c819..946de51b6 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfacePropertiesSoundNames.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CPhysSurfacePropertiesSoundNames.cs @@ -1,4 +1,4 @@ -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CRecipientFilter.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CRecipientFilter.cs index 39c50a688..13855edc4 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CRecipientFilter.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CRecipientFilter.cs @@ -1,5 +1,4 @@ -using System.Runtime.InteropServices; -using SwiftlyS2.Core.Natives; +using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; @@ -14,7 +13,7 @@ public enum NetChannelBufType_t : sbyte [StructLayout(LayoutKind.Sequential)] public struct CRecipientFilter { - private nint _pVTable; + private readonly nint _pVTable; public ulong RecipientsMask; public int PredictedSlot; public NetChannelBufType_t BufferType; @@ -31,8 +30,9 @@ public CRecipientFilter( NetChannelBufType_t BufType = NetChannelBufType_t.BUF_R public static CRecipientFilter FromMask( ulong playerMask ) { - CRecipientFilter filter = new(); - filter.RecipientsMask = playerMask; + CRecipientFilter filter = new() { + RecipientsMask = playerMask + }; return filter; } @@ -84,8 +84,8 @@ public void RemoveRecipient( int playerid ) public int GetRecipientCount() { - int count = 0; - for (int i = 0; i < 64; i++) + var count = 0; + for (var i = 0; i < 64; i++) { if ((RecipientsMask & (1UL << i)) != 0) { @@ -147,13 +147,8 @@ static unsafe CRecipientFilterVtable() vtable[1] = (nint)(delegate* unmanaged< CRecipientFilter*, NetChannelBufType_t >)(&GetNetworkBufType); vtable[2] = (nint)(delegate* unmanaged< CRecipientFilter*, bool >)(&IsInitMessage); vtable[3] = (nint)(delegate* unmanaged< CRecipientFilter*, ulong* >)(&GetRecipients); - if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) - { - vtable[4] = (nint)(delegate* unmanaged< CRecipientFilter*, int*, int* >)(&GetPredictedSlotWindows); - } - else - { - vtable[4] = (nint)(delegate* unmanaged< CRecipientFilter*, int >)(&GetPredictedSlotLinux); - } + vtable[4] = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) + ? (nint)(delegate* unmanaged< CRecipientFilter*, int*, int* >)(&GetPredictedSlotWindows) + : (nint)(delegate* unmanaged< CRecipientFilter*, int >)(&GetPredictedSlotLinux); } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CString.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CString.cs index 286f9a94f..8ff7bdb78 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CString.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CString.cs @@ -1,7 +1,4 @@ -using System.Buffers; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Text; using SwiftlyS2.Core.Extensions; using SwiftlyS2.Core.Natives; @@ -11,25 +8,22 @@ namespace SwiftlyS2.Shared.Natives; /// Wrapper class for native char*. /// [StructLayout(LayoutKind.Explicit, Size = 8)] -public struct CString { +public struct CString +{ - [FieldOffset(0)] - private nint _pString; // char* - - public string Value { - get { - if (!_pString.IsValidPtr()) { - return string.Empty; - } - return Marshal.PtrToStringUTF8(_pString)!; - } + [FieldOffset(0)] + private nint _pString; // char* + + public string Value { + get { + return !_pString.IsValidPtr() ? string.Empty : Marshal.PtrToStringUTF8(_pString)!; + } - set - { - _pString = StringPool.Allocate(value); + set { + _pString = StringPool.Allocate(value); + } } - } - public static implicit operator string(CString str) => str.Value; - public static implicit operator CString(string str) => new CString { _pString = StringPool.Allocate(str) }; + public static implicit operator string( CString str ) => str.Value; + public static implicit operator CString( string str ) => new() { _pString = StringPool.Allocate(str) }; } diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CStrongHandle.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CStrongHandle.cs index 48a4a9d4e..a745a19c0 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CStrongHandle.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CStrongHandle.cs @@ -1,7 +1,5 @@ using System.Runtime.InteropServices; using SwiftlyS2.Core.Extensions; -using SwiftlyS2.Core.Natives; -using SwiftlyS2.Core.Natives.NativeObjects; using SwiftlyS2.Shared.Schemas; namespace SwiftlyS2.Shared.Natives; @@ -11,20 +9,22 @@ namespace SwiftlyS2.Shared.Natives; /// /// [StructLayout(LayoutKind.Sequential, Size = 8)] -public struct CStrongHandle where T : INativeHandle, ISchemaClass { +public struct CStrongHandle where T : INativeHandle, ISchemaClass +{ - private nint _pBinding; + private readonly nint _pBinding; - public readonly bool IsValid => _pBinding.IsValidPtr() && _pBinding.Read().IsValidPtr(); + public readonly bool IsValid => _pBinding.IsValidPtr() && _pBinding.Read().IsValidPtr(); - public readonly T Value { - get { - if (!IsValid) { - throw new InvalidOperationException("CStrongHandle is not valid."); - } - var handle = _pBinding.Read(); + public readonly T Value { + get { + if (!IsValid) + { + throw new InvalidOperationException("CStrongHandle is not valid."); + } + var handle = _pBinding.Read(); - return T.From(handle); + return T.From(handle); + } } - } } diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CTakeDamageInfo.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CTakeDamageInfo.cs index 0583bc08b..d333d007a 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CTakeDamageInfo.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CTakeDamageInfo.cs @@ -1,6 +1,6 @@ -using SwiftlyS2.Core.Natives; -using SwiftlyS2.Shared.SchemaDefinitions; using System.Runtime.InteropServices; +using SwiftlyS2.Core.Natives; +using SwiftlyS2.Shared.SchemaDefinitions; namespace SwiftlyS2.Shared.Natives; @@ -72,7 +72,7 @@ public CTakeDamageInfo() } } - public CTakeDamageInfo(CBaseEntity inflictor, CBaseEntity attacker, CBaseEntity ability, float flDamage, DamageTypes_t bitsDamageType) + public CTakeDamageInfo( CBaseEntity inflictor, CBaseEntity attacker, CBaseEntity ability, float flDamage, DamageTypes_t bitsDamageType ) { Vector vec3_origin = Vector.Zero; @@ -85,7 +85,7 @@ public CTakeDamageInfo(CBaseEntity inflictor, CBaseEntity attacker, CBaseEntity public HitGroup_t ActualHitGroup => Trace->HitBox->m_nGroupId; } -[StructLayout(LayoutKind.Sequential,Pack=8,Size=40)] +[StructLayout(LayoutKind.Sequential, Pack = 8, Size = 40)] public unsafe struct CTakeDamageResult { public CTakeDamageInfo* OriginatingInfo; diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CTraceFilter.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CTraceFilter.cs index 93da99a65..866467f2a 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CTraceFilter.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CTraceFilter.cs @@ -1,4 +1,3 @@ -using SwiftlyS2.Shared.SchemaDefinitions; using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; @@ -6,7 +5,7 @@ namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Explicit)] public struct CTraceFilter { - [FieldOffset(0x0)] private nint _pVTable; + [FieldOffset(0x0)] private readonly nint _pVTable; [FieldOffset(0x8)] public RnQueryShapeAttr_t QueryShapeAttributes; [FieldOffset(0x37)] public bool IterateEntities; [FieldOffset(0x38)] public byte unk01; @@ -22,7 +21,7 @@ internal static class CTraceFilterVTable public static nint pCTraceFilterVTable; [UnmanagedCallersOnly] - public unsafe static void Destructor(CTraceFilter* filter, bool unk01) + public unsafe static void Destructor( CTraceFilter* filter, bool unk01 ) { // do nothing } @@ -37,7 +36,7 @@ static unsafe CTraceFilterVTable() { pCTraceFilterVTable = Marshal.AllocHGlobal(sizeof(nint) * 2); Span vtable = new((void*)pCTraceFilterVTable, 2); - vtable[0] = (nint)(delegate* unmanaged)(&Destructor); - vtable[1] = (nint)(delegate* unmanaged)(&ShouldHitEntity); + vtable[0] = (nint)(delegate* unmanaged< CTraceFilter*, bool, void >)(&Destructor); + vtable[1] = (nint)(delegate* unmanaged< bool >)(&ShouldHitEntity); } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CTransform.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CTransform.cs index c35554a12..683782b56 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CTransform.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CTransform.cs @@ -3,14 +3,15 @@ namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Explicit)] -public struct CTransform { +public struct CTransform +{ - [FieldOffset(0x0)] - public Vector Position; + [FieldOffset(0x0)] + public Vector Position; - [FieldOffset(0xC)] - private int _pad001; + [FieldOffset(0xC)] + private readonly int _pad001; - [FieldOffset(0x10)] - public Quaternion Orientation; + [FieldOffset(0x10)] + public Quaternion Orientation; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlBinaryBlock.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlBinaryBlock.cs index 598a78bfb..263151e61 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlBinaryBlock.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlBinaryBlock.cs @@ -3,10 +3,11 @@ namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Sequential)] -public struct CUtlBinaryBlock { +public struct CUtlBinaryBlock +{ - private CUtlMemory _memory; - private int _actualLength; + private CUtlMemory _memory; + private readonly int _actualLength; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlLeanVector.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlLeanVector.cs index 3c7ce0358..feb8222a3 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlLeanVector.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlLeanVector.cs @@ -2,7 +2,6 @@ using System.Numerics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using SwiftlyS2.Core.Extensions; using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.Misc; using SwiftlyS2.Shared.Schemas; @@ -23,16 +22,19 @@ public struct Iterator_t { public I Index; - public Iterator_t(I i) => Index = i; + public Iterator_t( I i ) => Index = i; - public static bool operator ==(Iterator_t a, Iterator_t b) => a.Index == b.Index; - public static bool operator !=(Iterator_t a, Iterator_t b) => a.Index != b.Index; + public static bool operator ==( Iterator_t a, Iterator_t b ) => a.Index == b.Index; + public static bool operator !=( Iterator_t a, Iterator_t b ) => a.Index != b.Index; - public override bool Equals(object? obj) + public override bool Equals( object? obj ) { - if (obj is Iterator_t other) - return this == other; - return false; + return obj is Iterator_t other ? this == other : false; + } + + public override int GetHashCode() + { + throw new NotImplementedException(); } } @@ -44,7 +46,7 @@ public override bool Equals(object? obj) /// Please use instead to construct it. /// If you really want to use this, you should call after you are done with it. /// - public CUtlLeanVector(I growSize, I initSize) + public CUtlLeanVector( I growSize, I initSize ) { Count = (I)(object)0; Allocated = (I)(object)0; @@ -55,14 +57,14 @@ public CUtlLeanVector(I growSize, I initSize) /// Please use instead to construct it. /// If you really want to use this, you should call after you are done with it. /// - public CUtlLeanVector(nint memory, I allocationCount, I numElements) + public CUtlLeanVector( nint memory, I allocationCount, I numElements ) { Count = numElements; Allocated = allocationCount | ExternalBufferMarker; Elements = memory; } - public void EnsureCapacity(int num, bool force) + public void EnsureCapacity( int num, bool force ) { if (num <= NumAllocated) return; @@ -91,7 +93,7 @@ public void EnsureCapacity(int num, bool force) Allocated = newAllocated; } - public void SetExternalBuffer(nint memory, I allocationCount, I numElements) + public void SetExternalBuffer( nint memory, I allocationCount, I numElements ) { Purge(); @@ -100,7 +102,7 @@ public void SetExternalBuffer(nint memory, I allocationCount, I numElements) Count = numElements; } - public void AssumeMemory(nint memory, I allocationCount, I numElements) + public void AssumeMemory( nint memory, I allocationCount, I numElements ) { Purge(); @@ -113,7 +115,7 @@ public nint DetachMemory() { if (ExternallyAllocated) return 0; - nint memory = Elements; + var memory = Elements; Elements = 0; Count = I.CreateChecked(0); Allocated = I.CreateChecked(0); @@ -143,8 +145,8 @@ public void Purge() } } - public bool IsIdxValid(I idx) => idx >= I.CreateChecked(0) && idx < Count; - public ref T Element(I idx) + public bool IsIdxValid( I idx ) => idx >= I.CreateChecked(0) && idx < Count; + public ref T Element( I idx ) { if (!IsIdxValid(idx)) throw new IndexOutOfRangeException($"Index {idx} is out of range (0 - {Count - I.One})"); @@ -154,7 +156,7 @@ public ref T Element(I idx) public ref T Head() => ref Element(I.CreateChecked(0)); public ref T Tail() => ref Element(Count - I.One); - public bool IsValidIndex(I idx) => IsIdxValid(idx); + public bool IsValidIndex( I idx ) => IsIdxValid(idx); public I AddToTail() { @@ -162,14 +164,14 @@ public I AddToTail() return Count++; } - public I AddToTail(T element) + public I AddToTail( T element ) { I idx = AddToTail(); this[idx] = element; return idx; } - public void SetCount(I count) + public void SetCount( I count ) { if (count < I.CreateChecked(0)) throw new ArgumentOutOfRangeException(nameof(count), "count must be >= 0"); @@ -185,7 +187,7 @@ public void SetCount(I count) Count = count; } - public I Find(T element) + public I Find( T element ) { for (I i = I.CreateChecked(0); i < Count; i++) { @@ -196,7 +198,7 @@ public I Find(T element) return -I.One; } - public void FastRemove(I elem) + public void FastRemove( I elem ) { if (!IsValidIndex(elem)) return; @@ -210,7 +212,7 @@ public void FastRemove(I elem) } } - public void Remove(I elem) + public void Remove( I elem ) { if (!IsValidIndex(elem)) return; @@ -220,7 +222,7 @@ public void Remove(I elem) --Count; } - public void RemoveMultiple(I idx, I count) + public void RemoveMultiple( I idx, I count ) { if (count <= I.Zero || !IsValidIndex(idx) || idx + count > Count) return; @@ -232,12 +234,12 @@ public void RemoveMultiple(I idx, I count) Count -= count; } - public void RemoveMultipleFromHead(I count) + public void RemoveMultipleFromHead( I count ) { RemoveMultiple(I.Zero, count); } - public void RemoveMultipleFromTail(I count) + public void RemoveMultipleFromTail( I count ) { if (count <= I.Zero || count > Count) return; @@ -248,7 +250,7 @@ public void RemoveMultipleFromTail(I count) Count -= count; } - public bool FindAndRemove(T value) + public bool FindAndRemove( T value ) { I idx = Find(value); if (idx != -I.One) @@ -259,7 +261,7 @@ public bool FindAndRemove(T value) return false; } - public bool FindAndFastRemove(T value) + public bool FindAndFastRemove( T value ) { I idx = Find(value); if (idx != -I.One) @@ -270,7 +272,7 @@ public bool FindAndFastRemove(T value) return false; } - public void SetSize(I size) => SetCount(size); + public void SetSize( I size ) => SetCount(size); public void Dispose() { @@ -290,10 +292,8 @@ public IEnumerator GetEnumerator() public int NumAllocated => (int)((ulong)(object)Allocated & ~(ulong)(object)ExternalBufferMarker); public bool ExternallyAllocated => ((ulong)(object)Allocated & (ulong)(object)ExternalBufferMarker) != 0; public nint Base => Elements; - public ref T this[I index] - { - get - { + public ref T this[I index] { + get { unsafe { return ref Unsafe.AsRef((byte*)Elements + int.CreateChecked(index * I.CreateChecked(ElementSize))); diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlMap.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlMap.cs index 8d16bf1f8..84a4dd1f1 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlMap.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlMap.cs @@ -9,38 +9,38 @@ public struct CUtlMap : IDisposable { public CUtlRBTree, TIndex> Tree; - public CUtlMap(TIndex growSize, TIndex initSize, CUtlRBTree, TIndex>.LessFunc func) + public CUtlMap( TIndex growSize, TIndex initSize, CUtlRBTree, TIndex>.LessFunc func ) { Tree = new CUtlRBTree, TIndex>(growSize, initSize, func); } - public CUtlMap(CUtlRBTree, TIndex>.LessFunc func) + public CUtlMap( CUtlRBTree, TIndex>.LessFunc func ) { Tree = new CUtlRBTree, TIndex>(func); } - public void EnsureCapacity(TIndex num) + public void EnsureCapacity( TIndex num ) { Tree.EnsureCapacity(num); } public ref TValue this[TIndex idx] => ref Tree[idx].Element; - public ref TKey Key(TIndex idx) => ref Tree[idx].Key; + public ref TKey Key( TIndex idx ) => ref Tree[idx].Key; public int Count => (int)Tree.Count; public TIndex MaxElement => Tree.MaxElement; - public bool IsValidIndex(TIndex idx) => Tree.IsValidIndex(idx); + public bool IsValidIndex( TIndex idx ) => Tree.IsValidIndex(idx); public bool IsValid() => Tree.IsValid(); public TIndex InvalidIndex() => Tree.InvalidIndex(); - public void SetLessFunc(CUtlRBTree, TIndex>.LessFunc func) => Tree.SetLessFunc(func); - public TIndex Insert(TKey key, TValue element) => Tree.Insert(new CUtlMapTreeNode { Key = key, Element = element }); - public TIndex Insert(TKey key) => Tree.Insert(new CUtlMapTreeNode { Key = key }); - public TIndex Find(TKey key) + public void SetLessFunc( CUtlRBTree, TIndex>.LessFunc func ) => Tree.SetLessFunc(func); + public TIndex Insert( TKey key, TValue element ) => Tree.Insert(new CUtlMapTreeNode { Key = key, Element = element }); + public TIndex Insert( TKey key ) => Tree.Insert(new CUtlMapTreeNode { Key = key }); + public TIndex Find( TKey key ) { var node = new CUtlMapTreeNode { Key = key }; return Tree.Find(node); } - public void RemoveAt(TIndex idx) => Tree.RemoveAt(idx); - public bool Remove(TKey key) + public void RemoveAt( TIndex idx ) => Tree.RemoveAt(idx); + public bool Remove( TKey key ) { var node = new CUtlMapTreeNode { Key = key }; return Tree.Remove(node); @@ -48,17 +48,17 @@ public bool Remove(TKey key) public void RemoveAll() => Tree.RemoveAll(); public void Purge() => Tree.Purge(); public TIndex FirstInOrdered() => Tree.FirstInorder(); - public TIndex NextInOrdered(TIndex idx) => Tree.NextInorder(idx); - public TIndex PrevInOrdered(TIndex idx) => Tree.PrevInorder(idx); + public TIndex NextInOrdered( TIndex idx ) => Tree.NextInorder(idx); + public TIndex PrevInOrdered( TIndex idx ) => Tree.PrevInorder(idx); public TIndex LastInOrdered() => Tree.LastInorder(); - public void Reinsert(TKey key, TIndex idx) + public void Reinsert( TKey key, TIndex idx ) { Tree[idx].Key = key; Tree.Reinsert(idx); } - public TIndex InsertOrReplace(TKey key, TValue element) + public TIndex InsertOrReplace( TKey key, TValue element ) { var node = new CUtlMapTreeNode { Key = key }; var idx = Tree.Find(node); diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlMemory.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlMemory.cs index 4de228972..d071b1b85 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlMemory.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlMemory.cs @@ -1,6 +1,5 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using SwiftlyS2.Core.Extensions; using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.Misc; using SwiftlyS2.Shared.Schemas; @@ -16,7 +15,6 @@ public enum BufferMarkers [StructLayout(LayoutKind.Sequential)] public struct CUtlMemory { - private nint _memory; private uint _allocationCount; private uint _growSize; @@ -26,9 +24,9 @@ public struct CUtlMemory /// Please use instead to construct it. /// If you really want to use this, you should call after you are done with it. /// - public CUtlMemory(int growSize, int initSize) + public CUtlMemory( int growSize, int initSize ) { - _memory = 0; + Base = 0; _allocationCount = 0; _growSize = 0; Init(growSize, initSize); @@ -38,36 +36,36 @@ public CUtlMemory(int growSize, int initSize) /// Please use instead to construct it. /// If you really want to use this, you should call after you are done with it. /// - public CUtlMemory(nint memory, int numelements, bool readOnly) + public CUtlMemory( nint memory, int numelements, bool readOnly ) { - _memory = 0; + Base = 0; _allocationCount = 0; _growSize = 0; SetExternalBuffer(memory, numelements, readOnly); } - public void Init(int growSize, int initSize) + public void Init( int growSize, int initSize ) { Purge(); _growSize = (uint)(growSize & ~(int)(BufferMarkers.ExternalBufferMarker | BufferMarkers.ExternalConstBufferMarker)); _allocationCount = (uint)initSize; if (initSize > 0) - _memory = NativeAllocator.Alloc((nuint)(initSize * ElementSize)); + Base = NativeAllocator.Alloc((nuint)(initSize * ElementSize)); } public void Purge() { - if (_memory != 0 && !ExternallyAllocated) + if (Base != 0 && !ExternallyAllocated) { - NativeAllocator.Free(_memory); - _memory = 0; + NativeAllocator.Free(Base); + Base = 0; } _allocationCount = 0; _growSize = 0; } - public void Purge(int numElements) + public void Purge( int numElements ) { if (numElements < 0 || numElements > _allocationCount) return; if (numElements == 0) @@ -78,9 +76,9 @@ public void Purge(int numElements) if (IsReadOnly) return; if (numElements == _allocationCount) return; - if (_memory == 0) return; + if (Base == 0) return; - _memory = ExternDLL.UtlVectorMemory_Alloc(_memory, !ExternallyAllocated, numElements * ElementSize, (int)(_allocationCount * ElementSize)); + Base = ExternDLL.UtlVectorMemory_Alloc(Base, !ExternallyAllocated, numElements * ElementSize, (int)(_allocationCount * ElementSize)); if (ExternallyAllocated) _growSize &= ~(int)(BufferMarkers.ExternalBufferMarker | BufferMarkers.ExternalConstBufferMarker); @@ -88,39 +86,39 @@ public void Purge(int numElements) _allocationCount = (uint)numElements; } - public void ConvertToGrowableMemory(int growSize) + public void ConvertToGrowableMemory( int growSize ) { if (!ExternallyAllocated) return; - if (_memory == 0) return; + if (Base == 0) return; _growSize = (uint)(growSize & ~(int)(BufferMarkers.ExternalBufferMarker | BufferMarkers.ExternalConstBufferMarker)); if (_allocationCount > 0) { var numBytes = (int)(_allocationCount * ElementSize); var newmem = NativeAllocator.Alloc((nuint)numBytes); - NativeAllocator.Copy(newmem, _memory, (ulong)numBytes); - _memory = newmem; + NativeAllocator.Copy(newmem, Base, (ulong)numBytes); + Base = newmem; } else { - _memory = 0; + Base = 0; } } - public void SetExternalBuffer(nint memory, int numelements, bool readOnly) + public void SetExternalBuffer( nint memory, int numelements, bool readOnly ) { Purge(); - _memory = memory; + Base = memory; _allocationCount = (uint)numelements; _growSize = (uint)(readOnly ? (int)BufferMarkers.ExternalConstBufferMarker : (int)BufferMarkers.ExternalBufferMarker); } - public void AssumeMemory(nint memory, int numelements) + public void AssumeMemory( nint memory, int numelements ) { Purge(); - _memory = memory; + Base = memory; _allocationCount = (uint)numelements; _growSize &= ~(int)(BufferMarkers.ExternalBufferMarker | BufferMarkers.ExternalConstBufferMarker); } @@ -129,14 +127,14 @@ public nint DetachMemory() { if (ExternallyAllocated) return 0; - var mem = _memory; - _memory = 0; + var mem = Base; + Base = 0; _allocationCount = 0; _growSize = 0; return mem; } - public void Grow(int num) + public void Grow( int num ) { if (IsReadOnly) return; if (_allocationCount + num > int.MaxValue) @@ -161,7 +159,7 @@ public void Grow(int num) } } - _memory = ExternDLL.UtlVectorMemory_Alloc(_memory, !ExternallyAllocated, newAllocationCount * ElementSize, (int)(_allocationCount * ElementSize)); + Base = ExternDLL.UtlVectorMemory_Alloc(Base, !ExternallyAllocated, newAllocationCount * ElementSize, (int)(_allocationCount * ElementSize)); if (ExternallyAllocated) _growSize &= ~(int)(BufferMarkers.ExternalBufferMarker | BufferMarkers.ExternalConstBufferMarker); @@ -169,36 +167,34 @@ public void Grow(int num) _allocationCount = (uint)newAllocationCount; } - public void EnsureCapacity(int num) + public void EnsureCapacity( int num ) { if (_allocationCount >= num) return; if (IsReadOnly) return; - _memory = ExternDLL.UtlVectorMemory_Alloc(_memory, !ExternallyAllocated, num * ElementSize, (int)(_allocationCount * ElementSize)); + Base = ExternDLL.UtlVectorMemory_Alloc(Base, !ExternallyAllocated, num * ElementSize, (int)(_allocationCount * ElementSize)); _allocationCount = (uint)num; if (ExternallyAllocated) _growSize &= ~(int)(BufferMarkers.ExternalBufferMarker | BufferMarkers.ExternalConstBufferMarker); } - public void SetGrowSize(int size) + public void SetGrowSize( int size ) { _growSize |= (uint)(size & ~(int)(BufferMarkers.ExternalBufferMarker | BufferMarkers.ExternalConstBufferMarker)); } - public bool IsValidIndex(int index) => (uint)index < _allocationCount && index >= 0; + public bool IsValidIndex( int index ) => (uint)index < _allocationCount && index >= 0; - public ref T this[int index] - { - get - { + public ref T this[int index] { + get { unsafe { - return ref Unsafe.AsRef((byte*)_memory + int.CreateChecked(index * ElementSize)); + return ref Unsafe.AsRef((byte*)Base + int.CreateChecked(index * ElementSize)); } } } public bool ExternallyAllocated => (_growSize & (int)(BufferMarkers.ExternalBufferMarker | BufferMarkers.ExternalConstBufferMarker)) != 0; public bool IsReadOnly => (_growSize & (int)BufferMarkers.ExternalConstBufferMarker) != 0; - public nint Base => _memory; + public nint Base { get; private set; } public int Count => (int)_allocationCount; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlMemoryFixedGrowable.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlMemoryFixedGrowable.cs index 4f7507eb9..aab271413 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlMemoryFixedGrowable.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlMemoryFixedGrowable.cs @@ -1,5 +1,5 @@ -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; @@ -9,9 +9,9 @@ public unsafe struct CUtlMemoryFixedGrowable where TBuffer : unmanaged { private CUtlMemory _memory; - private TBuffer _fixedMemory; + private readonly TBuffer _fixedMemory; - public CUtlMemoryFixedGrowable(int size, int growSize = 0) + public CUtlMemoryFixedGrowable( int size, int growSize = 0 ) { _memory = new CUtlMemory((nint)Unsafe.AsPointer(ref _fixedMemory), size, false); } diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlRBTree.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlRBTree.cs index 5b912b19b..0e1353299 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlRBTree.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlRBTree.cs @@ -15,7 +15,7 @@ public enum NodeColor_t public struct CUtlRBTree : IDisposable where TKey : unmanaged, IBinaryInteger, IMinMaxValue { - public delegate bool LessFunc(ref TValue lhs, ref TValue rhs); + public delegate bool LessFunc( ref TValue lhs, ref TValue rhs ); public LessFunc LFunc; public CUtlLeanVector, TKey> Elements; @@ -24,7 +24,7 @@ public struct CUtlRBTree : IDisposable public TKey FirstFree; public CUtlLeanVector, TKey>.Iterator_t LastAlloc; - public CUtlRBTree(TKey growSize, TKey initSize, LessFunc func) + public CUtlRBTree( TKey growSize, TKey initSize, LessFunc func ) { LFunc = func; Elements = new CUtlLeanVector, TKey>(growSize, initSize); @@ -34,7 +34,7 @@ public CUtlRBTree(TKey growSize, TKey initSize, LessFunc func) LastAlloc = new(-TKey.One); } - public CUtlRBTree(LessFunc func) + public CUtlRBTree( LessFunc func ) { LFunc = func; Elements = new CUtlLeanVector, TKey>(TKey.Zero, TKey.Zero); @@ -44,48 +44,45 @@ public CUtlRBTree(LessFunc func) LastAlloc = new(-TKey.One); } - public void EnsureCapacity(TKey num) + public void EnsureCapacity( TKey num ) { Elements.EnsureCapacity(int.CreateChecked(num), false); } - public ref CUtlRBTreeLinks Links(TKey i) => ref Elements[i].Links; + public ref CUtlRBTreeLinks Links( TKey i ) => ref Elements[i].Links; - public ref TKey Parent(TKey i) => ref Links(i).Parent; - public ref TKey LeftChild(TKey i) => ref Links(i).Left; - public ref TKey RightChild(TKey i) => ref Links(i).Right; - public bool IsLeftChild(TKey i) => LeftChild(Parent(i)) == i; - public bool IsRightChild(TKey i) => RightChild(Parent(i)) == i; - public bool IsRoot(TKey i) => Root == i; - public bool IsLeaf(TKey i) => LeftChild(i) == -TKey.One && RightChild(i) == -TKey.One; - public bool IsValidIndex(TKey i) + public ref TKey Parent( TKey i ) => ref Links(i).Parent; + public ref TKey LeftChild( TKey i ) => ref Links(i).Left; + public ref TKey RightChild( TKey i ) => ref Links(i).Right; + public bool IsLeftChild( TKey i ) => LeftChild(Parent(i)) == i; + public bool IsRightChild( TKey i ) => RightChild(Parent(i)) == i; + public bool IsRoot( TKey i ) => Root == i; + public bool IsLeaf( TKey i ) => LeftChild(i) == -TKey.One && RightChild(i) == -TKey.One; + public bool IsValidIndex( TKey i ) { if (!Elements.IsIdxValid(i)) return false; - if (i > Elements.Count - TKey.One) - return false; - - return LeftChild(i) != i; + return i > Elements.Count - TKey.One ? false : LeftChild(i) != i; } public TKey InvalidIndex() => -TKey.One; public int Depth() => Depth(Root); - private int Depth(TKey i) + private int Depth( TKey i ) { if (!IsValidIndex(i)) return 0; - int leftDepth = Depth(LeftChild(i)); - int rightDepth = Depth(RightChild(i)); + var leftDepth = Depth(LeftChild(i)); + var rightDepth = Depth(RightChild(i)); return Math.Max(leftDepth, rightDepth) + 1; } - public void SetParent(TKey i, TKey p) => Parent(i) = p; - public void SetLeftChild(TKey i, TKey l) => LeftChild(i) = l; - public void SetRightChild(TKey i, TKey r) => RightChild(i) = r; - public bool IsRed(TKey i) => Links(i).Tag == TKey.CreateChecked((int)NodeColor_t.RED); - public bool IsBlack(TKey i) => Links(i).Tag == TKey.CreateChecked((int)NodeColor_t.BLACK); - public NodeColor_t Color(TKey i) => (NodeColor_t)int.CreateChecked(Links(i).Tag); - public void SetColor(TKey i, NodeColor_t c) => Links(i).Tag = TKey.CreateChecked((int)c); + public void SetParent( TKey i, TKey p ) => Parent(i) = p; + public void SetLeftChild( TKey i, TKey l ) => LeftChild(i) = l; + public void SetRightChild( TKey i, TKey r ) => RightChild(i) = r; + public bool IsRed( TKey i ) => Links(i).Tag == TKey.CreateChecked((int)NodeColor_t.RED); + public bool IsBlack( TKey i ) => Links(i).Tag == TKey.CreateChecked((int)NodeColor_t.BLACK); + public NodeColor_t Color( TKey i ) => (NodeColor_t)int.CreateChecked(Links(i).Tag); + public void SetColor( TKey i, NodeColor_t c ) => Links(i).Tag = TKey.CreateChecked((int)c); public TKey NewNode() { @@ -105,7 +102,7 @@ public TKey NewNode() return elem; } - public void FreeNode(TKey i) + public void FreeNode( TKey i ) { if (!IsValidIndex(i)) throw new IndexOutOfRangeException($"Index {i} is out of range (0 - {Elements.Count - TKey.One})"); @@ -115,7 +112,7 @@ public void FreeNode(TKey i) FirstFree = i; } - public void RotateLeft(TKey elem) + public void RotateLeft( TKey elem ) { TKey right = RightChild(elem); SetRightChild(elem, LeftChild(right)); @@ -141,7 +138,7 @@ public void RotateLeft(TKey elem) SetParent(elem, right); } - public void RotateRight(TKey elem) + public void RotateRight( TKey elem ) { TKey left = LeftChild(elem); SetLeftChild(elem, RightChild(left)); @@ -168,7 +165,7 @@ public void RotateRight(TKey elem) } // i hate RB trees - public void InsertRebalance(TKey elem) + public void InsertRebalance( TKey elem ) { SetColor(elem, NodeColor_t.RED); @@ -228,7 +225,7 @@ public void InsertRebalance(TKey elem) SetColor(Root, NodeColor_t.BLACK); } - public void LinkToParent(TKey i, TKey parent, bool isLeft) + public void LinkToParent( TKey i, TKey parent, bool isLeft ) { Links(i).Parent = parent; Links(i).Left = -TKey.One; @@ -250,7 +247,7 @@ public void LinkToParent(TKey i, TKey parent, bool isLeft) InsertRebalance(i); } - public TKey InsertAt(TKey parent, bool leftchild) + public TKey InsertAt( TKey parent, bool leftchild ) { TKey i = NewNode(); LinkToParent(i, parent, leftchild); @@ -258,7 +255,7 @@ public TKey InsertAt(TKey parent, bool leftchild) return i; } - public void RemoveRebalance(TKey elem) + public void RemoveRebalance( TKey elem ) { while (elem != Root && IsBlack(elem)) { @@ -340,7 +337,7 @@ public void RemoveRebalance(TKey elem) SetColor(elem, NodeColor_t.BLACK); } - public void Unlink(TKey elem) + public void Unlink( TKey elem ) { if (elem != InvalidIndex()) { @@ -358,10 +355,7 @@ public void Unlink(TKey elem) y = LeftChild(y); } - if (LeftChild(y) != InvalidIndex()) - x = LeftChild(y); - else - x = RightChild(y); + x = LeftChild(y) != InvalidIndex() ? LeftChild(y) : RightChild(y); if (x != InvalidIndex()) SetParent(x, Parent(y)); @@ -403,17 +397,17 @@ public void Unlink(TKey elem) } } - public void Link(TKey elem) + public void Link( TKey elem ) { if (elem != InvalidIndex()) { - FindInsertionPosition(this[elem], out TKey parent, out bool leftchild); + FindInsertionPosition(this[elem], out TKey parent, out var leftchild); LinkToParent(elem, parent, leftchild); } } - void FindInsertionPosition(TValue val, out TKey parent, out bool leftchild) + private void FindInsertionPosition( TValue val, out TKey parent, out bool leftchild ) { parent = InvalidIndex(); leftchild = false; @@ -435,7 +429,7 @@ void FindInsertionPosition(TValue val, out TKey parent, out bool leftchild) } } - public void RemoveAt(TKey elem) + public void RemoveAt( TKey elem ) { if (!IsValidIndex(elem)) return; @@ -445,7 +439,7 @@ public void RemoveAt(TKey elem) --NumElements; } - public bool Remove(TValue value) + public bool Remove( TValue value ) { TKey node = Find(value); if (node != -TKey.One) @@ -454,7 +448,7 @@ public bool Remove(TValue value) return node != -TKey.One; } - public TKey Find(TValue value) + public TKey Find( TValue value ) { TKey current = Root; while (IsValidIndex(current)) @@ -524,7 +518,7 @@ public TKey FirstInorder() return current; } - public TKey NextInorder(TKey i) + public TKey NextInorder( TKey i ) { if (!IsValidIndex(i)) return -TKey.One; @@ -547,7 +541,7 @@ public TKey NextInorder(TKey i) return parent; } - public TKey PrevInorder(TKey i) + public TKey PrevInorder( TKey i ) { if (!IsValidIndex(i)) return -TKey.One; @@ -587,7 +581,7 @@ public TKey FirstPreorder() return Root; } - public TKey NextPreorder(TKey i) + public TKey NextPreorder( TKey i ) { if (!IsValidIndex(i)) return -TKey.One; @@ -611,7 +605,7 @@ public TKey NextPreorder(TKey i) return -TKey.One; } - public TKey PrevPreorder(TKey i) => -TKey.One; + public TKey PrevPreorder( TKey i ) => -TKey.One; public TKey LastPreorder() { @@ -649,7 +643,7 @@ public TKey FirstPostorder() return current; } - public TKey NextPostorder(TKey i) + public TKey NextPostorder( TKey i ) { if (!IsValidIndex(i)) return -TKey.One; @@ -674,7 +668,7 @@ public TKey NextPostorder(TKey i) return parent; } - public void Reinsert(TKey i) + public void Reinsert( TKey i ) { if (!IsValidIndex(i)) return; @@ -694,27 +688,24 @@ public bool IsValid() if (!Elements.IsIdxValid(Root)) return false; - if (Parent(Root) != InvalidIndex()) - return false; - - return true; + return Parent(Root) == InvalidIndex(); } - public void SetLessFunc(LessFunc func) + public void SetLessFunc( LessFunc func ) { LFunc = func; } - public TKey Insert(TValue val) + public TKey Insert( TValue val ) { - FindInsertionPosition(val, out TKey parent, out bool leftchild); + FindInsertionPosition(val, out TKey parent, out var leftchild); TKey newNode = InsertAt(parent, leftchild); this[newNode] = val; return newNode; } - public TKey InsertIfNotFound(TValue val) + public TKey InsertIfNotFound( TValue val ) { TKey node = Find(val); if (node == -TKey.One) diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlString.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlString.cs index 442905c9a..7cc33b133 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlString.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlString.cs @@ -1,23 +1,23 @@ using System.Runtime.InteropServices; -using SwiftlyS2.Core.Natives; using SwiftlyS2.Core.Extensions; +using SwiftlyS2.Core.Natives; namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Sequential, Size = 8)] -public struct CUtlString { +public struct CUtlString +{ - private nint _ptr; + private nint _ptr; - public string Value { + public string Value { - get { - if (!_ptr.IsValidPtr()) return string.Empty; - return Marshal.PtrToStringUTF8(_ptr)!; + get { + return !_ptr.IsValidPtr() ? string.Empty : Marshal.PtrToStringUTF8(_ptr)!; + } + set => _ptr = StringPool.Allocate(value); } - set => _ptr = StringPool.Allocate(value); - } - public static implicit operator string(CUtlString str) => str.Value; - public static implicit operator CUtlString(string str) => new() { _ptr = StringPool.Allocate(str) }; + public static implicit operator string( CUtlString str ) => str.Value; + public static implicit operator CUtlString( string str ) => new() { _ptr = StringPool.Allocate(str) }; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlStringToken.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlStringToken.cs index 1fccf58b7..27c84a248 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlStringToken.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlStringToken.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices; using SwiftlyS2.Shared.Misc; @@ -8,11 +7,11 @@ namespace SwiftlyS2.Shared.Natives; public partial struct CUtlStringToken { [LibraryImport("tier0", SetLastError = true, StringMarshalling = StringMarshalling.Custom, StringMarshallingCustomType = typeof(System.Runtime.InteropServices.Marshalling.AnsiStringMarshaller))] - static partial void RegisterStringToken(uint nHashCode, string pStart, string? pEnd = null, [MarshalAs(UnmanagedType.Bool)] bool bExtraAddToDatabase = true); + static partial void RegisterStringToken( uint nHashCode, string pStart, string? pEnd = null, [MarshalAs(UnmanagedType.Bool)] bool bExtraAddToDatabase = true ); public uint HashCode; - public CUtlStringToken(string str) + public CUtlStringToken( string str ) { if (str != null) { diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlSymbolLarge.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlSymbolLarge.cs index 44d255407..639883dc6 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlSymbolLarge.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlSymbolLarge.cs @@ -5,22 +5,22 @@ namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Sequential, Size = 8)] -public struct CUtlSymbolLarge { +public struct CUtlSymbolLarge +{ - private nint _pString; + private nint _pString; - public string Value { - get { - if (!_pString.IsValidPtr()) return string.Empty; - return Marshal.PtrToStringUTF8(_pString)!; + public string Value { + get { + return !_pString.IsValidPtr() ? string.Empty : Marshal.PtrToStringUTF8(_pString)!; + } + set { + _pString = StringPool.Allocate(value); + } } - set { - _pString = StringPool.Allocate(value); - } - } - public static implicit operator string(CUtlSymbolLarge symbol) => symbol.Value; + public static implicit operator string( CUtlSymbolLarge symbol ) => symbol.Value; - public static implicit operator CUtlSymbolLarge(string value) => new CUtlSymbolLarge { _pString = StringPool.Allocate(value) }; + public static implicit operator CUtlSymbolLarge( string value ) => new() { _pString = StringPool.Allocate(value) }; } diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlVector.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlVector.cs index 9ab921c79..ba98d94bb 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlVector.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlVector.cs @@ -9,7 +9,6 @@ [StructLayout(LayoutKind.Sequential, Pack = 8, Size = 24)] public struct CUtlVector : IEnumerable { - private int _size; private CUtlMemory _memory; public int ElementSize => SchemaSize.Get(); @@ -18,20 +17,20 @@ public struct CUtlVector : IEnumerable /// Please use instead to construct it. /// If you really want to use this, you should call after you are done with it. /// - public CUtlVector(int growSize, int initSize) + public CUtlVector( int growSize, int initSize ) { _memory = new(growSize, initSize); - _size = 0; + Count = 0; } /// /// Please use instead to construct it. /// If you really want to use this, you should call after you are done with it. /// - public CUtlVector(nint memory, int allocationCount, int numElements) + public CUtlVector( nint memory, int allocationCount, int numElements ) { _memory = new(memory, allocationCount, false); - _size = numElements; + Count = numElements; } public void Purge() @@ -40,95 +39,95 @@ public void Purge() _memory.Purge(); } - public void EnsureCapacity(int num) + public void EnsureCapacity( int num ) { _memory.EnsureCapacity(num); } - public void SetExternalBuffer(nint memory, int allocationCount, int numELements, bool readOnly) + public void SetExternalBuffer( nint memory, int allocationCount, int numELements, bool readOnly ) { _memory.SetExternalBuffer(memory, allocationCount, readOnly); - _size = numELements; + Count = numELements; } - public void AssumeMemory(nint memory, int allocationCount, int numElements) + public void AssumeMemory( nint memory, int allocationCount, int numElements ) { _memory.AssumeMemory(memory, allocationCount); - _size = numElements; + Count = numElements; } public nint DetachMemory() { - _size = 0; + Count = 0; return _memory.DetachMemory(); } - public bool IsValidIndex(int index) + public bool IsValidIndex( int index ) { - return (uint)index < (uint)_size && index >= 0; + return (uint)index < (uint)Count && index >= 0; } - public void GrowVector(int count) + public void GrowVector( int count ) { - if (_size + count > _memory.Count) + if (Count + count > _memory.Count) { - _memory.Grow(_size + count - _memory.Count); + _memory.Grow(Count + count - _memory.Count); } - _size += count; + Count += count; } - public int InsertBeforeIdx(int elem) + public int InsertBeforeIdx( int elem ) { GrowVector(1); - MemoryHelpers.ShiftElementsRight(_memory.Base, elem, 1, _size, ElementSize); + MemoryHelpers.ShiftElementsRight(_memory.Base, elem, 1, Count, ElementSize); return elem; } - public int InsertAfterIdx(int elem) + public int InsertAfterIdx( int elem ) { return InsertBeforeIdx(elem + 1); } - public int InsertBefore(int idx, T value) + public int InsertBefore( int idx, T value ) { GrowVector(1); - MemoryHelpers.ShiftElementsRight(_memory.Base, idx, 1, _size, ElementSize); + MemoryHelpers.ShiftElementsRight(_memory.Base, idx, 1, Count, ElementSize); this[idx] = value; return idx; } - public int InsertAfter(int idx, T value) + public int InsertAfter( int idx, T value ) { return InsertBefore(idx + 1, value); } - public int AddToHead(T value) + public int AddToHead( T value ) { return InsertBefore(0, value); } - public int AddToTail(T value) + public int AddToTail( T value ) { - return InsertBefore(_size, value); + return InsertBefore(Count, value); } - public int AddVectorToTail(CUtlVector other) + public int AddVectorToTail( CUtlVector other ) { - int baseCount = Count; + var baseCount = Count; var srcCount = other.Count; EnsureCapacity(baseCount + srcCount); - _size += srcCount; + Count += srcCount; for (var i = 0; i < srcCount; i++) this[baseCount + i] = other[i]; return baseCount; } - public int Find(T value) + public int Find( T value ) { - for (int i = 0; i < _size; i++) + for (var i = 0; i < Count; i++) { if (this[i].Equals(value)) return i; @@ -137,34 +136,34 @@ public int Find(T value) return -1; } - public void FillWithValue(T value) + public void FillWithValue( T value ) { - for (int i = 0; i < _size; i++) + for (var i = 0; i < Count; i++) this[i] = value; } - public bool HasElement(T value) + public bool HasElement( T value ) { return Find(value) != -1; } - public void FastRemove(int elem) + public void FastRemove( int elem ) { if (!IsValidIndex(elem)) return; this[elem] = default; - if (_size > 0) + if (Count > 0) { - if (elem != _size - 1) - NativeAllocator.Copy(_memory.Base + (elem * ElementSize), _memory.Base + ((_size - 1) * ElementSize), (ulong)ElementSize); - --_size; + if (elem != Count - 1) + NativeAllocator.Copy(_memory.Base + (elem * ElementSize), _memory.Base + ((Count - 1) * ElementSize), (ulong)ElementSize); + --Count; } } - public bool FindAndRemove(T value) + public bool FindAndRemove( T value ) { - int idx = Find(value); + var idx = Find(value); if (idx != -1) { Remove(idx); @@ -173,9 +172,9 @@ public bool FindAndRemove(T value) return false; } - public bool FindAndFastRemove(T value) + public bool FindAndFastRemove( T value ) { - int idx = Find(value); + var idx = Find(value); if (idx != -1) { FastRemove(idx); @@ -184,65 +183,65 @@ public bool FindAndFastRemove(T value) return false; } - public void RemoveMultiple(int idx, int count) + public void RemoveMultiple( int idx, int count ) { - if (count <= 0 || !IsValidIndex(idx) || idx + count > _size) + if (count <= 0 || !IsValidIndex(idx) || idx + count > Count) return; - for (int i = idx; i < idx + count; i++) + for (var i = idx; i < idx + count; i++) this[i] = default; - MemoryHelpers.ShiftElementsLeft(_memory.Base, idx, count, _size, ElementSize); - _size -= count; + MemoryHelpers.ShiftElementsLeft(_memory.Base, idx, count, Count, ElementSize); + Count -= count; } - public void RemoveMultipleFromHead(int count) + public void RemoveMultipleFromHead( int count ) { RemoveMultiple(0, count); } - public void RemoveMultipleFromTail(int count) + public void RemoveMultipleFromTail( int count ) { - if (count <= 0 || count > _size) + if (count <= 0 || count > Count) return; - for (int i = _size - count; i < _size; i++) + for (var i = Count - count; i < Count; i++) this[i] = default; - _size -= count; + Count -= count; } - public void Remove(int elem) + public void Remove( int elem ) { if (!IsValidIndex(elem)) return; this[elem] = default; - MemoryHelpers.ShiftElementsLeft(_memory.Base, elem, 1, _size, ElementSize); - --_size; + MemoryHelpers.ShiftElementsLeft(_memory.Base, elem, 1, Count, ElementSize); + --Count; } public void RemoveAll() { - if (_size == 0) + if (Count == 0) return; - for (int i = 0; i < _size; i++) + for (var i = 0; i < Count; i++) this[i] = default; - _size = 0; + Count = 0; } public ref T this[int index] => ref _memory[index]; public ref T Head() => ref _memory[0]; - public ref T Tail() => ref _memory[_size - 1]; + public ref T Tail() => ref _memory[Count - 1]; public nint Base => _memory.Base; - public int Count => _size; + public int Count { get; private set; } public int Capacity => _memory.Count; public IEnumerator GetEnumerator() { - for (int i = 0; i < _size; i++) + for (var i = 0; i < Count; i++) { yield return this[i]; } diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlVectorFixedGrowable.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlVectorFixedGrowable.cs index 90a9ec862..2cbdfd96c 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlVectorFixedGrowable.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/CUtlVectorFixedGrowable.cs @@ -1,5 +1,5 @@ -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; @@ -8,41 +8,40 @@ public unsafe struct CUtlVectorFixedGrowable where T : unmanaged where TBuffer : unmanaged { - private int _size; private CUtlMemoryFixedGrowable _memory; - public CUtlVectorFixedGrowable(int maxSize, int growSize = 0) + public CUtlVectorFixedGrowable( int maxSize, int growSize = 0 ) { _memory = new CUtlMemoryFixedGrowable(maxSize, growSize); - _size = 0; + Count = 0; } - public void SetSize(int size) + public void SetSize( int size ) { - _size = size; + Count = size; } public void RemoveAll() { - _size = 0; + Count = 0; } - public int AddToTail(T value) + public int AddToTail( T value ) { - if (_size >= MaxSize) { + if (Count >= MaxSize) + { throw new InvalidOperationException("Vector is full."); } - int idx = _size; - _size++; + var idx = Count; + Count++; this[idx] = value; return idx; } - public ref T this[int index] - { - get - { - if (index < 0 || index >= _size) { + public ref T this[int index] { + get { + if (index < 0 || index >= Count) + { throw new IndexOutOfRangeException("Index is out of range."); } return ref Unsafe.AsRef((void*)(_memory.Base + index * sizeof(T))); @@ -52,6 +51,6 @@ public ref T this[int index] // need revisit later public readonly int MaxSize => Unsafe.SizeOf() / Unsafe.SizeOf(); - public readonly int Count => _size; + public int Count { get; private set; } public readonly nint Base => _memory.Base; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/FourVectors.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/FourVectors.cs index d17b03b5d..d9e547ca6 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/FourVectors.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/FourVectors.cs @@ -3,39 +3,42 @@ namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 16)] -public struct FourVectors { - - [FieldOffset(0x0)] - public fltx4 X; - - [FieldOffset(0x10)] - public fltx4 Y; - - [FieldOffset(0x20)] - public fltx4 Z; - - public Vector GetVector(int index) { - return new(X.GetFloat(index), Y.GetFloat(index), Z.GetFloat(index)); - } - - public void SetVector(int index, Vector vector) { - X.SetFloat(index, vector.X); - Y.SetFloat(index, vector.Y); - Z.SetFloat(index, vector.Z); - } - - public Vector this[int index] { - get { - return index switch { - 0 => GetVector(0), - 1 => GetVector(1), - 2 => GetVector(2), - 3 => GetVector(3), - _ => throw new IndexOutOfRangeException() - }; +public struct FourVectors +{ + + [FieldOffset(0x0)] + public fltx4 X; + + [FieldOffset(0x10)] + public fltx4 Y; + + [FieldOffset(0x20)] + public fltx4 Z; + + public Vector GetVector( int index ) + { + return new(X.GetFloat(index), Y.GetFloat(index), Z.GetFloat(index)); } - set { - SetVector(index, value); + + public void SetVector( int index, Vector vector ) + { + X.SetFloat(index, vector.X); + Y.SetFloat(index, vector.Y); + Z.SetFloat(index, vector.Z); + } + + public Vector this[int index] { + get { + return index switch { + 0 => GetVector(0), + 1 => GetVector(1), + 2 => GetVector(2), + 3 => GetVector(3), + _ => throw new IndexOutOfRangeException() + }; + } + set { + SetVector(index, value); + } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/ManagedCUtlLeanVector.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/ManagedCUtlLeanVector.cs index 65b268290..f7d2d5097 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/ManagedCUtlLeanVector.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/ManagedCUtlLeanVector.cs @@ -12,7 +12,7 @@ public ManagedCUtlLeanVector() _vector = new CUtlLeanVector(I.Zero, I.One); } - public ManagedCUtlLeanVector(I growSize, I initSize) + public ManagedCUtlLeanVector( I growSize, I initSize ) { _vector = new CUtlLeanVector(growSize, initSize); } @@ -28,7 +28,7 @@ public void Dispose() GC.SuppressFinalize(this); } - protected virtual void Dispose(bool disposing) + protected virtual void Dispose( bool disposing ) { if (_disposed) return; diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/ManagedCUtlMemory.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/ManagedCUtlMemory.cs index b9b7711e0..29110f2dd 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/ManagedCUtlMemory.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/ManagedCUtlMemory.cs @@ -9,7 +9,7 @@ public ManagedCUtlMemory() { _memory = new CUtlMemory(0, 1); } - public ManagedCUtlMemory(int growSize, int initSize) + public ManagedCUtlMemory( int growSize, int initSize ) { _memory = new CUtlMemory(growSize, initSize); } @@ -25,7 +25,7 @@ public void Dispose() GC.SuppressFinalize(this); } - protected virtual void Dispose(bool disposing) + protected virtual void Dispose( bool disposing ) { if (_disposed) return; diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/ManagedCUtlVector.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/ManagedCUtlVector.cs index 4060b6044..b663aa6db 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/ManagedCUtlVector.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/ManagedCUtlVector.cs @@ -10,7 +10,7 @@ public ManagedCUtlVector() _vector = new CUtlVector(0, 1); } - public ManagedCUtlVector(int growSize, int initSize) + public ManagedCUtlVector( int growSize, int initSize ) { _vector = new CUtlVector(growSize, initSize); } @@ -26,8 +26,8 @@ public void Dispose() GC.SuppressFinalize(this); } - - protected virtual void Dispose(bool disposing) + + protected virtual void Dispose( bool disposing ) { if (_disposed) return; diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/PointerTo.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/PointerTo.cs index ae6de1813..e342ee389 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/PointerTo.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/PointerTo.cs @@ -1,5 +1,4 @@ using System.Runtime.InteropServices; -using SwiftlyS2.Core.Natives; using SwiftlyS2.Shared.Schemas; namespace SwiftlyS2.Shared.Natives; @@ -8,8 +7,9 @@ namespace SwiftlyS2.Shared.Natives; /// Pointer to a native handle. /// [StructLayout(LayoutKind.Sequential, Size = 8)] -public struct PointerTo where T : INativeHandle, ISchemaClass { - private nint _pointer; +public struct PointerTo where T : INativeHandle, ISchemaClass +{ + private readonly nint _pointer; - public readonly T Value => T.From(_pointer); + public readonly T Value => T.From(_pointer); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/QAngle.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/QAngle.cs index 302fd4808..7b7859539 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/QAngle.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/QAngle.cs @@ -1,4 +1,3 @@ -using System.Numerics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -11,65 +10,94 @@ namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Sequential, Pack = 4, Size = 12)] public struct QAngle { - public float Pitch; - public float Yaw; - public float Roll; - - public QAngle(float pitch, float yaw, float roll) - { - Pitch = pitch; - Yaw = yaw; - Roll = roll; - } + public float Pitch; + public float Yaw; + public float Roll; + + public QAngle( float pitch, float yaw, float roll ) + { + Pitch = pitch; + Yaw = yaw; + Roll = roll; + } - public QAngle(QAngle other) - { - Pitch = other.Pitch; - Yaw = other.Yaw; - Roll = other.Roll; - } + public QAngle( QAngle other ) + { + Pitch = other.Pitch; + Yaw = other.Yaw; + Roll = other.Roll; + } - public RadianEuler ToRadianEuler() => new(Pitch * MathF.PI / 180.0f, Yaw * MathF.PI / 180.0f, Roll * MathF.PI / 180.0f); + public RadianEuler ToRadianEuler() => new(Pitch * MathF.PI / 180.0f, Yaw * MathF.PI / 180.0f, Roll * MathF.PI / 180.0f); - public override bool Equals(object? obj) => obj is QAngle angle && this == angle; - public override int GetHashCode() => HashCode.Combine(Pitch, Yaw, Roll); - public override string ToString() => $"QAngle({Pitch}, {Yaw}, {Roll})"; + public override bool Equals( object? obj ) => obj is QAngle angle && this == angle; + public override int GetHashCode() => HashCode.Combine(Pitch, Yaw, Roll); + public override string ToString() => $"QAngle({Pitch}, {Yaw}, {Roll})"; - public static QAngle Zero => new(0, 0, 0); + public static QAngle Zero => new(0, 0, 0); - [MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static QAngle operator +(QAngle a, QAngle b) => new(a.Pitch + b.Pitch, a.Yaw + b.Yaw, a.Roll + b.Roll); + public static QAngle operator +( QAngle a, QAngle b ) => new(a.Pitch + b.Pitch, a.Yaw + b.Yaw, a.Roll + b.Roll); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static QAngle operator -(QAngle a, QAngle b) => new(a.Pitch - b.Pitch, a.Yaw - b.Yaw, a.Roll - b.Roll); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static QAngle operator -( QAngle a, QAngle b ) => new(a.Pitch - b.Pitch, a.Yaw - b.Yaw, a.Roll - b.Roll); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static QAngle operator *(QAngle a, QAngle b) => new(a.Pitch * b.Pitch, a.Yaw * b.Yaw, a.Roll * b.Roll); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static QAngle operator *( QAngle a, QAngle b ) => new(a.Pitch * b.Pitch, a.Yaw * b.Yaw, a.Roll * b.Roll); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static QAngle operator /(QAngle a, QAngle b) => new(a.Pitch / b.Pitch, a.Yaw / b.Yaw, a.Roll / b.Roll); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static QAngle operator /( QAngle a, QAngle b ) => new(a.Pitch / b.Pitch, a.Yaw / b.Yaw, a.Roll / b.Roll); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static QAngle operator *(QAngle a, float b) => new(a.Pitch * b, a.Yaw * b, a.Roll * b); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static QAngle operator *( QAngle a, float b ) => new(a.Pitch * b, a.Yaw * b, a.Roll * b); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static QAngle operator /(QAngle a, float b) { - if (b == 0) { - throw new DivideByZeroException(); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static QAngle operator /( QAngle a, float b ) + { + if (b == 0) + { + throw new DivideByZeroException(); + } + var oofl = 1.0f / b; + return new(a.Pitch * oofl, a.Yaw * oofl, a.Roll * oofl); } - var oofl = 1.0f / b; - return new(a.Pitch * oofl, a.Yaw * oofl, a.Roll * oofl); - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static QAngle operator -(QAngle a) => new(-a.Pitch, -a.Yaw, -a.Roll); - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator ==(QAngle a, QAngle b) => a.Pitch == b.Pitch && a.Yaw == b.Yaw && a.Roll == b.Roll; - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator !=(QAngle a, QAngle b) => a.Pitch != b.Pitch || a.Yaw != b.Yaw || a.Roll != b.Roll; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static QAngle operator -( QAngle a ) => new(-a.Pitch, -a.Yaw, -a.Roll); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool operator ==( QAngle a, QAngle b ) => a.Pitch == b.Pitch && a.Yaw == b.Yaw && a.Roll == b.Roll; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool operator !=( QAngle a, QAngle b ) => a.Pitch != b.Pitch || a.Yaw != b.Yaw || a.Roll != b.Roll; + + private const float Deg2Rad = MathF.PI / 180.0f; + + /// + /// Calculates forward, right, and up basis vectors that correspond to this angle. + /// Usage: angle.ToDirectionVectors(out var forward, out var right, out var up); + /// + /// Forward direction (X: north, Z: up). + /// Right direction. + /// Up direction. + public void ToDirectionVectors( out Vector forward, out Vector right, out Vector up ) + { + var yawRad = Yaw * Deg2Rad; + var pitchRad = Pitch * Deg2Rad; + var rollRad = Roll * Deg2Rad; + + var sy = MathF.Sin(yawRad); + var cy = MathF.Cos(yawRad); + var sp = MathF.Sin(pitchRad); + var cp = MathF.Cos(pitchRad); + var sr = MathF.Sin(rollRad); + var cr = MathF.Cos(rollRad); + + forward = new Vector(cp * cy, cp * sy, -sp); + right = new Vector(-sr * sp * cy + cr * sy, -sr * sp * sy - cr * cy, -sr * cp); + up = new Vector(cr * sp * cy + sr * sy, cr * sp * sy - sr * cy, cr * cp); + } } diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/Quaternion.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/Quaternion.cs index 91d93c45e..e973d995b 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/Quaternion.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/Quaternion.cs @@ -9,77 +9,77 @@ namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Sequential, Pack = 16, Size = 16)] public struct Quaternion { - public float X; - public float Y; - public float Z; - public float W; + public float X; + public float Y; + public float Z; + public float W; - public Quaternion(float ix, float iy, float iz, float iw) - { - X = ix; - Y = iy; - Z = iz; - W = iw; - } + public Quaternion( float ix, float iy, float iz, float iw ) + { + X = ix; + Y = iy; + Z = iz; + W = iw; + } - public Quaternion(Quaternion other) - { - X = other.X; - Y = other.Y; - Z = other.Z; - W = other.W; - } + public Quaternion( Quaternion other ) + { + X = other.X; + Y = other.Y; + Z = other.Z; + W = other.W; + } - public System.Numerics.Quaternion ToBuiltin() - { - return new(X, Y, Z, W); - } + public System.Numerics.Quaternion ToBuiltin() + { + return new(X, Y, Z, W); + } - public static Quaternion FromBuiltin(System.Numerics.Quaternion quaternion) - { - return new(quaternion.X, quaternion.Y, quaternion.Z, quaternion.W); - } + public static Quaternion FromBuiltin( System.Numerics.Quaternion quaternion ) + { + return new(quaternion.X, quaternion.Y, quaternion.Z, quaternion.W); + } - public override bool Equals(object? obj) => obj is Quaternion quaternion && this == quaternion; - public override int GetHashCode() => HashCode.Combine(X, Y, Z, W); - public override string ToString() => $"Quaternion({X}, {Y}, {Z}, {W})"; + public override bool Equals( object? obj ) => obj is Quaternion quaternion && this == quaternion; + public override int GetHashCode() => HashCode.Combine(X, Y, Z, W); + public override string ToString() => $"Quaternion({X}, {Y}, {Z}, {W})"; - public static Quaternion Zero => new(0, 0, 0, 0); + public static Quaternion Zero => new(0, 0, 0, 0); - public static Quaternion One => new(1, 1, 1, 1); + public static Quaternion One => new(1, 1, 1, 1); - [MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Quaternion operator +(Quaternion a, Quaternion b) => new(a.X + b.X, a.Y + b.Y, a.Z + b.Z, a.W + b.W); + public static Quaternion operator +( Quaternion a, Quaternion b ) => new(a.X + b.X, a.Y + b.Y, a.Z + b.Z, a.W + b.W); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Quaternion operator -(Quaternion a, Quaternion b) => new(a.X - b.X, a.Y - b.Y, a.Z - b.Z, a.W - b.W); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Quaternion operator -( Quaternion a, Quaternion b ) => new(a.X - b.X, a.Y - b.Y, a.Z - b.Z, a.W - b.W); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Quaternion operator /(Quaternion a, Quaternion b) => new(a.X / b.X, a.Y / b.Y, a.Z / b.Z, a.W / b.W); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Quaternion operator /( Quaternion a, Quaternion b ) => new(a.X / b.X, a.Y / b.Y, a.Z / b.Z, a.W / b.W); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Quaternion operator *(Quaternion a, float b) => new(a.X * b, a.Y * b, a.Z * b, a.W * b); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Quaternion operator *( Quaternion a, float b ) => new(a.X * b, a.Y * b, a.Z * b, a.W * b); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Quaternion operator /(Quaternion a, float b) - { - if (b == 0) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Quaternion operator /( Quaternion a, float b ) { - throw new DivideByZeroException(); + if (b == 0) + { + throw new DivideByZeroException(); + } + var oofl = 1.0f / b; + return new(a.X * oofl, a.Y * oofl, a.Z * oofl, a.W * oofl); } - var oofl = 1.0f / b; - return new(a.X * oofl, a.Y * oofl, a.Z * oofl, a.W * oofl); - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Quaternion operator -(Quaternion a) => new(-a.X, -a.Y, -a.Z, -a.W); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Quaternion operator -( Quaternion a ) => new(-a.X, -a.Y, -a.Z, -a.W); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator ==(Quaternion a, Quaternion b) => a.X == b.X && a.Y == b.Y && a.Z == b.Z && a.W == b.W; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool operator ==( Quaternion a, Quaternion b ) => a.X == b.X && a.Y == b.Y && a.Z == b.Z && a.W == b.W; - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator !=(Quaternion a, Quaternion b) => a.X != b.X || a.Y != b.Y || a.Z != b.Z || a.W != b.W; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool operator !=( Quaternion a, Quaternion b ) => a.X != b.X || a.Y != b.Y || a.Z != b.Z || a.W != b.W; } diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/RadianEuler.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/RadianEuler.cs index 2f335b05b..97b64a091 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/RadianEuler.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/RadianEuler.cs @@ -1,4 +1,3 @@ -using System.Numerics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -10,67 +9,67 @@ namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Sequential, Pack = 4, Size = 12)] public struct RadianEuler { - public float X; - public float Y; - public float Z; + public float X; + public float Y; + public float Z; - public RadianEuler(float x, float y, float z) - { - X = x; - Y = y; - Z = z; - } + public RadianEuler( float x, float y, float z ) + { + X = x; + Y = y; + Z = z; + } - public RadianEuler(RadianEuler other) - { - X = other.X; - Y = other.Y; - Z = other.Z; - } + public RadianEuler( RadianEuler other ) + { + X = other.X; + Y = other.Y; + Z = other.Z; + } - public QAngle ToQAngle() => new(X * 180.0f / MathF.PI, Y * 180.0f / MathF.PI, Z * 180.0f / MathF.PI); + public QAngle ToQAngle() => new(X * 180.0f / MathF.PI, Y * 180.0f / MathF.PI, Z * 180.0f / MathF.PI); - public override bool Equals(object? obj) => obj is RadianEuler angle && this == angle; - public override int GetHashCode() => HashCode.Combine(X, Y, Z); - public override string ToString() => $"RadianEuler({X}, {Y}, {Z})"; + public override bool Equals( object? obj ) => obj is RadianEuler angle && this == angle; + public override int GetHashCode() => HashCode.Combine(X, Y, Z); + public override string ToString() => $"RadianEuler({X}, {Y}, {Z})"; - public static RadianEuler Zero => new(0, 0, 0); + public static RadianEuler Zero => new(0, 0, 0); - [MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RadianEuler operator +(RadianEuler a, RadianEuler b) => new(a.X + b.X, a.Y + b.Y, a.Z + b.Z); + public static RadianEuler operator +( RadianEuler a, RadianEuler b ) => new(a.X + b.X, a.Y + b.Y, a.Z + b.Z); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RadianEuler operator -(RadianEuler a, RadianEuler b) => new(a.X - b.X, a.Y - b.Y, a.Z - b.Z); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static RadianEuler operator -( RadianEuler a, RadianEuler b ) => new(a.X - b.X, a.Y - b.Y, a.Z - b.Z); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RadianEuler operator *(RadianEuler a, RadianEuler b) => new(a.X * b.X, a.Y * b.Y, a.Z * b.Z); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static RadianEuler operator *( RadianEuler a, RadianEuler b ) => new(a.X * b.X, a.Y * b.Y, a.Z * b.Z); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RadianEuler operator /(RadianEuler a, RadianEuler b) => new(a.X / b.X, a.Y / b.Y, a.Z / b.Z); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static RadianEuler operator /( RadianEuler a, RadianEuler b ) => new(a.X / b.X, a.Y / b.Y, a.Z / b.Z); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RadianEuler operator *(RadianEuler a, float b) => new(a.X * b, a.Y * b, a.Z * b); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static RadianEuler operator *( RadianEuler a, float b ) => new(a.X * b, a.Y * b, a.Z * b); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RadianEuler operator /(RadianEuler a, float b) - { - if (b == 0) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static RadianEuler operator /( RadianEuler a, float b ) { - throw new DivideByZeroException(); + if (b == 0) + { + throw new DivideByZeroException(); + } + var oofl = 1.0f / b; + return new(a.X * oofl, a.Y * oofl, a.Z * oofl); } - var oofl = 1.0f / b; - return new(a.X * oofl, a.Y * oofl, a.Z * oofl); - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static RadianEuler operator -(RadianEuler a) => new(-a.X, -a.Y, -a.Z); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static RadianEuler operator -( RadianEuler a ) => new(-a.X, -a.Y, -a.Z); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator ==(RadianEuler a, RadianEuler b) => a.X == b.X && a.Y == b.Y && a.Z == b.Z; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool operator ==( RadianEuler a, RadianEuler b ) => a.X == b.X && a.Y == b.Y && a.Z == b.Z; - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator !=(RadianEuler a, RadianEuler b) => a.X != b.X || a.Y != b.Y || a.Z != b.Z; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool operator !=( RadianEuler a, RadianEuler b ) => a.X != b.X || a.Y != b.Y || a.Z != b.Z; } diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/Ray_t.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/Ray_t.cs index a13f398d8..b95a032ab 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/Ray_t.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/Ray_t.cs @@ -1,4 +1,4 @@ -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; @@ -51,14 +51,14 @@ public struct Ray_t [FieldOffset(0x0)] public MeshTrace Mesh; [FieldOffset(0x34)] public RayType_t Type; - public void Init(Vector StartOffset) + public void Init( Vector StartOffset ) { Line.StartOffset = StartOffset; Line.Radius = 0.0f; Type = RayType_t.RAY_TYPE_LINE; } - public void Init(Vector Center, float Radius) + public void Init( Vector Center, float Radius ) { if (Radius > 0.0f) { @@ -72,7 +72,7 @@ public void Init(Vector Center, float Radius) } } - public void Init(Vector Mins, Vector Maxs) + public void Init( Vector Mins, Vector Maxs ) { if (Mins != Maxs) { @@ -86,7 +86,7 @@ public void Init(Vector Mins, Vector Maxs) } } - public void Init(Vector CenterA, Vector CenterB, float Radius) + public void Init( Vector CenterA, Vector CenterB, float Radius ) { if (CenterA != CenterB) { @@ -108,7 +108,7 @@ public void Init(Vector CenterA, Vector CenterB, float Radius) } } - public unsafe void Init(Vector Mins, Vector Maxs, Vector* Vertices, int NumVertices) + public unsafe void Init( Vector Mins, Vector Maxs, Vector* Vertices, int NumVertices ) { Mesh.Mins = Mins; Mesh.Maxs = Maxs; diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/RnCollisionAttr_t.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/RnCollisionAttr_t.cs index b28808022..2e36968d8 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/RnCollisionAttr_t.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/RnCollisionAttr_t.cs @@ -1,8 +1,8 @@ -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; -public enum CollisionFunctionMask_t: byte +public enum CollisionFunctionMask_t : byte { FCOLLISION_FUNC_ENABLE_SOLID_CONTACT = (1 << 0), FCOLLISION_FUNC_ENABLE_TRACE_QUERY = (1 << 1), diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/RnQueryShapeAttr_t.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/RnQueryShapeAttr_t.cs index 07fa8cabb..5b39e5a5e 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/RnQueryShapeAttr_t.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/RnQueryShapeAttr_t.cs @@ -1,9 +1,9 @@ -using SwiftlyS2.Shared.Misc; using System.Runtime.InteropServices; +using SwiftlyS2.Shared.Misc; namespace SwiftlyS2.Shared.Natives; -public enum CollisionGroup: byte +public enum CollisionGroup : byte { /// /// Default layer, always collides with everything. @@ -95,7 +95,7 @@ public enum CollisionGroup: byte MaxAllowed = 64 } -public enum InteractionLayer: sbyte +public enum InteractionLayer : sbyte { ContentsSolid = 0, ContentsHitbox, @@ -144,7 +144,7 @@ public enum InteractionLayer: sbyte } [Flags] -public enum MaskTrace: ulong +public enum MaskTrace : ulong { Empty = 0ul, Solid = 1ul << InteractionLayer.ContentsSolid, @@ -190,7 +190,7 @@ public enum MaskTrace: ulong }; [Flags] -public enum RnQueryObjectSet: byte +public enum RnQueryObjectSet : byte { Static = 1 << 0, Keyframed = 1 << 1, @@ -214,44 +214,37 @@ public unsafe struct RnQueryShapeAttr_t [FieldOffset(0x2D)] public CollisionGroup CollisionGroup; [FieldOffset(0x2E)] private byte data; - public bool HitSolid - { + public bool HitSolid { get => BitFieldHelper.GetBit(ref data, 0); set => BitFieldHelper.SetBit(ref data, 0, value); } - public bool HitSolidRequiresGenerateContacts - { + public bool HitSolidRequiresGenerateContacts { get => BitFieldHelper.GetBit(ref data, 1); set => BitFieldHelper.SetBit(ref data, 1, value); } - public bool HitTrigger - { + public bool HitTrigger { get => BitFieldHelper.GetBit(ref data, 2); set => BitFieldHelper.SetBit(ref data, 2, value); } - public bool ShouldIgnoreDisabledPairs - { + public bool ShouldIgnoreDisabledPairs { get => BitFieldHelper.GetBit(ref data, 3); set => BitFieldHelper.SetBit(ref data, 3, value); } - public bool IgnoreIfBothInteractWithHitboxes - { + public bool IgnoreIfBothInteractWithHitboxes { get => BitFieldHelper.GetBit(ref data, 4); set => BitFieldHelper.SetBit(ref data, 4, value); } - public bool ForceHitEverything - { + public bool ForceHitEverything { get => BitFieldHelper.GetBit(ref data, 5); set => BitFieldHelper.SetBit(ref data, 5, value); } - public bool Unknown - { + public bool Unknown { get => BitFieldHelper.GetBit(ref data, 6); set => BitFieldHelper.SetBit(ref data, 6, value); } diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/Vector.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/Vector.cs index b1ae94cf6..334f2ef25 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/Vector.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/Vector.cs @@ -10,129 +10,174 @@ namespace SwiftlyS2.Shared.Natives; /// No more cssharp chaos. /// [StructLayout(LayoutKind.Sequential, Pack = 4, Size = 12)] -public struct Vector { - public float X; - public float Y; - public float Z; +public struct Vector +{ + public float X; + public float Y; + public float Z; + private const float Rad2Deg = 180.0f / MathF.PI; + + public Vector( float x, float y, float z ) + { + X = x; + Y = y; + Z = z; + } - public Vector(float x, float y, float z) { - X = x; - Y = y; - Z = z; - } + public Vector( Vector other ) + { + X = other.X; + Y = other.Y; + Z = other.Z; + } - public Vector(Vector other) { - X = other.X; - Y = other.Y; - Z = other.Z; - } + public Vector3 ToBuiltin() + { + return new(X, Y, Z); + } - public System.Numerics.Vector3 ToBuiltin() - { - return new(X, Y, Z); - } + public static Vector FromBuiltin( Vector3 vector ) + { + return new(vector.X, vector.Y, vector.Z); + } - public static Vector FromBuiltin(System.Numerics.Vector3 vector) - { - return new(vector.X, vector.Y, vector.Z); - } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float Length() => (float)Math.Sqrt(X * X + Y * Y + Z * Z); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float Length() => (float)Math.Sqrt(X * X + Y * Y + Z * Z); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float LengthSquared() => X * X + Y * Y + Z * Z; - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float LengthSquared() => X * X + Y * Y + Z * Z; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float Distance( Vector other ) => (this - other).Length(); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float Distance(Vector other) => (this - other).Length(); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float DistanceSquared( Vector other ) => (this - other).LengthSquared(); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float DistanceSquared(Vector other) => (this - other).LengthSquared(); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public Vector Cross( Vector other ) => new(Y * other.Z - Z * other.Y, Z * other.X - X * other.Z, X * other.Y - Y * other.X); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public Vector Cross(Vector other) => new(Y * other.Z - Z * other.Y, Z * other.X - X * other.Z, X * other.Y - Y * other.X); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float Dot( Vector a, Vector b ) => a.X * b.X + a.Y * b.Y + a.Z * b.Z; - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float Dot(Vector a, Vector b) => a.X * b.X + a.Y * b.Y + a.Z * b.Z; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float Dot( Vector other ) => Dot(this, other); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float Dot(Vector other) => Dot(this, other); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public void Normalize() + { + var len = Length(); + if (len > 0f) + { + var inv = 1.0f / len; + X *= inv; + Y *= inv; + Z *= inv; + } + } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public void Normalize() { - var len = Length(); - if (len > 0f) { - var inv = 1.0f / len; - X *= inv; - Y *= inv; - Z *= inv; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public Vector Normalized() + { + var len = Length(); + if (len > 0f) + { + var inv = 1.0f / len; + return new(X * inv, Y * inv, Z * inv); + } + return Zero; } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public Vector Normalized() { - var len = Length(); - if (len > 0f) { - var inv = 1.0f / len; - return new(X * inv, Y * inv, Z * inv); + + public void Deconstruct( out float x, out float y, out float z ) + { + x = X; + y = Y; + z = Z; } - return Zero; - } - public void Deconstruct(out float x, out float y, out float z) { - x = X; - y = Y; - z = Z; - } + /// + /// Converts this forward vector into Euler QAngles (pitch, yaw, roll). + /// Usage: forward.ToQAngles(out var angles); + /// + /// Resulting . + public QAngle ToQAngles() + { + float yaw; + float pitch; + + if (X == 0f && Y == 0f) + { + yaw = 0f; + pitch = Z > 0f ? 270f : 90f; + } + else + { + yaw = MathF.Atan2(Y, X) * Rad2Deg; + if (yaw < 0f) + { + yaw += 360f; + } + + var tmp = MathF.Sqrt(X * X + Y * Y); + pitch = MathF.Atan2(-Z, tmp) * Rad2Deg; + if (pitch < 0f) + { + pitch += 360f; + } + } + + return new QAngle(pitch, yaw, 0f); + } - public override bool Equals(object? obj) => obj is Vector vector && this == vector; - public override int GetHashCode() => HashCode.Combine(X, Y, Z); - public override string ToString() => $"Vector({X}, {Y}, {Z})"; + public override bool Equals( object? obj ) => obj is Vector vector && this == vector; + public override int GetHashCode() => HashCode.Combine(X, Y, Z); + public override string ToString() => $"Vector({X}, {Y}, {Z})"; - public static Vector Zero => new(0, 0, 0); + public static Vector Zero => new(0, 0, 0); - public static Vector One => new(1, 1, 1); + public static Vector One => new(1, 1, 1); - [MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector operator +(Vector a, Vector b) => new(a.X + b.X, a.Y + b.Y, a.Z + b.Z); + public static Vector operator +( Vector a, Vector b ) => new(a.X + b.X, a.Y + b.Y, a.Z + b.Z); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector operator -(Vector a, Vector b) => new(a.X - b.X, a.Y - b.Y, a.Z - b.Z); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector operator -( Vector a, Vector b ) => new(a.X - b.X, a.Y - b.Y, a.Z - b.Z); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector operator *(Vector a, Vector b) => new(a.X * b.X, a.Y * b.Y, a.Z * b.Z); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector operator *( Vector a, Vector b ) => new(a.X * b.X, a.Y * b.Y, a.Z * b.Z); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector operator /(Vector a, Vector b) => new(a.X / b.X, a.Y / b.Y, a.Z / b.Z); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector operator /( Vector a, Vector b ) => new(a.X / b.X, a.Y / b.Y, a.Z / b.Z); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector operator *(Vector a, float b) => new(a.X * b, a.Y * b, a.Z * b); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector operator *( Vector a, float b ) => new(a.X * b, a.Y * b, a.Z * b); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector operator *(float b, Vector a) => new(a.X * b, a.Y * b, a.Z * b); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector operator *( float b, Vector a ) => new(a.X * b, a.Y * b, a.Z * b); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector operator /(Vector a, float b) { - if (b == 0) { - throw new DivideByZeroException(); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector operator /( Vector a, float b ) + { + if (b == 0) + { + throw new DivideByZeroException(); + } + var oofl = 1.0f / b; + return new(a.X * oofl, a.Y * oofl, a.Z * oofl); } - var oofl = 1.0f / b; - return new(a.X * oofl, a.Y * oofl, a.Z * oofl); - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector operator -(Vector a) => new(-a.X, -a.Y, -a.Z); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector operator -( Vector a ) => new(-a.X, -a.Y, -a.Z); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator ==(Vector a, Vector b) => a.X == b.X && a.Y == b.Y && a.Z == b.Z; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool operator ==( Vector a, Vector b ) => a.X == b.X && a.Y == b.Y && a.Z == b.Z; - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator !=(Vector a, Vector b) => a.X != b.X || a.Y != b.Y || a.Z != b.Z; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool operator !=( Vector a, Vector b ) => a.X != b.X || a.Y != b.Y || a.Z != b.Z; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/Vector2D.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/Vector2D.cs index 4c6342b94..b95a66ef7 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/Vector2D.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/Vector2D.cs @@ -1,4 +1,3 @@ -using System.Numerics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -8,118 +7,130 @@ namespace SwiftlyS2.Shared.Natives; /// 2-Dimensional vector for source 2. /// [StructLayout(LayoutKind.Sequential, Size = 8)] -public struct Vector2D { - public float X; - public float Y; - - public Vector2D(float x, float y) { - X = x; - Y = y; - } +public struct Vector2D +{ + public float X; + public float Y; + + public Vector2D( float x, float y ) + { + X = x; + Y = y; + } - public Vector2D(Vector2D other) { - X = other.X; - Y = other.Y; - } + public Vector2D( Vector2D other ) + { + X = other.X; + Y = other.Y; + } - public System.Numerics.Vector2 ToBuiltin() { - return new(X, Y); - } + public System.Numerics.Vector2 ToBuiltin() + { + return new(X, Y); + } - public static Vector2D FromBuiltin(System.Numerics.Vector2 vector) { - return new(vector.X, vector.Y); - } + public static Vector2D FromBuiltin( System.Numerics.Vector2 vector ) + { + return new(vector.X, vector.Y); + } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float Length() => (float)Math.Sqrt(X * X + Y * Y); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float Length() => (float)Math.Sqrt(X * X + Y * Y); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float LengthSquared() => X * X + Y * Y; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float LengthSquared() => X * X + Y * Y; - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float Distance(Vector2D other) => (this - other).Length(); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float Distance( Vector2D other ) => (this - other).Length(); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float DistanceSquared(Vector2D other) => (this - other).LengthSquared(); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float DistanceSquared( Vector2D other ) => (this - other).LengthSquared(); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float Dot(Vector2D a, Vector2D b) => a.X * b.X + a.Y * b.Y; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float Dot( Vector2D a, Vector2D b ) => a.X * b.X + a.Y * b.Y; - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float Dot(Vector2D other) => Dot(this, other); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float Dot( Vector2D other ) => Dot(this, other); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public void Normalize() { - var len = Length(); - if (len > 0f) { - var inv = 1.0f / len; - X *= inv; - Y *= inv; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public void Normalize() + { + var len = Length(); + if (len > 0f) + { + var inv = 1.0f / len; + X *= inv; + Y *= inv; + } } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public Vector2D Normalized() { - var len = Length(); - if (len > 0f) { - var inv = 1.0f / len; - return new(X * inv, Y * inv); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public Vector2D Normalized() + { + var len = Length(); + if (len > 0f) + { + var inv = 1.0f / len; + return new(X * inv, Y * inv); + } + return Zero; } - return Zero; - } - public void Deconstruct(out float x, out float y) { - x = X; - y = Y; - } + public void Deconstruct( out float x, out float y ) + { + x = X; + y = Y; + } - public override bool Equals(object? obj) => obj is Vector2D vector && this == vector; - public override int GetHashCode() => HashCode.Combine(X, Y); - public override string ToString() => $"Vector2D({X}, {Y})"; + public override bool Equals( object? obj ) => obj is Vector2D vector && this == vector; + public override int GetHashCode() => HashCode.Combine(X, Y); + public override string ToString() => $"Vector2D({X}, {Y})"; - public static Vector2D Zero => new(0, 0); + public static Vector2D Zero => new(0, 0); - public static Vector2D One => new(1, 1); + public static Vector2D One => new(1, 1); - [MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector2D operator +(Vector2D a, Vector2D b) => new(a.X + b.X, a.Y + b.Y); + public static Vector2D operator +( Vector2D a, Vector2D b ) => new(a.X + b.X, a.Y + b.Y); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector2D operator -(Vector2D a, Vector2D b) => new(a.X - b.X, a.Y - b.Y); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector2D operator -( Vector2D a, Vector2D b ) => new(a.X - b.X, a.Y - b.Y); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector2D operator *(Vector2D a, Vector2D b) => new(a.X * b.X, a.Y * b.Y); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector2D operator *( Vector2D a, Vector2D b ) => new(a.X * b.X, a.Y * b.Y); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector2D operator /(Vector2D a, Vector2D b) => new(a.X / b.X, a.Y / b.Y); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector2D operator /( Vector2D a, Vector2D b ) => new(a.X / b.X, a.Y / b.Y); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector2D operator *(Vector2D a, float b) => new(a.X * b, a.Y * b); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector2D operator *( Vector2D a, float b ) => new(a.X * b, a.Y * b); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector2D operator *(float b, Vector2D a) => new(a.X * b, a.Y * b); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector2D operator *( float b, Vector2D a ) => new(a.X * b, a.Y * b); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector2D operator /(Vector2D a, float b) { - if (b == 0) { - throw new DivideByZeroException(); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector2D operator /( Vector2D a, float b ) + { + if (b == 0) + { + throw new DivideByZeroException(); + } + var oofl = 1.0f / b; + return new(a.X * oofl, a.Y * oofl); } - var oofl = 1.0f / b; - return new(a.X * oofl, a.Y * oofl); - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector2D operator -(Vector2D a) => new(-a.X, -a.Y); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector2D operator -( Vector2D a ) => new(-a.X, -a.Y); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator ==(Vector2D a, Vector2D b) => a.X == b.X && a.Y == b.Y; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool operator ==( Vector2D a, Vector2D b ) => a.X == b.X && a.Y == b.Y; - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator !=(Vector2D a, Vector2D b) => a.X != b.X || a.Y != b.Y; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool operator !=( Vector2D a, Vector2D b ) => a.X != b.X || a.Y != b.Y; } diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/Vector4D.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/Vector4D.cs index c648c9290..40470febd 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/Vector4D.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/Vector4D.cs @@ -4,124 +4,136 @@ namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Sequential, Size = 16)] -public struct Vector4D { - public float X; - public float Y; - public float Z; - public float W; - - public Vector4D(float x, float y, float z, float w) { - X = x; - Y = y; - Z = z; - W = w; - } - - public Vector4D(Vector4D other) { - X = other.X; - Y = other.Y; - Z = other.Z; - W = other.W; - } - - public System.Numerics.Vector4 ToBuiltin() { - return new(X, Y, Z, W); - } - - public static Vector4D FromBuiltin(System.Numerics.Vector4 vector) { - return new(vector.X, vector.Y, vector.Z, vector.W); - } - - public override bool Equals(object? obj) => obj is Vector4D vector && this == vector; - public override int GetHashCode() => HashCode.Combine(X, Y, Z, W); - public override string ToString() => $"Vector4D({X}, {Y}, {Z}, {W})"; - - public static Vector4D Zero => new(0, 0, 0, 0); - - public static Vector4D One => new(1, 1, 1, 1); - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float Dot(Vector4D a, Vector4D b) => a.X * b.X + a.Y * b.Y + a.Z * b.Z + a.W * b.W; - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float Dot(Vector4D other) => Dot(this, other); - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float Length() => MathF.Sqrt(X * X + Y * Y + Z * Z + W * W); - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float LengthSquared() => X * X + Y * Y + Z * Z + W * W; - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public void Normalize() { - var len = Length(); - if (len > 0f) { - var inv = 1.0f / len; - X *= inv; - Y *= inv; - Z *= inv; - W *= inv; +public struct Vector4D +{ + public float X; + public float Y; + public float Z; + public float W; + + public Vector4D( float x, float y, float z, float w ) + { + X = x; + Y = y; + Z = z; + W = w; } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public Vector4D Normalized() { - var len = Length(); - if (len > 0f) { - var inv = 1.0f / len; - return new(X * inv, Y * inv, Z * inv, W * inv); + + public Vector4D( Vector4D other ) + { + X = other.X; + Y = other.Y; + Z = other.Z; + W = other.W; + } + + public System.Numerics.Vector4 ToBuiltin() + { + return new(X, Y, Z, W); + } + + public static Vector4D FromBuiltin( System.Numerics.Vector4 vector ) + { + return new(vector.X, vector.Y, vector.Z, vector.W); } - return Zero; - } - public void Deconstruct(out float x, out float y, out float z, out float w) { - x = X; - y = Y; - z = Z; - w = W; - } + public override bool Equals( object? obj ) => obj is Vector4D vector && this == vector; + public override int GetHashCode() => HashCode.Combine(X, Y, Z, W); + public override string ToString() => $"Vector4D({X}, {Y}, {Z}, {W})"; + + public static Vector4D Zero => new(0, 0, 0, 0); + + public static Vector4D One => new(1, 1, 1, 1); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float Dot( Vector4D a, Vector4D b ) => a.X * b.X + a.Y * b.Y + a.Z * b.Z + a.W * b.W; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float Dot( Vector4D other ) => Dot(this, other); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float Length() => MathF.Sqrt(X * X + Y * Y + Z * Z + W * W); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float LengthSquared() => X * X + Y * Y + Z * Z + W * W; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public void Normalize() + { + var len = Length(); + if (len > 0f) + { + var inv = 1.0f / len; + X *= inv; + Y *= inv; + Z *= inv; + W *= inv; + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public Vector4D Normalized() + { + var len = Length(); + if (len > 0f) + { + var inv = 1.0f / len; + return new(X * inv, Y * inv, Z * inv, W * inv); + } + return Zero; + } + + public void Deconstruct( out float x, out float y, out float z, out float w ) + { + x = X; + y = Y; + z = Z; + w = W; + } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector4D operator +(Vector4D a, Vector4D b) => new(a.X + b.X, a.Y + b.Y, a.Z + b.Z, a.W + b.W); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector4D operator +( Vector4D a, Vector4D b ) => new(a.X + b.X, a.Y + b.Y, a.Z + b.Z, a.W + b.W); - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector4D operator -(Vector4D a, Vector4D b) => new(a.X - b.X, a.Y - b.Y, a.Z - b.Z, a.W - b.W); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Vector4D operator -( Vector4D a, Vector4D b ) => new(a.X - b.X, a.Y - b.Y, a.Z - b.Z, a.W - b.W); - [MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector4D operator *(Vector4D a, Vector4D b) => new(a.X * b.X, a.Y * b.Y, a.Z * b.Z, a.W * b.W); + public static Vector4D operator *( Vector4D a, Vector4D b ) => new(a.X * b.X, a.Y * b.Y, a.Z * b.Z, a.W * b.W); - [MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector4D operator /(Vector4D a, Vector4D b) => new(a.X / b.X, a.Y / b.Y, a.Z / b.Z, a.W / b.W); + public static Vector4D operator /( Vector4D a, Vector4D b ) => new(a.X / b.X, a.Y / b.Y, a.Z / b.Z, a.W / b.W); - [MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector4D operator *(Vector4D a, float b) => new(a.X * b, a.Y * b, a.Z * b, a.W * b); + public static Vector4D operator *( Vector4D a, float b ) => new(a.X * b, a.Y * b, a.Z * b, a.W * b); - [MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector4D operator *(float b, Vector4D a) => new(a.X * b, a.Y * b, a.Z * b, a.W * b); + public static Vector4D operator *( float b, Vector4D a ) => new(a.X * b, a.Y * b, a.Z * b, a.W * b); - [MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector4D operator /(Vector4D a, float b) { - if (b == 0) { - throw new DivideByZeroException(); + public static Vector4D operator /( Vector4D a, float b ) + { + if (b == 0) + { + throw new DivideByZeroException(); + } + var oofl = 1.0f / b; + return new(a.X * oofl, a.Y * oofl, a.Z * oofl, a.W * oofl); } - var oofl = 1.0f / b; - return new(a.X * oofl, a.Y * oofl, a.Z * oofl, a.W * oofl); - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static Vector4D operator -(Vector4D a) => new(-a.X, -a.Y, -a.Z, -a.W); + public static Vector4D operator -( Vector4D a ) => new(-a.X, -a.Y, -a.Z, -a.W); - [MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator ==(Vector4D a, Vector4D b) => a.X == b.X && a.Y == b.Y && a.Z == b.Z && a.W == b.W; + public static bool operator ==( Vector4D a, Vector4D b ) => a.X == b.X && a.Y == b.Y && a.Z == b.Z && a.W == b.W; - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool operator !=(Vector4D a, Vector4D b) => a.X != b.X || a.Y != b.Y || a.Z != b.Z || a.W != b.W; + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool operator !=( Vector4D a, Vector4D b ) => a.X != b.X || a.Y != b.Y || a.Z != b.Z || a.W != b.W; } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/bbox_t.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/bbox_t.cs index f7cedc866..329991e81 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/bbox_t.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/bbox_t.cs @@ -1,4 +1,3 @@ -using SwiftlyS2.Shared.SchemaDefinitions; using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/fltx4.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/fltx4.cs index 38f5d80ab..550512130 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/fltx4.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/fltx4.cs @@ -1,4 +1,3 @@ -using System; using System.Runtime.InteropServices; namespace SwiftlyS2.Shared.Natives; @@ -6,55 +5,53 @@ namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Explicit, Size = 16)] public struct fltx4 { - [FieldOffset(0)] public float F0; - [FieldOffset(4)] public float F1; - [FieldOffset(8)] public float F2; - [FieldOffset(12)] public float F3; + [FieldOffset(0)] public float F0; + [FieldOffset(4)] public float F1; + [FieldOffset(8)] public float F2; + [FieldOffset(12)] public float F3; - [FieldOffset(0)] public uint U0; - [FieldOffset(4)] public uint U1; - [FieldOffset(8)] public uint U2; - [FieldOffset(12)] public uint U3; + [FieldOffset(0)] public uint U0; + [FieldOffset(4)] public uint U1; + [FieldOffset(8)] public uint U2; + [FieldOffset(12)] public uint U3; - public float GetFloat(int index) => index switch - { - 0 => F0, - 1 => F1, - 2 => F2, - 3 => F3, - _ => throw new IndexOutOfRangeException() - }; + public float GetFloat( int index ) => index switch { + 0 => F0, + 1 => F1, + 2 => F2, + 3 => F3, + _ => throw new IndexOutOfRangeException() + }; - public uint GetUInt(int index) => index switch - { - 0 => U0, - 1 => U1, - 2 => U2, - 3 => U3, - _ => throw new IndexOutOfRangeException() - }; + public uint GetUInt( int index ) => index switch { + 0 => U0, + 1 => U1, + 2 => U2, + 3 => U3, + _ => throw new IndexOutOfRangeException() + }; - public void SetFloat(int index, float value) - { - switch (index) + public void SetFloat( int index, float value ) { - case 0: F0 = value; break; - case 1: F1 = value; break; - case 2: F2 = value; break; - case 3: F3 = value; break; - default: throw new IndexOutOfRangeException(); + switch (index) + { + case 0: F0 = value; break; + case 1: F1 = value; break; + case 2: F2 = value; break; + case 3: F3 = value; break; + default: throw new IndexOutOfRangeException(); + } } - } - public void SetUInt(int index, uint value) - { - switch (index) + public void SetUInt( int index, uint value ) { - case 0: U0 = value; break; - case 1: U1 = value; break; - case 2: U2 = value; break; - case 3: U3 = value; break; - default: throw new IndexOutOfRangeException(); + switch (index) + { + case 0: U0 = value; break; + case 1: U1 = value; break; + case 2: U2 = value; break; + case 3: U3 = value; break; + default: throw new IndexOutOfRangeException(); + } } - } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Natives/Structs/matrix3x4_t.cs b/managed/src/SwiftlyS2.Shared/Natives/Structs/matrix3x4_t.cs index 662324637..3a243cf9e 100644 --- a/managed/src/SwiftlyS2.Shared/Natives/Structs/matrix3x4_t.cs +++ b/managed/src/SwiftlyS2.Shared/Natives/Structs/matrix3x4_t.cs @@ -1,23 +1,23 @@ using System.Runtime.InteropServices; -using SwiftlyS2.Core.Extensions; namespace SwiftlyS2.Shared.Natives; [StructLayout(LayoutKind.Explicit, Size = 48)] -public struct matrix3x4_t { +public struct matrix3x4_t +{ - [FieldOffset(0x0)] - private unsafe fixed float floats[12]; + [FieldOffset(0x0)] + private unsafe fixed float floats[12]; - public ref float this[int row, int column] { - get { - unsafe - { - if (row < 0 || row >= 3 || column < 0 || column >= 4) - throw new IndexOutOfRangeException(); - return ref floats[row * 4 + column]; - } + public ref float this[int row, int column] { + get { + unsafe + { + if (row < 0 || row >= 3 || column < 0 || column >= 4) + throw new IndexOutOfRangeException(); + return ref floats[row * 4 + column]; + } + } } - } -} \ No newline at end of file +} \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/PluginMetadata.cs b/managed/src/SwiftlyS2.Shared/PluginMetadata.cs index 910b22e1b..db29b0213 100644 --- a/managed/src/SwiftlyS2.Shared/PluginMetadata.cs +++ b/managed/src/SwiftlyS2.Shared/PluginMetadata.cs @@ -3,10 +3,9 @@ namespace SwiftlyS2.Shared; public class PluginMetadata : Attribute { public required string Id { get; set; } - private string? _displayName; public string Name { - get => _displayName ?? Id; - set => _displayName = value; + get => field ?? Id; + set; } public required string Version { get; set; } public string Author { get; set; } = "Anonymous"; diff --git a/managed/src/SwiftlyS2.Shared/Plugins/BasePlugin.cs b/managed/src/SwiftlyS2.Shared/Plugins/BasePlugin.cs index 467b68b17..dc73de600 100644 --- a/managed/src/SwiftlyS2.Shared/Plugins/BasePlugin.cs +++ b/managed/src/SwiftlyS2.Shared/Plugins/BasePlugin.cs @@ -1,4 +1,3 @@ -using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using SwiftlyS2.Shared.Misc; @@ -7,33 +6,37 @@ namespace SwiftlyS2.Shared.Plugins; public abstract class BasePlugin : IPlugin { - protected ISwiftlyCore Core { get; private init; } + protected ISwiftlyCore Core { get; private init; } - public BasePlugin(ISwiftlyCore core) - { + public BasePlugin( ISwiftlyCore core ) + { - Core = core; + Core = core; - AppDomain.CurrentDomain.UnhandledException += (sender, e) => - { - Core.Logger.LogCritical(e.ExceptionObject as Exception, "CRITICAL: Unhandled exception in plugin. Aborting."); - }; + AppDomain.CurrentDomain.UnhandledException += ( sender, e ) => + { + Core.Logger.LogCritical(e.ExceptionObject as Exception, "CRITICAL: Unhandled exception in plugin. Aborting."); + }; - TaskScheduler.UnobservedTaskException += (sender, e) => - { - Core.Logger.LogCritical(e.Exception, "CRITICAL: Unobserved task exception in plugin. Aborting."); - e.SetObserved(); - }; + TaskScheduler.UnobservedTaskException += ( sender, e ) => + { + Core.Logger.LogCritical(e.Exception, "CRITICAL: Unobserved task exception in plugin. Aborting."); + e.SetObserved(); + }; + + Console.SetOut(new ConsoleRedirector()); + Console.SetError(new ConsoleRedirector()); + } + + public virtual void ConfigureSharedInterface( IInterfaceManager interfaceManager ) { } - Console.SetOut(new ConsoleRedirector()); - Console.SetError(new ConsoleRedirector()); - } + public virtual void UseSharedInterface( IInterfaceManager interfaceManager ) { } - public virtual void ConfigureSharedInterface(IInterfaceManager interfaceManager) { } + public virtual void OnSharedInterfaceInjected( IInterfaceManager interfaceManager ) { } - public virtual void UseSharedInterface(IInterfaceManager interfaceManager) { } + public virtual void OnAllPluginsLoaded() { } - public abstract void Load(bool hotReload); + public abstract void Load( bool hotReload ); - public abstract void Unload(); + public abstract void Unload(); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Plugins/IPlugin.cs b/managed/src/SwiftlyS2.Shared/Plugins/IPlugin.cs index b991f7e3c..283eac2a7 100644 --- a/managed/src/SwiftlyS2.Shared/Plugins/IPlugin.cs +++ b/managed/src/SwiftlyS2.Shared/Plugins/IPlugin.cs @@ -1,15 +1,18 @@ -using Microsoft.Extensions.DependencyInjection; - namespace SwiftlyS2.Shared.Plugins; -public interface IPlugin { +public interface IPlugin +{ + + public void ConfigureSharedInterface( IInterfaceManager interfaceManager ); + + public void UseSharedInterface( IInterfaceManager interfaceManager ); - public void ConfigureSharedInterface(IInterfaceManager interfaceManager); + public void OnSharedInterfaceInjected( IInterfaceManager interfaceManager ); - public void UseSharedInterface(IInterfaceManager interfaceManager); + public void OnAllPluginsLoaded(); - public void Load(bool hotReload); + public void Load( bool hotReload ); - public void Unload(); + public void Unload(); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/Services/IPluginConfigurationService.cs b/managed/src/SwiftlyS2.Shared/Services/IPluginConfigurationService.cs index a1cdc66f9..c864f1383 100644 --- a/managed/src/SwiftlyS2.Shared/Services/IPluginConfigurationService.cs +++ b/managed/src/SwiftlyS2.Shared/Services/IPluginConfigurationService.cs @@ -5,60 +5,60 @@ namespace SwiftlyS2.Shared.Services; public interface IPluginConfigurationService { - /// - /// Get the base path of plugin configuration. - /// - /// The base path of the plugin configuration. - public string BasePath { get; } + /// + /// Get the base path of plugin configuration. + /// + /// The base path of the plugin configuration. + public string BasePath { get; } - /// - /// Get the path to the configuration file. - /// - /// The name of the configuration file, including the extension. - /// The path to the configuration file. - public string GetConfigPath(string name); + /// + /// Get the path to the configuration file. + /// + /// The name of the configuration file, including the extension. + /// The path to the configuration file. + public string GetConfigPath( string name ); - /// - /// Initialize the configuration file with a template. - /// To use this, you must package a templates folder in the plugin, with the template file in it. - /// - /// The name of the configuration file. - /// The name of the template file. - public IPluginConfigurationService InitializeWithTemplate(string name, string templateName); + /// + /// Initialize the configuration file with a template. + /// To use this, you must package a templates folder in the plugin, with the template file in it. + /// + /// The name of the configuration file. + /// The name of the template file. + public IPluginConfigurationService InitializeWithTemplate( string name, string templateName ); - /// - /// Initialize the json configuration file with a class as template. - /// - /// The type of the configuration model. - /// The name of the configuration file. - /// The name of the section in the configuration file. - public IPluginConfigurationService InitializeJsonWithModel(string name, string sectionName) where T : class, new(); + /// + /// Initialize the json configuration file with a class as template. + /// + /// The type of the configuration model. + /// The name of the configuration file. + /// The name of the section in the configuration file. + public IPluginConfigurationService InitializeJsonWithModel( string name, string sectionName ) where T : class, new(); - /// - /// Initialize the TOML configuration file with a class as template. - /// - /// The type of the configuration model. - /// The name of the configuration file. - /// The name of the section in the configuration file. - public IPluginConfigurationService InitializeTomlWithModel(string name, string sectionName) where T : class, new(); + /// + /// Initialize the TOML configuration file with a class as template. + /// + /// The type of the configuration model. + /// The name of the configuration file. + /// The name of the section in the configuration file. + public IPluginConfigurationService InitializeTomlWithModel( string name, string sectionName ) where T : class, new(); - /// - /// Configure the internal configuration manager. - /// - /// The action to configure the configuration manager. - /// The plugin configuration service. - public IPluginConfigurationService Configure(Action configure); + /// + /// Configure the internal configuration manager. + /// + /// The action to configure the configuration manager. + /// The plugin configuration service. + public IPluginConfigurationService Configure( Action configure ); - /// - /// Get the configuration root. - /// - public IConfigurationManager Manager { get; } + /// + /// Get the configuration root. + /// + public IConfigurationManager Manager { get; } - /// - /// Whether the base path exists in the file system. - /// - public bool BasePathExists { get; } + /// + /// Whether the base path exists in the file system. + /// + public bool BasePathExists { get; } } diff --git a/managed/src/SwiftlyS2.Shared/Services/IRegistratorService.cs b/managed/src/SwiftlyS2.Shared/Services/IRegistratorService.cs index 313e62638..028baa3f0 100644 --- a/managed/src/SwiftlyS2.Shared/Services/IRegistratorService.cs +++ b/managed/src/SwiftlyS2.Shared/Services/IRegistratorService.cs @@ -1,10 +1,11 @@ namespace SwiftlyS2.Shared.Services; -public interface IRegistratorService { +public interface IRegistratorService +{ - /// - /// Register a object that contains attributes for listeners. - /// - /// Any object that contains attributes for listeners. - void Register(object instance); + /// + /// Register a object that contains attributes for listeners. + /// + /// Any object that contains attributes for listeners. + public void Register( object instance ); } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Shared/SwiftlyCoreAttribute.cs b/managed/src/SwiftlyS2.Shared/SwiftlyCoreAttribute.cs index 4d4ace618..14b7415b0 100644 --- a/managed/src/SwiftlyS2.Shared/SwiftlyCoreAttribute.cs +++ b/managed/src/SwiftlyS2.Shared/SwiftlyCoreAttribute.cs @@ -1,8 +1,10 @@ namespace SwiftlyS2.Shared; [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] -public class SwiftlyInject : Attribute { - public SwiftlyInject() { - } +public class SwiftlyInject : Attribute +{ + public SwiftlyInject() + { + } } diff --git a/managed/src/SwiftlyS2.Shared/SwiftlyCoreInjection.cs b/managed/src/SwiftlyS2.Shared/SwiftlyCoreInjection.cs index fb8b43732..139363f94 100644 --- a/managed/src/SwiftlyS2.Shared/SwiftlyCoreInjection.cs +++ b/managed/src/SwiftlyS2.Shared/SwiftlyCoreInjection.cs @@ -1,48 +1,50 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using SwiftlyS2.Shared.Commands; namespace SwiftlyS2.Shared; -public static class SwiftlyCoreInjection { +public static class SwiftlyCoreInjection +{ - public static IServiceCollection AddSwiftly(this IServiceCollection self, ISwiftlyCore core, bool addLogger = true, bool addConfiguration = true) - { - self - .AddSingleton(core) - .AddSingleton(core.ConVar) - .AddSingleton(core.Command) - .AddSingleton(core.Database) - .AddSingleton(core.Engine) - .AddSingleton(core.EntitySystem) - .AddSingleton(core.Event) - .AddSingleton(core.GameData) - .AddSingleton(core.GameEvent) - .AddSingleton(core.Localizer) - .AddSingleton(core.Memory) - .AddSingleton(core.NetMessage) - .AddSingleton(core.Permission) - .AddSingleton(core.PlayerManager) - .AddSingleton(core.Profiler) - .AddSingleton(core.Scheduler) - .AddSingleton(core.Trace) - .AddSingleton(core.Translation); + public static IServiceCollection AddSwiftly( this IServiceCollection self, ISwiftlyCore core, bool addLogger = true, bool addConfiguration = true ) + { + _ = self + .AddSingleton(core) + .AddSingleton(core.ConVar) + .AddSingleton(core.Command) + .AddSingleton(core.Database) + .AddSingleton(core.Engine) + .AddSingleton(core.EntitySystem) + .AddSingleton(core.Event) + .AddSingleton(core.GameData) + .AddSingleton(core.GameEvent) + .AddSingleton(core.Localizer) + .AddSingleton(core.Memory) + .AddSingleton(core.NetMessage) + .AddSingleton(core.Permission) + .AddSingleton(core.PlayerManager) + .AddSingleton(core.Profiler) + .AddSingleton(core.Scheduler) + .AddSingleton(core.Trace) + .AddSingleton(core.Translation); - if (addLogger) { - self - .AddSingleton(core.LoggerFactory) - .AddSingleton(typeof(ILogger<>), typeof(Logger<>)); - } + if (addLogger) + { + _ = self + .AddSingleton(core.LoggerFactory) + .AddSingleton(typeof(ILogger<>), typeof(Logger<>)); + } - if (addConfiguration && core.Configuration.BasePathExists) { - self - .AddSingleton(core.Configuration) - .AddSingleton(core.Configuration.Manager) - .AddSingleton(provider => provider.GetRequiredService()); - } + if (addConfiguration && core.Configuration.BasePathExists) + { + _ = self + .AddSingleton(core.Configuration) + .AddSingleton(core.Configuration.Manager) + .AddSingleton(provider => provider.GetRequiredService()); + } - return self; - } + return self; + } } \ No newline at end of file diff --git a/managed/src/TestPlugin/PlayerBenchmarks.cs b/managed/src/TestPlugin/PlayerBenchmarks.cs index 2ddc79ef5..3e9ca6da8 100644 --- a/managed/src/TestPlugin/PlayerBenchmarks.cs +++ b/managed/src/TestPlugin/PlayerBenchmarks.cs @@ -21,9 +21,9 @@ public void Setup() [Benchmark] public void Test() { - for (int i = 0; i < 10000; i++) + for (var i = 0; i < 10000; i++) { - var a = _controller.Pawn.Value.WeaponServices.ActiveWeapon; + _ = _controller.Pawn.Value.WeaponServices.ActiveWeapon; } } } \ No newline at end of file diff --git a/managed/src/TestPlugin/TestPlugin.cs b/managed/src/TestPlugin/TestPlugin.cs index d29722c08..0f6cba562 100644 --- a/managed/src/TestPlugin/TestPlugin.cs +++ b/managed/src/TestPlugin/TestPlugin.cs @@ -1,41 +1,31 @@ +using System.Runtime.InteropServices; +using BenchmarkDotNet.Configs; +using BenchmarkDotNet.Jobs; +using BenchmarkDotNet.Loggers; +using BenchmarkDotNet.Running; +using BenchmarkDotNet.Toolchains.InProcess.NoEmit; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using Tomlyn.Extensions.Configuration; -using System.Text.RegularExpressions; +using SwiftlyS2.Core.Menus.OptionsBase; using SwiftlyS2.Shared; using SwiftlyS2.Shared.Commands; +using SwiftlyS2.Shared.EntitySystem; +using SwiftlyS2.Shared.Events; using SwiftlyS2.Shared.GameEventDefinitions; using SwiftlyS2.Shared.GameEvents; -using SwiftlyS2.Shared.NetMessages; +using SwiftlyS2.Shared.Memory; +using SwiftlyS2.Shared.Menus; using SwiftlyS2.Shared.Misc; using SwiftlyS2.Shared.Natives; +using SwiftlyS2.Shared.NetMessages; +using SwiftlyS2.Shared.Players; using SwiftlyS2.Shared.Plugins; -using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.ProtobufDefinitions; -using System.Diagnostics.CodeAnalysis; -using System.Runtime.InteropServices; -using SwiftlyS2.Shared.Events; -using SwiftlyS2.Shared.Memory; -using YamlDotNet.Core.Tokens; -using Dapper; +using SwiftlyS2.Shared.SchemaDefinitions; using SwiftlyS2.Shared.Sounds; -using SwiftlyS2.Shared.EntitySystem; -using Microsoft.Extensions.Options; -using Microsoft.Extensions.Hosting; -using SwiftlyS2.Shared.Players; -using BenchmarkDotNet.Running; -using BenchmarkDotNet.Configs; -using BenchmarkDotNet.Toolchains.InProcess.NoEmit; -using BenchmarkDotNet.Toolchains.InProcess.Emit; -using BenchmarkDotNet.Jobs; -using BenchmarkDotNet.Loggers; -using SwiftlyS2.Shared.Menus; using SwiftlyS2.Shared.SteamAPI; -using SwiftlyS2.Core.Menus.OptionsBase; -using System.Collections.Concurrent; -using Dia2Lib; -using System.Reflection.Metadata; +using Tomlyn.Extensions.Configuration; namespace TestPlugin; @@ -49,8 +39,8 @@ public class InProcessConfig : ManualConfig { public InProcessConfig() { - AddLogger(ConsoleLogger.Default); - AddJob(Job.Default + _ = AddLogger(ConsoleLogger.Default); + _ = AddJob(Job.Default .WithToolchain(new InProcessNoEmitToolchain(true)) .WithId("InProcess")); } @@ -75,7 +65,7 @@ public TestPlugin( ISwiftlyCore core ) : base(core) public void Test2Command( ICommandContext context ) { BenchContext.Controller = context.Sender!.RequiredController; - BenchmarkRunner.Run(new InProcessConfig()); + _ = BenchmarkRunner.Run(new InProcessConfig()); } [GameEventHandler(HookMode.Pre)] @@ -144,23 +134,23 @@ public override void Load( bool hotReload ) Console.WriteLine($"pong: {buffer}"); }); - Core.GameEvent.HookPre(@event => + _ = Core.GameEvent.HookPre(@event => { @event.LocToken = "test"; return HookResult.Continue; }); - Core.Configuration + _ = Core.Configuration .InitializeJsonWithModel("test.jsonc", "Main") .Configure(( builder ) => { - builder.AddJsonFile("test.jsonc", optional: false, reloadOnChange: true); - builder.AddTomlFile("test.toml", optional: true, reloadOnChange: true); + _ = builder.AddJsonFile("test.jsonc", optional: false, reloadOnChange: true); + _ = builder.AddTomlFile("test.toml", optional: true, reloadOnChange: true); }); ServiceCollection services = new(); - services + _ = services .AddSwiftly(Core); Core.Event.OnPrecacheResource += ( @event ) => @@ -203,7 +193,7 @@ public override void Load( bool hotReload ) // Core. - int i = 0; + var i = 0; // var token2 = Core.Scheduler.Repeat(10, () => { // Console.WriteLine(Core.Engine.TickCount); @@ -245,9 +235,20 @@ public override void Load( bool hotReload ) { Console.WriteLine("TestPlugin OnClientDisconnected " + @event.PlayerId); }; + + var convar = Core.ConVar.Find("sv_cs_player_speed_has_hostage"); Core.Event.OnTick += () => { - int i = 0; + var players = Core.PlayerManager.GetAllPlayers(); + foreach (var player in players) + { + Core.Profiler.StartRecording("OnTick Send 1024 sv_cs_player_speed_has_hostage convar at player"); + for (var i = 0; i < 1024; i++) + { + convar!.ReplicateToClient(player.PlayerID, (float)Random.Shared.NextDouble()); + } + Core.Profiler.StopRecording("OnTick Send 1024 sv_cs_player_speed_has_hostage convar at player"); + } }; // Core.Event.OnClientProcessUsercmds += (@event) => { @@ -289,8 +290,8 @@ public override void Load( bool hotReload ) Console.WriteLine($"2"); } - CEntityKeyValues kv { get; set; } - CEntityInstance entity { get; set; } + private CEntityKeyValues kv { get; set; } + private CEntityInstance entity { get; set; } [Command("tt")] public void TestCommand( ICommandContext context ) @@ -307,7 +308,7 @@ public void TestCommand( ICommandContext context ) // entity.DispatchSpawn(kv); // Console.WriteLine("Spawned entity with keyvalues"); - int j = 0; + var j = 0; var cvar = Core.ConVar.Find("sv_cheats")!; Console.WriteLine(cvar); @@ -316,7 +317,7 @@ public void TestCommand( ICommandContext context ) Console.WriteLine(cvar2); Console.WriteLine(cvar2.Value); - var cvar3 = Core.ConVar.Create("sw_test_cvar", "Test cvar", "ABCDEFG"); + var cvar3 = Core.ConVar.Create("sw_test_cvar", "Test cvar", "ABCDEFG"); Console.WriteLine(cvar3); Console.WriteLine(cvar3.Value); @@ -333,17 +334,17 @@ public void TestCommand( ICommandContext context ) [Command("w")] public void TestCommand1( ICommandContext context ) { - var ret = SteamGameServerUGC.DownloadItem(new PublishedFileId_t(3596198331), true); + _ = SteamGameServerUGC.DownloadItem(new PublishedFileId_t(3596198331), true); Console.WriteLine(SteamGameServer.GetPublicIP().ToIPAddress()); } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - delegate nint DispatchSpawnDelegate( nint pEntity, nint pKV ); - int order = 0; + private delegate nint DispatchSpawnDelegate( nint pEntity, nint pKV ); + private int order = 0; - IUnmanagedFunction? _dispatchspawn; + private readonly IUnmanagedFunction? _dispatchspawn; [Command("h1")] public void TestCommand2( ICommandContext context ) @@ -365,7 +366,7 @@ public void TestCommand2( ICommandContext context ) }; }); - _dispatchspawn.AddHook(( next ) => + _ = _dispatchspawn.AddHook(( next ) => { return ( pEntity, pKV ) => { @@ -383,7 +384,7 @@ public void OnEntityCreated( IOnEntityCreatedEvent @event ) Console.WriteLine("TestPlugin OnEntityCreated222 " + @event.Entity.Entity?.DesignerName); } - Guid _hookId = Guid.Empty; + private readonly Guid _hookId = Guid.Empty; [Command("bad")] public void TestCommandBad( ICommandContext context ) diff --git a/managed/src/TestPlugin/TestService.cs b/managed/src/TestPlugin/TestService.cs index 1630ce4f8..496f8d4b1 100644 --- a/managed/src/TestPlugin/TestService.cs +++ b/managed/src/TestPlugin/TestService.cs @@ -2,9 +2,7 @@ using Microsoft.Extensions.Options; using SwiftlyS2.Shared; using SwiftlyS2.Shared.Commands; -using SwiftlyS2.Shared.Players; using SwiftlyS2.Shared.ProtobufDefinitions; -using SwiftlyS2.Shared.SchemaDefinitions; namespace TestPlugin; diff --git a/natives/engine/events.native b/natives/engine/events.native index df445393c..320722b9a 100644 --- a/natives/engine/events.native +++ b/natives/engine/events.native @@ -15,4 +15,5 @@ void RegisterOnEntitySpawnedCallback = ptr callback // CEntityInstance* entity void RegisterOnMapLoadCallback = ptr callback // string mapname void RegisterOnMapUnloadCallback = ptr callback // string mapname void RegisterOnEntityTakeDamageCallback = ptr callback // CBaseEntity* entity, CTakeDamageInfo* info -> bool (true -> ignored, false -> supercede) -void RegisterOnPrecacheResourceCallback = ptr callback // IEntityResourceManifest* pResourceManifest \ No newline at end of file +void RegisterOnPrecacheResourceCallback = ptr callback // IEntityResourceManifest* pResourceManifest +void RegisterOnPreworldUpdateCallback = ptr callback // bool simulating \ No newline at end of file diff --git a/natives/engine/helpers.native b/natives/engine/helpers.native index 296a4fcf5..06a054640 100644 --- a/natives/engine/helpers.native +++ b/natives/engine/helpers.native @@ -11,4 +11,5 @@ string GetNativeVersion = void string GetMenuSettings = void ptr GetGlobalVars = void string GetCSGODirectoryPath = void -string GetGameDirectoryPath = void \ No newline at end of file +string GetGameDirectoryPath = void +string GetWorkshopId = void \ No newline at end of file diff --git a/plugin_files/gamedata/cs2/core/offsets.jsonc b/plugin_files/gamedata/cs2/core/offsets.jsonc index 1a22868b4..40426a3e0 100644 --- a/plugin_files/gamedata/cs2/core/offsets.jsonc +++ b/plugin_files/gamedata/cs2/core/offsets.jsonc @@ -82,6 +82,10 @@ "windows": 25, "linux": 26 }, + "CPlayer_MovementServices::RunCommand": { + "windows": 20, + "linux": 21 + }, /* From sdk */ "ICvar::FindConCommand": { "windows": 17, @@ -92,6 +96,10 @@ "linux": 20 }, /* From sdk */ + "IServerGameDLL::PreWorldUpdate": { + "windows": 15, + "linux": 15 + }, "IServerGameDLL::GameFrame": { "windows": 19, "linux": 19 diff --git a/src/engine/convars/convars.cpp b/src/engine/convars/convars.cpp index a78c9a694..817323d87 100644 --- a/src/engine/convars/convars.cpp +++ b/src/engine/convars/convars.cpp @@ -75,6 +75,7 @@ uint64_t g_uCreatedConCommandId = 0; IVFunctionHook* g_pProcessRespondCvarValueHook = nullptr; extern INetworkMessages* networkMessages; +extern bool bypassPostEventAbstractHook; class CConvarListener : public IConVarListener { @@ -155,9 +156,13 @@ void CConvarManager::QueryClientConvar(int playerid, std::string cvar_name) msg->set_cvar_name(cvar_name); + bypassPostEventAbstractHook = true; + CSingleRecipientFilter filter(playerid); gameEventSystem->PostEventAbstract(-1, false, &filter, netmsg, msg, 0); + bypassPostEventAbstractHook = false; + // see at the end of the file the comment for this one too delete msg; } @@ -501,16 +506,20 @@ void CConvarManager::SetClientConvar(int playerid, const std::string& cvar_name, { static auto gameEventSystem = g_ifaceService.FetchInterface(GAMEEVENTSYSTEM_INTERFACE_VERSION); - const auto netmsg = networkMessages->FindNetworkMessagePartial("SetConVar"); + const auto netmsg = networkMessages->FindNetworkMessageById(6); auto msg = netmsg->AllocateMessage()->ToPB(); CMsg_CVars_CVar* cvar = msg->mutable_convars()->add_cvars(); cvar->set_name(cvar_name); cvar->set_value(value); + bypassPostEventAbstractHook = true; + CSingleRecipientFilter filter(playerid); gameEventSystem->PostEventAbstract(-1, false, &filter, netmsg, msg, 0); + bypassPostEventAbstractHook = false; + /* Finally it's been fixed, i've had this problem since a year ago, glad that it's fixed and i didn't need to use deamberd with it's "const const const" feature diff --git a/src/engine/gameevents/gameevents.cpp b/src/engine/gameevents/gameevents.cpp index 8b73aaedf..cb9b378df 100644 --- a/src/engine/gameevents/gameevents.cpp +++ b/src/engine/gameevents/gameevents.cpp @@ -62,6 +62,9 @@ int g_uLoadEventFromFileHookID = 0; IGameEventManager2* g_gameEventManager = nullptr; IVFunctionHook* g_GameFrameHookEventManager = nullptr; +IVFunctionHook* g_PreworldUpdateHook = nullptr; +void PreworldUpdateHook(void* _this, bool simulate); + IVFunctionHook* g_pStartupServerEventHook = nullptr; void StartupServerEventHook(void* _this, const GameSessionConfiguration_t& config, ISource2WorldSession* a, const char* b); @@ -104,6 +107,10 @@ void CEventManager::Initialize(std::string game_name) g_GameFrameHookEventManager->SetHookFunction(servervtable, gamedata->GetOffsets()->Fetch("IServerGameDLL::GameFrame"), reinterpret_cast(GameFrameEventManager), true); g_GameFrameHookEventManager->Enable(); + g_PreworldUpdateHook = hooksmanager->CreateVFunctionHook(); + g_PreworldUpdateHook->SetHookFunction(servervtable, gamedata->GetOffsets()->Fetch("IServerGameDLL::PreWorldUpdate"), reinterpret_cast(PreworldUpdateHook), true); + g_PreworldUpdateHook->Enable(); + RegisterGameEventListener("round_start"); AddGameEventFireListener([](std::string event_name, IGameEvent* event, bool& dont_broadcast) -> int { if (event_name == "round_start") { @@ -147,6 +154,16 @@ void CEventManager::Shutdown() } } +extern void* g_pOnPreworldUpdateCallback; + +void PreworldUpdateHook(void* _this, bool simulate) +{ + reinterpret_cast(g_PreworldUpdateHook->GetOriginal())(_this, simulate); + + if(g_pOnPreworldUpdateCallback) + reinterpret_cast(g_pOnPreworldUpdateCallback)(simulate); +} + void GameFrameEventManager(void* _this, bool simulate, bool first, bool last) { reinterpret_cast(g_GameFrameHookEventManager->GetOriginal())(_this, simulate, first, last); diff --git a/src/network/netmessages/netmessages.cpp b/src/network/netmessages/netmessages.cpp index e7c7189fe..b08103237 100644 --- a/src/network/netmessages/netmessages.cpp +++ b/src/network/netmessages/netmessages.cpp @@ -33,9 +33,11 @@ std::map> g_mClientMessageSendCall IFunctionHook* g_pFilterMessageHook = nullptr; IVFunctionHook* g_pPostEventAbstractHook = nullptr; +bool bypassPostEventAbstractHook = false; + bool FilterMessage(INetworkMessageProcessingPreFilterCustom* client, CNetMessage* cMsg, INetChannel* netchan); void PostEventAbstractHook(void* _this, CSplitScreenSlot nSlot, bool bLocalOnly, int nClientCount, const uint64* clients, - INetworkMessageInternal* pEvent, const CNetMessage* pData, unsigned long nSize, NetChannelBufType_t bufType); + INetworkMessageInternal* pEvent, const CNetMessage* pData, unsigned long nSize, NetChannelBufType_t bufType); void CNetMessages::Initialize() { @@ -83,6 +85,8 @@ bool FilterMessage(INetworkMessageProcessingPreFilterCustom* client, CNetMessage void PostEventAbstractHook(void* _this, CSplitScreenSlot nSlot, bool bLocalOnly, int nClientCount, const uint64* clients, INetworkMessageInternal* pEvent, const CNetMessage* pData, unsigned long nSize, NetChannelBufType_t bufType) { + if (bypassPostEventAbstractHook) return reinterpret_cast(g_pPostEventAbstractHook->GetOriginal())(_this, nSlot, bLocalOnly, nClientCount, clients, pEvent, pData, nSize, bufType); + int msgid = pEvent->GetNetMessageInfo()->m_MessageId; CNetMessage* msg = const_cast(pData); uint64_t* playermask = (uint64_t*)(clients); diff --git a/src/network/sounds/soundevent.cpp b/src/network/sounds/soundevent.cpp index ccf8bad07..1fe2aa7a1 100644 --- a/src/network/sounds/soundevent.cpp +++ b/src/network/sounds/soundevent.cpp @@ -50,6 +50,8 @@ void insert(std::vector& vec, const void* value, uint8_t size) { } } +extern bool bypassPostEventAbstractHook; + uint32_t CSoundEvent::Emit() { // packed_param serialization @@ -87,8 +89,12 @@ uint32_t CSoundEvent::Emit() data->set_seed(guid); data->set_packed_params(std::string(buffer.begin(), buffer.end())); + bypassPostEventAbstractHook = true; + gameEventSystem->PostEventAbstract(-1, false, &m_fClients, pNetMsg, data, 0); + bypassPostEventAbstractHook = false; + delete data; return guid; diff --git a/src/scripting/engine/enginehelpers.cpp b/src/scripting/engine/enginehelpers.cpp index a33a0b17d..5b6eb0cee 100644 --- a/src/scripting/engine/enginehelpers.cpp +++ b/src/scripting/engine/enginehelpers.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -53,7 +54,7 @@ bool Bridge_EngineHelpers_IsMapValid(const char* map_name) engine->IsMapValid(map_name) || Files::ExistsPath(fmt::format("{}steamapps/workshop/content/730/{}/{}.vpk", s_sWorkingDir.Get(), map_name, map_name)) || Files::ExistsPath(fmt::format("{}steamapps/workshop/content/730/{}/{}_dir.vpk", s_sWorkingDir.Get(), map_name, map_name)) - ); + ); } void Bridge_EngineHelpers_ExecuteCommand(const char* command) @@ -182,6 +183,21 @@ int Bridge_EngineHelpers_GetIP(char* out) return s.size(); } +int Bridge_EngineHelpers_GetWorkshopId(char* out) +{ + auto networkServerService = g_ifaceService.FetchInterface(NETWORKSERVERSERVICE_INTERFACE_VERSION); + if (!networkServerService) return 0; + + auto server = networkServerService->GetIGameServer(); + if (!server) return 0; + + std::string addonId = server->GetAddonName(); + + if (out != nullptr) strcpy(out, addonId.c_str()); + + return addonId.size(); +} + DEFINE_NATIVE("EngineHelpers.GetIP", Bridge_EngineHelpers_GetIP); DEFINE_NATIVE("EngineHelpers.IsMapValid", Bridge_EngineHelpers_IsMapValid); DEFINE_NATIVE("EngineHelpers.ExecuteCommand", Bridge_EngineHelpers_ExecuteCommand); @@ -193,4 +209,5 @@ DEFINE_NATIVE("EngineHelpers.GetNativeVersion", Bridge_EngineHelpers_GetNativeVe DEFINE_NATIVE("EngineHelpers.GetMenuSettings", Bridge_EngineHelpers_GetMenuSettings); DEFINE_NATIVE("EngineHelpers.GetGlobalVars", Bridge_EngineHelpers_GetGlobalVars); DEFINE_NATIVE("EngineHelpers.GetCSGODirectoryPath", Bridge_EngineHelpers_GetCSGODirectoryPath); -DEFINE_NATIVE("EngineHelpers.GetGameDirectoryPath", Bridge_EngineHelpers_GetGameDirectoryPath); \ No newline at end of file +DEFINE_NATIVE("EngineHelpers.GetGameDirectoryPath", Bridge_EngineHelpers_GetGameDirectoryPath); +DEFINE_NATIVE("EngineHelpers.GetWorkshopId", Bridge_EngineHelpers_GetWorkshopId); \ No newline at end of file diff --git a/src/scripting/engine/events.cpp b/src/scripting/engine/events.cpp index 1974f6798..ef68f5a60 100644 --- a/src/scripting/engine/events.cpp +++ b/src/scripting/engine/events.cpp @@ -35,6 +35,7 @@ void* g_pOnMapLoadCallback = nullptr; void* g_pOnMapUnloadCallback = nullptr; void* g_pOnEntityTakeDamageCallback = nullptr; void* g_pOnPrecacheResourceCallback = nullptr; +void* g_pOnPreworldUpdateCallback = nullptr; void Bridge_Events_RegisterOnGameTickCallback(void* callback) { @@ -116,6 +117,11 @@ void Bridge_Events_RegisterOnPrecacheResourceCallback(void* callback) g_pOnPrecacheResourceCallback = callback; } +void Bridge_Events_RegisterOnPreworldUpdateCallback(void* callback) +{ + g_pOnPreworldUpdateCallback = callback; +} + DEFINE_NATIVE("Events.RegisterOnGameTickCallback", Bridge_Events_RegisterOnGameTickCallback); DEFINE_NATIVE("Events.RegisterOnClientConnectCallback", Bridge_Events_RegisterOnClientConnectCallback); DEFINE_NATIVE("Events.RegisterOnClientDisconnectCallback", Bridge_Events_RegisterOnClientDisconnectCallback); @@ -131,4 +137,5 @@ DEFINE_NATIVE("Events.RegisterOnEntitySpawnedCallback", Bridge_Events_RegisterOn DEFINE_NATIVE("Events.RegisterOnMapLoadCallback", Bridge_Events_RegisterOnMapLoadCallback); DEFINE_NATIVE("Events.RegisterOnMapUnloadCallback", Bridge_Events_RegisterOnMapUnloadCallback); DEFINE_NATIVE("Events.RegisterOnEntityTakeDamageCallback", Bridge_Events_RegisterOnEntityTakeDamageCallback); -DEFINE_NATIVE("Events.RegisterOnPrecacheResourceCallback", Bridge_Events_RegisterOnPrecacheResourceCallback); \ No newline at end of file +DEFINE_NATIVE("Events.RegisterOnPrecacheResourceCallback", Bridge_Events_RegisterOnPrecacheResourceCallback); +DEFINE_NATIVE("Events.RegisterOnPreworldUpdateCallback", Bridge_Events_RegisterOnPreworldUpdateCallback); \ No newline at end of file diff --git a/src/scripting/network/netmessages.cpp b/src/scripting/network/netmessages.cpp index c909232f8..c3b058a85 100644 --- a/src/scripting/network/netmessages.cpp +++ b/src/scripting/network/netmessages.cpp @@ -904,6 +904,8 @@ void Bridge_NetMessages_ClearRepeatedField(void* pmsg, const char* fieldName) msg->GetReflection()->ClearField(msg, field); } +extern bool bypassPostEventAbstractHook; + void Bridge_NetMessages_SendMessage(void* pmsg, int msgid, int playerid) { CNetMessagePB* msg = (CNetMessagePB*)pmsg; @@ -913,8 +915,12 @@ void Bridge_NetMessages_SendMessage(void* pmsg, int msgid, int playerid) auto netmsg = networkMessages->FindNetworkMessageById(msgid); if (!netmsg) return; + bypassPostEventAbstractHook = true; + CSingleRecipientFilter filter(playerid); gameEventSystem->PostEventAbstract(-1, false, &filter, netmsg, msg, 0); + + bypassPostEventAbstractHook = false; } void Bridge_NetMessages_SendMessageToPlayers(void* pmsg, int msgid, uint64_t playermask) @@ -926,12 +932,18 @@ void Bridge_NetMessages_SendMessageToPlayers(void* pmsg, int msgid, uint64_t pla auto netmsg = networkMessages->FindNetworkMessageById(msgid); if (!netmsg) return; + bypassPostEventAbstractHook = true; + CRecipientFilter filter; - for (int i = 0; i < 64; i++) - if (playermask & (1ULL << i)) - filter.AddRecipient(i); + auto& recipients = filter.GetRecipients(); + + // because recipients are only 64, we can cast the base array pointer from being base[0] and base[1], + // each having 4 bytes, to a single base with 8 bytes + *(uint64_t*)(recipients.Base()) = playermask; gameEventSystem->PostEventAbstract(-1, false, &filter, netmsg, msg, 0); + + bypassPostEventAbstractHook = false; } uint64_t Bridge_NetMessages_AddNetMessageServerHook(void* callback_ptr) @@ -940,7 +952,7 @@ uint64_t Bridge_NetMessages_AddNetMessageServerHook(void* callback_ptr) return netmessages->AddServerMessageSendCallback([callback_ptr](uint64_t* clients, int messageid, void* msg) { return ((int(*)(uint64_t*, int, void*))callback_ptr)(clients, messageid, msg); - }); + }); } void Bridge_NetMessages_RemoveNetMessageServerHook(uint64_t callbackID) @@ -955,7 +967,7 @@ uint64_t Bridge_NetMessages_AddNetMessageClientHook(void* callback_ptr) return netmessages->AddClientMessageSendCallback([callback_ptr](int playerid, int messageid, void* msg) { return ((int(*)(int, int, void*))callback_ptr)(playerid, messageid, msg); - }); + }); } void Bridge_NetMessages_RemoveNetMessageClientHook(uint64_t callbackID) diff --git a/src/scripting/server/player.cpp b/src/scripting/server/player.cpp index 1a273c38a..f6d16a94a 100644 --- a/src/scripting/server/player.cpp +++ b/src/scripting/server/player.cpp @@ -25,7 +25,8 @@ void Bridge_Player_SendMessage(int playerid, int kind, const char* message, int { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return; + if (!player) + return; player->SendMsg((MessageType)kind, message, duration); } @@ -34,7 +35,8 @@ bool Bridge_Player_IsFakeClient(int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return true; + if (!player) + return true; return player->IsFakeClient(); } @@ -43,7 +45,8 @@ bool Bridge_Player_IsAuthorized(int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return false; + if (!player) + return false; return player->IsAuthorized(); } @@ -52,7 +55,8 @@ uint32_t Bridge_Player_GetConnectedTime(int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return 0; + if (!player) + return 0; return player->GetConnectedTime(); } @@ -61,7 +65,8 @@ uint64_t Bridge_Player_GetUnauthorizedSteamID(int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return 0; + if (!player) + return 0; return player->GetUnauthorizedSteamID(); } @@ -70,7 +75,8 @@ uint64_t Bridge_Player_GetSteamID(int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return 0; + if (!player) + return 0; return player->GetSteamID(); } @@ -79,7 +85,8 @@ void* Bridge_Player_GetController(int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return nullptr; + if (!player) + return nullptr; return player->GetController(); } @@ -88,7 +95,8 @@ void* Bridge_Player_GetPawn(int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return nullptr; + if (!player) + return nullptr; return player->GetPawn(); } @@ -97,7 +105,8 @@ void* Bridge_Player_GetPlayerPawn(int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return nullptr; + if (!player) + return nullptr; return player->GetPlayerPawn(); } @@ -106,7 +115,8 @@ uint64_t Bridge_Player_GetPressedButtons(int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return 0; + if (!player) + return 0; return player->GetPressedButtons(); } @@ -115,7 +125,8 @@ void Bridge_Player_PerformCommand(int playerid, const char* command) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return; + if (!player) + return; player->PerformCommand(command); } @@ -124,12 +135,14 @@ int Bridge_Player_GetIPAddress(char* out, int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return 0; + if (!player) + return 0; static std::string s; s = player->GetIPAddress(); - if (out != nullptr) strcpy(out, s.c_str()); + if (out != nullptr) + strcpy(out, s.c_str()); return s.size(); } @@ -138,40 +151,49 @@ void Bridge_Player_Kick(int playerid, const char* reason, int gamereason) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return; + if (!player) + return; player->Kick(reason, gamereason); } void Bridge_Player_ShouldBlockTransmitEntity(int playerid, int entityidx, bool shouldBlockTransmit) { - if (playerid + 1 == entityidx) return; + if (playerid + 1 == entityidx) + return; static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return; + if (!player) + return; auto& bv = player->GetBlockedTransmittingBits(); auto dword = entityidx / 64; - if (shouldBlockTransmit) { + if (shouldBlockTransmit) + { bool wasEmpty = (bv.blockedMask[dword] == 0); bv.blockedMask[dword] |= (1 << (entityidx % 64)); - if (wasEmpty) bv.activeMasks.push_back(dword); + if (wasEmpty) + bv.activeMasks.push_back(dword); } - else { + else + { bv.blockedMask[dword] &= ~(1 << (entityidx % 64)); - if (bv.blockedMask[dword] == 0) bv.activeMasks.erase(std::find(bv.activeMasks.begin(), bv.activeMasks.end(), dword)); + if (bv.blockedMask[dword] == 0) + bv.activeMasks.erase(std::find(bv.activeMasks.begin(), bv.activeMasks.end(), dword)); } } bool Bridge_Player_IsTransmitEntityBlocked(int playerid, int entityidx) { - if (playerid + 1 == entityidx) return false; + if (playerid + 1 == entityidx) + return false; static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return false; + if (!player) + return false; auto& bv = player->GetBlockedTransmittingBits(); return (bv.blockedMask[entityidx / 64] & (1 << (entityidx % 64))) != 0; @@ -181,10 +203,12 @@ void Bridge_Player_ClearTransmitEntityBlocked(int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return; + if (!player) + return; auto& bv = player->GetBlockedTransmittingBits(); - for (int i = 0; i < 512; i++) bv.blockedMask[i] = 0; + for (int i = 0; i < 512; i++) + bv.blockedMask[i] = 0; bv.activeMasks.clear(); } @@ -192,7 +216,8 @@ void Bridge_Player_ChangeTeam(int playerid, int newteam) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return; + if (!player) + return; static auto gamedata = g_ifaceService.FetchInterface(GAMEDATA_INTERFACE_VERSION); CALL_VIRTUAL(void, gamedata->GetOffsets()->Fetch("CCSPlayerController::ChangeTeam"), player->GetController(), newteam); @@ -202,30 +227,33 @@ void Bridge_Player_SwitchTeam(int playerid, int newteam) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return; + if (!player) + return; static auto gamedata = g_ifaceService.FetchInterface(GAMEDATA_INTERFACE_VERSION); if (newteam == 0 || newteam == 1) CALL_VIRTUAL(void, gamedata->GetOffsets()->Fetch("CCSPlayerController::ChangeTeam"), player->GetController(), newteam); else - reinterpret_cast(gamedata->GetSignatures()->Fetch("CCSPlayerController::SwitchTeam"))(player->GetController(), newteam); + reinterpret_cast(gamedata->GetSignatures()->Fetch("CCSPlayerController::SwitchTeam"))(player->GetController(), newteam); } void Bridge_Player_TakeDamage(int playerid, void* dmginfo) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return; + if (!player) + return; static auto gamedata = g_ifaceService.FetchInterface(GAMEDATA_INTERFACE_VERSION); - reinterpret_cast(gamedata->GetSignatures()->Fetch("CBaseEntity::TakeDamage"))(player->GetPawn(), dmginfo, 0); + reinterpret_cast(gamedata->GetSignatures()->Fetch("CBaseEntity::TakeDamage"))(player->GetPawn(), dmginfo, 0); } void Bridge_Player_Teleport(int playerid, Vector pos, QAngle angle, Vector vel) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return; + if (!player) + return; static auto gamedata = g_ifaceService.FetchInterface(GAMEDATA_INTERFACE_VERSION); CALL_VIRTUAL(void, gamedata->GetOffsets()->Fetch("CBaseEntity::Teleport"), player->GetPawn(), &pos, &angle, &vel); @@ -235,12 +263,14 @@ int Bridge_Player_GetLanguage(char* out, int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return 0; + if (!player) + return 0; static std::string s; s = player->GetLanguage(); - if (out != nullptr) strcpy(out, s.c_str()); + if (out != nullptr) + strcpy(out, s.c_str()); return s.size(); } @@ -249,7 +279,8 @@ void Bridge_Player_SetCenterMenuRender(int playerid, const char* text) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return; + if (!player) + return; player->RenderMenuCenterText(text); } @@ -258,7 +289,8 @@ void Bridge_Player_ClearCenterMenuRender(int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return; + if (!player) + return; player->ClearRenderMenuCenterText(); } @@ -267,7 +299,8 @@ bool Bridge_Player_HasMenuShown(int playerid) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return false; + if (!player) + return false; return player->HasMenuShown(); } @@ -276,18 +309,21 @@ void Bridge_Player_ExecuteCommand(int playerid, const char* command) { static auto playerManager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto player = playerManager->GetPlayer(playerid); - if (!player) return; + if (!player) + return; CCommand cmd; cmd.Tokenize(command); ConCommandRef cmdRef(cmd[0]); - if (cmdRef.IsValidRef()) { + if (cmdRef.IsValidRef()) + { CCommandContext context(CommandTarget_t::CT_FIRST_SPLITSCREEN_CLIENT, CPlayerSlot(player->GetSlot())); cmdRef.Dispatch(context, cmd); } - else { + else + { static auto engine = g_ifaceService.FetchInterface(INTERFACEVERSION_VENGINESERVER); engine->ClientCommand(player->GetSlot(), command); } diff --git a/src/server/players/manager.cpp b/src/server/players/manager.cpp index 203c1fa73..f88c4b68d 100644 --- a/src/server/players/manager.cpp +++ b/src/server/players/manager.cpp @@ -60,8 +60,9 @@ void CheckTransmitHook(void* _this, CCheckTransmitInfo** ppInfoList, int infoCou void CPlayerManager::Initialize() { - g_Players = new CPlayer * [g_SwiftlyCore.GetMaxGameClients()]; - for (int i = 0; i < g_SwiftlyCore.GetMaxGameClients(); i++) { + g_Players = new CPlayer*[g_SwiftlyCore.GetMaxGameClients()]; + for (int i = 0; i < g_SwiftlyCore.GetMaxGameClients(); i++) + { g_Players[i] = nullptr; } @@ -108,9 +109,12 @@ void CPlayerManager::Initialize() g_pProcessUserCmdsHook->Enable(); } -void CPlayerManager::Shutdown() { - for (int i = 0; i < g_SwiftlyCore.GetMaxGameClients(); i++) { - if (g_Players[i] != nullptr) { +void CPlayerManager::Shutdown() +{ + for (int i = 0; i < g_SwiftlyCore.GetMaxGameClients(); i++) + { + if (g_Players[i] != nullptr) + { delete g_Players[i]; } } @@ -175,7 +179,7 @@ void OnClientPutInServerHook(void* _this, CPlayerSlot slot, char const* pszName, reinterpret_cast(g_pClientPutInServerHook->GetOriginal())(_this, slot, pszName, type, xuid); if (g_pOnClientPutInServerCallback) - reinterpret_cast(g_pOnClientPutInServerCallback)(slot.Get(), type); + reinterpret_cast(g_pOnClientPutInServerCallback)(slot.Get(), type); } extern void* g_pOnClientProcessUsercmdsCallback; @@ -184,12 +188,12 @@ void* ProcessUsercmdsHook(void* pController, CUserCmd* cmds, int numcmds, bool p { auto playerid = ((CEntityInstance*)pController)->m_pEntity->m_EHandle.GetEntryIndex() - 1; - google::protobuf::Message** pMsg = new google::protobuf::Message * [numcmds]; + google::protobuf::Message** pMsg = new google::protobuf::Message*[numcmds]; for (int i = 0; i < numcmds; i++) pMsg[i] = (google::protobuf::Message*)&cmds[i].cmd; if (g_pOnClientProcessUsercmdsCallback) - reinterpret_cast(g_pOnClientProcessUsercmdsCallback)(playerid, pMsg, numcmds, paused, margin); + reinterpret_cast(g_pOnClientProcessUsercmdsCallback)(playerid, pMsg, numcmds, paused, margin); delete[] pMsg; @@ -205,7 +209,8 @@ void CheckTransmitHook(void* _this, CCheckTransmitInfo** ppInfoList, int infoCou { auto& pInfo = ppInfoList[i]; int playerid = pInfo->m_nPlayerSlot.Get(); - if (!playermanager->IsPlayerOnline(playerid)) continue; + if (!playermanager->IsPlayerOnline(playerid)) + continue; auto player = playermanager->GetPlayer(playerid); auto& blockedBits = player->GetBlockedTransmittingBits(); @@ -215,7 +220,8 @@ void CheckTransmitHook(void* _this, CCheckTransmitInfo** ppInfoList, int infoCou auto& activeMasks = blockedBits.activeMasks; // NUM_MASKS_ACTIVE ops = NUM_MASKS_ACTIVE*64 bits -> 64 players -> NUM_MASKS_ACTIVE*64 ops - for (auto& dword : activeMasks) { + for (auto& dword : activeMasks) + { base[dword] &= ~blockedBits.blockedMask[dword]; baseAlways[dword] &= ~blockedBits.blockedMask[dword]; } @@ -229,7 +235,7 @@ void CheckTransmitHook(void* _this, CCheckTransmitInfo** ppInfoList, int infoCou // wordAlways &= ~blockedBase[i]; // } - //16k ops = 16k bits -> 64 players -> 1M ops + // 16k ops = 16k bits -> 64 players -> 1M ops /* for (int i = 0; i < 16384; i++) if (blockedBits.IsBitSet(i)) @@ -247,12 +253,15 @@ void OnGameFramePlayerHook(void* _this, bool simulate, bool first, bool last) static auto playermanager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); static auto vgui = g_ifaceService.FetchInterface(VGUI_INTERFACE_VERSION); - if (g_pOnGameTickCallback) reinterpret_cast(g_pOnGameTickCallback)(simulate, first, last); + if (g_pOnGameTickCallback) + reinterpret_cast(g_pOnGameTickCallback)(simulate, first, last); for (int i = 0; i < 64; i++) - if (playermanager->IsPlayerOnline(i)) { + if (playermanager->IsPlayerOnline(i)) + { auto player = playermanager->GetPlayer(i); - if (!player) continue; + if (!player) + continue; player->Think(); } @@ -270,7 +279,7 @@ bool ClientConnectHook(void* _this, CPlayerSlot slot, const char* pszName, uint6 player->SetUnauthorizedSteamID(xuid); if (g_pOnClientConnectCallback) - if (reinterpret_cast(g_pOnClientConnectCallback)(playerid) == false) + if (reinterpret_cast(g_pOnClientConnectCallback)(playerid) == false) return false; return reinterpret_cast(g_pClientConnectHook->GetOriginal())(_this, slot, pszName, xuid, pszNetworkID, unk1, pRejectReason); @@ -280,11 +289,13 @@ void OnClientConnectedHook(void* _this, CPlayerSlot slot, const char* pszName, u { static auto playermanager = g_ifaceService.FetchInterface(PLAYERMANAGER_INTERFACE_VERSION); auto playerid = slot.Get(); - if (bFakePlayer) { + if (bFakePlayer) + { auto player = playermanager->RegisterPlayer(playerid); player->Initialize(playerid); } - else { + else + { auto cvarmanager = g_ifaceService.FetchInterface(CONVARMANAGER_INTERFACE_VERSION); cvarmanager->QueryClientConvar(playerid, "cl_language"); } @@ -302,16 +313,18 @@ void ClientDisconnectHook(void* _this, CPlayerSlot slot, int reason, const char* auto playerid = slot.Get(); if (g_pOnClientDisconnectCallback) - reinterpret_cast(g_pOnClientDisconnectCallback)(playerid, reason); + reinterpret_cast(g_pOnClientDisconnectCallback)(playerid, reason); playermanager->UnregisterPlayer(playerid); } IPlayer* CPlayerManager::RegisterPlayer(int playerid) { - if (playerid < 0 || playerid >= g_SwiftlyCore.GetMaxGameClients()) return nullptr; + if (playerid < 0 || playerid >= g_SwiftlyCore.GetMaxGameClients()) + return nullptr; - if (g_Players[playerid] != nullptr) UnregisterPlayer(playerid); + if (g_Players[playerid] != nullptr) + UnregisterPlayer(playerid); g_Players[playerid] = new CPlayer(); g_Players[playerid]->Initialize(playerid); @@ -321,8 +334,10 @@ IPlayer* CPlayerManager::RegisterPlayer(int playerid) void CPlayerManager::UnregisterPlayer(int playerid) { - if (playerid < 0 || playerid >= g_SwiftlyCore.GetMaxGameClients()) return; - if (g_Players[playerid] == nullptr) return; + if (playerid < 0 || playerid >= g_SwiftlyCore.GetMaxGameClients()) + return; + if (g_Players[playerid] == nullptr) + return; static auto vgui = g_ifaceService.FetchInterface(VGUI_INTERFACE_VERSION); @@ -335,14 +350,17 @@ void CPlayerManager::UnregisterPlayer(int playerid) IPlayer* CPlayerManager::GetPlayer(int playerid) { - if (playerid < 0 || playerid >= g_SwiftlyCore.GetMaxGameClients()) return nullptr; - if (IsPlayerOnline(playerid)) return g_Players[playerid]; - return nullptr; + if (!IsPlayerOnline(playerid)) + return nullptr; + + auto player = g_Players[playerid]; + return player && *(void***)player ? player : nullptr; } bool CPlayerManager::IsPlayerOnline(int playerid) { - if (playerid < 0 || playerid >= g_SwiftlyCore.GetMaxGameClients()) return false; + if (playerid < 0 || playerid >= g_SwiftlyCore.GetMaxGameClients()) + return false; static auto engine = g_ifaceService.FetchInterface(INTERFACEVERSION_VENGINESERVER); return (engine->GetClientSteamID(playerid) != nullptr); } @@ -353,7 +371,8 @@ int CPlayerManager::GetPlayerCount() int count = 0; for (int i = 0; i < GetPlayerCap(); i++) - if (engine->GetClientSteamID(i)) ++count; + if (engine->GetClientSteamID(i)) + ++count; return count; } @@ -365,9 +384,11 @@ int CPlayerManager::GetPlayerCap() void CPlayerManager::SendMsg(MessageType type, const std::string& message, int duration) { - for (int i = 0; i < g_SwiftlyCore.GetMaxGameClients(); i++) { + for (int i = 0; i < g_SwiftlyCore.GetMaxGameClients(); i++) + { IPlayer* player = GetPlayer(i); - if (player) player->SendMsg(type, message, duration); + if (player) + player->SendMsg(type, message, duration); } } @@ -380,10 +401,13 @@ void CPlayerManager::OnValidateAuthTicket(ValidateAuthTicketResponse_t* response { uint64_t steamid = response->m_SteamID.ConvertToUint64(); - for (int i = 0; i < GetPlayerCap(); i++) { + for (int i = 0; i < GetPlayerCap(); i++) + { auto player = GetPlayer(i); - if (!player) continue; - if (player->GetUnauthorizedSteamID() != steamid) continue; + if (!player) + continue; + if (player->GetUnauthorizedSteamID() != steamid) + continue; player->ChangeAuthorizationState(response->m_eAuthSessionResponse == k_EAuthSessionResponseOK); break; diff --git a/src/server/players/player.cpp b/src/server/players/player.cpp index 80361cbfc..2fc24179b 100644 --- a/src/server/players/player.cpp +++ b/src/server/players/player.cpp @@ -127,6 +127,7 @@ void CPlayer::Shutdown() } extern INetworkMessages* networkMessages; +extern bool bypassPostEventAbstractHook; void CPlayer::SendMsg(MessageType type, const std::string& message, int duration = 5000) { @@ -170,9 +171,13 @@ void CPlayer::SendMsg(MessageType type, const std::string& message, int duration pmsg->set_dest((int)type); pmsg->add_param(msg); + bypassPostEventAbstractHook = true; + CSingleRecipientFilter filter(m_iPlayerId); gameEventSystem->PostEventAbstract(-1, false, &filter, netmsg, pmsg, 0); + bypassPostEventAbstractHook = false; + // see in src/engine/convars/convars.cpp at the end of the file why i "love" this now delete pmsg; }