Skip to content

Commit

Permalink
change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Grille committed May 13, 2024
1 parent ab7e834 commit 0dfbbbd
Show file tree
Hide file tree
Showing 74 changed files with 151 additions and 148 deletions.
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/Collections/IDictionaryExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Grille.BeamNgLib.Collections;
namespace Grille.BeamNG.Collections;

public static class IDictionaryExtension
{
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/Collections/IKeyed.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Grille.BeamNgLib.Collections;
namespace Grille.BeamNG.Collections;

public interface IKeyed
{
Expand Down
4 changes: 2 additions & 2 deletions Grille.BeamNGLib/Collections/KeyedCollection.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Grille.BeamNgLib.SceneTree.Art;
using Grille.BeamNG.SceneTree.Art;
using System.Collections;

namespace Grille.BeamNgLib.Collections;
namespace Grille.BeamNG.Collections;

public class KeyedCollection<T> : ICollection<T> where T : class, IKeyed
{
Expand Down
7 changes: 4 additions & 3 deletions Grille.BeamNGLib/Grille.BeamNgLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<TargetFramework>net6.0</TargetFramework>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<PackageId>Grille.BeamNgLib</PackageId>
<Title>Grille.BeamNgLib</Title>
<PackageId>Grille.BeamNG.Lib</PackageId>
<Title>Grille.BeamNG.Lib</Title>
<Owners>Grille</Owners>
<RepositoryUrl>https://github.com/Grille/BeamNG_LevelTemplateCreator</RepositoryUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
Expand All @@ -16,6 +16,7 @@
<Version>0.1</Version>
<Authors>Grille</Authors>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<RootNamespace>Grille.BeamNG</RootNamespace>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand All @@ -28,7 +29,7 @@

<ItemGroup>
<None Include="..\Assets\Grille.BeamNG.png" Pack="true" PackagePath="\" Visible="false" />
<None Include="..\README.md" Pack="true" PackagePath="\" Visible="false" />
<None Include=".\README.md" Pack="true" PackagePath="\" Visible="false" />
<None Include="..\LICENSE" Pack="true" PackagePath="\" Visible="false" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions Grille.BeamNGLib/IO/BeamJsonSerializer.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Grille.BeamNgLib.SceneTree;
using Grille.BeamNG.SceneTree;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Grille.BeamNgLib.IO;
namespace Grille.BeamNG.IO;
public class BeamJsonSerializer
{
public static IEnumerable<JsonDict> Load(string filePath)
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/IO/Binary/TerrainV9Binary.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Drawing;

namespace Grille.BeamNgLib.IO.Binary;
namespace Grille.BeamNG.IO.Binary;

public class TerrainV9Binary
{
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/IO/JsonDictSerializer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json;

namespace Grille.BeamNgLib.IO;
namespace Grille.BeamNG.IO;

public class JsonDictSerializer
{
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/IO/Resources/FileResource.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Grille.BeamNgLib.IO.Resources;
namespace Grille.BeamNG.IO.Resources;

public class FileResource : Resource
{
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/IO/Resources/GroupResource.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Grille.BeamNgLib.IO.Resources;
namespace Grille.BeamNG.IO.Resources;

internal class GroupResource : Resource
{
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/IO/Resources/PathEvaluator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Grille.BeamNgLib.IO.Resources;
namespace Grille.BeamNG.IO.Resources;

public static class PathEvaluator
{
Expand Down
4 changes: 2 additions & 2 deletions Grille.BeamNGLib/IO/Resources/Resource.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Grille.BeamNgLib.Collections;
using Grille.BeamNG.Collections;

namespace Grille.BeamNgLib.IO.Resources;
namespace Grille.BeamNG.IO.Resources;

public abstract class Resource : IKeyed
{
Expand Down
4 changes: 2 additions & 2 deletions Grille.BeamNGLib/IO/Resources/ResourceCollection.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Grille.BeamNgLib.Collections;
using Grille.BeamNG.Collections;

namespace Grille.BeamNgLib.IO.Resources;
namespace Grille.BeamNG.IO.Resources;

public class ResourceCollection : KeyedCollection<Resource>
{
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/IO/Resources/StaticPath.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Grille.BeamNgLib.IO.Resources;
namespace Grille.BeamNG.IO.Resources;
internal class StaticPath
{
}
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/IO/Resources/ZipFileResource.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Grille.BeamNgLib.IO.Resources;
namespace Grille.BeamNG.IO.Resources;

public class ZipFileResource : Resource
{
Expand Down
4 changes: 2 additions & 2 deletions Grille.BeamNGLib/IO/SimItemsJsonSerializer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Grille.BeamNgLib.SceneTree;
using Grille.BeamNG.SceneTree;
using System.Text;

namespace Grille.BeamNgLib.IO;
namespace Grille.BeamNG.IO;

public static class SimItemsJsonSerializer
{
Expand Down
4 changes: 2 additions & 2 deletions Grille.BeamNGLib/IO/TerrainV9Serializer.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Text;
using GGL.IO;
using Grille.BeamNgLib.IO.Binary;
using Grille.BeamNG.IO.Binary;

namespace Grille.BeamNgLib.IO;
namespace Grille.BeamNG.IO;

public class TerrainV9Serializer
{
Expand Down
4 changes: 2 additions & 2 deletions Grille.BeamNGLib/IO/ZipFileManager.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Grille.BeamNgLib.Logging;
using Grille.BeamNG.Logging;
using System.IO.Compression;

namespace Grille.BeamNgLib.IO;
namespace Grille.BeamNG.IO;

public static class ZipFileManager
{
Expand Down
10 changes: 5 additions & 5 deletions Grille.BeamNGLib/LevelBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Grille.BeamNgLib.IO;
using Grille.BeamNgLib.IO.Resources;
using Grille.BeamNgLib.SceneTree.Art;
using Grille.BeamNgLib.SceneTree.Main;
using Grille.BeamNG.IO;
using Grille.BeamNG.IO.Resources;
using Grille.BeamNG.SceneTree.Art;
using Grille.BeamNG.SceneTree.Main;
using System.IO;
using System.Reflection.Emit;

namespace Grille.BeamNgLib;
namespace Grille.BeamNG;

public class LevelBuilder
{
Expand Down
4 changes: 2 additions & 2 deletions Grille.BeamNGLib/LevelInfo.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Grille.BeamNgLib.SceneTree;
using Grille.BeamNG.SceneTree;
using System.Drawing;

namespace Grille.BeamNgLib;
namespace Grille.BeamNG;

public class LevelInfo : JsonDictWrapper
{
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/Logging/ErrorLogger.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Grille.BeamNgLib.Logging;
namespace Grille.BeamNG.Logging;
public class ErrorLogger
{
readonly List<object> _errors = new List<object>();
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/Logging/Logger.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Grille.BeamNgLib.Logging;
namespace Grille.BeamNG.Logging;

public enum LoggerColor
{
Expand Down
2 changes: 2 additions & 0 deletions Grille.BeamNGLib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# BeamNG.Lib

10 changes: 5 additions & 5 deletions Grille.BeamNGLib/SceneTree/Art/ArtGroup.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Grille.BeamNgLib.Collections;
using Grille.BeamNgLib.IO;
using Grille.BeamNgLib.IO.Resources;
using Grille.BeamNgLib.SceneTree.Registry;
using Grille.BeamNG.Collections;
using Grille.BeamNG.IO;
using Grille.BeamNG.IO.Resources;
using Grille.BeamNG.SceneTree.Registry;

namespace Grille.BeamNgLib.SceneTree.Art;
namespace Grille.BeamNG.SceneTree.Art;

public class ArtGroup : ISceneTreeGroup
{
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/SceneTree/Art/ArtGroupRoot.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Grille.BeamNgLib.SceneTree.Art;
namespace Grille.BeamNG.SceneTree.Art;
public class ArtGroupRoot : ArtGroup
{
public ArtGroup Terrains { get; }
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/SceneTree/Art/ArtGroupShapes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Grille.BeamNgLib.SceneTree.Art;
namespace Grille.BeamNG.SceneTree.Art;
public class ArtGroupShapes : ArtGroup
{
public ArtGroup Groundcover { get; }
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/SceneTree/Art/ArtItem.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace Grille.BeamNgLib.SceneTree.Art;
namespace Grille.BeamNG.SceneTree.Art;
public class ArtItem : JsonDictWrapper
{
public ArtItem(JsonDict dict, string className) : base(dict, className) {
Expand Down
8 changes: 4 additions & 4 deletions Grille.BeamNGLib/SceneTree/Art/ArtItemsCollection.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Grille.BeamNgLib.IO;
using Grille.BeamNgLib.SceneTree.Main;
using Grille.BeamNgLib.SceneTree.Registry;
using Grille.BeamNG.IO;
using Grille.BeamNG.SceneTree.Main;
using Grille.BeamNG.SceneTree.Registry;

namespace Grille.BeamNgLib.SceneTree.Art;
namespace Grille.BeamNG.SceneTree.Art;

public abstract class ArtItemsCollection<T> : JsonDictWrapperCollection<T> where T : ArtItem
{
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/SceneTree/Art/ForestItemData.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Grille.BeamNgLib.SceneTree.Art;
namespace Grille.BeamNG.SceneTree.Art;

public sealed class ForestItemData : ArtItem
{
Expand Down
4 changes: 2 additions & 2 deletions Grille.BeamNGLib/SceneTree/Art/ManagedItems.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Grille.BeamNgLib.SceneTree.Registry;
using Grille.BeamNG.SceneTree.Registry;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Grille.BeamNgLib.SceneTree.Art;
namespace Grille.BeamNG.SceneTree.Art;
public class ManagedItems : ArtItemsCollection<ForestItemData>
{
public const string FileName = "managedItemData.json";
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/SceneTree/Art/Material.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Grille.BeamNgLib.SceneTree.Art;
namespace Grille.BeamNG.SceneTree.Art;

public abstract class Material : ArtItem
{
Expand Down
12 changes: 6 additions & 6 deletions Grille.BeamNGLib/SceneTree/Art/MaterialItems.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Grille.BeamNgLib.Collections;
using Grille.BeamNgLib.IO;
using Grille.BeamNgLib.IO.Resources;
using Grille.BeamNgLib.SceneTree.Main;
using Grille.BeamNgLib.SceneTree.Registry;
using Grille.BeamNG.Collections;
using Grille.BeamNG.IO;
using Grille.BeamNG.IO.Resources;
using Grille.BeamNG.SceneTree.Main;
using Grille.BeamNG.SceneTree.Registry;

namespace Grille.BeamNgLib.SceneTree.Art;
namespace Grille.BeamNG.SceneTree.Art;

public class MaterialItems : ArtItemsCollection<ArtItem>
{
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/SceneTree/Art/ObjectMaterial.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.ObjectModel;

namespace Grille.BeamNgLib.SceneTree.Art;
namespace Grille.BeamNG.SceneTree.Art;

public class ObjectMaterial : Material
{
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/SceneTree/Art/TerrainMaterial.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.ObjectModel;

namespace Grille.BeamNgLib.SceneTree.Art;
namespace Grille.BeamNG.SceneTree.Art;
public class TerrainMaterial : Material
{
public const string ClassName = "TerrainMaterial";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Grille.BeamNgLib.SceneTree.Art;
namespace Grille.BeamNG.SceneTree.Art;

public class TerrainMaterialTextureSet : ArtItem
{
Expand Down
6 changes: 3 additions & 3 deletions Grille.BeamNGLib/SceneTree/ISceneTreeGroup.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Grille.BeamNgLib.Collections;
using Grille.BeamNgLib.SceneTree.Registry;
using Grille.BeamNG.Collections;
using Grille.BeamNG.SceneTree.Registry;

namespace Grille.BeamNgLib.SceneTree;
namespace Grille.BeamNG.SceneTree;

public interface ISceneTreeGroup : IKeyed
{
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/SceneTree/JsonDictArrayProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Grille.BeamNgLib.SceneTree;
namespace Grille.BeamNG.SceneTree;

public class JsonDictArrayProperty<T> where T : JsonDictWrapper
{
Expand Down
6 changes: 3 additions & 3 deletions Grille.BeamNGLib/SceneTree/JsonDictProperty.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Grille.BeamNgLib.Collections;
using Grille.BeamNgLib.SceneTree.Registry;
using Grille.BeamNG.Collections;
using Grille.BeamNG.SceneTree.Registry;
using System.Runtime.CompilerServices;

namespace Grille.BeamNgLib.SceneTree;
namespace Grille.BeamNG.SceneTree;

public class JsonDictProperty<T> : IKeyed where T : notnull
{
Expand Down
8 changes: 4 additions & 4 deletions Grille.BeamNGLib/SceneTree/JsonDictWrapper.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Grille.BeamNgLib.Collections;
using Grille.BeamNgLib.IO;
using Grille.BeamNgLib.SceneTree.Main;
using Grille.BeamNG.Collections;
using Grille.BeamNG.IO;
using Grille.BeamNG.SceneTree.Main;

namespace Grille.BeamNgLib.SceneTree;
namespace Grille.BeamNG.SceneTree;

public class JsonDictWrapper : IKeyed
{
Expand Down
10 changes: 5 additions & 5 deletions Grille.BeamNGLib/SceneTree/JsonDictWrapperCollection.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
using Grille.BeamNgLib.Collections;
using Grille.BeamNgLib.IO;
using Grille.BeamNgLib.SceneTree.Main;
using Grille.BeamNgLib.SceneTree.Registry;
using Grille.BeamNG.Collections;
using Grille.BeamNG.IO;
using Grille.BeamNG.SceneTree.Main;
using Grille.BeamNG.SceneTree.Registry;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Grille.BeamNgLib.SceneTree;
namespace Grille.BeamNG.SceneTree;

public abstract class JsonDictWrapperCollection<TItem> : KeyedCollection<TItem> where TItem : JsonDictWrapper
{
Expand Down
2 changes: 1 addition & 1 deletion Grille.BeamNGLib/SceneTree/Main/GroundCover.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace Grille.BeamNgLib.SceneTree.Main;
namespace Grille.BeamNG.SceneTree.Main;

public class GroundCover : SimItem
{
Expand Down
Loading

0 comments on commit 0dfbbbd

Please sign in to comment.