-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small improvements to the code (optional update)
- Loading branch information
1 parent
87a016a
commit c7b324c
Showing
6 changed files
with
59 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using SDG.Unturned; | ||
using Steamworks; | ||
using System.Reflection; | ||
|
||
namespace RestoreMonarchy.MoreHomes.Helpers | ||
{ | ||
internal static class ReflectionHelper | ||
{ | ||
private static MethodInfo BarricadeManager_ServerSetBedOwnerInternal = typeof(BarricadeManager).GetMethod("ServerSetBedOwnerInternal", BindingFlags.Static | BindingFlags.NonPublic); | ||
|
||
internal static void ServerSetBedOwnerInternal(InteractableBed interactableBed, byte x, byte y, ushort plant, BarricadeRegion region, CSteamID owner) | ||
{ | ||
BarricadeManager_ServerSetBedOwnerInternal.Invoke(null, new object[] { interactableBed, x, y, plant, region, owner }); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters