moving management of ServerVehicleOverride state to WSA from Vehicle

This commit is contained in:
FateJH 2018-05-05 21:36:45 -04:00
parent f4343bbf0d
commit deb0e670ba
2 changed files with 8 additions and 17 deletions

View file

@ -47,7 +47,6 @@ class Vehicle(private val vehicleDef : VehicleDefinition) extends PlanetSideServ
private var trunkAccess : Option[PlanetSideGUID] = None
private var jammered : Boolean = false
private var cloaked : Boolean = false
private var controlled : Option[Int] = None
/**
* Permissions control who gets to access different parts of the vehicle;
@ -444,15 +443,6 @@ class Vehicle(private val vehicleDef : VehicleDefinition) extends PlanetSideServ
*/
def TrunkLockState : VehicleLockState.Value = groupPermissions(3)
def Controlled : Option[Int] = controlled
def Controlled_=(speed : Int) : Option[Int] = Controlled_=(Some(speed))
def Controlled_=(speed : Option[Int]) : Option[Int] = {
controlled = speed
Controlled
}
/**
* This is the definition entry that is used to store and unload pertinent information about the `Vehicle`.
* @return the vehicle's definition entry