Fix encoding.

This commit is contained in:
2023-03-26 23:25:20 +08:00
parent aafc326f95
commit 824f401b77
203 changed files with 227 additions and 224 deletions

View File

@@ -1,6 +1,9 @@
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true
[*]
charset = utf-8
# C# files
[*.cs]

View File

@@ -1,4 +1,4 @@
using System;
using System;
namespace Cryville.Common {
/// <summary>

View File

@@ -1,4 +1,4 @@
namespace Cryville.Common.Buffers {
namespace Cryville.Common.Buffers {
/// <summary>
/// A resource pool that allows reusing instances of arrays of type <typeparamref name="T" />.
/// </summary>

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace Cryville.Common.Buffers {
/// <summary>

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace Cryville.Common.Buffers {
/// <summary>

View File

@@ -1,4 +1,4 @@
namespace Cryville.Common.Buffers {
namespace Cryville.Common.Buffers {
/// <summary>
/// A resource pool that allows reusing instances of type <typeparamref name="T" />.
/// </summary>

View File

@@ -1,4 +1,4 @@
namespace Cryville.Common.Buffers {
namespace Cryville.Common.Buffers {
/// <summary>
/// A resource pool that allows reusing instances of type <typeparamref name="T" />, which has a parameterless constructor.
/// </summary>

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace Cryville.Common.Collections.Generic {
public interface IPairList<TKey, TValue> : IList<KeyValuePair<TKey, TValue>> {

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Diagnostics.Contracts;
using System.Runtime.CompilerServices;
using System.Runtime.ConstrainedExecution;

View File

@@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
namespace Cryville.Common.Collections {
public interface IPairList : IList {

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Diagnostics;
namespace Cryville.Common.Collections {

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;

View File

@@ -1,4 +1,4 @@
using System;
using System;
namespace Cryville.Common.ComponentModel {
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]

View File

@@ -1,4 +1,4 @@
using System;
using System;
namespace Cryville.Common.ComponentModel {
[AttributeUsage(AttributeTargets.Property, Inherited = false)]

View File

@@ -1,4 +1,4 @@
using System;
using System;
namespace Cryville.Common.ComponentModel {
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]

View File

@@ -1,4 +1,4 @@
using System;
using System;
namespace Cryville.Common.ComponentModel {
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;

View File

@@ -1,4 +1,4 @@
using System;
using System;
namespace Cryville.Common {
public class FileStringAttribute : Attribute {

View File

@@ -1,4 +1,4 @@
using Cryville.Common.IO;
using Cryville.Common.IO;
using System;
using System.Collections;
using System.Collections.Generic;

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.IO;
using System.Linq;

View File

@@ -1,4 +1,4 @@
using Cryville.Common.Culture;
using Cryville.Common.Culture;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

View File

@@ -1,4 +1,4 @@
using System.IO;
using System.IO;
using System.Linq;
namespace Cryville.Common.Font {

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Text;

View File

@@ -1,4 +1,4 @@
using System;
using System;
namespace Cryville.Common {
public struct Identifier : IEquatable<Identifier> {

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace Cryville.Common {
/// <summary>

View File

@@ -1,4 +1,4 @@
using SMath = System.Math;
using SMath = System.Math;
namespace Cryville.Common.Math {
// Ported from https://github.com/arian/cubic-bezier/blob/master/index.js

View File

@@ -1,4 +1,4 @@
using System;
using System;
namespace Cryville.Common.Math {
/// <summary>

View File

@@ -1,4 +1,4 @@
using UnsafeIL;
using UnsafeIL;
namespace Cryville.Common.Math {
/// <summary>

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
@@ -130,4 +130,4 @@ namespace Cryville.Common.Network {
}
}
}
}
}

View File

@@ -1,4 +1,4 @@
using System;
using System;
namespace Cryville.Common.Pdt {
/// <summary>

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Text;

View File

@@ -1,4 +1,4 @@
namespace Cryville.Common.Pdt {
namespace Cryville.Common.Pdt {
/// <summary>
/// The identifiers of the internal types of PDT.
/// </summary>

View File

@@ -1,4 +1,4 @@
using Cryville.Common.Collections;
using Cryville.Common.Collections;
using System;
using System.Collections;
using System.Collections.Generic;

View File

@@ -1,4 +1,4 @@
using System;
using System;
namespace Cryville.Common.Pdt {
/// <summary>
@@ -116,4 +116,4 @@ namespace Cryville.Common.Pdt {
return string.Format("{0}({1})", IdentifierManager.SharedInstance.Retrieve(Name), ParamCount);
}
}
}
}

View File

@@ -1,4 +1,4 @@
using System;
using System;
using UnsafeIL;
namespace Cryville.Common.Pdt {

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Text;
using System.Text.RegularExpressions;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using UnityEngine;
namespace Cryville.Common.Unity {

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using UnityEngine;
namespace Cryville.Common.Unity.Input {

View File

@@ -1,4 +1,4 @@
namespace Cryville.Common.Unity.Input {
namespace Cryville.Common.Unity.Input {
public enum WindowMessages : uint {
WM_NULL = 0x0000,
WM_CREATE = 0x0001,

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Runtime.InteropServices;
using System.Text;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
namespace Cryville.Common.Unity.Input {

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
namespace Cryville.Common.Unity.Input {
public static class UnityCameraUtils {

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using UnityEngine;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_5_4_OR_NEWER

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
using System.IO;
using System.Reflection;

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
using System.Reflection;
using UnityEngine;

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
namespace Cryville.Common.Unity.UI {
/// <summary>

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
using UnityEngine.UI;
namespace Cryville.Common.Unity.UI {

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
namespace Cryville.Common.Unity.UI {
/// <summary>

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
using UnityEngine.UI;
namespace Cryville.Common.Unity.UI {

View File

@@ -1,4 +1,4 @@
using System;
using System;
using UnityEngine;
using UnityEngine.Sprites;
using UnityEngine.UI;

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
using UnityEngine.UI;
namespace Cryville.Common.Unity.UI {

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
using UnityEngine.UI;
namespace Cryville.Common.Unity.UI {

View File

@@ -1,4 +1,4 @@
using System;
using System;
using UnityEngine;
using UnityEngine.UI;

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
namespace Cryville.Common.Unity.UI {
public class SetIntegerParameterBehaviour : SetParameterBehaviour {

View File

@@ -1,4 +1,4 @@
using Cryville.Common.Collections.Specialized;
using Cryville.Common.Collections.Specialized;
using UnityEngine;
namespace Cryville.Crtr {
@@ -14,4 +14,4 @@ namespace Cryville.Crtr {
SkinContext = new SkinContext(transform, PropSrcs);
}
}
}
}

View File

@@ -1,4 +1,4 @@
using Cryville.Common;
using Cryville.Common;
using UnityEngine;
namespace Cryville.Crtr.Browsing {
@@ -18,4 +18,4 @@ namespace Cryville.Crtr.Browsing {
public string DescriptionMain { get; set; }
public string DescriptionSub { get; set; }
}
}
}

View File

@@ -1,4 +1,4 @@
using TMPro;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
@@ -50,4 +50,4 @@ namespace Cryville.Crtr.Browsing {
else resourceBrowser.OnObjectItemClicked(Id.Value);
}
}
}
}

View File

@@ -1,4 +1,4 @@
using Cryville.Common;
using Cryville.Common;
using Cryville.Common.Unity.UI;
using System;
using TMPro;
@@ -67,4 +67,4 @@ namespace Cryville.Crtr.Browsing {
Master.OpenConfig(_id, _data);
}
}
}
}

View File

@@ -1,4 +1,4 @@
using Cryville.Common;
using Cryville.Common;
using Cryville.Crtr.Extension;
using Mono.Cecil;
using System;

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace Cryville.Crtr.Browsing {
public interface IResourceManager<T> {
@@ -14,4 +14,4 @@ namespace Cryville.Crtr.Browsing {
string[] GetSupportedFormats();
IReadOnlyDictionary<string, string> GetPresetPaths();
}
}
}

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
using UnityEngine.EventSystems;
namespace Cryville.Crtr.Browsing {

View File

@@ -1,4 +1,4 @@
using System;
using System;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

View File

@@ -1,4 +1,4 @@
using UnityEngine.UI;
using UnityEngine.UI;
namespace Cryville.Crtr.Browsing {
public class PVPString : PropertyValuePanel {

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
using UnityEngine.UI;
namespace Cryville.Crtr.Browsing {
@@ -24,4 +24,4 @@ namespace Cryville.Crtr.Browsing {
GetComponentInParent<ResourceBrowser>().OnPathClicked(_id);
}
}
}
}

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;
using UnityEngine.UI;
@@ -48,4 +48,4 @@ namespace Cryville.Crtr.Browsing {
_nameLabel.text = (Collapsed ? "+ " : "- ") + Name;
}
}
}
}

View File

@@ -1,4 +1,4 @@
using Cryville.Common.ComponentModel;
using Cryville.Common.ComponentModel;
using System.Reflection;
using UnityEngine;
using UnityEngine.UI;
@@ -73,4 +73,4 @@ namespace Cryville.Crtr.Browsing {
GetValueFromObject();
}
}
}
}

View File

@@ -1,4 +1,4 @@
using System;
using System;
using UnityEngine;
namespace Cryville.Crtr.Browsing {

View File

@@ -1,4 +1,4 @@
using Cryville.Common.Unity;
using Cryville.Common.Unity;
using Cryville.Common.Unity.UI;
using System;
using UnityEngine;

View File

@@ -1,4 +1,4 @@
using Cryville.Common;
using Cryville.Common;
using Cryville.Common.Unity.UI;
using Cryville.Crtr.Config;
using Cryville.Crtr.Extension;

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
namespace Cryville.Crtr.Browsing {
public abstract class ResourceBrowserUnit : MonoBehaviour {
@@ -9,4 +9,4 @@ namespace Cryville.Crtr.Browsing {
public virtual void SlideToLeft() { }
public virtual void SlideToRight() { }
}
}
}

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;

View File

@@ -1,4 +1,4 @@
using Cryville.Common;
using Cryville.Common;
using Cryville.Common.Collections.Specialized;
using Newtonsoft.Json;
using System;

View File

@@ -1,4 +1,4 @@
namespace Cryville.Crtr {
namespace Cryville.Crtr {
public struct Clip {
public float Behind { get; set; }
public float Ahead { get; set; }

View File

@@ -1,4 +1,4 @@
using System;
using System;
using UnityEngine;
namespace Cryville.Crtr.Components {

View File

@@ -1,4 +1,4 @@
using Cryville.Common;
using Cryville.Common;
using System;
using UnityEngine;
using Logger = Cryville.Common.Logger;

View File

@@ -1,4 +1,4 @@
using Cryville.Common;
using Cryville.Common;
using Cryville.Common.Collections.Specialized;
using Cryville.Common.Pdt;
using UnityEngine;

View File

@@ -1,4 +1,4 @@
using Cryville.Common.Pdt;
using Cryville.Common.Pdt;
using UnityEngine;
namespace Cryville.Crtr.Components {

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
namespace Cryville.Crtr.Components {
public class SpriteRect : SpriteBase {

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using UnityEngine;

View File

@@ -1,4 +1,4 @@
using Cryville.Common.Buffers;
using Cryville.Common.Buffers;
using Cryville.Common.Pdt;
using System;
using System.Collections.Generic;

View File

@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
namespace Cryville.Crtr.Components {
public class TransformInterface : SkinComponent {

View File

@@ -1,4 +1,4 @@
using Newtonsoft.Json;
using Newtonsoft.Json;
using System;
using System.IO;
using System.Text;

View File

@@ -1,4 +1,4 @@
using Cryville.Common;
using Cryville.Common;
using Cryville.Common.Unity;
using Cryville.Common.Unity.Input;
using System.Collections.Generic;

View File

@@ -1,4 +1,4 @@
using Cryville.Common;
using Cryville.Common;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

View File

@@ -1,4 +1,4 @@
using Cryville.Common.ComponentModel;
using Cryville.Common.ComponentModel;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;

View File

@@ -1,4 +1,4 @@
using Cryville.Common.Network;
using Cryville.Common.Network;
using System;
using System.Collections.Generic;
using System.Threading;

View File

@@ -1,4 +1,4 @@
using Discord;
using Discord;
using System;
using UnityEngine;
using Logger = Cryville.Common.Logger;

View File

@@ -1,4 +1,4 @@
using Cryville.Common.Buffers;
using Cryville.Common.Buffers;
using System.Collections.Generic;
using UnityEngine;

View File

@@ -1,4 +1,4 @@
using Cryville.Common;
using Cryville.Common;
using Cryville.Crtr.Components;
using Cryville.Crtr.Event;
using System;

View File

@@ -1,4 +1,4 @@
using Cryville.Common.Collections.Specialized;
using Cryville.Common.Collections.Specialized;
using UnityEngine;
namespace Cryville.Crtr {

Some files were not shown because too many files have changed in this diff Show More