significant refactoring in SquadService operations; properly force the player to leave any participating squad when WSA stops

This commit is contained in:
FateJH 2019-09-08 15:00:12 -04:00
parent ad4b259014
commit 3e631657b8
5 changed files with 1189 additions and 499 deletions

View file

@ -8,7 +8,7 @@ import net.psforever.types.{SquadRequestType, Vector3}
object SquadAction {
trait Action
final case class Definition(zone : Zone, guid : PlanetSideGUID, line : Int, action : SquadAction) extends Action
final case class Definition(guid : PlanetSideGUID, line : Int, action : SquadAction) extends Action
final case class Membership(request_type : SquadRequestType.Value, unk2 : Long, unk3 : Option[Long], player_name : String, unk5 : Option[Option[String]]) extends Action
final case class Waypoint(event_type : WaypointEventAction.Value, waypoint_type : Int, unk : Option[Long], waypoint_info : Option[WaypointInfo]) extends Action
final case class Update(char_id : Long, health : Int, max_health : Int, armor : Int, max_armor : Int, pos : Vector3, zone_number : Int) extends Action

File diff suppressed because it is too large Load diff

View file

@ -2,8 +2,9 @@
package services.teamwork
import net.psforever.objects.Player
import net.psforever.objects.zones.Zone
final case class SquadServiceMessage(tplayer : Player, actionMessage : Any)
final case class SquadServiceMessage(tplayer : Player, zone : Zone, actionMessage : Any)
object SquadServiceMessage {
final case class RecoverSquadMembership()