static EntityDrawer()
 {
     DEFAULT_INSTANCE_CREATORS =
         ReflectionTools.GetAllImplementingInstancesOfInterface <IDefaultInstanceCreator>().ToArray();
     TYPE_DRAWERS      = ReflectionTools.GetAllImplementingInstancesOfInterface <ITypeDrawer>().ToArray();
     COMPONENT_DRAWERS = ReflectionTools.GetAllImplementingInstancesOfInterface <IComponentDrawer>().ToArray();
 }
Beispiel #2
0
        static EntityDrawer()
        {
            DEFAULT_INSTANCE_CREATORS =
                ReflectionTools.GetAllImplementingInstancesOfInterface <IDefaultInstanceCreator>().ToArray();
            TYPE_DRAWERS      = ReflectionTools.GetAllImplementingInstancesOfInterface <ITypeDrawer>().ToArray();
            COMPONENT_DRAWERS = ReflectionTools.GetAllImplementingInstancesOfInterface <IComponentDrawer>().ToArray();

            EditorSceneManager.activeSceneChangedInEditMode += OnActiveSceneChanged;
        }
Beispiel #3
0
        static EntitasReduxPreferences()
        {
            KEYWORDS = new[]
            {
                "Entitas",
                "Redux",
                "Entitas Redux",
                "EntitasRedux",
                "ECS",
                "Entity"
            };

            PREFERENCES_DRAWERS =
                ReflectionTools.GetAllImplementingInstancesOfInterface <IAbstractUserPreferencesDrawer>()
                .OrderBy(x => x.Order)
                .ToArray();

            foreach (var drawer in PREFERENCES_DRAWERS)
            {
                drawer.Initialize();
            }
        }
Beispiel #4
0
 static GenesisSettingsInspector()
 {
     PREFERENCES_DRAWERS = ReflectionTools.GetAllImplementingInstancesOfInterface <ISettingsDrawer>()
                           .OrderBy(x => x.Order)
                           .ToArray();
 }