-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Game ended - Peer connected
- Loading branch information
Showing
5 changed files
with
35 additions
and
0 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
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,12 @@ | ||
namespace Fika.Core.Modding.Events | ||
{ | ||
public class FikaGameEndedEvent : FikaEvent | ||
{ | ||
public bool IsServer { get; } | ||
|
||
internal FikaGameEndedEvent(bool isServer) | ||
{ | ||
IsServer = isServer; | ||
} | ||
} | ||
} |
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,17 @@ | ||
using Fika.Core.Networking; | ||
using LiteNetLib; | ||
|
||
namespace Fika.Core.Modding.Events | ||
{ | ||
public class PeerConnectedEvent : FikaEvent | ||
{ | ||
public NetPeer Peer { get; } | ||
public IFikaNetworkManager NetworkManager { get; } | ||
|
||
internal PeerConnectedEvent(NetPeer peer, IFikaNetworkManager networkManager) | ||
{ | ||
Peer = peer; | ||
NetworkManager = networkManager; | ||
} | ||
} | ||
} |
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