Skip to content

Commit

Permalink
Added basic callback information for v5 for NOTIFY_DEATH_EVENT, NOTIF…
Browse files Browse the repository at this point in the history
…Y_TOUCH_SIGNPOST and NOTIFY_KILL_ENEMY
  • Loading branch information
thesupersonic16 committed Oct 14, 2024
1 parent dd7b8bd commit dd7b2b1
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 18 deletions.
22 changes: 17 additions & 5 deletions docs/Games/SonicOrigins/Documentation/NotifyCallback/DeathEvent.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
# NOTIFY_DEATH_EVENT

## Description
Todo.
Notifies [Hedgehog Engine 2](../../HedgehogEngine2.md) of a Player death.

## Parameters
`todo`
=== "v3"

`todo`

: Todo.

=== "v4"

`todo`

: Todo.

=== "v5"

: Todo.
None.

## Return Value
None.
Expand All @@ -28,7 +40,7 @@ None.
=== "v5"

``` c++
NotifyCallback(NOTIFY_CALLBACK, int32 todo, NULL, NULL);
NotifyCallback(NOTIFY_DEATH_EVENT, NULL, NULL, NULL);
```

## Example
Expand All @@ -48,5 +60,5 @@ None.
=== "v5"

``` c++
NotifyCallback(NOTIFY_CALLBACK, 0, NULL, NULL);
NotifyCallback(NOTIFY_DEATH_EVENT, NULL, NULL, NULL);
```
28 changes: 23 additions & 5 deletions docs/Games/SonicOrigins/Documentation/NotifyCallback/KillEnemy.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
# NOTIFY_KILL_ENEMY

## Description
Todo.
Notifies [Hedgehog Engine 2](../../HedgehogEngine2.md) to update the mission objective.

## Parameters
`todo`
=== "v3"

`todo`

: Todo.

=== "v4"

`todo`

: Todo.

=== "v5"

`todo`

: Todo.

`todo2`

: Todo.
: Todo. Used to add an amount.

## Return Value
None.
Expand All @@ -28,7 +46,7 @@ None.
=== "v5"

``` c++
NotifyCallback(NOTIFY_CALLBACK, int32 todo, NULL, NULL);
NotifyCallback(NOTIFY_KILL_ENEMY, int32 todo, int32 todo2, NULL);
```

## Example
Expand All @@ -48,5 +66,5 @@ None.
=== "v5"

``` c++
NotifyCallback(NOTIFY_CALLBACK, 0, NULL, NULL);
NotifyCallback(NOTIFY_KILL_ENEMY, 0, 0, NULL);
```
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ NotifyCallback is a function in [Sonic Origins](../../README.md) that handles co
## Callbacks
| ID | Callback | Description |
| ---- | ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 128 | [**NOTIFY_DEATH_EVENT**](DeathEvent.md) | |
| 129 | [**NOTIFY_TOUCH_SIGNPOST**](TouchSignPost.md) | |
| 128 | [**NOTIFY_DEATH_EVENT**](DeathEvent.md) | Notifies [Hedgehog Engine 2](../../HedgehogEngine2.md) of a Player death. |
| 129 | [**NOTIFY_TOUCH_SIGNPOST**](TouchSignPost.md) | Notifies [Hedgehog Engine 2](../../HedgehogEngine2.md) when a sign post has been touched. |
| 130 | [**NOTIFY_HUD_ENABLE**](HUDEnable.md) | |
| 131 | [**NOTIFY_ADD_COIN**](AddCoin.md) | Awards the player the given amount of coins. |
| 132 | [**NOTIFY_KILL_ENEMY**](KillEnemy.md) | |
| 132 | [**NOTIFY_KILL_ENEMY**](KillEnemy.md) | Notifies [Hedgehog Engine 2](../../HedgehogEngine2.md) to update the mission objective. |
| 133 | [**NOTIFY_SAVESLOT_SELECT**](SaveSlotSelect.md) | |
| 134 | [**NOTIFY_FUTURE_PAST**](FuturePast.md) | |
| 135 | [**NOTIFY_GOTO_FUTURE_PAST**](GotoFuturePast.md) | |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
# NOTIFY_TOUCH_SIGNPOST

## Description
Todo.
Notifies [Hedgehog Engine 2](../../HedgehogEngine2.md) when a sign post has been touched to signify the completion of the stage in mission mode. In Sonic 3 & Knuckles this is only called from the `SignPost2` object.

## Parameters
`todo`
=== "v3"

`todo`

: Todo.

=== "v4"

`todo`

: Todo.

=== "v5"

: Todo.
None.

## Return Value
None.
Expand All @@ -28,7 +40,7 @@ None.
=== "v5"

``` c++
NotifyCallback(NOTIFY_CALLBACK, int32 todo, NULL, NULL);
NotifyCallback(NOTIFY_TOUCH_SIGNPOST, NULL, NULL, NULL);
```

## Example
Expand All @@ -48,5 +60,5 @@ None.
=== "v5"

``` c++
NotifyCallback(NOTIFY_CALLBACK, 0, NULL, NULL);
NotifyCallback(NOTIFY_TOUCH_SIGNPOST, NULL, NULL, NULL);
```

0 comments on commit dd7b2b1

Please sign in to comment.