Class ThrownItemSystem
Handles throwing landing and collisions.
Inheritance
System.Object
ThrownItemSystem
Namespace: Content.Shared.Throwing
Assembly: Content.Shared.dll
Syntax
public sealed class ThrownItemSystem : EntitySystem
Methods
| Improve this Doc View SourceInitialize()
Declaration
public override void Initialize()
LandComponent(EntityUid, ThrownItemComponent, PhysicsComponent, Boolean)
Declaration
public void LandComponent(EntityUid uid, ThrownItemComponent thrownItem, PhysicsComponent physics, bool playSound)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
ThrownItemComponent | thrownItem | |
Robust.Shared.Physics.Components.PhysicsComponent | physics | |
System.Boolean | playSound |
StopThrow(EntityUid, ThrownItemComponent)
Declaration
public void StopThrow(EntityUid uid, ThrownItemComponent thrownItemComponent)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
ThrownItemComponent | thrownItemComponent |
ThrowCollideInteraction(ThrownItemComponent, EntityUid, EntityUid)
Raises collision events on the thrown and target entities.
Declaration
public void ThrowCollideInteraction(ThrownItemComponent component, EntityUid thrown, EntityUid target)
Parameters
Type | Name | Description |
---|---|---|
ThrownItemComponent | component | |
EntityUid | thrown | |
EntityUid | target |
Update(Single)
Declaration
public override void Update(float frameTime)
Parameters
Type | Name | Description |
---|---|---|
System.Single | frameTime |