Freeciv-3.3: /fast/freeciv/nightly/main/common/scriptcore/api_game_specenum.c File Reference

Freeciv-3.3

Loading...
Searching...
No Matches
Functions
api_game_specenum.c File Reference
`#include <string.h>`
`#include "lua.h"`
`#include "lualib.h"`
`#include "lauxlib.h"`
`#include "support.h"`
`#include "events.h"`
`#include "fc_types.h"`
`#include "api_specenum.h"`
`#include "api_game_specenum.h"`

Go to the source code of this file.

## Functions

| API_SPECENUM_DEFINE_INDEX_REV (tech_cost_style)
| API_SPECENUM_DEFINE_INDEX_REV (tech_leakage_style)
int | api_game_specenum_open (lua_State *L)

## Function Documentation

## ◆ api_game_specenum_open()

int api_game_specenum_open | ( | lua_State * | L | ) |

Load the specenum modules into Lua state L.

Definition at line 48 of file api_game_specenum.c.

Referenced by script_client_init(), and script_server_init().

## ◆ API_SPECENUM_DEFINE_INDEX_REV() [1/2]

API_SPECENUM_DEFINE_INDEX_REV | ( | tech_cost_style |  | ) |

Define the __index function for each exported specenum type.

## ◆ API_SPECENUM_DEFINE_INDEX_REV() [2/2]

API_SPECENUM_DEFINE_INDEX_REV | ( | tech_leakage_style |  | ) |