private void ReadTextModule(BinaryReader reader) { moduleValue.Clear(); if (Side == Side.Server) { moduleValue["authorId"] = reader.ReadByte(); var text = new NetworkText(); text.OnDeserialize(reader); moduleValue["text"] = text; var color = new Color(); color.OnDeserialize(reader); moduleValue["color"] = color; } else if (Side == Side.Client) { var cmdId = reader.ReadString(); moduleValue["cmdId"] = cmdId; var text = reader.ReadString(); moduleValue["text"] = text; } }
public void OnDeserialize(BinaryReader reader) { kickMsg.OnDeserialize(reader); }
public void OnDeserialize(BinaryReader reader) { statusMax = reader.ReadInt32(); statusText.OnDeserialize(reader); statusTextFlags = reader.ReadByte(); }