|
|
@ -93,6 +93,31 @@ namespace Multiplayer |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public class longMsg : PlayerMsg |
|
|
|
{ |
|
|
|
public long Long; |
|
|
|
|
|
|
|
public longMsg() { } |
|
|
|
|
|
|
|
public longMsg(byte PlayerID, long Long) : base(PlayerID) |
|
|
|
{ |
|
|
|
this.Long = Long; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override void Serialize(NetworkWriter writer) |
|
|
|
{ |
|
|
|
base.Serialize(writer); |
|
|
|
writer.Write(Long); |
|
|
|
} |
|
|
|
|
|
|
|
public override void Deserialize(NetworkReader reader) |
|
|
|
{ |
|
|
|
base.Deserialize(reader); |
|
|
|
Long = reader.ReadInt64(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public class StringMsg : PlayerMsg |
|
|
|
{ |
|
|
|
|
|
|
|