Photon Bolt Engine API  1.2.7
Properties | Private Member Functions | Private Attributes | List of all members
BoltHitboxBody Class Reference

Defines a body of hitboxes to be tracked More...

Inheritance diagram for BoltHitboxBody:

Properties

BoltHitbox [] hitboxes [get, set]
 An array of hitbox components that compose this body More...
 
object IBoltListNode< BoltHitboxBody >. list [get, set]
 
BoltHitboxBody IBoltListNode< BoltHitboxBody >. next [get, set]
 
BoltHitboxBody IBoltListNode< BoltHitboxBody >. prev [get, set]
 
BoltHitbox proximity [get, set]
 A hitbox which should contain all other hitboxes on this entity More...
 

Private Member Functions

void OnDisable ()
 
void OnEnable ()
 

Private Attributes

internal BoltHitbox [] _hitboxes = new BoltHitbox[0]
 
internal BoltHitbox _proximity
 

Detailed Description

Defines a body of hitboxes to be tracked

Example: Adding a hitbox body to a character pre-configured with BoltHitbox components

void AddHitboxBody(BoltEntity entity) {
BoltHitbox[] hitboxes = entity.GetComponentsInChildren<BoltHitbox>();
BoltHitboxBody body = entity.AddComponent<BoltHitboxBody>();
}

Member Function Documentation

◆ OnDisable()

void BoltHitboxBody.OnDisable ( )
inlineprivate

◆ OnEnable()

void BoltHitboxBody.OnEnable ( )
inlineprivate

Member Data Documentation

◆ _hitboxes

internal BoltHitbox [] BoltHitboxBody._hitboxes = new BoltHitbox[0]
private

◆ _proximity

internal BoltHitbox BoltHitboxBody._proximity
private

Property Documentation

◆ hitboxes

BoltHitbox [] BoltHitboxBody.hitboxes
getset

An array of hitbox components that compose this body

Example: Finding all hitbox components on an entity and adding them to a hitbox body

void AddHitboxBody(BoltEntity entity) {
BoltHitbox[] hitboxes = entity.gameObject.GetComponentsInChildren<BoltHitbox>();
BoltHitboxBody body = entity.AddComponent<BoltHitboxBody>();
}

◆ list

object IBoltListNode<BoltHitboxBody>. BoltHitboxBody.list
getsetprivate

◆ next

BoltHitboxBody IBoltListNode<BoltHitboxBody>. BoltHitboxBody.next
getsetprivate

◆ prev

BoltHitboxBody IBoltListNode<BoltHitboxBody>. BoltHitboxBody.prev
getsetprivate

◆ proximity

BoltHitbox BoltHitboxBody.proximity
getset

A hitbox which should contain all other hitboxes on this entity