mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include "stdafx.h"
|
||||
#include "V8DataModel/PostEffect.h"
|
||||
|
||||
namespace RBX {
|
||||
|
||||
extern const char* const sPostEffect = "PostEffect";
|
||||
|
||||
REFLECTION_BEGIN();
|
||||
static const Reflection::PropDescriptor<PostEffect, bool> prop_enabled("Enabled", category_Data, &PostEffect::getEnabled, &PostEffect::setEnabled);
|
||||
REFLECTION_END();
|
||||
|
||||
bool enabled = false;
|
||||
|
||||
PostEffect::PostEffect(const char* name)
|
||||
: DescribedNonCreatable<PostEffect, Instance, sPostEffect>(name)
|
||||
{
|
||||
setName(sPostEffect);
|
||||
}
|
||||
|
||||
void PostEffect::setEnabled(bool value)
|
||||
{
|
||||
enabled = value;
|
||||
raisePropertyChanged(prop_enabled);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user