MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetUnloadType

Method SetUnloadType

src/order_base.h:165–165  ·  view source on GitHub ↗

Set how the consist must be unloaded. */

Source from the content-addressed store, hash-verified

163 inline void SetLoadType(OrderLoadType load_type) { SB(this->flags, 4, 3, to_underlying(load_type)); }
164 /** Set how the consist must be unloaded. */
165 inline void SetUnloadType(OrderUnloadType unload_type) { SB(this->flags, 0, 3, to_underlying(unload_type)); }
166 /** Set whether we must stop at stations or not. */
167 inline void SetNonStopType(OrderNonStopFlags non_stop_type) { SB(this->type, 6, 2, non_stop_type.base()); }
168 /** Set where we must stop at the platform. */

Callers 4

CmdModifyOrderFunction · 0.80
InsertOrderMethod · 0.80
AfterLoadGameFunction · 0.80

Calls 2

SBFunction · 0.85
to_underlyingFunction · 0.85

Tested by

no test coverage detected