Scripting API

Scripting API

SystemConflict

Class in Abyss.Core, from Abyss.Core.

A pair of systems that cannot be in flight at the same time.

public sealed class SystemConflict

Remarks

A conflict is a scheduling constraint, not an error. Two systems that both write the same component are perfectly valid; they simply have to be ordered rather than run concurrently. What the engine refuses to do is let them overlap silently.

Properties

First

public SystemId First { get; }

The lower-numbered system.

Second

public SystemId Second { get; }

The higher-numbered system.

Components

public IReadOnlyList<ComponentId> Components { get; }

The components responsible. Empty when SystemConflict.IsTotal is set.

IsTotal

public bool IsTotal { get; }

Whether the systems conflict on everything rather than on specific components, which happens when one of them declares access to the whole world.

Methods

ToString

public override string ToString()