Team Fortress 2 Source Code as on 22/4/2020
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.

82 lines
1.5 KiB

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