public void OnDeserialize(NetMessage message) { Value.X = message.ReadSingle(); Value.Y = message.ReadSingle(); Value.Z = message.ReadSingle(); }
public T Deserialize <T>(NetMessage message) { return((T)Deserialize(typeof(T), message)); }
public void OnSerialize(NetMessage message) { message.Write(Value.X); message.Write(Value.Y); message.Write(Value.Z); }
public void OnDeserialize(NetMessage message) { Value = message.ReadBoolean(); }
public void OnSerialize(NetMessage message) { message.Write(Value); }
public void OnDeserialize(NetMessage message) { Value = message.ReadString(); }
public void OnDeserialize(NetMessage message) { Value = message.ReadUInt16(); }