public bool LoadFromStream(NullMemoryStream stream) { bool res = stream.ReadInt(out Target); res &= stream.ReadFloat(out Weight); return(res); }
public bool LoadFromStream(NullMemoryStream stream) { bool res = stream.ReadString(out name); res &= stream.ReadInt(out age); res &= stream.ReadBool(out isMale); res &= stream.ReadFloat(out money); return(res); }