-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
3,017 additions
and
463 deletions.
There are no files selected for viewing
Binary file modified
BIN
+42 Bytes
(100%)
Basis Server Export/BasisNetworkClient/bin/Debug/BasisNetworkClient.2.10.1.nupkg
Binary file not shown.
Binary file modified
BIN
+512 Bytes
(110%)
Basis Server Export/BasisNetworkClient/bin/Debug/net9.0/BasisNetworkClient.dll
Binary file not shown.
Binary file modified
BIN
+1.5 KB
(110%)
Basis Server Export/BasisNetworkClient/bin/Debug/net9.0/BasisNetworkCore.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server Export/BasisNetworkClient/bin/Debug/net9.0/LiteNetLib.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server Export/BasisNetworkClient/bin/Debug/netstandard2.1/BasisNetworkClient.dll
Binary file not shown.
Binary file modified
BIN
+1 KB
(110%)
Basis Server Export/BasisNetworkClient/bin/Debug/netstandard2.1/BasisNetworkCore.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server Export/BasisNetworkClient/bin/Debug/netstandard2.1/LiteNetLib.dll
Binary file not shown.
Binary file modified
BIN
+295 Bytes
(100%)
Basis Server Export/BasisNetworkCore/bin/Debug/BasisNetworkCore.2.10.1.nupkg
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server Export/BasisNetworkCore/bin/Debug/net9.0/BasisNetworkCore.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server Export/BasisNetworkCore/bin/Debug/net9.0/LiteNetLib.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server Export/BasisNetworkCore/bin/Debug/netstandard2.1/BasisNetworkCore.dll
Binary file not shown.
Binary file modified
BIN
+2 KB
(100%)
Basis Server Export/BasisNetworkCore/bin/Debug/netstandard2.1/LiteNetLib.dll
Binary file not shown.
Binary file modified
BIN
-4 Bytes
(100%)
Basis Server Export/BasisNetworkServer/bin/Debug/BasisNetworkServer.2.10.1.nupkg
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server Export/BasisNetworkServer/bin/Debug/net9.0/BasisNetworkCore.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server Export/BasisNetworkServer/bin/Debug/net9.0/BasisNetworkServer.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server Export/BasisNetworkServer/bin/Debug/net9.0/LiteNetLib.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server Export/BasisNetworkServer/bin/Debug/netstandard2.1/BasisNetworkCore.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server Export/BasisNetworkServer/bin/Debug/netstandard2.1/BasisNetworkServer.dll
Binary file not shown.
Binary file modified
BIN
+2 KB
(100%)
Basis Server Export/BasisNetworkServer/bin/Debug/netstandard2.1/LiteNetLib.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server/.vs/BasisNetworkServer/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file not shown.
251 changes: 216 additions & 35 deletions
251
Basis Server/.vs/BasisNetworkServer/v17/DocumentLayout.backup.json
Large diffs are not rendered by default.
Oops, something went wrong.
252 changes: 217 additions & 35 deletions
252
Basis Server/.vs/BasisNetworkServer/v17/DocumentLayout.json
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
-80 Bytes
(100%)
Basis Server/.vs/BasisNetworkServer/v17/HierarchyCache.v1.txt
Binary file not shown.
Binary file modified
BIN
+320 Bytes
(100%)
Basis Server/.vs/ProjectEvaluation/basisnetworkserver.metadata.v9.bin
Binary file not shown.
Binary file modified
BIN
+212 KB
(120%)
Basis Server/.vs/ProjectEvaluation/basisnetworkserver.projects.v9.bin
Binary file not shown.
Binary file modified
BIN
+2.75 KB
(100%)
Basis Server/.vs/ProjectEvaluation/basisnetworkserver.strings.v9.bin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Basis Server/BasisNetworkCore/Serializable/OwnershipTransferMessage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 24 additions & 4 deletions
28
Basis Server/BasisNetworkCore/Serializable/PlayerIdMessage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,42 @@ | ||
using DarkRift; | ||
using LiteNetLib.Utils; | ||
|
||
public static partial class SerializableBasis | ||
{ | ||
public struct PlayerIdMessage | ||
{ | ||
public ushort playerID; | ||
private ushort data; // Encodes both playerID and additional data. | ||
|
||
/// <summary> | ||
/// 0 to 1023 | ||
/// </summary> | ||
public ushort playerID// (0-1023) | ||
{ | ||
get => (ushort)(data & 0x03FF); // Extract the lower 10 bits for PlayerID | ||
set => data = (ushort)((data & 0xFC00) | (value & 0x03FF)); // Set PlayerID while preserving upper 6 bits | ||
} | ||
|
||
/// <summary> | ||
/// 0 to 63 | ||
/// </summary> | ||
public byte AdditionalData// (0–63) | ||
{ | ||
get => (byte)((data >> 10) & 0x3F); // Extract the upper 6 bits for AdditionalData | ||
set => data = (ushort)((data & 0x03FF) | ((value & 0x3F) << 10)); // Set AdditionalData while preserving lower 10 bits | ||
} | ||
|
||
public void Deserialize(NetDataReader Writer) | ||
{ | ||
Writer.Get(out playerID); | ||
Writer.Get(out data); // Read the entire ushort value | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
// No resources to dispose in this structure | ||
} | ||
|
||
public void Serialize(NetDataWriter Writer) | ||
{ | ||
Writer.Put(playerID); | ||
Writer.Put(data); // Write the entire ushort value | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Basis Server/BasisNetworkServer/BasisNetworking/BasisServerReductionSystem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server/BasisServerConsole/bin/Debug/net9.0/BasisNetworkConsole.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server/BasisServerConsole/bin/Debug/net9.0/BasisNetworkConsole.exe
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server/BasisServerConsole/bin/Debug/net9.0/BasisNetworkCore.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server/BasisServerConsole/bin/Debug/net9.0/BasisNetworkServer.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Basis Server/BasisServerConsole/bin/Debug/net9.0/LiteNetLib.dll
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.