Table of Contents

Class DataBase

Namespace
Cobilas.GodotEngine.Utility.IO
Assembly
com.cobilas.godot.utility.dll

Base class for classes that represent system data files.

public abstract class DataBase : IDisposable, IFormattable
Inheritance
DataBase
Implements
Derived
Inherited Members

Constructors

DataBase(DataBase?, string?, ArchiveAttributes)

Creates a new instance of this object.

protected DataBase(DataBase? parent, string? dataName, ArchiveAttributes attributes)

Parameters

parent DataBase
dataName string
attributes ArchiveAttributes

Properties

Attributes

The attributes of the data file.

public abstract ArchiveAttributes Attributes { get; protected set; }

Property Value

ArchiveAttributes

Returns the attributes of the data file.

Name

Data file name.

public abstract string? Name { get; protected set; }

Property Value

string

Returns a string containing the name of the data file.

Parent

The parent element of the data file.

public abstract DataBase? Parent { get; protected set; }

Property Value

DataBase

Returns parent element of data file.

Path

The full path of the data file.

public abstract string Path { get; }

Property Value

string

Returns a string containing the full path of the data file.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public abstract void Dispose()

GetDataPath(DataBase?)

Gets the full path of a data file.

public static string GetDataPath(DataBase? data)

Parameters

data DataBase

The data file to be obtained is the full path.

Returns

string

It will return a string containing the full path of the data file.

ToString(string, IFormatProvider)

Formats the value of the current instance using the specified format.

public abstract string ToString(string format, IFormatProvider formatProvider)

Parameters

format string

The format to use.-or- A null reference (Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation.

formatProvider IFormatProvider

The provider to use to format the value.-or- A null reference (Nothing in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.

Returns

string

The value of the current instance in the specified format.