7 cm( inst, this,
"DVar_Field" ),
16 auto value = dvs->
get<
Type >( this->id );
18 dvs->add_listener(
this, this->
id );
22 template<
class Type >
25 auto dvs = inst->getSystemContainer()->getSystem<
DVarSystem >();
30 template<
class Type >
36 template<
class Type >
39 Type & t_value = *
reinterpret_cast< Type *
>( value );
40 this->Modify( t_value );
43 template<
class Type >
44 void DVar_Field< Type >::OnChanged(
bool real )
48 auto dvs = inst->getSystemContainer()->getSystem< DVarSystem >();
51 auto value = dvs->get< Type >( this->id );
52 this->Modify( value );