mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-20 02:24:45 +00:00
Resource silo test fix (#354)
* isolated test fix from the inst-act branch * getting rid of the hack for implant terminal mech coordinates
This commit is contained in:
parent
9ac1047a9a
commit
7f402ac171
|
|
@ -402,16 +402,6 @@ class Zone(private val zoneId : String, zoneMap : ZoneMap, zoneNumber : Int) {
|
|||
})
|
||||
//after all fixed GUID's are defined ...
|
||||
other.foreach(obj => guid.register(obj, "dynamic"))
|
||||
//TODO temporary; convert all old-style ImplantTerminalMech.Constructor with the kind that provides position data
|
||||
import net.psforever.objects.serverobject.implantmech.ImplantTerminalMech
|
||||
import net.psforever.objects.serverobject.terminals.Terminal
|
||||
zoneMap.TerminalToInterface.foreach { case (mech_guid, interface_guid) =>
|
||||
(GUID(mech_guid), GUID(interface_guid)) match {
|
||||
case (Some(mech : ImplantTerminalMech), Some(interface : Terminal)) =>
|
||||
mech.Position = interface.Position
|
||||
case _ => ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private def MakeBuildings(implicit context : ActorContext) : PairMap[Int, Building] = {
|
||||
|
|
|
|||
|
|
@ -100,6 +100,7 @@ class ResourceSiloControlUseTest extends ActorTest {
|
|||
guid.register(obj, 2)
|
||||
guid.register(player, 3)
|
||||
guid.register(vehicle, 4)
|
||||
expectNoMsg(200 milliseconds)
|
||||
zone.Transport ! Zone.Vehicle.Spawn(vehicle)
|
||||
vehicle.Seats(0).Occupant = player
|
||||
player.VehicleSeated = vehicle.GUID
|
||||
|
|
|
|||
Loading…
Reference in a new issue