"seed" command
This commit is contained in:
@@ -57,6 +57,9 @@ namespace Barotrauma
|
||||
case "servermsg":
|
||||
GameMain.NetLobbyScreen.ChangeServerMessage(string.Join(" ", commands.Skip(1)));
|
||||
break;
|
||||
case "seed":
|
||||
GameMain.NetLobbyScreen.LevelSeed = string.Join(" ", commands.Skip(1));
|
||||
break;
|
||||
case "gamemode":
|
||||
{
|
||||
int index = -1;
|
||||
@@ -129,6 +132,7 @@ namespace Barotrauma
|
||||
NewMessage(ent.ToString(), Color.Lime);
|
||||
}
|
||||
break;
|
||||
#if DEBUG
|
||||
case "eventdata":
|
||||
ServerEntityEvent ev = GameMain.Server.EntityEventManager.Events[Convert.ToUInt16(commands[1])];
|
||||
if (ev != null)
|
||||
@@ -136,6 +140,7 @@ namespace Barotrauma
|
||||
NewMessage(ev.StackTrace, Color.Lime);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
return false;
|
||||
break;
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace Barotrauma
|
||||
{
|
||||
ServerMessageText = m; lastUpdateID++;
|
||||
}
|
||||
|
||||
|
||||
public List<JobPrefab> JobPreferences
|
||||
{
|
||||
get
|
||||
@@ -145,6 +145,7 @@ namespace Barotrauma
|
||||
{
|
||||
if (levelSeed == value) return;
|
||||
|
||||
lastUpdateID++;
|
||||
levelSeed = value;
|
||||
LocationType.Random(levelSeed); //call to sync up with clients
|
||||
}
|
||||
|
||||
@@ -309,6 +309,7 @@ namespace Barotrauma
|
||||
break;
|
||||
case "kickid":
|
||||
if (GameMain.Server == null || commands.Length < 2) break;
|
||||
|
||||
{
|
||||
int id = 0;
|
||||
int.TryParse(commands[1], out id);
|
||||
@@ -317,6 +318,7 @@ namespace Barotrauma
|
||||
break;
|
||||
case "banid":
|
||||
if (GameMain.Server == null || commands.Length < 2) break;
|
||||
|
||||
{
|
||||
int id = 0;
|
||||
int.TryParse(commands[1], out id);
|
||||
|
||||
@@ -64,7 +64,9 @@ namespace Barotrauma.Networking
|
||||
|
||||
public bool Sent;
|
||||
|
||||
#if DEBUG
|
||||
public string StackTrace;
|
||||
#endif
|
||||
|
||||
private double createTime;
|
||||
public double CreateTime
|
||||
@@ -78,8 +80,10 @@ namespace Barotrauma.Networking
|
||||
serializable = entity;
|
||||
|
||||
createTime = Timing.TotalTime;
|
||||
|
||||
|
||||
#if DEBUG
|
||||
StackTrace = Environment.StackTrace.ToString();
|
||||
#endif
|
||||
}
|
||||
|
||||
public void Write(NetBuffer msg, Client recipient)
|
||||
|
||||
Reference in New Issue
Block a user