Add readonly to structs

This commit is contained in:
teinarss
2021-01-29 16:56:11 +01:00
committed by abcdefg30
parent 65c796dec7
commit 6b74093c04
83 changed files with 146 additions and 125 deletions

View File

@@ -35,7 +35,7 @@ namespace OpenRA.Mods.Common.FileFormats
Next = 0x2
}
struct FileGroup
readonly struct FileGroup
{
public readonly string Name;
public readonly uint FirstFile;
@@ -55,7 +55,7 @@ namespace OpenRA.Mods.Common.FileFormats
}
}
struct CabDescriptor
readonly struct CabDescriptor
{
public readonly long FileTableOffset;
public readonly uint FileTableSize;
@@ -78,7 +78,7 @@ namespace OpenRA.Mods.Common.FileFormats
}
}
struct DirectoryDescriptor
readonly struct DirectoryDescriptor
{
public readonly string Name;
@@ -94,7 +94,7 @@ namespace OpenRA.Mods.Common.FileFormats
}
}
struct FileDescriptor
readonly struct FileDescriptor
{
public readonly uint Index;
public readonly CABFlags Flags;
@@ -142,7 +142,7 @@ namespace OpenRA.Mods.Common.FileFormats
}
}
struct CommonHeader
readonly struct CommonHeader
{
public const long Size = 16;
public readonly uint Version;
@@ -159,7 +159,7 @@ namespace OpenRA.Mods.Common.FileFormats
}
}
struct VolumeHeader
readonly struct VolumeHeader
{
public readonly uint DataOffset;
public readonly uint DataOffsetHigh;