Alexandria.Engines.Unreal.Bounds.Read C# (CSharp) Method

Read() public static method

Read the Bounds from the reader.
public static Read ( BinaryReader reader ) : Bounds
reader System.IO.BinaryReader The to read the from.
return Bounds
        public static Bounds Read(BinaryReader reader)
        {
            return new Bounds() {
                Box = new Box3f(reader.ReadVector3f(), reader.ReadVector3f()),
                Valid = reader.ReadByte() != 0
            };
        }

Usage Example

Ejemplo n.º 1
0
 public override object Read(object target, Package package, BinaryReader reader, long end)
 {
     return(Bounds.Read(reader));
 }
Bounds