public SetFrom ( FlatRedBall rectangle ) : void | ||
rectangle | FlatRedBall | |
return | void |
// This class does not support visibility. // The reason is because setting visibility // on a AxisAlignedRectangle (which would occur // in the ToAxisAlignedRectangle method) would add // it to the manager. We can't do that because the ToRuntime // methods should not add the object to any manager. Maybe we'll // fix this at some point in the future. //public bool Visible; //public bool ShouldSerializeVisible() //{ // return Visible == false; //} #endregion public static AxisAlignedRectangleSave FromAxisAlignedRectangle(FlatRedBall.Math.Geometry.AxisAlignedRectangle rectangle) { AxisAlignedRectangleSave aars = new AxisAlignedRectangleSave(); aars.SetFrom(rectangle); return aars; }
// This class does not support visibility. // The reason is because setting visibility // on a AxisAlignedRectangle (which would occur // in the ToAxisAlignedRectangle method) would add // it to the manager. We can't do that because the ToRuntime // methods should not add the object to any manager. Maybe we'll // fix this at some point in the future. //public bool Visible; //public bool ShouldSerializeVisible() //{ // return Visible == false; //} #endregion public static AxisAlignedRectangleSave FromAxisAlignedRectangle(FlatRedBall.Math.Geometry.AxisAlignedRectangle rectangle) { AxisAlignedRectangleSave aars = new AxisAlignedRectangleSave(); aars.SetFrom(rectangle); return(aars); }