mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
Some minor changes/additions.
This commit is contained in:
@@ -117,6 +117,12 @@ struct Animation {
|
||||
int loopCount;
|
||||
bool async;
|
||||
std::vector<std::tuple<int, int> > frames;
|
||||
|
||||
float duration(uint8 frame) {
|
||||
assert(frames.size() <= frame);
|
||||
std::tuple<int, int> data = frames.at(frame);
|
||||
return stdext::random_range((long)std::get<0>(data), (long)std::get<1>(data));
|
||||
}
|
||||
};
|
||||
|
||||
class ThingType : public LuaObject
|
||||
|
||||
Reference in New Issue
Block a user