Commit Graph

53 Commits

Author SHA1 Message Date
Adam Ramberg
120a0b88c6 🧑‍🔬 v4.4.3 2021-03-07 21:49:39 +01:00
Miika Lönnqvist
989a262e10 Update website URL in docs (#257) 2021-03-07 21:49:39 +01:00
Adam Ramberg
a6c7076666 Changes due to move to new organization 2021-01-22 08:22:16 +01:00
Adam Ramberg
a443064235 🍺 v4.4.2 2020-12-30 22:36:53 +01:00
Adam Ramberg
d8b2b921cc 🍾 v4.4.1 2020-12-30 15:58:22 +01:00
Adam Ramberg
18b456555a 🎅 v4.4.0 2020-12-30 00:47:17 +01:00
Miika Lönnqvist
8f6392c373
#52 Basic implementation of conditions for listeners (#191)
* Basic implementation of conditions for listeners

* Tweak code style and add generated Conditions
2020-11-06 22:11:16 +01:00
Adam Ramberg
56803a8aae 🧞‍♀️ v4.3.0 2020-08-04 01:58:16 +02:00
jmacgill
3140feab42
Generator creates compilable code with type specific modifications (#169)
* Make Examples path check OS agnostic.

* Examples path check OS agnostic.

* Update Runtime.cs

* Re-generate and patch back in type specific changes

* Add missing UnityEngine using.

* Marked as not sealed

* Support the current value type as a conditional.

* Nested if blocks

* Use next char instead of next linefeed.

* Remove debug lines.

* Keep Atom Base Variable sepecfic code.

* Fix position of endif

* Add Raise for void type

* Add void and FSM specific logic

* Add is numeric conditional

* Add more type specific logic

* Add is Vector to generator.

* Add type specific logic

* Add collider type

* Add color specific logic

* Working on whitespace diffs

* Working on whitespace diffs

* remove unused test assembly

* removed example nested if

* test comment removed after regen

* missing ValueEquals

* missing ValueEquals on colliders

* missing color speciifc code.

* whitesapce cleanup

* whitesapce cleanup

* whitesapce cleanup

* whitesapce cleanup

* whitesapce cleanup

* whitesapce cleanup

* remove temp debug

* Generated events now follows editoconfig. + Inline conditionals now supports white spaces.

Co-authored-by: jrmacgill <jmacgill@gmail.com>
Co-authored-by: Adam Ramberg <adam@mambojambostudios.com>
2020-07-12 08:18:51 +02:00
Adam Ramberg
9dd7f918a8 🐞v4.2.1 2020-06-22 09:24:37 +02:00
Adam Ramberg
49f9ff3f66 🐝 v4.2.0 2020-06-20 01:32:56 +02:00
Adam Ramberg
4176aa4392 💜 v4.1.0 2020-04-03 16:01:05 +02:00
Adam Ramberg
3c26513229 🦹‍♂️ v4.0.2 2020-03-22 01:29:45 +01:00
Adam Ramberg
342d5331e2 🦸‍♂️ v4.0.1 2020-03-22 00:51:37 +01:00
Adam Ramberg
4ad596dcd2 Rename functions correctly 2020-03-21 22:17:59 +01:00
Adam Ramberg
cacb2d1594 Correctly generate comments 2020-03-19 08:41:44 +01:00
Adam Ramberg
fdfcf03150 Remove sync functionality in variable instancers 2020-03-19 08:39:43 +01:00
Adam Ramberg
20db73a43f Move sync variable instancer to collection to its own MB 2020-03-19 08:20:15 +01:00
Adam Ramberg
74bfaf7086 Example WIP + Variable ID 2020-03-18 00:17:33 +01:00
Adam Ramberg
17fd35a23d Clean up WIP 2020-03-09 00:37:52 +01:00
Adam Ramberg
cb3486ae7f Align base event reference listener 2020-03-08 12:51:22 +01:00
Adam Ramberg
06d89697f3 Example WIP 2020-03-05 00:48:39 +01:00
Adam Ramberg
b4b8ad0c09 Remove white spaces in Variable Instancers 2020-03-02 19:57:51 +01:00
Adam Ramberg
44c2413c56 Fix intro scene 2020-03-02 19:36:52 +01:00
Adam Ramberg
c3bc59259f More WIP 2020-03-02 02:26:06 +01:00
Adam Ramberg
5d9f8dca71 WIP 2020-03-01 21:32:52 +01:00
Adam Ramberg
3613e32c34 v3.0.0 🐉 2020-02-24 00:59:35 +01:00
Adam Ramberg
85f72abf8a Add AddComponentMenu to Variable Instancers 2020-02-23 23:13:30 +01:00
Adam Ramberg
6309943385
Replay subject (#114)
* Add constructor with value to Reference classes

* Implemented ReplayBehaviour for AtomEvents
2020-02-23 21:44:04 +01:00
Adam Ramberg
7c4f92ecd8
Add constructor with value to Reference classes (#113) 2020-02-23 03:17:05 +01:00
Adam Ramberg
8a6b8a97a6
Added Variable Instancer, Event Reference, Atom Collection and Atom List (old Atom List renamed to Atom Value List) (#110)
AtomVariableInstancer
- Added AtomVariableInstancer as an option to AtomReference.
- Added AtomVariableInstancer to generator.
- Added editor icon for AtomVariableInstancer.

AtomEventReference
- Added an AtomEventReference class (and AtomEventX2Reference). It’s similar to an AtomReference, but for Events. Let’s you pick between an Event, Variable (will select the Changed event) and a VariableInstancer (see above).
- Added AtomEventReference and AtomEventX2Reference to generator.
- Added a drawer for AtomEventReference.
- Listeners are now using AtomEventReference instead of AtomEvent.
- Refactoring of VoidHooks since Listeners are now using AtomEventReference.

AtomCollection
- Created an AtomCollection - a collection of Atoms associated with key strings (AtomReferences).
- Added new editor icon for collections.
- Created a SerializableDictionary class, which AtomCollection is using.
- Custom property drawer for SerializableDictionary.
- SerializableDictionary supports nested structures meaning that a AtomCollection can have a KVP that is pointing to another AtomCollection.
- AtomCollections have 3 events: Added, Removed, Cleared.
- Added an option to sync an InstanceVariable to collection - adding it to the collection when created (using gameObject’s instance id as key) and removing it from the collection when destroyed.

AtomList
- Renamed old AtomList to AtomValueList
- Added AtomList, like Collection, but a list
- Added new icon for AtomList
- Created a AtomBaseVariableList class, which AtomList is using.
- Custom property drawer for AtomBaseVariableList.
- AtomLists have 3 events: Added, Removed, Cleared.
- Added an option to sync an InstanceVariable to list - adding it to the list when created and removing it from the list when destroyed.
2020-02-23 02:39:43 +01:00
Adam Ramberg
9b027e2308
Added pre change transformers to Variables + Clamp Int / Float (#93)
* Added pre change transformers to Variable + Clamp Value Function (first pre change transformer implementation)
- Added a list of pre change transformers to AtomVariable
- Added docs
- Added two AtomFunctions - ClampInt and ClampFloat
- Added custom editors for ClampInt and ClampFloat
- AtomFunction<T, T> is not part of the generator
- Regenerated all the Atoms

* - Created a base class for the editor for ClampFloat and ClampInt. Apparently it is not allowed to have multiple CustomEditor attributes defined for the same class. To implement this I also created an interface called `IIsValid` (for casting purposes in the editor).
- Initialize `PreChangeTransformers ` at declaration and removed initialization `OnEnable`
- Moved call to `RunPreChangeTransformers ` from `OnEnable` to `OnValidate`. Running it 2 times, once for initialValue and once for value since value can be changed at runtime via editor.
- Made the variable PreChangeTransformers private and created a property instead in order to make it impossible to overwrite the list with `null` from the outside.
- Moved `ClampInt` and `ClampFloat` in the `CreateAssetMenu` for `Unity Atoms/Functions/Transformers`
2020-02-16 12:44:46 +01:00
Adam Ramberg
90a505bbd3 v2.1.1 🤖 2020-01-23 23:42:09 +01:00
AdamRamberg
b51de335e0 v2.1.0 🚀 2019-11-28 19:35:59 +01:00
Oliver Biwer
1dd2baeaec Better user guidance for working with AtomVariables (#70)
* #69 added custom editor for Variable Types, to guide the usage flow and reduce errors.

* allows unlocking of initialvalue in playmode

* adjustments to Variable Inspector

* Generator now works with all kinds of setups. just select the Packages folder when calling RegenerateAll.
Used this to regenerate the CustomEditors

* supports now structs

* Added RaiseButtons in VariableEditor. #72
Adding simple logging helper on listeners, for fast debugging.

* Call `serializedObject.Update();` before `OnInspectorGUI` in the editor script in order to update old value when changing value.
Show children for PropertyFields for initial and old value.
Some minor refactoring - renaming variables
Clean up in `RegenereateAllAtoms`
Use `OnEnable` instead of `OnAfterDeserialize` when setting inital value for variable. `OnAfterDeserialize` was causing major issues with the custom editor, eg. it did run when focusing a Variable and showing the inspector, basically making it worthless to change or even inspect the Variable at runtime. `OnEnable` is only called ones when the ScriptableObject is loaded in runtime, which is what we really want. This has been tested running in the editor and in builds.
Add missing editors scripts `TouchUserInputVariableEditor`and `SceneFieldVariableEditor`
2019-11-14 12:59:11 +01:00
IceTrooper
23a8873462 Changed AddComponentMenu names for Listeners/Hooks (#84)
* changed AddComponentMenu names for Listeners

* renamed AddComponentMenu Listeners names in other packages

* renamed AddComponentMenu for hooks

* renamed double Listeners to "x 2" convention
2019-11-13 08:59:39 +01:00
AdamRamberg
babb691792 V2.0.0 🎉 2019-10-24 08:15:45 +02:00
AdamRamberg
cd90f0e667 Remove all FormerlySerializedAs attributes 2019-10-18 17:36:10 +02:00
AdamRamberg
299dc195e2 - Added a top menu bar option to regenerate all existing Atoms. Nifty when developing the library.
- Added the option to use a Constant in Atom References. Related to #58
2019-10-16 18:02:08 +02:00
AdamRamberg
bfc37e2a2f Readd MonoHooks as a subpackage 2019-10-16 01:43:51 +02:00
AdamRamberg
47265591e6 Generate more docs for scene mgmt 2019-10-15 23:31:21 +02:00
AdamRamberg
afcb782fd6 Various docs fixes 2019-10-15 23:20:05 +02:00
AdamRamberg
867d360ebf Regenerate docs for SceneField Atoms 2019-10-15 22:39:20 +02:00
AdamRamberg
9822202acd UseIcon -> EditorIcon 2019-10-14 16:51:54 +02:00
AdamRamberg
0f88039fef Fix assembly references 2019-10-13 22:47:22 +02:00
AdamRamberg
0b683448fb Added eslint + prettier and updated .editorconfig 2019-10-07 20:47:30 +02:00
AdamRamberg
327dd87222 Use NPM instead of Github registry 2019-10-03 22:00:36 +02:00
AdamRamberg
46af4f9f3a Fix warnings when importing package 2019-10-03 21:34:57 +02:00
AdamRamberg
3431832f6c Add publish scripts to Github registry 2019-10-03 17:23:09 +02:00
AdamRamberg
b88e90ca47 Update SceneField with new icon system 2019-10-02 17:49:06 +02:00