C# Class Universe.FileBasedServices.AssetService.AssetService

Inheritance: Universe.Framework.Services.ConnectorBase, IAssetService, IService
ファイルを表示 Open project: Virtual-Universe/Virtual-Universe

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 ) : AssetBase
FileSetAsset ( AssetBase asset ) : bool
FinishedStartup ( ) : void
Get ( string id, object sender, AssetRetrieved handler ) : void
GetCached ( string id ) : AssetBase
GetMesh ( string id ) : 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 ) : AssetBase
Delete ( UUID id ) : bool
Get ( string id ) : AssetBase
Get ( string id, bool showWarnings ) : AssetBase
GetData ( string id ) : byte[]
GetDataPathForID ( string hashCode ) : string
GetExists ( string id ) : bool
GetPathForID ( string id ) : string
MakeValidFileName ( string name ) : string
Store ( 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 ) : AssetBase
id string
return Universe.Framework.Services.ClassHelpers.Assets.AssetBase

FileSetAsset() public method

public FileSetAsset ( AssetBase asset ) : bool
asset Universe.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 ) : AssetBase
id string
return Universe.Framework.Services.ClassHelpers.Assets.AssetBase

GetMesh() public method

public GetMesh ( string id ) : AssetBase
id string
return Universe.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