ThemeEditor.Common.Themes.Theme.Read_ColorOffsets C# (CSharp) Метод

Read_ColorOffsets() приватный статический Метод

private static Read_ColorOffsets ( Stream s, Flags flags ) : ColorOffsets
s Stream
flags Flags
Результат ThemeEditor.Common.Themes.Offsets.ColorOffsets
        private static ColorOffsets Read_ColorOffsets(Stream s, Flags flags)
        {
            var offsets = new ColorOffsets();

            using (var br = new BinaryReader(s, Encoding.ASCII, true))
            {
                //Top Solid
                {
                    s.Position = 0x14;
                    offsets.TopBackground = br.ReadUInt32();
                }

                // Cursor
                {
                    s.Position = 0x30;
                    offsets.Cursor = br.ReadUInt32();
                }

                // 3D Folder
                {
                    s.Position = 0x38;
                    offsets.Folder = br.ReadUInt32();
                }

                // 3D File
                {
                    s.Position = 0x4C;
                    offsets.File = br.ReadUInt32();
                }

                // Arrow Button
                {
                    s.Position = 0x60;
                    offsets.ArrowButton = br.ReadUInt32();
                }

                // Arrows
                {
                    s.Position = 0x68;
                    offsets.Arrow = br.ReadUInt32();
                }

                // Open Button
                {
                    s.Position = 0x70;
                    offsets.Open = br.ReadUInt32();
                    offsets.Close = br.ReadUInt32();
                }

                // Game Text
                {
                    s.Position = 0x7C;
                    offsets.GameText = br.ReadUInt32();
                }

                // Bottom Solid
                {
                    s.Position = 0x84;
                    offsets.BottomSolid = br.ReadUInt32();
                }

                // Bottom Outer
                {
                    s.Position = 0x8C;
                    offsets.BottomOuter = br.ReadUInt32();
                }

                // Folder BG
                {
                    s.Position = 0x94;
                    offsets.FolderBackground = br.ReadUInt32();
                }

                // Folder Arr
                {
                    s.Position = 0x9C;
                    offsets.FolderArrow = br.ReadUInt32();
                }

                // Bottom Corner
                {
                    s.Position = 0xA4;
                    offsets.BottomCornerButton = br.ReadUInt32();
                }

                // Top Corner
                {
                    s.Position = 0xAC;
                    offsets.TopCornerButton = br.ReadUInt32();
                }

                // Demo Text
                {
                    s.Position = 0xB4;
                    offsets.DemoText = br.ReadUInt32();
                }
            }
            return offsets;
        }