forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStartRotating.cs
More file actions
27 lines (23 loc) · 750 Bytes
/
Copy pathStartRotating.cs
File metadata and controls
27 lines (23 loc) · 750 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
using System;
using L2dotNET.Models.Player;
using L2dotNET.Network.serverpackets;
namespace L2dotNET.Network.clientpackets
{
class StartRotating : PacketBase
{
private readonly GameClient _client;
private readonly int _degree;
private readonly int _side;
public StartRotating(IServiceProvider serviceProvider, Packet packet, GameClient client) : base(serviceProvider)
{
_client = client;
_degree = packet.ReadInt();
_side = packet.ReadInt();
}
public override void RunImpl()
{
L2Player player = _client.CurrentPlayer;
player.BroadcastPacket(new StartRotation(player.ObjId, _degree, _side, 0));
}
}
}