Beamable SDK
All Classes Namespaces Functions Variables Properties Events
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Events | List of all members
Beamable.Editor.Content.ContentIO Class Reference

The purpose of this class is to More...

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

Public Member Functions

 ContentIO (IBeamableRequester requester)
 
IValidationContext GetValidationContext ()
 
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 ()
 
ContentObject LoadContent (LocalContentManifestEntry manifestEntry)
 
ContentObject LoadContent (string assetPath)
 
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 > ()
 
string GetAvailableFileName (string assetPath)
 
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 Rename (string existingAssetPath, string nextAssetpath, ContentObject content)
 

Static Public Member Functions

static string ComputeChecksum (IContentObject content)
 

Public Attributes

Promise< ManifestOnManifest => _manifestPromise ?? FetchManifest()
 

Events

ContentDelegate OnSelectionChanged
 
static IContentDelegate OnContentCreated
 
static IContentRenamedDelegate OnContentRenamed
 

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 Beamable.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 Beamable.Editor.Content.ContentIO.DeleteByType ( Type  type,
IContentObject  content 
)
inline

Delete a TContent item of type Type

Parameters
type
content

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