Commit Graph

30 Commits

Author SHA1 Message Date
Thimo de Ram
7c86054f88 fix #252 Removed duplicate function definition 2021-11-27 12:00:22 +01:00
Miika Lönnqvist
7b29e15be2
Revert "Use event references in mono hooks (#271)" (#287)
This reverts commit 25412ab2a8.
2021-07-04 12:41:05 +02:00
Simon Bucher
25412ab2a8
Use event references in mono hooks (#271) 2021-07-04 11:42:46 +02:00
Adam Ramberg
a6c7076666 Changes due to move to new organization 2021-01-22 08:22:16 +01:00
Casey Hofland
21a588b6a4
Add OnCollisionHook and OnCollision2DHook (#221)
* Add OnCollisionHook and OnCollision2DHook

* refactor hooks

Naming shouldn't be trigger, get outa heeeeere!

* Implement ValueEquals + simplify already implemented ValueEquals

* Fix generator for Collisions + Add missing generated conditions + support OR:ed conditions in templates

Co-authored-by: Adam Ramberg <adam@mambojambostudios.com>
2020-12-30 00:01:42 +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
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
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
5d6e94af63 WIP 2020-03-09 00:16:40 +01:00
Adam Ramberg
cb3486ae7f Align base event reference listener 2020-03-08 12:51:22 +01:00
Adam Ramberg
88ae9f8b9b WIP 2020-03-05 00:48:57 +01:00
Adam Ramberg
06d89697f3 Example WIP 2020-03-05 00:48:39 +01:00
Adam Ramberg
f8a73c143f Set default to avoid compiler warnings 2020-03-02 20:27:38 +01:00
Adam Ramberg
b4b8ad0c09 Remove white spaces in Variable Instancers 2020-03-02 19:57:51 +01:00
Adam Ramberg
25cca2c9fe Use Event Reference in MonoHooks 2020-03-02 19:52:08 +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
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
Low Jiahao
d619146076 Unity v2018.4 Support (#98)
* - Fixed MonoHooks asmdef reference to Core asmdef was broken.
- Fixed dependancy issue for Package Manager.
- Removed Generator function in version 2018.4.

* Updated to include 2018.4 define directive.
2020-01-23 20:01:31 +01:00
Adam Ramberg
cc63d654b3
Name OnTriggerHook class properly. (#91)
* Bux fix - name OnTriggerHook class properly.

* Add entry to CHANGELOG
2019-11-15 06:33:23 +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
a496c19bf7 Set default values to remove MH warnings 2019-10-20 21:16:07 +02:00
AdamRamberg
cd90f0e667 Remove all FormerlySerializedAs attributes 2019-10-18 17:36:10 +02:00
AdamRamberg
bfc37e2a2f Readd MonoHooks as a subpackage 2019-10-16 01:43:51 +02:00