|
@@ -28,6 +28,9 @@ namespace XGame.Database
|
|
|
|
|
|
public string Icon { get; private set; } // c
|
|
|
|
|
|
+ /// <summary> 前置ID,需要先打开前置UI才能打开当前指定UI </summary>
|
|
|
+ public int Parent { get; private set; } // c
|
|
|
+
|
|
|
void ISerializable.Deserialize(IReader reader)
|
|
|
{
|
|
|
Id = reader.ReadInt();
|
|
@@ -36,6 +39,7 @@ namespace XGame.Database
|
|
|
Desc = reader.ReadString();
|
|
|
Param = reader.ReadEnumerable<int[]>();
|
|
|
Icon = reader.ReadString();
|
|
|
+ Parent = reader.ReadInt();
|
|
|
}
|
|
|
|
|
|
void ISerializable.Serialize(IWriter writer)
|
|
@@ -46,6 +50,7 @@ namespace XGame.Database
|
|
|
writer.Write(Desc);
|
|
|
writer.Write(Param);
|
|
|
writer.Write(Icon);
|
|
|
+ writer.Write(Parent);
|
|
|
}
|
|
|
}
|
|
|
}
|