public void deserialize(BinaryReader reader) { { ushort size = reader.ReadUInt16(); this.health_values.Clear(); for (int i = 0; i < size; ++i) { this.health_values.Add(reader.ReadSingle()); } } if (reader.ReadBoolean()) { target = new Upper(); target.deserialize(reader); } { ushort size = reader.ReadUInt16(); this.peeps.Clear(); for (int i = 0; i < size; ++i) { Test element = new Test(); element.deserialize(reader); this.peeps.Add(element); } } hoho = reader.ReadInt32(); muh_dick = reader.ReadInt64(); { ushort size = reader.ReadUInt16(); this.testero.Clear(); for (int i = 0; i < size; ++i) { Upper element = new Upper(); element.deserialize(reader); this.testero.Add(element); } } }
public void deserialize(BinaryReader reader) { time = reader.ReadSingle(); magic = reader.ReadByte(); upper.deserialize(reader); }