MCPcopy Create free account
hub / github.com/crossuo/crossuo / SetMultiData

Method SetMultiData

src/Target.cpp:84–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void CTarget::SetMultiData(CDataReader &reader)
85{
86 //Устанавливаем соответствующие значения
87 Type = 1;
88 CursorType = 0;
89 Targeting = true;
90 CursorID = reader.ReadUInt32BE(1);
91
92 //Копируем буффер
93 memset(&m_Data[0], 0, 19);
94 m_Data[0] = 0x6C;
95 m_Data[1] = 1; //Таргет на ландшафт
96 memcpy(m_Data + 2, reader.Start + 2, 4); //Копируем ID курсора (ID дида)
97
98 reader.ResetPtr();
99 reader.Move(18);
100 MultiGraphic = reader.ReadUInt16BE() + 1;
101 MultiX = reader.ReadUInt16BE();
102 MultiY = reader.ReadUInt16BE();
103}
104
105void CTarget::SendTargetObject(int serial)
106{

Callers 2

FUNCBODY_SetTargetDataFunction · 0.80
PACKET_HANDLERFunction · 0.80

Calls 5

memcpyFunction · 0.85
ReadUInt32BEMethod · 0.80
ReadUInt16BEMethod · 0.80
ResetPtrMethod · 0.45
MoveMethod · 0.45

Tested by

no test coverage detected