Skip to content

Commit

Permalink
Merge branch 'master' into perpetualkid-raildriver
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarBLG committed May 5, 2023
2 parents 5467c13 + b79cb2d commit c438739
Show file tree
Hide file tree
Showing 192 changed files with 6,455 additions and 28,303 deletions.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-mgfxc": {
"version": "3.8.0.1641",
"commands": [
"mgfxc"
]
}
}
}
10 changes: 0 additions & 10 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@
*.svg text
*.eps binary


# https://github.com/Danimoth/gitattributes/blob/master/VisualStudio.gitattributes
# Custom for Visual Studio
*.sln text eol=crlf merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union


# https://github.com/Danimoth/gitattributes/blob/master/CSharp.gitattributes
# Custom for C#
*.cs diff=csharp
Expand Down
32 changes: 30 additions & 2 deletions Source/.editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
# BEGIN COPY FROM https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options#example-editorconfig-file
###############################
# Core EditorConfig Options #
###############################
root = true
# All files
[*]
indent_style = space
Expand Down Expand Up @@ -58,7 +60,7 @@ dotnet_style_prefer_conditional_expression_over_return = true:silent
###############################
# Style Definitions
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# Use PascalCase for constant fields
# Use PascalCase for constant fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
Expand Down Expand Up @@ -92,7 +94,7 @@ csharp_preferred_modifier_order = public,private,protected,internal,static,exter
csharp_prefer_braces = true:silent
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_pattern_local_over_anonymous_function = true:suggestion
csharp_style_prefer_local_over_anonymous_function = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
###############################
# C# Formatting Rules #
Expand Down Expand Up @@ -130,3 +132,29 @@ csharp_preserve_single_line_blocks = true
[*.vb]
# Modifier preferences
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion
# END COPY

#################################
# Open Rails Coding Conventions #
#################################
[*.cs]

# .NET analyzers
dotnet_style_require_accessibility_modifiers = omit_if_default:silent
dotnet_naming_symbols.all_fields.applicable_kinds = field
dotnet_naming_symbols.all_fields.applicable_accessibilities = *
dotnet_naming_rule.all_fields_should_be_pascal_case.symbols = all_fields
dotnet_naming_rule.all_fields_should_be_pascal_case.style = pascal_case_style
dotnet_naming_rule.all_fields_should_be_pascal_case.severity = warning

# StyleCop analyzers
dotnet_diagnostic.SA1101.severity = none # Readability: PrefixLocalCallsWithThis
dotnet_diagnostic.SA1200.severity = none # Ordering: UsingDirectivesMustBePlacedCorrectly
dotnet_diagnostic.SA1306.severity = none # Naming: FieldNamesMustBeginWithLowerCaseLetter
dotnet_diagnostic.SA1400.severity = none # Maintainability: AccessModifierMustBeDeclared
dotnet_diagnostic.SA1401.severity = none # Maintainability: FieldsMustBePrivate
dotnet_diagnostic.SA1402.severity = none # Maintainability: FileMayOnlyContainASingleType
dotnet_diagnostic.SA1600.severity = none # Documentation: ElementsMustBeDocumented
dotnet_diagnostic.SA1602.severity = none # Documentation: EnumerationItemsMustBeDocumented
dotnet_diagnostic.SA1633.severity = none # Documentation: FileMustHaveHeader
dotnet_diagnostic.SA1649.severity = none # Documentation: FileNameMustMatchTypeName
Binary file removed Source/3rdPartyLibs/MonoGame/CppNet.dll
Binary file not shown.
Binary file not shown.
7,294 changes: 0 additions & 7,294 deletions Source/3rdPartyLibs/MonoGame/MonoGame.Framework.Content.Pipeline.xml

This file was deleted.

Binary file removed Source/3rdPartyLibs/MonoGame/MonoGame.Framework.dll
Binary file not shown.
18,061 changes: 0 additions & 18,061 deletions Source/3rdPartyLibs/MonoGame/MonoGame.Framework.xml

This file was deleted.

Binary file removed Source/3rdPartyLibs/MonoGame/SharpDX.D3DCompiler.dll
Binary file not shown.
Binary file removed Source/3rdPartyLibs/MonoGame/SharpDX.DXGI.dll
Binary file not shown.
Binary file removed Source/3rdPartyLibs/MonoGame/SharpDX.Direct3D11.dll
Binary file not shown.
Binary file removed Source/3rdPartyLibs/MonoGame/SharpDX.XAudio2.dll
Binary file not shown.
Binary file removed Source/3rdPartyLibs/MonoGame/SharpDX.dll
Binary file not shown.
8 changes: 2 additions & 6 deletions Source/ContentChecker/ContentChecker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
<Copyright>Copyright © 2009 - 2022</Copyright>
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
</PropertyGroup>
<ItemGroup>
<Reference Include="MonoGame.Framework">
<HintPath>$(SolutionDir)\3rdPartyLibs\MonoGame\MonoGame.Framework.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ORTS.Content\ORTS.Content.csproj" />
<ProjectReference Include="..\Orts.Formats.Msts\Orts.Formats.Msts.csproj" />
Expand All @@ -27,8 +22,9 @@
<ProjectReference Include="..\RunActivity\RunActivity.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version="0.4.336902">
<PackageReference Include="Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version="0.4.355802">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="MonoGame.Framework.WindowsDX" Version="3.8.0.1641" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
<DefineConstants>TRACE;WINDOWS;ACTIVITY_EDITOR</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="MonoGame.Framework">
<HintPath>$(SolutionDir)\3rdPartyLibs\MonoGame\MonoGame.Framework.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Update="Wizard\ActivityDescr.cs">
<SubType>UserControl</SubType>
Expand Down Expand Up @@ -87,8 +82,9 @@
<ProjectReference Include="..\LibAE\LibAE.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version="0.4.336902">
<PackageReference Include="Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version="0.4.355802">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="MonoGame.Framework.WindowsDX" Version="3.8.0.1641" />
</ItemGroup>
</Project>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

123 changes: 123 additions & 0 deletions Source/Contrib/ActivityEditor/ActivityEditor/Engine/SimpleTextEd.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="bar.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
10 changes: 3 additions & 7 deletions Source/Contrib/ActivityEditor/LibAE/LibAE.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
<DefineConstants>TRACE;WINDOWS;ACTIVITY_EDITOR;JSON_OR_XML</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="MonoGame.Framework">
<HintPath>$(SolutionDir)\3rdPartyLibs\MonoGame\MonoGame.Framework.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Icon\Start.ico" />
<EmbeddedResource Include="Icon\Stop.ico" />
Expand All @@ -35,9 +30,10 @@
<ProjectReference Include="..\..\..\ORTS.Settings\ORTS.Settings.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version="0.4.336902">
<PackageReference Include="Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version="0.4.355802">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="MonoGame.Framework.WindowsDX" Version="3.8.0.1641" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Source/Contrib/ContentManager/ContentManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<ProjectReference Include="..\..\ORTS.Settings\ORTS.Settings.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version="0.4.336902">
<PackageReference Include="Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version="0.4.355802">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down

0 comments on commit c438739

Please sign in to comment.