调整 Event 和 Editor 命名空间
- 将原来的 CustomEvent 调整到 SepCore.Event - 将 Editor 文件夹下的统一到 SepCore.Editor,顺带修改了 Editor 程序集
This commit is contained in:
parent
34c0784190
commit
affa44e4d0
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using Components;
|
||||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using SepCore.DataTable;
|
||||
using SepCore.Definition;
|
||||
using Entity.EntityData;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ using GameFramework;
|
|||
using GameFramework.Event;
|
||||
using UnityEngine;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public sealed class ProjectileHitPresentationEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class DisplayItemInfoHideEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class DisplayItemInfoLockEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ using GameFramework;
|
|||
using GameFramework.Event;
|
||||
using UnityEngine;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class DisplayItemShowEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class LevelProcessEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class LevelUpPropSelectedEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class MenuAboutButtonClickEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class MenuFileButtonClickEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class MenuGuideButtonClickEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class MenuQuitButtonClickEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class MenuSelectRoleConfirmEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class MenuSelectRoleReturnEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class MenuSelectRoleSelectedEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class MenuSettingButtonClickEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class MenuStartGameEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class PlayerCoinChangeEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class PlayerExpChangeEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class PlayerHealthChangeEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class PlayerLevelUpEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class RefreshEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class ShopContinueEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class ShopPurchaseEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
namespace SepCore.Event
|
||||
{
|
||||
public class ShopWeaponRecycleEventArgs : GameEventArgs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,17 +1,10 @@
|
|||
//------------------------------------------------------------
|
||||
// Game Framework
|
||||
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
|
||||
// Homepage: https://gameframework.cn/
|
||||
// Feedback: mailto:ellan@gameframework.cn
|
||||
//------------------------------------------------------------
|
||||
|
||||
using SepCore.Definition;
|
||||
using SepCore.Definition;
|
||||
using GameFramework.Debugger;
|
||||
using GameFramework.Localization;
|
||||
using UnityEngine;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
||||
namespace StarForce
|
||||
namespace SepCore.Editor
|
||||
{
|
||||
public class ChangeLanguageDebuggerWindow : IDebuggerWindow
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,17 +1,10 @@
|
|||
//------------------------------------------------------------
|
||||
// Game Framework
|
||||
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
|
||||
// Homepage: https://gameframework.cn/
|
||||
// Feedback: mailto:ellan@gameframework.cn
|
||||
//------------------------------------------------------------
|
||||
|
||||
using GameFramework;
|
||||
using GameFramework;
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityGameFramework.Editor;
|
||||
using UnityGameFramework.Editor.ResourceTools;
|
||||
|
||||
namespace StarForce.Editor
|
||||
namespace SepCore.Editor
|
||||
{
|
||||
public static class GameFrameworkConfigs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
#if UNITY_EDITOR
|
||||
using System;
|
||||
using System.Linq;
|
||||
using CustomComponent;
|
||||
|
|
@ -10,7 +9,7 @@ using Procedure;
|
|||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace StarForce.Editor
|
||||
namespace SepCore.Editor
|
||||
{
|
||||
public class PlayerBuffConsoleWindow : EditorWindow
|
||||
{
|
||||
|
|
@ -27,7 +26,7 @@ namespace StarForce.Editor
|
|||
private float _spawnRateScaleInput = 1f;
|
||||
private float _extendDurationSeconds = 30f;
|
||||
|
||||
[MenuItem("StarForce/Debug/Player Buff Console")]
|
||||
[MenuItem("SepCore/Debug/Player Buff Console")]
|
||||
private static void Open()
|
||||
{
|
||||
GetWindow<PlayerBuffConsoleWindow>(WindowTitle);
|
||||
|
|
@ -291,4 +290,3 @@ namespace StarForce.Editor
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
@ -3,6 +3,8 @@ using UnityEditor.SceneManagement;
|
|||
using UnityEngine;
|
||||
using System.IO;
|
||||
|
||||
namespace SepCore.Editor
|
||||
{
|
||||
[InitializeOnLoad]
|
||||
public class SceneSwitchLeft
|
||||
{
|
||||
|
|
@ -18,10 +20,12 @@ public class SceneSwitchLeft
|
|||
Handles.BeginGUI();
|
||||
|
||||
GUILayout.BeginArea(new Rect(10, 10, 200, 100));
|
||||
if (EditorGUILayout.DropdownButton(new GUIContent("快速切换场景"), FocusType.Passive, EditorStyles.toolbarDropDown))
|
||||
if (EditorGUILayout.DropdownButton(new GUIContent("快速切换场景"), FocusType.Passive,
|
||||
EditorStyles.toolbarDropDown))
|
||||
{
|
||||
ShowSceneMenu();
|
||||
}
|
||||
|
||||
GUILayout.EndArea();
|
||||
|
||||
Handles.EndGUI();
|
||||
|
|
@ -39,7 +43,8 @@ public class SceneSwitchLeft
|
|||
string path = AssetDatabase.GUIDToAssetPath(guid);
|
||||
string name = Path.GetFileNameWithoutExtension(path);
|
||||
|
||||
menu.AddItem(new GUIContent(name), false, () => {
|
||||
menu.AddItem(new GUIContent(name), false, () =>
|
||||
{
|
||||
if (EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
|
||||
{
|
||||
EditorSceneManager.OpenScene(path);
|
||||
|
|
@ -50,3 +55,4 @@ public class SceneSwitchLeft
|
|||
menu.ShowAsContext();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"name": "VampireLike.Editor",
|
||||
"rootNamespace": "",
|
||||
"name": "SepCore.Editor",
|
||||
"rootNamespace": "SepCore.Editor",
|
||||
"references": [
|
||||
"VampireLike",
|
||||
"UnityGameFramework.Runtime",
|
||||
"UnityGameFramework.Editor"
|
||||
"GUID:47a82ffa13c291447ab895cd0bc251cd",
|
||||
"GUID:363c5eb08ff8e6a439b85e37b8c20d96",
|
||||
"GUID:a2d8a19598eca814496b089021d08d60"
|
||||
],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
|
|
@ -4,9 +4,9 @@ using UnityEditor;
|
|||
using UnityEngine;
|
||||
using UnityGameFramework.Editor.ResourceTools;
|
||||
|
||||
namespace VampireLike.Editor
|
||||
namespace SepCore.Editor
|
||||
{
|
||||
public sealed class VampireLikeBuildEventHandler : IBuildEventHandler
|
||||
public sealed class DefaultBuildEventHandler : IBuildEventHandler
|
||||
{
|
||||
public bool ContinueOnFailure
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using SepCore.Definition;
|
||||
using GameFramework.Event;
|
||||
using UnityEngine;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
using CustomComponent;
|
||||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using GameFramework.Event;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using SepCore.Definition;
|
||||
using CustomUtility;
|
||||
using GameFramework.Event;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using GameFramework.Event;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using SepCore.Definition;
|
||||
using CustomUtility;
|
||||
using Entity.Weapon;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
using System;
|
||||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using UnityEngine;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using SepCore.Definition;
|
||||
using GameFramework.Event;
|
||||
using UnityEngine;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
||||
namespace UI
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using SepCore.Definition;
|
||||
using GameFramework.Event;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
using CustomComponent;
|
||||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using SepCore.DataTable;
|
||||
using Entity;
|
||||
using GameFramework.Fsm;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
using System;
|
||||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using SepCore.Definition;
|
||||
using UnityEngine;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using Components;
|
||||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using SepCore.DataTable;
|
||||
using SepCore.Definition;
|
||||
using Entity;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using SepCore.Definition;
|
||||
using Entity;
|
||||
using Entity.Weapon;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using CustomEvent;
|
||||
using SepCore.Event;
|
||||
using Entity;
|
||||
using Entity.EntityData;
|
||||
using Entity.Weapon;
|
||||
|
|
|
|||
Loading…
Reference in New Issue