parameters: (self, state: c_void_p)
return_statement: return self.api.currentEnvironmentNum(state)
docstring: Gets the current environment index.  EnergyPlus environments are design days, run periods, etc.  This function
          is only expected to be useful in very specialized applications where you control the environment order
          carefully.
  
          :param state: An active EnergyPlus "state" that is returned from a call to `api.state_manager.new_state()`.
          :return: The current environment number.
docstring_summary: Gets the current environment index.  EnergyPlus environments are design days, run periods, etc.  This function
          is only expected to be useful in very specialized applications where you control the environment order
          carefully.
docstring_tokens: Gets the current environment index . EnergyPlus environments are design days run periods etc . This function is only expected to be useful in very specialized applications where you control the environment order carefully .
function: def current_environment_num(self, state: c_void_p) -> int:
          """
          Gets the current environment index.  EnergyPlus environments are design days, run periods, etc.  This function
          is only expected to be useful in very specialized applications where you control the environment order
          carefully.
  
          :param state: An active EnergyPlus "state" that is returned from a call to `api.state_manager.new_state()`.
          :return: The current environment number.
          """
          return self.api.currentEnvironmentNum(state)
function_tokens: def current_environment_num ( self , state : c_void_p ) -> int : return self . api . currentEnvironmentNum ( state )