\ManiaControl\Callbacks\Structures\ShootManiaOnHitNearMissArmorEmptyBaseStructure

Structure Base Class for the OnHit/OnNearMiss/OnArmorEmpty Structure Callback

Summary

Methods
Properties
Constants
__construct()
getPlainJsonObject()
getUsageInformation()
toJson()
getTime()
getWeapon()
getShooterPosition()
getVictimPosition()
getShooter()
getVictim()
getDistance()
No public properties found
No constants found
No protected methods found
$maniaControl
N/A
No private methods found
$plainJsonObject
$time
$weapon
$shooterPosition
$victimPosition
$shooter
$victim
$distance
N/A

Properties

$plainJsonObject

$plainJsonObject : 

Type

$time

$time : 

Type

$weapon

$weapon : 

Type

$shooterPosition

$shooterPosition : 

Type

$victimPosition

$victimPosition : 

Type

$shooter

$shooter : 

Type

$victim

$victim : 

Type

$distance

$distance : 

Type

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl, array  $data) 

Construct a new On Hit Structure

Parameters

\ManiaControl\ManiaControl $maniaControl
array $data

getPlainJsonObject()

getPlainJsonObject() 

Gets the Plain Json

getUsageInformation()

getUsageInformation() 

Gets Information about the Class, and a List of the Public Method

toJson()

toJson() 

getTime()

getTime() : integer

< Server time when the event occured

Returns

integer

getWeapon()

getWeapon() : integer

< Id of the weapon [1-Laser, 2-Rocket, 3-Nucleus, 5-Arrow]

Returns

integer

getDistance()

getDistance() : float

Distance Between Shooter and Victim at the time of the Event

Returns

float