/// <summary>
 /// Writes a <see cref="Vector3Bool"/> instance into the current stream.
 /// </summary>
 /// <param name="self">The extended <see cref="BinaryDataWriter"/>.</param>
 /// <param name="value">The <see cref="Vector3Bool"/> instance.</param>
 /// <param name="format">The <see cref="BinaryBooleanFormat"/> in which values are stored.</param>
 public static void Write(this BinaryDataWriter self, Vector3Bool value,
                          BinaryBooleanFormat format = BinaryBooleanFormat.NonZeroByte)
 {
     self.Write(value.X, format);
     self.Write(value.Y, format);
     self.Write(value.Z, format);
 }
 private void Reset()
 {
     Offset        = Vector3.zero;
     WriteToggles  = Vector3Bool.FalseVector;
     DriveTarget   = null;
     PostProcessor = null;
     this.ResetSourceList();
 }
Exemple #3
0
 /// <summary>
 /// Reads <see cref="Vector3Bool"/> instances from the current stream and returns them.
 /// </summary>
 /// <param name="self">The extended <see cref="BinaryDataReader"/>.</param>
 /// <param name="count">The number of instances to read.</param>
 /// <param name="format">The <see cref="BinaryBooleanFormat"/> in which values are stored.</param>
 /// <returns>The <see cref="Vector3Bool"/> instances.</returns>
 public static IList <Vector3Bool> ReadVector3Bools(this BinaryDataReader self, int count,
                                                    BinaryBooleanFormat format = BinaryBooleanFormat.NonZeroByte)
 {
     Vector3Bool[] values = new Vector3Bool[count];
     for (int i = 0; i < count; i++)
     {
         values[i] = self.ReadVector3Bool(format);
     }
     return(values);
 }
 public Vector3Bool(Vector3Bool source)
 {
     x = source.x;
     y = source.y;
     z = source.z;
 }
 public void Match(GRP_ManagerBase source)
 {
     backgroundImage          = source.backgroundImage;
     backgroundTint           = source.backgroundTint;
     bodyFont                 = source.bodyFont;
     bodyFontSize             = source.bodyFontSize;
     bodyTextColor            = source.bodyTextColor;
     buttonBleed              = source.buttonBleed;
     buttonDirection          = source.buttonDirection;
     buttonFont               = source.buttonFont;
     buttonFontSize           = source.buttonFontSize;
     buttonImage              = source.buttonImage;
     buttonPadding            = source.buttonPadding;
     buttonPrefixImage        = source.buttonPrefixImage;
     buttonPressedImage       = source.buttonPressedImage;
     buttonSeparation         = source.buttonSeparation;
     buttonSeparator          = source.buttonSeparator;
     buttonTextColor          = source.buttonTextColor;
     buttonTextColorPressed   = source.buttonTextColorPressed;
     container                = source.container;
     containerBleed           = source.containerBleed;
     containerImage           = source.containerImage;
     containerPadding         = source.containerPadding;
     containerTint            = source.containerTint;
     fadeAnimation            = source.fadeAnimation;
     fadeDuration             = source.fadeDuration;
     fadeProfile              = source.fadeProfile;
     flexibleHeight           = source.flexibleHeight;
     flexibleWidth            = source.flexibleWidth;
     fullscreenBottom         = source.fullscreenBottom;
     fullscreenLeft           = source.fullscreenLeft;
     fullscreenRight          = source.fullscreenRight;
     fullscreenTop            = source.fullscreenTop;
     generalButtonPressedTint = source.generalButtonPressedTint;
     generalButtonTint        = source.generalButtonTint;
     initialize               = source.initialize;
     makeThisParent           = source.makeThisParent;
     messagePadding           = source.messagePadding;
     placement                = source.placement;
     promptInputFieldImage    = source.promptInputFieldImage;
     promptInputFieldTint     = source.promptInputFieldTint;
     promptInputfieldColor    = source.promptInputfieldColor;
     promptPlaceholderColor   = source.promptPlaceholderColor;
     promptType               = source.promptType;
     referenceSize            = source.referenceSize;
     returnButtonImage        = source.returnButtonImage;
     returnButtonPressedImage = source.returnButtonPressedImage;
     returnButtonPressedTint  = source.returnButtonPressedTint;
     returnButtonTint         = source.returnButtonTint;
     returnPosition           = source.returnPosition;
     returnTextColor          = source.returnTextColor;
     returnTextColorPressed   = source.returnTextColorPressed;
     showBehaviour            = source.showBehaviour;
     showButtons              = source.showButtons;
     showDesign               = source.showDesign;
     showRatios               = source.showRatios;
     showTypography           = source.showTypography;
     staticAnchor             = source.staticAnchor;
     staticAnchorX            = source.staticAnchorX;
     staticAnchorY            = source.staticAnchorY;
     staticHeight             = source.staticHeight;
     staticWidth              = source.staticWidth;
     staticX         = source.staticX;
     staticY         = source.staticY;
     textAlignment   = source.textAlignment;
     titleColor      = source.titleColor;
     titleFont       = source.titleFont;
     titleFontSize   = source.titleFontSize;
     titlePadding    = source.titlePadding;
     titleSeparator  = source.titleSeparator;
     worldFollowAxes = source.worldFollowAxes;
     worldHeight     = source.worldHeight;
     worldPosition   = source.worldPosition;
     worldRotation   = source.worldRotation;
     worldScale      = source.worldScale;
     worldWidth      = source.worldWidth;
 }
 public void SetDefaultValues()
 {
     constrainedObject = null;
     sourceObject      = null;
     invert            = new Vector3Bool(false);
 }