CLogicBranchList: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== Overview ==
== Overview ==
...
Stores a list of [[CLogicBranch]] entities and fires outputs when any one of them changes, or through the Test input. Which output is fired depends on the values of every CLogicBranch stored:
 
* OnAllTrue  - Fired when all CLogicBranch entities store a True value.
* OnAllFalse - Fired when all CLogicBranch entities store a False value.
* OnMixed    - Fired when the CLogicBranch entites are neither all True or all False.


'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/logicentities.cpp /game/server/logicentities.cpp]'''
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/logicentities.cpp /game/server/logicentities.cpp]'''

Revision as of 16:44, 10 July 2022

Overview

Stores a list of CLogicBranch entities and fires outputs when any one of them changes, or through the Test input. Which output is fired depends on the values of every CLogicBranch stored:

  • OnAllTrue - Fired when all CLogicBranch entities store a True value.
  • OnAllFalse - Fired when all CLogicBranch entities store a False value.
  • OnMixed - Fired when the CLogicBranch entites are neither all True or all False.

Source location : /game/server/logicentities.cpp

Linked Entity : logic_branch_listener

Class Structure

Entity DataMaps

CLogicBranchList
Name Type Description
InputTest
Input_OnLogicBranchChanged
Input_OnLogicBranchRemoved
m_LogicBranchList
m_OnAllFalse
m_OnAllTrue
m_OnMixed
m_eLastState
m_nLogicBranchNames[0]
m_nLogicBranchNames[10]
m_nLogicBranchNames[11]
m_nLogicBranchNames[12]
m_nLogicBranchNames[13]
m_nLogicBranchNames[14]
m_nLogicBranchNames[15]
m_nLogicBranchNames[1]
m_nLogicBranchNames[2]
m_nLogicBranchNames[3]
m_nLogicBranchNames[4]
m_nLogicBranchNames[5]
m_nLogicBranchNames[6]
m_nLogicBranchNames[7]
m_nLogicBranchNames[8]
m_nLogicBranchNames[9]