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