-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify API implementations by removing LiteNetLib dependency (#312)
- Removed the LiteNetLib from CSM.API so implementing mods don't throw errors if CSM is not available. This is realized by removing the NetPeer field from the Player class. - Also explain how the bundled protobuf-net.dll is created - Update changelog panel * Fix transport line synchronization, remove transport tool sync for now (which was broken anyway)
- Loading branch information
Showing
13 changed files
with
75 additions
and
31 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -264,3 +264,4 @@ __pycache__/ | |
.vscode/ | ||
assemblies/* | ||
!assemblies/protobuf-net.dll | ||
!assemblies/LICENSE.txt |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
protobuf-net.dll was built from https://github.com/protobuf-net/protobuf-net on tag 2.4.8 | ||
with the following config changes: | ||
FeatureServiceModel = false | ||
FeatureServiceModelConfiguration = false | ||
PlatformXmlSerializer = false | ||
PlatformBinaryFormatter = false | ||
|
||
protobuf-net is licensed under the Apache License, Version 2.0. | ||
See https://github.com/protobuf-net/protobuf-net/blob/main/Licence.txt |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using CSM.API.Networking; | ||
using LiteNetLib; | ||
|
||
namespace CSM.Networking | ||
{ | ||
public class CSMPlayer : Player | ||
{ | ||
public NetPeer NetPeer { get; } | ||
|
||
public CSMPlayer(NetPeer peer, string username) : base(username) | ||
{ | ||
NetPeer = peer; | ||
} | ||
|
||
public CSMPlayer(string username) : base(username) | ||
{ | ||
NetPeer = null; | ||
} | ||
} | ||
} |
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