Struct AssetInfo
- Namespace
- Uncreated.Warfare.Util
- Assembly
- Uncreated.Warfare.dll
public readonly struct AssetInfo
- Inherited Members
-
Constructors
AssetInfo(ByteReader)
public AssetInfo(ByteReader reader)
Parameters
reader ByteReader
AssetInfo(Asset)
public AssetInfo(Asset asset)
Parameters
asset Asset
AssetInfo(EAssetType, EItemType?, Type, Guid, ushort, string, string, string?)
public AssetInfo(EAssetType category, EItemType? type, Type assetType, Guid guid, ushort id, string assetName, string englishName, string? itemDescription)
Parameters
category EAssetType
type EItemType?
assetType Type
guid Guid
id ushort
assetName string
englishName string
itemDescription string
Fields
AssetName
public readonly string AssetName
Field Value
- string
AssetType
public readonly Type AssetType
Field Value
- Type
Category
public readonly EAssetType Category
Field Value
- EAssetType
EnglishName
public readonly string? EnglishName
Field Value
- string
Guid
public readonly Guid Guid
Field Value
- Guid
Id
public readonly ushort Id
Field Value
- ushort
ItemDescription
public readonly string? ItemDescription
Field Value
- string
Type
public readonly EItemType? Type
Field Value
- EItemType?
Methods
Read(ByteReader)
public static AssetInfo Read(ByteReader reader)
Parameters
reader ByteReader
Returns
- AssetInfo
ReadMany(ByteReader)
public static AssetInfo[] ReadMany(ByteReader reader)
Parameters
reader ByteReader
Returns
- AssetInfo[]
Write(ByteWriter)
public void Write(ByteWriter writer)
Parameters
writer ByteWriter
Write(ByteWriter, AssetInfo)
public static void Write(ByteWriter writer, AssetInfo info)
Parameters
writer ByteWriter
info AssetInfo
WriteMany(ByteWriter, AssetInfo[])
public static void WriteMany(ByteWriter writer, AssetInfo[] info)
Parameters
writer ByteWriter
info AssetInfo[]