Path width bugfix
This commit is contained in:
parent
554a30b09e
commit
6fba1735f9
141
Assets/Data/Tablica2.csv
Normal file
141
Assets/Data/Tablica2.csv
Normal file
@ -0,0 +1,141 @@
|
|||||||
|
Ranga stanowiska ,wybrany sposób parkowania,Klasyfikacja gabarytu ,od planwane,do planowane,od rzeczywiste,do rzeczywiste,czas miedzy sprawdzaniem miejsca
|
||||||
|
1,P,Duży,9,15,8:45,13:20,60
|
||||||
|
1,T,Duży,8,10,7:53,10:01,60
|
||||||
|
1,,Duży,9,13,8:53,14:02,60
|
||||||
|
1,P,Duży,8,16,7:45,16:10,60
|
||||||
|
1,,Duży,9,16,9:30,14,60
|
||||||
|
1,P,Duży,11,14,12,14:10,60
|
||||||
|
1,P,Duży,10,15,9:50,13:10,60
|
||||||
|
1,P,Duży,9,15,9:20,14:50,60
|
||||||
|
1,,Duży,9,17,9,17:04,60
|
||||||
|
1,,Duży,12,17,12:50,17:02,60
|
||||||
|
1,,Duży,9,17,9,16:58,60
|
||||||
|
1,P,Duży,10,15,9:50,13:30,60
|
||||||
|
1,,Duży,9,14,9:30,14:10,60
|
||||||
|
1,,Duży,8,16,7:56,17:12,60
|
||||||
|
1,,Duży,9,15,10,12:30,60
|
||||||
|
2,,Duży,8,16,7:50,17:05,15
|
||||||
|
2,P,Duży,7,15,6:40,14:50,15
|
||||||
|
2,,Duży,7,15,7:05,15:14,15
|
||||||
|
2,,Duży,10,16,10:49,15:58,15
|
||||||
|
2,P,Duży,8,16,8:49,15:04,15
|
||||||
|
2,,Duży,9,17,9:23,16:59,15
|
||||||
|
2,P,Duży,8,16,7:49,16:05,15
|
||||||
|
2,T,Duży,7:30,15:30,7:27,15:36,15
|
||||||
|
2,T,Duży,8,16,8:10,15:50,15
|
||||||
|
2,P,Duży,7:30,15:30,7:53,15:37,15
|
||||||
|
2,,Duży,8,16,7:53,16:01,15
|
||||||
|
2,T,Duży,7:30,15:30,7:35,15:30,15
|
||||||
|
2,,Duży,8,16,7:53,16:40,15
|
||||||
|
2,P,Duży,8,16,7:57,16:01,15
|
||||||
|
2,,Duży,8,16,7:45,16:10,15
|
||||||
|
2,T,Duży,11,16,11:18,16:13,15
|
||||||
|
2,,Duży,10,16,10:05,16:08,15
|
||||||
|
2,,Duży,7,15,7,15:10,15
|
||||||
|
3,P,Duży,6,14,6:05,13:55,15
|
||||||
|
3,,Duży,8,16,7:45,16:10,15
|
||||||
|
3,P,Duży,8,16,7:50,16:15,15
|
||||||
|
3,,Duży,8,16,8:03,16:10,15
|
||||||
|
3,,Duży,8,10,8,9:58,15
|
||||||
|
3,,Duży,7:30,12:30,7:25,12:32,15
|
||||||
|
3,T,Duży,8,12,8:02,12:05,15
|
||||||
|
3,,Duży,7:30,13:30,7:28,13:40,15
|
||||||
|
3,T,Duży,7:30,15:30,7:15,15:17,15
|
||||||
|
3,,Duży,8,16,7:45,16:10,15
|
||||||
|
3,P,Duży,7,7,6:58,7:10,15
|
||||||
|
3,P,Duży,8,16,7:57,15:58,15
|
||||||
|
3,,Duży,6,14,6:05,14:10,15
|
||||||
|
3,,Duży,6,14,6:01,14:03,15
|
||||||
|
3,,Duży,6:30,14:30,6:32,14:34,15
|
||||||
|
3,P,Duży,7,15,6:57,15,15
|
||||||
|
3,P,Duży,8,16,7:45,16:10,15
|
||||||
|
3,,Duży,8,16,8:02,15:59,15
|
||||||
|
3,,Duży,8:30,16:30,8:21,16:27,15
|
||||||
|
3,P,Duży,9,17,9:02,17:10,15
|
||||||
|
3,,Duży,9,17,8:57,16:58,15
|
||||||
|
3,,Duży,8,16,8:04,16:12,15
|
||||||
|
3,,Duży,8,16,7:52,15:57,15
|
||||||
|
3,T,Duży,7,15,7:08,15:14,15
|
||||||
|
3,,Duży,7:30,15:30,7:31,15:39,15
|
||||||
|
3,,Duży,8,16,7:56,15:57,15
|
||||||
|
3,,Duży,8,16,7:50,15:59,15
|
||||||
|
3,P,Duży,8:30,16:30,8:27,16:34,15
|
||||||
|
3,,Duży,7,15,6:57,15:05,15
|
||||||
|
3,,Duży,8,16,8:02,15:59,15
|
||||||
|
3,T,Duży,7,15,6:54,15:01,15
|
||||||
|
3,,Duży,8,16,7:49,15:58,15
|
||||||
|
3,,Duży,8,16,8,15:58,15
|
||||||
|
3,,Duży,8:30,16:30,8:25,16:32,15
|
||||||
|
3,T,Mały,8,16,8:04,16:10,15
|
||||||
|
3,,Mały,7,15,6:58,15:03,15
|
||||||
|
3,,Mały,7:30,15:30,7:29,15:40,15
|
||||||
|
3,,Mały,7:30,3:30,7:28,12:33,15
|
||||||
|
3,P,Mały,7,15,7:57,14:59,15
|
||||||
|
3,P,Mały,7,13,0:00,0:00,15
|
||||||
|
3,,Mały,8,16,8:04,15:59,15
|
||||||
|
3,,Mały,7:30,15:30,7:25,15:35,15
|
||||||
|
3,P,Mały,8,16,8:02,15:58,15
|
||||||
|
3,,Mały,7:30,15:30,7:28,15:34,15
|
||||||
|
3,,Mały,8,16,7:53,16:01,15
|
||||||
|
3,,Mały,7,12,6:58,12:05,15
|
||||||
|
3,,Mały,8,13,7:56,13:59,15
|
||||||
|
3,,Mały,7:30,12,7:24,12:28,15
|
||||||
|
3,,Mały,8,14,8:01,14:07,15
|
||||||
|
3,T,Mały,8,13,8:10,13:12,15
|
||||||
|
3,,Mały,7:30,15:30,7:22,15:20,15
|
||||||
|
3,P,Mały,8,16,7:49,15:58,15
|
||||||
|
3,,Mały,8,16,7:45,16:10,15
|
||||||
|
3,,Mały,7:30,15:30,7:31,15:35,15
|
||||||
|
3,,Mały,7,15,6:57,15:01,15
|
||||||
|
3,T,Mały,7,15,7:08,1:15,15
|
||||||
|
3,,Mały,7:30,15:30,7:25,15:28,15
|
||||||
|
3,,Mały,8,16,7:53,16:01,15
|
||||||
|
3,P,Mały,8,16,7:56,15:58,15
|
||||||
|
3,,Mały,7,15,6:56,15:03,15
|
||||||
|
3,T,Mały,7,15,7,15:05,15
|
||||||
|
3,,Mały,8,16,7:56,16:58,15
|
||||||
|
3,P,Mały,7,15,6:57,14:59,15
|
||||||
|
3,,Mały,7,15,6:55,14:58,15
|
||||||
|
3,,Mały,8,16,8:02,16:07,15
|
||||||
|
3,T,Mały,8,16,7:56,16:05,15
|
||||||
|
3,,Mały,7,15,6:58,15:03,15
|
||||||
|
3,,Mały,8,16,8,16:05,15
|
||||||
|
3,,Mały,8,16,8:04,15:58,15
|
||||||
|
3,,Mały,7:30,15:30,7:34,15:40,15
|
||||||
|
3,P,Mały,8,16,7:53,16:01,15
|
||||||
|
3,,Mały,8,13,7:49,13:02,15
|
||||||
|
3,,Mały,7,15,6:58,15:04,15
|
||||||
|
3,,Mały,7,15,7:08,15:05,15
|
||||||
|
3,P,Mały,8,16,7:58,16:05,15
|
||||||
|
3,,Mały,7,15,7:04,15:11,15
|
||||||
|
3,P,Mały,6:30,14:30,6:25,14:29,15
|
||||||
|
3,P,Mały,9,17,8:49,17:05,15
|
||||||
|
3,,Mały,9,17,8:55,17:01,15
|
||||||
|
3,P,Mały,7,15,6:58,15:10,15
|
||||||
|
3,,Mały,7:30,15:30,7:25,15:31,15
|
||||||
|
3,,Mały,7:30,11:30,7:27,11:32,15
|
||||||
|
3,T,Mały,8,16,7:56,16,15
|
||||||
|
3,,Mały,8,16,8:02,16:05,15
|
||||||
|
3,,Mały,7:30,15:30,7:36,15:40,15
|
||||||
|
3,,Mały,8,16,8:04,16:07,15
|
||||||
|
3,P,Mały,8,9,7:59,9:09,15
|
||||||
|
3,,Mały,7:15,15:15,7:10,15:18,15
|
||||||
|
3,T,Mały,8,16,7:49,15:51,15
|
||||||
|
3,,Mały,8,16,8:04,16:11,15
|
||||||
|
3,P,Mały,8,16,8:02,16:03,15
|
||||||
|
3,,Mały,7,15,7:01,15:07,15
|
||||||
|
3,,Mały,7:30,15:30,7:25,15:25,15
|
||||||
|
3,P,Mały,7,15,7:08,15:15,15
|
||||||
|
3,,Mały,8,16,7:45,16:10,15
|
||||||
|
3,,Mały,8,16,7:49,15:59,15
|
||||||
|
3,,Mały,8,16,7:45,16:10,15
|
||||||
|
3,T,Mały,7,15,7:07,15:20,15
|
||||||
|
3,,Mały,7,15,7:02,15:11,15
|
||||||
|
3,,Mały,8,16,8:06,15:49,15
|
||||||
|
3,P,Mały,7,15,7:24,16:40,15
|
||||||
|
3,,Mały,8,16,8:02,16:05,15
|
||||||
|
3,,Mały,8,16,8:05,16:01,15
|
||||||
|
3,T,Mały,7,15,7:13,15:13,15
|
||||||
|
3,,Mały,8,16,7:36,16:00,15
|
||||||
|
3,T,Mały,7,15,6:55,15:11,15
|
||||||
|
3,,Mały,9,17,9:09,17:14,15
|
|
7
Assets/Data/Tablica2.csv.meta
Normal file
7
Assets/Data/Tablica2.csv.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1284130f1c86f01e6b11e7eaf4f03688
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -17,7 +17,7 @@ namespace Parking
|
|||||||
|
|
||||||
var spotsCreated = new int[4, 4];
|
var spotsCreated = new int[4, 4];
|
||||||
|
|
||||||
var count = 98;
|
var count = 100;
|
||||||
|
|
||||||
var maxCount = 0;
|
var maxCount = 0;
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ namespace Parking
|
|||||||
for (var spotSize = 2; spotSize >= 0; spotSize--)
|
for (var spotSize = 2; spotSize >= 0; spotSize--)
|
||||||
for (var laneId = 3; laneId >= 0; laneId--)
|
for (var laneId = 3; laneId >= 0; laneId--)
|
||||||
{
|
{
|
||||||
if (AvailableSizesCombinations[sizeIds[laneId]] <= spotSizes[spotSize] &&
|
if (AvailableSizesCombinations[sizeIds[laneId]] >= spotSizes[spotSize] &&
|
||||||
spotCountsPerpendicular[laneId] != 0)
|
spotCountsPerpendicular[laneId] != 0)
|
||||||
{
|
{
|
||||||
// parking perpendicular
|
// parking perpendicular
|
||||||
@ -145,11 +145,10 @@ namespace Parking
|
|||||||
|
|
||||||
spotsCreated[laneId, spotSize] += spotsTaken;
|
spotsCreated[laneId, spotSize] += spotsTaken;
|
||||||
|
|
||||||
// TODO: Allow modified configuration
|
// TODO: Allow mixed configuration
|
||||||
for (var x = 0; x < 3; x++)
|
for (var x = 0; x < 3; x++)
|
||||||
spotCountsParallel[laneId, x] = 0;
|
spotCountsParallel[laneId, x] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// else if (sizeIds[laneId] == 0 && spotCountsParallel[laneId, spotSize] != 0) { // parking parallel
|
// else if (sizeIds[laneId] == 0 && spotCountsParallel[laneId, spotSize] != 0) { // parking parallel
|
||||||
// int spotsTaken = Math.Min(requiredCounts[spotSize], spotCountsParallel[laneId, spotSize]);
|
// int spotsTaken = Math.Min(requiredCounts[spotSize], spotCountsParallel[laneId, spotSize]);
|
||||||
//
|
//
|
||||||
@ -158,7 +157,7 @@ namespace Parking
|
|||||||
//
|
//
|
||||||
// spotsCreated[laneId, spotSize] += spotsTaken;
|
// spotsCreated[laneId, spotSize] += spotsTaken;
|
||||||
//
|
//
|
||||||
// // TODO: Allow modified configuration
|
// // TODO: Allow mixed configuration
|
||||||
// spotCountsPerpendicular[laneId] = 0;
|
// spotCountsPerpendicular[laneId] = 0;
|
||||||
// for(int x = 0; x < 3; x++)
|
// for(int x = 0; x < 3; x++)
|
||||||
// if(x != spotSize)
|
// if(x != spotSize)
|
||||||
|
Loading…
Reference in New Issue
Block a user