C# Class WhiteCore.FileBasedServices.AssetService.AssetService

Inheritance: WhiteCore.Framework.Services.ConnectorBase, IAssetService, IService
Mostra file Open project: WhiteCoreSim/WhiteCore-Dev

Protected Properties

Property Type Description
doDatabaseCaching bool
m_assetService IAssetDataPlugin
m_assetsDirectory string
m_connectionPassword string
m_enabled bool
m_migrateSQL bool

Public Methods

Method Description
Configure ( IConfigSource config, IRegistryCore registry ) : void
FileDeleteAsset ( string id ) : void
FileExistsAsset ( string id ) : bool
FileGetAsset ( string id ) : WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
FileGetAsset ( string id, bool showWarnings ) : WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
FileSetAsset ( WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase asset ) : bool
FinishedStartup ( ) : void
Get ( string id, object sender, AssetRetrieved handler ) : void
GetCached ( string id ) : WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
GetMesh ( string id ) : WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
Initialize ( IConfigSource config, IRegistryCore registry ) : void
Start ( IConfigSource config, IRegistryCore registry ) : void

Protected Methods

Method Description
HandleDeleteAsset ( IScene scene, string args ) : void

Handles the delete asset command.

HandleGetAsset ( IScene scene, string args ) : void

Handles the get asset command.

HandleMigrateSQLAssets ( IScene scene, string args ) : void

Handles enable/disable of the migrate SQL setting.

HandleShowDigest ( IScene scene, string args ) : void

Handles the show digest command.

SetUpFileBase ( string path ) : void

Private Methods

Method Description
CheckForConversion ( string id ) : WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
Delete ( UUID id ) : bool
Get ( string id ) : WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
Get ( string id, bool showWarnings ) : WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
GetData ( string id ) : byte[]
GetData ( string id, bool showWarnings ) : byte[]
GetDataPathForID ( string hashCode ) : string
GetExists ( string id ) : bool
GetPathForID ( string id ) : string
MakeValidFileName ( string name ) : string
Store ( WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase asset ) : UUID
UpdateContent ( UUID id, byte data ) : UUID

Method Details

Configure() public method

public Configure ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

FileDeleteAsset() public method

public FileDeleteAsset ( string id ) : void
id string
return void

FileExistsAsset() public method

public FileExistsAsset ( string id ) : bool
id string
return bool

FileGetAsset() public method

public FileGetAsset ( string id ) : WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
id string
return WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase

FileGetAsset() public method

public FileGetAsset ( string id, bool showWarnings ) : WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
id string
showWarnings bool
return WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase

FileSetAsset() public method

public FileSetAsset ( WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase asset ) : bool
asset WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
return bool

FinishedStartup() public method

public FinishedStartup ( ) : void
return void

Get() public method

public Get ( string id, object sender, AssetRetrieved handler ) : void
id string
sender object
handler AssetRetrieved
return void

GetCached() public method

public GetCached ( string id ) : WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
id string
return WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase

GetMesh() public method

public GetMesh ( string id ) : WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
id string
return WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase

HandleDeleteAsset() protected method

Handles the delete asset command.
protected HandleDeleteAsset ( IScene scene, string args ) : void
scene IScene Scene.
args string Arguments.
return void

HandleGetAsset() protected method

Handles the get asset command.
protected HandleGetAsset ( IScene scene, string args ) : void
scene IScene Scene.
args string Arguments.
return void

HandleMigrateSQLAssets() protected method

Handles enable/disable of the migrate SQL setting.
protected HandleMigrateSQLAssets ( IScene scene, string args ) : void
scene IScene Scene.
args string Arguments.
return void

HandleShowDigest() protected method

Handles the show digest command.
protected HandleShowDigest ( IScene scene, string args ) : void
scene IScene Scene.
args string Arguments.
return void

Initialize() public method

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

SetUpFileBase() protected method

protected SetUpFileBase ( string path ) : void
path string
return void

Start() public method

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

Property Details

doDatabaseCaching protected_oe property

protected bool doDatabaseCaching
return bool

m_assetService protected_oe property

protected IAssetDataPlugin m_assetService
return IAssetDataPlugin

m_assetsDirectory protected_oe property

protected string m_assetsDirectory
return string

m_connectionPassword protected_oe property

protected string m_connectionPassword
return string

m_enabled protected_oe property

protected bool m_enabled
return bool

m_migrateSQL protected_oe property

protected bool m_migrateSQL
return bool