mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-20 01:46:21 +00:00
Add Only after PluginSide
This commit is contained in:
3 files changed
+5
-5
No files matched your search
@@ -12,7 +12,7 @@ namespace Reactor.Debugger
|
|||||||
[BepInPlugin(Id)]
|
[BepInPlugin(Id)]
|
||||||
[BepInProcess("Among Us.exe")]
|
[BepInProcess("Among Us.exe")]
|
||||||
[BepInDependency(ReactorPlugin.Id, "^0.2.0")]
|
[BepInDependency(ReactorPlugin.Id, "^0.2.0")]
|
||||||
[ReactorPluginSide(PluginSide.Client)]
|
[ReactorPluginSide(PluginSide.ClientOnly)]
|
||||||
public class DebuggerPlugin : BasePlugin
|
public class DebuggerPlugin : BasePlugin
|
||||||
{
|
{
|
||||||
public const string Id = "gg.reactor.debugger";
|
public const string Id = "gg.reactor.debugger";
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace Reactor
|
|||||||
{
|
{
|
||||||
[BepInPlugin(Id)]
|
[BepInPlugin(Id)]
|
||||||
[BepInProcess("Among Us.exe")]
|
[BepInProcess("Among Us.exe")]
|
||||||
[ReactorPluginSide(PluginSide.Client)]
|
[ReactorPluginSide(PluginSide.ClientOnly)]
|
||||||
public class ReactorPlugin : BasePlugin
|
public class ReactorPlugin : BasePlugin
|
||||||
{
|
{
|
||||||
public const string Id = "gg.reactor.api";
|
public const string Id = "gg.reactor.api";
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace Reactor
|
|||||||
|
|
||||||
public ReactorPluginSideAttribute(PluginSide side)
|
public ReactorPluginSideAttribute(PluginSide side)
|
||||||
{
|
{
|
||||||
if (side == PluginSide.Server)
|
if (side == PluginSide.ServerOnly)
|
||||||
{
|
{
|
||||||
throw new ArgumentException("BepInEx plugin can't be server only!");
|
throw new ArgumentException("BepInEx plugin can't be server only!");
|
||||||
}
|
}
|
||||||
@@ -34,11 +34,11 @@ namespace Reactor
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required only by client
|
/// Required only by client
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Client,
|
ClientOnly,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required only by server
|
/// Required only by server
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Server
|
ServerOnly
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user