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();
     this.Position       = binaryReader.ReadVector3();
     this.ReferenceFrame = binaryReader.ReadInt16();
     this.fieldpad       = binaryReader.ReadBytes(2);
     this.Facing         = binaryReader.ReadVector2();
     this.ActorStartingLocationsFlags = ((Flags)(binaryReader.ReadInt32()));
     this.CharacterType          = binaryReader.ReadShortBlockIndex1();
     this.InitialWeapon          = binaryReader.ReadShortBlockIndex1();
     this.InitialSecondaryWeapon = binaryReader.ReadShortBlockIndex1();
     this.fieldpad0               = binaryReader.ReadBytes(2);
     this.VehicleType             = binaryReader.ReadShortBlockIndex1();
     this.SeatType                = ((SeatTypeEnum)(binaryReader.ReadInt16()));
     this.GrenadeType             = ((GrenadeTypeEnum)(binaryReader.ReadInt16()));
     this.SwarmCount              = binaryReader.ReadInt16();
     this.ActorVariantName        = binaryReader.ReadStringID();
     this.VehicleVariantName      = binaryReader.ReadStringID();
     this.InitialMovementDistance = binaryReader.ReadSingle();
     this.EmitterVehicle          = binaryReader.ReadShortBlockIndex1();
     this.InitialMovementMode     = ((InitialMovementModeEnum)(binaryReader.ReadInt16()));
     this.PlacementScript         = binaryReader.ReadString32();
     this.fieldskip               = binaryReader.ReadBytes(2);
     this.fieldpad1               = binaryReader.ReadBytes(2);
     return(pointerQueue);
 }
        private SeatType(int maxPlayers, bool realTypes = false)
        {
            switch (maxPlayers)
            {
            case -1:
            case 0:
                seatType = SeatTypeEnum.All;
                break;

            case 2:
                seatType = SeatTypeEnum.HeadsUp;
                break;

            case 3:
                seatType = realTypes ? SeatTypeEnum._6Max : SeatTypeEnum._3Handed;
                break;

            case 4:
                seatType = realTypes ? SeatTypeEnum._6Max : SeatTypeEnum._4Max;
                break;

            case 5:
                seatType = realTypes ? SeatTypeEnum._6Max : SeatTypeEnum._5Handed;
                break;

            case 6:
                seatType = SeatTypeEnum._6Max;
                break;

            case 7:
                seatType = realTypes ? SeatTypeEnum._FullRing_9Handed : SeatTypeEnum._7Handed;
                break;

            case 8:
                seatType = realTypes ? SeatTypeEnum._FullRing_9Handed : SeatTypeEnum._8Handed;
                break;

            case 9:
                seatType = SeatTypeEnum._FullRing_9Handed;
                break;

            case 10:
                seatType = SeatTypeEnum._FullRing_10Handed;
                break;

            default:
                throw new ArgumentOutOfRangeException("MaxPlayer, Must be between 0 and 10");
            }
        }
Esempio n. 3
0
 private SeatType(int maxPlayers, bool realTypes=false)
 {
     switch (maxPlayers)
     {
         case -1:
         case 0:
             seatType = SeatTypeEnum.All;
             break;
         case 2:
             seatType = SeatTypeEnum.HeadsUp;
             break;
         case 3:
             seatType = realTypes ? SeatTypeEnum._6Max : SeatTypeEnum._3Handed;
             break;
         case 4:
             seatType = realTypes ? SeatTypeEnum._6Max : SeatTypeEnum._4Max;
             break;
         case 5:
             seatType = realTypes ? SeatTypeEnum._6Max : SeatTypeEnum._5Handed;
             break;
         case 6:
             seatType = SeatTypeEnum._6Max;
             break;
         case 7:
             seatType = realTypes ? SeatTypeEnum._FullRing_9Handed : SeatTypeEnum._7Handed;
             break;
         case 8:
             seatType = realTypes ? SeatTypeEnum._FullRing_9Handed : SeatTypeEnum._8Handed;
             break;
         case 9:
             seatType = SeatTypeEnum._FullRing_9Handed;
             break;
         case 10:
             seatType = SeatTypeEnum._FullRing_10Handed;
             break;
         default:
             throw new ArgumentOutOfRangeException("MaxPlayer, Must be between 0 and 10");
     }
 }
 public Seat(string serialNumber, SeatPositionEnum position, string brand, SeatMaterialEnum material, SeatTypeEnum type) : base(serialNumber)
 {
     this.Brand    = brand;
     this.Material = material;
     this.Type     = type;
     this.Position = position;
 }
Esempio n. 5
0
 public SeatType(int type)
 {
     Type = (SeatTypeEnum)type;
 }
Esempio n. 6
0
 public SeatType(SeatTypeEnum type)
 {
     Type = type;
 }