Skip to content

Commit

Permalink
Cleaned up some of the package names for exporting/importing models.
Browse files Browse the repository at this point in the history
  • Loading branch information
MeltyPlayer committed Oct 8, 2023
1 parent bcbaa10 commit 525c187
Show file tree
Hide file tree
Showing 42 changed files with 50 additions and 50 deletions.
8 changes: 4 additions & 4 deletions FinModelUtility/Fin/Fin/Fin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Compile Remove="src\model\io\exporter\assimp\AssimpConverter.cs" />
<Compile Remove="src\model\io\exporter\assimp\AssimpDirectExporter.cs" />
<Compile Remove="src\model\io\exporter\assimp\AssimpMeshBuilder.cs" />
<Compile Remove="src\model\io\exporter\assimp\AssimpSkeletonBuilder.cs" />
<Compile Remove="src\model\io\exporters\assimp\AssimpConverter.cs" />
<Compile Remove="src\model\io\exporters\assimp\AssimpDirectExporter.cs" />
<Compile Remove="src\model\io\exporters\assimp\AssimpMeshBuilder.cs" />
<Compile Remove="src\model\io\exporters\assimp\AssimpSkeletonBuilder.cs" />
<Compile Remove="src\schema\sequences\PointerSections.cs" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using fin.io;

