Skip to content
This repository was archived by the owner on Oct 22, 2023. It is now read-only.

Commit 2b7547e

Browse files
committed
Remove example server from engine solution
1 parent 6d78a8a commit 2b7547e

File tree

12 files changed

+5
-170
lines changed

12 files changed

+5
-170
lines changed

Engine/Client/Simulation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private void SyncCommandBuffer()
131131
}
132132

133133
//Only rollback if we are ahead (network can be ahead when lag compensation is higher than lag itself)
134-
if (_systems.CurrentTick > revertTick)
134+
//if (_systems.CurrentTick > revertTick)
135135
{
136136
var targetTick = _systems.CurrentTick;
137137

Engine/Core/Systems/Input/OnSpawnInputCreateEntity.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ public class OnSpawnInputCreateEntity : ReactiveSystem<InputEntity>, IStateSyste
1414
private readonly GameStateContext _gameStateContext;
1515

1616
private readonly Dictionary<uint, List<uint>> _createdEntities = new Dictionary<uint, List<uint>>();
17-
private ILogService logger;
17+
private readonly ILogService _logger;
1818

1919
public OnSpawnInputCreateEntity(Contexts contexts, ServiceContainer services) : base(contexts.input)
2020
{
2121
_gameService = services.Get<IGameService>();
22-
logger = services.Get<ILogService>();
22+
_logger = services.Get<ILogService>();
2323
_gameContext = contexts.game;
2424
_gameStateContext = contexts.gameState;
2525
}
@@ -63,7 +63,7 @@ public void RevertToTick(uint tick)
6363
{
6464
if (_createdEntities.ContainsKey(tick))
6565
{
66-
logger.Warn("Destroying " + _createdEntities[tick].Count + " Entities from tick " + tick);
66+
_logger?.Warn("Destroying " + _createdEntities[tick].Count + " Entities from tick " + tick);
6767
foreach (var entityId in _createdEntities[tick])
6868
{
6969
_gameContext.GetEntityWithId(entityId).Destroy();

Engine/Lockstep.sln

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Network", "Network\Network.
99
EndProject
1010
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Client", "Client\Client.csproj", "{0BBF4D0F-9B75-48EC-922C-9260415CCFE6}"
1111
EndProject
12-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Server.LiteNetLib", "Server.LiteNetLib\Server.LiteNetLib.csproj", "{C76F54B5-B7D6-4B7B-AFD2-009D76DD5175}"
13-
EndProject
1412
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Server", "Server\Server.csproj", "{A1600F19-32C9-4DDA-9675-B81DFAD9FC37}"
1513
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{BFCAFCFD-0ABF-4226-9BEF-BA0ABC677978}"
14+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Test", "Test\Test.csproj", "{BFCAFCFD-0ABF-4226-9BEF-BA0ABC677978}"
1715
EndProject
1816
Global
1917
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -33,10 +31,6 @@ Global
3331
{0BBF4D0F-9B75-48EC-922C-9260415CCFE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
3432
{0BBF4D0F-9B75-48EC-922C-9260415CCFE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
3533
{0BBF4D0F-9B75-48EC-922C-9260415CCFE6}.Release|Any CPU.Build.0 = Release|Any CPU
36-
{C76F54B5-B7D6-4B7B-AFD2-009D76DD5175}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37-
{C76F54B5-B7D6-4B7B-AFD2-009D76DD5175}.Debug|Any CPU.Build.0 = Debug|Any CPU
38-
{C76F54B5-B7D6-4B7B-AFD2-009D76DD5175}.Release|Any CPU.ActiveCfg = Release|Any CPU
39-
{C76F54B5-B7D6-4B7B-AFD2-009D76DD5175}.Release|Any CPU.Build.0 = Release|Any CPU
4034
{A1600F19-32C9-4DDA-9675-B81DFAD9FC37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4135
{A1600F19-32C9-4DDA-9675-B81DFAD9FC37}.Debug|Any CPU.Build.0 = Debug|Any CPU
4236
{A1600F19-32C9-4DDA-9675-B81DFAD9FC37}.Release|Any CPU.ActiveCfg = Release|Any CPU

Engine/Server.LiteNetLib/LiteNetLibServer.cs

Lines changed: 0 additions & 72 deletions
This file was deleted.

Engine/Server.LiteNetLib/Program.cs

Lines changed: 0 additions & 44 deletions
This file was deleted.

Engine/Server.LiteNetLib/Server.LiteNetLib.csproj

Lines changed: 0 additions & 18 deletions
This file was deleted.

Engine/Server.LiteNetLib/Timer.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.
0 Bytes
Binary file not shown.
-12 Bytes
Binary file not shown.
-512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)