---
name: "CL_Res_Integer"
section: "3"
platform: "linux"
package: "clanlib0-common-dev"
version: "0.4.4-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/CL_Res_Integer"
---

# CL\_Res\_Integer(3)

The Integer resource is used to read integer values from a resource file.

## NAME

CL\_Res\_Integer - The Integer resource is used to read integer values from a resource file.

## DESCRIPTION

CL\_Res\_Integer, CL\_Res\_Integer and CL\_Res\_String helps you with seperating the game code from the constants used in the game.

Using these resource types, you can easily change the text used in the game. Just by changing the resource file, you can make you game speak Danish (or Dutch), or any other language. You can change the constants like weapon damage, movement speed, and so on.

These resources can also be used to apply theme support into your application. By letting each theme become a datafile, you can give the player full control of the visual parts of the game - and without using much work on it yourself.

Inherited from public CL\_ResourceType

## CLASS MEMBERS

- static int **load**(

  ```
  std::string res_id,
  CL_ResourceManager *manager,
  int _default)
  ```

- static int **load**(

  ```
  std::string res_id,
  CL_ResourceManager *manager )
  ```

- **CL\_Res\_Integer**()

  ## MEMBERS WITH DESCRIPTIONS

- static int **load**(

  ```
  std::string res_id,
  CL_ResourceManager *manager,
  int _default)
  ```

  ```
  Description:
  ```

- static int **load**(

  ```
  std::string res_id,
  CL_ResourceManager *manager )
  ```

  ```
  Description:
  ```

- **CL\_Res\_Integer**()

  ```
  Description:
  ```

## SEE ALSO

All ClanLib API classes can be found in **clanlib (3)**.

## AUTHORS

Originally written by Magnus Norddahl \<*mbn@dark.x.dtu.dk*\> and Martin Starch \<*starch@dark.x.dtu.dk*\>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at **http://somewhere.in.the.world.org**).

See **clanlib (3)** to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.
