(svn r20648) -Codechange: implement the NewGRF override manager for objects

This commit is contained in:
rubidium
2010-08-28 17:30:55 +00:00
parent 34da98f2b1
commit 1ec1f1ef37
6 changed files with 64 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
#include "economy_func.h"
#include "strings_type.h"
#include "object_type.h"
#include "newgrf_commons.h"
/** Various object behaviours. */
enum ObjectFlags {
@@ -39,7 +40,10 @@ void ResetObjects();
/** An object that isn't use for transport, industries or houses. */
struct ObjectSpec {
/* 2 because of the "normal" and "buy" sprite stacks. */
GRFFilePropsBase<2> grf_prop; ///< Properties related the the grf file
StringID name; ///< The name for this object.
uint8 size; ///< The size of this objects; low nibble for X, high nibble for Y.
uint8 build_cost_multiplier; ///< Build cost multiplier per tile.
uint8 clear_cost_multiplier; ///< Clear cost multiplier per tile.