(svn r15050) -Codechange: Use one absolute SpriteID with offsets to draw track fences.

This commit is contained in:
2009-01-13 08:39:25 +00:00
parent 37500a13f6
commit 56b91b582e
2 changed files with 61 additions and 44 deletions

View File

@@ -23,6 +23,20 @@ enum RailTypeFlags {
};
DECLARE_ENUM_AS_BIT_SET(RailTypeFlags);
/** Offsets from base sprite for fence sprites. These are in the order of
* the sprites in the original data files.
*/
enum RailFenceOffset {
RFO_FLAT_X,
RFO_FLAT_Y,
RFO_FLAT_VERT,
RFO_FLAT_HORZ,
RFO_SLOPE_SW,
RFO_SLOPE_SE,
RFO_SLOPE_NE,
RFO_SLOPE_NW,
};
/** This struct contains all the info that is needed to draw and construct tracks.
*/
struct RailtypeInfo {