コード例 #1
0
        static DynamicPropertyCollection()
        {
            var handler = new AttributeMemoService <DynamicPropertyCollection>
                          .AttributeHandler(t => t.SetupDynamicProperties());

            attrMemoService.RegisterHandler <HasDynamicPropertiesAttribute>(handler, true);
        }
コード例 #2
0
        static UpdatableObject()
        {
            var handler = new AttributeMemoService <UpdatableObject> .AttributeHandler(
                obj => { obj.ManuallyUpdate = true; });

            attrMemoService.RegisterHandler <ManualUpdateAttribute>(handler);
        }
コード例 #3
0
 static ResolutionRelativeObject()
 {
     attrMemoService.RegisterHandler <ResolutionChangeListener>(t =>
     {
         ArtemisEngine.DisplayManager.RegisterResolutionChangeListener(t);
         t.ListeningToResolutionChanges = true;
     });
 }
コード例 #4
0
 static Multiform()
 {
     attrMemoService.RegisterHandler <ReconstructMultiformAttribute>(m => { m.reconstructable = true; });
 }
コード例 #5
0
        static PartialEngineAdapter()
        {
            var handler = new AttributeMemoService <PartialEngineAdapter> .AttributeHandler(o => o.IsPartial = true);

            attrMemoService.RegisterHandler <PartialEngineAttribute>(handler);
        }