C# Class FSO.Content.Content

Content is a singleton responsible for loading data.
Afficher le fichier Open project: RHY3756547/FreeSO Class Usage Examples

Méthodes publiques

Свойство Type Description
AllFiles string[]
Audio Audio
AvatarAnimations AvatarAnimationProvider
AvatarAppearances AvatarAppearanceProvider
AvatarBindings AvatarBindingProvider
AvatarCollections AvatarCollectionsProvider
AvatarHandgroups HandgroupProvider
AvatarMeshes AvatarMeshProvider
AvatarOutfits AvatarOutfitProvider
AvatarPurchasables AvatarPurchasables
AvatarSkeletons AvatarSkeletonProvider
AvatarTextures AvatarTextureProvider
AvatarThumbnails AvatarThumbnailProvider
BasePath string
Changes ChangeManager
GlobalTuning FSO.Files.Tuning
UIGraphics UIGraphicsProvider
WorldCatalog WorldObjectCatalog
WorldFloors WorldFloorProvider
WorldObjectGlobals WorldGlobalProvider
WorldObjects WorldObjectProvider
WorldWalls WorldWallProvider

Méthodes publiques

Méthode Description
Get ( ) : Content
GetPath ( string path ) : string

Gets a path relative to the client's directory.

GetResource ( string path, ulong assetID ) : Stream

Gets a resource using a path and ID.

Init ( string basepath, Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : void
InitWorld ( ) : void

Initiates loading for world.

Private Methods

Méthode Description
Content ( string basePath, Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : System

Creates a new instance of Content.

Init ( ) : void

Setup the content manager so it knows where to find various files.

_ScanFiles ( string dir, List fileList ) : void

Scans a directory for a list of files.

Method Details

Get() public static méthode

public static Get ( ) : Content
Résultat Content

GetPath() public méthode

Gets a path relative to the client's directory.
public GetPath ( string path ) : string
path string The path to combine with the client's directory.
Résultat string

GetResource() public méthode

Gets a resource using a path and ID.
public GetResource ( string path, ulong assetID ) : Stream
path string The path to the file. If this path is to an archive, assetID can be null.
assetID ulong The ID for the resource. Can be null if path doesn't point to an archive.
Résultat Stream

Init() public static méthode

public static Init ( string basepath, Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : void
basepath string
device Microsoft.Xna.Framework.Graphics.GraphicsDevice
Résultat void

InitWorld() public méthode

Initiates loading for world.
public InitWorld ( ) : void
Résultat void

Property Details

AllFiles public_oe property

public string[] AllFiles
Résultat string[]

Audio public_oe property

public Audio,FSO.Content Audio
Résultat Audio

AvatarAnimations public_oe property

public AvatarAnimationProvider AvatarAnimations
Résultat AvatarAnimationProvider

AvatarAppearances public_oe property

public AvatarAppearanceProvider AvatarAppearances
Résultat AvatarAppearanceProvider

AvatarBindings public_oe property

public AvatarBindingProvider AvatarBindings
Résultat AvatarBindingProvider

AvatarCollections public_oe property

public AvatarCollectionsProvider AvatarCollections
Résultat AvatarCollectionsProvider

AvatarHandgroups public_oe property

public HandgroupProvider AvatarHandgroups
Résultat HandgroupProvider

AvatarMeshes public_oe property

public AvatarMeshProvider AvatarMeshes
Résultat AvatarMeshProvider

AvatarOutfits public_oe property

public AvatarOutfitProvider AvatarOutfits
Résultat AvatarOutfitProvider

AvatarPurchasables public_oe property

public AvatarPurchasables AvatarPurchasables
Résultat AvatarPurchasables

AvatarSkeletons public_oe property

public AvatarSkeletonProvider AvatarSkeletons
Résultat AvatarSkeletonProvider

AvatarTextures public_oe property

public AvatarTextureProvider AvatarTextures
Résultat AvatarTextureProvider

AvatarThumbnails public_oe property

public AvatarThumbnailProvider AvatarThumbnails
Résultat AvatarThumbnailProvider

BasePath public_oe property

public string BasePath
Résultat string

Changes public_oe property

public ChangeManager,FSO.Content Changes
Résultat ChangeManager

GlobalTuning public_oe property

public Tuning,FSO.Files GlobalTuning
Résultat FSO.Files.Tuning

UIGraphics public_oe property

public UIGraphicsProvider UIGraphics
Résultat UIGraphicsProvider

WorldCatalog public_oe property

public WorldObjectCatalog,FSO.Content WorldCatalog
Résultat WorldObjectCatalog

WorldFloors public_oe property

public WorldFloorProvider WorldFloors
Résultat WorldFloorProvider

WorldObjectGlobals public_oe property

public WorldGlobalProvider WorldObjectGlobals
Résultat WorldGlobalProvider

WorldObjects public_oe property

public WorldObjectProvider WorldObjects
Résultat WorldObjectProvider

WorldWalls public_oe property

public WorldWallProvider WorldWalls
Résultat WorldWallProvider