C# Class FSO.Content.Content

Content is a singleton responsible for loading data.
Mostra file Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property 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

Public Methods

Method 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

Method 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 method

public static Get ( ) : Content
return Content

GetPath() public method

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.
return string

GetResource() public method

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.
return Stream

Init() public static method

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

InitWorld() public method

Initiates loading for world.
public InitWorld ( ) : void
return void

Property Details

AllFiles public_oe property

public string[] AllFiles
return string[]

Audio public_oe property

public Audio,FSO.Content Audio
return Audio

AvatarAnimations public_oe property

public AvatarAnimationProvider AvatarAnimations
return AvatarAnimationProvider

AvatarAppearances public_oe property

public AvatarAppearanceProvider AvatarAppearances
return AvatarAppearanceProvider

AvatarBindings public_oe property

public AvatarBindingProvider AvatarBindings
return AvatarBindingProvider

AvatarCollections public_oe property

public AvatarCollectionsProvider AvatarCollections
return AvatarCollectionsProvider

AvatarHandgroups public_oe property

public HandgroupProvider AvatarHandgroups
return HandgroupProvider

AvatarMeshes public_oe property

public AvatarMeshProvider AvatarMeshes
return AvatarMeshProvider

AvatarOutfits public_oe property

public AvatarOutfitProvider AvatarOutfits
return AvatarOutfitProvider

AvatarPurchasables public_oe property

public AvatarPurchasables AvatarPurchasables
return AvatarPurchasables

AvatarSkeletons public_oe property

public AvatarSkeletonProvider AvatarSkeletons
return AvatarSkeletonProvider

AvatarTextures public_oe property

public AvatarTextureProvider AvatarTextures
return AvatarTextureProvider

AvatarThumbnails public_oe property

public AvatarThumbnailProvider AvatarThumbnails
return AvatarThumbnailProvider

BasePath public_oe property

public string BasePath
return string

Changes public_oe property

public ChangeManager,FSO.Content Changes
return ChangeManager

GlobalTuning public_oe property

public Tuning,FSO.Files GlobalTuning
return FSO.Files.Tuning

UIGraphics public_oe property

public UIGraphicsProvider UIGraphics
return UIGraphicsProvider

WorldCatalog public_oe property

public WorldObjectCatalog,FSO.Content WorldCatalog
return WorldObjectCatalog

WorldFloors public_oe property

public WorldFloorProvider WorldFloors
return WorldFloorProvider

WorldObjectGlobals public_oe property

public WorldGlobalProvider WorldObjectGlobals
return WorldGlobalProvider

WorldObjects public_oe property

public WorldObjectProvider WorldObjects
return WorldObjectProvider

WorldWalls public_oe property

public WorldWallProvider WorldWalls
return WorldWallProvider