namespace fin.model.io.exporter {
namespace fin.model.io.exporters {
public interface IModelExporterParams {
ISystemFile OutputFile { get; }
IModel Model { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using Assimp;

namespace fin.model.io.exporter.assimp {
namespace fin.model.io.exporters.assimp {
public static class AssimpUtil {
static AssimpUtil() {
using var ctx = new AssimpContext();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using Assimp;

namespace fin.model.io.exporter.assimp.indirect {
namespace fin.model.io.exporters.assimp.indirect {
public class AssimpIndirectAnimationFixer {
public void Fix(IModel model, Scene sc) {
var finAnimations = model.AnimationManager.Animations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
using Assimp;

using fin.io;
using fin.model.io.exporter.gltf;
using fin.model.io.exporter.gltf.lowlevel;
using fin.model.io.exporters.gltf;
using fin.model.io.exporters.gltf.lowlevel;
using fin.shaders.glsl;
using fin.util.asserts;
using fin.util.gc;
Expand All @@ -15,7 +15,7 @@
using SharpGLTF.Schema2;
using SharpGLTF.Validation;

namespace fin.model.io.exporter.assimp.indirect {
namespace fin.model.io.exporters.assimp.indirect {
public class AssimpIndirectModelExporter : IModelExporter {
// You can bet your ass I'm gonna prefix everything with ass.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using fin.image;
using fin.model.util;

namespace fin.model.io.exporter.assimp.indirect {
namespace fin.model.io.exporters.assimp.indirect {
public class AssimpIndirectTextureFixer {
public void Fix(IModel model, Scene sc) {
// Imports the textures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

using fin.color;

namespace fin.model.io.exporter.assimp.indirect {
namespace fin.model.io.exporters.assimp.indirect {
public class AssimpIndirectUvFixer {
public void Fix(IModel model, Scene sc) {
var finVertices = model.Skin.Vertices;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using SharpGLTF.Schema2;

namespace fin.model.io.exporter.gltf {
namespace fin.model.io.exporters.gltf {
using GltfNode = Node;

public class GltfAnimationBuilder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

using AlphaMode = SharpGLTF.Materials.AlphaMode;

namespace fin.model.io.exporter.gltf {
namespace fin.model.io.exporters.gltf {
public interface IGltfModelExporter : IModelExporter {
bool UvIndices { get; set; }
bool Embedded { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
using SharpGLTF.Schema2;
using SharpGLTF.Transforms;

namespace fin.model.io.exporter.gltf {
namespace fin.model.io.exporters.gltf {
using VERTEX =
VertexBuilder<VertexPositionNormal, VertexColor2Texture2, VertexJoints4>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using SharpGLTF.Schema2;

namespace fin.model.io.exporter.gltf {
namespace fin.model.io.exporters.gltf {
using GltfNode = Node;
using GltfSkin = Skin;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using SharpGLTF.Memory;
using SharpGLTF.Schema2;

namespace fin.model.io.exporter.gltf {
namespace fin.model.io.exporters.gltf {
public static class GltfTextureUtil {
public static TextureBuilder UseTexture(this ChannelBuilder channelBuilder,
ITexture finTexture) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

using AlphaMode = SharpGLTF.Materials.AlphaMode;

namespace fin.model.io.exporter.gltf.lowlevel {
namespace fin.model.io.exporters.gltf.lowlevel {
public class LowLevelGltfModelExporter : IGltfModelExporter {
private readonly ILogger logger_ = Logging.Create<GltfModelExporter>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
using GltfPrimitiveType = SharpGLTF.Schema2.PrimitiveType;


namespace fin.model.io.exporter.gltf.lowlevel {
namespace fin.model.io.exporters.gltf.lowlevel {
public class LowLevelGltfMeshBuilder {
public bool UvIndices { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using fin.io;

namespace fin.model.io.importer.assimp {
namespace fin.model.io.importers.assimp {
public class AssimpModelFileBundle : IModelFileBundle {
public string? GameName { get; }
public required IReadOnlyTreeFile MainFile { get; init; }
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using fin.io;

namespace fin.model.io.importer.assimp {
namespace fin.model.io.importers.assimp {
public class AssimpModelImporterPlugin : IModelImporterPlugin {
public string DisplayName => "Assimp";
public string Description => "Loads standard model formats via Assimp.";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using fin.io;
using fin.io.bundles;
using fin.model.io;
using fin.model.io.importer;
using fin.model.io.importers;

namespace fin.testing.model {
public abstract class BGoldenTests<TFileBundle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

using CommunityToolkit.HighPerformance;

using fin.model.io.exporter;
using fin.model.io.exporter.assimp.indirect;
using fin.model.io.exporters;
using fin.model.io.exporters.assimp.indirect;
using fin.io;
using fin.model.io;
using fin.model.io.importer;
using fin.model.io.importers;
using fin.util.asserts;
using fin.util.strings;

Expand Down
2 changes: 1 addition & 1 deletion FinModelUtility/Formats/Dat/src/api/DatModelImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using fin.model;
using fin.model.impl;
using fin.model.io.importer;
using fin.model.io.importers;

using schema.binary;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using fin.io;
using fin.model;
using fin.model.impl;
using fin.model.io.importer;
using fin.model.io.importers;
using fin.util.asserts;

using glo.schema;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using fin.math.matrix.four;
using fin.model;
using fin.model.impl;
using fin.model.io.importer;
using fin.model.io.importers;
using fin.schema.matrix;
using fin.util.asserts;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using fin.model;
using fin.model.io.importer;
using fin.model.io.importers;

namespace modl.api {
public class BattalionWarsModelImporter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using fin.math.rotations;
using fin.model;
using fin.model.impl;
using fin.model.io.importer;
using fin.model.io.importers;

using modl.schema.anim;
using modl.schema.anim.bw1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using fin.model;
using fin.model.impl;
using fin.model.io;
using fin.model.io.importer;
using fin.model.io.importers;
using fin.util.asserts;
using fin.util.enumerables;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using fin.model;
using fin.model.impl;
using fin.model.io;
using fin.model.io.importer;
using fin.model.io.importers;
using fin.schema.matrix;

using visceral.schema.geo;
Expand Down
2 changes: 1 addition & 1 deletion FinModelUtility/Formats/Xmod/src/api/PedModelImporter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using fin.model;
using fin.model.io.importer;
using fin.model.io.importers;

namespace xmod.api {
public class PedModelImporter : IModelImporter<PedModelFileBundle> {
Expand Down
4 changes: 2 additions & 2 deletions FinModelUtility/Games/HaloWarsTools/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
using System.Linq;

using fin.data.queue;
using fin.model.io.exporter;
using fin.model.io.exporter.assimp.indirect;
using fin.model.io.exporters;
using fin.model.io.exporters.assimp.indirect;
using fin.io;
using fin.util.gc;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using fin.model;
using fin.model.io.importer;
using fin.model.io.importers;

namespace hw.api {
public class HaloWarsModelImporter : IModelImporter<IHaloWarsModelFileBundle> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using fin.model;
using fin.model.io.importer;
using fin.model.io.importers;

using HaloWarsTools;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using fin.model;
using fin.model.io.importer;
using fin.model.io.importers;

using HaloWarsTools;

Expand Down
4 changes: 2 additions & 2 deletions FinModelUtility/ModelPluginWrappers/NoesisProgram.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using fin.model.io.exporter;
using fin.model.io.exporter.assimp.indirect;
using fin.model.io.exporters;
using fin.model.io.exporters.assimp.indirect;
using fin.io;
using fin.model;
using fin.model.impl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
using fin.io;
using fin.model;
using fin.model.io;
using fin.model.io.exporter;
using fin.model.io.exporter.assimp.indirect;
using fin.model.io.importer.assimp;
using fin.model.io.exporters;
using fin.model.io.exporters.assimp.indirect;
using fin.model.io.importers.assimp;

using j3d.api;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using cmb.api;

using fin.model.io;
using fin.model.io.importer.assimp;
using fin.model.io.importers.assimp;

using glo.api;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using Assimp;

using fin.model.io.exporter.assimp;
using fin.model.io.exporters.assimp;
using fin.io;
using fin.io.bundles;
using fin.log;
using fin.model;
using fin.model.io;
using fin.model.io.exporter;
using fin.model.io.exporter.assimp.indirect;
using fin.model.io.importer;
using fin.model.io.exporters;
using fin.model.io.exporters.assimp.indirect;
using fin.model.io.importers;
using fin.util.asserts;
using fin.util.linq;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using fin.model;
using fin.model.io;
using fin.model.io.importer;
using fin.model.io.importers;

using glo.api;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

using fin.data.queue;
using fin.model;
using fin.model.io.importer;
using fin.model.io.importers;

using schema.binary;

Expand Down

0 comments on commit 525c187

Please sign in to comment.