com.elestrago.unity.entitas-redux 3.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +354 -0
- package/CHANGELOG.md.meta +7 -0
- package/Docs/EntitasReduxAPI.chm +0 -0
- package/Docs/EntitasReduxAPI.chm.meta +7 -0
- package/Docs/Images/portrait.png +0 -0
- package/Docs/Images/portrait.png.meta +91 -0
- package/Docs/Images/social_share_image.png +0 -0
- package/Docs/Images/social_share_image.png.meta +91 -0
- package/Docs/Images.meta +8 -0
- package/Docs.meta +8 -0
- package/LICENSE.md +21 -0
- package/LICENSE.md.meta +7 -0
- package/Licenses/LICENSE.txt +21 -0
- package/Licenses/LICENSE.txt.meta +7 -0
- package/Licenses/SCHMID_LICENSE.txt +22 -0
- package/Licenses/SCHMID_LICENSE.txt.meta +7 -0
- package/Licenses.meta +8 -0
- package/Plugins/EntitasRedux.Command.Generator.dll +0 -0
- package/Plugins/EntitasRedux.Command.Generator.dll.meta +89 -0
- package/Plugins/EntitasRedux.Core.Generator.dll +0 -0
- package/Plugins/EntitasRedux.Core.Generator.dll.meta +89 -0
- package/Plugins/EntitasRedux.Core.Libs.dll +0 -0
- package/Plugins/EntitasRedux.Core.Libs.dll.meta +75 -0
- package/Plugins/EntitasRedux.Core.dll +0 -0
- package/Plugins/EntitasRedux.Core.dll.meta +75 -0
- package/Plugins.meta +8 -0
- package/README.md +106 -0
- package/README.md.meta +7 -0
- package/Scripts/AssemblyInfo.cs +39 -0
- package/Scripts/AssemblyInfo.cs.meta +11 -0
- package/Scripts/Blueprints/AssemblyInfo.cs +39 -0
- package/Scripts/Blueprints/AssemblyInfo.cs.meta +11 -0
- package/Scripts/Blueprints/BlueprintBase.cs +66 -0
- package/Scripts/Blueprints/BlueprintBase.cs.meta +11 -0
- package/Scripts/Blueprints/BlueprintBehaviourBase.cs +63 -0
- package/Scripts/Blueprints/BlueprintBehaviourBase.cs.meta +11 -0
- package/Scripts/Blueprints/Editor/AssemblyInfo.cs +35 -0
- package/Scripts/Blueprints/Editor/AssemblyInfo.cs.meta +11 -0
- package/Scripts/Blueprints/Editor/BlueprintBaseInspector.cs +67 -0
- package/Scripts/Blueprints/Editor/BlueprintBaseInspector.cs.meta +11 -0
- package/Scripts/Blueprints/Editor/BlueprintBehaviourBaseInspector.cs +67 -0
- package/Scripts/Blueprints/Editor/BlueprintBehaviourBaseInspector.cs.meta +11 -0
- package/Scripts/Blueprints/Editor/BlueprintInspector.cs +268 -0
- package/Scripts/Blueprints/Editor/BlueprintInspector.cs.meta +11 -0
- package/Scripts/Blueprints/Editor/EntitasRedux.Blueprints.Editor.asmdef +20 -0
- package/Scripts/Blueprints/Editor/EntitasRedux.Blueprints.Editor.asmdef.meta +7 -0
- package/Scripts/Blueprints/Editor.meta +8 -0
- package/Scripts/Blueprints/EntitasRedux.Blueprints.asmdef +15 -0
- package/Scripts/Blueprints/EntitasRedux.Blueprints.asmdef.meta +7 -0
- package/Scripts/Blueprints.meta +8 -0
- package/Scripts/Core/Utils/UnsubscribeEvent.cs +20 -0
- package/Scripts/Core/Utils/UnsubscribeEvent.cs.meta +3 -0
- package/Scripts/Core/Utils/UnsubscribeEventExtensions.cs +13 -0
- package/Scripts/Core/Utils/UnsubscribeEventExtensions.cs.meta +3 -0
- package/Scripts/Core/Utils.meta +3 -0
- package/Scripts/Core/View/IEntityHashHolder.cs +7 -0
- package/Scripts/Core/View/IEntityHashHolder.cs.meta +3 -0
- package/Scripts/Core/View/ILinkable.cs +9 -0
- package/Scripts/Core/View/ILinkable.cs.meta +3 -0
- package/Scripts/Core/View/Impls/EntityHashHolder.cs +11 -0
- package/Scripts/Core/View/Impls/EntityHashHolder.cs.meta +3 -0
- package/Scripts/Core/View/Impls/LinkableView.Editor.cs +41 -0
- package/Scripts/Core/View/Impls/LinkableView.Editor.cs.meta +3 -0
- package/Scripts/Core/View/Impls/LinkableView.cs +99 -0
- package/Scripts/Core/View/Impls/LinkableView.cs.meta +3 -0
- package/Scripts/Core/View/Impls.meta +3 -0
- package/Scripts/Core/View.meta +3 -0
- package/Scripts/Core.meta +8 -0
- package/Scripts/Editor/AssemblyInfo.cs +39 -0
- package/Scripts/Editor/AssemblyInfo.cs.meta +11 -0
- package/Scripts/Editor/CreateScriptMenuItems.cs +89 -0
- package/Scripts/Editor/CreateScriptMenuItems.cs.meta +11 -0
- package/Scripts/Editor/EntitasRedux.Editor.asmdef +18 -0
- package/Scripts/Editor/EntitasRedux.Editor.asmdef.meta +7 -0
- package/Scripts/Editor/EntitasReduxStyles.cs +65 -0
- package/Scripts/Editor/EntitasReduxStyles.cs.meta +11 -0
- package/Scripts/Editor/Extensions/ColorExtensions.cs +50 -0
- package/Scripts/Editor/Extensions/ColorExtensions.cs.meta +11 -0
- package/Scripts/Editor/Extensions/PublicMemberInfoExtensions.cs +60 -0
- package/Scripts/Editor/Extensions/PublicMemberInfoExtensions.cs.meta +11 -0
- package/Scripts/Editor/Extensions/SerializationTypeExtensions.cs +124 -0
- package/Scripts/Editor/Extensions/SerializationTypeExtensions.cs.meta +11 -0
- package/Scripts/Editor/Extensions/StringExtensions.cs +141 -0
- package/Scripts/Editor/Extensions/StringExtensions.cs.meta +11 -0
- package/Scripts/Editor/Extensions/TypeExtensions.cs +216 -0
- package/Scripts/Editor/Extensions/TypeExtensions.cs.meta +11 -0
- package/Scripts/Editor/Extensions.meta +8 -0
- package/Scripts/Editor/Images/EntitasContextErrorHierarchyIcon.png +0 -0
- package/Scripts/Editor/Images/EntitasContextErrorHierarchyIcon.png.meta +93 -0
- package/Scripts/Editor/Images/EntitasContextHierarchyIcon.png +0 -0
- package/Scripts/Editor/Images/EntitasContextHierarchyIcon.png.meta +93 -0
- package/Scripts/Editor/Images/EntitasEntityErrorHierarchyIcon.png +0 -0
- package/Scripts/Editor/Images/EntitasEntityErrorHierarchyIcon.png.meta +93 -0
- package/Scripts/Editor/Images/EntitasEntityHierarchyIcon.png +0 -0
- package/Scripts/Editor/Images/EntitasEntityHierarchyIcon.png.meta +93 -0
- package/Scripts/Editor/Images/EntitasEntityLinkHierarchyIcon.png +0 -0
- package/Scripts/Editor/Images/EntitasEntityLinkHierarchyIcon.png.meta +93 -0
- package/Scripts/Editor/Images/EntitasEntityLinkWarnHierarchyIcon.png +0 -0
- package/Scripts/Editor/Images/EntitasEntityLinkWarnHierarchyIcon.png.meta +93 -0
- package/Scripts/Editor/Images/EntitasHeader.png +0 -0
- package/Scripts/Editor/Images/EntitasHeader.png.meta +93 -0
- package/Scripts/Editor/Images/EntitasSystemsHierarchyIcon.png +0 -0
- package/Scripts/Editor/Images/EntitasSystemsHierarchyIcon.png.meta +93 -0
- package/Scripts/Editor/Images/EntitasSystemsWarnHierarchyIcon.png +0 -0
- package/Scripts/Editor/Images/EntitasSystemsWarnHierarchyIcon.png.meta +93 -0
- package/Scripts/Editor/Images.meta +8 -0
- package/Scripts/Editor/Inspector/DefaultInstanceCreator/DefaultArrayCreator.cs +43 -0
- package/Scripts/Editor/Inspector/DefaultInstanceCreator/DefaultArrayCreator.cs.meta +11 -0
- package/Scripts/Editor/Inspector/DefaultInstanceCreator/DefaultStringCreator.cs +42 -0
- package/Scripts/Editor/Inspector/DefaultInstanceCreator/DefaultStringCreator.cs.meta +11 -0
- package/Scripts/Editor/Inspector/DefaultInstanceCreator/IDefaultInstanceCreator.cs +36 -0
- package/Scripts/Editor/Inspector/DefaultInstanceCreator/IDefaultInstanceCreator.cs.meta +11 -0
- package/Scripts/Editor/Inspector/DefaultInstanceCreator.meta +8 -0
- package/Scripts/Editor/Inspector/Entity/EntityDrawer.cs +927 -0
- package/Scripts/Editor/Inspector/Entity/EntityDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/Entity/EntityInspector.cs +57 -0
- package/Scripts/Editor/Inspector/Entity/EntityInspector.cs.meta +11 -0
- package/Scripts/Editor/Inspector/Entity.meta +8 -0
- package/Scripts/Editor/Inspector/IComponentDrawer.cs +36 -0
- package/Scripts/Editor/Inspector/IComponentDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/AnimationCurveTypeDrawer.cs +44 -0
- package/Scripts/Editor/Inspector/TypeDrawer/AnimationCurveTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/ArrayTypeDrawer.cs +282 -0
- package/Scripts/Editor/Inspector/TypeDrawer/ArrayTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/BoolTypeDrawer.cs +43 -0
- package/Scripts/Editor/Inspector/TypeDrawer/BoolTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/BoundsTypeDrawer.cs +44 -0
- package/Scripts/Editor/Inspector/TypeDrawer/BoundsTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/CharTypeDrawer.cs +44 -0
- package/Scripts/Editor/Inspector/TypeDrawer/CharTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/ColorTypeDrawer.cs +44 -0
- package/Scripts/Editor/Inspector/TypeDrawer/ColorTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/DateTimeTypeDrawer.cs +49 -0
- package/Scripts/Editor/Inspector/TypeDrawer/DateTimeTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/DictionaryTypeDrawer.cs +131 -0
- package/Scripts/Editor/Inspector/TypeDrawer/DictionaryTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/DoubleTypeDrawer.cs +43 -0
- package/Scripts/Editor/Inspector/TypeDrawer/DoubleTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/EnumTypeDrawer.cs +48 -0
- package/Scripts/Editor/Inspector/TypeDrawer/EnumTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/FloatTypeDrawer.cs +43 -0
- package/Scripts/Editor/Inspector/TypeDrawer/FloatTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/HashSetTypeDrawer.cs +124 -0
- package/Scripts/Editor/Inspector/TypeDrawer/HashSetTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/ITypeDrawer.cs +36 -0
- package/Scripts/Editor/Inspector/TypeDrawer/ITypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/IntTypeDrawer.cs +43 -0
- package/Scripts/Editor/Inspector/TypeDrawer/IntTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/ListTypeDrawer.cs +163 -0
- package/Scripts/Editor/Inspector/TypeDrawer/ListTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/RectTypeDrawer.cs +44 -0
- package/Scripts/Editor/Inspector/TypeDrawer/RectTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/StringTypeDrawer.cs +43 -0
- package/Scripts/Editor/Inspector/TypeDrawer/StringTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/UnityObjectTypeDrawer.cs +49 -0
- package/Scripts/Editor/Inspector/TypeDrawer/UnityObjectTypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/Vector2TypeDrawer.cs +44 -0
- package/Scripts/Editor/Inspector/TypeDrawer/Vector2TypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/Vector3TypeDrawer.cs +44 -0
- package/Scripts/Editor/Inspector/TypeDrawer/Vector3TypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer/Vector4TypeDrawer.cs +44 -0
- package/Scripts/Editor/Inspector/TypeDrawer/Vector4TypeDrawer.cs.meta +11 -0
- package/Scripts/Editor/Inspector/TypeDrawer.meta +8 -0
- package/Scripts/Editor/Inspector.meta +8 -0
- package/Scripts/Editor/MenuItems.cs +84 -0
- package/Scripts/Editor/MenuItems.cs.meta +11 -0
- package/Scripts/Editor/PlayModeHelper.cs +75 -0
- package/Scripts/Editor/PlayModeHelper.cs.meta +11 -0
- package/Scripts/Editor/Reflection/AttributeInfo.cs +44 -0
- package/Scripts/Editor/Reflection/AttributeInfo.cs.meta +11 -0
- package/Scripts/Editor/Reflection/PublicMemberInfo.cs +95 -0
- package/Scripts/Editor/Reflection/PublicMemberInfo.cs.meta +11 -0
- package/Scripts/Editor/Reflection.meta +8 -0
- package/Scripts/Editor/ScriptTemplates/CleanupSystem.txt +15 -0
- package/Scripts/Editor/ScriptTemplates/CleanupSystem.txt.meta +7 -0
- package/Scripts/Editor/ScriptTemplates/Component.txt +9 -0
- package/Scripts/Editor/ScriptTemplates/Component.txt.meta +7 -0
- package/Scripts/Editor/ScriptTemplates/FixedUpdateSystem.txt +15 -0
- package/Scripts/Editor/ScriptTemplates/FixedUpdateSystem.txt.meta +7 -0
- package/Scripts/Editor/ScriptTemplates/InitializeSystem.txt +15 -0
- package/Scripts/Editor/ScriptTemplates/InitializeSystem.txt.meta +7 -0
- package/Scripts/Editor/ScriptTemplates/LateUpdateSystem.txt +15 -0
- package/Scripts/Editor/ScriptTemplates/LateUpdateSystem.txt.meta +7 -0
- package/Scripts/Editor/ScriptTemplates/ReactiveSystem.txt +39 -0
- package/Scripts/Editor/ScriptTemplates/ReactiveSystem.txt.meta +7 -0
- package/Scripts/Editor/ScriptTemplates/UpdateSystem.txt +15 -0
- package/Scripts/Editor/ScriptTemplates/UpdateSystem.txt.meta +7 -0
- package/Scripts/Editor/ScriptTemplates.meta +8 -0
- package/Scripts/Editor/Tools/ColorTools.cs +59 -0
- package/Scripts/Editor/Tools/ColorTools.cs.meta +11 -0
- package/Scripts/Editor/Tools/EditorGUILayoutTools.cs +242 -0
- package/Scripts/Editor/Tools/EditorGUILayoutTools.cs.meta +11 -0
- package/Scripts/Editor/Tools/PlayerSettingsTools.cs +144 -0
- package/Scripts/Editor/Tools/PlayerSettingsTools.cs.meta +11 -0
- package/Scripts/Editor/Tools/PreferenceTools.cs +116 -0
- package/Scripts/Editor/Tools/PreferenceTools.cs.meta +11 -0
- package/Scripts/Editor/Tools/RefactorModeTools.cs +85 -0
- package/Scripts/Editor/Tools/RefactorModeTools.cs.meta +11 -0
- package/Scripts/Editor/Tools/ReflectionTools.cs +33 -0
- package/Scripts/Editor/Tools/ReflectionTools.cs.meta +3 -0
- package/Scripts/Editor/Tools/ScriptTools.cs +117 -0
- package/Scripts/Editor/Tools/ScriptTools.cs.meta +11 -0
- package/Scripts/Editor/Tools/SerializationTools.cs +91 -0
- package/Scripts/Editor/Tools/SerializationTools.cs.meta +11 -0
- package/Scripts/Editor/Tools.meta +8 -0
- package/Scripts/Editor/Window/AboutWindow.cs +153 -0
- package/Scripts/Editor/Window/AboutWindow.cs.meta +14 -0
- package/Scripts/Editor/Window.meta +8 -0
- package/Scripts/Editor.meta +8 -0
- package/Scripts/EntitasRedux.asmdef +13 -0
- package/Scripts/EntitasRedux.asmdef.meta +7 -0
- package/Scripts/Entity/EntityBehaviour.cs +82 -0
- package/Scripts/Entity/EntityBehaviour.cs.meta +11 -0
- package/Scripts/Entity.meta +8 -0
- package/Scripts/EntityLink.cs +85 -0
- package/Scripts/EntityLink.cs.meta +11 -0
- package/Scripts/Extensions/EntityLinkExtension.cs +52 -0
- package/Scripts/Extensions/EntityLinkExtension.cs.meta +11 -0
- package/Scripts/Extensions.meta +8 -0
- package/Scripts/VersionConstants.cs +58 -0
- package/Scripts/VersionConstants.cs.meta +11 -0
- package/Scripts/VisualDebugging/AssemblyInfo.cs +39 -0
- package/Scripts/VisualDebugging/AssemblyInfo.cs.meta +11 -0
- package/Scripts/VisualDebugging/ContextObserver/ContextObserver.cs +107 -0
- package/Scripts/VisualDebugging/ContextObserver/ContextObserver.cs.meta +11 -0
- package/Scripts/VisualDebugging/ContextObserver/ContextObserverBehaviour.cs +60 -0
- package/Scripts/VisualDebugging/ContextObserver/ContextObserverBehaviour.cs.meta +11 -0
- package/Scripts/VisualDebugging/ContextObserver/ContextObserverExtension.cs +47 -0
- package/Scripts/VisualDebugging/ContextObserver/ContextObserverExtension.cs.meta +11 -0
- package/Scripts/VisualDebugging/ContextObserver.meta +8 -0
- package/Scripts/VisualDebugging/DebugSystems/AvgResetInterval.cs +37 -0
- package/Scripts/VisualDebugging/DebugSystems/AvgResetInterval.cs.meta +11 -0
- package/Scripts/VisualDebugging/DebugSystems/DebugSystems.cs +477 -0
- package/Scripts/VisualDebugging/DebugSystems/DebugSystems.cs.meta +11 -0
- package/Scripts/VisualDebugging/DebugSystems/DebugSystemsBehaviour.cs +41 -0
- package/Scripts/VisualDebugging/DebugSystems/DebugSystemsBehaviour.cs.meta +11 -0
- package/Scripts/VisualDebugging/DebugSystems/SystemInfo.cs +347 -0
- package/Scripts/VisualDebugging/DebugSystems/SystemInfo.cs.meta +11 -0
- package/Scripts/VisualDebugging/DebugSystems.meta +8 -0
- package/Scripts/VisualDebugging/Editor/AssemblyInfo.cs +35 -0
- package/Scripts/VisualDebugging/Editor/AssemblyInfo.cs.meta +11 -0
- package/Scripts/VisualDebugging/Editor/ContextObserver/ContextObserverInspector.cs +104 -0
- package/Scripts/VisualDebugging/Editor/ContextObserver/ContextObserverInspector.cs.meta +11 -0
- package/Scripts/VisualDebugging/Editor/ContextObserver.meta +8 -0
- package/Scripts/VisualDebugging/Editor/DebugSystems/DebugSystemsBehaviourInspector.cs +709 -0
- package/Scripts/VisualDebugging/Editor/DebugSystems/DebugSystemsBehaviourInspector.cs.meta +11 -0
- package/Scripts/VisualDebugging/Editor/DebugSystems.meta +8 -0
- package/Scripts/VisualDebugging/Editor/EntitasHierarchyIcon.cs +226 -0
- package/Scripts/VisualDebugging/Editor/EntitasHierarchyIcon.cs.meta +11 -0
- package/Scripts/VisualDebugging/Editor/EntitasRedux.VisualDebugging.Editor.asmdef +21 -0
- package/Scripts/VisualDebugging/Editor/EntitasRedux.VisualDebugging.Editor.asmdef.meta +7 -0
- package/Scripts/VisualDebugging/Editor/EntitasStats.cs +131 -0
- package/Scripts/VisualDebugging/Editor/EntitasStats.cs.meta +11 -0
- package/Scripts/VisualDebugging/Editor/EntityLinkInspector.cs +71 -0
- package/Scripts/VisualDebugging/Editor/EntityLinkInspector.cs.meta +11 -0
- package/Scripts/VisualDebugging/Editor/Graph.cs +234 -0
- package/Scripts/VisualDebugging/Editor/Graph.cs.meta +11 -0
- package/Scripts/VisualDebugging/Editor/VisualDebugStyles.cs +55 -0
- package/Scripts/VisualDebugging/Editor/VisualDebugStyles.cs.meta +11 -0
- package/Scripts/VisualDebugging/Editor/VisualDebuggingEntitasExtension.cs +35 -0
- package/Scripts/VisualDebugging/Editor/VisualDebuggingEntitasExtension.cs.meta +11 -0
- package/Scripts/VisualDebugging/Editor/VisualDebuggingPreferences.cs +188 -0
- package/Scripts/VisualDebugging/Editor/VisualDebuggingPreferences.cs.meta +11 -0
- package/Scripts/VisualDebugging/Editor.meta +8 -0
- package/Scripts/VisualDebugging/EntitasRedux.VisualDebugging.asmdef +18 -0
- package/Scripts/VisualDebugging/EntitasRedux.VisualDebugging.asmdef.meta +7 -0
- package/Scripts/VisualDebugging/Extensions/GameObjectDestroyExtensions.cs +44 -0
- package/Scripts/VisualDebugging/Extensions/GameObjectDestroyExtensions.cs.meta +11 -0
- package/Scripts/VisualDebugging/Extensions.meta +8 -0
- package/Scripts/VisualDebugging.meta +8 -0
- package/Scripts.meta +8 -0
- package/package.json +30 -0
- package/package.json.meta +7 -0
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
/*
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2020 Jeff Campbell
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in
|
|
15
|
+
all copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
THE SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
using System.Collections.Generic;
|
|
27
|
+
using System.Diagnostics;
|
|
28
|
+
using System.Linq;
|
|
29
|
+
using UnityEngine;
|
|
30
|
+
|
|
31
|
+
namespace JCMG.EntitasRedux.VisualDebugging
|
|
32
|
+
{
|
|
33
|
+
public class DebugSystems : Systems
|
|
34
|
+
{
|
|
35
|
+
/// <summary>
|
|
36
|
+
/// Returns the total number of <see cref="IInitializeSystem"/> instances in this <see cref="DebugSystems"/> and
|
|
37
|
+
/// any child <see cref="DebugSystems"/>.
|
|
38
|
+
/// </summary>
|
|
39
|
+
public int TotalInitializeSystemsCount
|
|
40
|
+
{
|
|
41
|
+
get
|
|
42
|
+
{
|
|
43
|
+
var total = 0;
|
|
44
|
+
for (var i = 0; i < _initializeSystems.Count; i++)
|
|
45
|
+
{
|
|
46
|
+
var system = _initializeSystems[i];
|
|
47
|
+
total += system is DebugSystems debugSystems ? debugSystems.TotalInitializeSystemsCount : 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return total;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/// <summary>
|
|
55
|
+
/// Returns the total number of <see cref="IUpdateSystem"/> instances in this <see cref="DebugSystems"/> and
|
|
56
|
+
/// any child <see cref="DebugSystems"/>.
|
|
57
|
+
/// </summary>
|
|
58
|
+
public int TotalUpdateSystemsCount
|
|
59
|
+
{
|
|
60
|
+
get
|
|
61
|
+
{
|
|
62
|
+
var total = 0;
|
|
63
|
+
for (var i = 0; i < _updateSystems.Count; i++)
|
|
64
|
+
{
|
|
65
|
+
var system = _updateSystems[i];
|
|
66
|
+
total += system is DebugSystems debugSystems ? debugSystems.TotalUpdateSystemsCount : 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return total;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/// <summary>
|
|
74
|
+
/// Returns the total number of <see cref="IFixedUpdateSystem"/> instances in this <see cref="DebugSystems"/> and
|
|
75
|
+
/// any child <see cref="DebugSystems"/>.
|
|
76
|
+
/// </summary>
|
|
77
|
+
public int TotalFixedUpdateSystemsCount
|
|
78
|
+
{
|
|
79
|
+
get
|
|
80
|
+
{
|
|
81
|
+
var total = 0;
|
|
82
|
+
for (var i = 0; i < _fixedUpdateSystems.Count; i++)
|
|
83
|
+
{
|
|
84
|
+
var system = _fixedUpdateSystems[i];
|
|
85
|
+
total += system is DebugSystems debugSystems ? debugSystems.TotalFixedUpdateSystemsCount : 1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return total;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/// <summary>
|
|
93
|
+
/// Returns the total number of <see cref="ILateUpdateSystem"/> instances in this <see cref="DebugSystems"/> and
|
|
94
|
+
/// any child <see cref="DebugSystems"/>.
|
|
95
|
+
/// </summary>
|
|
96
|
+
public int TotalLateUpdateSystemsCount
|
|
97
|
+
{
|
|
98
|
+
get
|
|
99
|
+
{
|
|
100
|
+
var total = 0;
|
|
101
|
+
for (var i = 0; i < _lateUpdateSystems.Count; i++)
|
|
102
|
+
{
|
|
103
|
+
var system = _lateUpdateSystems[i];
|
|
104
|
+
total += system is DebugSystems debugSystems ? debugSystems.TotalLateUpdateSystemsCount : 1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return total;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/// <summary>
|
|
112
|
+
/// Returns the total number of <see cref="IReactiveSystem"/> instances in this <see cref="DebugSystems"/> and
|
|
113
|
+
/// any child <see cref="DebugSystems"/>.
|
|
114
|
+
/// </summary>
|
|
115
|
+
public int TotalReactiveSystemsCount
|
|
116
|
+
{
|
|
117
|
+
get
|
|
118
|
+
{
|
|
119
|
+
var total = 0;
|
|
120
|
+
for (var i = 0; i < _reactiveSystems.Count; i++)
|
|
121
|
+
{
|
|
122
|
+
var system = _reactiveSystems[i];
|
|
123
|
+
total += system is DebugSystems debugSystems ? debugSystems.TotalReactiveSystemsCount : 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return total;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/// <summary>
|
|
131
|
+
/// Returns the total number of <see cref="ICleanupSystem"/> instances in this <see cref="DebugSystems"/> and
|
|
132
|
+
/// any child <see cref="DebugSystems"/>.
|
|
133
|
+
/// </summary>
|
|
134
|
+
public int TotalCleanupSystemsCount
|
|
135
|
+
{
|
|
136
|
+
get
|
|
137
|
+
{
|
|
138
|
+
var total = 0;
|
|
139
|
+
for (var i = 0; i < _cleanupSystems.Count; i++)
|
|
140
|
+
{
|
|
141
|
+
var system = _cleanupSystems[i];
|
|
142
|
+
total += system is DebugSystems debugSystems ? debugSystems.TotalCleanupSystemsCount : 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return total;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/// <summary>
|
|
150
|
+
/// Returns the total number of <see cref="ITearDownSystem"/> instances in this <see cref="DebugSystems"/> and
|
|
151
|
+
/// any child <see cref="DebugSystems"/>.
|
|
152
|
+
/// </summary>
|
|
153
|
+
public int TotalTearDownSystemsCount
|
|
154
|
+
{
|
|
155
|
+
get
|
|
156
|
+
{
|
|
157
|
+
var total = 0;
|
|
158
|
+
for (var i = 0; i < _tearDownSystems.Count; i++)
|
|
159
|
+
{
|
|
160
|
+
var system = _tearDownSystems[i];
|
|
161
|
+
total += system is DebugSystems debugSystems ? debugSystems.TotalTearDownSystemsCount : 1;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return total;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/// <summary>
|
|
169
|
+
/// Returns the total number of <see cref="ISystem"/> instances in this <see cref="DebugSystems"/> and
|
|
170
|
+
/// any child <see cref="DebugSystems"/>.
|
|
171
|
+
/// </summary>
|
|
172
|
+
public int TotalSystemsCount
|
|
173
|
+
{
|
|
174
|
+
get
|
|
175
|
+
{
|
|
176
|
+
var total = 0;
|
|
177
|
+
for (var i = 0; i < _systems.Count; i++)
|
|
178
|
+
{
|
|
179
|
+
var system = _systems[i];
|
|
180
|
+
total += system is DebugSystems debugSystems ? debugSystems.TotalSystemsCount : 1;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return total;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
public string Name => _name;
|
|
188
|
+
|
|
189
|
+
public GameObject GameObject => _gameObject;
|
|
190
|
+
|
|
191
|
+
public SystemInfo SystemInfo => _systemInfo;
|
|
192
|
+
|
|
193
|
+
public double AverageUpdateDuration => _updateSystemInfos.Select(x => x.AverageUpdateDuration).Sum();
|
|
194
|
+
|
|
195
|
+
public double AverageFixedUpdateDuration => _fixedUpdateSystemInfos.Select(x => x.AverageFixedUpdateDuration).Sum();
|
|
196
|
+
|
|
197
|
+
public double AverageLateUpdateDuration => _lateUpdateSystemInfos.Select(x => x.AverageLateUpdateDuration).Sum();
|
|
198
|
+
|
|
199
|
+
public double AverageReactiveDuration => _lateUpdateSystemInfos.Select(x => x.AverageReactiveDuration).Sum();
|
|
200
|
+
|
|
201
|
+
public double AverageCleanupDuration => _cleanupSystemInfos.Select(x => x.AverageCleanupDuration).Sum();
|
|
202
|
+
|
|
203
|
+
public double UpdateDuration => _updateDuration;
|
|
204
|
+
|
|
205
|
+
public double FixedUpdateDuration => _fixedUpdateDuration;
|
|
206
|
+
|
|
207
|
+
public double LateUpdateDuration => _lateUpdateDuration;
|
|
208
|
+
|
|
209
|
+
public double ReactiveDuration => _reactiveDuration;
|
|
210
|
+
|
|
211
|
+
public double CleanupDuration => _cleanupDuration;
|
|
212
|
+
|
|
213
|
+
public IReadOnlyList<SystemInfo> InitializeSystemInfos => _initializeSystemInfos;
|
|
214
|
+
|
|
215
|
+
public IReadOnlyList<SystemInfo> UpdateSystemInfos => _updateSystemInfos;
|
|
216
|
+
|
|
217
|
+
public IReadOnlyList<SystemInfo> FixedUpdateSystemInfos => _fixedUpdateSystemInfos;
|
|
218
|
+
|
|
219
|
+
public IReadOnlyList<SystemInfo> LateUpdateSystemInfos => _lateUpdateSystemInfos;
|
|
220
|
+
|
|
221
|
+
public IReadOnlyList<SystemInfo> CleanupSystemInfos => _cleanupSystemInfos;
|
|
222
|
+
|
|
223
|
+
public IReadOnlyList<SystemInfo> TearDownSystemInfos => _tearDownSystemInfos;
|
|
224
|
+
|
|
225
|
+
public IReadOnlyList<SystemInfo> ReactiveSystemInfos => _reactiveSystemInfos;
|
|
226
|
+
|
|
227
|
+
private string _name;
|
|
228
|
+
private GameObject _gameObject;
|
|
229
|
+
|
|
230
|
+
private double _reactiveDuration;
|
|
231
|
+
private double _fixedUpdateDuration;
|
|
232
|
+
private double _updateDuration;
|
|
233
|
+
private double _lateUpdateDuration;
|
|
234
|
+
private double _cleanupDuration;
|
|
235
|
+
|
|
236
|
+
private List<SystemInfo> _allSystemInfos;
|
|
237
|
+
private List<SystemInfo> _initializeSystemInfos;
|
|
238
|
+
private List<SystemInfo> _updateSystemInfos;
|
|
239
|
+
private List<SystemInfo> _fixedUpdateSystemInfos;
|
|
240
|
+
private List<SystemInfo> _lateUpdateSystemInfos;
|
|
241
|
+
private List<SystemInfo> _reactiveSystemInfos;
|
|
242
|
+
private List<SystemInfo> _cleanupSystemInfos;
|
|
243
|
+
private List<SystemInfo> _tearDownSystemInfos;
|
|
244
|
+
|
|
245
|
+
private Stopwatch _stopwatch;
|
|
246
|
+
private SystemInfo _systemInfo;
|
|
247
|
+
|
|
248
|
+
private List<ISystem> _systems;
|
|
249
|
+
|
|
250
|
+
public static AvgResetInterval avgResetInterval;
|
|
251
|
+
|
|
252
|
+
static DebugSystems()
|
|
253
|
+
{
|
|
254
|
+
avgResetInterval = AvgResetInterval.Slow;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
public DebugSystems(string name)
|
|
258
|
+
{
|
|
259
|
+
Initialize(name);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
protected DebugSystems(bool noInit)
|
|
263
|
+
{
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
protected void Initialize(string name)
|
|
267
|
+
{
|
|
268
|
+
_name = name;
|
|
269
|
+
_gameObject = new GameObject(name);
|
|
270
|
+
_gameObject.AddComponent<DebugSystemsBehaviour>().Init(this);
|
|
271
|
+
|
|
272
|
+
_systemInfo = new SystemInfo(this);
|
|
273
|
+
|
|
274
|
+
_allSystemInfos = new List<SystemInfo>();
|
|
275
|
+
_initializeSystemInfos = new List<SystemInfo>();
|
|
276
|
+
_updateSystemInfos = new List<SystemInfo>();
|
|
277
|
+
_fixedUpdateSystemInfos = new List<SystemInfo>();
|
|
278
|
+
_lateUpdateSystemInfos = new List<SystemInfo>();
|
|
279
|
+
_reactiveSystemInfos = new List<SystemInfo>();
|
|
280
|
+
_cleanupSystemInfos = new List<SystemInfo>();
|
|
281
|
+
_tearDownSystemInfos = new List<SystemInfo>();
|
|
282
|
+
|
|
283
|
+
_systems = new List<ISystem>();
|
|
284
|
+
|
|
285
|
+
_stopwatch = new Stopwatch();
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
public override Systems Add(ISystem system)
|
|
289
|
+
{
|
|
290
|
+
_systems.Add(system);
|
|
291
|
+
|
|
292
|
+
SystemInfo childSystemInfo;
|
|
293
|
+
|
|
294
|
+
if (system is DebugSystems debugSystems)
|
|
295
|
+
{
|
|
296
|
+
childSystemInfo = debugSystems.SystemInfo;
|
|
297
|
+
debugSystems.GameObject.transform.SetParent(_gameObject.transform, false);
|
|
298
|
+
}
|
|
299
|
+
else
|
|
300
|
+
{
|
|
301
|
+
childSystemInfo = new SystemInfo(system);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
_allSystemInfos.Add(childSystemInfo);
|
|
305
|
+
|
|
306
|
+
childSystemInfo.parentSystemInfo = _systemInfo;
|
|
307
|
+
|
|
308
|
+
if (childSystemInfo.IsInitializeSystems)
|
|
309
|
+
{
|
|
310
|
+
_initializeSystemInfos.Add(childSystemInfo);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
if (childSystemInfo.IsUpdateSystems || childSystemInfo.IsReactiveSystems)
|
|
314
|
+
{
|
|
315
|
+
_updateSystemInfos.Add(childSystemInfo);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (childSystemInfo.IsFixedUpdateSystems)
|
|
319
|
+
{
|
|
320
|
+
_fixedUpdateSystemInfos.Add(childSystemInfo);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
if (childSystemInfo.IsLateUpdateSystems)
|
|
324
|
+
{
|
|
325
|
+
_lateUpdateSystemInfos.Add(childSystemInfo);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
if (childSystemInfo.IsReactiveSystems)
|
|
329
|
+
{
|
|
330
|
+
_reactiveSystemInfos.Add(childSystemInfo);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
if (childSystemInfo.IsCleanupSystems)
|
|
334
|
+
{
|
|
335
|
+
_cleanupSystemInfos.Add(childSystemInfo);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
if (childSystemInfo.IsTearDownSystems)
|
|
339
|
+
{
|
|
340
|
+
_tearDownSystemInfos.Add(childSystemInfo);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return base.Add(system);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
public void ResetDurations()
|
|
347
|
+
{
|
|
348
|
+
for (var i = 0; i < _allSystemInfos.Count; i++)
|
|
349
|
+
{
|
|
350
|
+
var systemInfo = _allSystemInfos[i];
|
|
351
|
+
systemInfo.ResetFrameDurations();
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
for (var i = 0; i < _systems.Count; i++)
|
|
355
|
+
{
|
|
356
|
+
var system = _systems[i];
|
|
357
|
+
if (system is DebugSystems debugSystems)
|
|
358
|
+
{
|
|
359
|
+
debugSystems.ResetDurations();
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
public override void Initialize()
|
|
365
|
+
{
|
|
366
|
+
for (var i = 0; i < _initializeSystems.Count; i++)
|
|
367
|
+
{
|
|
368
|
+
var systemInfo = _initializeSystemInfos[i];
|
|
369
|
+
if (systemInfo.isActive)
|
|
370
|
+
{
|
|
371
|
+
_stopwatch.Reset();
|
|
372
|
+
_stopwatch.Start();
|
|
373
|
+
_initializeSystems[i].Initialize();
|
|
374
|
+
_stopwatch.Stop();
|
|
375
|
+
systemInfo.InitializationDuration = _stopwatch.Elapsed.TotalMilliseconds;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
public override void Update()
|
|
381
|
+
{
|
|
382
|
+
_updateDuration = 0;
|
|
383
|
+
if (Time.frameCount % (int)avgResetInterval == 0)
|
|
384
|
+
{
|
|
385
|
+
ResetDurations();
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
for (var i = 0; i < _updateSystems.Count; i++)
|
|
389
|
+
{
|
|
390
|
+
var systemInfo = _updateSystemInfos[i];
|
|
391
|
+
if (systemInfo.isActive)
|
|
392
|
+
{
|
|
393
|
+
_stopwatch.Reset();
|
|
394
|
+
_stopwatch.Start();
|
|
395
|
+
_updateSystems[i].Update();
|
|
396
|
+
_stopwatch.Stop();
|
|
397
|
+
var duration = _stopwatch.Elapsed.TotalMilliseconds;
|
|
398
|
+
_updateDuration += duration;
|
|
399
|
+
systemInfo.AddUpdateDuration(duration);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
public override void FixedUpdate()
|
|
405
|
+
{
|
|
406
|
+
_fixedUpdateDuration = 0;
|
|
407
|
+
for (var i = 0; i < _fixedUpdateSystems.Count; i++)
|
|
408
|
+
{
|
|
409
|
+
var systemInfo = _fixedUpdateSystemInfos[i];
|
|
410
|
+
if (systemInfo.isActive)
|
|
411
|
+
{
|
|
412
|
+
_stopwatch.Reset();
|
|
413
|
+
_stopwatch.Start();
|
|
414
|
+
_fixedUpdateSystems[i].FixedUpdate();
|
|
415
|
+
_stopwatch.Stop();
|
|
416
|
+
var duration = _stopwatch.Elapsed.TotalMilliseconds;
|
|
417
|
+
_fixedUpdateDuration += duration;
|
|
418
|
+
systemInfo.AddFixedUpdateDuration(duration);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
public override void LateUpdate()
|
|
424
|
+
{
|
|
425
|
+
_lateUpdateDuration = 0;
|
|
426
|
+
for (var i = 0; i < _lateUpdateSystems.Count; i++)
|
|
427
|
+
{
|
|
428
|
+
var systemInfo = _lateUpdateSystemInfos[i];
|
|
429
|
+
if (systemInfo.isActive)
|
|
430
|
+
{
|
|
431
|
+
_stopwatch.Reset();
|
|
432
|
+
_stopwatch.Start();
|
|
433
|
+
_lateUpdateSystems[i].LateUpdate();
|
|
434
|
+
_stopwatch.Stop();
|
|
435
|
+
var duration = _stopwatch.Elapsed.TotalMilliseconds;
|
|
436
|
+
_lateUpdateDuration += duration;
|
|
437
|
+
systemInfo.AddLateUpdateDuration(duration);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
public override void Cleanup()
|
|
443
|
+
{
|
|
444
|
+
_cleanupDuration = 0;
|
|
445
|
+
for (var i = 0; i < _cleanupSystems.Count; i++)
|
|
446
|
+
{
|
|
447
|
+
var systemInfo = _cleanupSystemInfos[i];
|
|
448
|
+
if (systemInfo.isActive)
|
|
449
|
+
{
|
|
450
|
+
_stopwatch.Reset();
|
|
451
|
+
_stopwatch.Start();
|
|
452
|
+
_cleanupSystems[i].Cleanup();
|
|
453
|
+
_stopwatch.Stop();
|
|
454
|
+
var duration = _stopwatch.Elapsed.TotalMilliseconds;
|
|
455
|
+
_cleanupDuration += duration;
|
|
456
|
+
systemInfo.AddCleanupDuration(duration);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
public override void TearDown()
|
|
462
|
+
{
|
|
463
|
+
for (var i = 0; i < _tearDownSystems.Count; i++)
|
|
464
|
+
{
|
|
465
|
+
var systemInfo = _tearDownSystemInfos[i];
|
|
466
|
+
if (systemInfo.isActive)
|
|
467
|
+
{
|
|
468
|
+
_stopwatch.Reset();
|
|
469
|
+
_stopwatch.Start();
|
|
470
|
+
_tearDownSystems[i].TearDown();
|
|
471
|
+
_stopwatch.Stop();
|
|
472
|
+
systemInfo.TeardownDuration = _stopwatch.Elapsed.TotalMilliseconds;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2020 Jeff Campbell
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in
|
|
15
|
+
all copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
THE SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
using UnityEngine;
|
|
27
|
+
|
|
28
|
+
namespace JCMG.EntitasRedux.VisualDebugging
|
|
29
|
+
{
|
|
30
|
+
public class DebugSystemsBehaviour : MonoBehaviour
|
|
31
|
+
{
|
|
32
|
+
public DebugSystems Systems => _systems;
|
|
33
|
+
|
|
34
|
+
private DebugSystems _systems;
|
|
35
|
+
|
|
36
|
+
public void Init(DebugSystems systems)
|
|
37
|
+
{
|
|
38
|
+
_systems = systems;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|