Beamable SDK
Public Member Functions | Static Public Member Functions | Public Attributes | Events | List of all members
DisruptorBeam.Editor.Content.ContentIO Class Reference

The purpose of this class is to More...

Inheritance diagram for DisruptorBeam.Editor.Content.ContentIO:
Inheritance graph
[legend]
Collaboration diagram for DisruptorBeam.Editor.Content.ContentIO:
Collaboration graph
[legend]

Public Member Functions

 ContentIO (IPlatformRequester requester)
 
Promise< ManifestFetchManifest ()
 
Promise< ContentStatus > GetStatus (ContentObject content)
 
void Select (ContentObject content)
 
IEnumerable< TContent > FindAllContent< TContent > (ContentQuery query=null, bool inherit=true)
 
string[] FindAllDirectoriesForSubtypes< TContent > ()
 
Type[] FindAllSubtypes< TContent > ()
 
IEnumerable< ContentObjectFindAll (ContentQuery query=null)
 
LocalContentManifest BuildLocalManifest ()
 
IEnumerable< Type > GetContentTypes ()
 
IEnumerable< string > GetContentClassIds ()
 
IEnumerable< ContentObjectFindAllContentByType (Type type, ContentQuery query=null, bool inherit=true)
 
void EnsureAllDefaultContent ()
 
void EnsureDefaultContentByType (Type type)
 
void EnsureDefaultContent< TContent > ()
 
string GetAssetPathByType (Type contentType, IContentObject content)
 
void EnsureDefaultAssetsByType (Type type)
 
void EnsureDefaultAssets< TContent > ()
 
void Create< TContent > (TContent content, string assetPath=null)
 
void DeleteByType (Type type, IContentObject content)
 Delete a TContent item of type Type More...
 
void Delete< TContent > (TContent content)
 Delete a TContent item of type TContent More...
 
string Checksum (IContentObject content)
 
string Serialize< TContent > (TContent content)
 
void RenameByType (Type type, IContentObject content, string newName)
 Rename a IContentObject instance of type Type More...
 
void Rename< TContent > (TContent content, string newName)
 Rename a TContent instance of type TContent More...
 

Static Public Member Functions

static ContentIOEventGroup< TContent > GetEventGroup< TContent > ()
 

Public Attributes

Promise< ManifestOnManifest => _manifestPromise ?? FetchManifest()
 

Events

ContentDelegate OnSelectionChanged
 
static IContentDelegate OnContentCreated
 

Detailed Description

The purpose of this class is to

  1. scrape local editor directory for content assets
  2. handle the upload of the assets to Platform
  3. create new editor-side-not-yet-deployed content

Member Function Documentation

◆ Delete< TContent >()

void DisruptorBeam.Editor.Content.ContentIO.Delete< TContent > ( TContent  content)
inline

Delete a TContent item of type TContent

Template Parameters
TContent
Parameters
content
Type Constraints
TContent :ContentObject 
TContent :new() 

◆ DeleteByType()

void DisruptorBeam.Editor.Content.ContentIO.DeleteByType ( Type  type,
IContentObject  content 
)
inline

Delete a TContent item of type Type

Parameters
type
content

◆ Rename< TContent >()

void DisruptorBeam.Editor.Content.ContentIO.Rename< TContent > ( TContent  content,
string  newName 
)
inline

Rename a TContent instance of type TContent

Template Parameters
TContent
Parameters
content
newName
Type Constraints
TContent :ContentObject 
TContent :new() 

◆ RenameByType()

void DisruptorBeam.Editor.Content.ContentIO.RenameByType ( Type  type,
IContentObject  content,
string  newName 
)
inline

Rename a IContentObject instance of type Type

Parameters
type
content
newName

The documentation for this class was generated from the following file: