|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| void | init_world_darkness () |
| void | tick_the_clock () |
Variables | |
| const int | season_timechange [5][HOURS_PER_DAY] |
This file controls weather functions, like ticking the clock and initializing the world darkness.
Definition in file weather.c.
| void init_world_darkness | ( | ) |
| void tick_the_clock | ( | ) |
This performs the basic function of advancing the clock one tick forward. Every 20 ticks, the clock is saved to disk. It is also saved on shutdown. Any time dependant functions should be called from this function, and probably be passed tod as an argument. Please don't modify tod in the dependant function.
| const int season_timechange[5][HOURS_PER_DAY] |
{
{0, 0, 0, 0, 0, -1, -1, -1, -2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 0, 0},
{0, 0, 0, 0, 0, -1, -1, -1, -2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 0},
{0, 0, 0, 0, 0, -1, -1, -1, -2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 0},
{0, 0, 0, 0, -1, -1, -1, -2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 0},
{0, 0, 0, 0, 0, -1, -1, -1, -2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 0}
}
1.7.4