The OpenD Programming Language

ReflectableProperties.RegisterSetters

You can mix this in to get an implementation in child classes. This does setPropertyFromString.

Your original base class, however, must implement its own methods. I recommend doing the initial ones by hand.

For Widget and Event, the library provides Widget.Register and Event.Register that call these for you, so you should rarely need to use these building blocks directly.

interface ReflectableProperties
mixin template RegisterSetters () {}

Meta