Class PrefabDataPart
This class represents the prefab data asset part.
Inherited Members
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
Root
Gets the entity list.
Declaration
[EvergineMember]
public EntityItemModel Root
Field Value
Type | Description |
---|---|
EntityItemModel |
Properties
ReferenceCounter
Gets the reference counter of the assets.
Declaration
public Dictionary<Guid, int> ReferenceCounter { get; }
Property Value
Type | Description |
---|---|
Dictionary<Guid, int> |
Methods
Read(BinaryReader)
Read 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. |