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,89 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 9dbeaf4dc5262e7889b4cda5c03fb92d
|
|
3
|
+
labels:
|
|
4
|
+
- RoslynAnalyzer
|
|
5
|
+
PluginImporter:
|
|
6
|
+
externalObjects: {}
|
|
7
|
+
serializedVersion: 2
|
|
8
|
+
iconMap: {}
|
|
9
|
+
executionOrder: {}
|
|
10
|
+
defineConstraints: []
|
|
11
|
+
isPreloaded: 0
|
|
12
|
+
isOverridable: 0
|
|
13
|
+
isExplicitlyReferenced: 0
|
|
14
|
+
validateReferences: 0
|
|
15
|
+
platformData:
|
|
16
|
+
- first:
|
|
17
|
+
: Any
|
|
18
|
+
second:
|
|
19
|
+
enabled: 0
|
|
20
|
+
settings:
|
|
21
|
+
Exclude Android: 0
|
|
22
|
+
Exclude Editor: 1
|
|
23
|
+
Exclude Linux64: 1
|
|
24
|
+
Exclude OSXUniversal: 1
|
|
25
|
+
Exclude Win: 1
|
|
26
|
+
Exclude Win64: 1
|
|
27
|
+
Exclude iOS: 0
|
|
28
|
+
- first:
|
|
29
|
+
Android: Android
|
|
30
|
+
second:
|
|
31
|
+
enabled: 1
|
|
32
|
+
settings:
|
|
33
|
+
AndroidSharedLibraryType: Executable
|
|
34
|
+
CPU: ARMv7
|
|
35
|
+
- first:
|
|
36
|
+
Any:
|
|
37
|
+
second:
|
|
38
|
+
enabled: 1
|
|
39
|
+
settings: {}
|
|
40
|
+
- first:
|
|
41
|
+
Editor: Editor
|
|
42
|
+
second:
|
|
43
|
+
enabled: 0
|
|
44
|
+
settings:
|
|
45
|
+
CPU: AnyCPU
|
|
46
|
+
DefaultValueInitialized: true
|
|
47
|
+
OS: AnyOS
|
|
48
|
+
- first:
|
|
49
|
+
Standalone: Linux64
|
|
50
|
+
second:
|
|
51
|
+
enabled: 0
|
|
52
|
+
settings:
|
|
53
|
+
CPU: None
|
|
54
|
+
- first:
|
|
55
|
+
Standalone: OSXUniversal
|
|
56
|
+
second:
|
|
57
|
+
enabled: 0
|
|
58
|
+
settings:
|
|
59
|
+
CPU: None
|
|
60
|
+
- first:
|
|
61
|
+
Standalone: Win
|
|
62
|
+
second:
|
|
63
|
+
enabled: 0
|
|
64
|
+
settings:
|
|
65
|
+
CPU: None
|
|
66
|
+
- first:
|
|
67
|
+
Standalone: Win64
|
|
68
|
+
second:
|
|
69
|
+
enabled: 0
|
|
70
|
+
settings:
|
|
71
|
+
CPU: None
|
|
72
|
+
- first:
|
|
73
|
+
Windows Store Apps: WindowsStoreApps
|
|
74
|
+
second:
|
|
75
|
+
enabled: 0
|
|
76
|
+
settings:
|
|
77
|
+
CPU: AnyCPU
|
|
78
|
+
- first:
|
|
79
|
+
iPhone: iOS
|
|
80
|
+
second:
|
|
81
|
+
enabled: 1
|
|
82
|
+
settings:
|
|
83
|
+
AddToEmbeddedBinaries: false
|
|
84
|
+
CPU: AnyCPU
|
|
85
|
+
CompileFlags:
|
|
86
|
+
FrameworkDependencies:
|
|
87
|
+
userData:
|
|
88
|
+
assetBundleName:
|
|
89
|
+
assetBundleVariant:
|
|
Binary file
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: a7a1a5e08ed952fce8f5289e7462218a
|
|
3
|
+
labels:
|
|
4
|
+
- RoslynAnalyzer
|
|
5
|
+
PluginImporter:
|
|
6
|
+
externalObjects: {}
|
|
7
|
+
serializedVersion: 2
|
|
8
|
+
iconMap: {}
|
|
9
|
+
executionOrder: {}
|
|
10
|
+
defineConstraints: []
|
|
11
|
+
isPreloaded: 0
|
|
12
|
+
isOverridable: 0
|
|
13
|
+
isExplicitlyReferenced: 0
|
|
14
|
+
validateReferences: 0
|
|
15
|
+
platformData:
|
|
16
|
+
- first:
|
|
17
|
+
: Any
|
|
18
|
+
second:
|
|
19
|
+
enabled: 0
|
|
20
|
+
settings:
|
|
21
|
+
Exclude Android: 0
|
|
22
|
+
Exclude Editor: 1
|
|
23
|
+
Exclude Linux64: 1
|
|
24
|
+
Exclude OSXUniversal: 1
|
|
25
|
+
Exclude Win: 1
|
|
26
|
+
Exclude Win64: 1
|
|
27
|
+
Exclude iOS: 0
|
|
28
|
+
- first:
|
|
29
|
+
Android: Android
|
|
30
|
+
second:
|
|
31
|
+
enabled: 1
|
|
32
|
+
settings:
|
|
33
|
+
AndroidSharedLibraryType: Executable
|
|
34
|
+
CPU: ARMv7
|
|
35
|
+
- first:
|
|
36
|
+
Any:
|
|
37
|
+
second:
|
|
38
|
+
enabled: 1
|
|
39
|
+
settings: {}
|
|
40
|
+
- first:
|
|
41
|
+
Editor: Editor
|
|
42
|
+
second:
|
|
43
|
+
enabled: 0
|
|
44
|
+
settings:
|
|
45
|
+
CPU: AnyCPU
|
|
46
|
+
DefaultValueInitialized: true
|
|
47
|
+
OS: AnyOS
|
|
48
|
+
- first:
|
|
49
|
+
Standalone: Linux64
|
|
50
|
+
second:
|
|
51
|
+
enabled: 0
|
|
52
|
+
settings:
|
|
53
|
+
CPU: None
|
|
54
|
+
- first:
|
|
55
|
+
Standalone: OSXUniversal
|
|
56
|
+
second:
|
|
57
|
+
enabled: 0
|
|
58
|
+
settings:
|
|
59
|
+
CPU: None
|
|
60
|
+
- first:
|
|
61
|
+
Standalone: Win
|
|
62
|
+
second:
|
|
63
|
+
enabled: 0
|
|
64
|
+
settings:
|
|
65
|
+
CPU: None
|
|
66
|
+
- first:
|
|
67
|
+
Standalone: Win64
|
|
68
|
+
second:
|
|
69
|
+
enabled: 0
|
|
70
|
+
settings:
|
|
71
|
+
CPU: None
|
|
72
|
+
- first:
|
|
73
|
+
Windows Store Apps: WindowsStoreApps
|
|
74
|
+
second:
|
|
75
|
+
enabled: 0
|
|
76
|
+
settings:
|
|
77
|
+
CPU: AnyCPU
|
|
78
|
+
- first:
|
|
79
|
+
iPhone: iOS
|
|
80
|
+
second:
|
|
81
|
+
enabled: 1
|
|
82
|
+
settings:
|
|
83
|
+
AddToEmbeddedBinaries: false
|
|
84
|
+
CPU: AnyCPU
|
|
85
|
+
CompileFlags:
|
|
86
|
+
FrameworkDependencies:
|
|
87
|
+
userData:
|
|
88
|
+
assetBundleName:
|
|
89
|
+
assetBundleVariant:
|
|
Binary file
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 03395982dadd28fb0b2afe7d221d36f9
|
|
3
|
+
PluginImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
iconMap: {}
|
|
7
|
+
executionOrder: {}
|
|
8
|
+
defineConstraints: []
|
|
9
|
+
isPreloaded: 0
|
|
10
|
+
isOverridable: 0
|
|
11
|
+
isExplicitlyReferenced: 0
|
|
12
|
+
validateReferences: 1
|
|
13
|
+
platformData:
|
|
14
|
+
- first:
|
|
15
|
+
: Any
|
|
16
|
+
second:
|
|
17
|
+
enabled: 0
|
|
18
|
+
settings:
|
|
19
|
+
Exclude Android: 0
|
|
20
|
+
Exclude Editor: 0
|
|
21
|
+
Exclude Linux64: 0
|
|
22
|
+
Exclude OSXUniversal: 0
|
|
23
|
+
Exclude Win: 0
|
|
24
|
+
Exclude Win64: 0
|
|
25
|
+
Exclude iOS: 0
|
|
26
|
+
- first:
|
|
27
|
+
Android: Android
|
|
28
|
+
second:
|
|
29
|
+
enabled: 1
|
|
30
|
+
settings: {}
|
|
31
|
+
- first:
|
|
32
|
+
Any:
|
|
33
|
+
second:
|
|
34
|
+
enabled: 1
|
|
35
|
+
settings: {}
|
|
36
|
+
- first:
|
|
37
|
+
Editor: Editor
|
|
38
|
+
second:
|
|
39
|
+
enabled: 1
|
|
40
|
+
settings:
|
|
41
|
+
DefaultValueInitialized: true
|
|
42
|
+
- first:
|
|
43
|
+
Standalone: Linux64
|
|
44
|
+
second:
|
|
45
|
+
enabled: 1
|
|
46
|
+
settings: {}
|
|
47
|
+
- first:
|
|
48
|
+
Standalone: OSXUniversal
|
|
49
|
+
second:
|
|
50
|
+
enabled: 1
|
|
51
|
+
settings: {}
|
|
52
|
+
- first:
|
|
53
|
+
Standalone: Win
|
|
54
|
+
second:
|
|
55
|
+
enabled: 1
|
|
56
|
+
settings: {}
|
|
57
|
+
- first:
|
|
58
|
+
Standalone: Win64
|
|
59
|
+
second:
|
|
60
|
+
enabled: 1
|
|
61
|
+
settings: {}
|
|
62
|
+
- first:
|
|
63
|
+
Windows Store Apps: WindowsStoreApps
|
|
64
|
+
second:
|
|
65
|
+
enabled: 0
|
|
66
|
+
settings:
|
|
67
|
+
CPU: AnyCPU
|
|
68
|
+
- first:
|
|
69
|
+
iPhone: iOS
|
|
70
|
+
second:
|
|
71
|
+
enabled: 1
|
|
72
|
+
settings: {}
|
|
73
|
+
userData:
|
|
74
|
+
assetBundleName:
|
|
75
|
+
assetBundleVariant:
|
|
Binary file
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 1d3825d1faa604f68812aa1ff60b724a
|
|
3
|
+
PluginImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
iconMap: {}
|
|
7
|
+
executionOrder: {}
|
|
8
|
+
defineConstraints: []
|
|
9
|
+
isPreloaded: 0
|
|
10
|
+
isOverridable: 0
|
|
11
|
+
isExplicitlyReferenced: 0
|
|
12
|
+
validateReferences: 1
|
|
13
|
+
platformData:
|
|
14
|
+
- first:
|
|
15
|
+
: Any
|
|
16
|
+
second:
|
|
17
|
+
enabled: 0
|
|
18
|
+
settings:
|
|
19
|
+
Exclude Android: 0
|
|
20
|
+
Exclude Editor: 0
|
|
21
|
+
Exclude Linux64: 0
|
|
22
|
+
Exclude OSXUniversal: 0
|
|
23
|
+
Exclude Win: 0
|
|
24
|
+
Exclude Win64: 0
|
|
25
|
+
Exclude iOS: 0
|
|
26
|
+
- first:
|
|
27
|
+
Android: Android
|
|
28
|
+
second:
|
|
29
|
+
enabled: 1
|
|
30
|
+
settings: {}
|
|
31
|
+
- first:
|
|
32
|
+
Any:
|
|
33
|
+
second:
|
|
34
|
+
enabled: 1
|
|
35
|
+
settings: {}
|
|
36
|
+
- first:
|
|
37
|
+
Editor: Editor
|
|
38
|
+
second:
|
|
39
|
+
enabled: 1
|
|
40
|
+
settings:
|
|
41
|
+
DefaultValueInitialized: true
|
|
42
|
+
- first:
|
|
43
|
+
Standalone: Linux64
|
|
44
|
+
second:
|
|
45
|
+
enabled: 1
|
|
46
|
+
settings: {}
|
|
47
|
+
- first:
|
|
48
|
+
Standalone: OSXUniversal
|
|
49
|
+
second:
|
|
50
|
+
enabled: 1
|
|
51
|
+
settings: {}
|
|
52
|
+
- first:
|
|
53
|
+
Standalone: Win
|
|
54
|
+
second:
|
|
55
|
+
enabled: 1
|
|
56
|
+
settings: {}
|
|
57
|
+
- first:
|
|
58
|
+
Standalone: Win64
|
|
59
|
+
second:
|
|
60
|
+
enabled: 1
|
|
61
|
+
settings: {}
|
|
62
|
+
- first:
|
|
63
|
+
Windows Store Apps: WindowsStoreApps
|
|
64
|
+
second:
|
|
65
|
+
enabled: 0
|
|
66
|
+
settings:
|
|
67
|
+
CPU: AnyCPU
|
|
68
|
+
- first:
|
|
69
|
+
iPhone: iOS
|
|
70
|
+
second:
|
|
71
|
+
enabled: 1
|
|
72
|
+
settings: {}
|
|
73
|
+
userData:
|
|
74
|
+
assetBundleName:
|
|
75
|
+
assetBundleVariant:
|
package/Plugins.meta
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# JCMG Entitas Redux
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/com.elestrago.unity.entitas-redux)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
6
|
+
## Installing
|
|
7
|
+
|
|
8
|
+
Using the native Unity Package Manager introduced in 2017.2, you can add this library as a package by modifying your
|
|
9
|
+
`manifest.json` file found at `/ProjectName/Packages/manifest.json` to include it as a dependency. See the example below
|
|
10
|
+
on how to reference it.
|
|
11
|
+
|
|
12
|
+
### Install via OpenUPM
|
|
13
|
+
|
|
14
|
+
The package is available on the [npmjs](https://www.npmjs.com/package/com.elestrago.unity.entitas-redux/)
|
|
15
|
+
registry.
|
|
16
|
+
|
|
17
|
+
#### Add registry scope
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
{
|
|
21
|
+
"dependencies": {
|
|
22
|
+
...
|
|
23
|
+
"com.elestrago.unity.entitas-redux": "x.x.x",
|
|
24
|
+
...
|
|
25
|
+
},
|
|
26
|
+
"scopedRegistries": [
|
|
27
|
+
{
|
|
28
|
+
"name": "eLeSTRaGo",
|
|
29
|
+
"url": "https://registry.npmjs.org",
|
|
30
|
+
"scopes": [
|
|
31
|
+
"com.elestrago.unity"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### Add package in PackageManager
|
|
39
|
+
|
|
40
|
+
Open `Window -> Package Manager` choose `Packages: My Regestries` and install package
|
|
41
|
+
|
|
42
|
+
# Entitas Redux
|
|
43
|
+
|
|
44
|
+
## About
|
|
45
|
+
|
|
46
|
+
This version of Entitas Redux is a reworked version
|
|
47
|
+
of [EntitasRedux](https://github.com/jeffcampbellmakesgames/Entitas-Redux) with a sole focus on Unity.
|
|
48
|
+
|
|
49
|
+
## Requirements
|
|
50
|
+
|
|
51
|
+
* **Min Unity Version**: 2022.3
|
|
52
|
+
|
|
53
|
+
## Installing Entitas Redux and Getting Started
|
|
54
|
+
|
|
55
|
+
### Context creation
|
|
56
|
+
|
|
57
|
+
To create your first Context in assembly, you need to declare it using attribute.
|
|
58
|
+
|
|
59
|
+
Example:
|
|
60
|
+
|
|
61
|
+
```csharp
|
|
62
|
+
using JCMG.EntitasRedux;
|
|
63
|
+
|
|
64
|
+
public sealed partial class MyFirstAttribute : ContextAttribute
|
|
65
|
+
{
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
After code analysis detects your attribute, it's automatically generating all implementations for Context and Entity
|
|
70
|
+
classes.
|
|
71
|
+
|
|
72
|
+
### Component creation
|
|
73
|
+
|
|
74
|
+
Analyzer detects components by name of a class or base type it must end with `Component` and have one or greater
|
|
75
|
+
attributes
|
|
76
|
+
|
|
77
|
+
#### Simple component
|
|
78
|
+
|
|
79
|
+
Examples:
|
|
80
|
+
|
|
81
|
+
```csharp
|
|
82
|
+
using JCMG.EntitasRedux;
|
|
83
|
+
|
|
84
|
+
[MyFirst]
|
|
85
|
+
public class MyFirstComponent : IComponent
|
|
86
|
+
{
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[MyFirst]
|
|
90
|
+
public class MySecond : IComponent
|
|
91
|
+
{
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
#### Inherited component
|
|
96
|
+
|
|
97
|
+
Examples:
|
|
98
|
+
|
|
99
|
+
```csharp
|
|
100
|
+
using JCMG.EntitasRedux;
|
|
101
|
+
|
|
102
|
+
[MyFirst]
|
|
103
|
+
public class InheritedComponent : MyFirstComponent
|
|
104
|
+
{
|
|
105
|
+
}
|
|
106
|
+
```
|
package/README.md.meta
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
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.Reflection;
|
|
27
|
+
using System.Runtime.CompilerServices;
|
|
28
|
+
|
|
29
|
+
[assembly: InternalsVisibleTo("EntitasRedux.Editor")]
|
|
30
|
+
[assembly: InternalsVisibleTo("EntitasRedux.Tests")]
|
|
31
|
+
|
|
32
|
+
[assembly: AssemblyCompany("Jeff Campbell")]
|
|
33
|
+
[assembly: AssemblyFileVersion("2.1.0")]
|
|
34
|
+
[assembly: AssemblyInformationalVersion("2.1.0+7.Branch.develop.Sha.21ee36e5c2bfc83d5c03aa0da164adbc40f7b20e")]
|
|
35
|
+
[assembly: AssemblyProduct("EntitasRedux")]
|
|
36
|
+
[assembly: AssemblyTitle("EntitasRedux")]
|
|
37
|
+
[assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/jeffcampbellmakesgames/Entitas-Redux.git")]
|
|
38
|
+
|
|
39
|
+
[assembly: AssemblyVersion("2.1.0")]
|
|
@@ -0,0 +1,39 @@
|
|
|
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.Reflection;
|
|
27
|
+
using System.Runtime.CompilerServices;
|
|
28
|
+
|
|
29
|
+
[assembly: InternalsVisibleTo("EntitasRedux.Blueprints.Editor")]
|
|
30
|
+
[assembly: InternalsVisibleTo("EntitasRedux.Blueprints.Editor.Plugins")]
|
|
31
|
+
|
|
32
|
+
[assembly: AssemblyCompany("Jeff Campbell")]
|
|
33
|
+
[assembly: AssemblyFileVersion("2.1.0")]
|
|
34
|
+
[assembly: AssemblyInformationalVersion("2.1.0+7.Branch.develop.Sha.21ee36e5c2bfc83d5c03aa0da164adbc40f7b20e")]
|
|
35
|
+
[assembly: AssemblyProduct("EntitasRedux.Blueprints")]
|
|
36
|
+
[assembly: AssemblyTitle("EntitasRedux.Blueprints")]
|
|
37
|
+
[assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/jeffcampbellmakesgames/Entitas-Redux.git")]
|
|
38
|
+
|
|
39
|
+
[assembly: AssemblyVersion("2.1.0")]
|
|
@@ -0,0 +1,66 @@
|
|
|
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 UnityEngine;
|
|
28
|
+
|
|
29
|
+
namespace JCMG.EntitasRedux.Blueprints
|
|
30
|
+
{
|
|
31
|
+
public abstract class BlueprintBase : ScriptableObject
|
|
32
|
+
{
|
|
33
|
+
internal List<IComponent> Components => _components;
|
|
34
|
+
|
|
35
|
+
[SerializeReference]
|
|
36
|
+
protected List<IComponent> _components;
|
|
37
|
+
|
|
38
|
+
protected virtual void OnEnable()
|
|
39
|
+
{
|
|
40
|
+
if (_components == null)
|
|
41
|
+
{
|
|
42
|
+
_components = new List<IComponent>();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
internal void Validate()
|
|
47
|
+
{
|
|
48
|
+
OnValidate();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
protected virtual void OnValidate()
|
|
52
|
+
{
|
|
53
|
+
// Remove components that have become null due to serialization issues or other reason
|
|
54
|
+
if (_components != null)
|
|
55
|
+
{
|
|
56
|
+
for (var i = _components.Count - 1; i >= 0; i--)
|
|
57
|
+
{
|
|
58
|
+
if (_components[i] == null)
|
|
59
|
+
{
|
|
60
|
+
_components.RemoveAt(i);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 UnityEngine;
|
|
28
|
+
|
|
29
|
+
namespace JCMG.EntitasRedux.Blueprints
|
|
30
|
+
{
|
|
31
|
+
public abstract class BlueprintBehaviourBase : MonoBehaviour
|
|
32
|
+
{
|
|
33
|
+
internal List<IComponent> Components => _components;
|
|
34
|
+
|
|
35
|
+
[SerializeReference]
|
|
36
|
+
protected List<IComponent> _components;
|
|
37
|
+
|
|
38
|
+
protected virtual void Reset()
|
|
39
|
+
{
|
|
40
|
+
_components = new List<IComponent>();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
internal void Validate()
|
|
44
|
+
{
|
|
45
|
+
OnValidate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
protected virtual void OnValidate()
|
|
49
|
+
{
|
|
50
|
+
// Remove components that have become null due to serialization issues or other reason
|
|
51
|
+
if (_components != null)
|
|
52
|
+
{
|
|
53
|
+
for (var i = _components.Count - 1; i >= 0; i--)
|
|
54
|
+
{
|
|
55
|
+
if (_components[i] == null)
|
|
56
|
+
{
|
|
57
|
+
_components.RemoveAt(i);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|