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.TrailBuffer Class Reference
Inheritance diagram for BrokeProtocol.Collections.TrailBuffer:
BrokeProtocol.Collections.LayerBuffer BrokeProtocol.Collections.BaseBuffer

Public Member Functions

 TrailBuffer (GameObject prefab, int capacity, float lifespan)
 
GameObject Execute (Vector3 start, Vector3 end, GameObject source)
 
- Public Member Functions inherited from BrokeProtocol.Collections.LayerBuffer
 LayerBuffer (GameObject prefab, int capacity)
 
- Public Member Functions inherited from BrokeProtocol.Collections.BaseBuffer
 BaseBuffer (GameObject prefab, int capacity)
 
GameObject Execute ()
 
void Release (GameObject g)
 

Protected Member Functions

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

Protected Attributes

float lifespan
 
Dictionary< GameObject, LineRenderer > rendererCache = new ()
 
- 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

◆ TrailBuffer()

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

Member Function Documentation

◆ CreateItem()

override GameObject BrokeProtocol.Collections.TrailBuffer.CreateItem ( )
inlineprotectedvirtual

◆ DestroyItem()

override void BrokeProtocol.Collections.TrailBuffer.DestroyItem ( GameObject g)
inlineprotectedvirtual

◆ Execute()

GameObject BrokeProtocol.Collections.TrailBuffer.Execute ( Vector3 start,
Vector3 end,
GameObject source )
inline

Member Data Documentation

◆ lifespan

float BrokeProtocol.Collections.TrailBuffer.lifespan
protected

◆ rendererCache

Dictionary<GameObject, LineRenderer> BrokeProtocol.Collections.TrailBuffer.rendererCache = new ()
protected

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