code optimization
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.ASM;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.ASM;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using SM64Lib.Patching;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib;
|
||||
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
using SM64Lib.ASM;
|
||||
using SM64Lib.Behaviors.Script;
|
||||
using SM64Lib.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Z.Collections.Extensions;
|
||||
using static SM64Lib.Extensions.ObjectExtensions;
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
using SM64Lib.Data;
|
||||
using SM64Lib.SegmentedBanking;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Z.Collections.Extensions;
|
||||
|
||||
namespace SM64Lib.Behaviors;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Behaviors;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
using Pilz.Cryptography;
|
||||
using Pilz.Json.Converters;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Behaviors;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Behaviors;
|
||||
namespace SM64Lib.Behaviors;
|
||||
|
||||
public class BehaviorParamInfo
|
||||
{
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using SM64Lib.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.Behaviors.Script;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.Configuration;
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using Pilz.Cryptography;
|
||||
using Pilz.Json.Converters;
|
||||
using SM64Lib.Objects.ModelBanks;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Configuration;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Configuration;
|
||||
namespace SM64Lib.Configuration;
|
||||
|
||||
public class LevelAreaConfig
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Configuration;
|
||||
namespace SM64Lib.Configuration;
|
||||
|
||||
public class LevelConfig
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Configuration;
|
||||
namespace SM64Lib.Configuration;
|
||||
|
||||
public class MusicConfiguration
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Configuration;
|
||||
namespace SM64Lib.Configuration;
|
||||
|
||||
public class ObjectModelConfig
|
||||
{
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
using global::Newtonsoft.Json.Linq;
|
||||
using global::System.IO;
|
||||
using Newtonsoft.Json;
|
||||
using SM64Lib.ASM;
|
||||
using SM64Lib.Behaviors;
|
||||
using SM64Lib.Objects.ObjectBanks;
|
||||
using SM64Lib.Objects.ObjectBanks.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Configuration;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using global::System.IO;
|
||||
|
||||
namespace SM64Lib.Data;
|
||||
namespace SM64Lib.Data;
|
||||
|
||||
public class BinaryArrayData : BinaryStreamData
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using global::System.IO;
|
||||
using SM64Lib.Data.System;
|
||||
using System;
|
||||
using SM64Lib.Data.System;
|
||||
|
||||
namespace SM64Lib.Data;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using global::System.IO;
|
||||
|
||||
namespace SM64Lib.Data;
|
||||
namespace SM64Lib.Data;
|
||||
|
||||
public class BinaryFile : BinaryStreamData
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using global::System.IO;
|
||||
|
||||
namespace SM64Lib.Data;
|
||||
namespace SM64Lib.Data;
|
||||
|
||||
public class BinaryRom : BinaryFile
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using global::SM64Lib.SegmentedBanking;
|
||||
using global::System.IO;
|
||||
|
||||
namespace SM64Lib.Data;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using global::System.IO;
|
||||
|
||||
namespace SM64Lib.Data;
|
||||
namespace SM64Lib.Data;
|
||||
|
||||
public class BinaryStreamData : BinaryData
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Linq;
|
||||
using System.Collections;
|
||||
|
||||
namespace SM64Lib.Data.System;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Data.System;
|
||||
namespace SM64Lib.Data.System;
|
||||
|
||||
internal static class SwapInts
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.EventArguments;
|
||||
namespace SM64Lib.EventArguments;
|
||||
|
||||
public class GetTextProfileInfoEventArgs : EventArgs
|
||||
{
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.EventArguments;
|
||||
namespace SM64Lib.EventArguments;
|
||||
|
||||
public class PrepairingRomEventArgs : EventArgs
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.EventArguments;
|
||||
namespace SM64Lib.EventArguments;
|
||||
|
||||
public class RomVersionEventArgs : EventArgs
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Exceptions;
|
||||
namespace SM64Lib.Exceptions;
|
||||
|
||||
public class InvalidMD5HashException : Exception
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Exceptions;
|
||||
namespace SM64Lib.Exceptions;
|
||||
|
||||
public class RomCompatiblityException : Exception
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib;
|
||||
namespace SM64Lib;
|
||||
|
||||
public class FilePathsConfiguration
|
||||
{
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
using SM64Lib.Patching;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace SM64Lib;
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
using global::SM64Lib.Geolayout.Script;
|
||||
using global::SM64Lib.Geolayout.Script.Commands;
|
||||
using global::System.IO;
|
||||
using Microsoft.VisualBasic;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Geolayout;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using global::System.Numerics;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Geolayout.Script
|
||||
{
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
using global::SM64Lib.Data;
|
||||
using global::System.IO;
|
||||
using SM64Lib.SegmentedBanking;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SM64Lib.Geolayout.Script;
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Json;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using SM64Lib.Geolayout.Script;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Json;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using SM64Lib.Behaviors.Script;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Json;
|
||||
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Z.Collections.Extensions;
|
||||
|
||||
namespace SM64Lib.Json;
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
using SM64Lib.Model.Fast3D;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO.Compression;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.Json;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using SM64Lib.Geolayout.Script;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Json;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using SM64Lib.Levels.Script;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Json;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace SM64Lib.Json;
|
||||
|
||||
|
||||
@@ -5,10 +5,7 @@ using global::SM64Lib.SegmentedBanking;
|
||||
using Microsoft.VisualBasic;
|
||||
using Newtonsoft.Json;
|
||||
using SM64Lib.Objects.ModelBanks;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.Levels;
|
||||
|
||||
|
||||
@@ -3,8 +3,6 @@ using global::SM64Lib.Levels.Script.Commands;
|
||||
using global::SM64Lib.Levels.ScrolTex;
|
||||
using global::SM64Lib.Model;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Levels;
|
||||
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
using global::SM64Lib.Model.Fast3D;
|
||||
using global::System.Drawing;
|
||||
using global::System.IO;
|
||||
using Newtonsoft.Json;
|
||||
using SM64Lib.Data.System;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Levels;
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using SM64Lib.Levels.Script;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
|
||||
namespace SM64Lib.Levels;
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using SM64Lib.Levels.Script;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.Levels;
|
||||
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using global::Newtonsoft.Json.Linq;
|
||||
using global::System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using static SM64Lib.TextValueConverter.TextValueConverter;
|
||||
|
||||
namespace SM64Lib.Levels;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Data;
|
||||
|
||||
namespace SM64Lib.Levels;
|
||||
|
||||
|
||||
@@ -7,11 +7,7 @@ using global::SM64Lib.Levels.Script.Commands;
|
||||
using global::SM64Lib.Levels.ScrolTex;
|
||||
using global::SM64Lib.Model;
|
||||
using global::SM64Lib.SegmentedBanking;
|
||||
using global::System.IO;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.Levels;
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using global::System.IO;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Levels;
|
||||
namespace SM64Lib.Levels;
|
||||
|
||||
public class LevelNumberTable : List<byte>
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using global::SM64Lib.Data;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Levels;
|
||||
|
||||
|
||||
@@ -3,12 +3,8 @@ using global::SM64Lib.Geolayout.Script;
|
||||
using global::SM64Lib.Geolayout.Script.Commands;
|
||||
using global::SM64Lib.Levels.Script;
|
||||
using global::SM64Lib.Levels.Script.Commands;
|
||||
using global::System.IO;
|
||||
using SM64Lib.Configuration;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.Levels;
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
using global::SM64Lib.Data;
|
||||
using global::SM64Lib.Levels.Script.Commands;
|
||||
using global::SM64Lib.SegmentedBanking;
|
||||
using global::System.IO;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.Levels.Script;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using global::System.Numerics;
|
||||
using Microsoft.VisualBasic;
|
||||
using SM64Lib.Data.System;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Levels.Script
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Levels.Script;
|
||||
namespace SM64Lib.Levels.Script;
|
||||
|
||||
[Serializable]
|
||||
public enum LevelscriptCommandTypes
|
||||
|
||||
@@ -4,7 +4,6 @@ using global::System.ComponentModel;
|
||||
using Newtonsoft.Json;
|
||||
using SM64Lib.Configuration;
|
||||
using SM64Lib.Data.System;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Levels.ScrolTex;
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using global::System.IO;
|
||||
using SM64Lib.Data.System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SM64Lib.Data.System;
|
||||
|
||||
namespace SM64Lib.Levels;
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
using global::SM64Lib.Levels.Script;
|
||||
using global::SM64Lib.Levels.Script.Commands;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.Levels;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Model.Collision;
|
||||
namespace SM64Lib.Model.Collision;
|
||||
|
||||
public class ColMesh
|
||||
{
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
using global::Pilz.S3DFileParser;
|
||||
using global::SM64Lib.Data;
|
||||
using global::SM64Lib.Extensions;
|
||||
using global::System.IO;
|
||||
using global::System.Numerics;
|
||||
using SM64Lib.Configuration;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SM64Lib.Model.Collision;
|
||||
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
using global::System.IO;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SM64Lib.Model.Collision;
|
||||
namespace SM64Lib.Model.Collision;
|
||||
|
||||
public class CollisionSettings
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Model.Collision;
|
||||
namespace SM64Lib.Model.Collision;
|
||||
|
||||
public class TriangleList : List<Triangle>
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Model.Collision;
|
||||
namespace SM64Lib.Model.Collision;
|
||||
|
||||
public class VertexList : List<Vertex>
|
||||
{
|
||||
|
||||
@@ -5,11 +5,6 @@ using global::SM64Lib.Model.Fast3D.DisplayLists.Script;
|
||||
using global::SM64Lib.Model.Fast3D.DisplayLists.Script.Commands;
|
||||
using global::SM64Lib.SegmentedBanking;
|
||||
using global::System.Drawing;
|
||||
using global::System.IO;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Converts = System.Convert;
|
||||
|
||||
namespace SM64Lib.Model.Conversion.Fast3DParsing;
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
using global::SM64Lib.N64Graphics;
|
||||
using global::System.Drawing;
|
||||
using global::System.IO;
|
||||
using global::System.Numerics;
|
||||
using Microsoft.VisualBasic.CompilerServices;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading.Tasks;
|
||||
using Z.Collections.Extensions;
|
||||
using static Microsoft.VisualBasic.Conversion;
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using global::Pilz.S3DFileParser;
|
||||
using global::SM64Lib.Geolayout;
|
||||
using global::SM64Lib.Model.Fast3D.DisplayLists.Script;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SM64Lib.Model.Fast3D.DisplayLists;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using global::Pilz.S3DFileParser;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Model.Fast3D.DisplayLists;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using global::System.Drawing;
|
||||
using global::System.Numerics;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Model.Fast3D.DisplayLists.Script.Commands;
|
||||
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using global::SM64Lib.Script;
|
||||
using global::System.IO;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.Model.Fast3D.DisplayLists.Script;
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
using global::SM64Lib.SegmentedBanking;
|
||||
using global::System.IO;
|
||||
using SM64Lib.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Model.Fast3D.DisplayLists.Script;
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using global::Pilz.S3DFileParser;
|
||||
using global::SM64Lib.Data;
|
||||
using global::SM64Lib.Geolayout;
|
||||
using global::System.IO;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SM64Lib.Model.Fast3D;
|
||||
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
using global::Newtonsoft.Json.Linq;
|
||||
using global::SM64Lib.Model.Conversion.Fast3DWriting;
|
||||
using global::System.Drawing;
|
||||
using global::System.IO;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using SM64Lib.Model.Conversion;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SM64Lib.Model.Fast3D;
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
using global::System.Drawing;
|
||||
using global::System.Drawing.Drawing2D;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
|
||||
namespace SM64Lib.Model.Fast3D;
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
using global::SM64Lib.Data;
|
||||
using global::SM64Lib.Geolayout;
|
||||
using global::System.IO;
|
||||
using SM64Lib.Configuration;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SM64Lib.Model;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using global::SM64Lib.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Music;
|
||||
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
using global::SM64Lib.Data;
|
||||
using global::System.IO;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.Music;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using global::SM64Lib.Data;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Music;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using global::SM64Lib.Data;
|
||||
using global::System.IO;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.NPCs;
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using global::Newtonsoft.Json.Linq;
|
||||
using global::SM64Lib.Data;
|
||||
using global::System.IO;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Objects;
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Objects;
|
||||
namespace SM64Lib.Objects;
|
||||
|
||||
public class ItemBoxContentTable : List<ItemBoxContentEntry>
|
||||
{
|
||||
|
||||
@@ -3,11 +3,8 @@ using global::SM64Lib.Data;
|
||||
using global::SM64Lib.Levels.Script;
|
||||
using global::SM64Lib.Levels.Script.Commands;
|
||||
using global::SM64Lib.SegmentedBanking;
|
||||
using global::System.IO;
|
||||
using Microsoft.VisualBasic;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Objects.ModelBanks;
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using SM64Lib.ASM;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Z.Collections.Extensions;
|
||||
|
||||
namespace SM64Lib.Objects.ObjectBanks;
|
||||
|
||||
@@ -6,9 +6,6 @@ using SM64Lib.Behaviors;
|
||||
using SM64Lib.Configuration;
|
||||
using SM64Lib.Json;
|
||||
using SM64Lib.Objects.ModelBanks;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
|
||||
namespace SM64Lib.Objects.ObjectBanks;
|
||||
|
||||
@@ -6,7 +6,6 @@ using SM64Lib.Configuration;
|
||||
using SM64Lib.Json;
|
||||
using SM64Lib.Objects.ModelBanks;
|
||||
using SM64Lib.Patching;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Objects.ObjectBanks;
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ using SM64Lib.ASM;
|
||||
using SM64Lib.Behaviors;
|
||||
using SM64Lib.Configuration;
|
||||
using SM64Lib.Objects.ModelBanks;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Objects.ObjectBanks;
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using SM64Lib.ASM;
|
||||
using SM64Lib.Behaviors;
|
||||
using SM64Lib.Configuration;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Z.Collections.Extensions;
|
||||
|
||||
namespace SM64Lib.Objects.ObjectBanks;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Objects.ObjectBanks.Data;
|
||||
namespace SM64Lib.Objects.ObjectBanks.Data;
|
||||
|
||||
public class ObjectBankData
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Objects.ObjectBanks.Data;
|
||||
namespace SM64Lib.Objects.ObjectBanks.Data;
|
||||
|
||||
public class ObjectBankDataList : List<ObjectBankData>
|
||||
{
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using global::Newtonsoft.Json.Linq;
|
||||
using global::System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.Objects.ObjectBanks.Data;
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
using global::SM64Lib.Data;
|
||||
using global::System.IO;
|
||||
using global::System.Numerics;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib.Objects;
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using global::SM64Lib.Data;
|
||||
using global::System.IO;
|
||||
using global::System.Windows.Forms;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace SM64Lib.Patching;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
|
||||
namespace SM64Lib.Patching;
|
||||
|
||||
|
||||
@@ -3,11 +3,8 @@ using Newtonsoft.Json.Converters;
|
||||
using Pilz.Cryptography;
|
||||
using Pilz.IO;
|
||||
using Pilz.Json.Converters;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Specialized;
|
||||
using System.ComponentModel;
|
||||
using System.IO;
|
||||
using VersionConverter = Newtonsoft.Json.Converters.VersionConverter;
|
||||
|
||||
namespace SM64Lib.Patching;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Pilz.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace SM64Lib.Patching;
|
||||
|
||||
@@ -6,12 +6,8 @@ using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Pilz.Cryptography;
|
||||
using Pilz.IO;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.Loader;
|
||||
using System.Windows.Forms;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib.Patching;
|
||||
namespace SM64Lib.Patching;
|
||||
|
||||
public class PatchScriptReferences : List<PatchScriptReference>
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using global::System;
|
||||
using global::System.Runtime.InteropServices;
|
||||
using global::System.Runtime.InteropServices;
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird.
|
||||
|
||||
@@ -8,18 +8,14 @@ using global::SM64Lib.Music;
|
||||
using global::SM64Lib.Objects.ModelBanks;
|
||||
using global::SM64Lib.SegmentedBanking;
|
||||
using global::System.ComponentModel;
|
||||
using global::System.IO;
|
||||
using global::System.Text;
|
||||
using SM64Lib.ASM;
|
||||
using SM64Lib.Behaviors;
|
||||
using SM64Lib.Exceptions;
|
||||
using SM64Lib.Objects.ObjectBanks;
|
||||
using SM64Lib.Patching;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
|
||||
namespace SM64Lib;
|
||||
|
||||
@@ -726,23 +722,23 @@ public class RomManager
|
||||
try
|
||||
{
|
||||
#endif
|
||||
switch (segID)
|
||||
{
|
||||
case 0x19:
|
||||
if (IsSM64EditorMode)
|
||||
lvl = new SM64ELevel(ldi.ID, ldi.Index, this);
|
||||
else
|
||||
lvl = new RMLevel(RomConfig.GetLevelConfig(ldi.ID), this);
|
||||
LevelManager.LoadLevel(lvl, this, ldi.ID, offset);
|
||||
lvl.LastRomOffset = curLvlSeg.RomStart; // Original Level
|
||||
break;
|
||||
default:
|
||||
lvl = null;
|
||||
// Dim mgr As New OriginalLevelManager
|
||||
// lvl = New OriginalLevel
|
||||
// mgr.LoadLevel(lvl, Me, ldi.ID, offset)
|
||||
break;
|
||||
}
|
||||
switch (segID)
|
||||
{
|
||||
case 0x19:
|
||||
if (IsSM64EditorMode)
|
||||
lvl = new SM64ELevel(ldi.ID, ldi.Index, this);
|
||||
else
|
||||
lvl = new RMLevel(RomConfig.GetLevelConfig(ldi.ID), this);
|
||||
LevelManager.LoadLevel(lvl, this, ldi.ID, offset);
|
||||
lvl.LastRomOffset = curLvlSeg.RomStart; // Original Level
|
||||
break;
|
||||
default:
|
||||
lvl = null;
|
||||
// Dim mgr As New OriginalLevelManager
|
||||
// lvl = New OriginalLevel
|
||||
// mgr.LoadLevel(lvl, Me, ldi.ID, offset)
|
||||
break;
|
||||
}
|
||||
#if !DEBUG
|
||||
}
|
||||
catch (Exception)
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM64Lib;
|
||||
namespace SM64Lib;
|
||||
|
||||
public static class RomManagerInstances
|
||||
{
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user