예제 #1
0
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.Name                   = binaryReader.ReadStringID();
     pointerQueue                = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.HudWidgetInputsStruct.ReadFields(binaryReader)));
     pointerQueue                = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.HudWidgetStateDefinitionStruct.ReadFields(binaryReader)));
     this.Anchor                 = ((AnchorEnum)(binaryReader.ReadInt16()));
     this.HudTextWidgetsFlags    = ((Flags)(binaryReader.ReadInt16()));
     this.Shader                 = binaryReader.ReadTagReference();
     this.String                 = binaryReader.ReadStringID();
     this.Justification          = ((JustificationEnum)(binaryReader.ReadInt16()));
     this.fieldpad               = binaryReader.ReadBytes(2);
     this.FullscreenFontIndex    = ((FullscreenFontIndexEnum)(binaryReader.ReadByte()));
     this.HalfscreenFontIndex    = ((HalfscreenFontIndexEnum)(binaryReader.ReadByte()));
     this.QuarterscreenFontIndex = ((QuarterscreenFontIndexEnum)(binaryReader.ReadByte()));
     this.fieldpad0              = binaryReader.ReadBytes(1);
     this.FullscreenScale        = binaryReader.ReadSingle();
     this.HalfscreenScale        = binaryReader.ReadSingle();
     this.QuarterscreenScale     = binaryReader.ReadSingle();
     this.FullscreenOffset       = binaryReader.ReadPoint();
     this.HalfscreenOffset       = binaryReader.ReadPoint();
     this.QuarterscreenOffset    = binaryReader.ReadPoint();
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(104));
     return(pointerQueue);
 }
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.Name    = binaryReader.ReadStringID();
     pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.HudWidgetInputsStruct.ReadFields(binaryReader)));
     pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.HudWidgetStateDefinitionStruct.ReadFields(binaryReader)));
     this.Anchor  = ((AnchorEnum)(binaryReader.ReadInt16()));
     this.HudBitmapWidgetsFlags = ((Flags)(binaryReader.ReadInt16()));
     this.Bitmap = binaryReader.ReadTagReference();
     this.Shader = binaryReader.ReadTagReference();
     this.FullscreenSequenceIndex    = binaryReader.ReadByte();
     this.HalfscreenSequenceIndex    = binaryReader.ReadByte();
     this.QuarterscreenSequenceIndex = binaryReader.ReadByte();
     this.fieldpad                       = binaryReader.ReadBytes(1);
     this.FullscreenOffset               = binaryReader.ReadPoint();
     this.HalfscreenOffset               = binaryReader.ReadPoint();
     this.QuarterscreenOffset            = binaryReader.ReadPoint();
     this.FullscreenRegistrationPoint    = binaryReader.ReadVector2();
     this.HalfscreenRegistrationPoint    = binaryReader.ReadVector2();
     this.QuarterscreenRegistrationPoint = binaryReader.ReadVector2();
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(104));
     this.SpecialHudType = ((SpecialHudTypeEnum)(binaryReader.ReadInt16()));
     this.fieldpad0      = binaryReader.ReadBytes(2);
     return(pointerQueue);
 }
예제 #3
0
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.ChildHud = binaryReader.ReadTagReference();
     this.WeaponHudInterfaceFlags = ((Flags)(binaryReader.ReadInt16()));
     this.fieldpad            = binaryReader.ReadBytes(2);
     this.InventoryAmmoCutoff = binaryReader.ReadInt16();
     this.LoadedAmmoCutoff    = binaryReader.ReadInt16();
     this.HeatCutoff          = binaryReader.ReadInt16();
     this.AgeCutoff           = binaryReader.ReadInt16();
     this.fieldpad0           = binaryReader.ReadBytes(32);
     this.Anchor    = ((AnchorEnum)(binaryReader.ReadInt16()));
     this.fieldpad1 = binaryReader.ReadBytes(2);
     this.fieldpad2 = binaryReader.ReadBytes(32);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(168));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(165));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(160));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(92));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(92));
     this.fieldpad3 = binaryReader.ReadBytes(4);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(0));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(320));
     this.fieldpad4                 = binaryReader.ReadBytes(132);
     this.SequenceIndex             = binaryReader.ReadInt16();
     this.WidthOffset               = binaryReader.ReadInt16();
     this.OffsetFromReferenceCorner = binaryReader.ReadPoint();
     this.OverrideIconColor         = binaryReader.ReadColourA1R1G1B1();
     this.FrameRate030              = binaryReader.ReadByte();
     this.WeaponHudInterfaceWeaponHudInterfaceFlags0 = ((WeaponHudInterfaceFlags0)(binaryReader.ReadByte()));
     this.TextIndex = binaryReader.ReadInt16();
     this.fieldpad5 = binaryReader.ReadBytes(48);
     return(pointerQueue);
 }
 // ======================================================================
 // Initialization
 // ----------------------------------------------------------------------
 public DSTableView(RectOffset margins, bool displayFrame,
                    GUIContent title, AnchorEnum titleAlignment, bool titleSeperator,
                    bool displayColumnFrame, bool columnTitleSeperator = true)
 {
     myMainView = new DSTitleView(margins, displayFrame,
                                  title, titleAlignment, titleSeperator,
                                  DisplayMainView, GetMainViewLayoutSize);
     myColumnTitleSeperator = columnTitleSeperator;
     myDisplayColumnFrame   = displayColumnFrame;
 }
예제 #5
0
        public static Rect PerformAlignment(Rect displayArea, Vector2 displaySize, AnchorEnum alignment)
        {
            if (Math3D.IsZero(displaySize))
            {
                return(displayArea);
            }
            float x      = displayArea.x;
            float y      = displayArea.y;
            float width  = displayArea.width;
            float height = displayArea.height;

            if (displaySize.x < displayArea.width)
            {
                width = displaySize.x;
                switch (alignment)
                {
                case AnchorEnum.Center:
                case AnchorEnum.TopCenter:
                case AnchorEnum.BottomCenter: {
                    x += 0.5f * (displayArea.width - displaySize.x);
                    break;
                }

                case AnchorEnum.TopRight:
                case AnchorEnum.CenterRight:
                case AnchorEnum.BottomRight: {
                    x = displayArea.xMax - displaySize.x;
                    break;
                }
                }
            }
            if (displaySize.y < displayArea.height)
            {
                height = displaySize.y;
                switch (alignment)
                {
                case AnchorEnum.Center:
                case AnchorEnum.CenterRight:
                case AnchorEnum.CenterLeft: {
                    y += 0.5f * (displayArea.height - displaySize.y);
                    break;
                }

                case AnchorEnum.BottomRight:
                case AnchorEnum.BottomCenter:
                case AnchorEnum.BottomLeft: {
                    y = displayArea.yMax - displaySize.y;
                    break;
                }
                }
            }
            return(new Rect(x, y, width, height));
        }
