mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
fahhh
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "Util/ContentId.h"
|
||||
|
||||
namespace RBX {
|
||||
|
||||
class AnimationId : public ContentId
|
||||
{
|
||||
public:
|
||||
AnimationId(const ContentId& id):ContentId(id) {}
|
||||
AnimationId(const char* id):ContentId(id) {}
|
||||
AnimationId(const std::string& id):ContentId(id) {}
|
||||
AnimationId() {}
|
||||
|
||||
bool isActive() const { return toString().substr(0, 9)=="active://"; }
|
||||
|
||||
static AnimationId nullAnimation() {
|
||||
static AnimationId t; // note - the name in the contentId will get a boost call_once
|
||||
return t;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user