internal static void Postfix(Type baseType, ref Type[] __result) { List <Type> types = __result.ToList(); if (TypeExportManager.Types.Contains(baseType)) { types.AddRange(TypeExportManager.GetTypesOfType(baseType)); } __result = types.ToArray(); }
internal static void AddCustomHotkeys(ref ToolInputCombos __result, char scheme) { foreach (Type toolType in TypeExportManager.GetTypesOfType(typeof(LevelEditorTool))) { LevelEditorTool instance = Activator.CreateInstance(toolType) as LevelEditorTool; if (toolType.HasAttribute <EditorToolAttribute>() && toolType.GetAttribute(out KeyboardShortcutAttribute attribute, false)) { __result.Add(attribute.Get(scheme).ToString(), instance.Info_.Name_); } } }