Splits the singularity into its component parts + ECS singularity + Support for singularities in containers. (#12132)
* InitialCommit (Broken) * Fixes compile errors * PR comments. More doc comments. Fixes * Makes a singularity/event horizon without radiation/physics a valid state to be in * VV 'fake' setters, fixes the visualizer, fixes the singularity trying to eat itself instead of nearby things. * Removes unused dependency from Content.Client.GravityWellSystem * Testing containment and fake VV setters for SingularityGeneratorComponent * Fixes gravity wells (broken due to LookupFlags.None). Adds recursive Event Horizon consumption * Fix merge skew * Fixes for the master merge * Fix engine commit * Dirty is obsolete * Switch over dirty * Fix requested changes * ambiant -> ambient * Moves EventHorionComponent to Shared * Proper container handling * Fixes master merge. Fixes post insertion assertions for singularities. Extends proper container handling to gravity wells and the distortion shader. * Better support for admemes throwing singularities. * Moves update timing from accumulators to target times * Update doc comments
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using Content.Shared.Singularity.Components;
|
||||
|
||||
namespace Content.Shared.Singularity.Events;
|
||||
|
||||
/// <summary>
|
||||
/// An event raised whenever a singularity changes its level.
|
||||
/// </summary>
|
||||
public sealed class SingularityLevelChangedEvent : EntityEventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// The new level of the singularity.
|
||||
/// </summary>
|
||||
public readonly byte NewValue;
|
||||
|
||||
/// <summary>
|
||||
/// The previous level of the singularity.
|
||||
/// </summary>
|
||||
public readonly byte OldValue;
|
||||
|
||||
/// <summary>
|
||||
/// The singularity that just changed level.
|
||||
/// </summary>
|
||||
public readonly SharedSingularityComponent Singularity;
|
||||
|
||||
public SingularityLevelChangedEvent(byte newValue, byte oldValue, SharedSingularityComponent singularity)
|
||||
{
|
||||
NewValue = newValue;
|
||||
OldValue = oldValue;
|
||||
Singularity = singularity;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user