mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-17 02:50:36 +00:00
significant refactoring in SquadService operations; properly force the player to leave any participating squad when WSA stops
This commit is contained in:
parent
ad4b259014
commit
3e631657b8
5 changed files with 1189 additions and 499 deletions
|
|
@ -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
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue