Exemple #1
0
 /// <summary>
 /// Called when the entity is being loaded from disk.
 /// Override this to read any data that you saved when overriding the <see cref="Serialize(BinaryWriter)"/>
 /// method. Data must be written and read in the same order.
 /// </summary>
 /// <param name="reader"></param>
 public virtual void Deserialize(IOReader reader)
 {
     if (SerializeName)
     {
         Name = reader.ReadString();
     }
     Bounds = reader.ReadBounds();
 }