diff options
Diffstat (limited to 'src/newgrf_object.cpp')
-rw-r--r-- | src/newgrf_object.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/newgrf_object.cpp b/src/newgrf_object.cpp index 2fe37db8e..3fca86dda 100644 --- a/src/newgrf_object.cpp +++ b/src/newgrf_object.cpp @@ -529,3 +529,13 @@ void TriggerObjectAnimation(const Object *o, ObjectAnimationTrigger trigger, con TriggerObjectTileAnimation(o, tile, trigger, spec); } } + +/** + * Resolve an object's spec and such so we can get a variable. + * @param ro The resolver object to fill. + * @param index The object tile to get the data from. + */ +void GetObjectResolver(ResolverObject *ro, uint index) +{ + NewObjectResolver(ro, ObjectSpec::GetByTile(index), Object::GetByTile(index), index); +} |