Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 22 additions & 14 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,25 @@ Please also see the following issue for further discussion on the topic: https:/

**Third-Party Libraries**

- openBVE uses the [**CoreFX**](https://github.com/dotnet/corefx). This is licensed under the _MIT License_, which may be found in [here](licenses/CoreFX.txt).
- openBVE uses the [**CS Script**](https://github.com/oleg-shilo/cs-script) for animation scripting. This is licensed under the _MIT License_, which may be found in [here](licenses/CS-Script.txt).
- openBVE uses the [**DotNetZip**](https://github.com/haf/DotNetZip.Semverd) for loading compressed DirectX file. This is licensed under the *Microsoft Public License*, which may be found in [here](licenses/DotNetZip.txt).
- openBVE uses the [**NAudio**](https://github.com/naudio/NAudio) for decoding sound file. This is licensed under the *Microsoft Public License*, which may be found in [here](licenses/NAudio.txt).
- openBVE uses the [**NAudio.Vorbis**](https://github.com/naudio/Vorbis) for decoding Vorbis file. This is licensed under the *Microsoft Public License*, which may be found in [here](licenses/NAudio.Vorbis.txt).
- openBVE uses the [**NLayer**](https://github.com/naudio/NLayer) for decoding MP3 file. This is licensed under the *MIT License*, which may be found in [here](licenses/NLayer.txt).
- openBVE uses the [**NVorbis**](https://github.com/NVorbis/NVorbis) for decoding Vorbis file. This is licensed under the *Microsoft Public License*, which may be found in [here](licenses/NVorbis.txt).
- openBVE uses the [**OpenTK**](https://github.com/opentk/opentk) library for windowing and input handling. This is licensed under the _Open Toolkit Library License_, which may be found in [here](licenses/OpenTK.txt).
- openBVE uses the [**Prism**](https://github.com/PrismLibrary/Prism). This is licensed under the *MIT License*, which may be found in [here](licenses/Prism.txt).
- openBVE uses the [**ReactiveProperty**](https://github.com/runceel/ReactiveProperty). This is licensed under the *MIT License*, which may be found in [here](licenses/ReactiveProperty.txt).
- openBVE uses the [**SharpCompress**](https://github.com/adamhathcock/sharpcompress) for archive handling. This is licensed under the _MIT License_, which may be found in [here](licenses/SharpCompress.txt).
- openBVE uses the [**Reactive Extensions**](https://github.com/dotnet/reactive). This is licensed under the *Apache License, Version 2.0*, which may be found in [here](licenses/ReactiveExtensions.txt).
- openBVE uses the [**Ude**](https://github.com/yinyue200/ude) for character set detection. This is tri-licensed under the _Mozilla Public License v1.1_, _GPL 2.0_ and _LGPL 2.0_, which may be found in [here](licenses/Ude.txt).
- openBVE uses the [**XamlBehaviors for WPF**](https://github.com/microsoft/XamlBehaviorsWpf). This is licensed under the *MIT License*, which may be found in [here](licenses/XamlBehaviorsForWPF.txt).
openBVE uses the following third party libraries.

| Name | License | Usage |
| --------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------------------------------- |
| [**CS Script**](https://github.com/oleg-shilo/cs-script) | [MIT License](licenses/CS-Script.txt) | Animation scripting |
| [**.NET Runtime**](https://github.com/dotnet/runtime) | [MIT License](licenses/dotnet_runtime.txt) | |
| [**DotNetZip**](https://github.com/haf/DotNetZip.Semverd) | [Microsoft Public License](licenses/DotNetZip.txt) | Loading compressed DirectX file |
| [**Json.NET**](https://github.com/JamesNK/Newtonsoft.Json) | [MIT License](licenses/Newtonsoft.Json.txt) | Loading JSON file |
| [**Namotion.Reflection**](https://github.com/RicoSuter/Namotion.Reflection) | [MIT License](licenses/Namotion.Reflection.txt) | |
| [**NAudio**](https://github.com/naudio/NAudio) | [Microsoft Public License](licenses/NAudio.txt) | Decoding sound file |
| [**NAudio.Vorbis**](https://github.com/naudio/Vorbis) | [Microsoft Public License](licenses/NAudio.Vorbis.txt) | Decoding Vorbis file |
| [**NJsonSchema for .NET**](https://github.com/RicoSuter/NJsonSchema) | [MIT License](licenses/NJsonSchema) | Validating JSON file |
| [**NLayer**](https://github.com/naudio/NLayer) | [MIT License](licenses/NLayer.txt) | Decoding MP3 file |
| [**NVorbis**](https://github.com/NVorbis/NVorbis) | [Microsoft Public License](licenses/NVorbis.txt) | Decoding Vorbis file |
| [**OpenAL Soft**](https://github.com/kcat/openal-soft) | [LGPL 2.0](licenses/OpenALSoft.txt) | Playing sound |
| [**OpenTK**](https://github.com/opentk/opentk) | [Open Toolkit Library License](licenses/OpenTK.txt) | Windowing and input handling |
| [**Prism**](https://github.com/PrismLibrary/Prism) | [MIT License](licenses/Prism.txt) | |
| [**Reactive Extensions**](https://github.com/dotnet/reactive) | [Apache License, Version 2.0](licenses/ReactiveExtensions.txt) | |
| [**ReactiveProperty**](https://github.com/runceel/ReactiveProperty) | [MIT License](licenses/ReactiveProperty.txt) | |
| [**SharpCompress**](https://github.com/adamhathcock/sharpcompress) | [MIT License](licenses/SharpCompress.txt) | Archive handling |
| [**Ude**](https://github.com/yinyue200/ude) | [Mozilla Public License v1.1, GPL 2.0 and LGPL 2.0](licenses/Ude.txt) | Character set detection |

147 changes: 147 additions & 0 deletions assets/Schemas/ats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
{
"$schema": "http://json-schema.org/schema",
"definitions": {
"index": {
"type": "integer",
"minimum": -1
},
"indexMap": {
"type": "object",
"properties": {
"offset": {
"type": "integer"
},
"entries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"src": {
"$ref": "#/definitions/index"
},
"dest": {
"$ref": "#/definitions/index"
}
},
"required": [
"src",
"dest"
],
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"key": {
"type": "string",
"enum": [
"None",
"S",
"A1",
"A2",
"B1",
"B2",
"C1",
"C2",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
"K",
"L",
"M",
"N",
"O",
"P",
"WiperSpeedUp",
"WiperSpeedDown",
"FillFuel",
"LiveSteamInjector",
"ExhaustSteamInjector",
"IncreaseCutoff",
"DecreaseCutoff",
"Blowers",
"EngineStart",
"EngineStop",
"GearUp",
"GearDown",
"RaisePantograph",
"LowerPantograph",
"MainBreaker",
"LeftDoors",
"RightDoors"
]
},
"keyMap": {
"type": "object",
"properties": {
"entries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"src": {
"$ref": "#/definitions/key"
},
"dest": {
"$ref": "#/definitions/key"
}
},
"required": [
"src",
"dest"
],
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "Ats"
},
"version": {
"type": "string",
"const": "1.0"
},
"plugins": {
"type": "array",
"items": {
"type": "object",
"properties": {
"filePath": {
"type": "string",
"format": "uri-reference"
},
"panelIndexMap": {
"$ref": "#/definitions/indexMap"
},
"soundIndexMap": {
"$ref": "#/definitions/indexMap"
},
"keyMap": {
"$ref": "#/definitions/keyMap"
}
},
"required": [
"filePath"
],
"additionalProperties": false
}
}
},
"required": [
"type",
"version",
"plugins"
],
"additionalProperties": false
}
Binary file removed dependencies/AtsPluginProxy.dll
Binary file not shown.
40 changes: 40 additions & 0 deletions licenses/AssimpParser.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
AssimpParser is a cross-ported copy of Open Asset Import Library (assimp) by assimp team.

The original repository / source code may be found at the following address:
https://github.com/assimp/assimp


Open Asset Import Library (assimp)

Copyright (c) 2006-2016, assimp team, 2018, The openBVE Project
All rights reserved.

Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following conditions are met:

* Redistributions of source code must retain the above
copyright notice, this list of conditions and the
following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other
materials provided with the distribution.

* Neither the name of the assimp team, nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior
written permission of the assimp team.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
9 changes: 9 additions & 0 deletions licenses/NJsonSchema.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2016 Rico Suter

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9 changes: 9 additions & 0 deletions licenses/Namotion.Reflection.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2019 Rico Suter

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9 changes: 9 additions & 0 deletions licenses/Newtonsoft.Json.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2007 James Newton-King

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 changes: 0 additions & 21 deletions licenses/XamlBehaviorsForWPF.txt

This file was deleted.

File renamed without changes.
44 changes: 0 additions & 44 deletions source/AssimpParser/Wavefront/Mesh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,50 +32,6 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
//
//
// ******************************************************************************
//
// AN EXCEPTION applies to all files in the ./test/models-nonbsd folder.
// These are 3d models for testing purposes, from various free sources
// on the internet. They are - unless otherwise stated - copyright of
// their respective creators, which may impose additional requirements
// on the use of their work. For any of these models, see
// <model-name>.source.txt for more legal information. Contact us if you
// are a copyright holder and believe that we credited you inproperly or
// if you don't want your files to appear in the repository.
//
//
// ******************************************************************************
//
// Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors
// http://code.google.com/p/poly2tri/
//
// All rights reserved.
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
// * Neither the name of Poly2Tri nor the names of its contributors may be
// used to endorse or promote products derived from this software without specific
// prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

namespace AssimpNET.Obj
{
Expand Down
Loading