From a7693fcecf9420a42145f1ed438ea1040a14c8de Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Fri, 23 Sep 2022 23:35:17 +0300 Subject: [PATCH] mirin --- MANUAL.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/MANUAL.md b/MANUAL.md index 4835438..5f44bdb 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -96,6 +96,8 @@ Uranium Template originally formed during the creation of a currently unreleased - [`scheduler.unschedule(i: index): void`](#schedulerunschedulei-index-void) - [`scheduler.unscheduleInTicks(i: index): void`](#schedulerunscheduleinticksi-index-void) - [`binser`](#binser) + - [`mirin`](#mirin) + - [A note about `reset`](#a-note-about-reset) - [`savedata`](#savedata) - [`savedata.initializeModule(name: string, forceIgnore: boolean): void`](#savedatainitializemodulename-string-forceignore-boolean-void) - [Generating a savedata name](#generating-a-savedata-name) @@ -830,6 +832,18 @@ print(binser.deserializeN(mydata, 3)) If you want to serialize custom types using the savedata module, check binser's [Custom types](https://github.com/bakpakin/binser#custom-types) section. +### `mirin` + +_Defines callbacks_ + +_Exports globals_ + +A copy of the [Mirin Template by XeroOl](https://github.com/XeroOl/notitg-mirin/) (currently at 5.0.1), shoved in and ported for your convinience. Works exactly the same as regular Mirin. + +#### A note about `reset` + +Both Uranium Template and Mirin Template contain the global `reset` - Mirin Template uses it for mod resetting, while Uranium Template uses it for actor resetting. To avoid this collision, Uranium's `reset` has an alias called `resetActor`; Mirin will, by default, overwrite the usual `reset`. There's currently no way to change this. + ### `savedata` _Defines callbacks_