Blackboard.cs

v4.0

The Blackboard component is the central hub for all of the Blackboard actions. Add this to the top of any script which utilizes it:

using static InfinityPBR.Modules.MainBlackboard;
// Refer to Blackboard Note, Blackboard Event, and Blackboard Values for additional code references.

// Obtaining a specific value from a Blackboard Note
GameStat gameStat = Blackboard.ValueGameStat(topic, subject);

// Doing something with a specific value from a Blackboard Note
public float FloatValue => Blackboard.ValueFloat(topic, subject);
DoSomeMathWithAFloat(FloatValue);

Timeboard

The Gametime module has a Timeboard object which has it's own Blackboard. It is used to send information out, and also keep track of time without requiring objects to access the Gametime data directly. Check it out to see how it talks with its blackboard object.

Last updated

Was this helpful?