API ReferenceEditor
ProjectPublisherclass
object→ProjectPublisher
Methods12
Showing 12 methods
public System.Threading.Tasks.Task AddCodePackageReference(string package)
If the code is referencing a package - we can add it to the manifest using this.
| Parameter | Type | Description |
|---|---|---|
| package | string | — |
Returns:
Task—public static bool CanPublishFile(Editor.Asset a)
Return true if we're not opposed to publishing this asset
| Parameter | Type | Description |
|---|---|---|
| a | Asset | — |
Returns:
bool—public static System.Threading.Tasks.Task`1<Editor.ProjectPublisher> FromAsset(Editor.Asset asset)
| Parameter | Type | Description |
|---|---|---|
| asset | Asset | — |
public static System.Threading.Tasks.Task`1<Editor.ProjectPublisher> FromProject(Sandbox.Project project)
| Parameter | Type | Description |
|---|---|---|
| project | Project | — |
public System.Collections.Generic.List`1<Sandbox.DataModel.GameSetting> GetGameSettings(Sandbox.CompilerOutput[] assemblies)
Fetch a list of game settings to be added to the project's metadata
| Parameter | Type | Description |
|---|---|---|
| assemblies | CompilerOutput[] | — |
public System.Threading.Tasks.Task PrePublish(System.Threading.CancellationToken cancellationToken = null)
Check the intended manifest, ask the backend which files need to be uploaded.
| Parameter | Type | Description |
|---|---|---|
| cancellationToken = null | CancellationToken | — |
Returns:
Task—public System.Threading.Tasks.Task Publish(Editor.IProgress progress = null, System.Threading.CancellationToken cancel = null)
Publish a new revision
| Parameter | Type | Description |
|---|---|---|
| progress = null | IProgress | — |
| cancel = null | CancellationToken | — |
Returns:
Task—public void SetChangeDetails(string change, string detail)
Allows to set information on the revision - for future reference
| Parameter | Type | Description |
|---|---|---|
| change | string | — |
| detail | string | — |
Returns:
void—public void SetMeta(string key, object obj)
| Parameter | Type | Description |
|---|---|---|
| key | string | — |
| obj | object | — |
Returns:
void—public System.Threading.Tasks.Task UploadFiles()
Returns:
Task—No results match this filter.
Properties7
Showing 7 properties
public System.Collections.Generic.IEnumerable`1<Editor.ProjectPublisher.ProjectFile> Editor.ProjectPublisher.Files { get; set; }
Get access to the files within the manifest
public Editor.ProjectPublisher.PackageManifest Editor.ProjectPublisher.Manifest { get; set; }
public int Editor.ProjectPublisher.MissingFileCount { get; set; }
Returns:
int—public long Editor.ProjectPublisher.MissingFileSize { get; set; }
Returns:
long—public System.Action Editor.ProjectPublisher.OnProgressChanged { get; set; }
Returns:
Action—public string Editor.ProjectPublisher.TargetPackageIdent { get; set; }
Returns:
string—public int Editor.ProjectPublisher.TotalFileCount { get; set; }
Returns:
int—No results match this filter.