Adds separate build tasks for each plugin by auto-discovering plugin meta
files in the build script. Each plugin will automatically have its
main sources and tests compiled, and then it's output added to the game
modules classpath.
This enables support for incremental compilation of scripts, as well as
unit testing using Gradle's test framework.
Adds gradle tasks to build all plugin scripts under data/plugins with
the KotlinPluginCompiler implementation previously used for runtime code
generation. In addition to .plugin.kts files, scripts can also declare
API code in .kt files which will also be included on the classpath and
made available to other plugins.
Creates a new sourceset for server plugins to support IDE integration
with plugin code. Additionally moves plugins to game/data/plugins and
contains some gradle related fixes (remove java plugin from root project
and fix exec task dependency).
Ports the Maven build POMs to Gradle build scripts, which are a bit
friendlier to use. Instead of using the exec:java Maven goal to run the
server now, the gradle run task should be used.
Implements a new MobExtension plugin which adds 'follow', and 'chase'
mixins that allow the mob to follow behind another mob, and chase them
while keeping at a safe distance to fire projectiles. Also adds a new
public method 'raycast' to CollisionManager, for drawing a line through
the world using bresenham's line algorithm whille checking for any impenetrable
objects.
Adds a new mob extension plugin which creates a walk_to() method on
Mobs to allow walking to another entity (accounting for the size of the
entity) with an optional facing position.
Adds a mob-extension plugin, which allows creating modules as mixins to
be monkey-patched into the Mob class. Having a standard method of doing
this prevents confusing problems with mixin name conflicts, by allowing
the plugin to raise an error that 2 mixins with the same name exist.