Freeciv-3.3
Loading...
Searching...
No Matches
Functions
api_server_counters.c File Reference
#include "fciconv.h"
#include "city.h"
#include "counters.h"
#include "name_translation.h"
#include "luascript.h"
#include "cityturn.h"
#include "api_server_counters.h"

Go to the source code of this file.

Functions

void api_counter_increase (lua_State *L, Counter *c, City *city)
 
void api_counter_zero (lua_State *L, Counter *c, City *city)
 

Function Documentation

◆ api_counter_increase()

void api_counter_increase ( lua_State L,
Counter c,
City city 
)

Increase value of the given counter for given city.

Definition at line 38 of file api_server_counters.c.

Referenced by tolua_server_Counter_increase00().

◆ api_counter_zero()

void api_counter_zero ( lua_State L,
Counter c,
City city 
)

Reset value of the given counter for given city.

Definition at line 55 of file api_server_counters.c.

Referenced by tolua_server_Counter_zero00().