From c1a43bcbe9c6567742847f02c5c44a7346d2c370 Mon Sep 17 00:00:00 2001 From: Ceikry Date: Fri, 7 Oct 2022 02:27:16 +0000 Subject: [PATCH] Create ContentAPI --- ContentAPI.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ContentAPI.md diff --git a/ContentAPI.md b/ContentAPI.md new file mode 100644 index 0000000..8cd572e --- /dev/null +++ b/ContentAPI.md @@ -0,0 +1,13 @@ +The ContentAPI is a consolidated central location that provides every method you'll need to implement ***almost*** anything. + +It is located at `Server/src/main/kotlin/api/ContentAPI.kt` ([View In Browser](https://gitlab.com/2009scape/2009scape/-/blob/master/Server/src/main/kotlin/api/ContentAPI.kt)) + +To use methods in the ContentAPI, you must add the import to whatever kotlin file you are working with if it doesn't already have it: + +``` +import api.* +``` + +All of the methods are documented and globally accessible. You can use the methods by simply typing their name, e.g. `sendMessage(player, "Bababooey")`. + +It's very important that you read the documentation for the methods you use and attempt to understand them. \ No newline at end of file