Skip to content

Commit

Permalink
Clean-up imports.
Browse files Browse the repository at this point in the history
I don't know if this are all the imports that can be removed but it's already a lot of them.
  • Loading branch information
Delta-473 committed Dec 9, 2024
1 parent f925633 commit 83295db
Show file tree
Hide file tree
Showing 309 changed files with 1,570 additions and 2,610 deletions.
5 changes: 0 additions & 5 deletions IteEditor/IteEntry.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using OpenKh.Bbs.SystemData;

Expand Down
7 changes: 0 additions & 7 deletions IteEditor/MainForm.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using OpenKh.Bbs;
Expand Down
3 changes: 0 additions & 3 deletions IteEditor/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace OpenKh.Tools.IteEditor
Expand Down
1 change: 0 additions & 1 deletion OpenKh.Command.Bar/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using McMaster.Extensions.CommandLineUtils;
using Newtonsoft.Json;
using System;
using System.ComponentModel.DataAnnotations;
using System.IO;
Expand Down
4 changes: 0 additions & 4 deletions OpenKh.Command.CoctChanger/Program.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
using McMaster.Extensions.CommandLineUtils;
using McMaster.Extensions.CommandLineUtils.Conventions;
using OpenKh.Command.CoctChanger.Utils;
using OpenKh.Common;
using OpenKh.Kh2;
using OpenKh.Kh2.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net.Http.Headers;
using System.Numerics;
using System.Reflection;
using System.Text;

