C# Класс Files.Manager.FileManager

Provides access to all of the game's files. Also takes care of loading archives.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
AddItem void
AddItem void
FileManager System
GenerateHash byte[]
GetFileList IEnumerable
GrabItem Stream
GrabItem Stream
GrabItem object
IsBMP bool
IsUTK bool
LoadAllArchives void

Открытые методы

Метод Описание
GetAnimation ( ulong AssetID ) : Anim

Gets a Anim instance from the FileManager.

GetAppearance ( ulong AssetID ) : Appearance

Gets an Appearance instance from the FileManager.

GetBinding ( ulong AssetID ) : Binding

Gets an Binding instance from the FileManager.

GetBindings ( List BindingIDs ) : Binding[]

Gets an array of Binding instances.

GetCollection ( ulong AssetID ) : Collection

Gets an Collection instance from the FileManager.

GetHLS ( uint ID ) : HLS

Gets an HLS instance from the FileManager.

GetHandgroup ( ulong AssetID ) : HandGroup

Gets an Handgroup instance from the FileManager.

GetIFF ( string Filename ) : Iff

Gets an IFF instance from the FileManager.

GetMesh ( ulong AssetID ) : Mesh

Gets a Mesh instance from the FileManager.

GetOutfit ( ulong AssetID ) : Outfit

Gets an Outfit instance from the FileManager.

GetPurchasableOutfit ( ulong AssetID ) : PurchasableOutfit

Gets an PurchasableOutfit instance from the FileManager.

GetSkeleton ( ulong AssetID ) : Skeleton

Gets an Skeleton instance from the FileManager.

GetSound ( uint ID ) : ISoundCodec

Gets a sound (XA or UTK) from the FileManager.

GetTRK ( uint ID ) : TRK

Gets an TRK instance from the FileManager.

GetTexture ( ulong AssetID, bool IsTGA = false ) : Microsoft.Xna.Framework.Graphics.Texture2D

Gets an Texture2D instance from the FileManager.

Initialize ( Microsoft.Xna.Framework.Game G, string StartupDir ) : void

Initializes the FileManager.

TrackExists ( uint ID ) : bool

Attempts to figure out if a track exists in the FileManager.

Приватные методы

Метод Описание
AddItem ( string Filename, Asset Item ) : void

Adds an asset to the FileManager's cache. This method should not be used directly.

AddItem ( ulong ID, Asset Item ) : void
FileManager ( ) : System
GenerateHash ( string Filename ) : byte[]
GetFileList ( string fileSearchPattern, string rootFolderPath ) : IEnumerable
GrabItem ( string Filename ) : Stream

Returns a Stream instance with data from the specified item.

GrabItem ( ulong ID, FAR3TypeIDs TypeID ) : Stream

Returns a Stream instance with data from the specified item.

GrabItem ( uint ID, TypeIDs TypeID ) : object

Returns a Stream instance with data from the specified item.

IsBMP ( Stream Data ) : bool

Checks if the supplied data is a BMP.

IsUTK ( Stream Data ) : bool

Checks if the supplied data is a BMP.

LoadAllArchives ( ) : void

Loads all archives into memory.

Описание методов

GetAnimation() публичный статический Метод

Gets a Anim instance from the FileManager.
public static GetAnimation ( ulong AssetID ) : Anim
AssetID ulong The FileID/InstanceID of the animation to get.
Результат Files.Vitaboy.Anim

GetAppearance() публичный статический Метод

Gets an Appearance instance from the FileManager.
public static GetAppearance ( ulong AssetID ) : Appearance
AssetID ulong The FileID/InstanceID of the Appearance to get.
Результат Files.Vitaboy.Appearance

GetBinding() публичный статический Метод

Gets an Binding instance from the FileManager.
public static GetBinding ( ulong AssetID ) : Binding
AssetID ulong The FileID/InstanceID of the Binding to get.
Результат Binding

GetBindings() публичный статический Метод

Gets an array of Binding instances.
public static GetBindings ( List BindingIDs ) : Binding[]
BindingIDs List A List<> of IDs of bindings.
Результат Binding[]

GetCollection() публичный статический Метод

Gets an Collection instance from the FileManager.
public static GetCollection ( ulong AssetID ) : Collection
AssetID ulong The FileID/InstanceID of the Collection to get.
Результат Files.Vitaboy.Collection

GetHLS() публичный статический Метод

Gets an HLS instance from the FileManager.
public static GetHLS ( uint ID ) : HLS
ID uint The FileID/InstanceID of the hitlist to get.
Результат Files.AudioLogic.HLS

GetHandgroup() публичный статический Метод

Gets an Handgroup instance from the FileManager.
public static GetHandgroup ( ulong AssetID ) : HandGroup
AssetID ulong The FileID/InstanceID of the Handgroup to get.
Результат Files.Vitaboy.HandGroup

GetIFF() публичный статический Метод

Gets an IFF instance from the FileManager.
public static GetIFF ( string Filename ) : Iff
Filename string The FileID/InstanceID of the IFF to get.
Результат Files.IFF.Iff

GetMesh() публичный статический Метод

Gets a Mesh instance from the FileManager.
public static GetMesh ( ulong AssetID ) : Mesh
AssetID ulong The FileID/InstanceID of the mesh to get.
Результат Files.Vitaboy.Mesh

GetOutfit() публичный статический Метод

Gets an Outfit instance from the FileManager.
public static GetOutfit ( ulong AssetID ) : Outfit
AssetID ulong ID of the outfit to get.
Результат Files.Vitaboy.Outfit

GetPurchasableOutfit() публичный статический Метод

Gets an PurchasableOutfit instance from the FileManager.
public static GetPurchasableOutfit ( ulong AssetID ) : PurchasableOutfit
AssetID ulong ID of the outfit to get.
Результат Files.Vitaboy.PurchasableOutfit

GetSkeleton() публичный статический Метод

Gets an Skeleton instance from the FileManager.
public static GetSkeleton ( ulong AssetID ) : Skeleton
AssetID ulong The FileID/InstanceID of the skeleton to get.
Результат Files.Vitaboy.Skeleton

GetSound() публичный статический Метод

Gets a sound (XA or UTK) from the FileManager.
public static GetSound ( uint ID ) : ISoundCodec
ID uint The FileID/InstanceID of the sound to get.
Результат ISoundCodec

GetTRK() публичный статический Метод

Gets an TRK instance from the FileManager.
public static GetTRK ( uint ID ) : TRK
ID uint The FileID/InstanceID of the track to get.
Результат Files.AudioLogic.TRK

GetTexture() публичный статический Метод

Gets an Texture2D instance from the FileManager.
public static GetTexture ( ulong AssetID, bool IsTGA = false ) : Microsoft.Xna.Framework.Graphics.Texture2D
AssetID ulong The FileID/InstanceID of the texture to get.
IsTGA bool Do you know ahead of time that the resource is a TGA? /// Set this to true to avoid a lot of try/catch branches.
Результат Microsoft.Xna.Framework.Graphics.Texture2D

Initialize() публичный статический Метод

Initializes the FileManager.
public static Initialize ( Microsoft.Xna.Framework.Game G, string StartupDir ) : void
G Microsoft.Xna.Framework.Game A Game instance.
StartupDir string Path of the directory where game has its resources.
Результат void

TrackExists() публичный статический Метод

Attempts to figure out if a track exists in the FileManager.
public static TrackExists ( uint ID ) : bool
ID uint ID of the track.
Результат bool