Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
BinaryObjectString.cs
Go to the documentation of this file.
2
3internal sealed class BinaryObjectString : IStreamable
4{
5 internal int _objectId;
6
7 internal string _value;
8
10 {
11 }
12
13 internal void Set(int objectId, string value)
14 {
16 _value = value;
17 }
18
20 {
21 output.WriteByte(6);
22 output.WriteInt32(_objectId);
23 output.WriteString(_value);
24 }
25
26 public void Read(BinaryParser input)
27 {
28 _objectId = input.ReadInt32();
29 _value = input.ReadString();
30 }
31}