예제 #6
0
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.ContrailFlags             = ((Flags)(binaryReader.ReadInt16()));
     this.ContrailScaleFlags        = ((ScaleFlags)(binaryReader.ReadInt16()));
     this.PointGenerationRate       = binaryReader.ReadSingle();
     this.PointVelocity             = binaryReader.ReadRange();
     this.PointVelocityConeAngle    = binaryReader.ReadSingle();
     this.InheritedVelocityFraction = binaryReader.ReadSingle();
     this.RenderType                = ((RenderTypeEnum)(binaryReader.ReadInt16()));
     this.fieldpad                  = binaryReader.ReadBytes(2);
     this.TextureRepeatsU           = binaryReader.ReadSingle();
     this.TextureRepeatsV           = binaryReader.ReadSingle();
     this.TextureAnimationU         = binaryReader.ReadSingle();
     this.TextureAnimationV         = binaryReader.ReadSingle();
     this.AnimationRate             = binaryReader.ReadSingle();
     this.Bitmap                    = binaryReader.ReadTagReference();
     this.FirstSequenceIndex        = binaryReader.ReadInt16();
     this.SequenceCount             = binaryReader.ReadInt16();
     this.fieldpad0                 = binaryReader.ReadBytes(40);
     this.ContrailShaderFlags       = ((ShaderFlags)(binaryReader.ReadInt16()));
     this.FramebufferBlendFunction  = ((FramebufferBlendFunctionEnum)(binaryReader.ReadInt16()));
     this.FramebufferFadeMode       = ((FramebufferFadeModeEnum)(binaryReader.ReadInt16()));
     this.ContrailMapFlags          = ((MapFlags)(binaryReader.ReadInt16()));
     this.fieldpad1                 = binaryReader.ReadBytes(28);
     this.Bitmap0                   = binaryReader.ReadTagReference();
     this.Anchor                    = ((AnchorEnum)(binaryReader.ReadInt16()));
     this.ContrailContrailFlags0    = ((ContrailFlags0)(binaryReader.ReadInt16()));
     this.fieldpad2                 = binaryReader.ReadBytes(2);
     this.UanimationFunction        = ((UanimationFunctionEnum)(binaryReader.ReadInt16()));
     this.UanimationPeriod          = binaryReader.ReadSingle();
     this.UanimationPhase           = binaryReader.ReadSingle();
     this.UanimationScale           = binaryReader.ReadSingle();
     this.fieldpad3                 = binaryReader.ReadBytes(2);
     this.VanimationFunction        = ((VanimationFunctionEnum)(binaryReader.ReadInt16()));
     this.VanimationPeriod          = binaryReader.ReadSingle();
     this.VanimationPhase           = binaryReader.ReadSingle();
     this.VanimationScale           = binaryReader.ReadSingle();
     this.fieldpad4                 = binaryReader.ReadBytes(2);
     this.RotationanimationFunction = ((RotationanimationFunctionEnum)(binaryReader.ReadInt16()));
     this.RotationanimationPeriod   = binaryReader.ReadSingle();
     this.RotationanimationPhase    = binaryReader.ReadSingle();
     this.RotationanimationScale    = binaryReader.ReadSingle();
     this.RotationanimationCenter   = binaryReader.ReadVector2();
     this.fieldpad5                 = binaryReader.ReadBytes(4);
     this.ZspriteRadiusScale        = binaryReader.ReadSingle();
     this.fieldpad6                 = binaryReader.ReadBytes(20);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(64));
     return(pointerQueue);
 }
 // ======================================================================
 // Initialization
 // ----------------------------------------------------------------------
 public DSTitleView(RectOffset margins, bool shouldDisplayFrame,
                    GUIContent title, AnchorEnum titleAlignment, bool titleSeperator,
                    Action <DSTitleView, Rect> displayDelegate = null,
                    Func <DSTitleView, Rect, Vector2> getSizeToDisplayDelegate = null)
 {
     // Create subviews
     myMainView     = new DSCellView(margins, shouldDisplayFrame, MainViewDisplay, MainViewGetSizeToDisplay);
     myTitleSubview = new DSCellView(new RectOffset(0, 0, 0, 0), false, TitleViewDisplay, TitleViewGetSizeToDisplay);
     // initialize title related information.
     Title                      = title;
     TitleAlignment             = titleAlignment;
     TitleSeperator             = titleSeperator;
     myDisplayDelegate          = displayDelegate;
     myGetSizeToDisplayDelegate = getSizeToDisplayDelegate;
 }
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.Name    = binaryReader.ReadStringID();
     pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.HudWidgetInputsStruct.ReadFields(binaryReader)));
     pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.HudWidgetStateDefinitionStruct.ReadFields(binaryReader)));
     this.Anchor  = ((AnchorEnum)(binaryReader.ReadInt16()));
     this.HudScreenEffectWidgetsFlags = ((Flags)(binaryReader.ReadInt16()));
     this.Bitmap = binaryReader.ReadTagReference();
     this.FullscreenScreenEffect = binaryReader.ReadTagReference();
     pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.Waa.ReadFields(binaryReader)));
     this.FullscreenSequenceIndex    = binaryReader.ReadByte();
     this.HalfscreenSequenceIndex    = binaryReader.ReadByte();
     this.QuarterscreenSequenceIndex = binaryReader.ReadByte();
     this.fieldpad            = binaryReader.ReadBytes(1);
     this.FullscreenOffset    = binaryReader.ReadPoint();
     this.HalfscreenOffset    = binaryReader.ReadPoint();
     this.QuarterscreenOffset = binaryReader.ReadPoint();
     return(pointerQueue);
 }
