equal
deleted
inserted
replaced
118 byte lifelength; |
118 byte lifelength; |
119 byte flags; |
119 byte flags; |
120 PlayerByte preview_player; |
120 PlayerByte preview_player; |
121 byte preview_wait; |
121 byte preview_wait; |
122 byte player_avail; |
122 byte player_avail; |
123 byte type; ///< type, ie VEH_ROAD, VEH_TRAIN, etc. Same as in vehicle.h |
123 VehicleType type; ///< type, ie VEH_ROAD, VEH_TRAIN, etc. Same as in vehicle.h |
124 }; |
124 }; |
125 |
125 |
126 /** |
126 /** |
127 * EngineInfo.misc_flags is a bitmask, with the following values |
127 * EngineInfo.misc_flags is a bitmask, with the following values |
128 */ |
128 */ |
339 int32 RemoveEngineReplacement(EngineRenewList* erl, EngineID engine, uint32 flags); |
339 int32 RemoveEngineReplacement(EngineRenewList* erl, EngineID engine, uint32 flags); |
340 |
340 |
341 /** When an engine is made buildable or is removed from being buildable, add/remove it from the build/autoreplace lists |
341 /** When an engine is made buildable or is removed from being buildable, add/remove it from the build/autoreplace lists |
342 * @param type The type of engine |
342 * @param type The type of engine |
343 */ |
343 */ |
344 void AddRemoveEngineFromAutoreplaceAndBuildWindows(byte type); |
344 void AddRemoveEngineFromAutoreplaceAndBuildWindows(VehicleType type); |
345 |
345 |
346 /* Engine list manipulators - current implementation is only C wrapper of CBlobT<EngineID> class (helpers.cpp) */ |
346 /* Engine list manipulators - current implementation is only C wrapper of CBlobT<EngineID> class (helpers.cpp) */ |
347 void EngList_Create(EngineList *el); ///< Creates engine list |
347 void EngList_Create(EngineList *el); ///< Creates engine list |
348 void EngList_Destroy(EngineList *el); ///< Deallocate and destroy engine list |
348 void EngList_Destroy(EngineList *el); ///< Deallocate and destroy engine list |
349 uint EngList_Count(const EngineList *el); ///< Returns number of items in the engine list |
349 uint EngList_Count(const EngineList *el); ///< Returns number of items in the engine list |