(svn r20673) -Codechange: add support for inspecting objects

This commit is contained in:
rubidium
2010-08-28 19:48:46 +00:00
parent b8b33b6cb4
commit 8425361b58
4 changed files with 65 additions and 1 deletions

View File

@@ -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);
}