-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update server individualItemDrop_Final.xml using GMS2 individualItemD…
…rop_*.xml (#3) * Update individualItemDrop_Final.xml * project * project * format * fix: remove grade 0 * fix: min/max count * Update GMS2.To.KMS2.csproj * Create MS2Create.exe * add actions * Release action * Update Program.cs * update parser package
- Loading branch information
1 parent
6d92517
commit 865aaa0
Showing
12 changed files
with
162,174 additions
and
54,741 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
|
||
[*] | ||
charset = utf-8-bom | ||
end_of_line = crlf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.yml] | ||
indent_size = 2 | ||
|
||
[*.cs] | ||
csharp_new_line_before_open_brace = none | ||
|
||
# Microsoft .NET properties | ||
csharp_new_line_before_catch = false | ||
csharp_new_line_before_else = false | ||
csharp_new_line_before_finally = false | ||
csharp_new_line_before_open_brace = none | ||
csharp_new_line_between_query_expression_clauses = false | ||
csharp_preferred_modifier_order = protected, public, override, private, new, internal, static, async, virtual, sealed, abstract, extern, unsafe, volatile, readonly, required:suggestion | ||
csharp_space_after_cast = true | ||
csharp_style_prefer_utf8_string_literals = true:suggestion | ||
csharp_style_var_elsewhere = false:none | ||
csharp_style_var_for_built_in_types = false:suggestion | ||
dotnet_naming_rule.constants_rule.import_to_resharper = as_predefined | ||
dotnet_naming_rule.constants_rule.severity = warning | ||
dotnet_naming_rule.constants_rule.style = all_upper_style | ||
dotnet_naming_rule.constants_rule.symbols = constants_symbols | ||
dotnet_naming_rule.private_constants_rule.import_to_resharper = as_predefined | ||
dotnet_naming_rule.private_constants_rule.severity = warning | ||
dotnet_naming_rule.private_constants_rule.style = upper_camel_case_style | ||
dotnet_naming_rule.private_constants_rule.symbols = private_constants_symbols | ||
dotnet_naming_rule.private_instance_fields_rule.import_to_resharper = as_predefined | ||
dotnet_naming_rule.private_instance_fields_rule.severity = warning | ||
dotnet_naming_rule.private_instance_fields_rule.style = lower_camel_case_style | ||
dotnet_naming_rule.private_instance_fields_rule.symbols = private_instance_fields_symbols | ||
dotnet_naming_rule.private_static_fields_rule.import_to_resharper = as_predefined | ||
dotnet_naming_rule.private_static_fields_rule.severity = warning | ||
dotnet_naming_rule.private_static_fields_rule.style = lower_camel_case_style_1 | ||
dotnet_naming_rule.private_static_fields_rule.symbols = private_static_fields_symbols | ||
dotnet_naming_rule.private_static_readonly_rule.import_to_resharper = as_predefined | ||
dotnet_naming_rule.private_static_readonly_rule.severity = warning | ||
dotnet_naming_rule.private_static_readonly_rule.style = upper_camel_case_style | ||
dotnet_naming_rule.private_static_readonly_rule.symbols = private_static_readonly_symbols | ||
dotnet_naming_rule.unity_serialized_field_rule.import_to_resharper = True | ||
dotnet_naming_rule.unity_serialized_field_rule.resharper_description = Unity serialized field | ||
dotnet_naming_rule.unity_serialized_field_rule.resharper_guid = 5f0fdb63-c892-4d2c-9324-15c80b22a7ef | ||
dotnet_naming_rule.unity_serialized_field_rule.severity = warning | ||
dotnet_naming_rule.unity_serialized_field_rule.style = lower_camel_case_style | ||
dotnet_naming_rule.unity_serialized_field_rule.symbols = unity_serialized_field_symbols | ||
dotnet_naming_style.all_upper_style.capitalization = all_upper | ||
dotnet_naming_style.all_upper_style.word_separator = _ | ||
dotnet_naming_style.lower_camel_case_style.capitalization = camel_case | ||
dotnet_naming_style.lower_camel_case_style_1.capitalization = camel_case | ||
dotnet_naming_style.lower_camel_case_style_1.required_prefix = _ | ||
dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case | ||
dotnet_naming_symbols.constants_symbols.applicable_accessibilities = public,internal,protected,protected_internal,private_protected | ||
dotnet_naming_symbols.constants_symbols.applicable_kinds = field | ||
dotnet_naming_symbols.constants_symbols.required_modifiers = const | ||
dotnet_naming_symbols.private_constants_symbols.applicable_accessibilities = private | ||
dotnet_naming_symbols.private_constants_symbols.applicable_kinds = field | ||
dotnet_naming_symbols.private_constants_symbols.required_modifiers = const | ||
dotnet_naming_symbols.private_instance_fields_symbols.applicable_accessibilities = private | ||
dotnet_naming_symbols.private_instance_fields_symbols.applicable_kinds = field | ||
dotnet_naming_symbols.private_static_fields_symbols.applicable_accessibilities = private | ||
dotnet_naming_symbols.private_static_fields_symbols.applicable_kinds = field | ||
dotnet_naming_symbols.private_static_fields_symbols.required_modifiers = static | ||
dotnet_naming_symbols.private_static_readonly_symbols.applicable_accessibilities = private | ||
dotnet_naming_symbols.private_static_readonly_symbols.applicable_kinds = field | ||
dotnet_naming_symbols.private_static_readonly_symbols.required_modifiers = static,readonly | ||
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_accessibilities = * | ||
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_kinds = | ||
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_applicable_kinds = unity_serialised_field | ||
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_required_modifiers = instance | ||
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none | ||
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none | ||
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none | ||
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion | ||
dotnet_style_predefined_type_for_member_access = true:suggestion | ||
dotnet_style_qualification_for_event = false:suggestion | ||
dotnet_style_qualification_for_field = false:suggestion | ||
dotnet_style_qualification_for_method = false:suggestion | ||
dotnet_style_qualification_for_property = false:suggestion | ||
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion | ||
|
||
# ReSharper properties | ||
resharper_align_linq_query = true | ||
resharper_align_multiline_parameter = true | ||
resharper_allow_comment_after_lbrace = true | ||
resharper_arguments_skip_single = true | ||
resharper_autodetect_indent_settings = true | ||
resharper_blank_lines_after_block_statements = 0 | ||
resharper_blank_lines_around_auto_property = 0 | ||
resharper_blank_lines_around_property = 0 | ||
resharper_braces_for_for = required | ||
resharper_braces_for_foreach = required_for_multiline_statement | ||
resharper_braces_for_ifelse = not_required | ||
resharper_braces_for_lock = not_required | ||
resharper_braces_for_while = required | ||
resharper_braces_redundant = false | ||
resharper_csharp_blank_lines_around_field = 0 | ||
resharper_csharp_blank_lines_around_invocable = 0 | ||
resharper_csharp_blank_lines_around_region = 0 | ||
resharper_csharp_blank_lines_inside_region = 0 | ||
resharper_csharp_insert_final_newline = true | ||
resharper_csharp_max_line_length = 359 | ||
resharper_csharp_remove_blank_lines_near_braces_in_code = false | ||
resharper_csharp_remove_blank_lines_near_braces_in_declarations = false | ||
resharper_csharp_wrap_before_binary_opsign = true | ||
resharper_csharp_wrap_ternary_expr_style = wrap_if_long | ||
resharper_formatter_off_tag = @formatter:off | ||
resharper_formatter_on_tag = @formatter:on | ||
resharper_formatter_tags_enabled = true | ||
resharper_instance_members_qualify_declared_in = | ||
resharper_keep_existing_attribute_arrangement = true | ||
resharper_keep_existing_declaration_block_arrangement = true | ||
resharper_keep_existing_embedded_block_arrangement = true | ||
resharper_keep_existing_enum_arrangement = true | ||
resharper_keep_existing_initializer_arrangement = false | ||
resharper_modifiers_order = protected public override private new internal static async virtual sealed abstract extern unsafe volatile readonly required | ||
resharper_outdent_statement_labels = true | ||
resharper_parentheses_non_obvious_operations = none, bitwise_and, bitwise_exclusive_or, bitwise_inclusive_or, bitwise, conditional_and | ||
resharper_parentheses_redundancy_style = remove | ||
resharper_place_expr_accessor_on_single_line = true | ||
resharper_place_expr_method_on_single_line = true | ||
resharper_place_expr_property_on_single_line = true | ||
resharper_place_field_attribute_on_same_line = if_owner_is_single_line | ||
resharper_place_record_field_attribute_on_same_line = true | ||
resharper_place_simple_anonymousmethod_on_single_line = false | ||
resharper_place_simple_embedded_statement_on_same_line = true | ||
resharper_place_simple_initializer_on_single_line = false | ||
resharper_space_within_single_line_array_initializer_braces = false | ||
resharper_trailing_comma_in_multiline_lists = true | ||
resharper_use_indent_from_vs = false | ||
resharper_wrap_array_initializer_style = chop_always | ||
resharper_wrap_object_and_collection_initializer_style = chop_always | ||
|
||
# ReSharper inspection severities | ||
resharper_arrange_redundant_parentheses_highlighting = hint | ||
resharper_arrange_this_qualifier_highlighting = hint | ||
resharper_arrange_type_member_modifiers_highlighting = hint | ||
resharper_arrange_type_modifiers_highlighting = hint | ||
resharper_built_in_type_reference_style_for_member_access_highlighting = hint | ||
resharper_built_in_type_reference_style_highlighting = hint | ||
resharper_redundant_base_qualifier_highlighting = warning | ||
resharper_suggest_var_or_type_built_in_types_highlighting = hint | ||
resharper_suggest_var_or_type_elsewhere_highlighting = hint | ||
resharper_suggest_var_or_type_simple_types_highlighting = hint | ||
resharper_web_config_module_not_resolved_highlighting = warning | ||
resharper_web_config_type_not_resolved_highlighting = warning | ||
resharper_web_config_wrong_module_highlighting = warning | ||
|
||
[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.prettierrc,.stylelintrc,bowerrc,jest.config}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{*.bash,*.sh,*.zsh}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.proto] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.{appxmanifest,asax,ascx,aspx,axaml,build,c,c++,cc,cginc,compute,cp,cpp,cppm,cs,cshtml,cu,cuh,cxx,dtd,fs,fsi,fsscript,fsx,fx,fxh,h,hh,hlsl,hlsli,hlslinc,hpp,hxx,inc,inl,ino,ipp,ixx,master,ml,mli,mpp,mq4,mq5,mqh,nuspec,paml,razor,resw,resx,shader,skin,tpp,usf,ush,vb,xaml,xamlx,xoml,xsd}] | ||
indent_style = space | ||
indent_size = 4 | ||
tab_width = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build .NET | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["master"] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Cache NuGet Packages | ||
id: nuget-packages | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: nuget-package-cache | ||
with: | ||
path: ~/.nuget/packages | ||
key: ${{ runner.os }}-${{ env.cache-name }} | ||
|
||
- name: List NuGet Packages | ||
if: ${{ steps.nuget-packages.outputs.cache-hit == 'true' }} | ||
continue-on-error: true | ||
run: ls -lh ~/.nuget/packages | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --no-restore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Format | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["master"] | ||
|
||
jobs: | ||
format: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Install dotnet-format tool | ||
run: dotnet tool install -g dotnet-format --version "8.*" --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json | ||
|
||
- name: Run dotnet-format | ||
run: dotnet-format whitespace --verify-no-changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Build M2Ds | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build Server | ||
run: cd Tools && .\MS2Create.exe ../Server ../ Server MS2F | ||
- name: Build XML | ||
run: cd Tools && .\MS2Create.exe ../Xml ../ Xml MS2F | ||
- name: Hash Server | ||
run: certutil -hashfile Server.m2d MD5 > Server.m2d.txt | ||
- name: Hash Xml | ||
run: certutil -hashfile Xml.m2d MD5 > Xml.m2d.txt | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
generate_release_notes: true | ||
files: | | ||
Server.m2d | ||
Server.m2h | ||
Xml.m2d | ||
Xml.m2h | ||
Server.m2d.txt | ||
Xml.m2d.txt | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
/GMS2.To.KMS2/obj | ||
/GMS2.To.KMS2/bin | ||
/.vs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="DotNetZip" Version="1.16.0" /> | ||
<PackageReference Include="Maple2.File.Parser.Tadeucci" Version="2.1.14" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace GMS2.To.KMS2; | ||
|
||
public static class Paths { | ||
public static readonly string SOLUTION_DIR = Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, "../../../..")); | ||
public static readonly string GMS2_DIR = Path.Combine(SOLUTION_DIR, "Xml"); | ||
public static readonly string SERVER_DIR = Path.Combine(SOLUTION_DIR, "Server"); | ||
|
||
} |
Oops, something went wrong.