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.BaseBuffer Class Reference
Inheritance diagram for BrokeProtocol.Collections.BaseBuffer:
BrokeProtocol.Collections.ActivateBuffer BrokeProtocol.Collections.LayerBuffer BrokeProtocol.Collections.TimedBuffer BrokeProtocol.Collections.CanvasBuffer BrokeProtocol.Collections.CoroutineBuffer BrokeProtocol.Collections.TracerBuffer BrokeProtocol.Collections.FollowBuffer BrokeProtocol.Collections.TrailBuffer BrokeProtocol.Collections.SplatBuffer BrokeProtocol.Collections.IdentityBuffer BrokeProtocol.Collections.LaserBuffer

Public Member Functions

 BaseBuffer (GameObject prefab, int capacity)
 
GameObject Execute ()
 
void Release (GameObject g)
 

Protected Member Functions

virtual GameObject CreateItem ()
 
virtual void GetItem (GameObject g)
 
virtual void ReleaseItem (GameObject g)
 
virtual void DestroyItem (GameObject g)
 
IEnumerator ReleaseDelay (GameObject g, float delay)
 

Protected Attributes

Dictionary< GameObject, Transform > transformCache = new ()
 
Dictionary< GameObject, ParticleSystem > particleCache = new ()
 
Dictionary< GameObject, AudioSource > audioCache = new ()
 
Dictionary< GameObject, Light > lightCache = new ()
 

Constructor & Destructor Documentation

◆ BaseBuffer()

BrokeProtocol.Collections.BaseBuffer.BaseBuffer ( GameObject prefab,
int capacity )
inline

Member Function Documentation

◆ CreateItem()

virtual GameObject BrokeProtocol.Collections.BaseBuffer.CreateItem ( )
inlineprotectedvirtual

◆ DestroyItem()

virtual void BrokeProtocol.Collections.BaseBuffer.DestroyItem ( GameObject g)
inlineprotectedvirtual

◆ Execute()

GameObject BrokeProtocol.Collections.BaseBuffer.Execute ( )

◆ GetItem()

virtual void BrokeProtocol.Collections.BaseBuffer.GetItem ( GameObject g)
inlineprotectedvirtual

◆ Release()

void BrokeProtocol.Collections.BaseBuffer.Release ( GameObject g)

◆ ReleaseDelay()

IEnumerator BrokeProtocol.Collections.BaseBuffer.ReleaseDelay ( GameObject g,
float delay )
inlineprotected

◆ ReleaseItem()

virtual void BrokeProtocol.Collections.BaseBuffer.ReleaseItem ( GameObject g)
inlineprotectedvirtual

Member Data Documentation

◆ audioCache

Dictionary<GameObject, AudioSource> BrokeProtocol.Collections.BaseBuffer.audioCache = new ()
protected

◆ lightCache

Dictionary<GameObject, Light> BrokeProtocol.Collections.BaseBuffer.lightCache = new ()
protected

◆ particleCache

Dictionary<GameObject, ParticleSystem> BrokeProtocol.Collections.BaseBuffer.particleCache = new ()
protected

◆ transformCache

Dictionary<GameObject, Transform> BrokeProtocol.Collections.BaseBuffer.transformCache = new ()
protected

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