mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
/* Copyright 2003-2007 ROBLOX Corporation, All Rights Reserved */
|
||||
#pragma once
|
||||
|
||||
#include "V8Tree/Instance.h"
|
||||
#include "Util/AnimationId.h"
|
||||
|
||||
namespace RBX {
|
||||
extern const char *const sAnimation;
|
||||
|
||||
class KeyframeSequence;
|
||||
class Animation
|
||||
: public DescribedCreatable<Animation, Instance, sAnimation>
|
||||
{
|
||||
private:
|
||||
typedef DescribedCreatable<Animation, Instance, sAnimation> Super;
|
||||
ContentId assetId;
|
||||
public:
|
||||
Animation();
|
||||
|
||||
shared_ptr<const KeyframeSequence> getKeyframeSequence() const;
|
||||
|
||||
shared_ptr<const KeyframeSequence> getKeyframeSequence(const Instance* context) const;
|
||||
|
||||
AnimationId getAssetId() const { return assetId; }
|
||||
void setAssetId(AnimationId value);
|
||||
|
||||
bool isEmbeddedAsset() const;
|
||||
|
||||
/*override*/ bool askSetParent(const Instance* instance) const { return true; }
|
||||
/*override*/ int getPersistentDataCost() const
|
||||
{
|
||||
return Super::getPersistentDataCost() + Instance::computeStringCost(getAssetId().toString());
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace
|
||||
Reference in New Issue
Block a user