9 #include "GDCore/Extensions/Builtin/SpriteExtension/SpriteAnimationList.h"
10 #include "GDCore/Project/Object.h"
13 class InitialInstance;
16 class SerializerElement;
17 class PropertyDescriptor;
40 std::unique_ptr<gd::ObjectConfiguration>
Clone()
const override {
41 return gd::make_unique<SpriteObject>(*
this);
46 std::map<gd::String, gd::PropertyDescriptor> GetProperties()
const override;
49 std::map<gd::String, gd::PropertyDescriptor> GetInitialInstanceProperties(
55 size_t GetAnimationsCount()
const override;
57 const gd::String &GetAnimationName(
size_t index)
const override;
59 bool HasAnimationNamed(
const gd::String &animationName)
const override;
76 updateIfNotVisible = updateIfNotVisible_;
109 bool updateIfNotVisible;
ArbitraryResourceWorker is used so as to inventory resources and sometimes update them.
Definition: ArbitraryResourceWorker.h:44
Represents an instance of an object to be created on a layout start up.
Definition: InitialInstance.h:26
Base class used to represent an object configuration. For example, this can be the animations in a sp...
Definition: ObjectConfiguration.h:38
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:51
A generic container that can represent a value ( containing a string, double, bool or int),...
Definition: SerializerElement.h:37
A list of animations, containing directions with images and collision mask.
Definition: SpriteAnimationList.h:30
Standard sprite object for extensions that implements the standard SpriteExtension (see gd::BuiltinEx...
Definition: SpriteObject.h:36
bool GetUpdateIfNotVisible() const
Check if the object animation should be played even if the object is hidden or far from the camera (f...
Definition: SpriteObject.h:83
std::unique_ptr< gd::ObjectConfiguration > Clone() const override
Definition: SpriteObject.h:40
double GetPreScale()
Return the scale applied to object to evaluate the default dimensions.
Definition: SpriteObject.h:88
void SetPreScale(double preScale_)
Set the scale applied to object to evaluate the default dimensions.
Definition: SpriteObject.h:95
void SetUpdateIfNotVisible(bool updateIfNotVisible_)
Set if the object animation should be played even if the object is hidden or far from the camera.
Definition: SpriteObject.h:75
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24