Skip to content

Commit 9d1d587

Browse files
committed
Updated to arrow syntax
1 parent 2d27df5 commit 9d1d587

File tree

4 files changed

+4
-30
lines changed

4 files changed

+4
-30
lines changed

MLAPI/NetworkingManagerComponents/Core/InternalMessageHandler.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ namespace MLAPI.NetworkingManagerComponents.Core
44
{
55
internal static partial class InternalMessageHandler
66
{
7-
private static NetworkingManager netManager
8-
{
9-
get
10-
{
11-
return NetworkingManager.singleton;
12-
}
13-
}
7+
private static NetworkingManager netManager => NetworkingManager.singleton;
148
}
159
}

MLAPI/NetworkingManagerComponents/Core/LagCompensationManager.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using MLAPI.MonoBehaviours.Core;
22
using System;
33
using System.Collections.Generic;
4-
using UnityEngine;
54

65
namespace MLAPI.NetworkingManagerComponents.Core
76
{
@@ -10,17 +9,10 @@ namespace MLAPI.NetworkingManagerComponents.Core
109
/// </summary>
1110
public static class LagCompensationManager
1211
{
13-
internal static List<TrackedObject> simulationObjects = new List<TrackedObject>();
1412
/// <summary>
1513
/// Simulation objects
1614
/// </summary>
17-
public static List<TrackedObject> SimulationObjects
18-
{
19-
get
20-
{
21-
return simulationObjects;
22-
}
23-
}
15+
public static readonly List<TrackedObject> simulationObjects = new List<TrackedObject>();
2416

2517
/// <summary>
2618
/// Turns time back a given amount of seconds, invokes an action and turns it back

MLAPI/NetworkingManagerComponents/Core/MessageManager.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ internal static class MessageManager
1616
internal static readonly Dictionary<ushort, int> messageHandlerCounter = new Dictionary<ushort, int>();
1717
internal static readonly Dictionary<ushort, Stack<int>> releasedMessageHandlerCounters = new Dictionary<ushort, Stack<int>>();
1818

19-
private static NetworkingManager netManager
20-
{
21-
get
22-
{
23-
return NetworkingManager.singleton;
24-
}
25-
}
19+
private static NetworkingManager netManager => NetworkingManager.singleton;
2620

2721

2822
internal static int AddIncomingMessageHandler(string name, Action<uint, BitReader> action)

MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@ internal static uint GetNetworkObjectId()
2424
}
2525
}
2626

27-
private static NetworkingManager netManager
28-
{
29-
get
30-
{
31-
return NetworkingManager.singleton;
32-
}
33-
}
27+
private static NetworkingManager netManager => NetworkingManager.singleton;
3428

3529
internal static void RemoveOwnership(uint netId)
3630
{

0 commit comments

Comments
 (0)