* 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. * @param vie
| 433 | * @return The result of the callback. |
| 434 | */ |
| 435 | uint16_t GetObjectCallback(CallbackID callback, uint32_t param1, uint32_t param2, const ObjectSpec *spec, Object *o, TileIndex tile, std::span<int32_t> regs100, uint8_t view) |
| 436 | { |
| 437 | ObjectResolverObject object(spec, o, tile, view, callback, param1, param2); |
| 438 | return object.ResolveCallback(regs100); |
| 439 | } |
| 440 | |
| 441 | /** |
| 442 | * Draw an group of sprites on the map. |
no test coverage detected