CLogicCase: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
== Overview ==
== Overview ==
...
Compares an input value to various stored values or "cases", and then fires an output based on the comparison evaluation. This entity is analogous to a switch in programming.


'''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]'''

Latest revision as of 16:49, 10 July 2022

Overview[edit | edit source]

Compares an input value to various stored values or "cases", and then fires an output based on the comparison evaluation. This entity is analogous to a switch in programming.

Source location : /game/server/logicentities.cpp

Linked Entity : logic_case

Class Structure[edit | edit source]

Entity DataMaps[edit | edit source]

CLogicCase
Name Type Description
InputPickRandom
InputPickRandomShuffle
InputValue
m_OnCase[0]
m_OnCase[10]
m_OnCase[11]
m_OnCase[12]
m_OnCase[13]
m_OnCase[14]
m_OnCase[15]
m_OnCase[1]
m_OnCase[2]
m_OnCase[3]
m_OnCase[4]
m_OnCase[5]
m_OnCase[6]
m_OnCase[7]
m_OnCase[8]
m_OnCase[9]
m_OnDefault
m_nCase[0]
m_nCase[10]
m_nCase[11]
m_nCase[12]
m_nCase[13]
m_nCase[14]
m_nCase[15]
m_nCase[1]
m_nCase[2]
m_nCase[3]
m_nCase[4]
m_nCase[5]
m_nCase[6]
m_nCase[7]
m_nCase[8]
m_nCase[9]
m_nLastShuffleCase
m_nShuffleCases
m_uchShuffleCaseMap