make ClientPermissions a static table
Registering the enum is not possible, explained in the pull request #30
This commit is contained in:
@@ -34,7 +34,22 @@ defaultLib["Hull"] = CreateStatic("Hull")
|
||||
defaultLib["InvSlotType"] = CreateStatic("InvSlotType")
|
||||
defaultLib["Gap"] = CreateStatic("Gap")
|
||||
defaultLib["ContentPackage"] = CreateStatic("ContentPackage")
|
||||
defaultLib["ClientPermissions"] = CreateStatic("Networking.ClientPermissions")
|
||||
defaultLib["ClientPermissions"] = {
|
||||
None = 0x0,
|
||||
ManageRound = 0x1,
|
||||
Kick = 0x2,
|
||||
Ban = 0x4,
|
||||
Unban = 0x8,
|
||||
SelectSub = 0x10,
|
||||
SelectMode = 0x20,
|
||||
ManageCampaign = 0x40,
|
||||
ConsoleCommands = 0x80,
|
||||
ServerLog = 0x100,
|
||||
ManageSettings = 0x200,
|
||||
ManagePermissions = 0x400,
|
||||
KarmaImmunity = 0x800,
|
||||
All = 0xFFF
|
||||
}
|
||||
defaultLib["Signal"] = CreateStatic("Items.Components.Signal")
|
||||
defaultLib["DeliveryMethod"] = CreateStatic("Networking.DeliveryMethod")
|
||||
defaultLib["ClientPacketHeader"] = CreateStatic("Networking.ClientPacketHeader")
|
||||
|
||||
Reference in New Issue
Block a user