💜 v4.1.0

This commit is contained in:
Adam Ramberg 2020-04-03 16:01:05 +02:00
parent 55d96c2250
commit 4176aa4392
15 changed files with 158 additions and 52 deletions

View File

@ -765,6 +765,10 @@ MonoBehaviour:
_usage: 0
_event: {fileID: 11400000, guid: b512e6d2a87f440c5883fe3546438a16, type: 2}
_eventInstancer: {fileID: 0}
_collection: {fileID: 0}
_list: {fileID: 0}
_collectionInstancer: {fileID: 0}
_listInstancer: {fileID: 0}
--- !u!114 &754865916
MonoBehaviour:
m_ObjectHideFlags: 0
@ -1471,7 +1475,7 @@ MonoBehaviour:
m_GameObject: {fileID: 1299539878}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d78396a243a52473ea10f585128d364a, type: 3}
m_Script: {fileID: 11500000, guid: 8a8189547b41a4313a0844752c4e715a, type: 3}
m_Name:
m_EditorClassIdentifier:
_developerDescription:
@ -1491,7 +1495,14 @@ MonoBehaviour:
m_CallState: 2
_actionResponses: []
_replayEventBufferOnRegister: 1
_event: {fileID: 11400000, guid: 1f43d5301a4b244c6873d8cf5e465083, type: 2}
_eventReference:
_usage: 0
_event: {fileID: 11400000, guid: 1f43d5301a4b244c6873d8cf5e465083, type: 2}
_eventInstancer: {fileID: 0}
_collection: {fileID: 0}
_list: {fileID: 0}
_collectionInstancer: {fileID: 0}
_listInstancer: {fileID: 0}
--- !u!114 &1299539884
MonoBehaviour:
m_ObjectHideFlags: 0
@ -1766,6 +1777,11 @@ PrefabInstance:
propertyPath: m_Name
value: EnemyWaveManager
objectReference: {fileID: 0}
- target: {fileID: 1788459492122731499, guid: 2506bc32201bf46ff94ddb453c913fc0,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1788459492122731500, guid: 2506bc32201bf46ff94ddb453c913fc0,
type: 3}
propertyPath: _player

View File

