2020-08-13 19:46:16 +00:00
|
|
|
|
using QSB.Messaging;
|
|
|
|
|
using UnityEngine.Networking;
|
2020-02-23 17:31:38 +00:00
|
|
|
|
|
2020-11-08 16:10:10 +00:00
|
|
|
|
namespace QSB.MessagesCore
|
2020-02-23 17:31:38 +00:00
|
|
|
|
{
|
2020-11-08 16:10:10 +00:00
|
|
|
|
public class FloatMessage : PlayerMessage
|
2020-02-23 17:31:38 +00:00
|
|
|
|
{
|
2020-07-27 23:14:32 +00:00
|
|
|
|
public float Value;
|
2020-02-23 17:31:38 +00:00
|
|
|
|
|
|
|
|
|
public override void Deserialize(NetworkReader reader)
|
|
|
|
|
{
|
2020-08-10 16:17:54 +00:00
|
|
|
|
base.Deserialize(reader);
|
2020-07-27 23:14:32 +00:00
|
|
|
|
Value = reader.ReadSingle();
|
2020-02-23 17:31:38 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Serialize(NetworkWriter writer)
|
|
|
|
|
{
|
2020-08-10 16:17:54 +00:00
|
|
|
|
base.Serialize(writer);
|
2020-07-27 23:14:32 +00:00
|
|
|
|
writer.Write(Value);
|
2020-02-23 17:31:38 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-08 16:10:10 +00:00
|
|
|
|
}
|