예제 #9
0
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.Anchor                 = ((AnchorEnum)(binaryReader.ReadInt16()));
     this.fieldpad               = binaryReader.ReadBytes(2);
     this.fieldpad0              = binaryReader.ReadBytes(32);
     this.AnchorOffset           = binaryReader.ReadPoint();
     this.WidthScale             = binaryReader.ReadSingle();
     this.HeightScale            = binaryReader.ReadSingle();
     this.HudGlobalsScalingFlags = ((ScalingFlags)(binaryReader.ReadInt16()));
     this.fieldpad1              = binaryReader.ReadBytes(2);
     this.fieldpad2              = binaryReader.ReadBytes(20);
     this.Obsolete1              = binaryReader.ReadTagReference();
     this.Obsolete2              = binaryReader.ReadTagReference();
     this.UpTime                 = binaryReader.ReadSingle();
     this.FadeTime               = binaryReader.ReadSingle();
     this.IconColor              = binaryReader.ReadVector4();
     this.TextColor              = binaryReader.ReadVector4();
     this.TextSpacing            = binaryReader.ReadSingle();
     this.ItemMessageText        = binaryReader.ReadTagReference();
     this.IconBitmap             = binaryReader.ReadTagReference();
     this.AlternateIconText      = binaryReader.ReadTagReference();
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(16));
     this.DefaultColor                    = binaryReader.ReadColourA1R1G1B1();
     this.FlashingColor                   = binaryReader.ReadColourA1R1G1B1();
     this.FlashPeriod                     = binaryReader.ReadSingle();
     this.FlashDelay                      = binaryReader.ReadSingle();
     this.NumberOfFlashes                 = binaryReader.ReadInt16();
     this.HudGlobalsFlashFlags            = ((FlashFlags)(binaryReader.ReadInt16()));
     this.FlashLength                     = binaryReader.ReadSingle();
     this.DisabledColor                   = binaryReader.ReadColourA1R1G1B1();
     this.fieldpad3                       = binaryReader.ReadBytes(4);
     this.HudMessages                     = binaryReader.ReadTagReference();
     this.DefaultColor0                   = binaryReader.ReadColourA1R1G1B1();
     this.FlashingColor0                  = binaryReader.ReadColourA1R1G1B1();
     this.FlashPeriod0                    = binaryReader.ReadSingle();
     this.FlashDelay0                     = binaryReader.ReadSingle();
     this.NumberOfFlashes0                = binaryReader.ReadInt16();
     this.HudGlobalsHudGlobalsFlashFlags0 = ((HudGlobalsFlashFlags0)(binaryReader.ReadInt16()));
     this.FlashLength0                    = binaryReader.ReadSingle();
     this.DisabledColor0                  = binaryReader.ReadColourA1R1G1B1();
     this.UptimeTicks                     = binaryReader.ReadInt16();
     this.FadeTicks                       = binaryReader.ReadInt16();
     this.TopOffset                       = binaryReader.ReadSingle();
     this.BottomOffset                    = binaryReader.ReadSingle();
     this.LeftOffset                      = binaryReader.ReadSingle();
     this.RightOffset                     = binaryReader.ReadSingle();
     this.fieldpad4                       = binaryReader.ReadBytes(32);
     this.ArrowBitmap                     = binaryReader.ReadTagReference();
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(104));
     this.fieldpad5                       = binaryReader.ReadBytes(80);
     this.HudScaleInMultiplayer           = binaryReader.ReadSingle();
     this.fieldpad6                       = binaryReader.ReadBytes(256);
     this.fieldpad7                       = binaryReader.ReadBytes(16);
     this.MotionSensorRange               = binaryReader.ReadSingle();
     this.MotionSensorVelocitySensitivity = binaryReader.ReadSingle();
     this.MotionSensorScaleDONTTOUCHEVER  = binaryReader.ReadSingle();
     this.DefaultChapterTitleBounds       = binaryReader.ReadVector2();
     this.fieldpad8                       = binaryReader.ReadBytes(44);
     this.TopOffset0                      = binaryReader.ReadInt16();
     this.BottomOffset0                   = binaryReader.ReadInt16();
     this.LeftOffset0                     = binaryReader.ReadInt16();
     this.RightOffset0                    = binaryReader.ReadInt16();
     this.fieldpad9                       = binaryReader.ReadBytes(32);
     this.IndicatorBitmap                 = binaryReader.ReadTagReference();
     this.SequenceIndex                   = binaryReader.ReadInt16();
     this.MultiplayerSequenceIndex        = binaryReader.ReadInt16();
     this.Color            = binaryReader.ReadColourA1R1G1B1();
     this.fieldpad10       = binaryReader.ReadBytes(16);
     this.DefaultColor1    = binaryReader.ReadColourA1R1G1B1();
     this.FlashingColor1   = binaryReader.ReadColourA1R1G1B1();
     this.FlashPeriod1     = binaryReader.ReadSingle();
     this.FlashDelay1      = binaryReader.ReadSingle();
     this.NumberOfFlashes1 = binaryReader.ReadInt16();
     this.HudGlobalsHudGlobalsFlashFlags1 = ((HudGlobalsFlashFlags1)(binaryReader.ReadInt16()));
     this.FlashLength1     = binaryReader.ReadSingle();
     this.DisabledColor1   = binaryReader.ReadColourA1R1G1B1();
     this.fieldpad11       = binaryReader.ReadBytes(4);
     this.DefaultColor2    = binaryReader.ReadColourA1R1G1B1();
     this.FlashingColor2   = binaryReader.ReadColourA1R1G1B1();
     this.FlashPeriod2     = binaryReader.ReadSingle();
     this.FlashDelay2      = binaryReader.ReadSingle();
     this.NumberOfFlashes2 = binaryReader.ReadInt16();
     this.HudGlobalsHudGlobalsFlashFlags2 = ((HudGlobalsFlashFlags2)(binaryReader.ReadInt16()));
     this.FlashLength2        = binaryReader.ReadSingle();
     this.DisabledColor2      = binaryReader.ReadColourA1R1G1B1();
     this.fieldpad12          = binaryReader.ReadBytes(4);
     this.fieldpad13          = binaryReader.ReadBytes(40);
     this.CarnageReportBitmap = binaryReader.ReadTagReference();
     this.LoadingBeginText    = binaryReader.ReadInt16();
     this.LoadingEndText      = binaryReader.ReadInt16();
     this.CheckpointBeginText = binaryReader.ReadInt16();
     this.CheckpointEndText   = binaryReader.ReadInt16();
     this.CheckpointSound     = binaryReader.ReadTagReference();
     this.fieldpad14          = binaryReader.ReadBytes(96);
     pointerQueue             = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.NewGlobals.ReadFields(binaryReader)));
     return(pointerQueue);
 }
 public override void SetAnchor(AnchorEnum anchor)
 {
     myMainView.Anchor = anchor;
 }
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.Anchor       = ((AnchorEnum)(binaryReader.ReadInt16()));
     this.fieldpad     = binaryReader.ReadBytes(2);
     this.fieldpad0    = binaryReader.ReadBytes(32);
     this.AnchorOffset = binaryReader.ReadPoint();
     this.WidthScale   = binaryReader.ReadSingle();
     this.HeightScale  = binaryReader.ReadSingle();
     this.UnitHudInterfaceScalingFlags = ((ScalingFlags)(binaryReader.ReadInt16()));
     this.fieldpad1                  = binaryReader.ReadBytes(2);
     this.fieldpad2                  = binaryReader.ReadBytes(20);
     this.InterfaceBitmap            = binaryReader.ReadTagReference();
     this.DefaultColor               = binaryReader.ReadColourA1R1G1B1();
     this.FlashingColor              = binaryReader.ReadColourA1R1G1B1();
     this.FlashPeriod                = binaryReader.ReadSingle();
     this.FlashDelay                 = binaryReader.ReadSingle();
     this.NumberOfFlashes            = binaryReader.ReadInt16();
     this.UnitHudInterfaceFlashFlags = ((FlashFlags)(binaryReader.ReadInt16()));
     this.FlashLength                = binaryReader.ReadSingle();
     this.DisabledColor              = binaryReader.ReadColourA1R1G1B1();
     this.fieldpad3                  = binaryReader.ReadBytes(4);
     this.SequenceIndex              = binaryReader.ReadInt16();
     this.fieldpad4                  = binaryReader.ReadBytes(2);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(452));
     this.fieldpad5     = binaryReader.ReadBytes(4);
     this.AnchorOffset0 = binaryReader.ReadPoint();
     this.WidthScale0   = binaryReader.ReadSingle();
     this.HeightScale0  = binaryReader.ReadSingle();
     this.UnitHudInterfaceUnitHudInterfaceScalingFlags0 = ((UnitHudInterfaceScalingFlags0)(binaryReader.ReadInt16()));
     this.fieldpad6        = binaryReader.ReadBytes(2);
     this.fieldpad7        = binaryReader.ReadBytes(20);
     this.InterfaceBitmap0 = binaryReader.ReadTagReference();
     this.DefaultColor0    = binaryReader.ReadColourA1R1G1B1();
     this.FlashingColor0   = binaryReader.ReadColourA1R1G1B1();
     this.FlashPeriod0     = binaryReader.ReadSingle();
     this.FlashDelay0      = binaryReader.ReadSingle();
     this.NumberOfFlashes0 = binaryReader.ReadInt16();
     this.UnitHudInterfaceUnitHudInterfaceFlashFlags0 = ((UnitHudInterfaceFlashFlags0)(binaryReader.ReadInt16()));
     this.FlashLength0   = binaryReader.ReadSingle();
     this.DisabledColor0 = binaryReader.ReadColourA1R1G1B1();
     this.fieldpad8      = binaryReader.ReadBytes(4);
     this.SequenceIndex0 = binaryReader.ReadInt16();
     this.fieldpad9      = binaryReader.ReadBytes(2);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(452));
     this.fieldpad10    = binaryReader.ReadBytes(4);
     this.AnchorOffset1 = binaryReader.ReadPoint();
     this.WidthScale1   = binaryReader.ReadSingle();
     this.HeightScale1  = binaryReader.ReadSingle();
     this.UnitHudInterfaceUnitHudInterfaceScalingFlags1 = ((UnitHudInterfaceScalingFlags1)(binaryReader.ReadInt16()));
     this.fieldpad11            = binaryReader.ReadBytes(2);
     this.fieldpad12            = binaryReader.ReadBytes(20);
     this.MeterBitmap           = binaryReader.ReadTagReference();
     this.ColorAtMeterMinimum   = binaryReader.ReadColourR1G1B1();
     this.ColorAtMeterMaximum   = binaryReader.ReadColourR1G1B1();
     this.FlashColor            = binaryReader.ReadColourR1G1B1();
     this.EmptyColor            = binaryReader.ReadColourA1R1G1B1();
     this.UnitHudInterfaceFlags = ((Flags)(binaryReader.ReadByte()));
     this.MinumumMeterValue     = binaryReader.ReadByte();
     this.SequenceIndex1        = binaryReader.ReadInt16();
     this.AlphaMultiplier       = binaryReader.ReadByte();
     this.AlphaBias             = binaryReader.ReadByte();
     this.ValueScale            = binaryReader.ReadInt16();
     this.Opacity        = binaryReader.ReadSingle();
     this.Translucency   = binaryReader.ReadSingle();
     this.DisabledColor1 = binaryReader.ReadColourA1R1G1B1();
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(0));
     this.fieldpad13             = binaryReader.ReadBytes(4);
     this.OverchargeMinimumColor = binaryReader.ReadColourR1G1B1();
     this.OverchargeMaximumColor = binaryReader.ReadColourR1G1B1();
     this.OverchargeFlashColor   = binaryReader.ReadColourR1G1B1();
     this.OverchargeEmptyColor   = binaryReader.ReadColourR1G1B1();
     this.fieldpad14             = binaryReader.ReadBytes(16);
     this.AnchorOffset2          = binaryReader.ReadPoint();
     this.WidthScale2            = binaryReader.ReadSingle();
     this.HeightScale2           = binaryReader.ReadSingle();
     this.UnitHudInterfaceUnitHudInterfaceScalingFlags2 = ((UnitHudInterfaceScalingFlags2)(binaryReader.ReadInt16()));
     this.fieldpad15       = binaryReader.ReadBytes(2);
     this.fieldpad16       = binaryReader.ReadBytes(20);
     this.InterfaceBitmap1 = binaryReader.ReadTagReference();
     this.DefaultColor1    = binaryReader.ReadColourA1R1G1B1();
     this.FlashingColor1   = binaryReader.ReadColourA1R1G1B1();
     this.FlashPeriod1     = binaryReader.ReadSingle();
     this.FlashDelay1      = binaryReader.ReadSingle();
     this.NumberOfFlashes1 = binaryReader.ReadInt16();
     this.UnitHudInterfaceUnitHudInterfaceFlashFlags1 = ((UnitHudInterfaceFlashFlags1)(binaryReader.ReadInt16()));
     this.FlashLength1   = binaryReader.ReadSingle();
     this.DisabledColor2 = binaryReader.ReadColourA1R1G1B1();
     this.fieldpad17     = binaryReader.ReadBytes(4);
     this.SequenceIndex2 = binaryReader.ReadInt16();
     this.fieldpad18     = binaryReader.ReadBytes(2);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(452));
     this.fieldpad19    = binaryReader.ReadBytes(4);
     this.AnchorOffset3 = binaryReader.ReadPoint();
     this.WidthScale3   = binaryReader.ReadSingle();
     this.HeightScale3  = binaryReader.ReadSingle();
     this.UnitHudInterfaceUnitHudInterfaceScalingFlags3 = ((UnitHudInterfaceScalingFlags3)(binaryReader.ReadInt16()));
     this.fieldpad20           = binaryReader.ReadBytes(2);
     this.fieldpad21           = binaryReader.ReadBytes(20);
     this.MeterBitmap0         = binaryReader.ReadTagReference();
     this.ColorAtMeterMinimum0 = binaryReader.ReadColourR1G1B1();
     this.ColorAtMeterMaximum0 = binaryReader.ReadColourR1G1B1();
     this.FlashColor0          = binaryReader.ReadColourR1G1B1();
     this.EmptyColor0          = binaryReader.ReadColourA1R1G1B1();
     this.UnitHudInterfaceUnitHudInterfaceFlags0 = ((UnitHudInterfaceFlags0)(binaryReader.ReadByte()));
     this.MinumumMeterValue0 = binaryReader.ReadByte();
     this.SequenceIndex3     = binaryReader.ReadInt16();
     this.AlphaMultiplier0   = binaryReader.ReadByte();
     this.AlphaBias0         = binaryReader.ReadByte();
     this.ValueScale0        = binaryReader.ReadInt16();
     this.Opacity0           = binaryReader.ReadSingle();
     this.Translucency0      = binaryReader.ReadSingle();
     this.DisabledColor3     = binaryReader.ReadColourA1R1G1B1();
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(0));
     this.fieldpad22                   = binaryReader.ReadBytes(4);
     this.MediumHealthLeftColor        = binaryReader.ReadColourR1G1B1();
     this.MaxColorHealthFractionCutoff = binaryReader.ReadSingle();
     this.MinColorHealthFractionCutoff = binaryReader.ReadSingle();
     this.fieldpad23                   = binaryReader.ReadBytes(20);
     this.AnchorOffset4                = binaryReader.ReadPoint();
     this.WidthScale4                  = binaryReader.ReadSingle();
     this.HeightScale4                 = binaryReader.ReadSingle();
     this.UnitHudInterfaceUnitHudInterfaceScalingFlags4 = ((UnitHudInterfaceScalingFlags4)(binaryReader.ReadInt16()));
     this.fieldpad24       = binaryReader.ReadBytes(2);
     this.fieldpad25       = binaryReader.ReadBytes(20);
     this.InterfaceBitmap2 = binaryReader.ReadTagReference();
     this.DefaultColor2    = binaryReader.ReadColourA1R1G1B1();
     this.FlashingColor2   = binaryReader.ReadColourA1R1G1B1();
     this.FlashPeriod2     = binaryReader.ReadSingle();
     this.FlashDelay2      = binaryReader.ReadSingle();
     this.NumberOfFlashes2 = binaryReader.ReadInt16();
     this.UnitHudInterfaceUnitHudInterfaceFlashFlags2 = ((UnitHudInterfaceFlashFlags2)(binaryReader.ReadInt16()));
     this.FlashLength2   = binaryReader.ReadSingle();
     this.DisabledColor4 = binaryReader.ReadColourA1R1G1B1();
     this.fieldpad26     = binaryReader.ReadBytes(4);
     this.SequenceIndex4 = binaryReader.ReadInt16();
     this.fieldpad27     = binaryReader.ReadBytes(2);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(452));
     this.fieldpad28    = binaryReader.ReadBytes(4);
     this.AnchorOffset5 = binaryReader.ReadPoint();
     this.WidthScale5   = binaryReader.ReadSingle();
     this.HeightScale5  = binaryReader.ReadSingle();
     this.UnitHudInterfaceUnitHudInterfaceScalingFlags5 = ((UnitHudInterfaceScalingFlags5)(binaryReader.ReadInt16()));
     this.fieldpad29       = binaryReader.ReadBytes(2);
     this.fieldpad30       = binaryReader.ReadBytes(20);
     this.InterfaceBitmap3 = binaryReader.ReadTagReference();
     this.DefaultColor3    = binaryReader.ReadColourA1R1G1B1();
     this.FlashingColor3   = binaryReader.ReadColourA1R1G1B1();
     this.FlashPeriod3     = binaryReader.ReadSingle();
     this.FlashDelay3      = binaryReader.ReadSingle();
     this.NumberOfFlashes3 = binaryReader.ReadInt16();
     this.UnitHudInterfaceUnitHudInterfaceFlashFlags3 = ((UnitHudInterfaceFlashFlags3)(binaryReader.ReadInt16()));
     this.FlashLength3   = binaryReader.ReadSingle();
     this.DisabledColor5 = binaryReader.ReadColourA1R1G1B1();
     this.fieldpad31     = binaryReader.ReadBytes(4);
     this.SequenceIndex5 = binaryReader.ReadInt16();
     this.fieldpad32     = binaryReader.ReadBytes(2);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(452));
     this.fieldpad33    = binaryReader.ReadBytes(4);
     this.fieldpad34    = binaryReader.ReadBytes(32);
     this.AnchorOffset6 = binaryReader.ReadPoint();
     this.WidthScale6   = binaryReader.ReadSingle();
     this.HeightScale6  = binaryReader.ReadSingle();
     this.UnitHudInterfaceUnitHudInterfaceScalingFlags6 = ((UnitHudInterfaceScalingFlags6)(binaryReader.ReadInt16()));
     this.fieldpad35 = binaryReader.ReadBytes(2);
     this.fieldpad36 = binaryReader.ReadBytes(20);
     this.UnitHudInterfaceUnitHudInterfaceAnchor = ((UnitHudInterfaceAnchorEnum)(binaryReader.ReadInt16()));
     this.fieldpad37 = binaryReader.ReadBytes(2);
     this.fieldpad38 = binaryReader.ReadBytes(32);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(120));
     this.fieldpad39 = binaryReader.ReadBytes(16);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(48));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(297));
     this.NewHud     = binaryReader.ReadTagReference();
     this.fieldpad40 = binaryReader.ReadBytes(356);
     this.fieldpad41 = binaryReader.ReadBytes(48);
     return(pointerQueue);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCorporationsCorporationIdStarbasesStarbaseIdOk" /> class.
 /// </summary>
 /// <param name="fuelBayView">Who can view the starbase (POS)&#39;s fule bay. Characters either need to have required role or belong to the starbase (POS) owner&#39;s corporation or alliance, as described by the enum, all other access settings follows the same scheme (required).</param>
 /// <param name="fuelBayTake">Who can take fuel blocks out of the starbase (POS)&#39;s fuel bay (required).</param>
 /// <param name="anchor">Who can anchor starbase (POS) and its structures (required).</param>
 /// <param name="unanchor">Who can unanchor starbase (POS) and its structures (required).</param>
 /// <param name="online">Who can online starbase (POS) and its structures (required).</param>
 /// <param name="offline">Who can offline starbase (POS) and its structures (required).</param>
 /// <param name="allowCorporationMembers">allow_corporation_members boolean (required).</param>
 /// <param name="allowAllianceMembers">allow_alliance_members boolean (required).</param>
 /// <param name="useAllianceStandings">True if the starbase (POS) is using alliance standings, otherwise using corporation&#39;s (required).</param>
 /// <param name="attackStandingThreshold">Starbase (POS) will attack if target&#39;s standing is lower than this value.</param>
 /// <param name="attackSecurityStatusThreshold">Starbase (POS) will attack if target&#39;s security standing is lower than this value.</param>
 /// <param name="attackIfOtherSecurityStatusDropping">attack_if_other_security_status_dropping boolean (required).</param>
 /// <param name="attackIfAtWar">attack_if_at_war boolean (required).</param>
 /// <param name="fuels">Fuel blocks and other things that will be consumed when operating a starbase (POS).</param>
 public GetCorporationsCorporationIdStarbasesStarbaseIdOk(FuelBayViewEnum fuelBayView = default(FuelBayViewEnum), FuelBayTakeEnum fuelBayTake = default(FuelBayTakeEnum), AnchorEnum anchor = default(AnchorEnum), UnanchorEnum unanchor = default(UnanchorEnum), OnlineEnum online = default(OnlineEnum), OfflineEnum offline = default(OfflineEnum), bool?allowCorporationMembers = default(bool?), bool?allowAllianceMembers = default(bool?), bool?useAllianceStandings = default(bool?), float?attackStandingThreshold = default(float?), float?attackSecurityStatusThreshold = default(float?), bool?attackIfOtherSecurityStatusDropping = default(bool?), bool?attackIfAtWar = default(bool?), List <GetCorporationsCorporationIdStarbasesStarbaseIdFuel> fuels = default(List <GetCorporationsCorporationIdStarbasesStarbaseIdFuel>))
 {
     // to ensure "fuelBayView" is required (not null)
     if (fuelBayView == null)
     {
         throw new InvalidDataException("fuelBayView is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.FuelBayView = fuelBayView;
     }
     // to ensure "fuelBayTake" is required (not null)
     if (fuelBayTake == null)
     {
         throw new InvalidDataException("fuelBayTake is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.FuelBayTake = fuelBayTake;
     }
     // to ensure "anchor" is required (not null)
     if (anchor == null)
     {
         throw new InvalidDataException("anchor is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.Anchor = anchor;
     }
     // to ensure "unanchor" is required (not null)
     if (unanchor == null)
     {
         throw new InvalidDataException("unanchor is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.Unanchor = unanchor;
     }
     // to ensure "online" is required (not null)
     if (online == null)
     {
         throw new InvalidDataException("online is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.Online = online;
     }
     // to ensure "offline" is required (not null)
     if (offline == null)
     {
         throw new InvalidDataException("offline is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.Offline = offline;
     }
     // to ensure "allowCorporationMembers" is required (not null)
     if (allowCorporationMembers == null)
     {
         throw new InvalidDataException("allowCorporationMembers is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.AllowCorporationMembers = allowCorporationMembers;
     }
     // to ensure "allowAllianceMembers" is required (not null)
     if (allowAllianceMembers == null)
     {
         throw new InvalidDataException("allowAllianceMembers is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.AllowAllianceMembers = allowAllianceMembers;
     }
     // to ensure "useAllianceStandings" is required (not null)
     if (useAllianceStandings == null)
     {
         throw new InvalidDataException("useAllianceStandings is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.UseAllianceStandings = useAllianceStandings;
     }
     // to ensure "attackIfOtherSecurityStatusDropping" is required (not null)
     if (attackIfOtherSecurityStatusDropping == null)
     {
         throw new InvalidDataException("attackIfOtherSecurityStatusDropping is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.AttackIfOtherSecurityStatusDropping = attackIfOtherSecurityStatusDropping;
     }
     // to ensure "attackIfAtWar" is required (not null)
     if (attackIfAtWar == null)
     {
         throw new InvalidDataException("attackIfAtWar is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.AttackIfAtWar = attackIfAtWar;
     }
     this.AttackStandingThreshold       = attackStandingThreshold;
     this.AttackSecurityStatusThreshold = attackSecurityStatusThreshold;
     this.Fuels = fuels;
 }
예제 #13
0
 public override void SetAnchor(AnchorEnum anchor)
 {
     myAnchor = anchor;
 }
예제 #14
0
 public DSTitleView(RectOffset margins, bool shouldDisplayFrame,
                    GUIContent title, AnchorEnum titleAlignment, bool titleSeperator,
                    DSView subview)
     : this(margins, shouldDisplayFrame, title, titleAlignment, titleSeperator,
            (v, f) => { subview.Display(f); },
            (v, f) => { return(subview.GetSizeToDisplay(f)); }) {}
예제 #15
0
 public override void SetAnchor(AnchorEnum anchor)
 {
     myMainView.SetAnchor(anchor);
 }
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.Anchor       = ((AnchorEnum)(binaryReader.ReadInt16()));
     this.fieldpad     = binaryReader.ReadBytes(2);
     this.fieldpad0    = binaryReader.ReadBytes(32);
     this.AnchorOffset = binaryReader.ReadPoint();
     this.WidthScale   = binaryReader.ReadSingle();
     this.HeightScale  = binaryReader.ReadSingle();
     this.GrenadeHudInterfaceScalingFlags = ((ScalingFlags)(binaryReader.ReadInt16()));
     this.fieldpad1       = binaryReader.ReadBytes(2);
     this.fieldpad2       = binaryReader.ReadBytes(20);
     this.InterfaceBitmap = binaryReader.ReadTagReference();
     this.DefaultColor    = binaryReader.ReadColourA1R1G1B1();
     this.FlashingColor   = binaryReader.ReadColourA1R1G1B1();
     this.FlashPeriod     = binaryReader.ReadSingle();
     this.FlashDelay      = binaryReader.ReadSingle();
     this.NumberOfFlashes = binaryReader.ReadInt16();
     this.GrenadeHudInterfaceFlashFlags = ((FlashFlags)(binaryReader.ReadInt16()));
     this.FlashLength   = binaryReader.ReadSingle();
     this.DisabledColor = binaryReader.ReadColourA1R1G1B1();
     this.fieldpad3     = binaryReader.ReadBytes(4);
     this.SequenceIndex = binaryReader.ReadInt16();
     this.fieldpad4     = binaryReader.ReadBytes(2);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(452));
     this.fieldpad5     = binaryReader.ReadBytes(4);
     this.AnchorOffset0 = binaryReader.ReadPoint();
     this.WidthScale0   = binaryReader.ReadSingle();
     this.HeightScale0  = binaryReader.ReadSingle();
     this.GrenadeHudInterfaceGrenadeHudInterfaceScalingFlags0 = ((GrenadeHudInterfaceScalingFlags0)(binaryReader.ReadInt16()));
     this.fieldpad6        = binaryReader.ReadBytes(2);
     this.fieldpad7        = binaryReader.ReadBytes(20);
     this.InterfaceBitmap0 = binaryReader.ReadTagReference();
     this.DefaultColor0    = binaryReader.ReadColourA1R1G1B1();
     this.FlashingColor0   = binaryReader.ReadColourA1R1G1B1();
     this.FlashPeriod0     = binaryReader.ReadSingle();
     this.FlashDelay0      = binaryReader.ReadSingle();
     this.NumberOfFlashes0 = binaryReader.ReadInt16();
     this.GrenadeHudInterfaceGrenadeHudInterfaceFlashFlags0 = ((GrenadeHudInterfaceFlashFlags0)(binaryReader.ReadInt16()));
     this.FlashLength0   = binaryReader.ReadSingle();
     this.DisabledColor0 = binaryReader.ReadColourA1R1G1B1();
     this.fieldpad8      = binaryReader.ReadBytes(4);
     this.SequenceIndex0 = binaryReader.ReadInt16();
     this.fieldpad9      = binaryReader.ReadBytes(2);
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(452));
     this.fieldpad10    = binaryReader.ReadBytes(4);
     this.AnchorOffset1 = binaryReader.ReadPoint();
     this.WidthScale1   = binaryReader.ReadSingle();
     this.HeightScale1  = binaryReader.ReadSingle();
     this.GrenadeHudInterfaceGrenadeHudInterfaceScalingFlags1 = ((GrenadeHudInterfaceScalingFlags1)(binaryReader.ReadInt16()));
     this.fieldpad11       = binaryReader.ReadBytes(2);
     this.fieldpad12       = binaryReader.ReadBytes(20);
     this.DefaultColor1    = binaryReader.ReadColourA1R1G1B1();
     this.FlashingColor1   = binaryReader.ReadColourA1R1G1B1();
     this.FlashPeriod1     = binaryReader.ReadSingle();
     this.FlashDelay1      = binaryReader.ReadSingle();
     this.NumberOfFlashes1 = binaryReader.ReadInt16();
     this.GrenadeHudInterfaceGrenadeHudInterfaceFlashFlags1 = ((GrenadeHudInterfaceFlashFlags1)(binaryReader.ReadInt16()));
     this.FlashLength1             = binaryReader.ReadSingle();
     this.DisabledColor1           = binaryReader.ReadColourA1R1G1B1();
     this.fieldpad13               = binaryReader.ReadBytes(4);
     this.MaximumNumberOfDigits    = binaryReader.ReadByte();
     this.GrenadeHudInterfaceFlags = ((Flags)(binaryReader.ReadByte()));
     this.NumberOfFractionalDigits = binaryReader.ReadByte();
     this.fieldpad14               = binaryReader.ReadBytes(1);
     this.fieldpad15               = binaryReader.ReadBytes(12);
     this.FlashCutoff              = binaryReader.ReadInt16();
     this.fieldpad16               = binaryReader.ReadBytes(2);
     this.OverlayBitmap            = binaryReader.ReadTagReference();
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(136));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(48));
     this.fieldpad17                = binaryReader.ReadBytes(68);
     this.SequenceIndex1            = binaryReader.ReadInt16();
     this.WidthOffset               = binaryReader.ReadInt16();
     this.OffsetFromReferenceCorner = binaryReader.ReadPoint();
     this.OverrideIconColor         = binaryReader.ReadColourA1R1G1B1();
     this.FrameRate030              = binaryReader.ReadByte();
     this.GrenadeHudInterfaceGrenadeHudInterfaceFlags0 = ((GrenadeHudInterfaceFlags0)(binaryReader.ReadByte()));
     this.TextIndex  = binaryReader.ReadInt16();
     this.fieldpad18 = binaryReader.ReadBytes(48);
     return(pointerQueue);
 }
예제 #17
0
 public abstract void        SetAnchor(AnchorEnum anchor);
예제 #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCorporationsCorporationIdStarbasesStarbaseIdOk" /> class.
 /// </summary>
 /// <param name="AllowAllianceMembers">allow_alliance_members boolean (required).</param>
 /// <param name="AllowCorporationMembers">allow_corporation_members boolean (required).</param>
 /// <param name="Anchor">Who can anchor starbase (POS) and its structures (required).</param>
 /// <param name="AttackIfAtWar">attack_if_at_war boolean (required).</param>
 /// <param name="AttackIfOtherSecurityStatusDropping">attack_if_other_security_status_dropping boolean (required).</param>
 /// <param name="AttackSecurityStatusThreshold">Starbase (POS) will attack if target&#39;s security standing is lower than this value.</param>
 /// <param name="AttackStandingThreshold">Starbase (POS) will attack if target&#39;s standing is lower than this value.</param>
 /// <param name="FuelBayTake">Who can take fuel blocks out of the starbase (POS)&#39;s fuel bay (required).</param>
 /// <param name="FuelBayView">Who can view the starbase (POS)&#39;s fule bay. Characters either need to have required role or belong to the starbase (POS) owner&#39;s corporation or alliance, as described by the enum, all other access settings follows the same scheme (required).</param>
 /// <param name="Fuels">Fuel blocks and other things that will be consumed when operating a starbase (POS).</param>
 /// <param name="Offline">Who can offline starbase (POS) and its structures (required).</param>
 /// <param name="Online">Who can online starbase (POS) and its structures (required).</param>
 /// <param name="Unanchor">Who can unanchor starbase (POS) and its structures (required).</param>
 /// <param name="UseAllianceStandings">True if the starbase (POS) is using alliance standings, otherwise using corporation&#39;s (required).</param>
 public GetCorporationsCorporationIdStarbasesStarbaseIdOk(bool?AllowAllianceMembers = default(bool?), bool?AllowCorporationMembers = default(bool?), AnchorEnum Anchor = default(AnchorEnum), bool?AttackIfAtWar = default(bool?), bool?AttackIfOtherSecurityStatusDropping = default(bool?), float?AttackSecurityStatusThreshold = default(float?), float?AttackStandingThreshold = default(float?), FuelBayTakeEnum FuelBayTake = default(FuelBayTakeEnum), FuelBayViewEnum FuelBayView = default(FuelBayViewEnum), List <GetCorporationsCorporationIdStarbasesStarbaseIdFuel> Fuels = default(List <GetCorporationsCorporationIdStarbasesStarbaseIdFuel>), OfflineEnum Offline = default(OfflineEnum), OnlineEnum Online = default(OnlineEnum), UnanchorEnum Unanchor = default(UnanchorEnum), bool?UseAllianceStandings = default(bool?))
 {
     // to ensure "AllowAllianceMembers" is required (not null)
     if (AllowAllianceMembers == null)
     {
         throw new InvalidDataException("AllowAllianceMembers is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.AllowAllianceMembers = AllowAllianceMembers;
     }
     // to ensure "AllowCorporationMembers" is required (not null)
     if (AllowCorporationMembers == null)
     {
         throw new InvalidDataException("AllowCorporationMembers is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.AllowCorporationMembers = AllowCorporationMembers;
     }
     // to ensure "Anchor" is required (not null)
     if (Anchor == null)
     {
         throw new InvalidDataException("Anchor is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.Anchor = Anchor;
     }
     // to ensure "AttackIfAtWar" is required (not null)
     if (AttackIfAtWar == null)
     {
         throw new InvalidDataException("AttackIfAtWar is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.AttackIfAtWar = AttackIfAtWar;
     }
     // to ensure "AttackIfOtherSecurityStatusDropping" is required (not null)
     if (AttackIfOtherSecurityStatusDropping == null)
     {
         throw new InvalidDataException("AttackIfOtherSecurityStatusDropping is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.AttackIfOtherSecurityStatusDropping = AttackIfOtherSecurityStatusDropping;
     }
     // to ensure "FuelBayTake" is required (not null)
     if (FuelBayTake == null)
     {
         throw new InvalidDataException("FuelBayTake is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.FuelBayTake = FuelBayTake;
     }
     // to ensure "FuelBayView" is required (not null)
     if (FuelBayView == null)
     {
         throw new InvalidDataException("FuelBayView is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.FuelBayView = FuelBayView;
     }
     // to ensure "Offline" is required (not null)
     if (Offline == null)
     {
         throw new InvalidDataException("Offline is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.Offline = Offline;
     }
     // to ensure "Online" is required (not null)
     if (Online == null)
     {
         throw new InvalidDataException("Online is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.Online = Online;
     }
     // to ensure "Unanchor" is required (not null)
     if (Unanchor == null)
     {
         throw new InvalidDataException("Unanchor is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.Unanchor = Unanchor;
     }
     // to ensure "UseAllianceStandings" is required (not null)
     if (UseAllianceStandings == null)
     {
         throw new InvalidDataException("UseAllianceStandings is a required property for GetCorporationsCorporationIdStarbasesStarbaseIdOk and cannot be null");
     }
     else
     {
         this.UseAllianceStandings = UseAllianceStandings;
     }
     this.AttackSecurityStatusThreshold = AttackSecurityStatusThreshold;
     this.AttackStandingThreshold       = AttackStandingThreshold;
     this.Fuels = Fuels;
 }