forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlaySound.cs
More file actions
31 lines (28 loc) · 700 Bytes
/
Copy pathPlaySound.cs
File metadata and controls
31 lines (28 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace L2dotNET.Network.serverpackets
{
class PlaySound : GameserverPacket
{
private readonly string _file;
private readonly int _type;
private const uint X = 0;
private const uint Y = 0;
private const uint Z = 0;
public PlaySound(string file, bool ogg = false)
{
_file = file;
if (ogg)
_type = 1;
}
public override void Write()
{
WriteByte(0x9e);
WriteInt(_type);
WriteString(_file);
WriteInt(0);
WriteInt(0);
WriteInt(X);
WriteInt(Y);
WriteInt(Z);
}
}
}