2016-12-25 19:43:22 +01:00
|
|
|
using System.IO;
|
|
|
|
using SonicAudioLib.CriMw.Serialization;
|
|
|
|
|
2017-01-26 21:40:46 +01:00
|
|
|
namespace CsbBuilder.Serialization
|
2016-12-25 19:43:22 +01:00
|
|
|
{
|
|
|
|
[CriSerializable("TBLISC")]
|
2017-01-26 21:40:46 +01:00
|
|
|
public class SerializationAisacTable
|
2016-12-25 19:43:22 +01:00
|
|
|
{
|
2017-01-26 21:40:46 +01:00
|
|
|
private string nameField = string.Empty;
|
|
|
|
private string ptnameField = string.Empty;
|
|
|
|
private byte typeField = 0;
|
|
|
|
private byte[] grphField = null;
|
|
|
|
private byte rndrngField = 0;
|
2016-12-25 19:43:22 +01:00
|
|
|
|
|
|
|
[CriField("name", 0)]
|
|
|
|
public string Name
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
2017-01-26 21:40:46 +01:00
|
|
|
return nameField;
|
2016-12-25 19:43:22 +01:00
|
|
|
}
|
|
|
|
set
|
|
|
|
{
|
2017-01-26 21:40:46 +01:00
|
|
|
nameField = value;
|
2016-12-25 19:43:22 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[CriField("ptname", 1)]
|
|
|
|
public string PathName
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
2017-01-26 21:40:46 +01:00
|
|
|
return ptnameField;
|
2016-12-25 19:43:22 +01:00
|
|
|
}
|
|
|
|
set
|
|
|
|
{
|
2017-01-26 21:40:46 +01:00
|
|
|
ptnameField = value;
|
2016-12-25 19:43:22 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[CriField("type", 2)]
|
|
|
|
public byte Type
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
2017-01-26 21:40:46 +01:00
|
|
|
return typeField;
|
2016-12-25 19:43:22 +01:00
|
|
|
}
|
|
|
|
set
|
|
|
|
{
|
2017-01-26 21:40:46 +01:00
|
|
|
typeField = value;
|
2016-12-25 19:43:22 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[CriField("grph", 3)]
|
|
|
|
public byte[] Graph
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
2017-01-26 21:40:46 +01:00
|
|
|
return grphField;
|
2016-12-25 19:43:22 +01:00
|
|
|
}
|
|
|
|
set
|
|
|
|
{
|
2017-01-26 21:40:46 +01:00
|
|
|
grphField = value;
|
2016-12-25 19:43:22 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[CriField("rndrng", 4)]
|
|
|
|
public byte RandomRange
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
2017-01-26 21:40:46 +01:00
|
|
|
return rndrngField;
|
2016-12-25 19:43:22 +01:00
|
|
|
}
|
|
|
|
set
|
|
|
|
{
|
2017-01-26 21:40:46 +01:00
|
|
|
rndrngField = value;
|
2016-12-25 19:43:22 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|