Engine Entity Anchoring Changes (#4195)
* Converted all SnapGridPositionChangedEvent subscriptions to AnchorStateChangedEvent. * Fixes power tests with new anchored requirements. * Moved AnchorableComponent into construction. AnchorableComponent now uses Transform.Anchored. * Fixed bug with nodes, power works again. * Adds lifetime stages to Component. * Update Engine to v0.4.70.
This commit is contained in:
@@ -25,13 +25,13 @@ namespace Content.Server.Power.Components
|
||||
[ViewVariables]
|
||||
private bool _needsNet = true;
|
||||
|
||||
public override void OnAdd()
|
||||
protected override void OnAdd()
|
||||
{
|
||||
base.OnAdd();
|
||||
_net = NullNet;
|
||||
}
|
||||
|
||||
public override void Initialize()
|
||||
protected override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
if (_needsNet)
|
||||
@@ -40,7 +40,7 @@ namespace Content.Server.Power.Components
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnRemove()
|
||||
protected override void OnRemove()
|
||||
{
|
||||
ClearNet();
|
||||
base.OnRemove();
|
||||
|
||||
Reference in New Issue
Block a user