Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Extensions/Inventory/inventory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace gdjs {
/**
* @category Other extensions > Inventory
* @deprecated use the extension from the extension store instead.
*/
export class Inventory {
_items: any = {};
Expand Down
5 changes: 3 additions & 2 deletions newIDE/README-extensions.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Writing extensions for GDevelop 5

GDevelop editor and games engines are designed so that all objects, behaviors, effects, actions, conditions and expressions
are provided by _extensions_. These extensions are composed of two parts:
The recommended way to [create extensions](https://wiki.gdevelop.io/gdevelop5/extensions/create/) is from GDevelop itself using the extension editor and JavaScript or events. This documentation is about implementing extensions directly in the codebase. This is usually done because of a limitation of the extension editor, for instance when dedicated editors are needed.

GDevelop editor and games engines are designed so that all objects, behaviors, effects, actions, conditions and expressions are provided by _extensions_. These extensions are composed of two parts:

- the _declaration_ of the extension, traditionally done in a file called `JsExtension.js`.
- the _implementation_ of the extension for the game engine (also called the "Runtime"), written in [TypeScript](https://www.typescriptlang.org/), containing the functions corresponding to the actions/conditions/expressions and the classes used for the objects or behaviors. The implementation is traditionally in files called `extensionnametools.ts`, `objectnameruntimeobject.ts` or `objectnameruntimebehavior.ts`.
Expand Down