├── .gitattributes ├── .gitignore ├── Assets ├── Entitas.meta ├── Entitas │ ├── Compile.cs │ ├── Compile.cs.meta │ ├── Editor.meta │ ├── Editor │ │ ├── Entitas.CodeGeneration.CodeGenerator.dll │ │ ├── Entitas.CodeGeneration.CodeGenerator.dll.meta │ │ ├── Entitas.CodeGeneration.Plugins.dll │ │ ├── Entitas.CodeGeneration.Plugins.dll.meta │ │ ├── Entitas.CodeGeneration.Unity.Editor.dll │ │ ├── Entitas.CodeGeneration.Unity.Editor.dll.meta │ │ ├── Entitas.CodeGeneration.dll │ │ ├── Entitas.CodeGeneration.dll.meta │ │ ├── Entitas.Migration.Unity.Editor.dll │ │ ├── Entitas.Migration.Unity.Editor.dll.meta │ │ ├── Entitas.Migration.dll │ │ ├── Entitas.Migration.dll.meta │ │ ├── Entitas.Unity.Editor.dll │ │ ├── Entitas.Unity.Editor.dll.meta │ │ ├── Entitas.VisualDebugging.CodeGeneration.Plugins.dll │ │ ├── Entitas.VisualDebugging.CodeGeneration.Plugins.dll.meta │ │ ├── Entitas.VisualDebugging.Unity.Editor.dll │ │ ├── Entitas.VisualDebugging.Unity.Editor.dll.meta │ │ ├── Images.meta │ │ └── Images │ │ │ ├── EntitasContextErrorHierarchyIcon.png │ │ │ ├── EntitasContextErrorHierarchyIcon.png.meta │ │ │ ├── EntitasContextHierarchyIcon.png │ │ │ ├── EntitasContextHierarchyIcon.png.meta │ │ │ ├── EntitasEntityErrorHierarchyIcon.png │ │ │ ├── EntitasEntityErrorHierarchyIcon.png.meta │ │ │ ├── EntitasEntityHierarchyIcon.png │ │ │ ├── EntitasEntityHierarchyIcon.png.meta │ │ │ ├── EntitasHeader.png │ │ │ ├── EntitasHeader.png.meta │ │ │ ├── EntitasSystemsErrorHierarchyIcon.png │ │ │ ├── EntitasSystemsErrorHierarchyIcon.png.meta │ │ │ ├── EntitasSystemsHierarchyIcon.png │ │ │ └── EntitasSystemsHierarchyIcon.png.meta │ ├── Entitas.Blueprints.dll │ ├── Entitas.Blueprints.dll.meta │ ├── Entitas.CodeGeneration.Attributes.dll │ ├── Entitas.CodeGeneration.Attributes.dll.meta │ ├── Entitas.Unity.dll │ ├── Entitas.Unity.dll.meta │ ├── Entitas.Utils.dll │ ├── Entitas.Utils.dll.meta │ ├── Entitas.VisualDebugging.Unity.dll │ ├── Entitas.VisualDebugging.Unity.dll.meta │ ├── Entitas.dll │ ├── Entitas.dll.meta │ ├── fabl.Appenders.dll │ ├── fabl.Appenders.dll.meta │ ├── fabl.dll │ └── fabl.dll.meta ├── EntitasGenerated.meta ├── EntitasGenerated │ ├── Generated.meta │ └── Generated │ │ ├── Contexts.cs │ │ ├── Contexts.cs.meta │ │ ├── Feature.cs │ │ ├── Feature.cs.meta │ │ ├── Game.meta │ │ ├── Game │ │ ├── Components.meta │ │ ├── Components │ │ │ ├── GameConsumeElixirComponent.cs │ │ │ ├── GameConsumeElixirComponent.cs.meta │ │ │ ├── GameConsumptionHistoryComponent.cs │ │ │ ├── GameConsumptionHistoryComponent.cs.meta │ │ │ ├── GameDebugMessageComponent.cs │ │ │ ├── GameDebugMessageComponent.cs.meta │ │ │ ├── GameDirectionComponent.cs │ │ │ ├── GameDirectionComponent.cs.meta │ │ │ ├── GameElixirComponent.cs │ │ │ ├── GameElixirComponent.cs.meta │ │ │ ├── GameElixirLisenterComponent.cs │ │ │ ├── GameElixirLisenterComponent.cs.meta │ │ │ ├── GameJumpInTimeComponent.cs │ │ │ ├── GameJumpInTimeComponent.cs.meta │ │ │ ├── GameLogicSystemComponent.cs │ │ │ ├── GameLogicSystemComponent.cs.meta │ │ │ ├── GameMoveCompleteComponent.cs │ │ │ ├── GameMoveCompleteComponent.cs.meta │ │ │ ├── GameMoveComponent.cs │ │ │ ├── GameMoveComponent.cs.meta │ │ │ ├── GameMoverComponent.cs │ │ │ ├── GameMoverComponent.cs.meta │ │ │ ├── GamePauseComponent.cs │ │ │ ├── GamePauseComponent.cs.meta │ │ │ ├── GamePauseListenerComponent.cs │ │ │ ├── GamePauseListenerComponent.cs.meta │ │ │ ├── GamePositionComponent.cs │ │ │ ├── GamePositionComponent.cs.meta │ │ │ ├── GameSpriteComponent.cs │ │ │ ├── GameSpriteComponent.cs.meta │ │ │ ├── GameTickComponent.cs │ │ │ ├── GameTickComponent.cs.meta │ │ │ ├── GameTickListenerComponent.cs │ │ │ ├── GameTickListenerComponent.cs.meta │ │ │ ├── GameViewComponent.cs │ │ │ └── GameViewComponent.cs.meta │ │ ├── GameAttribute.cs │ │ ├── GameAttribute.cs.meta │ │ ├── GameComponentsLookup.cs │ │ ├── GameComponentsLookup.cs.meta │ │ ├── GameContext.cs │ │ ├── GameContext.cs.meta │ │ ├── GameEntity.cs │ │ ├── GameEntity.cs.meta │ │ ├── GameMatcher.cs │ │ └── GameMatcher.cs.meta │ │ ├── Input.meta │ │ └── Input │ │ ├── Components.meta │ │ ├── Components │ │ ├── InputLeftMouseComponent.cs │ │ ├── InputLeftMouseComponent.cs.meta │ │ ├── InputMouseDownComponent.cs │ │ ├── InputMouseDownComponent.cs.meta │ │ ├── InputMousePositionComponent.cs │ │ ├── InputMousePositionComponent.cs.meta │ │ ├── InputMouseUpComponent.cs │ │ ├── InputMouseUpComponent.cs.meta │ │ ├── InputRightMouseComponent.cs │ │ └── InputRightMouseComponent.cs.meta │ │ ├── InputAttribute.cs │ │ ├── InputAttribute.cs.meta │ │ ├── InputComponentsLookup.cs │ │ ├── InputComponentsLookup.cs.meta │ │ ├── InputContext.cs │ │ ├── InputContext.cs.meta │ │ ├── InputEntity.cs │ │ ├── InputEntity.cs.meta │ │ ├── InputMatcher.cs │ │ └── InputMatcher.cs.meta ├── Resources.meta ├── Resources │ ├── monster_big.png │ ├── monster_big.png.meta │ ├── monster_small.png │ └── monster_small.png.meta ├── TestExamples.meta └── TestExamples │ ├── 1_HelloWorld.meta │ ├── 1_HelloWorld │ ├── 1_HelloWorld.unity │ ├── 1_HelloWorld.unity.meta │ ├── GameController.cs │ ├── GameController.cs.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── Components.meta │ │ ├── Components │ │ ├── DebugMessageComponent.cs │ │ └── DebugMessageComponent.cs.meta │ │ ├── Systems.meta │ │ └── Systems │ │ ├── CleanupDebugMessageSystem.cs │ │ ├── CleanupDebugMessageSystem.cs.meta │ │ ├── DebugMessageSystem.cs │ │ ├── DebugMessageSystem.cs.meta │ │ ├── HelloWorldSystem.cs │ │ ├── HelloWorldSystem.cs.meta │ │ ├── LogMouseClickSystem.cs │ │ ├── LogMouseClickSystem.cs.meta │ │ ├── TutorialSystems.cs │ │ └── TutorialSystems.cs.meta │ ├── 2_EntityViewAndMovement.meta │ ├── 2_EntityViewAndMovement │ ├── Demo2Example.unity │ ├── Demo2Example.unity.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── Components.meta │ │ ├── Components │ │ ├── Components.cs │ │ └── Components.cs.meta │ │ ├── Demo2GameController.cs │ │ ├── Demo2GameController.cs.meta │ │ ├── Systems.meta │ │ └── Systems │ │ ├── AddViewSystem.cs │ │ ├── AddViewSystem.cs.meta │ │ ├── CommandMoveSystem.cs │ │ ├── CommandMoveSystem.cs.meta │ │ ├── CreateMoverSystem.cs │ │ ├── CreateMoverSystem.cs.meta │ │ ├── EmitInputSystem.cs │ │ ├── EmitInputSystem.cs.meta │ │ ├── InputSystems.cs │ │ ├── InputSystems.cs.meta │ │ ├── MoveSystem.cs │ │ ├── MoveSystem.cs.meta │ │ ├── MovementtSystems.cs │ │ ├── MovementtSystems.cs.meta │ │ ├── RenderDirectionSystem.cs │ │ ├── RenderDirectionSystem.cs.meta │ │ ├── RenderPositionSystem.cs │ │ ├── RenderPositionSystem.cs.meta │ │ ├── RenderSpriteSystem.cs │ │ ├── RenderSpriteSystem.cs.meta │ │ ├── ViewSystems.cs │ │ └── ViewSystems.cs.meta │ ├── 3_PlayBackSystem.meta │ └── 3_PlayBackSystem │ ├── Demo3-PlayBack.unity │ ├── Demo3-PlayBack.unity.meta │ ├── Scripts.meta │ └── Scripts │ ├── Behaviour.meta │ ├── Behaviour │ ├── ConsumeButtonBehaviour.cs │ ├── ConsumeButtonBehaviour.cs.meta │ ├── ElixirAmountBehaviour.cs │ ├── ElixirAmountBehaviour.cs.meta │ ├── ElixirBarBehaviour.cs │ ├── ElixirBarBehaviour.cs.meta │ ├── PauseButtonBehaviour.cs │ ├── PauseButtonBehaviour.cs.meta │ ├── TimeBehaviour.cs │ ├── TimeBehaviour.cs.meta │ ├── TimePickerBehaviour.cs │ └── TimePickerBehaviour.cs.meta │ ├── Components.meta │ ├── Components │ ├── ConsumeElixirComponent.cs │ ├── ConsumeElixirComponent.cs.meta │ ├── ConsumptionHistoryComponent.cs │ ├── ConsumptionHistoryComponent.cs.meta │ ├── ElixirComponent.cs │ ├── ElixirComponent.cs.meta │ ├── ElixirLisenterComponent.cs │ ├── ElixirLisenterComponent.cs.meta │ ├── JumpInTimeComponent.cs │ ├── JumpInTimeComponent.cs.meta │ ├── LogicSystemComponent.cs │ ├── LogicSystemComponent.cs.meta │ ├── PauseComponent.cs │ ├── PauseComponent.cs.meta │ ├── PauseListenerComponent.cs │ ├── PauseListenerComponent.cs.meta │ ├── TickComponent.cs │ ├── TickComponent.cs.meta │ ├── TickListenerComponent.cs │ └── TickListenerComponent.cs.meta │ ├── Demo3GameController.cs │ ├── Demo3GameController.cs.meta │ ├── Interface.meta │ ├── Interface │ ├── IElixirListener.cs │ ├── IElixirListener.cs.meta │ ├── IPauseListener.cs │ ├── IPauseListener.cs.meta │ ├── ITickListener.cs │ └── ITickListener.cs.meta │ ├── Systems.meta │ └── Systems │ ├── CleanupConsumtionHistorySystem.cs │ ├── CleanupConsumtionHistorySystem.cs.meta │ ├── ConsumeElixirCleanupSystem.cs │ ├── ConsumeElixirCleanupSystem.cs.meta │ ├── ConsumeElixirSystem.cs │ ├── ConsumeElixirSystem.cs.meta │ ├── ElixirConsumePersistSystem.cs │ ├── ElixirConsumePersistSystem.cs.meta │ ├── NotifyElixirListenersSystem.cs │ ├── NotifyElixirListenersSystem.cs.meta │ ├── NotifyPauseListenersSystem.cs │ ├── NotifyPauseListenersSystem.cs.meta │ ├── NotifyTickListenersSystem.cs │ ├── NotifyTickListenersSystem.cs.meta │ ├── ProduceElixirSystem.cs │ ├── ProduceElixirSystem.cs.meta │ ├── ReplaySystem.cs │ ├── ReplaySystem.cs.meta │ ├── TickUpdateSystem.cs │ └── TickUpdateSystem.cs.meta ├── Entitas.properties ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset ├── README.md └── User.properties /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /Assets/AssetStoreTools* 7 | 8 | # Visual Studio 2015 cache directory 9 | /.vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | 26 | # Unity3D generated meta files 27 | *.pidb.meta 28 | 29 | # Unity3D Generated File On Crash Reports 30 | sysinfo.txt 31 | 32 | # Builds 33 | *.apk 34 | *.unitypackage 35 | -------------------------------------------------------------------------------- /Assets/Entitas.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87c8d0a092971c742b9d62da1b11ecd4 3 | folderAsset: yes 4 | timeCreated: 1512145074 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Entitas/Compile.cs: -------------------------------------------------------------------------------- 1 | namespace Entitas.CodeGeneration.Unity.Editor { 2 | 3 | class Compile {} 4 | } 5 | -------------------------------------------------------------------------------- /Assets/Entitas/Compile.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82a0f23ca8e500f48bc898a28b2c783d 3 | timeCreated: 1512145092 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 61aae46b5c2f74643844e9094140dafd 3 | folderAsset: yes 4 | timeCreated: 1512145074 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.CodeGeneration.CodeGenerator.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Entitas.CodeGeneration.CodeGenerator.dll -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.CodeGeneration.CodeGenerator.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8147baee4185b064e9344ea52cf41f22 3 | timeCreated: 1512145082 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.CodeGeneration.Plugins.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Entitas.CodeGeneration.Plugins.dll -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.CodeGeneration.Plugins.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc04ebf50d829cf439548d622c475cb6 3 | timeCreated: 1512145087 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.CodeGeneration.Unity.Editor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Entitas.CodeGeneration.Unity.Editor.dll -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.CodeGeneration.Unity.Editor.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9758238b6ba18344bdcec5915691f27 3 | timeCreated: 1512145092 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.CodeGeneration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Entitas.CodeGeneration.dll -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.CodeGeneration.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76fb35fa79e5cd64aada24aa0f62fca7 3 | timeCreated: 1512145081 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.Migration.Unity.Editor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Entitas.Migration.Unity.Editor.dll -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.Migration.Unity.Editor.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2344cf43588e774abaa4aa011602f69 3 | timeCreated: 1512145088 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.Migration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Entitas.Migration.dll -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.Migration.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5b7680567d31e048977a8f8404d2bb8 3 | timeCreated: 1512145089 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.Unity.Editor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Entitas.Unity.Editor.dll -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.Unity.Editor.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ed1b490c33835c4a8f0ec1f13828ef4 3 | timeCreated: 1512145079 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.VisualDebugging.CodeGeneration.Plugins.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Entitas.VisualDebugging.CodeGeneration.Plugins.dll -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.VisualDebugging.CodeGeneration.Plugins.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad569c71704e1b14b9b41ce8ce421139 3 | timeCreated: 1512145085 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.VisualDebugging.Unity.Editor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Entitas.VisualDebugging.Unity.Editor.dll -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Entitas.VisualDebugging.Unity.Editor.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0cfdf49c8561f834aa724a0ba07b5ad3 3 | timeCreated: 1512145077 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f51ce3225be130b4ead963b13f67cceb 3 | folderAsset: yes 4 | timeCreated: 1512145074 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasContextErrorHierarchyIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Images/EntitasContextErrorHierarchyIcon.png -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasContextErrorHierarchyIcon.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35e2fad360fea426684933179da777df 3 | labels: 4 | - EntitasContextErrorHierarchyIcon 5 | timeCreated: 1458954327 6 | licenseType: Pro 7 | TextureImporter: 8 | fileIDToRecycleName: {} 9 | serializedVersion: 4 10 | mipmaps: 11 | mipMapMode: 0 12 | enableMipMap: 0 13 | sRGBTexture: 0 14 | linearTexture: 0 15 | fadeOut: 0 16 | borderMipMap: 0 17 | mipMapFadeDistanceStart: 1 18 | mipMapFadeDistanceEnd: 3 19 | bumpmap: 20 | convertToNormalMap: 0 21 | externalNormalMap: 0 22 | heightScale: 0.25 23 | normalMapFilter: 0 24 | isReadable: 0 25 | grayScaleToAlpha: 0 26 | generateCubemap: 6 27 | cubemapConvolution: 0 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 256 31 | textureSettings: 32 | filterMode: 0 33 | aniso: -1 34 | mipBias: -1 35 | wrapMode: -1 36 | nPOTScale: 1 37 | lightmap: 0 38 | compressionQuality: 50 39 | spriteMode: 0 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: 0.5, y: 0.5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaUsage: 1 47 | alphaIsTransparency: 1 48 | spriteTessellationDetail: -1 49 | textureType: 0 50 | textureShape: 1 51 | maxTextureSizeSet: 0 52 | compressionQualitySet: 0 53 | textureFormatSet: 0 54 | platformSettings: 55 | - buildTarget: DefaultTexturePlatform 56 | maxTextureSize: 256 57 | textureFormat: -1 58 | textureCompression: 0 59 | compressionQuality: 50 60 | crunchedCompression: 0 61 | allowsAlphaSplitting: 0 62 | overridden: 0 63 | - buildTarget: Standalone 64 | maxTextureSize: 256 65 | textureFormat: -1 66 | textureCompression: 0 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | - buildTarget: iPhone 72 | maxTextureSize: 256 73 | textureFormat: -1 74 | textureCompression: 0 75 | compressionQuality: 50 76 | crunchedCompression: 0 77 | allowsAlphaSplitting: 0 78 | overridden: 0 79 | - buildTarget: Android 80 | maxTextureSize: 256 81 | textureFormat: -1 82 | textureCompression: 0 83 | compressionQuality: 50 84 | crunchedCompression: 0 85 | allowsAlphaSplitting: 0 86 | overridden: 0 87 | - buildTarget: WebGL 88 | maxTextureSize: 256 89 | textureFormat: -1 90 | textureCompression: 0 91 | compressionQuality: 50 92 | crunchedCompression: 0 93 | allowsAlphaSplitting: 0 94 | overridden: 0 95 | spriteSheet: 96 | serializedVersion: 2 97 | sprites: [] 98 | outline: [] 99 | spritePackingTag: 100 | userData: 101 | assetBundleName: 102 | assetBundleVariant: 103 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasContextHierarchyIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Images/EntitasContextHierarchyIcon.png -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasContextHierarchyIcon.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e23ad41464ef945d784cdb90d844e6c4 3 | labels: 4 | - EntitasContextHierarchyIcon 5 | timeCreated: 1457898659 6 | licenseType: Pro 7 | TextureImporter: 8 | fileIDToRecycleName: {} 9 | serializedVersion: 4 10 | mipmaps: 11 | mipMapMode: 0 12 | enableMipMap: 0 13 | sRGBTexture: 0 14 | linearTexture: 0 15 | fadeOut: 0 16 | borderMipMap: 0 17 | mipMapFadeDistanceStart: 1 18 | mipMapFadeDistanceEnd: 3 19 | bumpmap: 20 | convertToNormalMap: 0 21 | externalNormalMap: 0 22 | heightScale: 0.25 23 | normalMapFilter: 0 24 | isReadable: 0 25 | grayScaleToAlpha: 0 26 | generateCubemap: 6 27 | cubemapConvolution: 0 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 256 31 | textureSettings: 32 | filterMode: 0 33 | aniso: -1 34 | mipBias: -1 35 | wrapMode: -1 36 | nPOTScale: 1 37 | lightmap: 0 38 | compressionQuality: 50 39 | spriteMode: 0 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: 0.5, y: 0.5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaUsage: 1 47 | alphaIsTransparency: 1 48 | spriteTessellationDetail: -1 49 | textureType: 0 50 | textureShape: 1 51 | maxTextureSizeSet: 0 52 | compressionQualitySet: 0 53 | textureFormatSet: 0 54 | platformSettings: 55 | - buildTarget: DefaultTexturePlatform 56 | maxTextureSize: 256 57 | textureFormat: -1 58 | textureCompression: 0 59 | compressionQuality: 50 60 | crunchedCompression: 0 61 | allowsAlphaSplitting: 0 62 | overridden: 0 63 | - buildTarget: Standalone 64 | maxTextureSize: 256 65 | textureFormat: -1 66 | textureCompression: 0 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | - buildTarget: iPhone 72 | maxTextureSize: 256 73 | textureFormat: -1 74 | textureCompression: 0 75 | compressionQuality: 50 76 | crunchedCompression: 0 77 | allowsAlphaSplitting: 0 78 | overridden: 0 79 | - buildTarget: Android 80 | maxTextureSize: 256 81 | textureFormat: -1 82 | textureCompression: 0 83 | compressionQuality: 50 84 | crunchedCompression: 0 85 | allowsAlphaSplitting: 0 86 | overridden: 0 87 | - buildTarget: WebGL 88 | maxTextureSize: 256 89 | textureFormat: -1 90 | textureCompression: 0 91 | compressionQuality: 50 92 | crunchedCompression: 0 93 | allowsAlphaSplitting: 0 94 | overridden: 0 95 | spriteSheet: 96 | serializedVersion: 2 97 | sprites: [] 98 | outline: [] 99 | spritePackingTag: 100 | userData: 101 | assetBundleName: 102 | assetBundleVariant: 103 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasEntityErrorHierarchyIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Images/EntitasEntityErrorHierarchyIcon.png -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasEntityErrorHierarchyIcon.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06bc0e5b0b5124fca8f5d7dde1d012b0 3 | labels: 4 | - EntitasEntityErrorHierarchyIcon 5 | timeCreated: 1461325930 6 | licenseType: Pro 7 | TextureImporter: 8 | fileIDToRecycleName: {} 9 | serializedVersion: 4 10 | mipmaps: 11 | mipMapMode: 0 12 | enableMipMap: 0 13 | sRGBTexture: 0 14 | linearTexture: 0 15 | fadeOut: 0 16 | borderMipMap: 0 17 | mipMapFadeDistanceStart: 1 18 | mipMapFadeDistanceEnd: 3 19 | bumpmap: 20 | convertToNormalMap: 0 21 | externalNormalMap: 0 22 | heightScale: 0.25 23 | normalMapFilter: 0 24 | isReadable: 0 25 | grayScaleToAlpha: 0 26 | generateCubemap: 6 27 | cubemapConvolution: 0 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 256 31 | textureSettings: 32 | filterMode: 0 33 | aniso: -1 34 | mipBias: -1 35 | wrapMode: -1 36 | nPOTScale: 1 37 | lightmap: 0 38 | compressionQuality: 50 39 | spriteMode: 0 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: 0.5, y: 0.5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaUsage: 1 47 | alphaIsTransparency: 1 48 | spriteTessellationDetail: -1 49 | textureType: 0 50 | textureShape: 1 51 | maxTextureSizeSet: 0 52 | compressionQualitySet: 0 53 | textureFormatSet: 0 54 | platformSettings: 55 | - buildTarget: DefaultTexturePlatform 56 | maxTextureSize: 256 57 | textureFormat: -1 58 | textureCompression: 0 59 | compressionQuality: 50 60 | crunchedCompression: 0 61 | allowsAlphaSplitting: 0 62 | overridden: 0 63 | - buildTarget: Standalone 64 | maxTextureSize: 256 65 | textureFormat: -1 66 | textureCompression: 0 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | spriteSheet: 72 | serializedVersion: 2 73 | sprites: [] 74 | outline: [] 75 | spritePackingTag: 76 | userData: 77 | assetBundleName: 78 | assetBundleVariant: 79 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasEntityHierarchyIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Images/EntitasEntityHierarchyIcon.png -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasEntityHierarchyIcon.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27b806265ee874b86aa2d28aba93ace2 3 | labels: 4 | - EntitasEntityHierarchyIcon 5 | timeCreated: 1457898659 6 | licenseType: Pro 7 | TextureImporter: 8 | fileIDToRecycleName: {} 9 | serializedVersion: 4 10 | mipmaps: 11 | mipMapMode: 0 12 | enableMipMap: 0 13 | sRGBTexture: 0 14 | linearTexture: 0 15 | fadeOut: 0 16 | borderMipMap: 0 17 | mipMapFadeDistanceStart: 1 18 | mipMapFadeDistanceEnd: 3 19 | bumpmap: 20 | convertToNormalMap: 0 21 | externalNormalMap: 0 22 | heightScale: 0.25 23 | normalMapFilter: 0 24 | isReadable: 0 25 | grayScaleToAlpha: 0 26 | generateCubemap: 6 27 | cubemapConvolution: 0 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 256 31 | textureSettings: 32 | filterMode: 0 33 | aniso: -1 34 | mipBias: -1 35 | wrapMode: -1 36 | nPOTScale: 1 37 | lightmap: 0 38 | compressionQuality: 50 39 | spriteMode: 0 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: 0.5, y: 0.5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaUsage: 1 47 | alphaIsTransparency: 1 48 | spriteTessellationDetail: -1 49 | textureType: 0 50 | textureShape: 1 51 | maxTextureSizeSet: 0 52 | compressionQualitySet: 0 53 | textureFormatSet: 0 54 | platformSettings: 55 | - buildTarget: DefaultTexturePlatform 56 | maxTextureSize: 256 57 | textureFormat: -1 58 | textureCompression: 0 59 | compressionQuality: 50 60 | crunchedCompression: 0 61 | allowsAlphaSplitting: 0 62 | overridden: 0 63 | - buildTarget: Standalone 64 | maxTextureSize: 256 65 | textureFormat: -1 66 | textureCompression: 0 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | spriteSheet: 72 | serializedVersion: 2 73 | sprites: [] 74 | outline: [] 75 | spritePackingTag: 76 | userData: 77 | assetBundleName: 78 | assetBundleVariant: 79 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasHeader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Images/EntitasHeader.png -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasHeader.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65fb57b88da1f40c59682763366ab260 3 | labels: 4 | - EntitasHeader 5 | timeCreated: 1488042330 6 | licenseType: Pro 7 | TextureImporter: 8 | fileIDToRecycleName: {} 9 | serializedVersion: 4 10 | mipmaps: 11 | mipMapMode: 0 12 | enableMipMap: 0 13 | sRGBTexture: 0 14 | linearTexture: 0 15 | fadeOut: 0 16 | borderMipMap: 0 17 | mipMapFadeDistanceStart: 1 18 | mipMapFadeDistanceEnd: 3 19 | bumpmap: 20 | convertToNormalMap: 0 21 | externalNormalMap: 0 22 | heightScale: 0.25 23 | normalMapFilter: 0 24 | isReadable: 0 25 | grayScaleToAlpha: 0 26 | generateCubemap: 6 27 | cubemapConvolution: 0 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 2048 31 | textureSettings: 32 | filterMode: 2 33 | aniso: 1 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | compressionQuality: 50 39 | spriteMode: 0 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: 0.5, y: 0.5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaUsage: 1 47 | alphaIsTransparency: 0 48 | spriteTessellationDetail: -1 49 | textureType: 0 50 | textureShape: 1 51 | maxTextureSizeSet: 0 52 | compressionQualitySet: 0 53 | textureFormatSet: 0 54 | platformSettings: 55 | - buildTarget: DefaultTexturePlatform 56 | maxTextureSize: 2048 57 | textureFormat: -1 58 | textureCompression: 0 59 | compressionQuality: 50 60 | crunchedCompression: 0 61 | allowsAlphaSplitting: 0 62 | overridden: 0 63 | - buildTarget: Standalone 64 | maxTextureSize: 2048 65 | textureFormat: -1 66 | textureCompression: 0 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | spriteSheet: 72 | serializedVersion: 2 73 | sprites: [] 74 | outline: [] 75 | spritePackingTag: 76 | userData: 77 | assetBundleName: 78 | assetBundleVariant: 79 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasSystemsErrorHierarchyIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Images/EntitasSystemsErrorHierarchyIcon.png -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasSystemsErrorHierarchyIcon.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8fecc08fe51ec4ba990bfd58e4ed14b5 3 | labels: 4 | - EntitasSystemsErrorHierarchyIcon 5 | timeCreated: 1489846920 6 | licenseType: Pro 7 | TextureImporter: 8 | fileIDToRecycleName: {} 9 | serializedVersion: 4 10 | mipmaps: 11 | mipMapMode: 0 12 | enableMipMap: 0 13 | sRGBTexture: 0 14 | linearTexture: 0 15 | fadeOut: 0 16 | borderMipMap: 0 17 | mipMapFadeDistanceStart: 1 18 | mipMapFadeDistanceEnd: 3 19 | bumpmap: 20 | convertToNormalMap: 0 21 | externalNormalMap: 0 22 | heightScale: 0.25 23 | normalMapFilter: 0 24 | isReadable: 0 25 | grayScaleToAlpha: 0 26 | generateCubemap: 6 27 | cubemapConvolution: 0 28 | seamlessCubemap: 0 29 | textureFormat: 1 30 | maxTextureSize: 2048 31 | textureSettings: 32 | filterMode: 0 33 | aniso: -1 34 | mipBias: -1 35 | wrapMode: -1 36 | nPOTScale: 1 37 | lightmap: 0 38 | compressionQuality: 50 39 | spriteMode: 0 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: 0.5, y: 0.5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaUsage: 1 47 | alphaIsTransparency: 1 48 | spriteTessellationDetail: -1 49 | textureType: 0 50 | textureShape: 1 51 | maxTextureSizeSet: 0 52 | compressionQualitySet: 0 53 | textureFormatSet: 0 54 | platformSettings: 55 | - buildTarget: DefaultTexturePlatform 56 | maxTextureSize: 256 57 | textureFormat: -1 58 | textureCompression: 0 59 | compressionQuality: 50 60 | crunchedCompression: 0 61 | allowsAlphaSplitting: 0 62 | overridden: 0 63 | - buildTarget: Standalone 64 | maxTextureSize: 256 65 | textureFormat: -1 66 | textureCompression: 0 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | spriteSheet: 72 | serializedVersion: 2 73 | sprites: [] 74 | outline: [] 75 | spritePackingTag: 76 | userData: 77 | assetBundleName: 78 | assetBundleVariant: 79 | -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasSystemsHierarchyIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Editor/Images/EntitasSystemsHierarchyIcon.png -------------------------------------------------------------------------------- /Assets/Entitas/Editor/Images/EntitasSystemsHierarchyIcon.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ee737a83aa9b4b56b2058b2b651ff0a 3 | labels: 4 | - EntitasSystemsHierarchyIcon 5 | timeCreated: 1489847588 6 | licenseType: Pro 7 | TextureImporter: 8 | fileIDToRecycleName: {} 9 | serializedVersion: 4 10 | mipmaps: 11 | mipMapMode: 0 12 | enableMipMap: 0 13 | sRGBTexture: 0 14 | linearTexture: 0 15 | fadeOut: 0 16 | borderMipMap: 0 17 | mipMapFadeDistanceStart: 1 18 | mipMapFadeDistanceEnd: 3 19 | bumpmap: 20 | convertToNormalMap: 0 21 | externalNormalMap: 0 22 | heightScale: 0.25 23 | normalMapFilter: 0 24 | isReadable: 0 25 | grayScaleToAlpha: 0 26 | generateCubemap: 6 27 | cubemapConvolution: 0 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 256 31 | textureSettings: 32 | filterMode: 0 33 | aniso: -1 34 | mipBias: -1 35 | wrapMode: -1 36 | nPOTScale: 1 37 | lightmap: 0 38 | compressionQuality: 50 39 | spriteMode: 0 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: 0.5, y: 0.5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaUsage: 1 47 | alphaIsTransparency: 1 48 | spriteTessellationDetail: -1 49 | textureType: 0 50 | textureShape: 1 51 | maxTextureSizeSet: 0 52 | compressionQualitySet: 0 53 | textureFormatSet: 0 54 | platformSettings: 55 | - buildTarget: DefaultTexturePlatform 56 | maxTextureSize: 256 57 | textureFormat: -1 58 | textureCompression: 0 59 | compressionQuality: 50 60 | crunchedCompression: 0 61 | allowsAlphaSplitting: 0 62 | overridden: 0 63 | - buildTarget: Standalone 64 | maxTextureSize: 256 65 | textureFormat: -1 66 | textureCompression: 0 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | spriteSheet: 72 | serializedVersion: 2 73 | sprites: [] 74 | outline: [] 75 | spritePackingTag: 76 | userData: 77 | assetBundleName: 78 | assetBundleVariant: 79 | -------------------------------------------------------------------------------- /Assets/Entitas/Entitas.Blueprints.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Entitas.Blueprints.dll -------------------------------------------------------------------------------- /Assets/Entitas/Entitas.Blueprints.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ccc7c0d334fa8574d9a62e81148513e6 3 | timeCreated: 1512145085 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Entitas.CodeGeneration.Attributes.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Entitas.CodeGeneration.Attributes.dll -------------------------------------------------------------------------------- /Assets/Entitas/Entitas.CodeGeneration.Attributes.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ca91f22b9365b346b7e4636a991d0f6 3 | timeCreated: 1512145080 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Entitas.Unity.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Entitas.Unity.dll -------------------------------------------------------------------------------- /Assets/Entitas/Entitas.Unity.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d82ab3e130681544292ec7c4f5f87a14 3 | timeCreated: 1512145086 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Entitas.Utils.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Entitas.Utils.dll -------------------------------------------------------------------------------- /Assets/Entitas/Entitas.Utils.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87e9bb063364424409cceb46911c4cf4 3 | timeCreated: 1512145082 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Entitas.VisualDebugging.Unity.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Entitas.VisualDebugging.Unity.dll -------------------------------------------------------------------------------- /Assets/Entitas/Entitas.VisualDebugging.Unity.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a751f46f8386b5d4c89489e059c2a85b 3 | timeCreated: 1512145084 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/Entitas.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/Entitas.dll -------------------------------------------------------------------------------- /Assets/Entitas/Entitas.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f84d933d1c025d44aa8a8d60dd0a2ec6 3 | timeCreated: 1512145090 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/fabl.Appenders.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/fabl.Appenders.dll -------------------------------------------------------------------------------- /Assets/Entitas/fabl.Appenders.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c42f60b937e9e549a3e1ba1bee34008 3 | timeCreated: 1512145083 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Entitas/fabl.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Entitas/fabl.dll -------------------------------------------------------------------------------- /Assets/Entitas/fabl.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4603d379f298b754b90338ce8c03c7e1 3 | timeCreated: 1512145081 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7eac466ff5799be4eaba8629cdb12319 3 | folderAsset: yes 4 | timeCreated: 1512185023 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d056495ecc9c1c43aa4f27ac230b099 3 | folderAsset: yes 4 | timeCreated: 1512185023 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Contexts.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ContextsGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class Contexts : Entitas.IContexts { 10 | 11 | public static Contexts sharedInstance { 12 | get { 13 | if (_sharedInstance == null) { 14 | _sharedInstance = new Contexts(); 15 | } 16 | 17 | return _sharedInstance; 18 | } 19 | set { _sharedInstance = value; } 20 | } 21 | 22 | static Contexts _sharedInstance; 23 | 24 | public GameContext game { get; set; } 25 | public InputContext input { get; set; } 26 | 27 | public Entitas.IContext[] allContexts { get { return new Entitas.IContext [] { game, input }; } } 28 | 29 | public Contexts() { 30 | game = new GameContext(); 31 | input = new InputContext(); 32 | 33 | var postConstructors = System.Linq.Enumerable.Where( 34 | GetType().GetMethods(), 35 | method => System.Attribute.IsDefined(method, typeof(Entitas.CodeGeneration.Attributes.PostConstructorAttribute)) 36 | ); 37 | 38 | foreach (var postConstructor in postConstructors) { 39 | postConstructor.Invoke(this, null); 40 | } 41 | } 42 | 43 | public void Reset() { 44 | var contexts = allContexts; 45 | for (int i = 0; i < contexts.Length; i++) { 46 | contexts[i].Reset(); 47 | } 48 | } 49 | } 50 | 51 | //------------------------------------------------------------------------------ 52 | // 53 | // This code was generated by Entitas.VisualDebugging.CodeGeneration.Plugins.ContextObserverGenerator. 54 | // 55 | // Changes to this file may cause incorrect behavior and will be lost if 56 | // the code is regenerated. 57 | // 58 | //------------------------------------------------------------------------------ 59 | public partial class Contexts { 60 | 61 | #if (!ENTITAS_DISABLE_VISUAL_DEBUGGING && UNITY_EDITOR) 62 | 63 | [Entitas.CodeGeneration.Attributes.PostConstructor] 64 | public void InitializeContexObservers() { 65 | try { 66 | CreateContextObserver(game); 67 | CreateContextObserver(input); 68 | } catch(System.Exception) { 69 | } 70 | } 71 | 72 | public void CreateContextObserver(Entitas.IContext context) { 73 | if (UnityEngine.Application.isPlaying) { 74 | var observer = new Entitas.VisualDebugging.Unity.ContextObserver(context); 75 | UnityEngine.Object.DontDestroyOnLoad(observer.gameObject); 76 | } 77 | } 78 | 79 | #endif 80 | } 81 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Contexts.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48d4b2ab8843bc54c81cc3c443ea37bf 3 | timeCreated: 1512185023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Feature.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.VisualDebugging.CodeGeneration.Plugins.FeatureClassGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | #if (!ENTITAS_DISABLE_VISUAL_DEBUGGING && UNITY_EDITOR) 10 | 11 | public class Feature : Entitas.VisualDebugging.Unity.DebugSystems { 12 | 13 | public Feature(string name) : base(name) { 14 | } 15 | 16 | public Feature() : base(true) { 17 | var typeName = Entitas.Utils.TypeSerializationExtension.ToCompilableString(GetType()); 18 | var shortType = Entitas.Utils.TypeSerializationExtension.ShortTypeName(typeName); 19 | var readableType = Entitas.Utils.StringExtension.ToSpacedCamelCase(shortType); 20 | 21 | initialize(readableType); 22 | } 23 | } 24 | 25 | #else 26 | 27 | public class Feature : Entitas.Systems { 28 | 29 | public Feature(string name) { 30 | } 31 | 32 | public Feature() { 33 | } 34 | } 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Feature.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1273ada34f8ab2e49b61392a1411c599 3 | timeCreated: 1512185023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6d974c678e9b42449f95a79c902474f 3 | folderAsset: yes 4 | timeCreated: 1512185023 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 42f2d46436ae2644c9b1ca1461269b99 3 | folderAsset: yes 4 | timeCreated: 1512185023 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameConsumeElixirComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class GameEntity { 10 | 11 | public ConsumeElixirComponent consumeElixir { get { return (ConsumeElixirComponent)GetComponent(GameComponentsLookup.ConsumeElixir); } } 12 | public bool hasConsumeElixir { get { return HasComponent(GameComponentsLookup.ConsumeElixir); } } 13 | 14 | public void AddConsumeElixir(int newAmount) { 15 | var index = GameComponentsLookup.ConsumeElixir; 16 | var component = CreateComponent(index); 17 | component.amount = newAmount; 18 | AddComponent(index, component); 19 | } 20 | 21 | public void ReplaceConsumeElixir(int newAmount) { 22 | var index = GameComponentsLookup.ConsumeElixir; 23 | var component = CreateComponent(index); 24 | component.amount = newAmount; 25 | ReplaceComponent(index, component); 26 | } 27 | 28 | public void RemoveConsumeElixir() { 29 | RemoveComponent(GameComponentsLookup.ConsumeElixir); 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class GameMatcher { 42 | 43 | static Entitas.IMatcher _matcherConsumeElixir; 44 | 45 | public static Entitas.IMatcher ConsumeElixir { 46 | get { 47 | if (_matcherConsumeElixir == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.ConsumeElixir); 49 | matcher.componentNames = GameComponentsLookup.componentNames; 50 | _matcherConsumeElixir = matcher; 51 | } 52 | 53 | return _matcherConsumeElixir; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameConsumeElixirComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 986004205c6790848b568bb60d59e3bf 3 | timeCreated: 1512225717 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameConsumptionHistoryComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b75bc5331a9def64ea2ce58db4f32fc8 3 | timeCreated: 1512225840 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameDebugMessageComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class GameEntity { 10 | 11 | public DebugMessageComponent debugMessage { get { return (DebugMessageComponent)GetComponent(GameComponentsLookup.DebugMessage); } } 12 | public bool hasDebugMessage { get { return HasComponent(GameComponentsLookup.DebugMessage); } } 13 | 14 | public void AddDebugMessage(string newMessage) { 15 | var index = GameComponentsLookup.DebugMessage; 16 | var component = CreateComponent(index); 17 | component.message = newMessage; 18 | AddComponent(index, component); 19 | } 20 | 21 | public void ReplaceDebugMessage(string newMessage) { 22 | var index = GameComponentsLookup.DebugMessage; 23 | var component = CreateComponent(index); 24 | component.message = newMessage; 25 | ReplaceComponent(index, component); 26 | } 27 | 28 | public void RemoveDebugMessage() { 29 | RemoveComponent(GameComponentsLookup.DebugMessage); 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class GameMatcher { 42 | 43 | static Entitas.IMatcher _matcherDebugMessage; 44 | 45 | public static Entitas.IMatcher DebugMessage { 46 | get { 47 | if (_matcherDebugMessage == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.DebugMessage); 49 | matcher.componentNames = GameComponentsLookup.componentNames; 50 | _matcherDebugMessage = matcher; 51 | } 52 | 53 | return _matcherDebugMessage; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameDebugMessageComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de771f742a1dfed4e99ed699555c5c27 3 | timeCreated: 1512225717 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameDirectionComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class GameEntity { 10 | 11 | public DirectionComponent direction { get { return (DirectionComponent)GetComponent(GameComponentsLookup.Direction); } } 12 | public bool hasDirection { get { return HasComponent(GameComponentsLookup.Direction); } } 13 | 14 | public void AddDirection(float newValue) { 15 | var index = GameComponentsLookup.Direction; 16 | var component = CreateComponent(index); 17 | component.value = newValue; 18 | AddComponent(index, component); 19 | } 20 | 21 | public void ReplaceDirection(float newValue) { 22 | var index = GameComponentsLookup.Direction; 23 | var component = CreateComponent(index); 24 | component.value = newValue; 25 | ReplaceComponent(index, component); 26 | } 27 | 28 | public void RemoveDirection() { 29 | RemoveComponent(GameComponentsLookup.Direction); 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class GameMatcher { 42 | 43 | static Entitas.IMatcher _matcherDirection; 44 | 45 | public static Entitas.IMatcher Direction { 46 | get { 47 | if (_matcherDirection == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.Direction); 49 | matcher.componentNames = GameComponentsLookup.componentNames; 50 | _matcherDirection = matcher; 51 | } 52 | 53 | return _matcherDirection; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameDirectionComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 73f2727fe1635824890640a1383dfefe 3 | timeCreated: 1512225717 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameElixirComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90952d3e387af934d89e49a12f7d3a26 3 | timeCreated: 1512225717 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameElixirLisenterComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class GameEntity { 10 | 11 | public ElixirLisenterComponent elixirLisenter { get { return (ElixirLisenterComponent)GetComponent(GameComponentsLookup.ElixirLisenter); } } 12 | public bool hasElixirLisenter { get { return HasComponent(GameComponentsLookup.ElixirLisenter); } } 13 | 14 | public void AddElixirLisenter(IElixirListener newValue) { 15 | var index = GameComponentsLookup.ElixirLisenter; 16 | var component = CreateComponent(index); 17 | component.value = newValue; 18 | AddComponent(index, component); 19 | } 20 | 21 | public void ReplaceElixirLisenter(IElixirListener newValue) { 22 | var index = GameComponentsLookup.ElixirLisenter; 23 | var component = CreateComponent(index); 24 | component.value = newValue; 25 | ReplaceComponent(index, component); 26 | } 27 | 28 | public void RemoveElixirLisenter() { 29 | RemoveComponent(GameComponentsLookup.ElixirLisenter); 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class GameMatcher { 42 | 43 | static Entitas.IMatcher _matcherElixirLisenter; 44 | 45 | public static Entitas.IMatcher ElixirLisenter { 46 | get { 47 | if (_matcherElixirLisenter == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.ElixirLisenter); 49 | matcher.componentNames = GameComponentsLookup.componentNames; 50 | _matcherElixirLisenter = matcher; 51 | } 52 | 53 | return _matcherElixirLisenter; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameElixirLisenterComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5c28c1611501bf46bc3eaee10297413 3 | timeCreated: 1512225840 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameJumpInTimeComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1e00b513ada2184caf9bb6fb505a1c7 3 | timeCreated: 1512225840 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameLogicSystemComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6560d692ee4ae41429678d975fc8b46f 3 | timeCreated: 1512225839 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameMoveCompleteComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class GameEntity { 10 | 11 | static readonly MoveCompleteComponent moveCompleteComponent = new MoveCompleteComponent(); 12 | 13 | public bool isMoveComplete { 14 | get { return HasComponent(GameComponentsLookup.MoveComplete); } 15 | set { 16 | if (value != isMoveComplete) { 17 | var index = GameComponentsLookup.MoveComplete; 18 | if (value) { 19 | var componentPool = GetComponentPool(index); 20 | var component = componentPool.Count > 0 21 | ? componentPool.Pop() 22 | : moveCompleteComponent; 23 | 24 | AddComponent(index, component); 25 | } else { 26 | RemoveComponent(index); 27 | } 28 | } 29 | } 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class GameMatcher { 42 | 43 | static Entitas.IMatcher _matcherMoveComplete; 44 | 45 | public static Entitas.IMatcher MoveComplete { 46 | get { 47 | if (_matcherMoveComplete == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.MoveComplete); 49 | matcher.componentNames = GameComponentsLookup.componentNames; 50 | _matcherMoveComplete = matcher; 51 | } 52 | 53 | return _matcherMoveComplete; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameMoveCompleteComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 45aef8b4f5ac92249aa732624d892b02 3 | timeCreated: 1512225717 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameMoveComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class GameEntity { 10 | 11 | public MoveComponent move { get { return (MoveComponent)GetComponent(GameComponentsLookup.Move); } } 12 | public bool hasMove { get { return HasComponent(GameComponentsLookup.Move); } } 13 | 14 | public void AddMove(UnityEngine.Vector2 newTarget) { 15 | var index = GameComponentsLookup.Move; 16 | var component = CreateComponent(index); 17 | component.target = newTarget; 18 | AddComponent(index, component); 19 | } 20 | 21 | public void ReplaceMove(UnityEngine.Vector2 newTarget) { 22 | var index = GameComponentsLookup.Move; 23 | var component = CreateComponent(index); 24 | component.target = newTarget; 25 | ReplaceComponent(index, component); 26 | } 27 | 28 | public void RemoveMove() { 29 | RemoveComponent(GameComponentsLookup.Move); 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class GameMatcher { 42 | 43 | static Entitas.IMatcher _matcherMove; 44 | 45 | public static Entitas.IMatcher Move { 46 | get { 47 | if (_matcherMove == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.Move); 49 | matcher.componentNames = GameComponentsLookup.componentNames; 50 | _matcherMove = matcher; 51 | } 52 | 53 | return _matcherMove; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameMoveComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e95dba533e7eb48428008efc9b3d48b5 3 | timeCreated: 1512225717 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameMoverComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class GameEntity { 10 | 11 | static readonly MoverComponent moverComponent = new MoverComponent(); 12 | 13 | public bool isMover { 14 | get { return HasComponent(GameComponentsLookup.Mover); } 15 | set { 16 | if (value != isMover) { 17 | var index = GameComponentsLookup.Mover; 18 | if (value) { 19 | var componentPool = GetComponentPool(index); 20 | var component = componentPool.Count > 0 21 | ? componentPool.Pop() 22 | : moverComponent; 23 | 24 | AddComponent(index, component); 25 | } else { 26 | RemoveComponent(index); 27 | } 28 | } 29 | } 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class GameMatcher { 42 | 43 | static Entitas.IMatcher _matcherMover; 44 | 45 | public static Entitas.IMatcher Mover { 46 | get { 47 | if (_matcherMover == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.Mover); 49 | matcher.componentNames = GameComponentsLookup.componentNames; 50 | _matcherMover = matcher; 51 | } 52 | 53 | return _matcherMover; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameMoverComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7dafd695db7c5ef46bb17d467b48e82c 3 | timeCreated: 1512225717 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GamePauseComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentContextGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class GameContext { 10 | 11 | public GameEntity pauseEntity { get { return GetGroup(GameMatcher.Pause).GetSingleEntity(); } } 12 | 13 | public bool isPause { 14 | get { return pauseEntity != null; } 15 | set { 16 | var entity = pauseEntity; 17 | if (value != (entity != null)) { 18 | if (value) { 19 | CreateEntity().isPause = true; 20 | } else { 21 | entity.Destroy(); 22 | } 23 | } 24 | } 25 | } 26 | } 27 | 28 | //------------------------------------------------------------------------------ 29 | // 30 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 31 | // 32 | // Changes to this file may cause incorrect behavior and will be lost if 33 | // the code is regenerated. 34 | // 35 | //------------------------------------------------------------------------------ 36 | public partial class GameEntity { 37 | 38 | static readonly PauseComponent pauseComponent = new PauseComponent(); 39 | 40 | public bool isPause { 41 | get { return HasComponent(GameComponentsLookup.Pause); } 42 | set { 43 | if (value != isPause) { 44 | var index = GameComponentsLookup.Pause; 45 | if (value) { 46 | var componentPool = GetComponentPool(index); 47 | var component = componentPool.Count > 0 48 | ? componentPool.Pop() 49 | : pauseComponent; 50 | 51 | AddComponent(index, component); 52 | } else { 53 | RemoveComponent(index); 54 | } 55 | } 56 | } 57 | } 58 | } 59 | 60 | //------------------------------------------------------------------------------ 61 | // 62 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 63 | // 64 | // Changes to this file may cause incorrect behavior and will be lost if 65 | // the code is regenerated. 66 | // 67 | //------------------------------------------------------------------------------ 68 | public sealed partial class GameMatcher { 69 | 70 | static Entitas.IMatcher _matcherPause; 71 | 72 | public static Entitas.IMatcher Pause { 73 | get { 74 | if (_matcherPause == null) { 75 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.Pause); 76 | matcher.componentNames = GameComponentsLookup.componentNames; 77 | _matcherPause = matcher; 78 | } 79 | 80 | return _matcherPause; 81 | } 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GamePauseComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 09c36b38de4db77478295f285300582e 3 | timeCreated: 1512225717 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GamePauseListenerComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class GameEntity { 10 | 11 | public PauseListenerComponent pauseListener { get { return (PauseListenerComponent)GetComponent(GameComponentsLookup.PauseListener); } } 12 | public bool hasPauseListener { get { return HasComponent(GameComponentsLookup.PauseListener); } } 13 | 14 | public void AddPauseListener(IPauseListener newValue) { 15 | var index = GameComponentsLookup.PauseListener; 16 | var component = CreateComponent(index); 17 | component.value = newValue; 18 | AddComponent(index, component); 19 | } 20 | 21 | public void ReplacePauseListener(IPauseListener newValue) { 22 | var index = GameComponentsLookup.PauseListener; 23 | var component = CreateComponent(index); 24 | component.value = newValue; 25 | ReplaceComponent(index, component); 26 | } 27 | 28 | public void RemovePauseListener() { 29 | RemoveComponent(GameComponentsLookup.PauseListener); 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class GameMatcher { 42 | 43 | static Entitas.IMatcher _matcherPauseListener; 44 | 45 | public static Entitas.IMatcher PauseListener { 46 | get { 47 | if (_matcherPauseListener == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.PauseListener); 49 | matcher.componentNames = GameComponentsLookup.componentNames; 50 | _matcherPauseListener = matcher; 51 | } 52 | 53 | return _matcherPauseListener; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GamePauseListenerComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f52f5e37950ca3846aa4dfa280b1b984 3 | timeCreated: 1512225840 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GamePositionComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class GameEntity { 10 | 11 | public PositionComponent position { get { return (PositionComponent)GetComponent(GameComponentsLookup.Position); } } 12 | public bool hasPosition { get { return HasComponent(GameComponentsLookup.Position); } } 13 | 14 | public void AddPosition(UnityEngine.Vector2 newValue) { 15 | var index = GameComponentsLookup.Position; 16 | var component = CreateComponent(index); 17 | component.value = newValue; 18 | AddComponent(index, component); 19 | } 20 | 21 | public void ReplacePosition(UnityEngine.Vector2 newValue) { 22 | var index = GameComponentsLookup.Position; 23 | var component = CreateComponent(index); 24 | component.value = newValue; 25 | ReplaceComponent(index, component); 26 | } 27 | 28 | public void RemovePosition() { 29 | RemoveComponent(GameComponentsLookup.Position); 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class GameMatcher { 42 | 43 | static Entitas.IMatcher _matcherPosition; 44 | 45 | public static Entitas.IMatcher Position { 46 | get { 47 | if (_matcherPosition == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.Position); 49 | matcher.componentNames = GameComponentsLookup.componentNames; 50 | _matcherPosition = matcher; 51 | } 52 | 53 | return _matcherPosition; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GamePositionComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06b94fedf96886745b65b2d43d3b935f 3 | timeCreated: 1512225717 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameSpriteComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class GameEntity { 10 | 11 | public SpriteComponent sprite { get { return (SpriteComponent)GetComponent(GameComponentsLookup.Sprite); } } 12 | public bool hasSprite { get { return HasComponent(GameComponentsLookup.Sprite); } } 13 | 14 | public void AddSprite(string newName) { 15 | var index = GameComponentsLookup.Sprite; 16 | var component = CreateComponent(index); 17 | component.name = newName; 18 | AddComponent(index, component); 19 | } 20 | 21 | public void ReplaceSprite(string newName) { 22 | var index = GameComponentsLookup.Sprite; 23 | var component = CreateComponent(index); 24 | component.name = newName; 25 | ReplaceComponent(index, component); 26 | } 27 | 28 | public void RemoveSprite() { 29 | RemoveComponent(GameComponentsLookup.Sprite); 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class GameMatcher { 42 | 43 | static Entitas.IMatcher _matcherSprite; 44 | 45 | public static Entitas.IMatcher Sprite { 46 | get { 47 | if (_matcherSprite == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.Sprite); 49 | matcher.componentNames = GameComponentsLookup.componentNames; 50 | _matcherSprite = matcher; 51 | } 52 | 53 | return _matcherSprite; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameSpriteComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2696f047112690d4badcc592ea86b65f 3 | timeCreated: 1512225717 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameTickComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ce8e88bd56e998478d44a88b404fb5e 3 | timeCreated: 1512225717 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameTickListenerComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class GameEntity { 10 | 11 | public TickListenerComponent tickListener { get { return (TickListenerComponent)GetComponent(GameComponentsLookup.TickListener); } } 12 | public bool hasTickListener { get { return HasComponent(GameComponentsLookup.TickListener); } } 13 | 14 | public void AddTickListener(ITickListener newValue) { 15 | var index = GameComponentsLookup.TickListener; 16 | var component = CreateComponent(index); 17 | component.value = newValue; 18 | AddComponent(index, component); 19 | } 20 | 21 | public void ReplaceTickListener(ITickListener newValue) { 22 | var index = GameComponentsLookup.TickListener; 23 | var component = CreateComponent(index); 24 | component.value = newValue; 25 | ReplaceComponent(index, component); 26 | } 27 | 28 | public void RemoveTickListener() { 29 | RemoveComponent(GameComponentsLookup.TickListener); 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class GameMatcher { 42 | 43 | static Entitas.IMatcher _matcherTickListener; 44 | 45 | public static Entitas.IMatcher TickListener { 46 | get { 47 | if (_matcherTickListener == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.TickListener); 49 | matcher.componentNames = GameComponentsLookup.componentNames; 50 | _matcherTickListener = matcher; 51 | } 52 | 53 | return _matcherTickListener; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameTickListenerComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 972afab736555da4ebd87281495f46e4 3 | timeCreated: 1512225840 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameViewComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class GameEntity { 10 | 11 | public ViewComponent view { get { return (ViewComponent)GetComponent(GameComponentsLookup.View); } } 12 | public bool hasView { get { return HasComponent(GameComponentsLookup.View); } } 13 | 14 | public void AddView(UnityEngine.GameObject newGameObject) { 15 | var index = GameComponentsLookup.View; 16 | var component = CreateComponent(index); 17 | component.gameObject = newGameObject; 18 | AddComponent(index, component); 19 | } 20 | 21 | public void ReplaceView(UnityEngine.GameObject newGameObject) { 22 | var index = GameComponentsLookup.View; 23 | var component = CreateComponent(index); 24 | component.gameObject = newGameObject; 25 | ReplaceComponent(index, component); 26 | } 27 | 28 | public void RemoveView() { 29 | RemoveComponent(GameComponentsLookup.View); 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class GameMatcher { 42 | 43 | static Entitas.IMatcher _matcherView; 44 | 45 | public static Entitas.IMatcher View { 46 | get { 47 | if (_matcherView == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.View); 49 | matcher.componentNames = GameComponentsLookup.componentNames; 50 | _matcherView = matcher; 51 | } 52 | 53 | return _matcherView; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/Components/GameViewComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94b8e24a6f077b847b83317b6821f7c5 3 | timeCreated: 1512225717 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/GameAttribute.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ContextAttributeGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public sealed class GameAttribute : Entitas.CodeGeneration.Attributes.ContextAttribute { 10 | 11 | public GameAttribute() : base("Game") { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/GameAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac88473b421c8b044b2252735d5151bc 3 | timeCreated: 1512185023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/GameComponentsLookup.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentsLookupGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public static class GameComponentsLookup { 10 | 11 | public const int ConsumeElixir = 0; 12 | public const int ConsumptionHistory = 1; 13 | public const int DebugMessage = 2; 14 | public const int Direction = 3; 15 | public const int Elixir = 4; 16 | public const int ElixirLisenter = 5; 17 | public const int JumpInTime = 6; 18 | public const int LogicSystem = 7; 19 | public const int MoveComplete = 8; 20 | public const int Move = 9; 21 | public const int Mover = 10; 22 | public const int Pause = 11; 23 | public const int PauseListener = 12; 24 | public const int Position = 13; 25 | public const int Sprite = 14; 26 | public const int Tick = 15; 27 | public const int TickListener = 16; 28 | public const int View = 17; 29 | 30 | public const int TotalComponents = 18; 31 | 32 | public static readonly string[] componentNames = { 33 | "ConsumeElixir", 34 | "ConsumptionHistory", 35 | "DebugMessage", 36 | "Direction", 37 | "Elixir", 38 | "ElixirLisenter", 39 | "JumpInTime", 40 | "LogicSystem", 41 | "MoveComplete", 42 | "Move", 43 | "Mover", 44 | "Pause", 45 | "PauseListener", 46 | "Position", 47 | "Sprite", 48 | "Tick", 49 | "TickListener", 50 | "View" 51 | }; 52 | 53 | public static readonly System.Type[] componentTypes = { 54 | typeof(ConsumeElixirComponent), 55 | typeof(ConsumptionHistoryComponent), 56 | typeof(DebugMessageComponent), 57 | typeof(DirectionComponent), 58 | typeof(ElixirComponent), 59 | typeof(ElixirLisenterComponent), 60 | typeof(JumpInTimeComponent), 61 | typeof(LogicSystemComponent), 62 | typeof(MoveCompleteComponent), 63 | typeof(MoveComponent), 64 | typeof(MoverComponent), 65 | typeof(PauseComponent), 66 | typeof(PauseListenerComponent), 67 | typeof(PositionComponent), 68 | typeof(SpriteComponent), 69 | typeof(TickComponent), 70 | typeof(TickListenerComponent), 71 | typeof(ViewComponent) 72 | }; 73 | } 74 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/GameComponentsLookup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: efb333cc6405e1b428e15622fb68a31f 3 | timeCreated: 1512185023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/GameContext.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ContextGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public sealed partial class GameContext : Entitas.Context { 10 | 11 | public GameContext() 12 | : base( 13 | GameComponentsLookup.TotalComponents, 14 | 0, 15 | new Entitas.ContextInfo( 16 | "Game", 17 | GameComponentsLookup.componentNames, 18 | GameComponentsLookup.componentTypes 19 | ), 20 | (entity) => 21 | 22 | #if (ENTITAS_FAST_AND_UNSAFE) 23 | new Entitas.UnsafeAERC() 24 | #else 25 | new Entitas.SafeAERC(entity) 26 | #endif 27 | 28 | ) { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/GameContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 979768ec317421248a563e8cf7428dfd 3 | timeCreated: 1512185023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/GameEntity.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.EntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public sealed partial class GameEntity : Entitas.Entity { 10 | } 11 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/GameEntity.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7acbb22938e67404fb6cc7b8b4e7a319 3 | timeCreated: 1512185023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/GameMatcher.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ContextMatcherGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public sealed partial class GameMatcher { 10 | 11 | public static Entitas.IAllOfMatcher AllOf(params int[] indices) { 12 | return Entitas.Matcher.AllOf(indices); 13 | } 14 | 15 | public static Entitas.IAllOfMatcher AllOf(params Entitas.IMatcher[] matchers) { 16 | return Entitas.Matcher.AllOf(matchers); 17 | } 18 | 19 | public static Entitas.IAnyOfMatcher AnyOf(params int[] indices) { 20 | return Entitas.Matcher.AnyOf(indices); 21 | } 22 | 23 | public static Entitas.IAnyOfMatcher AnyOf(params Entitas.IMatcher[] matchers) { 24 | return Entitas.Matcher.AnyOf(matchers); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Game/GameMatcher.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e35d130e6574e88499194b8b1077548c 3 | timeCreated: 1512185023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 312564f26446f8249a71745b68f7c8a9 3 | folderAsset: yes 4 | timeCreated: 1512185023 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/Components.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b230d5e0727cb8c45832e6dcdded8fb5 3 | folderAsset: yes 4 | timeCreated: 1512186592 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/Components/InputLeftMouseComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentContextGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class InputContext { 10 | 11 | public InputEntity leftMouseEntity { get { return GetGroup(InputMatcher.LeftMouse).GetSingleEntity(); } } 12 | 13 | public bool isLeftMouse { 14 | get { return leftMouseEntity != null; } 15 | set { 16 | var entity = leftMouseEntity; 17 | if (value != (entity != null)) { 18 | if (value) { 19 | CreateEntity().isLeftMouse = true; 20 | } else { 21 | entity.Destroy(); 22 | } 23 | } 24 | } 25 | } 26 | } 27 | 28 | //------------------------------------------------------------------------------ 29 | // 30 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 31 | // 32 | // Changes to this file may cause incorrect behavior and will be lost if 33 | // the code is regenerated. 34 | // 35 | //------------------------------------------------------------------------------ 36 | public partial class InputEntity { 37 | 38 | static readonly LeftMouseComponent leftMouseComponent = new LeftMouseComponent(); 39 | 40 | public bool isLeftMouse { 41 | get { return HasComponent(InputComponentsLookup.LeftMouse); } 42 | set { 43 | if (value != isLeftMouse) { 44 | var index = InputComponentsLookup.LeftMouse; 45 | if (value) { 46 | var componentPool = GetComponentPool(index); 47 | var component = componentPool.Count > 0 48 | ? componentPool.Pop() 49 | : leftMouseComponent; 50 | 51 | AddComponent(index, component); 52 | } else { 53 | RemoveComponent(index); 54 | } 55 | } 56 | } 57 | } 58 | } 59 | 60 | //------------------------------------------------------------------------------ 61 | // 62 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 63 | // 64 | // Changes to this file may cause incorrect behavior and will be lost if 65 | // the code is regenerated. 66 | // 67 | //------------------------------------------------------------------------------ 68 | public sealed partial class InputMatcher { 69 | 70 | static Entitas.IMatcher _matcherLeftMouse; 71 | 72 | public static Entitas.IMatcher LeftMouse { 73 | get { 74 | if (_matcherLeftMouse == null) { 75 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(InputComponentsLookup.LeftMouse); 76 | matcher.componentNames = InputComponentsLookup.componentNames; 77 | _matcherLeftMouse = matcher; 78 | } 79 | 80 | return _matcherLeftMouse; 81 | } 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/Components/InputLeftMouseComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bdec85a2115a0564a88b5c726b07c8b0 3 | timeCreated: 1512186593 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/Components/InputMouseDownComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class InputEntity { 10 | 11 | public MouseDownComponent mouseDown { get { return (MouseDownComponent)GetComponent(InputComponentsLookup.MouseDown); } } 12 | public bool hasMouseDown { get { return HasComponent(InputComponentsLookup.MouseDown); } } 13 | 14 | public void AddMouseDown(UnityEngine.Vector2 newPosition) { 15 | var index = InputComponentsLookup.MouseDown; 16 | var component = CreateComponent(index); 17 | component.position = newPosition; 18 | AddComponent(index, component); 19 | } 20 | 21 | public void ReplaceMouseDown(UnityEngine.Vector2 newPosition) { 22 | var index = InputComponentsLookup.MouseDown; 23 | var component = CreateComponent(index); 24 | component.position = newPosition; 25 | ReplaceComponent(index, component); 26 | } 27 | 28 | public void RemoveMouseDown() { 29 | RemoveComponent(InputComponentsLookup.MouseDown); 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class InputMatcher { 42 | 43 | static Entitas.IMatcher _matcherMouseDown; 44 | 45 | public static Entitas.IMatcher MouseDown { 46 | get { 47 | if (_matcherMouseDown == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(InputComponentsLookup.MouseDown); 49 | matcher.componentNames = InputComponentsLookup.componentNames; 50 | _matcherMouseDown = matcher; 51 | } 52 | 53 | return _matcherMouseDown; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/Components/InputMouseDownComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 01392deaa65c4b649b75639ad6e53ddf 3 | timeCreated: 1512186592 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/Components/InputMousePositionComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class InputEntity { 10 | 11 | public MousePositionComponent mousePosition { get { return (MousePositionComponent)GetComponent(InputComponentsLookup.MousePosition); } } 12 | public bool hasMousePosition { get { return HasComponent(InputComponentsLookup.MousePosition); } } 13 | 14 | public void AddMousePosition(UnityEngine.Vector2 newPosition) { 15 | var index = InputComponentsLookup.MousePosition; 16 | var component = CreateComponent(index); 17 | component.position = newPosition; 18 | AddComponent(index, component); 19 | } 20 | 21 | public void ReplaceMousePosition(UnityEngine.Vector2 newPosition) { 22 | var index = InputComponentsLookup.MousePosition; 23 | var component = CreateComponent(index); 24 | component.position = newPosition; 25 | ReplaceComponent(index, component); 26 | } 27 | 28 | public void RemoveMousePosition() { 29 | RemoveComponent(InputComponentsLookup.MousePosition); 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class InputMatcher { 42 | 43 | static Entitas.IMatcher _matcherMousePosition; 44 | 45 | public static Entitas.IMatcher MousePosition { 46 | get { 47 | if (_matcherMousePosition == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(InputComponentsLookup.MousePosition); 49 | matcher.componentNames = InputComponentsLookup.componentNames; 50 | _matcherMousePosition = matcher; 51 | } 52 | 53 | return _matcherMousePosition; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/Components/InputMousePositionComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 382a6d167a553fc4997946157c5f6aab 3 | timeCreated: 1512186592 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/Components/InputMouseUpComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public partial class InputEntity { 10 | 11 | public MouseUpComponent mouseUp { get { return (MouseUpComponent)GetComponent(InputComponentsLookup.MouseUp); } } 12 | public bool hasMouseUp { get { return HasComponent(InputComponentsLookup.MouseUp); } } 13 | 14 | public void AddMouseUp(UnityEngine.Vector2 newPosition) { 15 | var index = InputComponentsLookup.MouseUp; 16 | var component = CreateComponent(index); 17 | component.position = newPosition; 18 | AddComponent(index, component); 19 | } 20 | 21 | public void ReplaceMouseUp(UnityEngine.Vector2 newPosition) { 22 | var index = InputComponentsLookup.MouseUp; 23 | var component = CreateComponent(index); 24 | component.position = newPosition; 25 | ReplaceComponent(index, component); 26 | } 27 | 28 | public void RemoveMouseUp() { 29 | RemoveComponent(InputComponentsLookup.MouseUp); 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // 35 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator. 36 | // 37 | // Changes to this file may cause incorrect behavior and will be lost if 38 | // the code is regenerated. 39 | // 40 | //------------------------------------------------------------------------------ 41 | public sealed partial class InputMatcher { 42 | 43 | static Entitas.IMatcher _matcherMouseUp; 44 | 45 | public static Entitas.IMatcher MouseUp { 46 | get { 47 | if (_matcherMouseUp == null) { 48 | var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(InputComponentsLookup.MouseUp); 49 | matcher.componentNames = InputComponentsLookup.componentNames; 50 | _matcherMouseUp = matcher; 51 | } 52 | 53 | return _matcherMouseUp; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/Components/InputMouseUpComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65d90fff3b2bb1946ba3a248793cae51 3 | timeCreated: 1512186593 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/Components/InputRightMouseComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 816a3b6a50fe9ab4cb14f4292f5d31d9 3 | timeCreated: 1512186593 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/InputAttribute.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ContextAttributeGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public sealed class InputAttribute : Entitas.CodeGeneration.Attributes.ContextAttribute { 10 | 11 | public InputAttribute() : base("Input") { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/InputAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f349f3ac0ff5b64f88cdc03ff1aa949 3 | timeCreated: 1512185023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/InputComponentsLookup.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ComponentsLookupGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public static class InputComponentsLookup { 10 | 11 | public const int LeftMouse = 0; 12 | public const int MouseDown = 1; 13 | public const int MousePosition = 2; 14 | public const int MouseUp = 3; 15 | public const int RightMouse = 4; 16 | 17 | public const int TotalComponents = 5; 18 | 19 | public static readonly string[] componentNames = { 20 | "LeftMouse", 21 | "MouseDown", 22 | "MousePosition", 23 | "MouseUp", 24 | "RightMouse" 25 | }; 26 | 27 | public static readonly System.Type[] componentTypes = { 28 | typeof(LeftMouseComponent), 29 | typeof(MouseDownComponent), 30 | typeof(MousePositionComponent), 31 | typeof(MouseUpComponent), 32 | typeof(RightMouseComponent) 33 | }; 34 | } 35 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/InputComponentsLookup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1430c652de485224bb5d30c91f47cd62 3 | timeCreated: 1512185023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/InputContext.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ContextGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public sealed partial class InputContext : Entitas.Context { 10 | 11 | public InputContext() 12 | : base( 13 | InputComponentsLookup.TotalComponents, 14 | 0, 15 | new Entitas.ContextInfo( 16 | "Input", 17 | InputComponentsLookup.componentNames, 18 | InputComponentsLookup.componentTypes 19 | ), 20 | (entity) => 21 | 22 | #if (ENTITAS_FAST_AND_UNSAFE) 23 | new Entitas.UnsafeAERC() 24 | #else 25 | new Entitas.SafeAERC(entity) 26 | #endif 27 | 28 | ) { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/InputContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f571b18bf7873b64688a8f53a92a33f4 3 | timeCreated: 1512185023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/InputEntity.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.EntityGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public sealed partial class InputEntity : Entitas.Entity { 10 | } 11 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/InputEntity.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f8821fb998d4074ba3555468532f9bd 3 | timeCreated: 1512185023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/InputMatcher.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by Entitas.CodeGeneration.Plugins.ContextMatcherGenerator. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | public sealed partial class InputMatcher { 10 | 11 | public static Entitas.IAllOfMatcher AllOf(params int[] indices) { 12 | return Entitas.Matcher.AllOf(indices); 13 | } 14 | 15 | public static Entitas.IAllOfMatcher AllOf(params Entitas.IMatcher[] matchers) { 16 | return Entitas.Matcher.AllOf(matchers); 17 | } 18 | 19 | public static Entitas.IAnyOfMatcher AnyOf(params int[] indices) { 20 | return Entitas.Matcher.AnyOf(indices); 21 | } 22 | 23 | public static Entitas.IAnyOfMatcher AnyOf(params Entitas.IMatcher[] matchers) { 24 | return Entitas.Matcher.AnyOf(matchers); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Assets/EntitasGenerated/Generated/Input/InputMatcher.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31e9ecc361c3e444596517bf1b8ff0f2 3 | timeCreated: 1512185023 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 249a132fe22e7c34ea8c0c69f1833a8d 3 | folderAsset: yes 4 | timeCreated: 1512191564 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Resources/monster_big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Resources/monster_big.png -------------------------------------------------------------------------------- /Assets/Resources/monster_big.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a0a2ddcfce67cdc4c86ef7ce3198edae 3 | timeCreated: 1512191807 4 | licenseType: Pro 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | sRGBTexture: 1 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 6 25 | cubemapConvolution: 0 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | compressionQuality: 50 37 | spriteMode: 1 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: 0.5, y: 0.5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaUsage: 1 45 | alphaIsTransparency: 1 46 | spriteTessellationDetail: -1 47 | textureType: 8 48 | textureShape: 1 49 | maxTextureSizeSet: 0 50 | compressionQualitySet: 0 51 | textureFormatSet: 0 52 | platformSettings: 53 | - buildTarget: DefaultTexturePlatform 54 | maxTextureSize: 2048 55 | textureFormat: -1 56 | textureCompression: 1 57 | compressionQuality: 50 58 | crunchedCompression: 0 59 | allowsAlphaSplitting: 0 60 | overridden: 0 61 | - buildTarget: Standalone 62 | maxTextureSize: 2048 63 | textureFormat: -1 64 | textureCompression: 1 65 | compressionQuality: 50 66 | crunchedCompression: 0 67 | allowsAlphaSplitting: 0 68 | overridden: 0 69 | spriteSheet: 70 | serializedVersion: 2 71 | sprites: [] 72 | outline: [] 73 | spritePackingTag: 74 | userData: 75 | assetBundleName: 76 | assetBundleVariant: 77 | -------------------------------------------------------------------------------- /Assets/Resources/monster_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/Resources/monster_small.png -------------------------------------------------------------------------------- /Assets/Resources/monster_small.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7485db8faf359942b9aeaf49a231ba2 3 | timeCreated: 1512191807 4 | licenseType: Pro 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | sRGBTexture: 1 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 6 25 | cubemapConvolution: 0 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | compressionQuality: 50 37 | spriteMode: 1 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: 0.5, y: 0.5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaUsage: 1 45 | alphaIsTransparency: 1 46 | spriteTessellationDetail: -1 47 | textureType: 8 48 | textureShape: 1 49 | maxTextureSizeSet: 0 50 | compressionQualitySet: 0 51 | textureFormatSet: 0 52 | platformSettings: 53 | - buildTarget: DefaultTexturePlatform 54 | maxTextureSize: 2048 55 | textureFormat: -1 56 | textureCompression: 1 57 | compressionQuality: 50 58 | crunchedCompression: 0 59 | allowsAlphaSplitting: 0 60 | overridden: 0 61 | - buildTarget: Standalone 62 | maxTextureSize: 2048 63 | textureFormat: -1 64 | textureCompression: 1 65 | compressionQuality: 50 66 | crunchedCompression: 0 67 | allowsAlphaSplitting: 0 68 | overridden: 0 69 | spriteSheet: 70 | serializedVersion: 2 71 | sprites: [] 72 | outline: [] 73 | spritePackingTag: 74 | userData: 75 | assetBundleName: 76 | assetBundleVariant: 77 | -------------------------------------------------------------------------------- /Assets/TestExamples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1105036f5fb30b64596d528c16f70cc5 3 | folderAsset: yes 4 | timeCreated: 1512181616 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c49c6fa8f80342e46a65a3e4129922e9 3 | folderAsset: yes 4 | timeCreated: 1512181630 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/1_HelloWorld.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/TestExamples/1_HelloWorld/1_HelloWorld.unity -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/1_HelloWorld.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 041f3d3a5b6df9447a504e28fa60fe27 3 | timeCreated: 1512179667 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/GameController.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // GameController.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using Entitas; 8 | using UnityEngine; 9 | 10 | public class GameController : MonoBehaviour 11 | { 12 | Systems _systems; 13 | 14 | void Start() 15 | { 16 | // get a reference to the contexts 17 | var contexts = Contexts.sharedInstance; 18 | 19 | // create the systems by creating individual features 20 | _systems = new Feature("Systems") 21 | .Add(new TutorialSystems(contexts)); 22 | 23 | // call Initialize() on all of the IInitializeSystems 24 | _systems.Initialize(); 25 | } 26 | 27 | void Update() 28 | { 29 | // call Execute() on all the IExecuteSystems and 30 | // ReactiveSystems that were triggered last frame 31 | _systems.Execute(); 32 | // call cleanup() on all the ICleanupSystems 33 | _systems.Cleanup(); 34 | } 35 | } -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/GameController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52a2812609724cf4289328828d8e688d 3 | timeCreated: 1512179533 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aecef54886e113d4dae2287810781995 3 | folderAsset: yes 4 | timeCreated: 1512185047 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Components.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9c00310b86c9ac488d36440fc9489fe 3 | folderAsset: yes 4 | timeCreated: 1512181644 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Components/DebugMessageComponent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // DebugMessageComponent.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using Entitas; 8 | 9 | [Game] 10 | public class DebugMessageComponent : IComponent 11 | { 12 | public string message; 13 | } -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Components/DebugMessageComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfa206313ee345c479a4737d6632b709 3 | timeCreated: 1512178183 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Systems.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 322265d01851f464eba65e6661e5b314 3 | folderAsset: yes 4 | timeCreated: 1512181652 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Systems/CleanupDebugMessageSystem.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // CleanupDebugMessageSystem.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using Entitas; 8 | 9 | public class CleanupDebugMessageSystem : ICleanupSystem 10 | { 11 | readonly GameContext _context; 12 | readonly IGroup _debugMessages; 13 | 14 | public CleanupDebugMessageSystem(Contexts contexts) 15 | { 16 | _context = contexts.game; 17 | _debugMessages = _context.GetGroup(GameMatcher.DebugMessage); 18 | } 19 | 20 | public void Cleanup() 21 | { 22 | // group.GetEntities() always gives us an up to date list 23 | foreach (var e in _debugMessages.GetEntities()) 24 | { 25 | //Entitas.Context.DestroyEntity(GameEntity)' is obsolete: `so use entity.Destroy() 26 | //_context.DestroyEntity(e) 27 | e.Destroy(); 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Systems/CleanupDebugMessageSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43e24206b509d3547b8e107416d3819d 3 | timeCreated: 1512180474 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Systems/DebugMessageSystem.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // DebugMessageSystem.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using System.Collections.Generic; 8 | using Entitas; 9 | using UnityEngine; 10 | 11 | public class DebugMessageSystem : ReactiveSystem 12 | { 13 | public DebugMessageSystem(Contexts contexts) : base(contexts.game) 14 | { 15 | } 16 | 17 | protected override ICollector GetTrigger(IContext context) 18 | { 19 | // we only care about entities with DebugMessageComponent 20 | return context.CreateCollector(GameMatcher.DebugMessage); 21 | } 22 | 23 | protected override bool Filter(GameEntity entity) 24 | { 25 | // good practice to perform a final check in case 26 | // the entity has been altered in a different system. 27 | return entity.hasDebugMessage; 28 | } 29 | 30 | protected override void Execute(List entities) 31 | { 32 | // this is the list of entities that meet our conditions 33 | foreach (var e in entities) 34 | { 35 | // we can safely access their DebugMessage component 36 | // then grab the string data and print it 37 | Debug.Log(e.debugMessage.message); 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Systems/DebugMessageSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ee6c69ff9fb7e64e9c4ec2d78b9ec1c 3 | timeCreated: 1512179365 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Systems/HelloWorldSystem.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // HelloWorldSystem.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using Entitas; 8 | 9 | public class HelloWorldSystem : IInitializeSystem 10 | { 11 | // always handy to keep a reference to the context 12 | // we're going to be interacting with it 13 | readonly GameContext _context; 14 | 15 | public HelloWorldSystem(Contexts contexts) 16 | { 17 | // get the context from the constructor 18 | _context = contexts.game; 19 | } 20 | 21 | public void Initialize() 22 | { 23 | // create an entity and give it a DebugMessageComponent with 24 | // the text "Hello World!" as its data 25 | _context.CreateEntity().AddDebugMessage("Hello World!"); 26 | } 27 | } -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Systems/HelloWorldSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e80e941eca1c654fae50e2626248903 3 | timeCreated: 1512179431 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Systems/LogMouseClickSystem.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // LogMouseClickSystem.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using Entitas; 8 | using UnityEngine; 9 | 10 | public class LogMouseClickSystem : IExecuteSystem 11 | { 12 | readonly GameContext _context; 13 | 14 | public LogMouseClickSystem(Contexts contexts) 15 | { 16 | _context = contexts.game; 17 | } 18 | 19 | public void Execute() 20 | { 21 | if (Input.GetMouseButtonDown(0)) 22 | { 23 | _context.CreateEntity().AddDebugMessage("Left Mouse Button Clicked"); 24 | } 25 | 26 | if (Input.GetMouseButtonDown(1)) 27 | { 28 | _context.CreateEntity().AddDebugMessage("Right Mouse Button Clicked"); 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Systems/LogMouseClickSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 792ff4572a93bae47a3e2348838cfb7e 3 | timeCreated: 1512180660 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Systems/TutorialSystems.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // TutorialSystems.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using Entitas; 8 | 9 | public class TutorialSystems : Feature 10 | { 11 | public TutorialSystems(Contexts contexts) : base("Tutorial Systems") 12 | { 13 | Add(new HelloWorldSystem(contexts)); 14 | Add(new LogMouseClickSystem(contexts)); // new system 15 | Add(new DebugMessageSystem(contexts)); 16 | Add(new CleanupDebugMessageSystem(contexts)); // new system (we want this to run last) 17 | } 18 | } -------------------------------------------------------------------------------- /Assets/TestExamples/1_HelloWorld/Scripts/Systems/TutorialSystems.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14ff35df556736843aac4ea7bda47298 3 | timeCreated: 1512179471 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7405422c947d9554eb35aa6747ba72a5 3 | folderAsset: yes 4 | timeCreated: 1512186383 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Demo2Example.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/TestExamples/2_EntityViewAndMovement/Demo2Example.unity -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Demo2Example.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ba9645a5eb48844c9abf089f3c8aba5 3 | timeCreated: 1512188340 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6ff6a5b79104b145882149fd77d4ae8 3 | folderAsset: yes 4 | timeCreated: 1512186403 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Components.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cc585c9b8b0d149469f6a1b98979372e 3 | folderAsset: yes 4 | timeCreated: 1512186643 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Components/Components.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // Components.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using Entitas; 8 | using Entitas.CodeGeneration.Attributes; 9 | using UnityEngine; 10 | 11 | [Game] 12 | public class PositionComponent : IComponent 13 | { 14 | public Vector2 value; 15 | } 16 | 17 | [Game] 18 | public class DirectionComponent : IComponent 19 | { 20 | public float value; 21 | } 22 | 23 | 24 | 25 | [Game] 26 | public class ViewComponent : IComponent 27 | { 28 | public GameObject gameObject; 29 | } 30 | 31 | [Game] 32 | public class SpriteComponent : IComponent 33 | { 34 | public string name; 35 | } 36 | 37 | 38 | 39 | 40 | [Game] 41 | public class MoverComponent : IComponent 42 | { 43 | } 44 | 45 | [Game] 46 | public class MoveComponent : IComponent 47 | { 48 | public Vector2 target; 49 | } 50 | 51 | [Game] 52 | public class MoveCompleteComponent : IComponent 53 | { 54 | } 55 | 56 | 57 | 58 | [Input, Unique] 59 | public class LeftMouseComponent : IComponent 60 | { 61 | } 62 | 63 | [Input, Unique] 64 | public class RightMouseComponent : IComponent 65 | { 66 | } 67 | 68 | [Input] 69 | public class MouseDownComponent : IComponent 70 | { 71 | public Vector2 position; 72 | } 73 | 74 | [Input] 75 | public class MousePositionComponent : IComponent 76 | { 77 | public Vector2 position; 78 | } 79 | 80 | [Input] 81 | public class MouseUpComponent : IComponent 82 | { 83 | public Vector2 position; 84 | } 85 | 86 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Components/Components.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5310f3cfbc74d5249b20e418ee1960c4 3 | timeCreated: 1512186413 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Demo2GameController.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // GameController.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using Entitas; 8 | using UnityEngine; 9 | 10 | public class Demo2GameController : MonoBehaviour 11 | { 12 | private Systems _systems; 13 | private Contexts _contexts; 14 | 15 | void Start() 16 | { 17 | _contexts = Contexts.sharedInstance; 18 | _systems = CreateSystems(_contexts); 19 | _systems.Initialize(); 20 | } 21 | 22 | void Update() 23 | { 24 | _systems.Execute(); 25 | _systems.Cleanup(); 26 | } 27 | 28 | private static Systems CreateSystems(Contexts contexts) 29 | { 30 | return new Feature("Systems") 31 | .Add(new InputSystems(contexts)) 32 | .Add(new MovementSystems(contexts)) 33 | .Add(new ViewSystems(contexts)); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Demo2GameController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 66a4b0296930c374faf36996307856e5 3 | timeCreated: 1512188263 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f3305eda168e56d4494ae055a55d3fe9 3 | folderAsset: yes 4 | timeCreated: 1512186655 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/AddViewSystem.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // AddViewSystem.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using System.Collections.Generic; 8 | using Entitas; 9 | using Entitas.Unity; 10 | using UnityEngine; 11 | 12 | public class AddViewSystem : ReactiveSystem 13 | { 14 | readonly Transform _viewContainer = new GameObject("Game Views").transform; 15 | readonly GameContext _context; 16 | 17 | public AddViewSystem(Contexts contexts) : base(contexts.game) 18 | { 19 | _context = contexts.game; 20 | } 21 | 22 | protected override ICollector GetTrigger(IContext context) 23 | { 24 | return context.CreateCollector(GameMatcher.Sprite); 25 | } 26 | 27 | protected override bool Filter(GameEntity entity) 28 | { 29 | return entity.hasSprite && !entity.hasView; 30 | } 31 | 32 | protected override void Execute(List entities) 33 | { 34 | foreach (GameEntity e in entities) 35 | { 36 | GameObject go = new GameObject("Game View"); 37 | go.transform.SetParent(_viewContainer, false); 38 | go.transform.localScale=new Vector3(0.1f, 0.1f, 0.1f); 39 | //go.GetComponentSetParent(_viewContainer, false); 40 | e.AddView(go); 41 | go.Link(e, _context); 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/AddViewSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f85eff26a4a3af41883a34866c4d222 3 | timeCreated: 1512187829 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/CommandMoveSystem.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // CommandMoveSystem.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using System.Collections.Generic; 8 | using Entitas; 9 | using UnityEngine; 10 | 11 | public class CommandMoveSystem : ReactiveSystem 12 | { 13 | readonly GameContext _gameContext; 14 | readonly IGroup _movers; 15 | 16 | public CommandMoveSystem(Contexts contexts) : base(contexts.input) 17 | { 18 | _movers = contexts.game.GetGroup(GameMatcher.AllOf(GameMatcher.Mover).NoneOf(GameMatcher.Move)); 19 | } 20 | 21 | protected override ICollector GetTrigger(IContext context) 22 | { 23 | return context.CreateCollector(InputMatcher.AllOf(InputMatcher.LeftMouse, InputMatcher.MouseDown)); 24 | } 25 | 26 | protected override bool Filter(InputEntity entity) 27 | { 28 | return entity.hasMouseDown; 29 | } 30 | 31 | protected override void Execute(List entities) 32 | { 33 | foreach (InputEntity e in entities) 34 | { 35 | GameEntity[] movers = _movers.GetEntities(); 36 | if (movers.Length <= 0) return; 37 | movers[Random.Range(0, movers.Length)].ReplaceMove(e.mouseDown.position); 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/CommandMoveSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05bae64c2bd14fc44965563e8445034f 3 | timeCreated: 1512188197 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/CreateMoverSystem.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // CreateMoverSystem.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using System.Collections.Generic; 8 | using Entitas; 9 | using UnityEngine; 10 | 11 | public class CreateMoverSystem : ReactiveSystem 12 | { 13 | readonly GameContext _gameContext; 14 | public CreateMoverSystem(Contexts contexts) : base(contexts.input) 15 | { 16 | _gameContext = contexts.game; 17 | } 18 | 19 | protected override ICollector GetTrigger(IContext context) 20 | { 21 | return context.CreateCollector(InputMatcher.AllOf(InputMatcher.RightMouse, InputMatcher.MouseDown)); 22 | } 23 | 24 | protected override bool Filter(InputEntity entity) 25 | { 26 | return entity.hasMouseDown; 27 | } 28 | 29 | protected override void Execute(List entities) 30 | { 31 | foreach (InputEntity e in entities) 32 | { 33 | GameEntity mover = _gameContext.CreateEntity(); 34 | mover.isMover = true; 35 | mover.AddPosition(e.mouseDown.position); 36 | mover.AddDirection(Random.Range(0, 360)); 37 | mover.AddSprite("monster_big"); 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/CreateMoverSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13fea69490e597943bbaff256eab91e4 3 | timeCreated: 1512188164 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/EmitInputSystem.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // EmitInputSystem.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using Entitas; 8 | using UnityEngine; 9 | 10 | public class EmitInputSystem : IInitializeSystem, IExecuteSystem 11 | { 12 | readonly InputContext _context; 13 | private InputEntity _leftMouseEntity; 14 | private InputEntity _rightMouseEntity; 15 | 16 | public EmitInputSystem(Contexts contexts) 17 | { 18 | _context = contexts.input; 19 | } 20 | 21 | public void Initialize() 22 | { 23 | // initialise the unique entities that will hold the mousee button data 24 | _context.isLeftMouse = true; 25 | _leftMouseEntity = _context.leftMouseEntity; 26 | 27 | _context.isRightMouse = true; 28 | _rightMouseEntity = _context.rightMouseEntity; 29 | } 30 | 31 | public void Execute() 32 | { 33 | // mouse position 34 | Vector2 mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition); 35 | 36 | // left mouse button 37 | if (Input.GetMouseButtonDown(0)) 38 | _leftMouseEntity.ReplaceMouseDown(mousePosition); 39 | 40 | if (Input.GetMouseButton(0)) 41 | _leftMouseEntity.ReplaceMousePosition(mousePosition); 42 | 43 | if (Input.GetMouseButtonUp(0)) 44 | _leftMouseEntity.ReplaceMouseUp(mousePosition); 45 | 46 | 47 | // left mouse button 48 | if (Input.GetMouseButtonDown(1)) 49 | _rightMouseEntity.ReplaceMouseDown(mousePosition); 50 | 51 | if (Input.GetMouseButton(1)) 52 | _rightMouseEntity.ReplaceMousePosition(mousePosition); 53 | 54 | if (Input.GetMouseButtonUp(1)) 55 | _rightMouseEntity.ReplaceMouseUp(mousePosition); 56 | 57 | } 58 | } -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/EmitInputSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ade72119f5e2e9f48aca2475198a33ae 3 | timeCreated: 1512188134 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/InputSystems.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // InputSystems.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using Entitas; 8 | 9 | public class InputSystems : Feature 10 | { 11 | public InputSystems(Contexts contexts) : base("Input Systems") 12 | { 13 | Add(new EmitInputSystem(contexts)); 14 | Add(new CreateMoverSystem(contexts)); 15 | Add(new CommandMoveSystem(contexts)); 16 | } 17 | } -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/InputSystems.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5f92ea3b62ee8e45ac0c665eb352546 3 | timeCreated: 1512188239 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/MoveSystem.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // MoveSystem.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using Entitas; 8 | using UnityEngine; 9 | 10 | public class MoveSystem : IExecuteSystem, ICleanupSystem 11 | { 12 | readonly IGroup _moves; 13 | readonly IGroup _moveCompletes; 14 | const float _speed = 4f; 15 | 16 | public MoveSystem(Contexts contexts) 17 | { 18 | _moves = contexts.game.GetGroup(GameMatcher.Move); 19 | _moveCompletes = contexts.game.GetGroup(GameMatcher.MoveComplete); 20 | } 21 | 22 | public void Execute() 23 | { 24 | foreach (GameEntity e in _moves.GetEntities()) 25 | { 26 | Vector2 dir = e.move.target - e.position.value-new Vector2(Random.Range(-30,31),Random.Range(-30,31)); 27 | Vector2 newPosition = e.position.value + dir.normalized * _speed * Time.deltaTime; 28 | e.ReplacePosition(newPosition); 29 | 30 | float angle = Mathf.Atan2(dir.y, dir.x) * Mathf.Rad2Deg; 31 | e.ReplaceDirection(angle); 32 | 33 | float dist = dir.magnitude; 34 | if (dist <= 0.5f) 35 | { 36 | e.RemoveMove(); 37 | e.isMoveComplete = true; 38 | } 39 | } 40 | } 41 | 42 | public void Cleanup() 43 | { 44 | foreach (GameEntity e in _moveCompletes.GetEntities()) 45 | { 46 | e.isMoveComplete = false; 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/MoveSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6832dcc6a5412e479ecb0d3f3d46fad 3 | timeCreated: 1512188072 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/MovementtSystems.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // MovementtSystems.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using Entitas; 8 | 9 | public class MovementSystems : Feature 10 | { 11 | public MovementSystems(Contexts contexts) : base("Movement Systems") 12 | { 13 | Add(new MoveSystem(contexts)); 14 | } 15 | } -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/MovementtSystems.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f18e43b9f888d34bae25e914ea154d7 3 | timeCreated: 1512188104 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/RenderDirectionSystem.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // RenderDirectionSystem.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using System.Collections.Generic; 8 | using Entitas; 9 | using UnityEngine; 10 | 11 | public class RenderDirectionSystem : ReactiveSystem 12 | { 13 | readonly GameContext _context; 14 | 15 | public RenderDirectionSystem(Contexts contexts) : base(contexts.game) 16 | { 17 | _context = contexts.game; 18 | } 19 | 20 | protected override ICollector GetTrigger(IContext context) 21 | { 22 | return context.CreateCollector(GameMatcher.Direction); 23 | } 24 | 25 | protected override bool Filter(GameEntity entity) 26 | { 27 | return entity.hasDirection && entity.hasView; 28 | } 29 | 30 | protected override void Execute(List entities) 31 | { 32 | foreach (GameEntity e in entities) 33 | { 34 | float ang = e.direction.value; 35 | e.view.gameObject.transform.rotation = Quaternion.AngleAxis(ang - 90, Vector3.forward); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/RenderDirectionSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dce84269f59765e43b3b24ca61671cd4 3 | timeCreated: 1512187982 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/RenderPositionSystem.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // RenderPositionSystem.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using System.Collections.Generic; 8 | using Entitas; 9 | 10 | public class RenderPositionSystem : ReactiveSystem 11 | { 12 | public RenderPositionSystem(Contexts contexts) : base(contexts.game) 13 | { 14 | } 15 | 16 | protected override ICollector GetTrigger(IContext context) 17 | { 18 | return context.CreateCollector(GameMatcher.Position); 19 | } 20 | 21 | protected override bool Filter(GameEntity entity) 22 | { 23 | return entity.hasPosition && entity.hasView; 24 | } 25 | 26 | protected override void Execute(List entities) 27 | { 28 | foreach (GameEntity e in entities) 29 | { 30 | e.view.gameObject.transform.position = e.position.value; 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/RenderPositionSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c29198a8ba4f6384ca8223d250fb093c 3 | timeCreated: 1512187930 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/RenderSpriteSystem.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // RenderSpriteSystem.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using System.Collections.Generic; 8 | using Entitas; 9 | using Entitas.Unity; 10 | using UnityEngine; 11 | 12 | public class RenderSpriteSystem : ReactiveSystem 13 | { 14 | public RenderSpriteSystem(Contexts contexts) : base(contexts.game) 15 | { 16 | } 17 | 18 | protected override ICollector GetTrigger(IContext context) 19 | { 20 | return context.CreateCollector(GameMatcher.Sprite); 21 | } 22 | 23 | protected override bool Filter(GameEntity entity) 24 | { 25 | return entity.hasSprite && entity.hasView; 26 | } 27 | 28 | protected override void Execute(List entities) 29 | { 30 | foreach (GameEntity e in entities) 31 | { 32 | GameObject go = e.view.gameObject; 33 | SpriteRenderer sr = go.GetComponent(); 34 | if (sr == null) sr = go.AddComponent(); 35 | sr.sprite = Resources.Load(e.sprite.name); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/RenderSpriteSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8aacf66d43f3ac144879598799814b53 3 | timeCreated: 1512187855 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/ViewSystems.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------------- 2 | // ViewSystems.cs 3 | // 4 | // Created by 浅墨 5 | //------------------------------------------------------------------------------------- 6 | 7 | using Entitas; 8 | 9 | public class ViewSystems : Feature 10 | { 11 | public ViewSystems(Contexts contexts) : base("View Systems") 12 | { 13 | Add(new AddViewSystem(contexts)); 14 | Add(new RenderSpriteSystem(contexts)); 15 | Add(new RenderPositionSystem(contexts)); 16 | Add(new RenderDirectionSystem(contexts)); 17 | } 18 | } -------------------------------------------------------------------------------- /Assets/TestExamples/2_EntityViewAndMovement/Scripts/Systems/ViewSystems.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e814d8ad4a80ff84e892882951bf015a 3 | timeCreated: 1512188046 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/TestExamples/3_PlayBackSystem.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90f588efc2f57bc47a31ca4674129bb4 3 | folderAsset: yes 4 | timeCreated: 1512212057 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TestExamples/3_PlayBackSystem/Demo3-PlayBack.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QianMo/Unity-Entitas-Framework-Usage/09596a7e0b79d7a6b925610e141d0b0c94ae66cc/Assets/TestExamples/3_PlayBackSystem/Demo3-PlayBack.unity -------------------------------------------------------------------------------- /Assets/TestExamples/3_PlayBackSystem/Demo3-PlayBack.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55ea0971c64959246be095b68843a544 3 | timeCreated: 1512224611 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TestExamples/3_PlayBackSystem/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e5fea456d1ec1b41b8fbfdc862ea15b 3 | folderAsset: yes 4 | timeCreated: 1512216766 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TestExamples/3_PlayBackSystem/Scripts/Behaviour.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7cdb3d7725233e4b9a9c741c4f972aa 3 | folderAsset: yes 4 | timeCreated: 1512225852 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TestExamples/3_PlayBackSystem/Scripts/Behaviour/ConsumeButtonBehaviour.cs: -------------------------------------------------------------------------------- 1 | using Entitas; 2 | using UnityEngine; 3 | using UnityEngine.UI; 4 | 5 | //继承自IPauseListener,IElixirListener,经过分发会触发相关实现函数 6 | public class ConsumeButtonBehaviour : MonoBehaviour, IPauseListener, IElixirListener 7 | { 8 | private GameContext _context; 9 | //点击按钮消耗的能量 10 | [SerializeField] 11 | private int _consumptionAmount; 12 | private Button _button; 13 | [SerializeField] 14 | private Image _image; 15 | private void Awake() 16 | { 17 | _context = Contexts.sharedInstance.game; 18 | var entity= _context.CreateEntity(); 19 | entity.AddPauseListener(this); 20 | entity.AddElixirLisenter(this); 21 | } 22 | 23 | private void Start() 24 | { 25 | _button = GetComponent