Skip to content

Commit

Permalink
Fixed compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
evilfactory committed Dec 14, 2023
1 parent 448e4cd commit 7c890b1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public static Signal CreateSignal(string value, int stepsTaken = 1, Character se
private List<DebugConsole.Command> luaAddedCommand = new List<DebugConsole.Command>();
public IEnumerable<DebugConsole.Command> LuaAddedCommand { get { return luaAddedCommand; } }

public bool IsCustomCommandPermitted(string command)
public bool IsCustomCommandPermitted(Identifier command)
{
DebugConsole.Command[] permitted = new DebugConsole.Command[]
{
Expand All @@ -420,7 +420,7 @@ public bool IsCustomCommandPermitted(string command)

foreach (var consoleCommand in LuaAddedCommand.Concat(permitted.AsEnumerable()))
{
if (consoleCommand.names.Contains(command))
if (consoleCommand.Names.Contains(command))
{
return true;
}
Expand All @@ -433,7 +433,7 @@ public void RemoveCommand(string name)
{
for (var i = 0; i < DebugConsole.Commands.Count; i++)
{
foreach (var cmdname in DebugConsole.Commands[i].names)
foreach (var cmdname in DebugConsole.Commands[i].Names)
{
if (cmdname == name)
{
Expand Down Expand Up @@ -479,9 +479,9 @@ public void LoadGame(string path)
}

#if SERVER
public void LoadCampaign(string path)
public void LoadCampaign(string path, Client client = null)
{
MultiPlayerCampaign.LoadCampaign(path);
MultiPlayerCampaign.LoadCampaign(path, client);
}

public static void SendMessage(string msg, ChatMessageType? messageType = null, Client sender = null, Character character = null)
Expand Down

0 comments on commit 7c890b1

Please sign in to comment.