summaryrefslogtreecommitdiff
path: root/Library/Artifacts/83/832bdc4acaaa4f5237577527ae0c922b
blob: 849db4aaeef5d46217be0f36ddfebdb48d19fdfa (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 4c 28 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......L(............2019.3.6f1..
0020 ff ff ff 01 02 00 00 00 0b 04 00 00 00 ff ff 66 9a 86 21 eb 14 35 98 39 dd 34 1d 51 0e c1 f3 42 ...............f..!..5.9.4.Q...B
0040 00 00 00 ed 00 00 00 02 00 00 00 00 00 00 00 37 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 ...............7................
0060 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 ................................
0080 00 00 00 00 00 00 00 01 00 01 00 0d 00 00 00 45 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 ...............E................
00a0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 ...............#................
00c0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 ...............,................
00e0 00 00 00 00 00 00 00 01 00 01 00 35 00 00 00 61 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 ...........5...a................
0100 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 ...............#................
0120 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 ...............,................
0140 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 ...............r................
0160 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 ...............#................
0180 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 ...............,................
01a0 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 ...........H....................
01c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 ...........1...1............@...
01e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 ................................
0200 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 ...........Q...j................
0220 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 4a 00 00 00 ff ff ff ff 0f 00 00 00 00 c0 00 00 00 ...............J................
0240 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 10 00 00 00 00 80 00 00 00 ...........1...1................
0260 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 11 00 00 00 00 00 00 00 00 ................................
0280 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 12 00 00 00 00 80 00 00 00 ...............j................
02a0 00 00 00 00 00 00 00 01 00 04 00 5c 00 00 00 9b 00 00 80 ff ff ff ff 13 00 00 00 00 80 00 00 00 ...........\....................
02c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 72 00 00 00 ff ff ff ff 14 00 00 00 00 80 00 00 00 ...........H...r................
02e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 15 00 00 00 01 40 00 00 00 ...........1...1............@...
0300 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 16 00 00 00 01 00 00 00 00 ................................
0320 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 17 00 00 00 01 00 00 00 00 ...........Q...j................
0340 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 77 00 00 00 ff ff ff ff 18 00 00 00 00 80 00 00 00 ...........H...w................
0360 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 19 00 00 00 01 40 00 00 00 ...........1...1............@...
0380 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1a 00 00 00 01 00 00 00 00 ................................
03a0 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1b 00 00 00 01 00 00 00 00 ...........Q...j................
03c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 80 00 00 00 ff ff ff ff 1c 00 00 00 00 80 00 00 00 ...........H....................
03e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 1d 00 00 00 01 40 00 00 00 ...........1...1............@...
0400 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1e 00 00 00 01 00 00 00 00 ................................
0420 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1f 00 00 00 01 00 00 00 00 ...........Q...j................
0440 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 20 00 00 00 00 00 00 00 00 ...........y....................
0460 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 21 00 00 00 01 00 80 00 00 ...............#.......!........
0480 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 22 00 00 00 01 00 80 00 00 ...............,......."........
04a0 00 00 00 00 00 00 00 01 00 01 00 11 03 00 80 85 00 00 00 ff ff ff ff 23 00 00 00 01 40 08 00 00 .......................#....@...
04c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 24 00 00 00 01 00 08 00 00 ...........1...1.......$........
04e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 25 00 00 00 01 00 08 00 00 .......................%........
0500 00 00 00 00 00 00 00 01 00 03 00 2e 03 00 80 6a 00 00 80 08 00 00 00 26 00 00 00 01 00 08 00 00 ...............j.......&........
0520 00 00 00 00 00 00 00 01 00 01 00 d5 03 00 80 93 00 00 00 ff ff ff ff 27 00 00 00 00 80 00 00 00 .......................'........
0540 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 28 00 00 00 00 c0 00 00 00 ...........1...1.......(........
0560 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 29 00 00 00 00 00 00 00 00 .......................)........
0580 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 2a 00 00 00 00 80 00 00 00 ...............j.......*........
05a0 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b 00 00 80 ff ff ff ff 2b 00 00 00 00 80 00 00 00 ...........H...........+........
05c0 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 00 00 80 ff ff ff ff 2c 00 00 00 01 40 00 00 00 ...........1...1.......,....@...
05e0 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b 03 00 80 04 00 00 00 2d 00 00 00 01 00 00 00 00 .......................-........
0600 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a 00 00 80 01 00 00 00 2e 00 00 00 01 00 00 00 00 ...........Q...j................
0620 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 2f 00 00 00 00 00 00 00 00 ...........y.........../........
0640 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 30 00 00 00 01 00 80 00 00 ...............#.......0........
0660 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 31 00 00 00 01 00 80 00 00 ...............,.......1........
0680 00 00 00 00 00 00 00 01 00 01 00 20 03 00 80 a7 00 00 00 02 00 00 00 32 00 00 00 00 40 00 00 00 .......................2....@...
06a0 00 00 00 00 00 00 00 01 00 01 00 be 02 00 80 b6 00 00 00 0c 00 00 00 33 00 00 00 00 40 00 00 00 .......................3....@...
06c0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 34 00 00 00 01 00 80 00 00 ...............#.......4........
06e0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 35 00 00 00 01 00 80 00 00 ...............,.......5........
0700 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 bb 00 00 00 ff ff ff ff 36 00 00 00 01 80 00 00 00 ...........H...........6........
0720 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 37 00 00 00 01 40 00 00 00 ...........1...1.......7....@...
0740 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 38 00 00 00 01 00 00 00 00 .......................8........
0760 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 39 00 00 00 01 00 00 00 00 ...........Q...j.......9........
0780 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 c6 00 00 00 ff ff ff ff 3a 00 00 00 01 80 00 00 00 ...........H...........:........
07a0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3b 00 00 00 01 40 00 00 00 ...........1...1.......;....@...
07c0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 3c 00 00 00 01 00 00 00 00 .......................<........
07e0 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 3d 00 00 00 01 00 00 00 00 ...........Q...j.......=........
0800 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 d8 00 00 00 ff ff ff ff 3e 00 00 00 01 80 00 00 00 ...........H...........>........
0820 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3f 00 00 00 01 40 00 00 00 ...........1...1.......?....@...
0840 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 40 00 00 00 01 00 00 00 00 .......................@........
0860 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 41 00 00 00 01 00 00 00 00 ...........Q...j.......A........
0880 00 00 00 00 00 00 00 4d 6f 6e 6f 49 6d 70 6f 72 74 65 72 00 50 50 74 72 3c 45 64 69 74 6f 72 45 .......MonoImporter.PPtr<EditorE
08a0 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 50 74 72 xtension>.m_FileID.m_PathID.PPtr
08c0 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 45 78 74 65 72 6e 61 6c 4f 62 6a 65 63 <PrefabInstance>.m_ExternalObjec
08e0 74 73 00 53 6f 75 72 63 65 41 73 73 65 74 49 64 65 6e 74 69 66 69 65 72 00 74 79 70 65 00 61 73 ts.SourceAssetIdentifier.type.as
0900 73 65 6d 62 6c 79 00 6e 61 6d 65 00 6d 5f 55 73 65 64 46 69 6c 65 49 44 73 00 6d 5f 44 65 66 61 sembly.name.m_UsedFileIDs.m_Defa
0920 75 6c 74 52 65 66 65 72 65 6e 63 65 73 00 65 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 69 63 6f ultReferences.executionOrder.ico
0940 6e 00 6d 5f 55 73 65 72 44 61 74 61 00 6d 5f 41 73 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 00 6d n.m_UserData.m_AssetBundleName.m
0960 5f 41 73 73 65 74 42 75 6e 64 6c 65 56 61 72 69 61 6e 74 00 00 00 00 00 73 00 00 00 00 ff ff a3 _AssetBundleVariant.....s.......
0980 47 f1 d7 dc 8f 5a 35 36 a0 3a 21 40 69 c1 4a 2a 00 00 00 81 00 00 00 05 00 00 00 15 01 00 80 37 G....Z56.:!@i.J*...............7
09a0 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 ................................
09c0 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 45 ...............................E
09e0 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a00 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a20 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 28 00 00 00 61 ...........................(...a
0a40 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a60 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a80 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 ...............................r
0aa0 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0ac0 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0ae0 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab ...........................H....
0b00 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0b20 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0b40 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0b60 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ea ...........................H....
0b80 01 00 80 ff ff ff ff 0f 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0ba0 00 00 80 ff ff ff ff 10 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0bc0 03 00 80 04 00 00 00 11 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0be0 00 00 80 01 00 00 00 12 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 3d ...............................=
0c00 00 00 00 ff ff ff ff 13 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0c20 00 00 80 ff ff ff ff 14 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ................................
0c40 03 00 80 04 00 00 00 15 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a ...............................j
0c60 00 00 80 ff ff ff ff 16 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b ...........................H....
0c80 00 00 80 ff ff ff ff 17 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 ...........................1...1
0ca0 00 00 80 ff ff ff ff 18 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b ............@...................
0cc0 03 00 80 04 00 00 00 19 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a ...........................Q...j
0ce0 00 00 80 01 00 00 00 1a 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a ...........................y....
0d00 03 00 80 0c 00 00 00 1b 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 16 ................................
0d20 00 00 00 04 00 00 00 1c 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 1f ................................
0d40 00 00 00 08 00 00 00 1d 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 79 02 00 80 51 ...........................y...Q
0d60 00 00 00 0c 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0d80 00 00 00 04 00 00 00 1f 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0da0 00 00 00 08 00 00 00 20 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 de 00 00 80 58 ...............................X
0dc0 00 00 00 04 00 00 00 21 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 69 .......!...................H...i
0de0 00 00 00 ff ff ff ff 22 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ......."...................1...1
0e00 00 00 80 ff ff ff ff 23 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......#....@...................
0e20 03 00 80 04 00 00 00 24 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......$...................Q...j
0e40 00 00 80 01 00 00 00 25 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 75 .......%...................H...u
0e60 00 00 00 ff ff ff ff 26 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 .......&...................1...1
0e80 00 00 80 ff ff ff ff 27 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......'....@...................
0ea0 03 00 80 04 00 00 00 28 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......(...................Q...j
0ec0 00 00 80 01 00 00 00 29 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 50 50 74 72 3c 45 64 69 74 .......)...............PPtr<Edit
0ee0 6f 72 45 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 orExtension>.m_FileID.m_PathID.P
0f00 50 74 72 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 44 65 66 61 75 6c 74 52 65 66 Ptr<PrefabInstance>.m_DefaultRef
0f20 65 72 65 6e 63 65 73 00 6d 5f 49 63 6f 6e 00 6d 5f 45 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 erences.m_Icon.m_ExecutionOrder.
0f40 6d 5f 43 6c 61 73 73 4e 61 6d 65 00 6d 5f 4e 61 6d 65 73 70 61 63 65 00 00 00 00 00 02 00 00 00 m_ClassName.m_Namespace.........
0f60 03 00 00 00 00 00 00 00 00 00 00 00 5c 00 00 00 00 00 00 00 e0 79 af 00 00 00 00 00 60 00 00 00 ............\........y......`...
0f80 c8 3b 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .;..............................
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 .....................y..........
1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1080 00 00 00 00 00 00 00 00 18 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 43 6f 64 65 47 65 6e 65 72 ............InputActionCodeGener
10a0 61 74 6f 72 2c 3b 00 00 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d 0a 75 73 69 6e 67 20 ator,;..#if.UNITY_EDITOR..using.
10c0 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 49 4f 3b 0d 0a 75 73 69 6e 67 System;..using.System.IO;..using
10e0 20 53 79 73 74 65 6d 2e 54 65 78 74 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 .System.Text;..using.UnityEngine
1100 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 55 74 69 6c 69 74 69 65 73 3b 0d 0a 75 73 69 6e 67 20 55 .InputSystem.Utilities;..using.U
1120 6e 69 74 79 45 64 69 74 6f 72 3b 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 73 75 66 66 69 78 20 nityEditor;....////TODO:.suffix.
1140 6d 61 70 20 70 72 6f 70 65 72 74 69 65 73 20 77 69 74 68 20 4d 61 70 20 6f 72 20 41 63 74 69 6f map.properties.with.Map.or.Actio
1160 6e 73 20 28 65 2e 67 2e 20 22 50 6c 61 79 65 72 4d 61 70 22 20 69 6e 73 74 65 61 64 20 6f 66 20 ns.(e.g.."PlayerMap".instead.of.
1180 22 50 6c 61 79 65 72 22 29 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 75 6e 69 66 79 20 74 68 65 "Player")....////TODO:.unify.the
11a0 20 67 65 6e 65 72 61 74 65 64 20 65 76 65 6e 74 73 20 73 6f 20 74 68 61 74 20 70 65 72 66 6f 72 .generated.events.so.that.perfor
11c0 6d 65 64 2c 20 63 61 6e 63 65 6c 65 64 2c 20 61 6e 64 20 73 74 61 72 74 65 64 20 61 6c 6c 20 67 med,.canceled,.and.started.all.g
11e0 6f 20 69 6e 74 6f 20 61 20 73 69 6e 67 6c 65 20 65 76 65 6e 74 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 o.into.a.single.event....////TOD
1200 4f 3a 20 6c 6f 6f 6b 20 75 70 20 61 63 74 69 6f 6e 73 20 61 6e 64 20 6d 61 70 73 20 62 79 20 49 O:.look.up.actions.and.maps.by.I
1220 44 20 72 61 74 68 65 72 20 74 68 61 6e 20 62 79 20 6e 61 6d 65 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 D.rather.than.by.name....////TOD
1240 4f 3a 20 6f 6e 6c 79 20 67 65 6e 65 72 61 74 65 20 40 73 6f 6d 65 74 68 69 6e 67 20 69 66 20 40 O:.only.generate.@something.if.@
1260 20 69 73 20 72 65 61 6c 6c 79 20 6e 65 65 64 65 64 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 .is.really.needed....////TODO:.a
1280 6c 6c 6f 77 20 68 61 76 69 6e 67 20 61 6e 20 75 6e 6e 61 6d 65 64 20 6f 72 20 64 65 66 61 75 6c llow.having.an.unnamed.or.defaul
12a0 74 2d 6e 61 6d 65 64 20 61 63 74 69 6f 6e 20 73 65 74 20 77 68 69 63 68 20 73 70 69 6c 6c 73 20 t-named.action.set.which.spills.
12c0 61 63 74 69 6f 6e 73 20 64 69 72 65 63 74 6c 79 20 69 6e 74 6f 20 74 68 65 20 74 6f 70 6c 65 76 actions.directly.into.the.toplev
12e0 65 6c 20 77 72 61 70 70 65 72 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 64 64 20 63 6c 65 61 el.wrapper....////TODO:.add.clea
1300 6e 75 70 20 66 6f 72 20 41 63 74 69 6f 6e 45 76 65 6e 74 73 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f nup.for.ActionEvents....////TODO
1320 3a 20 70 72 6f 74 65 63 74 20 67 65 6e 65 72 61 74 65 64 20 77 72 61 70 70 65 72 20 61 67 61 69 :.protect.generated.wrapper.agai
1340 6e 73 74 20 6d 6f 64 69 66 69 63 61 74 69 6f 6e 73 20 6d 61 64 65 20 74 6f 20 61 73 73 65 74 0d nst.modifications.made.to.asset.
1360 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 6d 61 6b 65 20 63 61 70 69 74 61 6c 69 7a 61 74 69 6f 6e ...////TODO:.make.capitalization
1380 20 63 6f 6e 73 69 73 74 65 6e 74 20 69 6e 20 74 68 65 20 67 65 6e 65 72 61 74 65 64 20 63 6f 64 .consistent.in.the.generated.cod
13a0 65 0d 0a 0d 0a 2f 2f 2f 2f 54 4f 44 4f 3a 20 69 6e 73 74 65 61 64 20 6f 66 20 6c 6f 61 64 69 6e e....////TODO:.instead.of.loadin
13c0 67 20 66 72 6f 6d 20 4a 53 4f 4e 2c 20 67 65 6e 65 72 61 74 65 20 74 68 65 20 73 74 72 75 63 74 g.from.JSON,.generate.the.struct
13e0 75 72 65 20 69 6e 20 63 6f 64 65 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 61 6c 6c 6f 77 ure.in.code....////REVIEW:.allow
1400 20 70 75 74 74 69 6e 67 20 2a 61 6c 6c 2a 20 6f 66 20 74 68 65 20 64 61 74 61 20 66 72 6f 6d 20 .putting.*all*.of.the.data.from.
1420 74 68 65 20 69 6e 70 75 74 61 63 74 69 6f 6e 73 20 61 73 73 65 74 20 69 6e 74 6f 20 74 68 65 20 the.inputactions.asset.into.the.
1440 67 65 6e 65 72 61 74 65 64 20 63 6c 61 73 73 3f 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e generated.class?....namespace.Un
1460 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e 45 64 69 74 6f 72 0d 0a 7b 0d ityEngine.InputSystem.Editor..{.
1480 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 55 74 69 6c .....///.<summary>......///.Util
14a0 69 74 79 20 74 6f 20 67 65 6e 65 72 61 74 65 20 63 6f 64 65 20 74 68 61 74 20 6d 61 6b 65 73 20 ity.to.generate.code.that.makes.
14c0 69 74 20 65 61 73 69 65 72 20 74 6f 20 77 6f 72 6b 20 77 69 74 68 20 61 63 74 69 6f 6e 20 73 65 it.easier.to.work.with.action.se
14e0 74 73 2e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 70 75 62 ts.......///.</summary>......pub
1500 6c 69 63 20 73 74 61 74 69 63 20 63 6c 61 73 73 20 49 6e 70 75 74 41 63 74 69 6f 6e 43 6f 64 65 lic.static.class.InputActionCode
1520 47 65 6e 65 72 61 74 6f 72 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 Generator......{..........privat
1540 65 20 63 6f 6e 73 74 20 69 6e 74 20 6b 53 70 61 63 65 73 50 65 72 49 6e 64 65 6e 74 4c 65 76 65 e.const.int.kSpacesPerIndentLeve
1560 6c 20 3d 20 34 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 75 63 74 20 l.=.4;............public.struct.
1580 4f 70 74 69 6f 6e 73 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 Options..........{..............
15a0 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 63 6c 61 73 73 4e 61 6d 65 20 7b 20 67 65 74 3b 20 73 public.string.className.{.get;.s
15c0 65 74 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 et;.}..............public.string
15e0 20 6e 61 6d 65 73 70 61 63 65 4e 61 6d 65 20 7b 20 67 65 74 3b 20 73 65 74 3b 20 7d 0d 0a 20 20 .namespaceName.{.get;.set;.}....
1600 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 73 6f 75 72 63 65 41 73 ..........public.string.sourceAs
1620 73 65 74 50 61 74 68 20 7b 20 67 65 74 3b 20 73 65 74 3b 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d setPath.{.get;.set;.}..........}
1640 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 73 74 72 69 6e 67 ............public.static.string
1660 20 47 65 6e 65 72 61 74 65 57 72 61 70 70 65 72 43 6f 64 65 28 49 6e 70 75 74 41 63 74 69 6f 6e .GenerateWrapperCode(InputAction
1680 41 73 73 65 74 20 61 73 73 65 74 2c 20 4f 70 74 69 6f 6e 73 20 6f 70 74 69 6f 6e 73 20 3d 20 64 Asset.asset,.Options.options.=.d
16a0 65 66 61 75 6c 74 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 efault)..........{..............
16c0 69 66 20 28 61 73 73 65 74 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 if.(asset.==.null)..............
16e0 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 65 70 74 ....throw.new.ArgumentNullExcept
1700 69 6f 6e 28 6e 61 6d 65 6f 66 28 61 73 73 65 74 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ion(nameof(asset));.............
1720 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6f 70 74 69 ...if.(string.IsNullOrEmpty(opti
1740 6f 6e 73 2e 73 6f 75 72 63 65 41 73 73 65 74 50 61 74 68 29 29 0d 0a 20 20 20 20 20 20 20 20 20 ons.sourceAssetPath))...........
1760 20 20 20 20 20 20 20 6f 70 74 69 6f 6e 73 2e 73 6f 75 72 63 65 41 73 73 65 74 50 61 74 68 20 3d .......options.sourceAssetPath.=
1780 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 47 65 74 41 73 73 65 74 50 61 74 68 28 61 73 73 65 .AssetDatabase.GetAssetPath(asse
17a0 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 t);..............if.(string.IsNu
17c0 6c 6c 4f 72 45 6d 70 74 79 28 6f 70 74 69 6f 6e 73 2e 63 6c 61 73 73 4e 61 6d 65 29 20 26 26 20 llOrEmpty(options.className).&&.
17e0 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 61 73 73 65 74 2e 6e 61 6d 65 !string.IsNullOrEmpty(asset.name
1800 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 70 74 69 6f 6e 73 2e 63 6c 61 73 ))..................options.clas
1820 73 4e 61 6d 65 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 43 53 68 sName.=......................CSh
1840 61 72 70 43 6f 64 65 48 65 6c 70 65 72 73 2e 4d 61 6b 65 54 79 70 65 4e 61 6d 65 28 61 73 73 65 arpCodeHelpers.MakeTypeName(asse
1860 74 2e 6e 61 6d 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 t.name);................if.(stri
1880 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6f 70 74 69 6f 6e 73 2e 63 6c 61 73 73 4e 61 ng.IsNullOrEmpty(options.classNa
18a0 6d 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 me))..............{.............
18c0 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6f 70 .....if.(string.IsNullOrEmpty(op
18e0 74 69 6f 6e 73 2e 73 6f 75 72 63 65 41 73 73 65 74 50 61 74 68 29 29 0d 0a 20 20 20 20 20 20 20 tions.sourceAssetPath)).........
1900 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 45 .............throw.new.ArgumentE
1920 78 63 65 70 74 69 6f 6e 28 22 6f 70 74 69 6f 6e 73 2e 73 6f 75 72 63 65 41 73 73 65 74 50 61 74 xception("options.sourceAssetPat
1940 68 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 70 74 69 6f 6e 73 2e 63 6c h");..................options.cl
1960 61 73 73 4e 61 6d 65 20 3d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 43 assName.=......................C
1980 53 68 61 72 70 43 6f 64 65 48 65 6c 70 65 72 73 2e 4d 61 6b 65 54 79 70 65 4e 61 6d 65 28 50 61 SharpCodeHelpers.MakeTypeName(Pa
19a0 74 68 2e 47 65 74 46 69 6c 65 4e 61 6d 65 57 69 74 68 6f 75 74 45 78 74 65 6e 73 69 6f 6e 28 6f th.GetFileNameWithoutExtension(o
19c0 70 74 69 6f 6e 73 2e 73 6f 75 72 63 65 41 73 73 65 74 50 61 74 68 29 29 3b 0d 0a 20 20 20 20 20 ptions.sourceAssetPath));.......
19e0 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 77 72 69 74 .......}................var.writ
1a00 65 72 20 3d 20 6e 65 77 20 57 72 69 74 65 72 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a er.=.new.Writer..............{..
1a20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 20 3d 20 6e 65 77 20 53 74 72 ................buffer.=.new.Str
1a40 69 6e 67 42 75 69 6c 64 65 72 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a 0d 0a ingBuilder()..............};....
1a60 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 48 65 61 64 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 ............//.Header...........
1a80 20 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6f 70 ....if.(!string.IsNullOrEmpty(op
1aa0 74 69 6f 6e 73 2e 73 6f 75 72 63 65 41 73 73 65 74 50 61 74 68 29 29 0d 0a 20 20 20 20 20 20 20 tions.sourceAssetPath)).........
1ac0 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 2f 2f 20 47 .........writer.WriteLine($"//.G
1ae0 45 4e 45 52 41 54 45 44 20 41 55 54 4f 4d 41 54 49 43 41 4c 4c 59 20 46 52 4f 4d 20 27 7b 6f 70 ENERATED.AUTOMATICALLY.FROM.'{op
1b00 74 69 6f 6e 73 2e 73 6f 75 72 63 65 41 73 73 65 74 50 61 74 68 7d 27 5c 6e 22 29 3b 0d 0a 0d 0a tions.sourceAssetPath}'\n");....
1b20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 55 73 69 6e 67 73 2e 0d 0a 20 20 20 20 20 20 20 20 ............//.Usings...........
1b40 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 75 73 69 6e 67 20 53 79 73 74 ....writer.WriteLine("using.Syst
1b60 65 6d 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 em;");..............writer.Write
1b80 4c 69 6e 65 28 22 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 3b 22 Line("using.System.Collections;"
1ba0 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 );..............writer.WriteLine
1bc0 28 22 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 ("using.System.Collections.Gener
1be0 69 63 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 ic;");..............writer.Write
1c00 4c 69 6e 65 28 22 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 Line("using.UnityEngine.InputSys
1c20 74 65 6d 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 tem;");..............writer.Writ
1c40 65 4c 69 6e 65 28 22 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 eLine("using.UnityEngine.InputSy
1c60 73 74 65 6d 2e 55 74 69 6c 69 74 69 65 73 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 stem.Utilities;");..............
1c80 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 writer.WriteLine("");...........
1ca0 20 20 20 20 20 2f 2f 20 42 65 67 69 6e 20 6e 61 6d 65 73 70 61 63 65 2e 0d 0a 20 20 20 20 20 20 .....//.Begin.namespace.........
1cc0 20 20 20 20 20 20 76 61 72 20 68 61 76 65 4e 61 6d 65 73 70 61 63 65 20 3d 20 21 73 74 72 69 6e ......var.haveNamespace.=.!strin
1ce0 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6f 70 74 69 6f 6e 73 2e 6e 61 6d 65 73 70 61 63 g.IsNullOrEmpty(options.namespac
1d00 65 4e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 68 61 76 65 4e 61 6d eName);..............if.(haveNam
1d20 65 73 70 61 63 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 espace)..............{..........
1d40 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 6e 61 6d 65 73 ........writer.WriteLine($"names
1d60 70 61 63 65 20 7b 6f 70 74 69 6f 6e 73 2e 6e 61 6d 65 73 70 61 63 65 4e 61 6d 65 7d 22 29 3b 0d pace.{options.namespaceName}");.
1d80 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 42 65 67 69 6e 42 6c 6f .................writer.BeginBlo
1da0 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ck();..............}............
1dc0 20 20 20 20 2f 2f 20 42 65 67 69 6e 20 63 6c 61 73 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ....//.Begin.class..............
1de0 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 70 75 62 6c 69 63 20 63 6c 61 73 73 .writer.WriteLine($"public.class
1e00 20 40 7b 6f 70 74 69 6f 6e 73 2e 63 6c 61 73 73 4e 61 6d 65 7d 20 3a 20 49 49 6e 70 75 74 41 63 .@{options.className}.:.IInputAc
1e20 74 69 6f 6e 43 6f 6c 6c 65 63 74 69 6f 6e 2c 20 49 44 69 73 70 6f 73 61 62 6c 65 22 29 3b 0d 0a tionCollection,.IDisposable");..
1e40 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 42 65 67 69 6e 42 6c 6f 63 6b 28 29 3b ............writer.BeginBlock();
1e60 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 ................writer.WriteLine
1e80 28 24 22 70 75 62 6c 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 20 61 73 73 65 74 ($"public.InputActionAsset.asset
1ea0 20 7b 7b 20 67 65 74 3b 20 7d 7d 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f .{{.get;.}}");................//
1ec0 20 44 65 66 61 75 6c 74 20 63 6f 6e 73 74 72 75 63 74 6f 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 .Default.constructor............
1ee0 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 70 75 62 6c 69 63 20 40 7b 6f ...writer.WriteLine($"public.@{o
1f00 70 74 69 6f 6e 73 2e 63 6c 61 73 73 4e 61 6d 65 7d 28 29 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 ptions.className}()");..........
1f20 20 20 20 20 77 72 69 74 65 72 2e 42 65 67 69 6e 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 ....writer.BeginBlock();........
1f40 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 61 73 73 65 74 20 3d ......writer.WriteLine($"asset.=
1f60 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 2e 46 72 6f 6d 4a 73 6f 6e 28 40 5c 22 7b 61 .InputActionAsset.FromJson(@\"{a
1f80 73 73 65 74 2e 54 6f 4a 73 6f 6e 28 29 2e 52 65 70 6c 61 63 65 28 22 5c 22 22 2c 20 22 5c 22 5c sset.ToJson().Replace("\"",."\"\
1fa0 22 22 29 7d 5c 22 29 3b 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d "")}\");");................var.m
1fc0 61 70 73 20 3d 20 61 73 73 65 74 2e 61 63 74 69 6f 6e 4d 61 70 73 3b 0d 0a 20 20 20 20 20 20 20 aps.=.asset.actionMaps;.........
1fe0 20 20 20 20 20 76 61 72 20 73 63 68 65 6d 65 73 20 3d 20 61 73 73 65 74 2e 63 6f 6e 74 72 6f 6c .....var.schemes.=.asset.control
2000 53 63 68 65 6d 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 Schemes;..............foreach.(v
2020 61 72 20 6d 61 70 20 69 6e 20 6d 61 70 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a ar.map.in.maps)..............{..
2040 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 61 70 4e 61 6d 65 20 3d 20 43 53 ................var.mapName.=.CS
2060 68 61 72 70 43 6f 64 65 48 65 6c 70 65 72 73 2e 4d 61 6b 65 49 64 65 6e 74 69 66 69 65 72 28 6d harpCodeHelpers.MakeIdentifier(m
2080 61 70 2e 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 ap.name);..................write
20a0 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 2f 2f 20 7b 6d 61 70 2e 6e 61 6d 65 7d 22 29 3b 0d 0a r.WriteLine($"//.{map.name}");..
20c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 ................writer.WriteLine
20e0 28 24 22 6d 5f 7b 6d 61 70 4e 61 6d 65 7d 20 3d 20 61 73 73 65 74 2e 46 69 6e 64 41 63 74 69 6f ($"m_{mapName}.=.asset.FindActio
2100 6e 4d 61 70 28 5c 22 7b 6d 61 70 2e 6e 61 6d 65 7d 5c 22 2c 20 74 68 72 6f 77 49 66 4e 6f 74 46 nMap(\"{map.name}\",.throwIfNotF
2120 6f 75 6e 64 3a 20 74 72 75 65 29 3b 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ound:.true);");.................
2140 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 61 63 74 69 6f 6e 20 69 6e 20 6d 61 70 2e 61 63 ...foreach.(var.action.in.map.ac
2160 74 69 6f 6e 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 tions)..................{.......
2180 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 4e 61 6d 65 20 3d 20 ...............var.actionName.=.
21a0 43 53 68 61 72 70 43 6f 64 65 48 65 6c 70 65 72 73 2e 4d 61 6b 65 49 64 65 6e 74 69 66 69 65 72 CSharpCodeHelpers.MakeIdentifier
21c0 28 61 63 74 69 6f 6e 2e 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 (action.name);..................
21e0 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 6d 5f 7b 6d 61 70 4e 61 6d ....writer.WriteLine($"m_{mapNam
2200 65 7d 5f 7b 61 63 74 69 6f 6e 4e 61 6d 65 7d 20 3d 20 6d 5f 7b 6d 61 70 4e 61 6d 65 7d 2e 46 69 e}_{actionName}.=.m_{mapName}.Fi
2220 6e 64 41 63 74 69 6f 6e 28 5c 22 7b 61 63 74 69 6f 6e 2e 6e 61 6d 65 7d 5c 22 2c 20 74 68 72 6f ndAction(\"{action.name}\",.thro
2240 77 49 66 4e 6f 74 46 6f 75 6e 64 3a 20 74 72 75 65 29 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 wIfNotFound:.true);");..........
2260 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 ........}..............}........
2280 20 20 20 20 20 20 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 ......writer.EndBlock();........
22a0 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 29 3b 0d 0a 0d 0a 20 20 20 ......writer.WriteLine();.......
22c0 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 70 75 62 6c 69 .........writer.WriteLine("publi
22e0 63 20 76 6f 69 64 20 44 69 73 70 6f 73 65 28 29 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 c.void.Dispose()");.............
2300 20 77 72 69 74 65 72 2e 42 65 67 69 6e 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 .writer.BeginBlock();...........
2320 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 55 6e 69 74 79 45 6e 67 69 6e 65 ...writer.WriteLine("UnityEngine
2340 2e 4f 62 6a 65 63 74 2e 44 65 73 74 72 6f 79 28 61 73 73 65 74 29 3b 22 29 3b 0d 0a 20 20 20 20 .Object.Destroy(asset);");......
2360 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 ........writer.EndBlock();......
2380 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 29 3b 0d 0a 0d 0a 20 ........writer.WriteLine();.....
23a0 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 70 75 62 ...........writer.WriteLine("pub
23c0 6c 69 63 20 49 6e 70 75 74 42 69 6e 64 69 6e 67 3f 20 62 69 6e 64 69 6e 67 4d 61 73 6b 22 29 3b lic.InputBinding?.bindingMask");
23e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 42 65 67 69 6e 42 6c 6f 63 6b 28 ..............writer.BeginBlock(
2400 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 );..............writer.WriteLine
2420 28 22 67 65 74 20 3d 3e 20 61 73 73 65 74 2e 62 69 6e 64 69 6e 67 4d 61 73 6b 3b 22 29 3b 0d 0a ("get.=>.asset.bindingMask;");..
2440 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 73 65 ............writer.WriteLine("se
2460 74 20 3d 3e 20 61 73 73 65 74 2e 62 69 6e 64 69 6e 67 4d 61 73 6b 20 3d 20 76 61 6c 75 65 3b 22 t.=>.asset.bindingMask.=.value;"
2480 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 );..............writer.EndBlock(
24a0 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 );..............writer.WriteLine
24c0 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c ();................writer.WriteL
24e0 69 6e 65 28 22 70 75 62 6c 69 63 20 52 65 61 64 4f 6e 6c 79 41 72 72 61 79 3c 49 6e 70 75 74 44 ine("public.ReadOnlyArray<InputD
2500 65 76 69 63 65 3e 3f 20 64 65 76 69 63 65 73 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 evice>?.devices");..............
2520 77 72 69 74 65 72 2e 42 65 67 69 6e 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 writer.BeginBlock();............
2540 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 67 65 74 20 3d 3e 20 61 73 73 65 74 ..writer.WriteLine("get.=>.asset
2560 2e 64 65 76 69 63 65 73 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 .devices;");..............writer
2580 2e 57 72 69 74 65 4c 69 6e 65 28 22 73 65 74 20 3d 3e 20 61 73 73 65 74 2e 64 65 76 69 63 65 73 .WriteLine("set.=>.asset.devices
25a0 20 3d 20 76 61 6c 75 65 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 .=.value;");..............writer
25c0 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 .EndBlock();..............writer
25e0 2e 57 72 69 74 65 4c 69 6e 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 .WriteLine();................wri
2600 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 70 75 62 6c 69 63 20 52 65 61 64 4f 6e 6c 79 41 72 ter.WriteLine("public.ReadOnlyAr
2620 72 61 79 3c 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 3e 20 63 6f 6e 74 72 6f 6c 53 ray<InputControlScheme>.controlS
2640 63 68 65 6d 65 73 20 3d 3e 20 61 73 73 65 74 2e 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 3b 22 chemes.=>.asset.controlSchemes;"
2660 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 );..............writer.WriteLine
2680 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c ();................writer.WriteL
26a0 69 6e 65 28 22 70 75 62 6c 69 63 20 62 6f 6f 6c 20 43 6f 6e 74 61 69 6e 73 28 49 6e 70 75 74 41 ine("public.bool.Contains(InputA
26c0 63 74 69 6f 6e 20 61 63 74 69 6f 6e 29 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 ction.action)");..............wr
26e0 69 74 65 72 2e 42 65 67 69 6e 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 iter.BeginBlock();..............
2700 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 72 65 74 75 72 6e 20 61 73 73 65 74 2e 43 writer.WriteLine("return.asset.C
2720 6f 6e 74 61 69 6e 73 28 61 63 74 69 6f 6e 29 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ontains(action);");.............
2740 20 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .writer.EndBlock();.............
2760 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 .writer.WriteLine();............
2780 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 70 75 62 6c 69 63 20 49 45 6e ....writer.WriteLine("public.IEn
27a0 75 6d 65 72 61 74 6f 72 3c 49 6e 70 75 74 41 63 74 69 6f 6e 3e 20 47 65 74 45 6e 75 6d 65 72 61 umerator<InputAction>.GetEnumera
27c0 74 6f 72 28 29 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 42 65 67 tor()");..............writer.Beg
27e0 69 6e 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 inBlock();..............writer.W
2800 72 69 74 65 4c 69 6e 65 28 22 72 65 74 75 72 6e 20 61 73 73 65 74 2e 47 65 74 45 6e 75 6d 65 72 riteLine("return.asset.GetEnumer
2820 61 74 6f 72 28 29 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 45 ator();");..............writer.E
2840 6e 64 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 ndBlock();..............writer.W
2860 72 69 74 65 4c 69 6e 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 riteLine();................write
2880 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 49 45 6e 75 6d 65 72 61 74 6f 72 20 49 45 6e 75 6d 65 72 r.WriteLine("IEnumerator.IEnumer
28a0 61 62 6c 65 2e 47 65 74 45 6e 75 6d 65 72 61 74 6f 72 28 29 22 29 3b 0d 0a 20 20 20 20 20 20 20 able.GetEnumerator()");.........
28c0 20 20 20 20 20 77 72 69 74 65 72 2e 42 65 67 69 6e 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 .....writer.BeginBlock();.......
28e0 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 72 65 74 75 72 6e 20 .......writer.WriteLine("return.
2900 47 65 74 45 6e 75 6d 65 72 61 74 6f 72 28 29 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 GetEnumerator();");.............
2920 20 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .writer.EndBlock();.............
2940 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 .writer.WriteLine();............
2960 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 70 75 62 6c 69 63 20 76 6f 69 ....writer.WriteLine("public.voi
2980 64 20 45 6e 61 62 6c 65 28 29 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 d.Enable()");..............write
29a0 72 2e 42 65 67 69 6e 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 r.BeginBlock();..............wri
29c0 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 61 73 73 65 74 2e 45 6e 61 62 6c 65 28 29 3b 22 29 ter.WriteLine("asset.Enable();")
29e0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 ;..............writer.EndBlock()
2a00 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 ;..............writer.WriteLine(
2a20 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 );................writer.WriteLi
2a40 6e 65 28 22 70 75 62 6c 69 63 20 76 6f 69 64 20 44 69 73 61 62 6c 65 28 29 22 29 3b 0d 0a 20 20 ne("public.void.Disable()");....
2a60 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 42 65 67 69 6e 42 6c 6f 63 6b 28 29 3b 0d 0a ..........writer.BeginBlock();..
2a80 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 61 73 ............writer.WriteLine("as
2aa0 73 65 74 2e 44 69 73 61 62 6c 65 28 29 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 set.Disable();");..............w
2ac0 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 riter.EndBlock();...............
2ae0 20 2f 2f 20 41 63 74 69 6f 6e 20 6d 61 70 20 61 63 63 65 73 73 6f 72 73 2e 0d 0a 20 20 20 20 20 .//.Action.map.accessors........
2b00 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 6d 61 70 20 69 6e 20 6d 61 70 73 29 .......foreach.(var.map.in.maps)
2b20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............{.................
2b40 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 .writer.WriteLine();............
2b60 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 2f 2f 20 7b 6d 61 70 ......writer.WriteLine($"//.{map
2b80 2e 6e 61 6d 65 7d 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 .name}");....................var
2ba0 20 6d 61 70 4e 61 6d 65 20 3d 20 43 53 68 61 72 70 43 6f 64 65 48 65 6c 70 65 72 73 2e 4d 61 6b .mapName.=.CSharpCodeHelpers.Mak
2bc0 65 49 64 65 6e 74 69 66 69 65 72 28 6d 61 70 2e 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 eIdentifier(map.name);..........
2be0 20 20 20 20 20 20 20 20 76 61 72 20 6d 61 70 54 79 70 65 4e 61 6d 65 20 3d 20 43 53 68 61 72 70 ........var.mapTypeName.=.CSharp
2c00 43 6f 64 65 48 65 6c 70 65 72 73 2e 4d 61 6b 65 54 79 70 65 4e 61 6d 65 28 6d 61 70 4e 61 6d 65 CodeHelpers.MakeTypeName(mapName
2c20 2c 20 22 41 63 74 69 6f 6e 73 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ,."Actions");...................
2c40 20 2f 2f 20 43 61 63 68 69 6e 67 20 66 69 65 6c 64 20 66 6f 72 20 61 63 74 69 6f 6e 20 6d 61 70 .//.Caching.field.for.action.map
2c60 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c ...................writer.WriteL
2c80 69 6e 65 28 24 22 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 49 6e 70 75 74 41 63 74 69 ine($"private.readonly.InputActi
2ca0 6f 6e 4d 61 70 20 6d 5f 7b 6d 61 70 4e 61 6d 65 7d 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 onMap.m_{mapName};");...........
2cc0 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 73 74 72 69 6e 67 2e 46 .......writer.WriteLine(string.F
2ce0 6f 72 6d 61 74 28 22 70 72 69 76 61 74 65 20 49 7b 30 7d 20 6d 5f 7b 30 7d 43 61 6c 6c 62 61 63 ormat("private.I{0}.m_{0}Callbac
2d00 6b 49 6e 74 65 72 66 61 63 65 3b 22 2c 20 6d 61 70 54 79 70 65 4e 61 6d 65 29 29 3b 0d 0a 0d 0a kInterface;",.mapTypeName));....
2d20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 61 63 68 69 6e 67 20 66 69 65 6c 64 ................//.Caching.field
2d40 73 20 66 6f 72 20 61 6c 6c 20 61 63 74 69 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 s.for.all.actions...............
2d60 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 61 63 74 69 6f 6e 20 69 6e 20 6d 61 70 2e 61 ....foreach.(var.action.in.map.a
2d80 63 74 69 6f 6e 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 ctions)..................{......
2da0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 4e 61 6d 65 20 3d ................var.actionName.=
2dc0 20 43 53 68 61 72 70 43 6f 64 65 48 65 6c 70 65 72 73 2e 4d 61 6b 65 49 64 65 6e 74 69 66 69 65 .CSharpCodeHelpers.MakeIdentifie
2de0 72 28 61 63 74 69 6f 6e 2e 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 r(action.name);.................
2e00 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 70 72 69 76 61 74 65 20 .....writer.WriteLine($"private.
2e20 72 65 61 64 6f 6e 6c 79 20 49 6e 70 75 74 41 63 74 69 6f 6e 20 6d 5f 7b 6d 61 70 4e 61 6d 65 7d readonly.InputAction.m_{mapName}
2e40 5f 7b 61 63 74 69 6f 6e 4e 61 6d 65 7d 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 _{actionName};");...............
2e60 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 74 72 75 63 ...}....................//.Struc
2e80 74 20 77 72 61 70 70 69 6e 67 20 61 63 63 65 73 73 20 74 6f 20 61 63 74 69 6f 6e 20 73 65 74 2e t.wrapping.access.to.action.set.
2ea0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 ..................writer.WriteLi
2ec0 6e 65 28 24 22 70 75 62 6c 69 63 20 73 74 72 75 63 74 20 7b 6d 61 70 54 79 70 65 4e 61 6d 65 7d ne($"public.struct.{mapTypeName}
2ee0 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 42 65 67 69 ");..................writer.Begi
2f00 6e 42 6c 6f 63 6b 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 nBlock();....................//.
2f20 43 6f 6e 73 74 72 75 63 74 6f 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 Constructor...................wr
2f40 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 70 72 69 76 61 74 65 20 40 7b 6f 70 74 69 6f iter.WriteLine($"private.@{optio
2f60 6e 73 2e 63 6c 61 73 73 4e 61 6d 65 7d 20 6d 5f 57 72 61 70 70 65 72 3b 22 29 3b 0d 0a 20 20 20 ns.className}.m_Wrapper;");.....
2f80 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 .............writer.WriteLine($"
2fa0 70 75 62 6c 69 63 20 7b 6d 61 70 54 79 70 65 4e 61 6d 65 7d 28 40 7b 6f 70 74 69 6f 6e 73 2e 63 public.{mapTypeName}(@{options.c
2fc0 6c 61 73 73 4e 61 6d 65 7d 20 77 72 61 70 70 65 72 29 20 7b 7b 20 6d 5f 57 72 61 70 70 65 72 20 lassName}.wrapper).{{.m_Wrapper.
2fe0 3d 20 77 72 61 70 70 65 72 3b 20 7d 7d 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 =.wrapper;.}}");................
3000 20 20 20 20 2f 2f 20 47 65 74 74 65 72 20 66 6f 72 20 65 61 63 68 20 61 63 74 69 6f 6e 2e 0d 0a ....//.Getter.for.each.action...
3020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 61 63 74 ................foreach.(var.act
3040 69 6f 6e 20 69 6e 20 6d 61 70 2e 61 63 74 69 6f 6e 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ion.in.map.actions).............
3060 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 .....{......................var.
3080 61 63 74 69 6f 6e 4e 61 6d 65 20 3d 20 43 53 68 61 72 70 43 6f 64 65 48 65 6c 70 65 72 73 2e 4d actionName.=.CSharpCodeHelpers.M
30a0 61 6b 65 49 64 65 6e 74 69 66 69 65 72 28 61 63 74 69 6f 6e 2e 6e 61 6d 65 29 3b 0d 0a 20 20 20 akeIdentifier(action.name);.....
30c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e .................writer.WriteLin
30e0 65 28 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 24 22 70 75 e(..........................$"pu
3100 62 6c 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 20 40 7b 61 63 74 69 6f 6e 4e 61 6d 65 7d 20 3d blic.InputAction.@{actionName}.=
3120 3e 20 6d 5f 57 72 61 70 70 65 72 2e 6d 5f 7b 6d 61 70 4e 61 6d 65 7d 5f 7b 61 63 74 69 6f 6e 4e >.m_Wrapper.m_{mapName}_{actionN
3140 61 6d 65 7d 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 ame};");..................}.....
3160 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 63 74 69 6f 6e 20 6d 61 70 20 67 65 74 ...............//.Action.map.get
3180 74 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 ter...................writer.Wri
31a0 74 65 4c 69 6e 65 28 24 22 70 75 62 6c 69 63 20 49 6e 70 75 74 41 63 74 69 6f 6e 4d 61 70 20 47 teLine($"public.InputActionMap.G
31c0 65 74 28 29 20 7b 7b 20 72 65 74 75 72 6e 20 6d 5f 57 72 61 70 70 65 72 2e 6d 5f 7b 6d 61 70 4e et().{{.return.m_Wrapper.m_{mapN
31e0 61 6d 65 7d 3b 20 7d 7d 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f ame};.}}");..................../
3200 2f 20 45 6e 61 62 6c 65 2f 64 69 73 61 62 6c 65 20 6d 65 74 68 6f 64 73 2e 0d 0a 20 20 20 20 20 /.Enable/disable.methods........
3220 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 70 75 62 ...........writer.WriteLine("pub
3240 6c 69 63 20 76 6f 69 64 20 45 6e 61 62 6c 65 28 29 20 7b 20 47 65 74 28 29 2e 45 6e 61 62 6c 65 lic.void.Enable().{.Get().Enable
3260 28 29 3b 20 7d 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 ();.}");..................writer
3280 2e 57 72 69 74 65 4c 69 6e 65 28 22 70 75 62 6c 69 63 20 76 6f 69 64 20 44 69 73 61 62 6c 65 28 .WriteLine("public.void.Disable(
32a0 29 20 7b 20 47 65 74 28 29 2e 44 69 73 61 62 6c 65 28 29 3b 20 7d 22 29 3b 0d 0a 20 20 20 20 20 ).{.Get().Disable();.}");.......
32c0 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 70 75 62 ...........writer.WriteLine("pub
32e0 6c 69 63 20 62 6f 6f 6c 20 65 6e 61 62 6c 65 64 20 3d 3e 20 47 65 74 28 29 2e 65 6e 61 62 6c 65 lic.bool.enabled.=>.Get().enable
3300 64 3b 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 6d 70 6c d;");....................//.Impl
3320 69 63 69 74 20 63 6f 6e 76 65 72 73 69 6f 6e 20 6f 70 65 72 61 74 6f 72 2e 0d 0a 20 20 20 20 20 icit.conversion.operator........
3340 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 0d 0a 20 20 ...........writer.WriteLine(....
3360 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 24 22 70 75 62 6c 69 63 20 73 74 61 74 69 ..................$"public.stati
3380 63 20 69 6d 70 6c 69 63 69 74 20 6f 70 65 72 61 74 6f 72 20 49 6e 70 75 74 41 63 74 69 6f 6e 4d c.implicit.operator.InputActionM
33a0 61 70 28 7b 6d 61 70 54 79 70 65 4e 61 6d 65 7d 20 73 65 74 29 20 7b 7b 20 72 65 74 75 72 6e 20 ap({mapTypeName}.set).{{.return.
33c0 73 65 74 2e 47 65 74 28 29 3b 20 7d 7d 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 set.Get();.}}");................
33e0 20 20 20 20 2f 2f 20 53 65 74 43 61 6c 6c 62 61 63 6b 73 20 6d 65 74 68 6f 64 2e 0d 0a 20 20 20 ....//.SetCallbacks.method......
3400 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 .............writer.WriteLine($"
3420 70 75 62 6c 69 63 20 76 6f 69 64 20 53 65 74 43 61 6c 6c 62 61 63 6b 73 28 49 7b 6d 61 70 54 79 public.void.SetCallbacks(I{mapTy
3440 70 65 4e 61 6d 65 7d 20 69 6e 73 74 61 6e 63 65 29 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 peName}.instance)");............
3460 20 20 20 20 20 20 77 72 69 74 65 72 2e 42 65 67 69 6e 42 6c 6f 63 6b 28 29 3b 0d 0a 0d 0a 20 20 ......writer.BeginBlock();......
3480 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 74 68 69 73 20 77 ..............////REVIEW:.this.w
34a0 6f 75 6c 64 20 62 65 6e 65 66 69 74 20 66 72 6f 6d 20 68 61 76 69 6e 67 20 61 20 73 69 6e 67 6c ould.benefit.from.having.a.singl
34c0 65 20 63 61 6c 6c 62 61 63 6b 20 6f 6e 20 49 6e 70 75 74 41 63 74 69 6f 6e 73 20 72 61 74 68 65 e.callback.on.InputActions.rathe
34e0 72 20 74 68 61 6e 20 74 68 72 65 65 20 64 69 66 66 65 72 65 6e 74 20 65 6e 64 70 6f 69 6e 74 73 r.than.three.different.endpoints
3500 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 55 6e 69 6e 69 74 69 61 6c ....................//.Uninitial
3520 69 7a 65 20 65 78 69 73 74 69 6e 67 20 69 6e 74 65 72 66 61 63 65 2e 0d 0a 20 20 20 20 20 20 20 ize.existing.interface..........
3540 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 69 66 20 28 .........writer.WriteLine($"if.(
3560 6d 5f 57 72 61 70 70 65 72 2e 6d 5f 7b 6d 61 70 54 79 70 65 4e 61 6d 65 7d 43 61 6c 6c 62 61 63 m_Wrapper.m_{mapTypeName}Callbac
3580 6b 49 6e 74 65 72 66 61 63 65 20 21 3d 20 6e 75 6c 6c 29 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 kInterface.!=.null)");..........
35a0 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 42 65 67 69 6e 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 ........writer.BeginBlock();....
35c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 61 63 74 69 6f ..............foreach.(var.actio
35e0 6e 20 69 6e 20 6d 61 70 2e 61 63 74 69 6f 6e 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 n.in.map.actions)...............
3600 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 ...{......................var.ac
3620 74 69 6f 6e 4e 61 6d 65 20 3d 20 43 53 68 61 72 70 43 6f 64 65 48 65 6c 70 65 72 73 2e 4d 61 6b tionName.=.CSharpCodeHelpers.Mak
3640 65 49 64 65 6e 74 69 66 69 65 72 28 61 63 74 69 6f 6e 2e 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 eIdentifier(action.name);.......
3660 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 6f 6e 54 79 70 65 4e 61 6d ...............var.actionTypeNam
3680 65 20 3d 20 43 53 68 61 72 70 43 6f 64 65 48 65 6c 70 65 72 73 2e 4d 61 6b 65 54 79 70 65 4e 61 e.=.CSharpCodeHelpers.MakeTypeNa
36a0 6d 65 28 61 63 74 69 6f 6e 2e 6e 61 6d 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 me(action.name);................
36c0 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 40 7b 61 63 74 ........writer.WriteLine($"@{act
36e0 69 6f 6e 4e 61 6d 65 7d 2e 73 74 61 72 74 65 64 20 2d 3d 20 6d 5f 57 72 61 70 70 65 72 2e 6d 5f ionName}.started.-=.m_Wrapper.m_
3700 7b 6d 61 70 54 79 70 65 4e 61 6d 65 7d 43 61 6c 6c 62 61 63 6b 49 6e 74 65 72 66 61 63 65 2e 4f {mapTypeName}CallbackInterface.O
3720 6e 7b 61 63 74 69 6f 6e 54 79 70 65 4e 61 6d 65 7d 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 n{actionTypeName};");...........
3740 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 40 7b ...........writer.WriteLine($"@{
3760 61 63 74 69 6f 6e 4e 61 6d 65 7d 2e 70 65 72 66 6f 72 6d 65 64 20 2d 3d 20 6d 5f 57 72 61 70 70 actionName}.performed.-=.m_Wrapp
3780 65 72 2e 6d 5f 7b 6d 61 70 54 79 70 65 4e 61 6d 65 7d 43 61 6c 6c 62 61 63 6b 49 6e 74 65 72 66 er.m_{mapTypeName}CallbackInterf
37a0 61 63 65 2e 4f 6e 7b 61 63 74 69 6f 6e 54 79 70 65 4e 61 6d 65 7d 3b 22 29 3b 0d 0a 20 20 20 20 ace.On{actionTypeName};");......
37c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 ................writer.WriteLine
37e0 28 24 22 40 7b 61 63 74 69 6f 6e 4e 61 6d 65 7d 2e 63 61 6e 63 65 6c 65 64 20 2d 3d 20 6d 5f 57 ($"@{actionName}.canceled.-=.m_W
3800 72 61 70 70 65 72 2e 6d 5f 7b 6d 61 70 54 79 70 65 4e 61 6d 65 7d 43 61 6c 6c 62 61 63 6b 49 6e rapper.m_{mapTypeName}CallbackIn
3820 74 65 72 66 61 63 65 2e 4f 6e 7b 61 63 74 69 6f 6e 54 79 70 65 4e 61 6d 65 7d 3b 22 29 3b 0d 0a terface.On{actionTypeName};");..
3840 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ................}...............
3860 20 20 20 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 ...writer.EndBlock();...........
3880 20 20 20 20 20 20 20 20 20 2f 2f 20 49 6e 69 74 69 61 6c 69 7a 65 20 6e 65 77 20 69 6e 74 65 72 .........//.Initialize.new.inter
38a0 66 61 63 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 face...................writer.Wr
38c0 69 74 65 4c 69 6e 65 28 24 22 6d 5f 57 72 61 70 70 65 72 2e 6d 5f 7b 6d 61 70 54 79 70 65 4e 61 iteLine($"m_Wrapper.m_{mapTypeNa
38e0 6d 65 7d 43 61 6c 6c 62 61 63 6b 49 6e 74 65 72 66 61 63 65 20 3d 20 69 6e 73 74 61 6e 63 65 3b me}CallbackInterface.=.instance;
3900 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 ");..................writer.Writ
3920 65 4c 69 6e 65 28 22 69 66 20 28 69 6e 73 74 61 6e 63 65 20 21 3d 20 6e 75 6c 6c 29 22 29 3b 0d eLine("if.(instance.!=.null)");.
3940 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 42 65 67 69 6e 42 6c 6f .................writer.BeginBlo
3960 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 ck();..................foreach.(
3980 76 61 72 20 61 63 74 69 6f 6e 20 69 6e 20 6d 61 70 2e 61 63 74 69 6f 6e 73 29 0d 0a 20 20 20 20 var.action.in.map.actions)......
39a0 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ............{...................
39c0 20 20 20 76 61 72 20 61 63 74 69 6f 6e 4e 61 6d 65 20 3d 20 43 53 68 61 72 70 43 6f 64 65 48 65 ...var.actionName.=.CSharpCodeHe
39e0 6c 70 65 72 73 2e 4d 61 6b 65 49 64 65 6e 74 69 66 69 65 72 28 61 63 74 69 6f 6e 2e 6e 61 6d 65 lpers.MakeIdentifier(action.name
3a00 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 63 74 69 );......................var.acti
3a20 6f 6e 54 79 70 65 4e 61 6d 65 20 3d 20 43 53 68 61 72 70 43 6f 64 65 48 65 6c 70 65 72 73 2e 4d onTypeName.=.CSharpCodeHelpers.M
3a40 61 6b 65 54 79 70 65 4e 61 6d 65 28 61 63 74 69 6f 6e 2e 6e 61 6d 65 29 3b 0d 0a 0d 0a 20 20 20 akeTypeName(action.name);.......
3a60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e .................writer.WriteLin
3a80 65 28 24 22 40 7b 61 63 74 69 6f 6e 4e 61 6d 65 7d 2e 73 74 61 72 74 65 64 20 2b 3d 20 69 6e 73 e($"@{actionName}.started.+=.ins
3aa0 74 61 6e 63 65 2e 4f 6e 7b 61 63 74 69 6f 6e 54 79 70 65 4e 61 6d 65 7d 3b 22 29 3b 0d 0a 20 20 tance.On{actionTypeName};");....
3ac0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 ..................writer.WriteLi
3ae0 6e 65 28 24 22 40 7b 61 63 74 69 6f 6e 4e 61 6d 65 7d 2e 70 65 72 66 6f 72 6d 65 64 20 2b 3d 20 ne($"@{actionName}.performed.+=.
3b00 69 6e 73 74 61 6e 63 65 2e 4f 6e 7b 61 63 74 69 6f 6e 54 79 70 65 4e 61 6d 65 7d 3b 22 29 3b 0d instance.On{actionTypeName};");.
3b20 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 .....................writer.Writ
3b40 65 4c 69 6e 65 28 24 22 40 7b 61 63 74 69 6f 6e 4e 61 6d 65 7d 2e 63 61 6e 63 65 6c 65 64 20 2b eLine($"@{actionName}.canceled.+
3b60 3d 20 69 6e 73 74 61 6e 63 65 2e 4f 6e 7b 61 63 74 69 6f 6e 54 79 70 65 4e 61 6d 65 7d 3b 22 29 =.instance.On{actionTypeName};")
3b80 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 ;..................}............
3ba0 20 20 20 20 20 20 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 ......writer.EndBlock();........
3bc0 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 ..........writer.EndBlock();....
3be0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b ..............writer.EndBlock();
3c00 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 65 74 74 65 72 20 66 6f ....................//.Getter.fo
3c20 72 20 69 6e 73 74 61 6e 63 65 20 6f 66 20 73 74 72 75 63 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 r.instance.of.struct............
3c40 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 70 75 62 6c 69 63 .......writer.WriteLine($"public
3c60 20 7b 6d 61 70 54 79 70 65 4e 61 6d 65 7d 20 40 7b 6d 61 70 4e 61 6d 65 7d 20 3d 3e 20 6e 65 77 .{mapTypeName}.@{mapName}.=>.new
3c80 20 7b 6d 61 70 54 79 70 65 4e 61 6d 65 7d 28 74 68 69 73 29 3b 22 29 3b 0d 0a 20 20 20 20 20 20 .{mapTypeName}(this);");........
3ca0 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 6f 6e 74 72 6f ......}................//.Contro
3cc0 6c 20 73 63 68 65 6d 65 20 61 63 63 65 73 73 6f 72 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 l.scheme.accessors..............
3ce0 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 73 63 68 65 6d 65 20 69 6e 20 73 63 68 65 6d 65 73 29 .foreach.(var.scheme.in.schemes)
3d00 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............{.................
3d20 20 76 61 72 20 69 64 65 6e 74 69 66 69 65 72 20 3d 20 43 53 68 61 72 70 43 6f 64 65 48 65 6c 70 .var.identifier.=.CSharpCodeHelp
3d40 65 72 73 2e 4d 61 6b 65 49 64 65 6e 74 69 66 69 65 72 28 73 63 68 65 6d 65 2e 6e 61 6d 65 29 3b ers.MakeIdentifier(scheme.name);
3d60 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 ....................writer.Write
3d80 4c 69 6e 65 28 24 22 70 72 69 76 61 74 65 20 69 6e 74 20 6d 5f 7b 69 64 65 6e 74 69 66 69 65 72 Line($"private.int.m_{identifier
3da0 7d 53 63 68 65 6d 65 49 6e 64 65 78 20 3d 20 2d 31 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 }SchemeIndex.=.-1;");...........
3dc0 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 70 75 62 6c 69 63 .......writer.WriteLine($"public
3de0 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 20 7b 69 64 65 6e 74 69 66 69 65 72 7d .InputControlScheme.{identifier}
3e00 53 63 68 65 6d 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 Scheme");..................write
3e20 72 2e 42 65 67 69 6e 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 r.BeginBlock();.................
3e40 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 22 67 65 74 22 29 3b 0d 0a 20 20 20 20 20 .writer.WriteLine("get");.......
3e60 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 42 65 67 69 6e 42 6c 6f 63 6b 28 29 3b 0d ...........writer.BeginBlock();.
3e80 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e .................writer.WriteLin
3ea0 65 28 24 22 69 66 20 28 6d 5f 7b 69 64 65 6e 74 69 66 69 65 72 7d 53 63 68 65 6d 65 49 6e 64 65 e($"if.(m_{identifier}SchemeInde
3ec0 78 20 3d 3d 20 2d 31 29 20 6d 5f 7b 69 64 65 6e 74 69 66 69 65 72 7d 53 63 68 65 6d 65 49 6e 64 x.==.-1).m_{identifier}SchemeInd
3ee0 65 78 20 3d 20 61 73 73 65 74 2e 46 69 6e 64 43 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 49 6e 64 65 ex.=.asset.FindControlSchemeInde
3f00 78 28 5c 22 7b 73 63 68 65 6d 65 2e 6e 61 6d 65 7d 5c 22 29 3b 22 29 3b 0d 0a 20 20 20 20 20 20 x(\"{scheme.name}\");");........
3f20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 72 65 74 ..........writer.WriteLine($"ret
3f40 75 72 6e 20 61 73 73 65 74 2e 63 6f 6e 74 72 6f 6c 53 63 68 65 6d 65 73 5b 6d 5f 7b 69 64 65 6e urn.asset.controlSchemes[m_{iden
3f60 74 69 66 69 65 72 7d 53 63 68 65 6d 65 49 6e 64 65 78 5d 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 tifier}SchemeIndex];");.........
3f80 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b 0d 0a 20 20 20 .........writer.EndBlock();.....
3fa0 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b 0d .............writer.EndBlock();.
3fc0 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f .............}................//
3fe0 20 47 65 6e 65 72 61 74 65 20 69 6e 74 65 72 66 61 63 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 .Generate.interfaces............
4000 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 6d 61 70 20 69 6e 20 6d 61 70 73 29 0d 0a 20 20 ...foreach.(var.map.in.maps)....
4020 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 ..........{..................var
4040 20 74 79 70 65 4e 61 6d 65 20 3d 20 43 53 68 61 72 70 43 6f 64 65 48 65 6c 70 65 72 73 2e 4d 61 .typeName.=.CSharpCodeHelpers.Ma
4060 6b 65 54 79 70 65 4e 61 6d 65 28 6d 61 70 2e 6e 61 6d 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 keTypeName(map.name);...........
4080 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 57 72 69 74 65 4c 69 6e 65 28 24 22 70 75 62 6c 69 63 .......writer.WriteLine($"public
40a0 20 69 6e 74 65 72 66 61 63 65 20 49 7b 74 79 70 65 4e 61 6d 65 7d 41 63 74 69 6f 6e 73 22 29 3b .interface.I{typeName}Actions");
40c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 42 65 67 69 6e 42 6c ..................writer.BeginBl
40e0 6f 63 6b 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 ock();....................foreac
4100 68 20 28 76 61 72 20 61 63 74 69 6f 6e 20 69 6e 20 6d 61 70 2e 61 63 74 69 6f 6e 73 29 0d 0a 20 h.(var.action.in.map.actions)...
4120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...............{................
4140 20 20 20 20 20 20 76 61 72 20 6d 65 74 68 6f 64 4e 61 6d 65 20 3d 20 43 53 68 61 72 70 43 6f 64 ......var.methodName.=.CSharpCod
4160 65 48 65 6c 70 65 72 73 2e 4d 61 6b 65 54 79 70 65 4e 61 6d 65 28 61 63 74 69 6f 6e 2e 6e 61 6d eHelpers.MakeTypeName(action.nam
4180 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e e);......................writer.
41a0 57 72 69 74 65 4c 69 6e 65 28 24 22 76 6f 69 64 20 4f 6e 7b 6d 65 74 68 6f 64 4e 61 6d 65 7d 28 WriteLine($"void.On{methodName}(
41c0 49 6e 70 75 74 41 63 74 69 6f 6e 2e 43 61 6c 6c 62 61 63 6b 43 6f 6e 74 65 78 74 20 63 6f 6e 74 InputAction.CallbackContext.cont
41e0 65 78 74 29 3b 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 ext);");..................}.....
4200 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 ...............writer.EndBlock()
4220 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ;..............}................
4240 2f 2f 20 45 6e 64 20 63 6c 61 73 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 72 69 74 65 //.End.class...............write
4260 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 r.EndBlock();................//.
4280 45 6e 64 20 6e 61 6d 65 73 70 61 63 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 End.namespace...............if.(
42a0 68 61 76 65 4e 61 6d 65 73 70 61 63 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 haveNamespace)..................
42c0 77 72 69 74 65 72 2e 45 6e 64 42 6c 6f 63 6b 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 writer.EndBlock();..............
42e0 20 20 72 65 74 75 72 6e 20 77 72 69 74 65 72 2e 62 75 66 66 65 72 2e 54 6f 53 74 72 69 6e 67 28 ..return.writer.buffer.ToString(
4300 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 );..........}............private
4320 20 73 74 72 75 63 74 20 57 72 69 74 65 72 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 .struct.Writer..........{.......
4340 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 53 74 72 69 6e 67 42 75 69 6c 64 65 72 20 62 75 66 66 .......public.StringBuilder.buff
4360 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 69 6e 64 65 er;..............public.int.inde
4380 6e 74 4c 65 76 65 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 ntLevel;................public.v
43a0 6f 69 64 20 42 65 67 69 6e 42 6c 6f 63 6b 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d oid.BeginBlock()..............{.
43c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 57 72 69 74 65 49 6e 64 65 6e 74 28 29 3b 0d .................WriteIndent();.
43e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 28 22 .................buffer.Append("
4400 7b 5c 6e 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 2b 69 6e 64 65 6e 74 {\n");..................++indent
4420 4c 65 76 65 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 Level;..............}...........
4440 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 45 6e 64 42 6c 6f 63 6b 28 29 0d 0a 20 20 20 .....public.void.EndBlock().....
4460 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2d 2d 69 6e .........{..................--in
4480 64 65 6e 74 4c 65 76 65 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 57 72 69 74 dentLevel;..................Writ
44a0 65 49 6e 64 65 6e 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 eIndent();..................buff
44c0 65 72 2e 41 70 70 65 6e 64 28 22 7d 5c 6e 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d er.Append("}\n");..............}
44e0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 57 72 69 74 ................public.void.Writ
4500 65 4c 69 6e 65 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 eLine()..............{..........
4520 20 20 20 20 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 28 27 5c 6e 27 29 3b 0d 0a 20 20 ........buffer.Append('\n');....
4540 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 ..........}................publi
4560 63 20 76 6f 69 64 20 57 72 69 74 65 4c 69 6e 65 28 73 74 72 69 6e 67 20 74 65 78 74 29 0d 0a 20 c.void.WriteLine(string.text)...
4580 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 57 72 ...........{..................Wr
45a0 69 74 65 49 6e 64 65 6e 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 iteIndent();..................bu
45c0 66 66 65 72 2e 41 70 70 65 6e 64 28 74 65 78 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ffer.Append(text);..............
45e0 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 65 6e 64 28 27 5c 6e 27 29 3b 0d 0a 20 20 20 20 20 20 ....buffer.Append('\n');........
4600 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f ......}................public.vo
4620 69 64 20 57 72 69 74 65 28 73 74 72 69 6e 67 20 74 65 78 74 29 0d 0a 20 20 20 20 20 20 20 20 20 id.Write(string.text)...........
4640 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 2e 41 70 70 ...{..................buffer.App
4660 65 6e 64 28 74 65 78 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 end(text);..............}.......
4680 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 57 72 69 74 65 49 6e 64 65 6e 74 .........public.void.WriteIndent
46a0 28 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ()..............{...............
46c0 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 69 6e 64 65 6e 74 4c 65 76 ...for.(var.i.=.0;.i.<.indentLev
46e0 65 6c 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 el;.++i)..................{.....
4700 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 6e 20 3d 20 30 3b .................for.(var.n.=.0;
4720 20 6e 20 3c 20 6b 53 70 61 63 65 73 50 65 72 49 6e 64 65 6e 74 4c 65 76 65 6c 3b 20 2b 2b 6e 29 .n.<.kSpacesPerIndentLevel;.++n)
4740 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 66 66 65 72 ..........................buffer
4760 2e 41 70 70 65 6e 64 28 27 20 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d .Append('.');..................}
4780 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 ..............}..........}......
47a0 20 20 20 20 20 20 2f 2f 20 55 70 64 61 74 65 73 20 74 68 65 20 67 69 76 65 6e 20 66 69 6c 65 20 ......//.Updates.the.given.file.
47c0 77 69 74 68 20 77 72 61 70 70 65 72 20 63 6f 64 65 20 67 65 6e 65 72 61 74 65 64 20 66 6f 72 20 with.wrapper.code.generated.for.
47e0 74 68 65 20 67 69 76 65 6e 20 61 63 74 69 6f 6e 20 73 65 74 73 2e 0d 0a 20 20 20 20 20 20 20 20 the.given.action.sets...........
4800 2f 2f 20 49 66 20 74 68 65 20 67 65 6e 65 72 61 74 65 64 20 63 6f 64 65 20 69 73 20 75 6e 63 68 //.If.the.generated.code.is.unch
4820 61 6e 67 65 64 2c 20 64 6f 65 73 20 6e 6f 74 20 74 6f 75 63 68 20 74 68 65 20 66 69 6c 65 2e 0d anged,.does.not.touch.the.file..
4840 0a 20 20 20 20 20 20 20 20 2f 2f 20 52 65 74 75 72 6e 73 20 74 72 75 65 20 69 66 20 74 68 65 20 .........//.Returns.true.if.the.
4860 66 69 6c 65 20 77 61 73 20 74 6f 75 63 68 65 64 2c 20 66 61 6c 73 65 20 6f 74 68 65 72 77 69 73 file.was.touched,.false.otherwis
4880 65 2e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 47 e...........public.static.bool.G
48a0 65 6e 65 72 61 74 65 57 72 61 70 70 65 72 43 6f 64 65 28 73 74 72 69 6e 67 20 66 69 6c 65 50 61 enerateWrapperCode(string.filePa
48c0 74 68 2c 20 49 6e 70 75 74 41 63 74 69 6f 6e 41 73 73 65 74 20 61 73 73 65 74 2c 20 4f 70 74 69 th,.InputActionAsset.asset,.Opti
48e0 6f 6e 73 20 6f 70 74 69 6f 6e 73 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 ons.options)..........{.........
4900 20 20 20 20 20 69 66 20 28 21 50 61 74 68 2e 48 61 73 45 78 74 65 6e 73 69 6f 6e 28 66 69 6c 65 .....if.(!Path.HasExtension(file
4920 50 61 74 68 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 69 6c 65 50 61 74 68 Path))..................filePath
4940 20 2b 3d 20 22 2e 63 73 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 65 6e .+=.".cs";................//.Gen
4960 65 72 61 74 65 20 63 6f 64 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 64 erate.code...............var.cod
4980 65 20 3d 20 47 65 6e 65 72 61 74 65 57 72 61 70 70 65 72 43 6f 64 65 28 61 73 73 65 74 2c 20 6f e.=.GenerateWrapperCode(asset,.o
49a0 70 74 69 6f 6e 73 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b ptions);................//.Check
49c0 20 69 66 20 74 68 65 20 63 6f 64 65 20 63 68 61 6e 67 65 64 2e 20 44 6f 6e 27 74 20 77 72 69 74 .if.the.code.changed..Don't.writ
49e0 65 20 69 66 20 69 74 20 68 61 73 6e 27 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 e.if.it.hasn't...............if.
4a00 28 46 69 6c 65 2e 45 78 69 73 74 73 28 66 69 6c 65 50 61 74 68 29 29 0d 0a 20 20 20 20 20 20 20 (File.Exists(filePath)).........
4a20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 65 78 69 73 .....{..................var.exis
4a40 74 69 6e 67 43 6f 64 65 20 3d 20 46 69 6c 65 2e 52 65 61 64 41 6c 6c 54 65 78 74 28 66 69 6c 65 tingCode.=.File.ReadAllText(file
4a60 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 78 69 73 Path);..................if.(exis
4a80 74 69 6e 67 43 6f 64 65 20 3d 3d 20 63 6f 64 65 20 7c 7c 20 65 78 69 73 74 69 6e 67 43 6f 64 65 tingCode.==.code.||.existingCode
4aa0 2e 57 69 74 68 41 6c 6c 57 68 69 74 65 73 70 61 63 65 53 74 72 69 70 70 65 64 28 29 20 3d 3d 20 .WithAllWhitespaceStripped().==.
4ac0 63 6f 64 65 2e 57 69 74 68 41 6c 6c 57 68 69 74 65 73 70 61 63 65 53 74 72 69 70 70 65 64 28 29 code.WithAllWhitespaceStripped()
4ae0 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 )......................return.fa
4b00 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 lse;..............}.............
4b20 20 20 20 2f 2f 20 57 72 69 74 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 ...//.Write...............Editor
4b40 48 65 6c 70 65 72 73 2e 43 68 65 63 6b 4f 75 74 28 66 69 6c 65 50 61 74 68 29 3b 0d 0a 20 20 20 Helpers.CheckOut(filePath);.....
4b60 20 20 20 20 20 20 20 20 20 46 69 6c 65 2e 57 72 69 74 65 41 6c 6c 54 65 78 74 28 66 69 6c 65 50 .........File.WriteAllText(fileP
4b80 61 74 68 2c 20 63 6f 64 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 ath,.code);..............return.
4ba0 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 7d 0d 0a 23 65 6e 64 true;..........}......}..}..#end
4bc0 69 66 20 2f 2f 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 if.//.UNITY_EDITOR..............
4be0 00 00 00 00 00 00 00 00 18 00 00 00 49 6e 70 75 74 41 63 74 69 6f 6e 43 6f 64 65 47 65 6e 65 72 ............InputActionCodeGener
4c00 61 74 6f 72 1e 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e 70 75 74 53 79 73 74 65 6d 2e ator....UnityEngine.InputSystem.
4c20 45 64 69 74 6f 72 00 00 Editor..