text: /*
   * This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
   */
  
  #line 2 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  
  #include "StdH.h"
  #include <Engine/Base/Timer.h>
  
  inline BOOL IsNull(CEntityPointer &pen)	{ return pen.ep_pen == NULL; }
  inline BOOL NotNull(CEntityPointer &pen)	{ return pen.ep_pen != NULL; }
  
  #include <ColorContoller.h>
  #include <ColorContoller_tables.h>
  void CColorController::SetDefaultProperties(void) {
  	m_cctType = CCT_COLORANDALPHA ;
  	m_strName = "";
  	m_colGoal = (C_WHITE  | CT_OPAQUE );
  	m_fFadeInTime = 1200.0f;
  	m_fFadeOutTime = 1200.0f;
  	m_penTarget01 = NULL;
  	m_penTarget02 = NULL;
  	m_penTarget03 = NULL;
  	m_penTarget04 = NULL;
  	m_penTarget05 = NULL;
  	m_penTarget06 = NULL;
  	m_penTarget07 = NULL;
  	m_penTarget08 = NULL;
  	m_penTarget09 = NULL;
  	m_penTarget10 = NULL;
  	m_penTarget11 = NULL;
  	m_penTarget12 = NULL;
  	m_penTarget13 = NULL;
  	m_penTarget14 = NULL;
  	m_penTarget15 = NULL;
  	m_penTarget16 = NULL;
  	m_penTarget17 = NULL;
  	m_penTarget18 = NULL;
  	m_penTarget19 = NULL;
  	m_penTarget20 = NULL;
  	CRationalEntity::SetDefaultProperties();
  }
  
  #line 88 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  BOOL CColorController::IsTargetValid(SLONG slPropertyOffset,CEntity * penTarget) 
  #line 89 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 90 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(penTarget  == NULL ){return FALSE ;}
  #line 92 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ULONG  ulFirst  , ulLast ;
  #line 95 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ulFirst  = offsetof  (CColorController  , m_penTarget01 );
  #line 96 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ulLast  = offsetof  (CColorController  , m_penTarget10 );
  #line 97 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(slPropertyOffset  >= ulFirst  && slPropertyOffset  <= ulLast )
  #line 98 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 99 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  return IsDerivedFromClass  (penTarget  , & CModelHolder3_DLLClass ) 
  #line 100 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  || IsDerivedFromClass  (penTarget  , & CModelHolder2_DLLClass ) 
  #line 101 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  || IsDerivedFromClass  (penTarget  , & CLight_DLLClass );
  #line 102 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 103 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  return CEntity  :: IsTargetValid  (slPropertyOffset  , penTarget );
  #line 104 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  
  #line 106 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  COLOR CColorController::GetColor(CEntityPointer pen) 
  #line 107 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 108 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(IsNull  (pen )){return C_BLACK ;}
  #line 110 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(IsDerivedFromClass  (pen  , & CModelHolder3_DLLClass ))
  #line 111 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 112 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  return ((CModelHolder3  *) (CEntity  *) pen ) -> m_colModelColor ;
  #line 113 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 114 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  else if(IsDerivedFromClass  (pen  , & CModelHolder2_DLLClass ))
  #line 115 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 116 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  return ((CModelHolder2  *) (CEntity  *) pen ) -> m_colModelColor ;
  #line 117 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 118 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  else if(IsDerivedFromClass  (pen  , & CLight_DLLClass ))
  #line 119 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 120 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  return ((CLight  *) (CEntity  *) pen ) -> m_colColor ;
  #line 121 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 122 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  return C_WHITE  | CT_OPAQUE ;
  #line 123 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  
  #line 124 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  void CColorController::SetColor(CEntityPointer pen,COLOR color) 
  #line 125 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 126 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(IsNull  (pen )){return ;}
  #line 128 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(IsDerivedFromClass  (pen  , & CModelHolder3_DLLClass ))
  #line 129 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 130 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ((CModelHolder3  *) (CEntity  *) pen ) -> SetModelColor  (color );
  #line 131 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 132 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  else if(IsDerivedFromClass  (pen  , & CModelHolder2_DLLClass ))
  #line 133 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 134 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ((CModelHolder2  *) (CEntity  *) pen ) -> SetModelColor  (color );
  #line 135 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 136 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  else if(IsDerivedFromClass  (pen  , & CLight_DLLClass ))
  #line 137 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 138 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ((CLight  *) (CEntity  *) pen ) -> m_lsLightSource  . ls_colColor  = color ;
  #line 139 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 140 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  
  #line 142 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  void CColorController::FillTargetOriginalColor() 
  #line 143 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 144 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget01 )){m_colTarget01  = GetColor  (m_penTarget01 );}
  #line 145 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget02 )){m_colTarget02  = GetColor  (m_penTarget02 );}
  #line 146 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget03 )){m_colTarget03  = GetColor  (m_penTarget03 );}
  #line 147 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget04 )){m_colTarget04  = GetColor  (m_penTarget04 );}
  #line 148 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget05 )){m_colTarget05  = GetColor  (m_penTarget05 );}
  #line 149 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget06 )){m_colTarget06  = GetColor  (m_penTarget06 );}
  #line 150 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget07 )){m_colTarget07  = GetColor  (m_penTarget07 );}
  #line 151 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget08 )){m_colTarget08  = GetColor  (m_penTarget08 );}
  #line 152 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget09 )){m_colTarget09  = GetColor  (m_penTarget09 );}
  #line 153 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget10 )){m_colTarget10  = GetColor  (m_penTarget10 );}
  #line 154 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget11 )){m_colTarget11  = GetColor  (m_penTarget11 );}
  #line 155 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget12 )){m_colTarget12  = GetColor  (m_penTarget12 );}
  #line 156 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget13 )){m_colTarget13  = GetColor  (m_penTarget13 );}
  #line 157 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget14 )){m_colTarget14  = GetColor  (m_penTarget14 );}
  #line 158 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget15 )){m_colTarget15  = GetColor  (m_penTarget15 );}
  #line 159 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget16 )){m_colTarget16  = GetColor  (m_penTarget16 );}
  #line 160 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget17 )){m_colTarget17  = GetColor  (m_penTarget17 );}
  #line 161 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget18 )){m_colTarget18  = GetColor  (m_penTarget18 );}
  #line 162 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget19 )){m_colTarget19  = GetColor  (m_penTarget19 );}
  #line 163 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget20 )){m_colTarget20  = GetColor  (m_penTarget20 );}
  #line 164 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  
  #line 165 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  FLOAT CColorController::GetRatio() 
  #line 166 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 167 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(m_bIsFadeIn ){return Clamp  (1.0f - m_fLeftFadeTime  / m_fAllFadeTime  , 0.0f , 1.0f);}
  #line 168 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  else {return Clamp  (m_fLeftFadeTime  / m_fAllFadeTime  , 0.0f , 1.0f);}
  #line 169 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  
  #line 170 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  void CColorController::ColorProcess(CEntityPointer pen,COLOR colOriginal,FLOAT fRatio) 
  #line 171 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 172 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(IsNull  (pen )){return ;}
  #line 174 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  COLOR color ;
  #line 175 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(m_cctType  == CCT_COLORANDALPHA  || m_cctType  == CCT_DAYNIGHTCOLOR )
  #line 176 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 177 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  color  = LerpColorInline  (colOriginal  , m_colGoal  , fRatio );
  #line 178 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 179 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  else if(m_cctType  == CCT_ONLYCOLOR )
  #line 180 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 181 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  UBYTE  ubR0  , ubG0  , ubB0  , ubA0 ;
  #line 182 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  UBYTE  ubR1  , ubG1  , ubB1 ;
  #line 183 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ColorToRGBA  (colOriginal  , ubR0  , ubG0  , ubB0  , ubA0 );
  #line 184 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ColorToRGB  (m_colGoal  , ubR1  , ubG1  , ubB1 );
  #line 185 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ubR0  = Lerp  (ubR0  , ubR1  , fRatio );
  #line 186 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ubG0  = Lerp  (ubG0  , ubG1  , fRatio );
  #line 187 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ubB0  = Lerp  (ubB0  , ubB1  , fRatio );
  #line 188 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  color  = RGBAToColor  (ubR0  , ubG0  , ubB0  , ubA0 );
  #line 189 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 190 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  else if(m_cctType  == CCT_ONLYALPHA )
  #line 191 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 192 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  UBYTE  ubR0  , ubG0  , ubB0  , ubA0 ;
  #line 193 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  UBYTE  ubA1 ;
  #line 194 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ColorToRGBA  (colOriginal  , ubR0  , ubG0  , ubB0  , ubA0 );
  #line 195 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ubA1  = m_colGoal  & CT_OPAQUE ;
  #line 196 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  ubA0  = Lerp  (ubA0  , ubA1  , fRatio );
  #line 197 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  color  = RGBAToColor  (ubR0  , ubG0  , ubB0  , ubA0 );
  #line 198 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 200 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  SetColor  (pen  , color );
  #line 201 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  
  #line 203 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  void CColorController::DayNightProcess() 
  #line 204 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 205 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  DOUBLE  tmOffset  = GAMETIME_ONEDAY_SECOND  - GAMETIME_MORNING_SECOND ;
  #line 206 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  DOUBLE  dGWTSecondFromMorning  = g_fGWTime  + tmOffset ;
  #line 208 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(dGWTSecondFromMorning  > GAMETIME_ONEDAY_SECOND )
  #line 209 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 210 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  dGWTSecondFromMorning  -= GAMETIME_ONEDAY_SECOND  * (INDEX) (dGWTSecondFromMorning  / GAMETIME_ONEDAY_SECOND );
  #line 211 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 215 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  FLOAT fRatio  = 1.0f;
  #line 216 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(dGWTSecondFromMorning  < GAMETIME_NOONDAY_SECOND )
  #line 217 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 218 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  fRatio  = ClampUp  (dGWTSecondFromMorning  / (DOUBLE ) m_fFadeOutTime  , 1.0);
  #line 219 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 221 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  else 
  #line 222 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 223 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  fRatio  = 1.0f - ClampUp  ((dGWTSecondFromMorning  - GAMETIME_NOONDAY_SECOND ) / (DOUBLE ) m_fFadeInTime  , 1.0);
  #line 224 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 225 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget01 )){ColorProcess  (m_penTarget01  , m_colTarget01  , fRatio );}
  #line 226 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget02 )){ColorProcess  (m_penTarget02  , m_colTarget02  , fRatio );}
  #line 227 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget03 )){ColorProcess  (m_penTarget03  , m_colTarget03  , fRatio );}
  #line 228 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget04 )){ColorProcess  (m_penTarget04  , m_colTarget04  , fRatio );}
  #line 229 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget05 )){ColorProcess  (m_penTarget05  , m_colTarget05  , fRatio );}
  #line 230 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget06 )){ColorProcess  (m_penTarget06  , m_colTarget06  , fRatio );}
  #line 231 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget07 )){ColorProcess  (m_penTarget07  , m_colTarget07  , fRatio );}
  #line 232 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget08 )){ColorProcess  (m_penTarget08  , m_colTarget08  , fRatio );}
  #line 233 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget09 )){ColorProcess  (m_penTarget09  , m_colTarget09  , fRatio );}
  #line 234 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget10 )){ColorProcess  (m_penTarget10  , m_colTarget10  , fRatio );}
  #line 235 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget11 )){ColorProcess  (m_penTarget11  , m_colTarget11  , fRatio );}
  #line 236 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget12 )){ColorProcess  (m_penTarget12  , m_colTarget12  , fRatio );}
  #line 237 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget13 )){ColorProcess  (m_penTarget13  , m_colTarget13  , fRatio );}
  #line 238 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget14 )){ColorProcess  (m_penTarget14  , m_colTarget14  , fRatio );}
  #line 239 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget15 )){ColorProcess  (m_penTarget15  , m_colTarget15  , fRatio );}
  #line 240 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget16 )){ColorProcess  (m_penTarget16  , m_colTarget16  , fRatio );}
  #line 241 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget17 )){ColorProcess  (m_penTarget17  , m_colTarget17  , fRatio );}
  #line 242 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget18 )){ColorProcess  (m_penTarget18  , m_colTarget18  , fRatio );}
  #line 243 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget19 )){ColorProcess  (m_penTarget19  , m_colTarget19  , fRatio );}
  #line 244 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget20 )){ColorProcess  (m_penTarget20  , m_colTarget20  , fRatio );}
  #line 245 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  BOOL CColorController::
  #line 248 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  Main(const CEntityEvent &__eeInput) {
  #undef STATE_CURRENT
  #define STATE_CURRENT STATE_CColorController_Main
  	ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CColorController::Main expects 'EVoid' as input!");	const EVoid &e = (const EVoid &)__eeInput;
  #line 252 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  InitAsEditorModel  ();
  #line 254 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  SetPhysicsFlags  (EPF_MODEL_IMMATERIAL );
  #line 255 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  SetCollisionFlags  (ECF_IMMATERIAL );
  #line 258 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  SetModel  (MODEL_CONTROLLER );
  #line 259 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  SetModelMainTexture  (TEXTURE_CONTROLLER );
  #line 261 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  m_fFadeInTime  = ClampDn  (m_fFadeInTime  , 0.0f);
  #line 262 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  m_fFadeOutTime  = ClampDn  (m_fFadeOutTime  , 0.0f);
  #line 263 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(m_fFadeInTime  <= 0){m_fFadeInTime  = 0.000001f;}
  #line 264 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(m_fFadeOutTime  <= 0){m_fFadeOutTime  = 0.000001f;}
  #line 266 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  m_bIsFadeIn  = TRUE ;
  #line 267 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  FillTargetOriginalColor  ();
  #line 269 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(m_cctType  == CCT_DAYNIGHTCOLOR )
  #line 270 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 271 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  DayNightProcess  ();
  #line 272 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  Jump(STATE_CURRENT, STATE_CColorController_DyaNightLoop, TRUE, EVoid());return TRUE;
  #line 273 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }
  #line 274 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  else 
  #line 275 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  #line 276 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  Jump(STATE_CURRENT, STATE_CColorController_MainLoop, TRUE, EVoid());return TRUE;
  #line 277 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  } ASSERT(FALSE); return TRUE;};BOOL CColorController::
  #line 280 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  Fade(const CEntityEvent &__eeInput) {
  #undef STATE_CURRENT
  #define STATE_CURRENT STATE_CColorController_Fade
  	ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CColorController::Fade expects 'EVoid' as input!");	const EVoid &e = (const EVoid &)__eeInput;
  #line 282 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  m_fPrevGWTime  = g_fGWTime ;
  #line 283 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  Jump(STATE_CURRENT,0x02640003, FALSE, EInternal());return TRUE;}BOOL CColorController::H0x02640003_Fade_03(const CEntityEvent &__eeInput)
  #line 284 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x02640003
  if(!(m_fLeftFadeTime  >= 0.0f)){ Jump(STATE_CURRENT,0x02640004, FALSE, EInternal());return TRUE;}
  #line 285 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  m_fLeftFadeTime  -= g_fGWTime  - m_fPrevGWTime ;
  #line 286 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  m_fPrevGWTime  = g_fGWTime ;
  #line 288 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  FLOAT fRatio  = GetRatio  ();
  #line 290 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget01 )){ColorProcess  (m_penTarget01  , m_colTarget01  , fRatio );}
  #line 291 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget02 )){ColorProcess  (m_penTarget02  , m_colTarget02  , fRatio );}
  #line 292 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget03 )){ColorProcess  (m_penTarget03  , m_colTarget03  , fRatio );}
  #line 293 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget04 )){ColorProcess  (m_penTarget04  , m_colTarget04  , fRatio );}
  #line 294 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget05 )){ColorProcess  (m_penTarget05  , m_colTarget05  , fRatio );}
  #line 295 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget06 )){ColorProcess  (m_penTarget06  , m_colTarget06  , fRatio );}
  #line 296 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget07 )){ColorProcess  (m_penTarget07  , m_colTarget07  , fRatio );}
  #line 297 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget08 )){ColorProcess  (m_penTarget08  , m_colTarget08  , fRatio );}
  #line 298 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget09 )){ColorProcess  (m_penTarget09  , m_colTarget09  , fRatio );}
  #line 299 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget10 )){ColorProcess  (m_penTarget10  , m_colTarget10  , fRatio );}
  #line 300 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget11 )){ColorProcess  (m_penTarget11  , m_colTarget11  , fRatio );}
  #line 301 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget12 )){ColorProcess  (m_penTarget12  , m_colTarget12  , fRatio );}
  #line 302 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget13 )){ColorProcess  (m_penTarget13  , m_colTarget13  , fRatio );}
  #line 303 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget14 )){ColorProcess  (m_penTarget14  , m_colTarget14  , fRatio );}
  #line 304 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget15 )){ColorProcess  (m_penTarget15  , m_colTarget15  , fRatio );}
  #line 305 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget16 )){ColorProcess  (m_penTarget16  , m_colTarget16  , fRatio );}
  #line 306 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget17 )){ColorProcess  (m_penTarget17  , m_colTarget17  , fRatio );}
  #line 307 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget18 )){ColorProcess  (m_penTarget18  , m_colTarget18  , fRatio );}
  #line 308 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget19 )){ColorProcess  (m_penTarget19  , m_colTarget19  , fRatio );}
  #line 309 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  if(NotNull  (m_penTarget20 )){ColorProcess  (m_penTarget20  , m_colTarget20  , fRatio );}
  #line 311 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  SetTimerAfter(_pTimer  -> TickQuantum );
  Jump(STATE_CURRENT, 0x02640001, FALSE, EBegin());return TRUE;}BOOL CColorController::H0x02640001_Fade_01(const CEntityEvent &__eeInput) {
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x02640001
  switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x02640002, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CColorController::H0x02640002_Fade_02(const CEntityEvent &__eeInput){
  ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x02640002
  ;Jump(STATE_CURRENT,0x02640003, FALSE, EInternal());return TRUE;
  #line 312 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }BOOL CColorController::H0x02640004_Fade_04(const CEntityEvent &__eeInput) {
  ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x02640004
  
  #line 313 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  Jump(STATE_CURRENT, STATE_CColorController_MainLoop, TRUE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};BOOL CColorController::
  #line 315 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  MainLoop(const CEntityEvent &__eeInput) {
  #undef STATE_CURRENT
  #define STATE_CURRENT STATE_CColorController_MainLoop
  	ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CColorController::MainLoop expects 'EVoid' as input!");	const EVoid &e = (const EVoid &)__eeInput;
  #line 317 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  SetTimerAfter(0.2f);
  Jump(STATE_CURRENT, 0x02640006, FALSE, EBegin());return TRUE;}BOOL CColorController::H0x02640006_MainLoop_01(const CEntityEvent &__eeInput) {
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x02640006
  switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x02640007, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CColorController::H0x02640007_MainLoop_02(const CEntityEvent &__eeInput){
  ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x02640007
  ;
  #line 318 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  FillTargetOriginalColor  ();
  #line 319 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  SetTimerAt(THINKTIME_NEVER);
  Jump(STATE_CURRENT, 0x02640008, FALSE, EBegin());return TRUE;}BOOL CColorController::H0x02640008_MainLoop_03(const CEntityEvent &__eeInput) {
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x02640008
  switch(__eeInput.ee_slEvent)
  #line 320 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {case(EVENTCODE_EBegin):
  #line 322 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {const EBegin&e= (EBegin&)__eeInput;
  
  #line 323 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  return TRUE;
  #line 324 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }ASSERT(FALSE);break;case(EVENTCODE_EActivate):
  #line 326 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {const EActivate&e= (EActivate&)__eeInput;
  
  #line 327 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  m_bIsFadeIn  = TRUE ;
  #line 328 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  m_fLeftFadeTime  = m_fAllFadeTime  = m_fFadeInTime ;
  #line 330 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  Jump(STATE_CURRENT, STATE_CColorController_Fade, TRUE, EVoid());return TRUE;
  #line 331 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }ASSERT(FALSE);break;case(EVENTCODE_EDeactivate):
  #line 333 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {const EDeactivate&e= (EDeactivate&)__eeInput;
  
  #line 334 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  m_bIsFadeIn  = FALSE ;
  #line 335 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  m_fLeftFadeTime  = m_fAllFadeTime  = m_fFadeOutTime ;
  #line 337 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  Jump(STATE_CURRENT, STATE_CColorController_Fade, TRUE, EVoid());return TRUE;
  #line 338 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }ASSERT(FALSE);break;default: return FALSE; break;
  #line 339 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }return TRUE;}BOOL CColorController::H0x02640009_MainLoop_04(const CEntityEvent &__eeInput){
  ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x02640009
  ; ASSERT(FALSE); return TRUE;};BOOL CColorController::
  #line 342 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  DyaNightLoop(const CEntityEvent &__eeInput) {
  #undef STATE_CURRENT
  #define STATE_CURRENT STATE_CColorController_DyaNightLoop
  	ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CColorController::DyaNightLoop expects 'EVoid' as input!");	const EVoid &e = (const EVoid &)__eeInput;
  #line 344 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  SetTimerAfter(0.2f);
  Jump(STATE_CURRENT, 0x0264000b, FALSE, EBegin());return TRUE;}BOOL CColorController::H0x0264000b_DyaNightLoop_01(const CEntityEvent &__eeInput) {
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x0264000b
  switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x0264000c, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CColorController::H0x0264000c_DyaNightLoop_02(const CEntityEvent &__eeInput){
  ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x0264000c
  ;
  #line 345 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  FillTargetOriginalColor  ();
  #line 346 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  Jump(STATE_CURRENT,0x0264000f, FALSE, EInternal());return TRUE;}BOOL CColorController::H0x0264000f_DyaNightLoop_05(const CEntityEvent &__eeInput)
  #line 347 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  {
  ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x0264000f
  if(!(TRUE )){ Jump(STATE_CURRENT,0x02640010, FALSE, EInternal());return TRUE;}
  #line 348 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  SetTimerAfter(0.5f * FRnd  () + 0.5f);
  Jump(STATE_CURRENT, 0x0264000d, FALSE, EBegin());return TRUE;}BOOL CColorController::H0x0264000d_DyaNightLoop_03(const CEntityEvent &__eeInput) {
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x0264000d
  switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x0264000e, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CColorController::H0x0264000e_DyaNightLoop_04(const CEntityEvent &__eeInput){
  ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x0264000e
  ;
  #line 349 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  DayNightProcess  ();Jump(STATE_CURRENT,0x0264000f, FALSE, EInternal());return TRUE;
  #line 350 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/ColorContoller.es"
  }BOOL CColorController::H0x02640010_DyaNightLoop_06(const CEntityEvent &__eeInput) {
  ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
  #undef STATE_CURRENT
  #define STATE_CURRENT 0x02640010
   ASSERT(FALSE); return TRUE;};