Class PrefabDataPart
This class represents the prefab data asset.
Namespace: Evergine.Framework.Assets.AssetParts
Assembly: Evergine.Framework.dll
Syntax
public class PrefabDataPart : AssetPart
Constructors
PrefabDataPart()
Initializes a new instance of the PrefabDataPart class.
Declaration
public PrefabDataPart()
Fields
RootGenerator
Function to generate the root EntityItemModel and update the given dictionary with the reference counters.
Declaration
public Func<Dictionary<Guid, int>, EntityItemModel> RootGenerator
Field Value
Type | Description |
---|---|
Func<Dictionary<Guid, int>, EntityItemModel> |
Properties
ReferenceCounter
Gets the reference count of the assets.
Declaration
public Dictionary<Guid, int> ReferenceCounter { get; }
Property Value
Type | Description |
---|---|
Dictionary<Guid, int> |
Root
Gets or sets the entity list.
Declaration
[EvergineMember]
public EntityItemModel Root { get; set; }
Property Value
Type | Description |
---|---|
EntityItemModel |
Methods
Read(BinaryReader)
Reads this asset part.
Declaration
public static PrefabDataPart Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
PrefabDataPart | The loaded asset part. |
Write(BinaryWriter)
Writes the sub-asset.
Declaration
public override void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The stream. |