Code cleanup.

This commit is contained in:
2022-10-30 18:18:21 +08:00
parent 13131b0f31
commit 92a49294f7
16 changed files with 12 additions and 23 deletions

View File

@@ -1,3 +1,4 @@
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Globalization;
@@ -5,7 +6,6 @@ using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using Microsoft.Win32;
namespace Cryville.Common.Network {
public class HttpClient {

View File

@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using static Cryville.Crtr.Cocos2dFrames;
namespace Cryville.Common.Pdt {
/// <summary>

View File

@@ -1,7 +1,6 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
namespace Cryville.Common.Plist {

View File

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

View File

@@ -1,5 +1,5 @@
using UnityEngine;
using System;
using System;
using UnityEngine;
namespace Cryville.Common.Unity {
static class CallHelper {

View File

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

View File

@@ -1,11 +1,11 @@
using Cryville.Common;
using Cryville.Common.Unity;
using System;
using System.IO;
using UnityEngine;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEngine;
namespace Cryville.Crtr.Browsing {
internal class LegacyResourceManager : IResourceManager<ChartDetail> {

View File

@@ -1,5 +1,4 @@
using Cryville.Common.Unity.UI;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;
using UnityEngine.UI;

View File

@@ -1,6 +1,5 @@
using Cryville.Common;
using Cryville.Common.Unity.UI;
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

View File

@@ -280,7 +280,7 @@ namespace Cryville.Crtr {
if (m.Groups[3].Success) {
ushort id = ushort.Parse(m.Groups[3].Value);
Vec1 time = m.Groups[5].Success ? new Vec1(m.Groups[5].Value) : null;
byte? trs = m.Groups[7].Success ? byte.Parse(m.Groups[7].Value) : (byte?)null;
byte? trs = m.Groups[7].Success ? byte.Parse(m.Groups[7].Value) : null;
Vec1 rate = m.Groups[9].Success ? new Vec1(m.Groups[9].Value) : null;
Vector value = m.Groups[11].Success ? Vector.Construct(registry.Type, m.Groups[11].Value) : null;
RelativeNode = new MotionNode() {
@@ -333,9 +333,9 @@ namespace Cryville.Crtr {
[JsonIgnore]
public MotionNode RelativeNode;
[DefaultValue(TransitionType.Ease)]
[DefaultValue(TransitionType.Ease)] // TODO [Obsolete]
public TransitionType transition = TransitionType.Ease;
[DefaultValue(1.0f)]
[DefaultValue(1.0f)] // TODO [Obsolete]
public float rate = 1.0f;
[DefaultValue(0.0f)]
public float sumfix = 0.0f;

View File

@@ -1,7 +1,6 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Cryville.Crtr.Event {
public class EventBatch : IComparable<EventBatch>, IEnumerable<StampedEvent> {

View File

@@ -1,7 +1,6 @@
using Cryville.Common.Unity.Input;
using System;
using System.Collections.Generic;
using System.Xml.Linq;
namespace Cryville.Crtr {
public class InputProxy {

View File

@@ -1,7 +1,6 @@
using Cryville.Common.Pdt;
using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
using UnityEngine;
namespace Cryville.Crtr {

View File

@@ -6,7 +6,6 @@ using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Linq;
namespace Cryville.Crtr {
public class Ruleset {

View File

@@ -18,7 +18,6 @@ namespace Cryville.Crtr {
case '@':
GetChar();
a.Add(GetIdentifier());
key = null;
break;
case '$':
GetChar();

View File

@@ -1,7 +1,6 @@
using Cryville.Crtr.Components;
using Cryville.Crtr.Event;
using UnityEngine;
using Logger = Cryville.Common.Logger;
namespace Cryville.Crtr {
class TrackHandler : ContainerHandler {