SourceCodeAsset Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
Class SourceCodeAsset.
Derived from SourceCodeAsset: ProjectSourceCodeAsset
[DataContract("SourceCodeAsset")]
public abstract class SourceCodeAsset : Asset
| Name | Description | |
|---|---|---|
| Properties | ||
| InternalSerializableTextAccessor | Used internally by serialization. |
|
| Text | Gets the sourcecode text. |
|
| TextAccessor | ||
| Methods | ||
| GenerateIdFromLocation(String, String) | Generates a unique identifier from location. |
|
| Save(Stream) | Saves the content to a stream. |
|
Properties
InternalSerializableTextAccessor
Used internally by serialization.
[DataMember(DataMemberMode.Assign)]
[Display(null, null, Browsable = false)]
public ISerializableTextAccessor InternalSerializableTextAccessor { get; set; }
Property Value
| Type | Description |
|---|---|
| ISerializableTextAccessor |
Text
Gets the sourcecode text.
[Display(null, null, Browsable = false)]
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The sourcecode text. |
TextAccessor
[Display(null, null, Browsable = false)]
public ITextAccessor TextAccessor { get; set; }
Property Value
| Type | Description |
|---|---|
| ITextAccessor |
Methods
GenerateIdFromLocation(String, String)
Generates a unique identifier from location.
public static AssetId GenerateIdFromLocation(string packageName, string location)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | packageName | |
| System.String | location | The location. |
Returns
| Type | Description |
|---|---|
| AssetId | Guid. |
Save(Stream)
Saves the content to a stream.
public virtual void Save(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream |