55using PhoenixWrapped . Messaging . Combat ;
66using PhoenixWrapped . Messaging . Interaction ;
77using PhoenixWrapped . Messaging . Movement ;
8- using PartnerSkill = TaleKit . Game . Combat . PartnerSkill ;
98
109namespace TaleKit . Phoenix ;
1110
12- public class PhoenixActionBridge : IActionBridge
11+ public class PhoenixActionBridge ( PhoenixClient client ) : IActionBridge
1312{
14- private readonly PhoenixClient client ;
15-
16- public PhoenixActionBridge ( PhoenixClient client )
17- {
18- this . client = client ;
19- }
20-
2113 public Session ? Session { get ; set ; }
2214
23- public void Walk ( Position position , int speed )
24- {
25- this . client . SendMessage ( new PlayerWalk
26- {
27- X = position . X ,
28- Y = position . Y
29- } ) ;
30- }
31-
3215 public void Walk ( Character character , Position position )
3316 {
34- this . client . SendMessage ( new PlayerWalk
17+ client . SendMessage ( new PlayerWalk
3518 {
3619 X = position . X ,
3720 Y = position . Y
@@ -40,7 +23,7 @@ public void Walk(Character character, Position position)
4023
4124 public void WalkNosmate ( SummonedNosmate nosmate , Position position )
4225 {
43- this . client . SendMessage ( new PetsWalk
26+ client . SendMessage ( new PetsWalk
4427 {
4528 X = position . X ,
4629 Y = position . Y
@@ -49,15 +32,15 @@ public void WalkNosmate(SummonedNosmate nosmate, Position position)
4932
5033 public void Attack ( LivingEntity entity )
5134 {
52- this . client . SendMessage ( new Attack
35+ client . SendMessage ( new Attack
5336 {
5437 MonsterId = entity . Id
5538 } ) ;
5639 }
5740
5841 public void Attack ( LivingEntity entity , Skill skill )
5942 {
60- this . client . SendMessage ( new PlayerSkill
43+ client . SendMessage ( new PlayerSkill
6144 {
6245 MonsterId = entity . Id ,
6346 SkillId = skill . CastId
@@ -66,7 +49,7 @@ public void Attack(LivingEntity entity, Skill skill)
6649
6750 public void PickUp ( Drop drop )
6851 {
69- this . client . SendMessage ( new PickUp
52+ client . SendMessage ( new PickUp
7053 {
7154 ItemId = drop . Id
7255 } ) ;
0 commit comments