aboutsummaryrefslogtreecommitdiff
path: root/engines/cryomni3d/versailles/data.cpp
blob: 365afbbe8e5c00a75620b8e611b12d6bf3930690 (plain)
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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
/* ScummVM - Graphic Adventure Engine
 *
 * ScummVM is the legal property of its developers, whose names
 * are too numerous to list here. Please refer to the COPYRIGHT
 * file distributed with this source distribution.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 *
 */

#include "cryomni3d/versailles/engine.h"

namespace CryOmni3D {
namespace Versailles {

const unsigned int CryOmni3DEngine_Versailles::kSpritesMapTable[] = {
	/*   0 */ 242, 240, 243, 241, 256,  93,  97,  94, 160,  98, 178, 161, 179, 196, 197, 244,
	/*  16 */ 142, 245, 143, 254,  95,  99, 113,  96, 100, 180, 114, 181,  73, 144,  74, 250,
	/*  32 */ 202, 145, 170, 251, 203, 130, 206, 171,  49, 131, 207, 115, 116, 222,  75,  85,
	/*  48 */  76, 252, 204, 236,  86, 172, 253, 205, 237, 132,  81, 208, 173, 133,  82, 209,
	/*  64 */  24, 101,  25, 102,  87, 198,  88,  83, 258, 199,  84, 259, 257, 260,  26, 103,
	/*  80 */  28,  44,  27, 104,  29,  45, 200, 105, 201, 106, 162, 163,  32,  30,  46, 126,
	/*  96 */  33,  31,  47,   5, 127, 122, 219, 227, 123, 220, 107,  69, 108,  70, 164, 165,
	/* 112 */  89,   4,  90,  36,  34,  58, 128, 109,  37,  35, 255, 129, 110, 124, 125,  71,
	/* 128 */  40,  72,  41,  91,  92,  59, 228,  38,   7,  60, 111, 229,  39, 149, 121, 138,
	/* 144 */ 112,   6, 139, 148,  42,  43, 232, 230, 233, 231, 140, 141, 134, 150, 135, 234,
	/* 160 */ 151,  20, 226, 261, 235,  21, 262, 166, 246, 167, 136,  50, 247, 215, 152, 137,
	/* 176 */  51, 216, 153,  22, 117,  48,  23, 225, 118, 223, 182, 168, 248, 183, 169,  54,
	/* 192 */  52, 249, 217,  55,  53, 218,   8, 214, 119, 120, 186, 184, 154,  61, 187, 185,
	/* 208 */ 155,  62,  56,  57, 188, 156,  65,  63, 210, 189, 157,  66,  64, 211,  19,   3,
	/* 224 */  80, 221,   1, 263,  78,  67, 174, 212,  68, 175, 213, 190, 191, 238,   0, 239,
	/* 240 */ 224,  77, 146,   2, 147,  79, 158, 176, 159, 177, 194, 192, 195, 193, /*-1u, -1u*/
};
const unsigned int CryOmni3DEngine_Versailles::kSpritesMapTableSize = ARRAYSIZE(kSpritesMapTable);

const LevelInitialState CryOmni3DEngine_Versailles::kLevelInitialStates[] = {
	{  1, M_PI,   0. }, // Level 1
	{  9, M_PI,   0. }, // Level 2
	{ 10, M_PI_2, 0. }, // Level 3
	{ 10, 0.,     0. }, // Level 4
	{ 14, M_PI,   0. }, // Level 5
	{  8, 0.,     0. }, // Level 6
	{  1, M_PI,   0. }, // Level 7
	{  4, M_PI,   0. }  // Level 8
};

const FakeTransitionActionPlace CryOmni3DEngine_Versailles::kFakeTransitions[] = {
	{31141, 15},
	{31142, 16},
	{31143, 17},
	{32201, 18},
	{32202, 19},
	{32203, 20},
	{32204, 21},
	{35330, 36},
	{34172, 18},
	{0, 0} // Must be the last one
};

void CryOmni3DEngine_Versailles::setupMessages() {
	_messages.resize(146);
#define SET_MESSAGE(id, str) _messages[id] = str
	SET_MESSAGE(0, "Il est interdit d'ouvrir cette porte pour l'instant.");
	SET_MESSAGE(1, "Cette porte est ferm" "\x8e" "e " "\x88" " clef.");
	SET_MESSAGE(2, "Cette porte est ferm" "\x8e" "e.");
	SET_MESSAGE(3, "Ce tiroir est vide.");
	SET_MESSAGE(4, "Vous ne pouvez pas atteindre la b" "\x89" "che.");
	SET_MESSAGE(5, "Il n'y a rien dans cet oranger");
	SET_MESSAGE(6, "Ceci n'est pas un oranger!");
	SET_MESSAGE(7, "Il fait trop sombre. ");
	SET_MESSAGE(8, "Le coffre est ferm" "\x8e" ". ");
	SET_MESSAGE(9, "Vous pouvez ouvrir la porte");
	SET_MESSAGE(10, "Il faudrait quelque chose pour atteindre la bombe.");
	SET_MESSAGE(11, "Ce vase est vide.");
	SET_MESSAGE(12, "Maintenant, vous pouvez y aller.");
	SET_MESSAGE(13, "Vous n" "\xd5" "avez plus le temps de vous renseigner sur la Cour!");
	SET_MESSAGE(14, "Il est trop tard pour regarder les tableaux!");
	SET_MESSAGE(16, "Vous ne pouvez pas atteindre le papier.");
	SET_MESSAGE(15, "Attendez ! Transmettez donc vos indices " "\x88" " l'huissier.");
	SET_MESSAGE(17, "Vers l'apothicairerie");
	SET_MESSAGE(
	    18,
	    "Attention : Vous allez pouvoir terminer ce niveau, mais vous n'avez pas effectu" "\x8e"
	    " toutes les actions necessaires pour la suite. "
	    "Il est conseill" "\x8e" " de SAUVEGARDER votre partie maintenant.");
	SET_MESSAGE(
	    19,
	    "Attention : Vous allez pouvoir terminer ce niveau, mais vous n'avez peut-" "\x89" "tre"
	    " pas effectu" "\x8e" " toutes les actions necessaires pour la suite. "
	    "Il est conseill" "\x8e" " de SAUVEGARDER votre partie maintenant.");
	SET_MESSAGE(20, "Vous ne pouvez pas vous d" "\x8e" "placer en portant une " "\x8e" "chelle!");
	SET_MESSAGE(21, "Il n'y a plus rien ici");
	SET_MESSAGE(22, "Au revoir ...");
	SET_MESSAGE(23, "VERSAILLES,");
	SET_MESSAGE(24, "Complot " "\x88" " la Cour du Roi Soleil");
	SET_MESSAGE(27, "           Commencer une nouvelle partie");
	SET_MESSAGE(26, "           Reprendre la partie en cours");
	SET_MESSAGE(44, "           Reprendre la visite en cours");
	SET_MESSAGE(28, "           Charger une partie");
	SET_MESSAGE(46, "           Charger une visite");
	SET_MESSAGE(29, "           Sauver la partie");
	SET_MESSAGE(45, "           Sauver la visite");
	SET_MESSAGE(25, "Consulter l'espace documentaire");
	SET_MESSAGE(42, "Visiter le ch" "\x89" "teau");
	SET_MESSAGE(48, "           Omni3D : normal");
	SET_MESSAGE(51, "           Omni3D : rapide");
	SET_MESSAGE(52, "           Omni3D : tr" "\x8f" "s rapide");
	SET_MESSAGE(49, "           Omni3D : lent");
	SET_MESSAGE(50, "           Omni3D : tr" "\x8f" "s lent");
	SET_MESSAGE(30, "           Afficher les sous-titres : OUI");
	SET_MESSAGE(31, "           Afficher les sous-titres : NON");
	SET_MESSAGE(32, "           Musique : OUI");
	SET_MESSAGE(33, "           Musique : NON");
	SET_MESSAGE(35, "           Toutes les musiques sur disque dur (92 Mo)");
	SET_MESSAGE(34, "           Une seule musique sur disque dur (20 Mo)");
	SET_MESSAGE(36, "           Aucune musique sur disque dur (lecture CD)");
	SET_MESSAGE(43, "Cr" "\x8e" "dits");
	SET_MESSAGE(39, "Volume");
	SET_MESSAGE(41, "");
	SET_MESSAGE(40, "Quitter le jeu");
	SET_MESSAGE(53, "Confirmer");
	SET_MESSAGE(54, "Annuler");
	SET_MESSAGE(55, "libre");
	SET_MESSAGE(56, "sans nom");
	SET_MESSAGE(57, "Attention : la partie en cours va " "\x89" "tre abandonn" "\x8e" "e.");
	SET_MESSAGE(58, "Retour");
	SET_MESSAGE(59, "Le chateau");
	SET_MESSAGE(60, "Retour Menu Principal");
	SET_MESSAGE(61, "Sommaire Espace documentaire");
	SET_MESSAGE(62, "Plan du ch" "\x89" "teau et des jardins");
	SET_MESSAGE(63, "Plan des int" "\x8e" "rieurs du ch" "\x89" "teau");
	SET_MESSAGE(64, "Probl" "\x8f" "me d'" "\x8e" "criture sur dique dur : disque plein ");
	SET_MESSAGE(66, "Veuillez ins" "\x8e" "rer le CD ");
	SET_MESSAGE(67, "Veuillez ins" "\x8e" "rer le CD %d et presser une touche");
	SET_MESSAGE(68, "Les arts");
	SET_MESSAGE(69, "Le r" "\x8f" "gne");
	SET_MESSAGE(70, "La Cour");
	SET_MESSAGE(71, "Vie de Ch" "\x89" "teau");
	SET_MESSAGE(72, "Le ch" "\x89" "teau et les jardins");
	SET_MESSAGE(73, "Chronologie");
	SET_MESSAGE(74, "Bassin d'Apollon");
	SET_MESSAGE(75, "Le Ch" "\x89" "teau");
	SET_MESSAGE(76, "Colonnade");
	SET_MESSAGE(77, "Labyrinthe");
	SET_MESSAGE(78, "Latone");
	SET_MESSAGE(79, "Orangerie");
	SET_MESSAGE(80, "Parterre d'eau");
	SET_MESSAGE(81, "Tapis vert");
	SET_MESSAGE(86, "Grand Canal");
	SET_MESSAGE(87, "Parterre du Midi");
	SET_MESSAGE(88, "Parterre du nord");
	SET_MESSAGE(89, "Potager du Roi");
	SET_MESSAGE(90, "Salle de bal");
	SET_MESSAGE(91, "Bassin de Neptune");
	SET_MESSAGE(92, "Pi" "\x8f" "ce d'eau des suisses");
	SET_MESSAGE(82, "Grandes Ecuries");
	SET_MESSAGE(83, "Petites Ecuries");
	SET_MESSAGE(84, "Les jardins");
	SET_MESSAGE(85, "Avant cour");
	SET_MESSAGE(93, "Aiguilles (Inutile!)");
	SET_MESSAGE(94, "Ciseaux");
	SET_MESSAGE(95, "Papier");
	SET_MESSAGE(96, "Pamphlet sur les arts");
	SET_MESSAGE(97, "Petite clef 1");
	SET_MESSAGE(98, "Papier r" "\x8e" "v" "\x8e" "l" "\x8e" "");
	SET_MESSAGE(99, "Papier t" "\x89" "ch" "\x8e" "");
	SET_MESSAGE(100, "Papier du coffre");
	SET_MESSAGE(101, "Pamphlet sur la lign" "\x8e" "e royale");
	SET_MESSAGE(102, "Bougie allum" "\x8e" "e");
	SET_MESSAGE(103, "Bougie");
	SET_MESSAGE(104, "Clef ");
	SET_MESSAGE(105, "Carton " "\x88" " dessin");
	SET_MESSAGE(106, "Carton " "\x88" " dessin");
	SET_MESSAGE(107, "Fausse esquisse");
	SET_MESSAGE(108, "Echelle");
	SET_MESSAGE(109, "Esquisse d" "\x8e" "truite");
	SET_MESSAGE(110, "pinceau");
	SET_MESSAGE(111, "pinceau Or");
	SET_MESSAGE(112, "pinceau Rouge");
	SET_MESSAGE(113, "Fusain");
	SET_MESSAGE(114, "Papier");
	SET_MESSAGE(115, "Pamphlet sur l" "\xd5" "architecture");
	SET_MESSAGE(116, "Petite clef 2");
	SET_MESSAGE(117, "Archer(inutile!)");
	SET_MESSAGE(118, "Partition");
	SET_MESSAGE(119, "Queue de billard");
	SET_MESSAGE(120, "Autorisation");
	SET_MESSAGE(121, "Reproduction des m" "\x8e" "dailles");
	SET_MESSAGE(122, "Tiroir " "\x88" " m" "\x8e" "dailles");
	SET_MESSAGE(123, "Clef de la petite porte d" "\xd5" "Apollon");
	SET_MESSAGE(124, "Nourriture");
	SET_MESSAGE(125, "Pamphlet sur la religion");
	SET_MESSAGE(126, "Epigraphe");
	SET_MESSAGE(127, "Pamphlet sur le gouvernement");
	SET_MESSAGE(128, "Plume");
	SET_MESSAGE(129, "Pense-b" "\x89" "te");
	SET_MESSAGE(130, "Lunette");
	SET_MESSAGE(131, "Plan Vauban");
	SET_MESSAGE(132, "Plan Vauban");
	SET_MESSAGE(133, "Cordon");
	SET_MESSAGE(134, "Gravure");
	SET_MESSAGE(135, "Petite clef 3");
	SET_MESSAGE(136, "Petite clef 4");
	SET_MESSAGE(137, "M" "\x8e" "morandum");
	SET_MESSAGE(138, "Plans du chateau");
	SET_MESSAGE(139, "Plans du chateau");
	SET_MESSAGE(140, "Clef des combles");
	SET_MESSAGE(141, "Fables");
	SET_MESSAGE(142, "Plan du Labyrinthe");
	SET_MESSAGE(143, "Outil");
	SET_MESSAGE(144, "M" "\x8e" "dicament");
	SET_MESSAGE(145, "Eteignoir");
#undef SET_MESSAGE
}

void CryOmni3DEngine_Versailles::setupPaintingsTitles() {
	_paintingsTitles.reserve(48);
#define SET_PAINTING_TITLE(str) _paintingsTitles.push_back(str)
	SET_PAINTING_TITLE("\"Entr" "\x8e" "e des animaux dans l'arche\"\rGerolamo Bassano"); // 0: 41201
	SET_PAINTING_TITLE("\"Le repas d'Emma" "\x9f" "s\"\rJacopo Bassano"); // 1: 41202
	SET_PAINTING_TITLE("\"La Madeleine aux pieds de J\x8esus Christ\"\rSustris"); // 2: 41203
	SET_PAINTING_TITLE("\"La sortie de l'arche\"\rGerolamo Bassano"); // 3: 41204
	SET_PAINTING_TITLE("\"Le frappement du rocher\"\rJacopo Bassano"); // 4: 41205
	SET_PAINTING_TITLE("\"La Bataille d'Arbelles\"\rJoseph Parrocel"); // 5: 41301
	SET_PAINTING_TITLE("\"Alexandre Le Grand vainqueur de Darius " "\x88"
	                   " la bataille d'Arbelles\"\rLe Bourguignon"); // 6: 41302
	SET_PAINTING_TITLE("\"Le Combat de Leuze\"\rJoseph Parrocel"); // 7: 42401
	SET_PAINTING_TITLE("\"Sainte C" "\x8e"
	                   "cile avec un ange tenant une partition musicale\"\rDominiquin"); // 8: 42901
	SET_PAINTING_TITLE("\"Don Francisco du Moncada \"\rVan Dyck"); // 9: 42902
	SET_PAINTING_TITLE("\"Le Petit Saint Jean Baptiste\"\rLe Carrache"); // 10: 42903
	SET_PAINTING_TITLE("\"Saint Mathieu\"\rValentin"); // 11: 42904
	SET_PAINTING_TITLE("\"Le Denier de C" "\x8e" "sar \"\rValentin"); // 12: 42905
	SET_PAINTING_TITLE("\"Saint Luc\"\rValentin"); // 13: 42906
	SET_PAINTING_TITLE("\"Le mariage mystique de Sainte Catherine\"\r Alessandro Turchi"); // 14: 42907
	SET_PAINTING_TITLE("\"R" "\x8e" "union de buveurs\"\rNicolas Tournier"); // 15: 42908
	SET_PAINTING_TITLE("\"La diseuse de Bonne aventure \"\rValentin"); // 16: 42909
	SET_PAINTING_TITLE("\"le roi David jouant de la harpe \"\rDominiquin"); // 17: 42910
	SET_PAINTING_TITLE("\"Sainte Madeleine\"\rDominiquin"); // 18: 42911
	SET_PAINTING_TITLE("\"Autoportrait \"\rVan Dyck"); // 19: 42912
	SET_PAINTING_TITLE("\"Saint Jean l'" "\x8e" "vang" "\x8e" "liste\"\r Valentin"); // 20: 42913
	SET_PAINTING_TITLE("\"Agar secouru par un ange \"\rGiovanni Lanfranco"); // 21: 42914
	SET_PAINTING_TITLE("\"Saint Marc \"\rValentin"); // 22: 42915
	SET_PAINTING_TITLE("\"M" "\x8e" "l" "\x8e" "agre ayant " "\x88"
	                   " ses pieds la hure du sanglier de Calydon\"\r Jacques Rousseau"); // 23: 43090
	SET_PAINTING_TITLE("\"Le Roi en costume romain\"\rJean Warin"); // 24: 43091
	SET_PAINTING_TITLE("\"attalante\"\rJacques Rousseau"); // 25: 43092
	SET_PAINTING_TITLE("\"En" "\x8e" "e portant Anchise\"\rSpada"); // 26: 43100
	SET_PAINTING_TITLE("\"David et Bethsab" "\x8e" "e\"\rV" "\x8e" "ron" "\x8f" "se"); // 27: 43101
	SET_PAINTING_TITLE("\"La fuite en Egypte\"\rGuido R" "\x8e" "ni "); // 28: 43102
	SET_PAINTING_TITLE("\"Louis XIV " "\x88" " cheval\"\rPierre Mignard"); // 29: 43103
	SET_PAINTING_TITLE("\"La magnificience royale & le progr" "\x8f"
	                   "s des beaux arts\"\rHouasse"); // 30: 43104
	SET_PAINTING_TITLE("\"Le Sacrifice d'Iphig" "\x8e" "nie\"\rCharles de la Fosse"); // 31: 43130
	SET_PAINTING_TITLE("\"Buste de Louis XIV\"\rsculpt" "\x8e"
	                   " par le Chevalier Bernin "); // 32: 43131
	SET_PAINTING_TITLE("\"Diane d" "\x8e" "couvrant son berger Endymion endormi dans les bras de Morph"
	                   "\x8e" "e\"\rGabriel Blanchard"); // 33: 43132
	SET_PAINTING_TITLE("\"La vierge & Saint Pierre\"\rGuerchin"); // 34: 43140
	SET_PAINTING_TITLE("\"Les P" "\x8e" "lerins d'Emma" "\x9f" "s\"\rV" "\x8e" "ron" "\x8f"
	                   "se"); // 35: 43141
	SET_PAINTING_TITLE("\"La sainte Famille\"\rV" "\x8e" "ron" "\x8f" "se"); // 36: 43142
	SET_PAINTING_TITLE("\"La famille de Darius aux pieds d'Alexandre\"\rCharles LeBrun"); // 37: 43143
	SET_PAINTING_TITLE("\"Saint Jean-Baptiste\"\rRapha" "\x91" "l"); // 38: 43144
	SET_PAINTING_TITLE("\"Marie de m" "\x8e" "dicis\"\rVan Dyck"); // 39: 43150
	SET_PAINTING_TITLE("\"Hercule luttant contre Achelous\"\rGuido R" "\x8e" "ni"); // 40: 43151
	SET_PAINTING_TITLE("\"Le Centaure Nessus porte Dejanire\"\rGuido R" "\x8e" "ni"); // 41: 43152
	SET_PAINTING_TITLE("\"Saint Franìois d'Assise r" "\x8e" "confort" "\x8e" " apr" "\x8f"
	                   "s sa stigmatisation\"\rSeghers"); // 42: 43153
	SET_PAINTING_TITLE("\"Thomiris faisant tremper la t" "\x90"
	                   "te de Cyrus dans le sang\"\rRubens"); // 43: 43154
	SET_PAINTING_TITLE("\"Hercule tuant l'Hydre\"\rGuido R" "\x8e" "ni"); // 44: 43155
	SET_PAINTING_TITLE("\"Hercule sur le b" "\x9e" "cher\"\rGuido R" "\x8e" "ni"); // 45: 43156
	SET_PAINTING_TITLE("\"Portrait du Prince Palatin & de son fr" "\x8f"
	                   "re le Prince Robert\"\rVan Dyck"); // 46: 43157
	SET_PAINTING_TITLE("\"La descente de Croix \"\rCharles Lebrun"); // 47: 45260
#undef SET_PAINTING_TITLE
}

struct VideoSubSetting {
	const char *videoName;
	int16 textLeft;
	int16 textTop;
	int16 textRight;
	int16 textBottom;
	int16 drawLeft;
	int16 drawTop;
	int16 drawRight;
	int16 drawBottom;
};

static const VideoSubSetting videoSubSettings[] = {
	{"11D_LEB", 15, 11, 190, 479, 208, 129, 562, 479},
	{"11E_HUI", 330, 9, 620, 479, 111, 109, 321, 341},
	{"11E_MAN", 403, 12, 630, 479, 134, 89, 390, 405},
	{"11E_RAC", 10, 9, 241, 479, 271, 147, 628, 479},
	{"12E_HUI", 361, 16, 618, 479, 84, 107, 330, 479},
	{"13F_HUI", 373, 12, 633, 479, 96, 88, 341, 479},
	{"21B1_HUI", 355, 13, 625, 479, 96, 104, 337, 479},
	{"21F_BON", 324, 11, 628, 479, 84, 74, 307, 479},
	{"21F_BON2", 11, 13, 298, 479, 321, 99, 536, 424},
	{"21G_CON", 12, 13, 255, 479, 273, 156, 539, 479},
	{"21G_DAU", 358, 11, 631, 479, 82, 151, 346, 479},
	{"21G_HUI", 309, 17, 626, 479, 77, 85, 304, 479},
	{"21I_LEB", 343, 10, 628, 479, 38, 125, 330, 479},
	{"21Z_ALI", 380, 13, 627, 479, 184, 106, 369, 479},
	{"21Z_BOU", 365, 13, 629, 479, 95, 65, 341, 321},
	{"21Z_MON", 12, 11, 309, 479, 336, 101, 561, 406},
	{"21Z_PR", 10, 16, 352, 471, 375, 104, 567, 400},
	{"22G_DAU", 339, 13, 629, 479, 114, 152, 326, 479},
	{"23I_LEB", 341, 15, 627, 479, 67, 140, 325, 410},
	{"24Z_BON", 253, 23, 620, 479, 58, 166, 228, 439},
	{"31J_SUI", 9, 9, 183, 475, 195, 159, 428, 479},
	{"31L1_LUL", 367, 16, 628, 477, 136, 164, 359, 472},
	{"31M_SUI", 19, 16, 212, 479, 231, 193, 395, 479},
	{"31O_SUIA", 11, 12, 175, 479, 186, 118, 490, 479},
	{"31O_SUIP", 12, 9, 277, 466, 296, 183, 380, 349},
	{"31Q_SUI", 334, 15, 626, 479, 158, 169, 313, 308},
	{"31X_BO", 332, 11, 615, 479, 89, 78, 313, 296},
	{"31X_BON", 329, 12, 618, 456, 0, 171, 243, 479},
	{"31X_LOU", 12, 9, 267, 447, 280, 88, 639, 479},
	{"31X_SEI", 352, 12, 626, 479, 102, 98, 340, 479},
	{"32J_CRO", 418, 7, 618, 477, 103, 58, 402, 438},
	{"32M_MR", 13, 11, 175, 477, 184, 113, 476, 447},
	{"32Q_MON", 375, 17, 623, 479, 248, 161, 341, 259},
	{"32Q_RAC", 294, 11, 627, 479, 110, 152, 287, 479},
	{"32Q_RAC2", 374, 13, 625, 479, 0, 101, 366, 479},
	{"31O_SUIA", 11, 12, 175, 479, 186, 118, 490, 479},
	{"41C_HUI", 345, 17, 626, 479, 69, 147, 330, 479},
	{"41X2_CRO", 13, 13, 281, 479, 305, 113, 548, 427},
	{"42C_BON", 15, 13, 347, 479, 368, 173, 525, 410},
	{"43B1_MAI", 264, 15, 625, 479, 127, 154, 249, 296},
	{"43B1_SEI", 17, 14, 369, 479, 390, 142, 639, 479},
	{"43C_CON", 312, 11, 635, 479, 21, 137, 294, 476},
	{"43C_DUR", 11, 10, 295, 479, 311, 166, 639, 479},
	{"44C_BON", 17, 12, 331, 479, 358, 181, 531, 407},
	{"4_MAI", 325, 14, 630, 479, 35, 48, 308, 363},
	{"51L_LOU", 11, 11, 616, 161, 154, 165, 400, 479},
	{"51L_PRI", 26, 19, 601, 153, 130, 167, 311, 479},
	{"51M_LEB", 41, 29, 615, 188, 49, 200, 432, 479},
	{"51M_MAN", 23, 19, 618, 179, 211, 195, 449, 479},
	{"52A4_LAC", 12, 11, 258, 479, 273, 184, 465, 383},
	{"52L_BOU", 12, 12, 190, 479, 307, 56, 592, 332},
	{"52L_LOU", 8, 13, 604, 168, 135, 171, 413, 479},
	{"52L_PRI", 20, 17, 610, 167, 336, 182, 639, 479},
	{"53N_BON", 351, 13, 629, 479, 62, 119, 343, 418},
	{"54I_BON", 343, 14, 623, 479, 72, 117, 339, 440},
	{"61_BON", 10, 7, 311, 479, 336, 101, 581, 479},
	{"61_DUC", 10, 14, 344, 473, 376, 156, 639, 479},
	{"61_LEN", 13, 9, 269, 479, 285, 63, 590, 479},
	{"62_DUC", 18, 21, 317, 479, 388, 154, 614, 479},
};

void CryOmni3DEngine_Versailles::setupDialogVariables() {
#define SET_DIAL_VARIABLE(id, var) _dialogsMan.setupVariable(id, var)
	SET_DIAL_VARIABLE(0, "JOUEUR-PARLE-HUISSIER-PETIT-LEVER");
	SET_DIAL_VARIABLE(1, "HUBAS-PARLE-LEVER1");
	SET_DIAL_VARIABLE(2, "HUBAS-PARLE-LEVER2");
	SET_DIAL_VARIABLE(3, "LEBRUN-DIT-COLBERT");
	SET_DIAL_VARIABLE(4, "LEBRUN-PARLE-ESQUISSE");
	SET_DIAL_VARIABLE(5, "JOUEUR-PARLE-HUISSIER-GRAND-LEVER");
	SET_DIAL_VARIABLE(6, "BONTEMPS-PARLE-MAINTENON");
	SET_DIAL_VARIABLE(7, "BONTEMPS-PARLE-MAINTENON2");
	SET_DIAL_VARIABLE(8, "BONTEMPS-DEMANDE-INDICE");
	SET_DIAL_VARIABLE(9, "BONTEMPS-DIT-ENQUETE");
	SET_DIAL_VARIABLE(10, "JOUEUR-CONFIE-MESSAGE-HUISSIER");
	SET_DIAL_VARIABLE(11, "JOUEUR-PARLE-HUIMA1");
	SET_DIAL_VARIABLE(12, "MONSEIGNEUR-ATTEND-ESQUISSES");
	SET_DIAL_VARIABLE(13, "MONSEIGNEUR-PREVIENT-BONTEMPS");
	SET_DIAL_VARIABLE(14, "JOUEUR-MENT-MONSEIGNEUR");
	SET_DIAL_VARIABLE(15, "JOUEUR-ECOUTE-ALIAS");
	SET_DIAL_VARIABLE(16, "JOUEUR-PARLE-HUCON");
	SET_DIAL_VARIABLE(17, "BONTEMPS-ATTEND-OBJET-GALLERIE");
	SET_DIAL_VARIABLE(18, "SUISSE-APOLLON-PARLE-CLEF");
	SET_DIAL_VARIABLE(19, "SUISSE-CABINET-DEMANDE-AUTORISATION");
	SET_DIAL_VARIABLE(20, "SUISSE-VU-AUTORISATION");
	SET_DIAL_VARIABLE(21, "CROISSY-ACCEPTE-TEXTE");
	SET_DIAL_VARIABLE(22, "JOUEUR-POSSEDE-CLEF-PETITE-PORTE");
	SET_DIAL_VARIABLE(23, "SUISSE-REFUSE-CLEF");
	SET_DIAL_VARIABLE(24, "LULLY-ATTEND-MISSION-JOUEUR");
	SET_DIAL_VARIABLE(25, "LULLY-DONNE-MISSION1-JOUEUR");
	SET_DIAL_VARIABLE(26, "LULLY-DONNE-MISSION-JOUEUR");
	SET_DIAL_VARIABLE(27, "RACINE-REPOND-ETRANGERE");
	SET_DIAL_VARIABLE(28, "RACINE-REPOND-PEUPLES");
	SET_DIAL_VARIABLE(29, "LULLY-DONNE-MISSION2-JOUEUR");
	SET_DIAL_VARIABLE(30, "LULLY-DIT-CHAT-PENDU-JOUEUR");
	SET_DIAL_VARIABLE(31, "JOUEUR-DIT-PEUPLES-LULLY");
	SET_DIAL_VARIABLE(32, "LALANDE-PARLE-BONTEMPS-SCENE3");
	SET_DIAL_VARIABLE(33, "BONTEMPS-DONNE-AUTORISATION-CURIOSITES");
	SET_DIAL_VARIABLE(34, "BONTEMPS-ATTEND-PAMPHLET");
	SET_DIAL_VARIABLE(35, "BONTEMPS-VU-PAMPHLET-DECHIFFRE-LULLY");
	SET_DIAL_VARIABLE(36, "CROISSY-DIT-INEPTIES");
	SET_DIAL_VARIABLE(37, "CROISSY-ATTEND-PAMPHLET2");
	SET_DIAL_VARIABLE(38, "CROISSY-ATTEND-MEDAILLE");
	SET_DIAL_VARIABLE(39, "CROISSY-ATTEND-PAMPHLET2-2");
	SET_DIAL_VARIABLE(40, "JOUEUR-PARLE-CROISSY1");
	SET_DIAL_VARIABLE(41, "MONSIEUR-PARLE-LALANDE1");
	SET_DIAL_VARIABLE(42, "MONSIEUR-ATTEND-FUSAIN");
	SET_DIAL_VARIABLE(43, "MONSIEUR-DONNE-SOLUTION-MEDAILLES");
	SET_DIAL_VARIABLE(44, "HUISSIER-DIT-DINER");
	SET_DIAL_VARIABLE(45, "HUISSIER-DIT-PREVENIR-BONTEMPS");
	SET_DIAL_VARIABLE(46, "JOUEUR-POSSEDE-PAMPHLET-RELIGION");
	SET_DIAL_VARIABLE(47, "JOUEUR-PARLE-BONTEMPS-SCENE4");
	SET_DIAL_VARIABLE(48, "BONTEMPS-VU-PAPIER-CROISSY");
	SET_DIAL_VARIABLE(49, "BONTEMPS-ATTEND-OBJET-SCENE4");
	SET_DIAL_VARIABLE(50, "BONTEMPS-VU-PAMPHLET-GOUVERNEMENT");
	SET_DIAL_VARIABLE(51, "JOUEUR-PARLE-VAUBAN");
	SET_DIAL_VARIABLE(52, "JOUEUR-PARLE-CODE-LOUVOIS");
	SET_DIAL_VARIABLE(53, "LALANDE-ECOUTE-LOUVOIS");
	SET_DIAL_VARIABLE(54, "JOUEUR-PARLE-LACHAIZE");
	SET_DIAL_VARIABLE(55, "JOUEUR-PARLE-LACHAIZE2");
	SET_DIAL_VARIABLE(56, "LACHAIZE-ATTEND-TEXTE");
	SET_DIAL_VARIABLE(57, "LACHAIZE-VU-PAMPHLET-RELIGION");
	SET_DIAL_VARIABLE(58, "LACHAIZE-DIT-REFORME");
	SET_DIAL_VARIABLE(59, "LACHAIZE-PARLE-BOUILLON");
	SET_DIAL_VARIABLE(60, "BOUILLON-DIT-DRAGONNADES");
	SET_DIAL_VARIABLE(61, "JOUEUR-PARLE-BOUILLON");
	SET_DIAL_VARIABLE(62, "LACHAIZE-TROUVE-ECROUELLES");
	SET_DIAL_VARIABLE(63, "LACHAIZE-DIT-DRAGONNADES");
	SET_DIAL_VARIABLE(64, "LACHAIZE-DEMANDE-TEXTE");
	SET_DIAL_VARIABLE(65, "LACHAIZE-PARLE-ARCHITECTURE");
	SET_DIAL_VARIABLE(66, "JOUEUR-DIT-DRAGONNADES");
	SET_DIAL_VARIABLE(67, "BOUILLON-ATTEND-PAMPHLET");
	SET_DIAL_VARIABLE(68, "BONTEMPS-PARLE-LUSTRE");
	SET_DIAL_VARIABLE(69, "BONTEMPS-ATTEND-MEMORANDUM2");
	SET_DIAL_VARIABLE(70, "BONTEMPS-DIT-PROMENADE");
	SET_DIAL_VARIABLE(71, "BONTEMPS-ATTEND-MEMORANDUM");
	SET_DIAL_VARIABLE(72, "LENOTRE-DIT-CALME");
	SET_DIAL_VARIABLE(73, "MAINE-DIT-APOTHICAIRIE");
	SET_DIAL_VARIABLE(74, "JOUEUR-PARLE-BONTEMPS-SCENE6");
	SET_DIAL_VARIABLE(75, "{JOUEUR-ESSAYE-OUVRIR-PORTE-CHAMBRE}");
	SET_DIAL_VARIABLE(76, "{JOUEUR-TROUVE-TITRE-ET-PAMPHLET}");
	SET_DIAL_VARIABLE(77, "{JOUEUR-ESSAYE-OUVRIR-PORTE-SALON}");
	SET_DIAL_VARIABLE(78, "{JOUEUR-MONTRE-PAPIER-ECRIT-ENCRE-SYMPATHIQUE}");
	SET_DIAL_VARIABLE(79, "{JOUEUR-MONTRE-UN-PAMPHLET}");
	SET_DIAL_VARIABLE(80, "{JOUEUR-MONTRE-TOUT-AUTRE-OBJET}");
	SET_DIAL_VARIABLE(81, "{JOUEUR-MONTRE-PAMPHLET-ARTS}");
	SET_DIAL_VARIABLE(82, "{JOUEUR-A-MONTRE-ESQUISSES-NON-TRIEES-LEBRUN}");
	SET_DIAL_VARIABLE(83, "{JOUEUR-DONNE-ESQUISSES}");
	SET_DIAL_VARIABLE(84, "{JOUEUR-SE-DIRIGE-VERS-MONSEIGNEUR-AVEC-ESQUISSES}");
	SET_DIAL_VARIABLE(85, "{JOUEUR-PRESENTE-FAUX-CROQUIS3}");
	SET_DIAL_VARIABLE(86, "{JOUEUR-PRESENTE-FAUX-CROQUIS2}");
	SET_DIAL_VARIABLE(87, "{JOUEUR-PRESENTE-FAUX-CROQUIS}");
	SET_DIAL_VARIABLE(88, "{LE JOUEUR-PRESENTE-ESQUISSES-TRIEES}");
	SET_DIAL_VARIABLE(89, "{LE JOUEUR-PRESENTE-AUTRES-ESQUISSES-OU-ESQUISSE-NON-TRIEES}");
	SET_DIAL_VARIABLE(90, "{JOUEUR-PRESENTE-PAMPHLET-SUR-LEBRUN}");
	SET_DIAL_VARIABLE(91, "{JOUEUR-PRESENTE-TOUT-AUTRE-PAMPHLET-OU-LETTRE}");
	SET_DIAL_VARIABLE(92, "{JOUEUR-MONTRE-ESQUISSE-DETRUITE}");
	SET_DIAL_VARIABLE(93, "{JOUEUR-MONTRE-TITRE-FABLE-APPARU-SUR-ESQUISSE}");
	SET_DIAL_VARIABLE(94, "{JOUEUR-MONTRE-AUTORISATION-DE-BONTEMPS}");
	SET_DIAL_VARIABLE(95, "{LE JOUEUR-A-TENTE-OUVRIR-PETITE-PORTE}");
	SET_DIAL_VARIABLE(96, "{JOUEUR-POSSEDE-CLE}");
	SET_DIAL_VARIABLE(97, "{JOUEUR-PRESENTE-PAMPHLET-PARTITION}");
	SET_DIAL_VARIABLE(98, "{JOUEUR-MONTRE-PAMPHLET-DECHIFFRE-PAR-LULLY}");
	SET_DIAL_VARIABLE(99, "{JOUEUR-MONTRE-MEDAILLES-MONSIEUR}");
	SET_DIAL_VARIABLE(100, "{JOUEUR-MONTRE-PAMPHLET-ARCHITECTURE}");
	SET_DIAL_VARIABLE(101, "{JOUEUR-MONTRE-EPIGRAPHE-MEDAILLES}");
	SET_DIAL_VARIABLE(102, "{JOUEUR-MONTRE-TOUT-AUTRE-CHOSE}");
	SET_DIAL_VARIABLE(103, "{JOUEUR-POSSEDE-FUSAIN-MEDAILLES}");
	SET_DIAL_VARIABLE(104, "{JOUEUR-MONTRE-FUSAIN-MEDAILLES}");
	SET_DIAL_VARIABLE(105, "{JOUEUR-PRESENTE-OBJET-HUISSIER}");
	SET_DIAL_VARIABLE(106, "{JOUEUR-APPROCHE-MADAME-MAINTENON}");
	SET_DIAL_VARIABLE(107, "{JOUEUR-DONNE-REPAS}");
	SET_DIAL_VARIABLE(108, "{JOUEUR-TROUVE-PLANS-VAUBAN}");
	SET_DIAL_VARIABLE(109, "{JOUEUR-ALLER-BUREAU-LOUVOIS}");
	SET_DIAL_VARIABLE(110, "{JOUEUR-MONTRE-PAMPHLET-RELIGION}");
	SET_DIAL_VARIABLE(111, "{JOUEUR-MONTRE-PAMPHLET-GOUVERNEMENT}");
	SET_DIAL_VARIABLE(112, "{JOUEUR-MONTRE-PAPIER-CROISSY}");
	SET_DIAL_VARIABLE(113, "{JOUEUR-MONTRE-ECROUELLES}");
	SET_DIAL_VARIABLE(114, "{LACHAIZE-TIENT-TEXTE}");
	SET_DIAL_VARIABLE(115, "{JOUEUR-VU-PLANS-SALON-DIANE}");
	SET_DIAL_VARIABLE(116, "{JOUEUR-VU-MEMORANDUM-DANS-LUSTRE-DU-SALON-DE-LA-GUERRE}");
	SET_DIAL_VARIABLE(117, "{JOUEUR-VU-MEMORANDUM-DANS-LUSTRE-DU-SALON-APOLLON}");
	SET_DIAL_VARIABLE(118, "{JOUEUR-MONTRE-MEMORANDUM}");
	SET_DIAL_VARIABLE(119, "{JOUEUR-POSSEDE-CLEF-3-ET-4}");
	SET_DIAL_VARIABLE(120, "{JOUEUR-DONNE-SIROP-DE-ROSE}");
	SET_DIAL_VARIABLE(121, "{JOUEUR-DONNE-AUTRE-MEDICAMENT}");
	SET_DIAL_VARIABLE(122, "{DUC_MAIN_A_PARLE}");
	SET_DIAL_VARIABLE(123, "{LEVEL1_FINI}");
	SET_DIAL_VARIABLE(124, "{LEVEL2_FINI}");
	SET_DIAL_VARIABLE(125, "{LEVEL3_FINI}");
	SET_DIAL_VARIABLE(126, "{LEVEL4_FINI}");
	SET_DIAL_VARIABLE(127, "{LEVEL5_FINI}");
	SET_DIAL_VARIABLE(128, "{LEVEL6_FINI}");
	SET_DIAL_VARIABLE(129, "{LEVEL7_FINI}");
	SET_DIAL_VARIABLE(130, "{JOUEUR_POSSEDE_PAMPHLET_ARCHI}");
	SET_DIAL_VARIABLE(131, "{FAUSSE_ESQ_OK}");
	SET_DIAL_VARIABLE(132, "{CURRENT_GAME_TIME1}");
	SET_DIAL_VARIABLE(133, "{CURRENT_GAME_TIME2}");
	SET_DIAL_VARIABLE(134, "{CURRENT_GAME_TIME3}");
	SET_DIAL_VARIABLE(135, "{CURRENT_GAME_TIME4}");
	SET_DIAL_VARIABLE(136, "{CURRENT_GAME_TIME5}");
	SET_DIAL_VARIABLE(137, "{JOUEUR_POSSEDE_EPIGRAPHE}");
#undef SET_DIAL_VARIABLE
	for (unsigned int i = 0; i < ARRAYSIZE(videoSubSettings); i++) {
		const VideoSubSetting &vss = videoSubSettings[i];
		_dialogsMan.registerSubtitlesSettings(
		    vss.videoName,
		    DialogsManager::SubtitlesSettings(
		        vss.textLeft, vss.textTop, vss.textRight, vss.textBottom,
		        vss.drawLeft, vss.drawTop, vss.drawRight, vss.drawBottom));
	}
}

void CryOmni3DEngine_Versailles::initPlacesStates() {
	_placeStates.resize(100);
	// Reset all the objects before configuring some
	for (Common::Array<PlaceState>::iterator it = _placeStates.begin(); it != _placeStates.end();
	        it++) {
		// Useless because it's only a bunch of simple variables
		it->~PlaceState();
		new ((void *)it) PlaceState();
	}
#define SET_PLACE_STATE(id, init, filter, docImage) _placeStates[id] = PlaceState(init, filter, docImage)
#define FILTER_EVENT(level, place) &CryOmni3DEngine_Versailles::filterEventLevel ## level ## Place ## place
#define INIT_PLACE(level, place) &CryOmni3DEngine_Versailles::initPlaceLevel ## level ## Place ## place
	if (_currentLevel == 1) {
		SET_PLACE_STATE(1, nullptr, FILTER_EVENT(1, 1), "VS22");
		SET_PLACE_STATE(2, nullptr, FILTER_EVENT(1, 2), "VS20");
		SET_PLACE_STATE(3, INIT_PLACE(1, 3), FILTER_EVENT(1, 3), "VS19");
		SET_PLACE_STATE(4, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(5, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(6, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(7, nullptr, nullptr, nullptr); // Filter is a leftover
		SET_PLACE_STATE(8, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(9, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(10, nullptr, nullptr, "VS31");
		SET_PLACE_STATE(11, nullptr, nullptr, "VS31");
		SET_PLACE_STATE(12, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(13, nullptr, nullptr, "VS31");
		SET_PLACE_STATE(14, nullptr, FILTER_EVENT(1, 14), nullptr);
	} else if (_currentLevel == 2) {
		SET_PLACE_STATE(1, nullptr, FILTER_EVENT(2, 1), "VS22");
		SET_PLACE_STATE(2, nullptr, FILTER_EVENT(2, 2), "VS20");
		SET_PLACE_STATE(3, nullptr, nullptr, "VS19");
		SET_PLACE_STATE(4, nullptr, nullptr, "VS18");
		SET_PLACE_STATE(5, nullptr, FILTER_EVENT(2, 5), nullptr);
		SET_PLACE_STATE(6, nullptr, nullptr, "VS19");
		SET_PLACE_STATE(7, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(8, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(9, INIT_PLACE(2, 9), FILTER_EVENT(2, 9), "VS23");
		SET_PLACE_STATE(10, nullptr, nullptr, "VS31");
		SET_PLACE_STATE(11, nullptr, FILTER_EVENT(2, 11), "VS31");
		SET_PLACE_STATE(12, nullptr, FILTER_EVENT(2, 12), "VS24");
		SET_PLACE_STATE(13, nullptr, nullptr, "VS31");
		SET_PLACE_STATE(14, nullptr, FILTER_EVENT(2, 14), nullptr);
	} else if (_currentLevel == 3) {
		SET_PLACE_STATE(1, nullptr, nullptr, "VS35");
		SET_PLACE_STATE(2, nullptr, nullptr, "VS40");
		SET_PLACE_STATE(3, nullptr, FILTER_EVENT(3, 3), "VS40");
		SET_PLACE_STATE(4, nullptr, nullptr, "VS36");
		SET_PLACE_STATE(5, nullptr, nullptr, "VS36");
		SET_PLACE_STATE(6, nullptr, nullptr, "VS30");
		SET_PLACE_STATE(7, nullptr, nullptr, "VS30");
		SET_PLACE_STATE(8, nullptr, nullptr, "VS30");
		SET_PLACE_STATE(9, nullptr, nullptr, "VS39");
		SET_PLACE_STATE(10, nullptr, FILTER_EVENT(3, 10), "VS28");
		SET_PLACE_STATE(11, nullptr, nullptr, "VS28");
		SET_PLACE_STATE(12, nullptr, nullptr, "VS30");
		SET_PLACE_STATE(13, nullptr, FILTER_EVENT(3, 13), "VS27");
		SET_PLACE_STATE(14, nullptr, nullptr, "VS26");
		SET_PLACE_STATE(15, nullptr, FILTER_EVENT(3, 15), "VS25");
		SET_PLACE_STATE(16, nullptr, nullptr, "VS24");
		SET_PLACE_STATE(17, nullptr, FILTER_EVENT(3, 17), "VS25");
		SET_PLACE_STATE(18, nullptr, FILTER_EVENT(3, 18), nullptr);
		SET_PLACE_STATE(19, nullptr, FILTER_EVENT(3, 19), "VS26");
		SET_PLACE_STATE(20, nullptr, FILTER_EVENT(3_5, 20), nullptr);
		SET_PLACE_STATE(21, nullptr, nullptr, "VS28");
		SET_PLACE_STATE(22, nullptr, FILTER_EVENT(3, 22), "VS26");
		SET_PLACE_STATE(23, nullptr, FILTER_EVENT(3, 23), nullptr);
		SET_PLACE_STATE(24, nullptr, nullptr, "VS30");
	} else if (_currentLevel == 4) {
		SET_PLACE_STATE(1, nullptr, nullptr, "VS35");
		SET_PLACE_STATE(2, nullptr, nullptr, "VS40");
		SET_PLACE_STATE(3, nullptr, nullptr, "VS40");
		SET_PLACE_STATE(4, nullptr, nullptr, "VS36");
		SET_PLACE_STATE(5, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(6, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(7, nullptr, nullptr, "VS17");
		SET_PLACE_STATE(8, nullptr, nullptr, "VS17");
		SET_PLACE_STATE(9, INIT_PLACE(4, 9), nullptr, nullptr);
		SET_PLACE_STATE(10, nullptr, FILTER_EVENT(4, 10), "VS18");
		SET_PLACE_STATE(11, nullptr, nullptr, "VS20");
		SET_PLACE_STATE(12, nullptr, FILTER_EVENT(4, 12_13_14), "VS31");
		SET_PLACE_STATE(13, nullptr, FILTER_EVENT(4, 12_13_14), "VS31");
		SET_PLACE_STATE(14, nullptr, FILTER_EVENT(4, 12_13_14), "VS31");
		SET_PLACE_STATE(15, nullptr, FILTER_EVENT(4, 15), "VS36");
		SET_PLACE_STATE(16, nullptr, FILTER_EVENT(4, 16), nullptr);
		SET_PLACE_STATE(17, nullptr, FILTER_EVENT(4, 17), nullptr);
	} else if (_currentLevel == 5) {
		// TODO: implement functions
		SET_PLACE_STATE(1, nullptr, nullptr, "VS35");
		SET_PLACE_STATE(2, nullptr, nullptr, "VS35");
		SET_PLACE_STATE(3, nullptr, nullptr, "VS36");
		SET_PLACE_STATE(4, nullptr, nullptr, "VS36");
		SET_PLACE_STATE(5, nullptr, nullptr, "VS36");
		SET_PLACE_STATE(6, nullptr, nullptr, "VS30");
		SET_PLACE_STATE(7, nullptr, nullptr, "VS30");
		SET_PLACE_STATE(8, nullptr, nullptr, "VS30");
		SET_PLACE_STATE(9, nullptr, nullptr, "VS39");
		SET_PLACE_STATE(10, nullptr, nullptr, "VS28");
		SET_PLACE_STATE(11, nullptr, nullptr, "VS16");
		SET_PLACE_STATE(12, nullptr, nullptr, "VS30");
		SET_PLACE_STATE(13, nullptr, nullptr, "VS27");
		SET_PLACE_STATE(14, nullptr, nullptr, "VS26");
		SET_PLACE_STATE(15, nullptr, nullptr, "VS25");
		SET_PLACE_STATE(16, nullptr, nullptr, "VS24");
		SET_PLACE_STATE(17, nullptr, nullptr, "VS25");
		SET_PLACE_STATE(18, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(19, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(20, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(21, nullptr, nullptr, "VS28");
		SET_PLACE_STATE(22, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(23, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(24, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(25, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(26, nullptr, nullptr, "VS16");
		SET_PLACE_STATE(27, nullptr, nullptr, "VS16");
		SET_PLACE_STATE(28, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(29, nullptr, nullptr, "VS24");
		SET_PLACE_STATE(30, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(31, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(32, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(33, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(34, nullptr, nullptr, nullptr);
	} else if (_currentLevel == 6) {
		// TODO: implement functions
		SET_PLACE_STATE(1, nullptr, nullptr, "VS34");
		SET_PLACE_STATE(2, nullptr, nullptr, "VS32");
		SET_PLACE_STATE(3, nullptr, nullptr, "VS32");
		SET_PLACE_STATE(4, nullptr, nullptr, "VS32");
		SET_PLACE_STATE(5, nullptr, nullptr, "VS32");
		SET_PLACE_STATE(6, nullptr, nullptr, "VS32");
		SET_PLACE_STATE(7, nullptr, nullptr, "VS32");
		SET_PLACE_STATE(8, nullptr, nullptr, "VS32");
		SET_PLACE_STATE(9, nullptr, nullptr, "VS32");
		SET_PLACE_STATE(10, nullptr, nullptr, "VS22");
		SET_PLACE_STATE(11, nullptr, nullptr, "VS12");
		SET_PLACE_STATE(12, nullptr, nullptr, "VS32");
		SET_PLACE_STATE(13, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(14, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(15, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(16, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(17, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(18, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(19, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(20, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(21, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(22, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(23, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(24, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(25, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(26, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(27, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(28, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(29, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(30, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(31, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(32, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(33, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(34, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(35, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(36, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(37, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(38, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(39, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(40, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(41, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(42, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(43, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(44, nullptr, nullptr, "VS33");
	} else if (_currentLevel == 7) {
		// TODO: implement functions
		SET_PLACE_STATE(1, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(2, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(3, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(4, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(5, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(6, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(7, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(8, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(9, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(10, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(11, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(12, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(13, nullptr, nullptr, "VS33");
		SET_PLACE_STATE(14, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(15, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(16, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(17, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(18, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(19, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(20, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(21, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(22, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(23, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(24, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(25, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(26, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(27, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(28, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(29, nullptr, nullptr, nullptr);
	} else if (_currentLevel == 8) {
		SET_PLACE_STATE(1, nullptr, nullptr, "VS35");
		SET_PLACE_STATE(2, nullptr, nullptr, "VS40");
		SET_PLACE_STATE(3, nullptr, nullptr, "VS40");
		SET_PLACE_STATE(4, nullptr, nullptr, "VS36");
		SET_PLACE_STATE(5, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(6, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(7, nullptr, nullptr, "VS30");
		SET_PLACE_STATE(8, nullptr, nullptr, "VS30");
		SET_PLACE_STATE(9, nullptr, nullptr, "VS39");
		SET_PLACE_STATE(10, nullptr, nullptr, "VS28");
		SET_PLACE_STATE(11, nullptr, nullptr, "VS16");
		SET_PLACE_STATE(12, nullptr, nullptr, "VS30");
		SET_PLACE_STATE(13, nullptr, nullptr, "VS27");
		SET_PLACE_STATE(14, nullptr, nullptr, "VS26");
		SET_PLACE_STATE(15, nullptr, nullptr, "VS25");
		SET_PLACE_STATE(16, nullptr, nullptr, "VS24");
		SET_PLACE_STATE(17, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(18, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(19, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(20, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(21, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(22, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(23, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(24, nullptr, nullptr, "VS30");
		SET_PLACE_STATE(25, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(26, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(27, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(28, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(29, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(30, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(31, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(32, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(33, nullptr, nullptr, "VS31");
		SET_PLACE_STATE(34, nullptr, nullptr, "VS31");
		SET_PLACE_STATE(35, nullptr, nullptr, "VS31");
		SET_PLACE_STATE(36, nullptr, nullptr, "VS23");
		SET_PLACE_STATE(37, nullptr, nullptr, "VS22");
		SET_PLACE_STATE(38, nullptr, nullptr, "VS20");
		SET_PLACE_STATE(39, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(40, nullptr, nullptr, "VS18");
		SET_PLACE_STATE(41, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(42, nullptr, nullptr, "VS17");
		SET_PLACE_STATE(43, nullptr, nullptr, "VS17");
		SET_PLACE_STATE(44, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(45, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(46, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(47, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(48, nullptr, nullptr, nullptr);
		SET_PLACE_STATE(49, nullptr, nullptr, "VS19");
	}
#undef INIT_PLACE
#undef FILTER_EVENT
#undef SET_PLACE_STATE
}

void CryOmni3DEngine_Versailles::setupLevelActionsMask() {
	_actionMasks.clear();
#define SET_MASK(placeId, placeState, oldActionId, newActionId) _actionMasks[PlaceStateActionKey(placeId, placeState, oldActionId)] = newActionId
	if (_currentLevel == 1) {
		SET_MASK(1, 0, 11015, 0);
		SET_MASK(1, 0, 21015, 0);
		SET_MASK(1, 1, 21011, 0);
		SET_MASK(1, 1, 21012, 0);
		SET_MASK(1, 1, 21013, 0);
		SET_MASK(1, 1, 21014, 0);
		//  2, 0 is empty
		SET_MASK(2, 1, 51201, 0);
		SET_MASK(2, 1, 21202, 0);
		SET_MASK(2, 1, 21203, 0);
		SET_MASK(2, 2, 51201, 0);
		SET_MASK(2, 2, 21202, 0);
		SET_MASK(2, 2, 21203, 0);
		SET_MASK(2, 2, 11201, 1);
		SET_MASK(2, 2, 21201, 1);
		//  3, 0 is empty
		SET_MASK(3, 1, 11301, 0);
		SET_MASK(3, 1, 21301, 0);
		// 14, 0 is empty
		SET_MASK(14, 1, 31141, 0);
	} else if (_currentLevel == 2) {
		//  1, 0 is empty
		SET_MASK(1, 1, 12101, 0);
		SET_MASK(1, 1, 22101, 0);
		SET_MASK(11, 0, 12111, 0);
		SET_MASK(11, 0, 22111, 0);
		// 11, 1 is empty
		//  9, 0 is empty
		SET_MASK(9, 1, 52903, 0);
		SET_MASK(9, 1, 22903, 0);
		SET_MASK(9, 1, 52902, 12902);
		SET_MASK(9, 2, 52903, 0);
		SET_MASK(9, 2, 22903, 0);
		SET_MASK(9, 2, 52902, 0);
		SET_MASK(9, 2, 22902, 0);
	} else if (_currentLevel == 3) {
		SET_MASK(13, 0, 13131, 0);
		SET_MASK(13, 0, 23131, 0);
		SET_MASK(13, 1, 13131, 0);
		SET_MASK(13, 1, 23131, 0);
		SET_MASK(13, 1, 33130, 0);
		// 13, 2 is empty
		SET_MASK(13, 3, 33130, 0);
		// 14, 0 is empty
		SET_MASK(14, 1, 23220, 0);
		SET_MASK(15, 0, 13151, 43154);
		SET_MASK(15, 0, 23151, 0);
		// 15, 1 is empty
		SET_MASK(17, 0, 13151, 0);
		SET_MASK(17, 0, 23151, 0);
		// 17, 1 is empty
		// 16, 0 is empty
		SET_MASK(16, 1, 43160, 0);
		// 19, 0 is empty
		SET_MASK(19, 1, 43190, 0);
		SET_MASK(22, 0, 33220, 0);
		SET_MASK(22, 1, 13220, 0);
		SET_MASK(22, 1, 23220, 0);
		SET_MASK(22, 2, 13220, 0);
		SET_MASK(22, 2, 23220, 0);
		SET_MASK(22, 2, 33220, 0);
	} else if (_currentLevel == 4) {
		// 16, 0 is empty
		SET_MASK(16, 1, 14161, 0);
		SET_MASK(16, 1, 24161, 0);
		SET_MASK(16, 2, 14161, 0);
		SET_MASK(16, 2, 24161, 0);
		// 17, 0 is empty
		SET_MASK(17, 1, 34171, 0);
		// 7, 0 is empty
		SET_MASK(7, 1, 24081, 0);
		SET_MASK(7, 1, 44071, 0);
		// 8, 0 is empty
		SET_MASK(8, 1, 24081, 0);
		SET_MASK(9, 0, 54091, 0);
		SET_MASK(9, 0, 14091, 0);
		SET_MASK(9, 0, 24092, 0);
		SET_MASK(9, 0, 24091, 0);
		SET_MASK(9, 1, 14091, 54091);
		SET_MASK(9, 2, 54091, 24091);
		SET_MASK(10, 0, 14105, 0);
		SET_MASK(10, 0, 24105, 0);
		SET_MASK(10, 0, 24106, 0);
		SET_MASK(10, 0, 24107, 0);
		SET_MASK(10, 0, 54106, 0);
		//SET_MASK(10, 0, 54106, 0);
		SET_MASK(10, 1, 24106, 0);
		SET_MASK(10, 1, 24107, 0);
		SET_MASK(10, 1, 54106, 0);
		//SET_MASK(10, 1, 54106, 0);
		SET_MASK(10, 2, 14104, 24104);
	} else if (_currentLevel == 5) {
		SET_MASK(27, 0, 15270, 0);
		SET_MASK(27, 0, 25270, 0);
		SET_MASK(27, 1, 15270, 0);
		SET_MASK(27, 1, 25270, 0);
		SET_MASK(27, 1, 35270, 0);
		SET_MASK(27, 2, 35270, 0);
		SET_MASK(9, 0, 15090, 0);
		SET_MASK(9, 0, 25090, 0);
		// 9, 1 is empty
		// 13, 0 is empty
		SET_MASK(13, 1, 25130, 0);
		SET_MASK(13, 1, 25131, 0);
		SET_MASK(13, 1, 55130, 0);
		SET_MASK(13, 1, 55131, 0);
		SET_MASK(16, 0, 28, 0);
		SET_MASK(16, 0, 35162, 0);
		SET_MASK(16, 1, 28, 0);
		SET_MASK(16, 1, 35162, 0);
		SET_MASK(16, 1, 25160, 0);
		SET_MASK(16, 1, 35161, 0);
		SET_MASK(16, 2, 28, 0);
		SET_MASK(16, 2, 35162, 0);
		SET_MASK(16, 2, 25160, 0);
		SET_MASK(16, 3, 35162, 28);
		SET_MASK(16, 3, 25160, 0);
		SET_MASK(16, 3, 35161, 0);
		SET_MASK(16, 3, 35160, 0);
		SET_MASK(16, 4, 35162, 28);
		SET_MASK(16, 4, 25160, 0);
		SET_MASK(16, 5, 25160, 0);
		SET_MASK(16, 5, 35160, 0);
		SET_MASK(16, 6, 35162, 28);
		SET_MASK(16, 6, 25160, 0);
		SET_MASK(16, 6, 35161, 0);
		SET_MASK(16, 6, 35160, 0);
		// 29, 0 is empty
		SET_MASK(29, 1, 35290, 0);
		SET_MASK(15, 0, 15090, 43154);
		SET_MASK(15, 0, 25090, 0);
		// 15, 1 is empty
		SET_MASK(17, 0, 15090, 0);
		SET_MASK(17, 0, 25090, 0);
		// 17, 1 is empty
		// 33, 0 is empty
		SET_MASK(33, 1, 35330, 0);
	} else if (_currentLevel == 6) {
		//  1, 0 is empty
		SET_MASK(1, 1, 36010, 0);
		//  3, 0 is empty
		SET_MASK(3, 1, 36030, 0);
		SET_MASK(14, 0, 26140, 0);
		SET_MASK(14, 0, 16140, 0);
		//  14, 1 is empty
		SET_MASK(19, 0, 36190, 0);
		SET_MASK(19, 1, 16190, 0);
		SET_MASK(19, 1, 26190, 0);
		SET_MASK(19, 2, 36190, 0);
		SET_MASK(19, 2, 16190, 0);
		SET_MASK(19, 2, 26190, 0);
	} else if (_currentLevel == 7) {
		//  9, 0 is empty
		SET_MASK(9, 1, 37090, 0);
	} else if (_currentLevel == 8) {
		// Nothing to mask
	} else {
		error("Invalid level");
	}
#undef SET_MASK
}

void CryOmni3DEngine_Versailles::initWhoSpeaksWhere() {
	_whoSpeaksWhere.clear();
#define SET_WHO(placeId, actionId, dialog) _whoSpeaksWhere[PlaceActionKey(placeId, actionId)] = dialog
	if (_currentLevel == 1) {
		SET_WHO(1, 11015, "13F_HUI");
		SET_WHO(1, 12101, "21F_BON");
		SET_WHO(1, 52903, "21G_DAU");
		SET_WHO(1, 52902, "21G_DAU");
		SET_WHO(2, 11201, "11E_HUI");
		SET_WHO(2, 51201, "11E_RAC");
		SET_WHO(3, 11301, "11D_LEB");
		SET_WHO(5, 12501, "21B1_HUI");
		if (currentGameTime() >= 2) {
			SET_WHO(2, 11201, "12E_HUI");
		}
	} else if (_currentLevel == 2) {
		SET_WHO(1, 12101, "21F_BON");
		SET_WHO(9, 52903, "21G_DAU");
		SET_WHO(9, 52902, "21G_DAU");
		SET_WHO(9, 12902, "22G_DAU");
		SET_WHO(9, 11201, "11E_HUI");
		SET_WHO(9, 12901, "21G_HUI");
		SET_WHO(5, 12501, "21B1_HUI");
		SET_WHO(10, 12130, "21Z_ALI");
		SET_WHO(10, 12130, "21Z_MON");
		SET_WHO(10, 12111, "24Z_BON");
		SET_WHO(11, 12130, "21Z_MON");
		SET_WHO(11, 12111, "24Z_BON");
		SET_WHO(13, 12130, "21Z_ALI");
		SET_WHO(13, 12130, "21Z_MON");
		SET_WHO(13, 12111, "24Z_BON");
		SET_WHO(12, 12121, "23I_LEB");
		SET_WHO(10, 52130, "21Z_ALI");
		SET_WHO(11, 52130, "21Z_ALI");
		SET_WHO(13, 52130, "21Z_ALI");
		SET_WHO(10, 52101, "21Z_MON");
		if (currentGameTime() >= 2) {
			SET_WHO(9, 52902, "22G_DAU");
		}
	} else if (_currentLevel == 3) {
		SET_WHO(13, 13130, "31M_SUI");
		SET_WHO(13, 13131, "32M_MR");
		SET_WHO(10, 13100, "31O_SUIA");
		SET_WHO(10, 13101, "31O_SUIP");
		SET_WHO(22, 13220, "31L1_LUL");
		SET_WHO(6, 13060, "31Q_SUI");
		SET_WHO(15, 13150, "31J_SUI");
		SET_WHO(17, 13150, "31J_SUI");
		SET_WHO(3, 13030, "31X_BON");
		SET_WHO(24, 53240, "32Q_MON");
		SET_WHO(24, 13241, "32Q_RAC2");
		SET_WHO(4, 53041, "31X_SEI");
		SET_WHO(4, 53040, "31X_LOU");
		SET_WHO(15, 13151, "32J_CRO");
		SET_WHO(17, 13151, "32J_CRO");
	} else if (_currentLevel == 4) {
		SET_WHO(10, 14104, "41C_HUI");
		SET_WHO(10, 14105, "42C_BON");
		SET_WHO(16, 14161, "41X2_CRO");
		SET_WHO(10, 54106, "43C_CON");
		SET_WHO(10, 54106, "43C_DUR");
		SET_WHO(9, 54091, "43B1_SEI");
		SET_WHO(9, 14091, "43B1_SEI");
		if (currentGameTime() >= 4) {
			SET_WHO(9, 54091, "4_MAI");
			SET_WHO(9, 14091, "4_MAI");
		}
	} else if (_currentLevel == 5) {
		SET_WHO(27, 15270, "52A4_LAC");
		SET_WHO(9, 15090, "53N_BON");
		SET_WHO(13, 55130, "51M_MAN");
		SET_WHO(13, 55131, "51M_MAN");
		SET_WHO(14, 55140, "52L_LOU");
		SET_WHO(14, 55140, "52L_PRI");
		SET_WHO(14, 15142, "52L_BOU");
		SET_WHO(13, 13130, "53M_SUI");
		if (currentGameTime() >= 4) {
			SET_WHO(9, 15090, "54I_BON");
		}
	} else if (_currentLevel == 6) {
		SET_WHO(9, 16090, "61_LEN");
		SET_WHO(19, 16190, "61_DUC");
		SET_WHO(14, 16140, "61_BON");
		if (_gameVariables[GameVariables::kDiscussedLabyrOrder] == 1) {
			SET_WHO(19, 16190, "62_DUC");
		}
	}
#undef SET_WHO
}

void CryOmni3DEngine_Versailles::initDocPeopleRecord() {
	_docPeopleRecord.clear();
#define SET_INFO(actionId, record) _docPeopleRecord[actionId] = record
	SET_INFO(22501, "VC25");
	SET_INFO(22401, "VC19");
	SET_INFO(22402, "VC24");
	SET_INFO(22403, "VC24");
	SET_INFO(22404, "VC24");
	SET_INFO(22405, "VC24");
	SET_INFO(22406, "VC24");
	SET_INFO(22407, "VC24");
	SET_INFO(22408, "VC24");
	SET_INFO(21201, "VC25");
	SET_INFO(21202, "VS12");
	SET_INFO(21203, "VA13");
	SET_INFO(21011, "VC13");
	SET_INFO(21012, "VC11");
	SET_INFO(21013, "VC10");
	SET_INFO(21014, "VC18");
	SET_INFO(22901, "VC25");
	SET_INFO(21015, "VC25");
	SET_INFO(22101, "VC18");
	SET_INFO(22903, "VC12");
	SET_INFO(22902, "VC10");
	SET_INFO(22131, "VC16");
	SET_INFO(22111, "VC18");
	SET_INFO(21301, "VA12");
	SET_INFO(22121, "VA12");
	SET_INFO(22103, "VC20");
	SET_INFO(22102, "VC15");
	SET_INFO(23100, "VC23");
	SET_INFO(23101, "VC23");
	SET_INFO(23130, "VC23");
	SET_INFO(23060, "VC23");
	SET_INFO(23150, "VC23");
	SET_INFO(23220, "VA11");
	SET_INFO(23131, "VC11");
	SET_INFO(23241, "VA13");
	SET_INFO(23151, "VR12");
	SET_INFO(23030, "VC18");
	SET_INFO(23040, "VR11");
	SET_INFO(23041, "VR13");
	SET_INFO(23240, "VC15");
	SET_INFO(24104, "VC25");
	SET_INFO(24105, "VC18");
	SET_INFO(24106, "VC12");
	SET_INFO(24107, "VC19");
	SET_INFO(24102, "VC21");
	SET_INFO(24103, "VC21");
	SET_INFO(24081, "VC21");
	SET_INFO(24101, "VC24");
	SET_INFO(24092, "VC14");
	SET_INFO(24091, "VR13");
	SET_INFO(24161, "VR12");
	SET_INFO(25270, "VC26");
	SET_INFO(25261, "VC26");
	//SET_INFO(25260, nullptr); // Don't put empty records
	SET_INFO(25130, "VA12");
	SET_INFO(25131, "VS12");
	SET_INFO(25060, "VC23");
	SET_INFO(25061, "VC22");
	SET_INFO(25160, "VC23");
	SET_INFO(25140, "VR11");
	SET_INFO(25141, "VC16");
	SET_INFO(25142, "VC20");
	SET_INFO(25143, "VC15");
	SET_INFO(25145, "VC17");
	SET_INFO(25090, "VC18");
	SET_INFO(26190, "VC13");
	SET_INFO(24161, "VR12");
	SET_INFO(26090, "VS13");
	SET_INFO(26140, "VC18");
	SET_INFO(27111, "VC21");
#undef SET_INFO
}

} // End of namespace Versailles
} // End of namespace CryOmni3D