static DynamicPropertyCollection() { var handler = new AttributeMemoService <DynamicPropertyCollection> .AttributeHandler(t => t.SetupDynamicProperties()); attrMemoService.RegisterHandler <HasDynamicPropertiesAttribute>(handler, true); }
static UpdatableObject() { var handler = new AttributeMemoService <UpdatableObject> .AttributeHandler( obj => { obj.ManuallyUpdate = true; }); attrMemoService.RegisterHandler <ManualUpdateAttribute>(handler); }
static ResolutionRelativeObject() { attrMemoService.RegisterHandler <ResolutionChangeListener>(t => { ArtemisEngine.DisplayManager.RegisterResolutionChangeListener(t); t.ListeningToResolutionChanges = true; }); }
static Multiform() { attrMemoService.RegisterHandler <ReconstructMultiformAttribute>(m => { m.reconstructable = true; }); }
static PartialEngineAdapter() { var handler = new AttributeMemoService <PartialEngineAdapter> .AttributeHandler(o => o.IsPartial = true); attrMemoService.RegisterHandler <PartialEngineAttribute>(handler); }