Table of Contents

Class ProjectileExploding

Namespace
Uncreated.Warfare.Events.Models.Projectiles
Assembly
Uncreated.Warfare.dll
public class ProjectileExploding : CancellablePlayerEvent, IPlayerEvent, ICancellable
Inheritance
ProjectileExploding
Implements
Inherited Members

Constructors

ProjectileExploding(ExplosionParameters)

public ProjectileExploding(ExplosionParameters parameters)

Parameters

parameters ExplosionParameters

Properties

Ammo

public required ItemMagazineAsset? Ammo { get; init; }

Property Value

ItemMagazineAsset

Asset

public required ItemGunAsset Asset { get; init; }

Property Value

ItemGunAsset

Barrel

public required ItemBarrelAsset? Barrel { get; init; }

Property Value

ItemBarrelAsset

Explosion

Parameters that will be used to create the explosion.

public ref readonly ExplosionParameters Explosion { get; }

Property Value

ExplosionParameters

FiredTime

Time at which the player fired the weapon (when the first projectile spawned).

public required DateTime FiredTime { get; init; }

Property Value

DateTime

Gun

public required UseableGun Gun { get; init; }

Property Value

UseableGun

HitCollider

public required Collider HitCollider { get; init; }

Property Value

Collider

HitObject

public required Transform HitObject { get; init; }

Property Value

Transform

HitPosition

public required Vector3 HitPosition { get; init; }

Property Value

Vector3

HitVehicle

public required InteractableVehicle? HitVehicle { get; init; }

Property Value

InteractableVehicle

ImpactTime

public required DateTime ImpactTime { get; init; }

Property Value

DateTime

LaunchedTime

Time at which this projectile spawned.

public required DateTime LaunchedTime { get; init; }

Property Value

DateTime

Object

public required GameObject Object { get; init; }

Property Value

GameObject

PredictedHitPosition

public required Vector3? PredictedHitPosition { get; init; }

Property Value

Vector3?

PredictedImpactTime

public required DateTime? PredictedImpactTime { get; init; }

Property Value

DateTime?

Projectile

public required WarfareProjectile Projectile { get; init; }

Property Value

WarfareProjectile

RocketComponent

public required Rocket RocketComponent { get; init; }

Property Value

Rocket