-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathguests.js
More file actions
245 lines (233 loc) · 23.6 KB
/
Copy pathguests.js
File metadata and controls
245 lines (233 loc) · 23.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
/** @typedef {import('../../ChoreoGraph/3.2.1/types/choreograph') } ChoreoGraphCore */
/** @typedef {import('../../ChoreoGraph/3.2.1/types/develop') } ChoreoGraphDevelop */
/** @typedef {import('../../ChoreoGraph/3.2.1/types/input') } ChoreoGraphInput */
/** @typedef {import('../../ChoreoGraph/3.2.1/types/audio') } ChoreoGraphAudio */
/** @typedef {import('../../ChoreoGraph/3.2.1/types/animation') } ChoreoGraphAnimation */
/** @typedef {import('../../ChoreoGraph/3.2.1/types/animationeditor') } ChoreoGraphAnimationEditor */
/** @typedef {import('../../ChoreoGraph/3.2.1/types/blockcontroller') } ChoreoGraphBlockController */
const queues = {
main : new QueueData({points:cg.createPath([[267,411],[263,416],[260,422],[256,426],[252,431],[248,435],[245,439],[245,445],[249,449],[253,453],[254,458],[252,463],[247,464],[241,462],[235,462],[230,465],[224,465],[218,464],[211,463],[208,458],[211,452],[217,450],[222,449],[226,447],[229,442],[229,437],[223,434],[217,433],[217,426],[219,419],[221,410],[223,402],[226,393],[227,385],[230,378],[231,370],[233,364],[238,361],[243,364],[241,370],[240,376],[238,383],[236,390],[235,396],[233,402],[232,409],[230,416],[232,421],[238,423],[242,419],[245,412],[247,404],[249,397],[252,389],[254,382],[256,374],[258,368],[260,362],[264,358],[269,359],[274,357],[277,352],[278,347],[280,343],[281,338],[287,338],[294,340],[301,342],[308,343],[313,341],[314,335],[312,330],[307,327],[301,326],[296,324],[290,323],[285,321],[280,320],[275,318],[270,317],[265,316],[260,315],[255,315],[251,317],[250,322],[251,326],[252,331],[254,335],[253,339],[250,342],[245,342],[240,341],[235,341],[230,341],[226,343],[222,346],[220,350],[220,355],[219,360],[217,364],[216,369],[214,374],[213,379],[212,385],[210,390],[209,396],[207,402],[205,409],[204,416],[200,420],[194,419],[188,418],[185,424],[182,428],[181,434],[183,438],[189,436],[194,437],[199,438],[199,443],[198,448],[196,454],[189,455],[182,453],[176,451],[169,449],[162,448],[156,445],[149,444],[143,442],[137,441],[131,439],[129,434],[131,428],[136,425],[141,424],[145,427],[150,426],[155,428],[161,428],[167,426],[170,421],[172,416],[174,411],[177,405],[177,399],[181,396],[183,390],[184,385],[186,380],[181,378],[176,377],[172,379],[169,383],[170,389],[168,394],[166,400],[164,406],[161,410],[155,410],[151,406],[152,401],[154,395],[155,389],[155,384],[155,379],[152,374],[147,374],[142,377],[140,382],[140,387],[139,393],[138,398],[137,403],[134,407],[129,408],[124,407],[119,404],[118,398],[119,393],[121,388],[123,383],[124,378],[124,373],[122,368],[118,364],[113,365],[109,368],[108,373],[105,377],[106,382],[104,386],[101,391],[95,392],[89,392],[84,394],[81,398],[81,403],[84,407],[89,409],[94,411],[100,412],[105,414],[110,416],[115,418],[117,423],[116,428],[114,432],[110,434],[105,433],[100,431],[95,431],[91,428],[85,428],[80,428],[75,430],[73,434],[71,439],[70,445],[68,449],[68,455],[70,461],[76,465],[82,465],[89,465],[94,465],[100,467],[105,469],[111,472],[116,475],[121,479],[126,482],[131,484],[137,486],[144,488],[151,490],[158,491],[165,492]],"mainQueue")}),
ll : new QueueData({points:cg.createPath([[279,420],[276,425],[273,429],[270,433],[267,436],[264,441],[264,446],[267,450],[270,454],[272,459],[271,465],[269,470],[268,475],[267,480],[265,484],[264,489],[262,494],[259,499],[256,504],[250,506],[243,505],[238,502],[234,498],[228,495],[221,493],[214,490],[207,489],[199,488],[191,487],[183,486],[174,484],[165,481]],"llQueue")}),
destroyerLeft : new QueueData({points:cg.createPath([[783,26],[777,24],[771,23],[765,23],[760,27],[760,33],[761,39],[761,45],[761,52],[761,59],[759,64],[754,65],[748,65],[742,66],[737,65],[731,65],[725,66],[719,66],[714,65],[709,65],[705,67],[704,72],[705,77],[705,82],[704,88],[705,93],[705,99],[705,105],[704,110],[705,115],[705,120],[704,125],[704,131],[705,137],[705,143],[704,150],[705,156],[705,162],[704,169],[705,175],[705,181],[705,187],[704,193],[704,200],[703,206],[698,209],[692,208],[686,208],[679,208]],"destroyerLeftQueue")}),
destroyerRight : new QueueData({points:cg.createPath([[783,33],[778,35],[775,40],[775,46],[774,52],[775,57],[775,64],[776,71],[775,77],[771,81],[764,81],[757,80],[750,79],[744,80],[738,79],[733,80],[727,80],[722,81],[718,83],[717,88],[718,93],[718,98],[718,104],[717,111],[718,118],[718,124],[719,129],[719,134],[719,139],[718,144],[718,149],[719,154],[719,159],[718,164],[718,169],[719,174],[719,179],[718,184],[719,189],[718,194],[719,199],[718,204],[717,210],[713,213],[708,216],[702,217],[696,217],[690,218],[684,218],[678,218]],"destroyerRightQueue")}),
}
const crowdParameters = {
merge : new CrowdParameters({
spots : cg.createPath([[310,390],[309,393],[310,397],[309,402],[307,408],[305,419],[302,422],[298,419],[299,424],[294,422],[290,420],[294,417],[301,416],[304,412],[304,405],[304,400],[306,396],[305,392],[300,389],[299,392],[301,396],[300,404],[300,410],[296,412],[291,413],[287,417],[285,411],[291,408],[296,407],[297,399],[295,395],[293,391],[288,393],[291,397],[294,401],[290,404],[285,406],[280,411],[278,408],[280,404],[286,400],[284,396],[281,392],[276,393],[275,398],[279,396],[280,400],[276,402],[274,406]],"mergeCrowd"),
fillTargets : [[313,381]],
emptyTargets : [[[313,394]],[[305,424]]],
jumpDistance : 7,
exits : [[0,1,2,16,17,20],[5,6,7,8,11,12]]
}),
readyRoomNorth : new CrowdParameters({
spots : cg.createPath([[321,380],[327,378],[332,376],[338,375],[343,375],[349,377],[353,380],[355,386],[354,391],[353,396],[352,401],[350,406],[346,408],[347,402],[348,398],[348,393],[349,388],[350,383],[346,380],[341,379],[336,380],[330,382],[325,382],[322,385],[319,388],[322,392],[326,390],[327,386],[333,385],[339,385],[344,384],[344,389],[343,395],[343,400],[343,406],[337,406],[338,401],[339,397],[340,392],[336,389],[331,390],[329,393],[326,396],[321,397],[324,401],[328,402],[331,398],[334,403],[335,395]],"readyRoomNorthCrowd"),
fillTargets : [[343,361],[364,374]],
emptyTargets : [[[360,404]]],
jumpDistance : 7,
exits : [[8,9,10,11,12,13,14,15,16]]
}),
readyRoomSouth : new CrowdParameters({
spots : cg.createPath([[344,431],[343,437],[341,441],[337,443],[340,446],[336,451],[334,456],[331,452],[329,457],[324,456],[321,459],[321,453],[316,455],[317,450],[313,447],[308,444],[305,437],[311,440],[314,443],[318,446],[323,448],[326,452],[329,449],[335,447],[332,442],[336,438],[339,434],[339,428],[333,428],[334,433],[331,435],[328,440],[328,445],[323,444],[318,441],[315,437],[309,435],[314,432],[319,435],[323,439],[326,435],[323,432],[328,430],[329,424],[324,426],[319,429],[318,424],[314,427],[308,430]],"readyRoomSouthCrowd"),
fillTargets : [[329,467],[350,456]],
emptyTargets : [[[349,438]]],
jumpDistance : 7,
exits : [[1,2,3,4,24,25,26]]
}),
outside : new CrowdParameters({
spots : cg.createPath([[438,415],[446,423],[452,436],[447,436],[443,429],[437,431],[436,422],[431,421],[423,419],[424,426],[430,428],[427,435],[437,438],[441,445],[444,440],[449,444],[444,450],[438,452],[434,447],[429,451],[426,447],[431,443],[426,440],[417,442],[419,448],[412,449],[410,439],[419,435],[418,429],[412,428],[417,420],[420,412],[429,415],[429,408],[422,405],[415,403],[412,409],[410,419],[405,425],[404,433],[406,444],[398,447],[399,440],[397,430],[397,421],[402,417],[405,410],[408,401],[398,412]],"outsideCrowd"),
fillTargets : [[458,433]],
emptyTargets : [[[465,420]]],
jumpDistance : 13,
exits : [[0,1,2,3,4,5,6,13,14,21,22,26,30,37,38,39]]
}),
hanger : new CrowdParameters({
spots : cg.createPath([[534,187],[536,182],[541,183],[548,184],[545,179],[551,180],[556,182],[559,178],[564,181],[567,177],[571,181],[574,177],[578,179],[581,176],[585,179],[590,178],[591,182],[596,180],[602,182],[598,185],[606,187],[607,192],[602,189],[599,193],[599,200],[604,195],[611,197],[607,201],[613,201],[610,206],[615,206],[618,202],[620,207],[624,206],[626,210],[631,208],[635,211],[631,213],[638,215],[641,210],[647,208],[647,213],[652,211],[653,218],[650,217],[646,219],[643,216],[641,220],[636,220],[634,216],[629,217],[626,214],[624,217],[619,211],[618,216],[614,216],[614,211],[609,213],[609,217],[603,215],[601,211],[605,207],[599,208],[594,204],[589,197],[593,191],[587,188],[585,184],[580,186],[575,184],[573,188],[569,185],[565,187],[560,185],[557,189],[553,185],[549,188],[553,193],[544,193],[540,188],[531,191],[536,193],[532,196],[535,201],[539,200],[544,203],[549,198],[555,199],[561,195],[569,193],[575,197],[581,195],[584,201],[588,207],[594,211],[595,215],[591,217],[588,213],[579,213],[581,209],[577,204],[569,203],[564,201],[557,206],[550,206],[538,206],[533,206],[530,202],[526,200],[526,206],[527,211],[537,211],[546,213],[557,214],[563,211],[571,210],[574,217],[583,217],[579,221],[571,221],[566,217],[560,219],[553,219],[547,218],[540,217],[530,215]],"hangerCrowd"),
fillTargets : [[558,167]],
emptyTargets : [[[646,216]]],
jumpDistance : 13,
exits : [[38,39,40,41,42,43,44,45,46,47]]
})
}
function addGuestToMainQueue() {
if (queues.main.occupied[queues.main.occupied.length-1]) {
return;
}
if (preshows.censuses.mainQueue>2427) {
return;
}
preshows.censuses.mainQueue++;
addHumanishCircle({
x : queues.main.points[queues.main.points.length-1][0],
y : queues.main.points[queues.main.points.length-1][1],
state : "queue",
queueData : queues.main,
space : SPACES.MAINQUEUE
});
}
function addGuestToLLQueue() {
if (queues.ll.occupied[queues.ll.occupied.length-1]) {
return;
}
if (preshows.censuses.mainQueue>2427) {
return;
}
preshows.censuses.llQueue++;
addHumanishCircle({
x : queues.ll.points[queues.ll.points.length-1][0],
y : queues.ll.points[queues.ll.points.length-1][1],
state : "queue",
queueData : queues.ll,
space : SPACES.LLQUEUE
});
}
const SPACES = {
MAINQUEUE : "mainQueue",
LLQUEUE : "llQueue",
MERGE : "merge",
READYROOMNORTH : "readyRoomNorth",
READYROOMSOUTH : "readyRoomSouth",
OUTSIDE : "outside",
ITS0 : "its0",
ITS1 : "its1",
ITS2 : "its2",
HANGER : "hanger",
DESTROYERQUEUELEFT : "destroyerQueueLeft",
DESTROYERQUEUERIGHT : "destroyerQueueRight",
LEFTGROUPER : "leftGrouper",
RIGHTGROUPER : "rightGrouper",
LOAD1 : "load1",
LOAD2 : "load2",
LOAD3 : "load3",
LOAD4 : "load4"
};
// CMs
function createCM(x,y,space,maxSpeed=0.005) {
return addHumanishCircle({
x : x,
y : y,
state : "cm",
space : space,
maxSpeed : maxSpeed
});
}
function moveCM(cmId,pathId) {
const cm = CMs[cmId];
if (cm===undefined) { return false; }
const path = cmPaths[pathId];
if (path===undefined) { return false; }
cm.path = cm.path.concat(path);
}
const cmPaths = {
rrnGreet : cg.createPath([[328,400],[322,394],[326,389],[335,388],[341,392],[343,399],[341,406],[336,408],[329,407]] ,"CMrrnGreet"),
rrnExpel : cg.createPath([[323,403],[320,395],[319,386],[322,378],[332,374],[334,380],[331,387],[330,394],[332,400],[340,402],[349,404],[362,408],[370,410],[373,403],[369,398],[359,396],[344,401],[329,407]] ,"CMrrnExpel"),
rrsGreet : cg.createPath([[322,426],[318,429],[313,430],[310,434],[312,439],[318,443],[327,444],[337,442],[342,435],[341,425],[335,422],[325,421]] ,"CMrrsGreet"),
rrsExpel : cg.createPath([[318,423],[312,428],[307,434],[306,442],[314,450],[316,444],[322,439],[334,437],[345,440],[353,447],[359,446],[359,440],[352,436],[339,431],[325,421]] ,"CMrrsExpel"),
outsidenUnload : cg.createPath([[382,395],[376,401],[378,408],[388,402],[398,398],[418,401],[432,407],[442,410],[452,410],[458,411]] ,"CMrrsUnload"),
outsidesUnload : cg.createPath([[375,452],[370,448],[371,442],[377,440],[383,444],[391,451],[408,453],[426,451],[448,445],[462,437],[468,430]] ,"CMrrsUnload"),
outsidenSupport : cg.createPath([[383,403],[381,417],[386,425],[398,432],[415,432],[430,428],[434,416],[425,404],[406,396],[388,392]] ,"CMrrnSupport"),
outsidesSupport : cg.createPath([[382,443],[380,430],[386,419],[401,422],[412,429],[427,436],[438,446],[434,459],[414,460],[386,458]] ,"CMrrsSupport"),
outsidenReset : cg.createPath([[443,410],[425,406],[404,399],[387,392]] ,"CMrrnReset"),
outsidesReset : cg.createPath([[469,438],[452,448],[424,453],[396,456],[381,455]] ,"CMrrsReset"),
deshipperGreet : cg.createPath([[536,244],[538,252],[544,259],[552,266],[555,273],[556,282]] ,"CMdeshipperGreet"),
deshipperAside : cg.createPath([[551,283],[545,283]] ,"CMdeshipperAside"),
deshipperCheck : cg.createPath([[547,286],[546,291],[542,293],[537,296],[536,302],[538,314],[539,325],[548,328],[558,325],[562,311],[559,295],[556,283],[551,268],[546,256],[535,239]] ,"CMdeshipperCheck"),
grouper1Lure : cg.createPath([[944,25],[964,25],[983,25],[998,25]] ,"CMgrouper1Lure"),
grouper1Incarcerate : cg.createPath([[1005,31],[1011,40]] ,"CMgrouper1Incarcerate"),
grouper1Return : cg.createPath([[1007,36],[994,30],[978,29],[958,28],[946,25]] ,"CMgrouper1Return"),
grouper2Lure : cg.createPath([[875,25],[890,25],[909,21],[911,13]] ,"CMgrouper2Lure"),
grouper2Incarcerate : cg.createPath([[910,22],[912,34],[916,42]] ,"CMgrouper2Incarcerate"),
grouper2Return : cg.createPath([[911,35],[900,31],[886,30],[868,28]] ,"CMgrouper2Return"),
grouper3Lure : cg.createPath([[809,82],[806,100],[800,109],[791,113]] ,"CMgrouper3Lure"),
grouper3Incarcerate : cg.createPath([[798,115],[811,115],[823,119]] ,"CMgrouper3Incarcerate"),
grouper3Return : cg.createPath([[817,113],[811,100],[810,84],[811,71]] ,"CMgrouper3Return"),
grouper4Lure : cg.createPath([[806,160],[806,175],[806,191],[806,205]] ,"CMgrouper4Lure"),
grouper4Incarcerate : cg.createPath([[812,211],[821,216]] ,"CMgrouper4Incarcerate"),
grouper4Return : cg.createPath([[814,211],[809,199],[807,181],[806,162],[806,149]] ,"CMgrouper4Return"),
load1lEnter : cg.createPath([[1053,18],[1054,39],[1054,50],[1050,53],[1041,54],[1037,56],[1036,60]] ,"CMload1lEnter"),
load1rEnter : cg.createPath([[1053,18],[1054,39],[1054,50],[1050,53],[1041,54],[1034,59],[1029,71],[1014,115],[1016,120]] ,"CMload1rEnter"),
load2lEnter : cg.createPath([[1053,18],[1054,39],[1054,50],[1050,53],[1041,54],[1034,59],[1029,71],[1015,114],[1013,120],[1009,122],[1002,122],[998,120],[993,105],[977,58],[975,55],[970,53],[950,53],[944,54],[941,57],[941,61]] ,"CMload2lEnter"),
load2rEnter : cg.createPath([[1053,18],[1054,39],[1054,50],[1050,53],[1041,54],[1034,59],[1029,71],[1015,114],[1013,120],[1009,122],[1002,122],[998,120],[993,105],[977,58],[975,55],[970,53],[950,53],[944,54],[939,58],[934,74],[921,113],[923,120]] ,"CMload2rEnter"),
load3lEnter : cg.createPath([[793,264],[812,264],[826,264],[833,262],[834,253],[834,243],[838,239],[846,235],[883,224],[897,219],[903,216],[904,211],[904,204],[899,201],[844,183],[837,181],[835,177],[835,171],[835,155],[836,147],[842,142],[857,136],[882,128],[897,122],[902,124]] ,"CMload3lEnter"),
load3rEnter : cg.createPath([[793,264],[812,264],[826,264],[833,262],[834,253],[834,243],[838,239],[846,235],[883,224],[897,219],[903,216],[904,211],[904,204],[899,201],[844,183],[837,181],[835,177],[835,171],[835,155],[836,148],[839,144],[843,145]] ,"CMload3rEnter"),
load4lEnter : cg.createPath([[793,264],[812,264],[826,264],[833,262],[834,253],[834,243],[838,239],[846,235],[883,224],[896,219],[900,221]] ,"CMload4lEnter"),
load4rEnter : cg.createPath([[793,264],[812,264],[826,264],[833,262],[834,253],[835,244],[838,239],[843,239]] ,"CMload4rEnter"),
load1lPrepare : cg.createPath([[1031,66],[1027,79]] ,"CMload1lPrepare"),
load1rPrepare : cg.createPath([[1017,111],[1020,102],[1025,92]] ,"CMload1rPrepare"),
load1rSurprise : cg.createPath([[1021,90],[1016,88],[1030,92],[1045,93]] ,"CMload1rSurprise"),
load1lCheck : cg.createPath([[1025,85],[1019,89],[1013,88],[1025,91],[1038,89],[1041,84],[1043,78],[1046,69],[1054,64],[1065,63],[1070,67],[1073,76],[1074,85],[1072,93],[1057,94],[1050,94],[1045,92],[1044,86],[1045,82],[1044,75],[1041,82],[1036,91],[1028,93],[1024,88],[1026,79],[1031,66],[1036,60]] ,"CMload1lCheck"),
load1lCheckShort : cg.createPath([[1025,85],[1019,89],[1013,88],[1025,91],[1038,89],[1041,84],[1043,78],[1046,69],[1045,78],[1045,90],[1045,82],[1044,75],[1041,82],[1036,91],[1028,93],[1024,88],[1026,79],[1031,66],[1036,60]],"CMload1lCheckShort"),
load1rCheck : cg.createPath([[1040,94],[1036,103],[1032,114],[1032,105],[1035,97],[1032,116],[1041,96],[1045,95],[1052,94],[1063,98],[1066,105],[1065,113],[1062,120],[1068,121],[1069,110],[1068,100],[1064,97],[1057,95],[1045,92],[1038,94],[1032,94],[1024,94],[1019,101],[1017,107],[1015,114],[1016,120]] ,"CMload1rCheck"),
load1rCheckShort : cg.createPath([[1040,94],[1036,103],[1032,114],[1032,105],[1035,97],[1032,116],[1038,100],[1038,94],[1032,94],[1024,94],[1019,101],[1017,107],[1015,114],[1016,120]],"CMload1rCheckShort"),
load2lPrepare : cg.createPath([[936,68],[934,78]] ,"CMload2lPrepare"),
load2rPrepare : cg.createPath([[922,113],[925,105],[929,97],[931,91]] ,"CMload2rPrepare"),
load2rSurprise : cg.createPath([[927,89],[920,86],[935,93],[949,95]] ,"CMload2rSurprise"),
load2lCheck : cg.createPath([[932,83],[925,87],[919,87],[931,90],[942,89],[945,81],[945,73],[949,67],[955,63],[964,63],[969,66],[973,73],[975,82],[977,89],[972,93],[963,95],[955,95],[948,92],[947,84],[945,78],[948,90],[942,94],[934,92],[931,87],[932,77],[936,66],[940,61]] ,"CMload2lCheck"),
load2lCheckShort : cg.createPath([[932,83],[925,87],[919,87],[931,90],[942,89],[945,81],[946,80],[945,84],[948,92],[947,84],[945,78],[948,90],[942,94],[934,92],[931,87],[932,77],[936,66],[940,61]],"CMload2lCheckShort"),
load2rCheck : cg.createPath([[946,96],[943,102],[941,109],[940,117],[944,121],[940,118],[939,112],[940,104],[944,98],[950,95],[956,94],[962,95],[968,97],[973,105],[971,114],[968,121],[974,118],[975,110],[970,98],[961,95],[949,94],[944,101],[941,112],[939,107],[939,99],[935,93],[929,93],[926,98],[924,106],[921,113],[923,120]] ,"CMload2rCheck"),
load2rCheckShort : cg.createPath([[946,96],[943,102],[941,109],[940,114],[940,104],[944,98],[944,101],[941,112],[939,107],[939,99],[935,93],[929,93],[926,98],[924,106],[921,113],[923,120]],"CMload2rCheckShort"),
load3lPrepare : cg.createPath([[893,126],[881,129],[873,133]] ,"CMload3lPrepare"),
load3rPrepare : cg.createPath([[847,140],[856,137],[861,136]] ,"CMload3rPrepare"),
load3lSurprise : cg.createPath([[871,131],[867,124],[874,137],[877,150],[878,157]] ,"CMload3rSurprise"),
load3lCheck : cg.createPath([[880,155],[890,152],[899,151],[903,153],[893,150],[883,152],[878,158],[878,166],[878,178],[886,185],[895,182],[905,177],[900,181],[892,184],[884,184],[880,179],[878,174],[878,164],[878,155],[886,151],[899,151],[892,150],[881,148],[876,140],[875,135],[881,129],[890,124],[895,124],[901,124]] ,"CMload3lCheck"),
load3lCheckShort : cg.createPath([[880,155],[890,152],[899,151],[897,151],[893,150],[883,152],[881,154],[886,151],[899,151],[892,150],[881,148],[876,140],[875,135],[881,129],[890,124],[895,124],[901,124]],"CMload3lCheckShort"),
load3rCheck : cg.createPath([[866,133],[868,128],[868,122],[872,133],[873,144],[870,148],[864,149],[858,148],[854,149],[850,153],[847,161],[847,170],[849,174],[854,177],[861,177],[867,179],[854,177],[847,172],[847,166],[849,158],[852,152],[855,149],[861,148],[866,149],[873,150],[867,146],[861,147],[856,148],[869,148],[873,147],[874,142],[872,136],[868,134],[861,134],[852,137],[846,140],[843,144]] ,"CMload3rCheck"),
load3rCheckShort : cg.createPath([[866,133],[868,128],[868,122],[872,133],[873,144],[870,148],[864,149],[858,148],[861,148],[866,149],[873,150],[866,148],[861,147],[856,148],[869,148],[873,147],[874,142],[872,136],[868,134],[861,134],[852,137],[846,140],[843,144]],"CMload3rCheckShort"),
load4lPrepare : cg.createPath([[894,221],[886,223],[877,226],[872,229]] ,"CMload4lPrepare"),
load4rPrepare : cg.createPath([[847,235],[855,233],[861,233]] ,"CMload4rPrepare"),
load4lSurprise : cg.createPath([[871,229],[869,222],[867,218],[870,228],[874,237],[877,246],[877,253]] ,"CMload4rSurprise"),
load4lCheck : cg.createPath([[879,251],[885,249],[891,247],[897,246],[901,247],[898,244],[891,245],[884,247],[879,252],[878,257],[878,265],[879,269],[882,276],[886,280],[891,280],[897,278],[905,274],[900,278],[890,280],[885,280],[881,276],[879,268],[878,259],[878,252],[880,246],[885,245],[893,244],[900,244],[892,244],[883,242],[877,239],[875,233],[877,227],[882,223],[890,222],[895,221],[900,221]] ,"CMload4lCheck"),
load4lCheckShort : cg.createPath([[879,251],[885,249],[891,247],[897,246],[898,246],[891,245],[884,247],[879,252],[882,248],[885,245],[893,244],[897,246],[892,244],[883,242],[877,239],[875,233],[877,227],[882,223],[890,222],[895,221],[900,221]],"CMload4lCheckShort"),
load4rCheck : cg.createPath([[867,230],[870,224],[868,218],[866,215],[871,225],[873,233],[873,239],[872,245],[869,248],[864,248],[858,247],[853,247],[849,251],[847,259],[846,269],[847,273],[852,275],[858,276],[866,277],[874,275],[876,277],[869,278],[858,278],[851,276],[847,271],[847,263],[849,255],[850,249],[853,246],[861,245],[867,247],[871,247],[874,249],[875,245],[865,244],[857,246],[865,243],[870,242],[872,236],[870,231],[865,230],[851,233],[846,235],[843,239]] ,"CMload4rCheck"),
load4rCheckShort : cg.createPath([[867,230],[870,224],[868,218],[866,215],[871,225],[873,233],[873,239],[872,245],[869,248],[864,248],[858,247],[853,247],[853,246],[861,245],[867,247],[873,249],[866,247],[857,246],[865,243],[870,242],[872,236],[870,231],[865,230],[851,233],[846,235],[843,239]],"CMload4rCheckShort"),
unload1Check : cg.createPath([[879,639],[873,635],[873,630],[873,627],[871,624],[866,624],[865,628],[865,637],[857,641],[846,641],[836,636],[833,632],[833,627],[832,624],[828,624],[825,626],[829,638],[838,645],[861,645],[871,642],[882,640]] ,"CMunload1Check"),
unload2Check : cg.createPath([[796,638],[793,632],[792,626],[788,626],[786,628],[786,635],[780,644],[771,646],[759,646],[753,638],[755,632],[754,626],[749,626],[748,634],[750,641],[754,648],[767,649],[782,649],[789,645],[800,641]] ,"CMunload2Check"),
}
const CMs = {
mergeA : createCM(268,401,SPACES.MERGE),
mergeB : createCM(306,385,SPACES.MERGE),
rrn : createCM(329,406,SPACES.READYROOMNORTH),
rrs : createCM(323,421,SPACES.READYROOMSOUTH),
outsiden : createCM(387,392,SPACES.OUTSIDE),
outsides : createCM(381,455,SPACES.OUTSIDE),
deshipper : createCM(535,239,SPACES.HANGER),
hangera : createCM(527,184,SPACES.HANGER),
hangerb : createCM(599,221,SPACES.HANGER),
hallway : createCM(720,219,SPACES.HANGER),
leftGrouper : createCM(823,26,SPACES.LEFTGROUPER),
rightGrouper : createCM(803,43,SPACES.RIGHTGROUPER),
grouper1 : createCM(945,26,SPACES.LEFTGROUPER),
grouper2 : createCM(875,25,SPACES.LEFTGROUPER),
grouper3 : createCM(811,71,SPACES.RIGHTGROUPER),
grouper4 : createCM(806,150,SPACES.RIGHTGROUPER),
load1l : createCM(1054,-39,SPACES.LOAD1), // door
load1r : createCM(1054,-25,SPACES.LOAD1), // surprise
load2l : createCM(1054,-13,SPACES.LOAD2), // door
load2r : createCM(1054,-2,SPACES.LOAD2), // surprise
load3l : createCM(776,264,SPACES.LOAD3), // surprise
load3r : createCM(765,264,SPACES.LOAD3), // door
load4l : createCM(751,264,SPACES.LOAD4), // surprise
load4r : createCM(734,264,SPACES.LOAD4), // door
unload1 : createCM(880,640,SPACES.LOAD4,0.01),
unload2 : createCM(797,640,SPACES.LOAD4,0.01),
}
moveCM("load1l","load1lEnter");
moveCM("load1r","load1rEnter");
moveCM("load2l","load2lEnter");
moveCM("load2r","load2rEnter");
moveCM("load3l","load3lEnter");
moveCM("load3r","load3rEnter");
moveCM("load4l","load4lEnter");
moveCM("load4r","load4rEnter");
cg.createEvent({
duration : 70000,
end : () => {
moveCM("load1l","load1lPrepare");
moveCM("load1r","load1rPrepare");
moveCM("load2l","load2lPrepare");
moveCM("load2r","load2rPrepare");
moveCM("load3l","load3lPrepare");
moveCM("load3r","load3rPrepare");
moveCM("load4l","load4lPrepare");
moveCM("load4r","load4rPrepare");
}
})