changes to how MoveItemMessage is handled; AvatarService messages for MoveItem purposes; stop shooting and put away weapon when sitting down

This commit is contained in:
FateJH 2018-05-08 00:07:11 -04:00
parent dd4b586bef
commit e61f1dbdfc
6 changed files with 155 additions and 68 deletions

View file

@ -100,8 +100,8 @@ class EquipmentInHandTest extends ActorTest {
ServiceManager.boot(system)
val service = system.actorOf(Props[AvatarService], AvatarServiceTest.TestName)
service ! Service.Join("test")
service ! AvatarServiceMessage("test", AvatarAction.EquipmentInHand(PlanetSideGUID(10), 2, tool))
expectMsg(AvatarServiceResponse("/test/Avatar", PlanetSideGUID(10), AvatarResponse.EquipmentInHand(2, tool)))
service ! AvatarServiceMessage("test", AvatarAction.EquipmentInHand(PlanetSideGUID(10), PlanetSideGUID(11), 2, tool))
expectMsg(AvatarServiceResponse("/test/Avatar", PlanetSideGUID(10), AvatarResponse.EquipmentInHand(PlanetSideGUID(11), 2, tool)))
}
}
}