mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-13 15:34:42 +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
2 changed files with 1 additions and 10 deletions
|
|
@ -402,16 +402,6 @@ class Zone(private val zoneId : String, zoneMap : ZoneMap, zoneNumber : Int) {
|
||||||
})
|
})
|
||||||
//after all fixed GUID's are defined ...
|
//after all fixed GUID's are defined ...
|
||||||
other.foreach(obj => guid.register(obj, "dynamic"))
|
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] = {
|
private def MakeBuildings(implicit context : ActorContext) : PairMap[Int, Building] = {
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,7 @@ class ResourceSiloControlUseTest extends ActorTest {
|
||||||
guid.register(obj, 2)
|
guid.register(obj, 2)
|
||||||
guid.register(player, 3)
|
guid.register(player, 3)
|
||||||
guid.register(vehicle, 4)
|
guid.register(vehicle, 4)
|
||||||
|
expectNoMsg(200 milliseconds)
|
||||||
zone.Transport ! Zone.Vehicle.Spawn(vehicle)
|
zone.Transport ! Zone.Vehicle.Spawn(vehicle)
|
||||||
vehicle.Seats(0).Occupant = player
|
vehicle.Seats(0).Occupant = player
|
||||||
player.VehicleSeated = vehicle.GUID
|
player.VehicleSeated = vehicle.GUID
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue