Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0c45134
Remove mutable object func
Edvinas01 Jan 20, 2021
9c06e40
Initial rework of events
Edvinas01 Jan 20, 2021
b595d3a
Use new game event API
Edvinas01 Jan 21, 2021
0150681
Fixup most tests, disable some (for now)
Edvinas01 Jan 21, 2021
a838425
Cleanup, rename *GameEvent to *ScriptableEvent
Edvinas01 Jan 22, 2021
d66a973
Fixup editor a bit
Edvinas01 Jan 22, 2021
677b8c2
Remove images and unused csproj files
Edvinas01 Jan 22, 2021
1cf9643
Update project settings
Edvinas01 Jan 22, 2021
1de50c5
Update namespace
Edvinas01 Jan 22, 2021
2d1440c
Cleanup DotSettings
Edvinas01 Jan 22, 2021
5322ead
Update event editor, add package validator
Edvinas01 Jan 23, 2021
b73dffd
Suppress faulty warnings
Edvinas01 Jan 23, 2021
d3668fd
Simplify assemblies
Edvinas01 Jan 23, 2021
f9448ee
Make API more strict, Clear functionality, overload + and - operators…
Edvinas01 Jan 23, 2021
f73ae1a
Cleanup imports
Edvinas01 Jan 23, 2021
00fb067
Add tests for all event and listener implementations and their attrib…
Edvinas01 Jan 23, 2021
d8d4f03
Update Unity version
Edvinas01 Jan 24, 2021
9f5301c
Remove universal RP
Edvinas01 Jan 24, 2021
d99654d
Simplify editor API
Edvinas01 Jan 24, 2021
3b92115
Improve UX by ordering events and listeners, update tests
Edvinas01 Jan 24, 2021
536e932
Remove old samples, add samples showing how to use simple & arg events
Edvinas01 Jan 24, 2021
328a0bc
Rename sample scripts
Edvinas01 Jan 24, 2021
c8c5559
Add custom event example
Edvinas01 Jan 24, 2021
f30f020
Cleanup sample scenes
Edvinas01 Jan 24, 2021
f37c454
Move library assets to Packages/com.chark.scriptable-events
Edvinas01 Jan 24, 2021
d044846
Move samples to Samples~/ dir
Edvinas01 Jan 24, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Contributing
If you found a bug or want to add a feature, you are more than welcome to make a Pull Request!

When doing so, make sure to:
- Follow similar code style which is used in other scripts.
- Add tests cases under [ScriptableEventAttributeTestSource](../Packages/com.chark.scriptable-events/Tests/Editor/ScriptableEventAttributeTestSource.cs) and [ScriptableEventTestSource](../Packages/com.chark.scriptable-events/Tests/Runtime/ScriptableEventTestSource.cs) when adding new event types.
- Add tests for additional features, for example how [SimpleScriptableEventTest](../Packages/com.chark.scriptable-events/Tests/Runtime/SimpleScriptableEventTest.cs) does it for an additional method that is not covered in [ScriptableEventTest](../Packages/com.chark.scriptable-events/Tests/Runtime/ScriptableEventTest.cs).
32 changes: 32 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Scriptable Events
[![Unity 2019.4+](https://img.shields.io/badge/unity-2019.4%2B-blue.svg)](https://unity3d.com/get-unity/download)
[![Actions Status](https://github.com/chark/scriptable-events/workflows/CI/badge.svg)](https://github.com/chark/scriptable-events/actions)

Simple and extensible event system implemented via `ScriptableObject`, based on [Unite2017](https://github.com/roboryantron/Unite2017).

<p align="center">
<img hspace="2%" src="event.png"/>
<img hspace="2%" src="event-listener.png"/>
</p>

## Features
- Can be used with minimal or no code at all.
- Default event and listener implementations for commonly used types.
- Strongly typed.
- Ability to easily add custom events and inspector GUIs.

## Installation
This package can be installed via the Unity Package Manager by [Installing from a Git URL](https://docs.unity3d.com/Manual/upm-ui-giturl.html):
```text
https://github.com/chark/scriptable-events.git#upm
```

Alternatively, you can also install it by adding the following dependency to `Packages/manifest.json`:
```text
"com.chark.scriptable-events": "https://github.com/chark/scriptable-events.git#upm"
```

## Documentation
- [Usage documentation](../Packages/com.chark.scriptable-events/Documentation~/README.md)
- [Contributing](CONTRIBUTING.md)
- [Changelog](../Packages/com.chark.scriptable-events/CHANGELOG.md)
Binary file added .github/event-listener.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/event.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# TODO: automate based on https://medium.com/openupm/how-to-maintain-upm-package-part-1-7b4daf88d4c4
name: CI

on:
Expand Down
98 changes: 0 additions & 98 deletions Assets/CHANGELOG.md

This file was deleted.

126 changes: 0 additions & 126 deletions Assets/Documentation~/README.md

This file was deleted.

Binary file removed Assets/Documentation~/game-events.png
Binary file not shown.
Binary file removed Assets/Documentation~/listeners.png
Binary file not shown.
Binary file removed Assets/Documentation~/mutable-objects.png
Binary file not shown.
9 changes: 0 additions & 9 deletions Assets/Editor/Chark.UnityScriptableObjects.Editor.asmdef

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Editor/GameEvents/Bool.meta

This file was deleted.

14 changes: 0 additions & 14 deletions Assets/Editor/GameEvents/Bool/BoolGameEventEditor.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Editor/GameEvents/Float.meta

This file was deleted.

14 changes: 0 additions & 14 deletions Assets/Editor/GameEvents/Float/FloatGameEventEditor.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Editor/GameEvents/Game.meta

This file was deleted.

44 changes: 0 additions & 44 deletions Assets/Editor/GameEvents/Game/GameEventEditor.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Editor/GameEvents/Game/GameEventEditor.cs.meta

This file was deleted.

Loading