Switch to Barotrauma & too many misc changes to remember
This commit is contained in:
@@ -4,7 +4,7 @@ using Lidgren.Network;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Subsurface.Networking
|
||||
namespace Barotrauma.Networking
|
||||
{
|
||||
class GameClient : NetworkMember
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using Lidgren.Network;
|
||||
using Microsoft.Xna.Framework;
|
||||
using RestSharp;
|
||||
|
||||
namespace Subsurface.Networking
|
||||
namespace Barotrauma.Networking
|
||||
{
|
||||
class GameServer : NetworkMember
|
||||
{
|
||||
@@ -1002,6 +1002,15 @@ namespace Subsurface.Networking
|
||||
}
|
||||
}
|
||||
|
||||
//share the rest of the jobs according to the ''commonness'' of the job
|
||||
float totalCommonness = 0.0f;
|
||||
for (int i = 0; i < JobPrefab.List.Count; i++)
|
||||
{
|
||||
if (JobPrefab.List[i].AllowAlways || JobPrefab.List[i].MaxNumber == 0) continue;
|
||||
|
||||
totalCommonness += JobPrefab.List[i].Commonness;
|
||||
}
|
||||
|
||||
for (int preferenceIndex = 0; preferenceIndex < 3; preferenceIndex++)
|
||||
{
|
||||
for (int i = unassigned.Count - 1; i >= 0; i--)
|
||||
@@ -1018,7 +1027,7 @@ namespace Subsurface.Networking
|
||||
}
|
||||
}
|
||||
|
||||
//UpdateNetLobby(null);
|
||||
UpdateNetLobby(null);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Subsurface.Networking
|
||||
namespace Barotrauma.Networking
|
||||
{
|
||||
static class NetConfig
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using Lidgren.Network;
|
||||
|
||||
namespace Subsurface.Networking
|
||||
namespace Barotrauma.Networking
|
||||
{
|
||||
enum NetworkEventType
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using Microsoft.Xna.Framework.Graphics;
|
||||
using Microsoft.Xna.Framework.Input;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Subsurface.Networking
|
||||
namespace Barotrauma.Networking
|
||||
{
|
||||
enum PacketTypes
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user