Skip to content

Commit c3af0f7

Browse files
authored
document limitations for event macro
1 parent 04b855e commit c3af0f7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

mods/dependencies.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,12 @@ void api::doSomething() {
172172
// ...
173173
}
174174
```
175+
176+
### Limitations
177+
Event exported functions currently **cannot** be called from within the mod (attempting to do so will crash the game). A possible way to get around this is to have a separate set of external and internal functions and have the external functions only serve as wrappers for the internal ones.
178+
179+
```cpp
180+
int EditorIDs::getID(GJGameLevel* level) {
181+
return EditorIDs::Internal::getID(level);
182+
}
183+
```

0 commit comments

Comments
 (0)