@ -1,7 +1,7 @@
{
"name": "com.mambojambostudios.unity-atoms-base-atoms",
"displayName": "Unity Atoms Base Atoms",
"version": "4.0.2",
"version": "4.1.0",
"unity": "2018.3",
"description": "Base set of Atoms based on Unity Atoms Core.",
"keywords": [
@ -20,6 +20,6 @@
"/Documentation.meta"
],
"dependencies": {
"com.mambojambostudios.unity-atoms-core": "4.0.2"
"com.mambojambostudios.unity-atoms-core": "4.1.0"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "com.mambojambostudios.unity-atoms-core",
"displayName": "Unity Atoms Core",
"version": "4.0.2",
"version": "4.1.0",
"unity": "2018.3",
"description": "Tiny modular pieces utilizing the power of Scriptable Objects",
"keywords": [

View File

@ -1,7 +1,7 @@
{
"name": "com.mambojambostudios.unity-atoms-fsm",
"displayName": "Unity Atoms FSM",
"version": "4.0.2",
"version": "4.1.0",
"unity": "2018.3",
"description": "Simple FSM using Unity Atoms.",
"keywords": [
@ -20,7 +20,7 @@
"/Documentation.meta"
],
"dependencies": {
"com.mambojambostudios.unity-atoms-core": "4.0.2",
"com.mambojambostudios.unity-atoms-base-atoms": "4.0.2"
"com.mambojambostudios.unity-atoms-core": "4.1.0",
"com.mambojambostudios.unity-atoms-base-atoms": "4.1.0"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "com.mambojambostudios.unity-atoms-mobile",
"displayName": "Unity Atoms Mobile",
"version": "4.0.2",
"version": "4.1.0",
"unity": "2018.3",
"description": "Unity Atoms for your mobile project.",
"keywords": [
@ -20,6 +20,6 @@
"/Documentation.meta"
],
"dependencies": {
"com.mambojambostudios.unity-atoms-core": "4.0.2"
"com.mambojambostudios.unity-atoms-core": "4.1.0"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "com.mambojambostudios.unity-atoms-mono-hooks",
"displayName": "Unity Atoms Mono Hooks",
"version": "4.0.2",
"version": "4.1.0",
"unity": "2018.3",
"description": "Hook into Unity's lifecycle methods with Atom Events.",
"keywords": [
@ -20,7 +20,7 @@
"/Documentation.meta"
],
"dependencies": {
"com.mambojambostudios.unity-atoms-core": "4.0.2",
"com.mambojambostudios.unity-atoms-base-atoms": "4.0.2"
"com.mambojambostudios.unity-atoms-core": "4.1.0",
"com.mambojambostudios.unity-atoms-base-atoms": "4.1.0"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "com.mambojambostudios.unity-atoms-scene-mgmt",
"displayName": "Unity Atoms Scene Mgmt",
"version": "4.0.2",
"version": "4.1.0",
"unity": "2018.3",
"description": "Unity Atoms to manage your scenes.",
"keywords": [
@ -20,7 +20,7 @@
"/Documentation.meta"
],
"dependencies": {
"com.mambojambostudios.unity-atoms-core": "4.0.2",
"com.mambojambostudios.unity-atoms-base-atoms": "4.0.2"
"com.mambojambostudios.unity-atoms-core": "4.1.0",
"com.mambojambostudios.unity-atoms-base-atoms": "4.1.0"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "com.mambojambostudios.unity-atoms-tags",
"displayName": "Unity Atoms Tags",
"version": "4.0.2",
"version": "4.1.0",
"unity": "2018.3",
"description": "A replacement to Unity´s tags based on Unity Atoms.",
"keywords": [
@ -18,7 +18,7 @@
"/Documentation.meta"
],
"dependencies": {
"com.mambojambostudios.unity-atoms-core": "4.0.2",
"com.mambojambostudios.unity-atoms-base-atoms": "4.0.2"
"com.mambojambostudios.unity-atoms-core": "4.1.0",
"com.mambojambostudios.unity-atoms-base-atoms": "4.1.0"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "com.mambojambostudios.unity-atoms-ui",
"displayName": "Unity Atoms UI",
"version": "4.0.2",
"version": "4.1.0",
"unity": "2018.3",
"description": "UI system using Unity Atoms.",
"keywords": [
@ -18,7 +18,7 @@
"/Documentation.meta"
],
"dependencies": {
"com.mambojambostudios.unity-atoms-core": "4.0.2",
"com.mambojambostudios.unity-atoms-base-atoms": "4.0.2"
"com.mambojambostudios.unity-atoms-core": "4.1.0",
"com.mambojambostudios.unity-atoms-base-atoms": "4.1.0"
}
}

View File

@ -1,8 +1,8 @@
# ⚛️ Unity Atoms
[![openupm](https://img.shields.io/npm/v/com.mambojambostudios.unity-atoms-core?label=core@openupm&registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.mambojambostudios.unity-atoms-core/)
[![openupm](https://img.shields.io/npm/v/com.mambojambostudios.unity-atoms-base-atoms?label=base-atoms@openupm&registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.mambojambostudios.unity-atoms-base-atoms/)
[![openupm](https://img.shields.io/npm/v/com.mambojambostudios.unity-atoms-fsm?label=fsm@openupm&registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.mambojambostudios.unity-atoms-fsm/)
[![openupm](https://img.shields.io/npm/v/com.mambojambostudios.unity-atoms-core?label=core&registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.mambojambostudios.unity-atoms-core/)
[![openupm](https://img.shields.io/npm/v/com.mambojambostudios.unity-atoms-base-atoms?label=base-atoms&registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.mambojambostudios.unity-atoms-base-atoms/)
[![openupm](https://img.shields.io/npm/v/com.mambojambostudios.unity-atoms-fsm?label=fsm&registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.mambojambostudios.unity-atoms-fsm/)
[![openupm](https://img.shields.io/npm/v/com.mambojambostudios.unity-atoms-mobile?label=mobile&registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.mambojambostudios.unity-atoms-mobile/)
[![openupm](https://img.shields.io/npm/v/com.mambojambostudios.unity-atoms-mono-hooks?label=mono-hooks&registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.mambojambostudios.unity-atoms-mono-hooks/)
[![openupm](https://img.shields.io/npm/v/com.mambojambostudios.unity-atoms-tags?label=tags&registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.mambojambostudios.unity-atoms-tags/)
@ -55,14 +55,14 @@ Add the following to your `manifest.json`:
],
"dependencies": {
...
"com.mambojambostudios.unity-atoms-core": "4.0.2",
"com.mambojambostudios.unity-atoms-base-atoms": "4.0.2",
"com.mambojambostudios.unity-atoms-fsm": "4.0.2",
"com.mambojambostudios.unity-atoms-mobile": "4.0.2",
"com.mambojambostudios.unity-atoms-mono-hooks": "4.0.2",
"com.mambojambostudios.unity-atoms-tags": "4.0.2",
"com.mambojambostudios.unity-atoms-scene-mgmt": "4.0.2",
"com.mambojambostudios.unity-atoms-ui": "4.0.2",
"com.mambojambostudios.unity-atoms-core": "4.1.0",
"com.mambojambostudios.unity-atoms-base-atoms": "4.1.0",
"com.mambojambostudios.unity-atoms-fsm": "4.1.0",
"com.mambojambostudios.unity-atoms-mobile": "4.1.0",
"com.mambojambostudios.unity-atoms-mono-hooks": "4.1.0",
"com.mambojambostudios.unity-atoms-tags": "4.1.0",
"com.mambojambostudios.unity-atoms-scene-mgmt": "4.1.0",
"com.mambojambostudios.unity-atoms-ui": "4.1.0",
...
}
}

View File

@ -199,6 +199,18 @@ Event property drawer of type `StringPair`. Inherits from `AtomEventEditor<Strin
---
## `AtomBaseVariableBaseEventReferenceDrawer`
A custom property drawer for AtomBaseVariable BaseEventReferences. Makes it possible to choose between an Event, Event Instancer, Collection Added, Collection Removed, List Added, List Removed, Collection Instancer Added, Collection Instancer Removed, List Instancer Added or List Instancer Removed.
---
## `VoidBaseEventReferenceDrawer`
A custom property drawer for Void BaseEventReferences. Makes it possible to choose between an Event, Event Instancer, Collection Cleared, List Cleared, Collection Instancer Cleared or List Instancer Cleared.
---
## `Collider2DConstantDrawer`
Constant property drawer of type `Collider2D`. Inherits from `AtomDrawer<Collider2DConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.

View File

@ -7,12 +7,6 @@ sidebar_label: UnityAtoms.BaseAtoms
# Namespace - `UnityAtoms.BaseAtoms`
## `AtomBaseVariableEventListener`
Event Listener of type `AtomBaseVariable`. Inherits from `AtomEventListener<AtomBaseVariable, AtomBaseVariableEvent, AtomBaseVariableUnityEvent>`.
---
## `BoolPairEventReferenceListener`
Event Reference Listener of type `BoolPair`. Inherits from `AtomEventReferenceListener<BoolPair, BoolPairEvent, BoolPairEventReference, BoolPairUnityEvent>`.
@ -625,10 +619,82 @@ Variable Instancer of type `string`. Inherits from `AtomVariableInstancer<String
---
## `AtomBaseVariableEventReferenceUsage`
Different types of Event Reference usages.
---
## `AtomBaseVariableBaseEventReference`
Event Reference of type `AtomBaseVariable`. Inherits from `AtomBaseEventReference<AtomBaseVariable, AtomBaseVariableEvent, AtomBaseVariableEventInstancer>`.
### Variables
#### `_collection`
Collection used if `Usage` is set to `COLLECTION_ADDED_EVENT` or `COLLECTION_REMOVED_EVENT`.
---
#### `_list`
List used if `Usage` is set to `LIST_ADDED_EVENT` or `LIST_REMOVED_EVENT`.
---
#### `_collectionInstancer`
Collection Instancer used if `Usage` is set to `COLLECTION_INSTANCER_ADDED_EVENT` or `COLLECTION_INSTANCER_REMOVED_EVENT`.
---
#### `_listInstancer`
List Instancer used if `Usage` is set to `LIST_INSTANCER_ADDED_EVENT` or `LIST_INSTANCER_REMOVED_EVENT`.
### Properties
#### `Event`
Get or set the Event used by the Event Reference.
---
## `VoidBaseEventReference`
Event Reference of type `Void`. Inherits from `AtomBaseEventReference<Void, VoidEvent, VoidEventInstancer>`.
### Variables
#### `_collection`
Collection used if `Usage` is set to `COLLECTION_CLEARED_EVENT`.
---
#### `_list`
List used if `Usage` is set to `LIST_CLEARED_EVENT`.
---
#### `_collectionInstancer`
Collection Instancer used if `Usage` is set to `COLLECTION_INSTANCER_CLEARED_EVENT`.
---
#### `_listInstancer`
List Instancer used if `Usage` is set to `LIST_INSTANCER_CLEARED_EVENT`.
### Properties
#### `Event`
Get or set the Event used by the Event Reference.
---
## `Vector3EventInstancer`
@ -661,6 +727,12 @@ Event Instancer of type `Void`. Inherits from `AtomEventInstancer<Void, VoidEven
---
## `AtomBaseVariableEventInstancer`
Event Instancer of type `AtomBaseVariable`. Inherits from `AtomEventInstancer<AtomBaseVariable, AtomBaseVariableEvent>`.
---
## `ColorEventInstancer`
Event Instancer of type `Color`. Inherits from `AtomEventInstancer<Color, ColorEvent>`.
@ -1455,6 +1527,12 @@ Event of type `int`. Inherits from `AtomEvent<int>`.
---
## `AtomBaseVariableBaseEventReferenceListener`
Event Reference Listener of type `AtomBaseVariable`. Inherits from `AtomEventReferenceListener<AtomBaseVariable, AtomBaseVariableEvent, AtomBaseVariableBaseEventReference, AtomBaseVariableUnityEvent>`.
---
## `VoidBaseEventReferenceListener`
Event Reference Listener of type `Void`. Inherits from `AtomEventReferenceListener<Void, VoidEvent, VoidBaseEventReference, VoidUnityEvent>`.

View File

@ -224,7 +224,7 @@ Needed in order to create a property drawer for a List / Array. See this for mor
- `E2` - Event x 2 of type T.
- `F` - Function of type T => T
A Variable Instancer is a MonoBehaviour that takes a variable as a base and creates an in memory copy of it OnEnable. This is handy when you want to use atoms for prefabs that are instantiated at runtime. Use together with AtomCollection to react accordingly when a prefab with an assoicated atom is added or deleted to the scene.
A Variable Instancer is a MonoBehaviour that takes a variable as a base and creates an in memory copy of it OnEnable. This is handy when you want to use atoms for prefabs that are instantiated at runtime. Use together with AtomCollection to react accordingly when a prefab with an associated atom is added or deleted to the scene.
### Methods
@ -494,7 +494,7 @@ The Variable value as a property.
#### `InitialValue`
The inital Variable value as a property.
The initial value as a property.
---
@ -512,7 +512,7 @@ When setting the value of a Variable the new value will be piped through all the
#### `Reset(System.Boolean)`
Reset the Variable to its `_initalValue`.
Reset the Variable to its `_initialValue`.
##### Parameters
@ -1156,7 +1156,7 @@ Handler for when the Event gets raised.
#### `DebugLog(`0)`
Helper to regiser as listener callback
Helper to register as listener callback
---

View File

@ -35,14 +35,14 @@ Add the following to your `manifest.json`:
],
"dependencies": {
...
"com.mambojambostudios.unity-atoms-core": "4.0.2",
"com.mambojambostudios.unity-atoms-base-atoms": "4.0.2",
"com.mambojambostudios.unity-atoms-fsm": "4.0.2",
"com.mambojambostudios.unity-atoms-mobile": "4.0.2",
"com.mambojambostudios.unity-atoms-mono-hooks": "4.0.2",
"com.mambojambostudios.unity-atoms-tags": "4.0.2",
"com.mambojambostudios.unity-atoms-scene-mgmt": "4.0.2",
"com.mambojambostudios.unity-atoms-ui": "4.0.2",
"com.mambojambostudios.unity-atoms-core": "4.1.0",
"com.mambojambostudios.unity-atoms-base-atoms": "4.1.0",
"com.mambojambostudios.unity-atoms-fsm": "4.1.0",
"com.mambojambostudios.unity-atoms-mobile": "4.1.0",
"com.mambojambostudios.unity-atoms-mono-hooks": "4.1.0",
"com.mambojambostudios.unity-atoms-tags": "4.1.0",
"com.mambojambostudios.unity-atoms-scene-mgmt": "4.1.0",
"com.mambojambostudios.unity-atoms-ui": "4.1.0",
...
}
}

View File

@ -1,7 +1,7 @@
{
"name": "com.mambojambostudios.unity-atoms",
"displayName": "Unity Atoms",
"version": "4.0.2",
"version": "4.1.0",
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
},