Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
GameDataEventArgs.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
5
7{
11 public class GameDataEventArgs : EventArgs
12 {
13 private Player fromPlayer;
14 private PeerConnection connection;
15 private byte[] packet;
16 private BinaryInput data;
17
19 {
20 this.fromPlayer = FromPlayer;
21 this.connection = Connection;
22 this.packet = Packet;
23 this.data = new BinaryInput(Packet);
24 }
25
29 public Player FromPlayer => this.fromPlayer;
30
34 public PeerConnection Connection => this.connection;
35
39 public byte[] Packet => this.packet;
40
44 public BinaryInput Data => this.data;
45 }
46}
Class that helps deserialize information stored in a binary packet.
Definition: BinaryInput.cs:12
Event arguments for game data events.
Player FromPlayer
Game data received from this player.
byte[] Packet
Binary game data packet received.
PeerConnection Connection
Game data received over this connection.
Class containing information about a player.
Definition: Player.cs:12