Table of Contents

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
object
FileEntry
Implements

Properties

EntryType

The kind of file entry this is (in relation to its mod status).

public FileEntryType EntryType { get; set; }

Property Value

FileEntryType

FileType

The type of file (e.g. Textures, Sounds, ...).

public string FileType { get; }

Property Value

string

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

Color

Name

The relative file path.

public string Name { get; set; }

Property Value

string

Methods

Equals(FileEntry?)

public bool Equals(FileEntry? other)

Parameters

other FileEntry

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetContextMenu()

Returns the context menu for this file entry; can be null.

public ContextMenuStrip? GetContextMenu()

Returns

ContextMenuStrip

GetHashCode()

public override int GetHashCode()

Returns

int