Files
asarium 00b0a80ad9 Call scripting handle destructor when Lua collects garbage
This will automatically call the destructor of a type of Lua calls the
garbage collector for an object of that type. This is the last step
towards fully supporting non-trivial objects in the Lua API and all
previous workarounds have been removed.
2018-11-18 12:43:39 +01:00

28 lines
372 B
C++

#pragma once
#include "scripting/ade_api.h"
#include "particle/particle.h"
namespace scripting {
namespace api {
class particle_h
{
protected:
particle::WeakParticlePtr part;
public:
particle_h();
explicit particle_h(const particle::WeakParticlePtr& part_p);
particle::WeakParticlePtr Get();
bool isValid();
};
DECLARE_ADE_OBJ(l_Particle, particle_h);
}
}