| 609 | |
| 610 | |
| 611 | void cProtocol172::SendMapDecorators(int a_ID, const cMapDecoratorList & a_Decorators) |
| 612 | { |
| 613 | cPacketizer Pkt(*this, 0x34); |
| 614 | Pkt.WriteVarInt(a_ID); |
| 615 | Pkt.WriteShort (1 + (3 * a_Decorators.size())); |
| 616 | |
| 617 | Pkt.WriteByte(1); |
| 618 | |
| 619 | for (cMapDecoratorList::const_iterator it = a_Decorators.begin(); it != a_Decorators.end(); ++it) |
| 620 | { |
| 621 | Pkt.WriteByte((it->GetType() << 4) | (it->GetRot() & 0xf)); |
| 622 | Pkt.WriteByte(it->GetPixelX()); |
| 623 | Pkt.WriteByte(it->GetPixelZ()); |
| 624 | } |
| 625 | } |
| 626 | |
| 627 | |
| 628 |
nothing calls this directly
no test coverage detected