Skip to content

Commit

Permalink
Minor Refactoring/Using Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Xilophor committed Sep 7, 2024
1 parent 72991b6 commit 801a973
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
3 changes: 2 additions & 1 deletion LethalNetworkAPI/Internal/LNetworkVariableBase.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
namespace LethalNetworkAPI;
namespace LethalNetworkAPI.Internal;

using System.Linq;
using Unity.Netcode;

/// <remarks>Internal Class</remarks>
public abstract class LNetworkVariableBase
{
internal string Identifier { get; init; }

Check warning on line 9 in LethalNetworkAPI/Internal/LNetworkVariableBase.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Identifier' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 9 in LethalNetworkAPI/Internal/LNetworkVariableBase.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Identifier' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Check warning on line 9 in LethalNetworkAPI/Internal/LNetworkVariableBase.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Identifier' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
Expand Down
3 changes: 0 additions & 3 deletions LethalNetworkAPI/Public/LNetworkEvent.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
namespace LethalNetworkAPI;

using System;
using System.Diagnostics;
using System.Linq;
using BepInEx;
using HarmonyLib;
using Internal;
using Unity.Netcode;
using Utils;
Expand Down
3 changes: 0 additions & 3 deletions LethalNetworkAPI/Public/LNetworkMessage.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
namespace LethalNetworkAPI;

using System;
using System.Diagnostics;
using System.Linq;
using BepInEx;
using HarmonyLib;
using Internal;
using Unity.Netcode;
using Utils;
Expand Down
3 changes: 0 additions & 3 deletions LethalNetworkAPI/Public/LNetworkVariable.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
namespace LethalNetworkAPI;

using System;
using System.Collections.Generic;
using System.Linq;
using HarmonyLib;
using Internal;
using Unity.Netcode;
using Utils;

internal interface INetVariable;

/// <summary>
/// A variable that can be used to send data between clients.
/// </summary>
Expand Down

0 comments on commit 801a973

Please sign in to comment.