12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- using System;
- namespace BepInEx
- {
-
-
-
- [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
- public class BepInPlugin : Attribute
- {
-
-
-
- public string GUID { get; protected set; }
-
-
-
-
- public string Name { get; protected set; }
-
-
-
-
- public Version Version { get; protected set; }
-
-
-
-
- public BepInPlugin(string GUID, string Name, string Version)
- {
- this.GUID = GUID;
- this.Name = Name;
- this.Version = new Version(Version);
- }
- }
-
-
-
- [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
- public class BepInDependency : Attribute
- {
- public enum DependencyFlags
- {
-
-
-
- HardDependency = 1,
-
-
-
- SoftDependency = 2,
- }
-
-
-
- public string DependencyGUID { get; protected set; }
-
-
-
- public DependencyFlags Flags { get; protected set; }
-
-
-
- public BepInDependency(string DependencyGUID, DependencyFlags Flags = DependencyFlags.HardDependency)
- {
- this.DependencyGUID = DependencyGUID;
- this.Flags = Flags;
- }
- }
-
-
-
- [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
- public class BepInProcess : Attribute
- {
-
-
-
- public string ProcessName { get; protected set; }
-
-
- public BepInProcess(string ProcessName)
- {
- this.ProcessName = ProcessName;
- }
- }
- }
|