Beamable SDK
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties | 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< ManifestFetchManifest (string manifestID)
 
Promise< ContentStatus > GetStatus (ContentObject content)
 
Promise< AvailableManifestsGetAllManifestIDs ()
 
Promise< UnitSwitchManifest (string manifestID)
 
Promise< UnitArchiveManifests (params string[] ids)
 
Promise< UnitUnarchiveManifest (params string[] ids)
 
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, string id, LocalContentManifest localContentManifest)
 
void Create< TContent > (TContent content, string assetPath=null, bool replace=true, LocalContentManifest localContentManifest=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 bool AreTagsEqual (string[] firstContentTags, string[] secondContentTags)
 
static string ComputeChecksum (IContentObject content)
 
static async Task BakeContent ()
 Checks if local content has changes. If no changes then it proceeds to baking. If there are local changes then displays a warning. Writes all content objects to streaming assets in either compressed or uncompressed form based on setting in Content Configuration.
 

Static Public Attributes

static IContentDelegate OnContentDeleted
 
static Action< string > OnManifestChanged
 
static Action< AvailableManifestsOnManifestsListFetched
 
static Action< IEnumerable< AvailableManifestModel > > OnArchivedManifestsFetched
 

Properties

ContentManager ContentManager [get]
 
Promise< ManifestOnManifest [get]
 

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

◆ Checksum()

string Beamable.Editor.Content.ContentIO.Checksum ( IContentObject  content)
inline

◆ Create< TContent >()

void Beamable.Editor.Content.ContentIO.Create< TContent > ( TContent  content,
string  assetPath = null,
bool  replace = true,
LocalContentManifest  localContentManifest = null 
)
inline
Type Constraints
TContent :ContentObject 
TContent :new() 

◆ 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

◆ EnsureDefaultAssets< TContent >()

void Beamable.Editor.Content.ContentIO.EnsureDefaultAssets< TContent > ( )
inline
Type Constraints
TContent :ContentObject 

◆ EnsureDefaultContent< TContent >()

void Beamable.Editor.Content.ContentIO.EnsureDefaultContent< TContent > ( )
inline
Type Constraints
TContent :ContentObject 

◆ FetchManifest() [1/2]

Promise< Manifest > Beamable.Editor.Content.ContentIO.FetchManifest ( )
inline

◆ FetchManifest() [2/2]

Promise< Manifest > Beamable.Editor.Content.ContentIO.FetchManifest ( string  manifestID)
inline

◆ FindAll()

IEnumerable< ContentObject > Beamable.Editor.Content.ContentIO.FindAll ( ContentQuery  query = null)
inline

◆ FindAllContent< TContent >()

IEnumerable< TContent > Beamable.Editor.Content.ContentIO.FindAllContent< TContent > ( ContentQuery  query = null,
bool  inherit = true 
)
inline
Type Constraints
TContent :ContentObject 
TContent :new() 

◆ FindAllDirectoriesForSubtypes< TContent >()

string[] Beamable.Editor.Content.ContentIO.FindAllDirectoriesForSubtypes< TContent > ( )
inline
Type Constraints
TContent :ContentObject 
TContent :new() 

◆ FindAllSubtypes< TContent >()

Type[] Beamable.Editor.Content.ContentIO.FindAllSubtypes< TContent > ( )
inline
Type Constraints
TContent :ContentObject 
TContent :new() 

◆ Serialize< TContent >()

string Beamable.Editor.Content.ContentIO.Serialize< TContent > ( TContent  content)
inline
Type Constraints
TContent :ContentObject 
TContent :new() 

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