Class FileEntry
- Namespace
- OmegaEngine.Foundation.Storage
- Assembly
- OmegaEngine.Foundation.dll
Describes a file returned by GetFileList(string, string).
public sealed class FileEntry : INamed, IHighlightColor, IEquatable<FileEntry>, IComparable<FileEntry>, IContextMenu
- Inheritance
-
objectFileEntry
- Implements
Properties
EntryType
The kind of file entry this is (in relation to its mod status).
public FileEntryType EntryType { get; set; }
Property Value
FileType
The type of file (e.g. Textures, Sounds, ...).
public string FileType { get; }
Property Value
Remarks
This is only used for file operations and not for sorting!
HighlightColor
The color to highlight this file entry with in list representations. Empty for Normal (no highlighting). Blue for Modified. Green for Added. Red for Deleted.
public Color HighlightColor { get; }
Property Value
Name
The relative file path.
public string Name { get; set; }
Property Value
Methods
Equals(FileEntry?)
public bool Equals(FileEntry? other)
Parameters
otherFileEntry
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetContextMenu()
Returns the context menu for this file entry; can be null.
public ContextMenuStrip? GetContextMenu()
Returns
GetHashCode()
public override int GetHashCode()