add: Dragon rift color changes based on charge (#36216)
* use dragon rift sprite colours * Entity<T>
This commit is contained in:
parent
e3276de378
commit
1f60a17500
|
|
@ -13,6 +13,7 @@ using Robust.Shared.Serialization.Manager;
|
|||
using System.Numerics;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Audio.Systems;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Server.Dragon;
|
||||
|
|
@ -33,11 +34,20 @@ public sealed class DragonRiftSystem : EntitySystem
|
|||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<DragonRiftComponent, ComponentGetState>(OnGetState);
|
||||
SubscribeLocalEvent<DragonRiftComponent, ExaminedEvent>(OnExamined);
|
||||
SubscribeLocalEvent<DragonRiftComponent, AnchorStateChangedEvent>(OnAnchorChange);
|
||||
SubscribeLocalEvent<DragonRiftComponent, ComponentShutdown>(OnShutdown);
|
||||
}
|
||||
|
||||
private void OnGetState(Entity<DragonRiftComponent> ent, ref ComponentGetState args)
|
||||
{
|
||||
args.State = new DragonRiftComponentState
|
||||
{
|
||||
State = ent.Comp.State,
|
||||
};
|
||||
}
|
||||
|
||||
public override void Update(float frameTime)
|
||||
{
|
||||
base.Update(frameTime);
|
||||
|
|
|
|||
Loading…
Reference in New Issue