forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMoveToPawn.cs
More file actions
46 lines (41 loc) · 1.07 KB
/
Copy pathMoveToPawn.cs
File metadata and controls
46 lines (41 loc) · 1.07 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using L2dotNET.Models;
namespace L2dotNET.Network.serverpackets
{
class MoveToPawn : GameserverPacket
{
private readonly int _id;
private readonly int _target;
private readonly int _dist;
private int _x;
private int _y;
private int _z;
public MoveToPawn(int id, L2Object target, int dist, int x, int y, int z)
{
_id = id;
_target = target.ObjectId;
_dist = dist;
_x = x;
_y = y;
_z = z;
}
public MoveToPawn(L2Character character, L2Object target, int dist)
{
_id = character.ObjectId;
_target = target.ObjectId;
_dist = dist;
_x = character.X;
_y = character.Y;
_z = character.Z;
}
public override void Write()
{
WriteByte(0x60);
WriteInt(_id);
WriteInt(_target);
WriteInt(_dist);
WriteInt(_x);
WriteInt(_y);
WriteInt(_z);
}
}
}