callback_table.h
author bjarni
Fri, 08 Sep 2006 10:47:39 +0000
changeset 4574 497540b4a75f
parent 2436 177cb6a8339f
child 4828 9e32eafd4657
permissions -rw-r--r--
(svn r6424) -Codechange: [autoreplace] removed a loop though all vehicles from each time the window is redrawn
To do this, the player struct contains an array, that contains the count of each engine type that the player owns
Those arrays are updated each time a vehicle is build or deleted and is calculated on load (it's not saved)
It's possible to access the arrays outside of the autoreplace GUI, so feel free to read from them in other patches as well
/* $Id$ */

#ifndef CALLBACK_TABLE_H
#define CALLBACK_TABLE_H

#include "functions.h"

extern CommandCallback *_callback_table[];
extern const int _callback_table_count;

#endif /* CALLBACK_TABLE_H */