Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
2.0 KiB

  1. class vertexlitgeneric_flashlight_vs11_Static_Index
  2. {
  3. private:
  4. int m_nTEETH;
  5. #ifdef _DEBUG
  6. bool m_bTEETH;
  7. #endif
  8. public:
  9. void SetTEETH( int i )
  10. {
  11. Assert( i >= 0 && i <= 1 );
  12. m_nTEETH = i;
  13. #ifdef _DEBUG
  14. m_bTEETH = true;
  15. #endif
  16. }
  17. void SetTEETH( bool i )
  18. {
  19. m_nTEETH = i ? 1 : 0;
  20. #ifdef _DEBUG
  21. m_bTEETH = true;
  22. #endif
  23. }
  24. public:
  25. vertexlitgeneric_flashlight_vs11_Static_Index()
  26. {
  27. #ifdef _DEBUG
  28. m_bTEETH = false;
  29. #endif // _DEBUG
  30. m_nTEETH = 0;
  31. }
  32. int GetIndex()
  33. {
  34. // Asserts to make sure that we aren't using any skipped combinations.
  35. // Asserts to make sure that we are setting all of the combination vars.
  36. #ifdef _DEBUG
  37. bool bAllStaticVarsDefined = m_bTEETH;
  38. Assert( bAllStaticVarsDefined );
  39. #endif // _DEBUG
  40. return ( 4 * m_nTEETH ) + 0;
  41. }
  42. };
  43. class vertexlitgeneric_flashlight_vs11_Dynamic_Index
  44. {
  45. private:
  46. int m_nDOWATERFOG;
  47. #ifdef _DEBUG
  48. bool m_bDOWATERFOG;
  49. #endif
  50. public:
  51. void SetDOWATERFOG( int i )
  52. {
  53. Assert( i >= 0 && i <= 1 );
  54. m_nDOWATERFOG = i;
  55. #ifdef _DEBUG
  56. m_bDOWATERFOG = true;
  57. #endif
  58. }
  59. void SetDOWATERFOG( bool i )
  60. {
  61. m_nDOWATERFOG = i ? 1 : 0;
  62. #ifdef _DEBUG
  63. m_bDOWATERFOG = true;
  64. #endif
  65. }
  66. private:
  67. int m_nSKINNING;
  68. #ifdef _DEBUG
  69. bool m_bSKINNING;
  70. #endif
  71. public:
  72. void SetSKINNING( int i )
  73. {
  74. Assert( i >= 0 && i <= 1 );
  75. m_nSKINNING = i;
  76. #ifdef _DEBUG
  77. m_bSKINNING = true;
  78. #endif
  79. }
  80. void SetSKINNING( bool i )
  81. {
  82. m_nSKINNING = i ? 1 : 0;
  83. #ifdef _DEBUG
  84. m_bSKINNING = true;
  85. #endif
  86. }
  87. public:
  88. vertexlitgeneric_flashlight_vs11_Dynamic_Index()
  89. {
  90. #ifdef _DEBUG
  91. m_bDOWATERFOG = false;
  92. #endif // _DEBUG
  93. m_nDOWATERFOG = 0;
  94. #ifdef _DEBUG
  95. m_bSKINNING = false;
  96. #endif // _DEBUG
  97. m_nSKINNING = 0;
  98. }
  99. int GetIndex()
  100. {
  101. // Asserts to make sure that we aren't using any skipped combinations.
  102. // Asserts to make sure that we are setting all of the combination vars.
  103. #ifdef _DEBUG
  104. bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bSKINNING;
  105. Assert( bAllDynamicVarsDefined );
  106. #endif // _DEBUG
  107. return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nSKINNING ) + 0;
  108. }
  109. };