* Draw an object on the map. * @param ti Information about the tile to draw on. * @param spec Object spec to draw. */
| 470 | * @param spec Object spec to draw. |
| 471 | */ |
| 472 | void DrawNewObjectTile(TileInfo *ti, const ObjectSpec *spec) |
| 473 | { |
| 474 | Object *o = Object::GetByTile(ti->tile); |
| 475 | ObjectResolverObject object(spec, o, ti->tile); |
| 476 | |
| 477 | const auto *group = object.Resolve<TileLayoutSpriteGroup>(); |
| 478 | if (group == nullptr) return; |
| 479 | |
| 480 | auto processor = group->ProcessRegisters(object, nullptr); |
| 481 | auto dts = processor.GetLayout(); |
| 482 | DrawTileLayout(ti, dts, spec); |
| 483 | } |
| 484 | |
| 485 | /** |
| 486 | * Draw representation of an object (tile) for GUI purposes. |
no test coverage detected