-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChatChapterMst.cs
More file actions
49 lines (43 loc) · 1.83 KB
/
ChatChapterMst.cs
File metadata and controls
49 lines (43 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System.Runtime.Serialization;
namespace Edelstein.Data.Msts;
[Serializable]
public class ChatChapterMst : IGameMst, ISerializable
{
public uint Id { get; set; }
public uint MasterChatId { get; set; }
public uint RoomId { get; set; }
public uint ChapterId { get; set; }
public required string ScriptKey { get; set; }
public required string Title { get; set; }
public required string FirstLineValue { get; set; }
public required string NoticeValue { get; set; }
public required string AppearStampIdList { get; set; }
public uint MasterReleaseLabelId { get; set; }
public ChatChapterMst() { }
protected ChatChapterMst(SerializationInfo info, StreamingContext context)
{
Id = info.GetUInt32("_id");
MasterChatId = info.GetUInt32("_masterChatId");
RoomId = info.GetUInt32("_roomId");
ChapterId = info.GetUInt32("_chapterId");
ScriptKey = info.GetString("_scriptKey")!;
Title = info.GetString("_title")!;
FirstLineValue = info.GetString("_firstLineValue")!;
NoticeValue = info.GetString("_noticeValue")!;
AppearStampIdList = info.GetString("_appearStampIdList")!;
MasterReleaseLabelId = info.GetUInt32("_masterReleaseLabelId");
}
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("_id", Id);
info.AddValue("_masterChatId", MasterChatId);
info.AddValue("_roomId", RoomId);
info.AddValue("_chapterId", ChapterId);
info.AddValue("_scriptKey", ScriptKey);
info.AddValue("_title", Title);
info.AddValue("_firstLineValue", FirstLineValue);
info.AddValue("_noticeValue", NoticeValue);
info.AddValue("_appearStampIdList", AppearStampIdList);
info.AddValue("_masterReleaseLabelId", MasterReleaseLabelId);
}
}