summaryrefslogtreecommitdiff
path: root/Library/Artifacts/eb/ebf3595fdf2a2fe4b78406a3e33db52a
blob: bc26dcf261c43ec2d5b3eceecee2bc3e8136de3b (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 67 98 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......g.............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 38 57 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 8W..............................
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 10 00 00 00 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c 69 73 74 c9 56 00 00 ............InputControlList.V..
10a0 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c using.System;..using.System.Coll
10c0 65 63 74 69 6f 6e 73 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f ections;..using.System.Collectio
10e0 6e 73 2e 47 65 6e 65 72 69 63 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 44 69 61 67 6e 6f ns.Generic;..using.System.Diagno
1100 73 74 69 63 73 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 4c 69 6e 71 3b 0d 0a 75 73 69 6e stics;..using.System.Linq;..usin
1120 67 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 2e 43 6f 6c 6c g.System.Text;..using.Unity.Coll
1140 65 63 74 69 6f 6e 73 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 2e 43 6f 6c 6c 65 63 74 69 6f 6e ections;..using.Unity.Collection
1160 73 2e 4c 6f 77 4c 65 76 65 6c 2e 55 6e 73 61 66 65 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 s.LowLevel.Unsafe;..using.UnityE
1180 6e 67 69 6e 65 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 0d 0a ngine.InputSystem.Utilities;....
11a0 2f 2f 2f 2f 54 4f 44 4f 3a 20 61 64 64 20 61 20 64 65 76 69 63 65 20 73 65 74 75 70 20 76 65 72 ////TODO:.add.a.device.setup.ver
11c0 73 69 6f 6e 20 74 6f 20 49 6e 70 75 74 4d 61 6e 61 67 65 72 20 61 6e 64 20 61 64 64 20 76 65 72 sion.to.InputManager.and.add.ver
11e0 73 69 6f 6e 20 63 68 65 63 6b 20 68 65 72 65 20 74 6f 20 65 6e 73 75 72 65 20 77 65 27 72 65 20 sion.check.here.to.ensure.we're.
1200 6e 6f 74 20 67 6f 69 6e 67 20 6f 75 74 20 6f 66 20 73 79 6e 63 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 not.going.out.of.sync....////REV
1220 49 45 57 3a 20 63 61 6e 20 77 65 20 68 61 76 65 20 61 20 72 65 61 64 2d 6f 6e 6c 79 20 76 65 72 IEW:.can.we.have.a.read-only.ver
1240 73 69 6f 6e 20 6f 66 20 74 68 69 73 0d 0a 0d 0a 2f 2f 2f 2f 52 45 56 49 45 57 3a 20 74 68 69 73 sion.of.this....////REVIEW:.this
1260 20 77 6f 75 6c 64 20 2a 72 65 61 6c 6c 79 2a 20 70 72 6f 66 69 74 20 66 72 6f 6d 20 68 61 76 69 .would.*really*.profit.from.havi
1280 6e 67 20 61 20 67 6c 6f 62 61 6c 20 6f 72 64 65 72 69 6e 67 20 6f 66 20 49 6e 70 75 74 43 6f 6e ng.a.global.ordering.of.InputCon
12a0 74 72 6f 6c 73 20 74 68 61 74 20 63 61 6e 20 62 65 20 69 6e 64 65 78 65 64 0d 0a 0d 0a 2f 2f 2f trols.that.can.be.indexed....///
12c0 2f 52 45 56 49 45 57 3a 20 6d 6f 76 65 20 74 68 69 73 20 74 6f 20 2e 4c 6f 77 4c 65 76 65 6c 3f /REVIEW:.move.this.to..LowLevel?
12e0 20 74 68 69 73 20 6f 6e 65 20 69 73 20 70 72 65 74 74 79 20 70 65 63 75 6c 69 61 72 20 74 6f 20 .this.one.is.pretty.peculiar.to.
1300 75 73 65 20 61 6e 64 20 64 6f 65 73 6e 27 74 20 72 65 61 6c 6c 79 20 77 6f 72 6b 20 6c 69 6b 65 use.and.doesn't.really.work.like
1320 20 77 68 61 74 20 79 6f 75 27 64 20 65 78 70 65 63 74 20 67 69 76 65 6e 20 43 23 27 73 20 4c 69 .what.you'd.expect.given.C#'s.Li
1340 73 74 3c 3e 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 49 6e st<>....namespace.UnityEngine.In
1360 70 75 74 53 79 73 74 65 6d 0d 0a 7b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d putSystem..{......///.<summary>.
1380 0a 20 20 20 20 2f 2f 2f 20 4b 65 65 70 20 61 20 6c 69 73 74 20 6f 66 20 3c 73 65 65 20 63 72 65 .....///.Keep.a.list.of.<see.cre
13a0 66 3d 22 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 22 2f 3e 73 20 77 69 74 68 6f 75 74 20 61 6c 6c 6f f="InputControl"/>s.without.allo
13c0 63 61 74 69 6e 67 20 6d 61 6e 61 67 65 64 20 6d 65 6d 6f 72 79 2e 0d 0a 20 20 20 20 2f 2f 2f 20 cating.managed.memory.......///.
13e0 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 </summary>......///.<remarks>...
1400 20 20 20 2f 2f 2f 20 54 68 69 73 20 73 74 72 75 63 74 20 69 73 20 6d 61 69 6e 6c 79 20 75 73 65 ...///.This.struct.is.mainly.use
1420 64 20 62 79 20 6d 65 74 68 6f 64 73 20 73 75 63 68 20 61 73 20 3c 73 65 65 20 63 72 65 66 3d 22 d.by.methods.such.as.<see.cref="
1440 49 6e 70 75 74 53 79 73 74 65 6d 2e 46 69 6e 64 43 6f 6e 74 72 6f 6c 73 28 73 74 72 69 6e 67 29 InputSystem.FindControls(string)
1460 22 2f 3e 0d 0a 20 20 20 20 2f 2f 2f 20 6f 72 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 "/>......///.or.<see.cref="Input
1480 43 6f 6e 74 72 6f 6c 50 61 74 68 2e 54 72 79 46 69 6e 64 43 6f 6e 74 72 6f 6c 73 7b 54 43 6f 6e ControlPath.TryFindControls{TCon
14a0 74 72 6f 6c 7d 22 2f 3e 20 74 6f 20 73 74 6f 72 65 20 61 6e 20 61 72 62 69 74 72 61 72 79 20 6c trol}"/>.to.store.an.arbitrary.l
14c0 65 6e 67 74 68 0d 0a 20 20 20 20 2f 2f 2f 20 6c 69 73 74 20 6f 66 20 72 65 73 75 6c 74 69 6e 67 ength......///.list.of.resulting
14e0 20 6d 61 74 63 68 65 73 20 77 69 74 68 6f 75 74 20 68 61 76 69 6e 67 20 74 6f 20 61 6c 6c 6f 63 .matches.without.having.to.alloc
1500 61 74 65 20 47 43 20 68 65 61 70 20 6d 65 6d 6f 72 79 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 ate.GC.heap.memory.......///....
1520 20 20 2f 2f 2f 20 52 65 71 75 69 72 65 73 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 73 65 74 75 70 ..///.Requires.the.control.setup
1540 20 69 6e 20 74 68 65 20 73 79 73 74 65 6d 20 74 6f 20 6e 6f 74 20 63 68 61 6e 67 65 20 77 68 69 .in.the.system.to.not.change.whi
1560 6c 65 20 74 68 65 20 6c 69 73 74 20 69 73 20 62 65 69 6e 67 20 75 73 65 64 2e 20 49 66 20 64 65 le.the.list.is.being.used..If.de
1580 76 69 63 65 73 20 61 72 65 0d 0a 20 20 20 20 2f 2f 2f 20 72 65 6d 6f 76 65 64 20 66 72 6f 6d 20 vices.are......///.removed.from.
15a0 74 68 65 20 73 79 73 74 65 6d 2c 20 74 68 65 20 6c 69 73 74 20 77 69 6c 6c 20 6e 6f 20 6c 6f 6e the.system,.the.list.will.no.lon
15c0 67 65 72 20 62 65 20 76 61 6c 69 64 2e 20 41 6c 73 6f 2c 20 6f 6e 6c 79 20 77 6f 72 6b 73 20 77 ger.be.valid..Also,.only.works.w
15e0 69 74 68 20 63 6f 6e 74 72 6f 6c 73 20 6f 66 20 64 65 76 69 63 65 73 20 74 68 61 74 0d 0a 20 20 ith.controls.of.devices.that....
1600 20 20 2f 2f 2f 20 68 61 76 65 20 62 65 65 6e 20 61 64 64 65 64 20 74 6f 20 74 68 65 20 73 79 73 ..///.have.been.added.to.the.sys
1620 74 65 6d 20 28 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 44 65 76 69 63 65 2e 61 64 64 65 tem.(<see.cref="InputDevice.adde
1640 64 22 2f 3e 29 2e 20 54 68 65 20 72 65 61 73 6f 6e 20 66 6f 72 20 74 68 65 73 65 20 63 6f 6e 73 d"/>)..The.reason.for.these.cons
1660 74 72 61 69 6e 74 73 20 69 73 0d 0a 20 20 20 20 2f 2f 2f 20 74 68 61 74 20 69 6e 74 65 72 6e 61 traints.is......///.that.interna
1680 6c 6c 79 2c 20 74 68 65 20 6c 69 73 74 20 6f 6e 6c 79 20 73 74 6f 72 65 73 20 69 6e 74 65 67 65 lly,.the.list.only.stores.intege
16a0 72 20 69 6e 64 69 63 65 73 20 74 68 61 74 20 61 72 65 20 74 72 61 6e 73 6c 61 74 65 73 20 74 6f r.indices.that.are.translates.to
16c0 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 22 2f 3e 0d 0a 20 20 20 .<see.cref="InputControl"/>.....
16e0 20 2f 2f 2f 20 72 65 66 65 72 65 6e 63 65 73 20 6f 6e 20 74 68 65 20 66 6c 79 2e 20 49 66 20 74 .///.references.on.the.fly..If.t
1700 68 65 20 64 65 76 69 63 65 20 73 65 74 75 70 20 69 6e 20 74 68 65 20 73 79 73 74 65 6d 20 63 68 he.device.setup.in.the.system.ch
1720 61 6e 67 65 73 2c 20 74 68 65 20 69 6e 64 69 63 65 73 20 6d 61 79 20 62 65 63 6f 6d 65 20 69 6e anges,.the.indices.may.become.in
1740 76 61 6c 69 64 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 73 74 valid.......///......///.This.st
1760 72 75 63 74 20 61 6c 6c 6f 63 61 74 65 73 20 75 6e 6d 61 6e 61 67 65 64 20 6d 65 6d 6f 72 79 20 ruct.allocates.unmanaged.memory.
1780 61 6e 64 20 74 68 75 73 20 6d 75 73 74 20 62 65 20 64 69 73 70 6f 73 65 64 20 6f 72 20 69 74 20 and.thus.must.be.disposed.or.it.
17a0 77 69 6c 6c 20 6c 65 61 6b 20 6d 65 6d 6f 72 79 2e 20 42 79 20 64 65 66 61 75 6c 74 0d 0a 20 20 will.leak.memory..By.default....
17c0 20 20 2f 2f 2f 20 61 6c 6c 6f 63 61 74 65 73 20 3c 63 3e 41 6c 6c 6f 63 61 74 6f 72 2e 50 65 72 ..///.allocates.<c>Allocator.Per
17e0 73 69 73 74 65 6e 74 3c 2f 63 3e 20 6d 65 6d 6f 72 79 2e 20 59 6f 75 20 63 61 6e 20 64 69 72 65 sistent</c>.memory..You.can.dire
1800 63 74 20 69 74 20 74 6f 20 75 73 65 20 61 6e 6f 74 68 65 72 20 61 6c 6c 6f 63 61 74 6f 72 20 62 ct.it.to.use.another.allocator.b
1820 79 0d 0a 20 20 20 20 2f 2f 2f 20 70 61 73 73 69 6e 67 20 61 6e 20 3c 73 65 65 20 63 72 65 66 3d y......///.passing.an.<see.cref=
1840 22 41 6c 6c 6f 63 61 74 6f 72 22 2f 3e 20 76 61 6c 75 65 20 74 6f 20 6f 6e 65 20 6f 66 20 74 68 "Allocator"/>.value.to.one.of.th
1860 65 20 63 6f 6e 73 74 72 75 63 74 6f 72 73 2e 0d 0a 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 2f 2f e.constructors.......///......//
1880 2f 20 3c 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 /.<example>......///.<code>.....
18a0 20 2f 2f 2f 20 2f 2f 20 46 69 6e 64 20 61 6c 6c 20 63 6f 6e 74 72 6f 6c 73 20 77 69 74 68 20 74 .///.//.Find.all.controls.with.t
18c0 68 65 20 22 53 75 62 6d 69 74 22 20 75 73 61 67 65 20 69 6e 20 74 68 65 20 73 79 73 74 65 6d 2e he."Submit".usage.in.the.system.
18e0 0d 0a 20 20 20 20 2f 2f 2f 20 2f 2f 20 42 79 20 77 72 61 70 70 69 6e 67 20 69 74 20 69 6e 20 61 ......///.//.By.wrapping.it.in.a
1900 20 60 75 73 69 6e 67 60 20 62 6c 6f 63 6b 2c 20 74 68 65 20 6c 69 73 74 20 6f 66 20 63 6f 6e 74 .`using`.block,.the.list.of.cont
1920 72 6f 6c 73 20 77 69 6c 6c 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 62 65 20 64 69 73 70 6f rols.will.automatically.be.dispo
1940 73 65 64 20 61 74 20 74 68 65 20 65 6e 64 2e 0d 0a 20 20 20 20 2f 2f 2f 20 75 73 69 6e 67 20 28 sed.at.the.end.......///.using.(
1960 76 61 72 20 63 6f 6e 74 72 6f 6c 73 20 3d 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 46 69 6e 64 43 var.controls.=.InputSystem.FindC
1980 6f 6e 74 72 6f 6c 73 28 22 2a 2f 7b 53 75 62 6d 69 74 7d 22 29 29 0d 0a 20 20 20 20 2f 2f 2f 20 ontrols("*/{Submit}"))......///.
19a0 20 20 20 20 2f 2a 20 2e 2e 2e 20 2a 2f 3b 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d ..../*.....*/;......///.</code>.
19c0 0a 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 2f 72 .....///.</example>......///.</r
19e0 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 2f 2f 2f 20 3c 74 79 70 65 70 61 72 61 6d 20 6e 61 6d 65 emarks>......///.<typeparam.name
1a00 3d 22 54 43 6f 6e 74 72 6f 6c 22 3e 54 79 70 65 20 6f 66 20 3c 73 65 65 20 63 72 65 66 3d 22 49 ="TControl">Type.of.<see.cref="I
1a20 6e 70 75 74 43 6f 6e 74 72 6f 6c 22 2f 3e 20 74 6f 20 73 74 6f 72 65 20 69 6e 20 74 68 65 20 6c nputControl"/>.to.store.in.the.l
1a40 69 73 74 2e 3c 2f 74 79 70 65 70 61 72 61 6d 3e 0d 0a 20 20 20 20 5b 44 65 62 75 67 67 65 72 44 ist.</typeparam>......[DebuggerD
1a60 69 73 70 6c 61 79 28 22 43 6f 75 6e 74 20 3d 20 7b 43 6f 75 6e 74 7d 22 29 5d 0d 0a 20 20 20 20 isplay("Count.=.{Count}")]......
1a80 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 20 7c 7c 20 44 45 56 45 4c 4f 50 4d 45 4e 54 5f #if.UNITY_EDITOR.||.DEVELOPMENT_
1aa0 42 55 49 4c 44 0d 0a 20 20 20 20 5b 44 65 62 75 67 67 65 72 54 79 70 65 50 72 6f 78 79 28 74 79 BUILD......[DebuggerTypeProxy(ty
1ac0 70 65 6f 66 28 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c 69 73 74 44 65 62 75 67 56 69 65 77 3c 3e peof(InputControlListDebugView<>
1ae0 29 29 5d 0d 0a 20 20 20 20 23 65 6e 64 69 66 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 75 6e 73 61 ))]......#endif......public.unsa
1b00 66 65 20 73 74 72 75 63 74 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c 69 73 74 3c 54 43 6f 6e 74 fe.struct.InputControlList<TCont
1b20 72 6f 6c 3e 20 3a 20 49 4c 69 73 74 3c 54 43 6f 6e 74 72 6f 6c 3e 2c 20 49 52 65 61 64 4f 6e 6c rol>.:.IList<TControl>,.IReadOnl
1b40 79 4c 69 73 74 3c 54 43 6f 6e 74 72 6f 6c 3e 2c 20 49 44 69 73 70 6f 73 61 62 6c 65 0d 0a 20 20 yList<TControl>,.IDisposable....
1b60 20 20 20 20 20 20 77 68 65 72 65 20 54 43 6f 6e 74 72 6f 6c 20 3a 20 49 6e 70 75 74 43 6f 6e 74 ......where.TControl.:.InputCont
1b80 72 6f 6c 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 rol......{..........///.<summary
1ba0 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 75 72 72 65 6e 74 20 6e 75 6d 62 65 72 20 6f 66 >..........///.Current.number.of
1bc0 20 63 6f 6e 74 72 6f 6c 73 20 69 6e 20 74 68 65 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 .controls.in.the.list...........
1be0 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c ///.</summary>..........///.<val
1c00 75 65 3e 4e 75 6d 62 65 72 20 6f 66 20 63 6f 6e 74 72 6f 6c 73 20 63 75 72 72 65 6e 74 6c 79 20 ue>Number.of.controls.currently.
1c20 69 6e 20 74 68 65 20 6c 69 73 74 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 in.the.list.</value>..........pu
1c40 62 6c 69 63 20 69 6e 74 20 43 6f 75 6e 74 20 3d 3e 20 6d 5f 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 20 blic.int.Count.=>.m_Count;......
1c60 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f ......///.<summary>..........///
1c80 20 54 6f 74 61 6c 20 6e 75 6d 62 65 72 20 6f 66 20 63 6f 6e 74 72 6f 6c 73 20 74 68 61 74 20 63 .Total.number.of.controls.that.c
1ca0 61 6e 20 63 75 72 72 65 6e 74 6c 79 20 62 65 20 73 74 6f 72 65 64 20 69 6e 20 74 68 65 20 6c 69 an.currently.be.stored.in.the.li
1cc0 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 st...........///.</summary>.....
1ce0 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 54 6f 74 61 6c 20 73 69 7a 65 20 6f 66 20 61 72 .....///.<value>Total.size.of.ar
1d00 72 61 79 20 61 73 20 63 75 72 72 65 6e 74 6c 79 20 61 6c 6c 6f 63 61 74 65 64 2e 3c 2f 76 61 6c ray.as.currently.allocated.</val
1d20 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 ue>..........///.<remarks>......
1d40 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 63 61 6e 20 62 65 20 73 65 74 20 61 68 65 61 64 20 6f 66 ....///.This.can.be.set.ahead.of
1d60 20 74 69 6d 65 20 74 6f 20 61 76 6f 69 64 20 72 65 70 65 61 74 65 64 20 61 6c 6c 6f 63 61 74 69 .time.to.avoid.repeated.allocati
1d80 6f 6e 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ons...........///..........///.<
1da0 65 78 61 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 example>..........///.<code>....
1dc0 20 20 20 20 20 20 2f 2f 2f 20 2f 2f 20 41 64 64 20 61 6c 6c 20 6b 65 79 73 20 66 72 6f 6d 20 74 ......///.//.Add.all.keys.from.t
1de0 68 65 20 6b 65 79 62 6f 61 72 64 20 74 6f 20 61 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 he.keyboard.to.a.list...........
1e00 2f 2f 2f 20 76 61 72 20 6b 65 79 73 20 3d 20 4b 65 79 62 6f 61 72 64 2e 63 75 72 72 65 6e 74 2e ///.var.keys.=.Keyboard.current.
1e20 61 6c 6c 4b 65 79 73 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 76 61 72 20 6c 69 73 74 20 3d allKeys;..........///.var.list.=
1e40 20 6e 65 77 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c 69 73 74 26 6c 74 3b 4b 65 79 43 6f 6e 74 .new.InputControlList&lt;KeyCont
1e60 72 6f 6c 26 67 74 3b 28 6b 65 79 73 2e 43 6f 75 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f rol&gt;(keys.Count);..........//
1e80 2f 20 6c 69 73 74 2e 41 64 64 52 61 6e 67 65 28 6b 65 79 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 /.list.AddRange(keys);..........
1ea0 2f 2f 2f 20 3c 2f 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 ///.</code>..........///.</examp
1ec0 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 le>..........///.</remarks>.....
1ee0 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 43 61 70 61 63 69 74 79 0d 0a 20 20 20 20 20 20 .....public.int.Capacity........
1f00 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 ..{..............get............
1f20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 6d 5f 49 6e 64 69 ..{..................if.(!m_Indi
1f40 63 65 73 2e 49 73 43 72 65 61 74 65 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ces.IsCreated)..................
1f60 20 20 20 20 72 65 74 75 72 6e 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 ....return.0;..................r
1f80 65 74 75 72 6e 20 6d 5f 49 6e 64 69 63 65 73 2e 4c 65 6e 67 74 68 3b 0d 0a 20 20 20 20 20 20 20 eturn.m_Indices.Length;.........
1fa0 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 0d 0a 20 20 20 20 20 20 20 .....}..............set.........
1fc0 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 76 61 6c 75 .....{..................if.(valu
1fe0 65 20 3c 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f e.<.0)......................thro
2000 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 45 78 63 65 70 74 69 6f 6e 28 22 43 61 70 61 63 69 74 w.new.ArgumentException("Capacit
2020 79 20 63 61 6e 6e 6f 74 20 62 65 20 6e 65 67 61 74 69 76 65 22 2c 20 6e 61 6d 65 6f 66 28 76 61 y.cannot.be.negative",.nameof(va
2040 6c 75 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 76 61 lue));....................if.(va
2060 6c 75 65 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 lue.==.0)..................{....
2080 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 6f 75 6e 74 20 21 3d ..................if.(m_Count.!=
20a0 20 30 29 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 6d 5f 49 .0)..........................m_I
20c0 6e 64 69 63 65 73 2e 44 69 73 70 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ndices.Dispose();...............
20e0 20 20 20 20 20 20 20 6d 5f 43 6f 75 6e 74 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .......m_Count.=.0;.............
2100 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .........return;................
2120 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 77 53 69 ..}....................var.newSi
2140 7a 65 20 3d 20 76 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 ze.=.value;..................var
2160 20 61 6c 6c 6f 63 61 74 6f 72 20 3d 20 6d 5f 41 6c 6c 6f 63 61 74 6f 72 20 21 3d 20 41 6c 6c 6f .allocator.=.m_Allocator.!=.Allo
2180 63 61 74 6f 72 2e 49 6e 76 61 6c 69 64 20 3f 20 6d 5f 41 6c 6c 6f 63 61 74 6f 72 20 3a 20 41 6c cator.Invalid.?.m_Allocator.:.Al
21a0 6c 6f 63 61 74 6f 72 2e 50 65 72 73 69 73 74 65 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 locator.Persistent;.............
21c0 20 20 20 20 20 41 72 72 61 79 48 65 6c 70 65 72 73 2e 52 65 73 69 7a 65 28 72 65 66 20 6d 5f 49 .....ArrayHelpers.Resize(ref.m_I
21e0 6e 64 69 63 65 73 2c 20 6e 65 77 53 69 7a 65 2c 20 61 6c 6c 6f 63 61 74 6f 72 29 3b 0d 0a 20 20 ndices,.newSize,.allocator);....
2200 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 20 20 20 20 ..........}..........}..........
2220 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 ..///.<summary>..........///.Thi
2240 73 20 69 73 20 61 6c 77 61 79 73 20 66 61 6c 73 65 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 s.is.always.false...........///.
2260 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 76 61 6c 75 65 3e 41 </summary>..........///.<value>A
2280 6c 77 61 79 73 20 66 61 6c 73 65 2e 3c 2f 76 61 6c 75 65 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 lways.false.</value>..........pu
22a0 62 6c 69 63 20 62 6f 6f 6c 20 49 73 52 65 61 64 4f 6e 6c 79 20 3d 3e 20 66 61 6c 73 65 3b 0d 0a blic.bool.IsReadOnly.=>.false;..
22c0 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 ..........///.<summary>.........
22e0 20 2f 2f 2f 20 52 65 74 75 72 6e 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 61 74 20 74 68 65 20 67 .///.Return.the.control.at.the.g
2300 69 76 65 6e 20 69 6e 64 65 78 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 iven.index...........///.</summa
2320 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 69 6e ry>..........///.<param.name="in
2340 64 65 78 22 3e 49 6e 64 65 78 20 6f 66 20 63 6f 6e 74 72 6f 6c 2e 3c 2f 70 61 72 61 6d 3e 0d 0a dex">Index.of.control.</param>..
2360 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 ........///.<exception.cref="Arg
2380 75 6d 65 6e 74 4f 75 74 4f 66 52 61 6e 67 65 45 78 63 65 70 74 69 6f 6e 22 3e 3c 70 61 72 61 6d umentOutOfRangeException"><param
23a0 72 65 66 20 6e 61 6d 65 3d 22 69 6e 64 65 78 22 2f 3e 20 69 73 20 6c 65 73 73 20 74 68 61 6e 20 ref.name="index"/>.is.less.than.
23c0 30 20 6f 72 20 67 72 65 61 74 65 72 20 74 68 61 6e 20 6f 72 20 65 71 75 61 6c 20 74 6f 20 3c 73 0.or.greater.than.or.equal.to.<s
23e0 65 65 20 63 72 65 66 3d 22 43 6f 75 6e 74 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ee.cref="Count"/>..........///.<
2400 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b /exception>..........///.<remark
2420 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 6e 74 65 72 6e 61 6c 6c 79 2c 20 74 68 65 20 s>..........///.Internally,.the.
2440 6c 69 73 74 20 6f 6e 6c 79 20 73 74 6f 72 65 73 20 69 6e 64 69 63 65 73 2e 20 52 65 73 6f 6c 75 list.only.stores.indices..Resolu
2460 74 69 6f 6e 20 74 6f 20 3c 73 65 65 20 63 72 65 66 3d 22 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 22 tion.to.<see.cref="InputControl"
2480 3e 63 6f 6e 74 72 6f 6c 73 3c 2f 73 65 65 3e 20 68 61 70 70 65 6e 73 0d 0a 20 20 20 20 20 20 20 >controls</see>.happens.........
24a0 20 2f 2f 2f 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20 62 79 20 6c 6f 6f 6b 69 6e 67 20 74 68 65 6d .///.dynamically.by.looking.them
24c0 20 75 70 20 67 6c 6f 62 61 6c 6c 79 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d .up.globally...........///.</rem
24e0 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 54 43 6f 6e 74 72 6f 6c 20 74 arks>..........public.TControl.t
2500 68 69 73 5b 69 6e 74 20 69 6e 64 65 78 5d 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 his[int.index]..........{.......
2520 20 20 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 .......get..............{.......
2540 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 64 65 78 20 3c 20 30 20 7c 7c 20 69 6e 64 65 ...........if.(index.<.0.||.inde
2560 78 20 3e 3d 20 6d 5f 43 6f 75 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 x.>=.m_Count)...................
2580 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4f 75 74 4f 66 52 61 6e 67 65 45 ...throw.new.ArgumentOutOfRangeE
25a0 78 63 65 70 74 69 6f 6e 28 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 xception(.......................
25c0 20 20 20 6e 61 6d 65 6f 66 28 69 6e 64 65 78 29 2c 20 24 22 49 6e 64 65 78 20 7b 69 6e 64 65 78 ...nameof(index),.$"Index.{index
25e0 7d 20 69 73 20 6f 75 74 20 6f 66 20 72 61 6e 67 65 20 69 6e 20 6c 69 73 74 20 77 69 74 68 20 7b }.is.out.of.range.in.list.with.{
2600 6d 5f 43 6f 75 6e 74 7d 20 65 6e 74 72 69 65 73 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 m_Count}.entries");.............
2620 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 46 72 6f 6d 49 6e 64 65 78 28 6d 5f 49 6e 64 69 63 65 .......return.FromIndex(m_Indice
2640 73 5b 69 6e 64 65 78 5d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 s[index]);..............}.......
2660 20 20 20 20 20 20 20 73 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 .......set..............{.......
2680 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 64 65 78 20 3c 20 30 20 7c 7c 20 69 6e 64 65 ...........if.(index.<.0.||.inde
26a0 78 20 3e 3d 20 6d 5f 43 6f 75 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 x.>=.m_Count)...................
26c0 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4f 75 74 4f 66 52 61 6e 67 65 45 ...throw.new.ArgumentOutOfRangeE
26e0 78 63 65 70 74 69 6f 6e 28 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 xception(.......................
2700 20 20 20 6e 61 6d 65 6f 66 28 69 6e 64 65 78 29 2c 20 24 22 49 6e 64 65 78 20 7b 69 6e 64 65 78 ...nameof(index),.$"Index.{index
2720 7d 20 69 73 20 6f 75 74 20 6f 66 20 72 61 6e 67 65 20 69 6e 20 6c 69 73 74 20 77 69 74 68 20 7b }.is.out.of.range.in.list.with.{
2740 6d 5f 43 6f 75 6e 74 7d 20 65 6e 74 72 69 65 73 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 m_Count}.entries");.............
2760 20 20 20 20 20 20 20 6d 5f 49 6e 64 69 63 65 73 5b 69 6e 64 65 78 5d 20 3d 20 54 6f 49 6e 64 65 .......m_Indices[index].=.ToInde
2780 78 28 76 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 x(value);..............}........
27a0 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 ..}............///.<summary>....
27c0 20 20 20 20 20 20 2f 2f 2f 20 43 6f 6e 73 74 72 75 63 74 20 61 20 6c 69 73 74 20 74 68 61 74 20 ......///.Construct.a.list.that.
27e0 61 6c 6c 6f 63 61 74 65 73 20 75 6e 6d 61 6e 61 67 65 64 20 6d 65 6d 6f 72 79 20 66 72 6f 6d 20 allocates.unmanaged.memory.from.
2800 74 68 65 20 67 69 76 65 6e 20 61 6c 6c 6f 63 61 74 6f 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f the.given.allocator...........//
2820 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d /.</summary>..........///.<param
2840 20 6e 61 6d 65 3d 22 61 6c 6c 6f 63 61 74 6f 72 22 3e 41 6c 6c 6f 63 61 74 6f 72 20 74 6f 20 75 .name="allocator">Allocator.to.u
2860 73 65 20 66 6f 72 20 72 65 71 75 65 73 74 69 6e 67 20 75 6e 6d 61 6e 61 67 65 64 20 6d 65 6d 6f se.for.requesting.unmanaged.memo
2880 72 79 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 ry.</param>..........///.<param.
28a0 6e 61 6d 65 3d 22 69 6e 69 74 69 61 6c 43 61 70 61 63 69 74 79 22 3e 49 66 20 67 72 65 61 74 65 name="initialCapacity">If.greate
28c0 72 20 74 68 61 6e 20 7a 65 72 6f 2c 20 77 69 6c 6c 20 69 6d 6d 65 64 69 61 74 65 6c 79 20 61 6c r.than.zero,.will.immediately.al
28e0 6c 6f 63 61 74 65 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6d 65 6d 6f 72 79 20 61 6e 64 20 73 locate..........///.memory.and.s
2900 65 74 20 3c 73 65 65 20 63 72 65 66 3d 22 43 61 70 61 63 69 74 79 22 2f 3e 20 61 63 63 6f 72 64 et.<see.cref="Capacity"/>.accord
2920 69 6e 67 6c 79 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 61 ingly.</param>..........///.<exa
2940 6d 70 6c 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 63 6f 64 65 3e 0d 0a 20 20 20 20 20 mple>..........///.<code>.......
2960 20 20 20 2f 2f 2f 20 2f 2f 20 43 72 65 61 74 65 20 61 20 63 6f 6e 74 72 6f 6c 20 6c 69 73 74 20 ...///.//.Create.a.control.list.
2980 74 68 61 74 20 61 6c 6c 6f 63 61 74 65 73 20 66 72 6f 6d 20 74 68 65 20 74 65 6d 70 6f 72 61 72 that.allocates.from.the.temporar
29a0 79 20 6d 65 6d 6f 72 79 20 61 6c 6c 6f 63 61 74 6f 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f y.memory.allocator...........///
29c0 20 75 73 69 6e 67 20 28 76 61 72 20 6c 69 73 74 20 3d 20 6e 65 77 20 49 6e 70 75 74 43 6f 6e 74 .using.(var.list.=.new.InputCont
29e0 72 6f 6c 4c 69 73 74 28 41 6c 6c 6f 63 61 74 6f 72 2e 54 65 6d 70 29 29 0d 0a 20 20 20 20 20 20 rolList(Allocator.Temp))........
2a00 20 20 2f 2f 2f 20 7b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 20 20 20 20 2f 2f 20 41 64 64 20 ..///.{..........///.....//.Add.
2a20 61 6c 6c 20 67 61 6d 65 70 61 64 73 20 74 6f 20 74 68 65 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 all.gamepads.to.the.list........
2a40 20 20 20 2f 2f 2f 20 20 20 20 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 46 69 6e 64 43 6f 6e 74 72 ...///.....InputSystem.FindContr
2a60 6f 6c 73 28 22 26 6c 74 3b 47 61 6d 65 70 61 64 26 67 74 3b 22 2c 20 72 65 66 20 6c 69 73 74 29 ols("&lt;Gamepad&gt;",.ref.list)
2a80 3b 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 7d 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f ;..........///.}..........///.</
2aa0 63 6f 64 65 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 65 78 61 6d 70 6c 65 3e 0d 0a 20 code>..........///.</example>...
2ac0 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c 69 73 74 28 41 .......public.InputControlList(A
2ae0 6c 6c 6f 63 61 74 6f 72 20 61 6c 6c 6f 63 61 74 6f 72 2c 20 69 6e 74 20 69 6e 69 74 69 61 6c 43 llocator.allocator,.int.initialC
2b00 61 70 61 63 69 74 79 20 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 apacity.=.0)..........{.........
2b20 20 20 20 20 20 6d 5f 41 6c 6c 6f 63 61 74 6f 72 20 3d 20 61 6c 6c 6f 63 61 74 6f 72 3b 0d 0a 20 .....m_Allocator.=.allocator;...
2b40 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 6e 64 69 63 65 73 20 3d 20 6e 65 77 20 4e 61 74 69 76 ...........m_Indices.=.new.Nativ
2b60 65 41 72 72 61 79 3c 75 6c 6f 6e 67 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f eArray<ulong>();..............m_
2b80 43 6f 75 6e 74 20 3d 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e Count.=.0;................if.(in
2ba0 69 74 69 61 6c 43 61 70 61 63 69 74 79 20 21 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 itialCapacity.!=.0).............
2bc0 20 20 20 20 20 43 61 70 61 63 69 74 79 20 3d 20 69 6e 69 74 69 61 6c 43 61 70 61 63 69 74 79 3b .....Capacity.=.initialCapacity;
2be0 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d ..........}............///.<summ
2c00 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 6f 6e 73 74 72 75 63 74 20 61 20 6c 69 ary>..........///.Construct.a.li
2c20 73 74 20 61 6e 64 20 70 6f 70 75 6c 61 74 65 20 69 74 20 77 69 74 68 20 74 68 65 20 67 69 76 65 st.and.populate.it.with.the.give
2c40 6e 20 76 61 6c 75 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 n.values...........///.</summary
2c60 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 76 61 6c 75 >..........///.<param.name="valu
2c80 65 73 22 3e 53 65 71 75 65 6e 63 65 20 6f 66 20 76 61 6c 75 65 73 20 74 6f 20 70 6f 70 75 6c 61 es">Sequence.of.values.to.popula
2ca0 74 65 20 74 68 65 20 6c 69 73 74 20 77 69 74 68 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 te.the.list.with.</param>.......
2cc0 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 61 6c 6c 6f 63 61 74 6f 72 22 3e 41 ...///.<param.name="allocator">A
2ce0 6c 6c 6f 63 61 74 6f 72 20 74 6f 20 75 73 65 20 66 6f 72 20 72 65 71 75 65 73 74 69 6e 67 20 75 llocator.to.use.for.requesting.u
2d00 6e 6d 61 6e 61 67 65 64 20 6d 65 6d 6f 72 79 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 nmanaged.memory.</param>........
2d20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 4e ..///.<exception.cref="ArgumentN
2d40 75 6c 6c 45 78 63 65 70 74 69 6f 6e 22 3e 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 76 61 ullException"><paramref.name="va
2d60 6c 75 65 73 22 2f 3e 20 69 73 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 2e 3c 2f 65 78 63 65 70 74 69 lues"/>.is.<c>null</c>.</excepti
2d80 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c on>..........public.InputControl
2da0 4c 69 73 74 28 49 45 6e 75 6d 65 72 61 62 6c 65 3c 54 43 6f 6e 74 72 6f 6c 3e 20 76 61 6c 75 65 List(IEnumerable<TControl>.value
2dc0 73 2c 20 41 6c 6c 6f 63 61 74 6f 72 20 61 6c 6c 6f 63 61 74 6f 72 20 3d 20 41 6c 6c 6f 63 61 74 s,.Allocator.allocator.=.Allocat
2de0 6f 72 2e 50 65 72 73 69 73 74 65 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 3a 20 74 68 or.Persistent)..............:.th
2e00 69 73 28 61 6c 6c 6f 63 61 74 6f 72 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 is(allocator)..........{........
2e20 20 20 20 20 20 20 69 66 20 28 76 61 6c 75 65 73 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 ......if.(values.==.null).......
2e40 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 4e 75 6c ...........throw.new.ArgumentNul
2e60 6c 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 76 61 6c 75 65 73 29 29 3b 0d 0a 0d 0a 20 lException(nameof(values));.....
2e80 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 76 61 6c 75 65 20 69 6e ...........foreach.(var.value.in
2ea0 20 76 61 6c 75 65 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 64 64 28 76 61 .values)..................Add(va
2ec0 6c 75 65 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 2f 2f 2f 20 lue);..........}............///.
2ee0 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 6f 6e 73 74 72 75 63 74 <summary>..........///.Construct
2f00 20 61 20 6c 69 73 74 20 61 6e 64 20 61 64 64 20 74 68 65 20 67 69 76 65 6e 20 76 61 6c 75 65 73 .a.list.and.add.the.given.values
2f20 20 74 6f 20 69 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d .to.it...........///.</summary>.
2f40 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 76 61 6c 75 65 73 .........///.<param.name="values
2f60 22 3e 53 65 71 75 65 6e 63 65 20 6f 66 20 63 6f 6e 74 72 6f 6c 73 20 74 6f 20 61 64 64 20 74 6f ">Sequence.of.controls.to.add.to
2f80 20 74 68 65 20 6c 69 73 74 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 .the.list.</param>..........///.
2fa0 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 4e 75 6c 6c 45 78 63 <exception.cref="ArgumentNullExc
2fc0 65 70 74 69 6f 6e 22 3e 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 76 61 6c 75 65 73 22 2f eption"><paramref.name="values"/
2fe0 3e 20 69 73 20 6e 75 6c 6c 2e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 >.is.null.</exception>..........
3000 70 75 62 6c 69 63 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c 69 73 74 28 70 61 72 61 6d 73 20 54 public.InputControlList(params.T
3020 43 6f 6e 74 72 6f 6c 5b 5d 20 76 61 6c 75 65 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 3a Control[].values)..............:
3040 20 74 68 69 73 28 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 .this()..........{..............
3060 69 66 20 28 76 61 6c 75 65 73 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 if.(values.==.null).............
3080 20 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 .....throw.new.ArgumentNullExcep
30a0 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 76 61 6c 75 65 73 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 tion(nameof(values));...........
30c0 20 20 20 20 20 76 61 72 20 63 6f 75 6e 74 20 3d 20 76 61 6c 75 65 73 2e 4c 65 6e 67 74 68 3b 0d .....var.count.=.values.Length;.
30e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 61 70 61 63 69 74 79 20 3d 20 4d 61 74 68 66 2e 4d 61 .............Capacity.=.Mathf.Ma
3100 78 28 63 6f 75 6e 74 2c 20 31 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 x(count,.10);..............for.(
3120 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 63 6f 75 6e 74 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 var.i.=.0;.i.<.count;.++i)......
3140 20 20 20 20 20 20 20 20 20 20 20 20 41 64 64 28 76 61 6c 75 65 73 5b 69 5d 29 3b 0d 0a 20 20 20 ............Add(values[i]);.....
3160 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d .....}............///.<summary>.
3180 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 64 64 20 61 20 63 6f 6e 74 72 6f 6c 20 74 6f 20 74 68 .........///.Add.a.control.to.th
31a0 65 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d e.list...........///.</summary>.
31c0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 69 74 65 6d 22 3e .........///.<param.name="item">
31e0 43 6f 6e 74 72 6f 6c 20 74 6f 20 61 64 64 2e 20 41 6c 6c 6f 77 65 64 20 74 6f 20 62 65 20 3c 63 Control.to.add..Allowed.to.be.<c
3200 3e 6e 75 6c 6c 3c 2f 63 3e 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 >null</c>.</param>..........///.
3220 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 6e 65 63 65 73 73 <remarks>..........///.If.necess
3240 61 72 79 2c 20 3c 73 65 65 20 63 72 65 66 3d 22 43 61 70 61 63 69 74 79 22 2f 3e 20 77 69 6c 6c ary,.<see.cref="Capacity"/>.will
3260 20 62 65 20 69 6e 63 72 65 61 73 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 0d 0a 20 20 20 .be.increased...........///.....
3280 20 20 20 20 20 2f 2f 2f 20 49 74 20 69 73 20 61 6c 6c 6f 77 65 64 20 74 6f 20 61 64 64 20 6e 75 .....///.It.is.allowed.to.add.nu
32a0 6c 6c 73 20 74 6f 20 74 68 65 20 6c 69 73 74 2e 20 54 68 69 73 20 63 61 6e 20 62 65 20 75 73 65 lls.to.the.list..This.can.be.use
32c0 66 75 6c 2c 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 77 68 65 6e 0d 0a 20 20 20 20 20 20 20 20 ful,.for.example,.when..........
32e0 2f 2f 2f 20 73 70 65 63 69 66 69 63 20 69 6e 64 69 63 65 73 20 69 6e 20 74 68 65 20 6c 69 73 74 ///.specific.indices.in.the.list
3300 20 63 6f 72 72 65 6c 61 74 65 20 77 69 74 68 20 73 70 65 63 69 66 69 63 20 6d 61 74 63 68 65 73 .correlate.with.specific.matches
3320 20 61 6e 64 20 61 20 67 69 76 65 6e 20 6d 61 74 63 68 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 .and.a.given.match..........///.
3340 6e 65 65 64 73 20 74 6f 20 62 65 20 6d 61 72 6b 65 64 20 61 73 20 22 6d 61 74 63 68 65 73 20 6e needs.to.be.marked.as."matches.n
3360 6f 74 68 69 6e 67 22 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e othing"...........///.</remarks>
3380 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 52 65 6d ..........///.<seealso.cref="Rem
33a0 6f 76 65 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 41 64 64 28 ove"/>..........public.void.Add(
33c0 54 43 6f 6e 74 72 6f 6c 20 69 74 65 6d 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 TControl.item)..........{.......
33e0 20 20 20 20 20 20 20 76 61 72 20 69 6e 64 65 78 20 3d 20 54 6f 49 6e 64 65 78 28 69 74 65 6d 29 .......var.index.=.ToIndex(item)
3400 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 6c 6c 6f 63 61 74 6f 72 20 3d 20 6d ;..............var.allocator.=.m
3420 5f 41 6c 6c 6f 63 61 74 6f 72 20 21 3d 20 41 6c 6c 6f 63 61 74 6f 72 2e 49 6e 76 61 6c 69 64 20 _Allocator.!=.Allocator.Invalid.
3440 3f 20 6d 5f 41 6c 6c 6f 63 61 74 6f 72 20 3a 20 41 6c 6c 6f 63 61 74 6f 72 2e 50 65 72 73 69 73 ?.m_Allocator.:.Allocator.Persis
3460 74 65 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 72 72 61 79 48 65 6c 70 65 72 73 2e tent;..............ArrayHelpers.
3480 41 70 70 65 6e 64 57 69 74 68 43 61 70 61 63 69 74 79 28 72 65 66 20 6d 5f 49 6e 64 69 63 65 73 AppendWithCapacity(ref.m_Indices
34a0 2c 20 72 65 66 20 6d 5f 43 6f 75 6e 74 2c 20 69 6e 64 65 78 2c 20 61 6c 6c 6f 63 61 74 6f 72 3a ,.ref.m_Count,.index,.allocator:
34c0 20 61 6c 6c 6f 63 61 74 6f 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 .allocator);..........}.........
34e0 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 64 ...///.<summary>..........///.Ad
3500 64 20 61 20 73 6c 69 63 65 20 6f 66 20 65 6c 65 6d 65 6e 74 73 20 74 61 6b 65 6e 20 66 72 6f 6d d.a.slice.of.elements.taken.from
3520 20 74 68 65 20 67 69 76 65 6e 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f .the.given.list...........///.</
3540 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d summary>..........///.<param.nam
3560 65 3d 22 6c 69 73 74 22 3e 4c 69 73 74 20 74 6f 20 74 61 6b 65 20 74 68 65 20 73 6c 69 63 65 20 e="list">List.to.take.the.slice.
3580 6f 66 20 76 61 6c 75 65 73 20 66 72 6f 6d 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 of.values.from.</param>.........
35a0 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 63 6f 75 6e 74 22 3e 4e 75 6d 62 65 72 20 .///.<param.name="count">Number.
35c0 6f 66 20 65 6c 65 6d 65 6e 74 73 20 74 6f 20 63 6f 70 79 20 66 72 6f 6d 20 3c 70 61 72 61 6d 72 of.elements.to.copy.from.<paramr
35e0 65 66 20 6e 61 6d 65 3d 22 6c 69 73 74 22 2f 3e 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 ef.name="list"/>.</param>.......
3600 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 64 65 73 74 69 6e 61 74 69 6f 6e 49 ...///.<param.name="destinationI
3620 6e 64 65 78 22 3e 53 74 61 72 74 69 6e 67 20 69 6e 64 65 78 20 69 6e 20 74 68 65 20 63 75 72 72 ndex">Starting.index.in.the.curr
3640 65 6e 74 20 63 6f 6e 74 72 6f 6c 20 6c 69 73 74 20 74 6f 20 63 6f 70 79 20 74 6f 2e 0d 0a 20 20 ent.control.list.to.copy.to.....
3660 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 63 61 6e 20 62 65 20 62 65 79 6f 6e 64 20 3c 73 65 ......///.This.can.be.beyond.<se
3680 65 20 63 72 65 66 3d 22 43 6f 75 6e 74 22 2f 3e 20 6f 72 20 65 76 65 6e 20 3c 73 65 65 20 63 72 e.cref="Count"/>.or.even.<see.cr
36a0 65 66 3d 22 43 61 70 61 63 69 74 79 22 2f 3e 2e 20 4d 65 6d 6f 72 79 20 69 73 20 61 6c 6c 6f 63 ef="Capacity"/>..Memory.is.alloc
36c0 61 74 65 64 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 73 20 6e 65 65 64 65 64 2e 3c 2f 70 61 ated..........///.as.needed.</pa
36e0 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 73 ram>..........///.<param.name="s
3700 6f 75 72 63 65 49 6e 64 65 78 22 3e 53 6f 75 72 63 65 20 69 6e 64 65 78 20 69 6e 20 3c 70 61 72 ourceIndex">Source.index.in.<par
3720 61 6d 72 65 66 20 6e 61 6d 65 3d 22 6c 69 73 74 22 2f 3e 20 74 6f 20 73 74 61 72 74 20 63 6f 70 amref.name="list"/>.to.start.cop
3740 79 69 6e 67 20 66 72 6f 6d 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 72 65 ying.from...........///.<paramre
3760 66 20 6e 61 6d 65 3d 22 63 6f 75 6e 74 22 2f 3e 20 65 6c 65 6d 65 6e 74 73 20 61 72 65 20 63 6f f.name="count"/>.elements.are.co
3780 70 69 65 64 20 73 74 61 72 74 69 6e 67 20 61 74 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d pied.starting.at.<paramref.name=
37a0 22 73 6f 75 72 63 65 49 6e 64 65 78 22 2f 3e 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 "sourceIndex"/>.</param>........
37c0 20 20 2f 2f 2f 20 3c 74 79 70 65 70 61 72 61 6d 20 6e 61 6d 65 3d 22 54 4c 69 73 74 22 3e 54 79 ..///.<typeparam.name="TList">Ty
37e0 70 65 20 6f 66 20 6c 69 73 74 2e 20 54 68 69 73 20 69 73 20 61 20 74 79 70 65 20 70 61 72 61 6d pe.of.list..This.is.a.type.param
3800 65 74 65 72 20 74 6f 20 61 76 6f 69 64 20 62 6f 78 69 6e 67 20 69 6e 20 63 61 73 65 20 74 68 65 eter.to.avoid.boxing.in.case.the
3820 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 67 69 76 65 6e 20 6c 69 73 74 20 69 73 20 61 20 73 74 ..........///.given.list.is.a.st
3840 72 75 63 74 20 28 73 75 63 68 20 61 73 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c 69 73 74 20 69 ruct.(such.as.InputControlList.i
3860 74 73 65 6c 66 29 2e 3c 2f 74 79 70 65 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f tself).</typeparam>..........///
3880 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e 74 4f 75 74 4f 66 52 .<exception.cref="ArgumentOutOfR
38a0 61 6e 67 65 45 78 63 65 70 74 69 6f 6e 22 3e 54 68 65 20 72 61 6e 67 65 20 6f 66 20 3c 70 61 72 angeException">The.range.of.<par
38c0 61 6d 72 65 66 20 6e 61 6d 65 3d 22 63 6f 75 6e 74 22 2f 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f amref.name="count"/>..........//
38e0 2f 20 61 6e 64 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 73 6f 75 72 63 65 49 6e 64 65 /.and.<paramref.name="sourceInde
3900 78 22 2f 3e 20 69 73 20 61 74 20 6c 65 61 73 74 20 70 61 72 74 69 61 6c 6c 79 20 6f 75 74 73 69 x"/>.is.at.least.partially.outsi
3920 64 65 20 74 68 65 20 72 61 6e 67 65 20 6f 66 20 76 61 6c 75 65 73 0d 0a 20 20 20 20 20 20 20 20 de.the.range.of.values..........
3940 2f 2f 2f 20 61 76 61 69 6c 61 62 6c 65 20 69 6e 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d ///.available.in.<paramref.name=
3960 22 6c 69 73 74 22 2f 3e 2e 3c 2f 65 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 70 "list"/>.</exception>..........p
3980 75 62 6c 69 63 20 76 6f 69 64 20 41 64 64 53 6c 69 63 65 3c 54 4c 69 73 74 3e 28 54 4c 69 73 74 ublic.void.AddSlice<TList>(TList
39a0 20 6c 69 73 74 2c 20 69 6e 74 20 63 6f 75 6e 74 20 3d 20 2d 31 2c 20 69 6e 74 20 64 65 73 74 69 .list,.int.count.=.-1,.int.desti
39c0 6e 61 74 69 6f 6e 49 6e 64 65 78 20 3d 20 2d 31 2c 20 69 6e 74 20 73 6f 75 72 63 65 49 6e 64 65 nationIndex.=.-1,.int.sourceInde
39e0 78 20 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 68 65 72 65 20 54 4c 69 73 74 20 x.=.0)..............where.TList.
3a00 3a 20 49 52 65 61 64 4f 6e 6c 79 4c 69 73 74 3c 54 43 6f 6e 74 72 6f 6c 3e 0d 0a 20 20 20 20 20 :.IReadOnlyList<TControl>.......
3a20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 75 6e 74 20 3c 20 30 29 ...{..............if.(count.<.0)
3a40 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 75 6e 74 20 3d 20 6c 69 73 74 2e 43 ..................count.=.list.C
3a60 6f 75 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 65 73 74 69 6e 61 74 69 ount;..............if.(destinati
3a80 6f 6e 49 6e 64 65 78 20 3c 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 onIndex.<.0)..................de
3aa0 73 74 69 6e 61 74 69 6f 6e 49 6e 64 65 78 20 3d 20 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 stinationIndex.=.Count;.........
3ac0 20 20 20 20 20 20 20 69 66 20 28 63 6f 75 6e 74 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 .......if.(count.==.0)..........
3ae0 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 ........return;..............if.
3b00 28 73 6f 75 72 63 65 49 6e 64 65 78 20 2b 20 63 6f 75 6e 74 20 3e 20 6c 69 73 74 2e 43 6f 75 6e (sourceIndex.+.count.>.list.Coun
3b20 74 29 0d 0a 20 20 20 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 t)..................throw.new.Ar
3b40 67 75 6d 65 6e 74 4f 75 74 4f 66 52 61 6e 67 65 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 gumentOutOfRangeException(nameof
3b60 28 63 6f 75 6e 74 29 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 24 22 (count),......................$"
3b80 43 6f 75 6e 74 20 6f 66 20 7b 63 6f 75 6e 74 7d 20 65 6c 65 6d 65 6e 74 73 20 73 74 61 72 74 69 Count.of.{count}.elements.starti
3ba0 6e 67 20 61 74 20 69 6e 64 65 78 20 7b 73 6f 75 72 63 65 49 6e 64 65 78 7d 20 65 78 63 65 65 64 ng.at.index.{sourceIndex}.exceed
3bc0 73 20 6c 65 6e 67 74 68 20 6f 66 20 6c 69 73 74 20 6f 66 20 7b 6c 69 73 74 2e 43 6f 75 6e 74 7d s.length.of.list.of.{list.Count}
3be0 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 61 6b 65 20 73 70 61 63 65 ");................//.Make.space
3c00 20 69 6e 20 74 68 65 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 43 .in.the.list...............if.(C
3c20 61 70 61 63 69 74 79 20 3c 20 6d 5f 43 6f 75 6e 74 20 2b 20 63 6f 75 6e 74 29 0d 0a 20 20 20 20 apacity.<.m_Count.+.count)......
3c40 20 20 20 20 20 20 20 20 20 20 20 20 43 61 70 61 63 69 74 79 20 3d 20 4d 61 74 68 2e 4d 61 78 28 ............Capacity.=.Math.Max(
3c60 6d 5f 43 6f 75 6e 74 20 2b 20 63 6f 75 6e 74 2c 20 31 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 m_Count.+.count,.10);...........
3c80 20 20 20 69 66 20 28 64 65 73 74 69 6e 61 74 69 6f 6e 49 6e 64 65 78 20 3c 20 43 6f 75 6e 74 29 ...if.(destinationIndex.<.Count)
3ca0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4e 61 74 69 76 65 41 72 72 61 79 3c 75 6c ..................NativeArray<ul
3cc0 6f 6e 67 3e 2e 43 6f 70 79 28 6d 5f 49 6e 64 69 63 65 73 2c 20 64 65 73 74 69 6e 61 74 69 6f 6e ong>.Copy(m_Indices,.destination
3ce0 49 6e 64 65 78 2c 20 6d 5f 49 6e 64 69 63 65 73 2c 20 64 65 73 74 69 6e 61 74 69 6f 6e 49 6e 64 Index,.m_Indices,.destinationInd
3d00 65 78 20 2b 20 63 6f 75 6e 74 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ex.+.count,.....................
3d20 20 43 6f 75 6e 74 20 2d 20 64 65 73 74 69 6e 61 74 69 6f 6e 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 .Count.-.destinationIndex);.....
3d40 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 64 20 65 6c 65 6d 65 6e 74 73 2e 0d 0a 20 20 20 ...........//.Add.elements......
3d60 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 63 6f 75 .........for.(var.i.=.0;.i.<.cou
3d80 6e 74 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 6e 64 69 nt;.++i)..................m_Indi
3da0 63 65 73 5b 64 65 73 74 69 6e 61 74 69 6f 6e 49 6e 64 65 78 20 2b 20 69 5d 20 3d 20 54 6f 49 6e ces[destinationIndex.+.i].=.ToIn
3dc0 64 65 78 28 6c 69 73 74 5b 73 6f 75 72 63 65 49 6e 64 65 78 20 2b 20 69 5d 29 3b 0d 0a 20 20 20 dex(list[sourceIndex.+.i]);.....
3de0 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 75 6e 74 20 2b 3d 20 63 6f 75 6e 74 3b 0d 0a 20 20 20 20 .........m_Count.+=.count;......
3e00 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a ....}............///.<summary>..
3e20 20 20 20 20 20 20 20 20 2f 2f 2f 20 41 64 64 20 61 20 73 65 71 75 65 6e 63 65 20 6f 66 20 63 6f ........///.Add.a.sequence.of.co
3e40 6e 74 72 6f 6c 73 20 74 6f 20 74 68 65 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f ntrols.to.the.list...........///
3e60 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 .</summary>..........///.<param.
3e80 6e 61 6d 65 3d 22 6c 69 73 74 22 3e 53 65 71 75 65 6e 63 65 20 6f 66 20 63 6f 6e 74 72 6f 6c 73 name="list">Sequence.of.controls
3ea0 20 74 6f 20 61 64 64 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 .to.add.</param>..........///.<p
3ec0 61 72 61 6d 20 6e 61 6d 65 3d 22 63 6f 75 6e 74 22 3e 4e 75 6d 62 65 72 20 6f 66 20 63 6f 6e 74 aram.name="count">Number.of.cont
3ee0 72 6f 6c 73 20 66 72 6f 6d 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 6c 69 73 74 22 2f rols.from.<paramref.name="list"/
3f00 3e 20 74 6f 20 61 64 64 2e 20 49 66 20 6e 65 67 61 74 69 76 65 0d 0a 20 20 20 20 20 20 20 20 2f >.to.add..If.negative........../
3f20 2f 2f 20 28 64 65 66 61 75 6c 74 29 2c 20 61 6c 6c 20 63 6f 6e 74 72 6f 6c 73 20 66 72 6f 6d 20 //.(default),.all.controls.from.
3f40 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 6c 69 73 74 22 2f 3e 20 77 69 6c 6c 20 62 65 20 <paramref.name="list"/>.will.be.
3f60 61 64 64 65 64 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 added.</param>..........///.<par
3f80 61 6d 20 6e 61 6d 65 3d 22 64 65 73 74 69 6e 61 74 69 6f 6e 49 6e 64 65 78 22 3e 49 6e 64 65 78 am.name="destinationIndex">Index
3fa0 20 69 6e 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 6c 69 73 74 20 74 6f 20 73 74 61 72 74 20 69 6e .in.the.control.list.to.start.in
3fc0 73 65 72 74 69 6e 67 20 63 6f 6e 74 72 6f 6c 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 61 74 serting.controls..........///.at
3fe0 2e 20 49 66 20 6e 65 67 61 74 69 76 65 20 28 64 65 66 61 75 6c 74 29 2c 20 63 6f 6e 74 72 6f 6c ..If.negative.(default),.control
4000 73 20 77 69 6c 6c 20 62 65 20 61 70 70 65 6e 64 65 64 20 74 6f 20 74 68 65 20 65 6e 64 20 6f 66 s.will.be.appended.to.the.end.of
4020 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 6c 69 73 74 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 .the.control.list.</param>......
4040 20 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d 22 41 72 67 75 6d 65 6e ....///.<exception.cref="Argumen
4060 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 22 3e 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 tNullException"><paramref.name="
4080 6c 69 73 74 22 2f 3e 20 69 73 20 3c 63 3e 6e 75 6c 6c 3c 2f 63 3e 2e 3c 2f 65 78 63 65 70 74 69 list"/>.is.<c>null</c>.</excepti
40a0 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 on>..........///.<remarks>......
40c0 20 20 20 20 2f 2f 2f 20 49 66 20 3c 70 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 63 6f 75 6e 74 ....///.If.<paramref.name="count
40e0 22 2f 3e 20 69 73 20 6e 6f 74 20 73 75 70 70 6c 69 65 64 2c 20 3c 70 61 72 61 6d 72 65 66 20 6e "/>.is.not.supplied,.<paramref.n
4100 61 6d 65 3d 22 6c 69 73 74 22 2f 3e 20 77 69 6c 6c 20 62 65 20 69 74 65 72 61 74 65 64 0d 0a 20 ame="list"/>.will.be.iterated...
4120 20 20 20 20 20 20 20 2f 2f 2f 20 6f 76 65 72 20 74 77 69 63 65 2e 0d 0a 20 20 20 20 20 20 20 20 .......///.over.twice...........
4140 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 ///.</remarks>..........public.v
4160 6f 69 64 20 41 64 64 52 61 6e 67 65 28 49 45 6e 75 6d 65 72 61 62 6c 65 3c 54 43 6f 6e 74 72 6f oid.AddRange(IEnumerable<TContro
4180 6c 3e 20 6c 69 73 74 2c 20 69 6e 74 20 63 6f 75 6e 74 20 3d 20 2d 31 2c 20 69 6e 74 20 64 65 73 l>.list,.int.count.=.-1,.int.des
41a0 74 69 6e 61 74 69 6f 6e 49 6e 64 65 78 20 3d 20 2d 31 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a tinationIndex.=.-1)..........{..
41c0 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6c 69 73 74 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 ............if.(list.==.null)...
41e0 20 20 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 ...............throw.new.Argumen
4200 74 4e 75 6c 6c 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 6c 69 73 74 29 29 3b 0d 0a 0d tNullException(nameof(list));...
4220 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 75 6e 74 20 3c 20 30 29 0d 0a 20 20 20 .............if.(count.<.0).....
4240 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 75 6e 74 20 3d 20 6c 69 73 74 2e 43 6f 75 6e 74 28 .............count.=.list.Count(
4260 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 65 73 74 69 6e 61 74 69 6f 6e 49 );..............if.(destinationI
4280 6e 64 65 78 20 3c 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 73 74 69 ndex.<.0)..................desti
42a0 6e 61 74 69 6f 6e 49 6e 64 65 78 20 3d 20 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 nationIndex.=.Count;............
42c0 20 20 20 20 69 66 20 28 63 6f 75 6e 74 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ....if.(count.==.0).............
42e0 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d .....return;................//.M
4300 61 6b 65 20 73 70 61 63 65 20 69 6e 20 74 68 65 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 ake.space.in.the.list...........
4320 20 20 20 20 69 66 20 28 43 61 70 61 63 69 74 79 20 3c 20 6d 5f 43 6f 75 6e 74 20 2b 20 63 6f 75 ....if.(Capacity.<.m_Count.+.cou
4340 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 43 61 70 61 63 69 74 79 20 3d 20 nt)..................Capacity.=.
4360 4d 61 74 68 2e 4d 61 78 28 6d 5f 43 6f 75 6e 74 20 2b 20 63 6f 75 6e 74 2c 20 31 30 29 3b 0d 0a Math.Max(m_Count.+.count,.10);..
4380 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 65 73 74 69 6e 61 74 69 6f 6e 49 6e 64 65 78 ............if.(destinationIndex
43a0 20 3c 20 43 6f 75 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4e 61 74 69 76 .<.Count)..................Nativ
43c0 65 41 72 72 61 79 3c 75 6c 6f 6e 67 3e 2e 43 6f 70 79 28 6d 5f 49 6e 64 69 63 65 73 2c 20 64 65 eArray<ulong>.Copy(m_Indices,.de
43e0 73 74 69 6e 61 74 69 6f 6e 49 6e 64 65 78 2c 20 6d 5f 49 6e 64 69 63 65 73 2c 20 64 65 73 74 69 stinationIndex,.m_Indices,.desti
4400 6e 61 74 69 6f 6e 49 6e 64 65 78 20 2b 20 63 6f 75 6e 74 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 nationIndex.+.count,............
4420 20 20 20 20 20 20 20 20 20 20 43 6f 75 6e 74 20 2d 20 64 65 73 74 69 6e 61 74 69 6f 6e 49 6e 64 ..........Count.-.destinationInd
4440 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 64 20 65 6c 65 6d 65 ex);................//.Add.eleme
4460 6e 74 73 2e 0d 0a 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 65 nts...............foreach.(var.e
4480 6c 65 6d 65 6e 74 20 69 6e 20 6c 69 73 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a lement.in.list)..............{..
44a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 6e 64 69 63 65 73 5b 64 65 73 74 69 6e ................m_Indices[destin
44c0 61 74 69 6f 6e 49 6e 64 65 78 2b 2b 5d 20 3d 20 54 6f 49 6e 64 65 78 28 65 6c 65 6d 65 6e 74 29 ationIndex++].=.ToIndex(element)
44e0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 2b 6d 5f 43 6f 75 6e 74 3b 0d 0a 20 ;..................++m_Count;...
4500 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2d 2d 63 6f 75 6e 74 3b 0d 0a 20 20 20 20 20 20 20 ...............--count;.........
4520 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 75 6e 74 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 .........if.(count.==.0)........
4540 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ..............break;............
4560 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 ..}..........}............///.<s
4580 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 6d 6f 76 65 20 61 20 63 6f ummary>..........///.Remove.a.co
45a0 6e 74 72 6f 6c 20 66 72 6f 6d 20 74 68 65 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f ntrol.from.the.list...........//
45c0 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d /.</summary>..........///.<param
45e0 20 6e 61 6d 65 3d 22 69 74 65 6d 22 3e 43 6f 6e 74 72 6f 6c 20 74 6f 20 72 65 6d 6f 76 65 2e 20 .name="item">Control.to.remove..
4600 43 61 6e 20 62 65 20 6e 75 6c 6c 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f Can.be.null.</param>..........//
4620 2f 20 3c 72 65 74 75 72 6e 73 3e 54 72 75 65 20 69 66 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 77 /.<returns>True.if.the.control.w
4640 61 73 20 66 6f 75 6e 64 20 69 6e 20 74 68 65 20 6c 69 73 74 20 61 6e 64 20 72 65 6d 6f 76 65 64 as.found.in.the.list.and.removed
4660 2c 20 66 61 6c 73 65 20 6f 74 68 65 72 77 69 73 65 2e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 ,.false.otherwise.</returns>....
4680 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 61 6c 73 6f 20 63 72 65 66 3d 22 41 64 64 22 2f 3e 0d ......///.<seealso.cref="Add"/>.
46a0 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 52 65 6d 6f 76 65 28 54 43 6f 6e .........public.bool.Remove(TCon
46c0 74 72 6f 6c 20 69 74 65 6d 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 trol.item)..........{...........
46e0 20 20 20 69 66 20 28 6d 5f 43 6f 75 6e 74 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 ...if.(m_Count.==.0)............
4700 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ......return.false;.............
4720 20 20 20 76 61 72 20 69 6e 64 65 78 20 3d 20 54 6f 49 6e 64 65 78 28 69 74 65 6d 29 3b 0d 0a 20 ...var.index.=.ToIndex(item);...
4740 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d ...........for.(var.i.=.0;.i.<.m
4760 5f 43 6f 75 6e 74 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 _Count;.++i)..............{.....
4780 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 49 6e 64 69 63 65 73 5b 69 5d 20 3d 3d .............if.(m_Indices[i].==
47a0 20 69 6e 64 65 78 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 .index)..................{......
47c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 72 72 61 79 48 65 6c 70 65 72 73 2e 45 72 61 ................ArrayHelpers.Era
47e0 73 65 41 74 57 69 74 68 43 61 70 61 63 69 74 79 28 6d 5f 49 6e 64 69 63 65 73 2c 20 72 65 66 20 seAtWithCapacity(m_Indices,.ref.
4800 6d 5f 43 6f 75 6e 74 2c 20 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 m_Count,.i);....................
4820 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..return.true;..................
4840 7d 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 }..............}................
4860 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 return.false;..........}........
4880 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 ....///.<summary>..........///.R
48a0 65 6d 6f 76 65 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 61 74 20 74 68 65 20 67 69 76 65 6e 20 69 emove.the.control.at.the.given.i
48c0 6e 64 65 78 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 ndex...........///.</summary>...
48e0 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 69 6e 64 65 78 22 3e 49 .......///.<param.name="index">I
4900 6e 64 65 78 20 6f 66 20 63 6f 6e 74 72 6f 6c 20 74 6f 20 72 65 6d 6f 76 65 2e 3c 2f 70 61 72 61 ndex.of.control.to.remove.</para
4920 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 65 78 63 65 70 74 69 6f 6e 20 63 72 65 66 3d m>..........///.<exception.cref=
4940 22 41 72 67 75 6d 65 6e 74 4f 75 74 4f 66 52 61 6e 67 65 45 78 63 65 70 74 69 6f 6e 22 3e 3c 70 "ArgumentOutOfRangeException"><p
4960 61 72 61 6d 72 65 66 20 6e 61 6d 65 3d 22 69 6e 64 65 78 22 2f 3e 20 69 73 20 6e 65 67 61 74 69 aramref.name="index"/>.is.negati
4980 76 65 20 6f 72 20 65 71 75 61 6c 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 6f 72 20 67 72 65 61 ve.or.equal..........///.or.grea
49a0 74 65 72 20 74 68 61 6e 20 3c 73 65 65 20 63 72 65 66 3d 22 43 6f 75 6e 74 22 2f 3e 2e 3c 2f 65 ter.than.<see.cref="Count"/>.</e
49c0 78 63 65 70 74 69 6f 6e 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 52 xception>..........public.void.R
49e0 65 6d 6f 76 65 41 74 28 69 6e 74 20 69 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 emoveAt(int.index)..........{...
4a00 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 64 65 78 20 3c 20 30 20 7c 7c 20 69 6e 64 65 ...........if.(index.<.0.||.inde
4a20 78 20 3e 3d 20 6d 5f 43 6f 75 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 x.>=.m_Count)..................t
4a40 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4f 75 74 4f 66 52 61 6e 67 65 45 78 63 65 70 hrow.new.ArgumentOutOfRangeExcep
4a60 74 69 6f 6e 28 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 61 6d 65 6f tion(......................nameo
4a80 66 28 69 6e 64 65 78 29 2c 20 24 22 49 6e 64 65 78 20 7b 69 6e 64 65 78 7d 20 69 73 20 6f 75 74 f(index),.$"Index.{index}.is.out
4aa0 20 6f 66 20 72 61 6e 67 65 20 69 6e 20 6c 69 73 74 20 77 69 74 68 20 7b 6d 5f 43 6f 75 6e 74 7d .of.range.in.list.with.{m_Count}
4ac0 20 65 6c 65 6d 65 6e 74 73 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 72 72 61 .elements");................Arra
4ae0 79 48 65 6c 70 65 72 73 2e 45 72 61 73 65 41 74 57 69 74 68 43 61 70 61 63 69 74 79 28 6d 5f 49 yHelpers.EraseAtWithCapacity(m_I
4b00 6e 64 69 63 65 73 2c 20 72 65 66 20 6d 5f 43 6f 75 6e 74 2c 20 69 6e 64 65 78 29 3b 0d 0a 20 20 ndices,.ref.m_Count,.index);....
4b20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 43 ......}............public.void.C
4b40 6f 70 79 54 6f 28 54 43 6f 6e 74 72 6f 6c 5b 5d 20 61 72 72 61 79 2c 20 69 6e 74 20 61 72 72 61 opyTo(TControl[].array,.int.arra
4b60 79 49 6e 64 65 78 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 yIndex)..........{..............
4b80 74 68 72 6f 77 20 6e 65 77 20 4e 6f 74 49 6d 70 6c 65 6d 65 6e 74 65 64 45 78 63 65 70 74 69 6f throw.new.NotImplementedExceptio
4ba0 6e 28 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 75 62 6c 69 n();..........}............publi
4bc0 63 20 69 6e 74 20 49 6e 64 65 78 4f 66 28 54 43 6f 6e 74 72 6f 6c 20 69 74 65 6d 29 0d 0a 20 20 c.int.IndexOf(TControl.item)....
4be0 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 43 6f 75 6e 74 ......{..............if.(m_Count
4c00 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 2d .==.0)..................return.-
4c20 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 6e 64 65 78 20 3d 20 54 6f 1;................var.index.=.To
4c40 49 6e 64 65 78 28 69 74 65 6d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 6e Index(item);..............var.in
4c60 64 69 63 65 73 20 3d 20 28 75 6c 6f 6e 67 2a 29 6d 5f 49 6e 64 69 63 65 73 2e 47 65 74 55 6e 73 dices.=.(ulong*)m_Indices.GetUns
4c80 61 66 65 52 65 61 64 4f 6e 6c 79 50 74 72 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 afeReadOnlyPtr();...............
4ca0 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f 43 6f 75 6e 74 3b 20 2b 2b .for.(var.i.=.0;.i.<.m_Count;.++
4cc0 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 64 69 63 65 73 5b i)..................if.(indices[
4ce0 69 5d 20 3d 3d 20 69 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 i].==.index)....................
4d00 20 20 72 65 74 75 72 6e 20 69 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 ..return.i;................retur
4d20 6e 20 2d 31 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 75 62 6c n.-1;..........}............publ
4d40 69 63 20 76 6f 69 64 20 49 6e 73 65 72 74 28 69 6e 74 20 69 6e 64 65 78 2c 20 54 43 6f 6e 74 72 ic.void.Insert(int.index,.TContr
4d60 6f 6c 20 69 74 65 6d 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 ol.item)..........{.............
4d80 20 74 68 72 6f 77 20 6e 65 77 20 4e 6f 74 49 6d 70 6c 65 6d 65 6e 74 65 64 45 78 63 65 70 74 69 .throw.new.NotImplementedExcepti
4da0 6f 6e 28 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 75 62 6c on();..........}............publ
4dc0 69 63 20 76 6f 69 64 20 43 6c 65 61 72 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 ic.void.Clear()..........{......
4de0 20 20 20 20 20 20 20 20 6d 5f 43 6f 75 6e 74 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d ........m_Count.=.0;..........}.
4e00 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 43 6f 6e 74 61 69 6e 73 28 ...........public.bool.Contains(
4e20 54 43 6f 6e 74 72 6f 6c 20 69 74 65 6d 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 TControl.item)..........{.......
4e40 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 49 6e 64 65 78 4f 66 28 69 74 65 6d 29 20 21 3d 20 2d .......return.IndexOf(item).!=.-
4e60 31 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 75 62 6c 69 63 20 1;..........}............public.
4e80 76 6f 69 64 20 53 77 61 70 45 6c 65 6d 65 6e 74 73 28 69 6e 74 20 69 6e 64 65 78 31 2c 20 69 6e void.SwapElements(int.index1,.in
4ea0 74 20 69 6e 64 65 78 32 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 t.index2)..........{............
4ec0 20 20 69 66 20 28 69 6e 64 65 78 31 20 3c 20 30 20 7c 7c 20 69 6e 64 65 78 31 20 3e 3d 20 6d 5f ..if.(index1.<.0.||.index1.>=.m_
4ee0 43 6f 75 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 Count)..................throw.ne
4f00 77 20 41 72 67 75 6d 65 6e 74 4f 75 74 4f 66 52 61 6e 67 65 45 78 63 65 70 74 69 6f 6e 28 6e 61 w.ArgumentOutOfRangeException(na
4f20 6d 65 6f 66 28 69 6e 64 65 78 31 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 meof(index1));..............if.(
4f40 69 6e 64 65 78 32 20 3c 20 30 20 7c 7c 20 69 6e 64 65 78 32 20 3e 3d 20 6d 5f 43 6f 75 6e 74 29 index2.<.0.||.index2.>=.m_Count)
4f60 0d 0a 20 20 20 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 ..................throw.new.Argu
4f80 6d 65 6e 74 4f 75 74 4f 66 52 61 6e 67 65 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 69 mentOutOfRangeException(nameof(i
4fa0 6e 64 65 78 32 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 64 65 ndex2));................if.(inde
4fc0 78 31 20 21 3d 20 69 6e 64 65 78 32 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d x1.!=.index2)..................m
4fe0 5f 49 6e 64 69 63 65 73 2e 53 77 61 70 45 6c 65 6d 65 6e 74 73 28 69 6e 64 65 78 31 2c 20 69 6e _Indices.SwapElements(index1,.in
5000 64 65 78 32 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 75 62 dex2);..........}............pub
5020 6c 69 63 20 76 6f 69 64 20 53 6f 72 74 3c 54 43 6f 6d 70 61 72 65 3e 28 69 6e 74 20 73 74 61 72 lic.void.Sort<TCompare>(int.star
5040 74 49 6e 64 65 78 2c 20 69 6e 74 20 63 6f 75 6e 74 2c 20 54 43 6f 6d 70 61 72 65 20 63 6f 6d 70 tIndex,.int.count,.TCompare.comp
5060 61 72 65 72 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 77 68 65 72 65 20 54 43 6f 6d 70 61 72 arer)..............where.TCompar
5080 65 20 3a 20 49 43 6f 6d 70 61 72 65 72 3c 54 43 6f 6e 74 72 6f 6c 3e 0d 0a 20 20 20 20 20 20 20 e.:.IComparer<TControl>.........
50a0 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 61 72 74 49 6e 64 65 78 20 3c .{..............if.(startIndex.<
50c0 20 30 20 7c 7c 20 73 74 61 72 74 49 6e 64 65 78 20 3e 3d 20 43 6f 75 6e 74 29 0d 0a 20 20 20 20 .0.||.startIndex.>=.Count)......
50e0 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 4f 75 ............throw.new.ArgumentOu
5100 74 4f 66 52 61 6e 67 65 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 73 74 61 72 74 49 6e tOfRangeException(nameof(startIn
5120 64 65 78 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 61 72 74 49 6e 64 dex));..............if.(startInd
5140 65 78 20 2b 20 63 6f 75 6e 74 20 3e 3d 20 43 6f 75 6e 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 ex.+.count.>=.Count)............
5160 20 20 20 20 20 20 74 68 72 6f 77 20 6e 65 77 20 41 72 67 75 6d 65 6e 74 4f 75 74 4f 66 52 61 6e ......throw.new.ArgumentOutOfRan
5180 67 65 45 78 63 65 70 74 69 6f 6e 28 6e 61 6d 65 6f 66 28 63 6f 75 6e 74 29 29 3b 0d 0a 0d 0a 20 geException(nameof(count));.....
51a0 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 69 6d 70 6c 65 20 69 6e 73 65 72 74 69 6f 6e 20 73 ...........//.Simple.insertion.s
51c0 6f 72 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 31 ort...............for.(var.i.=.1
51e0 3b 20 69 20 3c 20 63 6f 75 6e 74 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ;.i.<.count;.++i)...............
5200 20 20 20 66 6f 72 20 28 76 61 72 20 6a 20 3d 20 69 3b 20 6a 20 3e 20 30 20 26 26 20 63 6f 6d 70 ...for.(var.j.=.i;.j.>.0.&&.comp
5220 61 72 65 72 2e 43 6f 6d 70 61 72 65 28 74 68 69 73 5b 6a 20 2d 20 31 5d 2c 20 74 68 69 73 5b 6a arer.Compare(this[j.-.1],.this[j
5240 5d 29 20 3c 20 30 3b 20 2d 2d 6a 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ]).<.0;.--j)....................
5260 20 20 53 77 61 70 45 6c 65 6d 65 6e 74 73 28 6a 2c 20 6a 20 2d 20 31 29 3b 0d 0a 20 20 20 20 20 ..SwapElements(j,.j.-.1);.......
5280 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 ...}............///.<summary>...
52a0 20 20 20 20 20 20 20 2f 2f 2f 20 43 6f 6e 76 65 72 74 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 20 .......///.Convert.the.contents.
52c0 6f 66 20 74 68 65 20 6c 69 73 74 20 74 6f 20 61 6e 20 61 72 72 61 79 2e 0d 0a 20 20 20 20 20 20 of.the.list.to.an.array.........
52e0 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 ..///.</summary>..........///.<p
5300 61 72 61 6d 20 6e 61 6d 65 3d 22 64 69 73 70 6f 73 65 22 3e 49 66 20 74 72 75 65 2c 20 74 68 65 aram.name="dispose">If.true,.the
5320 20 63 6f 6e 74 72 6f 6c 20 6c 69 73 74 20 77 69 6c 6c 20 62 65 20 64 69 73 70 6f 73 65 64 20 6f .control.list.will.be.disposed.o
5340 66 20 61 73 20 70 61 72 74 20 6f 66 20 74 68 65 20 6f 70 65 72 61 74 69 6f 6e 2c 20 69 2e 65 2e f.as.part.of.the.operation,.i.e.
5360 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 65 65 20 63 72 65 66 3d 22 44 69 73 70 6f 73 65 ..........///.<see.cref="Dispose
5380 22 2f 3e 20 77 69 6c 6c 20 62 65 20 63 61 6c 6c 65 64 20 61 73 20 61 20 73 69 64 65 2d 65 66 66 "/>.will.be.called.as.a.side-eff
53a0 65 63 74 2e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 ect.</param>..........///.<retur
53c0 6e 73 3e 41 6e 20 61 72 72 61 79 20 6d 69 72 72 6f 72 69 6e 67 20 74 68 65 20 63 6f 6e 74 65 6e ns>An.array.mirroring.the.conten
53e0 74 73 20 6f 66 20 74 68 65 20 6c 69 73 74 2e 20 4e 6f 74 20 6e 75 6c 6c 2e 3c 2f 72 65 74 75 72 ts.of.the.list..Not.null.</retur
5400 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 54 43 6f 6e 74 72 6f 6c 5b 5d 20 54 ns>..........public.TControl[].T
5420 6f 41 72 72 61 79 28 62 6f 6f 6c 20 64 69 73 70 6f 73 65 20 3d 20 66 61 6c 73 65 29 0d 0a 20 20 oArray(bool.dispose.=.false)....
5440 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 6f 6d 65 77 68 61 74 ......{..............//.Somewhat
5460 20 70 6f 69 6e 74 6c 65 73 73 20 74 6f 20 61 6c 6c 6f 63 61 74 65 20 61 6e 20 65 6d 70 74 79 20 .pointless.to.allocate.an.empty.
5480 61 72 72 61 79 20 69 66 20 77 65 20 68 61 76 65 20 6e 6f 20 65 6c 65 6d 65 6e 74 73 20 69 6e 73 array.if.we.have.no.elements.ins
54a0 74 65 61 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6f 66 20 72 65 74 75 72 6e 69 6e tead..............//.of.returnin
54c0 67 20 6e 75 6c 6c 2c 20 62 75 74 20 6f 74 68 65 72 20 54 6f 41 72 72 61 79 28 29 20 69 6d 70 6c g.null,.but.other.ToArray().impl
54e0 65 6d 65 6e 74 61 74 69 6f 6e 73 20 77 6f 72 6b 20 74 68 61 74 20 77 61 79 20 73 6f 20 77 65 20 ementations.work.that.way.so.we.
5500 64 6f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 74 68 65 20 73 61 6d 65 20 74 6f 20 61 do..............//.the.same.to.a
5520 76 6f 69 64 20 73 75 72 70 72 69 73 65 73 2e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 void.surprises.................v
5540 61 72 20 72 65 73 75 6c 74 20 3d 20 6e 65 77 20 54 43 6f 6e 74 72 6f 6c 5b 6d 5f 43 6f 75 6e 74 ar.result.=.new.TControl[m_Count
5560 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 3b 20 ];..............for.(var.i.=.0;.
5580 69 20 3c 20 6d 5f 43 6f 75 6e 74 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 i.<.m_Count;.++i)...............
55a0 20 20 20 72 65 73 75 6c 74 5b 69 5d 20 3d 20 74 68 69 73 5b 69 5d 3b 0d 0a 0d 0a 20 20 20 20 20 ...result[i].=.this[i];.........
55c0 20 20 20 20 20 20 20 69 66 20 28 64 69 73 70 6f 73 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .......if.(dispose).............
55e0 20 20 20 20 20 44 69 73 70 6f 73 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 .....Dispose();................r
5600 65 74 75 72 6e 20 72 65 73 75 6c 74 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 eturn.result;..........}........
5620 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 76 6f 69 64 20 41 70 70 65 6e 64 54 6f 28 72 65 66 20 54 ....internal.void.AppendTo(ref.T
5640 43 6f 6e 74 72 6f 6c 5b 5d 20 61 72 72 61 79 2c 20 72 65 66 20 69 6e 74 20 63 6f 75 6e 74 29 0d Control[].array,.ref.int.count).
5660 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 .........{..............for.(var
5680 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f 43 6f 75 6e 74 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 .i.=.0;.i.<.m_Count;.++i).......
56a0 20 20 20 20 20 20 20 20 20 20 20 41 72 72 61 79 48 65 6c 70 65 72 73 2e 41 70 70 65 6e 64 57 69 ...........ArrayHelpers.AppendWi
56c0 74 68 43 61 70 61 63 69 74 79 28 72 65 66 20 61 72 72 61 79 2c 20 72 65 66 20 63 6f 75 6e 74 2c thCapacity(ref.array,.ref.count,
56e0 20 74 68 69 73 5b 69 5d 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 .this[i]);..........}...........
5700 20 70 75 62 6c 69 63 20 76 6f 69 64 20 44 69 73 70 6f 73 65 28 29 0d 0a 20 20 20 20 20 20 20 20 .public.void.Dispose()..........
5720 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 49 6e 64 69 63 65 73 2e 49 73 43 {..............if.(m_Indices.IsC
5740 72 65 61 74 65 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 6e 64 69 63 reated)..................m_Indic
5760 65 73 2e 44 69 73 70 6f 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 es.Dispose();..........}........
5780 20 20 20 20 70 75 62 6c 69 63 20 49 45 6e 75 6d 65 72 61 74 6f 72 3c 54 43 6f 6e 74 72 6f 6c 3e ....public.IEnumerator<TControl>
57a0 20 47 65 74 45 6e 75 6d 65 72 61 74 6f 72 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 .GetEnumerator()..........{.....
57c0 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 65 77 20 45 6e 75 6d 65 72 61 74 6f 72 28 74 .........return.new.Enumerator(t
57e0 68 69 73 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 49 45 6e 75 his);..........}............IEnu
5800 6d 65 72 61 74 6f 72 20 49 45 6e 75 6d 65 72 61 62 6c 65 2e 47 65 74 45 6e 75 6d 65 72 61 74 6f merator.IEnumerable.GetEnumerato
5820 72 28 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 72 65 74 75 r()..........{..............retu
5840 72 6e 20 47 65 74 45 6e 75 6d 65 72 61 74 6f 72 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a rn.GetEnumerator();..........}..
5860 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 73 74 72 69 6e 67 ..........public.override.string
5880 20 54 6f 53 74 72 69 6e 67 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 .ToString()..........{..........
58a0 20 20 20 20 69 66 20 28 43 6f 75 6e 74 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ....if.(Count.==.0).............
58c0 20 20 20 20 20 72 65 74 75 72 6e 20 22 28 29 22 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .....return."()";...............
58e0 20 76 61 72 20 62 75 69 6c 64 65 72 20 3d 20 6e 65 77 20 53 74 72 69 6e 67 42 75 69 6c 64 65 72 .var.builder.=.new.StringBuilder
5900 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c 64 65 72 2e 41 70 70 65 6e 64 28 ();..............builder.Append(
5920 27 28 27 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 76 61 72 20 69 20 '(');................for.(var.i.
5940 3d 20 30 3b 20 69 20 3c 20 43 6f 75 6e 74 3b 20 2b 2b 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 =.0;.i.<.Count;.++i)............
5960 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 20 21 3d 20 30 29 ..{..................if.(i.!=.0)
5980 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c 64 65 72 2e 41 70 ......................builder.Ap
59a0 70 65 6e 64 28 27 2c 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c pend(',');..................buil
59c0 64 65 72 2e 41 70 70 65 6e 64 28 74 68 69 73 5b 69 5d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 der.Append(this[i]);............
59e0 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 75 69 6c 64 65 72 2e 41 70 70 65 6e ..}................builder.Appen
5a00 64 28 27 29 27 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 62 75 69 6c d(')');..............return.buil
5a20 64 65 72 2e 54 6f 53 74 72 69 6e 67 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 der.ToString();..........}......
5a40 20 20 20 20 20 20 70 72 69 76 61 74 65 20 69 6e 74 20 6d 5f 43 6f 75 6e 74 3b 0d 0a 20 20 20 20 ......private.int.m_Count;......
5a60 20 20 20 20 70 72 69 76 61 74 65 20 4e 61 74 69 76 65 41 72 72 61 79 3c 75 6c 6f 6e 67 3e 20 6d ....private.NativeArray<ulong>.m
5a80 5f 49 6e 64 69 63 65 73 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 72 65 61 64 6f _Indices;..........private.reado
5aa0 6e 6c 79 20 41 6c 6c 6f 63 61 74 6f 72 20 6d 5f 41 6c 6c 6f 63 61 74 6f 72 3b 0d 0a 0d 0a 20 20 nly.Allocator.m_Allocator;......
5ac0 20 20 20 20 20 20 70 72 69 76 61 74 65 20 63 6f 6e 73 74 20 75 6c 6f 6e 67 20 6b 49 6e 76 61 6c ......private.const.ulong.kInval
5ae0 69 64 49 6e 64 65 78 20 3d 20 30 78 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 3b 0d 0a 0d idIndex.=.0xffffffffffffffff;...
5b00 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 75 6c 6f 6e 67 20 54 6f .........private.static.ulong.To
5b20 49 6e 64 65 78 28 54 43 6f 6e 74 72 6f 6c 20 63 6f 6e 74 72 6f 6c 29 0d 0a 20 20 20 20 20 20 20 Index(TControl.control).........
5b40 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 6f 6e 74 72 6f 6c 20 3d 3d 20 6e .{..............if.(control.==.n
5b60 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6b 49 6e ull)..................return.kIn
5b80 76 61 6c 69 64 49 6e 64 65 78 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 validIndex;................var.d
5ba0 65 76 69 63 65 20 3d 20 63 6f 6e 74 72 6f 6c 2e 64 65 76 69 63 65 3b 0d 0a 20 20 20 20 20 20 20 evice.=.control.device;.........
5bc0 20 20 20 20 20 76 61 72 20 64 65 76 69 63 65 49 6e 64 65 78 20 3d 20 64 65 76 69 63 65 2e 6d 5f .....var.deviceIndex.=.device.m_
5be0 44 65 76 69 63 65 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6f DeviceIndex;..............var.co
5c00 6e 74 72 6f 6c 49 6e 64 65 78 20 3d 20 21 52 65 66 65 72 65 6e 63 65 45 71 75 61 6c 73 28 64 65 ntrolIndex.=.!ReferenceEquals(de
5c20 76 69 63 65 2c 20 63 6f 6e 74 72 6f 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 vice,.control)..................
5c40 3f 20 41 72 72 61 79 48 65 6c 70 65 72 73 2e 49 6e 64 65 78 4f 66 52 65 66 65 72 65 6e 63 65 28 ?.ArrayHelpers.IndexOfReference(
5c60 64 65 76 69 63 65 2e 6d 5f 43 68 69 6c 64 72 65 6e 46 6f 72 45 61 63 68 43 6f 6e 74 72 6f 6c 2c device.m_ChildrenForEachControl,
5c80 20 63 6f 6e 74 72 6f 6c 29 20 2b 20 31 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3a .control).+.1..................:
5ca0 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 68 65 72 65 20 69 73 20 61 .0;................//.There.is.a
5cc0 20 6b 6e 6f 77 6e 20 64 6f 63 75 6d 65 6e 74 65 64 20 62 75 67 20 77 69 74 68 20 74 68 65 20 6e .known.documented.bug.with.the.n
5ce0 65 77 20 52 6f 73 79 6c 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 63 6f 6d 70 69 6c ew.Rosyln..............//.compil
5d00 65 72 20 77 68 65 72 65 20 69 74 20 77 61 72 6e 73 20 6f 6e 20 63 61 73 74 73 20 77 69 74 68 20 er.where.it.warns.on.casts.with.
5d20 66 6f 6c 6c 6f 77 69 6e 67 20 6c 69 6e 65 20 74 68 61 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 following.line.that.............
5d40 20 2f 2f 20 77 61 73 20 70 65 72 66 65 63 74 6c 79 20 6c 65 67 61 6c 20 69 6e 20 70 72 65 76 69 .//.was.perfectly.legal.in.previ
5d60 6f 75 73 20 43 53 43 20 63 6f 6d 70 69 6c 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f ous.CSC.compiler.............../
5d80 2f 20 42 65 6c 6f 77 20 69 73 20 73 69 6c 6c 79 20 63 6f 6e 76 65 72 73 69 6f 6e 20 74 6f 20 67 /.Below.is.silly.conversion.to.g
5da0 65 74 20 72 69 64 20 6f 66 20 77 61 72 6e 69 6e 67 2c 20 6f 72 20 77 65 20 63 61 6e 20 70 72 61 et.rid.of.warning,.or.we.can.pra
5dc0 67 6d 61 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6f 75 74 20 74 68 65 20 77 61 72 6e gma..............//.out.the.warn
5de0 69 6e 67 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 72 65 74 75 72 6e 20 28 28 75 6c 6f ing...............//return.((ulo
5e00 6e 67 29 64 65 76 69 63 65 49 6e 64 65 78 20 3c 3c 20 33 32 29 20 7c 20 28 75 6c 6f 6e 67 29 63 ng)deviceIndex.<<.32).|.(ulong)c
5e20 6f 6e 74 72 6f 6c 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 68 ontrolIndex;..............var.sh
5e40 69 66 74 65 64 44 65 76 69 63 65 49 6e 64 65 78 20 3d 20 28 75 6c 6f 6e 67 29 64 65 76 69 63 65 iftedDeviceIndex.=.(ulong)device
5e60 49 6e 64 65 78 20 3c 3c 20 33 32 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 75 6e Index.<<.32;..............var.un
5e80 73 69 67 6e 65 64 43 6f 6e 74 72 6f 6c 49 6e 64 65 78 20 3d 20 28 75 6c 6f 6e 67 29 63 6f 6e 74 signedControlIndex.=.(ulong)cont
5ea0 72 6f 6c 49 6e 64 65 78 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 rolIndex;................return.
5ec0 73 68 69 66 74 65 64 44 65 76 69 63 65 49 6e 64 65 78 20 7c 20 75 6e 73 69 67 6e 65 64 43 6f 6e shiftedDeviceIndex.|.unsignedCon
5ee0 74 72 6f 6c 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 trolIndex;..........}...........
5f00 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 54 43 6f 6e 74 72 6f 6c 20 46 72 6f 6d 49 6e 64 .private.static.TControl.FromInd
5f20 65 78 28 75 6c 6f 6e 67 20 69 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 ex(ulong.index)..........{......
5f40 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 64 65 78 20 3d 3d 20 6b 49 6e 76 61 6c 69 64 49 6e 64 ........if.(index.==.kInvalidInd
5f60 65 78 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 75 6c 6c ex)..................return.null
5f80 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 65 76 69 63 65 49 6e 64 65 78 ;................var.deviceIndex
5fa0 20 3d 20 28 69 6e 74 29 28 69 6e 64 65 78 20 3e 3e 20 33 32 29 3b 0d 0a 20 20 20 20 20 20 20 20 .=.(int)(index.>>.32);..........
5fc0 20 20 20 20 76 61 72 20 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 20 3d 20 28 69 6e 74 29 28 69 6e 64 ....var.controlIndex.=.(int)(ind
5fe0 65 78 20 26 20 30 78 46 46 46 46 46 46 46 46 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ex.&.0xFFFFFFFF);...............
6000 20 76 61 72 20 64 65 76 69 63 65 20 3d 20 49 6e 70 75 74 53 79 73 74 65 6d 2e 64 65 76 69 63 65 .var.device.=.InputSystem.device
6020 73 5b 64 65 76 69 63 65 49 6e 64 65 78 5d 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 s[deviceIndex];..............if.
6040 28 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 (controlIndex.==.0).............
6060 20 20 20 20 20 72 65 74 75 72 6e 20 28 54 43 6f 6e 74 72 6f 6c 29 28 49 6e 70 75 74 43 6f 6e 74 .....return.(TControl)(InputCont
6080 72 6f 6c 29 64 65 76 69 63 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 rol)device;................retur
60a0 6e 20 28 54 43 6f 6e 74 72 6f 6c 29 64 65 76 69 63 65 2e 6d 5f 43 68 69 6c 64 72 65 6e 46 6f 72 n.(TControl)device.m_ChildrenFor
60c0 45 61 63 68 43 6f 6e 74 72 6f 6c 5b 63 6f 6e 74 72 6f 6c 49 6e 64 65 78 20 2d 20 31 5d 3b 0d 0a EachControl[controlIndex.-.1];..
60e0 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 20 73 74 72 ........}............private.str
6100 75 63 74 20 45 6e 75 6d 65 72 61 74 6f 72 20 3a 20 49 45 6e 75 6d 65 72 61 74 6f 72 3c 54 43 6f uct.Enumerator.:.IEnumerator<TCo
6120 6e 74 72 6f 6c 3e 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 70 ntrol>..........{..............p
6140 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 75 6c 6f 6e 67 2a 20 6d 5f 49 6e 64 69 63 65 73 rivate.readonly.ulong*.m_Indices
6160 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 ;..............private.readonly.
6180 69 6e 74 20 6d 5f 43 6f 75 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 int.m_Count;..............privat
61a0 65 20 69 6e 74 20 6d 5f 43 75 72 72 65 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 e.int.m_Current;................
61c0 70 75 62 6c 69 63 20 45 6e 75 6d 65 72 61 74 6f 72 28 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c 69 public.Enumerator(InputControlLi
61e0 73 74 3c 54 43 6f 6e 74 72 6f 6c 3e 20 6c 69 73 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 st<TControl>.list)..............
6200 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 75 6e 74 20 3d 20 6c 69 73 {..................m_Count.=.lis
6220 74 2e 6d 5f 43 6f 75 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 75 t.m_Count;..................m_Cu
6240 72 72 65 6e 74 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 rrent.=.-1;..................m_I
6260 6e 64 69 63 65 73 20 3d 20 6d 5f 43 6f 75 6e 74 20 3e 20 30 20 3f 20 28 75 6c 6f 6e 67 2a 29 6c ndices.=.m_Count.>.0.?.(ulong*)l
6280 69 73 74 2e 6d 5f 49 6e 64 69 63 65 73 2e 47 65 74 55 6e 73 61 66 65 52 65 61 64 4f 6e 6c 79 50 ist.m_Indices.GetUnsafeReadOnlyP
62a0 74 72 28 29 20 3a 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 tr().:.null;..............}.....
62c0 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 4d 6f 76 65 4e 65 78 74 28 ...........public.bool.MoveNext(
62e0 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 20 )..............{................
6300 20 20 69 66 20 28 6d 5f 43 75 72 72 65 6e 74 20 3e 3d 20 6d 5f 43 6f 75 6e 74 29 0d 0a 20 20 20 ..if.(m_Current.>=.m_Count).....
6320 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 6c 73 65 3b 0d 0a .................return.false;..
6340 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 2b 6d 5f 43 75 72 72 65 6e 74 3b 0d 0a 20 20 ................++m_Current;....
6360 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 28 6d 5f 43 75 72 72 65 6e 74 20 ..............return.(m_Current.
6380 21 3d 20 6d 5f 43 6f 75 6e 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 !=.m_Count);..............}.....
63a0 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 52 65 73 65 74 28 29 0d 0a ...........public.void.Reset()..
63c0 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 6d ............{..................m
63e0 5f 43 75 72 72 65 6e 74 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d _Current.=.-1;..............}...
6400 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 54 43 6f 6e 74 72 6f 6c 20 43 75 72 .............public.TControl.Cur
6420 72 65 6e 74 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 rent..............{.............
6440 20 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 .....get..................{.....
6460 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 49 6e 64 69 63 65 73 20 3d .................if.(m_Indices.=
6480 3d 20 6e 75 6c 6c 29 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 =.null).........................
64a0 20 74 68 72 6f 77 20 6e 65 77 20 49 6e 76 61 6c 69 64 4f 70 65 72 61 74 69 6f 6e 45 78 63 65 70 .throw.new.InvalidOperationExcep
64c0 74 69 6f 6e 28 22 45 6e 75 6d 65 72 61 74 6f 72 20 69 73 20 6e 6f 74 20 76 61 6c 69 64 22 29 3b tion("Enumerator.is.not.valid");
64e0 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 46 72 6f ......................return.Fro
6500 6d 49 6e 64 65 78 28 6d 5f 49 6e 64 69 63 65 73 5b 6d 5f 43 75 72 72 65 6e 74 5d 29 3b 0d 0a 20 mIndex(m_Indices[m_Current]);...
6520 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 7d 0d ...............}..............}.
6540 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6f 62 6a 65 63 74 20 49 45 6e 75 6d 65 72 61 74 6f ...............object.IEnumerato
6560 72 2e 43 75 72 72 65 6e 74 20 3d 3e 20 43 75 72 72 65 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 r.Current.=>.Current;...........
6580 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 44 69 73 70 6f 73 65 28 29 0d 0a 20 20 20 20 .....public.void.Dispose()......
65a0 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 ........{..............}........
65c0 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 ..}......}........#if.UNITY_EDIT
65e0 4f 52 20 7c 7c 20 44 45 56 45 4c 4f 50 4d 45 4e 54 5f 42 55 49 4c 44 0d 0a 20 20 20 20 69 6e 74 OR.||.DEVELOPMENT_BUILD......int
6600 65 72 6e 61 6c 20 73 74 72 75 63 74 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c 69 73 74 44 65 62 ernal.struct.InputControlListDeb
6620 75 67 56 69 65 77 3c 54 43 6f 6e 74 72 6f 6c 3e 0d 0a 20 20 20 20 20 20 20 20 77 68 65 72 65 20 ugView<TControl>..........where.
6640 54 43 6f 6e 74 72 6f 6c 20 3a 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 0d 0a 20 20 20 20 7b 0d 0a TControl.:.InputControl......{..
6660 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 54 43 6f 6e 74 72 6f ........private.readonly.TContro
6680 6c 5b 5d 20 6d 5f 43 6f 6e 74 72 6f 6c 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 l[].m_Controls;............publi
66a0 63 20 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c 69 73 74 44 65 62 75 67 56 69 65 77 28 49 6e 70 75 c.InputControlListDebugView(Inpu
66c0 74 43 6f 6e 74 72 6f 6c 4c 69 73 74 3c 54 43 6f 6e 74 72 6f 6c 3e 20 6c 69 73 74 29 0d 0a 20 20 tControlList<TControl>.list)....
66e0 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 74 72 6f 6c 73 20 ......{..............m_Controls.
6700 3d 20 6c 69 73 74 2e 54 6f 41 72 72 61 79 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a =.list.ToArray();..........}....
6720 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 54 43 6f 6e 74 72 6f 6c 5b 5d 20 63 6f 6e 74 72 6f ........public.TControl[].contro
6740 6c 73 20 3d 3e 20 6d 5f 43 6f 6e 74 72 6f 6c 73 3b 0d 0a 20 20 20 20 7d 0d 0a 20 20 20 20 23 65 ls.=>.m_Controls;......}......#e
6760 6e 64 69 66 0d 0a 7d 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ndif..}.........................
6780 10 00 00 00 49 6e 70 75 74 43 6f 6e 74 72 6f 6c 4c 69 73 74 00 00 00 00 ....InputControlList....