Skip to content

Commit cbc92d8

Browse files
authored
Allow extensions to specify preprocessor directives (#101)
1 parent 4dca88b commit cbc92d8

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/Extensions/Extension.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Linq;
1+
using System.Collections.Generic;
2+
using System.Linq;
23
using System.Reflection;
34

45
namespace Oxide.Core.Extensions
@@ -101,6 +102,15 @@ public virtual void LoadPluginWatchers(string pluginDirectory)
101102
{
102103
}
103104

105+
/// <summary>
106+
/// Gets the preprocessor directives for this extension
107+
/// </summary>
108+
/// <returns></returns>
109+
public virtual IEnumerable<string> GetPreprocessorDirectives()
110+
{
111+
return Enumerable.Empty<string>();
112+
}
113+
104114
/// <summary>
105115
/// Called after all other extensions have been loaded
106116
/// </summary>

0 commit comments

Comments
 (0)