Broke Protocol Game API Reference  1.39
Code reference for server and client scripting
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BrokeProtocol.Collections.TimedBuffer Class Reference
Inheritance diagram for BrokeProtocol.Collections.TimedBuffer:
BrokeProtocol.Collections.BaseBuffer BrokeProtocol.Collections.SplatBuffer

Public Member Functions

 TimedBuffer (GameObject prefab, int capacity, float lifespan)
 
virtual GameObject Execute (Vector3 start, Vector3 normal)
 
GameObject Execute (Vector3 start, Quaternion rotation)
 
- Public Member Functions inherited from BrokeProtocol.Collections.BaseBuffer
 BaseBuffer (GameObject prefab, int capacity)
 
GameObject Execute ()
 
void Release (GameObject g)
 

Protected Member Functions

override void GetItem (GameObject g)
 
- Protected Member Functions inherited from BrokeProtocol.Collections.BaseBuffer
virtual GameObject CreateItem ()
 
virtual void ReleaseItem (GameObject g)
 
virtual void DestroyItem (GameObject g)
 
IEnumerator ReleaseDelay (GameObject g, float delay)
 

Protected Attributes

float lifespan
 
- Protected Attributes inherited from BrokeProtocol.Collections.BaseBuffer
Dictionary< GameObject, Transform > transformCache = new ()
 
Dictionary< GameObject, ParticleSystem > particleCache = new ()
 
Dictionary< GameObject, AudioSource > audioCache = new ()
 
Dictionary< GameObject, Light > lightCache = new ()
 

Constructor & Destructor Documentation

◆ TimedBuffer()

BrokeProtocol.Collections.TimedBuffer.TimedBuffer ( GameObject prefab,
int capacity,
float lifespan )
inline

Member Function Documentation

◆ Execute() [1/2]

GameObject BrokeProtocol.Collections.TimedBuffer.Execute ( Vector3 start,
Quaternion rotation )
inline

◆ Execute() [2/2]

virtual GameObject BrokeProtocol.Collections.TimedBuffer.Execute ( Vector3 start,
Vector3 normal )
virtual

◆ GetItem()

override void BrokeProtocol.Collections.TimedBuffer.GetItem ( GameObject g)
inlineprotectedvirtual

Member Data Documentation

◆ lifespan

float BrokeProtocol.Collections.TimedBuffer.lifespan
protected

The documentation for this class was generated from the following file: