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

Function StubGetObjectCallback

src/newgrf_object.cpp:535–538  ·  view source on GitHub ↗

* Perform a callback for an object. * @param callback The callback to perform. * @param param1 The first parameter to pass to the NewGRF. * @param param2 The second parameter to pass to the NewGRF. * @param spec The specification of the object / the entry point. * @param o The object to call the callback for. * @param tile The tile the callback is called for. * @return Th

Source from the content-addressed store, hash-verified

533 * @return The result of the callback.
534 */
535uint16_t StubGetObjectCallback(CallbackID callback, uint32_t param1, uint32_t param2, const ObjectSpec *spec, Object *o, TileIndex tile, int)
536{
537 return GetObjectCallback(callback, param1, param2, spec, o, tile);
538}
539
540/** Helper class for animation control. */
541struct ObjectAnimationBase : public AnimationBase<ObjectAnimationBase, ObjectSpec, Object, int, StubGetObjectCallback, TileAnimationFrameAnimationHelper<Object> > {

Callers

nothing calls this directly

Calls 1

GetObjectCallbackFunction · 0.85

Tested by

no test coverage detected