Scripting API

Scripting API

Particles2DEditing

Class in Abyss.Physics2D, from Abyss.Physics2D.

While the game is edited, a Box2D world of the editor's own kept in step with the entities — bodies and ground made, moved and taken away as they are, never stepped and nothing written back — so particles meet the scene's 2D colliders in the Scene panel as they will as the game plays. While it plays, the game's world is the one they meet; see ParticleColliders2D.

public sealed class Particles2DEditing : IPlugin

Methods

Build

public void Build(Schedule schedule)

Parameters

  • schedule

Stopping

public void Stopping(World world)

Parameters

  • world

As the editor builds its plugins again, for a rebuilt game, or closes it: the world let go of, and the provider with it, which the plugins built next register again.