Beispiel #1
0
        public override void ReadData(CitpBinaryReader data)
        {
            base.ReadData(data);

            int count = data.ReadUInt16();

            for (int n = 0; n < count; n++)
            {
                FixtureChange change = new FixtureChange()
                {
                    FixtureId     = data.ReadUInt32(),
                    ChangedFields = (Modification)data.ReadByte(),
                    Patched       = data.ReadBoolean(),
                    DMXUniverse   = data.ReadByte(),
                    DMXAddress    = data.ReadUInt16(),
                    Unit          = data.ReadUcs2(),
                    Channel       = data.ReadUInt16(),
                    Circuit       = data.ReadUcs2(),
                    Note          = data.ReadUcs2(),
                    Position      = new Coordinate()
                    {
                        X = data.ReadSingle(), Y = data.ReadSingle(), Z = data.ReadSingle()
                    },
                    Angle = new Coordinate()
                    {
                        X = data.ReadSingle(), Y = data.ReadSingle(), Z = data.ReadSingle()
                    }
                };
                Fixtures.Add(change);
            }
        }
Beispiel #2
0
        public override void ReadData(CitpBinaryReader data)
        {
            base.ReadData(data);

            int count = data.ReadUInt16();

            Fixtures.Clear();
            for (int n = 0; n < count; n++)
            {
                FixtureStatus status = new FixtureStatus()
                {
                    FixtureId = data.ReadUInt32(),
                    Locked    = data.ReadBoolean(),
                    Clearable = data.ReadBoolean()
                };

                Fixtures.Add(status);
            }
        }
Beispiel #3
0
        public override void ReadData(CitpBinaryReader data)
        {
            base.ReadData(data);

            Type = (FixtureChanges)data.ReadByte();

            int count = data.ReadUInt16();

            Fixtures.Clear();
            for (int n = 0; n < count; n++)
            {
                FixtureInformation information = new FixtureInformation()
                {
                    FixtureId        = data.ReadUInt32(),
                    ManufacturerName = data.ReadUcs2(),
                    FixtureName      = data.ReadUcs2(),
                    ModeName         = data.ReadUcs2(),
                    ChannelCount     = data.ReadUInt16(),
                    IsDimmer         = data.ReadBoolean(),
                    Links            = ReadLinks(data),
                    IsPatched        = data.ReadBoolean(),
                    DMXUniverse      = data.ReadByte(),
                    DMXAddress       = data.ReadUInt16(),
                    Unit             = data.ReadUcs2(),
                    Channel          = data.ReadUInt16(),
                    Circuit          = data.ReadUcs2(),
                    Note             = data.ReadUcs2(),
                    Position         = new Coordinate()
                    {
                        X = data.ReadSingle(), Y = data.ReadSingle(), Z = data.ReadSingle()
                    },
                    Angle = new Coordinate()
                    {
                        X = data.ReadSingle(), Y = data.ReadSingle(), Z = data.ReadSingle()
                    }
                };
                Fixtures.Add(information);
            }
        }
Beispiel #4
0
        public override void ReadData(CitpBinaryReader data)
        {
            base.ReadData(data);

            Complete = data.ReadBoolean();
            data.ReadByte();

            int fixtureCount = data.ReadUInt16();

            for (int n = 0; n < fixtureCount; n++)
            {
                FixtureIdentifiers.Add(data.ReadUInt16());
            }
        }
        protected override void DeserializeFromStream(CitpBinaryReader reader)
        {
            base.DeserializeFromStream(reader);

            IsBlind       = reader.ReadBoolean();
            UniverseIndex = reader.ReadByte();
            FirstChannel  = reader.ReadUInt16();

            ushort channelLevelsCount = reader.ReadUInt16();

            ChannelLevels = new List <byte>(channelLevelsCount);
            for (int i = 0; i < channelLevelsCount; ++i)
            {
                ChannelLevels.Add(reader.ReadByte());
            }
        }
        public override void ReadData(CitpBinaryReader data)
        {
            base.ReadData(data);
            Availability = data.ReadBoolean();
            int optionCount = data.ReadByte();

            Options = new List <CueRecordingOption>(optionCount);
            for (int n = 0; n < optionCount; n++)
            {
                CueRecordingOption option = new CueRecordingOption()
                {
                    Name    = data.ReadUcs2(),
                    Choices = new List <string>(data.ReadUcs2().Split("\t"[0])),
                    Help    = data.ReadUcs2()
                };
                Options.Add(option);
            }
        }