1#ifndef PIXELPART_EFFECT_RESOURCE_H
2#define PIXELPART_EFFECT_RESOURCE_H
4#include <godot_cpp/classes/resource.hpp>
5#include <godot_cpp/variant/packed_byte_array.hpp>
6#include <pixelpart-runtime/asset/EffectAsset.h>
15class PixelpartEffectResource :
public Resource {
16 GDCLASS(PixelpartEffectResource, Resource)
19 PixelpartEffectResource();
20 virtual ~PixelpartEffectResource();
34 void import(String filepath);
54 void set_data(PackedByteArray bytes);
63 const pixelpart::EffectAsset& get_asset()
const;
66 static void _bind_methods();
71 pixelpart::EffectAsset effectAsset;
void set_data(PackedByteArray bytes)
Set the effect data manually.
Definition PixelpartEffectResource.cpp:47
PackedByteArray get_data() const
Return the effect data.
Definition PixelpartEffectResource.cpp:50
void release()
Release the loaded effect.
Definition PixelpartEffectResource.cpp:42
PackedByteArray data
Effect data as byte array.
Definition PixelpartEffectResource.h:26
void load()
Load the imported effect data.
Definition PixelpartEffectResource.cpp:26