规范命名空间
具体来说就是 SepCore 开头,然后接所属的模块名,比如 SepCore.Entity,SepCore.Simulation,SepCore.Procedure
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.IO;
|
||||
using GameFramework;
|
||||
using UnityEngine;
|
||||
using UnityGameFramework.Editor;
|
||||
using UnityGameFramework.Editor.ResourceTools;
|
||||
@@ -8,19 +9,15 @@ namespace SepCore.Editor
|
||||
public static class GameFrameworkConfigs
|
||||
{
|
||||
[BuildSettingsConfigPath] public static string BuildSettingsConfig =
|
||||
GameFramework.Utility.Path.GetRegularPath(Path.Combine(Application.dataPath,
|
||||
"GameMain/Configs/BuildSettings.xml"));
|
||||
Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "GameMain/Configs/BuildSettings.xml"));
|
||||
|
||||
[ResourceCollectionConfigPath] public static string ResourceCollectionConfig =
|
||||
GameFramework.Utility.Path.GetRegularPath(Path.Combine(Application.dataPath,
|
||||
"GameMain/Configs/ResourceCollection.xml"));
|
||||
Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "GameMain/Configs/ResourceCollection.xml"));
|
||||
|
||||
[ResourceEditorConfigPath] public static string ResourceEditorConfig =
|
||||
GameFramework.Utility.Path.GetRegularPath(Path.Combine(Application.dataPath,
|
||||
"GameMain/Configs/ResourceEditor.xml"));
|
||||
Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "GameMain/Configs/ResourceEditor.xml"));
|
||||
|
||||
[ResourceBuilderConfigPath] public static string ResourceBuilderConfig =
|
||||
GameFramework.Utility.Path.GetRegularPath(Path.Combine(Application.dataPath,
|
||||
"GameMain/Configs/ResourceBuilder.xml"));
|
||||
Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "GameMain/Configs/ResourceBuilder.xml"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using CustomComponent;
|
||||
using SepCore.DataTable;
|
||||
using SepCore.Definition;
|
||||
using Entity;
|
||||
using CustomUtility;
|
||||
using Procedure;
|
||||
using SepCore.Entity;
|
||||
using SepCore.Procedure;
|
||||
using SepCore.EnemyManager;
|
||||
using SepCore.CustomUtility;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#if UNITY_EDITOR
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using SepCore.CustomComponent;
|
||||
using SepCore.UI;
|
||||
using SepCore.UIRouter;
|
||||
using UnityEditor;
|
||||
using UnityEditorInternal;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UIModule.Editor
|
||||
namespace SepCore.Editor
|
||||
{
|
||||
[CustomEditor(typeof(UIRouterComponent))]
|
||||
public class UIRouterComponentEditor : UnityEditor.Editor
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace SepCore.Editor
|
||||
string outputFullPath, bool outputPackedSelected, string outputPackedPath, string buildReportPath)
|
||||
{
|
||||
string streamingAssetsPath =
|
||||
GameFramework.Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "StreamingAssets"));
|
||||
Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "StreamingAssets"));
|
||||
string[] fileNames = Directory.GetFiles(streamingAssetsPath, "*", SearchOption.AllDirectories);
|
||||
foreach (string fileName in fileNames)
|
||||
{
|
||||
@@ -34,7 +34,7 @@ namespace SepCore.Editor
|
||||
File.Delete(fileName);
|
||||
}
|
||||
|
||||
GameFramework.Utility.Path.RemoveEmptyDirectory(streamingAssetsPath);
|
||||
Utility.Path.RemoveEmptyDirectory(streamingAssetsPath);
|
||||
}
|
||||
|
||||
public void OnPostprocessAllPlatforms(string productName, string companyName, string gameIdentifier,
|
||||
@@ -79,11 +79,11 @@ namespace SepCore.Editor
|
||||
}
|
||||
|
||||
string streamingAssetsPath =
|
||||
GameFramework.Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "StreamingAssets"));
|
||||
Utility.Path.GetRegularPath(Path.Combine(Application.dataPath, "StreamingAssets"));
|
||||
string[] fileNames = Directory.GetFiles(outputPackagePath, "*", SearchOption.AllDirectories);
|
||||
foreach (string fileName in fileNames)
|
||||
{
|
||||
string destFileName = GameFramework.Utility.Path.GetRegularPath(Path.Combine(streamingAssetsPath,
|
||||
string destFileName = Utility.Path.GetRegularPath(Path.Combine(streamingAssetsPath,
|
||||
fileName.Substring(outputPackagePath.Length)));
|
||||
FileInfo destFileInfo = new FileInfo(destFileName);
|
||||
if (!destFileInfo.Directory.Exists)
|
||||
|
||||
Reference in New Issue
Block a user