コード例 #1
0
 static public Accumulation.IShipUiModuleAndContext AsAccuInstant(
     this MemoryStruct.IShipUiModule module,
     MemoryStruct.IShipUi shipUi) =>
 new ShipUiModuleAndContext()
 {
     Module = module, Location = module?.PositionInShipUi(shipUi),
 };
コード例 #2
0
 static public Vektor2DInt?PositionInShipUi(
     this MemoryStruct.IShipUiModule Module, MemoryStruct.IShipUi ShipUi) =>
 Module?.RegionCenter() - ShipUi?.Center?.RegionCenter();
コード例 #3
0
 static public Accumulation.IShipUiModule Accumulation(
     this Accumulation.IMemoryMeasurement accumulation,
     MemoryStruct.IShipUiModule module,
     Parse.IMemoryMeasurement memoryMeasurement) =>
 accumulation?.ShipUiModule?.BestFitFromSet(module.AsAccuInstant(memoryMeasurement?.ShipUi), memoryMeasurement);