| 1943 | |
| 1944 | |
| 1945 | bool cConnection::HandleServerNamedSoundEffect(void) |
| 1946 | { |
| 1947 | HANDLE_SERVER_PACKET_READ(ReadVarUTF8String, AString, SoundName); |
| 1948 | HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosX); |
| 1949 | HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosY); |
| 1950 | HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosZ); |
| 1951 | HANDLE_SERVER_PACKET_READ(ReadBEFloat, float, Volume); |
| 1952 | HANDLE_SERVER_PACKET_READ(ReadByte, Byte, Pitch); |
| 1953 | Log("Received a PACKET_NAMED_SOUND_EFFECT from the server:"); |
| 1954 | Log(" SoundName = \"%s\"", SoundName.c_str()); |
| 1955 | Log(" Pos = %s", PrintableAbsIntTriplet(PosX, PosY, PosZ, 8).c_str()); |
| 1956 | Log(" Volume = %f", Volume); |
| 1957 | Log(" Pitch = %d", Pitch); |
| 1958 | COPY_TO_CLIENT(); |
| 1959 | return true; |
| 1960 | } |
| 1961 | |
| 1962 | |
| 1963 |
nothing calls this directly
no test coverage detected