public void Deserialize(BaseProtocolReader reader) { reader.OnStructBegin(); Width = reader.OnProperty <T>("Width", 0, false); Height = reader.OnProperty <T>("Height", 1, false); reader.OnStructEnd(); }
public void Deserialize(BaseProtocolReader reader) { reader.OnStructBegin(); X = reader.OnProperty <T>("X", 0, false); Y = reader.OnProperty <T>("Y", 1, false); reader.OnStructEnd(); }
public void Deserialize(BaseProtocolReader reader) { reader.OnStructBegin(); Origin = reader.OnProperty <Point2 <T> >("Origin", 0, false); Size = reader.OnProperty <Size2 <T> >("Size", 1, false); reader.OnStructEnd(); }
public void Deserialize(BaseProtocolReader reader) { reader.OnStructBegin(); Min = reader.OnProperty <T>("Min", 0, false); Max = reader.OnProperty <T>("Max", 1, false); reader.OnStructEnd(); }
public void Deserialize(BaseProtocolReader reader) { reader.OnStructBegin(); R = reader.OnProperty <byte>("R", 0, false); G = reader.OnProperty <byte>("G", 1, false); B = reader.OnProperty <byte>("B", 2, false); A = reader.OnProperty <byte>("A", 3, false); reader.OnStructEnd(); }
public void Deserialize(BaseProtocolReader reader) { reader.OnStructBegin(); Left = reader.OnProperty <T>("Left", 0, false); Right = reader.OnProperty <T>("Right", 1, false); Up = reader.OnProperty <T>("Up", 2, false); Down = reader.OnProperty <T>("Down", 3, false); reader.OnStructEnd(); }