WheteThunger / MonumentAddons

Add entities, spawn points and more to monuments
https://umod.org/plugins/monument-addons
MIT License
5 stars 9 forks source link

Add support for custom addons #10

Open WheteThunger opened 2 years ago

WheteThunger commented 2 years ago

Problem

Supported addons only include individual entities, spawn points, and pastes. The list of addons people might desire to spawn at monuments is unbounded, especially when you consider the possibility of spawning creations of other plugins.

Solution

Add an API that allows other plugins to define custom entities. Players will be able to run maspawn <addon name> to place a custom addon, then use commands from the owner plugin to modify that addon. Monument Addons should take care of duplicating the addon at multiple instances of the monument. The definition of the addon, as provided by the owner plugin, will provide callback to Monument Addons to fulfill various purposes such as spawning and killing instances of the custom addon.

Monuments should be passed to the plugin that owns the addon so that they can parent objects to dynamic monuments such as Cargo Ship.