namespace OpenKh.Command.CoctChanger
{
Expand Down
4 changes: 0 additions & 4 deletions OpenKh.Command.CoctChanger/Utils/DumpCoctUtil.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using OpenKh.Kh2;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace OpenKh.Command.CoctChanger.Utils
{
Expand Down
3 changes: 0 additions & 3 deletions OpenKh.Command.CoctChanger/Utils/ObjDumpUtil.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Numerics;
using System.Text;

namespace OpenKh.Command.CoctChanger.Utils
{
Expand Down
3 changes: 0 additions & 3 deletions OpenKh.Command.DoctChanger/Utils/DumpDoctUtil.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
using System.Text;
using OpenKh.Kh2;
using System.IO;
using System.Linq;
Expand Down
2 changes: 0 additions & 2 deletions OpenKh.Command.HdAssets/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
using OpenKh.Common;
using OpenKh.Egs;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.IO;
using System.Linq;
using System.Reflection;

namespace OpenKh.Command.HdAssets
Expand Down
7 changes: 0 additions & 7 deletions OpenKh.Command.IdxImg/EpicGamesAssets.cs
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
using Ionic.Zlib;
using McMaster.Extensions.CommandLineUtils;
using OpenKh.Bbs;
using OpenKh.Common;
using OpenKh.Egs;
using OpenKh.Kh1;
using OpenKh.Kh2;
using OpenKh.Patcher;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using Xe.BinaryMapper;

namespace OpenKh.Command.IdxImg
{
Expand Down
4 changes: 0 additions & 4 deletions OpenKh.Command.ImgTool/Interfaces/ICommonQuantizerParam.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace OpenKh.Command.ImgTool.Interfaces
{
public interface ICommonQuantizerParam
Expand Down
4 changes: 0 additions & 4 deletions OpenKh.Command.ImgTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@
using System.ComponentModel.DataAnnotations;
using System.IO;
using System.Linq;
using System.Net.Http.Headers;
using System.Reflection;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Threading.Tasks.Dataflow;

namespace OpenKh.Command.ImgTool
{
Expand Down
3 changes: 0 additions & 3 deletions OpenKh.Command.ImgTool/Utils/ImgdBitmapUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using OpenKh.Common;
using OpenKh.Imaging;
using OpenKh.Kh2;
using static System.Drawing.Imaging.PixelFormat;

namespace OpenKh.Kh2.Utils
{
Expand Down
1 change: 0 additions & 1 deletion OpenKh.Command.ImgTool/Utils/QuantizerFactory.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using nQuant.Core.TrueColor;

Check failure on line 1 in OpenKh.Command.ImgTool/Utils/QuantizerFactory.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'Core' does not exist in the namespace 'nQuant' (are you missing an assembly reference?)
using OpenKh.Command.ImgTool.Interfaces;
using OpenKh.Imaging;
using OpenKh.Kh2;
using System;
using System.Collections.Generic;
using System.Diagnostics;
Expand Down
5 changes: 0 additions & 5 deletions OpenKh.Command.MapGen/Interfaces/ICollisionBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using OpenKh.Command.MapGen.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenKh.Command.MapGen.Interfaces
{
Expand Down
4 changes: 0 additions & 4 deletions OpenKh.Command.MapGen/Interfaces/ISpatialNodeCutter.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using OpenKh.Command.MapGen.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenKh.Command.MapGen.Interfaces
{
Expand Down
3 changes: 0 additions & 3 deletions OpenKh.Command.MapGen/Models/BSPNodeSplitter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace OpenKh.Command.MapGen.Models
{
Expand Down
47 changes: 22 additions & 25 deletions OpenKh.Command.MapGen/Models/MapGenConfig.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using OpenKh.Command.MapGen.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace OpenKh.Command.MapGen.Models
{
Expand Down Expand Up @@ -98,27 +95,27 @@ public MaterialDef FindMaterial(string name)

public bool nococt { get; set; }

public bool nodoct { get; set; }

public int collisionPartitionSize { get; set; } = 300;

public int doctPartitionSize { get; set; } = 500;

public class FogData
{
public uint color { get; set; }
public float min { get; set; }
public float max { get; set; }
public float near { get; set; }
public float far { get; set; }
}

public FogData fog { get; set; }

public const uint DefaultBgColor = 0x80000000U;

public uint bgColor { get; set; } = DefaultBgColor;

public uint[] onColorTable { get; set; }
public bool nodoct { get; set; }

public int collisionPartitionSize { get; set; } = 300;

public int doctPartitionSize { get; set; } = 500;

public class FogData
{
public uint color { get; set; }
public float min { get; set; }
public float max { get; set; }
public float near { get; set; }
public float far { get; set; }
}

public FogData fog { get; set; }

public const uint DefaultBgColor = 0x80000000U;

public uint bgColor { get; set; } = DefaultBgColor;

public uint[] onColorTable { get; set; }
}
}
3 changes: 0 additions & 3 deletions OpenKh.Command.MapGen/Models/MaterialContainer.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenKh.Command.MapGen.Models
{
Expand Down
87 changes: 41 additions & 46 deletions OpenKh.Command.MapGen/Models/MaterialDef.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
using Microsoft.VisualBasic.CompilerServices;
using System;
using System.Collections.Generic;
using System.Text;

namespace OpenKh.Command.MapGen.Models
{
public class MaterialDef
{
{
/// <summary>
/// model's material name matching by simple pattern
/// </summary>
Expand Down Expand Up @@ -40,8 +35,8 @@ public class MaterialDef
/// <summary>
/// Generate camera clip
/// </summary>
public bool cameraClip { get; set; } = false;

public bool cameraClip { get; set; } = false;

/// <summary>
/// Generate light clip
/// </summary>
Expand Down Expand Up @@ -76,48 +71,48 @@ public class MaterialDef

public short? transparentFlag { get; set; }

public int? uvscIndex { get; set; }

/// <summary>
/// Ground value in collision. Such as 30, 25, 8, 2, 1, or 0
/// </summary>
public byte ground { get; set; }

/// <summary>
/// FloorLevel value in collision
/// </summary>
public byte floorLevel { get; set; }

/// <summary>
/// Collision.Attributes for camera collision. Still unknown. Such as 0x000003F0
/// </summary>
public int cameraFlags { get; set; }

/// <summary>
/// Collision.Attributes for light collision. Still unknown. Such as 0x000803F1
/// </summary>
public int lightFlags { get; set; }

/// <summary>
/// Drop no shadow?
/// </summary>
public bool noShadow { get; set; }

/// <summary>
/// Additive alpha blending?
/// </summary>
public bool alphaAdd { get; set; }

/// <summary>
/// Subtractive alpha blending?
/// </summary>
public bool alphaSubtract { get; set; }

public int? uvscIndex { get; set; }

/// <summary>
/// Ground value in collision. Such as 30, 25, 8, 2, 1, or 0
/// </summary>
public byte ground { get; set; }

/// <summary>
/// FloorLevel value in collision
/// </summary>
public byte floorLevel { get; set; }

/// <summary>
/// Collision.Attributes for camera collision. Still unknown. Such as 0x000003F0
/// </summary>
public int cameraFlags { get; set; }

/// <summary>
/// Collision.Attributes for light collision. Still unknown. Such as 0x000803F1
/// </summary>
public int lightFlags { get; set; }

/// <summary>
/// Drop no shadow?
/// </summary>
public bool noShadow { get; set; }

/// <summary>
/// Additive alpha blending?
/// </summary>
public bool alphaAdd { get; set; }

/// <summary>
/// Subtractive alpha blending?
/// </summary>
public bool alphaSubtract { get; set; }

/// <summary>
/// Enable normal vector
/// </summary>
public bool normal { get; set; } = false;


public static MaterialDef CreateFallbackFor(string name) =>
new MaterialDef
{
Expand Down
5 changes: 0 additions & 5 deletions OpenKh.Command.MapGen/Models/SingleFace.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using Xe.Graphics;

namespace OpenKh.Command.MapGen.Models
Expand Down
4 changes: 0 additions & 4 deletions OpenKh.Command.MapGen/Models/SingleNodeEmitter.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using OpenKh.Command.MapGen.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenKh.Command.MapGen.Models
{
Expand Down
Loading

0 comments on commit 83295db

Please sign in to comment.